@duetds/components 10.0.0-alpha.13 → 10.0.0-alpha.14

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 (1027) hide show
  1. package/hydrate/index.d.ts +38 -7
  2. package/hydrate/index.js +7554 -3237
  3. package/hydrate/index.mjs +45083 -0
  4. package/lib/cjs/_commonjsHelpers-4N64IRaP.js +10 -0
  5. package/lib/cjs/{a11y-utils-afeb2485.js → a11y-utils-CrefuUbk.js} +1 -1
  6. package/lib/cjs/action-arrow-down-small-CDsSJFvZ.js +21 -0
  7. package/lib/cjs/action-new-window-small-BWlVx6YN.js +21 -0
  8. package/lib/cjs/{app-globals-540cd51d.js → app-globals-CkySA1aW.js} +2 -2
  9. package/lib/cjs/duet-action-button.cjs.entry.js +83 -28
  10. package/lib/cjs/duet-alert.cjs.entry.js +72 -30
  11. package/lib/cjs/duet-badge.cjs.entry.js +16 -6
  12. package/lib/cjs/duet-banner.cjs.entry.js +49 -23
  13. package/lib/cjs/duet-breadcrumb.cjs.entry.js +32 -12
  14. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +17 -11
  15. package/lib/cjs/duet-button_2.cjs.entry.js +147 -54
  16. package/lib/cjs/duet-callout.cjs.entry.js +10 -7
  17. package/lib/cjs/duet-caption_4.cjs.entry.js +175 -34
  18. package/lib/cjs/duet-card.cjs.entry.js +80 -30
  19. package/lib/cjs/duet-checkbox.cjs.entry.js +65 -29
  20. package/lib/cjs/duet-checkmark.cjs.entry.js +18 -6
  21. package/lib/cjs/duet-chip.cjs.entry.js +49 -29
  22. package/lib/cjs/duet-choice_2.cjs.entry.js +212 -74
  23. package/lib/cjs/duet-collapsible.cjs.entry.js +67 -25
  24. package/lib/cjs/duet-combobox.cjs.entry.js +79 -46
  25. package/lib/cjs/duet-contact-card.cjs.entry.js +14 -15
  26. package/lib/cjs/duet-cookie-consent.cjs.entry.js +12 -9
  27. package/lib/cjs/duet-date-picker.cjs.entry.js +142 -52
  28. package/lib/cjs/duet-divider_2.cjs.entry.js +26 -10
  29. package/lib/cjs/duet-editable-table_3.cjs.entry.js +477 -198
  30. package/lib/cjs/duet-empty-state.cjs.entry.js +12 -6
  31. package/lib/cjs/duet-fieldset.cjs.entry.js +38 -19
  32. package/lib/cjs/duet-file-chooser.cjs.entry.js +16 -9
  33. package/lib/cjs/duet-footer.cjs.entry.js +52 -26
  34. package/lib/cjs/duet-grid_2.cjs.entry.js +65 -12
  35. package/lib/cjs/duet-header_2.cjs.entry.js +250 -85
  36. package/lib/cjs/duet-hero.cjs.entry.js +110 -26
  37. package/lib/cjs/duet-icon.cjs.entry.js +50 -11
  38. package/lib/cjs/duet-input_2.cjs.entry.js +181 -69
  39. package/lib/cjs/duet-layout.cjs.entry.js +27 -7
  40. package/lib/cjs/duet-list_2.cjs.entry.js +44 -9
  41. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +21 -13
  42. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +16 -11
  43. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +16 -11
  44. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +37 -16
  45. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +15 -7
  46. package/lib/cjs/duet-menu-bar.cjs.entry.js +32 -22
  47. package/lib/cjs/duet-modal.cjs.entry.js +74 -18
  48. package/lib/cjs/duet-multiselect.cjs.entry.js +85 -39
  49. package/lib/cjs/duet-nav.cjs.entry.js +10 -6
  50. package/lib/cjs/duet-notification_2.cjs.entry.js +83 -27
  51. package/lib/cjs/duet-number-input.cjs.entry.js +175 -65
  52. package/lib/cjs/duet-overlay.cjs.entry.js +33 -12
  53. package/lib/cjs/duet-page-heading.cjs.entry.js +13 -8
  54. package/lib/cjs/duet-pagination_2.cjs.entry.js +147 -72
  55. package/lib/cjs/duet-phone-input.cjs.entry.js +76 -35
  56. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +108 -54
  57. package/lib/cjs/duet-progress.cjs.entry.js +31 -12
  58. package/lib/cjs/duet-promo-card.cjs.entry.js +24 -10
  59. package/lib/cjs/duet-radio_2.cjs.entry.js +100 -47
  60. package/lib/cjs/duet-range-slider.cjs.entry.js +70 -34
  61. package/lib/cjs/duet-scrollable_3.cjs.entry.js +172 -59
  62. package/lib/cjs/duet-section-layout.cjs.entry.js +13 -6
  63. package/lib/cjs/duet-select.cjs.entry.js +79 -37
  64. package/lib/cjs/duet-shaped-image.cjs.entry.js +13 -8
  65. package/lib/cjs/duet-show-more.cjs.entry.js +77 -35
  66. package/lib/cjs/duet-slideout-lang.cjs.entry.js +8 -8
  67. package/lib/cjs/duet-slideout-link.cjs.entry.js +47 -14
  68. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +18 -9
  69. package/lib/cjs/duet-slideout-panel.cjs.entry.js +40 -23
  70. package/lib/cjs/duet-slideout.cjs.entry.js +37 -23
  71. package/lib/cjs/duet-status-icon.cjs.entry.js +14 -4
  72. package/lib/cjs/duet-step_2.cjs.entry.js +52 -18
  73. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +22 -7
  74. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +22 -13
  75. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +38 -17
  76. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +16 -7
  77. package/lib/cjs/duet-submenu-bar.cjs.entry.js +21 -15
  78. package/lib/cjs/duet-textarea.cjs.entry.js +98 -45
  79. package/lib/cjs/duet-toggle.cjs.entry.js +47 -26
  80. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +19 -8
  81. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +22 -11
  82. package/lib/cjs/duet-toolbar-item.cjs.entry.js +43 -16
  83. package/lib/cjs/duet-toolbar-link.cjs.entry.js +18 -7
  84. package/lib/cjs/duet-toolbar.cjs.entry.js +9 -7
  85. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +11 -20
  86. package/lib/cjs/duet-tooltip.cjs.entry.js +91 -45
  87. package/lib/cjs/duet-tray.cjs.entry.js +60 -21
  88. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +29 -10
  89. package/lib/cjs/duet-upload-item.cjs.entry.js +10 -20
  90. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -5
  91. package/lib/cjs/duet.cjs.js +8 -8
  92. package/lib/cjs/{errorcodes.utils-b47aaa45.js → errorcodes.utils-mZFkq5Tt.js} +2 -2
  93. package/lib/cjs/floating-ui.dom.browser.min-Cj0r5YDz.js +709 -0
  94. package/lib/cjs/{focus-utils-c4163f8f.js → focus-utils-dqd59YI6.js} +1 -1
  95. package/lib/cjs/form-search-CzPfHB80.js +21 -0
  96. package/lib/cjs/{index-00821d28.js → index-CdC7dzZ-.js} +1845 -1369
  97. package/lib/cjs/{label-3ce3ebad.js → label-BQpxsrOR.js} +1 -1
  98. package/lib/cjs/{language-utils-77bf1c27.js → language-utils-A7DfQayC.js} +2 -2
  99. package/lib/cjs/loader.cjs.js +3 -5
  100. package/lib/cjs/{slot-utils-acd4cc20.js → slot-utils-DgJchaT4.js} +1 -1
  101. package/lib/cjs/{token-utils-5000595c.js → token-utils-BcI9qaMX.js} +2 -2
  102. package/lib/cjs/{tokens-57e06fe4.js → tokens-Qt4x7zcB.js} +4 -4
  103. package/lib/cjs/{tokens.module-7c947029.js → tokens.module-Dzg9dTSm.js} +1 -1
  104. package/lib/collection/collection-manifest.json +1 -1
  105. package/lib/collection/components/duet-action-button/duet-action-button.js +92 -33
  106. package/lib/collection/components/duet-alert/duet-alert.js +77 -32
  107. package/lib/collection/components/duet-badge/duet-badge.js +17 -4
  108. package/lib/collection/components/duet-banner/duet-banner.js +52 -23
  109. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +18 -7
  110. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +13 -4
  111. package/lib/collection/components/duet-button/duet-button.js +164 -80
  112. package/lib/collection/components/duet-callout/duet-callout.js +8 -2
  113. package/lib/collection/components/duet-caption/duet-caption.js +16 -4
  114. package/lib/collection/components/duet-card/duet-card.js +73 -32
  115. package/lib/collection/components/duet-checkbox/duet-checkbox.js +83 -44
  116. package/lib/collection/components/duet-chip/duet-chip.js +56 -33
  117. package/lib/collection/components/duet-choice/duet-checkmark.js +20 -5
  118. package/lib/collection/components/duet-choice/duet-choice.js +162 -75
  119. package/lib/collection/components/duet-choice-group/duet-choice-group.js +75 -32
  120. package/lib/collection/components/duet-collapsible/duet-collapsible.js +68 -24
  121. package/lib/collection/components/duet-combobox/duet-combobox.js +83 -45
  122. package/lib/collection/components/duet-contact-card/duet-contact-card.js +19 -17
  123. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +10 -4
  124. package/lib/collection/components/duet-date-picker/duet-date-picker.js +149 -67
  125. package/lib/collection/components/duet-divider/duet-divider.js +13 -3
  126. package/lib/collection/components/duet-editable-table/duet-editable-table.js +81 -24
  127. package/lib/collection/components/duet-empty-state/duet-empty-state.js +12 -3
  128. package/lib/collection/components/duet-fieldset/duet-fieldset.js +42 -20
  129. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +16 -6
  130. package/lib/collection/components/duet-footer/duet-footer.js +51 -23
  131. package/lib/collection/components/duet-grid/duet-grid.js +38 -8
  132. package/lib/collection/components/duet-grid-item/duet-grid-item.js +38 -11
  133. package/lib/collection/components/duet-header/duet-header.js +162 -74
  134. package/lib/collection/components/duet-heading/duet-heading.js +36 -12
  135. package/lib/collection/components/duet-hero/duet-hero.js +128 -41
  136. package/lib/collection/components/duet-icon/duet-icon.js +58 -16
  137. package/lib/collection/components/duet-input/duet-input.js +183 -93
  138. package/lib/collection/components/duet-label/duet-label.js +22 -7
  139. package/lib/collection/components/duet-layout/duet-layout.js +30 -7
  140. package/lib/collection/components/duet-link/duet-link.js +84 -26
  141. package/lib/collection/components/duet-list/duet-list.js +37 -8
  142. package/lib/collection/components/duet-list-item/duet-list-item.js +12 -2
  143. package/lib/collection/components/duet-logo/duet-logo.js +34 -7
  144. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +33 -20
  145. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +31 -20
  146. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +16 -8
  147. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +16 -8
  148. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +37 -14
  149. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +17 -6
  150. package/lib/collection/components/duet-modal/duet-modal.js +82 -23
  151. package/lib/collection/components/duet-multiselect/duet-multiselect.js +95 -45
  152. package/lib/collection/components/duet-nav/duet-nav.js +9 -2
  153. package/lib/collection/components/duet-notification/duet-notification.js +37 -7
  154. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +52 -22
  155. package/lib/collection/components/duet-number-input/duet-number-input.js +177 -87
  156. package/lib/collection/components/duet-overlay/duet-overlay.js +38 -14
  157. package/lib/collection/components/duet-page-heading/duet-page-heading.js +15 -7
  158. package/lib/collection/components/duet-pagination/duet-pagination.js +119 -65
  159. package/lib/collection/components/duet-paragraph/duet-paragraph.js +25 -6
  160. package/lib/collection/components/duet-phone-input/duet-phone-input.js +89 -44
  161. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +58 -33
  162. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +59 -27
  163. package/lib/collection/components/duet-progress/duet-progress.js +36 -14
  164. package/lib/collection/components/duet-promo-card/duet-promo-card.js +25 -8
  165. package/lib/collection/components/duet-radio/duet-radio.js +63 -45
  166. package/lib/collection/components/duet-radio-group/duet-radio-group.js +67 -28
  167. package/lib/collection/components/duet-range-slider/duet-range-slider.js +83 -44
  168. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +41 -12
  169. package/lib/collection/components/duet-scrollable/duet-scrollable.js +55 -18
  170. package/lib/collection/components/duet-section-layout/duet-section-layout.js +13 -3
  171. package/lib/collection/components/duet-select/duet-select.js +98 -53
  172. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +15 -7
  173. package/lib/collection/components/duet-show-more/duet-show-more.js +84 -35
  174. package/lib/collection/components/duet-slideout/duet-slideout.js +32 -15
  175. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +4 -1
  176. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +48 -13
  177. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +37 -17
  178. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +19 -7
  179. package/lib/collection/components/duet-spacer/duet-spacer.js +13 -3
  180. package/lib/collection/components/duet-spinner/duet-spinner.js +18 -5
  181. package/lib/collection/components/duet-status-icon/duet-status-icon.js +16 -4
  182. package/lib/collection/components/duet-step/duet-step.js +23 -14
  183. package/lib/collection/components/duet-stepper/duet-stepper.js +22 -5
  184. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +20 -11
  185. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +21 -9
  186. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +24 -6
  187. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +37 -14
  188. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +16 -4
  189. package/lib/collection/components/duet-tab/duet-tab.js +35 -21
  190. package/lib/collection/components/duet-tab-group/duet-tab-group.js +107 -40
  191. package/lib/collection/components/duet-table/duet-table.js +40 -11
  192. package/lib/collection/components/duet-textarea/duet-textarea.js +122 -66
  193. package/lib/collection/components/duet-toggle/duet-toggle.js +60 -36
  194. package/lib/collection/components/duet-toolbar/duet-toolbar.js +9 -4
  195. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +24 -10
  196. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +21 -7
  197. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +45 -16
  198. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +21 -7
  199. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +6 -9
  200. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +10 -11
  201. package/lib/collection/components/duet-tooltip/duet-tooltip.js +93 -44
  202. package/lib/collection/components/duet-tray/duet-tray.js +61 -19
  203. package/lib/collection/components/duet-upload/duet-upload.js +417 -211
  204. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +34 -12
  205. package/lib/collection/components/duet-upload-item/duet-upload-item.js +15 -16
  206. package/lib/collection/index.js +1 -0
  207. package/lib/collection/utils/test-utils.js +2 -2
  208. package/lib/duet/duet.esm.js +1 -1
  209. package/lib/duet/{p-7a41a208.entry.js → p-022a948c.entry.js} +1 -1
  210. package/lib/duet/p-09fe69e4.entry.js +4 -0
  211. package/lib/duet/p-0e72751a.entry.js +4 -0
  212. package/lib/duet/p-138538b8.entry.js +4 -0
  213. package/lib/duet/{p-fa070e35.entry.js → p-15f95fae.entry.js} +1 -1
  214. package/lib/duet/p-190b9ab3.entry.js +4 -0
  215. package/lib/duet/{p-feda74a6.entry.js → p-1af2ca54.entry.js} +1 -1
  216. package/lib/duet/p-1e769f0d.entry.js +4 -0
  217. package/lib/duet/p-1f5989b6.entry.js +4 -0
  218. package/lib/duet/{p-76b4b8b8.entry.js → p-1f8695a5.entry.js} +1 -1
  219. package/lib/duet/p-29e1d491.entry.js +4 -0
  220. package/lib/duet/p-2cbe593b.entry.js +4 -0
  221. package/lib/duet/p-32f7b711.entry.js +4 -0
  222. package/lib/duet/p-362f6fc2.entry.js +4 -0
  223. package/lib/duet/p-38b70269.entry.js +4 -0
  224. package/lib/duet/p-3fca2738.entry.js +4 -0
  225. package/lib/duet/p-44f37fb5.entry.js +4 -0
  226. package/lib/duet/{p-0e04987f.entry.js → p-48af1ecb.entry.js} +1 -1
  227. package/lib/duet/{p-2013ff49.entry.js → p-4aa49986.entry.js} +1 -1
  228. package/lib/duet/p-4c281745.entry.js +4 -0
  229. package/lib/duet/{p-c41397de.entry.js → p-4e945a94.entry.js} +1 -1
  230. package/lib/duet/p-56354b6a.entry.js +4 -0
  231. package/lib/duet/p-56cb675d.entry.js +4 -0
  232. package/lib/duet/p-5a75c2dd.entry.js +4 -0
  233. package/lib/duet/p-5d8d8118.entry.js +4 -0
  234. package/lib/duet/p-5f5bcada.entry.js +4 -0
  235. package/lib/duet/p-5iZMFvpJ.js +4 -0
  236. package/lib/duet/p-64021c0d.entry.js +4 -0
  237. package/lib/duet/p-64419d69.entry.js +4 -0
  238. package/lib/duet/p-6b17ff88.entry.js +4 -0
  239. package/lib/duet/p-6e621f1a.entry.js +4 -0
  240. package/lib/duet/p-740f6f1f.entry.js +4 -0
  241. package/lib/duet/{p-b76c9a8c.entry.js → p-7699005d.entry.js} +1 -1
  242. package/lib/duet/p-79255eb6.entry.js +4 -0
  243. package/lib/duet/p-7a319135.entry.js +4 -0
  244. package/lib/duet/p-82f7e5b7.entry.js +4 -0
  245. package/lib/duet/{p-323de867.entry.js → p-839e770e.entry.js} +1 -1
  246. package/lib/duet/p-85316d42.entry.js +4 -0
  247. package/lib/duet/p-885c2f54.entry.js +4 -0
  248. package/lib/duet/p-893e65fc.entry.js +4 -0
  249. package/lib/duet/p-8ca095ab.entry.js +4 -0
  250. package/lib/duet/p-8fd3fed6.entry.js +4 -0
  251. package/lib/duet/{p-279fd0c9.entry.js → p-93336ef6.entry.js} +1 -1
  252. package/lib/duet/p-95f64c62.entry.js +4 -0
  253. package/lib/duet/{p-46df9e4b.entry.js → p-96f19678.entry.js} +1 -1
  254. package/lib/duet/p-98088a03.entry.js +4 -0
  255. package/lib/duet/{p-12674919.entry.js → p-9a05eda1.entry.js} +1 -1
  256. package/lib/duet/p-9c942b69.entry.js +4 -0
  257. package/lib/duet/{p-38d6a55c.entry.js → p-9ee7773f.entry.js} +1 -1
  258. package/lib/duet/p-BGuG-JHD.js +5 -0
  259. package/lib/duet/p-BSVeUfs_.js +4 -0
  260. package/lib/duet/p-BVgBUIYF.js +4 -0
  261. package/lib/duet/{p-81287261.js → p-B_NkY9T0.js} +1 -1
  262. package/lib/duet/{p-465be57f.js → p-CKWzhSi1.js} +1 -1
  263. package/lib/duet/p-CwQkRqt4.js +4 -0
  264. package/lib/duet/p-DJ_0Rwfo.js +4 -0
  265. package/lib/duet/{p-744b8ee1.js → p-DQNSmB4A.js} +1 -1
  266. package/lib/duet/p-DWTFQwbu.js +4 -0
  267. package/lib/duet/{p-12b49f6f.js → p-DXDaS3zE.js} +1 -1
  268. package/lib/duet/{p-a45e3f8b.js → p-Db8rvjPI.js} +1 -1
  269. package/lib/duet/p-DkXykZBx.js +4 -0
  270. package/lib/duet/p-DvwKrUS6.js +4 -0
  271. package/lib/duet/p-ObNrEFDJ.js +4 -0
  272. package/lib/duet/p-UQH7pb1d.js +4 -0
  273. package/lib/duet/{p-05a9d58f.entry.js → p-a0c26d74.entry.js} +1 -1
  274. package/lib/duet/{p-25109796.entry.js → p-a4613009.entry.js} +1 -1
  275. package/lib/duet/p-a57b80f6.entry.js +4 -0
  276. package/lib/duet/{p-d4dd9fea.entry.js → p-a7dc80d5.entry.js} +1 -1
  277. package/lib/duet/{p-0febcf5b.entry.js → p-a893d1f9.entry.js} +1 -1
  278. package/lib/duet/p-a95a9a4d.entry.js +4 -0
  279. package/lib/duet/p-a9b45f8b.entry.js +4 -0
  280. package/lib/duet/{p-29e6f9b7.entry.js → p-aadd810c.entry.js} +1 -1
  281. package/lib/duet/p-ae4af39c.entry.js +4 -0
  282. package/lib/duet/p-ae5e487c.entry.js +4 -0
  283. package/lib/duet/p-b6517bc0.entry.js +4 -0
  284. package/lib/duet/p-b96af1da.entry.js +4 -0
  285. package/lib/duet/{p-0d045bb2.entry.js → p-be665fb2.entry.js} +1 -1
  286. package/lib/duet/{p-c2f40f22.entry.js → p-be70c5b0.entry.js} +1 -1
  287. package/lib/duet/p-bfc2e504.entry.js +4 -0
  288. package/lib/duet/p-c00040f7.entry.js +4 -0
  289. package/lib/duet/p-c03603ba.entry.js +4 -0
  290. package/lib/duet/{p-23435148.entry.js → p-c089e413.entry.js} +1 -1
  291. package/lib/duet/p-c3aa1f9b.entry.js +4 -0
  292. package/lib/duet/p-c489f228.entry.js +4 -0
  293. package/lib/duet/p-c4d0a7f2.entry.js +4 -0
  294. package/lib/duet/p-c5dbeb9d.entry.js +4 -0
  295. package/lib/duet/p-c6237212.entry.js +4 -0
  296. package/lib/duet/p-cf728e59.entry.js +4 -0
  297. package/lib/duet/{p-760e5874.entry.js → p-d155856d.entry.js} +1 -1
  298. package/lib/duet/p-d1f5b0cb.entry.js +4 -0
  299. package/lib/duet/p-d386eb3c.entry.js +4 -0
  300. package/lib/duet/p-d8ceab90.entry.js +4 -0
  301. package/lib/duet/{p-750d4767.entry.js → p-dac62f09.entry.js} +1 -1
  302. package/lib/duet/p-e4156276.entry.js +4 -0
  303. package/lib/duet/p-e6b06321.entry.js +4 -0
  304. package/lib/duet/p-e6d38c72.entry.js +4 -0
  305. package/lib/duet/{p-5fb4ac45.entry.js → p-ec552dc7.entry.js} +1 -1
  306. package/lib/duet/p-ff5188ab.entry.js +4 -0
  307. package/lib/duet/p-vVCYtBMj.js +4 -0
  308. package/lib/esm/_commonjsHelpers-DvwKrUS6.js +8 -0
  309. package/lib/{dist-custom-elements/p-afb6f7fb.js → esm/a11y-utils-Bdgp_pLF.js} +1 -1
  310. package/lib/esm/action-arrow-down-small-Bk3GShyI.js +19 -0
  311. package/lib/esm/action-new-window-small-EH8_HdAm.js +19 -0
  312. package/lib/esm/{app-globals-2c6c1103.js → app-globals-BM3P_KO9.js} +2 -2
  313. package/lib/esm/duet-action-button.entry.js +83 -26
  314. package/lib/esm/duet-alert.entry.js +72 -28
  315. package/lib/esm/duet-badge.entry.js +16 -4
  316. package/lib/esm/duet-banner.entry.js +49 -21
  317. package/lib/esm/duet-breadcrumb.entry.js +33 -11
  318. package/lib/esm/duet-breadcrumbs.entry.js +17 -9
  319. package/lib/esm/duet-button_2.entry.js +147 -52
  320. package/lib/esm/duet-callout.entry.js +10 -5
  321. package/lib/esm/duet-caption_4.entry.js +175 -32
  322. package/lib/esm/duet-card.entry.js +80 -28
  323. package/lib/esm/duet-checkbox.entry.js +65 -27
  324. package/lib/esm/duet-checkmark.entry.js +18 -4
  325. package/lib/esm/duet-chip.entry.js +49 -27
  326. package/lib/esm/duet-choice_2.entry.js +213 -73
  327. package/lib/esm/duet-collapsible.entry.js +67 -23
  328. package/lib/esm/duet-combobox.entry.js +79 -44
  329. package/lib/esm/duet-contact-card.entry.js +14 -13
  330. package/lib/esm/duet-cookie-consent.entry.js +12 -7
  331. package/lib/esm/duet-date-picker.entry.js +142 -50
  332. package/lib/esm/duet-divider_2.entry.js +26 -8
  333. package/lib/esm/duet-editable-table_3.entry.js +477 -196
  334. package/lib/esm/duet-empty-state.entry.js +12 -4
  335. package/lib/esm/duet-fieldset.entry.js +38 -17
  336. package/lib/esm/duet-file-chooser.entry.js +16 -7
  337. package/lib/esm/duet-footer.entry.js +52 -24
  338. package/lib/esm/duet-grid_2.entry.js +65 -10
  339. package/lib/esm/duet-header_2.entry.js +251 -84
  340. package/lib/esm/duet-hero.entry.js +110 -24
  341. package/lib/esm/duet-icon.entry.js +50 -9
  342. package/lib/esm/duet-input_2.entry.js +182 -68
  343. package/lib/esm/duet-layout.entry.js +27 -5
  344. package/lib/esm/duet-list_2.entry.js +44 -7
  345. package/lib/esm/duet-menu-bar-button.entry.js +21 -11
  346. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +16 -9
  347. package/lib/esm/duet-menu-bar-dropdown.entry.js +16 -9
  348. package/lib/esm/duet-menu-bar-item.entry.js +37 -14
  349. package/lib/esm/duet-menu-bar-link.entry.js +15 -5
  350. package/lib/esm/duet-menu-bar.entry.js +32 -20
  351. package/lib/esm/duet-modal.entry.js +74 -16
  352. package/lib/esm/duet-multiselect.entry.js +85 -37
  353. package/lib/esm/duet-nav.entry.js +10 -4
  354. package/lib/esm/duet-notification_2.entry.js +83 -25
  355. package/lib/esm/duet-number-input.entry.js +176 -64
  356. package/lib/esm/duet-overlay.entry.js +33 -10
  357. package/lib/esm/duet-page-heading.entry.js +13 -6
  358. package/lib/esm/duet-pagination_2.entry.js +147 -70
  359. package/lib/esm/duet-phone-input.entry.js +76 -33
  360. package/lib/esm/duet-popup-menu_2.entry.js +105 -49
  361. package/lib/esm/duet-progress.entry.js +31 -10
  362. package/lib/esm/duet-promo-card.entry.js +24 -8
  363. package/lib/esm/duet-radio_2.entry.js +100 -45
  364. package/lib/esm/duet-range-slider.entry.js +70 -32
  365. package/lib/esm/duet-scrollable_3.entry.js +172 -57
  366. package/lib/esm/duet-section-layout.entry.js +13 -4
  367. package/lib/esm/duet-select.entry.js +79 -35
  368. package/lib/esm/duet-shaped-image.entry.js +13 -6
  369. package/lib/esm/duet-show-more.entry.js +77 -33
  370. package/lib/esm/duet-slideout-lang.entry.js +8 -6
  371. package/lib/esm/duet-slideout-link.entry.js +47 -12
  372. package/lib/esm/duet-slideout-panel-dropdown.entry.js +18 -7
  373. package/lib/esm/duet-slideout-panel.entry.js +40 -21
  374. package/lib/esm/duet-slideout.entry.js +37 -21
  375. package/lib/esm/duet-status-icon.entry.js +14 -2
  376. package/lib/esm/duet-step_2.entry.js +53 -17
  377. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +22 -5
  378. package/lib/esm/duet-submenu-bar-dropdown.entry.js +22 -11
  379. package/lib/esm/duet-submenu-bar-item.entry.js +38 -15
  380. package/lib/esm/duet-submenu-bar-link.entry.js +16 -5
  381. package/lib/esm/duet-submenu-bar.entry.js +21 -13
  382. package/lib/esm/duet-textarea.entry.js +98 -43
  383. package/lib/esm/duet-toggle.entry.js +47 -24
  384. package/lib/esm/duet-toolbar-dropdown-link.entry.js +19 -6
  385. package/lib/esm/duet-toolbar-dropdown.entry.js +22 -9
  386. package/lib/esm/duet-toolbar-item.entry.js +43 -14
  387. package/lib/esm/duet-toolbar-link.entry.js +18 -5
  388. package/lib/esm/duet-toolbar.entry.js +9 -5
  389. package/lib/esm/duet-tooltip-button_2.entry.js +11 -18
  390. package/lib/esm/duet-tooltip.entry.js +90 -42
  391. package/lib/esm/duet-tray.entry.js +60 -19
  392. package/lib/esm/duet-upload-aria-status.entry.js +29 -8
  393. package/lib/esm/duet-upload-item.entry.js +10 -18
  394. package/lib/esm/duet-visually-hidden.entry.js +2 -3
  395. package/lib/esm/duet.js +7 -6
  396. package/lib/esm/{errorcodes.utils-86af68b7.js → errorcodes.utils-BgVG3eUP.js} +3 -3
  397. package/lib/esm/floating-ui.dom.browser.min-B_NkY9T0.js +702 -0
  398. package/lib/{dist-custom-elements/p-e30dc66d.js → esm/focus-utils-B1AOXMlP.js} +1 -1
  399. package/lib/esm/form-search-CevX33LA.js +19 -0
  400. package/lib/esm/{index-a830b2de.js → index-BGuG-JHD.js} +1843 -1365
  401. package/lib/{dist-custom-elements/p-8db11326.js → esm/keyboard-utils-Db8rvjPI.js} +1 -1
  402. package/lib/{dist-custom-elements/p-42619f94.js → esm/label-BrSxwvH-.js} +1 -1
  403. package/lib/esm/{language-utils-40caac4f.js → language-utils-BxXgd2r7.js} +2 -2
  404. package/lib/esm/loader.js +4 -4
  405. package/lib/{dist-custom-elements/p-ad615991.js → esm/slot-utils-B1zQ6tzO.js} +2 -2
  406. package/lib/{dist-custom-elements/p-0562173d.js → esm/token-utils-D2bU4zM_.js} +2 -2
  407. package/lib/esm/{tokens-84fb2357.js → tokens-DkXykZBx.js} +5 -5
  408. package/lib/{dist-custom-elements/p-cea716f7.js → esm/tokens.module-UQH7pb1d.js} +2 -2
  409. package/lib/index.js +1 -1
  410. package/lib/loader/cdn.js +1 -2
  411. package/lib/loader/index.cjs.js +1 -2
  412. package/lib/loader/index.es2017.js +0 -1
  413. package/lib/loader/index.js +1 -2
  414. package/lib/types/components.d.ts +1611 -0
  415. package/lib/types/index.d.ts +1 -0
  416. package/lib/types/stencil-public-runtime.d.ts +35 -6
  417. package/package.json +23 -9
  418. package/lib/cjs/action-arrow-down-small-ef77a2d1.js +0 -8
  419. package/lib/cjs/action-new-window-small-fa51dfb9.js +0 -8
  420. package/lib/cjs/floating-ui.dom.esm-806e7c53.js +0 -1355
  421. package/lib/cjs/form-search-d61b2843.js +0 -8
  422. package/lib/dist-custom-elements/duet-action-button.d.ts +0 -11
  423. package/lib/dist-custom-elements/duet-action-button.js +0 -9
  424. package/lib/dist-custom-elements/duet-alert.d.ts +0 -11
  425. package/lib/dist-custom-elements/duet-alert.js +0 -9
  426. package/lib/dist-custom-elements/duet-badge.d.ts +0 -11
  427. package/lib/dist-custom-elements/duet-badge.js +0 -9
  428. package/lib/dist-custom-elements/duet-banner.d.ts +0 -11
  429. package/lib/dist-custom-elements/duet-banner.js +0 -157
  430. package/lib/dist-custom-elements/duet-breadcrumb.d.ts +0 -11
  431. package/lib/dist-custom-elements/duet-breadcrumb.js +0 -101
  432. package/lib/dist-custom-elements/duet-breadcrumbs.d.ts +0 -11
  433. package/lib/dist-custom-elements/duet-breadcrumbs.js +0 -88
  434. package/lib/dist-custom-elements/duet-button.d.ts +0 -11
  435. package/lib/dist-custom-elements/duet-button.js +0 -9
  436. package/lib/dist-custom-elements/duet-callout.d.ts +0 -11
  437. package/lib/dist-custom-elements/duet-callout.js +0 -72
  438. package/lib/dist-custom-elements/duet-caption.d.ts +0 -11
  439. package/lib/dist-custom-elements/duet-caption.js +0 -9
  440. package/lib/dist-custom-elements/duet-card.d.ts +0 -11
  441. package/lib/dist-custom-elements/duet-card.js +0 -174
  442. package/lib/dist-custom-elements/duet-checkbox.d.ts +0 -11
  443. package/lib/dist-custom-elements/duet-checkbox.js +0 -9
  444. package/lib/dist-custom-elements/duet-checkmark.d.ts +0 -11
  445. package/lib/dist-custom-elements/duet-checkmark.js +0 -9
  446. package/lib/dist-custom-elements/duet-chip.d.ts +0 -11
  447. package/lib/dist-custom-elements/duet-chip.js +0 -9
  448. package/lib/dist-custom-elements/duet-choice-group.d.ts +0 -11
  449. package/lib/dist-custom-elements/duet-choice-group.js +0 -228
  450. package/lib/dist-custom-elements/duet-choice.d.ts +0 -11
  451. package/lib/dist-custom-elements/duet-choice.js +0 -454
  452. package/lib/dist-custom-elements/duet-collapsible.d.ts +0 -11
  453. package/lib/dist-custom-elements/duet-collapsible.js +0 -176
  454. package/lib/dist-custom-elements/duet-combobox.d.ts +0 -11
  455. package/lib/dist-custom-elements/duet-combobox.js +0 -706
  456. package/lib/dist-custom-elements/duet-contact-card.d.ts +0 -11
  457. package/lib/dist-custom-elements/duet-contact-card.js +0 -134
  458. package/lib/dist-custom-elements/duet-cookie-consent.d.ts +0 -11
  459. package/lib/dist-custom-elements/duet-cookie-consent.js +0 -106
  460. package/lib/dist-custom-elements/duet-date-picker.d.ts +0 -11
  461. package/lib/dist-custom-elements/duet-date-picker.js +0 -939
  462. package/lib/dist-custom-elements/duet-divider.d.ts +0 -11
  463. package/lib/dist-custom-elements/duet-divider.js +0 -9
  464. package/lib/dist-custom-elements/duet-editable-table.d.ts +0 -11
  465. package/lib/dist-custom-elements/duet-editable-table.js +0 -258
  466. package/lib/dist-custom-elements/duet-empty-state.d.ts +0 -11
  467. package/lib/dist-custom-elements/duet-empty-state.js +0 -9
  468. package/lib/dist-custom-elements/duet-fieldset.d.ts +0 -11
  469. package/lib/dist-custom-elements/duet-fieldset.js +0 -9
  470. package/lib/dist-custom-elements/duet-file-chooser.d.ts +0 -11
  471. package/lib/dist-custom-elements/duet-file-chooser.js +0 -86
  472. package/lib/dist-custom-elements/duet-footer.d.ts +0 -11
  473. package/lib/dist-custom-elements/duet-footer.js +0 -223
  474. package/lib/dist-custom-elements/duet-grid-item.d.ts +0 -11
  475. package/lib/dist-custom-elements/duet-grid-item.js +0 -9
  476. package/lib/dist-custom-elements/duet-grid.d.ts +0 -11
  477. package/lib/dist-custom-elements/duet-grid.js +0 -9
  478. package/lib/dist-custom-elements/duet-header.d.ts +0 -11
  479. package/lib/dist-custom-elements/duet-header.js +0 -698
  480. package/lib/dist-custom-elements/duet-heading.d.ts +0 -11
  481. package/lib/dist-custom-elements/duet-heading.js +0 -9
  482. package/lib/dist-custom-elements/duet-hero.d.ts +0 -11
  483. package/lib/dist-custom-elements/duet-hero.js +0 -299
  484. package/lib/dist-custom-elements/duet-icon.d.ts +0 -11
  485. package/lib/dist-custom-elements/duet-icon.js +0 -9
  486. package/lib/dist-custom-elements/duet-input.d.ts +0 -11
  487. package/lib/dist-custom-elements/duet-input.js +0 -9
  488. package/lib/dist-custom-elements/duet-label.d.ts +0 -11
  489. package/lib/dist-custom-elements/duet-label.js +0 -70
  490. package/lib/dist-custom-elements/duet-layout.d.ts +0 -11
  491. package/lib/dist-custom-elements/duet-layout.js +0 -94
  492. package/lib/dist-custom-elements/duet-link.d.ts +0 -11
  493. package/lib/dist-custom-elements/duet-link.js +0 -9
  494. package/lib/dist-custom-elements/duet-list-item.d.ts +0 -11
  495. package/lib/dist-custom-elements/duet-list-item.js +0 -9
  496. package/lib/dist-custom-elements/duet-list.d.ts +0 -11
  497. package/lib/dist-custom-elements/duet-list.js +0 -9
  498. package/lib/dist-custom-elements/duet-logo.d.ts +0 -11
  499. package/lib/dist-custom-elements/duet-logo.js +0 -9
  500. package/lib/dist-custom-elements/duet-menu-bar-button.d.ts +0 -11
  501. package/lib/dist-custom-elements/duet-menu-bar-button.js +0 -94
  502. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.d.ts +0 -11
  503. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +0 -87
  504. package/lib/dist-custom-elements/duet-menu-bar-dropdown.d.ts +0 -11
  505. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +0 -108
  506. package/lib/dist-custom-elements/duet-menu-bar-item.d.ts +0 -11
  507. package/lib/dist-custom-elements/duet-menu-bar-item.js +0 -108
  508. package/lib/dist-custom-elements/duet-menu-bar-link.d.ts +0 -11
  509. package/lib/dist-custom-elements/duet-menu-bar-link.js +0 -70
  510. package/lib/dist-custom-elements/duet-menu-bar.d.ts +0 -11
  511. package/lib/dist-custom-elements/duet-menu-bar.js +0 -207
  512. package/lib/dist-custom-elements/duet-modal.d.ts +0 -11
  513. package/lib/dist-custom-elements/duet-modal.js +0 -382
  514. package/lib/dist-custom-elements/duet-multiselect.d.ts +0 -11
  515. package/lib/dist-custom-elements/duet-multiselect.js +0 -346
  516. package/lib/dist-custom-elements/duet-nav.d.ts +0 -11
  517. package/lib/dist-custom-elements/duet-nav.js +0 -54
  518. package/lib/dist-custom-elements/duet-notification-drawer.d.ts +0 -11
  519. package/lib/dist-custom-elements/duet-notification-drawer.js +0 -168
  520. package/lib/dist-custom-elements/duet-notification.d.ts +0 -11
  521. package/lib/dist-custom-elements/duet-notification.js +0 -95
  522. package/lib/dist-custom-elements/duet-number-input.d.ts +0 -11
  523. package/lib/dist-custom-elements/duet-number-input.js +0 -484
  524. package/lib/dist-custom-elements/duet-overlay.d.ts +0 -11
  525. package/lib/dist-custom-elements/duet-overlay.js +0 -9
  526. package/lib/dist-custom-elements/duet-page-heading.d.ts +0 -11
  527. package/lib/dist-custom-elements/duet-page-heading.js +0 -87
  528. package/lib/dist-custom-elements/duet-pagination.d.ts +0 -11
  529. package/lib/dist-custom-elements/duet-pagination.js +0 -493
  530. package/lib/dist-custom-elements/duet-paragraph.d.ts +0 -11
  531. package/lib/dist-custom-elements/duet-paragraph.js +0 -9
  532. package/lib/dist-custom-elements/duet-phone-input.d.ts +0 -11
  533. package/lib/dist-custom-elements/duet-phone-input.js +0 -2136
  534. package/lib/dist-custom-elements/duet-popup-menu-item.d.ts +0 -11
  535. package/lib/dist-custom-elements/duet-popup-menu-item.js +0 -9
  536. package/lib/dist-custom-elements/duet-popup-menu.d.ts +0 -11
  537. package/lib/dist-custom-elements/duet-popup-menu.js +0 -9
  538. package/lib/dist-custom-elements/duet-progress.d.ts +0 -11
  539. package/lib/dist-custom-elements/duet-progress.js +0 -9
  540. package/lib/dist-custom-elements/duet-promo-card.d.ts +0 -11
  541. package/lib/dist-custom-elements/duet-promo-card.js +0 -105
  542. package/lib/dist-custom-elements/duet-radio-group.d.ts +0 -11
  543. package/lib/dist-custom-elements/duet-radio-group.js +0 -213
  544. package/lib/dist-custom-elements/duet-radio.d.ts +0 -11
  545. package/lib/dist-custom-elements/duet-radio.js +0 -230
  546. package/lib/dist-custom-elements/duet-range-slider.d.ts +0 -11
  547. package/lib/dist-custom-elements/duet-range-slider.js +0 -181
  548. package/lib/dist-custom-elements/duet-range-stepper.d.ts +0 -11
  549. package/lib/dist-custom-elements/duet-range-stepper.js +0 -234
  550. package/lib/dist-custom-elements/duet-scrollable.d.ts +0 -11
  551. package/lib/dist-custom-elements/duet-scrollable.js +0 -9
  552. package/lib/dist-custom-elements/duet-section-layout.d.ts +0 -11
  553. package/lib/dist-custom-elements/duet-section-layout.js +0 -56
  554. package/lib/dist-custom-elements/duet-select.d.ts +0 -11
  555. package/lib/dist-custom-elements/duet-select.js +0 -9
  556. package/lib/dist-custom-elements/duet-shaped-image.d.ts +0 -11
  557. package/lib/dist-custom-elements/duet-shaped-image.js +0 -64
  558. package/lib/dist-custom-elements/duet-show-more.d.ts +0 -11
  559. package/lib/dist-custom-elements/duet-show-more.js +0 -9
  560. package/lib/dist-custom-elements/duet-slideout-lang.d.ts +0 -11
  561. package/lib/dist-custom-elements/duet-slideout-lang.js +0 -76
  562. package/lib/dist-custom-elements/duet-slideout-link.d.ts +0 -11
  563. package/lib/dist-custom-elements/duet-slideout-link.js +0 -98
  564. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.d.ts +0 -11
  565. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +0 -93
  566. package/lib/dist-custom-elements/duet-slideout-panel.d.ts +0 -11
  567. package/lib/dist-custom-elements/duet-slideout-panel.js +0 -224
  568. package/lib/dist-custom-elements/duet-slideout.d.ts +0 -11
  569. package/lib/dist-custom-elements/duet-slideout.js +0 -328
  570. package/lib/dist-custom-elements/duet-spacer.d.ts +0 -11
  571. package/lib/dist-custom-elements/duet-spacer.js +0 -9
  572. package/lib/dist-custom-elements/duet-spinner.d.ts +0 -11
  573. package/lib/dist-custom-elements/duet-spinner.js +0 -9
  574. package/lib/dist-custom-elements/duet-status-icon.d.ts +0 -11
  575. package/lib/dist-custom-elements/duet-status-icon.js +0 -9
  576. package/lib/dist-custom-elements/duet-step.d.ts +0 -11
  577. package/lib/dist-custom-elements/duet-step.js +0 -147
  578. package/lib/dist-custom-elements/duet-stepper.d.ts +0 -11
  579. package/lib/dist-custom-elements/duet-stepper.js +0 -151
  580. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.d.ts +0 -11
  581. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +0 -81
  582. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.d.ts +0 -11
  583. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +0 -152
  584. package/lib/dist-custom-elements/duet-submenu-bar-item.d.ts +0 -11
  585. package/lib/dist-custom-elements/duet-submenu-bar-item.js +0 -113
  586. package/lib/dist-custom-elements/duet-submenu-bar-link.d.ts +0 -11
  587. package/lib/dist-custom-elements/duet-submenu-bar-link.js +0 -72
  588. package/lib/dist-custom-elements/duet-submenu-bar.d.ts +0 -11
  589. package/lib/dist-custom-elements/duet-submenu-bar.js +0 -192
  590. package/lib/dist-custom-elements/duet-tab-group.d.ts +0 -11
  591. package/lib/dist-custom-elements/duet-tab-group.js +0 -321
  592. package/lib/dist-custom-elements/duet-tab.d.ts +0 -11
  593. package/lib/dist-custom-elements/duet-tab.js +0 -150
  594. package/lib/dist-custom-elements/duet-table.d.ts +0 -11
  595. package/lib/dist-custom-elements/duet-table.js +0 -9
  596. package/lib/dist-custom-elements/duet-textarea.d.ts +0 -11
  597. package/lib/dist-custom-elements/duet-textarea.js +0 -301
  598. package/lib/dist-custom-elements/duet-toggle.d.ts +0 -11
  599. package/lib/dist-custom-elements/duet-toggle.js +0 -146
  600. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.d.ts +0 -11
  601. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +0 -80
  602. package/lib/dist-custom-elements/duet-toolbar-dropdown.d.ts +0 -11
  603. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +0 -107
  604. package/lib/dist-custom-elements/duet-toolbar-item.d.ts +0 -11
  605. package/lib/dist-custom-elements/duet-toolbar-item.js +0 -120
  606. package/lib/dist-custom-elements/duet-toolbar-link.d.ts +0 -11
  607. package/lib/dist-custom-elements/duet-toolbar-link.js +0 -74
  608. package/lib/dist-custom-elements/duet-toolbar.d.ts +0 -11
  609. package/lib/dist-custom-elements/duet-toolbar.js +0 -67
  610. package/lib/dist-custom-elements/duet-tooltip-button.d.ts +0 -11
  611. package/lib/dist-custom-elements/duet-tooltip-button.js +0 -9
  612. package/lib/dist-custom-elements/duet-tooltip-popup.d.ts +0 -11
  613. package/lib/dist-custom-elements/duet-tooltip-popup.js +0 -9
  614. package/lib/dist-custom-elements/duet-tooltip.d.ts +0 -11
  615. package/lib/dist-custom-elements/duet-tooltip.js +0 -9
  616. package/lib/dist-custom-elements/duet-tray.d.ts +0 -11
  617. package/lib/dist-custom-elements/duet-tray.js +0 -146
  618. package/lib/dist-custom-elements/duet-upload-aria-status.d.ts +0 -11
  619. package/lib/dist-custom-elements/duet-upload-aria-status.js +0 -9
  620. package/lib/dist-custom-elements/duet-upload-item.d.ts +0 -11
  621. package/lib/dist-custom-elements/duet-upload-item.js +0 -9
  622. package/lib/dist-custom-elements/duet-upload.d.ts +0 -11
  623. package/lib/dist-custom-elements/duet-upload.js +0 -1450
  624. package/lib/dist-custom-elements/duet-visually-hidden.d.ts +0 -11
  625. package/lib/dist-custom-elements/duet-visually-hidden.js +0 -9
  626. package/lib/dist-custom-elements/index.d.ts +0 -33
  627. package/lib/dist-custom-elements/index.js +0 -29
  628. package/lib/dist-custom-elements/p-0cd28b7b.js +0 -102
  629. package/lib/dist-custom-elements/p-0fb1efbc.js +0 -317
  630. package/lib/dist-custom-elements/p-115c79b6.js +0 -6
  631. package/lib/dist-custom-elements/p-15809286.js +0 -50
  632. package/lib/dist-custom-elements/p-18dee42a.js +0 -124
  633. package/lib/dist-custom-elements/p-1d115447.js +0 -268
  634. package/lib/dist-custom-elements/p-28c85b1c.js +0 -166
  635. package/lib/dist-custom-elements/p-35375593.js +0 -161
  636. package/lib/dist-custom-elements/p-3695c0cf.js +0 -614
  637. package/lib/dist-custom-elements/p-42c1fc90.js +0 -321
  638. package/lib/dist-custom-elements/p-44ae5535.js +0 -370
  639. package/lib/dist-custom-elements/p-49b8ef8e.js +0 -55
  640. package/lib/dist-custom-elements/p-4f6ac36d.js +0 -39
  641. package/lib/dist-custom-elements/p-605c5b0f.js +0 -61
  642. package/lib/dist-custom-elements/p-61a64a72.js +0 -110
  643. package/lib/dist-custom-elements/p-63200e87.js +0 -105
  644. package/lib/dist-custom-elements/p-65398a24.js +0 -63
  645. package/lib/dist-custom-elements/p-7b6a89e9.js +0 -237
  646. package/lib/dist-custom-elements/p-821de204.js +0 -1630
  647. package/lib/dist-custom-elements/p-83e0135b.js +0 -82
  648. package/lib/dist-custom-elements/p-861771fa.js +0 -73
  649. package/lib/dist-custom-elements/p-91688dd8.js +0 -84
  650. package/lib/dist-custom-elements/p-92d1b72f.js +0 -194
  651. package/lib/dist-custom-elements/p-959f2240.js +0 -645
  652. package/lib/dist-custom-elements/p-993aea39.js +0 -175
  653. package/lib/dist-custom-elements/p-999222a2.js +0 -154
  654. package/lib/dist-custom-elements/p-9a9b1ce5.js +0 -81
  655. package/lib/dist-custom-elements/p-9df4cfa4.js +0 -25
  656. package/lib/dist-custom-elements/p-a1b0454c.js +0 -56
  657. package/lib/dist-custom-elements/p-a39af5e2.js +0 -108
  658. package/lib/dist-custom-elements/p-a3d3c420.js +0 -60
  659. package/lib/dist-custom-elements/p-a95a6fb7.js +0 -453
  660. package/lib/dist-custom-elements/p-a9727b6a.js +0 -213
  661. package/lib/dist-custom-elements/p-b71858bd.js +0 -214
  662. package/lib/dist-custom-elements/p-c1e56f9a.js +0 -206
  663. package/lib/dist-custom-elements/p-cd328521.js +0 -80
  664. package/lib/dist-custom-elements/p-cde80d94.js +0 -198
  665. package/lib/dist-custom-elements/p-d004da5f.js +0 -6
  666. package/lib/dist-custom-elements/p-d5644004.js +0 -124
  667. package/lib/dist-custom-elements/p-ef48f2c7.js +0 -61
  668. package/lib/dist-custom-elements/p-f11208c3.js +0 -6
  669. package/lib/dist-custom-elements/p-f2c2f3d2.js +0 -2130
  670. package/lib/dist-custom-elements/p-f6000a03.js +0 -753
  671. package/lib/dist-custom-elements/p-f8ba399b.js +0 -63
  672. package/lib/dist-custom-elements/p-fb43ee87.js +0 -127
  673. package/lib/dist-custom-elements/p-fb723dff.js +0 -100
  674. package/lib/duet/duet.js +0 -127
  675. package/lib/duet/p-010dd6d5.entry.js +0 -4
  676. package/lib/duet/p-01ef338b.system.entry.js +0 -4
  677. package/lib/duet/p-020f583d.entry.js +0 -4
  678. package/lib/duet/p-03c96847.system.entry.js +0 -4
  679. package/lib/duet/p-04aad5a1.entry.js +0 -4
  680. package/lib/duet/p-0511fd26.system.js +0 -4
  681. package/lib/duet/p-05225696.system.entry.js +0 -4
  682. package/lib/duet/p-053b71e6.system.js +0 -4
  683. package/lib/duet/p-0562616e.system.entry.js +0 -4
  684. package/lib/duet/p-068cf3e6.system.entry.js +0 -4
  685. package/lib/duet/p-096ca5f2.system.entry.js +0 -4
  686. package/lib/duet/p-0a407ea6.entry.js +0 -4
  687. package/lib/duet/p-0c4bbd65.system.js +0 -4
  688. package/lib/duet/p-0c91e827.system.entry.js +0 -4
  689. package/lib/duet/p-0d738a25.entry.js +0 -4
  690. package/lib/duet/p-0d7da85a.js +0 -4
  691. package/lib/duet/p-0dc9089b.system.js +0 -4
  692. package/lib/duet/p-0f75edd4.system.entry.js +0 -4
  693. package/lib/duet/p-1047a738.system.entry.js +0 -4
  694. package/lib/duet/p-1054dba4.system.entry.js +0 -4
  695. package/lib/duet/p-10e56ab2.entry.js +0 -4
  696. package/lib/duet/p-115c79b6.js +0 -4
  697. package/lib/duet/p-145c3b24.entry.js +0 -4
  698. package/lib/duet/p-17004202.system.entry.js +0 -4
  699. package/lib/duet/p-18060b9c.system.entry.js +0 -4
  700. package/lib/duet/p-18e8baae.system.entry.js +0 -4
  701. package/lib/duet/p-19a0cdc0.system.entry.js +0 -4
  702. package/lib/duet/p-19c0e251.system.entry.js +0 -4
  703. package/lib/duet/p-1a1d3f9e.entry.js +0 -4
  704. package/lib/duet/p-1d6153e1.system.entry.js +0 -4
  705. package/lib/duet/p-201ec410.entry.js +0 -4
  706. package/lib/duet/p-205d2384.system.entry.js +0 -4
  707. package/lib/duet/p-21500424.entry.js +0 -4
  708. package/lib/duet/p-215bd94e.entry.js +0 -4
  709. package/lib/duet/p-217c18b8.entry.js +0 -4
  710. package/lib/duet/p-269e2b32.system.entry.js +0 -4
  711. package/lib/duet/p-2af64b95.system.entry.js +0 -4
  712. package/lib/duet/p-2ed426d9.system.entry.js +0 -4
  713. package/lib/duet/p-2f7a111a.entry.js +0 -4
  714. package/lib/duet/p-30e15c0b.system.entry.js +0 -4
  715. package/lib/duet/p-3214f981.system.entry.js +0 -4
  716. package/lib/duet/p-32f3a8fc.system.entry.js +0 -4
  717. package/lib/duet/p-361082c8.entry.js +0 -4
  718. package/lib/duet/p-372b9ced.system.entry.js +0 -4
  719. package/lib/duet/p-3767d0d2.system.entry.js +0 -4
  720. package/lib/duet/p-3c0d9ecf.system.entry.js +0 -4
  721. package/lib/duet/p-3dd22609.entry.js +0 -4
  722. package/lib/duet/p-3e2dceb1.entry.js +0 -4
  723. package/lib/duet/p-3f0f2506.system.entry.js +0 -4
  724. package/lib/duet/p-411babaf.entry.js +0 -4
  725. package/lib/duet/p-414698d0.system.entry.js +0 -4
  726. package/lib/duet/p-41982d26.system.js +0 -4
  727. package/lib/duet/p-44b36dbf.js +0 -5
  728. package/lib/duet/p-45700c8c.entry.js +0 -4
  729. package/lib/duet/p-46b1437a.system.entry.js +0 -4
  730. package/lib/duet/p-47dfb7d9.system.entry.js +0 -4
  731. package/lib/duet/p-49957220.system.js +0 -4
  732. package/lib/duet/p-4a3dae6f.js +0 -4
  733. package/lib/duet/p-4a836db3.entry.js +0 -4
  734. package/lib/duet/p-4aadd927.entry.js +0 -4
  735. package/lib/duet/p-4cff3036.system.js +0 -4
  736. package/lib/duet/p-4d81fd4b.system.entry.js +0 -4
  737. package/lib/duet/p-4e97bc75.entry.js +0 -4
  738. package/lib/duet/p-50b6d86c.system.entry.js +0 -4
  739. package/lib/duet/p-528fd238.entry.js +0 -4
  740. package/lib/duet/p-52d44078.entry.js +0 -4
  741. package/lib/duet/p-533f6503.system.entry.js +0 -4
  742. package/lib/duet/p-53ccc61f.entry.js +0 -4
  743. package/lib/duet/p-553e83f7.system.entry.js +0 -4
  744. package/lib/duet/p-5577da59.system.js +0 -4
  745. package/lib/duet/p-560c69af.system.entry.js +0 -4
  746. package/lib/duet/p-56ad7189.system.js +0 -4
  747. package/lib/duet/p-590a4048.system.entry.js +0 -4
  748. package/lib/duet/p-5a27a619.system.entry.js +0 -4
  749. package/lib/duet/p-5cf25ba2.entry.js +0 -4
  750. package/lib/duet/p-5e0654cc.system.js +0 -4
  751. package/lib/duet/p-5e3f9cd1.entry.js +0 -4
  752. package/lib/duet/p-5ed29c82.system.entry.js +0 -4
  753. package/lib/duet/p-6324b774.entry.js +0 -4
  754. package/lib/duet/p-63fef46e.system.entry.js +0 -4
  755. package/lib/duet/p-64a58c4a.entry.js +0 -4
  756. package/lib/duet/p-654b234a.system.entry.js +0 -4
  757. package/lib/duet/p-6970fc5d.entry.js +0 -4
  758. package/lib/duet/p-6ffbffc7.entry.js +0 -4
  759. package/lib/duet/p-707c7490.entry.js +0 -4
  760. package/lib/duet/p-72650200.system.entry.js +0 -4
  761. package/lib/duet/p-734350ef.system.js +0 -4
  762. package/lib/duet/p-737740f7.system.entry.js +0 -4
  763. package/lib/duet/p-739af934.entry.js +0 -4
  764. package/lib/duet/p-752fa0fc.system.js +0 -4
  765. package/lib/duet/p-7556653d.system.entry.js +0 -4
  766. package/lib/duet/p-76dc7014.system.entry.js +0 -4
  767. package/lib/duet/p-798f979f.system.js +0 -4
  768. package/lib/duet/p-7aa146c1.system.entry.js +0 -4
  769. package/lib/duet/p-7be1d938.entry.js +0 -4
  770. package/lib/duet/p-7c66ce9f.entry.js +0 -4
  771. package/lib/duet/p-7f6cbb90.entry.js +0 -4
  772. package/lib/duet/p-810d4680.entry.js +0 -4
  773. package/lib/duet/p-858b17a7.system.entry.js +0 -4
  774. package/lib/duet/p-85f6e856.system.entry.js +0 -4
  775. package/lib/duet/p-8c6f575c.system.entry.js +0 -4
  776. package/lib/duet/p-8dfc3a30.entry.js +0 -4
  777. package/lib/duet/p-8ea8b678.entry.js +0 -4
  778. package/lib/duet/p-8f477bd6.system.js +0 -4
  779. package/lib/duet/p-8faaaf5f.system.js +0 -4
  780. package/lib/duet/p-8fb2b5b5.entry.js +0 -4
  781. package/lib/duet/p-92757eb7.system.entry.js +0 -4
  782. package/lib/duet/p-928662aa.system.entry.js +0 -4
  783. package/lib/duet/p-96643444.system.entry.js +0 -4
  784. package/lib/duet/p-98535abd.entry.js +0 -4
  785. package/lib/duet/p-98636086.system.js +0 -4
  786. package/lib/duet/p-9a43132b.system.js +0 -4
  787. package/lib/duet/p-a20b744b.entry.js +0 -4
  788. package/lib/duet/p-a5eea99b.system.entry.js +0 -4
  789. package/lib/duet/p-a76b6eef.system.entry.js +0 -4
  790. package/lib/duet/p-a924233f.system.entry.js +0 -4
  791. package/lib/duet/p-a943a02a.entry.js +0 -4
  792. package/lib/duet/p-aa80ef8a.entry.js +0 -4
  793. package/lib/duet/p-aa885518.system.entry.js +0 -4
  794. package/lib/duet/p-abaf6d0e.entry.js +0 -4
  795. package/lib/duet/p-ad1c40f5.js +0 -4
  796. package/lib/duet/p-afad5fd3.system.js +0 -4
  797. package/lib/duet/p-afd43870.entry.js +0 -4
  798. package/lib/duet/p-b0e2884d.system.entry.js +0 -4
  799. package/lib/duet/p-b1f33063.system.js +0 -4
  800. package/lib/duet/p-b503bcdd.system.entry.js +0 -4
  801. package/lib/duet/p-b50ea79d.system.entry.js +0 -4
  802. package/lib/duet/p-b54723a9.system.entry.js +0 -4
  803. package/lib/duet/p-b7a34bd4.entry.js +0 -4
  804. package/lib/duet/p-b7f6339f.system.entry.js +0 -4
  805. package/lib/duet/p-b864159a.system.js +0 -4
  806. package/lib/duet/p-b8b21423.system.entry.js +0 -4
  807. package/lib/duet/p-b9e2b3ba.entry.js +0 -4
  808. package/lib/duet/p-ba03d034.system.js +0 -4
  809. package/lib/duet/p-c3a69e37.js +0 -4
  810. package/lib/duet/p-c5839bf5.entry.js +0 -4
  811. package/lib/duet/p-c7654999.entry.js +0 -4
  812. package/lib/duet/p-cbf629b3.system.entry.js +0 -4
  813. package/lib/duet/p-cc5e6288.system.js +0 -4
  814. package/lib/duet/p-cc67e773.js +0 -4
  815. package/lib/duet/p-cd0785ee.system.entry.js +0 -4
  816. package/lib/duet/p-cf6b88ae.entry.js +0 -4
  817. package/lib/duet/p-cff8b063.entry.js +0 -4
  818. package/lib/duet/p-d004da5f.js +0 -4
  819. package/lib/duet/p-d07eec56.system.entry.js +0 -4
  820. package/lib/duet/p-d35ab8b7.system.entry.js +0 -4
  821. package/lib/duet/p-d50d03f7.system.entry.js +0 -4
  822. package/lib/duet/p-d53d7fd5.entry.js +0 -4
  823. package/lib/duet/p-d55299c9.entry.js +0 -4
  824. package/lib/duet/p-d61d7080.entry.js +0 -4
  825. package/lib/duet/p-d6ed2033.system.entry.js +0 -4
  826. package/lib/duet/p-d90e530c.system.entry.js +0 -4
  827. package/lib/duet/p-db2ccb9d.system.js +0 -4
  828. package/lib/duet/p-e07ee017.system.entry.js +0 -4
  829. package/lib/duet/p-e12066c8.system.js +0 -4
  830. package/lib/duet/p-e17c5d6a.entry.js +0 -4
  831. package/lib/duet/p-e1c09dd8.system.entry.js +0 -4
  832. package/lib/duet/p-e216bea4.system.js +0 -4
  833. package/lib/duet/p-e4af314b.system.entry.js +0 -4
  834. package/lib/duet/p-e4c8559c.system.js +0 -4
  835. package/lib/duet/p-e5aecda6.system.entry.js +0 -4
  836. package/lib/duet/p-e6b5a1c7.system.js +0 -4
  837. package/lib/duet/p-e9cbe789.system.entry.js +0 -4
  838. package/lib/duet/p-ea787ed0.entry.js +0 -4
  839. package/lib/duet/p-eb463133.system.entry.js +0 -4
  840. package/lib/duet/p-eb83b46d.system.entry.js +0 -4
  841. package/lib/duet/p-ec581904.entry.js +0 -4
  842. package/lib/duet/p-ed3748dc.js +0 -4
  843. package/lib/duet/p-eecd1b93.system.entry.js +0 -4
  844. package/lib/duet/p-f0ee9aae.system.entry.js +0 -4
  845. package/lib/duet/p-f0fc3170.system.entry.js +0 -4
  846. package/lib/duet/p-f11208c3.js +0 -4
  847. package/lib/duet/p-f11e0e46.system.entry.js +0 -4
  848. package/lib/duet/p-f1273093.system.entry.js +0 -4
  849. package/lib/duet/p-f218ec0e.system.entry.js +0 -4
  850. package/lib/duet/p-f2d5c69e.system.js +0 -5
  851. package/lib/duet/p-f5f6aed8.system.js +0 -4
  852. package/lib/duet/p-f6000a03.js +0 -4
  853. package/lib/duet/p-f732fde1.entry.js +0 -4
  854. package/lib/duet/p-fe8cfa01.system.entry.js +0 -4
  855. package/lib/esm/a11y-utils-42080d56.js +0 -23
  856. package/lib/esm/action-arrow-down-small-82273dc8.js +0 -6
  857. package/lib/esm/action-new-window-small-1945be91.js +0 -6
  858. package/lib/esm/body-scroll-46854769.js +0 -234
  859. package/lib/esm/bodyScrollLock.es6-ecbf187e.js +0 -184
  860. package/lib/esm/create-id-149a1b6d.js +0 -11
  861. package/lib/esm/floating-ui.dom.esm-ebc91b33.js +0 -1348
  862. package/lib/esm/focus-utils-9bbe977f.js +0 -18
  863. package/lib/esm/form-search-ea8e19ae.js +0 -6
  864. package/lib/esm/input-utils-85681162.js +0 -53
  865. package/lib/esm/is-internet-explorer-2c48f686.js +0 -9
  866. package/lib/esm/js-utils-9b9e0039.js +0 -47
  867. package/lib/esm/keyboard-utils-daf80d44.js +0 -58
  868. package/lib/esm/label-52e2e3f9.js +0 -20
  869. package/lib/esm/polyfills/core-js.js +0 -11
  870. package/lib/esm/polyfills/dom.js +0 -79
  871. package/lib/esm/polyfills/es5-html-element.js +0 -1
  872. package/lib/esm/polyfills/index.js +0 -34
  873. package/lib/esm/polyfills/system.js +0 -6
  874. package/lib/esm/slot-utils-4096ff0d.js +0 -115
  875. package/lib/esm/string-utils-192eb3c8.js +0 -61
  876. package/lib/esm/teleport-aa27d5f9.js +0 -116
  877. package/lib/esm/themeable-component-860041c5.js +0 -13
  878. package/lib/esm/token-utils-b9ba8c5e.js +0 -138
  879. package/lib/esm/tokens.module-2d02f5ff.js +0 -503
  880. package/lib/esm/watch-options-e96ecd92.js +0 -57
  881. package/lib/esm-es5/a11y-utils-42080d56.js +0 -4
  882. package/lib/esm-es5/action-arrow-down-small-82273dc8.js +0 -4
  883. package/lib/esm-es5/action-new-window-small-1945be91.js +0 -4
  884. package/lib/esm-es5/app-globals-2c6c1103.js +0 -4
  885. package/lib/esm-es5/body-scroll-46854769.js +0 -4
  886. package/lib/esm-es5/bodyScrollLock.es6-ecbf187e.js +0 -4
  887. package/lib/esm-es5/common-strings-af765cad.js +0 -4
  888. package/lib/esm-es5/create-id-149a1b6d.js +0 -4
  889. package/lib/esm-es5/duet-action-button.entry.js +0 -4
  890. package/lib/esm-es5/duet-alert.entry.js +0 -4
  891. package/lib/esm-es5/duet-badge.entry.js +0 -4
  892. package/lib/esm-es5/duet-banner.entry.js +0 -4
  893. package/lib/esm-es5/duet-breadcrumb.entry.js +0 -4
  894. package/lib/esm-es5/duet-breadcrumbs.entry.js +0 -4
  895. package/lib/esm-es5/duet-button_2.entry.js +0 -4
  896. package/lib/esm-es5/duet-callout.entry.js +0 -4
  897. package/lib/esm-es5/duet-caption_4.entry.js +0 -4
  898. package/lib/esm-es5/duet-card.entry.js +0 -4
  899. package/lib/esm-es5/duet-checkbox.entry.js +0 -4
  900. package/lib/esm-es5/duet-checkmark.entry.js +0 -4
  901. package/lib/esm-es5/duet-chip.entry.js +0 -4
  902. package/lib/esm-es5/duet-choice_2.entry.js +0 -4
  903. package/lib/esm-es5/duet-collapsible.entry.js +0 -4
  904. package/lib/esm-es5/duet-combobox.entry.js +0 -4
  905. package/lib/esm-es5/duet-contact-card.entry.js +0 -4
  906. package/lib/esm-es5/duet-cookie-consent.entry.js +0 -4
  907. package/lib/esm-es5/duet-date-picker.entry.js +0 -4
  908. package/lib/esm-es5/duet-divider_2.entry.js +0 -4
  909. package/lib/esm-es5/duet-editable-table_3.entry.js +0 -4
  910. package/lib/esm-es5/duet-empty-state.entry.js +0 -4
  911. package/lib/esm-es5/duet-fieldset.entry.js +0 -4
  912. package/lib/esm-es5/duet-file-chooser.entry.js +0 -4
  913. package/lib/esm-es5/duet-footer.entry.js +0 -4
  914. package/lib/esm-es5/duet-grid_2.entry.js +0 -4
  915. package/lib/esm-es5/duet-header_2.entry.js +0 -4
  916. package/lib/esm-es5/duet-hero.entry.js +0 -4
  917. package/lib/esm-es5/duet-icon.entry.js +0 -4
  918. package/lib/esm-es5/duet-input_2.entry.js +0 -4
  919. package/lib/esm-es5/duet-layout.entry.js +0 -4
  920. package/lib/esm-es5/duet-list_2.entry.js +0 -4
  921. package/lib/esm-es5/duet-menu-bar-button.entry.js +0 -4
  922. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +0 -4
  923. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +0 -4
  924. package/lib/esm-es5/duet-menu-bar-item.entry.js +0 -4
  925. package/lib/esm-es5/duet-menu-bar-link.entry.js +0 -4
  926. package/lib/esm-es5/duet-menu-bar.entry.js +0 -4
  927. package/lib/esm-es5/duet-modal.entry.js +0 -4
  928. package/lib/esm-es5/duet-multiselect.entry.js +0 -4
  929. package/lib/esm-es5/duet-nav.entry.js +0 -4
  930. package/lib/esm-es5/duet-notification_2.entry.js +0 -4
  931. package/lib/esm-es5/duet-number-input.entry.js +0 -4
  932. package/lib/esm-es5/duet-overlay.entry.js +0 -4
  933. package/lib/esm-es5/duet-page-heading.entry.js +0 -4
  934. package/lib/esm-es5/duet-pagination_2.entry.js +0 -4
  935. package/lib/esm-es5/duet-phone-input.entry.js +0 -4
  936. package/lib/esm-es5/duet-popup-menu_2.entry.js +0 -4
  937. package/lib/esm-es5/duet-progress.entry.js +0 -4
  938. package/lib/esm-es5/duet-promo-card.entry.js +0 -4
  939. package/lib/esm-es5/duet-radio_2.entry.js +0 -4
  940. package/lib/esm-es5/duet-range-slider.entry.js +0 -4
  941. package/lib/esm-es5/duet-scrollable_3.entry.js +0 -4
  942. package/lib/esm-es5/duet-section-layout.entry.js +0 -4
  943. package/lib/esm-es5/duet-select.entry.js +0 -4
  944. package/lib/esm-es5/duet-shaped-image.entry.js +0 -4
  945. package/lib/esm-es5/duet-show-more.entry.js +0 -4
  946. package/lib/esm-es5/duet-slideout-lang.entry.js +0 -4
  947. package/lib/esm-es5/duet-slideout-link.entry.js +0 -4
  948. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +0 -4
  949. package/lib/esm-es5/duet-slideout-panel.entry.js +0 -4
  950. package/lib/esm-es5/duet-slideout.entry.js +0 -4
  951. package/lib/esm-es5/duet-status-icon.entry.js +0 -4
  952. package/lib/esm-es5/duet-step_2.entry.js +0 -4
  953. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +0 -4
  954. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +0 -4
  955. package/lib/esm-es5/duet-submenu-bar-item.entry.js +0 -4
  956. package/lib/esm-es5/duet-submenu-bar-link.entry.js +0 -4
  957. package/lib/esm-es5/duet-submenu-bar.entry.js +0 -4
  958. package/lib/esm-es5/duet-textarea.entry.js +0 -4
  959. package/lib/esm-es5/duet-toggle.entry.js +0 -4
  960. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +0 -4
  961. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +0 -4
  962. package/lib/esm-es5/duet-toolbar-item.entry.js +0 -4
  963. package/lib/esm-es5/duet-toolbar-link.entry.js +0 -4
  964. package/lib/esm-es5/duet-toolbar.entry.js +0 -4
  965. package/lib/esm-es5/duet-tooltip-button_2.entry.js +0 -4
  966. package/lib/esm-es5/duet-tooltip.entry.js +0 -4
  967. package/lib/esm-es5/duet-tray.entry.js +0 -4
  968. package/lib/esm-es5/duet-upload-aria-status.entry.js +0 -4
  969. package/lib/esm-es5/duet-upload-item.entry.js +0 -4
  970. package/lib/esm-es5/duet-visually-hidden.entry.js +0 -4
  971. package/lib/esm-es5/duet.js +0 -4
  972. package/lib/esm-es5/errorcodes.utils-86af68b7.js +0 -4
  973. package/lib/esm-es5/floating-ui.dom.esm-ebc91b33.js +0 -4
  974. package/lib/esm-es5/focus-utils-9bbe977f.js +0 -4
  975. package/lib/esm-es5/form-search-ea8e19ae.js +0 -4
  976. package/lib/esm-es5/index-a830b2de.js +0 -4
  977. package/lib/esm-es5/index.js +0 -3
  978. package/lib/esm-es5/input-utils-85681162.js +0 -4
  979. package/lib/esm-es5/is-internet-explorer-2c48f686.js +0 -4
  980. package/lib/esm-es5/js-utils-9b9e0039.js +0 -4
  981. package/lib/esm-es5/keyboard-utils-daf80d44.js +0 -4
  982. package/lib/esm-es5/label-52e2e3f9.js +0 -4
  983. package/lib/esm-es5/language-utils-40caac4f.js +0 -4
  984. package/lib/esm-es5/loader.js +0 -4
  985. package/lib/esm-es5/slot-utils-4096ff0d.js +0 -4
  986. package/lib/esm-es5/string-utils-192eb3c8.js +0 -4
  987. package/lib/esm-es5/teleport-aa27d5f9.js +0 -4
  988. package/lib/esm-es5/themeable-component-860041c5.js +0 -4
  989. package/lib/esm-es5/token-utils-b9ba8c5e.js +0 -4
  990. package/lib/esm-es5/tokens-84fb2357.js +0 -4
  991. package/lib/esm-es5/tokens.module-2d02f5ff.js +0 -4
  992. package/lib/esm-es5/watch-options-e96ecd92.js +0 -4
  993. package/lib/loader/package.json +0 -11
  994. /package/lib/cjs/{body-scroll-dba42314.js → body-scroll-FWPe3_T_.js} +0 -0
  995. /package/lib/cjs/{bodyScrollLock.es6-dd2d7d91.js → bodyScrollLock.es6-B2sCDud5.js} +0 -0
  996. /package/lib/cjs/{common-strings-2984301e.js → common-strings-BhhnIQp3.js} +0 -0
  997. /package/lib/cjs/{create-id-1f8c438f.js → create-id-DtslnIOq.js} +0 -0
  998. /package/lib/cjs/{input-utils-1096a2c5.js → input-utils-DUKdslOM.js} +0 -0
  999. /package/lib/cjs/{is-internet-explorer-e7f58ebc.js → is-internet-explorer-BTLb_loH.js} +0 -0
  1000. /package/lib/cjs/{js-utils-92e24ba1.js → js-utils-hJ4A2edy.js} +0 -0
  1001. /package/lib/cjs/{keyboard-utils-f7c9f980.js → keyboard-utils-D9UlHbik.js} +0 -0
  1002. /package/lib/cjs/{string-utils-7b13c16e.js → string-utils-B35hEUBv.js} +0 -0
  1003. /package/lib/cjs/{teleport-c0eede18.js → teleport-BIcrl_KV.js} +0 -0
  1004. /package/lib/cjs/{themeable-component-996b489c.js → themeable-component-C57DSx5w.js} +0 -0
  1005. /package/lib/cjs/{watch-options-30a12622.js → watch-options-CTB_6VOA.js} +0 -0
  1006. /package/lib/duet/{p-8354d1f1.js → p-B1B-PPrh.js} +0 -0
  1007. /package/lib/duet/{p-7d8a2628.js → p-BgyaCAyh.js} +0 -0
  1008. /package/lib/duet/{p-9e371678.js → p-BlUsLmbQ.js} +0 -0
  1009. /package/lib/duet/{p-fc09c464.js → p-C6CAT054.js} +0 -0
  1010. /package/lib/duet/{p-9c3c64b9.js → p-C6E9F6QT.js} +0 -0
  1011. /package/lib/duet/{p-df7874f9.js → p-CLDy7YaM.js} +0 -0
  1012. /package/lib/duet/{p-5e59e970.js → p-Cfr_DJqU.js} +0 -0
  1013. /package/lib/duet/{p-beeb12f1.js → p-D6YBFNe9.js} +0 -0
  1014. /package/lib/duet/{p-8cb0e6bd.js → p-DWuCOI7R.js} +0 -0
  1015. /package/lib/duet/{p-43b89e38.js → p-DxESMgwA.js} +0 -0
  1016. /package/lib/duet/{p-aaa7a7bd.js → p-WhCDf9tt.js} +0 -0
  1017. /package/lib/{dist-custom-elements/p-fc09c464.js → esm/body-scroll-C6CAT054.js} +0 -0
  1018. /package/lib/{dist-custom-elements/p-8354d1f1.js → esm/bodyScrollLock.es6-B1B-PPrh.js} +0 -0
  1019. /package/lib/esm/{common-strings-af765cad.js → common-strings-D6YBFNe9.js} +0 -0
  1020. /package/lib/{dist-custom-elements/p-5e59e970.js → esm/create-id-Cfr_DJqU.js} +0 -0
  1021. /package/lib/{dist-custom-elements/p-df7874f9.js → esm/input-utils-CLDy7YaM.js} +0 -0
  1022. /package/lib/{dist-custom-elements/p-43b89e38.js → esm/is-internet-explorer-DxESMgwA.js} +0 -0
  1023. /package/lib/{dist-custom-elements/p-9e371678.js → esm/js-utils-BlUsLmbQ.js} +0 -0
  1024. /package/lib/{dist-custom-elements/p-9c3c64b9.js → esm/string-utils-C6E9F6QT.js} +0 -0
  1025. /package/lib/{dist-custom-elements/p-8cb0e6bd.js → esm/teleport-DWuCOI7R.js} +0 -0
  1026. /package/lib/{dist-custom-elements/p-aaa7a7bd.js → esm/themeable-component-WhCDf9tt.js} +0 -0
  1027. /package/lib/{dist-custom-elements/p-7d8a2628.js → esm/watch-options-BgyaCAyh.js} +0 -0
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{s(i.next(e))}catch(e){a(e)}}function u(e){try{s(i["throw"](e))}catch(e){a(e)}}function s(e){e.done?n(e.value):r(e.value).then(o,u)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(u){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(i=1,r&&(a=u[0]&2?r["return"]:u[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;if(r=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;r=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];r=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,h,H as Host,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetMenuBarButtonCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-menu-bar-button{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;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:inherit;color:inherit;text-align:center;text-decoration:none;cursor:pointer}.duet-menu-bar-button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-menu-bar-button:focus,.duet-menu-bar-button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-button .menu-bar-button-icon{width:20px;height:20px}@media (min-width: 62em){.duet-menu-bar-button .menu-bar-button-icon{width:16px;height:16px}}.duet-menu-bar-button.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"}@media (min-width: 62em){.duet-menu-bar-button{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-button{padding:0 28px}}@media (min-width: 62em){.duet-menu-bar-button:hover{color:rgb(0, 119, 179)}.duet-menu-bar-button:hover.duet-theme-turva{color:rgb(198, 12, 48)}}';var DuetMenuBarButtonStyle0=duetMenuBarButtonCss;var DuetMenuBarButton=function(){function e(e){registerInstance(this,e);this.accessibleLabel=undefined;this.accessibleControls=undefined;this.accessiblePopup="false";this.accessibleActiveDescendant=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleExpanded=undefined;this.accessiblePressed=undefined;this.theme="";this.icon=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeButton){this.nativeButton.focus(e)}return[2]}))}))};e.prototype.render=function(){var e=this;return h(Host,{key:"38bfc8b020483ea1619da061faa8b650c887667d",role:"listitem",onfocus:function(){return e.setFocus()}},h("button",{key:"ce2dd048048dfe5b93679eb8e76df1d0c9535f95",ref:function(t){return e.nativeButton=t},class:{"duet-menu-bar-button":true,"duet-theme-turva":this.theme==="turva"},"aria-controls":this.accessibleControls,"aria-label":this.accessibleLabel,"aria-expanded":this.accessibleExpanded!=null?this.accessibleExpanded.toString():undefined,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-pressed":this.accessiblePressed!=null?this.accessiblePressed.toString():undefined,"aria-haspopup":this.accessiblePopup!=null?this.accessiblePopup.toString():undefined},this.icon&&h("duet-icon",{key:"15757e0e80d1d038485ec36bce95ff4c4fae05e5",class:"menu-bar-button-icon",theme:this.theme,size:"auto",name:this.icon,margin:"none",color:"currentColor"}),h("slot",{key:"3d80006b8f95eea5f830a456b9a986490875d8af"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetMenuBarButton.style=DuetMenuBarButtonStyle0;export{DuetMenuBarButton as duet_menu_bar_button};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{f as isEscapeKey}from"./keyboard-utils-daf80d44.js";var duetMenuBarDropdownLinkCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}.duet-menu-bar-dropdown-link{display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:flex-start;height:100%;padding:0.5rem 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:center;text-decoration:none}.duet-menu-bar-dropdown-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-menu-bar-dropdown-link:focus,.duet-menu-bar-dropdown-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-dropdown-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-menu-bar-dropdown-link:hover{background:rgb(228, 241, 247)}.duet-menu-bar-dropdown-link:hover.duet-theme-turva{background:rgb(222, 224, 228)}';var DuetMenuBarDropdownLinkStyle0=duetMenuBarDropdownLinkCss;var DuetMenuBarDropdownLink=function(){function e(e){var n=this;registerInstance(this,e);this.getVariant=function(){var e=n.element.parentElement.parentElement.getAttribute("slot");switch(e){case"center":return"right";case"right":return"right";default:return"right"}};this.theme="";this.href="#";this.icon=undefined;this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.handleEscape=function(e){if(isEscapeKey(e)){var n=this.element.closest("duet-menu-bar-dropdown");n.open=false;n.setFocus()}};e.prototype.render=function(){var e;var n=this;return h(Host,{key:"3b1594a79e3d1fe88e179e683df893d3e83c407e"},h("a",{key:"10724f053d791def92e9fe21773b4a65f20926de",class:(e={"duet-menu-bar-dropdown-link":true},e["duet-menu-bar-dropdown-link--slot-".concat(this.getVariant())]=true,e["duet-theme-turva"]=this.theme==="turva",e),href:this.href,role:"menuitem",onKeyUp:function(e){return n.handleEscape(e)},"aria-label":this.accessibleLabel},this.icon&&h("duet-icon",{key:"6658417e520a3d6347859fa434fb527f8f376fbe",theme:this.theme,name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),h("slot",{key:"d8f728e9d507f4a3ccdda23ed33a958ec5e4e98c"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetMenuBarDropdownLink.style=DuetMenuBarDropdownLinkStyle0;export{DuetMenuBarDropdownLink as duet_menu_bar_dropdown_link};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{d(o.next(e))}catch(e){a(e)}}function u(e){try{d(o["throw"](e))}catch(e){a(e)}}function d(e){e.done?n(e.value):r(e.value).then(i,u)}d((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,r,a,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(e){return function(t){return d([e,t])}}function d(u){if(o)throw new TypeError("Generator is already executing.");while(i&&(i=0,u[0]&&(n=0)),n)try{if(o=1,r&&(a=u[0]&2?r["return"]:u[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;if(r=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;r=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];r=0}finally{o=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,h,H as Host,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{f as isEscapeKey}from"./keyboard-utils-daf80d44.js";var duetMenuBarDropdownCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}@media (min-width: 62em){:host(:last-child) .duet-menu-bar-dropdown button{padding:0 16px 0 16px}}@media (min-width: 76.25em){:host(:last-child) .duet-menu-bar-dropdown button{padding:0 16px 0 28px}}.duet-menu-bar-dropdown{position:relative;height:100%}.duet-menu-bar-dropdown button{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;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(0, 75, 129);text-align:center;text-decoration:none;cursor:pointer}@media (min-width: 62em){.duet-menu-bar-dropdown button{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-dropdown button{padding:0 28px}}.duet-menu-bar-dropdown button:hover{color:rgb(0, 119, 179)}.duet-menu-bar-dropdown button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-menu-bar-dropdown button .label{display:flex;gap:0.5rem;align-items:center;justify-content:center}.duet-menu-bar-dropdown button.active{color:rgb(0, 119, 179)}.duet-menu-bar-dropdown button.active .caret{transform:rotate(180deg)}.duet-theme-turva .duet-menu-bar-dropdown button.active{color:rgb(198, 12, 48)}.duet-menu-bar-dropdown button.active::after{position:absolute;top:auto;bottom:2px;left:0;display:block;width:100%;height:2px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(2px)}.duet-theme-turva .duet-menu-bar-dropdown button.active::after{background:rgb(198, 12, 48)}.duet-menu-bar-dropdown .menu-bar-dropdown-icon{width:20px;height:20px}@media (min-width: 62em){.duet-menu-bar-dropdown .menu-bar-dropdown-icon{width:16px;height:16px}}.duet-menu-bar-dropdown .items{position:absolute;top:70%;right:0%;left:auto;z-index:600;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:225px;padding:8px;color:rgb(8, 42, 77);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)}.duet-menu-bar-dropdown .items.hidden{display:none}.duet-menu-bar-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-menu-bar-dropdown.duet-theme-turva button:hover{color:rgb(198, 12, 48)}.duet-menu-bar-dropdown.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-dropdown.duet-theme-turva button.active{color:rgb(198, 12, 48)}.duet-menu-bar-dropdown.duet-theme-turva button.active::after{background:rgb(198, 12, 48)}.duet-menu-bar-dropdown.duet-theme-turva .items{background:rgb(255, 255, 255)}';var DuetMenuBarDropdownStyle0=duetMenuBarDropdownCss;var DuetMenuBarDropdown=function(){function e(e){var t=this;registerInstance(this,e);this.onClick=function(){t.open=!t.open};this.getVariant=function(){var e=t.element.parentElement.getAttribute("slot");switch(e){case"center":return"right";case"right":return"right";default:return"right"}};this.accessibleLabel=undefined;this.theme="";this.open=false;this.icon=undefined}e.prototype.handleFocus=function(e){var t=this;var n=e.composedPath().every((function(e){return e!==t.element}));if(n){this.open=false}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.handleEscape=function(e){if(isEscapeKey(e)){this.open=false;this.setFocus()}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.button.focus(e);return[2]}))}))};e.prototype.render=function(){var e;var t=this;return h(Host,{key:"a43589ddb7b2a061c18b414dd65bc3f51f285711",role:"listitem"},h("div",{key:"2f223f45a89ef906763f8a3bf92b860162f31e4e",class:(e={"duet-menu-bar-dropdown":true,"duet-theme-turva":this.theme==="turva",active:this.open},e["duet-menu-bar-dropdown--slot-".concat(this.getVariant())]=true,e)},h("button",{key:"99e5e3ad6be32480a2c94ce50ab71b6d66fca5f5",ref:function(e){return t.button=e},"aria-label":this.accessibleLabel,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false",id:"button",type:"button",class:{active:this.open},onClick:this.onClick,onKeyUp:function(e){return t.handleEscape(e)}},this.icon&&h("duet-icon",{key:"0992e1d334008b2020283e401bfe79e8ca9b9cdd",class:"menu-bar-dropdown-icon",theme:this.theme,name:this.icon,size:"auto",margin:"none",color:"currentColor"}),h("div",{key:"e5891bffb51f49298f04019e573ff265a9c94630",class:"label"},h("slot",{key:"68f31e63dac8f239d931e44b2ae703656380008b",name:"label"}),h("duet-icon",{key:"8b3eef3e47c1008ad65b4dc26ac82a360fca2c60",class:"caret",theme:this.theme,name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),h("div",{key:"e6f60f826a36ee47b41d1be994b2aa51606a7232",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:true,hidden:!this.open}},h("slot",{key:"81c31db440ca83dd6207e4d3ebfa9c1ef585babe"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetMenuBarDropdown.style=DuetMenuBarDropdownStyle0;export{DuetMenuBarDropdown as duet_menu_bar_dropdown};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,i){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function o(e){try{s(i.next(e))}catch(e){r(e)}}function u(e){try{s(i["throw"](e))}catch(e){r(e)}}function s(e){e.done?n(e.value):a(e.value).then(o,u)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(u){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(i=1,a&&(r=u[0]&2?a["return"]:u[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;if(a=0,r)u=[u[0]&2,r.value];switch(u[0]){case 0:case 1:r=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;a=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){n.label=u[1];break}if(u[0]===6&&n.label<r[1]){n.label=r[1];r=u;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(u);break}if(r[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];a=0}finally{i=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,h,H as Host,g as getElement}from"./index-a830b2de.js";import{a as actionNewWindowSmall}from"./action-new-window-small-1945be91.js";import{D as DuetStringsExternalDefaults}from"./common-strings-af765cad.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{g as getAccessibleLinkLabel}from"./a11y-utils-42080d56.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-40caac4f.js";import"./slot-utils-4096ff0d.js";import"./string-utils-192eb3c8.js";var duetMenuBarItemCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-menu-bar-item{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;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:inherit;font-weight:inherit;color:inherit;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer}.duet-menu-bar-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-menu-bar-item:focus,.duet-menu-bar-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-item .leading-icon,.duet-menu-bar-item .trailing-icon{width:20px;height:20px}@media (min-width: 62em){.duet-menu-bar-item .leading-icon,.duet-menu-bar-item .trailing-icon{width:16px;height:16px}}.duet-menu-bar-item .trailing-icon.trailing-icon-arrow{width:7px;height:7px}.duet-menu-bar-item .external-icon{width:10px;height:10px}.duet-menu-bar-item[aria-expanded=true]{color:rgb(0, 119, 179)}.duet-menu-bar-item[aria-expanded=true] .trailing-icon.rotate{transform:rotate(180deg)}.duet-menu-bar-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"}.duet-menu-bar-item.duet-theme-turva[aria-expanded=true]{color:rgb(198, 12, 48)}@media (min-width: 62em){.duet-menu-bar-item{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-item{padding:0 28px}}.duet-menu-bar-item.active{color:rgb(0, 119, 179)}.duet-menu-bar-item.active::after{position:absolute;top:auto;bottom:2px;left:0;z-index:1;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(2px)}@media (min-width: 62em){.duet-menu-bar-item.active::after{z-index:auto;height:2px}}.duet-menu-bar-item.active.duet-theme-turva{color:rgb(198, 12, 48)}.duet-menu-bar-item.active.duet-theme-turva::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-menu-bar-item:hover{color:rgb(0, 119, 179)}.duet-menu-bar-item:hover.duet-theme-turva{color:rgb(198, 12, 48)}}';var DuetMenuBarItemStyle0=duetMenuBarItemCss;var DuetMenuBarItem=function(){function e(e){registerInstance(this,e);this.theme="";this.active=false;this.url=undefined;this.leadingIcon=undefined;this.trailingIcon=undefined;this.accessibleLabel=undefined;this.accessibleExpanded=undefined;this.accessiblePopup="false";this.accessibleLabelExternalDefaults=DuetStringsExternalDefaults;this.accessibleLabelExternal=getLocaleString(this.accessibleLabelExternalDefaults);this.external=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){setTimeout((function(){return t.itemElement.focus(e)}),200);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.url?"a":"button";return h(Host,{key:"049740f5f7ecee03a95b3aa3f393836d675475af",role:"listitem"},h(t,{key:"12b182c9e98d6763aedd2310e3324858a5bbcc5e",target:!this.url?null:this.external?"_blank":"_self",ref:function(t){return e.itemElement=t},class:{"duet-menu-bar-item":true,"duet-theme-turva":this.theme==="turva",active:this.active},href:this.url,role:"".concat(t==="a"?"link":"button"),"aria-current":this.active?"true":"false","aria-label":this.url&&getAccessibleLinkLabel(this)||this.accessibleLabel,"aria-expanded":this.accessibleExpanded!=null?this.accessibleExpanded.toString():undefined,"aria-haspopup":this.accessiblePopup!=null?this.accessiblePopup.toString():undefined,rel:this.external?"noopener":undefined},this.leadingIcon&&h("duet-icon",{key:"98d966613955a36b5f2c22bc405aa963090d9683",class:"leading-icon",size:"auto",name:this.leadingIcon,margin:"none",theme:this.theme,color:"currentColor"}),h("slot",{key:"dc0d5063412c40b2fddd24d9000fea90c11ec332"}),(this.trailingIcon||this.external)&&h("duet-icon",{key:"173a233033d814c8540513760bc110528e06cb23",class:{"trailing-icon":!!this.trailingIcon,"trailing-icon-arrow":this.trailingIcon==="action-arrow-down-small","external-icon":!!this.external,rotate:this.trailingIcon==="action-arrow-down-small"&&this.accessibleExpanded},theme:this.theme,name:this.trailingIcon?this.trailingIcon:this.external?actionNewWindowSmall.title:"",margin:"none",size:"auto",color:"currentColor"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetMenuBarItem.style=DuetMenuBarItemStyle0;export{DuetMenuBarItem as duet_menu_bar_item};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetMenuBarLinkCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-menu-bar-link{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:inherit;text-align:center;text-decoration:none;white-space:nowrap}.duet-menu-bar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-menu-bar-link:focus,.duet-menu-bar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-link .menu-bar-link-icon{width:20px;height:20px}@media (min-width: 62em){.duet-menu-bar-link .menu-bar-link-icon{width:16px;height:16px}}.duet-menu-bar-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}@media (min-width: 62em){.duet-menu-bar-link{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-link{padding:0 28px}}.duet-menu-bar-link.active{color:rgb(0, 119, 179)}.duet-menu-bar-link.active::after{position:absolute;top:auto;bottom:2px;left:0;z-index:1;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(2px)}@media (min-width: 62em){.duet-menu-bar-link.active::after{z-index:auto;height:2px}}.duet-menu-bar-link.active.duet-theme-turva{color:rgb(198, 12, 48)}.duet-menu-bar-link.active.duet-theme-turva::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-menu-bar-link:hover{color:rgb(0, 119, 179)}.duet-menu-bar-link:hover.duet-theme-turva{color:rgb(198, 12, 48)}}';var DuetMenuBarLinkStyle0=duetMenuBarLinkCss;var DuetMenuBarLink=function(){function e(e){registerInstance(this,e);this.theme="";this.active=false;this.href="#";this.icon=undefined;this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){return h(Host,{key:"6c072dcf75770dd53c45c4089e9fd2823822ff71",role:"listitem"},h("a",{key:"376c4c2a49ea9ccb1b368f600cdddb0246445d9c",class:{"duet-menu-bar-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},href:this.href,"aria-current":this.active?"true":"false","aria-label":this.accessibleLabel},this.icon&&h("duet-icon",{key:"9d8e4d367f30b4eb980dede30df2afe745b64caf",class:"menu-bar-link-icon",theme:this.theme,size:"auto",name:this.icon,margin:"none",color:"currentColor"}),h("slot",{key:"c20f32e09eee237b92615ad99e43657b5d127e62"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetMenuBarLink.style=DuetMenuBarLinkStyle0;export{DuetMenuBarLink as duet_menu_bar_link};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-a830b2de.js";import{a as media_query_large,c as media_query_xx_large}from"./tokens-84fb2357.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{a as getLanguage}from"./language-utils-40caac4f.js";import"./string-utils-192eb3c8.js";var duetMenuBarCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:100%}.duet-menu-bar{position:relative;top:0;z-index:2;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07);transition:top 0.3s}.duet-menu-bar.hidden{top:-200px}.duet-menu-bar.bottom{z-index:1}@media (min-width: 62em){.duet-menu-bar{box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1)}}.duet-menu-bar .top{display:none}.duet-menu-bar .bottom{display:none}.duet-menu-bar.horizontal-nav{position:relative}.duet-menu-bar.horizontal-nav .top{position:absolute;top:0;left:3.5%;display:block;width:93%;height:1px;background:rgb(245, 248, 250)}.duet-menu-bar.horizontal-nav .bottom{position:absolute;bottom:0;left:0;display:block;width:100%;height:1px;background:rgb(212, 223, 229)}.duet-menu-bar.horizontal-nav .more-left{position:absolute;top:0;left:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-left{display:none}}.duet-menu-bar.horizontal-nav .more-right{position:absolute;top:0;right:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-right{display:none}}@media (pointer: fine){.duet-menu-bar.horizontal-nav{display:none}}@media (pointer: fine) and ((min-width: 62em)){.duet-menu-bar.horizontal-nav{display:flex}}.duet-menu-bar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1440px;height:100%;height:3.25rem;padding:0 8px 0 20px;overflow-x:auto;scrollbar-width:none}.duet-menu-bar .container::-webkit-scrollbar{width:0;height:0}@media (min-width: 62em){.duet-menu-bar .container{height:5rem;padding:0 28px;overflow-x:visible}}.duet-menu-bar .container .list{height:100%;list-style-type:none}.duet-menu-bar .container ::slotted(*){height:100%}.duet-menu-bar .container>*{display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar .container>:first-child{flex-basis:0;flex-grow:1;justify-content:flex-start}.duet-menu-bar .container>:last-child{flex-basis:0;flex-grow:1;justify-content:flex-end}.duet-menu-bar .container ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar.duet-theme-turva{background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-menu-bar.duet-theme-turva{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}@media (min-width: 62em){.duet-menu-bar.duet-menu-bar-slim .container{height:4rem}}.center{font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77)}.duet-theme-turva .center{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.right{font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 75, 129)}.duet-theme-turva .right{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}';var DuetMenuBarStyle0=duetMenuBarCss;var DuetMenuBar=function(){function e(e){var t=this;registerInstance(this,e);this.duetEvent=createEvent(this,"duetEvent",7);this.mql=[window.matchMedia(media_query_large.replace(/'/g,"")),window.matchMedia(media_query_xx_large.replace(/'/g,""))];this.boundMqlFunctions=[];this.previousYScroll=0;this.scrollbarCheck=function(){t.leftMoreVisible=t.container.scrollLeft>0;t.rightMoreVisible=t.container.scrollLeft!==t.container.scrollWidth-t.container.clientWidth};this.scrollToActive=function(){var e=t.element.querySelectorAll("[active]");var i;e.forEach((function(e){if(e.active){i=e}}));if(i&&i.offsetLeft){if(i.offsetLeft>50){t.container.scrollLeft=i.offsetLeft-t.element.getBoundingClientRect().width/2+i.offsetWidth/2}}};this.checkCenterSlot=function(){var e=t.element.querySelector('[slot="center"]');t.centerSlotUsed=!!e};this.changeLogoSize=function(){t.checkCenterSlot();if(t.mql[1].matches&&t.centerSlotUsed){t.logoSize="large"}else{t.logoSize="medium"}};this.handleLogoClick=function(e){t.duetEvent.emit({name:"logoClick",component:"duet-menu-bar",data:{logoHref:t.logoHref},originalEvent:e})};this.hidden=false;this.onBottom=false;this.logoSize="large";this.leftMoreVisible=false;this.rightMoreVisible=false;this.centerSlotUsed=false;this.theme="";this.language=getLanguage();this.logo=true;this.logoHref=undefined;this.logoLinkAccessibleLabel=undefined;this.accessibleLabel=undefined;this.hideOnScroll=false}e.prototype.checkScroll=function(){var e=this;if(!this.hideOnScroll){return}if(window.scrollY>this.previousYScroll){if(window.scrollY>100){if(this.hideOnScroll){clearTimeout(this.zindexTimer);this.onBottom=true}this.hidden=true}}else{if(window.scrollY<150){if(this.hideOnScroll){this.zindexTimer=setTimeout((function(){e.onBottom=false}),300)}this.hidden=false}}this.previousYScroll=window.scrollY};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){this.changeLogoSize();for(var e=0;e<this.mql.length;e++){if(this.mql[e].addEventListener){var t=this.changeLogoSize.bind(this);this.mql[e].addEventListener("change",t);this.boundMqlFunctions[e]=t}}this.checkCenterSlot()};e.prototype.disconnectedCallback=function(){for(var e=0;e<this.mql.length;e++){if(this.mql[e].removeEventListener){this.mql[e].removeEventListener("change",this.boundMqlFunctions[e])}}this.boundMqlFunctions=[]};e.prototype.componentDidLoad=function(){var e=this;setTimeout((function(){e.scrollbarCheck();e.scrollToActive();e.checkCenterSlot()}),0)};e.prototype.onWindowResize=function(){var e=this;clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout((function(){e.scrollToActive()}),100)};e.prototype.render=function(){var e=this;var t=document.querySelectorAll("duet-slideout").length>0;var i=t&&!this.logo;return h(Host,{key:"349581a9e41fcb410d37770ed09d2311de7d38a5"},h("nav",{key:"96ed53773cd355d673a2b3977b40286d67985810",class:{"duet-menu-bar":true,"duet-theme-turva":this.theme==="turva","horizontal-nav":i,"duet-menu-bar-slim":!this.centerSlotUsed,hidden:this.hidden&&this.hideOnScroll,bottom:this.onBottom},"aria-label":this.accessibleLabel},h("div",{key:"93a3b7f680dfc2f998274c56a380e29332b24f90",class:"top"}),h("div",{key:"a8d14b711a83aee7ea63fa39f5be9d6d61929a37",class:{container:true},ref:function(t){return e.container=t},onScroll:function(){return e.scrollbarCheck()}},this.logo&&h("div",{key:"306ad41f64eaecd20cc98bbe2b9d490912c6820c"},h("duet-logo",{key:"5a91055e192e1214c7bd921c2ff300510594c47b",size:this.logoSize,margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick,language:this.language})),h("div",{key:"7fea1e39256f5847358f2533607ac26f53fc35d3",class:"list center",role:"list"},h("div",{key:"4c953fc8762eadafb6e4a41534676021e4fb0675",class:"more-left",hidden:!this.leftMoreVisible,role:"presentation"}),h("slot",{key:"ee961cf16f11a62fdef74f7ab57cf4bf653ba8ab",name:"center"}),h("div",{key:"1f66cfd1c1fea5f9c1764ff8b3a697c0459a653b",class:"more-right",hidden:!this.rightMoreVisible,role:"presentation"})),h("div",{key:"3d7cb50a008c1ce893a3ad504b186dbb3965a130",class:"list right",role:"list"},h("slot",{key:"7ff47fae8ea6f7d49fcfe5e53d43491994741f26",name:"right"}))),h("div",{key:"8bc982c15ce030ae88966fe1646914b6bf295960",class:"bottom"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetMenuBar.style=DuetMenuBarStyle0;export{DuetMenuBar as duet_menu_bar};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,a,i){function d(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function n(e){try{s(i.next(e))}catch(e){o(e)}}function r(e){try{s(i["throw"](e))}catch(e){o(e)}}function s(e){e.done?a(e.value):d(e.value).then(n,r)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,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(i)throw new TypeError("Generator is already executing.");while(n&&(n=0,r[0]&&(a=0)),a)try{if(i=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:a.label++;return{value:r[1],done:false};case 5:a.label++;d=r[1];r=[0];continue;case 7:r=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(r[0]===6&&a.label<o[1]){a.label=o[1];o=r;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(r);break}if(o[2])a.ops.pop();a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e];d=0}finally{i=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,g as getElement}from"./index-a830b2de.js";import{d as disableBodyScroll,e as enableBodyScroll}from"./bodyScrollLock.es6-ecbf187e.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{a as DuetStringsPleaseWaitDefaults}from"./common-strings-af765cad.js";import{f as focusElement}from"./focus-utils-9bbe977f.js";import{f as isEscapeKey}from"./keyboard-utils-daf80d44.js";import{a as getLanguage,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-40caac4f.js";import{h as hasSlot}from"./slot-utils-4096ff0d.js";import{T as Teleport}from"./teleport-aa27d5f9.js";import"./string-utils-192eb3c8.js";var duetModalCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;max-height:100vh;overflow-y:auto;visibility:hidden;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;transition:300ms ease;transition-delay:0ms;transform:scale(0.96)}.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;transition:300ms ease;transition-delay:200ms;transform:none}.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;transition:all 300ms ease;transform:scaleY(0);transform-origin:top}.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:12px;right:12px}.duet-modal-heading{width:100%;padding-right:60px;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-style:normal;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);text-decoration:none;text-overflow:ellipsis;letter-spacing:-0.01rem;white-space:nowrap}.duet-modal-heading.duet-p-0{padding:0 !important}.duet-modal-heading.duet-m-0{margin:0 !important}';var DuetModalStyle0=duetModalCss;var TRANSITION_MS=600;var DuetModal=function(){function e(e){registerInstance(this,e);this.duetOpen=createEvent(this,"duetOpen",7);this.duetClose=createEvent(this,"duetClose",7);this.duetCloseComplete=createEvent(this,"duetCloseComplete",7);this.duetBeforeClose=createEvent(this,"duetBeforeClose",7);var t,a;this.hasStickyHeader=false;this.isAndroidDevice=((a=(t=navigator===null||navigator===void 0?void 0:navigator.userAgent)===null||t===void 0?void 0:t.toLowerCase())===null||a===void 0?void 0:a.indexOf("android"))>-1||null;this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(navigator===null||navigator===void 0?void 0:navigator.userAgent);this.accessibleLoaderAnnouncementDefaults=DuetStringsPleaseWaitDefaults;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=getLanguage();this.accessibleCloseLabel=getLocaleString(this.accessibleCloseLabelDefaults,this.language);this.accessibleLoaderAnnouncement=getLocaleString(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}e.prototype.openChanged=function(){var e=this;if(this.open){if(this.modalEl&&this.modalEl.scrollTop){this.modalEl.scrollTop=0}this.focusedElBeforeOpen=document.activeElement;disableBodyScroll(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()}}}),TRANSITION_MS);setTimeout((function(){e.modalEl.classList.add("duet-disable-transitions")}),TRANSITION_MS+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});enableBodyScroll(this.variation==="slide-up"?this.modalContentEl:this.modalEl);this.duetClose.emit();this.teleport.removeInertFromSiblings();setTimeout((function(){focusElement(e.focusedElBeforeOpen)}),TRANSITION_MS);if(this.isAndroidDevice){window.removeEventListener("resize",this.handleAndroidResizeEvents)}}};e.prototype.activeChanged=function(){this.open=this.active};e.prototype.componentWillLoad=function(){this.hasStickyHeader=hasSlot(this.element,"sticky-header");inheritGlobalTheme(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 Teleport(this.element)}if(this.teleport){this.teleport.activate()}connectLanguageChangeObserver(this,[{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefaults"},{prop:"accessibleLoaderAnnouncement",defaults:"accessibleLoaderAnnouncementDefaults"}])};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);if(this.modalEl){enableBodyScroll(this.modalEl)}};e.prototype.handleKeyUp=function(e){if(this.open){if(isEscapeKey(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.scrollToTop=function(){return __awaiter(this,arguments,void 0,(function(e){var t,a,i,d;if(e===void 0){e=true}return __generator(this,(function(o){a=e?"smooth":"auto";if(this.variation==="slide-up"){i=((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(i+d.value,"px");this.slotContainerEl.scrollIntoView({behavior:a})}else{this.modalEl.querySelector(".duet-modal-body").scrollIntoView({behavior:a})}return[2]}))}))};e.prototype.addMessage=function(e){return __awaiter(this,arguments,void 0,(function(e,t){var a;var i=this;if(t===void 0){t=true}return __generator(this,(function(d){a=document.createElement(t?"duet-paragraph":"duet-visually-hidden");a.textContent=e;a.classList.add("duet-loader-message");if(t){setTimeout((function(){i.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((function(e){return e.classList.remove("show")}));a.classList.add("show")}),10)}this.slotContainerEl.appendChild(a);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 a=this;var i,d;var o="primary";var n="secondary";var r=h("div",{key:"0faf0abd0e219bbe80b398230dd171ba4c936832",class:"duet-modal-close"},h("duet-button",{key:"d66338c3132f2161599fe5fab1047ab121db2a94",ref:function(e){return a.buttonEl=e},variation:"plain",accessibleLabel:this.accessibleCloseLabel,color:n,iconSize:"large",icon:"navigation-close",iconOnly:true,margin:"none",theme:this.theme,onClick:function(e){return a.closeModal(e)},fixed:true}));if(this.theme==="turva"){o="primary-turva";n="secondary-turva"}return h("div",{key:"9332969ad05a29216d53db0afa9a780778d5d64d",ref:function(e){return a.modalEl=e},"aria-label":(i=this.accessibleLabel)!==null&&i!==void 0?i: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}},h("duet-overlay",{key:"5f4e044e5299a761e37afebaabdff7524fd42742","z-index":"-1",visible:this.open,variation:this.variation==="loader"?"white":"default"}),h("div",{key:"e4caa6a3be365b6db97fe05305fcdd405e9fdefb",ref:function(e){return a.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(a.closeOnBlur){var t=e.target||e.srcElement;if(t===a.modalInnerEl){a.closeModal(e)}}}},h("div",{key:"391aa2f4b57050d3205c79c116384b74b4691d02",ref:function(e){return a.modalContentEl=e},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&&h("duet-spacer",{key:"59a848dca6e2aaed55b9aad8f575751290a4caa7"}),this.hasStickyHeader?h("div",{class:"duet-modal-sticky-header"},r,h("slot",{name:"sticky-header"})):r,h("div",{key:"d8594ec1fe56325355bf156fe56b7759e241771c",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"}},h("div",{key:"332406aa77de62ad7d005556930cac62ae8eda23",class:"duet-modal-header"},h("span",{key:"8b4b4454a9e3307fe565dae0feec7b2f10fa06f7",class:"duet-modal-inner-slot-top"},h("slot",{key:"f8dc0c7e756955722be62fb0c90633c3ab1a1713",name:"top"})),this.icon&&h("duet-icon",{key:"b01c9967fe55450a642fb0e3d64f04ef32517821",name:this.icon,size:"xx-large",color:this.color||o}),this.heading&&h("duet-heading",{key:"449320e33b234256cb898a69cdd64a6734818d9d","visual-level":(d=this.headingVisualLevel)!==null&&d!==void 0?d:this.headingLevel,level:this.headingLevel,theme:this.theme},this.heading)),this.variation==="loader"&&h("div",{key:"4a62e15be8db5367285ba93fb89375bc007ed12c",class:"duet-modal-spinner"},h("duet-spinner",{key:"a00293d304b6b2eefa33db34c6caef175de00541",size:"large",color:"primary"})),h("div",{key:"27e69b7b93565e659de3cd9f6ac30786ff481a18",class:"duet-modal-inner-slot-default",ref:function(e){return a.slotContainerEl=e},"aria-live":this.variation==="loader"?"assertive":"off"},h("slot",{key:"62e9bd1f714cd50ad60a3ddea1b10406d8d2ad29"}))))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["openChanged"],active:["activeChanged"]}},enumerable:false,configurable:true});return e}();DuetModal.style=DuetModalStyle0;export{DuetModal as duet_modal};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,o){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,a){function l(e){try{s(o.next(e))}catch(e){a(e)}}function n(e){try{s(o["throw"](e))}catch(e){a(e)}}function s(e){e.done?i(e.value):r(e.value).then(l,n)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,r,a,l;return l={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function n(e){return function(t){return s([e,t])}}function s(n){if(o)throw new TypeError("Generator is already executing.");while(l&&(l=0,n[0]&&(i=0)),i)try{if(o=1,r&&(a=n[0]&2?r["return"]:n[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,n[1])).done)return a;if(r=0,a)n=[n[0]&2,a.value];switch(n[0]){case 0:case 1:a=n;break;case 4:i.label++;return{value:n[1],done:false};case 5:i.label++;r=n[1];n=[0];continue;case 7:n=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(n[0]===6||n[0]===2)){i=0;continue}if(n[0]===3&&(!a||n[1]>a[0]&&n[1]<a[3])){i.label=n[1];break}if(n[0]===6&&i.label<a[1]){i.label=a[1];a=n;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(n);break}if(a[2])i.ops.pop();i.trys.pop();continue}n=t.call(e,i)}catch(e){n=[6,e];r=0}finally{o=a=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var o=0,r=t.length,a;o<r;o++){if(a||!(o in t)){if(!a)a=Array.prototype.slice.call(t,0,o);a[o]=t[o]}}return e.concat(a||Array.prototype.slice.call(t))};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-a830b2de.js";import{D as DuetInternalLabel}from"./label-52e2e3f9.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{f as isEscapeKey,o as isTabKey,j as isEnterKey,d as isArrowLeftKey,b as isArrowUpKey,a as isArrowRightKey,c as isArrowDownKey}from"./keyboard-utils-daf80d44.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-40caac4f.js";import{c as checkNamedSlotElement}from"./slot-utils-4096ff0d.js";import{p as parsePossibleJSON}from"./string-utils-192eb3c8.js";var duetMultiselectCss='.duet-internal-label{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;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;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.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)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}.duet-multiselect-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){.duet-multiselect-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-multiselect-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-multiselect-container{position:relative;width:100%}.duet-multiselect-wrapper{position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25}.duet-theme-turva .duet-multiselect-wrapper{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-multiselect{display:flex;align-items:center;justify-content:flex-start;width:100%;min-width:8rem;padding:12px 14px !important;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:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.duet-multiselect .duet-multiselect-label{overflow:hidden;text-overflow:ellipsis}.duet-multiselect:hover{border-color:rgb(127, 150, 165);box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-multiselect:hover{border-color:rgb(143, 147, 158);box-shadow:0 0 0 1px #747475}.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #e55039}.duet-multiselect:focus,.duet-multiselect.duet-multiselect-active{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-multiselect:focus,.duet-theme-turva .duet-multiselect.duet-multiselect-active{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.has-error .duet-multiselect:focus,.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:focus,.duet-theme-turva.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #e55039}.duet-multiselect[disabled]{color:rgb(8, 42, 77) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-theme-turva .duet-multiselect[disabled]{color:rgb(23, 28, 58) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-multiselect>:first-child{flex:1;min-height:24px}.duet-multiselect .duet-multiselect-badge{padding:4px 8px 4px;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.75rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);background:#d9ebf4;border-radius:20rem}.duet-theme-turva .duet-multiselect .duet-multiselect-badge{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:700;color:rgb(23, 28, 58);background:#e8e8eb}.duet-multiselect .duet-multiselect-icon{margin-left:12px}.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva .duet-multiselect{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(143, 147, 158)}.duet-multiselect svg{width:20px;height:20px;color:rgb(8, 42, 77);pointer-events:none}.duet-theme-turva .duet-multiselect svg{color:rgb(23, 28, 58)}.duet-multiselect svg.duet-multiselect-icon--rotate{transform:rotate(180deg)}.duet-multiselect-checkboxes{position:absolute;z-index:700;width:100%;padding:16px;margin:8px 0 0;visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}.duet-theme-turva .duet-multiselect-checkboxes{background:rgb(255, 255, 255);border-color:rgb(222, 224, 228);box-shadow:0 4px 10px 0 rgba(23, 28, 58, 0.15)}.duet-multiselect-checkboxes.duet-multiselect-checkboxes-active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons{padding:8px 0;margin:-16px;margin-bottom:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button{padding:6px 16px;margin:-4px 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:600;color:rgb(0, 119, 179);cursor:pointer;border-radius:4px}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus,.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:first-child{border-right:1px solid rgb(212, 223, 229)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(198, 12, 48)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(23, 28, 58)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(8, 42, 77)}.duet-multiselect-checkboxes fieldset{margin-top:8px;margin-bottom:12px}.duet-multiselect-checkboxes fieldset+fieldset{margin-top:28px}.duet-multiselect-checkboxes legend{margin-bottom:12px;font-size:1rem;font-weight:600}.duet-multiselect-help{display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-multiselect-help span{display:block;margin-top:8px}.duet-theme-turva .duet-multiselect-help{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(143, 147, 158)}.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-label-hidden .duet-internal-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';var DuetMultiselectStyle0=duetMultiselectCss;function toggleInArray(e,t){return e.includes(t)?e.filter((function(e){return e!==t})):__spreadArray(__spreadArray([],e,true),[t],false)}var DuetMultiselect=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.errorId=createID("DuetError");this.labelId=createID("DuetLabel");this.topCaptionId=createID("DuetCaptionTop");this.selectedLangObject={en:"selected",fi:"valittu",sv:"vald"};this.selectAllLabel={en:"Select all",fi:"Valitse kaikki",sv:"Välj alla"};this.clearAllLabel={en:"Clear all",fi:"Tyhjennä kaikki",sv:"Rensa alla"};this.placeholderLabel={en:"Hint",fi:"Vihje",sv:"Tips"};this.onChange=function(e){t.duetChange.emit({originalEvent:e,value:t.value,component:"duet-multiselect"})};this.onBlur=function(e){t.duetBlur.emit({originalEvent:e,value:t.value,component:"duet-multiselect"})};this.onFocus=function(e){t.duetFocus.emit({originalEvent:e,value:t.value,component:"duet-multiselect"})};this.onMultiselectKeyDown=function(e){if(isEscapeKey(e)||isTabKey(e)){if(t.checkboxesVisible){t.checkboxesVisible=false;t.multiselectElement.focus();e.preventDefault()}}};this.onMultiselectInputKeyDown=function(e){if(isEnterKey(e)){e.preventDefault();t.toggleCheckboxes();setTimeout((function(){if(t.checkboxesVisible){var e=t.element.shadowRoot.querySelector("#".concat(t.getOptionIdentifier(t.allControls?-2:0)));if(e){e.focus()}}}),200)}};this.onCheckboxKeyDown=function(e,i){var o;if(isArrowLeftKey(e)||isArrowUpKey(e)){o=t.element.shadowRoot.querySelector("#".concat(t.getOptionIdentifier(i-1)))}else if(isArrowRightKey(e)||isArrowDownKey(e)){o=t.element.shadowRoot.querySelector("#".concat(t.getOptionIdentifier(i+1)))}if(o){o.focus();e.preventDefault();t.activeDescendant=o.id}};this.toggleCheckboxes=function(){t.checkboxesVisible=!t.checkboxesVisible};this.toggleCheckbox=function(e,i){t.value=toggleInArray(t.value,i);t.onChange(e)};this.handleSelectAllClick=function(e){t.value=t.processedItems;t.onChange(e)};this.handleClearAllClick=function(e){t.value=[];t.onChange(e)};this.getOptionIdentifier=function(e){return"".concat(t.identifier,"-option-").concat(e)};this.getDescribedBy=function(){var e=[];if(t.isCaptionVisible&&t.topCaptionId){e.push(t.topCaptionId)}if(t.accessibleDescribedBy){e.push(t.accessibleDescribedBy)}if(t.error){e.push(t.errorId)}return e.length>0?e.join(" "):null};this.processedItems=[];this.processedGroups=[];this.checkboxesVisible=false;this.activeDescendant="";this.language=getLanguage();this.margin="auto";this.error="";this.accessibleLiveError="polite";this.expand=false;this.value=[];this.theme="";this.labelHidden=false;this.identifier=createID("DuetMultiselect");this.allControls=false;this.placeholder="";this.caption=undefined;this.items=undefined;this.disabled=false;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.accessibleDescribedBy=undefined;this.tooltip="";this.tooltipDirection="auto"}e.prototype.handleFocus=function(e){var t=this;var i=e.composedPath().every((function(e){return e!==t.element}));if(i){this.checkboxesVisible=false}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.isCaptionVisible=!!this.caption;checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true);this.refresh()};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.multiselectElement){this.multiselectElement.focus(e)}return[2]}))}))};e.prototype.selectWithValues=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){t=this.processedItems.filter((function(t){return e.includes(t.value)}));this.value=Array.from(new Set(__spreadArray(__spreadArray([],this.value,true),t,true)));return[2]}))}))};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(i){e=parsePossibleJSON(this.items);this.processedItems=[];this.processedGroups=[];if(!e||e.length===0){return[2]}if(e[0].items!==undefined){this.processedGroups=e}else{this.processedGroups=[{label:"",items:e}]}this.processedGroups.forEach((function(e){return e.items.forEach((function(e){return t.processedItems.push(e)}))}));return[2]}))}))};e.prototype.render=function(){var e=this;var t;return h(Host,{key:"9462771c3a5152e905cf83ba95ade9dda200833b",class:{"duet-m-0":this.margin==="none","duet-expand":this.expand}},h("div",{key:"1235786e07d83c91d28a13462b2fa5cf8e7907e4",class:{"duet-multiselect-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva","duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error},onKeyDown:function(t){return e.onMultiselectKeyDown(t)}},h(DuetInternalLabel,{key:"5ccd987600f461c3c9a7f7c2f46b602f169b658d",theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:this.identifier},this.label),this.tooltip&&h("duet-tooltip",{key:"e519c7bf79fa2214804ca502285f52a553b79ac3",class:"duet-multiselect-tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),h("slot",{key:"cfc287863231de5436fc09d8cd57b53d4ef24820",name:"tooltip"}),this.caption&&h("duet-caption",{key:"28baa67909e4027ae56a35d87a4e15a5f118e703",id:this.topCaptionId,size:"medium"},this.caption),h("div",{key:"2b734b81c229392334276022638d7265e23c2168",class:"duet-multiselect-wrapper"},h("button",{key:"d6fb96ae298ce6e3d7df71217c728f29e1550c9a",id:this.identifier,ref:function(t){return e.multiselectElement=t},class:{"duet-multiselect":true,"duet-multiselect-active":this.checkboxesVisible},tabindex:"0",onClick:function(){return e.toggleCheckboxes()},onFocus:function(t){return e.onFocus(t)},onBlur:function(t){return e.onBlur(t)},role:"combobox","aria-expanded":this.checkboxesVisible?"true":"false","aria-haspopup":"listbox","aria-labelledby":this.labelId,"aria-describedby":this.getDescribedBy(),"aria-owns":"".concat(this.identifier,"-checkboxes"),onKeyDown:function(t){return e.onMultiselectInputKeyDown(t)},disabled:this.disabled},h("span",{key:"7581bf2f7629efe48e128c941beee89c4d22f709",role:"textbox","aria-readonly":"true","aria-multiline":"false","aria-autocomplete":"none","aria-controls":"".concat(this.identifier,"-checkboxes"),"aria-label":this.placeholderLabel[this.language],class:"duet-multiselect-label"},this.placeholder),this.value&&this.value.length>0&&h("span",{key:"7b747555309afe0dc4716f4335269a5dc46f17ff",class:"duet-multiselect-badge"},this.value.length,h("duet-visually-hidden",{key:"22f9e68fe690b60dfe7e28ba5767d613e1037070"},this.selectedLangObject[this.language],", ",this.value.map((function(e){return e.label})).join(", "))),h("svg",{key:"e944a170506d54950f8d1cc7083bfe7e2844881c",class:{"duet-multiselect-icon":true,"duet-multiselect-icon--rotate":this.checkboxesVisible},fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},h("path",{key:"4670864110dc9cd1070d094d6f5632c1e4d12cb0",d:"m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z"}))),h("div",{key:"d5a82df3b04ff3ffd5d764d7f7bcaa6ee1684a76",id:"".concat(this.identifier,"-checkboxes"),role:"listbox",class:{"duet-multiselect-checkboxes":true,"duet-multiselect-checkboxes-active":this.checkboxesVisible},"aria-activedescendant":this.activeDescendant,"aria-multiselectable":"true"},((t=this.processedItems)===null||t===void 0?void 0:t.length)&&this.allControls&&h("div",{key:"adffc7b727675100dabd55690baa4cfdf8db6bc9",class:"duet-multiselect-all-control-buttons"},h("button",{key:"5fe77f9b62e41a2fe5b8e2f08df86a34f13a0db9",class:"duet-multiselect-select-all",onClick:this.handleSelectAllClick,id:this.getOptionIdentifier(-2),onKeyDown:function(t){return e.onCheckboxKeyDown(t,-2)}},this.selectAllLabel[this.language]),h("button",{key:"086c285ad8d21277035ca2f620d0506461671a30",class:"duet-multiselect-clear-all",onClick:this.handleClearAllClick,id:this.getOptionIdentifier(-1),onKeyDown:function(t){return e.onCheckboxKeyDown(t,-1)}},this.clearAllLabel[this.language])),this.processedItems&&this.processedGroups.map((function(t){return h("fieldset",null,t.label&&h("legend",null,t.label),t.items.map((function(t,i){var o,r;return h("duet-checkbox",{identifier:e.getOptionIdentifier(i),role:"option",label:t.label,value:t.value,key:t.value,checked:(o=e.value)===null||o===void 0?void 0:o.includes(t),"accessible-selected":((r=e.value)===null||r===void 0?void 0:r.includes(t))?"true":undefined,disabled:!e.checkboxesVisible||t.disabled,onDuetChange:function(i){return e.toggleCheckbox(i,t)},onKeyDown:function(t){return e.onCheckboxKeyDown(t,i)},theme:e.theme})})))})))),h("span",{key:"6f9f7cb3b9e6acc65cae486e246a12110181fdff",class:"duet-multiselect-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&h("span",{key:"b3241e3fb948c771065983f44f65b281026d5c21"},this.error))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{items:["refresh"]}},enumerable:false,configurable:true});return e}();DuetMultiselect.style=DuetMultiselectStyle0;export{DuetMultiselect as duet_multiselect};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetNavCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%}:host([sticky]){position:relative;z-index:300}.container{position:relative;z-index:400}::slotted(*[slot=mobile]){display:inherit}::slotted(*[slot=desktop]){display:none}@media (min-width: 62em){::slotted(*[slot=mobile]){display:none}::slotted(*[slot=desktop]){display:inherit}}.sticky{position:sticky;top:0}@media (min-width: 62em){.sticky{position:relative;top:unset}}";var DuetNavStyle0=duetNavCss;var DuetNav=function(){function e(e){registerInstance(this,e);this.theme="";this.sticky=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){return h(Host,{key:"da435b2c67678918ad047ec518e5e7ce4248ad46"},h("div",{key:"7fd627c796cbea3540a34b81dd33aa389f24f434",class:{container:true,sticky:this.sticky}},h("slot",{key:"fa2f7460016778ef6aa8e41fa846b26d7c6f76a9"}),h("slot",{key:"d706503a7934a3bd8bf2e0c568194c53cea0e220",name:"mobile"}),h("slot",{key:"82756ef7543bcba00695435414503b1cf1d2089b",name:"desktop"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetNav.style=DuetNavStyle0;export{DuetNav as duet_nav};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,r){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function n(t){try{s(r.next(t))}catch(t){o(t)}}function d(t){try{s(r["throw"](t))}catch(t){o(t)}}function s(t){t.done?i(t.value):a(t.value).then(n,d)}s((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,n;return n={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function d(t){return function(e){return s([t,e])}}function s(d){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,d[0]&&(i=0)),i)try{if(r=1,a&&(o=d[0]&2?a["return"]:d[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,d[1])).done)return o;if(a=0,o)d=[d[0]&2,o.value];switch(d[0]){case 0:case 1:o=d;break;case 4:i.label++;return{value:d[1],done:false};case 5:i.label++;a=d[1];d=[0];continue;case 7:d=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){i.label=d[1];break}if(d[0]===6&&i.label<o[1]){i.label=o[1];o=d;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(d);break}if(o[2])i.ops.pop();i.trys.pop();continue}d=e.call(t,i)}catch(t){d=[6,t];a=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,h,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-daf80d44.js";import{a as getLanguage,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-40caac4f.js";import{a as actionArrowDownSmall}from"./action-arrow-down-small-82273dc8.js";import"./string-utils-192eb3c8.js";var duetNotificationCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:0.7}.duet-notification{display:block;padding:16px;padding-bottom:0;cursor:pointer}:host(:first-of-type) .duet-notification{border-top-left-radius:8px;border-top-right-radius:8px}:host(:last-of-type) .duet-notification{border-bottom:0;border-bottom-right-radius:8px;border-bottom-left-radius:8px}.duet-notification.duet-theme-turva{color:rgb(23, 28, 58);border-bottom-color:rgb(222, 224, 228)}.duet-notification.duet-notification-highlight{font-weight:600}.duet-notification.duet-notification-highlight.duet-theme-turva{background:rgb(245, 247, 250)}@media (min-width: 62em){.duet-notification:hover{background:rgb(240, 247, 250)}.duet-notification:hover.duet-theme-turva{background:rgb(245, 247, 250)}}.duet-notification a{text-decoration:none}.duet-notification a:focus{outline:0}:host(.user-is-tabbing) .duet-notification:focus-within{z-index:1;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-notification:focus-within.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-notification-container{position:relative;display:flex;padding-bottom:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-notification-badge-container{position:relative;width:16px}.duet-notification-badge{position:absolute;top:6px;left:-2px;width:8px;height:8px;background:rgb(0, 119, 179);border-radius:50%}.duet-theme-turva .duet-notification-badge{background:rgb(198, 12, 48)}.duet-notification-content{flex:1}.duet-notification-date{position:absolute;top:2px;right:0;width:96px;font-size:0.75rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);text-align:right;text-transform:uppercase;opacity:0.7}@media (max-width: 35.9375em){.duet-notification-date{width:auto}}.duet-theme-turva .duet-notification-date{color:rgb(113, 118, 132)}@media (min-width: 62em){:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:1}.duet-notification{padding:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-notification:hover{background:rgb(228, 241, 247)}.duet-notification.duet-notification-highlight{font-weight:600;background:rgb(240, 247, 250)}.duet-notification-container{padding-bottom:0;border-bottom-style:none}}::slotted(duet-heading){padding-right:80px !important}::slotted(duet-paragraph){margin-bottom:2px !important}";var DuetNotificationStyle0=duetNotificationCss;var DuetNotification=function(){function t(t){registerInstance(this,t);this.language=getLanguage();this.accessibleLabelUnreadDefaults={en:"Unread",fi:"Lukematon",sv:"Oläst"};this.accessibleLabelUnread=getLocaleString(this.accessibleLabelUnreadDefaults,this.language);this.url="#";this.date="";this.highlight=false;this.external=false;this.theme=""}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelUnread",defaults:"accessibleLabelUnreadDefaults"});subscribeTabbingChange(this)};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);unsubscribeTabbingChange(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.linkElement.focus(t);return[2]}))}))};t.prototype.render=function(){var t=this;return h("div",{key:"ca3ab09712e8c37bccd234d83b8685864fe9c6e2",role:"listitem",class:{"duet-notification":true,"duet-notification-highlight":this.highlight,"duet-theme-turva":this.theme==="turva"}},h("a",{key:"2042476b8c42b4cb9a4aec6057dbe563772fb9ec",ref:function(e){return t.linkElement=e},href:this.url,target:this.external?"_blank":"_self"},h("div",{key:"082ba1ab481221f0954c6a9a59e07856af32898c",class:"duet-notification-container"},h("div",{key:"dde13f7597e7114096d5bae94ebc1b282154de8a",class:"duet-notification-badge-container"},this.highlight&&h("div",{key:"4b70454b825191fe9a40450c7739bce6cdd059b4",class:"duet-notification-badge"},h("duet-visually-hidden",{key:"8c038435ee5b35b2d35095eafa7f4b833de4e57f"},this.accessibleLabelUnread,":"))),h("div",{key:"7c8f2d236a8d922e6b21f65585b00f096134a8f3",class:"duet-notification-content"},h("slot",{key:"911e94ff943e9ace002dd0cda2579a80ae42eda1"})),h("div",{key:"dc50e21df86731f26269d4778e18b08a19444d01",class:"duet-notification-date"},this.date))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetNotification.style=DuetNotificationStyle0;var duetNotificationDrawerCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-drawer{position:relative}@media (min-width: 62em){.duet-drawer{display:inline-block}}.duet-drawer-toggle{position:relative;display:flex;align-items:center;width:100%;height:48px;padding:0 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:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:48px;color:rgb(8, 42, 77);text-align:left;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(212, 223, 229);border-radius:0;-webkit-appearance:none;appearance:none}@media (min-width: 62em){.duet-drawer-toggle{z-index:200;width:auto;max-width:200px;padding:0 30px 0 12px;overflow:hidden;font-size:0.875rem;line-height:4rem;border:0;border-radius:4px;transition:border 300ms ease}}.duet-theme-turva .duet-drawer-toggle{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);background-color:rgb(255, 255, 255);border-color:rgb(222, 224, 228)}.duet-drawer-toggle:active{opacity:0.75}.duet-drawer-toggle:focus{outline:0}:host(.user-is-tabbing) .duet-drawer-toggle:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva .duet-drawer-toggle:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-drawer-toggle:hover{color:rgb(0, 75, 129)}.duet-theme-turva .duet-drawer-toggle:hover{color:rgb(113, 118, 132)}.duet-drawer-toggle::after{display:none !important}@media (min-width: 62em){.duet-drawer-toggle::after{position:absolute;top:auto;bottom:0;left:0;display:block !important;width:100%;height:3px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(3px)}.duet-theme-turva .duet-drawer-toggle::after{background:rgb(198, 12, 48)}}.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(0, 75, 129);border-bottom:1px solid rgb(245, 248, 250);border-radius:0}.duet-theme-turva .duet-drawer-toggle[aria-expanded=true],.duet-theme-turva .duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(113, 118, 132);border-color:rgb(245, 247, 250)}@media (min-width: 62em){.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{border:0}.duet-drawer-toggle[aria-expanded=true]::after,.duet-drawer-toggle[aria-expanded=true]:hover::after{left:0;width:100%;transform:translateY(0)}}.duet-drawer-icon{position:relative;display:inline-flex;min-width:12px;margin-right:12px;font-size:0;line-height:normal;vertical-align:baseline}@media (min-width: 62em){.duet-drawer-icon{margin-right:8px}}.duet-drawer-label{line-height:1}.duet-drawer-caret{position:absolute;top:50%;right:20px;display:flex;width:10px;height:10px;margin-left:8px;line-height:normal;pointer-events:none;transition:300ms ease;transform:translateY(-50%);transform-origin:50% 50%}@media (min-width: 62em){.duet-drawer-caret{right:16px;width:7px;height:7px}}.duet-drawer-caret duet-icon{width:10px}.duet-drawer-toggle[aria-expanded=true] .duet-drawer-caret{transform:translateY(-50%) rotate(180deg)}.duet-drawer-badge{position:absolute;top:0;right:0;display:inline-block;width:6px;height:6px;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-drawer-badge{background:rgb(247, 178, 40)}.duet-drawer-content{display:none;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(212, 223, 229)}.duet-drawer-content:focus{outline:0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255);border-color:rgb(212, 223, 229)}@media (min-width: 62em){.duet-drawer-content{position:absolute;top:100%;z-index:600;display:block;width:450px;max-height:420px;padding-left:0;overflow-y:auto;visibility:hidden;background-color:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;border-top-left-radius:0;border-top-right-radius:0;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:300ms ease;transform:scale(0.95) translateZ(0) translateY(-10px);transform-origin:50% 0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255)}.duet-drawer-content.duet-drawer-left{right:0}.duet-drawer-content.duet-drawer-right{left:0}}.duet-drawer-content.duet-drawer-open{display:block}@media (min-width: 62em){.duet-drawer-content.duet-drawer-open{visibility:visible;opacity:1;transform:scale(1) translateZ(0) translateY(0)}}';var DuetNotificationDrawerStyle0=duetNotificationDrawerCss;var ESC_KEY=27;var DuetNotificationDrawer=function(){function t(t){var e=this;registerInstance(this,t);this.handleKeyDown=function(t){if(e.isOpen&&t.keyCode===ESC_KEY){e.close()}};this.toggleMenu=function(t){t.stopPropagation();e.isOpen?e.close():e.open()};this.updateNotificationState=function(){e.hasNotifications=e.element.children.length>0};this.isOpen=false;this.hasNotifications=undefined;this.icon="";this.label="Label";this.language=getLanguage();this.accessibleLabelNotificationsDefaults={en:"No notifications",fi:"Ei ilmoituksia",sv:"Inga notifikationer"};this.accessibleLabelNotifications=getLocaleString(this.accessibleLabelNotificationsDefaults);this.badge=false;this.theme="";this.direction="left"}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.updateNotificationState()};t.prototype.connectedCallback=function(){this.observer=new MutationObserver(this.updateNotificationState);this.observer.observe(this.element,{childList:true});subscribeTabbingChange(this)};t.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;unsubscribeTabbingChange(this)};t.prototype.handleClickFocusOutside=function(t){var e=t.target;if(this.isOpen&&!this.element.contains(e)){this.close(false)}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.drawerButtonEl.focus(t);return[2]}))}))};t.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.element.closest("duet-header");if(t){t.closeMenus()}this.isOpen=true;this.drawerContentEl.scrollTop=0;return[2]}))}))};t.prototype.close=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=true}return __generator(this,(function(e){this.isOpen=false;if(t){this.setFocus({preventScroll:true})}return[2]}))}))};t.prototype.render=function(){var t=this;return h("div",{key:"659136cc65a195a1de4228bd580d2368d2244a86",class:{"duet-drawer":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:this.handleKeyDown},h("button",{key:"abe8757b0f4db9939465b4ab6011c8625b5baf76",ref:function(e){return t.drawerButtonEl=e},type:"button",class:"duet-drawer-toggle",id:"duet-drawer-toggle","aria-controls":"duet-drawer-content","aria-expanded":this.isOpen?"true":"false",onClick:this.toggleMenu},this.icon&&h("div",{key:"a99654516249d53e1a9fd81021998c2e461365a7",class:"duet-drawer-icon"},h("duet-icon",{key:"76b8f2f443ab22637765dfef1db4000215ef5a19",margin:"none",size:"x-small",name:this.icon,color:"currentColor"}),this.badge&&h("div",{key:"6efbba81b7cf33402531b445e5e297d5e48a4fc6",class:"duet-drawer-badge"})),h("span",{key:"5b9df974799ba860b7d2d964fc22c50d18aa0282",class:"duet-drawer-label"},this.label),h("div",{key:"ed02df2f85e017956770c841d1882b6a6ae45280",class:"duet-drawer-caret"},h("duet-icon",{key:"646368ab0a187e896f1110e4015a05b3bad71a9d",margin:"none",size:"auto",icon:actionArrowDownSmall.svg,color:"currentColor"}))),h("div",{key:"0e2cfc291004260d5f02350fd624396768c06b3b",id:"duet-drawer-content",class:{"duet-drawer-content":true,"duet-drawer-right":this.direction==="right","duet-drawer-left":this.direction==="left","duet-drawer-open":this.isOpen},ref:function(e){return t.drawerContentEl=e}},this.hasNotifications?h("div",{role:"list"},h("slot",null)):h("duet-empty-state",{size:"small"},h("duet-paragraph",{size:"small",margin:"none"},this.accessibleLabelNotifications))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetNotificationDrawer.style=DuetNotificationDrawerStyle0;export{DuetNotification as duet_notification,DuetNotificationDrawer as duet_notification_drawer};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,i){function a(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{o(i.next(t))}catch(t){r(t)}}function u(t){try{o(i["throw"](t))}catch(t){r(t)}}function o(t){t.done?n(t.value):a(t.value).then(s,u)}o((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(t){return function(e){return o([t,e])}}function o(u){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,u[0]&&(n=0)),n)try{if(i=1,a&&(r=u[0]&2?a["return"]:u[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;if(a=0,r)u=[u[0]&2,r.value];switch(u[0]){case 0:case 1:r=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;a=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){n.label=u[1];break}if(u[0]===6&&n.label<r[1]){n.label=r[1];r=u;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(u);break}if(r[2])n.ops.pop();n.trys.pop();continue}u=e.call(t,n)}catch(t){u=[6,t];a=0}finally{i=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{a as isArrowRightKey,b as isArrowUpKey,c as isArrowDownKey,d as isArrowLeftKey,e as isBackspaceKey,s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-daf80d44.js";import{a as getLanguage,b as getLocale,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-40caac4f.js";import{c as checkNamedSlotElement,p as proxyInputToSlot}from"./slot-utils-4096ff0d.js";import"./string-utils-192eb3c8.js";var actionAdd={title:"action-add",tags:"action add plus",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z"/></svg>'};var actionSubtract={title:"action-subtract",tags:"action subtract minus remove delete cancel",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z"/></svg>'};function SafeParseFloat(t,e){var n;if(typeof t==="string"){if(t===""){return null}var i=t.replace("−","-").replace("‐","-").replace("−","-").replace("–","-").replace("—","-");if(e){i=ConvertToEnUS(i,e,false)}i=i.replace(/\s+/g,"");n=parseFloat(i)}if(typeof t==="number"){n=parseFloat(String(t))}if(!isNaN(Number(n))){return Number(n)}if(t===null||t===undefined){return null}throw new Error("Invalid value passed to SafeParseFloat")}function ConvertToEnUS(t,e,n){if(n===void 0){n=false}var i;var a=new Intl.NumberFormat(e).format(1/2).replace(/[0-9]/g,"");var r=new Intl.NumberFormat("en-US").format(1/2).replace(/[0-9]/g,"");var s=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,"");var u=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");i=t.replace(a,"DECIMALSEPARATOR");if(n){i=i.replace(s,"THOUSANDSEPARATOR")}else{i=i.replace(s,"")}i=i.replace("DECIMALSEPARATOR",r);i=i.replace("THOUSANDSEPARATOR",u);return i}var roundTo=function(t,e){return Math.round(t/e)*e};var clamp=function(t,e,n){return Math.min(Math.max(t,e),n)};var duetNumberInputCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-number-container{position:relative;width:100%}.duet-number-buttons{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons .duet-number-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons .duet-number-button[aria-disabled=true],.duet-number-buttons .duet-number-button:disabled{pointer-events:none}.duet-number-buttons .duet-number-button[aria-disabled=true] duet-icon,.duet-number-buttons .duet-number-button:disabled duet-icon{opacity:0.4}.duet-number-buttons .duet-number-button:active duet-icon{transform:translateY(1px)}.duet-number-buttons .duet-number-button:focus{outline:0}:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva :host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons .duet-number-button:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons .duet-number-button:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-number-buttons .duet-number-button:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons .duet-number-button:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(212, 223, 229)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:first-of-type::before{background:linear-gradient(to left, rgba(199, 202, 207, 0.2) 0%, rgba(199, 202, 207, 0.2) 1px, rgba(199, 202, 207, 0.1) 1px, rgba(199, 202, 207, 0) 100%)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:last-of-type::before{background:rgb(222, 224, 228)}';var DuetNumberInputStyle0=duetNumberInputCss;var DuetNumberInput=function(){function t(t){var e=this;registerInstance(this,t);this.duetChange=createEvent(this,"duetChange",3);this.duetInput=createEvent(this,"duetInput",3);this.duetBlur=createEvent(this,"duetBlur",7);this.duetFocus=createEvent(this,"duetFocus",7);this.inputId=createID("DuetInput");this.proxyId=createID("DuetInput");this.handleFocus=function(){e.focusedValue=e.value};this.handleKeyDown=function(t){if(isArrowRightKey(t)||isArrowUpKey(t)){e.add(t)}else if(isArrowDownKey(t)||isArrowLeftKey(t)){e.subtract(t)}else if(isBackspaceKey(t)){e.clearValue(t)}};this.handleChange=function(t){t.stopPropagation();var n=t.target;if(n&&n.value){try{var i=SafeParseFloat(n.value,e.locale);if(isNaN(i)||i==null){i=e.min||0}e.setValue(i);e.duetInput.emit({component:"duet-number-input",originalEvent:t,value:SafeParseFloat(e.value,e.locale).toString(),valueAsNumber:i})}catch(i){if(n.value!=="-"){e.clearValue(t)}e.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}}else{e.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}};this.handleBlur=function(t){var n=t.target;if(!n){return}if(n.value){try{var i=SafeParseFloat(n.value,e.locale);if(e.rounding){i=roundTo(i,e.step)}i=clamp(i,e.min,e.max);if(i!==SafeParseFloat(e.value,e.locale)||i!==SafeParseFloat(e.focusedValue,e.locale)){e.setValue(i);e.emitChange(t)}}catch(n){e.emitNull(t)}}else{e.emitNull(t)}};this.emitChange=function(t){var n=SafeParseFloat(e.value,e.locale);e.duetChange.emit({originalEvent:t,value:n.toString(),valueAsNumber:n,component:"duet-number-input"})};this.emitNull=function(t){e.duetChange.emit({originalEvent:t,value:null,valueAsNumber:null,component:"duet-number-input"})};this.localizeValue=function(t){return t.toLocaleString(e.locale,{useGrouping:false})};this.setValue=function(t){e.value=e.localizeValue(t);e.duetInputElement.value="".concat(e.value," ").concat(e.unit)};this.add=function(t){if(t){t.preventDefault()}var n=SafeParseFloat(e.value,e.locale);if(n===e.max){return}var i=n==null?e.min:n+e.step;if(i%e.step!==0){var a=i%e.step;i-=a}var r=clamp(i,e.min,e.max);e.value=e.localizeValue(r);e.emitChange(t)};this.subtract=function(t){if(t){t.preventDefault()}var n=SafeParseFloat(e.value,e.locale);if(n===e.min){return}var i=n-e.step;if(i%e.step!==0){var a=e.step-i%e.step;i+=a}i=clamp(i,e.min,e.max);e.value=e.localizeValue(i);e.emitChange(t)};this.language=getLanguage();this.locale=getLocale(this.language).locale;this.unit=getLocale(this.language).money;this.focusedValue=undefined;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleLiveDefaults={fi:"{current} euroa valittuna",en:"{current} euros selected",sv:"{current} euro valt"};this.accessibleLive=getLocaleString(this.accessibleLiveDefaults,this.language);this.accessibleLiveEnabled=true;this.accessibleAddDefaults={fi:"Lisää summaan",en:"Add to the amount",sv:"Lägg till beloppet"};this.accessibleAdd=getLocaleString(this.accessibleAddDefaults,this.language);this.accessibleSubtractDefaults={fi:"Vähennä summasta",en:"Subtract from the amount",sv:"Dra från beloppet"};this.accessibleSubtract=getLocaleString(this.accessibleSubtractDefaults,this.language);this.theme="";this.margin="auto";this.expand=false;this.identifier=undefined;this.min=0;this.labelDefaults={fi:"Nimilappu",en:"Label",sv:"Etikett"};this.label=getLocaleString(this.labelDefaults,this.language);this.labelHidden=false;this.max=1e6;this.name=undefined;this.error="";this.tooltip="";this.step=5e3;this.rounding=true;this.role=undefined;this.disabled=false;this.required=false;this.value=undefined}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);if(this.value){this.value=this.localizeValue(SafeParseFloat(this.value,this.locale))}checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]);subscribeTabbingChange(this)};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);unsubscribeTabbingChange(this)};t.prototype.componentDidRender=function(){proxyInputToSlot(this.element,this.proxyId,this.name,this.value?"".concat(this.value," ").concat(this.unit):"",this.required)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.duetInputElement.setFocus(t);return[2]}))}))};t.prototype.getValueAsNumber=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=SafeParseFloat(this.value,this.locale);return[2,this.value===undefined||this.value===null||isNaN(t)?null:t]}))}))};t.prototype.clearValue=function(t){this.duetInputElement.value="";if(this.value!==null){this.value=null;this.emitNull(t)}};t.prototype.formatAnnouncement=function(){var t=!!this.value?SafeParseFloat(this.value,this.locale):null;if(t==null){return""}return this.accessibleLive.replace("{current}",t.toString(10))};t.prototype.render=function(){var t=this;var e=this.identifier||this.inputId;var n="".concat(this.localizeValue(this.max)," ").concat(this.unit).length;var i=!!this.value?SafeParseFloat(this.value,this.locale):null;return h(Host,{key:"2339fa56635a7ba8fc6edec30d3675317fcbe27f",class:{"duet-theme-turva":this.theme==="turva","duet-expand":this.expand,"duet-m-0":this.margin==="none"}},h("div",{key:"dff60647793af3de902477ed0ea4cfebe2a0b060",class:"duet-number-container"},h("duet-input",{key:"55a832b70fd619b16560dcc8de2a11da3ae90344",ref:function(e){return t.duetInputElement=e},onDuetChange:function(e){return t.handleChange(e)},onDuetFocus:this.handleFocus,onDuetBlur:function(e){return t.handleBlur(e)},onKeyDown:function(e){return t.handleKeyDown(e)},label:this.label,value:this.value?"".concat(this.value," ").concat(this.unit):"",error:this.error,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":i!=null?i:"",maxlength:n,name:this.name,component:"number",required:this.required,disabled:this.disabled,role:this.role,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:e,theme:this.theme,margin:"none",expand:true,numericKeyboard:true,autoComplete:"off",type:"text",accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleLabelledBy:this.accessibleLabelledBy,accessibleDescription:this.accessibleDescription,accessibleDetails:this.accessibleDetails,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy},h("slot",{key:"1e4b7cc87d46de0233457c6e087217b27fb2a6df",name:"tooltip"}),h("div",{key:"5a2660b2592fd4a96172bf4ce53d5d810e9479c6",class:{"duet-number-buttons":true,"duet-no-label":this.labelHidden}},h("button",{key:"dddc2edb43610eed98a1db9de1ac006d6f721099",disabled:this.disabled,"aria-disabled":i==null||i===this.min?"true":"false",class:"duet-number-button duet-number-button-subtract",onClick:this.subtract,type:"button"},h("duet-visually-hidden",{key:"e29c3ce840c8e2d776ed9430ed84f1a0ead9a5a3"},this.accessibleSubtract," ",this.step),h("duet-icon",{key:"e5eb7418c9f6711b21e6550bad87f017d97cff6e",icon:actionSubtract.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})),h("button",{key:"688035f8fcb3f56a36d2d7b13a9d494388eafd39",disabled:this.disabled,"aria-disabled":i===this.max?"true":"false",class:"duet-number-button duet-number-button-add",onClick:this.add,type:"button"},h("duet-visually-hidden",{key:"8779e5d09e06ff7f63ff715d45bd72c513c1c1dc"},this.accessibleAdd," ",this.step),h("duet-icon",{key:"f6548c254afa31a6346042f11113aad09baefce3",icon:actionAdd.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&h("duet-visually-hidden",{key:"4e272274bdb8a1c9cc068e76e846b49647200fd6","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetNumberInput.style=DuetNumberInputStyle0;export{DuetNumberInput as duet_number_input};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,h,H as Host}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetOverlayCss=".duet-overlay{position:fixed;top:0;left:0;display:block;width:100%;height:100%;visibility:visible;background:rgb(8, 42, 77);opacity:0.3}.duet-overlay.duet-theme-turva{background:rgb(23, 28, 58)}.duet-overlay.keep-stacking-context{position:absolute;top:unset;left:unset;z-index:unset !important}.duet-overlay.modal-overlay{z-index:-1}.duet-overlay.hidden{visibility:hidden;opacity:0}.duet-overlay.dark{opacity:0.85}.duet-overlay.white{background:rgb(255, 255, 255);opacity:0.9}.duet-overlay.white.duet-theme-turva{background:rgb(255, 255, 255)}.duet-overlay.display-x-small{display:none}@media (max-width: 35.9375em){.duet-overlay.display-x-small{display:block}}.duet-overlay.display-x-small.not{display:block}@media (max-width: 35.9375em){.duet-overlay.display-x-small.not{display:none}}.duet-overlay.display-small{display:none}@media (min-width: 36em){.duet-overlay.display-small{display:block}}.duet-overlay.display-small.not{display:block}@media (min-width: 36em){.duet-overlay.display-small.not{display:none}}.duet-overlay.display-medium{display:none}@media (min-width: 48em){.duet-overlay.display-medium{display:block}}.duet-overlay.display-medium.not{display:block}@media (min-width: 48em){.duet-overlay.display-medium.not{display:none}}.duet-overlay.display-large{display:none}@media (min-width: 62em){.duet-overlay.display-large{display:block}}.duet-overlay.display-large.not{display:block}@media (min-width: 62em){.duet-overlay.display-large.not{display:none}}.duet-overlay.transition-slowly{transition:600ms ease}.duet-overlay.transition-quickly{transition:300ms ease}";var DuetOverlayStyle0=duetOverlayCss;var DuetOverlay=function(){function e(e){var t=this;registerInstance(this,e);this.getDisplayBreakpoint=function(){if(t.displayDevice.startsWith("not")){return t.displayDevice.substring(t.displayDevice.indexOf("-")+1)}return t.displayDevice};this.visible=true;this.keepStackingContext=false;this.modalOverlay=false;this.theme="";this.displayDevice="all";this.transition="slowly";this.zIndex="400";this.variation="default"}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e;return h(Host,{key:"f93bdb0717b61c7968f0f595a0829f73495c2394","aria-hidden":"true"},h("div",{key:"32b2a1d87f574488dbd7e8d2230cfa0daa23238a",style:{zIndex:this.zIndex},class:(e={"duet-overlay":true,"duet-theme-turva":this.theme==="turva","keep-stacking-context":this.keepStackingContext},e["transition-".concat(this.transition)]=this.transition!=="immediate",e["display-x-small"]=this.getDisplayBreakpoint()==="x-small",e["display-small"]=this.getDisplayBreakpoint()==="small",e["display-medium"]=this.getDisplayBreakpoint()==="medium",e["display-large"]=this.getDisplayBreakpoint()==="large",e.not=this.displayDevice.startsWith("not"),e.hidden=!this.visible,e[this.variation]=true,e)}))};return e}();DuetOverlay.style=DuetOverlayStyle0;export{DuetOverlay as duet_overlay};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,h,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetPageHeadingCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-page-heading{position:relative;display:block;width:100%;margin:0 auto;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";color:rgb(8, 42, 77)}.duet-page-heading.duet-p-0{padding:0 !important}.duet-page-heading.duet-m-0{margin:0 !important}.duet-page-heading.auto{overflow:visible}.duet-page-heading.auto .heading,.duet-page-heading.auto .background{max-width:none}.duet-page-heading.fluid,.duet-page-heading.narrow{padding:0 16px}@media (min-width: 36em){.duet-page-heading.fluid{padding:0 28px}}@media (min-width: 62em){.duet-page-heading.fluid{padding:0 56px}}@media (min-width: 76.25em){.duet-page-heading.fluid{max-width:1110px;padding:0}}.duet-page-heading.narrow{max-width:888px}@media (min-width: 36em){.duet-page-heading.narrow{padding:0 48px}}@media (min-width: 48em){.duet-page-heading.narrow{padding:0 72px}}.duet-page-heading .heading{max-width:744px;padding:48px 90px 16px 0}@media (min-width: 48em){.duet-page-heading .heading{padding:72px 150px 40px 0}}.duet-page-heading:not(.has-icon) .heading{padding-right:0}.duet-page-heading .background{position:absolute;top:0;right:0;left:0;width:100%;max-width:744px;height:104px;margin:0 auto;margin:0 auto}@media (min-width: 48em){.duet-page-heading .background{height:165px}}.duet-page-heading .background .background-mask{position:absolute;top:-20px;right:0;display:block;width:286px;height:331px;pointer-events:none;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIxIiBoZWlnaHQ9IjI1NyIgdmlld0JveD0iMCAwIDcyMSAyNTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yODIwXzY5OTkxKSI+CjxwYXRoIGQ9Ik04MC4xNzA1IDIzLjE4MTVDOTEuOTY5OSAxOC44NjU5IDEwMi44NyAxMS42NTU5IDExMi45MDkgMS41NjQ0OEMxMjMuNzcgLTguMzA1MjcgMTM0LjM4MiAtMTguMjAxMSAxNDQuODI2IC0yOC4xODgyQzE1NS4yNDMgLTM4LjE2MjIgMTY1LjkwOCAtNDguMDg0MSAxNzYuNzQzIC01Ny45Mjc4QzE3OC44MTYgLTU5LjA0OSAxODAuNDk4IC02MC4yODc3IDE4MS43ODggLTYxLjY1NjdDMTgzLjA2NiAtNjMuMDEyNiAxODUuNDY1IC02Mi4yODI1IDE4OS4wMTIgLTU5LjQ3OTNDMTg0LjczNSAtNTEuMTM1IDE4MC43NTkgLTQyLjk2MDIgMTc3LjAxNyAtMzQuOTAyN0MxNzMuMjg4IC0yNi44NDUyIDE2Ny42ODEgLTE5LjEyNjggMTYwLjIxMSAtMTEuNzYwM0MxNTIuNzUzIC00LjM4MDgzIDE0NC45NTYgMy4zMTE1MiAxMzYuODQ3IDExLjM2OUMxMjguNzI0IDE5LjQyNjUgMTIwLjk2NiAyNy4xNDUgMTEzLjQ4MyAzNC40OTg0Qzk3LjQ5OCA0OS44MTggNzkuNjYyIDU2LjAyNDEgNjAuMDAwOCA1My4xNjg4QzQwLjI4NzQgNTAuMzEzNSAyNS41NDE0IDM5LjA3NDcgMTUuNjk3NyAxOS40Nzg2QzMuOTI0NDUgLTIuMzcyOTkgLTEuMjI1NTUgLTI0LjQ3MjQgMC4yNDc3NDMgLTQ2Ljc4MDNDMS4yNTE2NyAtNjcuNDg0NiAzLjQwMjkzIC04Ny43OTc4IDYuODA1ODQgLTEwNy43NzJDMTAuMTk1NyAtMTI3LjczMyAxNS43MTA4IC0xNDcuNDg2IDIzLjMzOCAtMTY3LjA0M0MyNi4zMTA3IC0xNzQuMDMxIDI5LjAwOTUgLTE4MC44NSAzMS40NzM3IC0xODcuNTY0QzMzLjkxMTggLTE5NC4yMjcgMzYuNTMyNCAtMjAwLjY2OCAzOS4yNTc0IC0yMDYuODQ4QzQxLjgxMjggLTIwOS41NzIgNDMuNDY4NiAtMjEyLjEyOCA0NC4xODU3IC0yMTQuNTRDNTMuMDI1NSAtMjI5LjM3NyA2Mi44MyAtMjM3Ljk5NSA3My42Mzg1IC0yNDAuNDMzQzg0LjM5NDggLTI0Mi44NzEgOTguMTM2OSAtMjM5LjgyMSAxMTQuODEyIC0yMzEuMzJDMTI3Ljk0MiAtMjI1LjYwOSAxMzMuMzkyIC0yMTYuMTA1IDEzMS4xNDkgLTIwMi43OTNDMTMwLjE3MSAtMTkwLjgzNyAxMjcuOTk0IC0xNzkuMjU5IDEyNC42MTcgLTE2OC4wMkMxMjAuMDQxIC0xNTIuNzc5IDExNS40MzggLTEzNy41NTEgMTEwLjg0OSAtMTIyLjMyMkMxMDYuMjczIC0xMDcuMDgxIDEwMS4yNzkgLTkxLjk2OTkgOTUuODk0MyAtNzcuMDAyM0M4NS41OTQzIC00OC42MDU3IDc5LjQyNzQgLTE5LjQyNjcgNzcuNDA2NSAxMC41NjA2Qzc3LjcxOTQgMTIuNDEyIDc4LjA0NTMgMTQuMjYzNSA3OC4zNTgzIDE2LjA4ODhDNzguNjcxMiAxNy45NDAyIDc5LjI3MDkgMjAuMyA4MC4xNzA1IDIzLjE5NDRNMTEwLjkxNCAtMjk2Ljc1N0MxMDkuNTQ1IC0yOTguMDM1IDEwNy4zMTYgLTI5OS4zNTIgMTA0LjIzOSAtMzAwLjczNEMxMDEuMTYyIC0zMDIuMDkgOTguMjQxMiAtMzA0LjA1OSA5NS41NDIzIC0zMDYuNjI3QzkwLjA3OTQgLTMxMS43NzcgODYuOTc2MyAtMzE4LjE2NiA4Ni4yMzMyIC0zMjUuODE5Qzg1LjQ2NCAtMzMzLjQ3MiA4Ny4zODA1IC0zNDAuNTUyIDkxLjk2OTkgLTM0Ny4wNThDOTMuMjIxNSAtMzQ4LjQxNCA5NC4xNDcyIC0zNDkuMjM1IDk0LjY4MTggLTM0OS41MjJDOTUuMTkwMyAtMzQ5Ljc5NiA5Ni4xMDI5IC0zNTAuNjA0IDk3LjM5MzcgLTM1MS45OTlDMTA5LjY3NSAtMzU3LjkwNiAxMjIuNDE0IC0zNTYuNjkzIDEzNS42MzQgLTM0OC4zMzZDMTQ2Ljk1MSAtMzQyLjMyNSAxNTIuMDg4IC0zMzMuMzE2IDE1MS4xMzYgLTMyMS4zNkwxNDguMjI5IC0zMTEuNzM4QzE0NC42NjkgLTI5Ny4wNyAxMzUuNTY5IC0yOTEuNTAzIDEyMC45MTQgLTI5NS4wNjJDMTE5LjA1IC0yOTQuNzIzIDExNS43MzggLTI5NS4yOTcgMTEwLjkxNCAtMjk2Ljc0NCIgZmlsbD0iI0Y1RjVGNyIvPgo8cGF0aCBkPSJNMjQyLjc2NyAyMTUuNTE4QzI0NS4wODggMjEzLjU4OCAyNDcuMjc4IDIxMi4xMDIgMjQ5LjM3NyAyMTAuOTY4QzI1MS40NSAyMDkuODU5IDI1My41MzYgMjA4Ljc1MSAyNTUuNjIyIDIwNy42MDRDMjc0LjIyNyAxOTIuMjg0IDI5MC41NzcgMTc3LjE2IDMwNC43MjMgMTYyLjE5M0MzMTUuNjg4IDE0OC45NDYgMzI2LjYxNCAxMzUuODU2IDMzNy40ODggMTIyLjk4N0MzNDguMzYxIDExMC4xMTkgMzU4Ljg4MyA5Ni45Mzc1IDM2OS4wNjYgODMuNDE3MUMzNzYuNDQ1IDczLjQzMDEgMzg0LjU4MSA2My44NjAyIDM5My40NDcgNTQuNzQ2NkM0MDIuMyA0NS42NDYxIDQxMC44MjYgMzYuMjMyNyA0MTkuMDAxIDI2LjQ4MDNDNDIxLjgwNCAyMi45NzMxIDQyNC4yMjkgMjAuMDAwNCA0MjYuMjg5IDE3LjU0OTNDNDI4LjMyMyAxNS4xMjQzIDQzMC41MDEgMTIuOTMzOCA0MzIuODM1IDExLjAxNzNDNDM0LjkwOCA5LjkwOTA2IDQzNi43NDYgOS41ODMwMSA0MzguMzYzIDEwLjA2NTRDNDM5Ljk1MyAxMC41NDc5IDQ0MS43OTIgMTAuMjQ4IDQ0My45MDQgOS4xMTM3MUM0NDMuMTg3IDExLjUxMjcgNDQyLjgyMiAxMy4zOTAzIDQ0Mi44ODcgMTQuNjk0QzQ0Mi45MjYgMTYuMDIzOSA0NDIuMjg3IDE3LjM2NjggNDQxLjAwOSAxOC43MjI3QzQyNC42NDcgNDYuOTYzIDQwNy42ODQgNzIuODE3MyAzOTAuMTIyIDk2LjMxMTdDMzc2LjY0MSAxMTQuOTU2IDM2My4xNDcgMTMyLjkwOSAzNDkuNjM5IDE1MC4yMjRDMzM2LjEwNiAxNjcuNTI1IDMyMi4yMiAxODUuMzYxIDMwNy45NDQgMjAzLjc1OEMzMDEuNTI5IDIxMC41MzcgMjk1LjM4OCAyMTcuMiAyODkuNDk1IDIyMy43MTlDMjgzLjU4OSAyMzAuMjI1IDI3Ny40MzUgMjM2LjkgMjcxLjAyIDI0My42NjdDMjU4LjkyMSAyNTQuODggMjQ0LjQ4OCAyNTkuMjM0IDIyNy43MzQgMjU2Ljc5NkMxOTYuODYgMjUxLjg4MSAxNzYuMDI1IDIzNi44NzQgMTY1LjIxNyAyMTEuNzg5QzE1NC42OTUgMTg4LjU2OCAxNDkuNTMyIDE2Ni41MDggMTQ5LjcwMiAxNDUuNjA4QzE0Ny45NDIgMTEzLjY3OCAxNDguMzA3IDgxLjk0MzggMTUwLjgxIDUwLjQxOEMxNTMuMyAxOC44NzkyIDE1OC4zMiAtMTIuMzIwNyAxNjUuODY5IC00My4yMDc3QzE4MC4xNzIgLTEwNS4yMDMgMTk4LjU2OCAtMTY2LjQwMyAyMjEuMTExIC0yMjYuODA4QzIzMi4wODkgLTI1Ny41MjYgMjQ0LjQyMyAtMjg3LjYxOCAyNTguMSAtMzE3LjA5NkMyNzEuNzc2IC0zNDYuNTc1IDI4Ni4zNzkgLTM3NS41MDcgMzAxLjk3MiAtNDA0LjAwOEMzMTIuOTUgLTQyNS45OSAzMjQuNjMyIC00NDcuMzQ2IDMzNi45NzkgLTQ2OC4wNjNDMzQ5LjMxMyAtNDg4Ljc1NCAzNjIuNDk1IC01MDkuMjI0IDM3Ni40MzIgLTUyOS40NTlDNDAzLjg2NCAtNTY4LjI5OSA0MzQuMTkgLTYwMy42NzEgNDY3LjM5OCAtNjM1LjU3NUM0NzUuNjM4IC02NDIuNjgxIDQ4My45OTUgLTY0OS4zMTcgNDkyLjQwNSAtNjU1LjUxQzUwMC44MjggLTY2MS42NzcgNTEwLjM5NyAtNjY2LjY1OCA1MjEuMTU0IC02NzAuMzk5QzU0NS4yNzQgLTY3Ny45NjEgNTY3LjcxMiAtNjc2Ljg3OSA1ODguMzkxIC02NjcuMTY2QzYwNC43MjcgLTY2MC40NzggNjEzLjY3MSAtNjQ5LjUxMyA2MTUuMjEgLTYzNC4yMTlDNjE3LjU5NiAtNjI0Ljc1NCA2MTguMTk1IC02MTMuNjcxIDYxNi45ODMgLTYwMC45NTlDNjEwLjMyIC01NTguNDgxIDU5Ny44NTYgLTUxNS41MzQgNTc5LjU1MSAtNDcyLjE5NkM1NjUuNDMxIC00MzkuODIzIDU0OS4wODEgLTQwOC43NTMgNTMwLjUyOCAtMzc5LjAwMUM1MTEuOTM2IC0zNDkuMjYxIDQ5Mi42MTQgLTMxOS45NTIgNDcyLjYgLTI5MS4wOTlDNDY1LjQ1NiAtMjgxLjkyIDQ1Ny45NDYgLTI3MS41MDMgNDUwLjEyMyAtMjU5LjkxMkM0MzMuNTc4IC0yMzYuOTc4IDQxNS42MzcgLTIxNS4xMjYgMzk2LjI4OSAtMTk0LjM1N0MzNzYuOTAyIC0xNzMuNTYxIDM1NS44NDUgLTE1NC4zOTYgMzMzLjA2OCAtMTM2LjgyQzMyMC4zODIgLTEyNi42OSAzMTIuNTMzIC0xMTUuMDg2IDMwOS40ODIgLTEwMi4wNDhDMzA0LjE4OSAtODQuNDQ2OCAyOTguOTc0IC02Ny4wNDExIDI5My43OTggLTQ5Ljg0NEMyODguNjIxIC0zMi42NDY5IDI4My43NzEgLTE1LjExMDggMjc5LjI4NiAyLjcxMjFDMjc1LjI3MSAxOC45NzA1IDI3MS4zMDcgMzQuOTgxIDI2Ny40MjIgNTAuODM1MkMyNjMuNTIzIDY2LjY2MzMgMjU5Ljk2NCA4Mi44NDM0IDI1Ni43NyA5OS4zMzY1QzI1My41NDkgMTE1LjgwMyAyNTAuNjgxIDEzMi42MjIgMjQ4LjE1MiAxNDkuNzQxQzI0NS42MDkgMTY2Ljg2IDI0My4xMzIgMTgzLjc5NyAyNDAuNzQ2IDIwMC40OThDMjQxLjA0NiAyMDIuMzM3IDI0MS4zMDcgMjA0LjM5NiAyNDEuNTE1IDIwNi42MTNDMjQxLjY5OCAyMDguODY4IDI0Mi4xMjggMjExLjg0MSAyNDIuNzggMjE1LjUxOE01NjQuMzIyIC02MjIuMDgxQzU2MS43MjggLTYxOS4zNDMgNTU4LjExNiAtNjE2LjA4MyA1NTMuNDg4IC02MTIuMjM3QzU0Mi4yMzYgLTU5OC4xNjkgNTMwLjk1OCAtNTgzLjkwNiA1MTkuNjI4IC01NjkuNDU5QzUwOC4yNTkgLTU1NC45ODcgNDk4LjA1IC01MzkuOTQxIDQ4OS4wMTUgLTUyNC4zNzRDNDU5LjIzNiAtNDc0Ljg2OSA0MzIuNzY5IC00MjMuOTU2IDQwOS42MDEgLTM3MS42MDhDMzg2LjQxOSAtMzE5LjI0OCAzNjUuMTkzIC0yNjUuNDQgMzQ1LjkzNiAtMjEwLjE3MkMzNDUuNzAyIC0yMDkuMzc3IDM0NS43MDIgLTIwOC43MTIgMzQ2LjAxNSAtMjA4LjE5QzM0Ni4yNjIgLTIwNy42NTYgMzQ2LjE4NCAtMjA2LjU4NyAzNDUuNzE1IC0yMDUuMDA5QzM0OS4zNzggLTIwNS42MjIgMzUxLjM2IC0yMDYuMzM5IDM1MS42MDggLTIwNy4xNDdDMzU1LjQ2NyAtMjExLjIxNSAzNTkuNTA5IC0yMTUuMjMxIDM2My43NDYgLTIxOS4xOTRDMzY3Ljk5NyAtMjIzLjE0NSAzNzEuNzY1IC0yMjcuNjgyIDM3NS4wNzYgLTIzMi44MTlDNDAyLjg4NiAtMjY3LjE2MSA0MjguNzE0IC0zMDIuMTQyIDQ1Mi41MzUgLTMzNy43MzZDNDc2LjM2OCAtMzczLjMwMyA0OTguNTMzIC00MTAuNjk2IDUxOS4wNjggLTQ0OS44ODhDNTQzLjg1MyAtNDk3LjM3MiA1NTkuNTc3IC01NDYuNzM0IDU2Ni4yNTIgLTU5Ny45MzRDNTY2LjY0MyAtNjAyLjE4NSA1NjYuOTE3IC02MDYuMDE4IDU2Ny4xIC02MDkuNDZDNTY3LjI0MyAtNjEyLjkwMiA1NjYuMzE3IC02MTcuMSA1NjQuMzM2IC02MjIuMDgxIiBmaWxsPSIjRjVGNUY3Ii8+CjxwYXRoIGQ9Ik02OTYuNTE1IDE4OS4wNjRDNzA0LjYzOCAxODQuMzk2IDcxMi42ODIgMTc5LjYxMSA3MjAuNjg4IDE3NC43MzVWMTM0LjA1N0M2OTcuODE5IDE0OC41MDMgNjczLjgwMyAxNTkuNjM3IDY0OC42MDEgMTY3LjQyMUM2MjIuMDgyIDE3NS42MzUgNTk0LjU1OCAxODAuNjY3IDU2Ni4wMTggMTgyLjU1OEM1NTAuOTIgMTgzLjI2MiA1NDEuMjk4IDE4MS44OTMgNTM3LjEgMTc4LjQzOEM1MzIuODc2IDE3NS4wMDkgNTI5LjA5NSAxNjUuNzUyIDUyNS43NTcgMTUwLjc0NUw1MjMuOTU4IDEzMC41NDlDNTIzLjMzMiAxMTguMTI0IDUyNC43NjYgMTA2Ljc1NSA1MjguMzM5IDk2LjQyODlDNTMxLjg1OSA4Ni4xNTUgNTM2LjEyMiA3NS42MjAzIDU0MS4xMTYgNjQuODc3QzU0NS42MTQgNjQuNDg1OSA1NDkuNTY0IDY0LjM2ODUgNTUzLjAzMiA2NC41MzhDNTU2LjQ3NSA2NC42OTQ1IDU2MC40MzggNjQuNTc3MSA1NjQuOTQ5IDY0LjE3MjlDNTg1Ljg3NSA2NC4zNjg1IDYwNy42MzYgNjEuNzQ3OSA2MzAuMjY5IDU2LjI4NDlDNjUyLjA4MiA1MC42MjY1IDY3MC40IDQxLjI3ODIgNjg1LjI3NyAyOC4yNTMzQzY5NC45MzggMTkuNzc4NiA3MDQuMDI1IDEwLjM3ODMgNzEyLjU2NSAwLjA5MTMwODZINjM5LjUyNkM2MjAuMjU2IDE2Ljk4ODUgNTk2Ljk0NCAyNy40ODQxIDU2OS41MzkgMzEuNDYwN0M1NjcuNjYxIDMxLjc3MzYgNTY2LjM1NyAzMS44MTI3IDU2NS41NzUgMzEuNTY1QzU2NC43NTQgMzEuMzMwMyA1NjMuODI4IDMxLjUxMjggNTYyLjgxMSAzMi4wNDc0QzU2MS45OSAzMS44MTI3IDU2MS42NTEgMzEuNDk5OCA1NjEuNzgxIDMxLjA4MjZDNTYxLjg5OCAzMC42OTE1IDU2MS41NDYgMzAuMzY1NSA1NjAuNzUxIDMwLjEzMDhDNTYwLjk5OSAyOS4zMzU1IDU2MC45MDcgMjguODY2MSA1NjAuNTE2IDI4Ljc2MThDNTYwLjA5OSAyOC42MTg0IDU2MC4wMzQgMjguMTYyIDU2MC4yOTUgMjcuMzUzN0M1NjUuMzc5IDE4LjE3NDkgNTcwLjc3NyA5LjEwMDU1IDU3Ni40MzYgMC4wOTEzMDg2SDQzMC4xNzZDNDI0LjIwNCAxMi42NzMgNDE5LjA1NCAyNS45NDU2IDQxNC44MyAzOS45ODc1QzQwNi40NzMgNjEuOTU2NSA0MDQuMjgyIDgyLjI2OTcgNDA4LjI4NSAxMDAuOTY2QzQxMi4wMTQgMTIwLjQ1OCA0MTguODMzIDEzOC40NjMgNDI4LjcyOCAxNTQuOTgyQzQzOC42MTEgMTcxLjUyOCA0NTIuNDU4IDE4NS4wODcgNDcwLjI1NCAxOTUuN0M0OTAuNzM3IDIwOC44ODEgNTEyLjE0NSAyMTcuNzIxIDUzNC40MDEgMjIyLjI0NUM1NTYuNjQ0IDIyNi43NTcgNTc5Ljg2NSAyMjYuNTA5IDYwNC4xMTUgMjIxLjU2N0M2MDkuNjQzIDIyMC42MTYgNjE1LjI2MyAyMTkuNDY4IDYyMC45MjEgMjE4LjA5OUM2MjYuNTY3IDIxNi43NTYgNjMyLjI3NyAyMTUuMTkyIDYzOC4wNTMgMjEzLjQxOUM2NTkuMDU3IDIwNy41MjUgNjc4LjU2MiAxOTkuMzkgNjk2LjU0MSAxODkuMDc3IiBmaWxsPSIjRjVGNUY3Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMjgyMF82OTk5MSI+CjxyZWN0IHdpZHRoPSI3MjEiIGhlaWdodD0iMjU2Ljg0OCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K");background-repeat:no-repeat;background-size:contain}@media (min-width: 48em){.duet-page-heading .background .background-mask{top:-40px;width:502px;height:577px}}.duet-page-heading .background .brand-shape{position:absolute;top:-157px;right:-20px;width:185px;height:185px;background:rgb(0, 119, 179);border-radius:20%;mix-blend-mode:normal;opacity:0.2;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shape{top:-280px;right:-40px;width:325px;height:325px}}.duet-page-heading .background .brand-shape.second-shape{top:-182px;right:100px;width:207px;height:207px;background:rgb(11, 114, 136);opacity:0.1}@media (min-width: 48em){.duet-page-heading .background .brand-shape.second-shape{top:-325px;right:200px;width:365px;height:365px}}.duet-page-heading .background .brand-shaped-icon{position:absolute;top:20px;right:16px;display:flex;align-items:center;justify-content:center;width:85px;width:60px;height:85px;height:60px;background:rgba(0, 119, 179, 0.75);border-radius:25%;mix-blend-mode:normal;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon{right:36px;width:93px;height:93px}}.duet-page-heading .background .brand-shaped-icon duet-icon{width:60px;height:60px;transform:rotate(-7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon duet-icon{width:75px;height:75px}}.duet-page-heading.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(8, 42, 77)}.duet-page-heading.duet-theme-turva .brand-shaped-icon{background:rgba(198, 12, 48, 0.9);-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-repeat:no-repeat;mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");mask-repeat:no-repeat}.duet-page-heading.duet-theme-turva .brand-shaped-icon duet-icon{position:relative;top:-3px}.duet-page-heading .progress-indicator{display:flex;flex-direction:row;gap:4px}.duet-page-heading .progress-step{width:100%;height:4px;background-color:rgb(181, 198, 208);border-radius:2px}.duet-page-heading .progress-step.active{background-color:rgb(0, 119, 179)}';var DuetPageHeadingStyle0=duetPageHeadingCss;var DuetPageHeading=function(){function M(M){registerInstance(this,M);this.theme="";this.icon="";this.layout="narrow";this.progressCurrentStep=undefined;this.progressTotalSteps=undefined}M.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};M.prototype.progressIndicator=function(){var M=this;return h("div",{class:"progress-indicator"},Array.from({length:Math.ceil(this.progressTotalSteps)},(function(N,g){var j=g+1;return h("div",{class:{"progress-step":true,active:j<=M.progressCurrentStep}})})))};M.prototype.render=function(){var M;var N=this.layout==="narrow"?"narrow":this.layout==="fluid"?"fluid":"auto";return h("div",{key:"63a73bb27ff696ea0968ad70a1634a31605c28ae",class:(M={"duet-page-heading":true,"duet-theme-turva":this.theme==="turva","has-icon":!!this.icon},M[N]=true,M)},h("div",{key:"3ac344016e732507c936589ac9bc5242160605ab",class:"background"},this.theme==="turva"&&h("div",{key:"43d0f3158fc44555bcaad471d4db7a0fd9c03cd8",class:"background-mask"}),this.theme!=="turva"&&h("div",{key:"40cc4cff7adf721f648de49afcd91e1de4f26fe5",class:"brand-shape"}),this.theme!=="turva"&&h("div",{key:"0dec9ac76c10d41c3f19b04d3561458f31128cb0",class:"brand-shape second-shape"}),this.icon&&h("div",{key:"63bf96082cab7113ec087005c35579df2fc2b264",class:"brand-shaped-icon"},h("duet-icon",{key:"cb260b351576cfede4e6be93105db63a70098354",background:"none",name:this.icon,margin:"none",size:"auto",responsive:false}))),h("div",{key:"b48cdf1b27c186d25e8a6c3f794a915f4c141297",class:"heading"},h("slot",{key:"bc536f6c4382075cf663bd3a17d6042ff599b607",name:"heading"}),this.progressCurrentStep&&this.progressTotalSteps&&h("div",{key:"624c56562aa77d3964b52563b188462d922d95b1"},h("duet-spacer",{key:"1b32455fc50f2d860630fd9b3d4465a87121ff5b",size:"large"}),h("div",{key:"2897fd8f1d826e84ea32534ed8437068c86173e8",role:"presentation"},this.progressIndicator()))))};Object.defineProperty(M.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return M}();DuetPageHeading.style=DuetPageHeadingStyle0;export{DuetPageHeading as duet_page_heading};
@@ -1,4 +0,0 @@
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
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{d as debounce}from"./js-utils-9b9e0039.js";import{k as isArrowKey,l as isNumber,d as isArrowLeftKey,b as isArrowUpKey,a as isArrowRightKey,c as isArrowDownKey,m as isMinusKey,n as isPlusKey}from"./keyboard-utils-daf80d44.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-40caac4f.js";import{p as parsePossibleJSON}from"./string-utils-192eb3c8.js";import{b as breakpointTokensUpTo,a as breakpointToToken}from"./token-utils-b9ba8c5e.js";import"./tokens.module-2d02f5ff.js";var shouldDisplayNavigation=function(t,e,i){if(t*2>e/i){return false}return true};var duetPaginationCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-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)}';var DuetPaginationStyle0=duetPaginationCss;var DuetPagination=function(){function t(t){var e=this;registerInstance(this,t);this.duetPageChange=createEvent(this,"duetPageChange",3);this.listId=createID("duet-pagination-list");this.firstRenderDone=false;this.handleMediaQueryChange=function(t){e.matchesCompactBreakpoint=breakpointTokensUpTo.includes(e.compactBreakpoint)?t.matches:!t.matches};this.actionChain=function(t,i){return __awaiter(e,void 0,void 0,(function(){var e;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(!(i!==t))return[3,4];e=Math.ceil(t/this.visibleItems)-1;if(!(e!==this.internalSectionIndex))return[3,4];this.internalSectionIndex=e;return[4,this.setFocus()];case 3:n.sent();n.label=4;case 4:return[2,true]}}))}))};this.emitPageEvent=function(t,i){var n=Number(i||e.current);e.duetPageChange.emit({component:"duet-pagination",from:n*e.take,to:n*e.take+e.take,current:n,take:e.take,type:"page",originalEvent:t})};this.getEnteredNumber=debounce((function(t){e.emitPageEvent(t,e.numbersStore);e.current=Number(e.numbersStore);e.numbersStore="";e.duetPageChange.emit({component:"duet-pagination",from:e.current*e.take,to:e.current*e.take+e.take,current:e.current,take:e.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=getLocaleString(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();inheritGlobalTheme(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":breakpointToToken[this.compactBreakpoint];this.mq=matchMedia(t);this.mq.addEventListener("change",debounce(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);connectLanguageChangeObserver(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})};t.prototype.disconnectedCallback=function(){this.mq.removeEventListener("change",this.handleMediaQueryChange);this.mq=null;this.matchesCompactBreakpoint=false;disconnectLanguageChangeObserver(this)};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.processedPageLinks=parsePossibleJSON(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(isArrowLeftKey(t)||isArrowUpKey(t)){e--}if(isArrowRightKey(t)||isArrowDownKey(t)){e++}if(isArrowKey(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(isNumber(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 h("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},h("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(h("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 n=h("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)},margin:"none"});return h("li",null,n,h("span",{class:"duet-pagination-total-pages","aria-hidden":"true"},"/ ",this.totalPages))};t.prototype.shouldDisplayNavigation=function(){if(this.variation!=="compact"&&!this.matchesCompactBreakpoint){return shouldDisplayNavigation(this.visibleItems,this.total,this.take)}return false};t.prototype.render=function(){var t;var e=this;return h(Host,{key:"32fcbc1ab1d2e72c8e3f681c8b5405362be964e3",onKeyDown:function(t){return e.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},h("nav",{key:"020a385482262cd9ea6bbd8d32e55976a95d7543",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!==""&&h("div",{key:"953681769a2c37b202d257783517eb0a067d58a2","aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":"".concat(this.accessibleLabels.jump_to," ").concat(this.numbersStore),part:"navigation-overlay"},h("duet-badge",{key:"64b7cec76275874d10409a43c2a9268091aa63ee",theme:this.theme},"jump to page : ",this.numbersStore)),h("ol",{key:"2810f47527a6ccfbb2957495acd0c9314586b4b2",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)&&h("li",{key:"fcee9f5f028b340bf8b20cbaeebdea80e9e0c738",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"aa7e10b2c1fa46f2634e15bf1c11a7b317745885",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})),h("li",{key:"c209b2a485ac203090db53813c9bc5b52740692f",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"52fe136a3fd99f42538a87c24672770197ff34fd",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()&&h(Fragment,{key:"03be7831dee21cb070175cf3e50ae89b0eba49b3"},h("li",{key:"81cee7f4767a20b952964f8ce856621caad7b1cb",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"d280492036cb4ae490d70498078e8e649fe94ee2",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},h("div",{key:"e6aa3d3cc594fed23cb4d0146ebdd07c62e1cc25",class:"duet-pagination-page-number"},"1"))),h("li",{key:"dc4cbf113dc745b52d8787bc89429e32b68f53cb",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"dd58996ba1d6c5a32018d173150afdd995fa9b75",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},h("div",{key:"2d354dd1353d1a3445b585cde4659f4aa3a39733",class:"duet-pagination-page-number","aria-hidden":"true"},"…")))),this.shouldDisplayNavigation()&&this.renderPageNumbers()||this.renderSelect(),(this.internalSectionIndex+1)*this.visibleItems<this.totalPages&&this.shouldDisplayNavigation()&&h(Fragment,{key:"7b20cc74d44f1b9cf952ee69fcac743ba66eda24"},(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&h("li",{key:"fd54712037bfcd681f00929685daeee86cf4ed69",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"d1df047e013903691bbd00c4fd495ab408f73a58",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},h("div",{key:"a0a24b8be4d7b24fa7c15bd35c5f29b74ad0083e",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),h("li",{key:"e996b1229282d32e9f0fb4c0eeb1fbab748e0c8d",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"c8dc915042f3bde87bac5f0fbdfe6ba5cf6f42fd",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},h("div",{key:"01808887dfd64e716f50b336d7347e2b2b3bd40f",class:"duet-pagination-page-number"},this.totalPages)))),h("li",{key:"417732a79f9d070cd3ccd0dfc79bbc300c30e60c",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"0fdb57959080ef0126266df23717517b6f5be405",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)&&h("li",{key:"c8d1ff36a756d28252a339e9972088d7e451f54b",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"7e6029710b0c761b62a21f7aabab346cfe318957",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 getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"],pageLinks:["refresh"]}},enumerable:false,configurable:true});return t}();DuetPagination.style=DuetPaginationStyle0;var duetRangeStepperCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-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}";var DuetRangeStepperStyle0=duetRangeStepperCss;var DuetRangeStepper=function(){function t(t){var e=this;registerInstance(this,t);this.duetRangeStepUpdate=createEvent(this,"duetRangeStepUpdate",7);this.leftBn=createID("duetRangeStepper-left");this.rightBn=createID("duetRangeStepper-right");this.handleClick=function(t,i){t.preventDefault();e.stepIndex+=i;e.clampStepIndex();e.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=getLocaleString(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(){inheritGlobalTheme(this);this.clampStepIndex()};t.prototype.componentDidLoad=function(){this.watchStepIndexStateHandler(this.stepIndex)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(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(isArrowLeftKey(t)||isArrowUpKey(t)||isMinusKey(t)){e--;i=-1;this.leftBnRef.setFocus()}if(isArrowRightKey(t)||isArrowDownKey(t)||isPlusKey(t)){e++;i=1}if(isArrowKey(t)){if(e>0&&e*this.stepSize<=this.total){this.handleClick(t,i)}}return[2]}))}))};t.prototype.render=function(){var t=this;return h("div",{key:"39ffc4c324f8b610879fb7ed01aaaf4263b970c3",class:{"duet-range-stepper":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:function(e){return t.onKeyboardDown(e)},"aria-controls":this.ariaControls},h("span",{key:"2ea4499bc567d644530b625eec22d91b0bf5226d",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),h("duet-action-button",{key:"e0613ae54e7134000a06bd0329af05c42d8fc521",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:""}),h("duet-action-button",{key:"fbd6d9a4acda0fa78642b8af959dd361dd280f15",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 getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}},enumerable:false,configurable:true});return t}();DuetRangeStepper.style=DuetRangeStepperStyle0;export{DuetPagination as duet_pagination,DuetRangeStepper as duet_range_stepper};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,o,n,i){function a(e){return e instanceof n?e:new n((function(o){o(e)}))}return new(n||(n=Promise))((function(n,t){function r(e){try{C(i.next(e))}catch(e){t(e)}}function s(e){try{C(i["throw"](e))}catch(e){t(e)}}function C(e){e.done?n(e.value):a(e.value).then(r,s)}C((i=i.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var n={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},i,a,t,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(o){return C([e,o])}}function C(s){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(n=0)),n)try{if(i=1,a&&(t=s[0]&2?a["return"]:s[0]?a["throw"]||((t=a["return"])&&t.call(a),0):a.next)&&!(t=t.call(a,s[1])).done)return t;if(a=0,t)s=[s[0]&2,t.value];switch(s[0]){case 0:case 1:t=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(t=n.trys,t=t.length>0&&t[t.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!t||s[1]>t[0]&&s[1]<t[3])){n.label=s[1];break}if(s[0]===6&&n.label<t[1]){n.label=t[1];t=s;break}if(t&&n.label<t[2]){n.label=t[2];n.ops.push(s);break}if(t[2])n.ops.pop();n.trys.pop();continue}s=o.call(e,n)}catch(e){s=[6,e];a=0}finally{i=t=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,o,n){if(n||arguments.length===2)for(var i=0,a=o.length,t;i<a;i++){if(t||!(i in o)){if(!t)t=Array.prototype.slice.call(o,0,i);t[i]=o[i]}}return e.concat(t||Array.prototype.slice.call(o))};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-daf80d44.js";import{a as getLanguage,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-40caac4f.js";import{c as checkNamedSlotElement}from"./slot-utils-4096ff0d.js";import"./string-utils-192eb3c8.js";var countries={AF:{isoCode:"AF",en:"Afghanistan",fi:"Afganistan",sv:"Afghanistan",telephoneCountryCode:"93"},AL:{isoCode:"AL",en:"Albania",fi:"Albania",sv:"Albanien",telephoneCountryCode:"355"},DZ:{isoCode:"DZ",en:"Algeria",fi:"Algeria",sv:"Algeriet",telephoneCountryCode:"213"},AS:{isoCode:"AS",en:"American Samoa",fi:"Amerikan Samoa",sv:"Amerikanska Samoa",telephoneCountryCode:"1"},AD:{isoCode:"AD",en:"Andorra",fi:"Andorra",sv:"Andorra",telephoneCountryCode:"376"},AO:{isoCode:"AO",en:"Angola",fi:"Angola",sv:"Angola",telephoneCountryCode:"244"},AI:{isoCode:"AI",en:"Anguilla",fi:"Anguilla",sv:"Anguilla",telephoneCountryCode:"1"},AQ:{isoCode:"AQ",en:"Antarctica",fi:"Antarktis",sv:"Antarktis"},AG:{isoCode:"AG",en:"Antigua and Barbuda",fi:"Antigua ja Barbuda",sv:"Antigua och Barbuda",telephoneCountryCode:"1"},AR:{isoCode:"AR",en:"Argentina",fi:"Argentiina",sv:"Argentina",telephoneCountryCode:"54"},AM:{isoCode:"AM",en:"Armenia",fi:"Armenia",sv:"Armenien",telephoneCountryCode:"374"},AW:{isoCode:"AW",en:"Aruba",fi:"Aruba",sv:"Aruba",telephoneCountryCode:"297"},AU:{isoCode:"AU",en:"Australia",fi:"Australia",sv:"Australien",telephoneCountryCode:"61"},AT:{isoCode:"AT",en:"Austria",fi:"Itävalta",sv:"Österrike",telephoneCountryCode:"43"},AZ:{isoCode:"AZ",en:"Azerbaijan",fi:"Azerbaidžan",sv:"Azerbajdzjan",telephoneCountryCode:"994"},BS:{isoCode:"BS",en:"Bahamas",fi:"Bahama",sv:"Bahamas",telephoneCountryCode:"1"},BH:{isoCode:"BH",en:"Bahrain",fi:"Bahrain",sv:"Bahrain",telephoneCountryCode:"973"},BD:{isoCode:"BD",en:"Bangladesh",fi:"Bangladesh",sv:"Bangladesh",telephoneCountryCode:"880"},BB:{isoCode:"BB",en:"Barbados",fi:"Barbados",sv:"Barbados",telephoneCountryCode:"1"},BY:{isoCode:"BY",en:"Belarus",fi:"Valko-Venäjä",sv:"Belarus",telephoneCountryCode:"375"},BE:{isoCode:"BE",en:"Belgium",fi:"Belgia",sv:"Belgien",telephoneCountryCode:"32"},BZ:{isoCode:"BZ",en:"Belize",fi:"Belize",sv:"Belize",telephoneCountryCode:"501"},BJ:{isoCode:"BJ",en:"Benin",fi:"Benin",sv:"Benin",telephoneCountryCode:"229"},BM:{isoCode:"BM",en:"Bermuda",fi:"Bermuda",sv:"Bermuda",telephoneCountryCode:"1"},BT:{isoCode:"BT",en:"Bhutan",fi:"Bhutan",sv:"Bhutan",telephoneCountryCode:"975"},BO:{isoCode:"BO",en:"Bolivia",fi:"Bolivia",sv:"Bolivia",telephoneCountryCode:"591"},BA:{isoCode:"BA",en:"Bosnia and Herzegovina",fi:"Bosnia ja Hertsegovina",sv:"Bosnien och Hercegovina",telephoneCountryCode:"387"},BW:{isoCode:"BW",en:"Botswana",fi:"Botswana",sv:"Botswana",telephoneCountryCode:"267"},BV:{isoCode:"BV",en:"Bouvet Island",fi:"Bouvet’nsaari",sv:"Bouvetön"},BR:{isoCode:"BR",en:"Brazil",fi:"Brasilia",sv:"Brasilien",telephoneCountryCode:"55"},IO:{isoCode:"IO",en:"British Indian Ocean Territory",fi:"Brittiläinen Intian valtameren alue",sv:"Brittiska territoriet i Indiska Oceanen",telephoneCountryCode:"246"},BN:{isoCode:"BN",en:"Brunei Darussalam",fi:"Brunei",sv:"Brunei",telephoneCountryCode:"673"},BG:{isoCode:"BG",en:"Bulgaria",fi:"Bulgaria",sv:"Bulgarien",telephoneCountryCode:"359"},BF:{isoCode:"BF",en:"Burkina Faso",fi:"Burkina Faso",sv:"Burkina Faso",telephoneCountryCode:"226"},BI:{isoCode:"BI",en:"Burundi",fi:"Burundi",sv:"Burundi",telephoneCountryCode:"257"},KH:{isoCode:"KH",en:"Cambodia",fi:"Kambodža",sv:"Kambodja",telephoneCountryCode:"855"},CM:{isoCode:"CM",en:"Cameroon",fi:"Kamerun",sv:"Kamerun",telephoneCountryCode:"237"},CA:{isoCode:"CA",en:"Canada",fi:"Kanada",sv:"Kanada",telephoneCountryCode:"1"},CV:{isoCode:"CV",en:"Cape Verde",fi:"Kap Verde",sv:"Kap Verde",telephoneCountryCode:"238"},KY:{isoCode:"KY",en:"Cayman Islands",fi:"Caymansaaret",sv:"Caymanöarna",telephoneCountryCode:"1"},CF:{isoCode:"CF",en:"Central African Republic",fi:"Keski-Afrikan tasavalta",sv:"Centralafrikanska republiken",telephoneCountryCode:"236"},TD:{isoCode:"TD",en:"Chad",fi:"Tšad",sv:"Tchad",telephoneCountryCode:"235"},CL:{isoCode:"CL",en:"Chile",fi:"Chile",sv:"Chile",telephoneCountryCode:"56"},CN:{isoCode:"CN",en:"People's Republic of China",fi:"Kiina",sv:"Kina",telephoneCountryCode:"86"},CX:{isoCode:"CX",en:"Christmas Island",fi:"Joulusaari",sv:"Julön",telephoneCountryCode:"61"},CC:{isoCode:"CC",en:"Cocos (Keeling) Islands",fi:"Kookossaaret",sv:"Kokosöarna",telephoneCountryCode:"61"},CO:{isoCode:"CO",en:"Colombia",fi:"Kolumbia",sv:"Colombia",telephoneCountryCode:"57"},KM:{isoCode:"KM",en:"Comoros",fi:"Komorit",sv:"Komorerna",telephoneCountryCode:"269"},CG:{isoCode:"CG",en:"Republic of the Congo",fi:"Kongon tasavalta",sv:"Kongo-Brazzaville",telephoneCountryCode:"242"},CD:{isoCode:"CD",en:"Democratic Republic of the Congo",fi:"Kongon demokraattinen tasavalta",sv:"Demokratiska republiken Kongo",telephoneCountryCode:"243"},CK:{isoCode:"CK",en:"Cook Islands",fi:"Cookinsaaret",sv:"Cooköarna",telephoneCountryCode:"682"},CR:{isoCode:"CR",en:"Costa Rica",fi:"Costa Rica",sv:"Costa Rica",telephoneCountryCode:"506"},CI:{isoCode:"CI",en:"Cote D'Ivoire",fi:"Norsunluurannikko",sv:"Elfenbenskusten",telephoneCountryCode:"225"},HR:{isoCode:"HR",en:"Croatia",fi:"Kroatia",sv:"Kroatien",telephoneCountryCode:"385"},CU:{isoCode:"CU",en:"Cuba",fi:"Kuuba",sv:"Kuba",telephoneCountryCode:"53"},CY:{isoCode:"CY",en:"Cyprus",fi:"Kypros",sv:"Cypern",telephoneCountryCode:"357"},CZ:{isoCode:"CZ",en:"Czech Republic",fi:"Tšekki",sv:"Tjeckien",telephoneCountryCode:"420"},DK:{isoCode:"DK",en:"Denmark",fi:"Tanska",sv:"Danmark",telephoneCountryCode:"45"},DJ:{isoCode:"DJ",en:"Djibouti",fi:"Djibouti",sv:"Djibouti",telephoneCountryCode:"253"},DM:{isoCode:"DM",en:"Dominica",fi:"Dominica",sv:"Dominica",telephoneCountryCode:"1"},DO:{isoCode:"DO",en:"Dominican Republic",fi:"Dominikaaninen tasavalta",sv:"Dominikanska republiken",telephoneCountryCode:"1"},EC:{isoCode:"EC",en:"Ecuador",fi:"Ecuador",sv:"Ecuador",telephoneCountryCode:"593"},EG:{isoCode:"EG",en:"Egypt",fi:"Egypti",sv:"Egypten",telephoneCountryCode:"20"},SV:{isoCode:"SV",en:"El Salvador",fi:"El Salvador",sv:"El Salvador",telephoneCountryCode:"503"},GQ:{isoCode:"GQ",en:"Equatorial Guinea",fi:"Päiväntasaajan Guinea",sv:"Ekvatorialguinea",telephoneCountryCode:"240"},ER:{isoCode:"ER",en:"Eritrea",fi:"Eritrea",sv:"Eritrea",telephoneCountryCode:"291"},EE:{isoCode:"EE",en:"Estonia",fi:"Viro",sv:"Estland",telephoneCountryCode:"372"},ET:{isoCode:"ET",en:"Ethiopia",fi:"Etiopia",sv:"Etiopien",telephoneCountryCode:"251"},FK:{isoCode:"FK",en:"Falkland Islands (Malvinas)",fi:"Falklandinsaaret",sv:"Falklandsöarna",telephoneCountryCode:"500"},FO:{isoCode:"FO",en:"Faroe Islands",fi:"Färsaaret",sv:"Färöarna",telephoneCountryCode:"298"},FJ:{isoCode:"FJ",en:"Fiji",fi:"Fidži",sv:"Fiji",telephoneCountryCode:"679"},FI:{isoCode:"FI",en:"Finland",fi:"Suomi",sv:"Finland",telephoneCountryCode:"358"},FR:{isoCode:"FR",en:"France",fi:"Ranska",sv:"Frankrike",telephoneCountryCode:"33"},GF:{isoCode:"GF",en:"French Guiana",fi:"Ranskan Guayana",sv:"Franska Guyana",telephoneCountryCode:"594"},PF:{isoCode:"PF",en:"French Polynesia",fi:"Ranskan Polynesia",sv:"Franska Polynesien",telephoneCountryCode:"689"},TF:{isoCode:"TF",en:"French Southern Territories",fi:"Ranskan eteläiset alueet",sv:"Franska södra territorierna"},GA:{isoCode:"GA",en:"Gabon",fi:"Gabon",sv:"Gabon",telephoneCountryCode:"241"},GM:{isoCode:"GM",en:"Republic of The Gambia",fi:"Gambia",sv:"Gambia",telephoneCountryCode:"220"},GE:{isoCode:"GE",en:"Georgia",fi:"Georgia",sv:"Georgien",telephoneCountryCode:"995"},DE:{isoCode:"DE",en:"Germany",fi:"Saksa",sv:"Tyskland",telephoneCountryCode:"49"},GH:{isoCode:"GH",en:"Ghana",fi:"Ghana",sv:"Ghana",telephoneCountryCode:"233"},GI:{isoCode:"GI",en:"Gibraltar",fi:"Gibraltar",sv:"Gibraltar",telephoneCountryCode:"350"},GR:{isoCode:"GR",en:"Greece",fi:"Kreikka",sv:"Grekland",telephoneCountryCode:"30"},GL:{isoCode:"GL",en:"Greenland",fi:"Grönlanti",sv:"Grönland",telephoneCountryCode:"299"},GD:{isoCode:"GD",en:"Grenada",fi:"Grenada",sv:"Grenada",telephoneCountryCode:"1"},GP:{isoCode:"GP",en:"Guadeloupe",fi:"Guadeloupe",sv:"Guadeloupe",telephoneCountryCode:"590"},GU:{isoCode:"GU",en:"Guam",fi:"Guam",sv:"Guam",telephoneCountryCode:"1"},GT:{isoCode:"GT",en:"Guatemala",fi:"Guatemala",sv:"Guatemala",telephoneCountryCode:"502"},GN:{isoCode:"GN",en:"Guinea",fi:"Guinea",sv:"Guinea",telephoneCountryCode:"224"},GW:{isoCode:"GW",en:"Guinea-Bissau",fi:"Guinea-Bissau",sv:"Guinea Bissau",telephoneCountryCode:"245"},GY:{isoCode:"GY",en:"Guyana",fi:"Guyana",sv:"Guyana",telephoneCountryCode:"592"},HT:{isoCode:"HT",en:"Haiti",fi:"Haiti",sv:"Haiti",telephoneCountryCode:"509"},HM:{isoCode:"HM",en:"Heard Island and McDonald Islands",fi:"Heard ja McDonaldinsaaret",sv:"Heard- och McDonaldsöarna"},VA:{isoCode:"VA",en:"Holy See (Vatican City State)",fi:"Vatikaanivaltio",sv:"Vatikanstaten",telephoneCountryCode:"39"},HN:{isoCode:"HN",en:"Honduras",fi:"Honduras",sv:"Honduras",telephoneCountryCode:"504"},HK:{isoCode:"HK",en:"Hong Kong",fi:"Hongkong",sv:"Hongkong",telephoneCountryCode:"852"},HU:{isoCode:"HU",en:"Hungary",fi:"Unkari",sv:"Ungern",telephoneCountryCode:"36"},IS:{isoCode:"IS",en:"Iceland",fi:"Islanti",sv:"Island",telephoneCountryCode:"354"},IN:{isoCode:"IN",en:"India",fi:"Intia",sv:"Indien",telephoneCountryCode:"91"},ID:{isoCode:"ID",en:"Indonesia",fi:"Indonesia",sv:"Indonesien",telephoneCountryCode:"62"},IR:{isoCode:"IR",en:"Islamic Republic of Iran",fi:"Iran",sv:"Iran",telephoneCountryCode:"98"},IQ:{isoCode:"IQ",en:"Iraq",fi:"Irak",sv:"Irak",telephoneCountryCode:"964"},IE:{isoCode:"IE",en:"Ireland",fi:"Irlanti",sv:"Irland",telephoneCountryCode:"353"},IL:{isoCode:"IL",en:"Israel",fi:"Israel",sv:"Israel",telephoneCountryCode:"972"},IT:{isoCode:"IT",en:"Italy",fi:"Italia",sv:"Italien",telephoneCountryCode:"39"},JM:{isoCode:"JM",en:"Jamaica",fi:"Jamaika",sv:"Jamaica",telephoneCountryCode:"1"},JP:{isoCode:"JP",en:"Japan",fi:"Japani",sv:"Japan",telephoneCountryCode:"81"},JO:{isoCode:"JO",en:"Jordan",fi:"Jordania",sv:"Jordanien",telephoneCountryCode:"962"},KZ:{isoCode:"KZ",en:"Kazakhstan",fi:"Kazakstan",sv:"Kazakstan",telephoneCountryCode:"7"},KE:{isoCode:"KE",en:"Kenya",fi:"Kenia",sv:"Kenya",telephoneCountryCode:"254"},KI:{isoCode:"KI",en:"Kiribati",fi:"Kiribati",sv:"Kiribati",telephoneCountryCode:"686"},KP:{isoCode:"KP",en:"North Korea",fi:"Korean demokraattinen kansantasavalta",sv:"Nordkorea",telephoneCountryCode:"850"},KR:{isoCode:"KR",en:"South Korea",fi:"Korean tasavalta",sv:"Sydkorea",telephoneCountryCode:"82"},KW:{isoCode:"KW",en:"Kuwait",fi:"Kuwait",sv:"Kuwait",telephoneCountryCode:"965"},KG:{isoCode:"KG",en:"Kyrgyzstan",fi:"Kirgisia",sv:"Kirgizistan",telephoneCountryCode:"996"},LA:{isoCode:"LA",en:"Lao People's Democratic Republic",fi:"Laos",sv:"Laos",telephoneCountryCode:"856"},LV:{isoCode:"LV",en:"Latvia",fi:"Latvia",sv:"Lettland",telephoneCountryCode:"371"},LB:{isoCode:"LB",en:"Lebanon",fi:"Libanon",sv:"Libanon",telephoneCountryCode:"961"},LS:{isoCode:"LS",en:"Lesotho",fi:"Lesotho",sv:"Lesotho",telephoneCountryCode:"266"},LR:{isoCode:"LR",en:"Liberia",fi:"Liberia",sv:"Liberia",telephoneCountryCode:"231"},LY:{isoCode:"LY",en:"Libya",fi:"Libya",sv:"Libyen",telephoneCountryCode:"218"},LI:{isoCode:"LI",en:"Liechtenstein",fi:"Liechtenstein",sv:"Liechtenstein",telephoneCountryCode:"423"},LT:{isoCode:"LT",en:"Lithuania",fi:"Liettua",sv:"Litauen",telephoneCountryCode:"370"},LU:{isoCode:"LU",en:"Luxembourg",fi:"Luxemburg",sv:"Luxemburg",telephoneCountryCode:"352"},MO:{isoCode:"MO",en:"Macao",fi:"Macao",sv:"Macau",telephoneCountryCode:"853"},MG:{isoCode:"MG",en:"Madagascar",fi:"Madagaskar",sv:"Madagaskar",telephoneCountryCode:"261"},MW:{isoCode:"MW",en:"Malawi",fi:"Malawi",sv:"Malawi",telephoneCountryCode:"265"},MY:{isoCode:"MY",en:"Malaysia",fi:"Malesia",sv:"Malaysia",telephoneCountryCode:"60"},MV:{isoCode:"MV",en:"Maldives",fi:"Malediivit",sv:"Maldiverna",telephoneCountryCode:"960"},ML:{isoCode:"ML",en:"Mali",fi:"Mali",sv:"Mali",telephoneCountryCode:"223"},MT:{isoCode:"MT",en:"Malta",fi:"Malta",sv:"Malta",telephoneCountryCode:"356"},MH:{isoCode:"MH",en:"Marshall Islands",fi:"Marshallinsaaret",sv:"Marshallöarna",telephoneCountryCode:"692"},MQ:{isoCode:"MQ",en:"Martinique",fi:"Martinique",sv:"Martinique",telephoneCountryCode:"596"},MR:{isoCode:"MR",en:"Mauritania",fi:"Mauritania",sv:"Mauretanien",telephoneCountryCode:"222"},MU:{isoCode:"MU",en:"Mauritius",fi:"Mauritius",sv:"Mauritius",telephoneCountryCode:"230"},YT:{isoCode:"YT",en:"Mayotte",fi:"Mayotte",sv:"Mayotte",telephoneCountryCode:"262"},MX:{isoCode:"MX",en:"Mexico",fi:"Meksiko",sv:"Mexiko",telephoneCountryCode:"52"},FM:{isoCode:"FM",en:"Micronesia, Federated States of",fi:"Mikronesian liittovaltio",sv:"Mikronesiska federationen",telephoneCountryCode:"691"},MD:{isoCode:"MD",en:"Moldova, Republic of",fi:"Moldova",sv:"Moldavien",telephoneCountryCode:"373"},MC:{isoCode:"MC",en:"Monaco",fi:"Monaco",sv:"Monaco",telephoneCountryCode:"377"},MN:{isoCode:"MN",en:"Mongolia",fi:"Mongolia",sv:"Mongoliet",telephoneCountryCode:"976"},MS:{isoCode:"MS",en:"Montserrat",fi:"Montserrat",sv:"Montserrat",telephoneCountryCode:"1"},MA:{isoCode:"MA",en:"Morocco",fi:"Marokko",sv:"Marocko",telephoneCountryCode:"212"},MZ:{isoCode:"MZ",en:"Mozambique",fi:"Mosambik",sv:"Moçambique",telephoneCountryCode:"258"},MM:{isoCode:"MM",en:"Myanmar",fi:"Myanmar",sv:"Burma",telephoneCountryCode:"95"},NA:{isoCode:"NA",en:"Namibia",fi:"Namibia",sv:"Namibia",telephoneCountryCode:"264"},NR:{isoCode:"NR",en:"Nauru",fi:"Nauru",sv:"Nauru",telephoneCountryCode:"674"},NP:{isoCode:"NP",en:"Nepal",fi:"Nepal",sv:"Nepal",telephoneCountryCode:"977"},NL:{isoCode:"NL",en:"Netherlands",fi:"Alankomaat",sv:"Nederländerna",telephoneCountryCode:"31"},NC:{isoCode:"NC",en:"New Caledonia",fi:"Uusi-Kaledonia",sv:"Nya Kaledonien",telephoneCountryCode:"687"},NZ:{isoCode:"NZ",en:"New Zealand",fi:"Uusi-Seelanti",sv:"Nya Zeeland",telephoneCountryCode:"64"},NI:{isoCode:"NI",en:"Nicaragua",fi:"Nicaragua",sv:"Nicaragua",telephoneCountryCode:"505"},NE:{isoCode:"NE",en:"Niger",fi:"Niger",sv:"Niger",telephoneCountryCode:"227"},NG:{isoCode:"NG",en:"Nigeria",fi:"Nigeria",sv:"Nigeria",telephoneCountryCode:"234"},NU:{isoCode:"NU",en:"Niue",fi:"Niue",sv:"Niue",telephoneCountryCode:"683"},NF:{isoCode:"NF",en:"Norfolk Island",fi:"Norfolkinsaari",sv:"Norfolkön",telephoneCountryCode:"672"},MK:{isoCode:"MK",en:"The Republic of North Macedonia",fi:"Pohjois-Makedonia",sv:"Nordmakedonien",telephoneCountryCode:"389"},MP:{isoCode:"MP",en:"Northern Mariana Islands",fi:"Pohjois-Mariaanit",sv:"Nordmarianerna",telephoneCountryCode:"1"},NO:{isoCode:"NO",en:"Norway",fi:"Norja",sv:"Norge",telephoneCountryCode:"47"},OM:{isoCode:"OM",en:"Oman",fi:"Oman",sv:"Oman",telephoneCountryCode:"968"},PK:{isoCode:"PK",en:"Pakistan",fi:"Pakistan",sv:"Pakistan",telephoneCountryCode:"92"},PW:{isoCode:"PW",en:"Palau",fi:"Palau",sv:"Palau",telephoneCountryCode:"680"},PS:{isoCode:"PS",en:"State of Palestine",fi:"Palestiina",sv:"Palestinska territoriet, ockuperade",telephoneCountryCode:"970"},PA:{isoCode:"PA",en:"Panama",fi:"Panama",sv:"Panama",telephoneCountryCode:"507"},PG:{isoCode:"PG",en:"Papua New Guinea",fi:"Papua-Uusi-Guinea",sv:"Papua Nya Guinea",telephoneCountryCode:"675"},PY:{isoCode:"PY",en:"Paraguay",fi:"Paraguay",sv:"Paraguay",telephoneCountryCode:"595"},PE:{isoCode:"PE",en:"Peru",fi:"Peru",sv:"Peru",telephoneCountryCode:"51"},PH:{isoCode:"PH",en:"Philippines",fi:"Filippiinit",sv:"Filippinerna",telephoneCountryCode:"63"},PN:{isoCode:"PN",en:"Pitcairn",fi:"Pitcairn",sv:"Pitcairnöarna"},PL:{isoCode:"PL",en:"Poland",fi:"Puola",sv:"Polen",telephoneCountryCode:"48"},PT:{isoCode:"PT",en:"Portugal",fi:"Portugali",sv:"Portugal",telephoneCountryCode:"351"},PR:{isoCode:"PR",en:"Puerto Rico",fi:"Puerto Rico",sv:"Puerto Rico",telephoneCountryCode:"1"},QA:{isoCode:"QA",en:"Qatar",fi:"Qatar",sv:"Qatar",telephoneCountryCode:"974"},RE:{isoCode:"RE",en:"Reunion",fi:"Réunion",sv:"Réunion",telephoneCountryCode:"262"},RO:{isoCode:"RO",en:"Romania",fi:"Romania",sv:"Rumänien",telephoneCountryCode:"40"},RU:{isoCode:"RU",en:"Russian Federation",fi:"Venäjä",sv:"Ryssland",telephoneCountryCode:"7"},RW:{isoCode:"RW",en:"Rwanda",fi:"Ruanda",sv:"Rwanda",telephoneCountryCode:"250"},SH:{isoCode:"SH",en:"Saint Helena",fi:"Saint Helena",sv:"Sankta Helena",telephoneCountryCode:"290"},KN:{isoCode:"KN",en:"Saint Kitts and Nevis",fi:"Saint Kitts ja Nevis",sv:"Saint Kitts och Nevis",telephoneCountryCode:"1"},LC:{isoCode:"LC",en:"Saint Lucia",fi:"Saint Lucia",sv:"Saint Lucia",telephoneCountryCode:"1"},PM:{isoCode:"PM",en:"Saint Pierre and Miquelon",fi:"Saint-Pierre ja Miquelon",sv:"Saint-Pierre och Miquelon",telephoneCountryCode:"508"},VC:{isoCode:"VC",en:"Saint Vincent and the Grenadines",fi:"Saint Vincent ja Grenadiinit",sv:"Saint Vincent och Grenadinerna",telephoneCountryCode:"1"},WS:{isoCode:"WS",en:"Samoa",fi:"Samoa",sv:"Samoa",telephoneCountryCode:"685"},SM:{isoCode:"SM",en:"San Marino",fi:"San Marino",sv:"San Marino",telephoneCountryCode:"378"},ST:{isoCode:"ST",en:"Sao Tome and Principe",fi:"São Tomé ja Príncipe",sv:"São Tomé och Príncipe",telephoneCountryCode:"239"},SA:{isoCode:"SA",en:"Saudi Arabia",fi:"Saudi-Arabia",sv:"Saudiarabien",telephoneCountryCode:"966"},SN:{isoCode:"SN",en:"Senegal",fi:"Senegal",sv:"Senegal",telephoneCountryCode:"221"},SC:{isoCode:"SC",en:"Seychelles",fi:"Seychellit",sv:"Seychellerna",telephoneCountryCode:"248"},SL:{isoCode:"SL",en:"Sierra Leone",fi:"Sierra Leone",sv:"Sierra Leone",telephoneCountryCode:"232"},SG:{isoCode:"SG",en:"Singapore",fi:"Singapore",sv:"Singapore",telephoneCountryCode:"65"},SK:{isoCode:"SK",en:"Slovakia",fi:"Slovakia",sv:"Slovakien",telephoneCountryCode:"421"},SI:{isoCode:"SI",en:"Slovenia",fi:"Slovenia",sv:"Slovenien",telephoneCountryCode:"386"},SB:{isoCode:"SB",en:"Solomon Islands",fi:"Salomonsaaret",sv:"Salomonöarna",telephoneCountryCode:"677"},SO:{isoCode:"SO",en:"Somalia",fi:"Somalia",sv:"Somalia",telephoneCountryCode:"252"},ZA:{isoCode:"ZA",en:"South Africa",fi:"Etelä-Afrikka",sv:"Sydafrika",telephoneCountryCode:"27"},GS:{isoCode:"GS",en:"South Georgia and the South Sandwich Islands",fi:"Etelä-Georgia ja Eteläiset Sandwichsaaret",sv:"Sydgeorgien och Sydsandwichöarna"},ES:{isoCode:"ES",en:"Spain",fi:"Espanja",sv:"Spanien",telephoneCountryCode:"34"},LK:{isoCode:"LK",en:"Sri Lanka",fi:"Sri Lanka",sv:"Sri Lanka",telephoneCountryCode:"94"},SD:{isoCode:"SD",en:"Sudan",fi:"Sudan",sv:"Sudan",telephoneCountryCode:"249"},SR:{isoCode:"SR",en:"Suriname",fi:"Suriname",sv:"Surinam",telephoneCountryCode:"597"},SJ:{isoCode:"SJ",en:"Svalbard and Jan Mayen",fi:"Svalbard ja Jan Mayen",sv:"Svalbard och Jan Mayen",telephoneCountryCode:"47"},SZ:{isoCode:"SZ",en:"Eswatini",fi:"Swazimaa",sv:"Eswatini",telephoneCountryCode:"268"},SE:{isoCode:"SE",en:"Sweden",fi:"Ruotsi",sv:"Sverige",telephoneCountryCode:"46"},CH:{isoCode:"CH",en:"Switzerland",fi:"Sveitsi",sv:"Schweiz",telephoneCountryCode:"41"},SY:{isoCode:"SY",en:"Syrian Arab Republic",fi:"Syyria",sv:"Syrien",telephoneCountryCode:"963"},TW:{isoCode:"TW",en:"Taiwan, Province of China",fi:"Taiwan",sv:"Taiwan",telephoneCountryCode:"886"},TJ:{isoCode:"TJ",en:"Tajikistan",fi:"Tadžikistan",sv:"Tadzjikistan",telephoneCountryCode:"992"},TZ:{isoCode:"TZ",en:"United Republic of Tanzania",fi:"Tansania",sv:"Tanzania",telephoneCountryCode:"255"},TH:{isoCode:"TH",en:"Thailand",fi:"Thaimaa",sv:"Thailand",telephoneCountryCode:"66"},TL:{isoCode:"TL",en:"Timor-Leste",fi:"Itä-Timor",sv:"Östtimor",telephoneCountryCode:"670"},TG:{isoCode:"TG",en:"Togo",fi:"Togo",sv:"Togo",telephoneCountryCode:"228"},TK:{isoCode:"TK",en:"Tokelau",fi:"Tokelau",sv:"Tokelauöarna",telephoneCountryCode:"690"},TO:{isoCode:"TO",en:"Tonga",fi:"Tonga",sv:"Tonga",telephoneCountryCode:"676"},TT:{isoCode:"TT",en:"Trinidad and Tobago",fi:"Trinidad ja Tobago",sv:"Trinidad och Tobago",telephoneCountryCode:"1"},TN:{isoCode:"TN",en:"Tunisia",fi:"Tunisia",sv:"Tunisien",telephoneCountryCode:"216"},TR:{isoCode:"TR",en:"Türkiye",fi:"Turkki",sv:"Turkiet",telephoneCountryCode:"90"},TM:{isoCode:"TM",en:"Turkmenistan",fi:"Turkmenistan",sv:"Turkmenistan",telephoneCountryCode:"993"},TC:{isoCode:"TC",en:"Turks and Caicos Islands",fi:"Turks- ja Caicossaaret",sv:"Turks- och Caicosöarna",telephoneCountryCode:"1"},TV:{isoCode:"TV",en:"Tuvalu",fi:"Tuvalu",sv:"Tuvalu",telephoneCountryCode:"688"},UG:{isoCode:"UG",en:"Uganda",fi:"Uganda",sv:"Uganda",telephoneCountryCode:"256"},UA:{isoCode:"UA",en:"Ukraine",fi:"Ukraina",sv:"Ukraina",telephoneCountryCode:"380"},AE:{isoCode:"AE",en:"United Arab Emirates",fi:"Arabiemiirikunnat",sv:"Förenade Arabemiraten",telephoneCountryCode:"971"},GB:{isoCode:"GB",en:"United Kingdom",fi:"Yhdistynyt kuningaskunta",sv:"Storbritannien",telephoneCountryCode:"44"},US:{isoCode:"US",en:"United States of America",fi:"Yhdysvallat",sv:"USA",telephoneCountryCode:"1"},UM:{isoCode:"UM",en:"United States Minor Outlying Islands",fi:"Yhdysvaltain pienet erillissaaret",sv:"USA:s yttre öar"},UY:{isoCode:"UY",en:"Uruguay",fi:"Uruguay",sv:"Uruguay",telephoneCountryCode:"598"},UZ:{isoCode:"UZ",en:"Uzbekistan",fi:"Uzbekistan",sv:"Uzbekistan",telephoneCountryCode:"998"},VU:{isoCode:"VU",en:"Vanuatu",fi:"Vanuatu",sv:"Vanuatu",telephoneCountryCode:"678"},VE:{isoCode:"VE",en:"Venezuela",fi:"Venezuela",sv:"Venezuela",telephoneCountryCode:"58"},VN:{isoCode:"VN",en:"Vietnam",fi:"Vietnam",sv:"Vietnam",telephoneCountryCode:"84"},VG:{isoCode:"VG",en:"Virgin Islands, British",fi:"Brittiläiset Neitsytsaaret",sv:"Brittiska Jungfruöarna",telephoneCountryCode:"1"},VI:{isoCode:"VI",en:"Virgin Islands, U.S.",fi:"Yhdysvaltain Neitsytsaaret",sv:"Amerikanska Jungfruöarna",telephoneCountryCode:"1"},WF:{isoCode:"WF",en:"Wallis and Futuna",fi:"Wallis ja Futunasaaret",sv:"Wallis- och Futunaöarna",telephoneCountryCode:"681"},EH:{isoCode:"EH",en:"Western Sahara",fi:"Länsi-Sahara",sv:"Västsahara",telephoneCountryCode:"212"},YE:{isoCode:"YE",en:"Yemen",fi:"Jemen",sv:"Jemen",telephoneCountryCode:"967"},ZM:{isoCode:"ZM",en:"Zambia",fi:"Sambia",sv:"Zambia",telephoneCountryCode:"260"},ZW:{isoCode:"ZW",en:"Zimbabwe",fi:"Zimbabwe",sv:"Zimbabwe",telephoneCountryCode:"263"},AX:{isoCode:"AX",en:"Åland Islands",fi:"Ahvenanmaa",sv:"Åland",telephoneCountryCode:"358"},BQ:{isoCode:"BQ",en:"Bonaire, Sint Eustatius and Saba",fi:"Bonaire, Sint Eustatius ja Saba",sv:"Bonaire, Saint Eustatius och Saba",telephoneCountryCode:"599"},CW:{isoCode:"CW",en:"Curaçao",fi:"Curaçao",sv:"Curacao",telephoneCountryCode:"599"},GG:{isoCode:"GG",en:"Guernsey",fi:"Guernsey",sv:"Guernsey",telephoneCountryCode:"44"},IM:{isoCode:"IM",en:"Isle of Man",fi:"Mansaari",sv:"Isle of Man",telephoneCountryCode:"44"},JE:{isoCode:"JE",en:"Jersey",fi:"Jersey",sv:"Jersey",telephoneCountryCode:"44"},ME:{isoCode:"ME",en:"Montenegro",fi:"Montenegro",sv:"Montenegro",telephoneCountryCode:"382"},BL:{isoCode:"BL",en:"Saint Barthélemy",fi:"Saint-Barthélemy",sv:"Saint-Barthélemy",telephoneCountryCode:"590"},MF:{isoCode:"MF",en:"Saint Martin (French part)",fi:"Saint-Martin",sv:"Saint Martin (franska delen)",telephoneCountryCode:"590"},RS:{isoCode:"RS",en:"Serbia",fi:"Serbia",sv:"Serbien",telephoneCountryCode:"381"},SX:{isoCode:"SX",en:"Sint Maarten (Dutch part)",fi:"Sint Maarten",sv:"Sint Maarten (nederländska delen)",telephoneCountryCode:"1"},SS:{isoCode:"SS",en:"South Sudan",fi:"Etelä-Sudan",sv:"Sydsudan",telephoneCountryCode:"211"},XK:{isoCode:"XK",en:"Kosovo",fi:"Kosovo",sv:"Kosovo",telephoneCountryCode:"383"}};var primaryCountriesForSharedCountryCodes={1:"US",7:"RU",39:"IT",44:"GB",47:"NO",61:"AU",212:"MA",262:"RE",358:"FI",590:"GP",599:"CW"};var duetPhoneInputCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}span.flag-container{display:flex;align-items:center;justify-content:center;width:30px;height:30px}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-phone-input-container{position:relative;width:100%;height:100%}";var DuetPhoneInputStyle0=duetPhoneInputCss;var DuetPhoneInput=function(){function e(e){var o=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.duetInput=createEvent(this,"duetInput",3);this.duetBlur=createEvent(this,"duetBlur",7);this.duetFocus=createEvent(this,"duetFocus",7);this.countriesToList=Object.values(countries).filter((function(e){return!!e.telephoneCountryCode}));this.countryFlagCDNUrl="https://cdn.duetds.com/api/assets/country-flags/";this.inputId=createID("DuetInput");this.buttonAriaLabel={en:"Choose country code",fi:"Valitse maatunnus",sv:"Välj landskod"};this.setListFirstCountries=function(){var e=(typeof o.listFirst==="string"?o.listFirst.split(","):o.listFirst).map((function(e){return e.trim().toUpperCase()}));var n=Object.values(countries).filter((function(o){return e.includes(o.isoCode)}));var i=o.countriesToList.filter((function(o){return!e.includes(o.isoCode)}));i.sort((function(e,n){return e[o.language]>n[o.language]?1:-1}));o.countriesToList=__spreadArray(__spreadArray([],n,true),i,true)};this.handleFocus=function(){};this.handleChange=function(){};this.handleBlur=function(){};this.handleInput=function(){var e,n;var i=(e=o.duetInputElement.value)===null||e===void 0?void 0:e.trim();var a=o.currentCountry!=="error"&&((n=o.currentCountry)===null||n===void 0?void 0:n.telephoneCountryCode)||"";var t=o.findCountryCode(i)||"";if(!i){o.currentCountry=undefined;return}if(a===t){return}if(t){o.currentCountry=o.findCountryForCode(t);return}if(a!=="error"){o.currentCountry="error"}return};this.handleCountryCodeSelectorOpen=function(){o.countryCodePopup.controller=o.countryCodeButton;o.countryCodePopup.show()};this.handleCountryCodeSelectorSelect=function(e){var n=e.target.closest("duet-popup-menu-item");var i=countries[n.value];o.currentCountry=i;o.countryCodePopup.hide();o.setInputCountryCode()};this.language=getLanguage();this.currentCountry=undefined;this.theme="";this.margin="auto";this.expand=false;this.identifier=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleDescribedBy=undefined;this.disabled=false;this.required=false;this.labelDefaults={fi:"Puhelinnumero",en:"Phone number",sv:"Telefonnummer"};this.label=getLocaleString(this.labelDefaults,this.language);this.labelHidden=false;this.caption=undefined;this.name=undefined;this.error="";this.tooltip="";this.listFirst=["FI","SE"]}Object.defineProperty(e.prototype,"countries",{get:function(){return this.countriesToList},set:function(e){var o=e;var n="";var i=function(e){var o=["en","fi","sv","isoCode","telephoneCountryCode"];return o.every((function(o){return Object.keys(e).includes(o)}))&&/^[A-Z]{2}$/.test(e["isoCode"])&&/^[1-9][0-9]{0,2}$/.test(e["telephoneCountryCode"])};if(typeof e==="string"){o=JSON.parse(e)}if(Array.isArray(o)){if(o.every((function(e){return typeof e==="string"}))){this.countriesToList=Object.values(countries).filter((function(e){return o.includes(e.isoCode)&&!!e.telephoneCountryCode}))}else if(o.every((function(e){return i(e)}))){this.countriesToList=o}else{n="Invalid array provided for countries in Phone Input"}}else{n="Country list for Phone Input must be an array"}if(n){console.error(n);this.countriesToList=Object.values(countries).filter((function(e){return!!e.telephoneCountryCode}))}this.setListFirstCountries()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"value",{get:function(){var e;return(e=this.duetInputElement.value)===null||e===void 0?void 0:e.replace(/\s/g,"")},set:function(e){this._value=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"validity",{get:function(){return this.duetInputElement.validity},enumerable:false,configurable:true});e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true);this.setListFirstCountries()};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"label",defaults:"labelDefaults"});subscribeTabbingChange(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);unsubscribeTabbingChange(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){this.duetInputElement.setFocus(e);return[2]}))}))};e.prototype.setInputCountryCode=function(){if(this.currentCountry==="error"){return}var e="+".concat(this.currentCountry.telephoneCountryCode," ");var o=this.duetInputElement.value;if(!(o===null||o===void 0?void 0:o.trim().startsWith("+"))){this.duetInputElement.value="".concat(e).concat((o===null||o===void 0?void 0:o.trimStart())||"");return}var n=this.findCountryCode(o);console.log("Old code",n);if(n){this.duetInputElement.value=o.replace("+".concat(n),e).replace(" "," ");return}this.duetInputElement.value=o.replace("+",e)};e.prototype.findCountryCode=function(e){var o=e.trim();if(!o.startsWith("+")){return undefined}var n=Object.values(countries).find((function(e){return o.startsWith("+".concat(e.telephoneCountryCode))}));return n===null||n===void 0?void 0:n.telephoneCountryCode};e.prototype.findCountryForCode=function(e){var o=primaryCountriesForSharedCountryCodes[e]||"";return o?countries[o]:Object.values(countries).find((function(o){return o.telephoneCountryCode===e}))};e.prototype.renderFlag=function(e,o){if(o===void 0){o=false}var n={height:o?"34px":"24px",width:o?"27px":"24px","margin-right":o?"0":"10px","object-fit":"contain","object-position":"center",filter:"drop-shadow(0 0 1px rgba(0, 0, 0, 0.3)) drop-shadow(0 2px 6px rgba(0, 41, 77, 0.1))"};return h("img",{src:"".concat(this.countryFlagCDNUrl).concat(e,".svg"),"aria-hidden":"true",style:n,loading:"lazy"})};e.prototype.getFlagForButton=function(){if(!this.currentCountry||this.currentCountry==="error"){return h("duet-icon",{name:!this.currentCountry?"form-country":"messaging-alert",margin:"none"})}return this.renderFlag(this.currentCountry.isoCode,true)};e.prototype.render=function(){var e=this;var o=(typeof this.listFirst==="string"?this.listFirst.split(","):this.listFirst).map((function(e){return e.trim().toUpperCase()})).pop();var n=this.identifier||this.inputId;return h(Host,{class:{"duet-theme-turva":this.theme==="turva","duet-expand":this.expand,"duet-m-0":this.margin==="none"}},h("div",{class:"duet-phone-input-container"},h("duet-popup-menu",{ref:function(o){return e.countryCodePopup=o},scrollLimit:10,showFilterInput:true},this.countriesToList.map((function(n){return n.isoCode===o?h(Fragment,null,h("duet-popup-menu-item",{value:n.isoCode,onClick:e.handleCountryCodeSelectorSelect},h("duet-grid",{alignment:"center"},e.renderFlag(n.isoCode),h("span",null,n[e.language]," (+",n.telephoneCountryCode,")"))),h("duet-spacer",{size:"x-small"}),h("duet-divider",{margin:"small"})):h("duet-popup-menu-item",{value:n.isoCode,onClick:e.handleCountryCodeSelectorSelect},h("duet-grid",{alignment:"center"},e.renderFlag(n.isoCode),h("span",null,n[e.language]," (+",n.telephoneCountryCode,")")))}))),h("duet-input",{ref:function(o){return e.duetInputElement=o},onDuetChange:this.handleChange,onDuetFocus:this.handleFocus,onDuetBlur:this.handleBlur,onDuetInput:this.handleInput,label:this.label,caption:this.caption,value:this._value,error:this.error,name:this.name,component:"phone",variation:"button-left",type:"tel",disallowPattern:"[^\\+0-9 ]",required:this.required,disabled:this.disabled,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:n,theme:this.theme,margin:"none",expand:true},h("duet-button",{ref:function(o){return e.countryCodeButton=o},slot:"button-left",variation:"input-button-left-secondary",margin:"none",fixed:true,icon:"action-arrow-down-small",iconSize:"small",iconRight:true,accessibleLabel:this.buttonAriaLabel[this.language],onClick:this.handleCountryCodeSelectorOpen},h("span",{class:"flag-container"},this.getFlagForButton())),h("slot",{name:"tooltip"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetPhoneInput.style=DuetPhoneInputStyle0;export{DuetPhoneInput as duet_phone_input};