@duetds/components 9.18.0 → 9.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (758) hide show
  1. package/hydrate/index.js +165 -108
  2. package/lib/cjs/{a11y-utils-5b56e0b1.js → a11y-utils-f8e4367b.js} +1 -1
  3. package/lib/cjs/{app-globals-628c4829.js → app-globals-2b37fc0d.js} +1 -1
  4. package/lib/cjs/duet-action-button.cjs.entry.js +5 -5
  5. package/lib/cjs/duet-alert.cjs.entry.js +4 -4
  6. package/lib/cjs/duet-badge.cjs.entry.js +4 -4
  7. package/lib/cjs/duet-banner.cjs.entry.js +17 -10
  8. package/lib/cjs/duet-breadcrumb.cjs.entry.js +2 -2
  9. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +5 -5
  10. package/lib/cjs/duet-button_2.cjs.entry.js +17 -15
  11. package/lib/cjs/duet-callout.cjs.entry.js +3 -3
  12. package/lib/cjs/duet-caption_4.cjs.entry.js +11 -11
  13. package/lib/cjs/duet-card.cjs.entry.js +10 -9
  14. package/lib/cjs/duet-checkbox.cjs.entry.js +3 -3
  15. package/lib/cjs/duet-checkmark.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-chip.cjs.entry.js +4 -4
  17. package/lib/cjs/duet-choice_2.cjs.entry.js +5 -5
  18. package/lib/cjs/duet-collapsible.cjs.entry.js +5 -5
  19. package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
  20. package/lib/cjs/duet-contact-card.cjs.entry.js +3 -3
  21. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  22. package/lib/cjs/duet-date-picker.cjs.entry.js +6 -6
  23. package/lib/cjs/duet-divider_2.cjs.entry.js +4 -4
  24. package/lib/cjs/duet-editable-table_3.cjs.entry.js +11 -8
  25. package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
  26. package/lib/cjs/duet-fieldset.cjs.entry.js +3 -3
  27. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  28. package/lib/cjs/duet-footer.cjs.entry.js +5 -5
  29. package/lib/cjs/duet-grid_2.cjs.entry.js +5 -4
  30. package/lib/cjs/duet-header_2.cjs.entry.js +7 -7
  31. package/lib/cjs/duet-hero.cjs.entry.js +16 -9
  32. package/lib/cjs/duet-icon.cjs.entry.js +4 -4
  33. package/lib/cjs/duet-indicator.cjs.entry.js +9 -4
  34. package/lib/cjs/duet-input_2.cjs.entry.js +7 -7
  35. package/lib/cjs/duet-layout.cjs.entry.js +2 -2
  36. package/lib/cjs/duet-list_2.cjs.entry.js +2 -2
  37. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +2 -2
  38. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +2 -2
  39. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +2 -2
  40. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +5 -5
  41. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +2 -2
  42. package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -3
  43. package/lib/cjs/duet-modal.cjs.entry.js +9 -9
  44. package/lib/cjs/duet-multiselect.cjs.entry.js +5 -5
  45. package/lib/cjs/duet-nav.cjs.entry.js +2 -2
  46. package/lib/cjs/duet-notification_2.cjs.entry.js +13 -6
  47. package/lib/cjs/duet-number-input.cjs.entry.js +5 -5
  48. package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
  49. package/lib/cjs/duet-page-heading.cjs.entry.js +2 -2
  50. package/lib/cjs/duet-pagination_2.cjs.entry.js +16 -16
  51. package/lib/cjs/duet-panel.cjs.entry.js +2 -2
  52. package/lib/cjs/duet-phone-input.cjs.entry.js +5 -5
  53. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +7 -7
  54. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  55. package/lib/cjs/duet-promo-card.cjs.entry.js +9 -8
  56. package/lib/cjs/duet-radio_2.cjs.entry.js +4 -4
  57. package/lib/cjs/duet-range-slider.cjs.entry.js +4 -4
  58. package/lib/cjs/duet-scrollable_3.cjs.entry.js +7 -7
  59. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  60. package/lib/cjs/duet-select.cjs.entry.js +4 -4
  61. package/lib/cjs/duet-shaped-image.cjs.entry.js +2 -2
  62. package/lib/cjs/duet-share-chart-item.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-share-chart.cjs.entry.js +6 -6
  64. package/lib/cjs/duet-show-more.cjs.entry.js +3 -3
  65. package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
  66. package/lib/cjs/duet-slideout-link.cjs.entry.js +5 -5
  67. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +2 -2
  68. package/lib/cjs/duet-slideout-panel.cjs.entry.js +9 -9
  69. package/lib/cjs/duet-slideout.cjs.entry.js +8 -8
  70. package/lib/cjs/duet-status-icon.cjs.entry.js +2 -2
  71. package/lib/cjs/duet-step_2.cjs.entry.js +3 -3
  72. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +2 -2
  73. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +3 -3
  74. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +5 -5
  75. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
  76. package/lib/cjs/duet-submenu-bar.cjs.entry.js +3 -3
  77. package/lib/cjs/duet-textarea.cjs.entry.js +47 -29
  78. package/lib/cjs/duet-toggle.cjs.entry.js +3 -3
  79. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +2 -2
  80. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +2 -2
  81. package/lib/cjs/duet-toolbar-item.cjs.entry.js +8 -8
  82. package/lib/cjs/duet-toolbar-link.cjs.entry.js +2 -2
  83. package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
  84. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +3 -3
  85. package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
  86. package/lib/cjs/duet-tray.cjs.entry.js +4 -4
  87. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  88. package/lib/cjs/duet-upload-item.cjs.entry.js +4 -4
  89. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  90. package/lib/cjs/duet.cjs.js +3 -3
  91. package/lib/cjs/{errorcodes.utils-d6716198.js → errorcodes.utils-1866faa9.js} +1 -1
  92. package/lib/cjs/{focus-utils-21cb0103.js → focus-utils-3a78068c.js} +1 -1
  93. package/lib/cjs/{index-0444d660.js → index-8689e0f0.js} +1 -1
  94. package/lib/cjs/{language-utils-a34e2467.js → language-utils-82c441a5.js} +1 -1
  95. package/lib/cjs/loader.cjs.js +3 -3
  96. package/lib/cjs/{slot-utils-4baa4a9d.js → slot-utils-6f9e2d2b.js} +1 -1
  97. package/lib/cjs/{themeable-component-ee2255e3.js → themeable-component-b663d703.js} +1 -1
  98. package/lib/cjs/{token-utils-955dd258.js → token-utils-3cc1c517.js} +1 -1
  99. package/lib/cjs/{tokens-bdaa8818.js → tokens-62c31e5d.js} +3 -3
  100. package/lib/cjs/{tokens.module-2358195b.js → tokens.module-db9df617.js} +3 -3
  101. package/lib/collection/components/duet-badge/duet-badge.css +3 -0
  102. package/lib/collection/components/duet-banner/duet-banner.css +24 -4
  103. package/lib/collection/components/duet-banner/duet-banner.js +30 -4
  104. package/lib/collection/components/duet-button/duet-button.css +19 -2
  105. package/lib/collection/components/duet-card/duet-card.css +4 -1
  106. package/lib/collection/components/duet-card/duet-card.js +23 -3
  107. package/lib/collection/components/duet-checkbox/duet-checkbox.css +3 -0
  108. package/lib/collection/components/duet-chip/duet-chip.css +3 -0
  109. package/lib/collection/components/duet-choice/duet-choice.css +9 -3
  110. package/lib/collection/components/duet-collapsible/duet-collapsible.css +3 -0
  111. package/lib/collection/components/duet-date-picker/duet-date-picker.css +3 -0
  112. package/lib/collection/components/duet-footer/duet-footer.js +1 -1
  113. package/lib/collection/components/duet-grid/duet-grid.js +4 -3
  114. package/lib/collection/components/duet-hero/duet-hero.js +31 -5
  115. package/lib/collection/components/duet-indicator/duet-indicator.css +4 -0
  116. package/lib/collection/components/duet-indicator/duet-indicator.js +32 -1
  117. package/lib/collection/components/duet-input/duet-input.css +3 -0
  118. package/lib/collection/components/duet-link/duet-link.css +29 -12
  119. package/lib/collection/components/duet-link/duet-link.js +3 -3
  120. package/lib/collection/components/duet-logo/duet-logo.css +3 -0
  121. package/lib/collection/components/duet-modal/duet-modal.js +2 -2
  122. package/lib/collection/components/duet-multiselect/duet-multiselect.css +3 -0
  123. package/lib/collection/components/duet-notification/duet-notification.css +1 -1
  124. package/lib/collection/components/duet-notification/duet-notification.js +9 -2
  125. package/lib/collection/components/duet-number-input/duet-number-input.css +3 -0
  126. package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
  127. package/lib/collection/components/duet-phone-input/duet-phone-input.css +3 -0
  128. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  129. package/lib/collection/components/duet-promo-card/duet-promo-card.css +3 -0
  130. package/lib/collection/components/duet-promo-card/duet-promo-card.js +22 -2
  131. package/lib/collection/components/duet-radio/duet-radio.css +6 -0
  132. package/lib/collection/components/duet-range-slider/duet-range-slider.css +3 -0
  133. package/lib/collection/components/duet-select/duet-select.css +3 -0
  134. package/lib/collection/components/duet-slideout/duet-slideout.css +9 -12
  135. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +2 -2
  136. package/lib/collection/components/duet-spinner/duet-spinner.css +5 -14
  137. package/lib/collection/components/duet-spinner/duet-spinner.js +15 -15
  138. package/lib/collection/components/duet-tab-group/duet-tab-group.css +1 -15
  139. package/lib/collection/components/duet-table/duet-table.js +3 -3
  140. package/lib/collection/components/duet-textarea/duet-textarea.css +3 -0
  141. package/lib/collection/components/duet-textarea/duet-textarea.js +55 -29
  142. package/lib/collection/components/duet-toggle/duet-toggle.css +3 -0
  143. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  144. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  145. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  146. package/lib/dist-custom-elements/duet-alert.js +1 -1
  147. package/lib/dist-custom-elements/duet-badge.js +1 -1
  148. package/lib/dist-custom-elements/duet-banner.js +17 -9
  149. package/lib/dist-custom-elements/duet-breadcrumb.js +3 -3
  150. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  151. package/lib/dist-custom-elements/duet-button.js +1 -1
  152. package/lib/dist-custom-elements/duet-callout.js +2 -2
  153. package/lib/dist-custom-elements/duet-caption.js +1 -1
  154. package/lib/dist-custom-elements/duet-card.js +10 -8
  155. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  156. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  157. package/lib/dist-custom-elements/duet-chip.js +1 -1
  158. package/lib/dist-custom-elements/duet-choice-group.js +8 -8
  159. package/lib/dist-custom-elements/duet-choice.js +5 -5
  160. package/lib/dist-custom-elements/duet-collapsible.js +5 -5
  161. package/lib/dist-custom-elements/duet-combobox.js +15 -15
  162. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  163. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  164. package/lib/dist-custom-elements/duet-date-picker.js +14 -14
  165. package/lib/dist-custom-elements/duet-divider.js +1 -1
  166. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  167. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  168. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  169. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  170. package/lib/dist-custom-elements/duet-footer.js +8 -8
  171. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  172. package/lib/dist-custom-elements/duet-grid.js +1 -1
  173. package/lib/dist-custom-elements/duet-header.js +10 -10
  174. package/lib/dist-custom-elements/duet-heading.js +1 -1
  175. package/lib/dist-custom-elements/duet-hero.js +22 -14
  176. package/lib/dist-custom-elements/duet-icon.js +1 -1
  177. package/lib/dist-custom-elements/duet-indicator.js +1 -1
  178. package/lib/dist-custom-elements/duet-input.js +1 -1
  179. package/lib/dist-custom-elements/duet-label.js +1 -1
  180. package/lib/dist-custom-elements/duet-layout.js +1 -1
  181. package/lib/dist-custom-elements/duet-link.js +1 -1
  182. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  183. package/lib/dist-custom-elements/duet-list.js +1 -1
  184. package/lib/dist-custom-elements/duet-logo.js +1 -1
  185. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  186. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  187. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  188. package/lib/dist-custom-elements/duet-menu-bar-item.js +2 -2
  189. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  190. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  191. package/lib/dist-custom-elements/duet-modal.js +11 -11
  192. package/lib/dist-custom-elements/duet-multiselect.js +10 -10
  193. package/lib/dist-custom-elements/duet-nav.js +1 -1
  194. package/lib/dist-custom-elements/duet-notification-drawer.js +6 -6
  195. package/lib/dist-custom-elements/duet-notification.js +13 -6
  196. package/lib/dist-custom-elements/duet-number-input.js +12 -12
  197. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  198. package/lib/dist-custom-elements/duet-page-heading.js +3 -3
  199. package/lib/dist-custom-elements/duet-pagination.js +25 -25
  200. package/lib/dist-custom-elements/duet-panel.js +1 -1
  201. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  202. package/lib/dist-custom-elements/duet-phone-input.js +17 -17
  203. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  204. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  205. package/lib/dist-custom-elements/duet-progress.js +1 -1
  206. package/lib/dist-custom-elements/duet-promo-card.js +9 -7
  207. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  208. package/lib/dist-custom-elements/duet-radio.js +2 -2
  209. package/lib/dist-custom-elements/duet-range-slider.js +4 -4
  210. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  211. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  212. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  213. package/lib/dist-custom-elements/duet-select.js +1 -1
  214. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  215. package/lib/dist-custom-elements/duet-share-chart-item.js +1 -1
  216. package/lib/dist-custom-elements/duet-share-chart.js +3 -3
  217. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  218. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  219. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  220. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  221. package/lib/dist-custom-elements/duet-slideout-panel.js +7 -7
  222. package/lib/dist-custom-elements/duet-slideout.js +5 -5
  223. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  224. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  225. package/lib/dist-custom-elements/duet-status-icon.js +1 -1
  226. package/lib/dist-custom-elements/duet-step.js +4 -4
  227. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  228. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  229. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +3 -3
  230. package/lib/dist-custom-elements/duet-submenu-bar-item.js +2 -2
  231. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  232. package/lib/dist-custom-elements/duet-submenu-bar.js +4 -4
  233. package/lib/dist-custom-elements/duet-tab-group.js +9 -9
  234. package/lib/dist-custom-elements/duet-tab.js +2 -2
  235. package/lib/dist-custom-elements/duet-table.js +1 -1
  236. package/lib/dist-custom-elements/duet-textarea.js +57 -36
  237. package/lib/dist-custom-elements/duet-toggle.js +3 -3
  238. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  239. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  240. package/lib/dist-custom-elements/duet-toolbar-item.js +7 -7
  241. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  242. package/lib/dist-custom-elements/duet-toolbar.js +3 -3
  243. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  244. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  245. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  246. package/lib/dist-custom-elements/duet-tray.js +4 -4
  247. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  248. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  249. package/lib/dist-custom-elements/duet-upload.js +20 -20
  250. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  251. package/lib/dist-custom-elements/index.js +1 -1
  252. package/lib/dist-custom-elements/{p-c26b81c2.js → p-039d4ba6.js} +11 -5
  253. package/lib/dist-custom-elements/{p-0e8e6adf.js → p-0defe821.js} +2 -2
  254. package/lib/dist-custom-elements/{p-a230e7ac.js → p-0ec15ba7.js} +9 -9
  255. package/lib/dist-custom-elements/{p-d6911e61.js → p-0eec21d3.js} +2 -2
  256. package/lib/dist-custom-elements/{p-d84ceb08.js → p-1385415a.js} +4 -4
  257. package/lib/dist-custom-elements/{p-376095a8.js → p-25acb470.js} +2 -2
  258. package/lib/dist-custom-elements/{p-dcc8afe8.js → p-2967d610.js} +7 -7
  259. package/lib/dist-custom-elements/p-2b66b8d4.js +66 -0
  260. package/lib/dist-custom-elements/{p-86c95505.js → p-30456bad.js} +3 -3
  261. package/lib/dist-custom-elements/{p-1dc37c4b.js → p-32d33753.js} +1 -1
  262. package/lib/dist-custom-elements/{p-7645b4d2.js → p-3caafb9d.js} +2 -2
  263. package/lib/dist-custom-elements/{p-1f2c89d9.js → p-48cbe41a.js} +2 -2
  264. package/lib/dist-custom-elements/{p-3ee131dc.js → p-4b13a990.js} +2 -2
  265. package/lib/dist-custom-elements/{p-aa626f8d.js → p-4c473784.js} +1 -1
  266. package/lib/dist-custom-elements/{p-db56d5a8.js → p-5b72a3b0.js} +1 -1
  267. package/lib/dist-custom-elements/{p-016c81f0.js → p-620ac0f8.js} +1 -1
  268. package/lib/dist-custom-elements/{p-d80a01fd.js → p-6237da28.js} +7 -7
  269. package/lib/dist-custom-elements/{p-cdc57494.js → p-6327d4e2.js} +8 -5
  270. package/lib/dist-custom-elements/{p-8035b482.js → p-656cb1fd.js} +2 -2
  271. package/lib/dist-custom-elements/{p-9357efdb.js → p-745a4e07.js} +1 -1
  272. package/lib/dist-custom-elements/{p-b5bb4c4e.js → p-77cd5d74.js} +2 -2
  273. package/lib/{esm/tokens-1fd83076.js → dist-custom-elements/p-7ac368f3.js} +3 -3
  274. package/lib/dist-custom-elements/{p-80c4e77a.js → p-7bed73a7.js} +11 -11
  275. package/lib/dist-custom-elements/{p-c224f527.js → p-856c21c2.js} +1 -1
  276. package/lib/dist-custom-elements/{p-c936343b.js → p-87838af5.js} +3 -3
  277. package/lib/dist-custom-elements/{p-30bc1a35.js → p-884ae25a.js} +6 -6
  278. package/lib/dist-custom-elements/{p-08a5f7e9.js → p-8b2e0122.js} +3 -3
  279. package/lib/dist-custom-elements/{p-af586c7d.js → p-9dd5b1ab.js} +2 -2
  280. package/lib/dist-custom-elements/{p-c4345060.js → p-a6205f48.js} +5 -5
  281. package/lib/dist-custom-elements/{p-958e3489.js → p-b978a5e4.js} +2 -2
  282. package/lib/dist-custom-elements/{p-bf860820.js → p-be9c3f20.js} +3 -3
  283. package/lib/dist-custom-elements/{p-d8a121cc.js → p-c4b6f5d6.js} +3 -3
  284. package/lib/dist-custom-elements/{p-a6f89351.js → p-c97f4a6a.js} +13 -13
  285. package/lib/dist-custom-elements/{p-d4245e15.js → p-cb129f84.js} +3 -3
  286. package/lib/dist-custom-elements/{p-a70e2b0c.js → p-ce458f25.js} +5 -4
  287. package/lib/dist-custom-elements/{p-b21352e2.js → p-cee4b98f.js} +1 -1
  288. package/lib/dist-custom-elements/{p-21f8ff7d.js → p-d0d1c5a0.js} +10 -10
  289. package/lib/dist-custom-elements/{p-e48a192a.js → p-d3180cfc.js} +2 -2
  290. package/lib/dist-custom-elements/{p-a49f9fc6.js → p-df469213.js} +4 -4
  291. package/lib/dist-custom-elements/{p-889bc211.js → p-e29db94f.js} +5 -5
  292. package/lib/dist-custom-elements/{p-b49de47a.js → p-f1b9fb2c.js} +1 -1
  293. package/lib/dist-custom-elements/{p-f33fb629.js → p-f3726f3b.js} +1 -1
  294. package/lib/dist-custom-elements/{p-d4904a7c.js → p-f5035d0a.js} +1 -1
  295. package/lib/dist-custom-elements/p-f7d27c78.js +318 -0
  296. package/lib/duet/duet.esm.js +1 -1
  297. package/lib/duet/duet.js +1 -1
  298. package/lib/duet/{p-904d0415.system.entry.js → p-0024a14a.system.entry.js} +1 -1
  299. package/lib/duet/{p-72efa27a.system.entry.js → p-034e1b79.system.entry.js} +1 -1
  300. package/lib/duet/{p-2e64593c.system.entry.js → p-093a5aaa.system.entry.js} +1 -1
  301. package/lib/duet/{p-92b098f9.system.entry.js → p-0c25b7a5.system.entry.js} +1 -1
  302. package/lib/duet/{p-8d900bdc.entry.js → p-0c9e9925.entry.js} +1 -1
  303. package/lib/duet/p-12899787.system.entry.js +4 -0
  304. package/lib/duet/{p-618dcd6b.entry.js → p-1399801a.entry.js} +1 -1
  305. package/lib/duet/{p-033bb755.system.entry.js → p-15c9f74e.system.entry.js} +1 -1
  306. package/lib/duet/{p-385da7a9.system.js → p-15f1493c.system.js} +1 -1
  307. package/lib/duet/{p-7f2ae5ad.entry.js → p-18076536.entry.js} +1 -1
  308. package/lib/duet/p-19e02960.system.entry.js +4 -0
  309. package/lib/duet/{p-bd0ab8c6.system.entry.js → p-1a70c103.system.entry.js} +1 -1
  310. package/lib/duet/{p-1060eeeb.system.entry.js → p-1af82a3a.system.entry.js} +1 -1
  311. package/lib/duet/p-1bd0222c.entry.js +4 -0
  312. package/lib/duet/{p-7ae39a1c.entry.js → p-1bdc5408.entry.js} +1 -1
  313. package/lib/duet/{p-91a5f0c8.entry.js → p-1c2890e1.entry.js} +1 -1
  314. package/lib/duet/{p-9df05d74.entry.js → p-1c28fbe6.entry.js} +1 -1
  315. package/lib/duet/{p-ff27191d.system.entry.js → p-1dc59447.system.entry.js} +1 -1
  316. package/lib/duet/{p-b91fd1ce.system.entry.js → p-1dd85611.system.entry.js} +1 -1
  317. package/lib/duet/{p-cb37d121.entry.js → p-1e126580.entry.js} +1 -1
  318. package/lib/duet/{p-12f16785.js → p-1f01bee2.js} +1 -1
  319. package/lib/duet/{p-f5f409e3.entry.js → p-1fe8dc67.entry.js} +1 -1
  320. package/lib/duet/p-23878f2f.system.entry.js +4 -0
  321. package/lib/duet/{p-c7b24194.system.entry.js → p-292150a9.system.entry.js} +1 -1
  322. package/lib/duet/p-2f8ee1a5.entry.js +4 -0
  323. package/lib/duet/{p-d44312ba.system.js → p-30c4c974.system.js} +1 -1
  324. package/lib/duet/p-329da927.js +4 -0
  325. package/lib/duet/{p-0e9de590.entry.js → p-3469aaaf.entry.js} +1 -1
  326. package/lib/duet/{p-0e04330c.entry.js → p-36478f3d.entry.js} +1 -1
  327. package/lib/duet/{p-8f1696fc.entry.js → p-3679fdf8.entry.js} +1 -1
  328. package/lib/duet/{p-4be139d3.system.entry.js → p-3704f63a.system.entry.js} +1 -1
  329. package/lib/duet/{p-d84ab69c.system.entry.js → p-37136593.system.entry.js} +1 -1
  330. package/lib/duet/p-3833ae7b.system.entry.js +4 -0
  331. package/lib/duet/{p-33c69e1b.js → p-3a0756e2.js} +1 -1
  332. package/lib/duet/{p-4cfd6aa0.system.entry.js → p-3a2a2ec5.system.entry.js} +1 -1
  333. package/lib/duet/{p-1338bc5c.entry.js → p-3a793df8.entry.js} +1 -1
  334. package/lib/duet/{p-638ab80b.entry.js → p-3af12511.entry.js} +1 -1
  335. package/lib/duet/{p-1f4af013.entry.js → p-3c583c14.entry.js} +1 -1
  336. package/lib/duet/{p-00fcf2fb.system.entry.js → p-40ec37e0.system.entry.js} +1 -1
  337. package/lib/duet/p-41ffd369.entry.js +4 -0
  338. package/lib/duet/p-427293b9.system.entry.js +4 -0
  339. package/lib/duet/{p-61efcecb.entry.js → p-4275cecd.entry.js} +1 -1
  340. package/lib/duet/p-453db857.system.js +4 -0
  341. package/lib/duet/{p-0a280ddc.entry.js → p-45664da0.entry.js} +1 -1
  342. package/lib/duet/{p-30af84d3.system.js → p-46e3ea75.system.js} +1 -1
  343. package/lib/duet/{p-758eb019.system.entry.js → p-4787b506.system.entry.js} +1 -1
  344. package/lib/duet/p-485e347b.system.entry.js +4 -0
  345. package/lib/duet/p-488db8d3.system.entry.js +4 -0
  346. package/lib/duet/p-49eb852a.entry.js +4 -0
  347. package/lib/duet/{p-6829be6c.system.entry.js → p-4c164015.system.entry.js} +2 -2
  348. package/lib/duet/p-4cfffc05.system.js +4 -0
  349. package/lib/duet/{p-ec4bb6c3.system.js → p-4ff5a3ed.system.js} +1 -1
  350. package/lib/duet/p-50dd94b8.system.js +4 -0
  351. package/lib/duet/{p-07cfc2f5.entry.js → p-5186598c.entry.js} +1 -1
  352. package/lib/duet/p-51e4be9b.entry.js +4 -0
  353. package/lib/duet/{p-ccb84e6a.system.entry.js → p-526c13d3.system.entry.js} +1 -1
  354. package/lib/duet/{p-52e13815.entry.js → p-545d740f.entry.js} +1 -1
  355. package/lib/duet/p-56cc31e0.entry.js +4 -0
  356. package/lib/duet/{p-da33830e.system.entry.js → p-570ec400.system.entry.js} +1 -1
  357. package/lib/duet/{p-f59845f1.entry.js → p-5866fd3c.entry.js} +1 -1
  358. package/lib/duet/p-58cb1e7b.js +5 -0
  359. package/lib/duet/{p-d4f972c3.system.js → p-5a34eb53.system.js} +1 -1
  360. package/lib/duet/{p-df9388c0.entry.js → p-5a973232.entry.js} +1 -1
  361. package/lib/duet/{p-2daf9e75.entry.js → p-5e7bfe5a.entry.js} +1 -1
  362. package/lib/duet/{p-47d32341.system.entry.js → p-5eacc131.system.entry.js} +1 -1
  363. package/lib/duet/{p-4d91e61a.system.entry.js → p-5f34fc36.system.entry.js} +1 -1
  364. package/lib/duet/{p-48bd44c3.system.entry.js → p-6000271f.system.entry.js} +1 -1
  365. package/lib/duet/p-61f93b06.js +4 -0
  366. package/lib/duet/{p-4030ca2a.system.entry.js → p-629ca254.system.entry.js} +1 -1
  367. package/lib/duet/{p-e663f11f.system.entry.js → p-63347221.system.entry.js} +1 -1
  368. package/lib/duet/{p-a0e599fa.system.entry.js → p-6455d4e2.system.entry.js} +1 -1
  369. package/lib/duet/{p-5bb5a55a.entry.js → p-6484efcc.entry.js} +1 -1
  370. package/lib/duet/p-679272b4.entry.js +4 -0
  371. package/lib/duet/p-687b20eb.system.entry.js +4 -0
  372. package/lib/duet/{p-d10856d3.system.entry.js → p-6dae863c.system.entry.js} +1 -1
  373. package/lib/duet/{p-4453a6c6.system.entry.js → p-71699fd9.system.entry.js} +1 -1
  374. package/lib/duet/{p-0c1a086f.system.entry.js → p-74ffcc62.system.entry.js} +1 -1
  375. package/lib/duet/p-75030665.entry.js +4 -0
  376. package/lib/duet/{p-cbb72b0c.system.entry.js → p-7609e7e5.system.entry.js} +1 -1
  377. package/lib/duet/{p-783316e7.system.entry.js → p-77984d20.system.entry.js} +1 -1
  378. package/lib/duet/p-79570700.system.entry.js +4 -0
  379. package/lib/duet/p-7ac368f3.js +4 -0
  380. package/lib/duet/{p-824f8fec.entry.js → p-7b87a422.entry.js} +1 -1
  381. package/lib/duet/{p-5c374688.system.entry.js → p-7caeb4e4.system.entry.js} +1 -1
  382. package/lib/duet/p-7f286bc3.entry.js +4 -0
  383. package/lib/duet/{p-ce677952.system.entry.js → p-8016efed.system.entry.js} +1 -1
  384. package/lib/duet/{p-2e136720.entry.js → p-80694bcb.entry.js} +1 -1
  385. package/lib/duet/{p-d6b96130.system.entry.js → p-81136f12.system.entry.js} +1 -1
  386. package/lib/duet/p-854d1f8e.system.entry.js +4 -0
  387. package/lib/duet/{p-9718c106.js → p-8b34b6a1.js} +1 -1
  388. package/lib/duet/{p-b07f9abb.system.entry.js → p-8b744c14.system.entry.js} +1 -1
  389. package/lib/duet/{p-caf1ece1.system.entry.js → p-8ce9049d.system.entry.js} +1 -1
  390. package/lib/duet/{p-8bbea850.system.entry.js → p-8d6f3089.system.entry.js} +1 -1
  391. package/lib/duet/p-8df7c962.entry.js +4 -0
  392. package/lib/duet/{p-135e72bf.js → p-8ee40bae.js} +1 -1
  393. package/lib/duet/{p-11f86bdc.system.entry.js → p-8f5bbc88.system.entry.js} +1 -1
  394. package/lib/duet/{p-34cdefd2.entry.js → p-90e6b35a.entry.js} +1 -1
  395. package/lib/duet/{p-18a0cbe5.system.entry.js → p-923aa342.system.entry.js} +1 -1
  396. package/lib/duet/{p-f5c47365.system.entry.js → p-94379df1.system.entry.js} +1 -1
  397. package/lib/duet/{p-50bb0bef.system.entry.js → p-944f5ee9.system.entry.js} +1 -1
  398. package/lib/duet/{p-c976593b.entry.js → p-94593336.entry.js} +1 -1
  399. package/lib/duet/p-9481e189.js +4 -0
  400. package/lib/duet/p-95933d17.system.entry.js +4 -0
  401. package/lib/duet/{p-065bebcf.system.entry.js → p-95c12be6.system.entry.js} +1 -1
  402. package/lib/duet/{p-4cd75d1b.entry.js → p-96bf7e64.entry.js} +1 -1
  403. package/lib/duet/{p-855bf182.entry.js → p-976353c6.entry.js} +1 -1
  404. package/lib/duet/{p-70d7644c.system.entry.js → p-99915f28.system.entry.js} +1 -1
  405. package/lib/duet/{p-bf87b23f.entry.js → p-9c4b48e8.entry.js} +1 -1
  406. package/lib/duet/p-9e37e183.system.entry.js +4 -0
  407. package/lib/duet/{p-cc9ee2cb.system.entry.js → p-9eb323ce.system.entry.js} +2 -2
  408. package/lib/duet/{p-c03cf41b.entry.js → p-9f82677f.entry.js} +1 -1
  409. package/lib/duet/p-a0893754.entry.js +4 -0
  410. package/lib/duet/{p-ea986606.entry.js → p-a1a46dc8.entry.js} +1 -1
  411. package/lib/duet/{p-e7dc7c7c.entry.js → p-a1e4a928.entry.js} +1 -1
  412. package/lib/duet/{p-3aa5dbed.entry.js → p-a34a7a64.entry.js} +1 -1
  413. package/lib/duet/p-a48e2a76.system.entry.js +4 -0
  414. package/lib/duet/{p-929579ed.entry.js → p-a53b0c61.entry.js} +1 -1
  415. package/lib/duet/{p-66386c5e.entry.js → p-a54076ef.entry.js} +1 -1
  416. package/lib/duet/p-a543a9f0.entry.js +4 -0
  417. package/lib/duet/{p-31463f0b.system.entry.js → p-a5757e21.system.entry.js} +1 -1
  418. package/lib/duet/{p-1198fd12.system.entry.js → p-a60ba7fb.system.entry.js} +1 -1
  419. package/lib/duet/{p-5b88277b.entry.js → p-a65da7a4.entry.js} +1 -1
  420. package/lib/duet/{p-16a30d86.system.entry.js → p-a7cb778c.system.entry.js} +1 -1
  421. package/lib/duet/p-ac6e2668.system.entry.js +4 -0
  422. package/lib/duet/{p-8e21c393.entry.js → p-ae8b02f9.entry.js} +1 -1
  423. package/lib/duet/{p-ef4f91d2.system.entry.js → p-b023c816.system.entry.js} +1 -1
  424. package/lib/duet/p-b0af0dbc.js +4 -0
  425. package/lib/duet/p-b11ec474.system.entry.js +4 -0
  426. package/lib/duet/{p-89e30005.entry.js → p-b17f976c.entry.js} +1 -1
  427. package/lib/duet/{p-f6486434.system.js → p-b3abe719.system.js} +1 -1
  428. package/lib/duet/{p-7266991d.entry.js → p-b54d5edb.entry.js} +1 -1
  429. package/lib/duet/{p-dba326f3.entry.js → p-b5a24ec4.entry.js} +1 -1
  430. package/lib/duet/p-b7bbc0ac.entry.js +4 -0
  431. package/lib/duet/{p-f103010d.entry.js → p-b7e41270.entry.js} +1 -1
  432. package/lib/duet/{p-e26e10f1.system.entry.js → p-b8427cfa.system.entry.js} +1 -1
  433. package/lib/duet/{p-c370b95d.entry.js → p-b9133310.entry.js} +1 -1
  434. package/lib/duet/{p-e433ff50.system.entry.js → p-b93a8d60.system.entry.js} +1 -1
  435. package/lib/duet/{p-497bdd59.entry.js → p-ba05fe4e.entry.js} +1 -1
  436. package/lib/duet/{p-357fba6d.system.entry.js → p-ba1170fc.system.entry.js} +1 -1
  437. package/lib/duet/{p-082e654d.system.entry.js → p-babcf111.system.entry.js} +1 -1
  438. package/lib/duet/{p-a48d38dd.entry.js → p-bc2dfc8f.entry.js} +1 -1
  439. package/lib/duet/{p-d3602171.entry.js → p-bc9888d4.entry.js} +1 -1
  440. package/lib/duet/{p-1d9091b2.entry.js → p-bd0152ae.entry.js} +1 -1
  441. package/lib/duet/{p-7c6b903a.entry.js → p-bed81853.entry.js} +1 -1
  442. package/lib/duet/p-bf0218de.entry.js +4 -0
  443. package/lib/duet/{p-06a2c00d.entry.js → p-bf901d0f.entry.js} +1 -1
  444. package/lib/duet/{p-8901b848.system.entry.js → p-bfed7d1f.system.entry.js} +1 -1
  445. package/lib/duet/p-c155c203.entry.js +4 -0
  446. package/lib/duet/{p-aa781739.entry.js → p-c3755b07.entry.js} +1 -1
  447. package/lib/duet/{p-ff3fa3b2.system.entry.js → p-c3f5f64f.system.entry.js} +1 -1
  448. package/lib/duet/{p-158e2598.system.entry.js → p-c54c650f.system.entry.js} +1 -1
  449. package/lib/duet/p-c7f65120.js +4 -0
  450. package/lib/duet/p-c8859716.entry.js +4 -0
  451. package/lib/duet/{p-cab933ea.system.entry.js → p-c9063437.system.entry.js} +1 -1
  452. package/lib/duet/{p-b7ce18dd.system.entry.js → p-c99709d4.system.entry.js} +1 -1
  453. package/lib/duet/{p-95cd3623.entry.js → p-cc5d55c9.entry.js} +1 -1
  454. package/lib/duet/{p-ea60fb06.entry.js → p-ceb8f2cd.entry.js} +1 -1
  455. package/lib/duet/p-cebe051e.system.entry.js +4 -0
  456. package/lib/duet/p-cee2f369.system.entry.js +4 -0
  457. package/lib/duet/{p-33f60648.entry.js → p-cfe7483c.entry.js} +1 -1
  458. package/lib/duet/{p-80993983.system.js → p-d04f0720.system.js} +1 -1
  459. package/lib/duet/p-d06624f9.system.entry.js +4 -0
  460. package/lib/duet/p-d0d1667e.entry.js +4 -0
  461. package/lib/duet/{p-ef35ead4.entry.js → p-d0f03726.entry.js} +1 -1
  462. package/lib/duet/p-d2a1b1fd.entry.js +4 -0
  463. package/lib/duet/{p-68fdf1da.system.entry.js → p-d3b6137d.system.entry.js} +1 -1
  464. package/lib/duet/{p-77516717.system.js → p-d72625ca.system.js} +1 -1
  465. package/lib/duet/{p-21cfc7c9.system.entry.js → p-d72ec8fd.system.entry.js} +1 -1
  466. package/lib/duet/p-da039779.entry.js +4 -0
  467. package/lib/duet/{p-9df8182c.system.entry.js → p-e1bd6791.system.entry.js} +1 -1
  468. package/lib/duet/p-e33b7b4f.system.entry.js +4 -0
  469. package/lib/duet/{p-17ee74b1.system.entry.js → p-e36e78ea.system.entry.js} +1 -1
  470. package/lib/duet/{p-4b6e53bd.entry.js → p-e5dfecab.entry.js} +1 -1
  471. package/lib/duet/p-e61fdd1f.system.entry.js +4 -0
  472. package/lib/duet/{p-9a7b5888.system.entry.js → p-e9454352.system.entry.js} +1 -1
  473. package/lib/duet/{p-bd3c1bb9.entry.js → p-eacf7ed7.entry.js} +1 -1
  474. package/lib/duet/{p-d4a9606f.entry.js → p-ec88c131.entry.js} +1 -1
  475. package/lib/duet/{p-ac388eb7.entry.js → p-ec919d45.entry.js} +1 -1
  476. package/lib/duet/p-ed24b370.entry.js +4 -0
  477. package/lib/duet/{p-04658922.entry.js → p-ed39c72b.entry.js} +1 -1
  478. package/lib/duet/p-eeb02f96.system.entry.js +4 -0
  479. package/lib/duet/{p-8316c5a6.entry.js → p-eedacfa7.entry.js} +1 -1
  480. package/lib/duet/p-f240daa0.entry.js +4 -0
  481. package/lib/duet/{p-6d7d56e8.entry.js → p-f25d359d.entry.js} +1 -1
  482. package/lib/duet/{p-0cf7d917.entry.js → p-f5fc750d.entry.js} +1 -1
  483. package/lib/duet/{p-ef97420d.system.entry.js → p-f6abc74d.system.entry.js} +1 -1
  484. package/lib/duet/{p-43bbba35.system.js → p-f6e20b20.system.js} +1 -1
  485. package/lib/duet/{p-fa184877.system.entry.js → p-f71d7b6d.system.entry.js} +1 -1
  486. package/lib/duet/{p-884ee3c8.entry.js → p-f86398eb.entry.js} +1 -1
  487. package/lib/duet/{p-95d2b637.entry.js → p-f9e9a571.entry.js} +1 -1
  488. package/lib/duet/{p-0e3375dd.system.entry.js → p-faa08662.system.entry.js} +1 -1
  489. package/lib/duet/{p-f81da033.system.entry.js → p-fc8ac479.system.entry.js} +1 -1
  490. package/lib/duet/{p-8417d209.entry.js → p-fcad9137.entry.js} +1 -1
  491. package/lib/duet/{p-7f6f7008.system.entry.js → p-fde30afe.system.entry.js} +2 -2
  492. package/lib/duet/{p-439c21e7.entry.js → p-fdedb49b.entry.js} +1 -1
  493. package/lib/esm/{a11y-utils-696f7b73.js → a11y-utils-ac6ae502.js} +1 -1
  494. package/lib/esm/{app-globals-245f0f6e.js → app-globals-2222efbc.js} +1 -1
  495. package/lib/esm/duet-action-button.entry.js +5 -5
  496. package/lib/esm/duet-alert.entry.js +4 -4
  497. package/lib/esm/duet-badge.entry.js +4 -4
  498. package/lib/esm/duet-banner.entry.js +17 -10
  499. package/lib/esm/duet-breadcrumb.entry.js +2 -2
  500. package/lib/esm/duet-breadcrumbs.entry.js +5 -5
  501. package/lib/esm/duet-button_2.entry.js +17 -15
  502. package/lib/esm/duet-callout.entry.js +3 -3
  503. package/lib/esm/duet-caption_4.entry.js +11 -11
  504. package/lib/esm/duet-card.entry.js +10 -9
  505. package/lib/esm/duet-checkbox.entry.js +3 -3
  506. package/lib/esm/duet-checkmark.entry.js +2 -2
  507. package/lib/esm/duet-chip.entry.js +4 -4
  508. package/lib/esm/duet-choice_2.entry.js +5 -5
  509. package/lib/esm/duet-collapsible.entry.js +5 -5
  510. package/lib/esm/duet-combobox.entry.js +4 -4
  511. package/lib/esm/duet-contact-card.entry.js +3 -3
  512. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  513. package/lib/esm/duet-date-picker.entry.js +6 -6
  514. package/lib/esm/duet-divider_2.entry.js +4 -4
  515. package/lib/esm/duet-editable-table_3.entry.js +11 -8
  516. package/lib/esm/duet-empty-state.entry.js +2 -2
  517. package/lib/esm/duet-fieldset.entry.js +3 -3
  518. package/lib/esm/duet-file-chooser.entry.js +2 -2
  519. package/lib/esm/duet-footer.entry.js +5 -5
  520. package/lib/esm/duet-grid_2.entry.js +5 -4
  521. package/lib/esm/duet-header_2.entry.js +7 -7
  522. package/lib/esm/duet-hero.entry.js +16 -9
  523. package/lib/esm/duet-icon.entry.js +4 -4
  524. package/lib/esm/duet-indicator.entry.js +9 -4
  525. package/lib/esm/duet-input_2.entry.js +7 -7
  526. package/lib/esm/duet-layout.entry.js +2 -2
  527. package/lib/esm/duet-list_2.entry.js +2 -2
  528. package/lib/esm/duet-menu-bar-button.entry.js +2 -2
  529. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +2 -2
  530. package/lib/esm/duet-menu-bar-dropdown.entry.js +2 -2
  531. package/lib/esm/duet-menu-bar-item.entry.js +5 -5
  532. package/lib/esm/duet-menu-bar-link.entry.js +2 -2
  533. package/lib/esm/duet-menu-bar.entry.js +3 -3
  534. package/lib/esm/duet-modal.entry.js +9 -9
  535. package/lib/esm/duet-multiselect.entry.js +5 -5
  536. package/lib/esm/duet-nav.entry.js +2 -2
  537. package/lib/esm/duet-notification_2.entry.js +13 -6
  538. package/lib/esm/duet-number-input.entry.js +5 -5
  539. package/lib/esm/duet-overlay.entry.js +2 -2
  540. package/lib/esm/duet-page-heading.entry.js +2 -2
  541. package/lib/esm/duet-pagination_2.entry.js +16 -16
  542. package/lib/esm/duet-panel.entry.js +2 -2
  543. package/lib/esm/duet-phone-input.entry.js +5 -5
  544. package/lib/esm/duet-popup-menu_2.entry.js +7 -7
  545. package/lib/esm/duet-progress.entry.js +3 -3
  546. package/lib/esm/duet-promo-card.entry.js +9 -8
  547. package/lib/esm/duet-radio_2.entry.js +4 -4
  548. package/lib/esm/duet-range-slider.entry.js +4 -4
  549. package/lib/esm/duet-scrollable_3.entry.js +7 -7
  550. package/lib/esm/duet-section-layout.entry.js +1 -1
  551. package/lib/esm/duet-select.entry.js +4 -4
  552. package/lib/esm/duet-shaped-image.entry.js +2 -2
  553. package/lib/esm/duet-share-chart-item.entry.js +1 -1
  554. package/lib/esm/duet-share-chart.entry.js +6 -6
  555. package/lib/esm/duet-show-more.entry.js +3 -3
  556. package/lib/esm/duet-slideout-lang.entry.js +3 -3
  557. package/lib/esm/duet-slideout-link.entry.js +5 -5
  558. package/lib/esm/duet-slideout-panel-dropdown.entry.js +2 -2
  559. package/lib/esm/duet-slideout-panel.entry.js +9 -9
  560. package/lib/esm/duet-slideout.entry.js +8 -8
  561. package/lib/esm/duet-status-icon.entry.js +2 -2
  562. package/lib/esm/duet-step_2.entry.js +3 -3
  563. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +2 -2
  564. package/lib/esm/duet-submenu-bar-dropdown.entry.js +3 -3
  565. package/lib/esm/duet-submenu-bar-item.entry.js +5 -5
  566. package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
  567. package/lib/esm/duet-submenu-bar.entry.js +3 -3
  568. package/lib/esm/duet-textarea.entry.js +47 -29
  569. package/lib/esm/duet-toggle.entry.js +3 -3
  570. package/lib/esm/duet-toolbar-dropdown-link.entry.js +2 -2
  571. package/lib/esm/duet-toolbar-dropdown.entry.js +2 -2
  572. package/lib/esm/duet-toolbar-item.entry.js +8 -8
  573. package/lib/esm/duet-toolbar-link.entry.js +2 -2
  574. package/lib/esm/duet-toolbar.entry.js +4 -4
  575. package/lib/esm/duet-tooltip-button_2.entry.js +3 -3
  576. package/lib/esm/duet-tooltip.entry.js +4 -4
  577. package/lib/esm/duet-tray.entry.js +4 -4
  578. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  579. package/lib/esm/duet-upload-item.entry.js +4 -4
  580. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  581. package/lib/esm/duet.js +4 -4
  582. package/lib/esm/{errorcodes.utils-160ddc21.js → errorcodes.utils-454fa730.js} +1 -1
  583. package/lib/esm/{focus-utils-d6e4011c.js → focus-utils-7af43257.js} +1 -1
  584. package/lib/esm/{index-22246570.js → index-ddbf3a7a.js} +1 -1
  585. package/lib/esm/{language-utils-09809102.js → language-utils-1387fba1.js} +1 -1
  586. package/lib/esm/loader.js +4 -4
  587. package/lib/esm/{slot-utils-eb668280.js → slot-utils-53835bd7.js} +1 -1
  588. package/lib/esm/{themeable-component-f4a04f2f.js → themeable-component-ae3def9c.js} +1 -1
  589. package/lib/esm/{token-utils-d02c20ff.js → token-utils-0d5e28a7.js} +1 -1
  590. package/lib/{dist-custom-elements/p-c972a96e.js → esm/tokens-1702323a.js} +3 -3
  591. package/lib/esm/{tokens.module-7b07911f.js → tokens.module-7ae22e26.js} +3 -3
  592. package/lib/esm-es5/{a11y-utils-696f7b73.js → a11y-utils-ac6ae502.js} +1 -1
  593. package/lib/esm-es5/{app-globals-245f0f6e.js → app-globals-2222efbc.js} +1 -1
  594. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  595. package/lib/esm-es5/duet-alert.entry.js +2 -2
  596. package/lib/esm-es5/duet-badge.entry.js +1 -1
  597. package/lib/esm-es5/duet-banner.entry.js +1 -1
  598. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  599. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  600. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  601. package/lib/esm-es5/duet-callout.entry.js +1 -1
  602. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  603. package/lib/esm-es5/duet-card.entry.js +2 -2
  604. package/lib/esm-es5/duet-checkbox.entry.js +2 -2
  605. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  606. package/lib/esm-es5/duet-chip.entry.js +1 -1
  607. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  608. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  609. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  610. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  611. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  612. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  613. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  614. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  615. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  616. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  617. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  618. package/lib/esm-es5/duet-footer.entry.js +1 -1
  619. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  620. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  621. package/lib/esm-es5/duet-hero.entry.js +1 -1
  622. package/lib/esm-es5/duet-icon.entry.js +1 -1
  623. package/lib/esm-es5/duet-indicator.entry.js +1 -1
  624. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  625. package/lib/esm-es5/duet-layout.entry.js +1 -1
  626. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  627. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  628. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  629. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  630. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  631. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  632. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  633. package/lib/esm-es5/duet-modal.entry.js +1 -1
  634. package/lib/esm-es5/duet-multiselect.entry.js +2 -2
  635. package/lib/esm-es5/duet-nav.entry.js +1 -1
  636. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  637. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  638. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  639. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  640. package/lib/esm-es5/duet-pagination_2.entry.js +2 -2
  641. package/lib/esm-es5/duet-panel.entry.js +1 -1
  642. package/lib/esm-es5/duet-phone-input.entry.js +2 -2
  643. package/lib/esm-es5/duet-popup-menu_2.entry.js +1 -1
  644. package/lib/esm-es5/duet-progress.entry.js +1 -1
  645. package/lib/esm-es5/duet-promo-card.entry.js +2 -2
  646. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  647. package/lib/esm-es5/duet-range-slider.entry.js +2 -2
  648. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  649. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  650. package/lib/esm-es5/duet-select.entry.js +2 -2
  651. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  652. package/lib/esm-es5/duet-share-chart-item.entry.js +1 -1
  653. package/lib/esm-es5/duet-share-chart.entry.js +1 -1
  654. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  655. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  656. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  657. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  658. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  659. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  660. package/lib/esm-es5/duet-status-icon.entry.js +1 -1
  661. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  662. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  663. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  664. package/lib/esm-es5/duet-submenu-bar-item.entry.js +2 -2
  665. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  666. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  667. package/lib/esm-es5/duet-textarea.entry.js +2 -2
  668. package/lib/esm-es5/duet-toggle.entry.js +2 -2
  669. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  670. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  671. package/lib/esm-es5/duet-toolbar-item.entry.js +2 -2
  672. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  673. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  674. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  675. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  676. package/lib/esm-es5/duet-tray.entry.js +1 -1
  677. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  678. package/lib/esm-es5/duet-upload-item.entry.js +2 -2
  679. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  680. package/lib/esm-es5/duet.js +1 -1
  681. package/lib/esm-es5/{errorcodes.utils-160ddc21.js → errorcodes.utils-454fa730.js} +1 -1
  682. package/lib/esm-es5/{focus-utils-d6e4011c.js → focus-utils-7af43257.js} +1 -1
  683. package/lib/esm-es5/index-ddbf3a7a.js +4 -0
  684. package/lib/esm-es5/{language-utils-09809102.js → language-utils-1387fba1.js} +1 -1
  685. package/lib/esm-es5/loader.js +1 -1
  686. package/lib/esm-es5/{slot-utils-eb668280.js → slot-utils-53835bd7.js} +1 -1
  687. package/lib/esm-es5/{themeable-component-f4a04f2f.js → themeable-component-ae3def9c.js} +1 -1
  688. package/lib/esm-es5/{token-utils-d02c20ff.js → token-utils-0d5e28a7.js} +1 -1
  689. package/lib/esm-es5/tokens-1702323a.js +4 -0
  690. package/lib/esm-es5/tokens.module-7ae22e26.js +4 -0
  691. package/lib/types/components/duet-banner/duet-banner.d.ts +4 -0
  692. package/lib/types/components/duet-card/duet-card.d.ts +4 -0
  693. package/lib/types/components/duet-grid/duet-grid.d.ts +1 -1
  694. package/lib/types/components/duet-hero/duet-hero.d.ts +4 -0
  695. package/lib/types/components/duet-indicator/duet-indicator.d.ts +8 -1
  696. package/lib/types/components/duet-notification/duet-notification.d.ts +1 -0
  697. package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +4 -0
  698. package/lib/types/components/duet-spinner/duet-spinner.d.ts +5 -3
  699. package/lib/types/components/duet-textarea/duet-textarea.d.ts +13 -7
  700. package/lib/types/components.d.ts +46 -8
  701. package/package.json +5 -5
  702. package/lib/dist-custom-elements/p-4343b5a1.js +0 -318
  703. package/lib/dist-custom-elements/p-929f4a06.js +0 -64
  704. package/lib/duet/p-04c70e04.system.entry.js +0 -4
  705. package/lib/duet/p-09497e9e.entry.js +0 -4
  706. package/lib/duet/p-1285b423.system.entry.js +0 -4
  707. package/lib/duet/p-13a834ce.system.entry.js +0 -4
  708. package/lib/duet/p-17755657.system.entry.js +0 -4
  709. package/lib/duet/p-1dcd8cb6.system.entry.js +0 -4
  710. package/lib/duet/p-2b4a068b.system.entry.js +0 -4
  711. package/lib/duet/p-2e69eb33.entry.js +0 -4
  712. package/lib/duet/p-2fce48bf.entry.js +0 -4
  713. package/lib/duet/p-311a334f.entry.js +0 -4
  714. package/lib/duet/p-3c69cc2a.system.entry.js +0 -4
  715. package/lib/duet/p-3e52c8ff.system.entry.js +0 -4
  716. package/lib/duet/p-4ad740e2.js +0 -5
  717. package/lib/duet/p-541a4093.system.entry.js +0 -4
  718. package/lib/duet/p-59d65494.entry.js +0 -4
  719. package/lib/duet/p-5cd1152a.entry.js +0 -4
  720. package/lib/duet/p-5e33ada9.system.entry.js +0 -4
  721. package/lib/duet/p-60cfe03f.entry.js +0 -4
  722. package/lib/duet/p-6751d70f.entry.js +0 -4
  723. package/lib/duet/p-75c6a8ee.system.entry.js +0 -4
  724. package/lib/duet/p-76e57b3a.system.entry.js +0 -4
  725. package/lib/duet/p-79628294.entry.js +0 -4
  726. package/lib/duet/p-7ca8790f.system.entry.js +0 -4
  727. package/lib/duet/p-81677e17.entry.js +0 -4
  728. package/lib/duet/p-81f0ab52.entry.js +0 -4
  729. package/lib/duet/p-88880de6.entry.js +0 -4
  730. package/lib/duet/p-916f4438.entry.js +0 -4
  731. package/lib/duet/p-949a5c17.system.entry.js +0 -4
  732. package/lib/duet/p-9d9457bf.js +0 -4
  733. package/lib/duet/p-a0f78e44.entry.js +0 -4
  734. package/lib/duet/p-a27a9c69.js +0 -4
  735. package/lib/duet/p-a395c023.entry.js +0 -4
  736. package/lib/duet/p-b355076f.entry.js +0 -4
  737. package/lib/duet/p-b3c4e717.system.entry.js +0 -4
  738. package/lib/duet/p-b7691d79.system.entry.js +0 -4
  739. package/lib/duet/p-b81ac5ae.system.js +0 -4
  740. package/lib/duet/p-b9f9f07f.entry.js +0 -4
  741. package/lib/duet/p-c5219057.system.entry.js +0 -4
  742. package/lib/duet/p-c80618b4.system.js +0 -4
  743. package/lib/duet/p-c972a96e.js +0 -4
  744. package/lib/duet/p-c97dbc9b.js +0 -4
  745. package/lib/duet/p-c9971904.entry.js +0 -4
  746. package/lib/duet/p-cbf13746.entry.js +0 -4
  747. package/lib/duet/p-d4ecb287.js +0 -4
  748. package/lib/duet/p-d79d46f4.system.entry.js +0 -4
  749. package/lib/duet/p-d807313e.system.entry.js +0 -4
  750. package/lib/duet/p-db0ba7b6.system.js +0 -4
  751. package/lib/duet/p-dca26ec6.entry.js +0 -4
  752. package/lib/duet/p-e1c99881.system.entry.js +0 -4
  753. package/lib/duet/p-e5a7f0a5.system.entry.js +0 -4
  754. package/lib/duet/p-e9dee331.entry.js +0 -4
  755. package/lib/duet/p-f0e3d159.js +0 -4
  756. package/lib/esm-es5/index-22246570.js +0 -4
  757. package/lib/esm-es5/tokens-1fd83076.js +0 -4
  758. package/lib/esm-es5/tokens.module-7b07911f.js +0 -4
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,i,n){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function r(t){try{u(n.next(t))}catch(t){s(t)}}function o(t){try{u(n["throw"](t))}catch(t){s(t)}}function u(t){t.done?i(t.value):a(t.value).then(r,o)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,r;return r={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function o(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,o[0]&&(i=0)),i)try{if(n=1,a&&(s=o[0]&2?a["return"]:o[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,o[1])).done)return s;if(a=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(o[0]===6&&i.label<s[1]){i.label=s[1];s=o;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(o);break}if(s[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];a=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-80993983.system.js","./p-385da7a9.system.js","./p-e6b5a1c7.system.js","./p-41982d26.system.js","./p-752fa0fc.system.js","./p-d4f972c3.system.js","./p-98636086.system.js","./p-43bbba35.system.js","./p-db0ba7b6.system.js"],(function(t){"use strict";var e,i,n,a,s,r,o,u,h,c,d,l,f,p,b,g,m,v,y,k,_,w,x;return{setters:[function(t){e=t.r;i=t.c;n=t.h;a=t.F;s=t.H;r=t.g},function(t){o=t.i},function(t){u=t.c},function(t){h=t.d},function(t){c=t.k;d=t.l;l=t.d;f=t.b;p=t.a;b=t.c;g=t.m;m=t.n},function(t){v=t.g;y=t.c;k=t.d},function(t){_=t.p},function(t){w=t.b;x=t.a},function(){}],execute:function(){var S=function(t,e,i){if(t*2>e/i){return false}return true};var j='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}.duet-pagination .duet-pagination-select{margin:0 4px 0 12px !important}.duet-pagination-total-pages{margin:0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;color:rgb(8, 42, 77);text-align:left}:host(.duet-theme-turva) .duet-pagination-total-pages{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) .duet-pagination-total-pages{color:rgb(23, 42, 59)}';var M=j;var C=t("duet_pagination",function(){function t(t){var n=this;e(this,t);this.duetPageChange=i(this,"duetPageChange",3);this.listId=u("duet-pagination-list");this.firstRenderDone=false;this.handleMediaQueryChange=function(t){n.matchesCompactBreakpoint=w.includes(n.compactBreakpoint)?t.matches:!t.matches};this.actionChain=function(t,e){return __awaiter(n,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:if(!(t===0))return[3,1];this.current=1;return[3,4];case 1:if(!(t>this.totalPages))return[3,2];this.current=this.totalPages;return[3,4];case 2:if(!(e!==t))return[3,4];i=Math.ceil(t/this.visibleItems)-1;if(!(i!==this.internalSectionIndex))return[3,4];this.internalSectionIndex=i;return[4,this.setFocus()];case 3:n.sent();n.label=4;case 4:return[2,true]}}))}))};this.emitPageEvent=function(t,e){var i=Number(e||n.current);n.duetPageChange.emit({component:"duet-pagination",from:i*n.take,to:i*n.take+n.take,current:i,take:n.take,type:"page",originalEvent:t})};this.getEnteredNumber=h((function(t){n.emitPageEvent(t,n.numbersStore);n.current=Number(n.numbersStore);n.numbersStore="";n.duetPageChange.emit({component:"duet-pagination",from:n.current*n.take,to:n.current*n.take+n.take,current:n.current,take:n.take,type:"jump",originalEvent:t})}),500);this.processedPageLinks=null;this.numbersStore="";this.matchesCompactBreakpoint=false;this.totalPages=10;this.internalSectionIndex=0;this.theme="";this.disabled=false;this.variation="default";this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabelsDefaults={en:{next_page:"Next page",previous_page:"Previous page",first_page:"First page",last_page:"Last page",jump_to:"Jump to page",go_to:"Go to page",description:"You may use arrow keys to select page number",pagination_label:"Pagination, choose a number to jump to a page",select_label:"Total pages {0}, choose a number to jump to a page",prev_section:"Show previous {0} page numbers, screen reader user should use arrowkeys to navigate",next_section:"Show next {0} page numbers, screen reader user should use arrowkeys to navigate"},fi:{next_page:"Seuraava sivu",previous_page:"Edellinen sivu",first_page:"Ensimmäinen sivu",last_page:"Viimeinen sivu",jump_to:"Siirry sivulle",go_to:"Siirry sivulle",description:"Voit käyttää nuolinäppäimiä sivunumeron valitsemiseen",pagination_label:"Sivutus, valitse sivunumero siirtyäksesi sivulle",select_label:"Sivuja yhteensä {0}, valitse sivunumero siirtyäksesi sivulle",prev_section:"Näytä edelliset {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi",next_section:"Näytä seuraavat {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi"},sv:{next_page:"Nästa sida",previous_page:"Föregående sida",first_page:"Första sidan",last_page:"Sista sidan",jump_to:"Hoppa till sida",go_to:"Hoppa till sida",description:"Du kan använda piltangenterna för att välja sida",pagination_label:"Paginering, välj en siffra för att hoppa till en sida",select_label:"Totalt antal sidor {0}, välj en siffra för att hoppa till en sida",prev_section:"Visa föregående {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera",next_section:"Visa nästa {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera"}};this.accessibleLabels=v(this.accessibleLabelsDefaults);this.take=5;this.visibleItems=5;this.total=1e3;this.compactBreakpoint="x-small";this.ariaControls="";this.current=1;this.pageLinks=undefined}t.prototype.watchPropTotalHandler=function(){this.calculatePageTake();return true};t.prototype.watchStateHandler=function(t,e){return this.actionChain(t,e)};t.prototype.componentWillLoad=function(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1;this.calculatePageTake();o(this);this.refresh()};t.prototype.componentDidLoad=function(){this.firstRenderDone=true};t.prototype.componentWillRender=function(){if(this.internalSectionIndex!==0&&this.internalSectionIndex!==this.totalPages){this.calculatePageTake()}};t.prototype.componentDidRender=function(){if(this.firstRenderDone&&!this.processedPageLinks){this.setFocus()}};t.prototype.connectedCallback=function(){var t=this.compactBreakpoint==="none"?"all":x[this.compactBreakpoint];this.mq=matchMedia(t);this.mq.addEventListener("change",h(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);y(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})};t.prototype.disconnectedCallback=function(){this.mq.removeEventListener("change",this.handleMediaQueryChange);this.mq=null;this.matchesCompactBreakpoint=false;k(this)};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.processedPageLinks=_(this.pageLinks);return[2]}))}))};t.prototype.calculatePageTake=function(){this.totalPages=Math.ceil(this.total/this.take)};t.prototype.onMouseHandler=function(t,e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){if(this.disabled){return[2]}if(!this.processedPageLinks){t.preventDefault();t.stopPropagation();this.current=this.current+e}this.emitPageEvent(t);return[2]}))}))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){if(this.disabled){return[2]}e=this.current;if(l(t)||f(t)){e--}if(p(t)||b(t)){e++}if(c(t)){if(e<=this.totalPages){this.current=e;if(this.processedPageLinks){this.emitPageEvent(t,e-1);window.open(this.processedPageLinks[e-1],"_self","")}else{this.emitPageEvent(t)}}}if(d(t)&&this.shouldDisplayNavigation()){this.numbersStore=this.numbersStore+t.key;if(Number(this.numbersStore)>this.totalPages){this.numbersStore=this.totalPages+""}this.getEnteredNumber(t)}return[2]}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:t=this.nativeNav.querySelector("[data-id='".concat(this.current,"']"));e=t;if(!e)return[3,2];return[4,t.setFocus()];case 1:e=i.sent();i.label=2;case 2:e;return[2]}}))}))};t.prototype.pageClickHandler=function(t){var e=Number(t.target.getAttribute("data-id"));if(!this.processedPageLinks){t.preventDefault();this.current=e}this.emitPageEvent(t,e)};t.prototype.selectClickHandler=function(t){t.preventDefault();var e=Number(t.target.value);this.current=e;if(this.processedPageLinks){this.emitPageEvent(t,e-1);window.open(this.processedPageLinks[e-1],"_self","")}else{this.emitPageEvent(t,e)}};t.prototype.sectionClickHandler=function(t,e){t.preventDefault();var i=this.internalSectionIndex+e;var n=this.take*this.visibleItems;if(i*n>this.total){i=this.internalSectionIndex}var a=i;this.internalSectionIndex=a>=0?a:0};t.prototype.jumpToStart=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=0;this.current=1}this.emitPageEvent(t)};t.prototype.jumpToEnd=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1);this.current=this.totalPages}this.emitPageEvent(t)};t.prototype.renderPageButton=function(t){var e=this;return n("duet-button",{disabled:this.disabled,class:{"duet-pagination-link":true},id:"page-".concat(t,"-button"),color:t!==this.current?this.theme!=="turva"?"secondary":"secondary-turva":this.theme!=="turva"?"primary":"primary-turva","data-id":t,"center-text":true,variation:"plain",margin:"none",accessibleLabel:"".concat(this.accessibleLabels.go_to," ").concat(t),onClick:function(t){return e.pageClickHandler(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[t-1]:undefined},n("div",{class:"duet-pagination-page-number","aria-hidden":true},t))};t.prototype.renderPageNumbers=function(){var t=[];var e=this.internalSectionIndex*this.visibleItems;do{e++;if(e>this.totalPages){break}t.push(n("li",{class:{"duet-pagination-item":true,"duet-pagination-item-is-active":e===this.current},role:"menuitem"},this.renderPageButton(e)))}while(e<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t};t.prototype.renderSelect=function(){var t=this;var e=[];for(var i=1;i<=this.totalPages;i++){e.push({value:i.toString(),label:i.toString()})}var a=n("duet-select",{disabled:this.disabled,theme:this.theme,class:"duet-pagination-select",variation:"compact",items:JSON.stringify(e),value:this.current.toString(),label:this.accessibleLabels.select_label.replace("{0}","".concat(this.totalPages)),labelHidden:true,onDuetChange:function(e){return t.selectClickHandler(e)}});return n("li",null,a,n("span",{class:"duet-pagination-total-pages","aria-hidden":"true"},"/ ",this.totalPages))};t.prototype.shouldDisplayNavigation=function(){if(this.variation!=="compact"&&!this.matchesCompactBreakpoint){return S(this.visibleItems,this.total,this.take)}return false};t.prototype.render=function(){var t;var e=this;return n(s,{key:"c9fe96fc3da1353342e9b864e7ad2fcf711dc17c",onKeyDown:function(t){return e.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},n("nav",{key:"ef4ca286ceae883a08fde9768c168d54d9e3b251",role:"navigation","aria-labelledby":this.accessibleLabelledBy?"".concat(this.accessibleLabelledBy," ").concat(this.listId):this.listId,"aria-describedby":this.accessibleDescribedBy?"".concat(this.accessibleDescribedBy," ").concat(this.listId):this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:function(t){return e.nativeNav=t},"aria-controls":this.ariaControls,class:(t={"duet-pagination-nav":true},t["duet-pagination-variation-".concat(this.variation)]=true,t)},this.numbersStore!==""&&n("div",{key:"f8786d74f5cfc028016b66efc34c6a248b0b3795","aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":"".concat(this.accessibleLabels.jump_to," ").concat(this.numbersStore),part:"navigation-overlay"},n("duet-badge",{key:"79781be8b7faa9eb353efcf74864c83602de956b",theme:this.theme},"jump to page : ",this.numbersStore)),n("ol",{key:"8ddba22cf4f5ecd14ee57316062fdccb9fc92096",id:this.listId,class:{"duet-pagination":true,"duet-pagination-is-dimmed":this.numbersStore!==""},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},(this.variation==="compact"||this.matchesCompactBreakpoint)&&n("li",{key:"9ed42f129f8f0c87da06196b110c8d556aeb279a",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"00d898898b26870fb0aa71e5003cee8e322d6e53",disabled:this.internalSectionIndex===0&&this.current<=1||this.disabled,"data-direction":"back",accessibleLabel:this.accessibleLabels.first_page,title:this.accessibleLabels.first_page,onClick:function(t){return e.jumpToStart(t)},"icon-name":"action-move-to-first",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined})),n("li",{key:"fea77adade297e5dd4421b10c951ae0a9c008d9b",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"8f433ca73a21d2593b5993c33a9921f1773eec76",disabled:!!(this.internalSectionIndex===0&&this.current<=1||this.current<=1&&this.processedPageLinks||this.disabled),"data-direction":"back",onClick:function(t){return e.onMouseHandler(t,-1)},"accessible-label":this.accessibleLabels.previous_page,title:this.accessibleLabels.previous_page,"icon-name":"action-arrow-left-small",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current-2]:undefined})),this.internalSectionIndex!==0&&this.shouldDisplayNavigation()&&n(a,{key:"189f029ec26aec1ef07fbcb690c58bce6189188c"},n("li",{key:"32959efe57c7ff493a1d3fb1f75c7c6f2826eb10",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{key:"ec984a6771777da0459f194833dd6bd50ca94d7d",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:this.theme!=="turva"?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:function(t){return e.jumpToStart(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined},n("div",{key:"2962bb3d7451604a3baa097b6f3ffe624a28b25c",class:"duet-pagination-page-number"},"1"))),n("li",{key:"ac310350a88731d6f20e86177f80c23e4ec132c1",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{key:"06a7f463a2fb478763233c6a30c57a5f52186b82",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return e.sectionClickHandler(t,-1)},theme:this.theme},n("div",{key:"05ae094e5f561fbc52a573bc98166902fca7a8a8",class:"duet-pagination-page-number","aria-hidden":"true"},"…")))),this.shouldDisplayNavigation()&&this.renderPageNumbers()||this.renderSelect(),(this.internalSectionIndex+1)*this.visibleItems<this.totalPages&&this.shouldDisplayNavigation()&&n(a,{key:"cf4913427876f3f02fb1dd5a52e64cad8c826725"},(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&n("li",{key:"5261de2729dd37d92bb70e67ab076640f6d59b84",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{key:"7013a952e25adacaad0c563e842e08c63029007f",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return e.sectionClickHandler(t,1)},theme:this.theme},n("div",{key:"f85a76e62df9db2edea74f9b4ff399b534b98b24",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),n("li",{key:"c6f67eb82e7d7d0d293a855ab9f78db120c8db28",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{key:"39e8d8a0ed0c6ba16e690671d8d614a5b5bd7586",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:function(t){return e.jumpToEnd(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.processedPageLinks.length-1]:undefined},n("div",{key:"e506d8d9edd2a2c3405724feec0f171e0acacac2",class:"duet-pagination-page-number"},this.totalPages)))),n("li",{key:"d62d774a158f0bda48c574a9717e7a42f357bab2",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"e90288259fd328203b00c05f92682d44d5842e82",disabled:!!(this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.current===this.totalPages&&this.processedPageLinks)||this.disabled,class:"duet-date-dialog-next","accessible-label":this.accessibleLabels.next_page,title:this.accessibleLabels.next_page,onClick:function(t){return e.onMouseHandler(t,1)},"icon-name":"action-move-to-next",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current]:undefined})),(this.variation==="compact"||this.matchesCompactBreakpoint)&&n("li",{key:"b47b3e1145ab9acec968a959eb2dede859183893",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"f216759c8c8a85ddfd5b503ade45223c157baef8",disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.disabled,accessibleLabel:this.accessibleLabels.last_page,title:this.accessibleLabels.last_page,onClick:function(t){return e.jumpToEnd(t)},"icon-name":"action-move-to-last",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.totalPages-1]:undefined})))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"],pageLinks:["refresh"]}},enumerable:false,configurable:true});return t}());C.style=M;var N="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:inline-block;margin:0 auto}.duet-range-stepper{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;justify-content:center;min-width:30px;min-height:30px;font-weight:600;text-decoration:none;border-left-width:0}.duet-range-stepper{white-space:nowrap}.duet-range-stepper .duet-range-step-counter{font-weight:600;color:rgb(8, 42, 77)}.duet-range-stepper ::part(button){border:0}:host(.duet-theme-turva2) .duet-theme-turva .duet-range-step-counter{color:rgb(23, 42, 59)}";var L=N;var z=t("duet_range_stepper",function(){function t(t){var n=this;e(this,t);this.duetRangeStepUpdate=i(this,"duetRangeStepUpdate",7);this.leftBn=u("duetRangeStepper-left");this.rightBn=u("duetRangeStepper-right");this.handleClick=function(t,e){t.preventDefault();n.stepIndex+=e;n.clampStepIndex();n.handleStepClick(t)};this.buttonLeftDisabled=false;this.buttonRightDisabled=false;this.theme="";this.disabled=false;this.stepIndex=1;this.stepSize=50;this.total=1e3;this.ariaLabelsDefaults={en:{next_increment:"Next range increment",previous_increment:"Previous range increment",x_of_y:"{0}–{1} of {2}"},fi:{next_increment:"Seuraava välillä",previous_increment:"Edellinen välillä",x_of_y:"{0}–{1} / {2}"},sv:{next_increment:"Nästa intervall",previous_increment:"Föregående intervall",x_of_y:"{0}–{1} av {2}"}};this.ariaLabels=v(this.ariaLabelsDefaults);this.ariaControls=""}t.prototype.watchStepIndexStateHandler=function(t){if(this.leftBnRef&&this.rightBnRef){if(t<=1){if(this.element===document.activeElement){this.rightBnRef.setFocus()}this.buttonLeftDisabled=true}else{this.buttonLeftDisabled=false}if(t>=this.total/this.stepSize){if(this.element===document.activeElement){this.leftBnRef.setFocus()}this.buttonRightDisabled=true}else{this.buttonRightDisabled=false}}};t.prototype.watchStepSizeStateHandler=function(t,e){if(t!==e){if(this.stepIndex*t>this.total){this.stepIndex=Math.ceil(this.total/t)}this.watchStepIndexStateHandler(this.stepIndex)}};t.prototype.handleStepClick=function(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})};t.prototype.componentWillLoad=function(){o(this);this.clampStepIndex()};t.prototype.componentDidLoad=function(){this.watchStepIndexStateHandler(this.stepIndex)};t.prototype.connectedCallback=function(){y(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})};t.prototype.disconnectedCallback=function(){k(this)};t.prototype.clampStepIndex=function(){if(this.stepIndex<1){this.stepIndex=1}else if(this.stepIndex*this.stepSize>this.total){this.stepIndex=Math.ceil(this.total/this.stepSize)}};t.prototype.getFrom=function(){return Math.floor((this.stepIndex-1)*this.stepSize)+1};t.prototype.getTo=function(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)};t.prototype.generateStepSize=function(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))};t.prototype.generatePreviousIncrementLabel=function(){if(this.getFrom()===1){return""}return this.ariaLabels.x_of_y.replace("{0}",String(Math.max(this.getFrom()-this.stepSize,1))).replace("{1}",String(Math.min(this.getFrom()-1,this.total))).replace("{2}",String(this.total))};t.prototype.generateNextIncrementLabel=function(){if(this.getTo()===this.total){return""}return this.ariaLabels.x_of_y.replace("{0}",String(this.getTo()+1)).replace("{1}",String(Math.min(this.getTo()+this.stepSize,this.total))).replace("{2}",String(this.total))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(n){if(this.disabled){return[2]}e=this.stepIndex;i=1;if(l(t)||f(t)||g(t)){e--;i=-1;this.leftBnRef.setFocus()}if(p(t)||b(t)||m(t)){e++;i=1}if(c(t)){if(e>0&&e*this.stepSize<=this.total){this.handleClick(t,i)}}return[2]}))}))};t.prototype.render=function(){var t=this;return n("div",{key:"38130851d0d8f6035593e95652d33059ee2887d0",class:{"duet-range-stepper":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:function(e){return t.onKeyboardDown(e)},"aria-controls":this.ariaControls},n("span",{key:"d37af09c95ad4ddbee42896b59b605e0582b1395",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),n("duet-action-button",{key:"7045f2fd9e678036cb7d20d1877f60405198e1fd",disabled:this.disabled||this.buttonLeftDisabled,class:"duet-range-step-button duet-range-step-minus",onClick:function(e){return t.handleClick(e,-1)},id:this.leftBn,"accessible-label":"".concat(this.ariaLabels.previous_increment," ").concat(this.generatePreviousIncrementLabel()),ref:function(e){return t.leftBnRef=e},part:"navigation-arrow",iconName:"action-arrow-left-small",title:""}),n("duet-action-button",{key:"312372ac0a265b90b2e30a0fab64e4b4a8738398",disabled:this.disabled||this.buttonRightDisabled,class:"duet-range-step-button duet-range-step-plus",onClick:function(e){return t.handleClick(e,1)},"accessible-label":"".concat(this.ariaLabels.next_increment," ").concat(this.generateNextIncrementLabel()),id:this.rightBn,ref:function(e){return t.rightBnRef=e},part:"navigation-arrow",iconName:"action-arrow-right-small",title:""}))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}},enumerable:false,configurable:true});return t}());z.style=L}}}));
4
+ */System.register(["./p-d04f0720.system.js","./p-15f1493c.system.js","./p-e6b5a1c7.system.js","./p-41982d26.system.js","./p-752fa0fc.system.js","./p-5a34eb53.system.js","./p-98636086.system.js","./p-f6e20b20.system.js","./p-453db857.system.js"],(function(t){"use strict";var e,i,n,a,s,r,o,u,h,c,d,l,f,p,b,g,m,v,y,k,_,w,x;return{setters:[function(t){e=t.r;i=t.c;n=t.h;a=t.F;s=t.H;r=t.g},function(t){o=t.i},function(t){u=t.c},function(t){h=t.d},function(t){c=t.k;d=t.l;l=t.d;f=t.b;p=t.a;b=t.c;g=t.m;m=t.n},function(t){v=t.g;y=t.c;k=t.d},function(t){_=t.p},function(t){w=t.b;x=t.a},function(){}],execute:function(){var S=function(t,e,i){if(t*2>e/i){return false}return true};var j='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}.duet-pagination .duet-pagination-select{margin:0 4px 0 12px !important}.duet-pagination-total-pages{margin:0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;color:rgb(8, 42, 77);text-align:left}:host(.duet-theme-turva) .duet-pagination-total-pages{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) .duet-pagination-total-pages{color:rgb(23, 42, 59)}';var M=j;var C=t("duet_pagination",function(){function t(t){var n=this;e(this,t);this.duetPageChange=i(this,"duetPageChange",3);this.listId=u("duet-pagination-list");this.firstRenderDone=false;this.handleMediaQueryChange=function(t){n.matchesCompactBreakpoint=w.includes(n.compactBreakpoint)?t.matches:!t.matches};this.actionChain=function(t,e){return __awaiter(n,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:if(!(t===0))return[3,1];this.current=1;return[3,4];case 1:if(!(t>this.totalPages))return[3,2];this.current=this.totalPages;return[3,4];case 2:if(!(e!==t))return[3,4];i=Math.ceil(t/this.visibleItems)-1;if(!(i!==this.internalSectionIndex))return[3,4];this.internalSectionIndex=i;return[4,this.setFocus()];case 3:n.sent();n.label=4;case 4:return[2,true]}}))}))};this.emitPageEvent=function(t,e){var i=Number(e||n.current);n.duetPageChange.emit({component:"duet-pagination",from:i*n.take,to:i*n.take+n.take,current:i,take:n.take,type:"page",originalEvent:t})};this.getEnteredNumber=h((function(t){n.emitPageEvent(t,n.numbersStore);n.current=Number(n.numbersStore);n.numbersStore="";n.duetPageChange.emit({component:"duet-pagination",from:n.current*n.take,to:n.current*n.take+n.take,current:n.current,take:n.take,type:"jump",originalEvent:t})}),500);this.processedPageLinks=null;this.numbersStore="";this.matchesCompactBreakpoint=false;this.totalPages=10;this.internalSectionIndex=0;this.theme="";this.disabled=false;this.variation="default";this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabelsDefaults={en:{next_page:"Next page",previous_page:"Previous page",first_page:"First page",last_page:"Last page",jump_to:"Jump to page",go_to:"Go to page",description:"You may use arrow keys to select page number",pagination_label:"Pagination, choose a number to jump to a page",select_label:"Total pages {0}, choose a number to jump to a page",prev_section:"Show previous {0} page numbers, screen reader user should use arrowkeys to navigate",next_section:"Show next {0} page numbers, screen reader user should use arrowkeys to navigate"},fi:{next_page:"Seuraava sivu",previous_page:"Edellinen sivu",first_page:"Ensimmäinen sivu",last_page:"Viimeinen sivu",jump_to:"Siirry sivulle",go_to:"Siirry sivulle",description:"Voit käyttää nuolinäppäimiä sivunumeron valitsemiseen",pagination_label:"Sivutus, valitse sivunumero siirtyäksesi sivulle",select_label:"Sivuja yhteensä {0}, valitse sivunumero siirtyäksesi sivulle",prev_section:"Näytä edelliset {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi",next_section:"Näytä seuraavat {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi"},sv:{next_page:"Nästa sida",previous_page:"Föregående sida",first_page:"Första sidan",last_page:"Sista sidan",jump_to:"Hoppa till sida",go_to:"Hoppa till sida",description:"Du kan använda piltangenterna för att välja sida",pagination_label:"Paginering, välj en siffra för att hoppa till en sida",select_label:"Totalt antal sidor {0}, välj en siffra för att hoppa till en sida",prev_section:"Visa föregående {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera",next_section:"Visa nästa {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera"}};this.accessibleLabels=v(this.accessibleLabelsDefaults);this.take=5;this.visibleItems=5;this.total=1e3;this.compactBreakpoint="x-small";this.ariaControls="";this.current=1;this.pageLinks=undefined}t.prototype.watchPropTotalHandler=function(){this.calculatePageTake();return true};t.prototype.watchStateHandler=function(t,e){return this.actionChain(t,e)};t.prototype.componentWillLoad=function(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1;this.calculatePageTake();o(this);this.refresh()};t.prototype.componentDidLoad=function(){this.firstRenderDone=true};t.prototype.componentWillRender=function(){if(this.internalSectionIndex!==0&&this.internalSectionIndex!==this.totalPages){this.calculatePageTake()}};t.prototype.componentDidRender=function(){if(this.firstRenderDone&&!this.processedPageLinks){this.setFocus()}};t.prototype.connectedCallback=function(){var t=this.compactBreakpoint==="none"?"all":x[this.compactBreakpoint];this.mq=matchMedia(t);this.mq.addEventListener("change",h(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);y(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})};t.prototype.disconnectedCallback=function(){this.mq.removeEventListener("change",this.handleMediaQueryChange);this.mq=null;this.matchesCompactBreakpoint=false;k(this)};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.processedPageLinks=_(this.pageLinks);return[2]}))}))};t.prototype.calculatePageTake=function(){this.totalPages=Math.ceil(this.total/this.take)};t.prototype.onMouseHandler=function(t,e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){if(this.disabled){return[2]}if(!this.processedPageLinks){t.preventDefault();t.stopPropagation();this.current=this.current+e}this.emitPageEvent(t);return[2]}))}))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){if(this.disabled){return[2]}e=this.current;if(l(t)||f(t)){e--}if(p(t)||b(t)){e++}if(c(t)){if(e<=this.totalPages){this.current=e;if(this.processedPageLinks){this.emitPageEvent(t,e-1);window.open(this.processedPageLinks[e-1],"_self","")}else{this.emitPageEvent(t)}}}if(d(t)&&this.shouldDisplayNavigation()){this.numbersStore=this.numbersStore+t.key;if(Number(this.numbersStore)>this.totalPages){this.numbersStore=this.totalPages+""}this.getEnteredNumber(t)}return[2]}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:t=this.nativeNav.querySelector("[data-id='".concat(this.current,"']"));e=t;if(!e)return[3,2];return[4,t.setFocus()];case 1:e=i.sent();i.label=2;case 2:e;return[2]}}))}))};t.prototype.pageClickHandler=function(t){var e=Number(t.target.getAttribute("data-id"));if(!this.processedPageLinks){t.preventDefault();this.current=e}this.emitPageEvent(t,e)};t.prototype.selectClickHandler=function(t){t.preventDefault();var e=Number(t.target.value);this.current=e;if(this.processedPageLinks){this.emitPageEvent(t,e-1);window.open(this.processedPageLinks[e-1],"_self","")}else{this.emitPageEvent(t,e)}};t.prototype.sectionClickHandler=function(t,e){t.preventDefault();var i=this.internalSectionIndex+e;var n=this.take*this.visibleItems;if(i*n>this.total){i=this.internalSectionIndex}var a=i;this.internalSectionIndex=a>=0?a:0};t.prototype.jumpToStart=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=0;this.current=1}this.emitPageEvent(t)};t.prototype.jumpToEnd=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1);this.current=this.totalPages}this.emitPageEvent(t)};t.prototype.renderPageButton=function(t){var e=this;return n("duet-button",{disabled:this.disabled,class:{"duet-pagination-link":true},id:"page-".concat(t,"-button"),color:t!==this.current?this.theme!=="turva"?"secondary":"secondary-turva":this.theme!=="turva"?"primary":"primary-turva","data-id":t,"center-text":true,variation:"plain",margin:"none",accessibleLabel:"".concat(this.accessibleLabels.go_to," ").concat(t),onClick:function(t){return e.pageClickHandler(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[t-1]:undefined},n("div",{class:"duet-pagination-page-number","aria-hidden":true},t))};t.prototype.renderPageNumbers=function(){var t=[];var e=this.internalSectionIndex*this.visibleItems;do{e++;if(e>this.totalPages){break}t.push(n("li",{class:{"duet-pagination-item":true,"duet-pagination-item-is-active":e===this.current},role:"menuitem"},this.renderPageButton(e)))}while(e<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t};t.prototype.renderSelect=function(){var t=this;var e=[];for(var i=1;i<=this.totalPages;i++){e.push({value:i.toString(),label:i.toString()})}var a=n("duet-select",{disabled:this.disabled,theme:this.theme,class:"duet-pagination-select",variation:"compact",items:JSON.stringify(e),value:this.current.toString(),label:this.accessibleLabels.select_label.replace("{0}","".concat(this.totalPages)),labelHidden:true,onDuetChange:function(e){return t.selectClickHandler(e)}});return n("li",null,a,n("span",{class:"duet-pagination-total-pages","aria-hidden":"true"},"/ ",this.totalPages))};t.prototype.shouldDisplayNavigation=function(){if(this.variation!=="compact"&&!this.matchesCompactBreakpoint){return S(this.visibleItems,this.total,this.take)}return false};t.prototype.render=function(){var t;var e=this;return n(s,{key:"af038eda29336dcdc68a74b852dc74cdd59a94a5",onKeyDown:function(t){return e.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},n("nav",{key:"c3ae9d1579a649410f69c67e7611327a4c5477ff",role:"navigation","aria-labelledby":this.accessibleLabelledBy?"".concat(this.accessibleLabelledBy," ").concat(this.listId):this.listId,"aria-describedby":this.accessibleDescribedBy?"".concat(this.accessibleDescribedBy," ").concat(this.listId):this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:function(t){return e.nativeNav=t},"aria-controls":this.ariaControls,class:(t={"duet-pagination-nav":true},t["duet-pagination-variation-".concat(this.variation)]=true,t)},this.numbersStore!==""&&n("div",{key:"8db1a4b8626628c12b28be06480ffa38956a573d","aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":"".concat(this.accessibleLabels.jump_to," ").concat(this.numbersStore),part:"navigation-overlay"},n("duet-badge",{key:"d2c3831b4e1c9bc464b046164f2123649c39bc54",theme:this.theme},"jump to page : ",this.numbersStore)),n("ol",{key:"3d83be2bdf8e48b4b942ccbdea92dd083bf9d71e",id:this.listId,class:{"duet-pagination":true,"duet-pagination-is-dimmed":this.numbersStore!==""},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},(this.variation==="compact"||this.matchesCompactBreakpoint)&&n("li",{key:"4ae9c4d863f47173a26acaac2b427baf68490e45",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"b362823d28d9f1b06fbf6962754d71273c2a5cf8",disabled:this.internalSectionIndex===0&&this.current<=1||this.disabled,"data-direction":"back",accessibleLabel:this.accessibleLabels.first_page,title:this.accessibleLabels.first_page,onClick:function(t){return e.jumpToStart(t)},"icon-name":"action-move-to-first",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined})),n("li",{key:"2c02910d78403d4529f630dd51e449145bfe048e",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"9a2a092c0c60212ccacab3da408c58e2adc0f281",disabled:!!(this.internalSectionIndex===0&&this.current<=1||this.current<=1&&this.processedPageLinks||this.disabled),"data-direction":"back",onClick:function(t){return e.onMouseHandler(t,-1)},"accessible-label":this.accessibleLabels.previous_page,title:this.accessibleLabels.previous_page,"icon-name":"action-arrow-left-small",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current-2]:undefined})),this.internalSectionIndex!==0&&this.shouldDisplayNavigation()&&n(a,{key:"f4f7d5ac7ce75c6ebbff06efe1695f10fb236891"},n("li",{key:"3552fe56d501c9b4b3967fe083cc66c096235f76",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{key:"3a023eb7c1ea03bb47aea35d20eabb1b417d6467",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:this.theme!=="turva"?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:function(t){return e.jumpToStart(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined},n("div",{key:"2f66035fe1ee4a6546edf0aa3bb6250d1f3c561e",class:"duet-pagination-page-number"},"1"))),n("li",{key:"00aa006863cfd37c64ee8613de98046bff8d311b",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{key:"5d16c811fab573aed0b88d4021790d75146435f7",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return e.sectionClickHandler(t,-1)},theme:this.theme},n("div",{key:"6c1241a5e9cba1367c2195808295b58cf7f197d6",class:"duet-pagination-page-number","aria-hidden":"true"},"…")))),this.shouldDisplayNavigation()&&this.renderPageNumbers()||this.renderSelect(),(this.internalSectionIndex+1)*this.visibleItems<this.totalPages&&this.shouldDisplayNavigation()&&n(a,{key:"fe20764e7bdb381f3bd84295625aac7116e1debf"},(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&n("li",{key:"40cd85c84088219ec5debbaf816cba6408aac764",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},n("duet-button",{key:"3d6fac55460757cda88c3396eac74d6005b15e7c",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return e.sectionClickHandler(t,1)},theme:this.theme},n("div",{key:"5b6e9f5aef2df6218006b13120cf6f9cadbf3e03",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),n("li",{key:"dd18dd41e5e90639f44ccbfc9640aa88b1ad0c84",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},n("duet-button",{key:"ebc4e60fe510528a11b9db54a025dccb1e7c1a3f",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:function(t){return e.jumpToEnd(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.processedPageLinks.length-1]:undefined},n("div",{key:"29e70bbaaa1b5124d7c2e40a63e3223add9fe2dd",class:"duet-pagination-page-number"},this.totalPages)))),n("li",{key:"4a16b37cb12d13acb5d3ff59a3e84b07bcdfe592",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"49fad8750044ae65eba432e720a9c996201257dd",disabled:!!(this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.current===this.totalPages&&this.processedPageLinks)||this.disabled,class:"duet-date-dialog-next","accessible-label":this.accessibleLabels.next_page,title:this.accessibleLabels.next_page,onClick:function(t){return e.onMouseHandler(t,1)},"icon-name":"action-move-to-next",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current]:undefined})),(this.variation==="compact"||this.matchesCompactBreakpoint)&&n("li",{key:"b544bfa7ab5c73f436a842a2ea8b6886759c369c",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},n("duet-action-button",{key:"a2e0494af4a8ae5dfb712121aaeb4ce17446555f",disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.disabled,accessibleLabel:this.accessibleLabels.last_page,title:this.accessibleLabels.last_page,onClick:function(t){return e.jumpToEnd(t)},"icon-name":"action-move-to-last",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.totalPages-1]:undefined})))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"],pageLinks:["refresh"]}},enumerable:false,configurable:true});return t}());C.style=M;var N="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:inline-block;margin:0 auto}.duet-range-stepper{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;justify-content:center;min-width:30px;min-height:30px;font-weight:600;text-decoration:none;border-left-width:0}.duet-range-stepper{white-space:nowrap}.duet-range-stepper .duet-range-step-counter{font-weight:600;color:rgb(8, 42, 77)}.duet-range-stepper ::part(button){border:0}:host(.duet-theme-turva2) .duet-theme-turva .duet-range-step-counter{color:rgb(23, 42, 59)}";var L=N;var z=t("duet_range_stepper",function(){function t(t){var n=this;e(this,t);this.duetRangeStepUpdate=i(this,"duetRangeStepUpdate",7);this.leftBn=u("duetRangeStepper-left");this.rightBn=u("duetRangeStepper-right");this.handleClick=function(t,e){t.preventDefault();n.stepIndex+=e;n.clampStepIndex();n.handleStepClick(t)};this.buttonLeftDisabled=false;this.buttonRightDisabled=false;this.theme="";this.disabled=false;this.stepIndex=1;this.stepSize=50;this.total=1e3;this.ariaLabelsDefaults={en:{next_increment:"Next range increment",previous_increment:"Previous range increment",x_of_y:"{0}–{1} of {2}"},fi:{next_increment:"Seuraava välillä",previous_increment:"Edellinen välillä",x_of_y:"{0}–{1} / {2}"},sv:{next_increment:"Nästa intervall",previous_increment:"Föregående intervall",x_of_y:"{0}–{1} av {2}"}};this.ariaLabels=v(this.ariaLabelsDefaults);this.ariaControls=""}t.prototype.watchStepIndexStateHandler=function(t){if(this.leftBnRef&&this.rightBnRef){if(t<=1){if(this.element===document.activeElement){this.rightBnRef.setFocus()}this.buttonLeftDisabled=true}else{this.buttonLeftDisabled=false}if(t>=this.total/this.stepSize){if(this.element===document.activeElement){this.leftBnRef.setFocus()}this.buttonRightDisabled=true}else{this.buttonRightDisabled=false}}};t.prototype.watchStepSizeStateHandler=function(t,e){if(t!==e){if(this.stepIndex*t>this.total){this.stepIndex=Math.ceil(this.total/t)}this.watchStepIndexStateHandler(this.stepIndex)}};t.prototype.handleStepClick=function(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})};t.prototype.componentWillLoad=function(){o(this);this.clampStepIndex()};t.prototype.componentDidLoad=function(){this.watchStepIndexStateHandler(this.stepIndex)};t.prototype.connectedCallback=function(){y(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})};t.prototype.disconnectedCallback=function(){k(this)};t.prototype.clampStepIndex=function(){if(this.stepIndex<1){this.stepIndex=1}else if(this.stepIndex*this.stepSize>this.total){this.stepIndex=Math.ceil(this.total/this.stepSize)}};t.prototype.getFrom=function(){return Math.floor((this.stepIndex-1)*this.stepSize)+1};t.prototype.getTo=function(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)};t.prototype.generateStepSize=function(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))};t.prototype.generatePreviousIncrementLabel=function(){if(this.getFrom()===1){return""}return this.ariaLabels.x_of_y.replace("{0}",String(Math.max(this.getFrom()-this.stepSize,1))).replace("{1}",String(Math.min(this.getFrom()-1,this.total))).replace("{2}",String(this.total))};t.prototype.generateNextIncrementLabel=function(){if(this.getTo()===this.total){return""}return this.ariaLabels.x_of_y.replace("{0}",String(this.getTo()+1)).replace("{1}",String(Math.min(this.getTo()+this.stepSize,this.total))).replace("{2}",String(this.total))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(n){if(this.disabled){return[2]}e=this.stepIndex;i=1;if(l(t)||f(t)||g(t)){e--;i=-1;this.leftBnRef.setFocus()}if(p(t)||b(t)||m(t)){e++;i=1}if(c(t)){if(e>0&&e*this.stepSize<=this.total){this.handleClick(t,i)}}return[2]}))}))};t.prototype.render=function(){var t=this;return n("div",{key:"38130851d0d8f6035593e95652d33059ee2887d0",class:{"duet-range-stepper":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:function(e){return t.onKeyboardDown(e)},"aria-controls":this.ariaControls},n("span",{key:"d37af09c95ad4ddbee42896b59b605e0582b1395",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),n("duet-action-button",{key:"7045f2fd9e678036cb7d20d1877f60405198e1fd",disabled:this.disabled||this.buttonLeftDisabled,class:"duet-range-step-button duet-range-step-minus",onClick:function(e){return t.handleClick(e,-1)},id:this.leftBn,"accessible-label":"".concat(this.ariaLabels.previous_increment," ").concat(this.generatePreviousIncrementLabel()),ref:function(e){return t.leftBnRef=e},part:"navigation-arrow",iconName:"action-arrow-left-small",title:""}),n("duet-action-button",{key:"312372ac0a265b90b2e30a0fab64e4b4a8738398",disabled:this.disabled||this.buttonRightDisabled,class:"duet-range-step-button duet-range-step-plus",onClick:function(e){return t.handleClick(e,1)},"accessible-label":"".concat(this.ariaLabels.next_increment," ").concat(this.generateNextIncrementLabel()),id:this.rightBn,ref:function(e){return t.rightBnRef=e},part:"navigation-arrow",iconName:"action-arrow-right-small",title:""}))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}},enumerable:false,configurable:true});return t}());z.style=L}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-80993983.system.js"],(function(t){"use strict";return{setters:[function(){}],execute:function(){var e=t("i",(function(t){var e,u;var r=(u=(e=document.documentElement.attributes.getNamedItem("class"))===null||e===void 0?void 0:e.value)!==null&&u!==void 0?u:"";var a=/(duet-theme-)([a-z0-9]*)/gi.exec(r);if(t.element){t.element.classList.add("duet-theme-observer")}if(r.includes("duet-theme-turva2")){t.theme="turva";if(t.element){t.element.classList.add("duet-theme-turva2")}return}if(a&&a[1]==="duet-theme-"){t.theme=a[2]==="default"?"":a[2]}}));var u=function(t){var e=Array.from(t.querySelectorAll(".duet-theme-observer"));if(t.shadowRoot){e.push.apply(e,u(t.shadowRoot))}e.forEach((function(t){if(t.shadowRoot){e.push.apply(e,u(t.shadowRoot))}}));return e};var r=function(t){t.forEach((function(t){var e,r,a;if(!((e=t.oldValue)===null||e===void 0?void 0:e.includes("hydrated"))){return}var i=(a=(r=document.documentElement.attributes.getNamedItem("class"))===null||r===void 0?void 0:r.value)!==null&&a!==void 0?a:"";var v=/(duet-theme-)([a-z0-9]*)/gi.exec(i);var n=(v===null||v===void 0?void 0:v.length)>2&&v[2].startsWith("turva")?"turva":"";var d=i.includes("duet-theme-turva2");var o=u(document.body);o.forEach((function(t){t.theme=n;if(d){t.classList.add("duet-theme-turva2")}else{t.classList.remove("duet-theme-turva2")}}))}))};{var a=new MutationObserver(r);a.observe(document.documentElement,{subtree:false,childList:false,characterData:false,attributes:true,attributeFilter:["class"],attributeOldValue:true})}}}}));
4
+ System.register(["./p-d04f0720.system.js"],(function(t){"use strict";return{setters:[function(){}],execute:function(){var e=t("i",(function(t){var e,u;var r=(u=(e=document.documentElement.attributes.getNamedItem("class"))===null||e===void 0?void 0:e.value)!==null&&u!==void 0?u:"";var a=/(duet-theme-)([a-z0-9]*)/gi.exec(r);if(t.element){t.element.classList.add("duet-theme-observer")}if(r.includes("duet-theme-turva2")){t.theme="turva";if(t.element){t.element.classList.add("duet-theme-turva2")}return}if(a&&a[1]==="duet-theme-"){t.theme=a[2]==="default"?"":a[2]}}));var u=function(t){var e=Array.from(t.querySelectorAll(".duet-theme-observer"));if(t.shadowRoot){e.push.apply(e,u(t.shadowRoot))}e.forEach((function(t){if(t.shadowRoot){e.push.apply(e,u(t.shadowRoot))}}));return e};var r=function(t){t.forEach((function(t){var e,r,a;if(!((e=t.oldValue)===null||e===void 0?void 0:e.includes("hydrated"))){return}var i=(a=(r=document.documentElement.attributes.getNamedItem("class"))===null||r===void 0?void 0:r.value)!==null&&a!==void 0?a:"";var v=/(duet-theme-)([a-z0-9]*)/gi.exec(i);var n=(v===null||v===void 0?void 0:v.length)>2&&v[2].startsWith("turva")?"turva":"";var d=i.includes("duet-theme-turva2");var o=u(document.body);o.forEach((function(t){t.theme=n;if(d){t.classList.add("duet-theme-turva2")}else{t.classList.remove("duet-theme-turva2")}}))}))};{var a=new MutationObserver(r);a.observe(document.documentElement,{subtree:false,childList:false,characterData:false,attributes:true,attributeFilter:["class"],attributeOldValue:true})}}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as t,H as o,g as a}from"./p-4ad740e2.js";import{i as n}from"./p-12f16785.js";const i=class{constructor(t){e(this,t),this.onClick=()=>{this.open=!this.open},this.theme="",this.active=!1,this.open=!1,this.icon=void 0}handleFocus(e){e.composedPath().every((e=>e!==this.element))&&(this.open=!1)}componentWillLoad(){n(this),this.element.querySelectorAll("duet-slideout-link").forEach((e=>{e.menuItem=!0}))}async setFocus(e){this.button.focus(e)}render(){return t(o,{key:"d258b7901f9bc6e8c6d5be72c705441178343174"},t("div",{key:"8d089ee36780b154b591c28104fe576d16d44103",class:{"duet-slideout-panel-dropdown":!0,"duet-theme-turva":"turva"===this.theme,active:this.open}},t("button",{key:"428b9daa75c7a08099281e5ba581355fd74fbdc5",ref:e=>this.button=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{active:this.active,"duet-theme-turva":"turva"===this.theme},onClick:this.onClick},this.icon&&t("duet-icon",{key:"7bd9a51a7a92f315b4b02ffef0d7708beb565a8c",name:this.icon,size:"small",margin:"none",color:"secondary"}),t("span",{key:"b8670b3b90172b05734387490c087d7fa297acfa",class:"label"},t("slot",{key:"4260ac6d881d202a789b65042644e2d05e81181d",name:"label"}),t("duet-icon",{key:"0933c33444d037ea0a2187dfc2b657f0805d4571",class:"caret",name:"action-arrow-down-small",margin:"none",size:"xx-small",color:"secondary"}))),t("div",{key:"b244be18e4c62d771c5f6ef4b72cc05aa9bdf327",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0,hidden:!this.open,"duet-theme-turva":"turva"===this.theme}},t("slot",{key:"3400e2a37bc908cfa04587297e35f63f3aba6044"}))))}get element(){return a(this)}};i.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;width:100%;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:-0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel-dropdown{position:relative;width:100%;height:100%}.duet-slideout-panel-dropdown button{position:relative;display:flex;gap:16px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:center;text-decoration:none;cursor:pointer}.duet-slideout-panel-dropdown button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-slideout-panel-dropdown button:focus,.duet-slideout-panel-dropdown button:focus.duet-theme-turva,.duet-theme-turva2 .duet-slideout-panel-dropdown button:focus,.duet-slideout-panel-dropdown button:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-slideout-panel-dropdown button .label{position:relative;display:flex;gap:0.5rem;align-items:center;justify-content:center}.duet-slideout-panel-dropdown button.active .label::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:calc(100% - 18px);height:1px;content:"";background:rgb(0, 119, 179);transform:translateY(1px)}.duet-slideout-panel-dropdown .items{display:flex;visibility:visible;flex-direction:column;align-items:center;justify-content:center;width:100%;max-height:1000px;padding:4px 20px 8px 36px;overflow-y:auto;scrollbar-width:none;transition:max-height 0.3s ease-in, padding-bottom 0.3s ease-in;-ms-overflow-style:none}.duet-slideout-panel-dropdown .items::-webkit-scrollbar{display:none}.duet-slideout-panel-dropdown .items.hidden{visibility:hidden;max-height:0;padding:0;overflow:hidden;transition:max-height 0.3s ease-out, padding-bottom 0.3s ease-out}.duet-slideout-panel-dropdown.duet-theme-turva 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-slideout-panel-dropdown.duet-theme-turva button.active .label::after{background:rgb(198, 12, 48)}slot{--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:400;color:rgb(8, 42, 77)}.duet-theme-turva slot{color:rgb(23, 28, 58)}slot[name=label]{font-size:1rem;font-weight:600}:host(.duet-theme-turva2) .duet-slideout-panel-dropdown.duet-theme-turva button{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-slideout-panel-dropdown.duet-theme-turva button.active .label::after{background:rgb(230, 23, 64)}:host(.duet-theme-turva2) slot{color:rgb(23, 42, 59)}';export{i as duet_slideout_panel_dropdown}
4
+ import{r as e,h as t,H as o,g as a}from"./p-58cb1e7b.js";import{i as n}from"./p-1f01bee2.js";const i=class{constructor(t){e(this,t),this.onClick=()=>{this.open=!this.open},this.theme="",this.active=!1,this.open=!1,this.icon=void 0}handleFocus(e){e.composedPath().every((e=>e!==this.element))&&(this.open=!1)}componentWillLoad(){n(this),this.element.querySelectorAll("duet-slideout-link").forEach((e=>{e.menuItem=!0}))}async setFocus(e){this.button.focus(e)}render(){return t(o,{key:"d258b7901f9bc6e8c6d5be72c705441178343174"},t("div",{key:"8d089ee36780b154b591c28104fe576d16d44103",class:{"duet-slideout-panel-dropdown":!0,"duet-theme-turva":"turva"===this.theme,active:this.open}},t("button",{key:"428b9daa75c7a08099281e5ba581355fd74fbdc5",ref:e=>this.button=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{active:this.active,"duet-theme-turva":"turva"===this.theme},onClick:this.onClick},this.icon&&t("duet-icon",{key:"7bd9a51a7a92f315b4b02ffef0d7708beb565a8c",name:this.icon,size:"small",margin:"none",color:"secondary"}),t("span",{key:"b8670b3b90172b05734387490c087d7fa297acfa",class:"label"},t("slot",{key:"4260ac6d881d202a789b65042644e2d05e81181d",name:"label"}),t("duet-icon",{key:"0933c33444d037ea0a2187dfc2b657f0805d4571",class:"caret",name:"action-arrow-down-small",margin:"none",size:"xx-small",color:"secondary"}))),t("div",{key:"b244be18e4c62d771c5f6ef4b72cc05aa9bdf327",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0,hidden:!this.open,"duet-theme-turva":"turva"===this.theme}},t("slot",{key:"3400e2a37bc908cfa04587297e35f63f3aba6044"}))))}get element(){return a(this)}};i.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;width:100%;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:-0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel-dropdown{position:relative;width:100%;height:100%}.duet-slideout-panel-dropdown button{position:relative;display:flex;gap:16px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:center;text-decoration:none;cursor:pointer}.duet-slideout-panel-dropdown button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-slideout-panel-dropdown button:focus,.duet-slideout-panel-dropdown button:focus.duet-theme-turva,.duet-theme-turva2 .duet-slideout-panel-dropdown button:focus,.duet-slideout-panel-dropdown button:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-slideout-panel-dropdown button .label{position:relative;display:flex;gap:0.5rem;align-items:center;justify-content:center}.duet-slideout-panel-dropdown button.active .label::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:calc(100% - 18px);height:1px;content:"";background:rgb(0, 119, 179);transform:translateY(1px)}.duet-slideout-panel-dropdown .items{display:flex;visibility:visible;flex-direction:column;align-items:center;justify-content:center;width:100%;max-height:1000px;padding:4px 20px 8px 36px;overflow-y:auto;scrollbar-width:none;transition:max-height 0.3s ease-in, padding-bottom 0.3s ease-in;-ms-overflow-style:none}.duet-slideout-panel-dropdown .items::-webkit-scrollbar{display:none}.duet-slideout-panel-dropdown .items.hidden{visibility:hidden;max-height:0;padding:0;overflow:hidden;transition:max-height 0.3s ease-out, padding-bottom 0.3s ease-out}.duet-slideout-panel-dropdown.duet-theme-turva 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-slideout-panel-dropdown.duet-theme-turva button.active .label::after{background:rgb(198, 12, 48)}slot{--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:400;color:rgb(8, 42, 77)}.duet-theme-turva slot{color:rgb(23, 28, 58)}slot[name=label]{font-size:1rem;font-weight:600}:host(.duet-theme-turva2) .duet-slideout-panel-dropdown.duet-theme-turva button{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-slideout-panel-dropdown.duet-theme-turva button.active .label::after{background:rgb(230, 23, 64)}:host(.duet-theme-turva2) slot{color:rgb(23, 42, 59)}';export{i as duet_slideout_panel_dropdown}
@@ -0,0 +1,4 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,a,t,d){function i(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,r){function n(e){try{s(d.next(e))}catch(e){r(e)}}function o(e){try{s(d["throw"](e))}catch(e){r(e)}}function s(e){e.done?t(e.value):i(e.value).then(n,o)}s((d=d.apply(e,a||[])).next())}))};var __generator=this&&this.__generator||function(e,a){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},d,i,r,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(e){return function(a){return s([e,a])}}function s(o){if(d)throw new TypeError("Generator is already executing.");while(n&&(n=0,o[0]&&(t=0)),t)try{if(d=1,i&&(r=o[0]&2?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;if(i=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;i=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(r=t.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){t.label=o[1];break}if(o[0]===6&&t.label<r[1]){t.label=r[1];r=o;break}if(r&&t.label<r[2]){t.label=r[2];t.ops.push(o);break}if(r[2])t.ops.pop();t.trys.pop();continue}o=a.call(e,t)}catch(e){o=[6,e];i=0}finally{d=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,a,t){if(t||arguments.length===2)for(var d=0,i=a.length,r;d<i;d++){if(r||!(d in a)){if(!r)r=Array.prototype.slice.call(a,0,d);r[d]=a[d]}}return e.concat(r||Array.prototype.slice.call(a))};
2
+ /*!
3
+ * Built with Duet Design System
4
+ */System.register(["./p-d04f0720.system.js","./p-15f1493c.system.js","./p-e6b5a1c7.system.js","./p-752fa0fc.system.js","./p-30c4c974.system.js","./p-98636086.system.js","./p-f6e20b20.system.js","./p-453db857.system.js"],(function(e){"use strict";var a,t,d,i,r,n,o,s,p,m,u,c,h,l;return{setters:[function(e){a=e.r;t=e.c;d=e.h;i=e.F;r=e.H;n=e.g},function(e){o=e.i},function(e){s=e.c},function(e){p=e.i;m=e.s;u=e.u},function(e){c=e.g},function(e){h=e.s},function(e){l=e.g},function(){}],execute:function(){var x=["h1","h2","h3","h4","h5","h6"];var g="div";var f={title:"action-arrow-up",tags:"action arrow up caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 17.939a.752.752 0 0 1-.53-1.281L10.94 5.94c.283-.284.659-.44 1.059-.44.401 0 .777.156 1.06.438l10.721 10.72a.752.752 0 0 1-.53 1.281.743.743 0 0 1-.53-.22L12 7 1.28 17.719a.743.743 0 0 1-.53.22z"/></svg>'};var b='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:20px !important;display:flex;width:100%;vertical-align:top}:host(.duet-card-info){margin-bottom:16px !important}:host(.duet-m-0){margin:0 !important}:host{--duet-card-border-radius:12px}@media (min-width: 36em){:host{--duet-card-border-radius:16px}}.duet-card{padding:20px !important;position:relative;display:flex;flex-direction:column;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-style:normal;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-decoration:none;border-radius:var(--duet-card-border-radius);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-card.duet-p-0{padding:0 !important}.duet-card.duet-m-0{margin:0 !important}.duet-card:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-card:focus,.duet-card:focus.duet-theme-turva,.duet-theme-turva2 .duet-card:focus,.duet-card:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}@media (max-width: 20.5em){.duet-card.shadow-xxx-small{box-shadow:none}}@media (max-width: 22.5em){.duet-card.shadow-xx-small{box-shadow:none}}@media (max-width: 35.9375em){.duet-card.shadow-x-small{box-shadow:none}}@media (min-width: 36em){.duet-card.shadow-small{box-shadow:none}}@media (min-width: 48em){.duet-card.shadow-medium{box-shadow:none}}@media (min-width: 62em){.duet-card.shadow-large{box-shadow:none}}@media (min-width: 64.0625em){.duet-card.shadow-x-large{box-shadow:none}}@media (min-width: 76.25em){.duet-card.shadow-xx-large{box-shadow:none}}@media (min-width: 106.25em){.duet-card.shadow-xxx-large{box-shadow:none}}@media (min-width: 36em){.duet-card{padding:28px !important}}.duet-card.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}@media (min-width: 36em){.duet-card.xx-small{padding:12px !important}}@media (min-width: 36em){.duet-card.x-small{padding:20px !important}}@media (min-width: 36em){.duet-card.medium{padding:28px !important}}@media (min-width: 48em){.duet-card.medium{padding:36px !important}}@media (min-width: 36em){.duet-card.large{padding:36px !important}}@media (min-width: 48em){.duet-card.large{padding:48px !important}}@media (min-width: 36em){.duet-card.x-large{padding:48px !important}}@media (min-width: 48em){.duet-card.x-large{padding:72px !important}}.duet-card.duet-card-collapsed{padding-bottom:0 !important}@media (min-width: 36em){.duet-card.duet-card-collapsed{padding-bottom:0 !important}}.duet-card.info{background:rgba(4, 81, 128, 0.04) !important;box-shadow:none}.duet-card.info.duet-theme-turva{background:rgba(23, 28, 58, 0.035) !important}.duet-card.plain{box-shadow:none}.duet-card.plain:not(.duet-card-has-bg){background:transparent !important}.duet-card-heading-grid{display:flex;flex-direction:row}.duet-card-icon{align-self:center}.duet-card-heading-text{flex:1;word-break:break-word}.duet-card-secondary-heading{font-size:1rem;font-weight:600;word-break:break-word}.duet-card-secondary-heading--inline{display:block;flex:1;align-self:flex-start;line-height:1.875;text-align:right}@media (max-width: 22.5em){.duet-card-secondary-heading--inline{display:none}}.duet-card-secondary-heading--new-line{display:none}@media (max-width: 22.5em){.duet-card-secondary-heading--new-line{display:block}}.duet-card-heading{position:relative;display:block;padding:16px 20px;margin:-20px -20px 20px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-weight:800;color:rgb(8, 42, 77);border-bottom:1px solid rgb(212, 223, 229);border-radius:var(--duet-card-border-radius) var(--duet-card-border-radius) 0 0}@media (min-width: 36em){.duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}.none .duet-card-heading{padding:0 !important;margin:0}}.duet-card-collapsed .duet-card-heading{border-radius:var(--duet-card-border-radius)}.duet-card-image-mask+.duet-card-heading{border-radius:0}.duet-card-heading.duet-card-heading--collapsible{cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button{width:100%;font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit;text-align:left;cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button:focus{outline:0}:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus,:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus.duet-theme-turva,.duet-theme-turva2 :host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus,:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus{border-radius:var(--duet-card-border-radius)}.duet-card-collapsed .duet-card-heading{margin-bottom:0 !important;border-bottom:0 !important}.duet-theme-turva .duet-card-heading{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(222, 224, 228)}@media (min-width: 36em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 48em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 36em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}@media (min-width: 48em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}.medium .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.medium .duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}}@media (min-width: 48em){.medium .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}.large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.large .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}@media (min-width: 48em){.large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}.x-large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.x-large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}@media (min-width: 48em){.x-large .duet-card-heading{padding:39px 72px 40px !important;margin:-72px -72px 48px}}.none .duet-card-heading{padding:0;margin:0}.duet-card-footer{padding:20px;margin:20px -20px -20px;font-size:0.875rem;line-height:1.25;background:rgb(245, 248, 250);border-bottom-right-radius:4px;border-bottom-left-radius:4px}.duet-theme-turva .duet-card-footer{background:rgb(245, 247, 250)}@media (min-width: 36em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 36em){.xx-small .duet-card-footer{padding:10px 20px 11px !important;padding-left:12px !important;margin:12px -12px -12px}}@media (min-width: 36em){.x-small .duet-card-footer{padding:15px 28px 16px !important;padding-left:20px !important;margin:20px -20px -20px}}@media (min-width: 36em){.medium .duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.medium .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 36em){.large .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 48em){.large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 36em){.x-large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 48em){.x-large .duet-card-footer{padding:39px 72px 40px !important;margin:48px -72px -72px}}.none .duet-card-footer{padding:0;margin:0}.duet-card-content{flex:1 1 auto;width:100%}.duet-card-collapsed .duet-card-content{display:none}.duet-card-caret{position:relative;top:6px;align-self:flex-start;transition:300ms ease}[aria-expanded=false] .duet-card-caret{transform:rotate(-180deg)}.duet-card-image-mask{position:relative;width:calc(100% + 40px);margin:-20px 0 20px -20px;overflow:hidden;border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.small .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 36em){.medium .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 48em){.medium .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 28px -36px}}@media (min-width: 36em){.large .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 36px -36px}}@media (min-width: 48em){.large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 36em){.x-large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 48em){.x-large .duet-card-image-mask{width:calc(100% + 144px);margin:-72px 0 36px -72px}}.none .duet-card-image-mask{width:100%;padding:0;margin:0}.duet-card-image{display:block;width:102%;min-width:1px;max-width:102%;height:auto;min-height:1px;margin-left:-1%;transform:scale(1.0001);transition:transform 300ms ease}a.duet-card{transition:box-shadow 300ms ease, background-position 300ms ease}a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}a.duet-card:hover .duet-card-image{transform:scale(1.024)}.duet-theme-turva a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}a.duet-card:active{transform:translateY(1px);transition:none}:host(.duet-theme-turva2) .duet-card.duet-theme-turva{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-card.duet-theme-turva.info{background:rgb(253, 247, 242) !important}:host(.duet-theme-turva2) .duet-card.duet-theme-turva .duet-card-heading{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-card.duet-theme-turva .duet-card-footer{background:rgb(245, 246, 247)}';var w=b;var v=e("duet_card",function(){function e(e){var d=this;a(this,e);this.duetToggle=t(this,"duetToggle",7);this.cardId=s("DuetCard");this.togglePanel=function(e){e.preventDefault();d.open=!d.open;d.duetToggle.emit({component:"duet-card",originalEvent:e})};this.handleKeyDown=function(e){if(p(e)){d.togglePanel(e)}};this.accessibleLabel=undefined;this.heading="";this.secondaryHeading="";this.variation="default";this.collapsible=false;this.open=true;this.headingLevel="h2";this.headingBackground=undefined;this.icon=undefined;this.iconColor="currentColor";this.image=undefined;this.imageAlt=undefined;this.background="gray-lightest";this.padding="small";this.margin="auto";this.theme="";this.url=undefined;this.shadowBreakpoint=undefined}e.prototype.componentWillLoad=function(){o(this);this.hasHeadingSlot=!!this.element.querySelector(":scope > [slot='heading']");this.hasFooter=!!this.element.querySelector("[slot='footer']")};e.prototype.connectedCallback=function(){m(this)};e.prototype.disconnectedCallback=function(){u(this)};e.prototype.renderHeading=function(){var e;var a=h(this.headingLevel);var t=__spreadArray(__spreadArray([],x,true),[g],false).some((function(e){return e===a}))?a:"h2";var r={backgroundColor:l(this.headingBackground)};var n=d(i,null,d("div",{class:"duet-card-heading-grid"},this.icon&&d(i,null,d("duet-icon",{class:"duet-card-icon",name:this.icon,size:"medium",margin:"none",color:this.iconColor}),d("duet-spacer",{direction:"horizontal",size:"small"})),d("div",{class:"duet-card-heading-text"},this.heading?this.heading:d("slot",{name:"heading"})),this.secondaryHeading&&d(i,null,d("duet-spacer",{direction:"horizontal",size:"small"}),d("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--inline"},this.secondaryHeading)),this.collapsible&&d(i,null,d("duet-spacer",{direction:"horizontal",size:"small"}),d("duet-icon",{class:"duet-card-caret",icon:f.svg,size:"small",margin:"none",color:"currentColor"}))),this.secondaryHeading&&d("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--new-line"},this.secondaryHeading),d("slot",{name:"below-heading"}));if(this.collapsible){var o=(e=c(this.element,"heading"))===null||e===void 0?void 0:e.map((function(e){return e.textContent})).join(" ");return d(t,{style:r,class:"duet-card-heading duet-card-heading--collapsible",onClick:this.togglePanel,onKeyDown:this.handleKeyDown},d("button",{type:"button",class:{"duet-theme-turva":this.theme==="turva"},"aria-controls":this.cardId,"aria-expanded":this.open?"true":"false","aria-label":o},n))}else{return d(t,{style:r,class:"duet-card-heading"},n)}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){if(this.nativeCard){this.nativeCard.focus(e)}return[2]}))}))};e.prototype.render=function(){var e;var a=this;var t=this.url?"a":"div";var i={backgroundColor:l(this.background)};return d(r,{key:"d92cd6fb922f1165e1d341221ac3f5433252606c",class:{"duet-m-0":this.margin==="none","duet-card-info":this.variation==="info"}},d(t,{key:"7f870fc5061cd48c3464bd19ecd780fbb33f3e78",href:this.url,style:i,ref:function(e){return a.nativeCard=e},"aria-label":this.accessibleLabel,class:(e={"duet-card":true},e[this.padding]=true,e[this.variation]=true,e["shadow-".concat(this.shadowBreakpoint)]=!!this.shadowBreakpoint,e["duet-p-0"]=this.padding==="none",e["duet-theme-turva"]=this.theme==="turva",e["duet-card-has-bg"]=this.background!=="gray-lightest",e["duet-card-has-icon"]=!!this.icon,e["duet-card-collapsed"]=this.collapsible&&!this.open,e)},this.image&&d("div",{key:"fd6822d5747d2882842c9c2392b28d8b7a2693f2",class:"duet-card-image-mask"},d("img",{key:"a1952cf1f82a4f8593130d9990ef27a2a982e5d8",src:this.image,class:"duet-card-image",loading:"lazy",alt:this.imageAlt||"",role:this.imageAlt?null:"presentation"})),(this.heading||this.hasHeadingSlot)&&this.renderHeading(),d("div",{key:"a11237f14582fad87aaab15e4dccad5c6ffd7b0b",class:"duet-card-content",id:this.cardId},d("slot",{key:"80d250aa9dbb0f39a7683c6d2a1e1cdaca75cdd8"}),this.hasFooter&&d("div",{key:"87b27d7c69e3d5f3ab7bdb75cc76a1a11900ef0f",class:"duet-card-footer"},d("slot",{key:"1212e0d9a33349cf68c7b667069077e02ee30197",name:"footer"})))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());v.style=w}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-80993983.system.js","./p-385da7a9.system.js","./p-d4f972c3.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,n,a,i,o,r,s,d,c;return{setters:[function(e){t=e.r;n=e.h;a=e.H;i=e.g},function(e){o=e.i},function(e){r=e.a;s=e.c;d=e.d;c=e.g},function(){}],execute:function(){var u='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.duet-slideout-lang{display:flex;gap:16px;align-items:center;justify-content:flex-start;width:min-content;white-space:nowrap}::slotted(*){position:relative}::slotted(:not(:first-child)){padding-right:0;padding-left:0.5rem}::slotted(:not(:last-child))::after{position:absolute;top:25%;right:-14px;width:2px;height:50%;content:"";background:rgb(8, 42, 77)}.duet-theme-turva ::slotted(:not(:last-child))::after{background:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-theme-turva ::slotted(:not(:last-child))::after{background:rgb(23, 42, 59)}';var l=u;var b=e("duet_slideout_lang",function(){function e(e){t(this,e);this.chooseLangObject={en:"Choose language",fi:"Valitse kieli",sv:"Välj språk"};this.language=r();this.theme=""}e.prototype.componentWillLoad=function(){o(this)};e.prototype.connectedCallback=function(){s(this)};e.prototype.disconnectedCallback=function(){d(this)};e.prototype.render=function(){var e=c(this.chooseLangObject);return n(a,{key:"2d8d0ea8ccd8932027c97026ab0fd8ff94b13f5d"},n("div",{key:"8ecd4a30d2535356b74019ea8a6e6243bb05b88c",class:"duet-slideout-lang",role:"group","aria-label":e},n("duet-icon",{key:"825bf7a329128b49e03969c52b7abb3c76922fef",name:"navigation-language",margin:"none",color:"secondary",size:"small"}),n("slot",{key:"a43360f381937d2d74610b34de107c10e384a880"})))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());b.style=l}}}));
4
+ System.register(["./p-d04f0720.system.js","./p-15f1493c.system.js","./p-5a34eb53.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,n,a,i,o,r,s,d,c;return{setters:[function(e){t=e.r;n=e.h;a=e.H;i=e.g},function(e){o=e.i},function(e){r=e.a;s=e.c;d=e.d;c=e.g},function(){}],execute:function(){var u='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.duet-slideout-lang{display:flex;gap:16px;align-items:center;justify-content:flex-start;width:min-content;white-space:nowrap}::slotted(*){position:relative}::slotted(:not(:first-child)){padding-right:0;padding-left:0.5rem}::slotted(:not(:last-child))::after{position:absolute;top:25%;right:-14px;width:2px;height:50%;content:"";background:rgb(8, 42, 77)}.duet-theme-turva ::slotted(:not(:last-child))::after{background:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-theme-turva ::slotted(:not(:last-child))::after{background:rgb(23, 42, 59)}';var l=u;var b=e("duet_slideout_lang",function(){function e(e){t(this,e);this.chooseLangObject={en:"Choose language",fi:"Valitse kieli",sv:"Välj språk"};this.language=r();this.theme=""}e.prototype.componentWillLoad=function(){o(this)};e.prototype.connectedCallback=function(){s(this)};e.prototype.disconnectedCallback=function(){d(this)};e.prototype.render=function(){var e=c(this.chooseLangObject);return n(a,{key:"2d8d0ea8ccd8932027c97026ab0fd8ff94b13f5d"},n("div",{key:"8ecd4a30d2535356b74019ea8a6e6243bb05b88c",class:"duet-slideout-lang",role:"group","aria-label":e},n("duet-icon",{key:"825bf7a329128b49e03969c52b7abb3c76922fef",name:"navigation-language",margin:"none",color:"secondary",size:"small"}),n("slot",{key:"a43360f381937d2d74610b34de107c10e384a880"})))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());b.style=l}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-80993983.system.js","./p-385da7a9.system.js","./p-752fa0fc.system.js"],(function(e){"use strict";var t,r,i,n,a,s,o;return{setters:[function(e){t=e.r;r=e.h;i=e.H;n=e.g},function(e){a=e.i},function(e){s=e.s;o=e.u}],execute:function(){var c={title:"action-arrow-right-small",tags:"action arrow right small caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M19.5 12a2.3 2.3 0 0 1-.78 1.729L7.568 23.54a1.847 1.847 0 0 1-2.439-2.773l9.752-8.579a.25.25 0 0 0 0-.376L5.129 3.233A1.847 1.847 0 0 1 7.568.46l11.148 9.808A2.31 2.31 0 0 1 19.5 12z"/></svg>'};var u="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:list-item;width:auto}.container{display:flex;align-items:center}.hide{display:none}.duet-breadrumbs-arrow{display:block;align-items:center;justify-content:center;width:0.375rem;min-width:0.375rem;height:0.375rem;min-height:0.375rem}.duet-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;height:100%;padding:10px 8px;font-size:0.875rem;font-weight:inherit;line-height:1.25;color:inherit;text-decoration:none}.duet-breadcrumb:focus{outline:0}:host(.user-is-tabbing) .duet-breadcrumb:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-breadcrumb:focus,:host(.user-is-tabbing) .duet-breadcrumb:focus.duet-theme-turva,.duet-theme-turva2 :host(.user-is-tabbing) .duet-breadcrumb:focus,:host(.user-is-tabbing) .duet-breadcrumb:focus.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}";var d=u;var b=e("duet_breadcrumb",function(){function e(e){t(this,e);this.hasSlottedContent=false;this.theme="";this.href="";this.icon="arrow-right-small-icon";this.iconSize="x-small";this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){a(this)};e.prototype.connectedCallback=function(){s(this);this.hasSlottedContent=Array.from(this.element.childNodes).length>0};e.prototype.disconnectedCallback=function(){o(this)};e.prototype.render=function(){var e=this.href?"a":"span";return r(i,{key:"2207c094fc1739e35d0282ff76d24264b62ce36a",role:"listitem"},r("div",{key:"3cc99566d2766c3924b4d8b6ede7905180bcbbb9",class:"container"},this.icon==="arrow-right-small-icon"&&r("duet-icon",{key:"39dd9e66014828b37093cd6803823b2e15c3672e",class:"duet-breadrumbs-arrow",size:"auto",icon:c.svg,margin:"none",color:"currentColor"}),r(e,{key:"53f7d4b23f6beaa1d85c5ea9838c715b3f7c43b1",class:{"duet-breadcrumb":true,"duet-theme-turva":this.theme==="turva","icon-only":this.icon&&!this.hasSlottedContent},href:this.href||undefined,"aria-label":this.accessibleLabel||this.element.textContent,"aria-current":this.href?undefined:"page"},this.icon!=="arrow-right-small-icon"&&this.icon&&[r("duet-icon",{key:"619c49353a03cf8963836ef4fd76aefd9cfd60b2",size:this.iconSize,name:this.icon,margin:"none",color:"currentColor"}),this.hasSlottedContent&&r("duet-spacer",{key:"fd54d24f48cab981020265dd86753fcc46f0276c",size:"x-small",direction:"horizontal"})],r("slot",{key:"42334600d458ab1b9930d17f0b674fd06a1af09c"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());b.style=d}}}));
4
+ System.register(["./p-d04f0720.system.js","./p-15f1493c.system.js","./p-752fa0fc.system.js"],(function(e){"use strict";var t,r,i,n,a,s,o;return{setters:[function(e){t=e.r;r=e.h;i=e.H;n=e.g},function(e){a=e.i},function(e){s=e.s;o=e.u}],execute:function(){var c={title:"action-arrow-right-small",tags:"action arrow right small caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M19.5 12a2.3 2.3 0 0 1-.78 1.729L7.568 23.54a1.847 1.847 0 0 1-2.439-2.773l9.752-8.579a.25.25 0 0 0 0-.376L5.129 3.233A1.847 1.847 0 0 1 7.568.46l11.148 9.808A2.31 2.31 0 0 1 19.5 12z"/></svg>'};var u="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:list-item;width:auto}.container{display:flex;align-items:center}.hide{display:none}.duet-breadrumbs-arrow{display:block;align-items:center;justify-content:center;width:0.375rem;min-width:0.375rem;height:0.375rem;min-height:0.375rem}.duet-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;height:100%;padding:10px 8px;font-size:0.875rem;font-weight:inherit;line-height:1.25;color:inherit;text-decoration:none}.duet-breadcrumb:focus{outline:0}:host(.user-is-tabbing) .duet-breadcrumb:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-breadcrumb:focus,:host(.user-is-tabbing) .duet-breadcrumb:focus.duet-theme-turva,.duet-theme-turva2 :host(.user-is-tabbing) .duet-breadcrumb:focus,:host(.user-is-tabbing) .duet-breadcrumb:focus.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}";var d=u;var b=e("duet_breadcrumb",function(){function e(e){t(this,e);this.hasSlottedContent=false;this.theme="";this.href="";this.icon="arrow-right-small-icon";this.iconSize="x-small";this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){a(this)};e.prototype.connectedCallback=function(){s(this);this.hasSlottedContent=Array.from(this.element.childNodes).length>0};e.prototype.disconnectedCallback=function(){o(this)};e.prototype.render=function(){var e=this.href?"a":"span";return r(i,{key:"2207c094fc1739e35d0282ff76d24264b62ce36a",role:"listitem"},r("div",{key:"3cc99566d2766c3924b4d8b6ede7905180bcbbb9",class:"container"},this.icon==="arrow-right-small-icon"&&r("duet-icon",{key:"39dd9e66014828b37093cd6803823b2e15c3672e",class:"duet-breadrumbs-arrow",size:"auto",icon:c.svg,margin:"none",color:"currentColor"}),r(e,{key:"53f7d4b23f6beaa1d85c5ea9838c715b3f7c43b1",class:{"duet-breadcrumb":true,"duet-theme-turva":this.theme==="turva","icon-only":this.icon&&!this.hasSlottedContent},href:this.href||undefined,"aria-label":this.accessibleLabel||this.element.textContent,"aria-current":this.href?undefined:"page"},this.icon!=="arrow-right-small-icon"&&this.icon&&[r("duet-icon",{key:"619c49353a03cf8963836ef4fd76aefd9cfd60b2",size:this.iconSize,name:this.icon,margin:"none",color:"currentColor"}),this.hasSlottedContent&&r("duet-spacer",{key:"fd54d24f48cab981020265dd86753fcc46f0276c",size:"x-small",direction:"horizontal"})],r("slot",{key:"42334600d458ab1b9930d17f0b674fd06a1af09c"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());b.style=d}}}));
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import{r as t,c as e,h as d,H as s,g as o}from"./p-58cb1e7b.js";import{i}from"./p-1f01bee2.js";import{c as g}from"./p-5e59e970.js";import{s as u,u as c}from"./p-a45e3f8b.js";const l=class{constructor(d){t(this,d),this.duetChange=e(this,"duetChange",3),this.toggleId=g("DuetToggle"),this.onClick=t=>{t.preventDefault(),this.setFocus(),this.checked=!this.checked},this.theme="",this.margin="auto",this.accessibleActiveDescendant=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.label="label",this.labelColor=void 0,this.labelWeight=void 0,this.labelPosition="top",this.required=!1,this.disabled=!1,this.checked=!1,this.value=void 0,this.identifier=void 0,this.name=void 0,this.role=void 0}checkedChanged(t){this.duetChange.emit({checked:t,value:this.value,component:"duet-toggle"})}componentWillLoad(){i(this),void 0===this.value&&(this.value=this.identifier)}connectedCallback(){u(this)}disconnectedCallback(){c(this)}async setFocus(t){this.nativeInput.focus(t)}render(){const t=this.identifier||this.toggleId;return d(s,{onClick:this.disabled?void 0:this.onClick,class:{"duet-m-0":"none"===this.margin}},d("div",{class:{"duet-toggle":!0,"duet-theme-turva":"turva"===this.theme,"duet-side-label":"top"!==this.labelPosition,"duet-reverse-label":"right"===this.labelPosition}},d("duet-label",{theme:this.theme,color:this.labelColor,weight:this.labelWeight,for:t,margin:"top"===this.labelPosition?"auto":"none"},this.label),d("label",{class:"duet-switch",htmlFor:t},d("input",{type:"checkbox",value:this.value,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,id:t,role:this.role,name:this.name,checked:this.checked,required:this.required,disabled:this.disabled,ref:t=>this.nativeInput=t}),d("div",{class:"duet-slider"}))))}get element(){return o(this)}static get watchers(){return{checked:["checkedChanged"]}}};l.style='*.sc-duet-toggle,*.sc-duet-toggle::after,*.sc-duet-toggle::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.sc-duet-toggle-h{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:8px !important;margin-bottom:12px !important;-webkit-user-select:none;user-select:none;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-toggle-h:last-child,.sc-duet-toggle-h:last-of-type{margin-right:0 !important}[alignment=form-distribute]>.sc-duet-toggle-h:last-of-type:not(:last-child){margin-right:8px !important}.duet-m-0.sc-duet-toggle-h{margin:0 !important}duet-label.sc-duet-toggle{display:block !important;width:100% !important}.duet-side-label.sc-duet-toggle{display:flex;gap:12px;align-items:center}.duet-side-label.sc-duet-toggle duet-label.sc-duet-toggle{width:auto !important}.duet-reverse-label.sc-duet-toggle{flex-direction:row-reverse}.duet-switch.sc-duet-toggle{position:relative;display:block;width:48px;height:28px}.duet-switch.sc-duet-toggle input.sc-duet-toggle{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;border:0 !important;clip:rect(1px, 1px, 1px, 1px) !important}.duet-switch.sc-duet-toggle input.sc-duet-toggle:checked+.duet-slider.sc-duet-toggle{background-color:rgb(0, 119, 179);box-shadow:none}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:checked+.duet-slider.sc-duet-toggle{background-color:rgb(198, 12, 48)}.duet-switch.sc-duet-toggle input.sc-duet-toggle:checked+.duet-slider.sc-duet-toggle::before{background-color:rgb(255, 255, 255);box-shadow:-1px 0 2px #004467;transform:translateX(20px)}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:checked+.duet-slider.sc-duet-toggle::before{background-color:rgb(255, 255, 255);box-shadow:-1px 0 2px #660619}.duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled+.duet-slider.sc-duet-toggle{cursor:default}.duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled+.duet-slider.sc-duet-toggle::before{box-shadow:none}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled+.duet-slider.sc-duet-toggle::before{box-shadow:none}.duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:not(:checked)+.duet-slider.sc-duet-toggle{background:#bfcbd2}.duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:not(:checked)+.duet-slider.sc-duet-toggle::before{background:rgb(255, 255, 255);box-shadow:none}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:not(:checked)+.duet-slider.sc-duet-toggle{background:#c7c9cf}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:not(:checked)+.duet-slider.sc-duet-toggle::before{background:rgb(255, 255, 255)}.duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:checked+.duet-slider.sc-duet-toggle{background:#80bbd9}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:checked+.duet-slider.sc-duet-toggle{background:#e38698}.user-is-tabbing.sc-duet-toggle-h .duet-switch.sc-duet-toggle input.sc-duet-toggle:focus+.duet-slider.sc-duet-toggle{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .user-is-tabbing.sc-duet-toggle-h .duet-switch.sc-duet-toggle input.sc-duet-toggle:focus+.duet-slider.sc-duet-toggle,.user-is-tabbing.sc-duet-toggle-h .duet-switch.sc-duet-toggle input.sc-duet-toggle:focus+.duet-slider.duet-theme-turva.sc-duet-toggle,.duet-theme-turva2 .user-is-tabbing.sc-duet-toggle-h .duet-switch.sc-duet-toggle input.sc-duet-toggle:focus+.duet-slider.sc-duet-toggle,.user-is-tabbing.sc-duet-toggle-h .duet-switch.sc-duet-toggle input.sc-duet-toggle:focus+.duet-slider.duet-theme-turva2.sc-duet-toggle{outline-color:rgba(53, 79, 101, 0.8)}.duet-slider.sc-duet-toggle{position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer;background-color:rgb(127, 150, 165);border-radius:24px;transition:background-color 300ms ease}.duet-slider.sc-duet-toggle::before{position:absolute;bottom:2px;left:2px;width:24px;height:24px;content:"";background-color:rgb(255, 255, 255);border-radius:50%;box-shadow:1px 0 2px 0 #5d6266;transition:300ms ease}.duet-theme-turva.sc-duet-toggle .duet-slider.sc-duet-toggle{background-color:rgb(143, 147, 158)}.duet-theme-turva.sc-duet-toggle .duet-slider.sc-duet-toggle::before{background-color:rgb(255, 255, 255);box-shadow:1px 0 2px 0 #00334d}.duet-theme-turva2.sc-duet-toggle-h .duet-switch.sc-duet-toggle input.sc-duet-toggle:checked+.duet-slider.sc-duet-toggle{background-color:rgb(230, 23, 64)}.duet-theme-turva2.sc-duet-toggle-h .duet-switch.sc-duet-toggle input.sc-duet-toggle:checked+.duet-slider.sc-duet-toggle::before{box-shadow:-1px 0 2px #890e26;transform:translateX(20px)}.duet-theme-turva2.sc-duet-toggle-h .duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:checked+.duet-slider.sc-duet-toggle{background:#f38ba0}';export{l as duet_toggle}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as t,c as e,h as i,H as s,g as o}from"./p-4ad740e2.js";import{q as a}from"./p-9d9457bf.js";import{o as n,f as r,s as h,c as u,b as d}from"./p-81287261.js";import{i as p}from"./p-12f16785.js";import{f as l}from"./p-c97dbc9b.js";import{c,f as m,b,o as f}from"./p-a45e3f8b.js";import{a as g}from"./p-135e72bf.js";import{T as v}from"./p-8cb0e6bd.js";import{a as x}from"./p-f11208c3.js";import"./p-9c3c64b9.js";const y=class{constructor(i){t(this,i),this.duetToggle=e(this,"duetToggle",7),this.filterLabel={en:"Filter menu",fi:"Suodata valikkoa",sv:"Filtrera meny"},this.filterResultCountLabel={en:"items match filter",fi:"kohtaa vastaa suodatinta",sv:"menyalternativ matchar filtret"},this.setOpenButton=t=>{if(t)try{const e=t;e.accessiblePopup="true",e.accessibleExpanded=!1,this.controllerIcon&&e.setAttribute("trailing-icon","action-arrow-down-small"),this.openButton=e}catch(t){}},this.openButtonEventListener=()=>{this.toggle()},this.updatePlacement=async()=>{if(!this.openButton)return;const t=[n({mainAxis:this.mainAxisOffset,crossAxis:this.crossAxisOffset}),this.allowVerticalFlip&&r(),h({padding:5})].filter(Boolean),e=await u(this.openButton,this.menuElement,{middleware:t,placement:this.placement,strategy:this.position});this.menuY=e.y,this.menuX=e.x},this.getNonFilteredItems=()=>this.showFilterInput?this.itemElements.filter((t=>"none"!==t.style.display)):this.itemElements,this.filterItems=()=>{var t;const e=null===(t=this.filterInput.value)||void 0===t?void 0:t.toLocaleLowerCase(),i=this.itemElements;i.forEach((t=>{var i;t.style.display=!e||t.textContent.toLowerCase().includes(e)||(null===(i=t.value)||void 0===i?void 0:i.toLowerCase().includes(e))?"":"none"})),this.filterResultCount=i.filter((t=>"none"!==t.style.display)).length},this.handleKeyDownOnFilter=t=>{var e;c(t)&&(null===(e=this.getNonFilteredItems()[0])||void 0===e||e.setFocus())},this.open=!1,this.menuY=void 0,this.menuX=void 0,this.filterResultCount=void 0,this.language=g(),this.accessibleLabel=void 0,this.accessibleRole="menu",this.theme="",this.skipTeleport=void 0,this.placement="bottom-start",this.forcePlacement=!1,this.allowVerticalFlip=!0,this.position="absolute",this.mainAxisOffset=0,this.crossAxisOffset=0,this.controllerIcon="action-arrow-down-small",this.scrollLimit=void 0,this.showFilterInput=void 0}get controller(){return this._controller}set controller(t){this._controller!==t&&(this._controller=t,"string"==typeof t?(this.setOpenButton(document.getElementById(t)),this.openButton&&this.openButton.addEventListener("click",this.openButtonEventListener)):this.setOpenButton(t))}get opener(){return this._controller}set opener(t){this.controller=t}componentWillLoad(){p(this)}componentDidLoad(){this.updatePlacement()}connectedCallback(){this.teleport||(this.teleport=new v(this.element)),this.teleport&&this.teleport.activate()}disconnectedCallback(){this.autoUpdateCleanup&&this.autoUpdateCleanup(),this.openButton&&(this.openButton.removeEventListener("click",this.openButtonEventListener),this.controllerIcon&&this.openButton.removeAttribute("trailing-icon"))}handleKeyUp(t){this.open&&m(t)&&this.hide()}async handleKeyDown(t){const e=this.getNonFilteredItems();if(this.open){if(c(t)){t.preventDefault();const i=await this.getFocusedItemIndex();-1!==i&&(i<e.length-1?e[i+1].setFocus():e[0].setFocus())}if(b(t)){t.preventDefault();const i=await this.getFocusedItemIndex();-1!==i&&(0===i?this.showFilterInput?this.filterInput.setFocus():e[e.length-1].setFocus():e[i-1].setFocus())}f(t)&&"menu"===this.accessibleRole&&(t.preventDefault(),this.hide())}}handleClick(t){const e=t.composedPath().every((t=>t!==this.element&&t!==this.openButton));this.open&&e&&this.hide()}async isOpen(){return this.open}async show(){this.open=!0}async hide(){this.autoUpdateCleanup&&this.autoUpdateCleanup(),this.open=!1}async toggle(){this.open?this.hide():this.show()}handleOpenChange(t,e){if(!!t!=!!e)if(this.open&&!e){const t={ancestorScroll:!this.forcePlacement};this.openButton&&(this.openButton.accessibleExpanded=!0),"listbox"!==this.accessibleRole&&this.teleport.makeSiblingsInert(),this.updatePlacement(),this.menuElement&&this.openButton&&(this.autoUpdateCleanup=d(this.openButton,this.menuElement,this.updatePlacement,t)),this.showFilterInput&&(this.filterInput.value="",this.filterItems()),setTimeout((()=>{"menu"===this.accessibleRole&&this.itemElements[0].setFocus(),this.duetToggle.emit({open:this.open,component:"duet-popup-menu"})}),200)}else!this.open&&e&&(this.openButton&&(this.openButton.accessibleExpanded=!1),this.autoUpdateCleanup&&this.autoUpdateCleanup(),setTimeout((()=>{"menu"===this.accessibleRole&&l(this.openButton),this.duetToggle.emit({open:this.open,component:"duet-popup-menu"}),"listbox"!==this.accessibleRole&&this.teleport.removeInertFromSiblings()}),200))}get itemElements(){return Array.from(this.element.querySelectorAll(":scope duet-popup-menu-item"))}getAllPrecedingMatchingSiblings(t,e){const i=t.previousElementSibling;if(i){const t=this.getAllPrecedingMatchingSiblings(i,e);return(null==i?void 0:i.matches(e))&&t.push(i),t}return[]}get popupMenuStyleHeight(){var t;const e=Array.from(this.element.querySelectorAll(":scope duet-popup-menu-item, :scope duet-notification")).filter((t=>"none"!==t.style.display));if(e.length>0&&this.scrollLimit){const i=e.slice(0,this.scrollLimit-1);return`${i.reduce(((t,e)=>t+e.offsetHeight),0)+((null===(t=this.filterInput)||void 0===t?void 0:t.offsetHeight)||0)+17*this.getAllPrecedingMatchingSiblings(i[i.length-1],"duet-divider").length+2*Number(a.replace("px",""))}px`}return"auto"}async getFocusedItemIndex(){const t=this.getNonFilteredItems();for(let e=0;e<t.length;e++)if(await t[e].isFocused())return e;return-1}render(){return i(s,{key:"8162bd3dcf089f1fbd0890ba90752b8375845e02"},i("div",{key:"a960165406ca70e48975935be91407e196af3acb",ref:t=>{this.menuElement=t},style:{top:`${this.menuY}px`,left:`${this.menuX}px`,position:this.position,overflowY:"auto",height:this.popupMenuStyleHeight},class:{open:this.open,"duet-popup-menu-list":!0,"duet-theme-turva":"turva"===this.theme,"scroll-visible":this.scrollLimit<this.itemElements.length},role:this.accessibleRole,"aria-label":this.accessibleLabel},this.showFilterInput&&i("div",{key:"41ff2d5c37e1b82432abe9ae940120c4f27c2de7"},i("duet-input",{key:"aeeebdf64aa13db39dc6bb49e9a33a9eddf71171",ref:t=>this.filterInput=t,label:this.filterLabel[this.language],"label-hidden":!0,expand:!0,margin:"none",type:"search",onDuetInput:this.filterItems,onKeyDown:this.handleKeyDownOnFilter}),i("duet-visually-hidden",{key:"22bffb507bc56003ed6df5c58255bba01938e985"},i("span",{key:"2720b44f182bd5590999b37d4ac9157bf3d72a1c",role:"status"},`\n ${this.filterResultCount}/${this.itemElements.length}\n ${this.filterResultCountLabel[this.language]}\n `)),i("duet-spacer",{key:"ab6b1d79410935e50a5c6a15fc5f66d141ee5590",size:"xx-small"})),i("slot",{key:"6265f5a9f3cde710961b4e815da45501016f4056"})))}get element(){return o(this)}static get watchers(){return{open:["handleOpenChange"]}}};y.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.duet-popup-menu-list{position:absolute;top:0;left:0;z-index:950;visibility:hidden !important;width:max-content;min-width:175px;padding:8px;margin:0;color:rgb(8, 42, 77);list-style:none;background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transform:scaleY(0);transform-origin:top center;transition:transform 300ms ease, visibility 300ms ease, opacity 300ms ease}.duet-popup-menu-list.open{visibility:visible !important;opacity:1;transform:scaleY(1)}.duet-popup-menu-list.fixed{position:fixed}.duet-popup-menu-list.scroll-visible{overflow-y:scroll;scroll-margin:20px}.duet-popup-menu-list.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255)}::slotted(duet-notification){max-width:360px}slot{--divider-margin:var(--space-x-small, 8px)}:host(.duet-theme-turva2) .duet-popup-menu-list.duet-theme-turva{color:rgb(23, 42, 59) !important}";const k=class{constructor(i){t(this,i),this.duetFocus=e(this,"duetFocus",7),this.duetBlur=e(this,"duetBlur",7),this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),this.onFocus=t=>{this.focus=!0,this.duetFocus.emit({originalEvent:t,value:this.value,component:"duet-popup-menu-item"})},this.onBlur=t=>{this.focus=!1,this.duetBlur.emit({originalEvent:t,value:this.value,component:"duet-popup-menu-item"})},this.focus=!1,this.accessibleLabel=void 0,this.accessibleRole="menuitem",this.theme="",this.url=void 0,this.external=!1,this.targetLanguage=void 0,this.value=void 0,this.leadingIcon=void 0,this.leadingIconColor=void 0,this.trailingIcon=void 0,this.trailingText=void 0,this.active=!1,this.activeDescendant=!1}componentWillLoad(){p(this)}async setFocus(t){setTimeout((()=>this.itemElement.focus(t)),200)}async isFocused(){return this.focus}render(){const t=this.url?"a":"button";return i(s,{key:"d62c7b684bbf98e2ff38ae6303e7aaad03942ff9",role:"menuitem"===this.accessibleRole&&this.isSafariBrowser?null:this.accessibleRole},i(t,{key:"171d91b4a5f612c2b60a7c908ca0da3a0824e2fd",ref:t=>this.itemElement=t,tabIndex:"listitem"===this.accessibleRole?0:-1,onFocus:this.onFocus,onBlur:this.onBlur,role:"a"===t?"link":"button","aria-label":this.accessibleLabel,class:{"duet-popup-menu-item":!0,active:this.active,"duet-theme-turva":"turva"===this.theme,"active-descendant":this.activeDescendant},value:this.value,href:this.url,target:this.external?"_blank":void 0,rel:this.external?"noopener":void 0,lang:"button"===t?void 0:this.targetLanguage,hreflang:"button"===t?void 0:this.targetLanguage},this.leadingIcon&&i("duet-icon",{key:"37db0ce85c42bb23dd33c522a5ebcaa174df58fa",name:this.leadingIcon,size:"x-small",color:this.leadingIconColor?this.leadingIconColor:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),i("span",{key:"8af23f7a78dc25f8d1d05adfdd8dc3bd1d489af8",class:"duet-popup-menu-item-label"},i("slot",{key:"ef86e949a4bacdc7755e6e49f5814d554584a9be"})),(this.trailingIcon||this.active||this.url&&this.external)&&i("duet-icon",{key:"e20daf8a4e639ab2369cc9b8f5a1c725480f60ad",name:this.url&&this.external?x.title:this.active?"messaging-checked-small":this.trailingIcon,size:this.url&&this.external||this.active?"xx-small":"x-small",color:"currentColor",class:"duet-popup-menu-item-trailing",margin:"none"}),this.trailingText&&i("span",{key:"e2dd555bf026bf0197428aec002bb0d49f532bb5",class:"duet-popup-menu-item-trailing"},this.trailingText)))}get element(){return o(this)}};k.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start}.duet-popup-menu-item{position:relative;z-index:1;display:flex;flex-grow:1;gap:12px;align-items:center;height:100%;padding: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;line-height:1.5;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer;border-radius:4px}.duet-popup-menu-item:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-popup-menu-item:focus,.duet-popup-menu-item:focus.duet-theme-turva,.duet-theme-turva2 .duet-popup-menu-item:focus,.duet-popup-menu-item:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-popup-menu-item.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-popup-menu-item.active{z-index:0;background:rgb(240, 247, 250)}.duet-popup-menu-item.active.duet-theme-turva{background:rgb(245, 247, 250)}.duet-popup-menu-item:hover{background:rgb(228, 241, 247)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(222, 224, 228)}.duet-popup-menu-item .duet-popup-menu-item-label{flex-grow:1}.duet-popup-menu-item .duet-popup-menu-item-trailing{padding-left:20px}.active-descendant{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .active-descendant,.active-descendant.duet-theme-turva,.duet-theme-turva2 .active-descendant,.active-descendant.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}:host(.duet-theme-turva2) .duet-popup-menu-item.duet-theme-turva{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-popup-menu-item.active.duet-theme-turva{background:rgb(253, 247, 242)}:host(.duet-theme-turva2) .duet-popup-menu-item:hover.duet-theme-turva{background:rgb(251, 235, 225)}';export{y as duet_popup_menu,k as duet_popup_menu_item}
4
+ import{r as t,c as e,h as i,H as s,g as o}from"./p-58cb1e7b.js";import{q as a}from"./p-b0af0dbc.js";import{o as n,f as r,s as h,c as u,b as d}from"./p-81287261.js";import{i as p}from"./p-1f01bee2.js";import{f as l}from"./p-9481e189.js";import{c,f as m,b,o as f}from"./p-a45e3f8b.js";import{a as g}from"./p-8ee40bae.js";import{T as v}from"./p-8cb0e6bd.js";import{a as x}from"./p-f11208c3.js";import"./p-9c3c64b9.js";const y=class{constructor(i){t(this,i),this.duetToggle=e(this,"duetToggle",7),this.filterLabel={en:"Filter menu",fi:"Suodata valikkoa",sv:"Filtrera meny"},this.filterResultCountLabel={en:"items match filter",fi:"kohtaa vastaa suodatinta",sv:"menyalternativ matchar filtret"},this.setOpenButton=t=>{if(t)try{const e=t;e.accessiblePopup="true",e.accessibleExpanded=!1,this.controllerIcon&&e.setAttribute("trailing-icon","action-arrow-down-small"),this.openButton=e}catch(t){}},this.openButtonEventListener=()=>{this.toggle()},this.updatePlacement=async()=>{if(!this.openButton)return;const t=[n({mainAxis:this.mainAxisOffset,crossAxis:this.crossAxisOffset}),this.allowVerticalFlip&&r(),h({padding:5})].filter(Boolean),e=await u(this.openButton,this.menuElement,{middleware:t,placement:this.placement,strategy:this.position});this.menuY=e.y,this.menuX=e.x},this.getNonFilteredItems=()=>this.showFilterInput?this.itemElements.filter((t=>"none"!==t.style.display)):this.itemElements,this.filterItems=()=>{var t;const e=null===(t=this.filterInput.value)||void 0===t?void 0:t.toLocaleLowerCase(),i=this.itemElements;i.forEach((t=>{var i;t.style.display=!e||t.textContent.toLowerCase().includes(e)||(null===(i=t.value)||void 0===i?void 0:i.toLowerCase().includes(e))?"":"none"})),this.filterResultCount=i.filter((t=>"none"!==t.style.display)).length},this.handleKeyDownOnFilter=t=>{var e;c(t)&&(null===(e=this.getNonFilteredItems()[0])||void 0===e||e.setFocus())},this.open=!1,this.menuY=void 0,this.menuX=void 0,this.filterResultCount=void 0,this.language=g(),this.accessibleLabel=void 0,this.accessibleRole="menu",this.theme="",this.skipTeleport=void 0,this.placement="bottom-start",this.forcePlacement=!1,this.allowVerticalFlip=!0,this.position="absolute",this.mainAxisOffset=0,this.crossAxisOffset=0,this.controllerIcon="action-arrow-down-small",this.scrollLimit=void 0,this.showFilterInput=void 0}get controller(){return this._controller}set controller(t){this._controller!==t&&(this._controller=t,"string"==typeof t?(this.setOpenButton(document.getElementById(t)),this.openButton&&this.openButton.addEventListener("click",this.openButtonEventListener)):this.setOpenButton(t))}get opener(){return this._controller}set opener(t){this.controller=t}componentWillLoad(){p(this)}componentDidLoad(){this.updatePlacement()}connectedCallback(){this.teleport||(this.teleport=new v(this.element)),this.teleport&&this.teleport.activate()}disconnectedCallback(){this.autoUpdateCleanup&&this.autoUpdateCleanup(),this.openButton&&(this.openButton.removeEventListener("click",this.openButtonEventListener),this.controllerIcon&&this.openButton.removeAttribute("trailing-icon"))}handleKeyUp(t){this.open&&m(t)&&this.hide()}async handleKeyDown(t){const e=this.getNonFilteredItems();if(this.open){if(c(t)){t.preventDefault();const i=await this.getFocusedItemIndex();-1!==i&&(i<e.length-1?e[i+1].setFocus():e[0].setFocus())}if(b(t)){t.preventDefault();const i=await this.getFocusedItemIndex();-1!==i&&(0===i?this.showFilterInput?this.filterInput.setFocus():e[e.length-1].setFocus():e[i-1].setFocus())}f(t)&&"menu"===this.accessibleRole&&(t.preventDefault(),this.hide())}}handleClick(t){const e=t.composedPath().every((t=>t!==this.element&&t!==this.openButton));this.open&&e&&this.hide()}async isOpen(){return this.open}async show(){this.open=!0}async hide(){this.autoUpdateCleanup&&this.autoUpdateCleanup(),this.open=!1}async toggle(){this.open?this.hide():this.show()}handleOpenChange(t,e){if(!!t!=!!e)if(this.open&&!e){const t={ancestorScroll:!this.forcePlacement};this.openButton&&(this.openButton.accessibleExpanded=!0),"listbox"!==this.accessibleRole&&this.teleport.makeSiblingsInert(),this.updatePlacement(),this.menuElement&&this.openButton&&(this.autoUpdateCleanup=d(this.openButton,this.menuElement,this.updatePlacement,t)),this.showFilterInput&&(this.filterInput.value="",this.filterItems()),setTimeout((()=>{"menu"===this.accessibleRole&&this.itemElements[0].setFocus(),this.duetToggle.emit({open:this.open,component:"duet-popup-menu"})}),200)}else!this.open&&e&&(this.openButton&&(this.openButton.accessibleExpanded=!1),this.autoUpdateCleanup&&this.autoUpdateCleanup(),setTimeout((()=>{"menu"===this.accessibleRole&&l(this.openButton),this.duetToggle.emit({open:this.open,component:"duet-popup-menu"}),"listbox"!==this.accessibleRole&&this.teleport.removeInertFromSiblings()}),200))}get itemElements(){return Array.from(this.element.querySelectorAll(":scope duet-popup-menu-item"))}getAllPrecedingMatchingSiblings(t,e){const i=t.previousElementSibling;if(i){const t=this.getAllPrecedingMatchingSiblings(i,e);return(null==i?void 0:i.matches(e))&&t.push(i),t}return[]}get popupMenuStyleHeight(){var t;const e=Array.from(this.element.querySelectorAll(":scope duet-popup-menu-item, :scope duet-notification")).filter((t=>"none"!==t.style.display));if(e.length>0&&this.scrollLimit){const i=e.slice(0,this.scrollLimit-1);return`${i.reduce(((t,e)=>t+e.offsetHeight),0)+((null===(t=this.filterInput)||void 0===t?void 0:t.offsetHeight)||0)+17*this.getAllPrecedingMatchingSiblings(i[i.length-1],"duet-divider").length+2*Number(a.replace("px",""))}px`}return"auto"}async getFocusedItemIndex(){const t=this.getNonFilteredItems();for(let e=0;e<t.length;e++)if(await t[e].isFocused())return e;return-1}render(){return i(s,{key:"8162bd3dcf089f1fbd0890ba90752b8375845e02"},i("div",{key:"a960165406ca70e48975935be91407e196af3acb",ref:t=>{this.menuElement=t},style:{top:`${this.menuY}px`,left:`${this.menuX}px`,position:this.position,overflowY:"auto",height:this.popupMenuStyleHeight},class:{open:this.open,"duet-popup-menu-list":!0,"duet-theme-turva":"turva"===this.theme,"scroll-visible":this.scrollLimit<this.itemElements.length},role:this.accessibleRole,"aria-label":this.accessibleLabel},this.showFilterInput&&i("div",{key:"41ff2d5c37e1b82432abe9ae940120c4f27c2de7"},i("duet-input",{key:"aeeebdf64aa13db39dc6bb49e9a33a9eddf71171",ref:t=>this.filterInput=t,label:this.filterLabel[this.language],"label-hidden":!0,expand:!0,margin:"none",type:"search",onDuetInput:this.filterItems,onKeyDown:this.handleKeyDownOnFilter}),i("duet-visually-hidden",{key:"22bffb507bc56003ed6df5c58255bba01938e985"},i("span",{key:"2720b44f182bd5590999b37d4ac9157bf3d72a1c",role:"status"},`\n ${this.filterResultCount}/${this.itemElements.length}\n ${this.filterResultCountLabel[this.language]}\n `)),i("duet-spacer",{key:"ab6b1d79410935e50a5c6a15fc5f66d141ee5590",size:"xx-small"})),i("slot",{key:"6265f5a9f3cde710961b4e815da45501016f4056"})))}get element(){return o(this)}static get watchers(){return{open:["handleOpenChange"]}}};y.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.duet-popup-menu-list{position:absolute;top:0;left:0;z-index:950;visibility:hidden !important;width:max-content;min-width:175px;padding:8px;margin:0;color:rgb(8, 42, 77);list-style:none;background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transform:scaleY(0);transform-origin:top center;transition:transform 300ms ease, visibility 300ms ease, opacity 300ms ease}.duet-popup-menu-list.open{visibility:visible !important;opacity:1;transform:scaleY(1)}.duet-popup-menu-list.fixed{position:fixed}.duet-popup-menu-list.scroll-visible{overflow-y:scroll;scroll-margin:20px}.duet-popup-menu-list.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255)}::slotted(duet-notification){max-width:360px}slot{--divider-margin:var(--space-x-small, 8px)}:host(.duet-theme-turva2) .duet-popup-menu-list.duet-theme-turva{color:rgb(23, 42, 59) !important}";const k=class{constructor(i){t(this,i),this.duetFocus=e(this,"duetFocus",7),this.duetBlur=e(this,"duetBlur",7),this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),this.onFocus=t=>{this.focus=!0,this.duetFocus.emit({originalEvent:t,value:this.value,component:"duet-popup-menu-item"})},this.onBlur=t=>{this.focus=!1,this.duetBlur.emit({originalEvent:t,value:this.value,component:"duet-popup-menu-item"})},this.focus=!1,this.accessibleLabel=void 0,this.accessibleRole="menuitem",this.theme="",this.url=void 0,this.external=!1,this.targetLanguage=void 0,this.value=void 0,this.leadingIcon=void 0,this.leadingIconColor=void 0,this.trailingIcon=void 0,this.trailingText=void 0,this.active=!1,this.activeDescendant=!1}componentWillLoad(){p(this)}async setFocus(t){setTimeout((()=>this.itemElement.focus(t)),200)}async isFocused(){return this.focus}render(){const t=this.url?"a":"button";return i(s,{key:"d62c7b684bbf98e2ff38ae6303e7aaad03942ff9",role:"menuitem"===this.accessibleRole&&this.isSafariBrowser?null:this.accessibleRole},i(t,{key:"171d91b4a5f612c2b60a7c908ca0da3a0824e2fd",ref:t=>this.itemElement=t,tabIndex:"listitem"===this.accessibleRole?0:-1,onFocus:this.onFocus,onBlur:this.onBlur,role:"a"===t?"link":"button","aria-label":this.accessibleLabel,class:{"duet-popup-menu-item":!0,active:this.active,"duet-theme-turva":"turva"===this.theme,"active-descendant":this.activeDescendant},value:this.value,href:this.url,target:this.external?"_blank":void 0,rel:this.external?"noopener":void 0,lang:"button"===t?void 0:this.targetLanguage,hreflang:"button"===t?void 0:this.targetLanguage},this.leadingIcon&&i("duet-icon",{key:"37db0ce85c42bb23dd33c522a5ebcaa174df58fa",name:this.leadingIcon,size:"x-small",color:this.leadingIconColor?this.leadingIconColor:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),i("span",{key:"8af23f7a78dc25f8d1d05adfdd8dc3bd1d489af8",class:"duet-popup-menu-item-label"},i("slot",{key:"ef86e949a4bacdc7755e6e49f5814d554584a9be"})),(this.trailingIcon||this.active||this.url&&this.external)&&i("duet-icon",{key:"579369a5f1da1a7275dd309e163d1d5d3b847db2",name:this.url&&this.external?x.title:this.active?"messaging-checked-small":this.trailingIcon,size:this.url&&this.external||this.active?"xx-small":"x-small",color:"currentColor",class:"duet-popup-menu-item-trailing",margin:"none"}),this.trailingText&&i("span",{key:"b9892d68a4a7d31a41d3fe3fbeac15cea7045895",class:"duet-popup-menu-item-trailing"},this.trailingText)))}get element(){return o(this)}};k.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start}.duet-popup-menu-item{position:relative;z-index:1;display:flex;flex-grow:1;gap:12px;align-items:center;height:100%;padding: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;line-height:1.5;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer;border-radius:4px}.duet-popup-menu-item:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-popup-menu-item:focus,.duet-popup-menu-item:focus.duet-theme-turva,.duet-theme-turva2 .duet-popup-menu-item:focus,.duet-popup-menu-item:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-popup-menu-item.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-popup-menu-item.active{z-index:0;background:rgb(240, 247, 250)}.duet-popup-menu-item.active.duet-theme-turva{background:rgb(245, 247, 250)}.duet-popup-menu-item:hover{background:rgb(228, 241, 247)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(222, 224, 228)}.duet-popup-menu-item .duet-popup-menu-item-label{flex-grow:1}.duet-popup-menu-item .duet-popup-menu-item-trailing{padding-left:20px}.active-descendant{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .active-descendant,.active-descendant.duet-theme-turva,.duet-theme-turva2 .active-descendant,.active-descendant.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}:host(.duet-theme-turva2) .duet-popup-menu-item.duet-theme-turva{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-popup-menu-item.active.duet-theme-turva{background:rgb(253, 247, 242)}:host(.duet-theme-turva2) .duet-popup-menu-item:hover.duet-theme-turva{background:rgb(251, 235, 225)}';export{y as duet_popup_menu,k as duet_popup_menu_item}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as t,H as a,g as i}from"./p-4ad740e2.js";import{i as o}from"./p-12f16785.js";import{e as s,d as l}from"./p-fc09c464.js";import{F as n}from"./p-c97dbc9b.js";import{a as d,c as r,d as u,g as c}from"./p-135e72bf.js";import{h as p}from"./p-d4ecb287.js";import{g as h}from"./p-9718c106.js";import"./p-9c3c64b9.js";import"./p-9d9457bf.js";const b=class{constructor(t){e(this,t),this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"},this.backLangObject={en:"Back to main menu",fi:"Takaisin päävalikkoon",sv:"Tillbaka till huvudmenyn"},this.hasStickyHeaderSlot=!1,this.updateLabel=()=>{const e=this.element.querySelector("[slot='label']");this.label=e},this.toggleMenu=()=>{this.open=!this.open},this.onClick=()=>{this.toggleMenu()},this.onCloseClick=e=>{if(e.stopPropagation(),"DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;s(this.dialog),this.bodyScrollLocked=!1,e.toggle()}},this.label=void 0,this.language=d(),this.bodyScrollLocked=!1,this.theme="",this.active=!1,this.open=!1,this.icon=void 0,this.labelSize="medium",this.backgroundColor="gray-lightest",this.badge=!1}componentWillLoad(){o(this),this.updateLabel(),this.hasStickyHeaderSlot=p(this.element,"sticky-header")}connectedCallback(){r(this),this.mutationObserver=new MutationObserver((()=>{if("DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;e.open&&this.open&&!this.bodyScrollLocked?(this.bodyScrollLocked=!0,l(this.dialog,{reserveScrollBarGap:!0})):!e.open&&this.bodyScrollLocked&&(this.bodyScrollLocked=!1,s(this.dialog))}})),this.mutationObserver.observe(this.element.parentElement,{childList:!1,attributeFilter:["open"],subtree:!1})}disconnectedCallback(){u(this),this.dialog&&(s(this.dialog),this.bodyScrollLocked=!1),this.mutationObserver&&this.mutationObserver.disconnect()}handleOpenChange(e,t){!!e!=!!t&&(this.open&&!t?setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e!==this.element&&(e.inert=!0)})),this.bodyScrollLocked||(l(this.dialog,{reserveScrollBarGap:!0}),this.bodyScrollLocked=!0),this.closeButton.focus()}),200):!this.open&&t&&setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e.inert=!1})),this.openButton.focus(),s(this.dialog),this.bodyScrollLocked=!1}),200))}async setFocus(e){this.open?setTimeout((()=>{this.closeButton.focus(e)}),200):setTimeout((()=>{this.openButton.focus(e)}),200)}render(){const e={background:h(this.backgroundColor,this.theme)},i=c(this.exitLangObject),o=c(this.backLangObject);return t(a,{key:"35f2c88d333a9f340fe932b7b4d1a7b0e161121c"},t("div",{key:"4c41b297d480b756e8f8a6534bd8a9bfe11752f6",class:{"duet-slideout-panel":!0,"duet-theme-turva":"turva"===this.theme,active:this.open}},this.badge&&t("duet-indicator",{key:"ab7fdbdf53e7a00de6d029caf32059da791cd8c6",variation:"change"}),t("button",{key:"bb2ed0ca834c688335e09255fb0a7abadd443e65",ref:e=>this.openButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{link:!0,active:this.active,"duet-theme-turva":"turva"===this.theme},onClick:this.onClick,inert:this.open},this.icon&&t("div",{key:"d2ceb81a5d356ed8cde8bb422eadfdca1f694b5b",class:"duet-slideout-icon"},t("duet-icon",{key:"422f41f7a1721d55c213d1c3656ed35e71ab8f5a",name:this.icon,size:"small",margin:"none",color:"secondary"})),t("span",{key:"cdfcaf9efde37a4cdd7797040aa7281aa9d14d03",class:"label"},t("span",{key:"bf85b1b0eb2fcf3e119e0e19c78e7d0bec4a81ac",class:{"label-text":!0,[this.labelSize]:!0}},t("slot",{key:"47258033a5a31298804cf656039c429c462cf8ff",name:"label"})),t("duet-icon",{key:"1a134e002b4e54d7b2aba8462d46890b4cece1db",class:"caret",name:"action-arrow-right",margin:"none",size:"x-small",color:"secondary"}))),t("div",{key:"25fc33ae8ef77c513c4966a0b44e9d87ba979832",ref:e=>this.dialog=e,class:{dialog:!0,hidden:!this.open},style:e},t(n,{key:"84d9b40827aa1b8e5651febd8a9e0b7af206bd21",moveFocusTo:this.closeButton}),t("div",{key:"fb989b818bcdccacda4bd975a71fabe74bf07e17",class:{"top-container":!0,"has-sticky-header-slot":this.hasStickyHeaderSlot}},t("div",{key:"bdc79ef4c0ca28dd92ac8808ae32142beeb68e68",class:"top"},t("button",{key:"247fed3b9148060448c542e038a64b45ecb229fa",ref:e=>this.closeButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-label":`${o}`,type:"button",class:{back:!0,"duet-theme-turva":"turva"===this.theme},onClick:this.onClick},t("duet-icon",{key:"c019deaf0645e494c2eb6c3348a804490a904ce1",class:"caret",name:"action-arrow-left",margin:"none",size:"small",color:"secondary"})),t("span",{key:"f9248737a100ea05c07aae78f30c2e4f606eb85a"},this.label.innerHTML),t("button",{key:"64f1f447c272650ae5d82c77a3f7d90f6a411cbd",class:{close:!0,"duet-theme-turva":"turva"===this.theme},type:"button",onClick:this.onCloseClick,"aria-label":`${i}`},t("duet-icon",{key:"3737094efd584ea8792fb742f1871984f099e761",name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),t("div",{key:"3fc932167f02adea970a4477eab2eea93e2c8db3",class:"sticky-header"},t("slot",{key:"835722e1ea03d08dc53d674d2170844e582bb414",name:"sticky-header"}))),t("div",{key:"70131a1615c354acf6f46c6eca1116116960f8c6",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0}},t("slot",{key:"4a3b4ec54bbde2ec40c4184e2f8cbcb5030c507b"})),t(n,{key:"5cb519614160903a84503fc21ab428518004f284",moveFocusTo:this.closeButton}))))}get element(){return i(this)}static get watchers(){return{open:["handleOpenChange"]}}};b.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel{position:relative;height:100%}.duet-slideout-panel .link{position:relative;display:flex;gap:16px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.5rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-slideout-panel .link:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-slideout-panel .link:focus,.duet-slideout-panel .link:focus.duet-theme-turva,.duet-theme-turva2 .duet-slideout-panel .link:focus,.duet-slideout-panel .link:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-slideout-panel .link .duet-slideout-icon{position:relative;display:inline-flex;font-size:0;line-height:normal;vertical-align:baseline}@media (min-width: 62em){.duet-slideout-panel .link .duet-slideout-icon{margin-right:8px}}.duet-slideout-panel .link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}.duet-slideout-panel .link .label-text.small{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.medium{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.large{font-size:1.25rem;font-weight:800}.duet-slideout-panel .link.active .label-text{position:relative}.duet-slideout-panel .link.active .label-text.small::after{height:1px;transform:translateY(1px)}.duet-slideout-panel .link.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:2px;content:"";background:rgb(0, 119, 179);transform:translateY(2px)}.duet-slideout-panel .dialog{position:fixed;top:0;right:0;z-index:600;visibility:visible;width:min(450px, 100%);height:100%;overflow-y:auto}.duet-slideout-panel .dialog.hidden{visibility:hidden}.duet-slideout-panel .dialog.hidden .top .back,.duet-slideout-panel .dialog.hidden .top span{opacity:0}.duet-slideout-panel .top-container.has-sticky-header-slot{position:sticky;top:0;z-index:200}.duet-slideout-panel .top-container.has-sticky-header-slot .top{background:rgb(240, 247, 250)}.duet-slideout-panel .top-container.has-sticky-header-slot .sticky-header{display:block;padding:0 16px}.duet-slideout-panel .top{display:flex;align-items:center;justify-content:space-between;padding:4px}.duet-slideout-panel .top .back{opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .close:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .back:focus.duet-theme-turva,.duet-theme-turva2 .duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .back:focus.duet-theme-turva2,.duet-theme-turva .duet-slideout-panel .top .close:focus,.duet-slideout-panel .top .close:focus.duet-theme-turva,.duet-theme-turva2 .duet-slideout-panel .top .close:focus,.duet-slideout-panel .top .close:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-slideout-panel .top duet-icon{padding:16px}.duet-slideout-panel .top span{font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.1rem;font-weight:700;line-height:1.5;color:rgb(8, 42, 77);opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .sticky-header{display:none;width:100%;padding:0 1.5rem;margin-bottom:20px;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229)}.duet-slideout-panel .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:12px 20px;overflow-y:auto;color:rgb(8, 42, 77)}@media (min-width: 36em){.duet-slideout-panel .items{padding:16px 28px}}.duet-slideout-panel duet-indicator{top:4px}.duet-slideout-panel.duet-theme-turva .link{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-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(198, 12, 48)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .top{background:rgb(245, 247, 250)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-slideout-panel.duet-theme-turva .top span{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)}slot:not([name=label]){--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-theme-turva slot:not([name=label]){color:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .link{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .top{background:rgb(253, 247, 242)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(253, 247, 242);border-bottom-color:rgb(251, 225, 209)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .top span{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) slot:not([name=label]){color:rgb(23, 42, 59)}';export{b as duet_slideout_panel}
4
+ import{r as e,h as t,H as a,g as i}from"./p-58cb1e7b.js";import{i as o}from"./p-1f01bee2.js";import{e as s,d as l}from"./p-fc09c464.js";import{F as n}from"./p-9481e189.js";import{a as d,c as r,d as u,g as c}from"./p-8ee40bae.js";import{h as p}from"./p-61f93b06.js";import{g as h}from"./p-8b34b6a1.js";import"./p-9c3c64b9.js";import"./p-b0af0dbc.js";const b=class{constructor(t){e(this,t),this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"},this.backLangObject={en:"Back to main menu",fi:"Takaisin päävalikkoon",sv:"Tillbaka till huvudmenyn"},this.hasStickyHeaderSlot=!1,this.updateLabel=()=>{const e=this.element.querySelector("[slot='label']");this.label=e},this.toggleMenu=()=>{this.open=!this.open},this.onClick=()=>{this.toggleMenu()},this.onCloseClick=e=>{if(e.stopPropagation(),"DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;s(this.dialog),this.bodyScrollLocked=!1,e.toggle()}},this.label=void 0,this.language=d(),this.bodyScrollLocked=!1,this.theme="",this.active=!1,this.open=!1,this.icon=void 0,this.labelSize="medium",this.backgroundColor="gray-lightest",this.badge=!1}componentWillLoad(){o(this),this.updateLabel(),this.hasStickyHeaderSlot=p(this.element,"sticky-header")}connectedCallback(){r(this),this.mutationObserver=new MutationObserver((()=>{if("DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;e.open&&this.open&&!this.bodyScrollLocked?(this.bodyScrollLocked=!0,l(this.dialog,{reserveScrollBarGap:!0})):!e.open&&this.bodyScrollLocked&&(this.bodyScrollLocked=!1,s(this.dialog))}})),this.mutationObserver.observe(this.element.parentElement,{childList:!1,attributeFilter:["open"],subtree:!1})}disconnectedCallback(){u(this),this.dialog&&(s(this.dialog),this.bodyScrollLocked=!1),this.mutationObserver&&this.mutationObserver.disconnect()}handleOpenChange(e,t){!!e!=!!t&&(this.open&&!t?setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e!==this.element&&(e.inert=!0)})),this.bodyScrollLocked||(l(this.dialog,{reserveScrollBarGap:!0}),this.bodyScrollLocked=!0),this.closeButton.focus()}),200):!this.open&&t&&setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e.inert=!1})),this.openButton.focus(),s(this.dialog),this.bodyScrollLocked=!1}),200))}async setFocus(e){this.open?setTimeout((()=>{this.closeButton.focus(e)}),200):setTimeout((()=>{this.openButton.focus(e)}),200)}render(){const e={background:h(this.backgroundColor,this.theme)},i=c(this.exitLangObject),o=c(this.backLangObject);return t(a,{key:"35f2c88d333a9f340fe932b7b4d1a7b0e161121c"},t("div",{key:"4c41b297d480b756e8f8a6534bd8a9bfe11752f6",class:{"duet-slideout-panel":!0,"duet-theme-turva":"turva"===this.theme,active:this.open}},this.badge&&t("duet-indicator",{key:"ab7fdbdf53e7a00de6d029caf32059da791cd8c6",variation:"change"}),t("button",{key:"bb2ed0ca834c688335e09255fb0a7abadd443e65",ref:e=>this.openButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{link:!0,active:this.active,"duet-theme-turva":"turva"===this.theme},onClick:this.onClick,inert:this.open},this.icon&&t("div",{key:"d2ceb81a5d356ed8cde8bb422eadfdca1f694b5b",class:"duet-slideout-icon"},t("duet-icon",{key:"422f41f7a1721d55c213d1c3656ed35e71ab8f5a",name:this.icon,size:"small",margin:"none",color:"secondary"})),t("span",{key:"cdfcaf9efde37a4cdd7797040aa7281aa9d14d03",class:"label"},t("span",{key:"bf85b1b0eb2fcf3e119e0e19c78e7d0bec4a81ac",class:{"label-text":!0,[this.labelSize]:!0}},t("slot",{key:"47258033a5a31298804cf656039c429c462cf8ff",name:"label"})),t("duet-icon",{key:"1a134e002b4e54d7b2aba8462d46890b4cece1db",class:"caret",name:"action-arrow-right",margin:"none",size:"x-small",color:"secondary"}))),t("div",{key:"25fc33ae8ef77c513c4966a0b44e9d87ba979832",ref:e=>this.dialog=e,class:{dialog:!0,hidden:!this.open},style:e},t(n,{key:"84d9b40827aa1b8e5651febd8a9e0b7af206bd21",moveFocusTo:this.closeButton}),t("div",{key:"fb989b818bcdccacda4bd975a71fabe74bf07e17",class:{"top-container":!0,"has-sticky-header-slot":this.hasStickyHeaderSlot}},t("div",{key:"bdc79ef4c0ca28dd92ac8808ae32142beeb68e68",class:"top"},t("button",{key:"247fed3b9148060448c542e038a64b45ecb229fa",ref:e=>this.closeButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-label":`${o}`,type:"button",class:{back:!0,"duet-theme-turva":"turva"===this.theme},onClick:this.onClick},t("duet-icon",{key:"c019deaf0645e494c2eb6c3348a804490a904ce1",class:"caret",name:"action-arrow-left",margin:"none",size:"small",color:"secondary"})),t("span",{key:"f9248737a100ea05c07aae78f30c2e4f606eb85a"},this.label.innerHTML),t("button",{key:"4803d320826b236f69afd59725624bde8c1bcded",class:{close:!0,"duet-theme-turva":"turva"===this.theme},type:"button",onClick:this.onCloseClick,"aria-label":`${i}`},t("duet-icon",{key:"7efc43fda5d8b57021311668b0826bc75cdd40b8",name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),t("div",{key:"277cc062b3554cd86e65b194a4b39b02aba5cc13",class:"sticky-header"},t("slot",{key:"97a1bd11b146783916fd3b36fe3243e654ab4455",name:"sticky-header"}))),t("div",{key:"1e9156aa7213dc1b13d3739f7658f4249dc0b4a5",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0}},t("slot",{key:"c6bd7aba4dd5ac41e8178ac9b82ecae39cd5ef36"})),t(n,{key:"201924a978637ae1bb37fdd05cb7cb73479bba1c",moveFocusTo:this.closeButton}))))}get element(){return i(this)}static get watchers(){return{open:["handleOpenChange"]}}};b.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel{position:relative;height:100%}.duet-slideout-panel .link{position:relative;display:flex;gap:16px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.5rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-slideout-panel .link:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-slideout-panel .link:focus,.duet-slideout-panel .link:focus.duet-theme-turva,.duet-theme-turva2 .duet-slideout-panel .link:focus,.duet-slideout-panel .link:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-slideout-panel .link .duet-slideout-icon{position:relative;display:inline-flex;font-size:0;line-height:normal;vertical-align:baseline}@media (min-width: 62em){.duet-slideout-panel .link .duet-slideout-icon{margin-right:8px}}.duet-slideout-panel .link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}.duet-slideout-panel .link .label-text.small{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.medium{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.large{font-size:1.25rem;font-weight:800}.duet-slideout-panel .link.active .label-text{position:relative}.duet-slideout-panel .link.active .label-text.small::after{height:1px;transform:translateY(1px)}.duet-slideout-panel .link.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:2px;content:"";background:rgb(0, 119, 179);transform:translateY(2px)}.duet-slideout-panel .dialog{position:fixed;top:0;right:0;z-index:600;visibility:visible;width:min(450px, 100%);height:100%;overflow-y:auto}.duet-slideout-panel .dialog.hidden{visibility:hidden}.duet-slideout-panel .dialog.hidden .top .back,.duet-slideout-panel .dialog.hidden .top span{opacity:0}.duet-slideout-panel .top-container.has-sticky-header-slot{position:sticky;top:0;z-index:200}.duet-slideout-panel .top-container.has-sticky-header-slot .top{background:rgb(240, 247, 250)}.duet-slideout-panel .top-container.has-sticky-header-slot .sticky-header{display:block;padding:0 16px}.duet-slideout-panel .top{display:flex;align-items:center;justify-content:space-between;padding:4px}.duet-slideout-panel .top .back{opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .close:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .back:focus.duet-theme-turva,.duet-theme-turva2 .duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .back:focus.duet-theme-turva2,.duet-theme-turva .duet-slideout-panel .top .close:focus,.duet-slideout-panel .top .close:focus.duet-theme-turva,.duet-theme-turva2 .duet-slideout-panel .top .close:focus,.duet-slideout-panel .top .close:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-slideout-panel .top duet-icon{padding:16px}.duet-slideout-panel .top span{font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.1rem;font-weight:700;line-height:1.5;color:rgb(8, 42, 77);opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .sticky-header{display:none;width:100%;padding:0 1.5rem;margin-bottom:20px;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229)}.duet-slideout-panel .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:12px 20px;overflow-y:auto;color:rgb(8, 42, 77)}@media (min-width: 36em){.duet-slideout-panel .items{padding:16px 28px}}.duet-slideout-panel duet-indicator{top:4px}.duet-slideout-panel.duet-theme-turva .link{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-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(198, 12, 48)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .top{background:rgb(245, 247, 250)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-slideout-panel.duet-theme-turva .top span{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)}slot:not([name=label]){--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-theme-turva slot:not([name=label]){color:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .link{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(230, 23, 64)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .top{background:rgb(253, 247, 242)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(253, 247, 242);border-bottom-color:rgb(251, 225, 209)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .top span{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) slot:not([name=label]){color:rgb(23, 42, 59)}';export{b as duet_slideout_panel}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as t,H as i,g as s}from"./p-4ad740e2.js";import{a}from"./p-c972a96e.js";import{e as n,d as o}from"./p-8354d1f1.js";import{i as r}from"./p-12f16785.js";const u=class{constructor(t){e(this,t),this.mql=[window.matchMedia(a.replace(/'/g,""))],this.boundMqlFunctions=[],this.previousYScroll=0,this.handleMobileView=()=>{this.mql[0].matches?(this.mobile=!1,this.enableBodyScroll()):(this.mobile=!0,this.bodyScroll||this.disableBodyScroll())},this.onClick=()=>{this.open=!this.open},this.enableBodyScroll=()=>{this.nav&&n(this.nav),this.itemsContainer&&n(this.itemsContainer)},this.disableBodyScroll=()=>{this.nav&&o(this.nav,{reserveScrollBarGap:!0}),this.itemsContainer&&o(this.itemsContainer,{reserveScrollBarGap:!0})},this.checkIfHasItems=()=>{const e=!!this.element.querySelector("duet-submenu-bar-dropdown-link"),t=!!this.element.querySelector("duet-submenu-bar-link"),i=!!this.element.querySelector("duet-submenu-bar-item");return e||t||i},this.hidden=!1,this.mobile=!0,this.bodyScroll=!0,this.theme="",this.hideOnScroll=!1,this.open=!1,this.accessibleLabel=void 0}watchOpenStateHandler(e){e?(this.bodyScroll=!1,this.disableBodyScroll()):(this.enableBodyScroll(),this.bodyScroll=!0)}componentWillLoad(){r(this)}connectedCallback(){this.nav=document.querySelector("duet-nav > [slot='mobile']"),this.hasItems=this.checkIfHasItems(),this.handleMobileView();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.handleMobileView.bind(this);this.mql[e].addEventListener("change",t),this.boundMqlFunctions[e]=t}}disconnectedCallback(){for(let e=0;e<this.mql.length;e++)this.mql[e].removeEventListener&&this.mql[e].removeEventListener("change",this.boundMqlFunctions[e]);this.boundMqlFunctions=[],this.enableBodyScroll()}async setFocus(e){this.button.focus(e)}checkScroll(){this.hideOnScroll&&(window.scrollY>this.previousYScroll?window.scrollY>100&&(this.hidden=!0):window.scrollY<150&&(this.hidden=!1),this.previousYScroll=window.scrollY)}render(){return t(i,{key:"af1b15954a8651589b75a71211b2afc7d11b4728"},t("nav",{key:"8060c7a7b7cc9b2b5b51f61927a291cc291191b9",class:{"duet-submenu-bar":!0,"duet-theme-turva":"turva"===this.theme,hidden:this.hidden},"aria-label":this.accessibleLabel},this.hasItems&&t("button",{key:"38e52490582abe63054643cb4038196cea78f460",ref:e=>this.button=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false",id:"button",type:"button",class:{active:this.open},onClick:this.onClick},t("span",{key:"2409617cc4571c9bc502f163130eb90d858d1494",class:"label"},t("slot",{key:"8dadc19b14475990fe4da9f60237678b9aed0298",name:"label"}),t("duet-icon",{key:"b776299707367fee5fe0ee075f9090510341a387",theme:this.theme,class:"caret",name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),t("div",{key:"d7bc94b646e87cc22c0e325340450ac0c4c746cb",class:{"menu-container":!0,hidden:!this.open},role:"presentation"},t("div",{key:"d56f9657beb5c1f3b964f4e552318e5f585db494",role:this.mobile?"menu":null,id:"menu","aria-labelledby":this.mobile?"button":null,"aria-expanded":this.mobile?this.open?"true":"false":null,class:{items:!0,hidden:!this.open},ref:e=>this.itemsContainer=e},t("div",{key:"d9beafc8b99857bb0722fac9eca8a8f8f51d74ff",class:"list",role:this.mobile?"presentation":"list"},t("slot",{key:"b0e11600b15b58c0f9a83d2344189bc2f18df7cd"}),t("div",{key:"3613887ba9a6b68ba1674b22ea20ffaa3eb00aa6",class:"list-padding"}))),t("duet-overlay",{key:"b24bdad2ce787d341b7f04a31f24f0526950933a","keep-stacking-context":!0,visible:this.open,"display-device":"not-large",transition:"immediate"}))))}get element(){return s(this)}static get watchers(){return{open:["watchOpenStateHandler"]}}};u.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;width:100%;pointer-events:none}:host *{pointer-events:auto}:host(:not([open])) ::slotted(duet-submenu-bar-dropdown){display:none}@media (min-width: 62em){:host(:not([open])) ::slotted(duet-submenu-bar-dropdown){display:inherit}}.duet-submenu-bar{position:relative;top:0;z-index:1;background:rgb(240, 247, 250);transition:top 0.4s}.duet-submenu-bar.hidden{top:-200px}@media (min-width: 62em){.duet-submenu-bar{border-bottom:1px solid rgb(198, 225, 238)}}.duet-submenu-bar button{display:flex;align-items:center;justify-content:center;width:100%;padding:12px 0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77)}.duet-submenu-bar button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-submenu-bar button:focus,.duet-submenu-bar button:focus.duet-theme-turva,.duet-theme-turva2 .duet-submenu-bar button:focus,.duet-submenu-bar button:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-submenu-bar button.active .caret{transform:rotate(180deg)}.duet-submenu-bar button .label{position:relative;display:flex;gap:8px;align-items:center;justify-content:center}@media (min-width: 62em){.duet-submenu-bar button{display:none}}.duet-submenu-bar .menu-container{position:absolute;z-index:399;width:100%}.duet-submenu-bar .menu-container.hidden{visibility:hidden;max-height:0;overflow:hidden}@media (min-width: 62em){.duet-submenu-bar .menu-container,.duet-submenu-bar .menu-container.hidden{position:static;z-index:auto;visibility:visible;max-height:unset;overflow:visible}}.duet-submenu-bar .items{visibility:visible;width:100%;height:70vh;overflow-y:scroll;background:rgb(240, 247, 250);border-bottom:1px solid rgb(181, 198, 208)}.duet-submenu-bar .items ::slotted(*){position:relative}.duet-submenu-bar .items.hidden{visibility:hidden;max-height:0;overflow:hidden;border-bottom:0 solid rgb(181, 198, 208)}.duet-submenu-bar .items .list-padding{padding-bottom:188px}@media (min-width: 62em){.duet-submenu-bar .items .list{display:flex;align-items:center;justify-content:space-between;height:100%}.duet-submenu-bar .items,.duet-submenu-bar .items.hidden{position:static;z-index:auto;display:flex;visibility:visible;flex-direction:row;align-items:center;justify-content:center;height:auto;max-height:unset;overflow:visible;border:0}.duet-submenu-bar .items .list-padding{display:none;padding-bottom:0}}.duet-submenu-bar.duet-theme-turva{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-submenu-bar.duet-theme-turva .items{background:rgb(245, 247, 250)}.duet-submenu-bar.duet-theme-turva .mobile-background{background:rgb(23, 28, 58)}.duet-submenu-bar.duet-theme-turva .shadow-container .top-shadow{box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-submenu-bar.duet-theme-turva .shadow-container .top-shadow{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}:host(.duet-theme-turva2) .duet-submenu-bar.duet-theme-turva{background:rgb(253, 247, 242);border-bottom-color:rgb(251, 225, 209)}:host(.duet-theme-turva2) .duet-submenu-bar.duet-theme-turva .items{background:rgb(253, 247, 242)}:host(.duet-theme-turva2) .duet-submenu-bar.duet-theme-turva .mobile-background{background:rgb(23, 42, 59)}';export{u as duet_submenu_bar}
4
+ import{r as e,h as t,H as i,g as s}from"./p-58cb1e7b.js";import{a}from"./p-7ac368f3.js";import{e as n,d as o}from"./p-8354d1f1.js";import{i as r}from"./p-1f01bee2.js";const u=class{constructor(t){e(this,t),this.mql=[window.matchMedia(a.replace(/'/g,""))],this.boundMqlFunctions=[],this.previousYScroll=0,this.handleMobileView=()=>{this.mql[0].matches?(this.mobile=!1,this.enableBodyScroll()):(this.mobile=!0,this.bodyScroll||this.disableBodyScroll())},this.onClick=()=>{this.open=!this.open},this.enableBodyScroll=()=>{this.nav&&n(this.nav),this.itemsContainer&&n(this.itemsContainer)},this.disableBodyScroll=()=>{this.nav&&o(this.nav,{reserveScrollBarGap:!0}),this.itemsContainer&&o(this.itemsContainer,{reserveScrollBarGap:!0})},this.checkIfHasItems=()=>{const e=!!this.element.querySelector("duet-submenu-bar-dropdown-link"),t=!!this.element.querySelector("duet-submenu-bar-link"),i=!!this.element.querySelector("duet-submenu-bar-item");return e||t||i},this.hidden=!1,this.mobile=!0,this.bodyScroll=!0,this.theme="",this.hideOnScroll=!1,this.open=!1,this.accessibleLabel=void 0}watchOpenStateHandler(e){e?(this.bodyScroll=!1,this.disableBodyScroll()):(this.enableBodyScroll(),this.bodyScroll=!0)}componentWillLoad(){r(this)}connectedCallback(){this.nav=document.querySelector("duet-nav > [slot='mobile']"),this.hasItems=this.checkIfHasItems(),this.handleMobileView();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.handleMobileView.bind(this);this.mql[e].addEventListener("change",t),this.boundMqlFunctions[e]=t}}disconnectedCallback(){for(let e=0;e<this.mql.length;e++)this.mql[e].removeEventListener&&this.mql[e].removeEventListener("change",this.boundMqlFunctions[e]);this.boundMqlFunctions=[],this.enableBodyScroll()}async setFocus(e){this.button.focus(e)}checkScroll(){this.hideOnScroll&&(window.scrollY>this.previousYScroll?window.scrollY>100&&(this.hidden=!0):window.scrollY<150&&(this.hidden=!1),this.previousYScroll=window.scrollY)}render(){return t(i,{key:"af1b15954a8651589b75a71211b2afc7d11b4728"},t("nav",{key:"8060c7a7b7cc9b2b5b51f61927a291cc291191b9",class:{"duet-submenu-bar":!0,"duet-theme-turva":"turva"===this.theme,hidden:this.hidden},"aria-label":this.accessibleLabel},this.hasItems&&t("button",{key:"38e52490582abe63054643cb4038196cea78f460",ref:e=>this.button=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false",id:"button",type:"button",class:{active:this.open},onClick:this.onClick},t("span",{key:"2409617cc4571c9bc502f163130eb90d858d1494",class:"label"},t("slot",{key:"8dadc19b14475990fe4da9f60237678b9aed0298",name:"label"}),t("duet-icon",{key:"b776299707367fee5fe0ee075f9090510341a387",theme:this.theme,class:"caret",name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),t("div",{key:"d7bc94b646e87cc22c0e325340450ac0c4c746cb",class:{"menu-container":!0,hidden:!this.open},role:"presentation"},t("div",{key:"d56f9657beb5c1f3b964f4e552318e5f585db494",role:this.mobile?"menu":null,id:"menu","aria-labelledby":this.mobile?"button":null,"aria-expanded":this.mobile?this.open?"true":"false":null,class:{items:!0,hidden:!this.open},ref:e=>this.itemsContainer=e},t("div",{key:"d9beafc8b99857bb0722fac9eca8a8f8f51d74ff",class:"list",role:this.mobile?"presentation":"list"},t("slot",{key:"b0e11600b15b58c0f9a83d2344189bc2f18df7cd"}),t("div",{key:"3613887ba9a6b68ba1674b22ea20ffaa3eb00aa6",class:"list-padding"}))),t("duet-overlay",{key:"b24bdad2ce787d341b7f04a31f24f0526950933a","keep-stacking-context":!0,visible:this.open,"display-device":"not-large",transition:"immediate"}))))}get element(){return s(this)}static get watchers(){return{open:["watchOpenStateHandler"]}}};u.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;width:100%;pointer-events:none}:host *{pointer-events:auto}:host(:not([open])) ::slotted(duet-submenu-bar-dropdown){display:none}@media (min-width: 62em){:host(:not([open])) ::slotted(duet-submenu-bar-dropdown){display:inherit}}.duet-submenu-bar{position:relative;top:0;z-index:1;background:rgb(240, 247, 250);transition:top 0.4s}.duet-submenu-bar.hidden{top:-200px}@media (min-width: 62em){.duet-submenu-bar{border-bottom:1px solid rgb(198, 225, 238)}}.duet-submenu-bar button{display:flex;align-items:center;justify-content:center;width:100%;padding:12px 0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77)}.duet-submenu-bar button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-submenu-bar button:focus,.duet-submenu-bar button:focus.duet-theme-turva,.duet-theme-turva2 .duet-submenu-bar button:focus,.duet-submenu-bar button:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-submenu-bar button.active .caret{transform:rotate(180deg)}.duet-submenu-bar button .label{position:relative;display:flex;gap:8px;align-items:center;justify-content:center}@media (min-width: 62em){.duet-submenu-bar button{display:none}}.duet-submenu-bar .menu-container{position:absolute;z-index:399;width:100%}.duet-submenu-bar .menu-container.hidden{visibility:hidden;max-height:0;overflow:hidden}@media (min-width: 62em){.duet-submenu-bar .menu-container,.duet-submenu-bar .menu-container.hidden{position:static;z-index:auto;visibility:visible;max-height:unset;overflow:visible}}.duet-submenu-bar .items{visibility:visible;width:100%;height:70vh;overflow-y:scroll;background:rgb(240, 247, 250);border-bottom:1px solid rgb(181, 198, 208)}.duet-submenu-bar .items ::slotted(*){position:relative}.duet-submenu-bar .items.hidden{visibility:hidden;max-height:0;overflow:hidden;border-bottom:0 solid rgb(181, 198, 208)}.duet-submenu-bar .items .list-padding{padding-bottom:188px}@media (min-width: 62em){.duet-submenu-bar .items .list{display:flex;align-items:center;justify-content:space-between;height:100%}.duet-submenu-bar .items,.duet-submenu-bar .items.hidden{position:static;z-index:auto;display:flex;visibility:visible;flex-direction:row;align-items:center;justify-content:center;height:auto;max-height:unset;overflow:visible;border:0}.duet-submenu-bar .items .list-padding{display:none;padding-bottom:0}}.duet-submenu-bar.duet-theme-turva{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-submenu-bar.duet-theme-turva .items{background:rgb(245, 247, 250)}.duet-submenu-bar.duet-theme-turva .mobile-background{background:rgb(23, 28, 58)}.duet-submenu-bar.duet-theme-turva .shadow-container .top-shadow{box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-submenu-bar.duet-theme-turva .shadow-container .top-shadow{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}:host(.duet-theme-turva2) .duet-submenu-bar.duet-theme-turva{background:rgb(253, 247, 242);border-bottom-color:rgb(251, 225, 209)}:host(.duet-theme-turva2) .duet-submenu-bar.duet-theme-turva .items{background:rgb(253, 247, 242)}:host(.duet-theme-turva2) .duet-submenu-bar.duet-theme-turva .mobile-background{background:rgb(23, 42, 59)}';export{u as duet_submenu_bar}
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,i,a){function d(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function n(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a["throw"](e))}catch(e){o(e)}}function s(e){e.done?i(e.value):d(e.value).then(n,r)}s((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,d,o,n;return n={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function r(e){return function(t){return s([e,t])}}function s(r){if(a)throw new TypeError("Generator is already executing.");while(n&&(n=0,r[0]&&(i=0)),i)try{if(a=1,d&&(o=r[0]&2?d["return"]:r[0]?d["throw"]||((o=d["return"])&&o.call(d),0):d.next)&&!(o=o.call(d,r[1])).done)return o;if(d=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;d=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){i.label=r[1];break}if(r[0]===6&&i.label<o[1]){i.label=o[1];o=r;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(r);break}if(o[2])i.ops.pop();i.trys.pop();continue}r=t.call(e,i)}catch(e){r=[6,e];d=0}finally{a=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-80993983.system.js","./p-49957220.system.js","./p-385da7a9.system.js","./p-87633fff.system.js","./p-77516717.system.js","./p-752fa0fc.system.js","./p-d4f972c3.system.js","./p-d44312ba.system.js","./p-b1f33063.system.js","./p-43bbba35.system.js","./p-98636086.system.js","./p-db0ba7b6.system.js"],(function(e){"use strict";var t,i,a,d,o,n,r,s,u,l,m,h,c,f,p,g,b;return{setters:[function(e){t=e.r;i=e.c;a=e.h;d=e.g},function(e){o=e.d;n=e.e},function(e){r=e.i},function(e){s=e.b},function(e){u=e.f},function(e){l=e.f},function(e){m=e.a;h=e.g;c=e.c;f=e.d},function(e){p=e.h},function(e){g=e.T},function(e){b=e.p},function(){},function(){}],execute:function(){var y='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.duet-modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;visibility:hidden;max-height:100vh;overflow-y:auto;opacity:0;transition:300ms ease;transition-delay:200ms}.duet-modal-container.duet-modal-active{visibility:visible;opacity:1;transition:300ms ease;transition-delay:0s}.duet-modal-container.duet-disable-transitions{transition:none}.duet-modal-container.duet-modal-slide-up{overflow:hidden}::slotted(img){width:100%}.duet-modal-inner{display:flex;align-items:center;width:100%;min-height:100%;padding:20px 16px}@media (min-width: 36em){.duet-modal-inner{padding:48px 16px}}.duet-modal-inner.duet-modal-slide-up{align-items:stretch;justify-content:center;height:100%;padding-top:48px;padding-bottom:0;overflow:hidden}.duet-modal-inner.duet-modal-slide-up::after{position:absolute;bottom:0;z-index:300;display:block;width:100%;max-width:686px;height:48px;margin:auto;pointer-events:none;content:"";background:linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255))}.duet-modal-inner.duet-modal-slide-up::after.small{max-width:545px}.duet-modal-inner.duet-modal-slide-up::after.large{max-width:100%}@media (min-width: 36em){.duet-modal-inner.duet-modal-slide-up::after.large{max-width:1110px}}@media (max-width: 35.9375em){.duet-modal-inner.large{padding-right:0;padding-left:0}.duet-modal-inner.duet-modal-slide-up{padding:0;padding-top:28px}}.duet-modal{position:relative;width:100%;max-width:686px;margin:auto;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border-radius:16px;opacity:0;transform:scale(0.96);transition:300ms ease;transition-delay:0ms}.duet-theme-turva .duet-modal{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-modal-active .duet-modal{opacity:1;transform:none;transition:300ms ease;transition-delay:200ms}.duet-modal-active .duet-modal.slide-up{top:0;transition:top 600ms ease}.duet-modal.loader{text-align:center;background:transparent}.duet-modal.loader .duet-modal-close{display:none}.duet-modal.loader .duet-modal-spinner{position:relative;height:120px}.duet-modal.loader .duet-modal-inner-slot-default{position:relative;backdrop-filter:blur(10px)}.duet-modal.loader duet-paragraph.duet-loader-message{position:absolute;opacity:0;transform:scaleY(0);transform-origin:top;transition:all 300ms ease}.duet-modal.loader duet-paragraph.duet-loader-message.show{opacity:1;transform:scaleY(1);transform-origin:bottom}.duet-modal.loader duet-paragraph.duet-loader-message.show::part(duet-paragraph){backdrop-filter:blur(10px)}.duet-disable-transitions .duet-modal{transition:none}.duet-modal.small{max-width:545px}.duet-modal.large{max-width:100%}@media (min-width: 36em){.duet-modal.large{max-width:1110px}}.duet-modal.slide-up{top:100vh;margin:0;overflow:auto;border-radius:16px 16px 0 0;opacity:1;transition:top 600ms ease}.duet-modal.duet-modal-has-sticky-header{height:100%;overflow:auto}.duet-modal:focus{outline:0}.duet-modal-body,.duet-modal-sticky-header{width:100%;padding:36px 28px}.duet-modal-body.duet-modal-gutter-none,.duet-modal-sticky-header.duet-modal-gutter-none{padding:0 !important}.duet-modal-body.duet-modal-gutter-small,.duet-modal-sticky-header.duet-modal-gutter-small{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}@media (max-width: 22.5em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 28px}}@media (max-width: 35.9375em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}}@media (min-width: 36em){.duet-modal-body,.duet-modal-sticky-header{padding:36px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:28px 72px}}@media (min-width: 48em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 72px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:36px 72px}}@media (min-width: 76.25em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 48px 48px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 94px}.small .duet-modal-body,.small .duet-modal-sticky-header{padding:36px 48px}}.duet-modal-header{text-align:center}.duet-modal-sticky-header{position:sticky;top:0;z-index:300;display:block;padding-bottom:12px;text-align:left;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229);border-radius:16px 16px 0 0}.duet-theme-turva .duet-modal-sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-modal-close{position:absolute;top:8px;right:8px}.duet-modal-heading{width:100%;padding-right:60px;overflow:hidden;text-overflow:ellipsis;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);letter-spacing:-0.01rem;white-space:nowrap;text-decoration:none}.duet-modal-heading.duet-p-0{padding:0 !important}.duet-modal-heading.duet-m-0{margin:0 !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal-sticky-header{background:rgb(253, 247, 242);border-bottom:1px solid rgb(212, 221, 226)}';var v=y;var x=600;var k=e("duet_modal",function(){function e(e){t(this,e);this.duetOpen=i(this,"duetOpen",7);this.duetClose=i(this,"duetClose",7);this.duetCloseComplete=i(this,"duetCloseComplete",7);this.duetBeforeClose=i(this,"duetBeforeClose",7);var a,d;this.hasStickyHeader=false;this.isAndroidDevice=((d=(a=navigator===null||navigator===void 0?void 0:navigator.userAgent)===null||a===void 0?void 0:a.toLowerCase())===null||d===void 0?void 0:d.indexOf("android"))>-1||null;this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(navigator===null||navigator===void 0?void 0:navigator.userAgent);this.accessibleLoaderAnnouncementDefaults=s;this.accessibleCloseLabelDefaults={fi:"Sulje ikkuna",sv:"Stäng fönstret",en:"Close the dialog"};this.handleAndroidResizeEvents=function(){if(document.activeElement.tagName=="INPUT"){window.setTimeout((function(){var e;try{(e=document===null||document===void 0?void 0:document.activeElement)===null||e===void 0?void 0:e.scrollIntoViewIfNeeded(true)}catch(e){}}),100)}};this.open=false;this.language=m();this.accessibleCloseLabel=h(this.accessibleCloseLabelDefaults,this.language);this.accessibleLoaderAnnouncement=h(this.accessibleLoaderAnnouncementDefaults,this.language);this.size="medium";this.accessibleDescribedBy=undefined;this.accessibleLabelledBy=undefined;this.accessibleLabel=undefined;this.accessibleDetails=undefined;this.accessibleDescription=undefined;this.variation="default";this.gutterSize="medium";this.theme="";this.heading="";this.headingLevel="h3";this.headingVisualLevel=undefined;this.icon="";this.color="";this.active=false;this.closeOnBlur=false;this.focusElementOnClose=undefined;this.accessibleAnnounceChanges=undefined}e.prototype.openChanged=function(){var e=this;if(this.open){if(this.modalEl&&this.modalEl.scrollTop){this.modalEl.scrollTop=0}this.focusedElBeforeOpen=document.activeElement;o(this.variation==="slide-up"?this.modalContentEl:this.modalEl,{reserveScrollBarGap:true});this.teleport.makeSiblingsInert();this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((function(e){return e.remove()}));setTimeout((function(){if(e.variation==="loader"){e.addMessage(e.accessibleLoaderAnnouncement,false)}else{if(e.isAndroidDevice){e.modalEl.focus()}else{e.buttonEl.setFocus()}}}),x);setTimeout((function(){e.modalEl.classList.add("duet-disable-transitions")}),x+200);if(this.isAndroidDevice){window.addEventListener("resize",this.handleAndroidResizeEvents)}this.duetOpen.emit()}else{this.modalEl.classList.remove("duet-disable-transitions");this.modalEl.addEventListener("transitionend",(function(){return e.duetCloseComplete.emit()}),{once:true});n(this.variation==="slide-up"?this.modalContentEl:this.modalEl);this.duetClose.emit();this.teleport.removeInertFromSiblings();if(this.focusElementOnClose!==""){setTimeout((function(){return __awaiter(e,void 0,void 0,(function(){var e,t,i;return __generator(this,(function(a){switch(a.label){case 0:e=this.focusedElBeforeOpen;if(typeof this.focusElementOnClose==="string"){e=document.getElementById(this.focusElementOnClose)||e}else{e=this.focusElementOnClose||e}if(!(e.tagName.toLowerCase()==="duet-popup-menu-item"))return[3,2];t=e.closest("duet-popup-menu");return[4,t.isOpen()];case 1:i=a.sent();if(!i&&t.controller){if(typeof t.controller==="string"){e=document.getElementById(t.controller)}else{e=t.controller}}a.label=2;case 2:u(e);return[2]}}))}))}),x)}if(this.isAndroidDevice){window.removeEventListener("resize",this.handleAndroidResizeEvents)}}};e.prototype.activeChanged=function(){this.open=this.active};e.prototype.componentWillLoad=function(){this.hasStickyHeader=p(this.element,"sticky-header");r(this)};e.prototype.componentDidLoad=function(){if(this.active){this.open=true;this.modalEl.classList.add("duet-disable-transitions")}};e.prototype.connectedCallback=function(){if(!this.teleport){this.teleport=new g(this.element)}if(this.teleport){this.teleport.activate()}c(this,[{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefaults"},{prop:"accessibleLoaderAnnouncement",defaults:"accessibleLoaderAnnouncementDefaults"}])};e.prototype.disconnectedCallback=function(){f(this);if(this.modalEl){n(this.modalEl)}};e.prototype.handleKeyUp=function(e){if(this.open){if(l(e)){this.closeModal(e)}}};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=true;return[2]}))}))};e.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=false;return[2]}))}))};e.prototype.focusCloseButton=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.buttonEl.setFocus();return[2]}))}))};e.prototype.scrollToTop=function(){return __awaiter(this,arguments,void 0,(function(e){var t,i,a,d;if(e===void 0){e=true}return __generator(this,(function(o){i=e?"smooth":"auto";if(this.variation==="slide-up"){a=((t=this.modalEl.querySelector(".duet-modal-sticky-header"))===null||t===void 0?void 0:t.clientHeight)||0;d=this.modalEl.querySelector(".duet-modal-body").computedStyleMap().get("padding-top");this.slotContainerEl.style.scrollMarginTop="".concat(a+d.value,"px");this.slotContainerEl.scrollIntoView({behavior:i})}else{this.modalEl.querySelector(".duet-modal-body").scrollIntoView({behavior:i})}return[2]}))}))};e.prototype.addMessage=function(e){return __awaiter(this,arguments,void 0,(function(e,t){var i;var a=this;if(t===void 0){t=true}return __generator(this,(function(d){i=document.createElement(t?"duet-paragraph":"duet-visually-hidden");i.textContent=e;i.classList.add("duet-loader-message");if(t){setTimeout((function(){a.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((function(e){return e.classList.remove("show")}));i.classList.add("show")}),10)}this.slotContainerEl.appendChild(i);return[2]}))}))};e.prototype.closeModal=function(e){var t=this;this.duetBeforeClose.emit({originalEvent:e,component:"duet-modal"});if(!e.defaultPrevented){setTimeout((function(){t.hide()}),1)}};e.prototype.render=function(){var e,t;var i=this;var d,o;var n=b("primary",this.theme);var r=b("secondary",this.theme);var s=a("div",{key:"cee464a60790470777e6a499800617fdeda46de2",class:"duet-modal-close"},a("duet-button",{key:"6eadf084b0e3bdebf9ed9415f993767800a86693",ref:function(e){return i.buttonEl=e},variation:"plain",accessibleLabel:this.accessibleCloseLabel,color:r,iconSize:"large",icon:"navigation-close",iconOnly:true,margin:"none",theme:this.theme,onClick:function(e){return i.closeModal(e)},fixed:true}));return a("div",{key:"569724872e61d206fbca2289a0a1d4b4beb651ca",ref:function(e){return i.modalEl=e},"aria-label":(d=this.accessibleLabel)!==null&&d!==void 0?d:this.heading,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,role:this.variation==="loader"?"alert":"dialog","aria-modal":this.isSafariBrowser?false:true,tabindex:"-1",class:{"duet-modal-container":true,"duet-theme-turva":this.theme==="turva","duet-modal-active":this.open,"duet-modal-slide-up":this.variation==="slide-up","duet-modal-has-sticky-header":this.hasStickyHeader}},a("duet-overlay",{key:"631d58f62ee39029e3f410eaad94fc95efcfc4cb","z-index":"-1",visible:this.open,variation:this.variation==="loader"?"white":"default"}),a("div",{key:"8d52e7639d49138fb22c4256e53698a7ee6ecb0d",ref:function(e){return i.modalInnerEl=e},class:(e={"duet-modal-inner":true},e[this.size]=true,e["duet-modal-slide-up"]=this.variation==="slide-up",e),onClick:function(e){if(i.closeOnBlur){var t=e.target||e.srcElement;if(t===i.modalInnerEl){i.closeModal(e)}}}},a("div",{key:"9773dc0770a2d32e95b72571778d6b8863f0adbf",ref:function(e){return i.modalContentEl=e},"aria-live":this.accessibleAnnounceChanges==="all"?"polite":null,"aria-atomic":this.accessibleAnnounceChanges==="all"?"true":null,class:(t={"duet-modal":true,"duet-modal-has-sticky-header":this.hasStickyHeader},t[this.size]=true,t[this.variation]=true,t)},this.gutterSize!=="none"&&!this.hasStickyHeader&&a("duet-spacer",{key:"1f51df35643d76720aadc11b98268076bd459cc4"}),this.hasStickyHeader?a("div",{class:"duet-modal-sticky-header"},s,a("slot",{name:"sticky-header"})):s,a("div",{key:"5433702f6dad665e82628236206e35a0503c3095",class:{"duet-modal-body":true,"duet-modal-gutter-none":this.gutterSize==="none","duet-modal-gutter-small":this.gutterSize==="small","duet-modal-gutter-medium":this.gutterSize==="medium","duet-modal-gutter-large":this.gutterSize==="large"},"aria-live":this.accessibleAnnounceChanges==="heading"?"polite":null,"aria-atomic":this.accessibleAnnounceChanges==="heading"?"true":null},a("div",{key:"579ba1b41caf40e97242aeacbf47ead29ea6aac7",class:"duet-modal-header"},a("span",{key:"353ab4ce18f8cfaa384b7d1e02e5daf03895fc01",class:"duet-modal-inner-slot-top"},a("slot",{key:"d1b1bd5e49db08393d62154e7a3524ea4bc5fc12",name:"top"})),this.icon&&a("duet-icon",{key:"559c22da92b732cc829c9047bdc0c6b115058f32",name:this.icon,size:"xx-large",color:this.color||n}),this.heading&&a("duet-heading",{key:"4ffd1a28f6c1ec9a946b362f588e04350bab1dbd","visual-level":(o=this.headingVisualLevel)!==null&&o!==void 0?o:this.headingLevel,level:this.headingLevel,theme:this.theme},this.heading)),this.variation==="loader"&&a("div",{key:"2c9b370fbf07ff1804bb2bb8590593dae83cc629",class:"duet-modal-spinner"},a("duet-spinner",{key:"77c91d8fef8f52c65b5565388343bf0021529c1f",size:"large",color:b("primary",this.theme)})),a("div",{key:"3d4aa27f79ea4483c783d8f00f29663f0ff8cf0b","aria-live":this.variation==="loader"?"assertive":this.accessibleAnnounceChanges==="body"?"polite":null,"aria-atomic":this.accessibleAnnounceChanges==="body"?"true":null,class:"duet-modal-inner-slot-default",ref:function(e){return i.slotContainerEl=e}},a("slot",{key:"c67bd34671197745eca7f15cc88c1d42b2e185c1"}))))))};Object.defineProperty(e.prototype,"element",{get:function(){return d(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["openChanged"],active:["activeChanged"]}},enumerable:false,configurable:true});return e}());k.style=v}}}));
4
+ */System.register(["./p-d04f0720.system.js","./p-49957220.system.js","./p-15f1493c.system.js","./p-87633fff.system.js","./p-d72625ca.system.js","./p-752fa0fc.system.js","./p-5a34eb53.system.js","./p-30c4c974.system.js","./p-b1f33063.system.js","./p-f6e20b20.system.js","./p-98636086.system.js","./p-453db857.system.js"],(function(e){"use strict";var t,i,a,d,o,n,r,s,u,l,m,c,h,f,p,g,b;return{setters:[function(e){t=e.r;i=e.c;a=e.h;d=e.g},function(e){o=e.d;n=e.e},function(e){r=e.i},function(e){s=e.b},function(e){u=e.f},function(e){l=e.f},function(e){m=e.a;c=e.g;h=e.c;f=e.d},function(e){p=e.h},function(e){g=e.T},function(e){b=e.p},function(){},function(){}],execute:function(){var y='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.duet-modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;visibility:hidden;max-height:100vh;overflow-y:auto;opacity:0;transition:300ms ease;transition-delay:200ms}.duet-modal-container.duet-modal-active{visibility:visible;opacity:1;transition:300ms ease;transition-delay:0s}.duet-modal-container.duet-disable-transitions{transition:none}.duet-modal-container.duet-modal-slide-up{overflow:hidden}::slotted(img){width:100%}.duet-modal-inner{display:flex;align-items:center;width:100%;min-height:100%;padding:20px 16px}@media (min-width: 36em){.duet-modal-inner{padding:48px 16px}}.duet-modal-inner.duet-modal-slide-up{align-items:stretch;justify-content:center;height:100%;padding-top:48px;padding-bottom:0;overflow:hidden}.duet-modal-inner.duet-modal-slide-up::after{position:absolute;bottom:0;z-index:300;display:block;width:100%;max-width:686px;height:48px;margin:auto;pointer-events:none;content:"";background:linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255))}.duet-modal-inner.duet-modal-slide-up::after.small{max-width:545px}.duet-modal-inner.duet-modal-slide-up::after.large{max-width:100%}@media (min-width: 36em){.duet-modal-inner.duet-modal-slide-up::after.large{max-width:1110px}}@media (max-width: 35.9375em){.duet-modal-inner.large{padding-right:0;padding-left:0}.duet-modal-inner.duet-modal-slide-up{padding:0;padding-top:28px}}.duet-modal{position:relative;width:100%;max-width:686px;margin:auto;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border-radius:16px;opacity:0;transform:scale(0.96);transition:300ms ease;transition-delay:0ms}.duet-theme-turva .duet-modal{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-modal-active .duet-modal{opacity:1;transform:none;transition:300ms ease;transition-delay:200ms}.duet-modal-active .duet-modal.slide-up{top:0;transition:top 600ms ease}.duet-modal.loader{text-align:center;background:transparent}.duet-modal.loader .duet-modal-close{display:none}.duet-modal.loader .duet-modal-spinner{position:relative;height:120px}.duet-modal.loader .duet-modal-inner-slot-default{position:relative;backdrop-filter:blur(10px)}.duet-modal.loader duet-paragraph.duet-loader-message{position:absolute;opacity:0;transform:scaleY(0);transform-origin:top;transition:all 300ms ease}.duet-modal.loader duet-paragraph.duet-loader-message.show{opacity:1;transform:scaleY(1);transform-origin:bottom}.duet-modal.loader duet-paragraph.duet-loader-message.show::part(duet-paragraph){backdrop-filter:blur(10px)}.duet-disable-transitions .duet-modal{transition:none}.duet-modal.small{max-width:545px}.duet-modal.large{max-width:100%}@media (min-width: 36em){.duet-modal.large{max-width:1110px}}.duet-modal.slide-up{top:100vh;margin:0;overflow:auto;border-radius:16px 16px 0 0;opacity:1;transition:top 600ms ease}.duet-modal.duet-modal-has-sticky-header{height:100%;overflow:auto}.duet-modal:focus{outline:0}.duet-modal-body,.duet-modal-sticky-header{width:100%;padding:36px 28px}.duet-modal-body.duet-modal-gutter-none,.duet-modal-sticky-header.duet-modal-gutter-none{padding:0 !important}.duet-modal-body.duet-modal-gutter-small,.duet-modal-sticky-header.duet-modal-gutter-small{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}@media (max-width: 22.5em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 28px}}@media (max-width: 35.9375em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}}@media (min-width: 36em){.duet-modal-body,.duet-modal-sticky-header{padding:36px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:28px 72px}}@media (min-width: 48em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 72px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:36px 72px}}@media (min-width: 76.25em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 48px 48px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 94px}.small .duet-modal-body,.small .duet-modal-sticky-header{padding:36px 48px}}.duet-modal-header{text-align:center}.duet-modal-sticky-header{position:sticky;top:0;z-index:300;display:block;padding-bottom:12px;text-align:left;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229);border-radius:16px 16px 0 0}.duet-theme-turva .duet-modal-sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-modal-close{position:absolute;top:8px;right:8px}.duet-modal-heading{width:100%;padding-right:60px;overflow:hidden;text-overflow:ellipsis;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);letter-spacing:-0.01rem;white-space:nowrap;text-decoration:none}.duet-modal-heading.duet-p-0{padding:0 !important}.duet-modal-heading.duet-m-0{margin:0 !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal-sticky-header{background:rgb(253, 247, 242);border-bottom:1px solid rgb(212, 221, 226)}';var v=y;var x=600;var k=e("duet_modal",function(){function e(e){t(this,e);this.duetOpen=i(this,"duetOpen",7);this.duetClose=i(this,"duetClose",7);this.duetCloseComplete=i(this,"duetCloseComplete",7);this.duetBeforeClose=i(this,"duetBeforeClose",7);var a,d;this.hasStickyHeader=false;this.isAndroidDevice=((d=(a=navigator===null||navigator===void 0?void 0:navigator.userAgent)===null||a===void 0?void 0:a.toLowerCase())===null||d===void 0?void 0:d.indexOf("android"))>-1||null;this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(navigator===null||navigator===void 0?void 0:navigator.userAgent);this.accessibleLoaderAnnouncementDefaults=s;this.accessibleCloseLabelDefaults={fi:"Sulje ikkuna",sv:"Stäng fönstret",en:"Close the dialog"};this.handleAndroidResizeEvents=function(){if(document.activeElement.tagName=="INPUT"){window.setTimeout((function(){var e;try{(e=document===null||document===void 0?void 0:document.activeElement)===null||e===void 0?void 0:e.scrollIntoViewIfNeeded(true)}catch(e){}}),100)}};this.open=false;this.language=m();this.accessibleCloseLabel=c(this.accessibleCloseLabelDefaults,this.language);this.accessibleLoaderAnnouncement=c(this.accessibleLoaderAnnouncementDefaults,this.language);this.size="medium";this.accessibleDescribedBy=undefined;this.accessibleLabelledBy=undefined;this.accessibleLabel=undefined;this.accessibleDetails=undefined;this.accessibleDescription=undefined;this.variation="default";this.gutterSize="medium";this.theme="";this.heading="";this.headingLevel="h3";this.headingVisualLevel=undefined;this.icon="";this.color="";this.active=false;this.closeOnBlur=false;this.focusElementOnClose=undefined;this.accessibleAnnounceChanges=undefined}e.prototype.openChanged=function(){var e=this;if(this.open){if(this.modalEl&&this.modalEl.scrollTop){this.modalEl.scrollTop=0}this.focusedElBeforeOpen=document.activeElement;o(this.variation==="slide-up"?this.modalContentEl:this.modalEl,{reserveScrollBarGap:true});this.teleport.makeSiblingsInert();this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((function(e){return e.remove()}));setTimeout((function(){if(e.variation==="loader"){e.addMessage(e.accessibleLoaderAnnouncement,false)}else{if(e.isAndroidDevice){e.modalEl.focus()}else{e.buttonEl.setFocus()}}}),x);setTimeout((function(){e.modalEl.classList.add("duet-disable-transitions")}),x+200);if(this.isAndroidDevice){window.addEventListener("resize",this.handleAndroidResizeEvents)}this.duetOpen.emit()}else{this.modalEl.classList.remove("duet-disable-transitions");this.modalEl.addEventListener("transitionend",(function(){return e.duetCloseComplete.emit()}),{once:true});n(this.variation==="slide-up"?this.modalContentEl:this.modalEl);this.duetClose.emit();this.teleport.removeInertFromSiblings();if(this.focusElementOnClose!==""){setTimeout((function(){return __awaiter(e,void 0,void 0,(function(){var e,t,i;return __generator(this,(function(a){switch(a.label){case 0:e=this.focusedElBeforeOpen;if(typeof this.focusElementOnClose==="string"){e=document.getElementById(this.focusElementOnClose)||e}else{e=this.focusElementOnClose||e}if(!(e.tagName.toLowerCase()==="duet-popup-menu-item"))return[3,2];t=e.closest("duet-popup-menu");return[4,t.isOpen()];case 1:i=a.sent();if(!i&&t.controller){if(typeof t.controller==="string"){e=document.getElementById(t.controller)}else{e=t.controller}}a.label=2;case 2:u(e);return[2]}}))}))}),x)}if(this.isAndroidDevice){window.removeEventListener("resize",this.handleAndroidResizeEvents)}}};e.prototype.activeChanged=function(){this.open=this.active};e.prototype.componentWillLoad=function(){this.hasStickyHeader=p(this.element,"sticky-header");r(this)};e.prototype.componentDidLoad=function(){if(this.active){this.open=true;this.modalEl.classList.add("duet-disable-transitions")}};e.prototype.connectedCallback=function(){if(!this.teleport){this.teleport=new g(this.element)}if(this.teleport){this.teleport.activate()}h(this,[{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefaults"},{prop:"accessibleLoaderAnnouncement",defaults:"accessibleLoaderAnnouncementDefaults"}])};e.prototype.disconnectedCallback=function(){f(this);if(this.modalEl){n(this.modalEl)}};e.prototype.handleKeyUp=function(e){if(this.open){if(l(e)){this.closeModal(e)}}};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=true;return[2]}))}))};e.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=false;return[2]}))}))};e.prototype.focusCloseButton=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.buttonEl.setFocus();return[2]}))}))};e.prototype.scrollToTop=function(){return __awaiter(this,arguments,void 0,(function(e){var t,i,a,d;if(e===void 0){e=true}return __generator(this,(function(o){i=e?"smooth":"auto";if(this.variation==="slide-up"){a=((t=this.modalEl.querySelector(".duet-modal-sticky-header"))===null||t===void 0?void 0:t.clientHeight)||0;d=this.modalEl.querySelector(".duet-modal-body").computedStyleMap().get("padding-top");this.slotContainerEl.style.scrollMarginTop="".concat(a+d.value,"px");this.slotContainerEl.scrollIntoView({behavior:i})}else{this.modalEl.querySelector(".duet-modal-body").scrollIntoView({behavior:i})}return[2]}))}))};e.prototype.addMessage=function(e){return __awaiter(this,arguments,void 0,(function(e,t){var i;var a=this;if(t===void 0){t=true}return __generator(this,(function(d){i=document.createElement(t?"duet-paragraph":"duet-visually-hidden");i.textContent=e;i.classList.add("duet-loader-message");if(t){setTimeout((function(){a.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((function(e){return e.classList.remove("show")}));i.classList.add("show")}),10)}this.slotContainerEl.appendChild(i);return[2]}))}))};e.prototype.closeModal=function(e){var t=this;this.duetBeforeClose.emit({originalEvent:e,component:"duet-modal"});if(!e.defaultPrevented){setTimeout((function(){t.hide()}),1)}};e.prototype.render=function(){var e,t;var i=this;var d,o;var n=b("primary",this.theme);var r=b("secondary",this.theme);var s=a("div",{key:"cee464a60790470777e6a499800617fdeda46de2",class:"duet-modal-close"},a("duet-button",{key:"6eadf084b0e3bdebf9ed9415f993767800a86693",ref:function(e){return i.buttonEl=e},variation:"plain",accessibleLabel:this.accessibleCloseLabel,color:r,iconSize:"large",icon:"navigation-close",iconOnly:true,margin:"none",theme:this.theme,onClick:function(e){return i.closeModal(e)},fixed:true}));return a("div",{key:"569724872e61d206fbca2289a0a1d4b4beb651ca",ref:function(e){return i.modalEl=e},"aria-label":(d=this.accessibleLabel)!==null&&d!==void 0?d:this.heading,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,role:this.variation==="loader"?"alert":"dialog","aria-modal":this.isSafariBrowser?false:true,tabindex:"-1",class:{"duet-modal-container":true,"duet-theme-turva":this.theme==="turva","duet-modal-active":this.open,"duet-modal-slide-up":this.variation==="slide-up","duet-modal-has-sticky-header":this.hasStickyHeader}},a("duet-overlay",{key:"631d58f62ee39029e3f410eaad94fc95efcfc4cb","z-index":"-1",visible:this.open,variation:this.variation==="loader"?"white":"default"}),a("div",{key:"8d52e7639d49138fb22c4256e53698a7ee6ecb0d",ref:function(e){return i.modalInnerEl=e},class:(e={"duet-modal-inner":true},e[this.size]=true,e["duet-modal-slide-up"]=this.variation==="slide-up",e),onClick:function(e){if(i.closeOnBlur){var t=e.target||e.srcElement;if(t===i.modalInnerEl){i.closeModal(e)}}}},a("div",{key:"9773dc0770a2d32e95b72571778d6b8863f0adbf",ref:function(e){return i.modalContentEl=e},"aria-live":this.accessibleAnnounceChanges==="all"?"polite":null,"aria-atomic":this.accessibleAnnounceChanges==="all"?"true":null,class:(t={"duet-modal":true,"duet-modal-has-sticky-header":this.hasStickyHeader},t[this.size]=true,t[this.variation]=true,t)},this.gutterSize!=="none"&&!this.hasStickyHeader&&a("duet-spacer",{key:"1f51df35643d76720aadc11b98268076bd459cc4"}),this.hasStickyHeader?a("div",{class:"duet-modal-sticky-header"},s,a("slot",{name:"sticky-header"})):s,a("div",{key:"5433702f6dad665e82628236206e35a0503c3095",class:{"duet-modal-body":true,"duet-modal-gutter-none":this.gutterSize==="none","duet-modal-gutter-small":this.gutterSize==="small","duet-modal-gutter-medium":this.gutterSize==="medium","duet-modal-gutter-large":this.gutterSize==="large"},"aria-live":this.accessibleAnnounceChanges==="heading"?"polite":null,"aria-atomic":this.accessibleAnnounceChanges==="heading"?"true":null},a("div",{key:"579ba1b41caf40e97242aeacbf47ead29ea6aac7",class:"duet-modal-header"},a("span",{key:"353ab4ce18f8cfaa384b7d1e02e5daf03895fc01",class:"duet-modal-inner-slot-top"},a("slot",{key:"d1b1bd5e49db08393d62154e7a3524ea4bc5fc12",name:"top"})),this.icon&&a("duet-icon",{key:"559c22da92b732cc829c9047bdc0c6b115058f32",name:this.icon,size:"xx-large",color:this.color||n}),this.heading&&a("duet-heading",{key:"4ffd1a28f6c1ec9a946b362f588e04350bab1dbd","visual-level":(o=this.headingVisualLevel)!==null&&o!==void 0?o:this.headingLevel,level:this.headingLevel,theme:this.theme},this.heading)),this.variation==="loader"&&a("div",{key:"2c9b370fbf07ff1804bb2bb8590593dae83cc629",class:"duet-modal-spinner"},a("duet-spinner",{key:"77c91d8fef8f52c65b5565388343bf0021529c1f",size:"large",color:b("primary",this.theme)})),a("div",{key:"0438008ab36af91adcbd0fa0cc1ad22980e086be","aria-live":this.variation==="loader"?"assertive":this.accessibleAnnounceChanges==="body"?"polite":null,"aria-atomic":this.accessibleAnnounceChanges==="body"?"true":null,class:"duet-modal-inner-slot-default",ref:function(e){return i.slotContainerEl=e}},a("slot",{key:"2f174789d1cf40896384bc95dd6cece3f847ac00"}))))))};Object.defineProperty(e.prototype,"element",{get:function(){return d(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["openChanged"],active:["activeChanged"]}},enumerable:false,configurable:true});return e}());k.style=v}}}));