@duetds/components 9.13.0 → 9.15.0

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 (769) hide show
  1. package/hydrate/index.js +460 -251
  2. package/lib/cjs/{a11y-utils-7f0f44ac.js → a11y-utils-741fad59.js} +1 -1
  3. package/lib/cjs/{app-globals-7f261ff1.js → app-globals-c5cb9046.js} +1 -1
  4. package/lib/cjs/{common-strings-a54bbf77.js → common-strings-92c2f034.js} +23 -0
  5. package/lib/cjs/duet-action-button.cjs.entry.js +4 -4
  6. package/lib/cjs/duet-alert.cjs.entry.js +20 -32
  7. package/lib/cjs/duet-badge.cjs.entry.js +16 -4
  8. package/lib/cjs/duet-banner.cjs.entry.js +7 -7
  9. package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
  10. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +6 -6
  11. package/lib/cjs/duet-button_2.cjs.entry.js +13 -13
  12. package/lib/cjs/duet-callout.cjs.entry.js +5 -5
  13. package/lib/cjs/duet-caption_4.cjs.entry.js +15 -14
  14. package/lib/cjs/duet-card.cjs.entry.js +9 -8
  15. package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
  17. package/lib/cjs/duet-chip.cjs.entry.js +3 -3
  18. package/lib/cjs/duet-choice_2.cjs.entry.js +28 -21
  19. package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
  20. package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
  21. package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
  22. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  23. package/lib/cjs/duet-date-picker.cjs.entry.js +18 -8
  24. package/lib/cjs/duet-divider_2.cjs.entry.js +4 -4
  25. package/lib/cjs/duet-editable-table_3.cjs.entry.js +9 -9
  26. package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
  27. package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
  28. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  29. package/lib/cjs/duet-footer.cjs.entry.js +5 -5
  30. package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
  31. package/lib/cjs/duet-header_2.cjs.entry.js +7 -6
  32. package/lib/cjs/duet-hero.cjs.entry.js +6 -6
  33. package/lib/cjs/duet-icon.cjs.entry.js +6 -6
  34. package/lib/cjs/duet-input_2.cjs.entry.js +6 -6
  35. package/lib/cjs/duet-layout.cjs.entry.js +2 -2
  36. package/lib/cjs/duet-list_2.cjs.entry.js +4 -4
  37. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
  38. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
  39. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
  40. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +8 -8
  41. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
  42. package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -3
  43. package/lib/cjs/duet-modal.cjs.entry.js +40 -21
  44. package/lib/cjs/duet-multiselect.cjs.entry.js +4 -4
  45. package/lib/cjs/duet-nav.cjs.entry.js +3 -3
  46. package/lib/cjs/duet-notification_2.cjs.entry.js +5 -5
  47. package/lib/cjs/duet-number-input.cjs.entry.js +11 -7
  48. package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
  49. package/lib/cjs/duet-page-heading.cjs.entry.js +4 -4
  50. package/lib/cjs/duet-pagination_2.cjs.entry.js +6 -6
  51. package/lib/cjs/duet-panel.cjs.entry.js +47 -0
  52. package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
  53. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +6 -6
  54. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  55. package/lib/cjs/duet-promo-card.cjs.entry.js +6 -6
  56. package/lib/cjs/duet-radio_2.cjs.entry.js +3 -3
  57. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  58. package/lib/cjs/duet-scrollable_3.cjs.entry.js +24 -21
  59. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  60. package/lib/cjs/duet-select.cjs.entry.js +4 -4
  61. package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
  62. package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
  63. package/lib/cjs/duet-share-chart.cjs.entry.js +9 -7
  64. package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
  65. package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
  66. package/lib/cjs/duet-slideout-link.cjs.entry.js +8 -8
  67. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
  68. package/lib/cjs/duet-slideout-panel.cjs.entry.js +12 -12
  69. package/lib/cjs/duet-slideout.cjs.entry.js +10 -10
  70. package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
  71. package/lib/cjs/duet-step_2.cjs.entry.js +5 -5
  72. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
  73. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
  74. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +7 -7
  75. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
  76. package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
  77. package/lib/cjs/duet-textarea.cjs.entry.js +4 -4
  78. package/lib/cjs/duet-toggle.cjs.entry.js +2 -2
  79. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
  80. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
  81. package/lib/cjs/duet-toolbar-item.cjs.entry.js +9 -9
  82. package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
  83. package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
  84. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +8 -8
  85. package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
  86. package/lib/cjs/duet-tray.cjs.entry.js +5 -5
  87. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  88. package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
  89. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  90. package/lib/cjs/duet.cjs.js +3 -3
  91. package/lib/cjs/{errorcodes.utils-cde5cb76.js → errorcodes.utils-699bddbb.js} +1 -1
  92. package/lib/cjs/{focus-utils-3b3e2586.js → focus-utils-4a07d896.js} +1 -1
  93. package/lib/cjs/{index-4babbdda.js → index-80fa07e3.js} +5 -1
  94. package/lib/cjs/{language-utils-83791d57.js → language-utils-ce60d2a9.js} +1 -1
  95. package/lib/cjs/loader.cjs.js +3 -3
  96. package/lib/cjs/{slot-utils-c565d8b9.js → slot-utils-9c5efe2a.js} +1 -1
  97. package/lib/cjs/{themeable-component-a007f8ee.js → themeable-component-1307284b.js} +1 -1
  98. package/lib/cjs/{token-utils-6258d3f7.js → token-utils-658c4c54.js} +103 -7
  99. package/lib/collection/collection-manifest.json +1 -0
  100. package/lib/collection/common-strings.js +22 -0
  101. package/lib/collection/components/duet-alert/duet-alert.js +17 -29
  102. package/lib/collection/components/duet-badge/duet-badge.js +13 -2
  103. package/lib/collection/components/duet-banner/duet-banner.css +1 -0
  104. package/lib/collection/components/duet-banner/duet-banner.js +3 -3
  105. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  106. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  107. package/lib/collection/components/duet-button/duet-button.css +14 -5
  108. package/lib/collection/components/duet-button/duet-button.js +5 -5
  109. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  110. package/lib/collection/components/duet-card/duet-card.js +31 -4
  111. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  112. package/lib/collection/components/duet-choice/duet-choice.js +0 -21
  113. package/lib/collection/components/duet-choice-group/duet-choice-group.js +23 -14
  114. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  115. package/lib/collection/components/duet-date-picker/date-picker-day.js +6 -1
  116. package/lib/collection/components/duet-date-picker/date-utils.js +6 -1
  117. package/lib/collection/components/duet-date-picker/duet-date-picker.css +2 -2
  118. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  119. package/lib/collection/components/duet-header/duet-header.js +3 -2
  120. package/lib/collection/components/duet-heading/duet-heading.css +1 -0
  121. package/lib/collection/components/duet-hero/duet-hero.css +95 -0
  122. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  123. package/lib/collection/components/duet-label/duet-label.js +1 -1
  124. package/lib/collection/components/duet-link/duet-link.js +5 -4
  125. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  126. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  127. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  128. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  129. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  130. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  131. package/lib/collection/components/duet-modal/duet-modal.js +98 -15
  132. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  133. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  134. package/lib/collection/components/duet-number-input/duet-number-input.js +8 -4
  135. package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
  136. package/lib/collection/components/duet-panel/duet-panel.css +98 -0
  137. package/lib/collection/components/duet-panel/duet-panel.js +225 -0
  138. package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
  139. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  140. package/lib/collection/components/duet-promo-card/duet-promo-card.js +3 -3
  141. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
  142. package/lib/collection/components/duet-scrollable/duet-scrollable.js +6 -6
  143. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  144. package/lib/collection/components/duet-select/duet-select.js +1 -1
  145. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  146. package/lib/collection/components/duet-share-chart/duet-share-chart.js +4 -2
  147. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
  148. package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
  149. package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
  150. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  151. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  152. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  153. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  154. package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
  155. package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
  156. package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
  157. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  158. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  159. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  160. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  161. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  162. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  163. package/lib/collection/components/duet-tab-group/duet-tab-group.js +14 -11
  164. package/lib/collection/components/duet-table/duet-table.js +2 -2
  165. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  166. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  167. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  168. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  169. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  170. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
  171. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
  172. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  173. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  174. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  175. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  176. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  177. package/lib/collection/utils/token-utils.js +59 -7
  178. package/lib/collection/utils/turva2-color-tokens.js +42 -0
  179. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  180. package/lib/dist-custom-elements/duet-alert.js +1 -1
  181. package/lib/dist-custom-elements/duet-badge.js +1 -1
  182. package/lib/dist-custom-elements/duet-banner.js +7 -7
  183. package/lib/dist-custom-elements/duet-breadcrumb.js +7 -7
  184. package/lib/dist-custom-elements/duet-breadcrumbs.js +4 -4
  185. package/lib/dist-custom-elements/duet-button.js +1 -1
  186. package/lib/dist-custom-elements/duet-callout.js +4 -4
  187. package/lib/dist-custom-elements/duet-caption.js +1 -1
  188. package/lib/dist-custom-elements/duet-card.js +10 -8
  189. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  190. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  191. package/lib/dist-custom-elements/duet-chip.js +1 -1
  192. package/lib/dist-custom-elements/duet-choice-group.js +31 -22
  193. package/lib/dist-custom-elements/duet-choice.js +5 -7
  194. package/lib/dist-custom-elements/duet-collapsible.js +3 -3
  195. package/lib/dist-custom-elements/duet-combobox.js +15 -15
  196. package/lib/dist-custom-elements/duet-contact-card.js +10 -10
  197. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  198. package/lib/dist-custom-elements/duet-date-picker.js +26 -16
  199. package/lib/dist-custom-elements/duet-divider.js +1 -1
  200. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  201. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  202. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  203. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  204. package/lib/dist-custom-elements/duet-footer.js +8 -8
  205. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  206. package/lib/dist-custom-elements/duet-grid.js +1 -1
  207. package/lib/dist-custom-elements/duet-header.js +12 -11
  208. package/lib/dist-custom-elements/duet-heading.js +1 -1
  209. package/lib/dist-custom-elements/duet-hero.js +11 -11
  210. package/lib/dist-custom-elements/duet-icon.js +1 -1
  211. package/lib/dist-custom-elements/duet-input.js +1 -1
  212. package/lib/dist-custom-elements/duet-label.js +1 -1
  213. package/lib/dist-custom-elements/duet-layout.js +1 -1
  214. package/lib/dist-custom-elements/duet-link.js +1 -1
  215. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  216. package/lib/dist-custom-elements/duet-list.js +1 -1
  217. package/lib/dist-custom-elements/duet-logo.js +1 -1
  218. package/lib/dist-custom-elements/duet-menu-bar-button.js +4 -4
  219. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +4 -4
  220. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +6 -6
  221. package/lib/dist-custom-elements/duet-menu-bar-item.js +5 -5
  222. package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
  223. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  224. package/lib/dist-custom-elements/duet-modal.js +45 -24
  225. package/lib/dist-custom-elements/duet-multiselect.js +9 -9
  226. package/lib/dist-custom-elements/duet-nav.js +2 -2
  227. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  228. package/lib/dist-custom-elements/duet-notification.js +4 -4
  229. package/lib/dist-custom-elements/duet-number-input.js +18 -14
  230. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  231. package/lib/dist-custom-elements/duet-page-heading.js +5 -5
  232. package/lib/dist-custom-elements/duet-pagination.js +14 -14
  233. package/lib/dist-custom-elements/duet-panel.d.ts +11 -0
  234. package/lib/dist-custom-elements/duet-panel.js +70 -0
  235. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  236. package/lib/dist-custom-elements/duet-phone-input.js +16 -16
  237. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  238. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  239. package/lib/dist-custom-elements/duet-progress.js +1 -1
  240. package/lib/dist-custom-elements/duet-promo-card.js +6 -6
  241. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  242. package/lib/dist-custom-elements/duet-radio.js +1 -1
  243. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  244. package/lib/dist-custom-elements/duet-range-stepper.js +6 -6
  245. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  246. package/lib/dist-custom-elements/duet-section-layout.js +4 -4
  247. package/lib/dist-custom-elements/duet-select.js +1 -1
  248. package/lib/dist-custom-elements/duet-shaped-image.js +3 -3
  249. package/lib/dist-custom-elements/duet-share-chart-item.js +2 -2
  250. package/lib/dist-custom-elements/duet-share-chart.js +7 -5
  251. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  252. package/lib/dist-custom-elements/duet-slideout-lang.js +3 -3
  253. package/lib/dist-custom-elements/duet-slideout-link.js +5 -5
  254. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +6 -6
  255. package/lib/dist-custom-elements/duet-slideout-panel.js +9 -9
  256. package/lib/dist-custom-elements/duet-slideout.js +8 -8
  257. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  258. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  259. package/lib/dist-custom-elements/duet-status-icon.js +1 -1
  260. package/lib/dist-custom-elements/duet-step.js +4 -4
  261. package/lib/dist-custom-elements/duet-stepper.js +4 -4
  262. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +4 -4
  263. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +6 -6
  264. package/lib/dist-custom-elements/duet-submenu-bar-item.js +4 -4
  265. package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
  266. package/lib/dist-custom-elements/duet-submenu-bar.js +8 -8
  267. package/lib/dist-custom-elements/duet-tab-group.js +21 -18
  268. package/lib/dist-custom-elements/duet-tab.js +2 -2
  269. package/lib/dist-custom-elements/duet-table.js +1 -1
  270. package/lib/dist-custom-elements/duet-textarea.js +10 -10
  271. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  272. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +4 -4
  273. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +6 -6
  274. package/lib/dist-custom-elements/duet-toolbar-item.js +6 -6
  275. package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
  276. package/lib/dist-custom-elements/duet-toolbar.js +3 -3
  277. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  278. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  279. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  280. package/lib/dist-custom-elements/duet-tray.js +5 -5
  281. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  282. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  283. package/lib/dist-custom-elements/duet-upload.js +22 -22
  284. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  285. package/lib/dist-custom-elements/index.js +1 -1
  286. package/lib/dist-custom-elements/{p-135f668d.js → p-0a932f51.js} +1 -1
  287. package/lib/dist-custom-elements/{p-f80dea81.js → p-15d1bb49.js} +4 -4
  288. package/lib/dist-custom-elements/{p-8c472242.js → p-1901a05e.js} +1 -1
  289. package/lib/dist-custom-elements/{p-e8dc8877.js → p-1b1d5047.js} +4 -4
  290. package/lib/dist-custom-elements/{p-cdf4b7f6.js → p-1b591fcd.js} +4 -4
  291. package/lib/dist-custom-elements/{p-47d05b62.js → p-1f2176b1.js} +1 -1
  292. package/lib/dist-custom-elements/{p-2582f9a3.js → p-2e95d393.js} +3 -3
  293. package/lib/dist-custom-elements/{p-ad927290.js → p-2fa067ff.js} +3 -3
  294. package/lib/dist-custom-elements/{p-63a0bdcd.js → p-307aa29d.js} +1 -1
  295. package/lib/dist-custom-elements/{p-4e53b45e.js → p-31316d91.js} +2 -2
  296. package/lib/dist-custom-elements/{p-70b67cdd.js → p-35af6d7a.js} +4 -4
  297. package/lib/dist-custom-elements/{p-d60c7d74.js → p-3b352cea.js} +1 -1
  298. package/lib/dist-custom-elements/{p-77260ba8.js → p-499da71e.js} +103 -8
  299. package/lib/dist-custom-elements/{p-55c477f3.js → p-49fcb05d.js} +2 -2
  300. package/lib/dist-custom-elements/{p-e3280064.js → p-4b8be370.js} +12 -12
  301. package/lib/dist-custom-elements/{p-3c558254.js → p-4c68ba95.js} +12 -12
  302. package/lib/dist-custom-elements/{p-2e148296.js → p-5d684af3.js} +23 -35
  303. package/lib/dist-custom-elements/{p-de35873c.js → p-5ee14292.js} +1 -1
  304. package/lib/dist-custom-elements/{p-653d2256.js → p-6098c129.js} +10 -10
  305. package/lib/dist-custom-elements/{p-80bbbb3a.js → p-62a4796f.js} +5 -5
  306. package/lib/dist-custom-elements/{p-67e54308.js → p-66c6751e.js} +12 -12
  307. package/lib/dist-custom-elements/{p-be9b9c9d.js → p-6b02ba40.js} +5 -5
  308. package/lib/dist-custom-elements/{p-c7002b0e.js → p-8a6a51b2.js} +1 -1
  309. package/lib/dist-custom-elements/{p-276a59a3.js → p-8d68da95.js} +4 -4
  310. package/lib/dist-custom-elements/{p-13082a20.js → p-8debf5b8.js} +2 -2
  311. package/lib/dist-custom-elements/{p-b660d362.js → p-92467a66.js} +11 -11
  312. package/lib/dist-custom-elements/{p-7fd99694.js → p-9654a846.js} +7 -7
  313. package/lib/dist-custom-elements/{p-06beac61.js → p-9a9b2708.js} +2 -2
  314. package/lib/dist-custom-elements/{p-f7d93067.js → p-9dc1ec50.js} +5 -5
  315. package/lib/dist-custom-elements/{p-0c829768.js → p-9efbcc67.js} +1 -1
  316. package/lib/dist-custom-elements/{p-ca899a3c.js → p-a1876945.js} +9 -8
  317. package/lib/dist-custom-elements/{p-1271d1b9.js → p-a20321ec.js} +3 -3
  318. package/lib/{esm/common-strings-a48b3fba.js → dist-custom-elements/p-b7a93f1c.js} +23 -1
  319. package/lib/dist-custom-elements/{p-46749593.js → p-d17f51c7.js} +3 -3
  320. package/lib/dist-custom-elements/{p-911326a0.js → p-d3345442.js} +2 -2
  321. package/lib/dist-custom-elements/{p-aa4ebea4.js → p-dd16af35.js} +5 -5
  322. package/lib/dist-custom-elements/{p-a000e044.js → p-e371f35d.js} +2 -2
  323. package/lib/dist-custom-elements/{p-c1e381e3.js → p-e54a1871.js} +21 -4
  324. package/lib/dist-custom-elements/{p-1027ea53.js → p-ea21cb5d.js} +5 -5
  325. package/lib/dist-custom-elements/{p-12884dcf.js → p-f214be38.js} +4 -4
  326. package/lib/dist-custom-elements/{p-2dcb2900.js → p-f5b135c5.js} +9 -9
  327. package/lib/dist-custom-elements/{p-16151d9e.js → p-ff94cac9.js} +3 -3
  328. package/lib/duet/duet.esm.js +1 -1
  329. package/lib/duet/duet.js +1 -1
  330. package/lib/duet/p-0018881b.entry.js +4 -0
  331. package/lib/duet/{p-0aaac3fd.system.entry.js → p-007eb67f.system.entry.js} +1 -1
  332. package/lib/duet/{p-d1c7c87b.entry.js → p-039cbd8d.entry.js} +1 -1
  333. package/lib/duet/{p-cc22486b.system.entry.js → p-05f7f78d.system.entry.js} +1 -1
  334. package/lib/duet/{p-01965153.entry.js → p-08f39b32.entry.js} +1 -1
  335. package/lib/duet/{p-d5a2f426.entry.js → p-0ad0afe1.entry.js} +1 -1
  336. package/lib/duet/{p-4421763f.entry.js → p-0bbfb836.entry.js} +1 -1
  337. package/lib/duet/{p-bc44defc.system.entry.js → p-0beb2a3f.system.entry.js} +1 -1
  338. package/lib/duet/{p-9e4e3a7d.entry.js → p-0d9f34ae.entry.js} +1 -1
  339. package/lib/duet/{p-d5ad1dca.system.entry.js → p-0dcf3c74.system.entry.js} +1 -1
  340. package/lib/duet/{p-7d050716.system.entry.js → p-0e442247.system.entry.js} +1 -1
  341. package/lib/duet/{p-dd011cf1.system.entry.js → p-0ff4932b.system.entry.js} +2 -2
  342. package/lib/duet/{p-62ba7ee2.entry.js → p-1192e8c9.entry.js} +1 -1
  343. package/lib/duet/{p-b6578600.system.entry.js → p-137beb16.system.entry.js} +1 -1
  344. package/lib/duet/p-14ffb5c1.system.entry.js +4 -0
  345. package/lib/duet/{p-4509c90e.entry.js → p-15694ea7.entry.js} +1 -1
  346. package/lib/duet/{p-3c438fec.entry.js → p-17a1f7cd.entry.js} +1 -1
  347. package/lib/duet/{p-8c1442ff.entry.js → p-18b56724.entry.js} +1 -1
  348. package/lib/duet/{p-7789db31.system.entry.js → p-18c66326.system.entry.js} +1 -1
  349. package/lib/duet/p-1a46c899.system.entry.js +4 -0
  350. package/lib/duet/{p-8a02bd75.system.entry.js → p-1b393d78.system.entry.js} +1 -1
  351. package/lib/duet/{p-b5eb657a.system.js → p-1cc2eb98.system.js} +1 -1
  352. package/lib/duet/{p-c23c9c77.entry.js → p-1daaef7a.entry.js} +1 -1
  353. package/lib/duet/{p-e5716306.entry.js → p-1dc4442a.entry.js} +1 -1
  354. package/lib/duet/p-1dd1cd21.entry.js +4 -0
  355. package/lib/duet/{p-d0b648c5.system.entry.js → p-200f57b6.system.entry.js} +1 -1
  356. package/lib/duet/{p-b9af2990.system.entry.js → p-2179e714.system.entry.js} +2 -2
  357. package/lib/duet/{p-0dd78a56.system.entry.js → p-22ab0759.system.entry.js} +1 -1
  358. package/lib/duet/{p-3aecf400.system.entry.js → p-24749596.system.entry.js} +1 -1
  359. package/lib/duet/p-24954951.js +4 -0
  360. package/lib/duet/{p-077813ae.entry.js → p-2500e9bc.entry.js} +1 -1
  361. package/lib/duet/{p-e9e59d73.entry.js → p-26b49f30.entry.js} +1 -1
  362. package/lib/duet/{p-0a405da0.system.entry.js → p-2bc08ca1.system.entry.js} +1 -1
  363. package/lib/duet/{p-7686eb1f.entry.js → p-2dc5c7c5.entry.js} +1 -1
  364. package/lib/duet/{p-43c4d670.entry.js → p-2dddb575.entry.js} +1 -1
  365. package/lib/duet/{p-1425b59f.entry.js → p-3455bcd6.entry.js} +1 -1
  366. package/lib/duet/{p-ad43bd23.system.entry.js → p-367a3dd8.system.entry.js} +1 -1
  367. package/lib/duet/{p-7adab44d.system.entry.js → p-38f30c2b.system.entry.js} +1 -1
  368. package/lib/duet/{p-5c48b80a.system.entry.js → p-3b816caf.system.entry.js} +1 -1
  369. package/lib/duet/{p-97393e12.system.entry.js → p-3f3571ae.system.entry.js} +1 -1
  370. package/lib/duet/{p-ab7e07be.system.entry.js → p-3f8dd0b3.system.entry.js} +1 -1
  371. package/lib/duet/{p-808d9dc7.system.entry.js → p-431b0896.system.entry.js} +2 -2
  372. package/lib/duet/{p-f78b9d60.system.js → p-43d6b171.system.js} +1 -1
  373. package/lib/duet/{p-e4bda446.system.entry.js → p-451fe5ef.system.entry.js} +1 -1
  374. package/lib/duet/p-460c0029.system.entry.js +4 -0
  375. package/lib/duet/{p-25bfda5f.system.entry.js → p-47fd41c6.system.entry.js} +1 -1
  376. package/lib/duet/{p-22ae0db4.entry.js → p-48452fe6.entry.js} +1 -1
  377. package/lib/duet/{p-7761f427.system.entry.js → p-484c1cc2.system.entry.js} +1 -1
  378. package/lib/duet/{p-f482b5af.system.entry.js → p-4a7a6dcb.system.entry.js} +1 -1
  379. package/lib/duet/p-4ac878dd.system.entry.js +4 -0
  380. package/lib/duet/p-50cb674e.js +4 -0
  381. package/lib/duet/p-510aee05.entry.js +4 -0
  382. package/lib/duet/{p-a51a1f94.system.entry.js → p-531d399b.system.entry.js} +1 -1
  383. package/lib/duet/{p-33ee2b28.entry.js → p-544a2e7d.entry.js} +1 -1
  384. package/lib/duet/{p-7194f790.entry.js → p-552be4d4.entry.js} +1 -1
  385. package/lib/duet/{p-a04ebea2.system.entry.js → p-55eab330.system.entry.js} +1 -1
  386. package/lib/duet/{p-98feb289.system.entry.js → p-56c024f4.system.entry.js} +1 -1
  387. package/lib/duet/{p-5a1dbce7.system.entry.js → p-57b716e6.system.entry.js} +1 -1
  388. package/lib/duet/p-583b4f49.js +4 -0
  389. package/lib/duet/{p-17ed0be9.system.entry.js → p-58b34a23.system.entry.js} +1 -1
  390. package/lib/duet/{p-8bed4283.system.entry.js → p-58d2375e.system.entry.js} +1 -1
  391. package/lib/duet/p-58f4c4ef.system.entry.js +4 -0
  392. package/lib/duet/p-59777da7.system.js +4 -0
  393. package/lib/duet/{p-2fe6628e.system.entry.js → p-5afe6d8e.system.entry.js} +1 -1
  394. package/lib/duet/{p-f740cd96.entry.js → p-5b0337d8.entry.js} +1 -1
  395. package/lib/duet/p-5b0f2f3d.entry.js +4 -0
  396. package/lib/duet/{p-cf5551f7.entry.js → p-5bcce1c4.entry.js} +1 -1
  397. package/lib/duet/{p-080a85af.system.entry.js → p-5cb10012.system.entry.js} +2 -2
  398. package/lib/duet/{p-e124ed8c.system.entry.js → p-5d987b8d.system.entry.js} +2 -2
  399. package/lib/duet/{p-14f51a29.entry.js → p-5e1045dc.entry.js} +1 -1
  400. package/lib/duet/p-5e658b40.js +4 -0
  401. package/lib/duet/{p-8c66abfb.system.entry.js → p-6015aa05.system.entry.js} +1 -1
  402. package/lib/duet/{p-8da3b624.entry.js → p-601e275c.entry.js} +1 -1
  403. package/lib/duet/p-60636c0f.js +4 -0
  404. package/lib/duet/{p-45cb4d7f.system.entry.js → p-6106103e.system.entry.js} +1 -1
  405. package/lib/duet/{p-f7a30994.system.entry.js → p-612fe73a.system.entry.js} +1 -1
  406. package/lib/duet/p-61b2c1c9.entry.js +4 -0
  407. package/lib/duet/{p-c4eb60a1.system.entry.js → p-61bb70ea.system.entry.js} +2 -2
  408. package/lib/duet/{p-9f1e07cc.entry.js → p-6314d434.entry.js} +1 -1
  409. package/lib/duet/p-63d23d82.entry.js +4 -0
  410. package/lib/duet/{p-570a2d5c.entry.js → p-66dd8b2f.entry.js} +1 -1
  411. package/lib/duet/{p-73666dbd.entry.js → p-6703c635.entry.js} +1 -1
  412. package/lib/duet/{p-d63c92fc.system.js → p-694e5a97.system.js} +1 -1
  413. package/lib/duet/{p-442cac9c.entry.js → p-69b7e6dc.entry.js} +1 -1
  414. package/lib/duet/{p-8e5de54a.entry.js → p-6b97b58c.entry.js} +1 -1
  415. package/lib/duet/{p-79562f98.entry.js → p-6cdc13f4.entry.js} +1 -1
  416. package/lib/duet/{p-41a3f8ed.entry.js → p-6ceeb4c1.entry.js} +1 -1
  417. package/lib/duet/{p-1830fafe.entry.js → p-6ec3fa80.entry.js} +1 -1
  418. package/lib/duet/{p-618a0f3a.entry.js → p-6eed12c2.entry.js} +1 -1
  419. package/lib/duet/p-6fb7afac.system.entry.js +4 -0
  420. package/lib/duet/{p-3c29e0ba.entry.js → p-71507957.entry.js} +1 -1
  421. package/lib/duet/p-729bb657.entry.js +4 -0
  422. package/lib/duet/p-72baa999.entry.js +4 -0
  423. package/lib/duet/{p-bb71c581.entry.js → p-72e617b1.entry.js} +1 -1
  424. package/lib/duet/{p-0990faec.system.entry.js → p-72f4c54a.system.entry.js} +1 -1
  425. package/lib/duet/{p-89a1d75a.js → p-75a66b82.js} +1 -1
  426. package/lib/duet/p-75eda30d.entry.js +4 -0
  427. package/lib/duet/p-78df5993.entry.js +4 -0
  428. package/lib/duet/p-7c597c01.entry.js +4 -0
  429. package/lib/duet/{p-519fef05.system.js → p-7d4fb1da.system.js} +1 -1
  430. package/lib/duet/{p-d977fe38.system.entry.js → p-7f50e5e3.system.entry.js} +1 -1
  431. package/lib/duet/{p-80c89ac1.entry.js → p-7f5b3bb1.entry.js} +1 -1
  432. package/lib/duet/{p-1be0f96f.system.entry.js → p-80121038.system.entry.js} +2 -2
  433. package/lib/duet/{p-3372296f.entry.js → p-8173aad1.entry.js} +1 -1
  434. package/lib/duet/{p-e8059b67.system.entry.js → p-81dbbba7.system.entry.js} +1 -1
  435. package/lib/duet/{p-ecb06d44.entry.js → p-8303c23a.entry.js} +1 -1
  436. package/lib/duet/{p-24cc3a49.entry.js → p-8497c4a3.entry.js} +1 -1
  437. package/lib/duet/p-87633fff.system.js +4 -0
  438. package/lib/duet/p-8911207e.entry.js +4 -0
  439. package/lib/duet/p-894105da.entry.js +4 -0
  440. package/lib/duet/{p-af3397e6.entry.js → p-8a7cfab8.entry.js} +1 -1
  441. package/lib/duet/{p-f01d0296.system.entry.js → p-8c80b769.system.entry.js} +1 -1
  442. package/lib/duet/{p-85696a8e.entry.js → p-8ef88917.entry.js} +1 -1
  443. package/lib/duet/{p-e2e84fa3.system.entry.js → p-8fa3a4db.system.entry.js} +1 -1
  444. package/lib/duet/{p-c6c01a4f.system.entry.js → p-930ea887.system.entry.js} +1 -1
  445. package/lib/duet/{p-38baa305.entry.js → p-95137492.entry.js} +1 -1
  446. package/lib/duet/{p-3b760329.entry.js → p-969327bd.entry.js} +1 -1
  447. package/lib/duet/p-9715fa3d.entry.js +4 -0
  448. package/lib/duet/p-9bff6ed8.entry.js +4 -0
  449. package/lib/duet/{p-9c201da2.entry.js → p-9e93e46d.entry.js} +1 -1
  450. package/lib/duet/{p-20baa68b.entry.js → p-9f6fe3bd.entry.js} +1 -1
  451. package/lib/duet/{p-5026ba81.system.entry.js → p-9fe084e8.system.entry.js} +1 -1
  452. package/lib/duet/p-a12e5499.entry.js +4 -0
  453. package/lib/duet/{p-964cab98.entry.js → p-a20eeb3a.entry.js} +1 -1
  454. package/lib/duet/{p-4dd14bc1.system.entry.js → p-a3c50037.system.entry.js} +1 -1
  455. package/lib/duet/p-a48a6cf9.system.entry.js +4 -0
  456. package/lib/duet/{p-bffda5ab.entry.js → p-a4f3a6d6.entry.js} +1 -1
  457. package/lib/duet/{p-8c2abe91.js → p-a68a90f3.js} +1 -1
  458. package/lib/duet/{p-61198184.system.entry.js → p-aa224793.system.entry.js} +1 -1
  459. package/lib/duet/{p-024c34d9.system.entry.js → p-aca600ee.system.entry.js} +1 -1
  460. package/lib/duet/{p-0a72cb14.system.entry.js → p-acac731e.system.entry.js} +1 -1
  461. package/lib/duet/{p-9faf2ac2.system.entry.js → p-ae3c38ec.system.entry.js} +1 -1
  462. package/lib/duet/{p-33a9413f.system.entry.js → p-aee53cdc.system.entry.js} +1 -1
  463. package/lib/duet/{p-a03fcf76.system.js → p-b197d195.system.js} +1 -1
  464. package/lib/duet/{p-13dce266.entry.js → p-b21962b0.entry.js} +1 -1
  465. package/lib/duet/{p-c6e60d08.system.entry.js → p-b230c327.system.entry.js} +1 -1
  466. package/lib/duet/{p-844d9170.entry.js → p-b275f92a.entry.js} +1 -1
  467. package/lib/duet/{p-71a70553.system.entry.js → p-b57e1a16.system.entry.js} +1 -1
  468. package/lib/duet/{p-9004d8ff.entry.js → p-b70e378a.entry.js} +1 -1
  469. package/lib/duet/p-b7f0f071.entry.js +4 -0
  470. package/lib/duet/p-bb3cd264.system.entry.js +4 -0
  471. package/lib/duet/{p-17029aad.entry.js → p-c1652045.entry.js} +1 -1
  472. package/lib/duet/{p-e762de37.entry.js → p-c16d08b2.entry.js} +1 -1
  473. package/lib/duet/{p-9eed5f82.js → p-c4a1cfd6.js} +1 -1
  474. package/lib/duet/{p-d610918e.system.entry.js → p-c57ed342.system.entry.js} +1 -1
  475. package/lib/duet/{p-1ca12248.entry.js → p-c6b0afdd.entry.js} +1 -1
  476. package/lib/duet/{p-e538f43c.system.entry.js → p-c7302b85.system.entry.js} +1 -1
  477. package/lib/duet/{p-5122eee8.system.js → p-c9798a8d.system.js} +1 -1
  478. package/lib/duet/{p-9608ad22.system.js → p-cddad487.system.js} +1 -1
  479. package/lib/duet/p-cdfca639.system.entry.js +4 -0
  480. package/lib/duet/{p-ece11bcb.entry.js → p-ce447833.entry.js} +1 -1
  481. package/lib/duet/{p-c59fbbb1.system.entry.js → p-d08d078b.system.entry.js} +1 -1
  482. package/lib/duet/{p-5c01b990.entry.js → p-d1814664.entry.js} +1 -1
  483. package/lib/duet/{p-aadd382f.system.entry.js → p-d28853ae.system.entry.js} +1 -1
  484. package/lib/duet/p-d3b64256.entry.js +4 -0
  485. package/lib/duet/{p-b5191612.system.entry.js → p-d3f723cf.system.entry.js} +1 -1
  486. package/lib/duet/{p-18e13eb6.system.entry.js → p-d42f9e4f.system.entry.js} +1 -1
  487. package/lib/duet/{p-662c351a.system.js → p-d4630d55.system.js} +1 -1
  488. package/lib/duet/{p-0e4fe522.system.entry.js → p-d4859ceb.system.entry.js} +1 -1
  489. package/lib/duet/{p-b094d253.entry.js → p-d5f395c0.entry.js} +1 -1
  490. package/lib/duet/p-d67c45eb.entry.js +4 -0
  491. package/lib/duet/{p-526bce13.system.entry.js → p-d71b8774.system.entry.js} +1 -1
  492. package/lib/duet/{p-05fc82b0.entry.js → p-d9a2772b.entry.js} +1 -1
  493. package/lib/duet/{p-e5f1e38a.js → p-d9cafc77.js} +1 -1
  494. package/lib/duet/{p-71a2b27b.system.entry.js → p-db82eb02.system.entry.js} +2 -2
  495. package/lib/duet/{p-328f8f18.entry.js → p-dc812f17.entry.js} +1 -1
  496. package/lib/duet/{p-8b350472.system.entry.js → p-de0a91b3.system.entry.js} +1 -1
  497. package/lib/duet/{p-333f7ae7.entry.js → p-e007c11a.entry.js} +1 -1
  498. package/lib/duet/p-e24ab988.system.entry.js +4 -0
  499. package/lib/duet/{p-5aeec4ac.system.entry.js → p-e2949e43.system.entry.js} +1 -1
  500. package/lib/duet/p-e34ddfda.system.entry.js +4 -0
  501. package/lib/duet/{p-590505a4.system.entry.js → p-e3a21063.system.entry.js} +1 -1
  502. package/lib/duet/p-e63f5ff5.js +4 -0
  503. package/lib/duet/p-e6cd1ffb.system.js +4 -0
  504. package/lib/duet/{p-04e49b2e.system.entry.js → p-eb157d71.system.entry.js} +1 -1
  505. package/lib/duet/{p-02aca5ee.system.entry.js → p-f052ccf2.system.entry.js} +1 -1
  506. package/lib/duet/{p-7d10302e.entry.js → p-f0dce24e.entry.js} +1 -1
  507. package/lib/duet/{p-7930882f.entry.js → p-f1a06e83.entry.js} +1 -1
  508. package/lib/duet/{p-60ef6c46.system.entry.js → p-f38175f1.system.entry.js} +1 -1
  509. package/lib/duet/{p-03e76030.system.entry.js → p-f3a26af1.system.entry.js} +1 -1
  510. package/lib/duet/p-f69dc290.entry.js +4 -0
  511. package/lib/duet/{p-b3f5912a.system.entry.js → p-f756e03d.system.entry.js} +1 -1
  512. package/lib/duet/{p-85167dd4.entry.js → p-f80ef600.entry.js} +1 -1
  513. package/lib/duet/{p-c45ddc7a.system.entry.js → p-f83e4a46.system.entry.js} +1 -1
  514. package/lib/duet/{p-4ead37f9.entry.js → p-f9536c83.entry.js} +1 -1
  515. package/lib/duet/{p-a8e26d38.entry.js → p-fa2d27c3.entry.js} +1 -1
  516. package/lib/duet/{p-68d50809.system.entry.js → p-fcb5179d.system.entry.js} +1 -1
  517. package/lib/duet/{p-22f40c48.system.entry.js → p-fe7ba159.system.entry.js} +1 -1
  518. package/lib/duet/{p-88dda3dd.entry.js → p-ff139142.entry.js} +1 -1
  519. package/lib/duet/{p-35d651a8.system.entry.js → p-ffe9f317.system.entry.js} +1 -1
  520. package/lib/duet/p-fff88e02.entry.js +4 -0
  521. package/lib/esm/{a11y-utils-d44f1172.js → a11y-utils-fb6d24ef.js} +1 -1
  522. package/lib/esm/{app-globals-5ec0d260.js → app-globals-595167e1.js} +1 -1
  523. package/lib/{dist-custom-elements/p-9b044291.js → esm/common-strings-1274857d.js} +23 -1
  524. package/lib/esm/duet-action-button.entry.js +4 -4
  525. package/lib/esm/duet-alert.entry.js +20 -32
  526. package/lib/esm/duet-badge.entry.js +16 -4
  527. package/lib/esm/duet-banner.entry.js +7 -7
  528. package/lib/esm/duet-breadcrumb.entry.js +7 -7
  529. package/lib/esm/duet-breadcrumbs.entry.js +6 -6
  530. package/lib/esm/duet-button_2.entry.js +13 -13
  531. package/lib/esm/duet-callout.entry.js +5 -5
  532. package/lib/esm/duet-caption_4.entry.js +15 -14
  533. package/lib/esm/duet-card.entry.js +9 -8
  534. package/lib/esm/duet-checkbox.entry.js +2 -2
  535. package/lib/esm/duet-checkmark.entry.js +4 -4
  536. package/lib/esm/duet-chip.entry.js +3 -3
  537. package/lib/esm/duet-choice_2.entry.js +28 -21
  538. package/lib/esm/duet-collapsible.entry.js +3 -3
  539. package/lib/esm/duet-combobox.entry.js +4 -4
  540. package/lib/esm/duet-contact-card.entry.js +5 -5
  541. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  542. package/lib/esm/duet-date-picker.entry.js +18 -8
  543. package/lib/esm/duet-divider_2.entry.js +4 -4
  544. package/lib/esm/duet-editable-table_3.entry.js +9 -9
  545. package/lib/esm/duet-empty-state.entry.js +2 -2
  546. package/lib/esm/duet-fieldset.entry.js +6 -6
  547. package/lib/esm/duet-file-chooser.entry.js +2 -2
  548. package/lib/esm/duet-footer.entry.js +5 -5
  549. package/lib/esm/duet-grid_2.entry.js +2 -2
  550. package/lib/esm/duet-header_2.entry.js +7 -6
  551. package/lib/esm/duet-hero.entry.js +6 -6
  552. package/lib/esm/duet-icon.entry.js +6 -6
  553. package/lib/esm/duet-input_2.entry.js +6 -6
  554. package/lib/esm/duet-layout.entry.js +2 -2
  555. package/lib/esm/duet-list_2.entry.js +4 -4
  556. package/lib/esm/duet-menu-bar-button.entry.js +4 -4
  557. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
  558. package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
  559. package/lib/esm/duet-menu-bar-item.entry.js +8 -8
  560. package/lib/esm/duet-menu-bar-link.entry.js +4 -4
  561. package/lib/esm/duet-menu-bar.entry.js +3 -3
  562. package/lib/esm/duet-modal.entry.js +40 -21
  563. package/lib/esm/duet-multiselect.entry.js +4 -4
  564. package/lib/esm/duet-nav.entry.js +3 -3
  565. package/lib/esm/duet-notification_2.entry.js +5 -5
  566. package/lib/esm/duet-number-input.entry.js +11 -7
  567. package/lib/esm/duet-overlay.entry.js +2 -2
  568. package/lib/esm/duet-page-heading.entry.js +4 -4
  569. package/lib/esm/duet-pagination_2.entry.js +6 -6
  570. package/lib/esm/duet-panel.entry.js +43 -0
  571. package/lib/esm/duet-phone-input.entry.js +4 -4
  572. package/lib/esm/duet-popup-menu_2.entry.js +6 -6
  573. package/lib/esm/duet-progress.entry.js +3 -3
  574. package/lib/esm/duet-promo-card.entry.js +6 -6
  575. package/lib/esm/duet-radio_2.entry.js +3 -3
  576. package/lib/esm/duet-range-slider.entry.js +2 -2
  577. package/lib/esm/duet-scrollable_3.entry.js +24 -21
  578. package/lib/esm/duet-section-layout.entry.js +4 -4
  579. package/lib/esm/duet-select.entry.js +4 -4
  580. package/lib/esm/duet-shaped-image.entry.js +4 -4
  581. package/lib/esm/duet-share-chart-item.entry.js +2 -2
  582. package/lib/esm/duet-share-chart.entry.js +9 -7
  583. package/lib/esm/duet-show-more.entry.js +5 -5
  584. package/lib/esm/duet-slideout-lang.entry.js +4 -4
  585. package/lib/esm/duet-slideout-link.entry.js +8 -8
  586. package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
  587. package/lib/esm/duet-slideout-panel.entry.js +12 -12
  588. package/lib/esm/duet-slideout.entry.js +10 -10
  589. package/lib/esm/duet-status-icon.entry.js +3 -3
  590. package/lib/esm/duet-step_2.entry.js +5 -5
  591. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
  592. package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
  593. package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
  594. package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
  595. package/lib/esm/duet-submenu-bar.entry.js +7 -7
  596. package/lib/esm/duet-textarea.entry.js +4 -4
  597. package/lib/esm/duet-toggle.entry.js +2 -2
  598. package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
  599. package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
  600. package/lib/esm/duet-toolbar-item.entry.js +9 -9
  601. package/lib/esm/duet-toolbar-link.entry.js +4 -4
  602. package/lib/esm/duet-toolbar.entry.js +4 -4
  603. package/lib/esm/duet-tooltip-button_2.entry.js +8 -8
  604. package/lib/esm/duet-tooltip.entry.js +3 -3
  605. package/lib/esm/duet-tray.entry.js +5 -5
  606. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  607. package/lib/esm/duet-upload-item.entry.js +6 -6
  608. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  609. package/lib/esm/duet.js +4 -4
  610. package/lib/esm/{errorcodes.utils-4ce3105d.js → errorcodes.utils-7effaab9.js} +1 -1
  611. package/lib/esm/{focus-utils-0d727936.js → focus-utils-2ff60ebe.js} +1 -1
  612. package/lib/esm/{index-5757a151.js → index-4cc3ec50.js} +5 -1
  613. package/lib/esm/{language-utils-1aea3619.js → language-utils-aa864aed.js} +1 -1
  614. package/lib/esm/loader.js +4 -4
  615. package/lib/esm/{slot-utils-03502471.js → slot-utils-28b6b964.js} +1 -1
  616. package/lib/esm/{themeable-component-e507940b.js → themeable-component-35ed7853.js} +1 -1
  617. package/lib/esm/{token-utils-7360bb84.js → token-utils-06ae5c10.js} +103 -8
  618. package/lib/esm-es5/{a11y-utils-d44f1172.js → a11y-utils-fb6d24ef.js} +1 -1
  619. package/lib/esm-es5/{app-globals-5ec0d260.js → app-globals-595167e1.js} +1 -1
  620. package/lib/esm-es5/{common-strings-a48b3fba.js → common-strings-1274857d.js} +1 -1
  621. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  622. package/lib/esm-es5/duet-alert.entry.js +1 -1
  623. package/lib/esm-es5/duet-badge.entry.js +1 -1
  624. package/lib/esm-es5/duet-banner.entry.js +1 -1
  625. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  626. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  627. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  628. package/lib/esm-es5/duet-callout.entry.js +1 -1
  629. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  630. package/lib/esm-es5/duet-card.entry.js +1 -1
  631. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  632. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  633. package/lib/esm-es5/duet-chip.entry.js +1 -1
  634. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  635. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  636. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  637. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  638. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  639. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  640. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  641. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  642. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  643. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  644. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  645. package/lib/esm-es5/duet-footer.entry.js +1 -1
  646. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  647. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  648. package/lib/esm-es5/duet-hero.entry.js +2 -2
  649. package/lib/esm-es5/duet-icon.entry.js +1 -1
  650. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  651. package/lib/esm-es5/duet-layout.entry.js +1 -1
  652. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  653. package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
  654. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  655. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  656. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  657. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  658. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  659. package/lib/esm-es5/duet-modal.entry.js +2 -2
  660. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  661. package/lib/esm-es5/duet-nav.entry.js +1 -1
  662. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  663. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  664. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  665. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  666. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  667. package/lib/esm-es5/duet-panel.entry.js +4 -0
  668. package/lib/esm-es5/duet-phone-input.entry.js +1 -1
  669. package/lib/esm-es5/duet-popup-menu_2.entry.js +1 -1
  670. package/lib/esm-es5/duet-progress.entry.js +1 -1
  671. package/lib/esm-es5/duet-promo-card.entry.js +2 -2
  672. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  673. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  674. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  675. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  676. package/lib/esm-es5/duet-select.entry.js +1 -1
  677. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  678. package/lib/esm-es5/duet-share-chart-item.entry.js +1 -1
  679. package/lib/esm-es5/duet-share-chart.entry.js +1 -1
  680. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  681. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  682. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  683. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
  684. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  685. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  686. package/lib/esm-es5/duet-status-icon.entry.js +1 -1
  687. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  688. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  689. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  690. package/lib/esm-es5/duet-submenu-bar-item.entry.js +1 -1
  691. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  692. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  693. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  694. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  695. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  696. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  697. package/lib/esm-es5/duet-toolbar-item.entry.js +1 -1
  698. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  699. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  700. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  701. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  702. package/lib/esm-es5/duet-tray.entry.js +1 -1
  703. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  704. package/lib/esm-es5/duet-upload-item.entry.js +1 -1
  705. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  706. package/lib/esm-es5/duet.js +1 -1
  707. package/lib/esm-es5/{errorcodes.utils-4ce3105d.js → errorcodes.utils-7effaab9.js} +1 -1
  708. package/lib/esm-es5/focus-utils-2ff60ebe.js +4 -0
  709. package/lib/esm-es5/index-4cc3ec50.js +4 -0
  710. package/lib/esm-es5/{language-utils-1aea3619.js → language-utils-aa864aed.js} +1 -1
  711. package/lib/esm-es5/loader.js +1 -1
  712. package/lib/esm-es5/{slot-utils-03502471.js → slot-utils-28b6b964.js} +1 -1
  713. package/lib/esm-es5/{themeable-component-e507940b.js → themeable-component-35ed7853.js} +1 -1
  714. package/lib/esm-es5/token-utils-06ae5c10.js +4 -0
  715. package/lib/types/common-strings.d.ts +2 -0
  716. package/lib/types/components/duet-alert/duet-alert.d.ts +5 -2
  717. package/lib/types/components/duet-badge/duet-badge.d.ts +1 -0
  718. package/lib/types/components/duet-card/duet-card.d.ts +6 -0
  719. package/lib/types/components/duet-choice/duet-choice.d.ts +0 -4
  720. package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +2 -2
  721. package/lib/types/components/duet-modal/duet-modal.d.ts +17 -1
  722. package/lib/types/components/duet-number-input/duet-number-input.d.ts +3 -1
  723. package/lib/types/components/duet-panel/duet-panel.d.ts +47 -0
  724. package/lib/types/components.d.ts +113 -11
  725. package/lib/types/utils/token-utils.d.ts +4 -0
  726. package/lib/types/utils/turva2-color-tokens.d.ts +39 -0
  727. package/package.json +4 -4
  728. package/lib/duet/p-0e1d879e.system.js +0 -4
  729. package/lib/duet/p-1390ae19.entry.js +0 -4
  730. package/lib/duet/p-144182a4.entry.js +0 -4
  731. package/lib/duet/p-1657ff9a.entry.js +0 -4
  732. package/lib/duet/p-1b355115.entry.js +0 -4
  733. package/lib/duet/p-1fe5a7e9.js +0 -4
  734. package/lib/duet/p-20669a1b.system.entry.js +0 -4
  735. package/lib/duet/p-2519a1b2.entry.js +0 -4
  736. package/lib/duet/p-2d6cd3b0.system.entry.js +0 -4
  737. package/lib/duet/p-3c2cf893.system.entry.js +0 -4
  738. package/lib/duet/p-3cbeb209.system.entry.js +0 -4
  739. package/lib/duet/p-3cd37502.entry.js +0 -4
  740. package/lib/duet/p-3ea64651.entry.js +0 -4
  741. package/lib/duet/p-40edc180.system.entry.js +0 -4
  742. package/lib/duet/p-435ed67f.entry.js +0 -4
  743. package/lib/duet/p-473febb8.entry.js +0 -4
  744. package/lib/duet/p-4cae058e.entry.js +0 -4
  745. package/lib/duet/p-5de30279.js +0 -4
  746. package/lib/duet/p-63a67247.js +0 -4
  747. package/lib/duet/p-76332920.system.js +0 -4
  748. package/lib/duet/p-78033ea5.js +0 -4
  749. package/lib/duet/p-836bee60.system.entry.js +0 -4
  750. package/lib/duet/p-8522541f.entry.js +0 -4
  751. package/lib/duet/p-8975b5ee.entry.js +0 -4
  752. package/lib/duet/p-9508ee67.system.js +0 -4
  753. package/lib/duet/p-9615338f.system.entry.js +0 -4
  754. package/lib/duet/p-a41a83dc.system.entry.js +0 -4
  755. package/lib/duet/p-b036d747.entry.js +0 -4
  756. package/lib/duet/p-b16705db.js +0 -4
  757. package/lib/duet/p-b5cb52b3.entry.js +0 -4
  758. package/lib/duet/p-baf03e8b.entry.js +0 -4
  759. package/lib/duet/p-bfa13cf6.entry.js +0 -4
  760. package/lib/duet/p-c658fdf2.system.entry.js +0 -4
  761. package/lib/duet/p-cc531319.js +0 -4
  762. package/lib/duet/p-d4e9333f.entry.js +0 -4
  763. package/lib/duet/p-d87768a3.entry.js +0 -4
  764. package/lib/duet/p-ecf25e2f.system.entry.js +0 -4
  765. package/lib/duet/p-f38adc18.entry.js +0 -4
  766. package/lib/duet/p-f6ada3f6.entry.js +0 -4
  767. package/lib/esm-es5/focus-utils-0d727936.js +0 -4
  768. package/lib/esm-es5/index-5757a151.js +0 -4
  769. package/lib/esm-es5/token-utils-7360bb84.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,c as t,h as a,H as i,g as o}from"./p-9eed5f82.js";import{a as l}from"./p-115c79b6.js";import{f as s,t as n}from"./p-eb60efcc.js";import{i as r}from"./p-e5f1e38a.js";import{c as d}from"./p-5e59e970.js";import{i as c,s as h,u as p}from"./p-a45e3f8b.js";import{h as b}from"./p-8c2abe91.js";import{s as g}from"./p-9c3c64b9.js";const u=class{constructor(a){e(this,a),this.duetToggle=t(this,"duetToggle",7),this.id=d("DuetCollapsible"),this.handleKeyDown=e=>{c(e)&&this.handleClick(e)},this.getFontSizeFromTokens=(e=this.headingSize)=>{if(e){const t=e.replace(/-/g,"_");return n[`font_size_${t}`]}return s},this.getEquivalentIconSize=(e=this.headingSize)=>{switch(e){case"x-small":case"small":case"medium":default:return"xx-small";case"large":return"x-small";case"x-large":return"small";case"xx-large":return"medium";case"xxx-large":return"x-large";case"xxxx-large":return"xxx-large"}},this.getAccessibleLabel=()=>this.accessibleLabel?this.accessibleLabel:this.heading&&this.caption?`${this.heading}. ${this.caption}`:this.heading||null,this.handleClick=e=>{e.preventDefault(),this.open=!this.open,this.duetToggle.emit({component:"duet-collapsible",originalEvent:e})},this.theme="",this.negative=!1,this.accessibleLabel=void 0,this.heading="",this.caption="",this.headingFullWidth=!1,this.centerHeading=!1,this.headingWeight="semibold",this.headingSize=void 0,this.headingLevel=void 0,this.margin="auto",this.open=!1}componentWillLoad(){r(this),this.hasAfterHeading=b(this.element,"after-heading")}connectedCallback(){h(this)}disconnectedCallback(){p(this)}async setFocus(e){this.nativeButton&&(this.element.classList.add("user-is-tabbing"),this.nativeButton.focus(e))}render(){const e=this.headingLevel?g(this.headingLevel):"div";return a(i,{key:"54b9522f13950fe10001c1980ecdfec23220f1c9",class:{"duet-m-0":"none"===this.margin,negative:this.negative}},a(e,{key:"d7e3168488798520a7df13b362a0fa6ab84b9ae1"},a("button",{key:"6e2017e7fcee29a3b2b48e09ae796d890dc32ba6",class:{"duet-collapsible-heading":!0,"duet-collapsible-heading-centered":this.centerHeading,"duet-theme-turva":"turva"===this.theme,"duet-collapsible-normal-weight":"normal"===this.headingWeight,"has-after-heading":this.hasAfterHeading,"full-width":this.headingFullWidth,"has-caption":!!this.caption},style:{"font-size":this.getFontSizeFromTokens()},role:"button",ref:e=>this.nativeButton=e,"aria-label":this.getAccessibleLabel(),"aria-expanded":this.open?"true":"false","aria-controls":this.id,onClick:this.handleClick,onKeyDown:this.handleKeyDown},a("div",{key:"3dc419556839dfb36da15a259587eb66d6634cce",class:"duet-collapsible-heading-wrapper"},a("div",{key:"567e70c640e56e3473739ab1fc3dfbcdeaf0ef98",class:"duet-collapsible-heading-icon"},a("duet-icon",{key:"957947758de386df0c50706c6b016ed6e796ee68",margin:"none",size:this.getEquivalentIconSize(),icon:l.svg})),a("div",{key:"d96956f8844feb680607d625f287ddde754a29df",class:"duet-collapsible-heading-content",part:"duet-collapsible-heading-content"},this.heading),this.hasAfterHeading&&a("div",{key:"3ad9637644eb87099b51d09943921242acd1a9da",part:"duet-collapsible-after-heading"},a("slot",{key:"0cf38df9d032614e562f056a633b986aca605e7a",name:"after-heading"}))),this.caption&&a("div",{key:"7090ce40aefd937bf3a0330677707934ce8cf68e",class:"duet-collapsible-heading-caption"},a("duet-caption",{key:"f0627546e816bbd7ba7291843f2481199b0abf16",size:"small",margin:"none"},this.caption)))),a("div",{key:"907dceb7ee1fbcb10260b73859e6d815f336197c",id:this.id,class:{"duet-collapsible-content":!0,"duet-theme-turva":"turva"===this.theme},part:"duet-collapsible-content"},a("slot",{key:"886161d9dc199839ad5dca4f39a24d18450407fc"})))}get element(){return o(this)}};u.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=after-heading]){display:inline-block}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77)}:host(.duet-theme-turva){font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}.duet-collapsible-content{display:none;padding-left:18px;margin-top:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(8, 42, 77)}@media (max-width: 35.9375em){.duet-collapsible-content{font-size:0.875rem}}.duet-collapsible-content.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host([open])>.duet-collapsible-content{display:block}.duet-collapsible-heading{-webkit-user-select:none;user-select:none;display:flex;flex-direction:column;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77);text-align:left;cursor:pointer;border-radius:4px}.duet-collapsible-heading.full-width{width:100%}.duet-collapsible-heading.duet-collapsible-heading-centered{margin:auto}.duet-collapsible-heading.duet-collapsible-heading-centered .duet-collapsible-heading-caption{margin-inline:auto}.duet-collapsible-heading.duet-collapsible-normal-weight{font-weight:400}.duet-collapsible-heading.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-collapsible-heading .duet-collapsible-heading-content{min-width:0}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div{margin-left:16px}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div.float-right{margin-left:auto}.duet-collapsible-heading.has-caption{gap:4px}.duet-collapsible-heading.has-caption .duet-collapsible-heading-caption{margin-left:18px;font-weight:inherit}.duet-collapsible-heading .duet-collapsible-heading-wrapper{display:flex;align-items:center;width:inherit;margin:inherit}.duet-collapsible-heading:focus{outline:0}:host(.user-is-tabbing) .duet-collapsible-heading:focus{border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-collapsible-heading.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-collapsible-heading-icon{margin-right:8px !important;display:flex;align-items:center;justify-content:center;color:rgb(8, 42, 77);transition:transform 300ms ease}.duet-collapsible-heading-icon:last-child,.duet-collapsible-heading-icon:last-of-type{margin-right:0 !important}[aria-expanded=true] .duet-collapsible-heading-icon{transform:rotate(180deg)}:host(.negative) .duet-collapsible-heading,:host(.negative) .duet-collapsible-content,:host(.negative) .duet-collapsible-heading-icon{color:rgb(255, 255, 255)}:host(.duet-theme-turva2){color:#172a3b}:host(.duet-theme-turva2) .duet-collapsible-content.duet-theme-turva,:host(.duet-theme-turva2) .duet-collapsible-heading.duet-theme-turva{color:rgb(23, 28, 58)}';export{u as duet_collapsible}
4
+ import{r as e,c as t,h as a,H as i,g as o}from"./p-c4a1cfd6.js";import{a as l}from"./p-115c79b6.js";import{f as s,t as n}from"./p-eb60efcc.js";import{i as d}from"./p-d9cafc77.js";import{c as r}from"./p-5e59e970.js";import{i as c,s as h,u as p}from"./p-a45e3f8b.js";import{h as b}from"./p-a68a90f3.js";import{s as g}from"./p-9c3c64b9.js";const u=class{constructor(a){e(this,a),this.duetToggle=t(this,"duetToggle",7),this.id=r("DuetCollapsible"),this.handleKeyDown=e=>{c(e)&&this.handleClick(e)},this.getFontSizeFromTokens=(e=this.headingSize)=>{if(e){const t=e.replace(/-/g,"_");return n[`font_size_${t}`]}return s},this.getEquivalentIconSize=(e=this.headingSize)=>{switch(e){case"x-small":case"small":case"medium":default:return"xx-small";case"large":return"x-small";case"x-large":return"small";case"xx-large":return"medium";case"xxx-large":return"x-large";case"xxxx-large":return"xxx-large"}},this.getAccessibleLabel=()=>this.accessibleLabel?this.accessibleLabel:this.heading&&this.caption?`${this.heading}. ${this.caption}`:this.heading||null,this.handleClick=e=>{e.preventDefault(),this.open=!this.open,this.duetToggle.emit({component:"duet-collapsible",originalEvent:e})},this.theme="",this.negative=!1,this.accessibleLabel=void 0,this.heading="",this.caption="",this.headingFullWidth=!1,this.centerHeading=!1,this.headingWeight="semibold",this.headingSize=void 0,this.headingLevel=void 0,this.margin="auto",this.open=!1}componentWillLoad(){d(this),this.hasAfterHeading=b(this.element,"after-heading")}connectedCallback(){h(this)}disconnectedCallback(){p(this)}async setFocus(e){this.nativeButton&&(this.element.classList.add("user-is-tabbing"),this.nativeButton.focus(e))}render(){const e=this.headingLevel?g(this.headingLevel):"div";return a(i,{key:"54b9522f13950fe10001c1980ecdfec23220f1c9",class:{"duet-m-0":"none"===this.margin,negative:this.negative}},a(e,{key:"d7e3168488798520a7df13b362a0fa6ab84b9ae1"},a("button",{key:"6e2017e7fcee29a3b2b48e09ae796d890dc32ba6",class:{"duet-collapsible-heading":!0,"duet-collapsible-heading-centered":this.centerHeading,"duet-theme-turva":"turva"===this.theme,"duet-collapsible-normal-weight":"normal"===this.headingWeight,"has-after-heading":this.hasAfterHeading,"full-width":this.headingFullWidth,"has-caption":!!this.caption},style:{"font-size":this.getFontSizeFromTokens()},role:"button",ref:e=>this.nativeButton=e,"aria-label":this.getAccessibleLabel(),"aria-expanded":this.open?"true":"false","aria-controls":this.id,onClick:this.handleClick,onKeyDown:this.handleKeyDown},a("div",{key:"3dc419556839dfb36da15a259587eb66d6634cce",class:"duet-collapsible-heading-wrapper"},a("div",{key:"567e70c640e56e3473739ab1fc3dfbcdeaf0ef98",class:"duet-collapsible-heading-icon"},a("duet-icon",{key:"957947758de386df0c50706c6b016ed6e796ee68",margin:"none",size:this.getEquivalentIconSize(),icon:l.svg})),a("div",{key:"d96956f8844feb680607d625f287ddde754a29df",class:"duet-collapsible-heading-content",part:"duet-collapsible-heading-content"},this.heading),this.hasAfterHeading&&a("div",{key:"3ad9637644eb87099b51d09943921242acd1a9da",part:"duet-collapsible-after-heading"},a("slot",{key:"0cf38df9d032614e562f056a633b986aca605e7a",name:"after-heading"}))),this.caption&&a("div",{key:"7090ce40aefd937bf3a0330677707934ce8cf68e",class:"duet-collapsible-heading-caption"},a("duet-caption",{key:"f0627546e816bbd7ba7291843f2481199b0abf16",size:"small",margin:"none"},this.caption)))),a("div",{key:"907dceb7ee1fbcb10260b73859e6d815f336197c",id:this.id,class:{"duet-collapsible-content":!0,"duet-theme-turva":"turva"===this.theme},part:"duet-collapsible-content"},a("slot",{key:"886161d9dc199839ad5dca4f39a24d18450407fc"})))}get element(){return o(this)}};u.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=after-heading]){display:inline-block}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77)}:host(.duet-theme-turva){font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}.duet-collapsible-content{display:none;padding-left:18px;margin-top:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(8, 42, 77)}@media (max-width: 35.9375em){.duet-collapsible-content{font-size:0.875rem}}.duet-collapsible-content.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host([open])>.duet-collapsible-content{display:block}.duet-collapsible-heading{-webkit-user-select:none;user-select:none;display:flex;flex-direction:column;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77);text-align:left;cursor:pointer;border-radius:4px}.duet-collapsible-heading.full-width{width:100%}.duet-collapsible-heading.duet-collapsible-heading-centered{margin:auto}.duet-collapsible-heading.duet-collapsible-heading-centered .duet-collapsible-heading-caption{margin-inline:auto}.duet-collapsible-heading.duet-collapsible-normal-weight{font-weight:400}.duet-collapsible-heading.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-collapsible-heading .duet-collapsible-heading-content{min-width:0}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div{margin-left:16px}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div.float-right{margin-left:auto}.duet-collapsible-heading.has-caption{gap:4px}.duet-collapsible-heading.has-caption .duet-collapsible-heading-caption{margin-left:18px;font-weight:inherit}.duet-collapsible-heading .duet-collapsible-heading-wrapper{display:flex;align-items:center;width:inherit;margin:inherit}.duet-collapsible-heading:focus{outline:0}:host(.user-is-tabbing) .duet-collapsible-heading:focus{border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-collapsible-heading.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-collapsible-heading-icon{margin-right:8px !important;display:flex;align-items:center;justify-content:center;color:rgb(8, 42, 77);transition:transform 300ms ease}.duet-collapsible-heading-icon:last-child,.duet-collapsible-heading-icon:last-of-type{margin-right:0 !important}[aria-expanded=true] .duet-collapsible-heading-icon{transform:rotate(180deg)}:host(.negative) .duet-collapsible-heading,:host(.negative) .duet-collapsible-content,:host(.negative) .duet-collapsible-heading-icon{color:rgb(255, 255, 255)}:host(.duet-theme-turva2){color:#172a3b}:host(.duet-theme-turva2) .duet-collapsible-content.duet-theme-turva,:host(.duet-theme-turva2) .duet-collapsible-heading.duet-theme-turva{color:rgb(23, 28, 58)}';export{u as duet_collapsible}
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,o,i){function r(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function a(e){try{u(i.next(e))}catch(e){n(e)}}function d(e){try{u(i["throw"](e))}catch(e){n(e)}}function u(e){e.done?o(e.value):r(e.value).then(a,d)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var o={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,r,n,a;return a={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function d(e){return function(t){return u([e,t])}}function u(d){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,d[0]&&(o=0)),o)try{if(i=1,r&&(n=d[0]&2?r["return"]:d[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,d[1])).done)return n;if(r=0,n)d=[d[0]&2,n.value];switch(d[0]){case 0:case 1:n=d;break;case 4:o.label++;return{value:d[1],done:false};case 5:o.label++;r=d[1];d=[0];continue;case 7:d=o.ops.pop();o.trys.pop();continue;default:if(!(n=o.trys,n=n.length>0&&n[n.length-1])&&(d[0]===6||d[0]===2)){o=0;continue}if(d[0]===3&&(!n||d[1]>n[0]&&d[1]<n[3])){o.label=d[1];break}if(d[0]===6&&o.label<n[1]){o.label=n[1];n=d;break}if(n&&o.label<n[2]){o.label=n[2];o.ops.push(d);break}if(n[2])o.ops.pop();o.trys.pop();continue}d=t.call(e,o)}catch(e){d=[6,e];r=0}finally{i=n=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-f78b9d60.system.js","./p-053b71e6.system.js","./p-76332920.system.js","./p-9608ad22.system.js","./p-752fa0fc.system.js","./p-b5eb657a.system.js","./p-662c351a.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,o,i,r,n,a,d,u,f,s,l,p,c,m,h,g;return{setters:[function(e){t=e.r;o=e.c;i=e.h;r=e.F;n=e.g},function(e){a=e.a},function(e){d=e.D},function(e){u=e.i},function(e){f=e.s;s=e.u},function(e){l=e.a;p=e.g;c=e.c;m=e.d},function(e){h=e.h},function(e){g=e.p}],execute:function(){var b='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex-shrink:0;width:100%}::slotted([slot=info]){padding:0 28px;margin-top:0;margin-bottom:16px}@media (min-width: 62em){::slotted([slot=info]){padding:0;margin-top:calc(20px - 0.5em);margin-bottom:0}}.duet-footer{display:block;width:100%;padding-top:24px;padding-bottom:16px;margin-top:48px;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(255, 255, 255);text-align:left;background:rgb(8, 42, 77)}.duet-footer.duet-p-0{padding:0 !important}.duet-footer.duet-m-0{margin:0 !important}@media (min-width: 62em){.duet-footer{padding-top:48px;padding-bottom:36px}}.duet-footer.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background:rgb(198, 12, 48)}.duet-footer a{color:rgb(255, 255, 255);text-decoration:none}@media (min-width: 62em){.duet-footer a{border-radius:4px}}.duet-footer a:focus{outline:0}:host(.user-is-tabbing) .duet-footer a:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva a:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-footer-wrapper{position:relative;margin:0 auto}@media (min-width: 62em){.duet-footer-wrapper{padding:0 72px 0 48px}}@media (min-width: 76.25em){.duet-footer-wrapper{max-width:1110px;padding:0 20px 0 0}}.duet-footer-top{width:100%}@media (min-width: 62em){.duet-footer-top{display:flex;flex-direction:row;align-items:center}.duet-footer-top.duet-has-info{align-items:flex-start}}.duet-footer-top .footer-top-logo{flex-grow:1}.duet-footer-top .footer-top-right-container{flex-grow:1}@media (min-width: 62em){.duet-footer-top .footer-top-right-container{text-align:right}}.duet-footer-top .footer-top-items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding-left:28px}@media (min-width: 62em){.duet-footer-top .footer-top-items{flex-direction:row;justify-content:flex-end}}duet-logo{margin-bottom:24px;margin-left:16px !important}@media (min-width: 62em){duet-logo{margin-bottom:0;margin-left:0 !important}}.duet-footer-link{padding:16px !important;display:flex;flex-direction:row;align-items:center;width:100%;font-weight:600;border-bottom:1px solid rgba(255, 255, 255, 0.2);transition:background-color 300ms ease}@media (min-width: 36em){.duet-footer-link{padding-right:20px !important;padding-left:28px !important}}@media (min-width: 62em){.duet-footer-link{width:auto;min-width:0;padding-right:0 !important;padding-left:0 !important;border:0}}.duet-footer-link:first-of-type{margin-top:20px;border-top:1px solid rgba(255, 255, 255, 0.2)}@media (min-width: 62em){.duet-footer-link:first-of-type{margin:0;border:0}}.duet-footer-link span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.duet-footer-link:hover{background:rgba(0, 0, 0, 0.1)}@media (min-width: 62em){.duet-footer-link:hover{background:transparent}}.duet-footer-menu{padding:20px !important;display:flex;gap:2rem;padding-left:28px !important;font-size:0.875rem}@media (min-width: 36em){.duet-footer-menu{padding:28px !important}}@media (min-width: 62em){.duet-footer-menu{padding-right:0 !important;padding-left:8px !important}}.duet-footer-menu a{display:inline-block;text-decoration:none;overflow-wrap:break-word}.duet-footer-menu a:hover,.duet-footer-menu a:focus{text-decoration:underline}.duet-footer-menu a:hover .duet-footer-divider,.duet-footer-menu a:focus .duet-footer-divider{text-decoration:none}.duet-footer-menu .duet-footer-divider{display:inline-block;margin:0 8px}.duet-footer-menu .duet-footer-divider-copyright{display:none}.duet-footer-menu .duet-footer-menu-links{display:block;flex:1}@media (min-width: 62em){.duet-footer-menu .duet-footer-menu-links{text-align:right}}.duet-footer-menu a:last-of-type .duet-footer-divider{display:none}.duet-footer-copyright{display:none;font-size:0.875rem;color:rgb(255, 255, 255)}@media (min-width: 62em){.duet-footer-copyright{display:inline}}.duet-footer-copyright.duet-footer-copyright-mobile{display:block;padding-top:0.5rem;padding-bottom:1.25rem;padding-left:28px;text-align:left}@media (min-width: 62em){.duet-footer-copyright.duet-footer-copyright-mobile{display:none}}.duet-footer-simple{padding:0;margin:0;margin-top:16px;color:rgb(8, 42, 77);background:transparent !important;border-top:1px solid rgb(212, 223, 229)}.duet-footer-simple .duet-footer-wrapper{max-width:100%;padding:0 20px;margin:0}@media (min-width: 62em){.duet-footer-simple .duet-footer-wrapper{padding:0 36px}}@media (min-width: 106.25em){.duet-footer-simple .duet-footer-wrapper{padding:0 48px}}.duet-footer-simple .duet-footer-copyright,.duet-footer-simple .duet-footer-menu a{color:rgb(8, 42, 77)}.duet-footer-simple .duet-footer-menu{padding:20px 0 !important}.duet-footer-simple .duet-footer-copyright-mobile{padding-left:0}.duet-footer-simple.duet-theme-turva{color:rgb(23, 28, 58);border-color:rgb(222, 224, 228)}.duet-footer-simple.duet-theme-turva .duet-footer-copyright,.duet-footer-simple.duet-theme-turva .duet-footer-menu a{color:rgb(23, 28, 58)}.duet-footer-external{display:inline-block;margin-left:4px;color:rgb(0, 119, 179)}.duet-theme-turva .duet-footer-external{color:rgb(255, 255, 255)}.duet-footer-simple.duet-theme-turva .duet-footer-external{color:rgb(198, 12, 48)}:host(.duet-theme-turva2) .duet-footer.duet-theme-turva{background:#e61740}:host(.duet-theme-turva2) .duet-footer-simple.duet-theme-turva{color:#172a3b;border-color:#d4dde2}:host(.duet-theme-turva2) .duet-footer-simple.duet-theme-turva .duet-footer-copyright,:host(.duet-theme-turva2) .duet-footer-simple.duet-theme-turva .duet-footer-menu a{color:#172a3b}:host(.duet-theme-turva2) .duet-footer-simple.duet-theme-turva .duet-footer-external{color:#e61740}';var v=b;var x={fi:{lahi:"© LähiTapiola",turva:"© Turva"},sv:{lahi:"© LokalTapiola",turva:"© Turva"},en:{lahi:"© LocalTapiola",turva:"© Turva"}};var y=function(e,t){return{component:"duet-footer",data:t,originalEvent:e}};var w=e("duet_footer",function(){function e(e){var i=this;t(this,e);this.duetChange=o(this,"duetChange",3);this.duetLogoClick=o(this,"duetLogoClick",7);this.duetMenuClick=o(this,"duetMenuClick",7);this.duetItemClick=o(this,"duetItemClick",7);this.duetAnalytics=o(this,"duetAnalytics",7);this.duetEvent=o(this,"duetEvent",7);this.handleClick=function(e){if(e.data.analyticsId){i.duetAnalytics.emit({component:"duet-footer",analyticsId:e.data.analyticsId})}i.duetChange.emit(e)};this.handleLogoClick=function(e){var t=y(e,{href:i.logoHref,label:"logo"});i.duetLogoClick.emit(t);i.handleClick(t)};this.handleMenuClick=function(e,t){var o=y(e,t);i.handleClick(o);i.duetMenuClick.emit(o)};this.handleItemClick=function(e,t){var o=y(e,t);i.handleClick(o);i.duetItemClick.emit(o)};this.emitDuetEvent=function(e,t){i.duetEvent.emit({component:"duet-footer",data:t,originalEvent:e})};this.setDataAttributes=function(e,t){if(!t.data){return}for(var o in t.data){e.dataset[o]=t.data[o]}};this.processedMainItem=null;this.processedItems=null;this.processedMenu=null;this.theme="";this.variation="default";this.margin="auto";this.logoHref="/";this.language=l();this.items=undefined;this.accessibleLabel=undefined;this.accessibleLabelExternalDefaults=d;this.accessibleLabelExternal=p(this.accessibleLabelExternalDefaults);this.menu=undefined}e.prototype.componentWillLoad=function(){u(this);this.refresh();this.hasInfoSlot=h(this.element,"info")};e.prototype.connectedCallback=function(){c(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"});f(this)};e.prototype.disconnectedCallback=function(){m(this);s(this)};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.processedItems=g(this.items);this.processedMenu=g(this.menu);return[2]}))}))};e.prototype.render=function(){var e=this;var t=p(x,this.language);var o=this.theme==="turva"?t.turva:t.lahi;return i("footer",{key:"6fa54dcd00d062870fef8ce931047abde21f1c56",class:{"duet-footer":true,"duet-m-0":this.margin==="none","duet-theme-turva":this.theme==="turva","duet-footer-simple":this.variation==="simple"},"aria-label":this.accessibleLabel},i("div",{key:"5e9eedb5c729cbc91227cc2636875dd434d6207b",class:"duet-footer-wrapper"},this.variation!=="simple"&&i("div",{key:"7286614e130e7455c28ed4bcb80403763e56f408",class:{"duet-footer-top":true,"duet-has-info":this.hasInfoSlot},part:"top"},i("div",{key:"b3fd6d13a8fac62e4236eda752d920167baf1a10",class:"footer-top-logo"},i("duet-logo",{key:"74f475196e83b9a4a7dc46619f8c77b56c068c5c",href:this.logoHref,onClick:this.handleLogoClick,size:"large",inverse:true,language:this.language,theme:this.theme})),i("div",{key:"80a2684fcdc87454f44c3631f6b7d91c2ff1034c",class:"footer-top-right-container"},i("slot",{key:"aaa8f84447a72bd2ce459c462188e8b634903ea5",name:"info"}),i("div",{key:"799aff5f480b44d4512f1e467dc8e3bfb280b38f",class:"footer-top-items"},this.processedItems&&this.processedItems.map((function(t,o){var n,a,d,u,f,s;return i(r,null,o>0&&i("duet-spacer",{size:"x-large",direction:"horizontal"}),i("duet-button",{ref:function(o){return e.setDataAttributes(o,t)},theme:e.theme,id:t.id,class:"duet-footer-link",variation:"plain",margin:"none",fixed:true,negative:true,url:t.href,external:t.external,icon:((n=t.href)===null||n===void 0?void 0:n.startsWith("tel:"))?"form-tel":((a=t.href)===null||a===void 0?void 0:a.startsWith("mailto:"))?"navigation-message":"navigation-arrow-right","icon-right":!((d=t.href)===null||d===void 0?void 0:d.startsWith("tel:"))&&!((u=t.href)===null||u===void 0?void 0:u.startsWith("mailto:")),"icon-size":((f=t.href)===null||f===void 0?void 0:f.startsWith("tel:"))||((s=t.href)===null||s===void 0?void 0:s.startsWith("mailto:"))?"medium":"medium-small",onClick:function(o){return e.handleItemClick(o,t)},onMouseEnter:function(o){return e.emitDuetEvent(o,t)},onTouchStart:function(o){return e.emitDuetEvent(o,t)}},t.label))}))))),i("slot",{key:"d88c064ddca3e3dafc81f460513ad82954a98610",name:"extra"}),i("p",{key:"2a86e3021e849b0098a824f4770ab1fac0524ff1",class:"duet-footer-menu",part:"menu"},i("span",{key:"46ed17532335add2cefab0e7db04c1078be774d0",class:"duet-footer-copyright"},"".concat(o," ").concat((new Date).getFullYear())),i("span",{key:"c2b48cdf3eba48b8f36c4b4ec34745929a583cde",class:"duet-footer-menu-links"},this.processedMenu&&i(r,{key:"1a27be7b7525e42cbafd4938765f4fb663ad4d61"},this.processedMenu.map((function(t){return i("a",{ref:function(o){return e.setDataAttributes(o,t)},href:t.href,id:t.id,target:t.external?"_blank":"_self",onClick:function(o){return e.handleMenuClick(o,t)},onMouseEnter:function(o){return e.emitDuetEvent(o,t)},onTouchStart:function(o){return e.emitDuetEvent(o,t)}},t.label,t.external&&i(r,null,i("duet-visually-hidden",null,", ",e.accessibleLabelExternal),i("span",{class:"duet-footer-external"},i("duet-icon",{icon:a.svg,size:"xx-small",margin:"none",color:"currentColor"}))),i("span",{class:"duet-footer-divider",role:"presentation","aria-hidden":"true"},"/"))}))))),i("p",{key:"f9d8c513b27020cfa64c0726b6f643522fde10ff",class:"duet-footer-copyright duet-footer-copyright-mobile"},"".concat(o," ").concat((new Date).getFullYear()))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{menu:["refresh"],items:["refresh"]}},enumerable:false,configurable:true});return e}());w.style=v}}}));
4
+ */System.register(["./p-43d6b171.system.js","./p-053b71e6.system.js","./p-87633fff.system.js","./p-cddad487.system.js","./p-752fa0fc.system.js","./p-1cc2eb98.system.js","./p-d4630d55.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,o,i,r,n,a,d,u,f,s,l,p,c,m,h,g;return{setters:[function(e){t=e.r;o=e.c;i=e.h;r=e.F;n=e.g},function(e){a=e.a},function(e){d=e.a},function(e){u=e.i},function(e){f=e.s;s=e.u},function(e){l=e.a;p=e.g;c=e.c;m=e.d},function(e){h=e.h},function(e){g=e.p}],execute:function(){var b='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex-shrink:0;width:100%}::slotted([slot=info]){padding:0 28px;margin-top:0;margin-bottom:16px}@media (min-width: 62em){::slotted([slot=info]){padding:0;margin-top:calc(20px - 0.5em);margin-bottom:0}}.duet-footer{display:block;width:100%;padding-top:24px;padding-bottom:16px;margin-top:48px;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(255, 255, 255);text-align:left;background:rgb(8, 42, 77)}.duet-footer.duet-p-0{padding:0 !important}.duet-footer.duet-m-0{margin:0 !important}@media (min-width: 62em){.duet-footer{padding-top:48px;padding-bottom:36px}}.duet-footer.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background:rgb(198, 12, 48)}.duet-footer a{color:rgb(255, 255, 255);text-decoration:none}@media (min-width: 62em){.duet-footer a{border-radius:4px}}.duet-footer a:focus{outline:0}:host(.user-is-tabbing) .duet-footer a:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva a:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-footer-wrapper{position:relative;margin:0 auto}@media (min-width: 62em){.duet-footer-wrapper{padding:0 72px 0 48px}}@media (min-width: 76.25em){.duet-footer-wrapper{max-width:1110px;padding:0 20px 0 0}}.duet-footer-top{width:100%}@media (min-width: 62em){.duet-footer-top{display:flex;flex-direction:row;align-items:center}.duet-footer-top.duet-has-info{align-items:flex-start}}.duet-footer-top .footer-top-logo{flex-grow:1}.duet-footer-top .footer-top-right-container{flex-grow:1}@media (min-width: 62em){.duet-footer-top .footer-top-right-container{text-align:right}}.duet-footer-top .footer-top-items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding-left:28px}@media (min-width: 62em){.duet-footer-top .footer-top-items{flex-direction:row;justify-content:flex-end}}duet-logo{margin-bottom:24px;margin-left:16px !important}@media (min-width: 62em){duet-logo{margin-bottom:0;margin-left:0 !important}}.duet-footer-link{padding:16px !important;display:flex;flex-direction:row;align-items:center;width:100%;font-weight:600;border-bottom:1px solid rgba(255, 255, 255, 0.2);transition:background-color 300ms ease}@media (min-width: 36em){.duet-footer-link{padding-right:20px !important;padding-left:28px !important}}@media (min-width: 62em){.duet-footer-link{width:auto;min-width:0;padding-right:0 !important;padding-left:0 !important;border:0}}.duet-footer-link:first-of-type{margin-top:20px;border-top:1px solid rgba(255, 255, 255, 0.2)}@media (min-width: 62em){.duet-footer-link:first-of-type{margin:0;border:0}}.duet-footer-link span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.duet-footer-link:hover{background:rgba(0, 0, 0, 0.1)}@media (min-width: 62em){.duet-footer-link:hover{background:transparent}}.duet-footer-menu{padding:20px !important;display:flex;gap:2rem;padding-left:28px !important;font-size:0.875rem}@media (min-width: 36em){.duet-footer-menu{padding:28px !important}}@media (min-width: 62em){.duet-footer-menu{padding-right:0 !important;padding-left:8px !important}}.duet-footer-menu a{display:inline-block;text-decoration:none;overflow-wrap:break-word}.duet-footer-menu a:hover,.duet-footer-menu a:focus{text-decoration:underline}.duet-footer-menu a:hover .duet-footer-divider,.duet-footer-menu a:focus .duet-footer-divider{text-decoration:none}.duet-footer-menu .duet-footer-divider{display:inline-block;margin:0 8px}.duet-footer-menu .duet-footer-divider-copyright{display:none}.duet-footer-menu .duet-footer-menu-links{display:block;flex:1}@media (min-width: 62em){.duet-footer-menu .duet-footer-menu-links{text-align:right}}.duet-footer-menu a:last-of-type .duet-footer-divider{display:none}.duet-footer-copyright{display:none;font-size:0.875rem;color:rgb(255, 255, 255)}@media (min-width: 62em){.duet-footer-copyright{display:inline}}.duet-footer-copyright.duet-footer-copyright-mobile{display:block;padding-top:0.5rem;padding-bottom:1.25rem;padding-left:28px;text-align:left}@media (min-width: 62em){.duet-footer-copyright.duet-footer-copyright-mobile{display:none}}.duet-footer-simple{padding:0;margin:0;margin-top:16px;color:rgb(8, 42, 77);background:transparent !important;border-top:1px solid rgb(212, 223, 229)}.duet-footer-simple .duet-footer-wrapper{max-width:100%;padding:0 20px;margin:0}@media (min-width: 62em){.duet-footer-simple .duet-footer-wrapper{padding:0 36px}}@media (min-width: 106.25em){.duet-footer-simple .duet-footer-wrapper{padding:0 48px}}.duet-footer-simple .duet-footer-copyright,.duet-footer-simple .duet-footer-menu a{color:rgb(8, 42, 77)}.duet-footer-simple .duet-footer-menu{padding:20px 0 !important}.duet-footer-simple .duet-footer-copyright-mobile{padding-left:0}.duet-footer-simple.duet-theme-turva{color:rgb(23, 28, 58);border-color:rgb(222, 224, 228)}.duet-footer-simple.duet-theme-turva .duet-footer-copyright,.duet-footer-simple.duet-theme-turva .duet-footer-menu a{color:rgb(23, 28, 58)}.duet-footer-external{display:inline-block;margin-left:4px;color:rgb(0, 119, 179)}.duet-theme-turva .duet-footer-external{color:rgb(255, 255, 255)}.duet-footer-simple.duet-theme-turva .duet-footer-external{color:rgb(198, 12, 48)}:host(.duet-theme-turva2) .duet-footer.duet-theme-turva{background:#e61740}:host(.duet-theme-turva2) .duet-footer-simple.duet-theme-turva{color:#172a3b;border-color:#d4dde2}:host(.duet-theme-turva2) .duet-footer-simple.duet-theme-turva .duet-footer-copyright,:host(.duet-theme-turva2) .duet-footer-simple.duet-theme-turva .duet-footer-menu a{color:#172a3b}:host(.duet-theme-turva2) .duet-footer-simple.duet-theme-turva .duet-footer-external{color:#e61740}';var v=b;var x={fi:{lahi:"© LähiTapiola",turva:"© Turva"},sv:{lahi:"© LokalTapiola",turva:"© Turva"},en:{lahi:"© LocalTapiola",turva:"© Turva"}};var y=function(e,t){return{component:"duet-footer",data:t,originalEvent:e}};var w=e("duet_footer",function(){function e(e){var i=this;t(this,e);this.duetChange=o(this,"duetChange",3);this.duetLogoClick=o(this,"duetLogoClick",7);this.duetMenuClick=o(this,"duetMenuClick",7);this.duetItemClick=o(this,"duetItemClick",7);this.duetAnalytics=o(this,"duetAnalytics",7);this.duetEvent=o(this,"duetEvent",7);this.handleClick=function(e){if(e.data.analyticsId){i.duetAnalytics.emit({component:"duet-footer",analyticsId:e.data.analyticsId})}i.duetChange.emit(e)};this.handleLogoClick=function(e){var t=y(e,{href:i.logoHref,label:"logo"});i.duetLogoClick.emit(t);i.handleClick(t)};this.handleMenuClick=function(e,t){var o=y(e,t);i.handleClick(o);i.duetMenuClick.emit(o)};this.handleItemClick=function(e,t){var o=y(e,t);i.handleClick(o);i.duetItemClick.emit(o)};this.emitDuetEvent=function(e,t){i.duetEvent.emit({component:"duet-footer",data:t,originalEvent:e})};this.setDataAttributes=function(e,t){if(!t.data){return}for(var o in t.data){e.dataset[o]=t.data[o]}};this.processedMainItem=null;this.processedItems=null;this.processedMenu=null;this.theme="";this.variation="default";this.margin="auto";this.logoHref="/";this.language=l();this.items=undefined;this.accessibleLabel=undefined;this.accessibleLabelExternalDefaults=d;this.accessibleLabelExternal=p(this.accessibleLabelExternalDefaults);this.menu=undefined}e.prototype.componentWillLoad=function(){u(this);this.refresh();this.hasInfoSlot=h(this.element,"info")};e.prototype.connectedCallback=function(){c(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"});f(this)};e.prototype.disconnectedCallback=function(){m(this);s(this)};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.processedItems=g(this.items);this.processedMenu=g(this.menu);return[2]}))}))};e.prototype.render=function(){var e=this;var t=p(x,this.language);var o=this.theme==="turva"?t.turva:t.lahi;return i("footer",{key:"6fa54dcd00d062870fef8ce931047abde21f1c56",class:{"duet-footer":true,"duet-m-0":this.margin==="none","duet-theme-turva":this.theme==="turva","duet-footer-simple":this.variation==="simple"},"aria-label":this.accessibleLabel},i("div",{key:"5e9eedb5c729cbc91227cc2636875dd434d6207b",class:"duet-footer-wrapper"},this.variation!=="simple"&&i("div",{key:"7286614e130e7455c28ed4bcb80403763e56f408",class:{"duet-footer-top":true,"duet-has-info":this.hasInfoSlot},part:"top"},i("div",{key:"b3fd6d13a8fac62e4236eda752d920167baf1a10",class:"footer-top-logo"},i("duet-logo",{key:"74f475196e83b9a4a7dc46619f8c77b56c068c5c",href:this.logoHref,onClick:this.handleLogoClick,size:"large",inverse:true,language:this.language,theme:this.theme})),i("div",{key:"80a2684fcdc87454f44c3631f6b7d91c2ff1034c",class:"footer-top-right-container"},i("slot",{key:"aaa8f84447a72bd2ce459c462188e8b634903ea5",name:"info"}),i("div",{key:"799aff5f480b44d4512f1e467dc8e3bfb280b38f",class:"footer-top-items"},this.processedItems&&this.processedItems.map((function(t,o){var n,a,d,u,f,s;return i(r,null,o>0&&i("duet-spacer",{size:"x-large",direction:"horizontal"}),i("duet-button",{ref:function(o){return e.setDataAttributes(o,t)},theme:e.theme,id:t.id,class:"duet-footer-link",variation:"plain",margin:"none",fixed:true,negative:true,url:t.href,external:t.external,icon:((n=t.href)===null||n===void 0?void 0:n.startsWith("tel:"))?"form-tel":((a=t.href)===null||a===void 0?void 0:a.startsWith("mailto:"))?"navigation-message":"navigation-arrow-right","icon-right":!((d=t.href)===null||d===void 0?void 0:d.startsWith("tel:"))&&!((u=t.href)===null||u===void 0?void 0:u.startsWith("mailto:")),"icon-size":((f=t.href)===null||f===void 0?void 0:f.startsWith("tel:"))||((s=t.href)===null||s===void 0?void 0:s.startsWith("mailto:"))?"medium":"medium-small",onClick:function(o){return e.handleItemClick(o,t)},onMouseEnter:function(o){return e.emitDuetEvent(o,t)},onTouchStart:function(o){return e.emitDuetEvent(o,t)}},t.label))}))))),i("slot",{key:"d88c064ddca3e3dafc81f460513ad82954a98610",name:"extra"}),i("p",{key:"2a86e3021e849b0098a824f4770ab1fac0524ff1",class:"duet-footer-menu",part:"menu"},i("span",{key:"46ed17532335add2cefab0e7db04c1078be774d0",class:"duet-footer-copyright"},"".concat(o," ").concat((new Date).getFullYear())),i("span",{key:"c2b48cdf3eba48b8f36c4b4ec34745929a583cde",class:"duet-footer-menu-links"},this.processedMenu&&i(r,{key:"1a27be7b7525e42cbafd4938765f4fb663ad4d61"},this.processedMenu.map((function(t){return i("a",{ref:function(o){return e.setDataAttributes(o,t)},href:t.href,id:t.id,target:t.external?"_blank":"_self",onClick:function(o){return e.handleMenuClick(o,t)},onMouseEnter:function(o){return e.emitDuetEvent(o,t)},onTouchStart:function(o){return e.emitDuetEvent(o,t)}},t.label,t.external&&i(r,null,i("duet-visually-hidden",null,", ",e.accessibleLabelExternal),i("span",{class:"duet-footer-external"},i("duet-icon",{icon:a.svg,size:"xx-small",margin:"none",color:"currentColor"}))),i("span",{class:"duet-footer-divider",role:"presentation","aria-hidden":"true"},"/"))}))))),i("p",{key:"f9d8c513b27020cfa64c0726b6f643522fde10ff",class:"duet-footer-copyright duet-footer-copyright-mobile"},"".concat(o," ").concat((new Date).getFullYear()))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{menu:["refresh"],items:["refresh"]}},enumerable:false,configurable:true});return e}());w.style=v}}}));
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,i,n){function c(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function o(e){try{d(n.next(e))}catch(e){r(e)}}function a(e){try{d(n["throw"](e))}catch(e){r(e)}}function d(e){e.done?i(e.value):c(e.value).then(o,a)}d((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,c,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return d([e,t])}}function d(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(i=0)),i)try{if(n=1,c&&(r=a[0]&2?c["return"]:a[0]?c["throw"]||((r=c["return"])&&r.call(c),0):c.next)&&!(r=r.call(c,a[1])).done)return r;if(c=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;c=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];c=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
- */System.register(["./p-f78b9d60.system.js","./p-9608ad22.system.js","./p-e6b5a1c7.system.js","./p-752fa0fc.system.js","./p-b5eb657a.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,i,n,c,r,o,a,d,u,h,s;return{setters:[function(e){t=e.r;i=e.c;n=e.h;c=e.H;r=e.g},function(e){o=e.i},function(e){a=e.c},function(e){d=e.s;u=e.u;h=e.q},function(e){s=e.g},function(){}],execute:function(){var p='*,*::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}:host(.input){margin-top:6px !important;margin-right:0 !important;margin-bottom:6px !important;margin-left:4px !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(8, 42, 77) !important;text-align:center;cursor:pointer;background:rgb(255, 255, 255);border-color:rgb(181, 198, 208);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(199, 202, 207)}.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(98, 121, 138) !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(143, 147, 158) !important;background:rgb(245, 247, 250);border-color:rgb(245, 247, 250)}.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, 247, 250);border-color:rgb(245, 247, 250)}.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(8, 42, 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:8px}.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:12px}.duet-chip-container.duet-chip-has-popup button,.duet-chip-container.duet-chip-has-popup label{padding-right:12px}.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(228, 241, 247);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(198, 225, 238)}.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, 247, 250);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(222, 224, 228)}.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(240, 247, 250);border-color:rgb(240, 247, 250)}.duet-chip-container.duet-chip-filter-popup-open.duet-theme-turva{background:rgb(245, 247, 250);border-color:rgb(245, 247, 250)}.duet-chip-container.duet-chip-filter-popup-open .duet-chip-popup-disclosure duet-icon{transform:rotate(180deg)}.duet-chip-container.duet-chip-input:hover{padding:1px !important;border-color:rgb(181, 198, 208);border-width:1px}.duet-chip-container.duet-chip-input.duet-chip-hover,.duet-chip-container.duet-chip-input.duet-chip-selected{padding:0 !important;border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-input.duet-chip-hover .duet-chip-remove-button,.duet-chip-container.duet-chip-input.duet-chip-selected .duet-chip-remove-button{right:0;width:34px;height:34px;background:transparent}.duet-chip-container.duet-chip-input.duet-chip-delete-focus{background:rgb(240, 247, 250)}.duet-chip-container.duet-chip-input .duet-chip-input-button{margin-right:22px}.duet-chip-container.duet-chip-input .duet-chip-remove-button{position:absolute;top:-1px;right:-1px;width:36px;height:36px;padding-left:10px;border:3px solid transparent;border-radius:8px}.duet-chip-container.duet-chip-input .duet-chip-remove-button:hover{background:rgb(217, 236, 245);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-chip-selected{background:rgb(240, 247, 250)}.duet-chip-container.duet-chip-input.duet-chip-selected.duet-chip-hover{background:rgb(217, 236, 245)}.duet-chip-container.duet-chip-input.duet-chip-selected .duet-chip-remove-button:hover{background:rgb(198, 225, 238);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-theme-turva:hover{border-color:rgb(199, 202, 207)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-hover{border-color:rgb(198, 12, 48)}.duet-chip-container.duet-chip-input.duet-theme-turva .duet-chip-remove-button:hover{background:rgb(255, 241, 241)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected{background:rgb(255, 241, 241)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected.duet-chip-hover{background:rgb(255, 213, 215);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected .duet-chip-remove-button:hover{background:rgb(255, 185, 190);background-clip:padding-box}.duet-chip-container.large button,.duet-chip-container.large label{padding:15px 18px}.duet-chip-container.large.duet-chip-has-icon .duet-chip-icon-container{width:30px;padding-right:10px}.duet-chip-container.large .duet-chip-popup-disclosure{padding-right:6.5px;padding-left:14.5px}:host(.user-is-tabbing) .duet-chip-focus,:host(.user-is-tabbing) .duet-chip-delete-focus .duet-chip-remove-button{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,:host(.user-is-tabbing) .duet-chip-delete-focus .duet-chip-remove-button.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-chip-container input,*::slotted([slot=input]){position:absolute !important;top:0;left:0;z-index:-1;width:100%;height:100%;margin:0;cursor:pointer;border-width:2px;border-radius:8px;opacity:0;appearance:none}*::slotted([slot=input]:not([aria-disabled=true])){z-index:1}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva{color:#172a3b !important;border-color:#b2c2cd}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva:hover{border-color:#e61740}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-filter-checked,:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-radio-checked{background:#fbe1d1;border-color:#e61740}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-filter-checked:hover,:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-radio-checked:hover{background:#d8ae96}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-filter-popup-open{background:#fbe1d1;border-color:#b2c2cd}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-input:hover{border-color:#b2c2cd}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-input.duet-chip-hover,:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-input.duet-chip-selected{border-color:#e61740}';var l=p;var b=e("duet_chip",function(){function e(e){var n=this;t(this,e);this.duetChange=i(this,"duetChange",3);this.duetRemove=i(this,"duetRemove",3);this.duetFocus=i(this,"duetFocus",7);this.duetBlur=i(this,"duetBlur",7);this.chipId=a("DuetChip");this.deleteLabels={fi:"Poista",en:"Remove",sv:"Ta bort"};this.selectedForDeletionLabels={fi:"Valittu, poista askelpalautinnäppäimellä",en:"Selected, remove with backspace",sv:"Valt, ta bort med backsteg"};this.enforceNoDisabledSelected=function(){if(n.disabled&&n.checked){console.error("Duet error: pre-selected chip may not be disabled");n.disabled=false}};this.radioInputListenersRemove=function(e){e.removeEventListener("change",n.onRadioChange);e.removeEventListener("click",n.onRadioClick);e.removeEventListener("focus",n.onFocus);e.removeEventListener("blur",n.onBlur)};this.radioInputListenersAdd=function(e){e.addEventListener("change",n.onRadioChange);e.addEventListener("click",n.onRadioClick);e.addEventListener("focus",n.onFocus);e.addEventListener("blur",n.onBlur)};this.radioInputSetUp=function(){var e=n.element.querySelector("input[slot=input]");var t=e||document.createElement("input");t.slot="input";t.ariaDisabled=n.disabled?"true":undefined;t.id=n.identifier||n.chipId;t.type="radio";t.name=n.name;t.value=n.value;t.checked=n.checked;t.ariaLabel=n.element.textContent;if(e){n.radioInputListenersRemove(t)}else{n.element.appendChild(t)}n.radioInputListenersAdd(t);n.focusableElement=t};this.popupSetUp=function(){var e=document.querySelector("duet-popup-menu#".concat(n.popup));if(e){n.popupElement=e;e.controller=n.element;var t=n.element.textContent;var i=n.value;if(!e.id){e.id="popup-menu"}e.addEventListener("duetToggle",(function(e){n.popupOpen=e.detail.open}));var c=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(r){var o;var a=(o=e.value)!==null&&o!==void 0?o:e.innerText;if(!e.active){c();e.active=true;n.element.textContent=e.innerText;n.value=a;n.checked=true}else{c();n.element.textContent=t;n.value=i;n.checked=false}n.emitChange(r);setTimeout((function(){if(n.popupElement.isOpen()){n.popupElement.hide()}}))}))}))}};this.onFocus=function(e){n.focus=true;n.duetFocus.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.onBlur=function(e){n.focus=false;n.duetBlur.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.emitChange=function(e){n.duetChange.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.onFilterChange=function(e){n.checked=!n.checked;n.emitChange(e)};this.onRadioChange=function(e){var t=n.focusableElement;var i=t.checked;n.checked=i;n.emitChange(e)};this.onRadioClick=function(e){if(n.disabled){e.preventDefault()}};this.onFilterClick=function(e){if(n.disabled){e.stopPropagation();e.preventDefault();return}if(n.popupElement){e.stopPropagation();e.preventDefault();n.popupElement.toggle()}};this.onRemoveClick=function(e){e===null||e===void 0?void 0:e.stopPropagation();e===null||e===void 0?void 0:e.preventDefault();n.duetRemove.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"});n.element.remove()};this.focus=false;this.popupElement=undefined;this.popupOpen=undefined;this.inputChipHover=false;this.inputChipDeleteFocus=false;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.selected=false;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.removeDisabledAttributeWhenFalse=function(){if(!this.disabled){this.element.removeAttribute("disabled")}};e.prototype.componentWillLoad=function(){o(this);this.removeDisabledAttributeWhenFalse();this.popupSetUp();this.enforceNoDisabledSelected()};e.prototype.connectedCallback=function(){d(this)};e.prototype.disconnectedCallback=function(){u(this)};e.prototype.componentDidRender=function(){if(this.variation==="radio"){this.radioInputSetUp()}};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.getAccessibleDeleteLabel=function(){return"".concat(s(this.deleteLabels)," ").concat(this.element.textContent)};e.prototype.getAccessibleInputChipLabel=function(){return"".concat(this.element.textContent).concat(this.selected?" (".concat(s(this.selectedForDeletionLabels),") "):"",",")};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){h();setTimeout((function(){return t.focusableElement.focus(e)}),200);return[2]}))}))};e.prototype.setDeleteFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){setTimeout((function(){return e.deleteButtonElement.focus()}),200);return[2]}))}))};e.prototype.removeChip=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.onRemoveClick();return[2]}))}))};e.prototype.render=function(){var e,t;var i=this;var r;var o=this.identifier||this.chipId;var a=(e={"duet-chip-container":true},e["duet-chip-".concat(this.variation)]=true,e["duet-chip-focus"]=this.focus,e["duet-chip-selected"]=this.selected,e["duet-chip-hover"]=this.inputChipHover,e["duet-chip-delete-focus"]=this.inputChipDeleteFocus,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 d={onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return i.focusableElement=e}};return n(c,{key:"b6fb72c89bb3173bbab5a049fa15e1952c16205e",class:(t={},t[this.variation]=true,t)},this.variation==="button"&&n("span",{key:"67b4e89093f32e48fa8b0f34cc0bb04cf84fe4d7",class:a},n("button",Object.assign({key:"136da64b566f3ab1aac3ac06e221b382293eafc1",id:o,"aria-label":this.accessibleLabel,"aria-haspopup":this.getAccessiblePopup(),"aria-expanded":this.getAccessibleExpanded(),"aria-disabled":this.disabled?"true":undefined,name:this.name,value:this.value,onClick:this.disabled?function(e){return e.stopPropagation()}:undefined},d),n("span",{key:"edd95585532bb3793d25c9d59ff736bfd93a698f",class:"duet-chip-icon-container"},this.icon&&n("duet-icon",{key:"7eee1a45099e4b7e887ca9c18973d5491eebc49e",name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),n("slot",{key:"22c6c1e797b3d7ae8d5066e5e54d9d9b091fd8af"}))),this.variation==="input"&&n("span",{key:"6190f5af72bea43c3225440e936d6bcac3ee1a1a",class:a,"aria-label":this.getAccessibleInputChipLabel()},n("button",Object.assign({key:"684bbf1c87dbcc51074a469fef71eabc67b8b3cc",id:o,class:"duet-chip-input-button",value:this.value,"aria-label":this.accessibleLabel,onMouseOver:function(){return i.inputChipHover=true},onMouseOut:function(){return i.inputChipHover=false},onClick:function(){return i.selected=!i.selected}},d),n("span",{key:"3e9d81e6b529cbedd4dc059d2a69c7672dba4c15",class:"duet-chip-icon-container"},this.icon&&n("duet-icon",{key:"4eb3a40447390af6f7005afdaf8a892fdb1a37a0",name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),n("slot",{key:"6a41790d5bb9b18d29aed4104f7875f4b82a6182"})),n("button",{key:"2aa0bd85705bd9d0f2f9107b81e1c478b79670e7",class:"duet-chip-remove-button","aria-label":this.getAccessibleDeleteLabel(),onClick:this.onRemoveClick,onFocus:function(){return i.inputChipDeleteFocus=true},onBlur:function(){return i.inputChipDeleteFocus=false},ref:function(e){return i.deleteButtonElement=e}},n("duet-icon",{key:"42142c43f116826ea4754ad43715380a5168a4a0",name:"activity-close",size:"xx-small",margin:"none",color:"currentColor"}))),this.variation==="filter"&&n("span",{key:"da7635d906a3000bdba610b199be6e02e67999a3",class:a},n("input",Object.assign({key:"991860c1d1faaf8b0b94c23878c0fda4cc57d5b2","aria-haspopup":this.getAccessiblePopup(),"aria-controls":(r=this.popupElement)===null||r===void 0?void 0:r.id,"aria-expanded":this.getAccessibleExpanded(),"aria-disabled":this.disabled?"true":undefined,id:o,type:"checkbox",name:this.name,value:this.value,checked:this.checked,onClick:this.onFilterClick,onChange:this.onFilterChange},d)),n("label",{key:"19200514b12edc1c34ee60d7141e2e443de2f4eb",htmlFor:o},this.icon&&n("span",{key:"e829017680ab4f77b068a795500ab0e228252910",class:"duet-chip-icon-container"},n("duet-icon",{key:"f3726f51afd71e1621bc838d3a5bb01ac741898a",name:this.icon,size:this.size==="large"?"small":"x-small",margin:"none",color:"currentColor"}),n("duet-icon",{key:"38ebb64dffbad02205d259ddc908ad4448146e2c",name:"messaging-checked-small",size:this.size==="large"?"x-small":"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),n("slot",{key:"fdc200f7e366b400ee41adcc43793c1b57c73044"}),this.popupElement&&n("span",{key:"154e4ee257d7152de4bd6089d650f89abab7849b",class:"duet-chip-popup-disclosure"},n("duet-icon",{key:"51559fda4889f9b1d1c5db56005140037d10bbe0",name:"action-arrow-down-small",size:this.size==="large"?"xx-small":"xxx-small",margin:"none",color:"currentColor"})))),this.variation==="radio"&&n("span",{key:"05b32d584d059da2136a8c3bf615d8c54733b242",class:a},n("slot",{key:"4b75c8a08549ecefda7cbc774e6877a688c5c96a",name:"input"}),n("label",{key:"08d85749a874e5196eb21eb54a132156c7cc6dcf",htmlFor:o},this.icon&&n("span",{key:"48ed797d8716ecaea0c06bd2dcd41ab28bbc14e9",class:"duet-chip-icon-container"},n("duet-icon",{key:"befa22bdb1d0b2682d316551eb8ac873128b0ccf",name:this.icon,size:this.size==="large"?"small":"x-small",margin:"none",color:"currentColor"}),n("duet-icon",{key:"3eab74ef52e823c81daf1c71379127c7650bba80",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),n("slot",{key:"460c29546099eb06cc2dfa71baf9a57999d4f838"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["clearOtherRadioButtons"],disabled:["removeDisabledAttributeWhenFalse"]}},enumerable:false,configurable:true});return e}());b.style=l}}}));
4
+ */System.register(["./p-43d6b171.system.js","./p-cddad487.system.js","./p-e6b5a1c7.system.js","./p-752fa0fc.system.js","./p-1cc2eb98.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,i,n,c,r,o,a,d,u,h,s;return{setters:[function(e){t=e.r;i=e.c;n=e.h;c=e.H;r=e.g},function(e){o=e.i},function(e){a=e.c},function(e){d=e.s;u=e.u;h=e.q},function(e){s=e.g},function(){}],execute:function(){var p='*,*::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}:host(.input){margin-top:6px !important;margin-right:0 !important;margin-bottom:6px !important;margin-left:4px !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(8, 42, 77) !important;text-align:center;cursor:pointer;background:rgb(255, 255, 255);border-color:rgb(181, 198, 208);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(199, 202, 207)}.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(98, 121, 138) !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(143, 147, 158) !important;background:rgb(245, 247, 250);border-color:rgb(245, 247, 250)}.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, 247, 250);border-color:rgb(245, 247, 250)}.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(8, 42, 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:8px}.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:12px}.duet-chip-container.duet-chip-has-popup button,.duet-chip-container.duet-chip-has-popup label{padding-right:12px}.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(228, 241, 247);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(198, 225, 238)}.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, 247, 250);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(222, 224, 228)}.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(240, 247, 250);border-color:rgb(240, 247, 250)}.duet-chip-container.duet-chip-filter-popup-open.duet-theme-turva{background:rgb(245, 247, 250);border-color:rgb(245, 247, 250)}.duet-chip-container.duet-chip-filter-popup-open .duet-chip-popup-disclosure duet-icon{transform:rotate(180deg)}.duet-chip-container.duet-chip-input:hover{padding:1px !important;border-color:rgb(181, 198, 208);border-width:1px}.duet-chip-container.duet-chip-input.duet-chip-hover,.duet-chip-container.duet-chip-input.duet-chip-selected{padding:0 !important;border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-input.duet-chip-hover .duet-chip-remove-button,.duet-chip-container.duet-chip-input.duet-chip-selected .duet-chip-remove-button{right:0;width:34px;height:34px;background:transparent}.duet-chip-container.duet-chip-input.duet-chip-delete-focus{background:rgb(240, 247, 250)}.duet-chip-container.duet-chip-input .duet-chip-input-button{margin-right:22px}.duet-chip-container.duet-chip-input .duet-chip-remove-button{position:absolute;top:-1px;right:-1px;width:36px;height:36px;padding-left:10px;border:3px solid transparent;border-radius:8px}.duet-chip-container.duet-chip-input .duet-chip-remove-button:hover{background:rgb(217, 236, 245);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-chip-selected{background:rgb(240, 247, 250)}.duet-chip-container.duet-chip-input.duet-chip-selected.duet-chip-hover{background:rgb(217, 236, 245)}.duet-chip-container.duet-chip-input.duet-chip-selected .duet-chip-remove-button:hover{background:rgb(198, 225, 238);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-theme-turva:hover{border-color:rgb(199, 202, 207)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-hover{border-color:rgb(198, 12, 48)}.duet-chip-container.duet-chip-input.duet-theme-turva .duet-chip-remove-button:hover{background:rgb(255, 241, 241)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected{background:rgb(255, 241, 241)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected.duet-chip-hover{background:rgb(255, 213, 215);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected .duet-chip-remove-button:hover{background:rgb(255, 185, 190);background-clip:padding-box}.duet-chip-container.large button,.duet-chip-container.large label{padding:15px 18px}.duet-chip-container.large.duet-chip-has-icon .duet-chip-icon-container{width:30px;padding-right:10px}.duet-chip-container.large .duet-chip-popup-disclosure{padding-right:6.5px;padding-left:14.5px}:host(.user-is-tabbing) .duet-chip-focus,:host(.user-is-tabbing) .duet-chip-delete-focus .duet-chip-remove-button{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,:host(.user-is-tabbing) .duet-chip-delete-focus .duet-chip-remove-button.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-chip-container input,*::slotted([slot=input]){position:absolute !important;top:0;left:0;z-index:-1;width:100%;height:100%;margin:0;cursor:pointer;border-width:2px;border-radius:8px;opacity:0;appearance:none}*::slotted([slot=input]:not([aria-disabled=true])){z-index:1}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva{color:#172a3b !important;border-color:#b2c2cd}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva:hover{border-color:#e61740}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-filter-checked,:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-radio-checked{background:#fbe1d1;border-color:#e61740}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-filter-checked:hover,:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-radio-checked:hover{background:#d8ae96}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-filter-popup-open{background:#fbe1d1;border-color:#b2c2cd}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-input:hover{border-color:#b2c2cd}:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-input.duet-chip-hover,:host(.duet-theme-turva2) .duet-chip-container.duet-theme-turva.duet-chip-input.duet-chip-selected{border-color:#e61740}';var l=p;var b=e("duet_chip",function(){function e(e){var n=this;t(this,e);this.duetChange=i(this,"duetChange",3);this.duetRemove=i(this,"duetRemove",3);this.duetFocus=i(this,"duetFocus",7);this.duetBlur=i(this,"duetBlur",7);this.chipId=a("DuetChip");this.deleteLabels={fi:"Poista",en:"Remove",sv:"Ta bort"};this.selectedForDeletionLabels={fi:"Valittu, poista askelpalautinnäppäimellä",en:"Selected, remove with backspace",sv:"Valt, ta bort med backsteg"};this.enforceNoDisabledSelected=function(){if(n.disabled&&n.checked){console.error("Duet error: pre-selected chip may not be disabled");n.disabled=false}};this.radioInputListenersRemove=function(e){e.removeEventListener("change",n.onRadioChange);e.removeEventListener("click",n.onRadioClick);e.removeEventListener("focus",n.onFocus);e.removeEventListener("blur",n.onBlur)};this.radioInputListenersAdd=function(e){e.addEventListener("change",n.onRadioChange);e.addEventListener("click",n.onRadioClick);e.addEventListener("focus",n.onFocus);e.addEventListener("blur",n.onBlur)};this.radioInputSetUp=function(){var e=n.element.querySelector("input[slot=input]");var t=e||document.createElement("input");t.slot="input";t.ariaDisabled=n.disabled?"true":undefined;t.id=n.identifier||n.chipId;t.type="radio";t.name=n.name;t.value=n.value;t.checked=n.checked;t.ariaLabel=n.element.textContent;if(e){n.radioInputListenersRemove(t)}else{n.element.appendChild(t)}n.radioInputListenersAdd(t);n.focusableElement=t};this.popupSetUp=function(){var e=document.querySelector("duet-popup-menu#".concat(n.popup));if(e){n.popupElement=e;e.controller=n.element;var t=n.element.textContent;var i=n.value;if(!e.id){e.id="popup-menu"}e.addEventListener("duetToggle",(function(e){n.popupOpen=e.detail.open}));var c=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(r){var o;var a=(o=e.value)!==null&&o!==void 0?o:e.innerText;if(!e.active){c();e.active=true;n.element.textContent=e.innerText;n.value=a;n.checked=true}else{c();n.element.textContent=t;n.value=i;n.checked=false}n.emitChange(r);setTimeout((function(){if(n.popupElement.isOpen()){n.popupElement.hide()}}))}))}))}};this.onFocus=function(e){n.focus=true;n.duetFocus.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.onBlur=function(e){n.focus=false;n.duetBlur.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.emitChange=function(e){n.duetChange.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.onFilterChange=function(e){n.checked=!n.checked;n.emitChange(e)};this.onRadioChange=function(e){var t=n.focusableElement;var i=t.checked;n.checked=i;n.emitChange(e)};this.onRadioClick=function(e){if(n.disabled){e.preventDefault()}};this.onFilterClick=function(e){if(n.disabled){e.stopPropagation();e.preventDefault();return}if(n.popupElement){e.stopPropagation();e.preventDefault();n.popupElement.toggle()}};this.onRemoveClick=function(e){e===null||e===void 0?void 0:e.stopPropagation();e===null||e===void 0?void 0:e.preventDefault();n.duetRemove.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"});n.element.remove()};this.focus=false;this.popupElement=undefined;this.popupOpen=undefined;this.inputChipHover=false;this.inputChipDeleteFocus=false;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.selected=false;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.removeDisabledAttributeWhenFalse=function(){if(!this.disabled){this.element.removeAttribute("disabled")}};e.prototype.componentWillLoad=function(){o(this);this.removeDisabledAttributeWhenFalse();this.popupSetUp();this.enforceNoDisabledSelected()};e.prototype.connectedCallback=function(){d(this)};e.prototype.disconnectedCallback=function(){u(this)};e.prototype.componentDidRender=function(){if(this.variation==="radio"){this.radioInputSetUp()}};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.getAccessibleDeleteLabel=function(){return"".concat(s(this.deleteLabels)," ").concat(this.element.textContent)};e.prototype.getAccessibleInputChipLabel=function(){return"".concat(this.element.textContent).concat(this.selected?" (".concat(s(this.selectedForDeletionLabels),") "):"",",")};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){h();setTimeout((function(){return t.focusableElement.focus(e)}),200);return[2]}))}))};e.prototype.setDeleteFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){setTimeout((function(){return e.deleteButtonElement.focus()}),200);return[2]}))}))};e.prototype.removeChip=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.onRemoveClick();return[2]}))}))};e.prototype.render=function(){var e,t;var i=this;var r;var o=this.identifier||this.chipId;var a=(e={"duet-chip-container":true},e["duet-chip-".concat(this.variation)]=true,e["duet-chip-focus"]=this.focus,e["duet-chip-selected"]=this.selected,e["duet-chip-hover"]=this.inputChipHover,e["duet-chip-delete-focus"]=this.inputChipDeleteFocus,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 d={onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return i.focusableElement=e}};return n(c,{key:"b6fb72c89bb3173bbab5a049fa15e1952c16205e",class:(t={},t[this.variation]=true,t)},this.variation==="button"&&n("span",{key:"67b4e89093f32e48fa8b0f34cc0bb04cf84fe4d7",class:a},n("button",Object.assign({key:"136da64b566f3ab1aac3ac06e221b382293eafc1",id:o,"aria-label":this.accessibleLabel,"aria-haspopup":this.getAccessiblePopup(),"aria-expanded":this.getAccessibleExpanded(),"aria-disabled":this.disabled?"true":undefined,name:this.name,value:this.value,onClick:this.disabled?function(e){return e.stopPropagation()}:undefined},d),n("span",{key:"edd95585532bb3793d25c9d59ff736bfd93a698f",class:"duet-chip-icon-container"},this.icon&&n("duet-icon",{key:"7eee1a45099e4b7e887ca9c18973d5491eebc49e",name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),n("slot",{key:"22c6c1e797b3d7ae8d5066e5e54d9d9b091fd8af"}))),this.variation==="input"&&n("span",{key:"6190f5af72bea43c3225440e936d6bcac3ee1a1a",class:a,"aria-label":this.getAccessibleInputChipLabel()},n("button",Object.assign({key:"684bbf1c87dbcc51074a469fef71eabc67b8b3cc",id:o,class:"duet-chip-input-button",value:this.value,"aria-label":this.accessibleLabel,onMouseOver:function(){return i.inputChipHover=true},onMouseOut:function(){return i.inputChipHover=false},onClick:function(){return i.selected=!i.selected}},d),n("span",{key:"3e9d81e6b529cbedd4dc059d2a69c7672dba4c15",class:"duet-chip-icon-container"},this.icon&&n("duet-icon",{key:"4eb3a40447390af6f7005afdaf8a892fdb1a37a0",name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),n("slot",{key:"6a41790d5bb9b18d29aed4104f7875f4b82a6182"})),n("button",{key:"2aa0bd85705bd9d0f2f9107b81e1c478b79670e7",class:"duet-chip-remove-button","aria-label":this.getAccessibleDeleteLabel(),onClick:this.onRemoveClick,onFocus:function(){return i.inputChipDeleteFocus=true},onBlur:function(){return i.inputChipDeleteFocus=false},ref:function(e){return i.deleteButtonElement=e}},n("duet-icon",{key:"42142c43f116826ea4754ad43715380a5168a4a0",name:"activity-close",size:"xx-small",margin:"none",color:"currentColor"}))),this.variation==="filter"&&n("span",{key:"da7635d906a3000bdba610b199be6e02e67999a3",class:a},n("input",Object.assign({key:"991860c1d1faaf8b0b94c23878c0fda4cc57d5b2","aria-haspopup":this.getAccessiblePopup(),"aria-controls":(r=this.popupElement)===null||r===void 0?void 0:r.id,"aria-expanded":this.getAccessibleExpanded(),"aria-disabled":this.disabled?"true":undefined,id:o,type:"checkbox",name:this.name,value:this.value,checked:this.checked,onClick:this.onFilterClick,onChange:this.onFilterChange},d)),n("label",{key:"19200514b12edc1c34ee60d7141e2e443de2f4eb",htmlFor:o},this.icon&&n("span",{key:"e829017680ab4f77b068a795500ab0e228252910",class:"duet-chip-icon-container"},n("duet-icon",{key:"f3726f51afd71e1621bc838d3a5bb01ac741898a",name:this.icon,size:this.size==="large"?"small":"x-small",margin:"none",color:"currentColor"}),n("duet-icon",{key:"38ebb64dffbad02205d259ddc908ad4448146e2c",name:"messaging-checked-small",size:this.size==="large"?"x-small":"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),n("slot",{key:"fdc200f7e366b400ee41adcc43793c1b57c73044"}),this.popupElement&&n("span",{key:"154e4ee257d7152de4bd6089d650f89abab7849b",class:"duet-chip-popup-disclosure"},n("duet-icon",{key:"51559fda4889f9b1d1c5db56005140037d10bbe0",name:"action-arrow-down-small",size:this.size==="large"?"xx-small":"xxx-small",margin:"none",color:"currentColor"})))),this.variation==="radio"&&n("span",{key:"05b32d584d059da2136a8c3bf615d8c54733b242",class:a},n("slot",{key:"4b75c8a08549ecefda7cbc774e6877a688c5c96a",name:"input"}),n("label",{key:"08d85749a874e5196eb21eb54a132156c7cc6dcf",htmlFor:o},this.icon&&n("span",{key:"48ed797d8716ecaea0c06bd2dcd41ab28bbc14e9",class:"duet-chip-icon-container"},n("duet-icon",{key:"befa22bdb1d0b2682d316551eb8ac873128b0ccf",name:this.icon,size:this.size==="large"?"small":"x-small",margin:"none",color:"currentColor"}),n("duet-icon",{key:"3eab74ef52e823c81daf1c71379127c7650bba80",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),n("slot",{key:"460c29546099eb06cc2dfa71baf9a57999d4f838"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["clearOtherRadioButtons"],disabled:["removeDisabledAttributeWhenFalse"]}},enumerable:false,configurable:true});return e}());b.style=l}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,c as t,h as i,H as o,g as n}from"./p-9eed5f82.js";import{i as a}from"./p-e5f1e38a.js";import{a as r}from"./p-89a1d75a.js";import"./p-9c3c64b9.js";const s=class{constructor(i){e(this,i),this.duetEvent=t(this,"duetEvent",7),this.previousYScroll=0,this.scrollbarCheck=()=>{this.leftMoreVisible=this.container.scrollLeft>0,this.rightMoreVisible=this.container.scrollLeft!==this.container.scrollWidth-this.container.clientWidth},this.scrollToActive=()=>{let e;this.element.querySelectorAll("[active]").forEach((t=>{t.active&&(e=t)})),e&&e.offsetLeft&&e.offsetLeft>50&&(this.container.scrollLeft=e.offsetLeft-this.element.getBoundingClientRect().width/2+e.offsetWidth/2)},this.checkCenterSlot=()=>{const e=this.element.querySelector('[slot="center"]');this.centerSlotUsed=!!e},this.handleLogoClick=e=>{this.duetEvent.emit({name:"logoClick",component:"duet-menu-bar",data:{logoHref:this.logoHref},originalEvent:e})},this.hidden=!1,this.onBottom=!1,this.logoSize="large",this.leftMoreVisible=!1,this.rightMoreVisible=!1,this.centerSlotUsed=!1,this.mediaQueryMediumMatches=!1,this.theme="",this.language=r(),this.logo=!0,this.logoHref=void 0,this.logoLinkAccessibleLabel=void 0,this.logoInfoText=void 0,this.accessibleLabel=void 0,this.hideOnScroll=!1}checkScroll(){this.hideOnScroll&&(window.scrollY>this.previousYScroll?window.scrollY>100&&(this.hideOnScroll&&(clearTimeout(this.zindexTimer),this.onBottom=!0),this.hidden=!0):window.scrollY<150&&(this.hideOnScroll&&(this.zindexTimer=setTimeout((()=>{this.onBottom=!1}),300)),this.hidden=!1),this.previousYScroll=window.scrollY)}componentWillLoad(){a(this)}connectedCallback(){this.checkCenterSlot()}componentDidLoad(){setTimeout((()=>{this.scrollbarCheck(),this.scrollToActive(),this.checkCenterSlot()}),0)}onWindowResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((()=>{this.scrollToActive()}),100)}render(){const e=document.querySelectorAll("duet-slideout").length>0;return i(o,{key:"5f05a259d0950cb2cdbc37222b1007ba49d5fe53"},i("nav",{key:"24398b2d0d6d01c22eef86430e0f7db7c6b97171",class:{"duet-menu-bar":!0,"duet-theme-turva":"turva"===this.theme,"horizontal-nav":e&&!this.logo,"duet-menu-bar-slim":!this.centerSlotUsed,hidden:this.hidden&&this.hideOnScroll,bottom:this.onBottom},"aria-label":this.accessibleLabel},i("div",{key:"abf2962527bf92ead5a89f8648ff3b88a73fbc55",class:"top"}),i("div",{key:"068d450752f636f98e7cdeb5043e6bf9297b4c3d",class:{container:!0,"with-info-text":!!this.logoInfoText&&!this.centerSlotUsed},ref:e=>this.container=e,onScroll:()=>this.scrollbarCheck()},this.logo&&i("div",{key:"7e5b816d6ae4e36268ee911cadf56358a864e264"},i("duet-logo",{key:"c1a02ba4230ab960c1e01d20636a23d015823580",class:"medium",size:"medium",margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick,language:this.language}),i("duet-logo",{key:"fa3ba5116af9eecd8d886f546c4bdef922bbdd4d",class:"large",size:"large",margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick,language:this.language}),i("duet-logo",{key:"a3593373202664a79f8095931fa53d72e1f6c188",class:"only-symbol",onlySymbol:!0,margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick,language:this.language}),this.logoInfoText&&!this.centerSlotUsed&&i("div",{key:"ebf9c252a82db480eff2fca195f87dfcd2a186f4",class:{"duet-logo-info-text":!0,"duet-theme-turva":"turva"===this.theme}},this.logoInfoText)),i("div",{key:"980619619bf98cc80c36dc5c8d27042f97ff492d",class:"list center",role:"list"},i("div",{key:"b6f5e67dd04a56da886a3795b21b2f3f4d7e0393",class:"more-left",hidden:!this.leftMoreVisible,role:"presentation"}),i("slot",{key:"f5bc728c183398eba439475b6a29771476944b5b",name:"center"}),i("div",{key:"bf7274db341938f7f0a8fa7784985a6239a5fcc6",class:"more-right",hidden:!this.rightMoreVisible,role:"presentation"})),i("div",{key:"6e3343fcef3b45b1a6e741c673d072b994cf4110",class:"list right",role:"list"},i("slot",{key:"3a76e5089f8cc4a1e04786a61c2f8e9cb1160426",name:"right"}))),i("div",{key:"6041af35982542751bb94df6ebc8725dd17a6349",class:"bottom"})))}get element(){return n(this)}};s.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:100%}.duet-menu-bar{position:relative;top:0;z-index:2;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07);transition:top 0.3s}.duet-menu-bar.hidden{top:-200px}.duet-menu-bar.bottom{z-index:1}@media (min-width: 62em){.duet-menu-bar{box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1)}}.duet-menu-bar .top{display:none}.duet-menu-bar .bottom{display:none}.duet-menu-bar.horizontal-nav{position:relative}.duet-menu-bar.horizontal-nav .top{position:absolute;top:0;left:3.5%;display:block;width:93%;height:1px;background:rgb(245, 248, 250)}.duet-menu-bar.horizontal-nav .bottom{position:absolute;bottom:0;left:0;display:block;width:100%;height:1px;background:rgb(212, 223, 229)}.duet-menu-bar.horizontal-nav .more-left{position:absolute;top:0;left:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-left{display:none}}.duet-menu-bar.horizontal-nav .more-right{position:absolute;top:0;right:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-right{display:none}}@media (pointer: fine){.duet-menu-bar.horizontal-nav{display:none}}@media (pointer: fine) and ((min-width: 62em)){.duet-menu-bar.horizontal-nav{display:flex}}.duet-menu-bar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1440px;height:100%;height:3.25rem;padding:0 8px 0 20px;overflow-x:auto;scrollbar-width:none}.duet-menu-bar .container::-webkit-scrollbar{width:0;height:0}.duet-menu-bar .container duet-logo.large,.duet-menu-bar .container duet-logo.only-symbol{display:none}.duet-menu-bar .container.with-info-text duet-logo.medium{display:none}.duet-menu-bar .container.with-info-text duet-logo.only-symbol{display:block}@media (min-width: 48em){.duet-menu-bar .container.with-info-text duet-logo.medium{display:block}.duet-menu-bar .container.with-info-text duet-logo.only-symbol{display:none}}@media (min-width: 76.25em){.duet-menu-bar .container duet-logo.medium{display:none}.duet-menu-bar .container duet-logo.large{display:block}}@media (min-width: 62em){.duet-menu-bar .container{height:5rem;padding:0 28px;overflow-x:visible}}.duet-menu-bar .container .list{height:100%;list-style-type:none}.duet-menu-bar .container ::slotted(*){height:100%}.duet-menu-bar .container>*{display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar .container>:first-child{flex-basis:0;flex-grow:1;justify-content:flex-start;width:auto;height:40px}@media (min-width: 76.25em){.duet-menu-bar .container>:first-child{height:48px}}.duet-menu-bar .container>:first-child:has(.duet-logo-info-text){flex-grow:8}.duet-menu-bar .container>:first-child:has(.duet-logo-info-text) duet-paragraph{max-height:100%}.duet-menu-bar .container>:last-child{flex-basis:0;flex-grow:1;justify-content:flex-end}.duet-menu-bar .container ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar .container .duet-logo-info-text{max-height:2.8875rem;padding-left:16px;margin-left:16px;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:0.875rem;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.1;color:rgb(62, 84, 102);text-overflow:ellipsis;border-left:1px solid rgb(212, 223, 229)}.duet-menu-bar .container .duet-logo-info-text.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(71, 78, 101);border-left-color:rgb(222, 224, 228)}@media (min-width: 48em){.duet-menu-bar .container .duet-logo-info-text{max-height:3.3rem;font-size:1rem}}.duet-menu-bar.duet-theme-turva{background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-menu-bar.duet-theme-turva{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}.duet-menu-bar.duet-menu-bar-slim .container duet-logo.medium{display:block}.duet-menu-bar.duet-menu-bar-slim .container duet-logo.large{display:none}.duet-menu-bar.duet-menu-bar-slim .container.with-info-text duet-logo.medium{display:none}.duet-menu-bar.duet-menu-bar-slim .container.with-info-text duet-logo.only-symbol{display:block}@media (min-width: 48em){.duet-menu-bar.duet-menu-bar-slim .container.with-info-text duet-logo.medium{display:block}.duet-menu-bar.duet-menu-bar-slim .container.with-info-text duet-logo.only-symbol{display:none}}@media (min-width: 62em){.duet-menu-bar.duet-menu-bar-slim .container{height:4rem}}.center{font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77)}.duet-theme-turva .center{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)}.right{font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 75, 129)}.duet-theme-turva .right{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-theme-turva .center{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .right{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-logo-info-text{color:#354f65;border-left-color:#d4dde2}';export{s as duet_menu_bar}
4
+ import{r as e,c as t,h as i,H as o,g as n}from"./p-c4a1cfd6.js";import{i as a}from"./p-d9cafc77.js";import{a as r}from"./p-75a66b82.js";import"./p-9c3c64b9.js";const s=class{constructor(i){e(this,i),this.duetEvent=t(this,"duetEvent",7),this.previousYScroll=0,this.scrollbarCheck=()=>{this.leftMoreVisible=this.container.scrollLeft>0,this.rightMoreVisible=this.container.scrollLeft!==this.container.scrollWidth-this.container.clientWidth},this.scrollToActive=()=>{let e;this.element.querySelectorAll("[active]").forEach((t=>{t.active&&(e=t)})),e&&e.offsetLeft&&e.offsetLeft>50&&(this.container.scrollLeft=e.offsetLeft-this.element.getBoundingClientRect().width/2+e.offsetWidth/2)},this.checkCenterSlot=()=>{const e=this.element.querySelector('[slot="center"]');this.centerSlotUsed=!!e},this.handleLogoClick=e=>{this.duetEvent.emit({name:"logoClick",component:"duet-menu-bar",data:{logoHref:this.logoHref},originalEvent:e})},this.hidden=!1,this.onBottom=!1,this.logoSize="large",this.leftMoreVisible=!1,this.rightMoreVisible=!1,this.centerSlotUsed=!1,this.mediaQueryMediumMatches=!1,this.theme="",this.language=r(),this.logo=!0,this.logoHref=void 0,this.logoLinkAccessibleLabel=void 0,this.logoInfoText=void 0,this.accessibleLabel=void 0,this.hideOnScroll=!1}checkScroll(){this.hideOnScroll&&(window.scrollY>this.previousYScroll?window.scrollY>100&&(this.hideOnScroll&&(clearTimeout(this.zindexTimer),this.onBottom=!0),this.hidden=!0):window.scrollY<150&&(this.hideOnScroll&&(this.zindexTimer=setTimeout((()=>{this.onBottom=!1}),300)),this.hidden=!1),this.previousYScroll=window.scrollY)}componentWillLoad(){a(this)}connectedCallback(){this.checkCenterSlot()}componentDidLoad(){setTimeout((()=>{this.scrollbarCheck(),this.scrollToActive(),this.checkCenterSlot()}),0)}onWindowResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((()=>{this.scrollToActive()}),100)}render(){const e=document.querySelectorAll("duet-slideout").length>0;return i(o,{key:"5f05a259d0950cb2cdbc37222b1007ba49d5fe53"},i("nav",{key:"24398b2d0d6d01c22eef86430e0f7db7c6b97171",class:{"duet-menu-bar":!0,"duet-theme-turva":"turva"===this.theme,"horizontal-nav":e&&!this.logo,"duet-menu-bar-slim":!this.centerSlotUsed,hidden:this.hidden&&this.hideOnScroll,bottom:this.onBottom},"aria-label":this.accessibleLabel},i("div",{key:"abf2962527bf92ead5a89f8648ff3b88a73fbc55",class:"top"}),i("div",{key:"068d450752f636f98e7cdeb5043e6bf9297b4c3d",class:{container:!0,"with-info-text":!!this.logoInfoText&&!this.centerSlotUsed},ref:e=>this.container=e,onScroll:()=>this.scrollbarCheck()},this.logo&&i("div",{key:"7e5b816d6ae4e36268ee911cadf56358a864e264"},i("duet-logo",{key:"c1a02ba4230ab960c1e01d20636a23d015823580",class:"medium",size:"medium",margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick,language:this.language}),i("duet-logo",{key:"fa3ba5116af9eecd8d886f546c4bdef922bbdd4d",class:"large",size:"large",margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick,language:this.language}),i("duet-logo",{key:"a3593373202664a79f8095931fa53d72e1f6c188",class:"only-symbol",onlySymbol:!0,margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick,language:this.language}),this.logoInfoText&&!this.centerSlotUsed&&i("div",{key:"ebf9c252a82db480eff2fca195f87dfcd2a186f4",class:{"duet-logo-info-text":!0,"duet-theme-turva":"turva"===this.theme}},this.logoInfoText)),i("div",{key:"980619619bf98cc80c36dc5c8d27042f97ff492d",class:"list center",role:"list"},i("div",{key:"b6f5e67dd04a56da886a3795b21b2f3f4d7e0393",class:"more-left",hidden:!this.leftMoreVisible,role:"presentation"}),i("slot",{key:"f5bc728c183398eba439475b6a29771476944b5b",name:"center"}),i("div",{key:"bf7274db341938f7f0a8fa7784985a6239a5fcc6",class:"more-right",hidden:!this.rightMoreVisible,role:"presentation"})),i("div",{key:"6e3343fcef3b45b1a6e741c673d072b994cf4110",class:"list right",role:"list"},i("slot",{key:"3a76e5089f8cc4a1e04786a61c2f8e9cb1160426",name:"right"}))),i("div",{key:"6041af35982542751bb94df6ebc8725dd17a6349",class:"bottom"})))}get element(){return n(this)}};s.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:100%}.duet-menu-bar{position:relative;top:0;z-index:2;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07);transition:top 0.3s}.duet-menu-bar.hidden{top:-200px}.duet-menu-bar.bottom{z-index:1}@media (min-width: 62em){.duet-menu-bar{box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1)}}.duet-menu-bar .top{display:none}.duet-menu-bar .bottom{display:none}.duet-menu-bar.horizontal-nav{position:relative}.duet-menu-bar.horizontal-nav .top{position:absolute;top:0;left:3.5%;display:block;width:93%;height:1px;background:rgb(245, 248, 250)}.duet-menu-bar.horizontal-nav .bottom{position:absolute;bottom:0;left:0;display:block;width:100%;height:1px;background:rgb(212, 223, 229)}.duet-menu-bar.horizontal-nav .more-left{position:absolute;top:0;left:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-left{display:none}}.duet-menu-bar.horizontal-nav .more-right{position:absolute;top:0;right:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-right{display:none}}@media (pointer: fine){.duet-menu-bar.horizontal-nav{display:none}}@media (pointer: fine) and ((min-width: 62em)){.duet-menu-bar.horizontal-nav{display:flex}}.duet-menu-bar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1440px;height:100%;height:3.25rem;padding:0 8px 0 20px;overflow-x:auto;scrollbar-width:none}.duet-menu-bar .container::-webkit-scrollbar{width:0;height:0}.duet-menu-bar .container duet-logo.large,.duet-menu-bar .container duet-logo.only-symbol{display:none}.duet-menu-bar .container.with-info-text duet-logo.medium{display:none}.duet-menu-bar .container.with-info-text duet-logo.only-symbol{display:block}@media (min-width: 48em){.duet-menu-bar .container.with-info-text duet-logo.medium{display:block}.duet-menu-bar .container.with-info-text duet-logo.only-symbol{display:none}}@media (min-width: 76.25em){.duet-menu-bar .container duet-logo.medium{display:none}.duet-menu-bar .container duet-logo.large{display:block}}@media (min-width: 62em){.duet-menu-bar .container{height:5rem;padding:0 28px;overflow-x:visible}}.duet-menu-bar .container .list{height:100%;list-style-type:none}.duet-menu-bar .container ::slotted(*){height:100%}.duet-menu-bar .container>*{display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar .container>:first-child{flex-basis:0;flex-grow:1;justify-content:flex-start;width:auto;height:40px}@media (min-width: 76.25em){.duet-menu-bar .container>:first-child{height:48px}}.duet-menu-bar .container>:first-child:has(.duet-logo-info-text){flex-grow:8}.duet-menu-bar .container>:first-child:has(.duet-logo-info-text) duet-paragraph{max-height:100%}.duet-menu-bar .container>:last-child{flex-basis:0;flex-grow:1;justify-content:flex-end}.duet-menu-bar .container ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar .container .duet-logo-info-text{max-height:2.8875rem;padding-left:16px;margin-left:16px;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:0.875rem;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.1;color:rgb(62, 84, 102);text-overflow:ellipsis;border-left:1px solid rgb(212, 223, 229)}.duet-menu-bar .container .duet-logo-info-text.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(71, 78, 101);border-left-color:rgb(222, 224, 228)}@media (min-width: 48em){.duet-menu-bar .container .duet-logo-info-text{max-height:3.3rem;font-size:1rem}}.duet-menu-bar.duet-theme-turva{background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-menu-bar.duet-theme-turva{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}.duet-menu-bar.duet-menu-bar-slim .container duet-logo.medium{display:block}.duet-menu-bar.duet-menu-bar-slim .container duet-logo.large{display:none}.duet-menu-bar.duet-menu-bar-slim .container.with-info-text duet-logo.medium{display:none}.duet-menu-bar.duet-menu-bar-slim .container.with-info-text duet-logo.only-symbol{display:block}@media (min-width: 48em){.duet-menu-bar.duet-menu-bar-slim .container.with-info-text duet-logo.medium{display:block}.duet-menu-bar.duet-menu-bar-slim .container.with-info-text duet-logo.only-symbol{display:none}}@media (min-width: 62em){.duet-menu-bar.duet-menu-bar-slim .container{height:4rem}}.center{font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77)}.duet-theme-turva .center{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)}.right{font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 75, 129)}.duet-theme-turva .right{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-theme-turva .center{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .right{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-logo-info-text{color:#354f65;border-left-color:#d4dde2}';export{s as duet_menu_bar}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-f78b9d60.system.js","./p-9608ad22.system.js"],(function(e){"use strict";var t,r,a,o,n;return{setters:[function(e){t=e.r;r=e.h;a=e.H;o=e.g},function(e){n=e.i}],execute:function(){var i="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:100%}.duet-toolbar{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255)}.duet-toolbar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1384px;height:36px;margin:0 28px;border-bottom:1px solid rgb(212, 223, 229)}.duet-toolbar .list{display:flex;align-items:center;justify-content:space-between;height:100%;list-style-type:none}.duet-toolbar ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-toolbar.primary{background:rgb(0, 119, 179)}.duet-toolbar.primary .container{border-bottom:0}.duet-toolbar.secondary{background:rgb(8, 42, 77)}.duet-toolbar.secondary .container{border-bottom:0}.duet-toolbar.duet-theme-turva{background:rgb(255, 255, 255)}.duet-toolbar.duet-theme-turva .container{border-bottom:1px solid rgb(222, 224, 228)}.duet-toolbar.duet-theme-turva.primary{background:rgb(198, 12, 48)}.duet-toolbar.duet-theme-turva.primary .container{border-bottom:0}:host(.duet-theme-turva2) .duet-toolbar.duet-theme-turva .container{border-bottom-color:#fbe1d1}:host(.duet-theme-turva2) .duet-toolbar.duet-theme-turva.primary{background:#e61740}";var d=i;var b=e("duet_toolbar",function(){function e(e){t(this,e);this.theme="";this.variation="default";this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){n(this)};e.prototype.render=function(){var e;var t=this.variation==="primary"||this.variation==="negative"||this.theme==="turva"&&this.variation==="secondary"?"primary":this.variation==="secondary"?"secondary":"default";return r(a,{key:"1b26e3981203dbae3216d276dd83f7f60ddb5184"},r("nav",{key:"f8b9f1f97884e9fb74afcdb598962684871f942d",class:(e={"duet-toolbar":true,"duet-theme-turva":this.theme==="turva"},e[t]=true,e),"aria-label":this.accessibleLabel},r("div",{key:"f17013b753eff5838cf4415d2bb388d4025a92d9",class:"container"},r("div",{key:"597857dd4c29a1172996e68893b65631714761cc",class:"list",role:"list"},r("slot",{key:"6fbaec704bb93b8568ac6cf039f45af1202423a0",name:"left"})),r("div",{key:"3eb765f8f290491f0641e9ca188545e8fbb4f344",class:"list",role:"list"},r("slot",{key:"6cc0db90a4eaa2da03be6ac05abe32d5e120cd8e",name:"right"})))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());b.style=d}}}));
4
+ System.register(["./p-43d6b171.system.js","./p-cddad487.system.js"],(function(e){"use strict";var t,r,a,o,n;return{setters:[function(e){t=e.r;r=e.h;a=e.H;o=e.g},function(e){n=e.i}],execute:function(){var d="*,*::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;width:100%}.duet-toolbar{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255)}.duet-toolbar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1384px;height:36px;margin:0 28px;border-bottom:1px solid rgb(212, 223, 229)}.duet-toolbar .list{display:flex;align-items:center;justify-content:space-between;height:100%;list-style-type:none}.duet-toolbar ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-toolbar.primary{background:rgb(0, 119, 179)}.duet-toolbar.primary .container{border-bottom:0}.duet-toolbar.secondary{background:rgb(8, 42, 77)}.duet-toolbar.secondary .container{border-bottom:0}.duet-toolbar.duet-theme-turva{background:rgb(255, 255, 255)}.duet-toolbar.duet-theme-turva .container{border-bottom:1px solid rgb(222, 224, 228)}.duet-toolbar.duet-theme-turva.primary{background:rgb(198, 12, 48)}.duet-toolbar.duet-theme-turva.primary .container{border-bottom:0}:host(.duet-theme-turva2) .duet-toolbar.duet-theme-turva .container{border-bottom-color:#fbe1d1}:host(.duet-theme-turva2) .duet-toolbar.duet-theme-turva.primary{background:#e61740}";var i=d;var b=e("duet_toolbar",function(){function e(e){t(this,e);this.theme="";this.variation="default";this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){n(this)};e.prototype.render=function(){var e;var t=this.variation==="primary"||this.variation==="negative"||this.theme==="turva"&&this.variation==="secondary"?"primary":this.variation==="secondary"?"secondary":"default";return r(a,{key:"71cf9fb61b1385f9e3cdb9b261d24693788ea0f3"},r("nav",{key:"b4d4182af3679982529ca44fd471f5763dbcfd1f",class:(e={"duet-toolbar":true,"duet-theme-turva":this.theme==="turva"},e[t]=true,e),"aria-label":this.accessibleLabel},r("div",{key:"70b7556c67c5d914fae243ebbbfc40bcafeeb1fb",class:"container"},r("div",{key:"1253dcf2deb5eca7b68f15abdc65bfb5f578bc20",class:"list",role:"list"},r("slot",{key:"61e977ba9089ea74bea48572bad2cf9948d4c24a",name:"left"})),r("div",{key:"96783a831bd7c7c520be9cd1fd80fc4b03b43639",class:"list",role:"list"},r("slot",{key:"47b4a4041f6d2bd92f01e0baeb6d212114ac6ce0",name:"right"})))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());b.style=i}}}));
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import{r as t,h as e,H as a,g as o,c as i}from"./p-c4a1cfd6.js";import{i as r}from"./p-d9cafc77.js";import{h as s,a as n}from"./p-a68a90f3.js";import{s as d,u as l,o as b,p as u,d as c,b as h,a as p,c as g}from"./p-a45e3f8b.js";import{g as m,c as f,d as v,a as x}from"./p-75a66b82.js";import{d as k}from"./p-e63f5ff5.js";import{c as w}from"./p-5e59e970.js";import"./p-9c3c64b9.js";import"./p-17efced0.js";const y=class{constructor(e){t(this,e),this.currentIndex=0,this.scrollPaneElement=void 0,this.hasCollapseButtonLabelSlot=!1,this.resizeObserver=new ResizeObserver((t=>{if(1===(null==t?void 0:t.length)){const e=this.getOverlayWidth();this.checkScrollingNeeded(t[0].target,e)}})),this.collapsedOnClick=()=>{this.collapsed=!this.collapsed},this.scrollPaneAtStart=!0,this.needsScrolling=!0,this.scrollPaneAtEnd=!1,this.childrenData={},this.theme="",this.identifier="",this.collapsed=!1,this.buttons=!0,this.buttonAlignment="center",this.buttonPosition="relative",this.center=!1,this.padding="none",this.gap="large",this.selected=0,this.stretch=!1}watchPropHandler(t){this.scrollToElement(t,"center")}componentWillLoad(){r(this),this.hasCollapseButtonLabelSlot=s(this.element,"collapse-button-label")}componentDidLoad(){requestAnimationFrame((()=>{this.scrollPaneElement&&(this.checkScrollingNeeded(this.scrollPaneElement,"absolute"===this.buttonPosition?0:5),this.updateScrollButtons(),this.resizeObserver.observe(this.scrollPaneElement))}))}disconnectedCallback(){this.resizeObserver.disconnect()}getScrollPaneElements(){return n(this.element)}checkScrollingNeeded(t=this.scrollPaneElement,e=5){var a;if(!t)return;const o=(null===(a=t.parentElement)||void 0===a?void 0:a.getBoundingClientRect().width)||0,i=t.scrollWidth,r=2*this.getOverlayWidth();this.needsScrolling=i-r>o+e,this.needsScrolling?this.updateScrollButtons():(this.scrollPaneAtStart=!0,this.scrollPaneAtEnd=!0)}getLastVisibleElement(){const t=this.getScrollPaneElements().find((t=>t.getBoundingClientRect().x+t.getBoundingClientRect().width-this.scrollPaneElement.getBoundingClientRect().x>this.scrollPaneElement.clientWidth)),e=this.getScrollPaneElements().indexOf(t);return t.clientWidth>this.scrollPaneElement.clientWidth?e:e-1}getFirstVisibleElement(){const t=this.getScrollPaneElements(),e=t.find((t=>t.getBoundingClientRect().x>this.scrollPaneElement.getBoundingClientRect().x)),a=e?t.indexOf(e):t.length;var o=Math.max(a-1,0);return t[o].clientWidth>this.scrollPaneElement.clientWidth?o:a}updateScrollButtons(t=null,e=this.scrollPaneElement){if(!this.buttons)return;if(t&&t.clientWidth>this.scrollPaneElement.clientWidth){const e=this.getScrollPaneElements().indexOf(t);return 0==e&&(this.scrollPaneAtStart=!0),void(e==this.getScrollPaneElements().length-1&&(this.scrollPaneAtEnd=!0))}e.scrollLeft<=0?this.scrollPaneAtStart=!0:e.scrollLeft>0&&(this.scrollPaneAtStart=!1);const a=Math.round(e.clientWidth+e.scrollLeft+this.getOverlayWidth()),o=Math.round(e.scrollWidth);this.scrollPaneAtEnd=a>=o}scrollToElement(t=this.currentIndex,e){const a=this.getScrollPaneElements();if(!a||0===a.length)return;t+1>=a.length&&(t=a.length-1),t<0&&(t=0);let o=a[0].getBoundingClientRect().x,i=5;const r=()=>{if(a[0].getBoundingClientRect().x===o){if(i--,0!==i)return void window.requestAnimationFrame(r);this.updateScrollButtons(a[t])}else window.requestAnimationFrame(r),o=a[0].getBoundingClientRect().x};a[t].scrollIntoView({behavior:"smooth",block:"nearest",inline:e}),window.requestAnimationFrame(r)}scrollLeft(){this.scrollPaneAtEnd=!1;const t=this.getFirstVisibleElement();this.scrollToElement(t-1,"center")}scrollRight(){this.scrollPaneAtStart=!1;const t=this.getLastVisibleElement();this.scrollToElement(t+1,"center")}getOverlayWidth(){return"absolute"===this.buttonPosition?0:10}renderButton(t){const a="turva"===this.theme?"color-primary-darker-turva":"color-primary",o="turva"===this.theme?"color-gray-turva":"color-gray",i=()=>{"left"===t?this.scrollLeft():this.scrollRight()},r="left"===t?this.scrollPaneAtStart:this.scrollPaneAtEnd;return e("div",{class:{"duet-scrollable-button-container":!0,[`${t}`]:!0,"duet-scrollable-button-container--occluded":!this.needsScrolling,[`duet-scrollable-button-container--${this.buttonPosition}`]:!0},hidden:!this.buttons||"absolute"===this.buttonPosition&&r},e("span",{part:`${this.identifier}-button-${t}`,"aria-hidden":"true",class:{"duet-scrollable-button":!0,[`duet-scrollable-button--${this.buttonPosition}`]:!0,[`duet-scrollable-button--${this.buttonAlignment}`]:!0,[`duet-scrollable-button--${t}`]:!0},onClick:()=>{i(),document.activeElement&&document.activeElement.blur()},hidden:!this.buttons||r},e("duet-icon",{color:r?o:a,name:"left"===t?"action-arrow-left":"action-arrow-right",size:"absolute"===this.buttonPosition?"x-small":"small",margin:"none"})))}render(){return e(a,{key:"b83340472bd0299ef946a14d98cca2c05dbde0b2",class:{"duet-theme-turva":"turva"===this.theme,"duet-theme-default":"default"===this.theme}},this.hasCollapseButtonLabelSlot&&e("div",{key:"60f4c2b0a0c9042965e8b2ed5f84dc0643b04e58",class:{collapse:!0,hide:!this.needsScrolling&&!this.collapsed}},e("duet-button",{key:"e838bec53c6b51ae8bddb5632ad6571aec939faf",variation:"plain",margin:"none","center-text":!0,onClick:()=>this.collapsedOnClick()},e("slot",{key:"7f29fd420848f2ced7b844ebd51e707e120ddb5e",name:"collapse-button-label"}))),e("div",{key:"a993a456f32f2f7a3e87fc8c0737b68969899225",class:{"duet-scrollable-items":!0,buttons:this.buttons,center:this.center,"duet-theme-turva":"turva"===this.theme}},this.buttons&&this.renderButton("left"),e("div",{key:"b2a6a9f2553d32e89ac185915c85ab5c5888b2f1",class:{"duet-scrollable-list":!0,[`duet-scrollable-list--${this.buttonPosition}`]:!0,[`gap-${this.gap}`]:!0,collapsed:this.collapsed,[`duet-overflow-padding--${this.padding}`]:"none"!==this.padding,[`duet-scrollable-list--${this.buttonPosition}`]:"absolute"===this.buttonPosition,"duet-scrollable-stretch":this.stretch},onScroll:()=>this.updateScrollButtons(),ref:t=>this.scrollPaneElement=t},e("slot",{key:"8e376adf402c2d4b3788c6fd43b247b296feed13"})),this.buttons&&this.renderButton("right")))}get element(){return o(this)}static get watchers(){return{selected:["watchPropHandler"]}}};y.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}:host{position:relative !important}:host .duet-scrollable-items{position:relative;display:flex}:host .duet-scrollable-items.buttons .duet-scrollable-button-container{position:relative;flex:0 0 auto;flex-basis:40px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--occluded{flex-basis:0;flex-shrink:1;width:0;padding:10px 0;overflow:hidden;visibility:hidden}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute{position:absolute;top:0;z-index:210;width:auto;height:100%;padding:0 16px;background-color:rgb(255, 255, 255)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute.left{left:0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute.right{right:0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button{position:absolute;display:flex;flex:0 0 auto;flex-basis:40px;align-items:center;height:100%;cursor:pointer;transition:transform 300ms ease}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button:active duet-icon{transition:transform 300ms ease;transform:scale(0.8)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--left{left:0;padding:10px 10px 10px 0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--right{right:0;padding:10px 0 10px 10px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--top{align-items:flex-start}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--bottom{align-items:flex-end}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute{padding:0 7px;border:1px solid rgb(212, 223, 229)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute.duet-scrollable-button--left{border-radius:8px 0 0 8px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute.duet-scrollable-button--right{border-radius:0 8px 8px 0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(0, 119, 179);border-width:2px;}.duet-theme-turva :host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(113, 118, 132)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button[hidden]{display:none !important}:host .duet-scrollable-items.duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(113, 118, 132)}:host .duet-scrollable-items .duet-scrollable-list{display:flex;flex-wrap:nowrap;padding-inline:10px;margin-inline:-10px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scroll-snap-type:x mandatory;scroll-behavior:smooth;scroll-margin:0 20px;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;-webkit-mask:linear-gradient(to right, transparent 0, #fff 10px), linear-gradient(to left, transparent 0, #fff 10px);-webkit-mask-size:50% 100%, 50% 100%;-webkit-mask-position:left, right;-webkit-mask-repeat:no-repeat;mask:linear-gradient(to right, transparent 0, #fff 10px), linear-gradient(to left, transparent 0, #fff 10px);mask-size:50% 100%, 50% 100%;mask-position:left, right;mask-repeat:no-repeat;}:host .duet-scrollable-items .duet-scrollable-list--absolute{padding-right:0;padding-left:2px;margin-inline:0;-webkit-mask:none !important;mask:none !important}:host .duet-scrollable-items .duet-scrollable-list:not(.buttons){white-space:normal}:host .duet-scrollable-items .duet-scrollable-list::-webkit-scrollbar{display:none}:host .duet-scrollable-items .duet-scrollable-list.collapsed{flex-wrap:wrap}:host .duet-scrollable-items .duet-scrollable-list.gap-none{gap:0}:host .duet-scrollable-items .duet-scrollable-list.gap-large{gap:20px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--xx-small{padding-top:4px;padding-bottom:4px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--x-small{padding-top:8px;padding-bottom:8px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--small{padding-top:12px;padding-bottom:12px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--medium{padding-top:16px;padding-bottom:16px}:host .duet-scrollable-items .duet-scrollable-list.duet-scrollable-stretch{width:100%}:host .duet-scrollable-items.center{justify-content:center}:host .duet-scrollable-items.center .duet-scrollable-list.collapsed{justify-content:center}.collapse{width:100%;text-align:center}.collapse.hide{visibility:hidden}::slotted(*){flex-shrink:0;margin-left:0;-webkit-transition:-webkit-transform 0.2s ease-in-out;transition:-webkit-transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;scroll-snap-align:center}:host(.duet-theme-turva2) .duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:#7891a4}:host(.duet-theme-turva2) .duet-scrollable-items.duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:#7891a4}";const z=class{constructor(e){t(this,e),this.setupContentElement=()=>{this.contentId&&(this.tabpanelElement=document.getElementById(this.contentId),this.tabpanelElement&&(this.tabpanelElement.setAttribute("role","tabpanel"),this.tabpanelElement.setAttribute("tabindex","-1"),this.tabpanelElement.removeEventListener("focus",this.tabpanelElementFocusListener),this.tabpanelElement.removeEventListener("blur",this.tabpanelElementBlurListener),this.tabpanelElement.addEventListener("focus",this.tabpanelElementFocusListener),this.tabpanelElement.addEventListener("blur",this.tabpanelElementBlurListener),this.accessibleDescription&&this.tabpanelElement.setAttribute("aria-description",this.accessibleDescription),this.accessibleLabelledBy&&this.tabpanelElement.setAttribute("aria-labelledby",this.accessibleLabelledBy),this.tabpanelElement.toggleAttribute("hidden",!this.selected)))},this.tabpanelElementFocusListener=()=>{this.element.classList.contains("user-is-tabbing")&&(this.tabpanelElement.style.outline="0",this.tabpanelElement.style.boxShadow=k("turva"===this.theme?"focus-turva":"focus"))},this.tabpanelElementBlurListener=()=>{this.tabpanelElement.style.outline=null,this.tabpanelElement.style.boxShadow=null},this.theme="",this.label=void 0,this.caption=void 0,this.selected=void 0,this.notificationMark=void 0,this.accessibleDescriptionDefault=null,this.accessibleDescription=this.accessibleDescriptionDefault?m(this.accessibleDescriptionDefault):null,this.accessibleLabelledBy=void 0,this.contentId=void 0}componentWillLoad(){r(this)}connectedCallback(){f(this,{prop:"accessibleDescription",defaults:"accessibleDescriptionDefault"}),d(this),this.setupContentElement()}disconnectedCallback(){v(this),l(this),this.tabpanelElement&&(this.tabpanelElement.removeEventListener("focus",this.tabpanelElementFocusListener.bind(this)),this.tabpanelElement.removeEventListener("blur",this.tabpanelElementBlurListener.bind(this)),this.tabpanelElement=void 0)}setupSelected(t,e){!!t!=!!e&&this.setupContentElement()}async setFocus(t){this.tabpanelElement.focus(t)}render(){return e("div",{ref:t=>{this.contentId||(this.tabpanelElement=t)},role:"tabpanel",class:{"duet-theme-turva":"turva"===this.theme,"duet-tab":!0,selected:this.selected,"has-content-id":!!this.contentId},"aria-description":this.accessibleDescription,"aria-labelledby":this.accessibleLabelledBy,tabindex:"-1"},e("slot",null))}get element(){return o(this)}static get watchers(){return{selected:["setupSelected"]}}};z.style=".sc-duet-tab-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-tab.sc-duet-tab{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:none;width:100%}.duet-tab.selected.sc-duet-tab{display:block}.duet-tab.has-content-id.sc-duet-tab,.duet-tab.has-content-id.selected.sc-duet-tab{display:none}.user-is-tabbing.sc-duet-tab-h .duet-tab.sc-duet-tab:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.user-is-tabbing.sc-duet-tab-h .duet-tab.duet-theme-turva.sc-duet-tab:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";const S=class{constructor(e){t(this,e),this.duetChange=i(this,"duetChange",3),this.duetTabChange=i(this,"duetTabChange",7),this.duetTabChangeRequested=i(this,"duetTabChangeRequested",7),this.id=w("DuetTabGroup"),this.handleKeyDown=t=>{let e;c(t)||h(t)?e=t.target.previousElementSibling:(p(t)||g(t))&&(e=t.target.nextElementSibling),b(t)&&!u(t)&&(t.preventDefault(),this.element.querySelector(":scope > duet-tab[selected]").setFocus()),e&&(t.preventDefault(),e.click(),e.focus())},this.onTabSelect=t=>{this.tabChangeConfirm?t!==this.selected&&this.duetTabChangeRequested.emit({value:t,component:"duet-tab-group"}):this.openTab(t)},this.scrollToActive=()=>{setTimeout((()=>{const t=this.tabsContainer.querySelector(".selected");t&&t.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}),50)},this.tabs=[],this.selected=void 0,this.theme="",this.scrolls=!0,this.collapses=!1,this.accessibleLabel=void 0,this.variation="default",this.language=x(),this.labelDefaults={fi:"Valitse",en:"Choose",sv:"Välj"},this.label=m(this.labelDefaults,this.language),this.labelHidden=!0,this.identifier=this.id,this.margin="auto",this.padding="auto",this.setTabIndex=!0,this.tabChangeConfirm=!1,this.switchLargeBreakpoint="small",this.fillSpace=!1,this.stretch=!1}async connectedCallback(){"undefined"!=typeof MutationObserver&&(this.mutationO=new MutationObserver((()=>{this.updateTabs()})),this.mutationO.observe(this.element,{attributes:!0,attributeFilter:["label","selected"],childList:!0,characterData:!0,subtree:!0})),await this.updateTabs(),d(this)}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0),l(this)}componentWillLoad(){r(this)}componentDidLoad(){this.intersectionObserver=new IntersectionObserver((t=>{t.length>0&&t[0].isIntersecting&&(this.scrollToActive(),this.intersectionObserver.disconnect())}),{root:null,threshold:0}),this.intersectionObserver.observe(this.element)}async openTab(t){if(t>=this.tabs.length)throw new Error(`[duet-tabs] Index ${t} is out of bounds of tabs length`);this.selected=t,this.tabs.forEach(((e,a)=>{e.selected=a===t})),this.scrollToActive();const e={value:t,component:"duet-tab-group"};this.duetChange.emit(e),this.duetTabChange.emit(e)}async refresh(){console.log("[duet-tabs] Refresh method is deprecated and will be removed in the future version.")}getTabs(){const t=Array.from(this.element.querySelectorAll("duet-tab")).filter((t=>t.closest("duet-tab-group")===this.element));if(0===t.length)throw new Error("[duet-tabs] Must have at least one tab");return t}getButtonId(t){return`${this.identifier}-button-${t}`}getTabId(t){return`${this.identifier}-tab-${t}`}getAccessibleDescription(t){return this.tabs[t].getAttribute("accessible-description")||null}async updateTabs(){let t;this.tabs=this.getTabs(),this.tabs.forEach(((e,a)=>{e.id=this.getTabId(a),e.selected&&(void 0===t?t=a:e.selected=!1)})),void 0===t&&(t=0,this.tabs[0].selected=!0),this.selected=t}isCentered(){return window&&"center"==window.getComputedStyle(this.element).textAlign}render(){const t="plain-scrolling"===this.variation?"duet-tab-variation-plain":`duet-tab-variation-${this.variation}`,a="checked"===this.variation||"plain-scrolling"===this.variation,o=`switch-large-at-${this.switchLargeBreakpoint?this.switchLargeBreakpoint:"small"}`,i=this.tabs.map(((t,a)=>e("button",{role:"tab",id:this.getButtonId(a),"aria-selected":t.selected?"true":"false","aria-description":this.getAccessibleDescription(a),tabindex:t.selected?"0":"-1",part:`${this.identifier}-button ${t.selected?`${this.identifier}-button--selected`:""}`,type:"button",class:{"duet-p-0":"none"===this.padding,"duet-tab-button":!0,"stackable-tab":"checked"===this.variation&&this.tabs.length<=3,selected:t.selected,[`duet-notification-mark-${t.notificationMark}`]:!!t.notificationMark,[o]:!!["default","plain","plain-scrolling"].includes(this.variation)},onClick:()=>this.onTabSelect(a),onKeyDown:t=>this.handleKeyDown(t)},"checked"===this.variation?e("div",{class:{"checked-tab-content":!0,"stackable-checked-tab-content":this.tabs.length<=3}},e("div",{class:{"checked-tab-description":!0,"stackable-description":this.tabs.length<=3}},e("p",null,t.label),e("p",{class:{"tab-caption":!0,selected:t.selected}},t.caption)),e("div",{class:{"stackable-checkmark":this.tabs.length<=3}},e("duet-checkmark",{theme:this.theme,checked:t.selected,type:"radio","presentation-only":!0,center:!0}))):t.label)));return e("div",{key:"d0221da76b9c778b6d22fea962e6964dadd64929",class:{"duet-tab-group":!0,"duet-theme-turva":"turva"===this.theme,[t]:!0,"duet-tab-plain-scrolling":"plain-scrolling"===this.variation,"duet-tab-group-scrolls":!0},"aria-label":this.accessibleLabel},e("div",{key:"aa0175a9e3fb67b01e92d0cd35755138dce2e46c",role:"tablist",class:{"duet-m-0":"none"===this.margin||"checked"===this.variation,"duet-tab-group-tabs":!0,"duet-tab-group-hidden":this.tabs.length>3&&!a,"duet-tab-group-fill-space":this.fillSpace&&!this.stretch&&"default"===this.variation,"duet-tab-group-stretch":this.stretch},ref:t=>{this.tabsContainer=t}},"checked"===this.variation?i:e("div",{class:{"duet-tab-group-scrollable-wrapper":!0,"duet-tab-group-fill-space-wrapper":this.fillSpace&&"default"===this.variation}},this.fillSpace&&!this.stretch&&"default"===this.variation&&e("div",{class:"duet-scrollable-stretch-overlay"},e("div",{class:"background"}),e("div",{class:"border"})),e("duet-scrollable",{selected:this.selected,identifier:this.identifier,gap:["default","plain","plain-scrolling"].includes(this.variation)?"none":"large",buttonPosition:"default"===this.variation?"absolute":"relative",center:this.isCentered()?this.isCentered():"center"==this.element.style.textAlign,theme:this.theme,stretch:this.stretch},i))),e("div",{key:"f7da2ca2b11ae48bde1a50609695453bc5b46bdd",class:{"duet-tab-group-content":!0,"duet-m-0":"none"===this.margin,"checked-group-content":"checked"===this.variation}},e("slot",{key:"0ca36531417cca1068a36d6ef4e6d5eb3b29302d"})))}get element(){return o(this)}};S.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;display:block;width:100%}.duet-tab-group-tabs{margin-bottom:28px !important;display:block;width:100%;max-width:100%;padding-top:2px;list-style:none}.duet-tab-group-tabs.duet-m-0{margin:0 !important}.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom-color:rgb(222, 224, 228)}.duet-tab-variation-checked .duet-tab-group-tabs{display:flex;gap:4px;padding-top:0;padding-right:12px;padding-left:12px;overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-variation-checked .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-group-tabs{gap:8px;padding-right:16px;padding-left:16px;overflow:visible}}.duet-tab-plain-scrolling .duet-tab-group-tabs{display:flex;overflow-x:scroll;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-plain-scrolling .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-plain-scrolling .duet-tab-group-tabs{display:block;overflow:auto}}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper{}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper{position:relative;width:100%;overflow:hidden;border-radius:8px;}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay{display:contents}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background,.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .border{position:absolute;width:100%;height:100%;pointer-events:none;border-radius:8px}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background{z-index:100;background:rgb(245, 248, 250)}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background::after{position:absolute;top:0;left:0;width:100%;height:100%;margin-block:1px;content:"";border-radius:8px;box-shadow:0 3px 2px -1px rgba(0, 41, 77, 0.1) inset, 0 0 0 rgb(212, 223, 229)}.duet-theme-turva .duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background::after{box-shadow:0 3px 2px -1px rgba(23, 28, 58, 0.1) inset, 0 0 0 rgb(222, 224, 228)}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .border{z-index:206;border:1px solid rgb(212, 223, 229)}@media (min-width: 36em){duet-select{display:none !important}}.duet-tab-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:inline-block;width:auto;padding:20px;margin-left:-2px;overflow:visible;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;text-align:left;text-decoration:none;cursor:pointer;border-right:2px solid rgb(212, 223, 229);border-radius:0;transition:150ms ease}.duet-tab-button.duet-p-0{padding:0 !important}.duet-tab-button.duet-m-0{margin:0 !important}.duet-tab-group-stretch .duet-tab-button{flex:1 1 0;min-width:fit-content;text-align:center}.duet-tab-button.duet-notification-mark-warning::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(247, 178, 40);box-shadow:0 0 0 1px #dea024}.duet-tab-variation-plain .duet-tab-button.duet-notification-mark-warning::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-tab-button.duet-notification-mark-danger::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(214, 28, 82);box-shadow:0 0 0 1px #c1194a}.duet-tab-variation-plain .duet-tab-button.duet-notification-mark-danger::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-theme-turva .duet-tab-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-theme-turva .duet-tab-button.duet-notification-mark-warning::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(247, 178, 40);box-shadow:0 0 0 1px #dea024}.duet-tab-variation-plain .duet-theme-turva .duet-tab-button.duet-notification-mark-warning::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-theme-turva .duet-tab-button.duet-notification-mark-danger::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(214, 28, 82);box-shadow:0 0 0 1px #c1194a}.duet-tab-variation-plain .duet-theme-turva .duet-tab-button.duet-notification-mark-danger::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-tab-button.duet-p-0{padding:0 !important}.duet-tab-button:hover{z-index:200;border-color:rgb(127, 150, 165)}.duet-theme-turva .duet-tab-button:hover{border-color:rgba(199, 202, 207, 0.8)}.duet-tab-button:active{opacity:0.75;transition:none}.duet-tab-button.selected{z-index:201;color:rgb(0, 119, 179);background:rgb(255, 255, 255);border-bottom:3px solid rgb(0, 119, 179);outline:0;box-shadow:none !important}.duet-theme-turva .duet-tab-button.selected{color:rgb(198, 12, 48);border-color:rgb(222, 224, 228);border-bottom-color:rgb(198, 12, 48)}.duet-tab-button:focus{z-index:205;outline:0}:host(.user-is-tabbing) .duet-tab-button:focus{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-tab-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-tab-variation-default .duet-tab-button{z-index:200;padding:11px 20px 13px 20px;overflow:hidden;font-size:0.875rem;color:rgb(62, 84, 102);background:rgb(245, 248, 250);border:1px solid rgb(212, 223, 229)}.duet-tab-variation-default .duet-tab-button.switch-large-at-always{padding:15px 28px 17px 28px;font-size:1rem}@media (min-width: 36em){.duet-tab-variation-default .duet-tab-button.switch-large-at-small{padding:15px 28px 17px 28px;font-size:1rem}}.duet-tab-variation-default .duet-tab-button.selected{color:rgb(8, 42, 77);background:rgb(255, 255, 255);transition:none}.duet-tab-variation-default .duet-tab-button.selected::before{position:absolute;right:-1px;bottom:0;z-index:300;display:block;width:calc(100% + 2px);height:2px;content:"";background-color:rgb(0, 119, 179)}.duet-tab-variation-default .duet-tab-button.selected:focus-visible{outline:2px solid rgba(0, 119, 179, 0.8);outline-offset:-5px;box-shadow:none !important}.duet-tab-variation-default .duet-tab-button.selected:focus-visible::before{height:0}.duet-tab-variation-default .duet-tab-button:not(.selected){box-shadow:0 3px 2px -1px rgba(0, 41, 77, 0.1) inset, 0 0 0 rgb(212, 223, 229)}.duet-tab-variation-default .duet-tab-button:hover:not(.selected){color:rgb(30, 45, 59);background:rgb(228, 236, 239)}.duet-tab-variation-default .duet-tab-button:first-child{border-radius:8px 0 0 8px}.duet-tab-variation-default .duet-tab-button:last-child{border-radius:0 8px 8px 0}.duet-tab-variation-default .duet-tab-group-fill-space .duet-tab-button{z-index:200}.duet-tab-variation-default .duet-tab-group-fill-space .duet-tab-button:last-child{border-radius:0}.duet-theme-turva.duet-tab-variation-default .duet-tab-group-fill-space .duet-tab-button::before{height:3px}.duet-theme-turva.duet-tab-variation-default .duet-tab-button{color:rgb(71, 78, 101)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button.selected{color:rgb(23, 28, 58);background:rgb(255, 255, 255)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button.selected::before{background-color:rgb(198, 12, 48)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button:not(.selected){z-index:200;box-shadow:0 3px 2px -1px rgba(23, 28, 58, 0.1) inset, 0 0 0 rgb(222, 224, 228)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button:hover:not(.selected){z-index:200;color:rgb(45, 52, 79);background:rgb(234, 235, 239)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button:focus-visible{border-color:rgb(222, 224, 228);outline-color:rgba(199, 202, 207, 0.8)}.duet-tab-variation-plain .duet-tab-button{display:inline-block;width:auto;padding:12px 0;margin-left:0;font-size:0.875rem;color:rgb(81, 105, 123);border-width:0;border-bottom:2px solid transparent;border-radius:0;transition:none}.duet-tab-variation-plain .duet-tab-button.switch-large-at-always{padding:20px 0;font-size:1rem}@media (min-width: 36em){.duet-tab-variation-plain .duet-tab-button.switch-large-at-small{padding:20px 0;font-size:1rem}}.duet-tab-variation-plain .duet-tab-button:hover{color:rgb(8, 42, 77);border-bottom:2px solid rgb(0, 119, 179)}.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(8, 42, 77);border-bottom:2px solid rgb(0, 119, 179)}.duet-tab-variation-plain .duet-tab-button+.duet-tab-button{margin-left:36px}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button{color:rgb(71, 78, 101)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button:hover{color:rgb(45, 52, 79);border-bottom:2px solid rgb(198, 12, 48)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(23, 28, 58);border-bottom:2px solid rgb(198, 12, 48)}.duet-tab-variation-checked .duet-tab-button{position:relative;display:inline-block;flex-basis:0;flex-grow:1;width:200px;min-width:200px;padding:8px 4px;border-color:rgb(181, 198, 208);border-top:2px solid rgb(181, 198, 208);border-bottom-color:rgb(0, 119, 179);border-left:2px solid rgb(181, 198, 208);border-radius:4px 4px 0 0;transition:none}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button{border-color:rgb(181, 198, 208);border-bottom-color:rgb(113, 118, 132)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button{min-width:0;padding:16px}}.duet-tab-variation-checked .duet-tab-button.stackable-tab{min-width:0}.duet-tab-variation-checked .duet-tab-button:first-child{margin-left:auto}.duet-tab-variation-checked .duet-tab-button:last-child{margin-right:auto}.duet-tab-variation-checked .duet-tab-button:active{opacity:1;transition:none}.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(0, 119, 179);background:linear-gradient(180deg, rgb(240, 247, 250) 0%, rgb(255, 255, 255) 100%);border-color:rgb(0, 119, 179);border-bottom-color:#fff}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(23, 28, 58);background:linear-gradient(180deg, rgb(245, 247, 250) 0%, rgb(255, 255, 255) 100%);border-color:rgb(113, 118, 132);border-bottom-color:#fff}.duet-tab-variation-checked .duet-tab-button .checked-tab-content{display:flex;flex-direction:row;justify-content:space-between}.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:column;height:100%}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:row}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description{display:flex;flex-direction:column;overflow:hidden;overflow-wrap:break-word}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:center}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:left}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{margin-top:4px;font-size:0.875rem;font-weight:400;color:rgb(98, 121, 138)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{font-size:1rem;text-align:left}}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{color:rgb(113, 118, 132)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(0, 119, 179)}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(113, 118, 132)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:-1;margin-top:8px;margin-bottom:8px}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:1}}.duet-tab-group-content{position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-align:left}.duet-tab-group-content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3 !important}.duet-theme-turva .duet-tab-group-content:focus,.duet-tab-group-content:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-tab-group-content.checked-group-content{padding:28px 0 28px 0}.duet-tab-group-content.checked-group-content::after{position:absolute;top:-2px;left:0;width:100%;height:2px;content:" ";background-color:rgb(0, 119, 179)}.duet-theme-turva .duet-tab-group-content{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-theme-turva .duet-tab-group-content.checked-group-content::after{background-color:rgb(113, 118, 132)}:host(.duet-theme-turva2){}:host(.duet-theme-turva2) .duet-theme-turva .duet-tab-group-tabs.duet-tab-variation-plain{border-bottom-color:#fbe1d1}:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-variation-plain .duet-tab-button:hover{border-bottom:2px solid #e61740}:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-variation-plain .duet-tab-button.selected{border-bottom:2px solid #e61740}:host(.duet-theme-turva2) .duet-theme-turva .duet-tab-button{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-tab-button.selected{color:#172a3b;border-color:#fbe1d1;border-bottom-color:#e61740}:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-variation-default .duet-tab-button.selected::before{background-color:#e61740}:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-variation-default .duet-tab-button:focus-visible{border-color:#fbe1d1}';export{y as duet_scrollable,z as duet_tab,S as duet_tab_group}
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { a as getElementsFromDefaultSlot } from './slot-utils-03502471.js';
4
+ import { a as getElementsFromDefaultSlot } from './slot-utils-28b6b964.js';
5
5
 
6
6
  function getAccessibleLinkLabel(component) {
7
7
  const textContent = component.element.textContent;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import './index-5757a151.js';
4
+ import './index-4cc3ec50.js';
5
5
 
6
6
  const setupLoggers = () => {
7
7
  {
@@ -26,5 +26,27 @@ const DuetStringsListStepOfTotal = {
26
26
  en: "List with {total} steps. You are on step {current}.",
27
27
  sv: "Lista med {total} steg. Du är på steg {current}.",
28
28
  };
29
+ const DuetStatusLabels = {
30
+ default: {
31
+ fi: "Huomioithan",
32
+ en: "Please note",
33
+ sv: "Observera",
34
+ },
35
+ success: {
36
+ fi: "Onnistunut toiminto",
37
+ en: "Action completed successfully",
38
+ sv: "Lyckad åtgärd",
39
+ },
40
+ danger: {
41
+ fi: "Tärkeä varoitus",
42
+ en: "Important warning",
43
+ sv: "Viktig varning",
44
+ },
45
+ warning: {
46
+ fi: "Varoitus",
47
+ en: "Warning",
48
+ sv: "Varning",
49
+ },
50
+ };
29
51
 
30
- export { DuetStringsExternalDefaults as D, DuetStringsLoadingDefaults as a, DuetStringsDownloadLinkDefaults as b, DuetStringsPleaseWaitDefaults as c, DuetStringsListStepOfTotal as d };
52
+ export { DuetStatusLabels as D, DuetStringsExternalDefaults as a, DuetStringsPleaseWaitDefaults as b, DuetStringsLoadingDefaults as c, DuetStringsListStepOfTotal as d, DuetStringsDownloadLinkDefaults as e };
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5757a151.js';
5
- import { i as inheritGlobalTheme } from './themeable-component-e507940b.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4cc3ec50.js';
5
+ import { i as inheritGlobalTheme } from './themeable-component-35ed7853.js';
6
6
  import { c as createID } from './create-id-149a1b6d.js';
7
7
  import { d as debounce } from './js-utils-9b9e0039.js';
8
8
  import { i as isKeyboardClick } from './keyboard-utils-daf80d44.js';
9
- import { g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-1aea3619.js';
10
- import { c as capitalizeFirstLetter, g as getColorByName, s as shadeRGBColor } from './token-utils-7360bb84.js';
9
+ import { g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-aa864aed.js';
10
+ import { c as capitalizeFirstLetter, g as getColorByName, s as shadeRGBColor } from './token-utils-06ae5c10.js';
11
11
  import './string-utils-192eb3c8.js';
12
12
  import './tokens.module-821694bb.js';
13
13
 
@@ -1,12 +1,13 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5757a151.js';
5
- import { i as inheritGlobalTheme } from './themeable-component-e507940b.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-4cc3ec50.js';
5
+ import { D as DuetStatusLabels } from './common-strings-1274857d.js';
6
+ import { i as inheritGlobalTheme } from './themeable-component-35ed7853.js';
6
7
  import { c as createID } from './create-id-149a1b6d.js';
7
8
  import { s as subscribeTabbingChange, u as unsubscribeTabbingChange } from './keyboard-utils-daf80d44.js';
8
- import { g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-1aea3619.js';
9
- import { h as hasSlot } from './slot-utils-03502471.js';
9
+ import { g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-aa864aed.js';
10
+ import { h as hasSlot } from './slot-utils-28b6b964.js';
10
11
  import './string-utils-192eb3c8.js';
11
12
 
12
13
  const duetAlertCss = "*,*::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:block;width:100%;max-height:999px;transition:opacity 300ms ease, visibility 300ms ease, transform 300ms ease, max-height 300ms ease}:host(:focus){outline:0}:host(.user-is-tabbing: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:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}:host(.duet-alert-is-dismissed){max-height:0;overflow:hidden;visibility:hidden !important;opacity:0;transform:scale(0.98)}:host(.duet-alert-is-dismissed) .duet-alert{margin:0 !important}.duet-alert-wrapper{margin-bottom:16px !important;position:relative;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);background:rgb(228, 241, 247);border:1px solid rgb(172, 210, 229);border-radius:12px;transition:margin 100ms 300ms ease}.duet-alert-wrapper.duet-p-0{padding:0 !important}.duet-alert-wrapper.duet-m-0{margin:0 !important}.duet-alert-wrapper.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-alert-wrapper.warning{color:rgb(38, 26, 4);background:rgb(255, 247, 221);border:1px solid rgb(255, 217, 120)}.duet-alert-wrapper.danger{color:rgb(89, 0, 45);background:rgb(255, 225, 231);border:1px solid rgb(252, 136, 162)}.duet-alert-wrapper.success{color:rgb(4, 38, 33);background:rgb(231, 248, 239);border:1px solid rgb(163, 229, 202)}.duet-alert-wrapper.below-nav{margin-bottom:0 !important;border:0;border-bottom:1px solid rgb(212, 223, 229);border-radius:0}.duet-alert-wrapper .duet-alert{position:relative;width:100%;max-width:1384px;padding:16px;margin:0 auto}.duet-alert-wrapper .duet-alert.duet-alert-is-dismissible{padding:16px 72px 16px 16px;text-align:left}.duet-alert-wrapper .duet-alert.duet-alert-is-dismissible .duet-alert-container{text-align:left}.duet-alert-wrapper .duet-alert.duet-alert-has-show-more{padding-bottom:0}.duet-alert-wrapper .duet-alert.duet-alert-has-icon .duet-alert-show-more{margin-left:36px}.duet-alert-wrapper .duet-alert.duet-alert-expandable{padding-right:20px}.duet-alert-dismiss{position:absolute;top:3px;right:3px}.duet-alert-dismiss duet-button:hover{background-color:rgb(198, 225, 238);border-radius:8px}.warning .duet-alert-dismiss duet-button:hover{background-color:rgb(255, 232, 160)}.danger .duet-alert-dismiss duet-button:hover{background-color:rgb(255, 173, 190)}.success .duet-alert-dismiss duet-button:hover{background-color:rgb(191, 239, 218)}.duet-alert-container{display:inline-flex;align-items:flex-start;width:100%;margin:0 auto !important}.duet-alert-container .duet-alert-content{flex-grow:1;line-height:1.5}.duet-alert-has-icon .duet-alert-container{margin-top:2px !important}.duet-alert-container:focus{outline:none}.duet-alert-icon{position:relative;top:2px;display:inline-block;width:20px;min-width:20px;height:20px;margin:0 16px 0 0 !important}.duet-alert-icon duet-icon{width:20px;height:20px}.duet-alert-expander{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;width:calc(100% + 32px + 40px);padding:16px;padding-right:20px;padding-left:52px;margin:-16px;margin-left:-52px;font-family:inherit;color:inherit;cursor:pointer;background-color:inherit}.duet-alert-expanded .duet-alert-expander{margin-bottom:-4px}.duet-alert-expander .expanding-title{flex-grow:1;font-size:1rem;line-height:1.5;text-align:left}.duet-alert-expander duet-icon{position:relative;top:4px;transition:rotate 300ms ease}.duet-alert-expanded .duet-alert-expander duet-icon{rotate:180deg}.duet-alert-expander:hover{filter:brightness(85%)}";
@@ -19,28 +20,6 @@ const DuetAlert = class {
19
20
  this.duetCloseComplete = createEvent(this, "duetCloseComplete", 7);
20
21
  this.descriptiveId = createID("DuetAlert");
21
22
  this.hasShowMoreSlot = false;
22
- this.labels = {
23
- default: {
24
- fi: "Huomioithan",
25
- en: "Please note",
26
- sv: "Observera",
27
- },
28
- success: {
29
- fi: "Onnistunut toiminto",
30
- en: "Action completed successfully",
31
- sv: "Lyckad åtgärd",
32
- },
33
- danger: {
34
- fi: "Tärkeä varoitus",
35
- en: "Important warning",
36
- sv: "Viktig varning",
37
- },
38
- warning: {
39
- fi: "Varoitus",
40
- en: "Warning",
41
- sv: "Varning",
42
- },
43
- };
44
23
  this.handleDismiss = (ev) => {
45
24
  this.handleHide();
46
25
  this.duetDismiss.emit({
@@ -58,6 +37,15 @@ const DuetAlert = class {
58
37
  this.handleExpandToggle = () => {
59
38
  this.isExpanded = !this.isExpanded;
60
39
  };
40
+ this.getRole = () => {
41
+ if (!this.announcements) {
42
+ return undefined;
43
+ }
44
+ if (["warning", "danger"].includes(this.variation)) {
45
+ return "alert";
46
+ }
47
+ return "status";
48
+ };
61
49
  this.theme = "";
62
50
  this.isDismissed = false;
63
51
  this.isExpanded = false;
@@ -136,18 +124,18 @@ const DuetAlert = class {
136
124
  const variation = ["default", "success", "danger", "warning"].includes(this.variation)
137
125
  ? this.variation
138
126
  : "default";
139
- const variationLabel = getLocaleString(this.labels[variation]);
140
- return (h(Host, { key: '5584475286356ac3d444c97e9429aaddc5e6153e', class: {
127
+ const variationLabel = getLocaleString(DuetStatusLabels[variation]);
128
+ return (h(Host, { key: 'b204a657de629955d04058f3c43813aa00980c1e', class: {
141
129
  "duet-theme-turva": this.theme === "turva",
142
130
  "duet-alert-is-dismissed": this.isDismissed,
143
- }, role: this.announcements ? "alert" : undefined }, h("div", { key: '7a3ef0cee9f7e304eac829dfbfd834f1123867fd', class: {
131
+ }, role: this.getRole() }, h("div", { key: '0d573c37ae4013f7fdef0d89a7d2cfff38157b44', class: {
144
132
  "duet-alert-wrapper": true,
145
133
  "duet-p-0": this.padding === "none",
146
134
  "duet-m-0": this.margin === "none",
147
135
  [variation]: true,
148
136
  [this.position]: true,
149
137
  "duet-theme-turva": this.theme === "turva",
150
- } }, h("div", { key: '27797a4ea2296ac70ac133f3ec1a4fedaa07b78d', class: {
138
+ } }, h("div", { key: 'ecb946bd29811c5ee207804498810a6cd3c83889', class: {
151
139
  "duet-alert": true,
152
140
  "duet-alert-expandable": !!this.expandingTitle,
153
141
  "duet-alert-expanded": this.isExpanded,
@@ -158,9 +146,9 @@ const DuetAlert = class {
158
146
  "duet-m-0": this.margin === "none",
159
147
  [variation]: true,
160
148
  "duet-theme-turva": this.theme === "turva",
161
- } }, h("div", { key: '3030a95fb19791465f75a74a6803a1bbd0f9b5dd', class: "duet-alert-container", ref: element => {
149
+ } }, h("div", { key: '88e63f17d9d316a933266a2d98be63f1cf6fa939', class: "duet-alert-container", ref: element => {
162
150
  this.alertContainer = element;
163
- }, tabindex: this.focusable ? "0" : undefined }, this.position !== "below-nav" && (h("div", { key: 'e990ae6cf89ef89c0c3445af06402f8202583796', class: "duet-alert-icon" }, (this.icon && h("duet-icon", { key: 'f4b0bd5ca292239cb7a98379b10dd965d4173509', size: "auto", name: this.icon, color: "currentColor" })) || (h("duet-status-icon", { key: 'ad9b6952c1af47501fe6bf7298d69a66bb1223b9', strong: true, variation: variation, margin: "none", size: "auto" })))), this.position === "below-nav" && (h("div", { key: '479a41fafb16793a51eb71e8e892088b6ede41ef', class: "duet-alert-icon below-nav" }, h("duet-status-icon", { key: '249c1b1f9a763ce5725982a2c0a00597698bccc7', strong: true, variation: variation, margin: "none", size: "auto" }))), h("div", { key: '577fa13d2a0682a3fe079a4a098e11bb99fc8dc9', class: "duet-alert-content", id: this.descriptiveId }, this.expandingTitle && (h("button", { key: '4fb68ee1545889ee3c0090bcbc3cd7e952e4d6c9', "aria-expanded": this.isExpanded.toString(), "aria-controls": `${this.descriptiveId}-content`, class: "duet-alert-expander", onClick: this.handleExpandToggle }, h("span", { key: '9ab35209919d1fe4aa6f3db6c16e593828985434', class: "expanding-title" }, this.expandingTitle), h("duet-icon", { key: 'd387939b25c676cd7c17ec6962da00383935ade3', name: "action-arrow-down", color: variation === "default" ? "lt-blue-800" : `${variation}-800`, margin: "none", size: "x-small" }))), (!this.expandingTitle || this.isExpanded) && (h("div", { key: '989a79e16a74690dc7c78da3cc40ef4d02ecb513', id: `${this.descriptiveId}-content` }, h("duet-visually-hidden", { key: '4792b5aa92cefc69907c6325a3c89bd5d9476ae3' }, variationLabel), h("slot", { key: '662c5673bd1118e9effdd083eba7b13ea349ac39' }))))), this.hasShowMoreSlot && (h("duet-show-more", { key: '7b7b917b785c74924ef13550a9866ab4d724f9ce', margin: "none", class: "duet-alert-show-more" }, h("slot", { key: '6370fcc4b7e689d1997c7e224e6f71ca27772689', name: "show-more" }))), this.dismissible && !this.expandingTitle && (h("div", { key: '70e609bdf62b90448894c3f107c435d9b9b9f7ca', class: "duet-alert-dismiss" }, h("duet-button", { key: '1b230dc424387b18799431608c1aab1e63e7035f', variation: "plain", accessibleLabel: this.accessibleLabel, accessibleDescribedBy: this.descriptiveId, iconSize: "medium", icon: "navigation-close", iconOnly: true, margin: "none", color: variation === "default" ? "lt-blue-800" : `${variation}-800`, theme: this.theme, onClick: this.handleDismiss, fixed: true })))))));
151
+ }, tabindex: this.focusable ? "0" : undefined }, this.position !== "below-nav" && (h("div", { key: 'd0e266b3c576ec9c2532053c292c3bfbbc9d92b0', class: "duet-alert-icon" }, (this.icon && h("duet-icon", { key: 'efa5d1133ba832aa3e88fb419b8f2b454b5536c1', size: "auto", name: this.icon, color: "currentColor" })) || (h("duet-status-icon", { key: '7e00c8f29fb7a33a041acfbd82d1c359eadaf605', strong: true, variation: variation, margin: "none", size: "auto" })))), this.position === "below-nav" && (h("div", { key: '0314c3a000a06a357a7850f6c72002df3d32a541', class: "duet-alert-icon below-nav" }, h("duet-status-icon", { key: 'aec093d7be9e0c0d8940a5e0813495f707daefc0', strong: true, variation: variation, margin: "none", size: "auto" }))), h("div", { key: '97522cbf67c23477ae71603418f85f3d1a13d3c2', class: "duet-alert-content", id: this.descriptiveId }, this.expandingTitle && (h("button", { key: '08d8a6d3b089bad3c54727907f6ba1df213a9103', "aria-expanded": this.isExpanded.toString(), "aria-controls": `${this.descriptiveId}-content`, class: "duet-alert-expander", onClick: this.handleExpandToggle }, h("span", { key: '4efe686cc2dff3077ea3efed7a52c79c3b8c090a', class: "expanding-title" }, this.expandingTitle), h("duet-icon", { key: '2da0cd85883d2e850d65e0682c391079bcce2001', name: "action-arrow-down", color: variation === "default" ? "lt-blue-800" : `${variation}-800`, margin: "none", size: "x-small" }))), (!this.expandingTitle || this.isExpanded) && (h("div", { key: 'dd67482dc47bb4b23d8ff7fdbc7f50a09fd7f355', id: `${this.descriptiveId}-content` }, h("duet-visually-hidden", { key: '0f892f87996b79076b9c04e9d66fadbe681cf913' }, variationLabel), h("slot", { key: 'fac36116e1b9128ad398c4cf997d8c0fd3bca795' }))))), this.hasShowMoreSlot && (h("duet-show-more", { key: '10530ff533c94cb9c85eb23cae9ed3475f3567f2', margin: "none", class: "duet-alert-show-more" }, h("slot", { key: '06e77a909ef86b0ae2e83e818e88c75b8caa9969', name: "show-more" }))), this.dismissible && !this.expandingTitle && (h("div", { key: '65f541e6bf54abcfa91757571cffb18013188c39', class: "duet-alert-dismiss" }, h("duet-button", { key: 'a2e00a7f2d07d04bf388544893ddb56d332c8929', variation: "plain", accessibleLabel: this.accessibleLabel, accessibleDescribedBy: this.descriptiveId, iconSize: "medium", icon: "navigation-close", iconOnly: true, margin: "none", color: variation === "default" ? "lt-blue-800" : `${variation}-800`, theme: this.theme, onClick: this.handleDismiss, fixed: true })))))));
164
152
  }
165
153
  get element() { return getElement(this); }
166
154
  };