@duetds/components 9.7.2 → 9.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (721) hide show
  1. package/hydrate/index.js +147 -142
  2. package/lib/cjs/{a11y-utils-ae1e63c4.js → a11y-utils-a2456285.js} +1 -1
  3. package/lib/cjs/{app-globals-540cd51d.js → app-globals-d1845172.js} +1 -1
  4. package/lib/cjs/duet-action-button.cjs.entry.js +4 -4
  5. package/lib/cjs/duet-alert.cjs.entry.js +3 -3
  6. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-banner.cjs.entry.js +4 -4
  8. package/lib/cjs/duet-breadcrumb.cjs.entry.js +2 -2
  9. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +4 -4
  10. package/lib/cjs/duet-button_2.cjs.entry.js +4 -4
  11. package/lib/cjs/duet-callout.cjs.entry.js +2 -2
  12. package/lib/cjs/duet-caption_4.cjs.entry.js +10 -9
  13. package/lib/cjs/duet-card.cjs.entry.js +4 -4
  14. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  16. package/lib/cjs/duet-chip.cjs.entry.js +2 -2
  17. package/lib/cjs/duet-choice_2.cjs.entry.js +3 -3
  18. package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
  19. package/lib/cjs/duet-combobox.cjs.entry.js +3 -3
  20. package/lib/cjs/duet-contact-card.cjs.entry.js +2 -2
  21. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-date-picker.cjs.entry.js +4 -4
  23. package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
  24. package/lib/cjs/duet-editable-table_3.cjs.entry.js +5 -5
  25. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-fieldset.cjs.entry.js +2 -2
  27. package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-footer.cjs.entry.js +3 -3
  29. package/lib/cjs/duet-grid_2.cjs.entry.js +46 -42
  30. package/lib/cjs/duet-header_2.cjs.entry.js +4 -4
  31. package/lib/cjs/duet-hero.cjs.entry.js +3 -3
  32. package/lib/cjs/duet-icon.cjs.entry.js +3 -3
  33. package/lib/cjs/duet-input_2.cjs.entry.js +5 -5
  34. package/lib/cjs/duet-layout.cjs.entry.js +2 -2
  35. package/lib/cjs/duet-list_2.cjs.entry.js +2 -2
  36. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +2 -2
  38. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
  39. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +4 -4
  40. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -3
  42. package/lib/cjs/duet-modal.cjs.entry.js +4 -4
  43. package/lib/cjs/duet-multiselect.cjs.entry.js +3 -3
  44. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-notification_2.cjs.entry.js +2 -2
  46. package/lib/cjs/duet-number-input.cjs.entry.js +3 -3
  47. package/lib/cjs/duet-overlay.cjs.entry.js +1 -1
  48. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  49. package/lib/cjs/duet-pagination_2.cjs.entry.js +4 -4
  50. package/lib/cjs/duet-phone-input.cjs.entry.js +3 -3
  51. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +12 -9
  52. package/lib/cjs/duet-progress.cjs.entry.js +2 -2
  53. package/lib/cjs/duet-promo-card.cjs.entry.js +4 -4
  54. package/lib/cjs/duet-radio_2.cjs.entry.js +3 -3
  55. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  56. package/lib/cjs/duet-scrollable_3.cjs.entry.js +5 -5
  57. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  58. package/lib/cjs/duet-select.cjs.entry.js +2 -2
  59. package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
  60. package/lib/cjs/duet-show-more.cjs.entry.js +2 -2
  61. package/lib/cjs/duet-slideout-lang.cjs.entry.js +2 -2
  62. package/lib/cjs/duet-slideout-link.cjs.entry.js +4 -4
  63. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-slideout-panel.cjs.entry.js +6 -6
  65. package/lib/cjs/duet-slideout.cjs.entry.js +6 -6
  66. package/lib/cjs/duet-status-icon.cjs.entry.js +2 -2
  67. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  68. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  69. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +2 -2
  70. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +4 -4
  71. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  72. package/lib/cjs/duet-submenu-bar.cjs.entry.js +2 -2
  73. package/lib/cjs/duet-textarea.cjs.entry.js +3 -3
  74. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  75. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  76. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  77. package/lib/cjs/duet-toolbar-item.cjs.entry.js +4 -4
  78. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  79. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  80. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +7 -6
  81. package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
  82. package/lib/cjs/duet-tray.cjs.entry.js +5 -5
  83. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  84. package/lib/cjs/duet-upload-item.cjs.entry.js +3 -3
  85. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  86. package/lib/cjs/duet.cjs.js +3 -3
  87. package/lib/cjs/{errorcodes.utils-b47aaa45.js → errorcodes.utils-f65f1fe3.js} +1 -1
  88. package/lib/cjs/{floating-ui.dom.esm-806e7c53.js → floating-ui.dom.esm-bdde8521.js} +50 -27
  89. package/lib/cjs/{focus-utils-c4163f8f.js → focus-utils-923b8b88.js} +1 -1
  90. package/lib/cjs/{index-00821d28.js → index-3d8a31a0.js} +1 -1
  91. package/lib/cjs/{language-utils-77bf1c27.js → language-utils-53bb7035.js} +1 -1
  92. package/lib/cjs/loader.cjs.js +3 -3
  93. package/lib/cjs/{slot-utils-55f6a689.js → slot-utils-f85c14a2.js} +1 -1
  94. package/lib/cjs/{token-utils-12717808.js → token-utils-6258d3f7.js} +1 -1
  95. package/lib/cjs/{tokens-57e06fe4.js → tokens-e6fda5ee.js} +2 -3
  96. package/lib/cjs/{tokens.module-46ddb47a.js → tokens.module-a7c77c13.js} +2 -2
  97. package/lib/cjs/{watch-options-30a12622.js → watch-options-31527e7b.js} +0 -20
  98. package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
  99. package/lib/collection/components/duet-alert/duet-alert.js +1 -1
  100. package/lib/collection/components/duet-banner/duet-banner.js +1 -1
  101. package/lib/collection/components/duet-button/duet-button.js +5 -5
  102. package/lib/collection/components/duet-caption/duet-caption.js +1 -1
  103. package/lib/collection/components/duet-card/duet-card.js +3 -3
  104. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
  105. package/lib/collection/components/duet-chip/duet-chip.js +6 -6
  106. package/lib/collection/components/duet-choice/duet-choice.js +3 -3
  107. package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
  108. package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
  109. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  110. package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -4
  111. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  112. package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
  113. package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
  114. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  115. package/lib/collection/components/duet-footer/duet-footer.js +7 -7
  116. package/lib/collection/components/duet-grid/duet-grid.js +50 -49
  117. package/lib/collection/components/duet-header/duet-header.js +15 -15
  118. package/lib/collection/components/duet-heading/duet-heading.js +1 -1
  119. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  120. package/lib/collection/components/duet-input/duet-input.js +8 -8
  121. package/lib/collection/components/duet-label/duet-label.js +2 -2
  122. package/lib/collection/components/duet-layout/duet-layout.js +1 -1
  123. package/lib/collection/components/duet-link/duet-link.css +33 -11
  124. package/lib/collection/components/duet-link/duet-link.js +4 -3
  125. package/lib/collection/components/duet-list/duet-list.js +3 -3
  126. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  127. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
  128. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +1 -1
  129. package/lib/collection/components/duet-modal/duet-modal.js +4 -4
  130. package/lib/collection/components/duet-multiselect/duet-multiselect.js +6 -6
  131. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
  132. package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
  133. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  134. package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
  135. package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
  136. package/lib/collection/components/duet-phone-input/duet-phone-input.js +4 -4
  137. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +9 -6
  138. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  139. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  140. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  141. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
  142. package/lib/collection/components/duet-select/duet-select.js +5 -5
  143. package/lib/collection/components/duet-show-more/duet-show-more.js +1 -1
  144. package/lib/collection/components/duet-slideout/duet-slideout.js +1 -1
  145. package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
  146. package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
  147. package/lib/collection/components/duet-step/duet-step.js +2 -2
  148. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  149. package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
  150. package/lib/collection/components/duet-textarea/duet-textarea.js +4 -4
  151. package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
  152. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -2
  153. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
  154. package/lib/collection/components/duet-tooltip/duet-tooltip.js +2 -2
  155. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  156. package/lib/collection/components/duet-upload/duet-upload.js +14 -14
  157. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  158. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  159. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  160. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  161. package/lib/dist-custom-elements/duet-alert.js +1 -1
  162. package/lib/dist-custom-elements/duet-badge.js +1 -1
  163. package/lib/dist-custom-elements/duet-banner.js +4 -4
  164. package/lib/dist-custom-elements/duet-breadcrumb.js +3 -3
  165. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  166. package/lib/dist-custom-elements/duet-button.js +1 -1
  167. package/lib/dist-custom-elements/duet-callout.js +2 -2
  168. package/lib/dist-custom-elements/duet-caption.js +1 -1
  169. package/lib/dist-custom-elements/duet-card.js +4 -4
  170. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  171. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  172. package/lib/dist-custom-elements/duet-chip.js +1 -1
  173. package/lib/dist-custom-elements/duet-choice-group.js +8 -8
  174. package/lib/dist-custom-elements/duet-choice.js +4 -4
  175. package/lib/dist-custom-elements/duet-collapsible.js +4 -4
  176. package/lib/dist-custom-elements/duet-combobox.js +15 -15
  177. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  178. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  179. package/lib/dist-custom-elements/duet-date-picker.js +13 -13
  180. package/lib/dist-custom-elements/duet-divider.js +1 -1
  181. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  182. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  183. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  184. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  185. package/lib/dist-custom-elements/duet-footer.js +7 -7
  186. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  187. package/lib/dist-custom-elements/duet-grid.js +1 -1
  188. package/lib/dist-custom-elements/duet-header.js +9 -9
  189. package/lib/dist-custom-elements/duet-heading.js +1 -1
  190. package/lib/dist-custom-elements/duet-hero.js +9 -9
  191. package/lib/dist-custom-elements/duet-icon.js +1 -1
  192. package/lib/dist-custom-elements/duet-input.js +1 -1
  193. package/lib/dist-custom-elements/duet-label.js +1 -1
  194. package/lib/dist-custom-elements/duet-layout.js +1 -1
  195. package/lib/dist-custom-elements/duet-link.js +1 -1
  196. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  197. package/lib/dist-custom-elements/duet-list.js +1 -1
  198. package/lib/dist-custom-elements/duet-logo.js +1 -1
  199. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  200. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +3 -3
  201. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  202. package/lib/dist-custom-elements/duet-menu-bar-item.js +2 -2
  203. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  204. package/lib/dist-custom-elements/duet-menu-bar.js +3 -3
  205. package/lib/dist-custom-elements/duet-modal.js +8 -8
  206. package/lib/dist-custom-elements/duet-multiselect.js +9 -9
  207. package/lib/dist-custom-elements/duet-nav.js +1 -1
  208. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  209. package/lib/dist-custom-elements/duet-notification.js +2 -2
  210. package/lib/dist-custom-elements/duet-number-input.js +11 -11
  211. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  212. package/lib/dist-custom-elements/duet-page-heading.js +3 -3
  213. package/lib/dist-custom-elements/duet-pagination.js +14 -14
  214. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  215. package/lib/dist-custom-elements/duet-phone-input.js +16 -16
  216. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  217. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  218. package/lib/dist-custom-elements/duet-progress.js +1 -1
  219. package/lib/dist-custom-elements/duet-promo-card.js +4 -4
  220. package/lib/dist-custom-elements/duet-radio-group.js +9 -9
  221. package/lib/dist-custom-elements/duet-radio.js +1 -1
  222. package/lib/dist-custom-elements/duet-range-slider.js +3 -3
  223. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  224. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  225. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  226. package/lib/dist-custom-elements/duet-select.js +1 -1
  227. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  228. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  229. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  230. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  231. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  232. package/lib/dist-custom-elements/duet-slideout-panel.js +3 -3
  233. package/lib/dist-custom-elements/duet-slideout.js +4 -4
  234. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  235. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  236. package/lib/dist-custom-elements/duet-status-icon.js +1 -1
  237. package/lib/dist-custom-elements/duet-step.js +4 -4
  238. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  239. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  240. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +3 -3
  241. package/lib/dist-custom-elements/duet-submenu-bar-item.js +2 -2
  242. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  243. package/lib/dist-custom-elements/duet-submenu-bar.js +4 -4
  244. package/lib/dist-custom-elements/duet-tab-group.js +7 -7
  245. package/lib/dist-custom-elements/duet-tab.js +2 -2
  246. package/lib/dist-custom-elements/duet-table.js +1 -1
  247. package/lib/dist-custom-elements/duet-textarea.js +10 -10
  248. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  249. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  250. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  251. package/lib/dist-custom-elements/duet-toolbar-item.js +2 -2
  252. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  253. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  254. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  255. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  256. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  257. package/lib/dist-custom-elements/duet-tray.js +6 -6
  258. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  259. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  260. package/lib/dist-custom-elements/duet-upload.js +20 -20
  261. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  262. package/lib/dist-custom-elements/index.js +1 -1
  263. package/lib/dist-custom-elements/{p-cc3db4b5.js → p-04762e09.js} +3 -3
  264. package/lib/dist-custom-elements/{p-294be03e.js → p-0d73c2f1.js} +47 -44
  265. package/lib/dist-custom-elements/{p-b2209719.js → p-0e65f2d7.js} +10 -10
  266. package/lib/dist-custom-elements/{p-f2c2f3d2.js → p-0e694c06.js} +1 -1
  267. package/lib/dist-custom-elements/{p-ef48f2c7.js → p-153359ff.js} +1 -1
  268. package/lib/dist-custom-elements/{p-2f35ab6d.js → p-2a6040d0.js} +5 -5
  269. package/lib/dist-custom-elements/{p-2c553cff.js → p-30c1366b.js} +2 -2
  270. package/lib/dist-custom-elements/{p-cc4d7cd3.js → p-30ef95ec.js} +2 -2
  271. package/lib/dist-custom-elements/{p-8dc35603.js → p-31dbfae1.js} +7 -6
  272. package/lib/dist-custom-elements/{p-5830b545.js → p-364b7287.js} +2 -2
  273. package/lib/dist-custom-elements/{p-60321ce4.js → p-3c4c4976.js} +2 -2
  274. package/lib/dist-custom-elements/{p-65a2c6d6.js → p-40ede289.js} +5 -5
  275. package/lib/dist-custom-elements/{p-90074c50.js → p-4365799e.js} +5 -4
  276. package/lib/dist-custom-elements/{p-198d7866.js → p-498c5db1.js} +2 -2
  277. package/lib/dist-custom-elements/{p-d8dddc51.js → p-4e2c2dde.js} +5 -5
  278. package/lib/dist-custom-elements/{p-521ea41a.js → p-5330f4d6.js} +2 -2
  279. package/lib/dist-custom-elements/{p-92f53ff1.js → p-5980607d.js} +1 -1
  280. package/lib/dist-custom-elements/{p-5c9414bb.js → p-59a8e5d4.js} +1 -1
  281. package/lib/dist-custom-elements/{p-30c909e0.js → p-614647ec.js} +2 -2
  282. package/lib/dist-custom-elements/{p-28e818db.js → p-685e9f01.js} +3 -3
  283. package/lib/dist-custom-elements/{p-4c179c1e.js → p-6f42296b.js} +2 -2
  284. package/lib/dist-custom-elements/{p-fcea7cb2.js → p-7247730a.js} +10 -10
  285. package/lib/dist-custom-elements/{p-6e022235.js → p-77260ba8.js} +1 -1
  286. package/lib/dist-custom-elements/{p-f0e6f0d8.js → p-7fc5f0dc.js} +1 -1
  287. package/lib/{esm/watch-options-e96ecd92.js → dist-custom-elements/p-8a5bd61a.js} +1 -20
  288. package/lib/dist-custom-elements/{p-9cd492a4.js → p-8d795f62.js} +2 -2
  289. package/lib/dist-custom-elements/{p-821b01b0.js → p-991fa955.js} +3 -3
  290. package/lib/dist-custom-elements/{p-3c061dcb.js → p-9978e596.js} +1 -1
  291. package/lib/dist-custom-elements/{p-d383dac5.js → p-9a109585.js} +56 -33
  292. package/lib/dist-custom-elements/{p-3e0e12ca.js → p-9e65e6c5.js} +4 -4
  293. package/lib/dist-custom-elements/{p-bb35f7e7.js → p-a80179a7.js} +1 -1
  294. package/lib/dist-custom-elements/{p-b16d3074.js → p-ad18c534.js} +20 -17
  295. package/lib/dist-custom-elements/{p-1b9771cc.js → p-b29b6605.js} +2 -2
  296. package/lib/dist-custom-elements/{p-a42d6be2.js → p-b78caef0.js} +7 -7
  297. package/lib/dist-custom-elements/{p-874675e6.js → p-c4fbeffc.js} +1 -1
  298. package/lib/dist-custom-elements/{p-4ce79667.js → p-c824afc6.js} +2 -2
  299. package/lib/dist-custom-elements/{p-3fda4c4e.js → p-c8aa0c8c.js} +8 -8
  300. package/lib/dist-custom-elements/{p-931ac5ac.js → p-d0fa2af7.js} +2 -2
  301. package/lib/dist-custom-elements/{p-f6000a03.js → p-d32bd233.js} +3 -3
  302. package/lib/dist-custom-elements/{p-9b364696.js → p-dda43548.js} +1 -1
  303. package/lib/dist-custom-elements/{p-e9121d56.js → p-e3decce6.js} +2 -2
  304. package/lib/dist-custom-elements/{p-e096b297.js → p-eafee3ad.js} +5 -5
  305. package/lib/dist-custom-elements/{p-1bc9fed2.js → p-ebecd579.js} +2 -2
  306. package/lib/dist-custom-elements/{p-ac057b32.js → p-f0d133ad.js} +2 -2
  307. package/lib/duet/duet.esm.js +1 -1
  308. package/lib/duet/duet.js +1 -1
  309. package/lib/duet/{p-69e3ec89.entry.js → p-00eead31.entry.js} +1 -1
  310. package/lib/duet/p-00feb58c.system.entry.js +4 -0
  311. package/lib/duet/{p-fee19c9f.entry.js → p-01182f5e.entry.js} +1 -1
  312. package/lib/duet/{p-c760a6bc.system.entry.js → p-018b754d.system.entry.js} +1 -1
  313. package/lib/duet/{p-91d4e473.entry.js → p-01c72f8e.entry.js} +1 -1
  314. package/lib/duet/{p-2e66d74b.entry.js → p-02ce78c7.entry.js} +1 -1
  315. package/lib/duet/{p-4952116e.entry.js → p-02ea4090.entry.js} +1 -1
  316. package/lib/duet/{p-b49e5c58.system.entry.js → p-038e3b41.system.entry.js} +1 -1
  317. package/lib/duet/{p-4853837e.system.entry.js → p-03ec5f79.system.entry.js} +1 -1
  318. package/lib/duet/{p-142afd63.entry.js → p-03ff933b.entry.js} +1 -1
  319. package/lib/duet/{p-56ad7189.system.js → p-058dde3c.system.js} +1 -1
  320. package/lib/duet/{p-d384e575.entry.js → p-09bd9f19.entry.js} +1 -1
  321. package/lib/duet/{p-7fed5b14.system.entry.js → p-09cb29f2.system.entry.js} +1 -1
  322. package/lib/duet/{p-f8314996.system.entry.js → p-0aaa3c39.system.entry.js} +1 -1
  323. package/lib/duet/{p-f6cbe5d9.system.entry.js → p-0c8421f5.system.entry.js} +1 -1
  324. package/lib/duet/{p-ba08c98a.entry.js → p-0fa57cb4.entry.js} +1 -1
  325. package/lib/duet/{p-9a43132b.system.js → p-122d1eb2.system.js} +1 -1
  326. package/lib/duet/{p-facb3115.entry.js → p-13381697.entry.js} +1 -1
  327. package/lib/duet/{p-1004af75.js → p-17efced0.js} +1 -1
  328. package/lib/duet/{p-9c75c38d.entry.js → p-198b651e.entry.js} +1 -1
  329. package/lib/duet/{p-e51d65c9.entry.js → p-1b7c607c.entry.js} +1 -1
  330. package/lib/duet/{p-229649f1.system.entry.js → p-1d5686e9.system.entry.js} +2 -2
  331. package/lib/duet/{p-f11db08e.system.entry.js → p-1d81cad7.system.entry.js} +1 -1
  332. package/lib/duet/{p-744b8ee1.js → p-1ebe06b3.js} +1 -1
  333. package/lib/duet/{p-14857c6a.system.entry.js → p-22ab9afa.system.entry.js} +1 -1
  334. package/lib/duet/{p-171a126f.entry.js → p-242b4466.entry.js} +1 -1
  335. package/lib/duet/{p-6d0be00f.entry.js → p-26095d4c.entry.js} +1 -1
  336. package/lib/duet/{p-25caa9f7.entry.js → p-26ec4dbe.entry.js} +1 -1
  337. package/lib/duet/{p-bf9205ac.system.entry.js → p-2cd44aef.system.entry.js} +1 -1
  338. package/lib/duet/{p-64a9d71c.system.entry.js → p-2f2954b2.system.entry.js} +1 -1
  339. package/lib/duet/{p-b562ad7e.entry.js → p-315b2470.entry.js} +1 -1
  340. package/lib/duet/p-32c98c69.system.entry.js +4 -0
  341. package/lib/duet/{p-f2ccd2cc.system.entry.js → p-34a25d95.system.entry.js} +1 -1
  342. package/lib/duet/{p-101d8dd9.system.entry.js → p-35d29de1.system.entry.js} +1 -1
  343. package/lib/duet/{p-e4d173cc.entry.js → p-35ef7ec4.entry.js} +1 -1
  344. package/lib/duet/p-36ea2c29.entry.js +4 -0
  345. package/lib/duet/{p-b40ce0fa.entry.js → p-36f4e631.entry.js} +1 -1
  346. package/lib/duet/{p-cab23b7f.entry.js → p-3848cdc3.entry.js} +1 -1
  347. package/lib/duet/{p-22a75312.entry.js → p-3e748a32.entry.js} +1 -1
  348. package/lib/duet/{p-9eb022e9.system.entry.js → p-40c929c7.system.entry.js} +1 -1
  349. package/lib/duet/{p-fcafbcd4.entry.js → p-40de9bfa.entry.js} +1 -1
  350. package/lib/duet/p-411366b0.system.js +4 -0
  351. package/lib/duet/{p-905072e0.entry.js → p-41b3ba17.entry.js} +1 -1
  352. package/lib/duet/{p-9c155069.system.entry.js → p-451b4abc.system.entry.js} +1 -1
  353. package/lib/duet/{p-d9e3c5d3.entry.js → p-457fc76a.entry.js} +1 -1
  354. package/lib/duet/{p-e80dd41f.system.entry.js → p-47c86331.system.entry.js} +1 -1
  355. package/lib/duet/{p-ebb8d192.entry.js → p-4ed96d6a.entry.js} +1 -1
  356. package/lib/duet/{p-c3e52ce9.system.entry.js → p-52a7b68f.system.entry.js} +1 -1
  357. package/lib/duet/{p-b75e6fd7.entry.js → p-575df633.entry.js} +1 -1
  358. package/lib/duet/{p-5e0654cc.system.js → p-57dbe566.system.js} +1 -1
  359. package/lib/duet/{p-0511fd26.system.js → p-585fb676.system.js} +1 -1
  360. package/lib/duet/{p-9bd3407d.system.entry.js → p-58c9bd19.system.entry.js} +1 -1
  361. package/lib/duet/{p-d3bde4cc.system.entry.js → p-5939ca51.system.entry.js} +1 -1
  362. package/lib/duet/{p-44b36dbf.js → p-5c1cada7.js} +1 -1
  363. package/lib/duet/{p-db9ef24f.system.entry.js → p-5c732e81.system.entry.js} +1 -1
  364. package/lib/duet/{p-4d3c01fa.system.entry.js → p-5cce55d7.system.entry.js} +1 -1
  365. package/lib/duet/p-5de30279.js +4 -0
  366. package/lib/duet/p-5ee5540a.js +4 -0
  367. package/lib/duet/{p-3b4f6e4b.entry.js → p-5eee138b.entry.js} +1 -1
  368. package/lib/duet/{p-bf0f7acd.entry.js → p-5f13e48c.entry.js} +1 -1
  369. package/lib/duet/{p-820937d1.system.entry.js → p-5f38327e.system.entry.js} +1 -1
  370. package/lib/duet/{p-c2a22f7e.entry.js → p-5fdc84cf.entry.js} +1 -1
  371. package/lib/duet/{p-8097eb44.entry.js → p-5fef7caf.entry.js} +1 -1
  372. package/lib/duet/{p-6f415c0f.system.entry.js → p-5ff67999.system.entry.js} +1 -1
  373. package/lib/duet/p-600b6b9f.entry.js +4 -0
  374. package/lib/duet/{p-ce1ee182.entry.js → p-630e7601.entry.js} +1 -1
  375. package/lib/duet/{p-185cd6bd.system.entry.js → p-630fd37d.system.entry.js} +1 -1
  376. package/lib/duet/{p-c3a69e37.js → p-63675f5c.js} +1 -1
  377. package/lib/duet/{p-ef731dfb.system.js → p-64959c1d.system.js} +1 -1
  378. package/lib/duet/{p-1d94d37d.system.entry.js → p-64f9793b.system.entry.js} +1 -1
  379. package/lib/duet/{p-1d32c95c.system.entry.js → p-6722009a.system.entry.js} +1 -1
  380. package/lib/duet/{p-f64e1189.system.entry.js → p-67cccb20.system.entry.js} +1 -1
  381. package/lib/duet/{p-706f68c0.entry.js → p-6dcdd126.entry.js} +1 -1
  382. package/lib/duet/{p-c0137b84.system.entry.js → p-6e2b62bf.system.entry.js} +1 -1
  383. package/lib/duet/{p-fd3af4d2.entry.js → p-700a2c3e.entry.js} +1 -1
  384. package/lib/duet/{p-1b031645.system.entry.js → p-71639b6e.system.entry.js} +1 -1
  385. package/lib/duet/{p-c4204738.entry.js → p-7186b899.entry.js} +1 -1
  386. package/lib/duet/{p-10e56ab2.entry.js → p-71c75b42.entry.js} +1 -1
  387. package/lib/duet/{p-32a2d722.entry.js → p-71fe9d70.entry.js} +1 -1
  388. package/lib/duet/{p-1515a887.entry.js → p-72ce083f.entry.js} +1 -1
  389. package/lib/duet/{p-0b3cb828.system.entry.js → p-739a8ad7.system.entry.js} +1 -1
  390. package/lib/duet/{p-5ede36ae.entry.js → p-7476c2a6.entry.js} +1 -1
  391. package/lib/duet/{p-926266f1.system.entry.js → p-760c9e95.system.entry.js} +2 -2
  392. package/lib/duet/{p-1c2eb6d0.system.entry.js → p-77163df8.system.entry.js} +1 -1
  393. package/lib/duet/{p-74331989.system.entry.js → p-799a3c7b.system.entry.js} +1 -1
  394. package/lib/duet/{p-bd6a9171.system.entry.js → p-7bd75507.system.entry.js} +1 -1
  395. package/lib/duet/{p-7a2f8df9.entry.js → p-7ff31aac.entry.js} +1 -1
  396. package/lib/duet/{p-6372e73b.entry.js → p-801fd1e1.entry.js} +1 -1
  397. package/lib/duet/{p-f1ba5666.system.entry.js → p-80b1d485.system.entry.js} +1 -1
  398. package/lib/duet/{p-776ed377.system.entry.js → p-815520c1.system.entry.js} +1 -1
  399. package/lib/duet/{p-54188be3.system.entry.js → p-83114a6d.system.entry.js} +1 -1
  400. package/lib/duet/{p-e7185338.entry.js → p-834cbeea.entry.js} +1 -1
  401. package/lib/duet/{p-50a13103.system.entry.js → p-86b908de.system.entry.js} +1 -1
  402. package/lib/duet/{p-c44b5ed2.system.entry.js → p-8a388f5b.system.entry.js} +1 -1
  403. package/lib/duet/p-8a5bd61a.js +4 -0
  404. package/lib/duet/{p-f2d5c69e.system.js → p-90dad2bc.system.js} +1 -1
  405. package/lib/duet/{p-a2fa6a72.system.entry.js → p-9141866f.system.entry.js} +1 -1
  406. package/lib/duet/{p-3bb14438.entry.js → p-933894b9.entry.js} +1 -1
  407. package/lib/duet/{p-7cb195ba.entry.js → p-946b9f45.entry.js} +1 -1
  408. package/lib/duet/p-9508ee67.system.js +4 -0
  409. package/lib/duet/{p-6cbe31c3.system.entry.js → p-97b94b88.system.entry.js} +1 -1
  410. package/lib/duet/{p-453f791b.system.entry.js → p-97ff0a20.system.entry.js} +1 -1
  411. package/lib/duet/{p-4f0be726.system.entry.js → p-985a89d4.system.entry.js} +1 -1
  412. package/lib/duet/{p-1144fc8e.system.entry.js → p-9b2636f0.system.entry.js} +1 -1
  413. package/lib/duet/p-9d336f77.system.js +4 -0
  414. package/lib/duet/{p-495e7223.system.entry.js → p-9edfcaf6.system.entry.js} +1 -1
  415. package/lib/duet/{p-db36e60c.entry.js → p-a0703d11.entry.js} +1 -1
  416. package/lib/duet/{p-50c18c14.system.js → p-a0a62431.system.js} +1 -1
  417. package/lib/duet/{p-73eb17ac.entry.js → p-a31a969b.entry.js} +1 -1
  418. package/lib/duet/{p-0af2a9fd.entry.js → p-a420b2d1.entry.js} +1 -1
  419. package/lib/duet/{p-ce25bba1.entry.js → p-a438841c.entry.js} +1 -1
  420. package/lib/duet/{p-da4450d1.system.entry.js → p-a671f12e.system.entry.js} +1 -1
  421. package/lib/duet/p-a7a13290.entry.js +4 -0
  422. package/lib/duet/{p-15560f1b.entry.js → p-a9b1974d.entry.js} +1 -1
  423. package/lib/duet/{p-56c617ae.entry.js → p-ab0bf0f4.entry.js} +1 -1
  424. package/lib/duet/p-acb3b427.system.entry.js +4 -0
  425. package/lib/duet/{p-0071a5b9.system.entry.js → p-b0839ac6.system.entry.js} +1 -1
  426. package/lib/duet/{p-a234eaa5.system.entry.js → p-b1242cfd.system.entry.js} +1 -1
  427. package/lib/duet/{p-f6c64bac.entry.js → p-b1a2f837.entry.js} +1 -1
  428. package/lib/duet/{p-dee5d396.system.entry.js → p-b26f5296.system.entry.js} +1 -1
  429. package/lib/duet/{p-2d73a182.entry.js → p-b31efa7d.entry.js} +1 -1
  430. package/lib/duet/{p-579d96f9.system.entry.js → p-b4cfa7bb.system.entry.js} +1 -1
  431. package/lib/duet/{p-f4a74e37.entry.js → p-b53d454b.entry.js} +1 -1
  432. package/lib/duet/{p-ed3748dc.js → p-b54f9b74.js} +1 -1
  433. package/lib/duet/{p-d01c4f4b.entry.js → p-b5d3ae06.entry.js} +1 -1
  434. package/lib/duet/{p-9b7649d6.system.entry.js → p-b5fe55fe.system.entry.js} +1 -1
  435. package/lib/duet/{p-0e883b85.entry.js → p-b7646687.entry.js} +1 -1
  436. package/lib/duet/{p-99e02dad.entry.js → p-b8c6086f.entry.js} +1 -1
  437. package/lib/duet/{p-63fef46e.system.entry.js → p-ba8e2d0a.system.entry.js} +1 -1
  438. package/lib/duet/{p-04f1897d.system.entry.js → p-bb6aee0a.system.entry.js} +1 -1
  439. package/lib/duet/{p-611dd17d.entry.js → p-bbfe0fc7.entry.js} +1 -1
  440. package/lib/duet/{p-24bace56.entry.js → p-bc4acf3c.entry.js} +1 -1
  441. package/lib/duet/{p-792c9b83.system.entry.js → p-bc7d623e.system.entry.js} +1 -1
  442. package/lib/duet/{p-5c8ad4d6.system.entry.js → p-bc923039.system.entry.js} +1 -1
  443. package/lib/duet/{p-8d19eece.entry.js → p-be301324.entry.js} +1 -1
  444. package/lib/duet/{p-afd26f78.entry.js → p-c15b13a7.entry.js} +1 -1
  445. package/lib/duet/{p-d6806be3.system.entry.js → p-c387c23d.system.entry.js} +1 -1
  446. package/lib/duet/p-c854531e.system.entry.js +4 -0
  447. package/lib/duet/{p-3a85f7b2.system.entry.js → p-c8cad658.system.entry.js} +1 -1
  448. package/lib/duet/{p-7f03dd39.entry.js → p-ccfce1f5.entry.js} +1 -1
  449. package/lib/duet/p-cd16c798.system.entry.js +4 -0
  450. package/lib/duet/{p-fff58939.entry.js → p-cd3bd02d.entry.js} +1 -1
  451. package/lib/duet/{p-ae0b5812.entry.js → p-cf66bd19.entry.js} +1 -1
  452. package/lib/duet/p-cfa74eff.js +4 -0
  453. package/lib/duet/{p-33433426.system.entry.js → p-d10be375.system.entry.js} +1 -1
  454. package/lib/duet/{p-7f85afa0.entry.js → p-d21b4ed5.entry.js} +1 -1
  455. package/lib/duet/{p-f6000a03.js → p-d32bd233.js} +1 -1
  456. package/lib/duet/{p-a0e30584.entry.js → p-d6d0230a.entry.js} +1 -1
  457. package/lib/duet/p-d7f543fb.js +4 -0
  458. package/lib/duet/p-d8861775.system.js +4 -0
  459. package/lib/duet/{p-d159fb1f.system.entry.js → p-d8a4ec3a.system.entry.js} +1 -1
  460. package/lib/duet/{p-4118597d.entry.js → p-d8c070da.entry.js} +1 -1
  461. package/lib/duet/p-d997b605.system.js +4 -0
  462. package/lib/duet/p-daf57f21.entry.js +4 -0
  463. package/lib/duet/{p-5475be04.entry.js → p-dc844ded.entry.js} +1 -1
  464. package/lib/duet/{p-a4c84b87.system.entry.js → p-df163adc.system.entry.js} +1 -1
  465. package/lib/duet/p-df6faea3.entry.js +4 -0
  466. package/lib/duet/{p-51e5cc18.system.entry.js → p-e180ccbf.system.entry.js} +1 -1
  467. package/lib/duet/{p-8b570e72.system.entry.js → p-e24cf47d.system.entry.js} +1 -1
  468. package/lib/duet/{p-50551117.system.entry.js → p-e35fa4c0.system.entry.js} +1 -1
  469. package/lib/duet/{p-f51c3456.entry.js → p-e59aa740.entry.js} +1 -1
  470. package/lib/duet/{p-60c66aa9.entry.js → p-e72daab4.entry.js} +1 -1
  471. package/lib/duet/{p-bc20b234.system.entry.js → p-e78deb4d.system.entry.js} +1 -1
  472. package/lib/duet/{p-a7e80b9d.system.entry.js → p-e7ca4c2a.system.entry.js} +1 -1
  473. package/lib/duet/{p-b6f08326.entry.js → p-e80aa07c.entry.js} +1 -1
  474. package/lib/duet/{p-77d28810.system.entry.js → p-e82e56d1.system.entry.js} +1 -1
  475. package/lib/duet/p-e8532ea6.js +4 -0
  476. package/lib/duet/{p-4d7186ca.system.entry.js → p-e981142d.system.entry.js} +1 -1
  477. package/lib/duet/{p-a6e8ceb0.system.entry.js → p-ea419ab1.system.entry.js} +1 -1
  478. package/lib/duet/{p-0217b93f.system.entry.js → p-eac48d1e.system.entry.js} +1 -1
  479. package/lib/duet/{p-2fafdd81.entry.js → p-ec025b1a.entry.js} +1 -1
  480. package/lib/duet/{p-2c7d99df.system.entry.js → p-ec6820d3.system.entry.js} +1 -1
  481. package/lib/duet/{p-7443f659.system.entry.js → p-ee209df1.system.entry.js} +1 -1
  482. package/lib/duet/{p-8b301afb.entry.js → p-ee2ad3a0.entry.js} +1 -1
  483. package/lib/duet/{p-67e6cff0.system.entry.js → p-ef35aa03.system.entry.js} +1 -1
  484. package/lib/duet/{p-5c3f4962.system.entry.js → p-efb38f60.system.entry.js} +2 -2
  485. package/lib/duet/{p-34569fd2.entry.js → p-efdcb86f.entry.js} +1 -1
  486. package/lib/duet/{p-6d5e9383.entry.js → p-f075d310.entry.js} +1 -1
  487. package/lib/duet/{p-5940d019.entry.js → p-f3285f42.entry.js} +1 -1
  488. package/lib/duet/{p-3b2c0995.system.entry.js → p-f46c78c3.system.entry.js} +1 -1
  489. package/lib/duet/{p-05931a12.system.entry.js → p-fa2753c1.system.entry.js} +1 -1
  490. package/lib/duet/{p-f7a870e4.entry.js → p-fc16a9c7.entry.js} +1 -1
  491. package/lib/duet/{p-0bc30861.system.entry.js → p-fc7fd7e4.system.entry.js} +1 -1
  492. package/lib/duet/{p-49ee5283.entry.js → p-fcd270af.entry.js} +1 -1
  493. package/lib/duet/{p-5c870999.entry.js → p-fe1cf73e.entry.js} +1 -1
  494. package/lib/duet/p-fe982640.entry.js +4 -0
  495. package/lib/duet/p-ff1194f7.system.js +4 -0
  496. package/lib/duet/{p-d30e2e4f.system.entry.js → p-ff643468.system.entry.js} +1 -1
  497. package/lib/duet/{p-e874b49c.entry.js → p-ffc592b1.entry.js} +1 -1
  498. package/lib/esm/{a11y-utils-3b7c95b9.js → a11y-utils-02146774.js} +1 -1
  499. package/lib/esm/{app-globals-2c6c1103.js → app-globals-3f3fcf1f.js} +1 -1
  500. package/lib/esm/duet-action-button.entry.js +4 -4
  501. package/lib/esm/duet-alert.entry.js +3 -3
  502. package/lib/esm/duet-badge.entry.js +1 -1
  503. package/lib/esm/duet-banner.entry.js +4 -4
  504. package/lib/esm/duet-breadcrumb.entry.js +2 -2
  505. package/lib/esm/duet-breadcrumbs.entry.js +4 -4
  506. package/lib/esm/duet-button_2.entry.js +4 -4
  507. package/lib/esm/duet-callout.entry.js +2 -2
  508. package/lib/esm/duet-caption_4.entry.js +10 -9
  509. package/lib/esm/duet-card.entry.js +4 -4
  510. package/lib/esm/duet-checkbox.entry.js +1 -1
  511. package/lib/esm/duet-checkmark.entry.js +1 -1
  512. package/lib/esm/duet-chip.entry.js +2 -2
  513. package/lib/esm/duet-choice_2.entry.js +3 -3
  514. package/lib/esm/duet-collapsible.entry.js +3 -3
  515. package/lib/esm/duet-combobox.entry.js +3 -3
  516. package/lib/esm/duet-contact-card.entry.js +2 -2
  517. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  518. package/lib/esm/duet-date-picker.entry.js +4 -4
  519. package/lib/esm/duet-divider_2.entry.js +3 -3
  520. package/lib/esm/duet-editable-table_3.entry.js +5 -5
  521. package/lib/esm/duet-empty-state.entry.js +1 -1
  522. package/lib/esm/duet-fieldset.entry.js +2 -2
  523. package/lib/esm/duet-file-chooser.entry.js +1 -1
  524. package/lib/esm/duet-footer.entry.js +3 -3
  525. package/lib/esm/duet-grid_2.entry.js +46 -42
  526. package/lib/esm/duet-header_2.entry.js +4 -4
  527. package/lib/esm/duet-hero.entry.js +3 -3
  528. package/lib/esm/duet-icon.entry.js +3 -3
  529. package/lib/esm/duet-input_2.entry.js +5 -5
  530. package/lib/esm/duet-layout.entry.js +2 -2
  531. package/lib/esm/duet-list_2.entry.js +2 -2
  532. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  533. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +2 -2
  534. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  535. package/lib/esm/duet-menu-bar-item.entry.js +4 -4
  536. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  537. package/lib/esm/duet-menu-bar.entry.js +3 -3
  538. package/lib/esm/duet-modal.entry.js +4 -4
  539. package/lib/esm/duet-multiselect.entry.js +3 -3
  540. package/lib/esm/duet-nav.entry.js +1 -1
  541. package/lib/esm/duet-notification_2.entry.js +2 -2
  542. package/lib/esm/duet-number-input.entry.js +3 -3
  543. package/lib/esm/duet-overlay.entry.js +1 -1
  544. package/lib/esm/duet-page-heading.entry.js +1 -1
  545. package/lib/esm/duet-pagination_2.entry.js +4 -4
  546. package/lib/esm/duet-phone-input.entry.js +3 -3
  547. package/lib/esm/duet-popup-menu_2.entry.js +12 -9
  548. package/lib/esm/duet-progress.entry.js +2 -2
  549. package/lib/esm/duet-promo-card.entry.js +4 -4
  550. package/lib/esm/duet-radio_2.entry.js +3 -3
  551. package/lib/esm/duet-range-slider.entry.js +2 -2
  552. package/lib/esm/duet-scrollable_3.entry.js +5 -5
  553. package/lib/esm/duet-section-layout.entry.js +1 -1
  554. package/lib/esm/duet-select.entry.js +2 -2
  555. package/lib/esm/duet-shaped-image.entry.js +1 -1
  556. package/lib/esm/duet-show-more.entry.js +2 -2
  557. package/lib/esm/duet-slideout-lang.entry.js +2 -2
  558. package/lib/esm/duet-slideout-link.entry.js +4 -4
  559. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  560. package/lib/esm/duet-slideout-panel.entry.js +6 -6
  561. package/lib/esm/duet-slideout.entry.js +6 -6
  562. package/lib/esm/duet-status-icon.entry.js +2 -2
  563. package/lib/esm/duet-step_2.entry.js +1 -1
  564. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  565. package/lib/esm/duet-submenu-bar-dropdown.entry.js +2 -2
  566. package/lib/esm/duet-submenu-bar-item.entry.js +4 -4
  567. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  568. package/lib/esm/duet-submenu-bar.entry.js +2 -2
  569. package/lib/esm/duet-textarea.entry.js +3 -3
  570. package/lib/esm/duet-toggle.entry.js +1 -1
  571. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  572. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  573. package/lib/esm/duet-toolbar-item.entry.js +4 -4
  574. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  575. package/lib/esm/duet-toolbar.entry.js +1 -1
  576. package/lib/esm/duet-tooltip-button_2.entry.js +7 -6
  577. package/lib/esm/duet-tooltip.entry.js +4 -4
  578. package/lib/esm/duet-tray.entry.js +5 -5
  579. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  580. package/lib/esm/duet-upload-item.entry.js +3 -3
  581. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  582. package/lib/esm/duet.js +4 -4
  583. package/lib/esm/{errorcodes.utils-86af68b7.js → errorcodes.utils-0b711abe.js} +1 -1
  584. package/lib/esm/{floating-ui.dom.esm-ebc91b33.js → floating-ui.dom.esm-ef361ca5.js} +50 -27
  585. package/lib/esm/{focus-utils-9bbe977f.js → focus-utils-59c3798e.js} +1 -1
  586. package/lib/esm/{index-a830b2de.js → index-dd60f5fc.js} +1 -1
  587. package/lib/esm/{language-utils-40caac4f.js → language-utils-47475a59.js} +1 -1
  588. package/lib/esm/loader.js +4 -4
  589. package/lib/esm/{slot-utils-a481f2c6.js → slot-utils-205a8937.js} +1 -1
  590. package/lib/esm/{token-utils-a32eb753.js → token-utils-7360bb84.js} +1 -1
  591. package/lib/esm/{tokens-84fb2357.js → tokens-85fb95d1.js} +3 -3
  592. package/lib/esm/{tokens.module-a746651a.js → tokens.module-821694bb.js} +2 -2
  593. package/lib/{dist-custom-elements/p-7d8a2628.js → esm/watch-options-e22542d2.js} +1 -20
  594. package/lib/esm-es5/{a11y-utils-3b7c95b9.js → a11y-utils-02146774.js} +1 -1
  595. package/lib/esm-es5/{app-globals-2c6c1103.js → app-globals-3f3fcf1f.js} +1 -1
  596. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  597. package/lib/esm-es5/duet-alert.entry.js +1 -1
  598. package/lib/esm-es5/duet-badge.entry.js +1 -1
  599. package/lib/esm-es5/duet-banner.entry.js +1 -1
  600. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  601. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  602. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  603. package/lib/esm-es5/duet-callout.entry.js +1 -1
  604. package/lib/esm-es5/duet-caption_4.entry.js +2 -2
  605. package/lib/esm-es5/duet-card.entry.js +1 -1
  606. package/lib/esm-es5/duet-checkbox.entry.js +2 -2
  607. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  608. package/lib/esm-es5/duet-chip.entry.js +1 -1
  609. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  610. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  611. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  612. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  613. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  614. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  615. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  616. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  617. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  618. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  619. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  620. package/lib/esm-es5/duet-footer.entry.js +1 -1
  621. package/lib/esm-es5/duet-grid_2.entry.js +2 -2
  622. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  623. package/lib/esm-es5/duet-hero.entry.js +1 -1
  624. package/lib/esm-es5/duet-icon.entry.js +1 -1
  625. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  626. package/lib/esm-es5/duet-layout.entry.js +1 -1
  627. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  628. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  629. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  630. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  631. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  632. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  633. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  634. package/lib/esm-es5/duet-modal.entry.js +1 -1
  635. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  636. package/lib/esm-es5/duet-nav.entry.js +1 -1
  637. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  638. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  639. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  640. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  641. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  642. package/lib/esm-es5/duet-phone-input.entry.js +1 -1
  643. package/lib/esm-es5/duet-popup-menu_2.entry.js +1 -1
  644. package/lib/esm-es5/duet-progress.entry.js +1 -1
  645. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  646. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  647. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  648. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  649. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  650. package/lib/esm-es5/duet-select.entry.js +1 -1
  651. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  652. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  653. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  654. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  655. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  656. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  657. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  658. package/lib/esm-es5/duet-status-icon.entry.js +1 -1
  659. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  660. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  661. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  662. package/lib/esm-es5/duet-submenu-bar-item.entry.js +1 -1
  663. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  664. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  665. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  666. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  667. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  668. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  669. package/lib/esm-es5/duet-toolbar-item.entry.js +1 -1
  670. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  671. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  672. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  673. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  674. package/lib/esm-es5/duet-tray.entry.js +1 -1
  675. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  676. package/lib/esm-es5/duet-upload-item.entry.js +2 -2
  677. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  678. package/lib/esm-es5/duet.js +1 -1
  679. package/lib/esm-es5/{errorcodes.utils-86af68b7.js → errorcodes.utils-0b711abe.js} +1 -1
  680. package/lib/esm-es5/floating-ui.dom.esm-ef361ca5.js +4 -0
  681. package/lib/esm-es5/focus-utils-59c3798e.js +4 -0
  682. package/lib/esm-es5/{index-a830b2de.js → index-dd60f5fc.js} +1 -1
  683. package/lib/esm-es5/{language-utils-40caac4f.js → language-utils-47475a59.js} +1 -1
  684. package/lib/esm-es5/loader.js +1 -1
  685. package/lib/esm-es5/{slot-utils-a481f2c6.js → slot-utils-205a8937.js} +1 -1
  686. package/lib/esm-es5/{token-utils-a32eb753.js → token-utils-7360bb84.js} +1 -1
  687. package/lib/esm-es5/{tokens-84fb2357.js → tokens-85fb95d1.js} +1 -1
  688. package/lib/esm-es5/{tokens.module-a746651a.js → tokens.module-821694bb.js} +1 -1
  689. package/lib/esm-es5/watch-options-e22542d2.js +4 -0
  690. package/lib/types/common-types.d.ts +1 -1
  691. package/lib/types/components/duet-grid/duet-grid.d.ts +4 -4
  692. package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +1 -1
  693. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +1 -1
  694. package/lib/types/components.d.ts +4 -4
  695. package/package.json +4 -4
  696. package/lib/duet/p-055e24d8.system.entry.js +0 -4
  697. package/lib/duet/p-0dc9089b.system.js +0 -4
  698. package/lib/duet/p-10c530d1.js +0 -4
  699. package/lib/duet/p-1cb66641.js +0 -4
  700. package/lib/duet/p-22064e74.entry.js +0 -4
  701. package/lib/duet/p-2683cdc8.entry.js +0 -4
  702. package/lib/duet/p-2e346b26.system.entry.js +0 -4
  703. package/lib/duet/p-4a3dae6f.js +0 -4
  704. package/lib/duet/p-5080b864.system.entry.js +0 -4
  705. package/lib/duet/p-5577da59.system.js +0 -4
  706. package/lib/duet/p-61ac836c.system.js +0 -4
  707. package/lib/duet/p-6e1f8ca5.system.entry.js +0 -4
  708. package/lib/duet/p-718585c1.entry.js +0 -4
  709. package/lib/duet/p-79d7199e.entry.js +0 -4
  710. package/lib/duet/p-7d8a2628.js +0 -4
  711. package/lib/duet/p-81287261.js +0 -4
  712. package/lib/duet/p-81c3bbcc.system.entry.js +0 -4
  713. package/lib/duet/p-a0a5581f.js +0 -4
  714. package/lib/duet/p-a62f7dce.entry.js +0 -4
  715. package/lib/duet/p-afad5fd3.system.js +0 -4
  716. package/lib/duet/p-cbbf6d6a.system.js +0 -4
  717. package/lib/duet/p-dcc6df5e.entry.js +0 -4
  718. package/lib/duet/p-e4c8559c.system.js +0 -4
  719. package/lib/esm-es5/floating-ui.dom.esm-ebc91b33.js +0 -4
  720. package/lib/esm-es5/focus-utils-9bbe977f.js +0 -4
  721. package/lib/esm-es5/watch-options-e96ecd92.js +0 -4
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,i,a){function n(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(a.next(t))}catch(t){s(t)}}function o(t){try{u(a["throw"](t))}catch(t){s(t)}}function u(t){t.done?i(t.value):n(t.value).then(r,o)}u((a=a.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:[]},a,n,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(a)throw new TypeError("Generator is already executing.");while(r&&(r=0,o[0]&&(i=0)),i)try{if(a=1,n&&(s=o[0]&2?n["return"]:o[0]?n["throw"]||((s=n["return"])&&s.call(n),0):n.next)&&!(s=s.call(n,o[1])).done)return s;if(n=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++;n=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];n=0}finally{a=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */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-a32eb753.js";import"./tokens.module-a746651a.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(a){switch(a.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:a.sent();a.label=4;case 4:return[2,true]}}))}))};this.emitPageEvent=function(t,i){var a=Number(i||e.current);e.duetPageChange.emit({component:"duet-pagination",from:a*e.take,to:a*e.take+e.take,current:a,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 a=this.take*this.visibleItems;if(i*a>this.total){i=this.internalSectionIndex}var n=i;this.internalSectionIndex=n>=0?n: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 a=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)}});return h("li",null,a,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:"bbd85aaf7cec037863e62449e53dc79850615e68",onKeyDown:function(t){return e.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},h("nav",{key:"c94a34a3f69d9f743499a00ace0f273ecc64384a",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:"ed7656da1a3a9f606cc63018833c8ad54fd2da2a","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:"c2457234d5e4827da9730d753f05d5a8d1c06756",theme:this.theme},"jump to page : ",this.numbersStore)),h("ol",{key:"86efc4ee55dcd2ac47af68e39db42f26e8b2e8fe",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:"e6e7af25d894edcf0549bc37c437952f6e2a5768",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"4b68b2b1661169ab04879656a2e965a50f9f1849",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:"e118983480f408814517696235620d6ca7c52e28",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"952f820c61dbd46f107da9982473c44c92d1654b",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:"64b3f4da24ce028db1125795596beaf6cfd65aeb"},h("li",{key:"c477461d7d68392025f704c5a2df666822b3c1c4",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"8198df04fb593ebcf8a50918c8ffd3fc96bce3bc",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:"0d1ecd17b7660a6c2ca5ead362b19a39922526f1",class:"duet-pagination-page-number"},"1"))),h("li",{key:"068cc3aa779f838d88e5946716ac2179bd7284c7",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"a3737335bec51de3f6721d2ebd59fa005d8bf3b3",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:"403386bfcdb3933adefbbff420f237daa67c2480",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:"b8f9ec799fc41d772075e4cf385cbb2805168fcd"},(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&h("li",{key:"ba47f6c267f218fddf7ef826806e3bd77a72d52f",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"e04c5a6f32318c61562edd6303e049294a3af437",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:"0f3ec8318ff63e99860219c2f25d0b70068be1a3",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),h("li",{key:"59c7ba37271b7c8dfb09f8bc251160519adaa324",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"ba66d5bd4910f5f0e3afabb3856e55d9d8a1c734",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:"fc7212709dc3ed1839226979c3cd3b123bd3c9af",class:"duet-pagination-page-number"},this.totalPages)))),h("li",{key:"49845c246a1bc03efc19cc2fb0d72f1d002edad6",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"63003ee428957aabe687072ab56094d17d00c6a6",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:"4017283c7ba18818612767cf4d1c940bb13bbaba",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"9625bd8c9071ec35ed43439fbb84334e04f071da",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(a){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:"fa2c2642d5a39d629ac91c1bba26a684b132847e",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:"b13479a4081d1c96598a9a6a155a7ba13bb571a7",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),h("duet-action-button",{key:"929da802a06c142ef0bf763b8d1ef05ddf296c8a",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:"cb496f9a6d6776c1083ca280ad2770c6f8ca489b",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};
4
+ */import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-dd60f5fc.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-47475a59.js";import{p as parsePossibleJSON}from"./string-utils-192eb3c8.js";import{b as breakpointTokensUpTo,a as breakpointToToken}from"./token-utils-7360bb84.js";import"./tokens.module-821694bb.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(a){switch(a.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:a.sent();a.label=4;case 4:return[2,true]}}))}))};this.emitPageEvent=function(t,i){var a=Number(i||e.current);e.duetPageChange.emit({component:"duet-pagination",from:a*e.take,to:a*e.take+e.take,current:a,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 a=this.take*this.visibleItems;if(i*a>this.total){i=this.internalSectionIndex}var n=i;this.internalSectionIndex=n>=0?n: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 a=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)}});return h("li",null,a,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:"bbd85aaf7cec037863e62449e53dc79850615e68",onKeyDown:function(t){return e.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},h("nav",{key:"c94a34a3f69d9f743499a00ace0f273ecc64384a",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:"ed7656da1a3a9f606cc63018833c8ad54fd2da2a","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:"c2457234d5e4827da9730d753f05d5a8d1c06756",theme:this.theme},"jump to page : ",this.numbersStore)),h("ol",{key:"86efc4ee55dcd2ac47af68e39db42f26e8b2e8fe",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:"e6e7af25d894edcf0549bc37c437952f6e2a5768",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"4b68b2b1661169ab04879656a2e965a50f9f1849",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:"e118983480f408814517696235620d6ca7c52e28",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"952f820c61dbd46f107da9982473c44c92d1654b",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:"64b3f4da24ce028db1125795596beaf6cfd65aeb"},h("li",{key:"c477461d7d68392025f704c5a2df666822b3c1c4",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"8198df04fb593ebcf8a50918c8ffd3fc96bce3bc",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:"0d1ecd17b7660a6c2ca5ead362b19a39922526f1",class:"duet-pagination-page-number"},"1"))),h("li",{key:"068cc3aa779f838d88e5946716ac2179bd7284c7",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"a3737335bec51de3f6721d2ebd59fa005d8bf3b3",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:"403386bfcdb3933adefbbff420f237daa67c2480",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:"b8f9ec799fc41d772075e4cf385cbb2805168fcd"},(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&h("li",{key:"ba47f6c267f218fddf7ef826806e3bd77a72d52f",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"e04c5a6f32318c61562edd6303e049294a3af437",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:"0f3ec8318ff63e99860219c2f25d0b70068be1a3",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),h("li",{key:"59c7ba37271b7c8dfb09f8bc251160519adaa324",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"ba66d5bd4910f5f0e3afabb3856e55d9d8a1c734",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:"fc7212709dc3ed1839226979c3cd3b123bd3c9af",class:"duet-pagination-page-number"},this.totalPages)))),h("li",{key:"49845c246a1bc03efc19cc2fb0d72f1d002edad6",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"63003ee428957aabe687072ab56094d17d00c6a6",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:"4017283c7ba18818612767cf4d1c940bb13bbaba",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"9625bd8c9071ec35ed43439fbb84334e04f071da",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(a){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:"fa2c2642d5a39d629ac91c1bba26a684b132847e",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:"b13479a4081d1c96598a9a6a155a7ba13bb571a7",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),h("duet-action-button",{key:"929da802a06c142ef0bf763b8d1ef05ddf296c8a",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:"cb496f9a6d6776c1083ca280ad2770c6f8ca489b",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 +1,4 @@
1
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
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-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-a481f2c6.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};
4
+ */import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-dd60f5fc.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-47475a59.js";import{c as checkNamedSlotElement}from"./slot-utils-205a8937.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};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function o(e){try{u(n.next(e))}catch(e){s(e)}}function a(e){try{u(n["throw"](e))}catch(e){s(e)}}function u(e){e.done?i(e.value):r(e.value).then(o,a)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(i=0)),i)try{if(n=1,r&&(s=a[0]&2?r["return"]:a[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,a[1])).done)return s;if(r=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){i.label=a[1];break}if(a[0]===6&&i.label<s[1]){i.label=s[1];s=a;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(a);break}if(s[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-a830b2de.js";import{q as spaceXSmall}from"./tokens.module-a746651a.js";import{o as offset,f as flip,s as shift,c as computePosition,b as autoUpdate}from"./floating-ui.dom.esm-ebc91b33.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{f as focusElement}from"./focus-utils-9bbe977f.js";import{c as isArrowDownKey,f as isEscapeKey,b as isArrowUpKey,o as isTabKey}from"./keyboard-utils-daf80d44.js";import{a as getLanguage}from"./language-utils-40caac4f.js";import{T as Teleport}from"./teleport-aa27d5f9.js";import{a as actionNewWindowSmall}from"./action-new-window-small-1945be91.js";import"./string-utils-192eb3c8.js";var duetPopupMenuCss="*,*::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-popup-menu-list{position:absolute;top:0;left:0;z-index:950;width:max-content;min-width:175px;padding:8px;margin:0;color:rgb(8, 42, 77);list-style:none;visibility:hidden !important;background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:transform 300ms ease, visibility 300ms ease, opacity 300ms ease;transform:scaleY(0);transform-origin:top center}.duet-popup-menu-list.open{visibility:visible !important;opacity:1;transform:scaleY(1)}.duet-popup-menu-list.fixed{position:fixed}.duet-popup-menu-list.scroll-visible{overflow-y:scroll;scroll-margin:20px}.duet-popup-menu-list.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255)}::slotted(duet-notification){max-width:360px}";var DuetPopupMenuStyle0=duetPopupMenuCss;var DuetPopupMenu=function(){function e(e){var t=this;registerInstance(this,e);this.duetToggle=createEvent(this,"duetToggle",7);this.filterLabel={en:"Filter menu",fi:"Suodata valikkoa",sv:"Filtrera meny"};this.filterResultCountLabel={en:"items match filter",fi:"kohtaa vastaa suodatinta",sv:"menyalternativ matchar filtret"};this.setOpenButton=function(e){if(!e){return}try{var i=e;i.accessiblePopup="true";i.accessibleExpanded=false;if(t.controllerIcon){i.setAttribute("trailing-icon","action-arrow-down-small")}t.openButton=i}catch(e){}};this.openButtonEventListener=function(){t.toggle()};this.updatePlacement=function(){return __awaiter(t,void 0,void 0,(function(){var e,t;return __generator(this,(function(i){switch(i.label){case 0:if(!this.openButton){return[2]}e=[offset({mainAxis:this.mainAxisOffset,crossAxis:this.crossAxisOffset}),this.allowVerticalFlip&&flip(),shift({padding:5})].filter(Boolean);return[4,computePosition(this.openButton,this.menuElement,{middleware:e,placement:this.placement,strategy:this.position})];case 1:t=i.sent();this.menuY=t.y;this.menuX=t.x;return[2]}}))}))};this.getNonFilteredItems=function(){return t.showFilterInput?t.itemElements.filter((function(e){return e.style.display!=="none"})):t.itemElements};this.filterItems=function(){var e;var i=(e=t.filterInput.value)===null||e===void 0?void 0:e.toLocaleLowerCase();var n=t.itemElements;n.forEach((function(e){var t;e.style.display=!i||e.textContent.toLowerCase().includes(i)||((t=e.value)===null||t===void 0?void 0:t.toLowerCase().includes(i))?"":"none"}));t.filterResultCount=n.filter((function(e){return e.style.display!=="none"})).length};this.handleKeyDownOnFilter=function(e){var i;if(isArrowDownKey(e)){(i=t.getNonFilteredItems()[0])===null||i===void 0?void 0:i.setFocus()}};this.open=false;this.menuY=undefined;this.menuX=undefined;this.filterResultCount=undefined;this.language=getLanguage();this.accessibleLabel=undefined;this.accessibleRole="menu";this.theme="";this.skipTeleport=undefined;this.placement="bottom-start";this.forcePlacement=false;this.allowVerticalFlip=true;this.position="absolute";this.mainAxisOffset=0;this.crossAxisOffset=0;this.controllerIcon="action-arrow-down-small";this.scrollLimit=undefined;this.showFilterInput=undefined}Object.defineProperty(e.prototype,"controller",{get:function(){return this._controller},set:function(e){if(this._controller===e){return}this._controller=e;if(typeof e==="string"){this.setOpenButton(document.getElementById(e));if(this.openButton){this.openButton.addEventListener("click",this.openButtonEventListener)}}else{this.setOpenButton(e)}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"opener",{get:function(){return this._controller},set:function(e){this.controller=e},enumerable:false,configurable:true});e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.componentDidLoad=function(){{this.updatePlacement()}};e.prototype.connectedCallback=function(){if(!this.teleport){this.teleport=new Teleport(this.element)}if(this.teleport){this.teleport.activate()}};e.prototype.disconnectedCallback=function(){if(this.autoUpdateCleanup){this.autoUpdateCleanup()}if(this.openButton){this.openButton.removeEventListener("click",this.openButtonEventListener);if(this.controllerIcon){this.openButton.removeAttribute("trailing-icon")}}};e.prototype.handleKeyUp=function(e){if(this.open){if(isEscapeKey(e)){this.hide()}}};e.prototype.handleKeyDown=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,i;return __generator(this,(function(n){switch(n.label){case 0:t=this.getNonFilteredItems();if(!this.open)return[3,5];if(!isArrowDownKey(e))return[3,2];e.preventDefault();return[4,this.getFocusedItemIndex()];case 1:i=n.sent();if(i!==-1){if(i<t.length-1){t[i+1].setFocus()}else{t[0].setFocus()}}n.label=2;case 2:if(!isArrowUpKey(e))return[3,4];e.preventDefault();return[4,this.getFocusedItemIndex()];case 3:i=n.sent();if(i!==-1){if(i===0){if(this.showFilterInput){this.filterInput.setFocus()}else{t[t.length-1].setFocus()}}else{t[i-1].setFocus()}}n.label=4;case 4:if(isTabKey(e)&&this.accessibleRole==="menu"){e.preventDefault();this.hide()}n.label=5;case 5:return[2]}}))}))};e.prototype.handleClick=function(e){var t=this;var i=e.composedPath().every((function(e){return e!==t.element&&e!==t.openButton}));if(this.open&&i){this.hide()}};e.prototype.isOpen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.open]}))}))};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){if(this.autoUpdateCleanup){this.autoUpdateCleanup()}this.open=false;return[2]}))}))};e.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.open){this.hide()}else{this.show()}return[2]}))}))};e.prototype.handleOpenChange=function(e,t){var i=this;if(!!e===!!t){return}if(this.open&&!t){if(this.openButton){this.openButton.accessibleExpanded=true}if(this.accessibleRole!=="listbox"){this.teleport.makeSiblingsInert()}this.updatePlacement();if(this.menuElement&&this.openButton){this.autoUpdateCleanup=autoUpdate(this.openButton,this.menuElement,this.updatePlacement)}if(this.showFilterInput){this.filterInput.value="";this.filterItems()}setTimeout((function(){if(i.accessibleRole==="menu"){i.itemElements[0].setFocus()}i.duetToggle.emit({open:i.open,component:"duet-popup-menu"})}),200)}else if(!this.open&&t){if(this.openButton){this.openButton.accessibleExpanded=false}if(this.autoUpdateCleanup){this.autoUpdateCleanup()}setTimeout((function(){if(i.accessibleRole==="menu"){focusElement(i.openButton)}i.duetToggle.emit({open:i.open,component:"duet-popup-menu"});if(i.accessibleRole!=="listbox"){i.teleport.removeInertFromSiblings()}}),200)}};Object.defineProperty(e.prototype,"itemElements",{get:function(){return Array.from(this.element.querySelectorAll(":scope duet-popup-menu-item"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"popupMenuStyleHeight",{get:function(){var e=":scope duet-popup-menu-item, :scope duet-notification";var t=Array.from(this.element.querySelectorAll(e));if(t.length>0&&this.scrollLimit){var i=Number(spaceXSmall.replace("px",""))*2;return"".concat(t[0].offsetHeight*this.scrollLimit+i,"px")}else{return"auto"}},enumerable:false,configurable:true});e.prototype.getFocusedItemIndex=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(i){switch(i.label){case 0:e=this.getNonFilteredItems();t=0;i.label=1;case 1:if(!(t<e.length))return[3,4];return[4,e[t].isFocused()];case 2:if(i.sent()){return[2,t]}i.label=3;case 3:t++;return[3,1];case 4:return[2,-1]}}))}))};e.prototype.render=function(){var e=this;var t={top:"".concat(this.menuY,"px"),left:"".concat(this.menuX,"px"),position:this.position,overflowY:"auto",height:this.popupMenuStyleHeight};return h(Host,{key:"4f4ca864cfb97bc6556bf03328bf67aebe9e87e8"},h("div",{key:"e9b910938c461f74532f3bcf0c70ace1334dfeb2",ref:function(t){e.menuElement=t},style:t,class:{open:this.open,"duet-popup-menu-list":true,"duet-theme-turva":this.theme==="turva","scroll-visible":this.scrollLimit<this.itemElements.length},role:this.accessibleRole,"aria-label":this.accessibleLabel},this.showFilterInput&&h("div",{key:"6c501ae153f306bad04eadbc02917c07f7beed3d"},h("duet-input",{key:"427f1ab729a887ca89925bbbf2aeb3e803c92428",ref:function(t){return e.filterInput=t},label:this.filterLabel[this.language],"label-hidden":true,expand:true,margin:"none",type:"search",onDuetInput:this.filterItems,onKeyDown:this.handleKeyDownOnFilter}),h("duet-visually-hidden",{key:"726ba29261adca2c956588370b1c41b79cd6fb68"},h("span",{key:"1ede14ac5d046b1d5b1a30e3ab58c3d3f19c09e4",role:"status"},"\n ".concat(this.filterResultCount,"/").concat(this.itemElements.length,"\n ").concat(this.filterResultCountLabel[this.language],"\n "))),h("duet-spacer",{key:"1c1cfce92b76b59e5c5be5bb625da22768c979ec",size:"xx-small"})),h("slot",{key:"8490807b5f19ca1bb49f1e5432b20b3be5924844"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["handleOpenChange"]}},enumerable:false,configurable:true});return e}();DuetPopupMenu.style=DuetPopupMenuStyle0;var duetPopupMenuItemCss='*,*::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:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start}.duet-popup-menu-item{display:flex;flex-grow:1;gap:12px;align-items:center;height:100%;padding:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-popup-menu-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-popup-menu-item:focus,.duet-popup-menu-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-popup-menu-item.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-popup-menu-item.active{background:rgb(240, 247, 250)}.duet-popup-menu-item.active.duet-theme-turva{background:rgb(245, 247, 250)}.duet-popup-menu-item:hover{background:rgb(228, 241, 247)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(222, 224, 228)}.duet-popup-menu-item .duet-popup-menu-item-label{flex-grow:1}.duet-popup-menu-item .duet-popup-menu-item-trailing{padding-left:20px}.active-descendant{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .active-descendant,.active-descendant.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';var DuetPopupMenuItemStyle0=duetPopupMenuItemCss;var DuetPopupMenuItem=function(){function e(e){var t=this;registerInstance(this,e);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.onFocus=function(e){t.focus=true;t.duetFocus.emit({originalEvent:e,value:t.value,component:"duet-popup-menu-item"})};this.onBlur=function(e){t.focus=false;t.duetBlur.emit({originalEvent:e,value:t.value,component:"duet-popup-menu-item"})};this.focus=false;this.accessibleLabel=undefined;this.accessibleRole="menuitem";this.theme="";this.url=undefined;this.external=false;this.targetLanguage=undefined;this.value=undefined;this.leadingIcon=undefined;this.leadingIconColor=undefined;this.trailingIcon=undefined;this.trailingText=undefined;this.active=false;this.activeDescendant=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){setTimeout((function(){return t.itemElement.focus(e)}),200);return[2]}))}))};e.prototype.isFocused=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.focus]}))}))};e.prototype.render=function(){var e=this;var t=this.url?"a":"button";var i={"duet-popup-menu-item":true,active:this.active,"duet-theme-turva":this.theme==="turva","active-descendant":this.activeDescendant};return h(Host,{key:"ec9a97488880d6513ce756f9816356ab2a3ef1ae",role:this.accessibleRole},h(t,{key:"6bb037d35469526f830d2767f9b94aa3e401730a",ref:function(t){return e.itemElement=t},tabIndex:this.accessibleRole==="listitem"?0:-1,onFocus:this.onFocus,onBlur:this.onBlur,role:"".concat(t==="a"?"link":"button"),"aria-label":this.accessibleLabel,class:i,value:this.value,href:this.url,target:this.external?"_blank":undefined,rel:this.external?"noopener":undefined,lang:t==="button"?undefined:this.targetLanguage,hreflang:t==="button"?undefined:this.targetLanguage},this.leadingIcon&&h("duet-icon",{key:"aeb1363d0e70572dcead578251332bc61047313b",name:this.leadingIcon,size:"x-small",color:this.leadingIconColor?this.leadingIconColor:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),h("span",{key:"815b720a77e1ff6a7ecceffa4d1a42a876c9ca5f",class:"duet-popup-menu-item-label"},h("slot",{key:"32a806ebff96ce81bd67c42ab95df5d170a6305c"})),(this.trailingIcon||this.active||this.url&&this.external)&&h("duet-icon",{key:"0fd375db736e280b9c2157fadce9f8319328fe27",name:this.url&&this.external?actionNewWindowSmall.title:this.active?"messaging-checked-small":this.trailingIcon,size:this.url&&this.external||this.active?"xx-small":"x-small",color:"currentColor",class:"duet-popup-menu-item-trailing",margin:"none"}),this.trailingText&&h("span",{key:"3a8c841ef1ec29f2174c1d62da75f692f73cb2fe",class:"duet-popup-menu-item-trailing"},this.trailingText)))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetPopupMenuItem.style=DuetPopupMenuItemStyle0;export{DuetPopupMenu as duet_popup_menu,DuetPopupMenuItem as duet_popup_menu_item};
4
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-dd60f5fc.js";import{q as spaceXSmall}from"./tokens.module-821694bb.js";import{o as offset,f as flip,s as shift,c as computePosition,b as autoUpdate}from"./floating-ui.dom.esm-ef361ca5.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{f as focusElement}from"./focus-utils-59c3798e.js";import{c as isArrowDownKey,f as isEscapeKey,b as isArrowUpKey,o as isTabKey}from"./keyboard-utils-daf80d44.js";import{a as getLanguage}from"./language-utils-47475a59.js";import{T as Teleport}from"./teleport-aa27d5f9.js";import{a as actionNewWindowSmall}from"./action-new-window-small-1945be91.js";import"./string-utils-192eb3c8.js";var duetPopupMenuCss="*,*::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-popup-menu-list{position:absolute;top:0;left:0;z-index:950;width:max-content;min-width:175px;padding:8px;margin:0;color:rgb(8, 42, 77);list-style:none;visibility:hidden !important;background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:transform 300ms ease, visibility 300ms ease, opacity 300ms ease;transform:scaleY(0);transform-origin:top center}.duet-popup-menu-list.open{visibility:visible !important;opacity:1;transform:scaleY(1)}.duet-popup-menu-list.fixed{position:fixed}.duet-popup-menu-list.scroll-visible{overflow-y:scroll;scroll-margin:20px}.duet-popup-menu-list.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255)}::slotted(duet-notification){max-width:360px}";var DuetPopupMenuStyle0=duetPopupMenuCss;var DuetPopupMenu=function(){function e(e){var t=this;registerInstance(this,e);this.duetToggle=createEvent(this,"duetToggle",7);this.filterLabel={en:"Filter menu",fi:"Suodata valikkoa",sv:"Filtrera meny"};this.filterResultCountLabel={en:"items match filter",fi:"kohtaa vastaa suodatinta",sv:"menyalternativ matchar filtret"};this.setOpenButton=function(e){if(!e){return}try{var i=e;i.accessiblePopup="true";i.accessibleExpanded=false;if(t.controllerIcon){i.setAttribute("trailing-icon","action-arrow-down-small")}t.openButton=i}catch(e){}};this.openButtonEventListener=function(){t.toggle()};this.updatePlacement=function(){return __awaiter(t,void 0,void 0,(function(){var e,t;return __generator(this,(function(i){switch(i.label){case 0:if(!this.openButton){return[2]}e=[offset({mainAxis:this.mainAxisOffset,crossAxis:this.crossAxisOffset}),this.allowVerticalFlip&&flip(),shift({padding:5})].filter(Boolean);return[4,computePosition(this.openButton,this.menuElement,{middleware:e,placement:this.placement,strategy:this.position})];case 1:t=i.sent();this.menuY=t.y;this.menuX=t.x;return[2]}}))}))};this.getNonFilteredItems=function(){return t.showFilterInput?t.itemElements.filter((function(e){return e.style.display!=="none"})):t.itemElements};this.filterItems=function(){var e;var i=(e=t.filterInput.value)===null||e===void 0?void 0:e.toLocaleLowerCase();var n=t.itemElements;n.forEach((function(e){var t;e.style.display=!i||e.textContent.toLowerCase().includes(i)||((t=e.value)===null||t===void 0?void 0:t.toLowerCase().includes(i))?"":"none"}));t.filterResultCount=n.filter((function(e){return e.style.display!=="none"})).length};this.handleKeyDownOnFilter=function(e){var i;if(isArrowDownKey(e)){(i=t.getNonFilteredItems()[0])===null||i===void 0?void 0:i.setFocus()}};this.open=false;this.menuY=undefined;this.menuX=undefined;this.filterResultCount=undefined;this.language=getLanguage();this.accessibleLabel=undefined;this.accessibleRole="menu";this.theme="";this.skipTeleport=undefined;this.placement="bottom-start";this.forcePlacement=false;this.allowVerticalFlip=true;this.position="absolute";this.mainAxisOffset=0;this.crossAxisOffset=0;this.controllerIcon="action-arrow-down-small";this.scrollLimit=undefined;this.showFilterInput=undefined}Object.defineProperty(e.prototype,"controller",{get:function(){return this._controller},set:function(e){if(this._controller===e){return}this._controller=e;if(typeof e==="string"){this.setOpenButton(document.getElementById(e));if(this.openButton){this.openButton.addEventListener("click",this.openButtonEventListener)}}else{this.setOpenButton(e)}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"opener",{get:function(){return this._controller},set:function(e){this.controller=e},enumerable:false,configurable:true});e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.componentDidLoad=function(){{this.updatePlacement()}};e.prototype.connectedCallback=function(){if(!this.teleport){this.teleport=new Teleport(this.element)}if(this.teleport){this.teleport.activate()}};e.prototype.disconnectedCallback=function(){if(this.autoUpdateCleanup){this.autoUpdateCleanup()}if(this.openButton){this.openButton.removeEventListener("click",this.openButtonEventListener);if(this.controllerIcon){this.openButton.removeAttribute("trailing-icon")}}};e.prototype.handleKeyUp=function(e){if(this.open){if(isEscapeKey(e)){this.hide()}}};e.prototype.handleKeyDown=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,i;return __generator(this,(function(n){switch(n.label){case 0:t=this.getNonFilteredItems();if(!this.open)return[3,5];if(!isArrowDownKey(e))return[3,2];e.preventDefault();return[4,this.getFocusedItemIndex()];case 1:i=n.sent();if(i!==-1){if(i<t.length-1){t[i+1].setFocus()}else{t[0].setFocus()}}n.label=2;case 2:if(!isArrowUpKey(e))return[3,4];e.preventDefault();return[4,this.getFocusedItemIndex()];case 3:i=n.sent();if(i!==-1){if(i===0){if(this.showFilterInput){this.filterInput.setFocus()}else{t[t.length-1].setFocus()}}else{t[i-1].setFocus()}}n.label=4;case 4:if(isTabKey(e)&&this.accessibleRole==="menu"){e.preventDefault();this.hide()}n.label=5;case 5:return[2]}}))}))};e.prototype.handleClick=function(e){var t=this;var i=e.composedPath().every((function(e){return e!==t.element&&e!==t.openButton}));if(this.open&&i){this.hide()}};e.prototype.isOpen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.open]}))}))};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){if(this.autoUpdateCleanup){this.autoUpdateCleanup()}this.open=false;return[2]}))}))};e.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.open){this.hide()}else{this.show()}return[2]}))}))};e.prototype.handleOpenChange=function(e,t){var i=this;if(!!e===!!t){return}if(this.open&&!t){var n={ancestorScroll:!this.forcePlacement};if(this.openButton){this.openButton.accessibleExpanded=true}if(this.accessibleRole!=="listbox"){this.teleport.makeSiblingsInert()}this.updatePlacement();if(this.menuElement&&this.openButton){this.autoUpdateCleanup=autoUpdate(this.openButton,this.menuElement,this.updatePlacement,n)}if(this.showFilterInput){this.filterInput.value="";this.filterItems()}setTimeout((function(){if(i.accessibleRole==="menu"){i.itemElements[0].setFocus()}i.duetToggle.emit({open:i.open,component:"duet-popup-menu"})}),200)}else if(!this.open&&t){if(this.openButton){this.openButton.accessibleExpanded=false}if(this.autoUpdateCleanup){this.autoUpdateCleanup()}setTimeout((function(){if(i.accessibleRole==="menu"){focusElement(i.openButton)}i.duetToggle.emit({open:i.open,component:"duet-popup-menu"});if(i.accessibleRole!=="listbox"){i.teleport.removeInertFromSiblings()}}),200)}};Object.defineProperty(e.prototype,"itemElements",{get:function(){return Array.from(this.element.querySelectorAll(":scope duet-popup-menu-item"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"popupMenuStyleHeight",{get:function(){var e=":scope duet-popup-menu-item, :scope duet-notification";var t=Array.from(this.element.querySelectorAll(e));if(t.length>0&&this.scrollLimit){var i=Number(spaceXSmall.replace("px",""))*2;return"".concat(t[0].offsetHeight*this.scrollLimit+i,"px")}else{return"auto"}},enumerable:false,configurable:true});e.prototype.getFocusedItemIndex=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(i){switch(i.label){case 0:e=this.getNonFilteredItems();t=0;i.label=1;case 1:if(!(t<e.length))return[3,4];return[4,e[t].isFocused()];case 2:if(i.sent()){return[2,t]}i.label=3;case 3:t++;return[3,1];case 4:return[2,-1]}}))}))};e.prototype.render=function(){var e=this;var t={top:"".concat(this.menuY,"px"),left:"".concat(this.menuX,"px"),position:this.position,overflowY:"auto",height:this.popupMenuStyleHeight};return h(Host,{key:"3ec941a205dc0baffda4fb90920a6d66d1f03150"},h("div",{key:"1574a9dae761cf5226d85299c98aad9cbe66c626",ref:function(t){e.menuElement=t},style:t,class:{open:this.open,"duet-popup-menu-list":true,"duet-theme-turva":this.theme==="turva","scroll-visible":this.scrollLimit<this.itemElements.length},role:this.accessibleRole,"aria-label":this.accessibleLabel},this.showFilterInput&&h("div",{key:"b64b46ed737e9f63979718a106501a188edd5486"},h("duet-input",{key:"aa21c8d65868a9c265304d01280b4cc49ba1e996",ref:function(t){return e.filterInput=t},label:this.filterLabel[this.language],"label-hidden":true,expand:true,margin:"none",type:"search",onDuetInput:this.filterItems,onKeyDown:this.handleKeyDownOnFilter}),h("duet-visually-hidden",{key:"b7c8787de1caa71c2436375a96ce26101a864f60"},h("span",{key:"5573f919752c222b3a99ff56416cb0a6b14e20d3",role:"status"},"\n ".concat(this.filterResultCount,"/").concat(this.itemElements.length,"\n ").concat(this.filterResultCountLabel[this.language],"\n "))),h("duet-spacer",{key:"18b2e0894e1ac20362e94b913467ef8dd46d0176",size:"xx-small"})),h("slot",{key:"6e3755fca95627759a2af50ddf4fa938c549ceed"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["handleOpenChange"]}},enumerable:false,configurable:true});return e}();DuetPopupMenu.style=DuetPopupMenuStyle0;var duetPopupMenuItemCss='*,*::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:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start}.duet-popup-menu-item{display:flex;flex-grow:1;gap:12px;align-items:center;height:100%;padding:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-popup-menu-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-popup-menu-item:focus,.duet-popup-menu-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-popup-menu-item.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-popup-menu-item.active{background:rgb(240, 247, 250)}.duet-popup-menu-item.active.duet-theme-turva{background:rgb(245, 247, 250)}.duet-popup-menu-item:hover{background:rgb(228, 241, 247)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(222, 224, 228)}.duet-popup-menu-item .duet-popup-menu-item-label{flex-grow:1}.duet-popup-menu-item .duet-popup-menu-item-trailing{padding-left:20px}.active-descendant{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .active-descendant,.active-descendant.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';var DuetPopupMenuItemStyle0=duetPopupMenuItemCss;var DuetPopupMenuItem=function(){function e(e){var t=this;registerInstance(this,e);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.onFocus=function(e){t.focus=true;t.duetFocus.emit({originalEvent:e,value:t.value,component:"duet-popup-menu-item"})};this.onBlur=function(e){t.focus=false;t.duetBlur.emit({originalEvent:e,value:t.value,component:"duet-popup-menu-item"})};this.focus=false;this.accessibleLabel=undefined;this.accessibleRole="menuitem";this.theme="";this.url=undefined;this.external=false;this.targetLanguage=undefined;this.value=undefined;this.leadingIcon=undefined;this.leadingIconColor=undefined;this.trailingIcon=undefined;this.trailingText=undefined;this.active=false;this.activeDescendant=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){setTimeout((function(){return t.itemElement.focus(e)}),200);return[2]}))}))};e.prototype.isFocused=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.focus]}))}))};e.prototype.render=function(){var e=this;var t=this.url?"a":"button";var i={"duet-popup-menu-item":true,active:this.active,"duet-theme-turva":this.theme==="turva","active-descendant":this.activeDescendant};return h(Host,{key:"ec9a97488880d6513ce756f9816356ab2a3ef1ae",role:this.accessibleRole},h(t,{key:"6bb037d35469526f830d2767f9b94aa3e401730a",ref:function(t){return e.itemElement=t},tabIndex:this.accessibleRole==="listitem"?0:-1,onFocus:this.onFocus,onBlur:this.onBlur,role:"".concat(t==="a"?"link":"button"),"aria-label":this.accessibleLabel,class:i,value:this.value,href:this.url,target:this.external?"_blank":undefined,rel:this.external?"noopener":undefined,lang:t==="button"?undefined:this.targetLanguage,hreflang:t==="button"?undefined:this.targetLanguage},this.leadingIcon&&h("duet-icon",{key:"aeb1363d0e70572dcead578251332bc61047313b",name:this.leadingIcon,size:"x-small",color:this.leadingIconColor?this.leadingIconColor:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),h("span",{key:"815b720a77e1ff6a7ecceffa4d1a42a876c9ca5f",class:"duet-popup-menu-item-label"},h("slot",{key:"32a806ebff96ce81bd67c42ab95df5d170a6305c"})),(this.trailingIcon||this.active||this.url&&this.external)&&h("duet-icon",{key:"0fd375db736e280b9c2157fadce9f8319328fe27",name:this.url&&this.external?actionNewWindowSmall.title:this.active?"messaging-checked-small":this.trailingIcon,size:this.url&&this.external||this.active?"xx-small":"x-small",color:"currentColor",class:"duet-popup-menu-item-trailing",margin:"none"}),this.trailingText&&h("span",{key:"3a8c841ef1ec29f2174c1d62da75f692f73cb2fe",class:"duet-popup-menu-item-trailing"},this.trailingText)))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetPopupMenuItem.style=DuetPopupMenuItemStyle0;export{DuetPopupMenu as duet_popup_menu,DuetPopupMenuItem as duet_popup_menu_item};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-40caac4f.js";import"./string-utils-192eb3c8.js";var duetProgressCss="*,*::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:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(240, 247, 250);border-radius:0;box-shadow:none}.duet-theme-turva .duet-progress .progress-bar{background-color:rgb(255, 241, 241)}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-theme-turva .duet-progress .progress-bar>span{background-color:rgb(198, 12, 48)}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);border:0 none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(240, 247, 250);border-radius:0}.duet-progress progress[value]::-webkit-progress-value{background-color:rgb(0, 119, 179);background-size:35px 20px, 100% 100%, 100% 100%;border-radius:0;-webkit-animation:animate-stripes 5s linear infinite;animation:animate-stripes 5s linear infinite}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(240, 247, 250)}.duet-progress.duet-theme-turva progress[value]{color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-bar{background-color:rgb(255, 241, 241)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-value{background-color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value] ::-moz-progress-bar{background-color:rgb(255, 241, 241)}";var DuetProgressStyle0=duetProgressCss;var DuetProgress=function(){function e(e){registerInstance(this,e);this.progressId=createID("DuetProgress");this.progressLabelId=createID("DuetProgressLabel");this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabel=undefined;this.accessibleLabelUploadDefaults={fi:["lähetys valmis","lähetys käynnissä"],sv:["Uppladdningen är klar","Uppladdning pågår"],en:["upload completed","upload in progress"]};this.accessibleLabelUpload=getLocaleString(this.accessibleLabelUploadDefaults);this.progress=0;this.caption=undefined;this.height="10px";this.theme=""}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelUpload",defaults:"accessibleLabelUploadDefaults"})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){return h(Host,null,h("div",{"aria-live":this.accessibleLabel?"polite":"off","aria-hidden":this.accessibleLabel?"false":"true","aria-atomic":"true",style:{height:this.height},id:this.progressId,class:{"duet-progress":true,"duet-progress-done":this.progress===100,"duet-progress-start":this.progress===0,"duet-progress-inprogress":this.progress<99&&this.progress!==0,"duet-theme-turva":this.theme==="turva"}},h("duet-visually-hidden",null,h("label",{htmlFor:this.progressLabelId},h("span",null,this.accessibleLabel,this.progress!==0&&", ".concat(this.accessibleLabelUpload[this.progress<99?1:0])))),this.caption&&h("div",{class:"duet-progress-caption"},h("span",null,this.caption)),h("progress",{id:this.progressLabelId,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:"progressbar",value:this.progress,max:"100","aria-valuemin":"0","aria-valuemax":"100"},h("div",{class:"progress-bar"},h("span",{style:{width:"".concat(this.progress,"%;")}},"Progress: ",this.progress,"%")))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetProgress.style=DuetProgressStyle0;export{DuetProgress as duet_progress};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-dd60f5fc.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-47475a59.js";import"./string-utils-192eb3c8.js";var duetProgressCss="*,*::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:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(240, 247, 250);border-radius:0;box-shadow:none}.duet-theme-turva .duet-progress .progress-bar{background-color:rgb(255, 241, 241)}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-theme-turva .duet-progress .progress-bar>span{background-color:rgb(198, 12, 48)}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);border:0 none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(240, 247, 250);border-radius:0}.duet-progress progress[value]::-webkit-progress-value{background-color:rgb(0, 119, 179);background-size:35px 20px, 100% 100%, 100% 100%;border-radius:0;-webkit-animation:animate-stripes 5s linear infinite;animation:animate-stripes 5s linear infinite}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(240, 247, 250)}.duet-progress.duet-theme-turva progress[value]{color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-bar{background-color:rgb(255, 241, 241)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-value{background-color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value] ::-moz-progress-bar{background-color:rgb(255, 241, 241)}";var DuetProgressStyle0=duetProgressCss;var DuetProgress=function(){function e(e){registerInstance(this,e);this.progressId=createID("DuetProgress");this.progressLabelId=createID("DuetProgressLabel");this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabel=undefined;this.accessibleLabelUploadDefaults={fi:["lähetys valmis","lähetys käynnissä"],sv:["Uppladdningen är klar","Uppladdning pågår"],en:["upload completed","upload in progress"]};this.accessibleLabelUpload=getLocaleString(this.accessibleLabelUploadDefaults);this.progress=0;this.caption=undefined;this.height="10px";this.theme=""}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelUpload",defaults:"accessibleLabelUploadDefaults"})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){return h(Host,null,h("div",{"aria-live":this.accessibleLabel?"polite":"off","aria-hidden":this.accessibleLabel?"false":"true","aria-atomic":"true",style:{height:this.height},id:this.progressId,class:{"duet-progress":true,"duet-progress-done":this.progress===100,"duet-progress-start":this.progress===0,"duet-progress-inprogress":this.progress<99&&this.progress!==0,"duet-theme-turva":this.theme==="turva"}},h("duet-visually-hidden",null,h("label",{htmlFor:this.progressLabelId},h("span",null,this.accessibleLabel,this.progress!==0&&", ".concat(this.accessibleLabelUpload[this.progress<99?1:0])))),this.caption&&h("div",{class:"duet-progress-caption"},h("span",null,this.caption)),h("progress",{id:this.progressLabelId,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:"progressbar",value:this.progress,max:"100","aria-valuemin":"0","aria-valuemax":"100"},h("div",{class:"progress-bar"},h("span",{style:{width:"".concat(this.progress,"%;")}},"Progress: ",this.progress,"%")))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetProgress.style=DuetProgressStyle0;export{DuetProgress as duet_progress};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,a,o){function r(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function i(e){try{d(o.next(e))}catch(e){n(e)}}function c(e){try{d(o["throw"](e))}catch(e){n(e)}}function d(e){e.done?a(e.value):r(e.value).then(i,c)}d((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,r,n,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(t){return d([e,t])}}function d(c){if(o)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(a=0)),a)try{if(o=1,r&&(n=c[0]&2?r["return"]:c[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;if(r=0,n)c=[c[0]&2,n.value];switch(c[0]){case 0:case 1:n=c;break;case 4:a.label++;return{value:c[1],done:false};case 5:a.label++;r=c[1];c=[0];continue;case 7:c=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){a=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){a.label=c[1];break}if(c[0]===6&&a.label<n[1]){a.label=n[1];n=c;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(c);break}if(n[2])a.ops.pop();a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e];r=0}finally{o=n=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,h,H as Host,g as getElement}from"./index-a830b2de.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{h as hasSlot,c as checkNamedSlotElement}from"./slot-utils-a481f2c6.js";import{g as getColorByName}from"./token-utils-a32eb753.js";import"./tokens.module-a746651a.js";var duetPromoCardCss='*,*::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:4px !important;margin-bottom:2px !important;display:block;width:auto}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-promo-card{display:flex;flex-direction:column;width:100%;height:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;color:rgb(8, 42, 77);text-align:left;border-radius:20px}.duet-promo-card.duet-p-0{padding:0 !important}.duet-promo-card.duet-m-0{margin:0 !important}.duet-promo-card .content-wrapper{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}.duet-promo-card .content-wrapper:focus{border-radius:20px;outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-promo-card .image{position:relative;width:100%;overflow:hidden;border-top-left-radius:20px;border-top-right-radius:20px;object-fit:cover}.duet-promo-card .content{display:flex;flex-direction:column;flex-grow:1;gap:8px;padding:20px}@media (min-width: 36em){.duet-promo-card .content{padding:28px}}.duet-promo-card .action{display:flex;flex-grow:1;align-items:flex-end;padding-top:16px}.duet-promo-card.no-bg-color .content{padding:20px 0 0}.duet-promo-card.no-bg-color .image{border-radius:16px}.duet-promo-card.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-promo-card.duet-theme-turva .content-wrapper:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-promo-card-link{transition:box-shadow 300ms ease}.duet-promo-card-link:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}.duet-promo-card-link:hover.duet-theme-turva{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}';var DuetPromoCardStyle0=duetPromoCardCss;var DuetPromoCard=function(){function e(e){registerInstance(this,e);this.theme="";this.margin="auto";this.backgroundColor="";this.textColor="secondary";this.image="";this.headingLevel="h3";this.url=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasPreHeadingSlot=hasSlot(this.element,"pre-heading");this.hasHeadingSlot=hasSlot(this.element,"heading");this.hasDescriptionSlot=hasSlot(this.element,"description");this.hasActionSlot=hasSlot(this.element,"action");checkNamedSlotElement(this.element,"heading","span");checkNamedSlotElement(this.element,"description","span")};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.url&&this.aOrDivElement){this.aOrDivElement.focus(e)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=getColorByName(this.backgroundColor,this.theme);var a={backgroundColor:t?t:"none"};var o=this.url?"a":"div";return h(Host,{key:"b73cdd4f3dcd554706a13aeaa706543b681529ec",class:{"duet-m-0":this.margin==="none"}},h("aside",{key:"76f17c86f64af2cea4a60ce9882f8e76bc475ab6",class:{"duet-promo-card":true,"duet-theme-turva":this.theme==="turva","no-bg-color":!this.backgroundColor,"duet-promo-card-link":!!this.url},style:a},h(o,{key:"db345f3d904fc72e3f25618c91ab3f30a0b9e4c7",href:this.url,class:"content-wrapper",ref:function(t){return e.aOrDivElement=t}},h("img",{key:"ac5645fb64cf5872e0735ce3d97939e37fb10f0a",class:"image",src:this.image,alt:"",role:"presentation"}),h("div",{key:"c82dc662a938ca4849089a048c57caa8efc54531",class:"content"},this.hasPreHeadingSlot&&h("div",{key:"cd9ce432bdf6f8ffaa63796a258837e9136e1ea4",class:"pre-heading"},h("slot",{key:"257b9408b4489f1cc79f503473a8d458a3cb5456",name:"pre-heading"})),this.hasHeadingSlot&&h("div",{key:"1e93652845c4b65d0ab67a0e05889304064fd7b3",class:"heading"},h("duet-heading",{key:"9e40a46f24aadcee4d43fc36167ed434c2cc8e79",theme:this.theme,level:this.headingLevel,"visual-level":"h3",margin:"none",color:this.textColor},h("span",{key:"d230dbaecd853de2b4b58be416d720048b6ea43b"},h("slot",{key:"1f99efac6f9a6ebdf6e72066b50d3fe647dfc3f1",name:"heading"})))),this.hasDescriptionSlot&&h("div",{key:"e61cf4abe59d58e15cefb7f7ff7aa573922154b0",class:"description"},h("duet-paragraph",{key:"9594eba29974b0176a2fc986df802c8a5afb43f1",theme:this.theme,margin:"none",color:this.textColor},h("span",{key:"e800d7bb777802912b16ad4f5c76bb7f9df8c9fe"},h("slot",{key:"709d27fb9d198c57c8ca8abbbaaedac0790483a8",name:"description"})))),this.hasActionSlot&&h("div",{key:"2a72594c99d4142f7b1f453df4e24ce794833370",class:"action"},h("slot",{key:"07f8ccc33355d4fc7be72c64fd758363f76f609e",name:"action"}))))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetPromoCard.style=DuetPromoCardStyle0;export{DuetPromoCard as duet_promo_card};
4
+ */import{r as registerInstance,h,H as Host,g as getElement}from"./index-dd60f5fc.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{h as hasSlot,c as checkNamedSlotElement}from"./slot-utils-205a8937.js";import{g as getColorByName}from"./token-utils-7360bb84.js";import"./tokens.module-821694bb.js";var duetPromoCardCss='*,*::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:4px !important;margin-bottom:2px !important;display:block;width:auto}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-promo-card{display:flex;flex-direction:column;width:100%;height:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;color:rgb(8, 42, 77);text-align:left;border-radius:20px}.duet-promo-card.duet-p-0{padding:0 !important}.duet-promo-card.duet-m-0{margin:0 !important}.duet-promo-card .content-wrapper{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}.duet-promo-card .content-wrapper:focus{border-radius:20px;outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-promo-card .image{position:relative;width:100%;overflow:hidden;border-top-left-radius:20px;border-top-right-radius:20px;object-fit:cover}.duet-promo-card .content{display:flex;flex-direction:column;flex-grow:1;gap:8px;padding:20px}@media (min-width: 36em){.duet-promo-card .content{padding:28px}}.duet-promo-card .action{display:flex;flex-grow:1;align-items:flex-end;padding-top:16px}.duet-promo-card.no-bg-color .content{padding:20px 0 0}.duet-promo-card.no-bg-color .image{border-radius:16px}.duet-promo-card.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-promo-card.duet-theme-turva .content-wrapper:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-promo-card-link{transition:box-shadow 300ms ease}.duet-promo-card-link:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}.duet-promo-card-link:hover.duet-theme-turva{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}';var DuetPromoCardStyle0=duetPromoCardCss;var DuetPromoCard=function(){function e(e){registerInstance(this,e);this.theme="";this.margin="auto";this.backgroundColor="";this.textColor="secondary";this.image="";this.headingLevel="h3";this.url=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasPreHeadingSlot=hasSlot(this.element,"pre-heading");this.hasHeadingSlot=hasSlot(this.element,"heading");this.hasDescriptionSlot=hasSlot(this.element,"description");this.hasActionSlot=hasSlot(this.element,"action");checkNamedSlotElement(this.element,"heading","span");checkNamedSlotElement(this.element,"description","span")};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.url&&this.aOrDivElement){this.aOrDivElement.focus(e)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=getColorByName(this.backgroundColor,this.theme);var a={backgroundColor:t?t:"none"};var o=this.url?"a":"div";return h(Host,{key:"b73cdd4f3dcd554706a13aeaa706543b681529ec",class:{"duet-m-0":this.margin==="none"}},h("aside",{key:"76f17c86f64af2cea4a60ce9882f8e76bc475ab6",class:{"duet-promo-card":true,"duet-theme-turva":this.theme==="turva","no-bg-color":!this.backgroundColor,"duet-promo-card-link":!!this.url},style:a},h(o,{key:"db345f3d904fc72e3f25618c91ab3f30a0b9e4c7",href:this.url,class:"content-wrapper",ref:function(t){return e.aOrDivElement=t}},h("img",{key:"ac5645fb64cf5872e0735ce3d97939e37fb10f0a",class:"image",src:this.image,alt:"",role:"presentation"}),h("div",{key:"c82dc662a938ca4849089a048c57caa8efc54531",class:"content"},this.hasPreHeadingSlot&&h("div",{key:"cd9ce432bdf6f8ffaa63796a258837e9136e1ea4",class:"pre-heading"},h("slot",{key:"257b9408b4489f1cc79f503473a8d458a3cb5456",name:"pre-heading"})),this.hasHeadingSlot&&h("div",{key:"1e93652845c4b65d0ab67a0e05889304064fd7b3",class:"heading"},h("duet-heading",{key:"9e40a46f24aadcee4d43fc36167ed434c2cc8e79",theme:this.theme,level:this.headingLevel,"visual-level":"h3",margin:"none",color:this.textColor},h("span",{key:"d230dbaecd853de2b4b58be416d720048b6ea43b"},h("slot",{key:"1f99efac6f9a6ebdf6e72066b50d3fe647dfc3f1",name:"heading"})))),this.hasDescriptionSlot&&h("div",{key:"e61cf4abe59d58e15cefb7f7ff7aa573922154b0",class:"description"},h("duet-paragraph",{key:"9594eba29974b0176a2fc986df802c8a5afb43f1",theme:this.theme,margin:"none",color:this.textColor},h("span",{key:"e800d7bb777802912b16ad4f5c76bb7f9df8c9fe"},h("slot",{key:"709d27fb9d198c57c8ca8abbbaaedac0790483a8",name:"description"})))),this.hasActionSlot&&h("div",{key:"2a72594c99d4142f7b1f453df4e24ce794833370",class:"action"},h("slot",{key:"07f8ccc33355d4fc7be72c64fd758363f76f609e",name:"action"}))))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetPromoCard.style=DuetPromoCardStyle0;export{DuetPromoCard as duet_promo_card};