@duetds/components 8.4.7 → 8.4.9

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 (628) hide show
  1. package/hydrate/index.js +81 -54
  2. package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
  3. package/lib/cjs/duet-alert.cjs.entry.js +22 -4
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-banner.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  8. package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
  9. package/lib/cjs/duet-callout.cjs.entry.js +1 -1
  10. package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
  11. package/lib/cjs/duet-card.cjs.entry.js +1 -1
  12. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-chip.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-choice_2.cjs.entry.js +9 -4
  16. package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  21. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-editable-table_3.cjs.entry.js +1 -1
  23. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  39. package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  41. package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  43. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-overlay.cjs.entry.js +1 -1
  46. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  47. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  48. package/lib/cjs/duet-popup-menu-item.cjs.entry.js +1 -1
  49. package/lib/cjs/duet-popup-menu.cjs.entry.js +2 -2
  50. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  51. package/lib/cjs/duet-promo-card.cjs.entry.js +1 -1
  52. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  53. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  54. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  55. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  56. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  57. package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
  58. package/lib/cjs/duet-show-more.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  60. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
  61. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  62. package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
  63. package/lib/cjs/duet-slideout.cjs.entry.js +2 -2
  64. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  65. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  66. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
  67. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +1 -1
  68. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  69. package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
  70. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  71. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  72. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  73. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  74. package/lib/cjs/duet-toolbar-item.cjs.entry.js +1 -1
  75. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  76. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  77. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +2 -2
  78. package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
  79. package/lib/cjs/duet-tray.cjs.entry.js +1 -1
  80. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  81. package/lib/cjs/duet-upload-item.cjs.entry.js +1 -1
  82. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  83. package/lib/cjs/duet.cjs.js +2 -2
  84. package/lib/cjs/{focus-utils-641b8e44.js → focus-utils-1fe78578.js} +1 -1
  85. package/lib/cjs/{index-e1f1906e.js → index-93f04ccf.js} +1 -1
  86. package/lib/cjs/loader.cjs.js +2 -2
  87. package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
  88. package/lib/collection/components/duet-alert/duet-alert.css +38 -19
  89. package/lib/collection/components/duet-alert/duet-alert.js +43 -3
  90. package/lib/collection/components/duet-button/duet-button.js +5 -5
  91. package/lib/collection/components/duet-caption/duet-caption.js +1 -1
  92. package/lib/collection/components/duet-card/duet-card.js +3 -3
  93. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
  94. package/lib/collection/components/duet-chip/duet-chip.js +5 -5
  95. package/lib/collection/components/duet-choice/duet-choice.js +3 -3
  96. package/lib/collection/components/duet-choice-group/duet-choice-group.js +9 -1
  97. package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
  98. package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
  99. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  100. package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -4
  101. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  102. package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
  103. package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
  104. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  105. package/lib/collection/components/duet-footer/duet-footer.js +7 -7
  106. package/lib/collection/components/duet-grid/duet-grid.js +3 -3
  107. package/lib/collection/components/duet-header/duet-header.js +15 -15
  108. package/lib/collection/components/duet-heading/duet-heading.js +1 -1
  109. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  110. package/lib/collection/components/duet-input/duet-input.js +8 -8
  111. package/lib/collection/components/duet-label/duet-label.js +2 -2
  112. package/lib/collection/components/duet-layout/duet-layout.js +1 -1
  113. package/lib/collection/components/duet-link/duet-link.css +5 -0
  114. package/lib/collection/components/duet-link/duet-link.js +1 -1
  115. package/lib/collection/components/duet-list/duet-list.js +3 -3
  116. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  117. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
  118. package/lib/collection/components/duet-modal/duet-modal.js +4 -4
  119. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  120. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
  121. package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
  122. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  123. package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
  124. package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
  125. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +1 -1
  126. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  127. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  128. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  129. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
  130. package/lib/collection/components/duet-select/duet-select.js +5 -5
  131. package/lib/collection/components/duet-show-more/duet-show-more.js +1 -1
  132. package/lib/collection/components/duet-slideout/duet-slideout.js +1 -1
  133. package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
  134. package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
  135. package/lib/collection/components/duet-step/duet-step.js +2 -2
  136. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  137. package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
  138. package/lib/collection/components/duet-textarea/duet-textarea.js +4 -4
  139. package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
  140. package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
  141. package/lib/collection/components/duet-upload/duet-upload.js +14 -14
  142. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  143. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  144. package/lib/dist-custom-elements/duet-alert.js +1 -1
  145. package/lib/dist-custom-elements/duet-badge.js +1 -1
  146. package/lib/dist-custom-elements/duet-banner.js +3 -3
  147. package/lib/dist-custom-elements/duet-breadcrumb.js +3 -3
  148. package/lib/dist-custom-elements/duet-breadcrumbs.js +1 -1
  149. package/lib/dist-custom-elements/duet-button.js +1 -1
  150. package/lib/dist-custom-elements/duet-callout.js +2 -2
  151. package/lib/dist-custom-elements/duet-caption.js +1 -1
  152. package/lib/dist-custom-elements/duet-card.js +3 -3
  153. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  154. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  155. package/lib/dist-custom-elements/duet-chip.js +2 -2
  156. package/lib/dist-custom-elements/duet-choice-group.js +16 -11
  157. package/lib/dist-custom-elements/duet-choice.js +5 -5
  158. package/lib/dist-custom-elements/duet-collapsible.js +2 -2
  159. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  160. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  161. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  162. package/lib/dist-custom-elements/duet-date-picker.js +13 -13
  163. package/lib/dist-custom-elements/duet-divider.js +1 -1
  164. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  165. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  166. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  167. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  168. package/lib/dist-custom-elements/duet-footer.js +4 -4
  169. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  170. package/lib/dist-custom-elements/duet-grid.js +1 -1
  171. package/lib/dist-custom-elements/duet-header.js +8 -8
  172. package/lib/dist-custom-elements/duet-heading.js +1 -1
  173. package/lib/dist-custom-elements/duet-hero.js +9 -9
  174. package/lib/dist-custom-elements/duet-icon.js +1 -1
  175. package/lib/dist-custom-elements/duet-input.js +1 -1
  176. package/lib/dist-custom-elements/duet-label.js +1 -1
  177. package/lib/dist-custom-elements/duet-layout.js +1 -1
  178. package/lib/dist-custom-elements/duet-link.js +1 -1
  179. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  180. package/lib/dist-custom-elements/duet-list.js +1 -1
  181. package/lib/dist-custom-elements/duet-logo.js +1 -1
  182. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  183. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  184. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  185. package/lib/dist-custom-elements/duet-menu-bar-item.js +2 -2
  186. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  187. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  188. package/lib/dist-custom-elements/duet-modal.js +8 -8
  189. package/lib/dist-custom-elements/duet-multiselect.js +9 -9
  190. package/lib/dist-custom-elements/duet-nav.js +1 -1
  191. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  192. package/lib/dist-custom-elements/duet-notification.js +2 -2
  193. package/lib/dist-custom-elements/duet-number-input.js +11 -11
  194. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  195. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  196. package/lib/dist-custom-elements/duet-pagination.js +13 -13
  197. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  198. package/lib/dist-custom-elements/duet-popup-menu-item.js +2 -2
  199. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  200. package/lib/dist-custom-elements/duet-progress.js +1 -1
  201. package/lib/dist-custom-elements/duet-promo-card.js +3 -3
  202. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  203. package/lib/dist-custom-elements/duet-radio.js +1 -1
  204. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  205. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  206. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  207. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  208. package/lib/dist-custom-elements/duet-select.js +1 -1
  209. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  210. package/lib/dist-custom-elements/duet-show-more.js +1 -159
  211. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  212. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  213. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  214. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
  215. package/lib/dist-custom-elements/duet-slideout.js +3 -3
  216. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  217. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  218. package/lib/dist-custom-elements/duet-step.js +4 -4
  219. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  220. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  221. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  222. package/lib/dist-custom-elements/duet-submenu-bar-item.js +2 -2
  223. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  224. package/lib/dist-custom-elements/duet-submenu-bar.js +3 -3
  225. package/lib/dist-custom-elements/duet-tab-group.js +13 -13
  226. package/lib/dist-custom-elements/duet-tab.js +1 -1
  227. package/lib/dist-custom-elements/duet-table.js +1 -1
  228. package/lib/dist-custom-elements/duet-textarea.js +10 -10
  229. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  230. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  231. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  232. package/lib/dist-custom-elements/duet-toolbar-item.js +2 -2
  233. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  234. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  235. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  236. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  237. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  238. package/lib/dist-custom-elements/duet-tray.js +3 -3
  239. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  240. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  241. package/lib/dist-custom-elements/duet-upload.js +36 -30
  242. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  243. package/lib/dist-custom-elements/index.js +1 -1
  244. package/lib/dist-custom-elements/{p-5d9ed7f4.js → p-0d256713.js} +1 -1
  245. package/lib/dist-custom-elements/{p-a46a36e9.js → p-0e22be10.js} +2 -2
  246. package/lib/dist-custom-elements/{p-df969cf3.js → p-0f30ce47.js} +1 -1
  247. package/lib/dist-custom-elements/{p-b7bfce1f.js → p-152360b2.js} +2 -2
  248. package/lib/dist-custom-elements/{p-97b73b53.js → p-17e9d613.js} +35 -10
  249. package/lib/dist-custom-elements/{p-7c86a575.js → p-1801b3e4.js} +2 -2
  250. package/lib/dist-custom-elements/{p-be58bea1.js → p-1f8e3f5c.js} +1 -1
  251. package/lib/dist-custom-elements/{p-c8c128fa.js → p-20a7348b.js} +5 -5
  252. package/lib/dist-custom-elements/{p-d1ec30cf.js → p-20f18c3d.js} +1 -1
  253. package/lib/dist-custom-elements/{p-f650ecd6.js → p-3e45369c.js} +4 -4
  254. package/lib/dist-custom-elements/{p-d1ad90dd.js → p-48ac698e.js} +1 -1
  255. package/lib/dist-custom-elements/{p-e4c24d59.js → p-56c2e1f8.js} +10 -10
  256. package/lib/dist-custom-elements/{p-74f8a63d.js → p-577e8d15.js} +1 -1
  257. package/lib/dist-custom-elements/{p-1ee219ab.js → p-63679953.js} +1 -1
  258. package/lib/dist-custom-elements/p-6376ce81.js +164 -0
  259. package/lib/dist-custom-elements/{p-bd2a4386.js → p-64c79bfb.js} +1 -1
  260. package/lib/dist-custom-elements/{p-6fe547f5.js → p-678b1b51.js} +4 -4
  261. package/lib/dist-custom-elements/{p-38286be1.js → p-75d39aa3.js} +1 -1
  262. package/lib/dist-custom-elements/{p-05db80c4.js → p-7933de65.js} +2 -2
  263. package/lib/dist-custom-elements/{p-ae2c2858.js → p-834debd3.js} +1 -1
  264. package/lib/dist-custom-elements/{p-f04ca84f.js → p-84553757.js} +3 -3
  265. package/lib/dist-custom-elements/{p-45750f92.js → p-9091d3ba.js} +1 -1
  266. package/lib/dist-custom-elements/{p-16a91e67.js → p-91afbcb8.js} +10 -10
  267. package/lib/dist-custom-elements/{p-ddbac3d0.js → p-9a4206ea.js} +1 -1
  268. package/lib/dist-custom-elements/{p-334ef5b4.js → p-a4254a38.js} +1 -1
  269. package/lib/dist-custom-elements/{p-c3346af3.js → p-a9386ba7.js} +3 -3
  270. package/lib/dist-custom-elements/{p-e21a9660.js → p-ad2711d6.js} +1 -1
  271. package/lib/dist-custom-elements/{p-26da2386.js → p-c76e19d6.js} +1 -1
  272. package/lib/dist-custom-elements/{p-265f60c1.js → p-c81e3dce.js} +1 -1
  273. package/lib/dist-custom-elements/{p-7e1b5e20.js → p-c994587b.js} +1 -1
  274. package/lib/dist-custom-elements/{p-7218bbb9.js → p-e524d43b.js} +1 -1
  275. package/lib/dist-custom-elements/{p-a69272be.js → p-e93331ad.js} +1 -1
  276. package/lib/dist-custom-elements/{p-d1494ba3.js → p-eb917962.js} +2 -2
  277. package/lib/dist-custom-elements/{p-e419572c.js → p-edee8d26.js} +5 -5
  278. package/lib/dist-custom-elements/{p-35b877c5.js → p-f2587ca1.js} +8 -8
  279. package/lib/dist-custom-elements/{p-965784e2.js → p-fcfbe6bf.js} +1 -1
  280. package/lib/duet/duet.esm.js +1 -1
  281. package/lib/duet/duet.js +1 -1
  282. package/lib/duet/{p-f3249826.entry.js → p-00cb57a0.entry.js} +1 -1
  283. package/lib/duet/{p-6211e007.system.entry.js → p-0147c133.system.entry.js} +1 -1
  284. package/lib/duet/{p-5395f5cd.system.entry.js → p-0239cd87.system.entry.js} +1 -1
  285. package/lib/duet/{p-47a4061b.system.entry.js → p-04604c7d.system.entry.js} +1 -1
  286. package/lib/duet/{p-abd80712.system.entry.js → p-0613bd7b.system.entry.js} +1 -1
  287. package/lib/duet/{p-35fe62f2.system.entry.js → p-06a5d769.system.entry.js} +1 -1
  288. package/lib/duet/{p-be1d4ebf.entry.js → p-06c66116.entry.js} +1 -1
  289. package/lib/duet/p-0729a30a.entry.js +4 -0
  290. package/lib/duet/{p-f8397ce8.entry.js → p-09373a35.entry.js} +1 -1
  291. package/lib/duet/{p-c32e58b7.system.entry.js → p-0a365c48.system.entry.js} +1 -1
  292. package/lib/duet/{p-a5a64aa6.system.entry.js → p-0cadbd87.system.entry.js} +1 -1
  293. package/lib/duet/{p-e04d1d5b.system.entry.js → p-0d5ea85f.system.entry.js} +1 -1
  294. package/lib/duet/{p-8490cb94.system.entry.js → p-0f80de34.system.entry.js} +1 -1
  295. package/lib/duet/{p-89170c2f.system.entry.js → p-11f655ce.system.entry.js} +1 -1
  296. package/lib/duet/{p-1e21feb2.entry.js → p-127b077a.entry.js} +1 -1
  297. package/lib/duet/{p-ca8d72ad.entry.js → p-12ddb88e.entry.js} +1 -1
  298. package/lib/duet/{p-a258a8b5.entry.js → p-14cb3b5d.entry.js} +1 -1
  299. package/lib/duet/{p-75fdd1df.system.entry.js → p-16478189.system.entry.js} +1 -1
  300. package/lib/duet/{p-28841734.entry.js → p-19c22eeb.entry.js} +1 -1
  301. package/lib/duet/{p-1ea19001.entry.js → p-1a088c64.entry.js} +1 -1
  302. package/lib/duet/{p-fe521b34.entry.js → p-1ba88f61.entry.js} +1 -1
  303. package/lib/duet/{p-fd370d45.system.entry.js → p-1c44fb6a.system.entry.js} +1 -1
  304. package/lib/duet/{p-4b8622f8.system.entry.js → p-1d480462.system.entry.js} +1 -1
  305. package/lib/duet/{p-289de871.entry.js → p-1f98c13d.entry.js} +1 -1
  306. package/lib/duet/{p-14cb26fb.entry.js → p-215f47be.entry.js} +1 -1
  307. package/lib/duet/{p-e093e9d8.system.entry.js → p-227d2ea5.system.entry.js} +1 -1
  308. package/lib/duet/{p-bc50070b.system.entry.js → p-23924ee4.system.entry.js} +1 -1
  309. package/lib/duet/{p-d73bfe74.entry.js → p-27b9ce07.entry.js} +1 -1
  310. package/lib/duet/{p-4bb49093.system.entry.js → p-285e6f0b.system.entry.js} +1 -1
  311. package/lib/duet/{p-68a39b34.system.entry.js → p-29aa3196.system.entry.js} +2 -2
  312. package/lib/duet/{p-e95a6c5c.entry.js → p-2bfe040a.entry.js} +1 -1
  313. package/lib/duet/{p-b3afeeab.system.entry.js → p-2c78f4e7.system.entry.js} +1 -1
  314. package/lib/duet/{p-8ff05cde.entry.js → p-2ce48cb5.entry.js} +1 -1
  315. package/lib/duet/{p-8c73b255.entry.js → p-2d118807.entry.js} +1 -1
  316. package/lib/duet/{p-6f438d87.entry.js → p-2e1077be.entry.js} +1 -1
  317. package/lib/duet/{p-64265170.entry.js → p-2fbd04f4.entry.js} +1 -1
  318. package/lib/duet/{p-20ea790e.system.entry.js → p-302277e7.system.entry.js} +1 -1
  319. package/lib/duet/{p-d39fd21e.js → p-3066bcb5.js} +1 -1
  320. package/lib/duet/p-3076ce41.entry.js +4 -0
  321. package/lib/duet/{p-78547664.entry.js → p-3272c31c.entry.js} +1 -1
  322. package/lib/duet/{p-e7d22773.entry.js → p-32c25096.entry.js} +1 -1
  323. package/lib/duet/{p-87aa93a0.system.entry.js → p-35619112.system.entry.js} +1 -1
  324. package/lib/duet/{p-f20fdf27.system.entry.js → p-36c7b722.system.entry.js} +1 -1
  325. package/lib/duet/{p-3a8f28e4.system.entry.js → p-3799f546.system.entry.js} +1 -1
  326. package/lib/duet/{p-543f611b.system.entry.js → p-381e8ed9.system.entry.js} +1 -1
  327. package/lib/duet/{p-87f1b07e.system.entry.js → p-3d187b25.system.entry.js} +1 -1
  328. package/lib/duet/{p-1fb5a856.system.entry.js → p-41cec1fa.system.entry.js} +1 -1
  329. package/lib/duet/{p-aad6c885.entry.js → p-4248b34b.entry.js} +1 -1
  330. package/lib/duet/{p-4e2c9eaa.system.entry.js → p-43aef4d6.system.entry.js} +1 -1
  331. package/lib/duet/{p-86b1029d.entry.js → p-46d717b5.entry.js} +1 -1
  332. package/lib/duet/{p-db24cf32.system.entry.js → p-470463d7.system.entry.js} +1 -1
  333. package/lib/duet/{p-3e155fc9.system.entry.js → p-479cb243.system.entry.js} +1 -1
  334. package/lib/duet/{p-e7640426.system.entry.js → p-47d9bf6c.system.entry.js} +1 -1
  335. package/lib/duet/{p-cc2056d3.entry.js → p-47e58b32.entry.js} +1 -1
  336. package/lib/duet/{p-d7c3c5f2.system.entry.js → p-49bd5789.system.entry.js} +1 -1
  337. package/lib/duet/{p-e5fa767b.system.entry.js → p-4a5c19e5.system.entry.js} +1 -1
  338. package/lib/duet/{p-e253d982.entry.js → p-4bebe5f9.entry.js} +1 -1
  339. package/lib/duet/{p-5df8a5ff.system.entry.js → p-4cc461bc.system.entry.js} +1 -1
  340. package/lib/duet/{p-461ae220.entry.js → p-4cfc156b.entry.js} +1 -1
  341. package/lib/duet/{p-ac705d80.system.entry.js → p-4df61f88.system.entry.js} +1 -1
  342. package/lib/duet/{p-e20f1c13.system.entry.js → p-4e19671c.system.entry.js} +1 -1
  343. package/lib/duet/{p-11efb2dc.entry.js → p-4e30645a.entry.js} +1 -1
  344. package/lib/duet/{p-79df580c.entry.js → p-53b1b4ff.entry.js} +1 -1
  345. package/lib/duet/{p-137c30e9.entry.js → p-53dda19c.entry.js} +1 -1
  346. package/lib/duet/{p-ead0b474.entry.js → p-549766dc.entry.js} +1 -1
  347. package/lib/duet/{p-a3f893ab.system.entry.js → p-55e89add.system.entry.js} +1 -1
  348. package/lib/duet/{p-02f8ce4f.system.entry.js → p-579b25fe.system.entry.js} +1 -1
  349. package/lib/duet/p-580a7108.system.js +4 -0
  350. package/lib/duet/{p-5bed7f7c.entry.js → p-598848bb.entry.js} +1 -1
  351. package/lib/duet/{p-812095ef.entry.js → p-5c70ad80.entry.js} +1 -1
  352. package/lib/duet/{p-b7b2d974.entry.js → p-5cc472da.entry.js} +1 -1
  353. package/lib/duet/{p-82b29bbc.entry.js → p-5e1cd395.entry.js} +1 -1
  354. package/lib/duet/{p-16630283.system.entry.js → p-5f3cc9cc.system.entry.js} +1 -1
  355. package/lib/duet/{p-7521395d.entry.js → p-61bdb8f5.entry.js} +1 -1
  356. package/lib/duet/{p-0245f90d.system.entry.js → p-6270bb70.system.entry.js} +1 -1
  357. package/lib/duet/{p-a4c466d6.system.entry.js → p-629c90d5.system.entry.js} +1 -1
  358. package/lib/duet/{p-1acd8631.system.entry.js → p-62f8a72d.system.entry.js} +1 -1
  359. package/lib/duet/{p-d74a1d2b.entry.js → p-65a8ccb8.entry.js} +1 -1
  360. package/lib/duet/{p-c9844e55.entry.js → p-66486150.entry.js} +1 -1
  361. package/lib/duet/{p-7ab2bd63.entry.js → p-692591e8.entry.js} +1 -1
  362. package/lib/duet/{p-065aa666.system.entry.js → p-6968b5e5.system.entry.js} +1 -1
  363. package/lib/duet/{p-cd68bae4.entry.js → p-6cab7d53.entry.js} +1 -1
  364. package/lib/duet/{p-678976be.system.entry.js → p-6e6b361d.system.entry.js} +1 -1
  365. package/lib/duet/{p-b7258471.system.entry.js → p-6ee0d230.system.entry.js} +1 -1
  366. package/lib/duet/{p-a4fecc2a.system.entry.js → p-71f101cd.system.entry.js} +1 -1
  367. package/lib/duet/{p-44f75945.system.entry.js → p-76bc4957.system.entry.js} +1 -1
  368. package/lib/duet/{p-79a0303a.entry.js → p-76f1a474.entry.js} +1 -1
  369. package/lib/duet/{p-2125dbcc.entry.js → p-77621947.entry.js} +1 -1
  370. package/lib/duet/{p-440b5a0b.system.entry.js → p-78232810.system.entry.js} +1 -1
  371. package/lib/duet/{p-bf3f3378.system.entry.js → p-78b32f51.system.entry.js} +1 -1
  372. package/lib/duet/{p-d081e0b5.entry.js → p-79de6bd7.entry.js} +1 -1
  373. package/lib/duet/{p-24416359.system.js → p-7a20254b.system.js} +1 -1
  374. package/lib/duet/{p-53a2faad.entry.js → p-88390f0d.entry.js} +1 -1
  375. package/lib/duet/{p-5e11fc0a.entry.js → p-887ffbd4.entry.js} +1 -1
  376. package/lib/duet/{p-4c077348.entry.js → p-8efa2c37.entry.js} +1 -1
  377. package/lib/duet/{p-c66cf39a.entry.js → p-8f2400f8.entry.js} +1 -1
  378. package/lib/duet/{p-f842af43.entry.js → p-910b09cf.entry.js} +1 -1
  379. package/lib/duet/{p-4fa30ba5.entry.js → p-9176e0c2.entry.js} +1 -1
  380. package/lib/duet/{p-e28505fc.system.entry.js → p-9319a23f.system.entry.js} +1 -1
  381. package/lib/duet/{p-9b6f38d0.system.entry.js → p-93d01125.system.entry.js} +1 -1
  382. package/lib/duet/{p-a6d7cec7.entry.js → p-99efd567.entry.js} +1 -1
  383. package/lib/duet/{p-8552435a.entry.js → p-9b216691.entry.js} +1 -1
  384. package/lib/duet/{p-b48540ec.entry.js → p-9b364492.entry.js} +1 -1
  385. package/lib/duet/{p-2c56dea2.system.entry.js → p-9ca2c729.system.entry.js} +1 -1
  386. package/lib/duet/{p-8a67cacf.entry.js → p-9ddd62a5.entry.js} +1 -1
  387. package/lib/duet/{p-bbe6570b.system.entry.js → p-a1fba72f.system.entry.js} +1 -1
  388. package/lib/duet/{p-3ca9d493.system.entry.js → p-a4054df1.system.entry.js} +1 -1
  389. package/lib/duet/{p-7b9a8f21.entry.js → p-a47ff0f9.entry.js} +1 -1
  390. package/lib/duet/{p-77719ed5.entry.js → p-a8783554.entry.js} +1 -1
  391. package/lib/duet/{p-fd2e3085.system.entry.js → p-a8d4a4d8.system.entry.js} +1 -1
  392. package/lib/duet/{p-4fa7918f.entry.js → p-abef55b3.entry.js} +1 -1
  393. package/lib/duet/{p-40f06c96.system.entry.js → p-ad2e7d4d.system.entry.js} +1 -1
  394. package/lib/duet/{p-07100b22.system.entry.js → p-aece6518.system.entry.js} +1 -1
  395. package/lib/duet/{p-cb0e9e0f.system.entry.js → p-afe99772.system.entry.js} +1 -1
  396. package/lib/duet/{p-b4eb44f3.system.entry.js → p-b0ff9649.system.entry.js} +1 -1
  397. package/lib/duet/{p-b6557224.entry.js → p-b3cd865e.entry.js} +1 -1
  398. package/lib/duet/p-b4147628.system.entry.js +4 -0
  399. package/lib/duet/{p-e2ab2ed2.entry.js → p-b4534f33.entry.js} +1 -1
  400. package/lib/duet/{p-f49ad9ba.entry.js → p-b4c654b6.entry.js} +1 -1
  401. package/lib/duet/{p-24dbfa5d.system.entry.js → p-b53c5f39.system.entry.js} +1 -1
  402. package/lib/duet/{p-64c2e764.entry.js → p-b55b77a8.entry.js} +1 -1
  403. package/lib/duet/{p-35eb299f.entry.js → p-b9478c40.entry.js} +1 -1
  404. package/lib/duet/{p-3386393f.entry.js → p-ba13e78e.entry.js} +1 -1
  405. package/lib/duet/{p-a2d683b8.system.entry.js → p-bd08cea3.system.entry.js} +1 -1
  406. package/lib/duet/{p-b735ecf8.system.entry.js → p-bf2e4020.system.entry.js} +1 -1
  407. package/lib/duet/{p-e6cbc0f2.system.entry.js → p-bfe7345f.system.entry.js} +1 -1
  408. package/lib/duet/{p-5cfee997.system.entry.js → p-c2d0873d.system.entry.js} +1 -1
  409. package/lib/duet/{p-1e8bbcc0.entry.js → p-c74758d9.entry.js} +1 -1
  410. package/lib/duet/{p-f7671b93.entry.js → p-c9fb1a93.entry.js} +1 -1
  411. package/lib/duet/{p-45fadc20.entry.js → p-cbb47ed3.entry.js} +1 -1
  412. package/lib/duet/{p-1e66db6e.entry.js → p-cbdba86b.entry.js} +1 -1
  413. package/lib/duet/{p-0ba0c791.entry.js → p-cd396f47.entry.js} +1 -1
  414. package/lib/duet/{p-ba2d5af8.system.entry.js → p-cd5f4075.system.entry.js} +1 -1
  415. package/lib/duet/{p-cb64d5ec.system.js → p-cfd6cdac.system.js} +1 -1
  416. package/lib/duet/{p-e6f4d214.system.entry.js → p-d1785147.system.entry.js} +1 -1
  417. package/lib/duet/{p-0da0073c.entry.js → p-d2e7c4ba.entry.js} +1 -1
  418. package/lib/duet/{p-19fe2a5b.entry.js → p-d32483d3.entry.js} +1 -1
  419. package/lib/duet/{p-a03c4b96.entry.js → p-d3671b0b.entry.js} +1 -1
  420. package/lib/duet/{p-37800167.entry.js → p-d49b2ec8.entry.js} +1 -1
  421. package/lib/duet/{p-86699ede.entry.js → p-d627991d.entry.js} +1 -1
  422. package/lib/duet/{p-9f13f752.entry.js → p-d849f056.entry.js} +1 -1
  423. package/lib/duet/{p-b570d2d6.system.entry.js → p-d921dc51.system.entry.js} +1 -1
  424. package/lib/duet/{p-ece667ef.system.entry.js → p-da9a1543.system.entry.js} +1 -1
  425. package/lib/duet/{p-bbc41d8a.system.entry.js → p-db6220cc.system.entry.js} +1 -1
  426. package/lib/duet/{p-3df0b40f.system.entry.js → p-df5bd426.system.entry.js} +1 -1
  427. package/lib/duet/{p-1b03146f.entry.js → p-df714cea.entry.js} +1 -1
  428. package/lib/duet/{p-cfa46780.entry.js → p-e214ba3f.entry.js} +1 -1
  429. package/lib/duet/{p-20801db5.system.entry.js → p-e2dc45d0.system.entry.js} +1 -1
  430. package/lib/duet/{p-82b8661a.system.entry.js → p-e418ecc5.system.entry.js} +1 -1
  431. package/lib/duet/{p-aa324bd1.entry.js → p-e45e1ad1.entry.js} +1 -1
  432. package/lib/duet/{p-0a4cf56e.system.entry.js → p-e60bf586.system.entry.js} +1 -1
  433. package/lib/duet/{p-ee4d29fc.entry.js → p-e73ec26d.entry.js} +1 -1
  434. package/lib/duet/{p-1b82011c.entry.js → p-e83d0d2b.entry.js} +1 -1
  435. package/lib/duet/{p-d3ad5cbd.system.entry.js → p-eafc21dd.system.entry.js} +1 -1
  436. package/lib/duet/{p-d5893bb7.system.entry.js → p-eb4526a5.system.entry.js} +1 -1
  437. package/lib/duet/{p-8cba4257.system.entry.js → p-ee2526a2.system.entry.js} +1 -1
  438. package/lib/duet/{p-e3a5da37.system.entry.js → p-f1caf89d.system.entry.js} +1 -1
  439. package/lib/duet/{p-dd5185ba.system.entry.js → p-f3622582.system.entry.js} +1 -1
  440. package/lib/duet/{p-febe0a87.entry.js → p-f396711d.entry.js} +1 -1
  441. package/lib/duet/{p-3062ea6f.entry.js → p-f3d8db78.entry.js} +1 -1
  442. package/lib/duet/{p-8635c990.system.entry.js → p-f4821cf8.system.entry.js} +1 -1
  443. package/lib/duet/p-f7c29a40.js +4 -0
  444. package/lib/duet/{p-02ca0d7a.entry.js → p-f972232d.entry.js} +1 -1
  445. package/lib/duet/{p-304abe60.system.entry.js → p-faabf909.system.entry.js} +1 -1
  446. package/lib/duet/{p-465754cc.system.entry.js → p-fafb02c5.system.entry.js} +1 -1
  447. package/lib/duet/{p-9150fb65.entry.js → p-fc99a8d0.entry.js} +1 -1
  448. package/lib/duet/{p-42700c22.system.entry.js → p-fcdb9075.system.entry.js} +1 -1
  449. package/lib/esm/duet-action-button.entry.js +1 -1
  450. package/lib/esm/duet-alert.entry.js +22 -4
  451. package/lib/esm/duet-badge.entry.js +1 -1
  452. package/lib/esm/duet-banner.entry.js +1 -1
  453. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  454. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  455. package/lib/esm/duet-button_2.entry.js +1 -1
  456. package/lib/esm/duet-callout.entry.js +1 -1
  457. package/lib/esm/duet-caption_4.entry.js +3 -3
  458. package/lib/esm/duet-card.entry.js +1 -1
  459. package/lib/esm/duet-checkbox.entry.js +1 -1
  460. package/lib/esm/duet-checkmark.entry.js +1 -1
  461. package/lib/esm/duet-chip.entry.js +1 -1
  462. package/lib/esm/duet-choice_2.entry.js +9 -4
  463. package/lib/esm/duet-collapsible.entry.js +1 -1
  464. package/lib/esm/duet-combobox.entry.js +1 -1
  465. package/lib/esm/duet-contact-card.entry.js +1 -1
  466. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  467. package/lib/esm/duet-date-picker.entry.js +2 -2
  468. package/lib/esm/duet-divider_2.entry.js +1 -1
  469. package/lib/esm/duet-editable-table_3.entry.js +1 -1
  470. package/lib/esm/duet-empty-state.entry.js +1 -1
  471. package/lib/esm/duet-fieldset.entry.js +1 -1
  472. package/lib/esm/duet-file-chooser.entry.js +1 -1
  473. package/lib/esm/duet-footer.entry.js +1 -1
  474. package/lib/esm/duet-grid_2.entry.js +1 -1
  475. package/lib/esm/duet-header_2.entry.js +1 -1
  476. package/lib/esm/duet-hero.entry.js +1 -1
  477. package/lib/esm/duet-icon.entry.js +1 -1
  478. package/lib/esm/duet-input_2.entry.js +1 -1
  479. package/lib/esm/duet-layout.entry.js +1 -1
  480. package/lib/esm/duet-list_2.entry.js +1 -1
  481. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  482. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  483. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  484. package/lib/esm/duet-menu-bar-item.entry.js +1 -1
  485. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  486. package/lib/esm/duet-menu-bar.entry.js +1 -1
  487. package/lib/esm/duet-modal.entry.js +2 -2
  488. package/lib/esm/duet-multiselect.entry.js +1 -1
  489. package/lib/esm/duet-nav.entry.js +1 -1
  490. package/lib/esm/duet-notification_2.entry.js +1 -1
  491. package/lib/esm/duet-number-input.entry.js +1 -1
  492. package/lib/esm/duet-overlay.entry.js +1 -1
  493. package/lib/esm/duet-page-heading.entry.js +1 -1
  494. package/lib/esm/duet-pagination_2.entry.js +1 -1
  495. package/lib/esm/duet-popup-menu-item.entry.js +1 -1
  496. package/lib/esm/duet-popup-menu.entry.js +2 -2
  497. package/lib/esm/duet-progress.entry.js +1 -1
  498. package/lib/esm/duet-promo-card.entry.js +1 -1
  499. package/lib/esm/duet-radio_2.entry.js +1 -1
  500. package/lib/esm/duet-range-slider.entry.js +1 -1
  501. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  502. package/lib/esm/duet-section-layout.entry.js +1 -1
  503. package/lib/esm/duet-select.entry.js +1 -1
  504. package/lib/esm/duet-shaped-image.entry.js +1 -1
  505. package/lib/esm/duet-show-more.entry.js +1 -1
  506. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  507. package/lib/esm/duet-slideout-link.entry.js +1 -1
  508. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  509. package/lib/esm/duet-slideout-panel.entry.js +2 -2
  510. package/lib/esm/duet-slideout.entry.js +2 -2
  511. package/lib/esm/duet-step_2.entry.js +1 -1
  512. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  513. package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
  514. package/lib/esm/duet-submenu-bar-item.entry.js +1 -1
  515. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  516. package/lib/esm/duet-submenu-bar.entry.js +1 -1
  517. package/lib/esm/duet-textarea.entry.js +1 -1
  518. package/lib/esm/duet-toggle.entry.js +1 -1
  519. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  520. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  521. package/lib/esm/duet-toolbar-item.entry.js +1 -1
  522. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  523. package/lib/esm/duet-toolbar.entry.js +1 -1
  524. package/lib/esm/duet-tooltip-button_2.entry.js +2 -2
  525. package/lib/esm/duet-tooltip.entry.js +1 -1
  526. package/lib/esm/duet-tray.entry.js +1 -1
  527. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  528. package/lib/esm/duet-upload-item.entry.js +1 -1
  529. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  530. package/lib/esm/duet.js +3 -3
  531. package/lib/esm/{focus-utils-7de67c5d.js → focus-utils-b121d217.js} +1 -1
  532. package/lib/esm/{index-9329015c.js → index-ae33ad50.js} +1 -1
  533. package/lib/esm/loader.js +3 -3
  534. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  535. package/lib/esm-es5/duet-alert.entry.js +2 -2
  536. package/lib/esm-es5/duet-badge.entry.js +1 -1
  537. package/lib/esm-es5/duet-banner.entry.js +1 -1
  538. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  539. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  540. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  541. package/lib/esm-es5/duet-callout.entry.js +1 -1
  542. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  543. package/lib/esm-es5/duet-card.entry.js +1 -1
  544. package/lib/esm-es5/duet-checkbox.entry.js +2 -2
  545. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  546. package/lib/esm-es5/duet-chip.entry.js +1 -1
  547. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  548. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  549. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  550. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  551. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  552. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  553. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  554. package/lib/esm-es5/duet-editable-table_3.entry.js +2 -2
  555. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  556. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  557. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  558. package/lib/esm-es5/duet-footer.entry.js +1 -1
  559. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  560. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  561. package/lib/esm-es5/duet-hero.entry.js +1 -1
  562. package/lib/esm-es5/duet-icon.entry.js +2 -2
  563. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  564. package/lib/esm-es5/duet-layout.entry.js +1 -1
  565. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  566. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  567. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  568. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  569. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  570. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  571. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  572. package/lib/esm-es5/duet-modal.entry.js +1 -1
  573. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  574. package/lib/esm-es5/duet-nav.entry.js +1 -1
  575. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  576. package/lib/esm-es5/duet-number-input.entry.js +2 -2
  577. package/lib/esm-es5/duet-overlay.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 +2 -2
  584. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  585. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  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 +1 -1
  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-item.entry.js +1 -1
  600. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  601. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  602. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  603. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  604. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  605. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  606. package/lib/esm-es5/duet-toolbar-item.entry.js +1 -1
  607. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  608. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  609. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  610. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  611. package/lib/esm-es5/duet-tray.entry.js +1 -1
  612. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  613. package/lib/esm-es5/duet-upload-item.entry.js +1 -1
  614. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  615. package/lib/esm-es5/duet.js +1 -1
  616. package/lib/esm-es5/focus-utils-b121d217.js +4 -0
  617. package/lib/esm-es5/{index-9329015c.js → index-ae33ad50.js} +1 -1
  618. package/lib/esm-es5/loader.js +1 -1
  619. package/lib/types/components/duet-alert/duet-alert.d.ts +11 -0
  620. package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +1 -0
  621. package/lib/types/components.d.ts +8 -0
  622. package/package.json +5 -5
  623. package/lib/duet/p-1a59b1f3.system.entry.js +0 -4
  624. package/lib/duet/p-3e0af14b.js +0 -4
  625. package/lib/duet/p-564f5f99.system.js +0 -4
  626. package/lib/duet/p-5b11ef9f.entry.js +0 -4
  627. package/lib/duet/p-b80bbc34.entry.js +0 -4
  628. package/lib/esm-es5/focus-utils-7de67c5d.js +0 -4
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,o,n){function u(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,r){function i(t){try{d(n.next(t))}catch(t){r(t)}}function a(t){try{d(n["throw"](t))}catch(t){r(t)}}function d(t){t.done?o(t.value):u(t.value).then(i,a)}d((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,u,r,i;return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(t){return function(e){return d([t,e])}}function d(a){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,a[0]&&(o=0)),o)try{if(n=1,u&&(r=a[0]&2?u["return"]:a[0]?u["throw"]||((r=u["return"])&&r.call(u),0):u.next)&&!(r=r.call(u,a[1])).done)return r;if(u=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:o.label++;return{value:a[1],done:false};case 5:o.label++;u=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(r=o.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(a[0]===6&&o.label<r[1]){o.label=r[1];r=a;break}if(r&&o.label<r[2]){o.label=r[2];o.ops.push(a);break}if(r[2])o.ops.pop();o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t];u=0}finally{n=r=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-9329015c.js";import{i as inheritGlobalTheme}from"./themeable-component-724c0f7e.js";import{D as DuetStringsExternalDefaults,a as DuetStringsLoadingDefaults}from"./common-strings-7c7f8e40.js";import{a as getLanguage,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-00ca4c55.js";import{g as getColorByName}from"./token-utils-be83d039.js";import"./string-utils-ca039233.js";import"./tokens.module-3547915d.js";var duetButtonCss='*,*::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;z-index:1;display:inline-flex;width:auto;max-width:100%;font-size:0;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){:host{width:100%}}:host(.square){margin-right:12px !important}:host(.square):last-child,:host(.square):last-of-type{margin-right:0 !important}:host(.input-button){z-index:250}:host(.duet-small),:host(.duet-x-small){margin-right:4px !important;margin-bottom:8px !important}:host(.duet-small):last-child,:host(.duet-small):last-of-type,:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){:host(.duet-small),:host(.duet-x-small){width:auto}}:host(.duet-x-small){margin-right:2px !important}:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}:host(.square.duet-small),:host(.square.duet-x-small){margin-right:8px !important}:host(.square.duet-small):last-child,:host(.square.duet-small):last-of-type,:host(.square.duet-x-small):last-child,:host(.square.duet-x-small):last-of-type{margin-right:0 !important}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}:host(.duet-fixed){width:auto !important}:host(:last-child){margin-right:0 !important}.duet-button-container{position:relative;display:block;width:100%}.duet-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;align-items:center;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:600;line-height:1.1;color:rgb(0, 119, 179) !important;text-align:center;text-decoration:none;cursor:pointer;background:transparent;border-style:solid;border-width:1px;transition:background-color 300ms ease, color 300ms ease, border 300ms ease, outline 300ms ease, padding 300ms ease, box-shadow 300ms ease}.duet-button.duet-p-0{padding:0 !important}.duet-button.duet-m-0{margin:0 !important}.duet-button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-button:focus,.duet-button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-button.duet-button-size-medium{height:50px;padding-right:30px;padding-left:30px;font-size:1rem;border-radius:25px}.duet-theme-turva .duet-button.duet-button-size-medium{padding-right:24px;padding-left:24px;border-radius:12.5px}.duet-button.duet-button-size-medium.square{border-radius:12.5px}.duet-button.duet-button-size-medium.icon-left{padding-left:24px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-left{padding-left:18px}.duet-button.duet-button-size-medium.icon-right{padding-right:24px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-right{padding-right:18px}.duet-button.duet-button-size-small{height:40px;padding-right:20px;padding-left:20px;font-size:0.875rem;border-radius:20px}.duet-theme-turva .duet-button.duet-button-size-small{padding-right:18px;padding-left:18px;border-radius:10px}.duet-button.duet-button-size-small.square{border-radius:10px}.duet-button.duet-button-size-small.icon-left{padding-left:18px}.duet-theme-turva .duet-button.duet-button-size-small.icon-left{padding-left:14px}.duet-button.duet-button-size-small.icon-right{padding-right:18px}.duet-theme-turva .duet-button.duet-button-size-small.icon-right{padding-right:14px}.duet-button.duet-button-size-x-small{height:32px;padding-right:12px;padding-left:12px;font-size:0.75rem;border-radius:8px}.duet-button.duet-button-size-x-small.icon-left{padding-left:10px}.duet-button.duet-button-size-x-small.icon-right{padding-right:10px}.duet-button.plain.duet-p-0{height:auto}.duet-button:not(.input-button-primary,.input-button-secondary,.input-button-embedded){font-variant-numeric:tabular-nums}.duet-button.duet-button-text-center{text-align:center !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only){min-width:48px}.duet-button.duet-button-is-small:not(.duet-button-icon-only).plain{padding-right:0 !important;padding-left:0 !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only).duet-p-0{padding:0 !important}.duet-theme-turva .duet-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(198, 12, 48) !important}.duet-button .duet-button-contents{position:relative;display:flex;gap:10px;align-items:center;margin:0 auto;pointer-events:none}.duet-button .duet-button-contents.icon-right{flex-direction:row-reverse}.duet-button .duet-button-contents .duet-button-contents-slot{position:relative;top:0}.duet-button.duet-no-wrap{white-space:nowrap}.duet-button svg{width:100%;min-width:100%;fill:currentColor}.duet-button .duet-button-icon{display:flex;align-items:center}.duet-button .duet-button-icon duet-icon{width:16px;height:16px}.duet-button .duet-button-icon.large duet-icon{width:20px;height:20px}.duet-button .duet-button-icon.medium-small duet-icon{width:10px;height:10px}.duet-button .duet-button-icon.small duet-icon{width:7px;height:7px}.duet-button:active:not([disabled]){opacity:0.75;transition:none}.duet-button.default{background:rgb(255, 255, 255);border-color:rgb(207, 210, 212)}.duet-theme-turva .duet-button.default{color:rgb(198, 12, 48) !important;border-color:rgb(228, 228, 230)}.duet-button.default:hover{border-color:rgb(0, 119, 179);outline:2px solid rgb(0, 119, 179);outline-offset:-2px}.duet-theme-turva .duet-button.default:hover{border-color:rgb(198, 12, 48);outline-color:rgb(198, 12, 48)}.duet-button.default.duet-button-negative{background-color:rgb(255, 255, 255)}.duet-theme-turva .duet-button.default.duet-button-negative{background-color:rgb(228, 228, 230) !important}.duet-button.default.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.default.duet-button-negative:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-button.primary,.duet-button.input-button-primary{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.primary,.duet-theme-turva .duet-button.input-button-primary{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48);border-color:rgb(198, 12, 48)}.duet-button.primary:hover,.duet-button.input-button-primary:hover{background:#005f8f;border-color:#005f8f;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-theme-turva .duet-button.primary:hover,.duet-theme-turva .duet-button.input-button-primary:hover{background:rgb(148, 9, 37);border-color:rgb(148, 9, 37)}.duet-button.primary:focus,.duet-button.input-button-primary:focus{outline:0;box-shadow:0 0 0 1px #fff, 0 0 0 4px rgba(0, 119, 179, 0.75)}.duet-theme-turva .duet-button.primary:focus,.duet-theme-turva .duet-button.input-button-primary:focus{box-shadow:0 0 0 1px #fff, 0 0 0 4px rgba(23, 28, 58, 0.75)}.duet-button.secondary,.duet-button.input-button-secondary,.duet-button.input-button-embedded{color:rgb(0, 41, 77) !important;background:transparent;border-color:rgb(0, 41, 77)}.duet-theme-turva .duet-button.secondary,.duet-theme-turva .duet-button.input-button-secondary,.duet-theme-turva .duet-button.input-button-embedded{color:rgb(23, 28, 58) !important;border-color:rgb(23, 28, 58)}.duet-button.secondary:hover,.duet-button.input-button-secondary:hover,.duet-button.input-button-embedded:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.secondary:hover,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-theme-turva .duet-button.input-button-embedded:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-button.secondary.duet-button-negative,.duet-button.input-button-secondary.duet-button-negative,.duet-button.input-button-embedded.duet-button-negative{color:rgb(225, 227, 230) !important;border-color:rgb(255, 255, 255)}.duet-theme-turva .duet-button.secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative{color:rgb(228, 228, 230) !important}.duet-button.secondary.duet-button-negative:hover,.duet-button.input-button-secondary.duet-button-negative:hover,.duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-button.input-button-embedded{width:40px;min-width:40px !important;min-height:40px !important;margin:4px !important;border-width:0 !important;border-radius:4px !important}.duet-button.input-button{height:auto}.duet-button.negative{color:rgb(0, 41, 77) !important;background:rgb(255, 255, 255);border-color:rgb(255, 255, 255)}.duet-theme-turva .duet-button.negative{color:rgb(23, 28, 58) !important}.duet-button.negative:hover{color:rgb(255, 255, 255) !important;background:transparent;border-color:rgb(255, 255, 255)}.duet-button.negative:focus{outline:0;box-shadow:0 0 0 1px #00294d, 0 0 0 4px rgba(255, 255, 255, 0.7)}.duet-theme-turva .duet-button.negative:focus{box-shadow:0 0 0 1px #0077b3, 0 0 0 4px rgba(255, 255, 255, 0.7)}.duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(222, 35, 98);border-color:rgb(222, 35, 98)}.duet-theme-turva .duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(224, 42, 13);border-color:rgb(224, 42, 13)}.duet-button.destructive-primary:hover{background:#b21c4e;border-color:#b21c4e;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-theme-turva .duet-button.destructive-primary:hover{background:#b3220a}.duet-button.destructive,.duet-button.destructive-secondary{color:rgb(222, 35, 98) !important;background:rgb(255, 255, 255);border-color:rgb(222, 35, 98)}.duet-theme-turva .duet-button.destructive,.duet-theme-turva .duet-button.destructive-secondary{color:rgb(224, 42, 13) !important;background:rgb(255, 255, 255);border-color:rgb(224, 42, 13)}.duet-button.destructive:hover,.duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#b21c4e;border-color:#b21c4e}.duet-theme-turva .duet-button.destructive:hover,.duet-theme-turva .duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#b3220a;border-color:#b3220a}.duet-button.plain{min-width:48px;padding-right:0 !important;padding-left:0 !important;line-height:1.5;text-align:left;background:transparent;border:0;border-color:transparent;border-radius:4px}.duet-theme-turva .duet-button.plain{color:rgb(198, 12, 48) !important;background:transparent;border-color:transparent}.duet-button.plain.duet-p-0 .duet-button-contents{height:auto}.duet-button.plain[disabled]{color:rgb(101, 119, 135) !important;cursor:not-allowed;background:transparent !important;border-color:transparent !important}.duet-theme-turva .duet-button.plain[disabled]{color:transparent !important;cursor:not-allowed;background:transparent !important;border-color:rgb(228, 228, 230) !important}.duet-button.plain:hover{color:rgb(0, 77, 128) !important;background:transparent !important}.duet-theme-turva .duet-button.plain:hover{color:rgb(148, 9, 37) !important}.duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-theme-turva .duet-button.plain.duet-button-negative{color:rgb(228, 228, 230) !important}.duet-button.plain.duet-button-negative:hover{color:rgb(0, 119, 179) !important}.duet-theme-turva .duet-button.plain.duet-button-negative:hover{color:rgb(198, 12, 48) !important}.duet-button.duet-button-icon-only{min-width:48px;min-height:48px;padding:0 !important}.duet-button.duet-button-icon-only .duet-button-contents{position:static}.duet-button.duet-button-icon-only .duet-button-icon.left.large,.duet-button.duet-button-icon-only .duet-button-icon.left.medium,.duet-button.duet-button-icon-only .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded{box-sizing:content-box;min-width:48px;min-height:48px;padding:0 !important;border-width:1px;border-top-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:0}.duet-button.duet-button.input-button-primary .duet-button-contents,.duet-button.duet-button.input-button-secondary .duet-button-contents,.duet-button.duet-button.input-button-embedded .duet-button-contents{position:static}.duet-button.duet-button.input-button-primary .duet-button-icon.left.large,.duet-button.duet-button.input-button-primary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-primary .duet-button-icon.left.small,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.large,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.small,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.large,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.medium,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-embedded{border-left-width:0}.duet-button.square{width:52px;min-width:auto !important;padding:0 !important;font-size:1rem;border-color:rgb(207, 210, 212);border-width:1px}.duet-button.square.duet-button-size-small{width:42px;font-size:0.875rem}.duet-button.square.duet-button-size-x-small{width:34px;font-size:0.875rem}.duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48);border-color:rgb(198, 12, 48)}.duet-theme-turva .duet-button.square{border-color:rgb(228, 228, 230)}.duet-button.square:hover{border-color:rgb(0, 119, 179);outline:2px solid rgb(0, 119, 179);outline-offset:-2px}.duet-theme-turva .duet-button.square:hover{border-color:rgb(198, 12, 48);outline-color:rgb(198, 12, 48)}.duet-button.square .duet-button-contents{gap:0}.duet-button[disabled],.duet-button[disabled]:hover,.duet-button.duet-button-negative[disabled],.duet-button.duet-button-negative[disabled]:hover{color:rgb(101, 119, 135) !important;cursor:not-allowed;background:rgb(225, 227, 230) !important;border-color:rgb(225, 227, 230) !important;outline-color:rgb(225, 227, 230) !important;box-shadow:none !important}.duet-theme-turva .duet-button[disabled],.duet-theme-turva .duet-button[disabled]:hover,.duet-theme-turva .duet-button.duet-button-negative [disabled],.duet-theme-turva .duet-button.duet-button-negative [disabled]:hover{color:rgb(116, 116, 117) !important;cursor:not-allowed;background:rgb(228, 228, 230) !important;border-color:rgb(228, 228, 230) !important;outline-color:rgb(228, 228, 230) !important}.duet-button-is-loading.primary,.duet-button-is-loading.input-button-primary{color:rgb(255, 255, 255)}.duet-button-is-loading.default{color:rgb(0, 119, 179)}.duet-button-is-loading.default.duet-theme-turva{color:rgb(198, 12, 48)}.duet-button-is-loading .duet-button-contents{visibility:hidden;opacity:0}';var DuetButton=function(){function t(t){var e=this;registerInstance(this,t);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.handleClick=function(t){if(!e.url&&e.element.closest("form")){t.preventDefault();e.proxyButton.click()}};this.onFocus=function(){e.duetFocus.emit()};this.onBlur=function(){e.duetBlur.emit()};this.accessibleLabel=undefined;this.accessibleControls=undefined;this.accessiblePopup="false";this.accessibleActiveDescendant=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleExpanded=undefined;this.accessiblePressed=undefined;this.loading=false;this.variation="default";this.negative=false;this.theme="";this.margin="auto";this.padding="auto";this.centerText=false;this.wrapping="auto";this.expand=false;this.fixed=false;this.disabled=false;this.name=undefined;this.value=undefined;this.identifier=undefined;this.submit=false;this.external=false;this.language=getLanguage();this.accessibleLabelExternalDefaults=DuetStringsExternalDefaults;this.accessibleLabelExternal=getLocaleString(this.accessibleLabelExternalDefaults);this.accessibleLabelLoadingDefaults=DuetStringsLoadingDefaults;this.accessibleLabelLoading=getLocaleString(this.accessibleLabelLoadingDefaults);this.icon="";this.color="";this.iconRight=false;this.iconSize="medium";this.size="medium";this.iconOnly=false;this.url=undefined}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);if(this.url&&this.external&&this.icon){console.warn("[DUET]: Button used as an external link will override any icon that is set")}};t.prototype.connectedCallback=function(){this.proxyButton=document.createElement("button");this.proxyButton.style.display="none";this.syncToProxyButton();connectLanguageChangeObserver(this,[{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"},{prop:"accessibleLabelLoading",defaults:"accessibleLabelLoadingDefaults"}]);if(!this.url&&this.element.closest("form")){this.element.insertAdjacentElement("beforebegin",this.proxyButton)}};t.prototype.disconnectedCallback=function(){if(this.proxyButton){this.proxyButton.remove()}this.proxyButton=null;disconnectLanguageChangeObserver(this)};t.prototype.syncToProxyButton=function(){this.proxyButton.type=this.getButtonType();this.proxyButton.disabled=this.disabled;if(this.name!=null){this.proxyButton.name=this.name}else{this.proxyButton.removeAttribute("name")}if(this.value!=null){this.proxyButton.value=this.value}else{this.proxyButton.removeAttribute("value")}};t.prototype.getButtonType=function(){return this.submit?"submit":"button"};t.prototype.getButtonIconSize=function(){switch(this.iconSize){case"small":return"small";case"medium-small":return"medium-small";case"medium":return"medium";case"large":return"large";default:return"medium"}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeButton){this.nativeButton.focus(t)}return[2]}))}))};t.prototype.render=function(){var t,e,o,n;var u=this;var r,i;var a=this.external&&this.url;var d=a?"action-new-window":this.icon;var s=a?true:this.iconRight;var b=h("span",{class:{"duet-button-contents":true,"icon-right":s},style:{color:getColorByName(this.color)}},d&&h("span",{"aria-hidden":"true",class:(t={"duet-button-icon":true,left:!s,right:s},t[this.getButtonIconSize()]=true,t)},h("duet-icon",{size:"auto",margin:"none",name:d,color:"currentColor"})),h("span",{class:"duet-button-contents-slot"},h("slot",null)));var l=this.size=="medium"||this.size=="small"||this.size=="x-small"?this.size:"medium";var p={onFocus:this.onFocus,onBlur:this.onBlur,ref:function(t){return u.nativeButton=t},id:this.identifier,class:(e={"duet-m-0":this.margin==="none","duet-p-0":this.padding==="none","duet-no-wrap":this.wrapping==="none","duet-button":true,"duet-button-is-small":this.size==="small"},e["duet-button-size-".concat(l)]=true,e["duet-button-icon-only"]=this.iconOnly,e["duet-button-text-center"]=this.centerText,e["duet-button-negative"]=this.negative||this.variation==="negative",e[this.variation]=true,e["input-button"]=(r=this.variation)===null||r===void 0?void 0:r.startsWith("input-button"),e.disabled=this.disabled,e.icon=!!d,e["icon-right"]=s,e["icon-left"]=!!d&&!s,e[this.getButtonIconSize()]=true,e),"aria-controls":this.accessibleControls,"aria-label":this.accessibleLabel,"aria-expanded":this.accessibleExpanded!=null?this.accessibleExpanded.toString():undefined,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription};return h(Host,{onClick:this.handleClick,class:(o={"duet-m-0":this.margin==="none","duet-small":this.size==="small","duet-x-small":this.size==="x-small","duet-fixed":this.fixed,"duet-expand":this.expand},o[this.variation]=true,o["input-button"]=(i=this.variation)===null||i===void 0?void 0:i.startsWith("input-button"),o)},h("span",{class:(n={"duet-button-container":true,"duet-button-is-loading":this.loading,"duet-theme-turva":this.theme==="turva","duet-button-negative":this.negative||this.variation==="negative"},n[this.variation]=true,n)},this.url?h("a",Object.assign({},p,{href:this.url,target:this.external?"_blank":"_self",rel:this.external?"noopener":undefined}),b,this.external&&h("duet-visually-hidden",null,", ",this.accessibleLabelExternal)):h("button",Object.assign({},p,{type:this.getButtonType(),disabled:this.disabled,name:this.name,value:this.value,"aria-pressed":this.accessiblePressed!=null?this.accessiblePressed.toString():undefined,"aria-haspopup":this.accessiblePopup!=null?this.accessiblePopup.toString():undefined,"aria-disabled":this.disabled}),b,this.loading&&h("duet-visually-hidden",null," ",this.accessibleLabelLoading," ")),this.loading&&h("duet-spinner",{color:"currentColor"})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["syncToProxyButton"],submit:["syncToProxyButton"],value:["syncToProxyButton"],name:["syncToProxyButton"]}},enumerable:false,configurable:true});return t}();DuetButton.style=duetButtonCss;var duetSpinnerCss=':host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute;top:50%;left:50%;z-index:800;max-width:100%}:host(.duet-theme-default) .duet-spinner{color:rgb(0, 119, 179) !important}:host(.duet-theme-turva) .duet-spinner{color:rgb(198, 12, 48) !important}:host(.duet-custom-color){color:inherit}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-spinner{-webkit-user-select:none;user-select:none;position:absolute;top:50%;left:50%;z-index:800;width:24px;height:24px;color:rgb(0, 119, 179);border:2px solid transparent;border-left:2px solid currentColor;border-radius:50%;transform:translateZ(0) translateX(-50%) translateY(-50%);transform-origin:0% 0%;animation:duetRotate 0.6s linear infinite}.duet-spinner::after{position:absolute;top:50%;left:50%;z-index:200;box-sizing:content-box;width:100%;height:100%;overflow:hidden;content:"";border:2px solid currentColor;border-radius:50%;opacity:0.3;transform:translateZ(0) translateX(-50%) translateY(-50%);transform-origin:0% 0%}.duet-spinner.medium{width:36px;height:36px;border-width:4px}.duet-spinner.medium::after{border-width:4px}.duet-spinner.large{width:72px;height:72px;border-width:8px}.duet-spinner.large::after{border-width:8px}@keyframes duetRotate{0%{transform:translateZ(0) rotate(0deg) translateX(-50%) translateY(-50%)}100%{transform:translateZ(0) rotate(360deg) translateX(-50%) translateY(-50%)}}';var DuetSpinner=function(){function t(t){registerInstance(this,t);this.accessibleLabel=undefined;this.color="gray-lightest";this.size="small";this.theme=""}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.render=function(){var t;var e=this.color==="currentColor"?"currentColor":getColorByName(this.color);return h(Host,{class:{"duet-custom-color":this.color!=="currentColor"&&this.theme!=="turva"&&this.theme!=="default","duet-theme-turva":this.theme==="turva"&&this.color!=="currentColor","duet-theme-default":this.theme==="default"&&this.color!=="currentColor"}},h("div",{class:(t={"duet-spinner":true},t[this.size]=true,t),style:{color:e},"aria-label":this.accessibleLabel}))};return t}();DuetSpinner.style=duetSpinnerCss;export{DuetButton as duet_button,DuetSpinner as duet_spinner};
4
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-ae33ad50.js";import{i as inheritGlobalTheme}from"./themeable-component-724c0f7e.js";import{D as DuetStringsExternalDefaults,a as DuetStringsLoadingDefaults}from"./common-strings-7c7f8e40.js";import{a as getLanguage,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-00ca4c55.js";import{g as getColorByName}from"./token-utils-be83d039.js";import"./string-utils-ca039233.js";import"./tokens.module-3547915d.js";var duetButtonCss='*,*::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;z-index:1;display:inline-flex;width:auto;max-width:100%;font-size:0;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){:host{width:100%}}:host(.square){margin-right:12px !important}:host(.square):last-child,:host(.square):last-of-type{margin-right:0 !important}:host(.input-button){z-index:250}:host(.duet-small),:host(.duet-x-small){margin-right:4px !important;margin-bottom:8px !important}:host(.duet-small):last-child,:host(.duet-small):last-of-type,:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){:host(.duet-small),:host(.duet-x-small){width:auto}}:host(.duet-x-small){margin-right:2px !important}:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}:host(.square.duet-small),:host(.square.duet-x-small){margin-right:8px !important}:host(.square.duet-small):last-child,:host(.square.duet-small):last-of-type,:host(.square.duet-x-small):last-child,:host(.square.duet-x-small):last-of-type{margin-right:0 !important}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}:host(.duet-fixed){width:auto !important}:host(:last-child){margin-right:0 !important}.duet-button-container{position:relative;display:block;width:100%}.duet-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;align-items:center;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:600;line-height:1.1;color:rgb(0, 119, 179) !important;text-align:center;text-decoration:none;cursor:pointer;background:transparent;border-style:solid;border-width:1px;transition:background-color 300ms ease, color 300ms ease, border 300ms ease, outline 300ms ease, padding 300ms ease, box-shadow 300ms ease}.duet-button.duet-p-0{padding:0 !important}.duet-button.duet-m-0{margin:0 !important}.duet-button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-button:focus,.duet-button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-button.duet-button-size-medium{height:50px;padding-right:30px;padding-left:30px;font-size:1rem;border-radius:25px}.duet-theme-turva .duet-button.duet-button-size-medium{padding-right:24px;padding-left:24px;border-radius:12.5px}.duet-button.duet-button-size-medium.square{border-radius:12.5px}.duet-button.duet-button-size-medium.icon-left{padding-left:24px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-left{padding-left:18px}.duet-button.duet-button-size-medium.icon-right{padding-right:24px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-right{padding-right:18px}.duet-button.duet-button-size-small{height:40px;padding-right:20px;padding-left:20px;font-size:0.875rem;border-radius:20px}.duet-theme-turva .duet-button.duet-button-size-small{padding-right:18px;padding-left:18px;border-radius:10px}.duet-button.duet-button-size-small.square{border-radius:10px}.duet-button.duet-button-size-small.icon-left{padding-left:18px}.duet-theme-turva .duet-button.duet-button-size-small.icon-left{padding-left:14px}.duet-button.duet-button-size-small.icon-right{padding-right:18px}.duet-theme-turva .duet-button.duet-button-size-small.icon-right{padding-right:14px}.duet-button.duet-button-size-x-small{height:32px;padding-right:12px;padding-left:12px;font-size:0.75rem;border-radius:8px}.duet-button.duet-button-size-x-small.icon-left{padding-left:10px}.duet-button.duet-button-size-x-small.icon-right{padding-right:10px}.duet-button.plain.duet-p-0{height:auto}.duet-button:not(.input-button-primary,.input-button-secondary,.input-button-embedded){font-variant-numeric:tabular-nums}.duet-button.duet-button-text-center{text-align:center !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only){min-width:48px}.duet-button.duet-button-is-small:not(.duet-button-icon-only).plain{padding-right:0 !important;padding-left:0 !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only).duet-p-0{padding:0 !important}.duet-theme-turva .duet-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(198, 12, 48) !important}.duet-button .duet-button-contents{position:relative;display:flex;gap:10px;align-items:center;margin:0 auto;pointer-events:none}.duet-button .duet-button-contents.icon-right{flex-direction:row-reverse}.duet-button .duet-button-contents .duet-button-contents-slot{position:relative;top:0}.duet-button.duet-no-wrap{white-space:nowrap}.duet-button svg{width:100%;min-width:100%;fill:currentColor}.duet-button .duet-button-icon{display:flex;align-items:center}.duet-button .duet-button-icon duet-icon{width:16px;height:16px}.duet-button .duet-button-icon.large duet-icon{width:20px;height:20px}.duet-button .duet-button-icon.medium-small duet-icon{width:10px;height:10px}.duet-button .duet-button-icon.small duet-icon{width:7px;height:7px}.duet-button:active:not([disabled]){opacity:0.75;transition:none}.duet-button.default{background:rgb(255, 255, 255);border-color:rgb(207, 210, 212)}.duet-theme-turva .duet-button.default{color:rgb(198, 12, 48) !important;border-color:rgb(228, 228, 230)}.duet-button.default:hover{border-color:rgb(0, 119, 179);outline:2px solid rgb(0, 119, 179);outline-offset:-2px}.duet-theme-turva .duet-button.default:hover{border-color:rgb(198, 12, 48);outline-color:rgb(198, 12, 48)}.duet-button.default.duet-button-negative{background-color:rgb(255, 255, 255)}.duet-theme-turva .duet-button.default.duet-button-negative{background-color:rgb(228, 228, 230) !important}.duet-button.default.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.default.duet-button-negative:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-button.primary,.duet-button.input-button-primary{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.primary,.duet-theme-turva .duet-button.input-button-primary{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48);border-color:rgb(198, 12, 48)}.duet-button.primary:hover,.duet-button.input-button-primary:hover{background:#005f8f;border-color:#005f8f;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-theme-turva .duet-button.primary:hover,.duet-theme-turva .duet-button.input-button-primary:hover{background:rgb(148, 9, 37);border-color:rgb(148, 9, 37)}.duet-button.primary:focus,.duet-button.input-button-primary:focus{outline:0;box-shadow:0 0 0 1px #fff, 0 0 0 4px rgba(0, 119, 179, 0.75)}.duet-theme-turva .duet-button.primary:focus,.duet-theme-turva .duet-button.input-button-primary:focus{box-shadow:0 0 0 1px #fff, 0 0 0 4px rgba(23, 28, 58, 0.75)}.duet-button.secondary,.duet-button.input-button-secondary,.duet-button.input-button-embedded{color:rgb(0, 41, 77) !important;background:transparent;border-color:rgb(0, 41, 77)}.duet-theme-turva .duet-button.secondary,.duet-theme-turva .duet-button.input-button-secondary,.duet-theme-turva .duet-button.input-button-embedded{color:rgb(23, 28, 58) !important;border-color:rgb(23, 28, 58)}.duet-button.secondary:hover,.duet-button.input-button-secondary:hover,.duet-button.input-button-embedded:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.secondary:hover,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-theme-turva .duet-button.input-button-embedded:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-button.secondary.duet-button-negative,.duet-button.input-button-secondary.duet-button-negative,.duet-button.input-button-embedded.duet-button-negative{color:rgb(225, 227, 230) !important;border-color:rgb(255, 255, 255)}.duet-theme-turva .duet-button.secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative{color:rgb(228, 228, 230) !important}.duet-button.secondary.duet-button-negative:hover,.duet-button.input-button-secondary.duet-button-negative:hover,.duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-button.input-button-embedded{width:40px;min-width:40px !important;min-height:40px !important;margin:4px !important;border-width:0 !important;border-radius:4px !important}.duet-button.input-button{height:auto}.duet-button.negative{color:rgb(0, 41, 77) !important;background:rgb(255, 255, 255);border-color:rgb(255, 255, 255)}.duet-theme-turva .duet-button.negative{color:rgb(23, 28, 58) !important}.duet-button.negative:hover{color:rgb(255, 255, 255) !important;background:transparent;border-color:rgb(255, 255, 255)}.duet-button.negative:focus{outline:0;box-shadow:0 0 0 1px #00294d, 0 0 0 4px rgba(255, 255, 255, 0.7)}.duet-theme-turva .duet-button.negative:focus{box-shadow:0 0 0 1px #0077b3, 0 0 0 4px rgba(255, 255, 255, 0.7)}.duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(222, 35, 98);border-color:rgb(222, 35, 98)}.duet-theme-turva .duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(224, 42, 13);border-color:rgb(224, 42, 13)}.duet-button.destructive-primary:hover{background:#b21c4e;border-color:#b21c4e;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-theme-turva .duet-button.destructive-primary:hover{background:#b3220a}.duet-button.destructive,.duet-button.destructive-secondary{color:rgb(222, 35, 98) !important;background:rgb(255, 255, 255);border-color:rgb(222, 35, 98)}.duet-theme-turva .duet-button.destructive,.duet-theme-turva .duet-button.destructive-secondary{color:rgb(224, 42, 13) !important;background:rgb(255, 255, 255);border-color:rgb(224, 42, 13)}.duet-button.destructive:hover,.duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#b21c4e;border-color:#b21c4e}.duet-theme-turva .duet-button.destructive:hover,.duet-theme-turva .duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#b3220a;border-color:#b3220a}.duet-button.plain{min-width:48px;padding-right:0 !important;padding-left:0 !important;line-height:1.5;text-align:left;background:transparent;border:0;border-color:transparent;border-radius:4px}.duet-theme-turva .duet-button.plain{color:rgb(198, 12, 48) !important;background:transparent;border-color:transparent}.duet-button.plain.duet-p-0 .duet-button-contents{height:auto}.duet-button.plain[disabled]{color:rgb(101, 119, 135) !important;cursor:not-allowed;background:transparent !important;border-color:transparent !important}.duet-theme-turva .duet-button.plain[disabled]{color:transparent !important;cursor:not-allowed;background:transparent !important;border-color:rgb(228, 228, 230) !important}.duet-button.plain:hover{color:rgb(0, 77, 128) !important;background:transparent !important}.duet-theme-turva .duet-button.plain:hover{color:rgb(148, 9, 37) !important}.duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-theme-turva .duet-button.plain.duet-button-negative{color:rgb(228, 228, 230) !important}.duet-button.plain.duet-button-negative:hover{color:rgb(0, 119, 179) !important}.duet-theme-turva .duet-button.plain.duet-button-negative:hover{color:rgb(198, 12, 48) !important}.duet-button.duet-button-icon-only{min-width:48px;min-height:48px;padding:0 !important}.duet-button.duet-button-icon-only .duet-button-contents{position:static}.duet-button.duet-button-icon-only .duet-button-icon.left.large,.duet-button.duet-button-icon-only .duet-button-icon.left.medium,.duet-button.duet-button-icon-only .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded{box-sizing:content-box;min-width:48px;min-height:48px;padding:0 !important;border-width:1px;border-top-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:0}.duet-button.duet-button.input-button-primary .duet-button-contents,.duet-button.duet-button.input-button-secondary .duet-button-contents,.duet-button.duet-button.input-button-embedded .duet-button-contents{position:static}.duet-button.duet-button.input-button-primary .duet-button-icon.left.large,.duet-button.duet-button.input-button-primary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-primary .duet-button-icon.left.small,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.large,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.small,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.large,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.medium,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-embedded{border-left-width:0}.duet-button.square{width:52px;min-width:auto !important;padding:0 !important;font-size:1rem;border-color:rgb(207, 210, 212);border-width:1px}.duet-button.square.duet-button-size-small{width:42px;font-size:0.875rem}.duet-button.square.duet-button-size-x-small{width:34px;font-size:0.875rem}.duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48);border-color:rgb(198, 12, 48)}.duet-theme-turva .duet-button.square{border-color:rgb(228, 228, 230)}.duet-button.square:hover{border-color:rgb(0, 119, 179);outline:2px solid rgb(0, 119, 179);outline-offset:-2px}.duet-theme-turva .duet-button.square:hover{border-color:rgb(198, 12, 48);outline-color:rgb(198, 12, 48)}.duet-button.square .duet-button-contents{gap:0}.duet-button[disabled],.duet-button[disabled]:hover,.duet-button.duet-button-negative[disabled],.duet-button.duet-button-negative[disabled]:hover{color:rgb(101, 119, 135) !important;cursor:not-allowed;background:rgb(225, 227, 230) !important;border-color:rgb(225, 227, 230) !important;outline-color:rgb(225, 227, 230) !important;box-shadow:none !important}.duet-theme-turva .duet-button[disabled],.duet-theme-turva .duet-button[disabled]:hover,.duet-theme-turva .duet-button.duet-button-negative [disabled],.duet-theme-turva .duet-button.duet-button-negative [disabled]:hover{color:rgb(116, 116, 117) !important;cursor:not-allowed;background:rgb(228, 228, 230) !important;border-color:rgb(228, 228, 230) !important;outline-color:rgb(228, 228, 230) !important}.duet-button-is-loading.primary,.duet-button-is-loading.input-button-primary{color:rgb(255, 255, 255)}.duet-button-is-loading.default{color:rgb(0, 119, 179)}.duet-button-is-loading.default.duet-theme-turva{color:rgb(198, 12, 48)}.duet-button-is-loading .duet-button-contents{visibility:hidden;opacity:0}';var DuetButton=function(){function t(t){var e=this;registerInstance(this,t);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.handleClick=function(t){if(!e.url&&e.element.closest("form")){t.preventDefault();e.proxyButton.click()}};this.onFocus=function(){e.duetFocus.emit()};this.onBlur=function(){e.duetBlur.emit()};this.accessibleLabel=undefined;this.accessibleControls=undefined;this.accessiblePopup="false";this.accessibleActiveDescendant=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleExpanded=undefined;this.accessiblePressed=undefined;this.loading=false;this.variation="default";this.negative=false;this.theme="";this.margin="auto";this.padding="auto";this.centerText=false;this.wrapping="auto";this.expand=false;this.fixed=false;this.disabled=false;this.name=undefined;this.value=undefined;this.identifier=undefined;this.submit=false;this.external=false;this.language=getLanguage();this.accessibleLabelExternalDefaults=DuetStringsExternalDefaults;this.accessibleLabelExternal=getLocaleString(this.accessibleLabelExternalDefaults);this.accessibleLabelLoadingDefaults=DuetStringsLoadingDefaults;this.accessibleLabelLoading=getLocaleString(this.accessibleLabelLoadingDefaults);this.icon="";this.color="";this.iconRight=false;this.iconSize="medium";this.size="medium";this.iconOnly=false;this.url=undefined}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);if(this.url&&this.external&&this.icon){console.warn("[DUET]: Button used as an external link will override any icon that is set")}};t.prototype.connectedCallback=function(){this.proxyButton=document.createElement("button");this.proxyButton.style.display="none";this.syncToProxyButton();connectLanguageChangeObserver(this,[{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"},{prop:"accessibleLabelLoading",defaults:"accessibleLabelLoadingDefaults"}]);if(!this.url&&this.element.closest("form")){this.element.insertAdjacentElement("beforebegin",this.proxyButton)}};t.prototype.disconnectedCallback=function(){if(this.proxyButton){this.proxyButton.remove()}this.proxyButton=null;disconnectLanguageChangeObserver(this)};t.prototype.syncToProxyButton=function(){this.proxyButton.type=this.getButtonType();this.proxyButton.disabled=this.disabled;if(this.name!=null){this.proxyButton.name=this.name}else{this.proxyButton.removeAttribute("name")}if(this.value!=null){this.proxyButton.value=this.value}else{this.proxyButton.removeAttribute("value")}};t.prototype.getButtonType=function(){return this.submit?"submit":"button"};t.prototype.getButtonIconSize=function(){switch(this.iconSize){case"small":return"small";case"medium-small":return"medium-small";case"medium":return"medium";case"large":return"large";default:return"medium"}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeButton){this.nativeButton.focus(t)}return[2]}))}))};t.prototype.render=function(){var t,e,o,n;var u=this;var r,i;var a=this.external&&this.url;var d=a?"action-new-window":this.icon;var s=a?true:this.iconRight;var b=h("span",{class:{"duet-button-contents":true,"icon-right":s},style:{color:getColorByName(this.color)}},d&&h("span",{"aria-hidden":"true",class:(t={"duet-button-icon":true,left:!s,right:s},t[this.getButtonIconSize()]=true,t)},h("duet-icon",{size:"auto",margin:"none",name:d,color:"currentColor"})),h("span",{class:"duet-button-contents-slot"},h("slot",null)));var l=this.size=="medium"||this.size=="small"||this.size=="x-small"?this.size:"medium";var p={onFocus:this.onFocus,onBlur:this.onBlur,ref:function(t){return u.nativeButton=t},id:this.identifier,class:(e={"duet-m-0":this.margin==="none","duet-p-0":this.padding==="none","duet-no-wrap":this.wrapping==="none","duet-button":true,"duet-button-is-small":this.size==="small"},e["duet-button-size-".concat(l)]=true,e["duet-button-icon-only"]=this.iconOnly,e["duet-button-text-center"]=this.centerText,e["duet-button-negative"]=this.negative||this.variation==="negative",e[this.variation]=true,e["input-button"]=(r=this.variation)===null||r===void 0?void 0:r.startsWith("input-button"),e.disabled=this.disabled,e.icon=!!d,e["icon-right"]=s,e["icon-left"]=!!d&&!s,e[this.getButtonIconSize()]=true,e),"aria-controls":this.accessibleControls,"aria-label":this.accessibleLabel,"aria-expanded":this.accessibleExpanded!=null?this.accessibleExpanded.toString():undefined,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription};return h(Host,{onClick:this.handleClick,class:(o={"duet-m-0":this.margin==="none","duet-small":this.size==="small","duet-x-small":this.size==="x-small","duet-fixed":this.fixed,"duet-expand":this.expand},o[this.variation]=true,o["input-button"]=(i=this.variation)===null||i===void 0?void 0:i.startsWith("input-button"),o)},h("span",{class:(n={"duet-button-container":true,"duet-button-is-loading":this.loading,"duet-theme-turva":this.theme==="turva","duet-button-negative":this.negative||this.variation==="negative"},n[this.variation]=true,n)},this.url?h("a",Object.assign({},p,{href:this.url,target:this.external?"_blank":"_self",rel:this.external?"noopener":undefined}),b,this.external&&h("duet-visually-hidden",null,", ",this.accessibleLabelExternal)):h("button",Object.assign({},p,{type:this.getButtonType(),disabled:this.disabled,name:this.name,value:this.value,"aria-pressed":this.accessiblePressed!=null?this.accessiblePressed.toString():undefined,"aria-haspopup":this.accessiblePopup!=null?this.accessiblePopup.toString():undefined,"aria-disabled":this.disabled}),b,this.loading&&h("duet-visually-hidden",null," ",this.accessibleLabelLoading," ")),this.loading&&h("duet-spinner",{color:"currentColor"})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["syncToProxyButton"],submit:["syncToProxyButton"],value:["syncToProxyButton"],name:["syncToProxyButton"]}},enumerable:false,configurable:true});return t}();DuetButton.style=duetButtonCss;var duetSpinnerCss=':host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute;top:50%;left:50%;z-index:800;max-width:100%}:host(.duet-theme-default) .duet-spinner{color:rgb(0, 119, 179) !important}:host(.duet-theme-turva) .duet-spinner{color:rgb(198, 12, 48) !important}:host(.duet-custom-color){color:inherit}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-spinner{-webkit-user-select:none;user-select:none;position:absolute;top:50%;left:50%;z-index:800;width:24px;height:24px;color:rgb(0, 119, 179);border:2px solid transparent;border-left:2px solid currentColor;border-radius:50%;transform:translateZ(0) translateX(-50%) translateY(-50%);transform-origin:0% 0%;animation:duetRotate 0.6s linear infinite}.duet-spinner::after{position:absolute;top:50%;left:50%;z-index:200;box-sizing:content-box;width:100%;height:100%;overflow:hidden;content:"";border:2px solid currentColor;border-radius:50%;opacity:0.3;transform:translateZ(0) translateX(-50%) translateY(-50%);transform-origin:0% 0%}.duet-spinner.medium{width:36px;height:36px;border-width:4px}.duet-spinner.medium::after{border-width:4px}.duet-spinner.large{width:72px;height:72px;border-width:8px}.duet-spinner.large::after{border-width:8px}@keyframes duetRotate{0%{transform:translateZ(0) rotate(0deg) translateX(-50%) translateY(-50%)}100%{transform:translateZ(0) rotate(360deg) translateX(-50%) translateY(-50%)}}';var DuetSpinner=function(){function t(t){registerInstance(this,t);this.accessibleLabel=undefined;this.color="gray-lightest";this.size="small";this.theme=""}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.render=function(){var t;var e=this.color==="currentColor"?"currentColor":getColorByName(this.color);return h(Host,{class:{"duet-custom-color":this.color!=="currentColor"&&this.theme!=="turva"&&this.theme!=="default","duet-theme-turva":this.theme==="turva"&&this.color!=="currentColor","duet-theme-default":this.theme==="default"&&this.color!=="currentColor"}},h("div",{class:(t={"duet-spinner":true},t[this.size]=true,t),style:{color:e},"aria-label":this.accessibleLabel}))};return t}();DuetSpinner.style=duetSpinnerCss;export{DuetButton as duet_button,DuetSpinner as duet_spinner};
@@ -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-9329015c.js";import{i as inheritGlobalTheme}from"./themeable-component-724c0f7e.js";import{h as hasSlot,c as checkNamedSlotElement}from"./slot-utils-1115a819.js";var duetCalloutCss=':host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:100%}blockquote,figure{margin:0}.duet-callout{margin-bottom:28px !important;display:flex;align-items:center;justify-content:center;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"}.duet-callout .container{display:flex;flex-direction:column;gap:8px;align-items:center;max-width:688px;text-align:center}.duet-callout .callout-icon{width:50px;padding-bottom:8px}.duet-callout blockquote{font-size:2.7vw;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}@media (max-width: 37.037037037rem){.duet-callout blockquote{font-size:1rem}}@media (min-width: 46.2962962963rem){.duet-callout blockquote{font-size:1.25rem}}.duet-callout .author{color:rgb(0, 41, 77)}.duet-callout.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"}.duet-callout.duet-theme-turva .author,.duet-callout.duet-theme-turva blockquote{color:rgb(23, 28, 58)}.duet-callout.duet-m-0{margin:0 !important}';var DuetCallout=function(){function t(t){registerInstance(this,t);this.hasAuthorSlot=false;this.theme="";this.margin="auto"}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasAuthorSlot=hasSlot(this.element,"author");checkNamedSlotElement(this.element,"author","span")};t.prototype.render=function(){var t='<svg viewBox="0 0 22 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.6591 0.557547L9.2031 2.33355C7.0911 5.21355 6.1311 7.18155 5.8431 8.90955C7.4751 9.34155 8.7231 10.5415 8.7231 12.6535C8.7231 15.2935 6.9471 16.9255 4.6431 16.9255C2.0511 16.9255 0.227096 15.1975 0.227096 12.2695C0.227096 8.28555 2.3871 4.34955 6.6591 0.557547ZM17.9871 8.95755C19.6191 9.34155 20.8671 10.5415 20.8671 12.6535C20.8671 15.2935 19.1391 16.9255 16.8351 16.9255C14.2431 16.9255 12.4191 15.1975 12.4191 12.2695C12.4191 8.28555 14.5791 4.34955 18.8511 0.557547L21.3951 2.33355C19.2351 5.21355 18.3231 7.18155 17.9871 8.95755Z"/>\n </svg>\n ';return h(Host,null,h("div",{class:{"duet-callout":true,"duet-theme-turva":this.theme==="turva","duet-m-0":this.margin==="none"}},h("figure",{class:"container"},h("duet-icon",{class:"callout-icon",shape:"brand-rotated",background:"primary-lighter","background-opacity":"0.75","background-rotation":this.theme==="turva"?"0":"7",color:"secondary",icon:t,size:"auto",margin:"none",theme:this.theme}),h("blockquote",null,h("slot",null)),this.hasAuthorSlot&&h("figcaption",{class:"author"},h("span",null,"— "),h("slot",{name:"author"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetCallout.style=duetCalloutCss;export{DuetCallout as duet_callout};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-ae33ad50.js";import{i as inheritGlobalTheme}from"./themeable-component-724c0f7e.js";import{h as hasSlot,c as checkNamedSlotElement}from"./slot-utils-1115a819.js";var duetCalloutCss=':host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:100%}blockquote,figure{margin:0}.duet-callout{margin-bottom:28px !important;display:flex;align-items:center;justify-content:center;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"}.duet-callout .container{display:flex;flex-direction:column;gap:8px;align-items:center;max-width:688px;text-align:center}.duet-callout .callout-icon{width:50px;padding-bottom:8px}.duet-callout blockquote{font-size:2.7vw;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}@media (max-width: 37.037037037rem){.duet-callout blockquote{font-size:1rem}}@media (min-width: 46.2962962963rem){.duet-callout blockquote{font-size:1.25rem}}.duet-callout .author{color:rgb(0, 41, 77)}.duet-callout.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"}.duet-callout.duet-theme-turva .author,.duet-callout.duet-theme-turva blockquote{color:rgb(23, 28, 58)}.duet-callout.duet-m-0{margin:0 !important}';var DuetCallout=function(){function t(t){registerInstance(this,t);this.hasAuthorSlot=false;this.theme="";this.margin="auto"}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasAuthorSlot=hasSlot(this.element,"author");checkNamedSlotElement(this.element,"author","span")};t.prototype.render=function(){var t='<svg viewBox="0 0 22 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.6591 0.557547L9.2031 2.33355C7.0911 5.21355 6.1311 7.18155 5.8431 8.90955C7.4751 9.34155 8.7231 10.5415 8.7231 12.6535C8.7231 15.2935 6.9471 16.9255 4.6431 16.9255C2.0511 16.9255 0.227096 15.1975 0.227096 12.2695C0.227096 8.28555 2.3871 4.34955 6.6591 0.557547ZM17.9871 8.95755C19.6191 9.34155 20.8671 10.5415 20.8671 12.6535C20.8671 15.2935 19.1391 16.9255 16.8351 16.9255C14.2431 16.9255 12.4191 15.1975 12.4191 12.2695C12.4191 8.28555 14.5791 4.34955 18.8511 0.557547L21.3951 2.33355C19.2351 5.21355 18.3231 7.18155 17.9871 8.95755Z"/>\n </svg>\n ';return h(Host,null,h("div",{class:{"duet-callout":true,"duet-theme-turva":this.theme==="turva","duet-m-0":this.margin==="none"}},h("figure",{class:"container"},h("duet-icon",{class:"callout-icon",shape:"brand-rotated",background:"primary-lighter","background-opacity":"0.75","background-rotation":this.theme==="turva"?"0":"7",color:"secondary",icon:t,size:"auto",margin:"none",theme:this.theme}),h("blockquote",null,h("slot",null)),this.hasAuthorSlot&&h("figcaption",{class:"author"},h("span",null,"— "),h("slot",{name:"author"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetCallout.style=duetCalloutCss;export{DuetCallout as duet_callout};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,n,i){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function r(t){try{d(i.next(t))}catch(t){a(t)}}function s(t){try{d(i["throw"](t))}catch(t){a(t)}}function d(t){t.done?n(t.value):o(t.value).then(r,s)}d((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,o,a,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(t){return function(e){return d([t,e])}}function d(s){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(n=0)),n)try{if(i=1,o&&(a=s[0]&2?o["return"]:s[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,s[1])).done)return a;if(o=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;o=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];o=0}finally{i=a=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,h,H as Host,g as getElement,F as Fragment}from"./index-9329015c.js";import{i as inheritGlobalTheme}from"./themeable-component-724c0f7e.js";import{s as sanitizeString}from"./string-utils-ca039233.js";import{g as getColorByName,a as breakpointToToken}from"./token-utils-be83d039.js";import{a as actionNewWindow,b as actionArrowRight}from"./action-new-window-9c8f7830.js";import{a as actionNewWindowSmall}from"./action-new-window-small-1945be91.js";import{D as DuetStringsExternalDefaults,b as DuetStringsDownloadLinkDefaults}from"./common-strings-7c7f8e40.js";import{a as getLanguage,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-00ca4c55.js";import"./tokens.module-3547915d.js";var duetCaptionCss=':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:flex;flex:0 0 100%;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(101, 119, 135);vertical-align:top}:host.duet-p-0{padding:0 !important}:host.duet-m-0{margin:0 !important}:host(.duet-caption-small){font-size:0.875rem;line-height:1.25}: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(116, 116, 117)}:host(.duet-caption-selected){color:rgb(0, 119, 179)}:host(.duet-caption-selected.duet-theme-turva){color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}';var DuetCaption=function(){function t(t){registerInstance(this,t);this.theme="";this.margin="auto";this.selected=false;this.size="medium"}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.render=function(){return h(Host,{class:{"duet-caption":true,"duet-caption-selected":this.selected,"duet-caption-small":this.size==="small","duet-theme-turva":this.theme==="turva","duet-m-0":this.margin==="none"}},h("slot",null))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetCaption.style=duetCaptionCss;var duetHeadingCss='*,*::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:relative;display:block;width:100%}.duet-heading{margin-bottom:16px !important;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(0, 41, 77);text-decoration:none;letter-spacing:-0.01rem;word-break:break-word}@media (min-width: 36em){.duet-heading{margin-bottom:20px !important}}.duet-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";font-style:italic;font-weight:700;color:rgb(23, 28, 58)}.duet-heading.duet-heading-border{padding-bottom:20px;border-bottom:1px solid rgb(225, 227, 230)}.duet-heading.duet-heading-border.duet-heading-border-solid{border-bottom-color:rgb(101, 119, 135)}.duet-heading.duet-heading-hyphenate{-webkit-hyphens:auto;hyphens:auto}.duet-heading.h0{font-size:9.4vw;line-height:1.1}.duet-heading.h0.duet-p-0{padding:0 !important}.duet-heading.h0.duet-m-0{margin:0 !important}@media (max-width: 31.914893617rem){.duet-heading.h0{font-size:3rem}}@media (min-width: 47.8723404255rem){.duet-heading.h0{font-size:4.5rem}}@media (max-width: 22.5em){.duet-heading.h0{font-size:2.25rem}}.duet-heading.h0.fixed-size{font-size:4.5rem}.duet-heading.h1{font-size:7vw;line-height:1.1}.duet-heading.h1.duet-p-0{padding:0 !important}.duet-heading.h1.duet-m-0{margin:0 !important}@media (max-width: 32.1428571429rem){.duet-heading.h1{font-size:2.25rem}}@media (min-width: 42.8571428571rem){.duet-heading.h1{font-size:3rem}}@media (max-width: 22.5em){.duet-heading.h1{font-size:1.5rem}}.duet-heading.h1.fixed-size{font-size:3rem}.duet-heading.h2{font-size:5.8vw;line-height:1.1}.duet-heading.h2.duet-p-0{padding:0 !important}.duet-heading.h2.duet-m-0{margin:0 !important}@media (max-width: 25.8620689655rem){.duet-heading.h2{font-size:1.5rem}}@media (min-width: 38.7931034483rem){.duet-heading.h2{font-size:2.25rem}}.duet-heading.h2.duet-theme-turva{font-style:normal}@media (max-width: 22.5em){.duet-heading.h2{font-size:1.375rem}}.duet-heading.h2.fixed-size{font-size:2.25rem}.duet-heading.h3{margin-bottom:12px !important;font-size:4.2vw}.duet-heading.h3.duet-p-0{padding:0 !important}.duet-heading.h3.duet-m-0{margin:0 !important}@media (max-width: 29.7619047619rem){.duet-heading.h3{font-size:1.25rem}}@media (min-width: 35.7142857143rem){.duet-heading.h3{font-size:1.5rem}}.duet-heading.h3.duet-theme-turva{font-style:normal}.duet-heading.h3.duet-heading-border{padding-bottom:20px}.duet-heading.h3.fixed-size{font-size:1.5rem}.duet-heading.h4{margin-bottom:8px !important;font-size:4vw;letter-spacing:0}.duet-heading.h4.duet-p-0{padding:0 !important}.duet-heading.h4.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h4{font-size:1.1rem}}@media (min-width: 31.25rem){.duet-heading.h4{font-size:1.25rem}}.duet-heading.h4.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h4.duet-heading-border{padding-bottom:20px}.duet-heading.h4.fixed-size{font-size:1.25rem}.duet-heading.h5{margin-bottom:8px !important;font-size:4vw;font-weight:600;letter-spacing:0}.duet-heading.h5.duet-p-0{padding:0 !important}.duet-heading.h5.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h5{font-size:1.1rem}}@media (min-width: 28.4090909091rem){.duet-heading.h5{font-size:1.1363636364rem}}.duet-heading.h5.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h5.duet-heading-border{padding-bottom:16px}.duet-heading.h5.fixed-size{font-size:1.25rem}.duet-heading.h6{margin-bottom:8px !important;font-size:1rem;font-weight:600;letter-spacing:0}.duet-heading.h6.duet-p-0{padding:0 !important}.duet-heading.h6.duet-m-0{margin:0 !important}.duet-heading.h6.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h6.duet-heading-border{padding-bottom:16px}.duet-heading.duet-normal,.duet-heading.duet-theme-turva.duet-normal{font-style:normal !important;font-weight:400 !important}.duet-heading.duet-semibold,.duet-heading.duet-theme-turva.duet-semibold{font-style:normal !important;font-weight:600 !important}';var DuetHeading=function(){function t(t){registerInstance(this,t);this.level="h2";this.margin="auto";this.visualLevel=undefined;this.border=false;this.weight="auto";this.color="";this.theme="";this.hyphenate=false;this.fixedSize=false}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.render=function(){var t;var e=sanitizeString(this.level);var n=getColorByName(this.color);return h(e,{class:(t={"duet-heading":true,"duet-heading-border":this.border!==false,"duet-heading-border-solid":this.border==="solid","duet-normal":this.weight==="normal","duet-semibold":this.weight==="semibold","duet-heading-hyphenate":this.hyphenate,"duet-m-0":this.margin==="none"},t[this.visualLevel?this.visualLevel:this.level]=true,t["duet-theme-turva"]=this.theme==="turva",t["fixed-size"]=this.fixedSize,t),style:{color:n},part:"duet-heading"},h("slot",null))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetHeading.style=duetHeadingCss;var actionDownloadSmall={title:"action-download-small",tags:"action download arrow down small",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M13.193 1.7c0-.658-.542-1.2-1.2-1.2-.657 0-1.199.542-1.199 1.2v8.922l-2.778-2.6a1.2 1.2 0 0 0-1.64 1.751l4.797 4.498c.458.43 1.183.43 1.64 0l4.798-4.498c.242-.228.379-.544.379-.875a1.2 1.2 0 0 0-2.02-.876l-2.777 2.603V1.699Z"/><path d="M1.5 13.544a1.5 1.5 0 0 1 1.498 1.5v1.498a1.61 1.61 0 0 0 .418 1.096h-.003c0-.002.036.032.13.082.39.194.818.305 1.254.321H19.19a3.085 3.085 0 0 0 1.255-.32c.096-.051.13-.085.13-.085.27-.3.42-.69.414-1.096v-1.5c0-.822.677-1.498 1.5-1.498.822 0 1.499.676 1.499 1.499v1.499c0 1.16-.43 2.293-1.224 3.142-.518.557-1.235.876-1.791 1.056a5.976 5.976 0 0 1-1.783.302H4.797a6.053 6.053 0 0 1-1.782-.302c-.556-.18-1.274-.5-1.792-1.056A4.613 4.613 0 0 1 0 16.542v-1.499a1.5 1.5 0 0 1 1.5-1.499Z"/></svg>'};var duetLinkCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline}:host(.duet-link-block){display:block}:host(.duet-link-button){margin-right:8px !important;margin-bottom:12px !important;display:inline-block;width:100%}:host(.duet-link-button):last-child,:host(.duet-link-button):last-of-type{margin-right:0 !important}.duet-link{display:inline;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;font-weight:400;color:rgb(0, 119, 179);text-decoration:underline;border-radius:4px;transition:300ms ease}.duet-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-link:focus,.duet-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(198, 12, 48)}.duet-link:hover{color:rgb(0, 77, 128);text-decoration:none}.duet-link:hover.duet-theme-turva{color:rgb(148, 9, 37)}.duet-link:active{opacity:0.75;transition:none}.duet-link-is-external.duet-link:not(.block,.button),.duet-link-is-download.duet-link:not(.block,.button){text-decoration:none}.duet-link-is-external.duet-link:not(.block,.button) .duet-link-content,.duet-link-is-download.duet-link:not(.block,.button) .duet-link-content{text-decoration:underline}.duet-link-is-external.duet-link:not(.block,.button):hover>.duet-link-content,.duet-link-is-download.duet-link:not(.block,.button):hover>.duet-link-content{text-decoration:none}.duet-link-is-external.duet-link:not(.block,.button) .duet-link-icon-tail,.duet-link-is-download.duet-link:not(.block,.button) .duet-link-icon-tail{text-decoration:none;white-space:nowrap}.duet-tab-to-link{padding:15px 28px 16px !important;position:absolute;top:-100%;left:-100%;z-index:200;width:1px;min-width:190px;height:1px;overflow:hidden;font-weight:600;color:rgb(0, 119, 179);text-align:center;text-decoration:none;background:rgb(255, 255, 255);border-radius:4px;opacity:0;transition:none}.duet-tab-to-link.duet-theme-turva{min-width:120px;color:rgb(23, 28, 58)}@media (min-width: 106.25em){.duet-tab-to-link{margin-left:20px}}.duet-tab-to-link:focus{top:12px;left:20px;width:auto;height:auto;outline:0;opacity:1}.block.duet-link{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start;padding:16px;font-weight:600;color:rgb(0, 41, 77);text-decoration:none}.block.duet-link.duet-link-has-icon{grid-template-columns:auto 1fr auto}.block.duet-link.none{padding:0}.block .block__content{position:relative;bottom:2px}.block .block__chevron{align-self:center}.block .block__chevron-icon{transition:300ms ease}.block:not(.duet-link-is-external):hover .block__chevron-icon{transform:translateX(4px)}.duet-link.button{display:flex;gap:12px;align-items:center;width:100%;min-height:48px;padding:12px;padding-right:20px;text-decoration:none;background-color:rgb(255, 255, 255);border:solid 1px rgb(207, 210, 212);border-radius:12px;outline:0 solid rgb(207, 210, 212);outline-offset:-2px;transition:all 300ms ease}.duet-link.button>*{flex-shrink:0}.duet-link.button .duet-link-content{flex-grow:1;flex-shrink:1;font-size:1rem;font-weight:600;color:rgb(0, 41, 77);text-align:left}.duet-link.button .icon-wrap{display:flex;align-items:center;justify-content:center}.duet-link.button.duet-link-has-icon-background{min-height:60px}.duet-link.button.duet-link-has-icon-background .icon-wrap{width:36px;height:36px;border-radius:8px}.duet-link.button:hover{border-color:rgb(0, 119, 179);outline:2px solid rgb(0, 119, 179)}@media (min-width: 48em){.duet-link.button{gap:16px;min-height:60px;border-radius:16px}.duet-link.button.duet-link-has-icon-background{min-height:72px}.duet-link.button.duet-link-has-icon-background .icon-wrap{width:48px;height:48px;border-radius:12px}.duet-link.button .duet-link-content{font-size:1.1rem}}.duet-link.button.duet-theme-turva{border-color:rgb(207, 207, 209)}.duet-link.button.duet-theme-turva .duet-link-content{color:rgb(23, 28, 58)}.duet-link.button.duet-theme-turva:hover{border-color:rgb(198, 12, 48);outline-color:rgb(198, 12, 48)}.duet-link.button:not(.duet-link-is-external):hover .block__chevron-icon{transform:translateX(4px)}';var DuetLink=function(){function t(t){registerInstance(this,t);this.variation="default";this.accessibleLabel=undefined;this.language=getLanguage();this.accessibleLabelExternalDefaults=DuetStringsExternalDefaults;this.accessibleLabelExternal=getLocaleString(this.accessibleLabelExternalDefaults);this.accessibleLabelDownloadDefaults=DuetStringsDownloadLinkDefaults;this.accessibleLabelDownload=getLocaleString(this.accessibleLabelDownloadDefaults);this.identifier=undefined;this.theme="";this.url="#";this.external=false;this.download=null;this.tabToLink=false;this.icon=undefined;this.iconColor="currentColor";this.iconBackground=null;this.iconResponsive=false;this.padding="auto";this.isSmallScreen=false;this.isMediumScreen=false}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.initMediaQuery();this.resolvedDownload=this.resolveDownload();if(this.variation==="button"&&this.url==="#"){this.url=undefined}};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"})};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);this.destroyMediaQuery()};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.nativeLink.focus(t);return[2]}))}))};t.prototype.initMediaQuery=function(){this.screenTestBound=this.screenTest.bind(this);this.mediaQuerySmall=window.matchMedia(breakpointToToken["xx-small"]);this.mediaQueryMedium=window.matchMedia(breakpointToToken["medium"]);this.isSmallScreen=this.mediaQuerySmall.matches;this.mediaQuerySmall.addEventListener("change",this.screenTestBound);this.mediaQueryMedium.addEventListener("change",this.screenTestBound)};t.prototype.destroyMediaQuery=function(){if(this.mediaQuerySmall){this.mediaQuerySmall.removeEventListener("change",this.screenTestBound)}if(this.mediaQueryMedium){this.mediaQueryMedium.removeEventListener("change",this.screenTestBound)}};t.prototype.screenTest=function(t){this.isSmallScreen=t.matches};t.prototype.getAccessibleLabel=function(){if(this.accessibleLabel){return this.accessibleLabel}if(!!this.download&&this.element.textContent){return"".concat(this.element.textContent,". ").concat(this.accessibleLabelDownload,".")}if(this.external&&this.element.textContent){return"".concat(this.element.textContent,". ").concat(this.accessibleLabelExternal,".")}return null};t.prototype.resolveDownload=function(){if(this.download===""){return this.url.split("/").pop()}return this.download};t.prototype.renderDefaultContent=function(){return h(Fragment,null,h("span",{class:"duet-link-content",part:"duet-link-content"},h("slot",null)),(this.resolvedDownload||this.external)&&this.variation==="default"&&h(Fragment,null,h("span",{class:"duet-link-icon-tail"}," ",h("duet-icon",{icon:this.resolvedDownload?actionDownloadSmall.svg:actionNewWindowSmall.svg,size:"xx-small",margin:"none",color:"currentColor"}))))};t.prototype.renderBlockContent=function(){return h(Fragment,null,this.icon&&h("span",{class:"block__icon"},h("duet-icon",{size:this.iconResponsive?this.isSmallScreen?"medium":"large":"x-small",name:this.icon,margin:"none",color:this.iconColor})),h("span",{class:"block__content"},this.renderDefaultContent()),h("span",{class:"block__chevron",part:"block-chevron"},h("duet-icon",{class:"block__chevron-icon",icon:this.external?actionNewWindow.svg:actionArrowRight.svg,size:"x-small",margin:"none",color:"primary-dark"})))};t.prototype.renderButtonContent=function(){var t={"background-color":getColorByName(this.iconBackground,this.theme)};return h(Fragment,null,h("span",{class:"icon-wrap",style:t},h("duet-icon",{size:this.isMediumScreen?"small":"medium",name:this.icon,margin:"none",color:this.iconColor})),h("span",{class:"duet-link-content",part:"duet-link-content"},h("slot",null)),h("duet-icon",{class:"block__chevron-icon",icon:this.external?actionNewWindow.svg:actionArrowRight.svg,size:"x-small",margin:"none",color:"primary-dark"}))};t.prototype.renderContent=function(){switch(this.variation){case"default":return this.renderDefaultContent();case"block":return this.renderBlockContent();case"button":return this.renderButtonContent()}};t.prototype.render=function(){var t,e;var n=this;var i=this.variation==="button"&&!this.url?"button":"a";return h(Host,{class:(t={},t["duet-link-".concat(this.variation)]=true,t)},h(i,{href:this.url,class:(e={"duet-link":true,"duet-link-is-external":this.external,"duet-link-is-download":!!this.download,"duet-link-has-icon":!!this.icon,"duet-link-has-icon-background":!!this.iconBackground,"duet-tab-to-link":this.tabToLink,"duet-theme-turva":this.theme==="turva","duet-p-0":this.padding==="none"},e[this.padding]=true,e[this.variation]=true,e),target:this.download||!this.url?null:this.external?"_blank":"_self",download:this.resolvedDownload,"aria-label":this.getAccessibleLabel(),id:this.identifier,ref:function(t){return n.nativeLink=t},part:"duet-link",rel:this.external?"noopener":undefined},this.renderContent()))};Object.defineProperty(t,"delegatesFocus",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetLink.style=duetLinkCss;var duetParagraphCss='*,*::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:relative;display:block;width:100%}.duet-paragraph{margin-bottom:16px !important;display: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";font-size:1rem;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77)}.duet-paragraph.duet-p-0{padding:0 !important}.duet-paragraph.duet-m-0{margin:0 !important}.duet-paragraph.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-paragraph.duet-paragraph-small{font-size:0.875rem}.duet-paragraph.duet-paragraph-semi-bold{font-weight:600}.duet-paragraph.duet-paragraph-bold{font-weight:700}.duet-paragraph.duet-m-0{margin:0 !important}.duet-paragraph.intro{font-size:2.7vw;margin-bottom:28px !important;-webkit-hyphens:inherit;hyphens:inherit}@media (max-width: 37.037037037rem){.duet-paragraph.intro{font-size:1rem}}@media (min-width: 46.2962962963rem){.duet-paragraph.intro{font-size:1.25rem}}.duet-paragraph.intro.duet-m-0{margin:0 !important}::slotted(a){font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;font-weight:400;color:rgb(0, 119, 179);text-decoration:underline;transition:300ms ease}::slotted(a).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(198, 12, 48)}::slotted(a):hover{color:rgb(0, 77, 128);text-decoration:none}::slotted(a):hover.duet-theme-turva{color:rgb(148, 9, 37)}::slotted(a):active{opacity:0.75;transition:none}';var DuetParagraph=function(){function t(t){registerInstance(this,t);this.theme="";this.margin="auto";this.size="medium";this.weight=undefined;this.variation="default";this.color=""}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.render=function(){var t;var e=getColorByName(this.color);return h("p",{class:(t={"duet-paragraph":true,"duet-paragraph-small":this.size==="small","duet-paragraph-semi-bold":this.weight==="semi-bold","duet-paragraph-bold":this.weight==="bold","duet-m-0":this.margin==="none"},t[this.variation]=true,t["duet-theme-turva"]=this.theme==="turva",t),style:{color:e},part:"duet-paragraph"},h("slot",null))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetParagraph.style=duetParagraphCss;export{DuetCaption as duet_caption,DuetHeading as duet_heading,DuetLink as duet_link,DuetParagraph as duet_paragraph};
4
+ */import{r as registerInstance,h,H as Host,g as getElement,F as Fragment}from"./index-ae33ad50.js";import{i as inheritGlobalTheme}from"./themeable-component-724c0f7e.js";import{s as sanitizeString}from"./string-utils-ca039233.js";import{g as getColorByName,a as breakpointToToken}from"./token-utils-be83d039.js";import{a as actionNewWindow,b as actionArrowRight}from"./action-new-window-9c8f7830.js";import{a as actionNewWindowSmall}from"./action-new-window-small-1945be91.js";import{D as DuetStringsExternalDefaults,b as DuetStringsDownloadLinkDefaults}from"./common-strings-7c7f8e40.js";import{a as getLanguage,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-00ca4c55.js";import"./tokens.module-3547915d.js";var duetCaptionCss=':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:flex;flex:0 0 100%;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(101, 119, 135);vertical-align:top}:host.duet-p-0{padding:0 !important}:host.duet-m-0{margin:0 !important}:host(.duet-caption-small){font-size:0.875rem;line-height:1.25}: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(116, 116, 117)}:host(.duet-caption-selected){color:rgb(0, 119, 179)}:host(.duet-caption-selected.duet-theme-turva){color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}';var DuetCaption=function(){function t(t){registerInstance(this,t);this.theme="";this.margin="auto";this.selected=false;this.size="medium"}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.render=function(){return h(Host,{class:{"duet-caption":true,"duet-caption-selected":this.selected,"duet-caption-small":this.size==="small","duet-theme-turva":this.theme==="turva","duet-m-0":this.margin==="none"}},h("slot",null))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetCaption.style=duetCaptionCss;var duetHeadingCss='*,*::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:relative;display:block;width:100%}.duet-heading{margin-bottom:16px !important;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(0, 41, 77);text-decoration:none;letter-spacing:-0.01rem;word-break:break-word}@media (min-width: 36em){.duet-heading{margin-bottom:20px !important}}.duet-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";font-style:italic;font-weight:700;color:rgb(23, 28, 58)}.duet-heading.duet-heading-border{padding-bottom:20px;border-bottom:1px solid rgb(225, 227, 230)}.duet-heading.duet-heading-border.duet-heading-border-solid{border-bottom-color:rgb(101, 119, 135)}.duet-heading.duet-heading-hyphenate{-webkit-hyphens:auto;hyphens:auto}.duet-heading.h0{font-size:9.4vw;line-height:1.1}.duet-heading.h0.duet-p-0{padding:0 !important}.duet-heading.h0.duet-m-0{margin:0 !important}@media (max-width: 31.914893617rem){.duet-heading.h0{font-size:3rem}}@media (min-width: 47.8723404255rem){.duet-heading.h0{font-size:4.5rem}}@media (max-width: 22.5em){.duet-heading.h0{font-size:2.25rem}}.duet-heading.h0.fixed-size{font-size:4.5rem}.duet-heading.h1{font-size:7vw;line-height:1.1}.duet-heading.h1.duet-p-0{padding:0 !important}.duet-heading.h1.duet-m-0{margin:0 !important}@media (max-width: 32.1428571429rem){.duet-heading.h1{font-size:2.25rem}}@media (min-width: 42.8571428571rem){.duet-heading.h1{font-size:3rem}}@media (max-width: 22.5em){.duet-heading.h1{font-size:1.5rem}}.duet-heading.h1.fixed-size{font-size:3rem}.duet-heading.h2{font-size:5.8vw;line-height:1.1}.duet-heading.h2.duet-p-0{padding:0 !important}.duet-heading.h2.duet-m-0{margin:0 !important}@media (max-width: 25.8620689655rem){.duet-heading.h2{font-size:1.5rem}}@media (min-width: 38.7931034483rem){.duet-heading.h2{font-size:2.25rem}}.duet-heading.h2.duet-theme-turva{font-style:normal}@media (max-width: 22.5em){.duet-heading.h2{font-size:1.375rem}}.duet-heading.h2.fixed-size{font-size:2.25rem}.duet-heading.h3{margin-bottom:12px !important;font-size:4.2vw}.duet-heading.h3.duet-p-0{padding:0 !important}.duet-heading.h3.duet-m-0{margin:0 !important}@media (max-width: 29.7619047619rem){.duet-heading.h3{font-size:1.25rem}}@media (min-width: 35.7142857143rem){.duet-heading.h3{font-size:1.5rem}}.duet-heading.h3.duet-theme-turva{font-style:normal}.duet-heading.h3.duet-heading-border{padding-bottom:20px}.duet-heading.h3.fixed-size{font-size:1.5rem}.duet-heading.h4{margin-bottom:8px !important;font-size:4vw;letter-spacing:0}.duet-heading.h4.duet-p-0{padding:0 !important}.duet-heading.h4.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h4{font-size:1.1rem}}@media (min-width: 31.25rem){.duet-heading.h4{font-size:1.25rem}}.duet-heading.h4.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h4.duet-heading-border{padding-bottom:20px}.duet-heading.h4.fixed-size{font-size:1.25rem}.duet-heading.h5{margin-bottom:8px !important;font-size:4vw;font-weight:600;letter-spacing:0}.duet-heading.h5.duet-p-0{padding:0 !important}.duet-heading.h5.duet-m-0{margin:0 !important}@media (max-width: 27.5rem){.duet-heading.h5{font-size:1.1rem}}@media (min-width: 28.4090909091rem){.duet-heading.h5{font-size:1.1363636364rem}}.duet-heading.h5.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h5.duet-heading-border{padding-bottom:16px}.duet-heading.h5.fixed-size{font-size:1.25rem}.duet-heading.h6{margin-bottom:8px !important;font-size:1rem;font-weight:600;letter-spacing:0}.duet-heading.h6.duet-p-0{padding:0 !important}.duet-heading.h6.duet-m-0{margin:0 !important}.duet-heading.h6.duet-theme-turva{font-style:normal;font-weight:700}.duet-heading.h6.duet-heading-border{padding-bottom:16px}.duet-heading.duet-normal,.duet-heading.duet-theme-turva.duet-normal{font-style:normal !important;font-weight:400 !important}.duet-heading.duet-semibold,.duet-heading.duet-theme-turva.duet-semibold{font-style:normal !important;font-weight:600 !important}';var DuetHeading=function(){function t(t){registerInstance(this,t);this.level="h2";this.margin="auto";this.visualLevel=undefined;this.border=false;this.weight="auto";this.color="";this.theme="";this.hyphenate=false;this.fixedSize=false}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.render=function(){var t;var e=sanitizeString(this.level);var n=getColorByName(this.color);return h(e,{class:(t={"duet-heading":true,"duet-heading-border":this.border!==false,"duet-heading-border-solid":this.border==="solid","duet-normal":this.weight==="normal","duet-semibold":this.weight==="semibold","duet-heading-hyphenate":this.hyphenate,"duet-m-0":this.margin==="none"},t[this.visualLevel?this.visualLevel:this.level]=true,t["duet-theme-turva"]=this.theme==="turva",t["fixed-size"]=this.fixedSize,t),style:{color:n},part:"duet-heading"},h("slot",null))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetHeading.style=duetHeadingCss;var actionDownloadSmall={title:"action-download-small",tags:"action download arrow down small",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M13.193 1.7c0-.658-.542-1.2-1.2-1.2-.657 0-1.199.542-1.199 1.2v8.922l-2.778-2.6a1.2 1.2 0 0 0-1.64 1.751l4.797 4.498c.458.43 1.183.43 1.64 0l4.798-4.498c.242-.228.379-.544.379-.875a1.2 1.2 0 0 0-2.02-.876l-2.777 2.603V1.699Z"/><path d="M1.5 13.544a1.5 1.5 0 0 1 1.498 1.5v1.498a1.61 1.61 0 0 0 .418 1.096h-.003c0-.002.036.032.13.082.39.194.818.305 1.254.321H19.19a3.085 3.085 0 0 0 1.255-.32c.096-.051.13-.085.13-.085.27-.3.42-.69.414-1.096v-1.5c0-.822.677-1.498 1.5-1.498.822 0 1.499.676 1.499 1.499v1.499c0 1.16-.43 2.293-1.224 3.142-.518.557-1.235.876-1.791 1.056a5.976 5.976 0 0 1-1.783.302H4.797a6.053 6.053 0 0 1-1.782-.302c-.556-.18-1.274-.5-1.792-1.056A4.613 4.613 0 0 1 0 16.542v-1.499a1.5 1.5 0 0 1 1.5-1.499Z"/></svg>'};var duetLinkCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline}:host(.duet-link-block){display:block}:host(.duet-link-button){margin-right:8px !important;margin-bottom:12px !important;display:inline-block;width:100%}:host(.duet-link-button):last-child,:host(.duet-link-button):last-of-type{margin-right:0 !important}.duet-link{display:inline;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;font-weight:400;color:rgb(0, 119, 179);text-decoration:underline;border-radius:4px;transition:300ms ease}.duet-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-link:focus,.duet-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(198, 12, 48)}.duet-link:hover{color:rgb(0, 77, 128);text-decoration:none}.duet-link:hover.duet-theme-turva{color:rgb(148, 9, 37)}.duet-link:active{opacity:0.75;transition:none}button{font-size:inherit;cursor:pointer}.duet-link-is-external.duet-link:not(.block,.button),.duet-link-is-download.duet-link:not(.block,.button){text-decoration:none}.duet-link-is-external.duet-link:not(.block,.button) .duet-link-content,.duet-link-is-download.duet-link:not(.block,.button) .duet-link-content{text-decoration:underline}.duet-link-is-external.duet-link:not(.block,.button):hover>.duet-link-content,.duet-link-is-download.duet-link:not(.block,.button):hover>.duet-link-content{text-decoration:none}.duet-link-is-external.duet-link:not(.block,.button) .duet-link-icon-tail,.duet-link-is-download.duet-link:not(.block,.button) .duet-link-icon-tail{text-decoration:none;white-space:nowrap}.duet-tab-to-link{padding:15px 28px 16px !important;position:absolute;top:-100%;left:-100%;z-index:200;width:1px;min-width:190px;height:1px;overflow:hidden;font-weight:600;color:rgb(0, 119, 179);text-align:center;text-decoration:none;background:rgb(255, 255, 255);border-radius:4px;opacity:0;transition:none}.duet-tab-to-link.duet-theme-turva{min-width:120px;color:rgb(23, 28, 58)}@media (min-width: 106.25em){.duet-tab-to-link{margin-left:20px}}.duet-tab-to-link:focus{top:12px;left:20px;width:auto;height:auto;outline:0;opacity:1}.block.duet-link{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:start;padding:16px;font-weight:600;color:rgb(0, 41, 77);text-decoration:none}.block.duet-link.duet-link-has-icon{grid-template-columns:auto 1fr auto}.block.duet-link.none{padding:0}.block .block__content{position:relative;bottom:2px}.block .block__chevron{align-self:center}.block .block__chevron-icon{transition:300ms ease}.block:not(.duet-link-is-external):hover .block__chevron-icon{transform:translateX(4px)}.duet-link.button{display:flex;gap:12px;align-items:center;width:100%;min-height:48px;padding:12px;padding-right:20px;text-decoration:none;background-color:rgb(255, 255, 255);border:solid 1px rgb(207, 210, 212);border-radius:12px;outline:0 solid rgb(207, 210, 212);outline-offset:-2px;transition:all 300ms ease}.duet-link.button>*{flex-shrink:0}.duet-link.button .duet-link-content{flex-grow:1;flex-shrink:1;font-size:1rem;font-weight:600;color:rgb(0, 41, 77);text-align:left}.duet-link.button .icon-wrap{display:flex;align-items:center;justify-content:center}.duet-link.button.duet-link-has-icon-background{min-height:60px}.duet-link.button.duet-link-has-icon-background .icon-wrap{width:36px;height:36px;border-radius:8px}.duet-link.button:hover{border-color:rgb(0, 119, 179);outline:2px solid rgb(0, 119, 179)}@media (min-width: 48em){.duet-link.button{gap:16px;min-height:60px;border-radius:16px}.duet-link.button.duet-link-has-icon-background{min-height:72px}.duet-link.button.duet-link-has-icon-background .icon-wrap{width:48px;height:48px;border-radius:12px}.duet-link.button .duet-link-content{font-size:1.1rem}}.duet-link.button.duet-theme-turva{border-color:rgb(207, 207, 209)}.duet-link.button.duet-theme-turva .duet-link-content{color:rgb(23, 28, 58)}.duet-link.button.duet-theme-turva:hover{border-color:rgb(198, 12, 48);outline-color:rgb(198, 12, 48)}.duet-link.button:not(.duet-link-is-external):hover .block__chevron-icon{transform:translateX(4px)}';var DuetLink=function(){function t(t){registerInstance(this,t);this.variation="default";this.accessibleLabel=undefined;this.language=getLanguage();this.accessibleLabelExternalDefaults=DuetStringsExternalDefaults;this.accessibleLabelExternal=getLocaleString(this.accessibleLabelExternalDefaults);this.accessibleLabelDownloadDefaults=DuetStringsDownloadLinkDefaults;this.accessibleLabelDownload=getLocaleString(this.accessibleLabelDownloadDefaults);this.identifier=undefined;this.theme="";this.url="#";this.external=false;this.download=null;this.tabToLink=false;this.icon=undefined;this.iconColor="currentColor";this.iconBackground=null;this.iconResponsive=false;this.padding="auto";this.isSmallScreen=false;this.isMediumScreen=false}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.initMediaQuery();this.resolvedDownload=this.resolveDownload();if(this.variation==="button"&&this.url==="#"){this.url=undefined}};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"})};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);this.destroyMediaQuery()};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.nativeLink.focus(t);return[2]}))}))};t.prototype.initMediaQuery=function(){this.screenTestBound=this.screenTest.bind(this);this.mediaQuerySmall=window.matchMedia(breakpointToToken["xx-small"]);this.mediaQueryMedium=window.matchMedia(breakpointToToken["medium"]);this.isSmallScreen=this.mediaQuerySmall.matches;this.mediaQuerySmall.addEventListener("change",this.screenTestBound);this.mediaQueryMedium.addEventListener("change",this.screenTestBound)};t.prototype.destroyMediaQuery=function(){if(this.mediaQuerySmall){this.mediaQuerySmall.removeEventListener("change",this.screenTestBound)}if(this.mediaQueryMedium){this.mediaQueryMedium.removeEventListener("change",this.screenTestBound)}};t.prototype.screenTest=function(t){this.isSmallScreen=t.matches};t.prototype.getAccessibleLabel=function(){if(this.accessibleLabel){return this.accessibleLabel}if(!!this.download&&this.element.textContent){return"".concat(this.element.textContent,". ").concat(this.accessibleLabelDownload,".")}if(this.external&&this.element.textContent){return"".concat(this.element.textContent,". ").concat(this.accessibleLabelExternal,".")}return null};t.prototype.resolveDownload=function(){if(this.download===""){return this.url.split("/").pop()}return this.download};t.prototype.renderDefaultContent=function(){return h(Fragment,null,h("span",{class:"duet-link-content",part:"duet-link-content"},h("slot",null)),(this.resolvedDownload||this.external)&&this.variation==="default"&&h(Fragment,null,h("span",{class:"duet-link-icon-tail"}," ",h("duet-icon",{icon:this.resolvedDownload?actionDownloadSmall.svg:actionNewWindowSmall.svg,size:"xx-small",margin:"none",color:"currentColor"}))))};t.prototype.renderBlockContent=function(){return h(Fragment,null,this.icon&&h("span",{class:"block__icon"},h("duet-icon",{size:this.iconResponsive?this.isSmallScreen?"medium":"large":"x-small",name:this.icon,margin:"none",color:this.iconColor})),h("span",{class:"block__content"},this.renderDefaultContent()),h("span",{class:"block__chevron",part:"block-chevron"},h("duet-icon",{class:"block__chevron-icon",icon:this.external?actionNewWindow.svg:actionArrowRight.svg,size:"x-small",margin:"none",color:"primary-dark"})))};t.prototype.renderButtonContent=function(){var t={"background-color":getColorByName(this.iconBackground,this.theme)};return h(Fragment,null,h("span",{class:"icon-wrap",style:t},h("duet-icon",{size:this.isMediumScreen?"small":"medium",name:this.icon,margin:"none",color:this.iconColor})),h("span",{class:"duet-link-content",part:"duet-link-content"},h("slot",null)),h("duet-icon",{class:"block__chevron-icon",icon:this.external?actionNewWindow.svg:actionArrowRight.svg,size:"x-small",margin:"none",color:"primary-dark"}))};t.prototype.renderContent=function(){switch(this.variation){case"default":return this.renderDefaultContent();case"block":return this.renderBlockContent();case"button":return this.renderButtonContent()}};t.prototype.render=function(){var t,e;var n=this;var i=!this.url?"button":"a";return h(Host,{class:(t={},t["duet-link-".concat(this.variation)]=true,t)},h(i,{href:this.url,class:(e={"duet-link":true,"duet-link-is-external":this.external,"duet-link-is-download":!!this.download,"duet-link-has-icon":!!this.icon,"duet-link-has-icon-background":!!this.iconBackground,"duet-tab-to-link":this.tabToLink,"duet-theme-turva":this.theme==="turva","duet-p-0":this.padding==="none"},e[this.padding]=true,e[this.variation]=true,e),target:this.download||!this.url?null:this.external?"_blank":"_self",download:this.resolvedDownload,"aria-label":this.getAccessibleLabel(),id:this.identifier,ref:function(t){return n.nativeLink=t},part:"duet-link",rel:this.external?"noopener":undefined},this.renderContent()))};Object.defineProperty(t,"delegatesFocus",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetLink.style=duetLinkCss;var duetParagraphCss='*,*::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:relative;display:block;width:100%}.duet-paragraph{margin-bottom:16px !important;display: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";font-size:1rem;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77)}.duet-paragraph.duet-p-0{padding:0 !important}.duet-paragraph.duet-m-0{margin:0 !important}.duet-paragraph.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-paragraph.duet-paragraph-small{font-size:0.875rem}.duet-paragraph.duet-paragraph-semi-bold{font-weight:600}.duet-paragraph.duet-paragraph-bold{font-weight:700}.duet-paragraph.duet-m-0{margin:0 !important}.duet-paragraph.intro{font-size:2.7vw;margin-bottom:28px !important;-webkit-hyphens:inherit;hyphens:inherit}@media (max-width: 37.037037037rem){.duet-paragraph.intro{font-size:1rem}}@media (min-width: 46.2962962963rem){.duet-paragraph.intro{font-size:1.25rem}}.duet-paragraph.intro.duet-m-0{margin:0 !important}::slotted(a){font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;font-weight:400;color:rgb(0, 119, 179);text-decoration:underline;transition:300ms ease}::slotted(a).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(198, 12, 48)}::slotted(a):hover{color:rgb(0, 77, 128);text-decoration:none}::slotted(a):hover.duet-theme-turva{color:rgb(148, 9, 37)}::slotted(a):active{opacity:0.75;transition:none}';var DuetParagraph=function(){function t(t){registerInstance(this,t);this.theme="";this.margin="auto";this.size="medium";this.weight=undefined;this.variation="default";this.color=""}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.render=function(){var t;var e=getColorByName(this.color);return h("p",{class:(t={"duet-paragraph":true,"duet-paragraph-small":this.size==="small","duet-paragraph-semi-bold":this.weight==="semi-bold","duet-paragraph-bold":this.weight==="bold","duet-m-0":this.margin==="none"},t[this.variation]=true,t["duet-theme-turva"]=this.theme==="turva",t),style:{color:e},part:"duet-paragraph"},h("slot",null))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetParagraph.style=duetParagraphCss;export{DuetCaption as duet_caption,DuetHeading as duet_heading,DuetLink as duet_link,DuetParagraph as duet_paragraph};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(a,e,t,i){function d(a){return a instanceof t?a:new t((function(e){e(a)}))}return new(t||(t=Promise))((function(t,r){function n(a){try{p(i.next(a))}catch(a){r(a)}}function o(a){try{p(i["throw"](a))}catch(a){r(a)}}function p(a){a.done?t(a.value):d(a.value).then(n,o)}p((i=i.apply(a,e||[])).next())}))};var __generator=this&&this.__generator||function(a,e){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,d,r,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(a){return function(e){return p([a,e])}}function p(o){if(i)throw new TypeError("Generator is already executing.");while(n&&(n=0,o[0]&&(t=0)),t)try{if(i=1,d&&(r=o[0]&2?d["return"]:o[0]?d["throw"]||((r=d["return"])&&r.call(d),0):d.next)&&!(r=r.call(d,o[1])).done)return r;if(d=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;d=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(r=t.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){t.label=o[1];break}if(o[0]===6&&t.label<r[1]){t.label=r[1];r=o;break}if(r&&t.label<r[2]){t.label=r[2];t.ops.push(o);break}if(r[2])t.ops.pop();t.trys.pop();continue}o=e.call(a,t)}catch(a){o=[6,a];d=0}finally{i=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(a,e,t){if(t||arguments.length===2)for(var i=0,d=e.length,r;i<d;i++){if(r||!(i in e)){if(!r)r=Array.prototype.slice.call(e,0,i);r[i]=e[i]}}return a.concat(r||Array.prototype.slice.call(e))};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-9329015c.js";import{i as inheritGlobalTheme}from"./themeable-component-724c0f7e.js";import{c as createID}from"./create-id-149a1b6d.js";import{i as isKeyboardClick,s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-0708be80.js";import{s as sanitizeString}from"./string-utils-ca039233.js";import{g as getColorByName}from"./token-utils-be83d039.js";import"./tokens.module-3547915d.js";var duetHeadingLevels=["h1","h2","h3","h4","h5","h6"];var duetBlock="div";var actionArrowUp={title:"action-arrow-up",tags:"action arrow up caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 17.939a.752.752 0 0 1-.53-1.281L10.94 5.94c.283-.284.659-.44 1.059-.44.401 0 .777.156 1.06.438l10.721 10.72a.752.752 0 0 1-.53 1.281.743.743 0 0 1-.53-.22L12 7 1.28 17.719a.743.743 0 0 1-.53.22z"/></svg>'};var duetCardCss='*,*::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:20px !important;display:flex;width:100%;vertical-align:top}:host(.duet-card-info){margin-bottom:16px !important}:host(.duet-m-0){margin:0 !important}.duet-card{padding:20px !important;position:relative;display:flex;flex-direction:column;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-style:normal;font-weight:400;line-height:1.5;color:rgb(0, 41, 77);text-decoration:none;border-radius:4px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-card.duet-p-0{padding:0 !important}.duet-card.duet-m-0{margin:0 !important}.duet-card:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-card:focus,.duet-card:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}@media (max-width: 20.5em){.duet-card.shadow-xxx-small{box-shadow:none}}@media (max-width: 22.5em){.duet-card.shadow-xx-small{box-shadow:none}}@media (max-width: 35.9375em){.duet-card.shadow-x-small{box-shadow:none}}@media (min-width: 36em){.duet-card.shadow-small{box-shadow:none}}@media (min-width: 48em){.duet-card.shadow-medium{box-shadow:none}}@media (min-width: 62em){.duet-card.shadow-large{box-shadow:none}}@media (min-width: 64.0625em){.duet-card.shadow-x-large{box-shadow:none}}@media (min-width: 76.25em){.duet-card.shadow-xx-large{box-shadow:none}}@media (min-width: 106.25em){.duet-card.shadow-xxx-large{box-shadow:none}}@media (min-width: 36em){.duet-card{padding:28px !important}}.duet-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);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}@media (min-width: 36em){.duet-card.xx-small{padding:12px !important}}@media (min-width: 36em){.duet-card.x-small{padding:20px !important}}@media (min-width: 36em){.duet-card.medium{padding:28px !important}}@media (min-width: 48em){.duet-card.medium{padding:36px !important}}@media (min-width: 36em){.duet-card.large{padding:36px !important}}@media (min-width: 48em){.duet-card.large{padding:48px !important}}@media (min-width: 36em){.duet-card.x-large{padding:48px !important}}@media (min-width: 48em){.duet-card.x-large{padding:72px !important}}.duet-card.duet-card-collapsed{padding-bottom:0 !important}@media (min-width: 36em){.duet-card.duet-card-collapsed{padding-bottom:0 !important}}.duet-card.info{background:rgba(0, 80, 128, 0.04) !important;box-shadow:none}.duet-card.info.duet-theme-turva{background:rgba(23, 28, 58, 0.035) !important}.duet-card.plain{box-shadow:none}.duet-card.plain:not(.duet-card-has-bg){background:transparent !important}.duet-card-heading-grid{display:flex;flex-direction:row}.duet-card-icon{align-self:center}.duet-card-heading-text{flex:1;word-break:break-word}.duet-card-secondary-heading{font-size:1rem;font-weight:600;word-break:break-word}.duet-card-secondary-heading--inline{display:block;flex:1;align-self:flex-start;line-height:1.875;text-align:right}@media (max-width: 22.5em){.duet-card-secondary-heading--inline{display:none}}.duet-card-secondary-heading--new-line{display:none}@media (max-width: 22.5em){.duet-card-secondary-heading--new-line{display:block}}.duet-card-heading{position:relative;display:block;padding:16px 20px;margin:-20px -20px 20px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-weight:800;color:rgb(0, 41, 77);border-bottom:1px solid rgb(225, 227, 230);border-radius:4px 4px 0 0}@media (min-width: 36em){.duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}.none .duet-card-heading{padding:0 !important;margin:0}}.duet-card-image-mask+.duet-card-heading{border-radius:0}.duet-card-heading.duet-card-heading--collapsible{cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button{width:100%;font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit;text-align:left;cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button:focus{outline:0}:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button: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-theme-turva .duet-card-heading.duet-card-heading--collapsible button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-card-collapsed .duet-card-heading{margin-bottom:0 !important;border-bottom:0 !important}.duet-theme-turva .duet-card-heading{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(228, 228, 230)}@media (min-width: 36em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 48em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 36em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}@media (min-width: 48em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}.medium .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.medium .duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}}@media (min-width: 48em){.medium .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}.large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.large .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}@media (min-width: 48em){.large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}.x-large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.x-large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}@media (min-width: 48em){.x-large .duet-card-heading{padding:39px 72px 40px !important;margin:-72px -72px 48px}}.none .duet-card-heading{padding:0;margin:0}.duet-card-footer{padding:20px;margin:20px -20px -20px;font-size:0.875rem;line-height:1.25;background:rgb(245, 248, 250);border-bottom-right-radius:4px;border-bottom-left-radius:4px}.duet-theme-turva .duet-card-footer{background:rgb(245, 245, 247)}@media (min-width: 36em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 36em){.xx-small .duet-card-footer{padding:10px 20px 11px !important;padding-left:12px !important;margin:12px -12px -12px}}@media (min-width: 36em){.x-small .duet-card-footer{padding:15px 28px 16px !important;padding-left:20px !important;margin:20px -20px -20px}}@media (min-width: 36em){.medium .duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.medium .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 36em){.large .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 48em){.large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 36em){.x-large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 48em){.x-large .duet-card-footer{padding:39px 72px 40px !important;margin:48px -72px -72px}}.none .duet-card-footer{padding:0;margin:0}.duet-card-content{flex:1 1 auto;width:100%}.duet-card-collapsed .duet-card-content{display:none}.duet-card-caret{position:relative;top:6px;align-self:flex-start;transition:300ms ease}[aria-expanded=false] .duet-card-caret{transform:rotate(-180deg)}.duet-card-image-mask{position:relative;width:calc(100% + 40px);margin:-20px 0 20px -20px;overflow:hidden;border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.small .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 36em){.medium .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 48em){.medium .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 28px -36px}}@media (min-width: 36em){.large .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 36px -36px}}@media (min-width: 48em){.large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 36em){.x-large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 48em){.x-large .duet-card-image-mask{width:calc(100% + 144px);margin:-72px 0 36px -72px}}.none .duet-card-image-mask{width:100%;padding:0;margin:0}.duet-card-image{display:block;width:102%;min-width:1px;max-width:102%;height:auto;min-height:1px;margin-left:-1%;transition:transform 300ms ease;transform:scale(1.0001)}a.duet-card{transition:box-shadow 300ms ease, background-position 300ms ease}a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}a.duet-card:hover .duet-card-image{transform:scale(1.024)}.duet-theme-turva a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}a.duet-card:active{transition:none;transform:translateY(1px)}';var DuetCard=function(){function a(a){var e=this;registerInstance(this,a);this.duetToggle=createEvent(this,"duetToggle",7);this.cardId=createID("DuetCard");this.togglePanel=function(a){a.preventDefault();e.open=!e.open;e.duetToggle.emit({component:"duet-card",originalEvent:a})};this.handleKeyDown=function(a){if(isKeyboardClick(a)){e.togglePanel(a)}};this.accessibleLabel=undefined;this.heading="";this.secondaryHeading="";this.variation="default";this.collapsible=false;this.open=true;this.headingLevel="h2";this.headingBackground=undefined;this.icon=undefined;this.image=undefined;this.background="gray-lightest";this.padding="small";this.margin="auto";this.theme="";this.url=undefined;this.shadowBreakpoint=undefined}a.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasHeadingSlot=!!this.element.querySelector(":scope > [slot='heading']");this.hasFooter=!!this.element.querySelector("[slot='footer']")};a.prototype.connectedCallback=function(){subscribeTabbingChange(this)};a.prototype.disconnectedCallback=function(){unsubscribeTabbingChange(this)};a.prototype.renderHeading=function(){var a=sanitizeString(this.headingLevel);var e=__spreadArray(__spreadArray([],duetHeadingLevels,true),[duetBlock],false).some((function(e){return e===a}))?a:"h2";var t={backgroundColor:getColorByName(this.headingBackground)};var i=h(Fragment,null,h("div",{class:"duet-card-heading-grid"},this.icon&&h(Fragment,null,h("duet-icon",{class:"duet-card-icon",name:this.icon,size:"medium",margin:"none",color:"currentColor"}),h("duet-spacer",{direction:"horizontal",size:"small"})),h("div",{class:"duet-card-heading-text"},this.heading?this.heading:h("slot",{name:"heading"})),this.secondaryHeading&&h(Fragment,null,h("duet-spacer",{direction:"horizontal",size:"small"}),h("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--inline"},this.secondaryHeading)),this.collapsible&&h(Fragment,null,h("duet-spacer",{direction:"horizontal",size:"small"}),h("duet-icon",{class:"duet-card-caret",icon:actionArrowUp.svg,size:"small",margin:"none",color:"currentColor"}))),this.secondaryHeading&&h("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--new-line"},this.secondaryHeading),h("slot",{name:"below-heading"}));if(this.collapsible){return h(e,{style:t,class:"duet-card-heading duet-card-heading--collapsible",onClick:this.togglePanel,onKeyDown:this.handleKeyDown},h("button",{"aria-controls":this.cardId,"aria-expanded":this.open?"true":"false"},i))}else{return h(e,{style:t,class:"duet-card-heading"},i)}};a.prototype.setFocus=function(a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeCard){this.nativeCard.focus(a)}return[2]}))}))};a.prototype.render=function(){var a;var e=this;var t=this.url?"a":"div";var i={backgroundColor:getColorByName(this.background)};return h(Host,{class:{"duet-m-0":this.margin==="none","duet-card-info":this.variation==="info"}},h(t,{href:this.url,style:i,ref:function(a){return e.nativeCard=a},"aria-label":this.accessibleLabel,class:(a={"duet-card":true},a[this.padding]=true,a[this.variation]=true,a["shadow-".concat(this.shadowBreakpoint)]=!!this.shadowBreakpoint,a["duet-p-0"]=this.padding==="none",a["duet-theme-turva"]=this.theme==="turva",a["duet-card-has-bg"]=this.background!=="gray-lightest",a["duet-card-has-icon"]=!!this.icon,a["duet-card-collapsed"]=this.collapsible&&!this.open,a)},this.image&&h("div",{class:"duet-card-image-mask"},h("img",{src:this.image,class:"duet-card-image",loading:"lazy",alt:"","aria-hidden":"true"})),(this.heading||this.hasHeadingSlot)&&this.renderHeading(),h("div",{class:"duet-card-content",id:this.cardId},h("slot",null),this.hasFooter&&h("div",{class:"duet-card-footer"},h("slot",{name:"footer"})))))};Object.defineProperty(a.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return a}();DuetCard.style=duetCardCss;export{DuetCard as duet_card};
4
+ */import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-ae33ad50.js";import{i as inheritGlobalTheme}from"./themeable-component-724c0f7e.js";import{c as createID}from"./create-id-149a1b6d.js";import{i as isKeyboardClick,s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-0708be80.js";import{s as sanitizeString}from"./string-utils-ca039233.js";import{g as getColorByName}from"./token-utils-be83d039.js";import"./tokens.module-3547915d.js";var duetHeadingLevels=["h1","h2","h3","h4","h5","h6"];var duetBlock="div";var actionArrowUp={title:"action-arrow-up",tags:"action arrow up caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 17.939a.752.752 0 0 1-.53-1.281L10.94 5.94c.283-.284.659-.44 1.059-.44.401 0 .777.156 1.06.438l10.721 10.72a.752.752 0 0 1-.53 1.281.743.743 0 0 1-.53-.22L12 7 1.28 17.719a.743.743 0 0 1-.53.22z"/></svg>'};var duetCardCss='*,*::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:20px !important;display:flex;width:100%;vertical-align:top}:host(.duet-card-info){margin-bottom:16px !important}:host(.duet-m-0){margin:0 !important}.duet-card{padding:20px !important;position:relative;display:flex;flex-direction:column;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-style:normal;font-weight:400;line-height:1.5;color:rgb(0, 41, 77);text-decoration:none;border-radius:4px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-card.duet-p-0{padding:0 !important}.duet-card.duet-m-0{margin:0 !important}.duet-card:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-card:focus,.duet-card:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}@media (max-width: 20.5em){.duet-card.shadow-xxx-small{box-shadow:none}}@media (max-width: 22.5em){.duet-card.shadow-xx-small{box-shadow:none}}@media (max-width: 35.9375em){.duet-card.shadow-x-small{box-shadow:none}}@media (min-width: 36em){.duet-card.shadow-small{box-shadow:none}}@media (min-width: 48em){.duet-card.shadow-medium{box-shadow:none}}@media (min-width: 62em){.duet-card.shadow-large{box-shadow:none}}@media (min-width: 64.0625em){.duet-card.shadow-x-large{box-shadow:none}}@media (min-width: 76.25em){.duet-card.shadow-xx-large{box-shadow:none}}@media (min-width: 106.25em){.duet-card.shadow-xxx-large{box-shadow:none}}@media (min-width: 36em){.duet-card{padding:28px !important}}.duet-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);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}@media (min-width: 36em){.duet-card.xx-small{padding:12px !important}}@media (min-width: 36em){.duet-card.x-small{padding:20px !important}}@media (min-width: 36em){.duet-card.medium{padding:28px !important}}@media (min-width: 48em){.duet-card.medium{padding:36px !important}}@media (min-width: 36em){.duet-card.large{padding:36px !important}}@media (min-width: 48em){.duet-card.large{padding:48px !important}}@media (min-width: 36em){.duet-card.x-large{padding:48px !important}}@media (min-width: 48em){.duet-card.x-large{padding:72px !important}}.duet-card.duet-card-collapsed{padding-bottom:0 !important}@media (min-width: 36em){.duet-card.duet-card-collapsed{padding-bottom:0 !important}}.duet-card.info{background:rgba(0, 80, 128, 0.04) !important;box-shadow:none}.duet-card.info.duet-theme-turva{background:rgba(23, 28, 58, 0.035) !important}.duet-card.plain{box-shadow:none}.duet-card.plain:not(.duet-card-has-bg){background:transparent !important}.duet-card-heading-grid{display:flex;flex-direction:row}.duet-card-icon{align-self:center}.duet-card-heading-text{flex:1;word-break:break-word}.duet-card-secondary-heading{font-size:1rem;font-weight:600;word-break:break-word}.duet-card-secondary-heading--inline{display:block;flex:1;align-self:flex-start;line-height:1.875;text-align:right}@media (max-width: 22.5em){.duet-card-secondary-heading--inline{display:none}}.duet-card-secondary-heading--new-line{display:none}@media (max-width: 22.5em){.duet-card-secondary-heading--new-line{display:block}}.duet-card-heading{position:relative;display:block;padding:16px 20px;margin:-20px -20px 20px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-weight:800;color:rgb(0, 41, 77);border-bottom:1px solid rgb(225, 227, 230);border-radius:4px 4px 0 0}@media (min-width: 36em){.duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}.none .duet-card-heading{padding:0 !important;margin:0}}.duet-card-image-mask+.duet-card-heading{border-radius:0}.duet-card-heading.duet-card-heading--collapsible{cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button{width:100%;font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit;text-align:left;cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button:focus{outline:0}:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button: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-theme-turva .duet-card-heading.duet-card-heading--collapsible button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-card-collapsed .duet-card-heading{margin-bottom:0 !important;border-bottom:0 !important}.duet-theme-turva .duet-card-heading{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(228, 228, 230)}@media (min-width: 36em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 48em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 36em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}@media (min-width: 48em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}.medium .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.medium .duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}}@media (min-width: 48em){.medium .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}.large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.large .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}@media (min-width: 48em){.large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}.x-large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.x-large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}@media (min-width: 48em){.x-large .duet-card-heading{padding:39px 72px 40px !important;margin:-72px -72px 48px}}.none .duet-card-heading{padding:0;margin:0}.duet-card-footer{padding:20px;margin:20px -20px -20px;font-size:0.875rem;line-height:1.25;background:rgb(245, 248, 250);border-bottom-right-radius:4px;border-bottom-left-radius:4px}.duet-theme-turva .duet-card-footer{background:rgb(245, 245, 247)}@media (min-width: 36em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 36em){.xx-small .duet-card-footer{padding:10px 20px 11px !important;padding-left:12px !important;margin:12px -12px -12px}}@media (min-width: 36em){.x-small .duet-card-footer{padding:15px 28px 16px !important;padding-left:20px !important;margin:20px -20px -20px}}@media (min-width: 36em){.medium .duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.medium .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 36em){.large .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 48em){.large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 36em){.x-large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 48em){.x-large .duet-card-footer{padding:39px 72px 40px !important;margin:48px -72px -72px}}.none .duet-card-footer{padding:0;margin:0}.duet-card-content{flex:1 1 auto;width:100%}.duet-card-collapsed .duet-card-content{display:none}.duet-card-caret{position:relative;top:6px;align-self:flex-start;transition:300ms ease}[aria-expanded=false] .duet-card-caret{transform:rotate(-180deg)}.duet-card-image-mask{position:relative;width:calc(100% + 40px);margin:-20px 0 20px -20px;overflow:hidden;border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.small .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 36em){.medium .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 48em){.medium .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 28px -36px}}@media (min-width: 36em){.large .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 36px -36px}}@media (min-width: 48em){.large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 36em){.x-large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 48em){.x-large .duet-card-image-mask{width:calc(100% + 144px);margin:-72px 0 36px -72px}}.none .duet-card-image-mask{width:100%;padding:0;margin:0}.duet-card-image{display:block;width:102%;min-width:1px;max-width:102%;height:auto;min-height:1px;margin-left:-1%;transition:transform 300ms ease;transform:scale(1.0001)}a.duet-card{transition:box-shadow 300ms ease, background-position 300ms ease}a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}a.duet-card:hover .duet-card-image{transform:scale(1.024)}.duet-theme-turva a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}a.duet-card:active{transition:none;transform:translateY(1px)}';var DuetCard=function(){function a(a){var e=this;registerInstance(this,a);this.duetToggle=createEvent(this,"duetToggle",7);this.cardId=createID("DuetCard");this.togglePanel=function(a){a.preventDefault();e.open=!e.open;e.duetToggle.emit({component:"duet-card",originalEvent:a})};this.handleKeyDown=function(a){if(isKeyboardClick(a)){e.togglePanel(a)}};this.accessibleLabel=undefined;this.heading="";this.secondaryHeading="";this.variation="default";this.collapsible=false;this.open=true;this.headingLevel="h2";this.headingBackground=undefined;this.icon=undefined;this.image=undefined;this.background="gray-lightest";this.padding="small";this.margin="auto";this.theme="";this.url=undefined;this.shadowBreakpoint=undefined}a.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasHeadingSlot=!!this.element.querySelector(":scope > [slot='heading']");this.hasFooter=!!this.element.querySelector("[slot='footer']")};a.prototype.connectedCallback=function(){subscribeTabbingChange(this)};a.prototype.disconnectedCallback=function(){unsubscribeTabbingChange(this)};a.prototype.renderHeading=function(){var a=sanitizeString(this.headingLevel);var e=__spreadArray(__spreadArray([],duetHeadingLevels,true),[duetBlock],false).some((function(e){return e===a}))?a:"h2";var t={backgroundColor:getColorByName(this.headingBackground)};var i=h(Fragment,null,h("div",{class:"duet-card-heading-grid"},this.icon&&h(Fragment,null,h("duet-icon",{class:"duet-card-icon",name:this.icon,size:"medium",margin:"none",color:"currentColor"}),h("duet-spacer",{direction:"horizontal",size:"small"})),h("div",{class:"duet-card-heading-text"},this.heading?this.heading:h("slot",{name:"heading"})),this.secondaryHeading&&h(Fragment,null,h("duet-spacer",{direction:"horizontal",size:"small"}),h("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--inline"},this.secondaryHeading)),this.collapsible&&h(Fragment,null,h("duet-spacer",{direction:"horizontal",size:"small"}),h("duet-icon",{class:"duet-card-caret",icon:actionArrowUp.svg,size:"small",margin:"none",color:"currentColor"}))),this.secondaryHeading&&h("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--new-line"},this.secondaryHeading),h("slot",{name:"below-heading"}));if(this.collapsible){return h(e,{style:t,class:"duet-card-heading duet-card-heading--collapsible",onClick:this.togglePanel,onKeyDown:this.handleKeyDown},h("button",{"aria-controls":this.cardId,"aria-expanded":this.open?"true":"false"},i))}else{return h(e,{style:t,class:"duet-card-heading"},i)}};a.prototype.setFocus=function(a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeCard){this.nativeCard.focus(a)}return[2]}))}))};a.prototype.render=function(){var a;var e=this;var t=this.url?"a":"div";var i={backgroundColor:getColorByName(this.background)};return h(Host,{class:{"duet-m-0":this.margin==="none","duet-card-info":this.variation==="info"}},h(t,{href:this.url,style:i,ref:function(a){return e.nativeCard=a},"aria-label":this.accessibleLabel,class:(a={"duet-card":true},a[this.padding]=true,a[this.variation]=true,a["shadow-".concat(this.shadowBreakpoint)]=!!this.shadowBreakpoint,a["duet-p-0"]=this.padding==="none",a["duet-theme-turva"]=this.theme==="turva",a["duet-card-has-bg"]=this.background!=="gray-lightest",a["duet-card-has-icon"]=!!this.icon,a["duet-card-collapsed"]=this.collapsible&&!this.open,a)},this.image&&h("div",{class:"duet-card-image-mask"},h("img",{src:this.image,class:"duet-card-image",loading:"lazy",alt:"","aria-hidden":"true"})),(this.heading||this.hasHeadingSlot)&&this.renderHeading(),h("div",{class:"duet-card-content",id:this.cardId},h("slot",null),this.hasFooter&&h("div",{class:"duet-card-footer"},h("slot",{name:"footer"})))))};Object.defineProperty(a.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return a}();DuetCard.style=duetCardCss;export{DuetCard as duet_card};
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,c,o){function i(e){return e instanceof c?e:new c((function(t){t(e)}))}return new(c||(c=Promise))((function(c,r){function n(e){try{s(o.next(e))}catch(e){r(e)}}function a(e){try{s(o["throw"](e))}catch(e){r(e)}}function s(e){e.done?c(e.value):i(e.value).then(n,a)}s((o=o.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:[]},o,i,r,n;return n={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function a(e){return function(t){return s([e,t])}}function s(a){if(o)throw new TypeError("Generator is already executing.");while(n&&(n=0,a[0]&&(c=0)),c)try{if(o=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:c.label++;return{value:a[1],done:false};case 5:c.label++;i=a[1];a=[0];continue;case 7:a=c.ops.pop();c.trys.pop();continue;default:if(!(r=c.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){c=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){c.label=a[1];break}if(a[0]===6&&c.label<r[1]){c.label=r[1];r=a;break}if(r&&c.label<r[2]){c.label=r[2];c.ops.push(a);break}if(r[2])c.ops.pop();c.trys.pop();continue}a=t.call(e,c)}catch(e){a=[6,e];i=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,c,o){function i(e){return e instanceof c?e:new c((function(t){t(e)}))}return new(c||(c=Promise))((function(c,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function n(e){try{s(o["throw"](e))}catch(e){r(e)}}function s(e){e.done?c(e.value):i(e.value).then(a,n)}s((o=o.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:[]},o,i,r,a;return a={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function n(e){return function(t){return s([e,t])}}function s(n){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,n[0]&&(c=0)),c)try{if(o=1,i&&(r=n[0]&2?i["return"]:n[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;if(i=0,r)n=[n[0]&2,r.value];switch(n[0]){case 0:case 1:r=n;break;case 4:c.label++;return{value:n[1],done:false};case 5:c.label++;i=n[1];n=[0];continue;case 7:n=c.ops.pop();c.trys.pop();continue;default:if(!(r=c.trys,r=r.length>0&&r[r.length-1])&&(n[0]===6||n[0]===2)){c=0;continue}if(n[0]===3&&(!r||n[1]>r[0]&&n[1]<r[3])){c.label=n[1];break}if(n[0]===6&&c.label<r[1]){c.label=r[1];r=n;break}if(r&&c.label<r[2]){c.label=r[2];c.ops.push(n);break}if(r[2])c.ops.pop();c.trys.pop();continue}n=t.call(e,c)}catch(e){n=[6,e];i=0}finally{o=r=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{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-9329015c.js";import{i as inheritGlobalTheme}from"./themeable-component-724c0f7e.js";import{c as createID}from"./create-id-149a1b6d.js";var duetCheckboxCss='*.sc-duet-checkbox,*.sc-duet-checkbox::after,*.sc-duet-checkbox::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-checkbox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-checkbox-h:last-child,.sc-duet-checkbox-h:last-of-type{margin-right:0 !important}.sc-duet-checkbox-h:last-child:not(:only-child){margin-bottom:0 !important}.duet-m-0.sc-duet-checkbox-h{margin:0 !important}.duet-label.sc-duet-checkbox{position:relative;z-index:100;display:inline;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(0, 41, 77);vertical-align:top;cursor:pointer;background:transparent;transition:300ms ease}.duet-theme-turva.sc-duet-checkbox .duet-label.sc-duet-checkbox{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-label.sc-duet-checkbox span.sc-duet-checkbox{display:inline-block;width:calc(100% - 32px);font-size:1rem;font-weight:400;vertical-align:top}.duet-checkbox-container.sc-duet-checkbox{position:relative;width:100%;height:100%}.duet-checkbox.sc-duet-checkbox{padding:14px !important;position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;cursor:pointer;opacity:0}.duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox::before{z-index:100;display:inline-block;width:20px;height:20px;margin:2px 10px 1px 1px;vertical-align:top;content:"";background:rgb(255, 255, 255);border:1px solid rgb(0, 41, 77);border-radius:4px}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:rgb(23, 28, 58)}.duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(0, 41, 77);border:1px solid rgb(0, 41, 77)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.duet-checkbox.sc-duet-checkbox:focus+label.sc-duet-checkbox::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox:focus+label.sc-duet-checkbox::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-checkbox[aria-invalid=true].sc-duet-checkbox+label.sc-duet-checkbox::before{background:#fdf4f7;border-color:rgb(222, 35, 98)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[aria-invalid=true].sc-duet-checkbox+label.sc-duet-checkbox::before{background:#fdf4f3;border-color:rgb(224, 42, 13)}.duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox{position:static}.duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::after{position:absolute;top:6px;left:5px;z-index:200;width:12px;height:12px;pointer-events:none;content:"";background:transparent url("data:image/svg+xml,%3Csvg%20fill%3D%27white%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M23.374.287a1.5%2C1.5%2C0%2C0%2C0-2.093.345L7.246%2C20.2%2C2.561%2C15.511A1.5%2C1.5%2C0%2C1%2C0%2C.439%2C17.632l5.935%2C5.934a1.525%2C1.525%2C0%2C0%2C0%2C2.279-.186l15.066-21A1.5%2C1.5%2C0%2C0%2C0%2C23.374.287Z%27%20%2F%3E%3C%2Fsvg%3E") no-repeat 0 0;background-size:100% auto}.duet-checkbox[disabled].sc-duet-checkbox{cursor:default}.duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox{color:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox{color:rgb(116, 116, 117)}.duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:rgb(207, 207, 209)}.duet-checkbox[disabled].sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(101, 119, 135);border:1px solid rgb(101, 119, 135)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(116, 116, 117);border-color:rgb(116, 116, 117)}.duet-checkbox-error.sc-duet-checkbox{margin-left:31px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(222, 35, 98);border-radius:4px}.duet-theme-turva.sc-duet-checkbox .duet-checkbox-error.sc-duet-checkbox{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(224, 42, 13)}.duet-label-hidden.sc-duet-checkbox .duet-label.sc-duet-checkbox span.sc-duet-checkbox{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';var DuetCheckbox=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.checkboxId=createID("DuetCheckbox");this.errorId=createID("DuetError");this.onChange=function(e){t.checked=!t.checked;t.duetChange.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-checkbox"})};this.onBlur=function(e){t.duetBlur.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-checkbox"})};this.onFocus=function(e){t.duetFocus.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-checkbox"})};this.getDescribedBy=function(){var e=[];if(t.accessibleDescribedBy){e.push(t.accessibleDescribedBy)}if(t.error){e.push(t.errorId)}return e.length>0?e.join(" "):null};this.accessibleActiveDescendant=undefined;this.margin="auto";this.accessibleControls=undefined;this.accessibleIndex=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleSelected=undefined;this.accessibleLiveError="polite";this.required=false;this.error="";this.theme="";this.disabled=false;this.identifier=undefined;this.label="label";this.labelHidden=false;this.name=undefined;this.role=undefined;this.checked=false;this.value=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);if(this.value===undefined){this.value=this.identifier}};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.render=function(){var e=this;var t=this.identifier||this.checkboxId;return h(Host,{class:{"duet-m-0":this.margin==="none"}},h("div",{class:{"duet-checkbox-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva"}},h("input",{ref:function(t){return e.nativeInput=t},type:"checkbox",onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,value:this.value,class:{"duet-checkbox":true,disabled:this.disabled},checked:this.checked,disabled:this.disabled,tabindex:this.accessibleIndex,"aria-invalid":this.error?"true":"false","aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.getDescribedBy(),"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-selected":this.accessibleSelected,required:this.required,role:this.role,name:this.name,id:t}),h("label",{class:"duet-label",htmlFor:t},h("span",null,this.label)),h("div",{class:"duet-checkbox-error",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&h("span",null,this.error))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetCheckbox.style=duetCheckboxCss;export{DuetCheckbox as duet_checkbox};
4
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-ae33ad50.js";import{i as inheritGlobalTheme}from"./themeable-component-724c0f7e.js";import{c as createID}from"./create-id-149a1b6d.js";var duetCheckboxCss='*.sc-duet-checkbox,*.sc-duet-checkbox::after,*.sc-duet-checkbox::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-checkbox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-checkbox-h:last-child,.sc-duet-checkbox-h:last-of-type{margin-right:0 !important}.sc-duet-checkbox-h:last-child:not(:only-child){margin-bottom:0 !important}.duet-m-0.sc-duet-checkbox-h{margin:0 !important}.duet-label.sc-duet-checkbox{position:relative;z-index:100;display:inline;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(0, 41, 77);vertical-align:top;cursor:pointer;background:transparent;transition:300ms ease}.duet-theme-turva.sc-duet-checkbox .duet-label.sc-duet-checkbox{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-label.sc-duet-checkbox span.sc-duet-checkbox{display:inline-block;width:calc(100% - 32px);font-size:1rem;font-weight:400;vertical-align:top}.duet-checkbox-container.sc-duet-checkbox{position:relative;width:100%;height:100%}.duet-checkbox.sc-duet-checkbox{padding:14px !important;position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;cursor:pointer;opacity:0}.duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox::before{z-index:100;display:inline-block;width:20px;height:20px;margin:2px 10px 1px 1px;vertical-align:top;content:"";background:rgb(255, 255, 255);border:1px solid rgb(0, 41, 77);border-radius:4px}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:rgb(23, 28, 58)}.duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(0, 41, 77);border:1px solid rgb(0, 41, 77)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.duet-checkbox.sc-duet-checkbox:focus+label.sc-duet-checkbox::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox:focus+label.sc-duet-checkbox::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-checkbox[aria-invalid=true].sc-duet-checkbox+label.sc-duet-checkbox::before{background:#fdf4f7;border-color:rgb(222, 35, 98)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[aria-invalid=true].sc-duet-checkbox+label.sc-duet-checkbox::before{background:#fdf4f3;border-color:rgb(224, 42, 13)}.duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox{position:static}.duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::after{position:absolute;top:6px;left:5px;z-index:200;width:12px;height:12px;pointer-events:none;content:"";background:transparent url("data:image/svg+xml,%3Csvg%20fill%3D%27white%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M23.374.287a1.5%2C1.5%2C0%2C0%2C0-2.093.345L7.246%2C20.2%2C2.561%2C15.511A1.5%2C1.5%2C0%2C1%2C0%2C.439%2C17.632l5.935%2C5.934a1.525%2C1.525%2C0%2C0%2C0%2C2.279-.186l15.066-21A1.5%2C1.5%2C0%2C0%2C0%2C23.374.287Z%27%20%2F%3E%3C%2Fsvg%3E") no-repeat 0 0;background-size:100% auto}.duet-checkbox[disabled].sc-duet-checkbox{cursor:default}.duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox{color:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox{color:rgb(116, 116, 117)}.duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:rgb(207, 207, 209)}.duet-checkbox[disabled].sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(101, 119, 135);border:1px solid rgb(101, 119, 135)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(116, 116, 117);border-color:rgb(116, 116, 117)}.duet-checkbox-error.sc-duet-checkbox{margin-left:31px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(222, 35, 98);border-radius:4px}.duet-theme-turva.sc-duet-checkbox .duet-checkbox-error.sc-duet-checkbox{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(224, 42, 13)}.duet-label-hidden.sc-duet-checkbox .duet-label.sc-duet-checkbox span.sc-duet-checkbox{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';var DuetCheckbox=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.checkboxId=createID("DuetCheckbox");this.errorId=createID("DuetError");this.onChange=function(e){t.checked=!t.checked;t.duetChange.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-checkbox"})};this.onBlur=function(e){t.duetBlur.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-checkbox"})};this.onFocus=function(e){t.duetFocus.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-checkbox"})};this.getDescribedBy=function(){var e=[];if(t.accessibleDescribedBy){e.push(t.accessibleDescribedBy)}if(t.error){e.push(t.errorId)}return e.length>0?e.join(" "):null};this.accessibleActiveDescendant=undefined;this.margin="auto";this.accessibleControls=undefined;this.accessibleIndex=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleSelected=undefined;this.accessibleLiveError="polite";this.required=false;this.error="";this.theme="";this.disabled=false;this.identifier=undefined;this.label="label";this.labelHidden=false;this.name=undefined;this.role=undefined;this.checked=false;this.value=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);if(this.value===undefined){this.value=this.identifier}};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.render=function(){var e=this;var t=this.identifier||this.checkboxId;return h(Host,{class:{"duet-m-0":this.margin==="none"}},h("div",{class:{"duet-checkbox-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva"}},h("input",{ref:function(t){return e.nativeInput=t},type:"checkbox",onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,value:this.value,class:{"duet-checkbox":true,disabled:this.disabled},checked:this.checked,disabled:this.disabled,tabindex:this.accessibleIndex,"aria-invalid":this.error?"true":"false","aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.getDescribedBy(),"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-selected":this.accessibleSelected,required:this.required,role:this.role,name:this.name,id:t}),h("label",{class:"duet-label",htmlFor:t},h("span",null,this.label)),h("div",{class:"duet-checkbox-error",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&h("span",null,this.error))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetCheckbox.style=duetCheckboxCss;export{DuetCheckbox as duet_checkbox};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as registerInstance,h,H as Host}from"./index-9329015c.js";import{i as inheritGlobalTheme}from"./themeable-component-724c0f7e.js";var duetCheckmarkCss=".duet-checkmark-container{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid rgb(144, 149, 153);border-radius:4px;transition:border 300ms ease}.duet-checkmark-container.center{margin-right:auto}.duet-theme-turva .duet-checkmark-container{border-color:rgb(116, 116, 117)}.checked .duet-checkmark-container{background:rgb(0, 119, 179);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva .checked .duet-checkmark-container{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58) !important}.duet-checkmark-container.duet-checkmark-radio{border-radius:50%}[disabled]+label .duet-checkmark-container{border-color:rgb(207, 210, 212) !important}.duet-theme-turva [disabled]+label .duet-checkmark-container{border-color:rgb(207, 207, 209) !important}.checked [disabled]+label .duet-checkmark-container{background:rgb(207, 210, 212) !important}.duet-theme-turva .checked [disabled]+label .duet-checkmark-container{background:rgb(207, 207, 209) !important}.duet-checkmark{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}}";var DuetCheckmark=function(){function e(e){registerInstance(this,e);this.theme="";this.checked=false;this.presentationOnly=false;this.center=false;this.type="checkbox"}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){return h(Host,{class:{"duet-theme-turva":this.theme==="turva"}},h("div",{role:this.presentationOnly?"presentation":null,class:{checked:this.checked}},h("div",{class:{"duet-checkmark-container":true,center:this.center,"duet-checkmark-radio":this.type==="radio"}},this.checked&&h("div",{class:"duet-checkmark"}))))};return e}();DuetCheckmark.style=duetCheckmarkCss;export{DuetCheckmark as duet_checkmark};
4
+ import{r as registerInstance,h,H as Host}from"./index-ae33ad50.js";import{i as inheritGlobalTheme}from"./themeable-component-724c0f7e.js";var duetCheckmarkCss=".duet-checkmark-container{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid rgb(144, 149, 153);border-radius:4px;transition:border 300ms ease}.duet-checkmark-container.center{margin-right:auto}.duet-theme-turva .duet-checkmark-container{border-color:rgb(116, 116, 117)}.checked .duet-checkmark-container{background:rgb(0, 119, 179);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva .checked .duet-checkmark-container{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58) !important}.duet-checkmark-container.duet-checkmark-radio{border-radius:50%}[disabled]+label .duet-checkmark-container{border-color:rgb(207, 210, 212) !important}.duet-theme-turva [disabled]+label .duet-checkmark-container{border-color:rgb(207, 207, 209) !important}.checked [disabled]+label .duet-checkmark-container{background:rgb(207, 210, 212) !important}.duet-theme-turva .checked [disabled]+label .duet-checkmark-container{background:rgb(207, 207, 209) !important}.duet-checkmark{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}}";var DuetCheckmark=function(){function e(e){registerInstance(this,e);this.theme="";this.checked=false;this.presentationOnly=false;this.center=false;this.type="checkbox"}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){return h(Host,{class:{"duet-theme-turva":this.theme==="turva"}},h("div",{role:this.presentationOnly?"presentation":null,class:{checked:this.checked}},h("div",{class:{"duet-checkmark-container":true,center:this.center,"duet-checkmark-radio":this.type==="radio"}},this.checked&&h("div",{class:"duet-checkmark"}))))};return e}();DuetCheckmark.style=duetCheckmarkCss;export{DuetCheckmark as duet_checkmark};
@@ -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{h(n.next(e))}catch(e){o(e)}}function a(e){try{h(n["throw"](e))}catch(e){o(e)}}function h(e){e.done?i(e.value):r(e.value).then(c,a)}h((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 h([e,t])}}function h(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-9329015c.js";import{i as inheritGlobalTheme}from"./themeable-component-724c0f7e.js";import{c as createID}from"./create-id-149a1b6d.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-0708be80.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(207, 210, 212);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(207, 207, 209)}.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:8px 14px;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;line-height:1rem;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;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container duet-icon.check-mark{width:0;overflow:hidden;visibility: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{padding:0 !important;background:rgb(230, 242, 248);border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-filter-checked:hover,.duet-chip-container.duet-chip-radio-checked:hover{background:rgb(205, 229, 241)}.duet-chip-container.duet-chip-filter-checked.chip-has-icon button,.duet-chip-container.duet-chip-filter-checked.chip-has-icon label,.duet-chip-container.duet-chip-radio-checked.chip-has-icon button,.duet-chip-container.duet-chip-radio-checked.chip-has-icon 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;visibility: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;visibility:visible;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(198, 12, 48)}.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)}.duet-chip-container .duet-chip-popup-disclosure{padding-right:4.5px;padding-left:12.5px}.duet-chip-container .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}.duet-chip-container.large button,.duet-chip-container.large label{padding:15px 22px}: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.enforceNoDisabledSelected=function(){if(t.disabled&&t.checked){console.error("Duet error: pre-selected chip may not be disabled");t.disabled=false}};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.size="medium";this.popup=undefined;this.icon="";this.theme="";this.identifier=undefined;this.value=undefined;this.name=undefined;this.checked=false;this.disabled=false;this.accessibleExpanded=undefined;this.accessiblePopup="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();this.enforceNoDisabledSelected()};e.prototype.connectedCallback=function(){subscribeTabbingChange(this)};e.prototype.disconnectedCallback=function(){unsubscribeTabbingChange(this)};e.prototype.getAccessibleExpanded=function(){if(this.accessibleExpanded!=null){return(!!this.accessibleExpanded).toString()}if(this.popupElement){return this.popupOpen?"true":"false"}return undefined};e.prototype.getAccessiblePopup=function(){if(this.popupElement){return"true"}else{return this.accessiblePopup!=null?this.accessiblePopup.toString():undefined}};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[this.size]=true,e);var o={onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.focusableElement=e}};return h(Host,null,this.variation==="button"&&h("span",{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("span",{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("span",{class:r},h("button",Object.assign({id:n,class:"duet-chip-input-button","aria-label":this.accessibleLabel},o),h("span",{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("span",{class:r},h("input",Object.assign({"aria-haspopup":this.getAccessiblePopup(),"aria-controls":(i=this.popupElement)===null||i===void 0?void 0:i.id,"aria-expanded":this.getAccessibleExpanded(),"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},this.icon&&h("span",{class:"duet-chip-icon-container"},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("span",{class:"duet-chip-popup-disclosure"},h("duet-icon",{name:"action-arrow-down-small",size:"xxx-small",margin:"none",color:"currentColor"})))),this.variation==="radio"&&h("span",{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},this.icon&&h("span",{class:"duet-chip-icon-container"},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-ae33ad50.js";import{i as inheritGlobalTheme}from"./themeable-component-724c0f7e.js";import{c as createID}from"./create-id-149a1b6d.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-0708be80.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(207, 210, 212);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(207, 207, 209)}.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:8px 14px;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;line-height:1rem;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;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container duet-icon.check-mark{width:0;overflow:hidden;visibility: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{padding:0 !important;background:rgb(230, 242, 248);border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-filter-checked:hover,.duet-chip-container.duet-chip-radio-checked:hover{background:rgb(205, 229, 241)}.duet-chip-container.duet-chip-filter-checked.chip-has-icon button,.duet-chip-container.duet-chip-filter-checked.chip-has-icon label,.duet-chip-container.duet-chip-radio-checked.chip-has-icon button,.duet-chip-container.duet-chip-radio-checked.chip-has-icon 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;visibility: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;visibility:visible;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(198, 12, 48)}.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)}.duet-chip-container .duet-chip-popup-disclosure{padding-right:4.5px;padding-left:12.5px}.duet-chip-container .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}.duet-chip-container.large button,.duet-chip-container.large label{padding:15px 22px}: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.enforceNoDisabledSelected=function(){if(t.disabled&&t.checked){console.error("Duet error: pre-selected chip may not be disabled");t.disabled=false}};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.size="medium";this.popup=undefined;this.icon="";this.theme="";this.identifier=undefined;this.value=undefined;this.name=undefined;this.checked=false;this.disabled=false;this.accessibleExpanded=undefined;this.accessiblePopup="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();this.enforceNoDisabledSelected()};e.prototype.connectedCallback=function(){subscribeTabbingChange(this)};e.prototype.disconnectedCallback=function(){unsubscribeTabbingChange(this)};e.prototype.getAccessibleExpanded=function(){if(this.accessibleExpanded!=null){return(!!this.accessibleExpanded).toString()}if(this.popupElement){return this.popupOpen?"true":"false"}return undefined};e.prototype.getAccessiblePopup=function(){if(this.popupElement){return"true"}else{return this.accessiblePopup!=null?this.accessiblePopup.toString():undefined}};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[this.size]=true,e);var o={onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.focusableElement=e}};return h(Host,null,this.variation==="button"&&h("span",{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("span",{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("span",{class:r},h("button",Object.assign({id:n,class:"duet-chip-input-button","aria-label":this.accessibleLabel},o),h("span",{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("span",{class:r},h("input",Object.assign({"aria-haspopup":this.getAccessiblePopup(),"aria-controls":(i=this.popupElement)===null||i===void 0?void 0:i.id,"aria-expanded":this.getAccessibleExpanded(),"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},this.icon&&h("span",{class:"duet-chip-icon-container"},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("span",{class:"duet-chip-popup-disclosure"},h("duet-icon",{name:"action-arrow-down-small",size:"xxx-small",margin:"none",color:"currentColor"})))),this.variation==="radio"&&h("span",{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},this.icon&&h("span",{class:"duet-chip-icon-container"},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};