@duetds/components 9.12.2 → 9.13.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 (716) hide show
  1. package/hydrate/index.js +202 -205
  2. package/lib/cjs/{a11y-utils-e59debeb.js → a11y-utils-7f0f44ac.js} +1 -1
  3. package/lib/cjs/{app-globals-f559c48a.js → app-globals-7f261ff1.js} +1 -1
  4. package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
  5. package/lib/cjs/duet-alert.cjs.entry.js +4 -4
  6. package/lib/cjs/duet-badge.cjs.entry.js +4 -4
  7. package/lib/cjs/duet-banner.cjs.entry.js +3 -3
  8. package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
  9. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +5 -5
  10. package/lib/cjs/duet-button_2.cjs.entry.js +6 -6
  11. package/lib/cjs/duet-callout.cjs.entry.js +5 -5
  12. package/lib/cjs/duet-caption_4.cjs.entry.js +9 -9
  13. package/lib/cjs/duet-card.cjs.entry.js +3 -3
  14. package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
  15. package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
  16. package/lib/cjs/duet-chip.cjs.entry.js +3 -3
  17. package/lib/cjs/duet-choice_2.cjs.entry.js +4 -4
  18. package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
  19. package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
  20. package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
  21. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  22. package/lib/cjs/duet-date-picker.cjs.entry.js +5 -5
  23. package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
  24. package/lib/cjs/duet-editable-table_3.cjs.entry.js +8 -8
  25. package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
  26. package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
  27. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  28. package/lib/cjs/duet-footer.cjs.entry.js +4 -4
  29. package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
  30. package/lib/cjs/duet-header_2.cjs.entry.js +47 -10
  31. package/lib/cjs/duet-hero.cjs.entry.js +4 -4
  32. package/lib/cjs/duet-icon.cjs.entry.js +6 -6
  33. package/lib/cjs/duet-input_2.cjs.entry.js +4 -4
  34. package/lib/cjs/duet-layout.cjs.entry.js +2 -2
  35. package/lib/cjs/duet-list_2.cjs.entry.js +4 -4
  36. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
  37. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
  38. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
  39. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +7 -7
  40. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
  41. package/lib/cjs/duet-menu-bar.cjs.entry.js +11 -42
  42. package/lib/cjs/duet-modal.cjs.entry.js +11 -11
  43. package/lib/cjs/duet-multiselect.cjs.entry.js +9 -9
  44. package/lib/cjs/duet-nav.cjs.entry.js +3 -3
  45. package/lib/cjs/duet-notification_2.cjs.entry.js +7 -7
  46. package/lib/cjs/duet-number-input.cjs.entry.js +4 -4
  47. package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
  48. package/lib/cjs/duet-page-heading.cjs.entry.js +5 -5
  49. package/lib/cjs/duet-pagination_2.cjs.entry.js +16 -16
  50. package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
  51. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +6 -6
  52. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  53. package/lib/cjs/duet-promo-card.cjs.entry.js +5 -5
  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 +13 -13
  57. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  58. package/lib/cjs/duet-select.cjs.entry.js +3 -3
  59. package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
  60. package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
  61. package/lib/cjs/duet-share-chart.cjs.entry.js +6 -6
  62. package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
  63. package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
  64. package/lib/cjs/duet-slideout-link.cjs.entry.js +7 -7
  65. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
  66. package/lib/cjs/duet-slideout-panel.cjs.entry.js +11 -11
  67. package/lib/cjs/duet-slideout.cjs.entry.js +9 -9
  68. package/lib/cjs/duet-status-icon.cjs.entry.js +4 -4
  69. package/lib/cjs/duet-step_2.cjs.entry.js +4 -4
  70. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
  71. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +7 -7
  72. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +6 -6
  73. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
  74. package/lib/cjs/duet-submenu-bar.cjs.entry.js +8 -8
  75. package/lib/cjs/duet-textarea.cjs.entry.js +4 -4
  76. package/lib/cjs/duet-toggle.cjs.entry.js +2 -2
  77. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
  78. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
  79. package/lib/cjs/duet-toolbar-item.cjs.entry.js +8 -8
  80. package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
  81. package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
  82. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +8 -8
  83. package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
  84. package/lib/cjs/duet-tray.cjs.entry.js +5 -5
  85. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  86. package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
  87. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  88. package/lib/cjs/duet.cjs.js +3 -3
  89. package/lib/cjs/{errorcodes.utils-803bdf0f.js → errorcodes.utils-cde5cb76.js} +1 -1
  90. package/lib/cjs/{focus-utils-aab4fc49.js → focus-utils-3b3e2586.js} +1 -1
  91. package/lib/cjs/{index-9f14a370.js → index-4babbdda.js} +1 -1
  92. package/lib/cjs/{language-utils-db49b98b.js → language-utils-83791d57.js} +1 -1
  93. package/lib/cjs/loader.cjs.js +3 -3
  94. package/lib/cjs/{slot-utils-018275a5.js → slot-utils-c565d8b9.js} +1 -1
  95. package/lib/cjs/{themeable-component-59982a4b.js → themeable-component-a007f8ee.js} +14 -2
  96. package/lib/cjs/{tokens-e6fda5ee.js → tokens-22702e71.js} +0 -1
  97. package/lib/collection/common/themeable-component.js +13 -1
  98. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  99. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  100. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  101. package/lib/collection/components/duet-button/duet-button.css +6 -0
  102. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  103. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  104. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  105. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  106. package/lib/collection/components/duet-header/duet-header.css +3 -0
  107. package/lib/collection/components/duet-icon/duet-icon.css +5 -0
  108. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  109. package/lib/collection/components/duet-link/duet-link.js +2 -2
  110. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  111. package/lib/collection/components/duet-logo/duet-logo.css +8 -0
  112. package/lib/collection/components/duet-logo/duet-logo.js +70 -5
  113. package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +91 -0
  114. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +28 -39
  115. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  116. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  117. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  118. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  119. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  120. package/lib/collection/components/duet-modal/duet-modal.js +6 -6
  121. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  122. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  123. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  124. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +2 -2
  125. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  126. package/lib/collection/components/duet-page-heading/duet-page-heading.css +12 -1
  127. package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
  128. package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
  129. package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
  130. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  131. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  132. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
  133. package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
  134. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  135. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  136. package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
  137. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
  138. package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
  139. package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
  140. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  141. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  142. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  143. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  144. package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
  145. package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
  146. package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
  147. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  148. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  149. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  150. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  151. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  152. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  153. package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
  154. package/lib/collection/components/duet-table/duet-table.js +2 -2
  155. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  156. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  157. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  158. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  159. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  160. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
  161. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
  162. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  163. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  164. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  165. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  166. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  167. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  168. package/lib/dist-custom-elements/duet-alert.js +1 -1
  169. package/lib/dist-custom-elements/duet-badge.js +1 -1
  170. package/lib/dist-custom-elements/duet-banner.js +4 -4
  171. package/lib/dist-custom-elements/duet-breadcrumb.js +8 -8
  172. package/lib/dist-custom-elements/duet-breadcrumbs.js +4 -4
  173. package/lib/dist-custom-elements/duet-button.js +1 -1
  174. package/lib/dist-custom-elements/duet-callout.js +5 -5
  175. package/lib/dist-custom-elements/duet-caption.js +1 -1
  176. package/lib/dist-custom-elements/duet-card.js +4 -4
  177. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  178. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  179. package/lib/dist-custom-elements/duet-chip.js +1 -1
  180. package/lib/dist-custom-elements/duet-choice-group.js +9 -9
  181. package/lib/dist-custom-elements/duet-choice.js +5 -5
  182. package/lib/dist-custom-elements/duet-collapsible.js +5 -5
  183. package/lib/dist-custom-elements/duet-combobox.js +16 -16
  184. package/lib/dist-custom-elements/duet-contact-card.js +11 -11
  185. package/lib/dist-custom-elements/duet-cookie-consent.js +7 -7
  186. package/lib/dist-custom-elements/duet-date-picker.js +14 -14
  187. package/lib/dist-custom-elements/duet-divider.js +1 -1
  188. package/lib/dist-custom-elements/duet-editable-table.js +8 -8
  189. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  190. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  191. package/lib/dist-custom-elements/duet-file-chooser.js +3 -3
  192. package/lib/dist-custom-elements/duet-footer.js +8 -8
  193. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  194. package/lib/dist-custom-elements/duet-grid.js +1 -1
  195. package/lib/dist-custom-elements/duet-header.js +11 -11
  196. package/lib/dist-custom-elements/duet-heading.js +1 -1
  197. package/lib/dist-custom-elements/duet-hero.js +10 -10
  198. package/lib/dist-custom-elements/duet-icon.js +1 -1
  199. package/lib/dist-custom-elements/duet-input.js +1 -1
  200. package/lib/dist-custom-elements/duet-label.js +1 -1
  201. package/lib/dist-custom-elements/duet-layout.js +1 -1
  202. package/lib/dist-custom-elements/duet-link.js +1 -1
  203. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  204. package/lib/dist-custom-elements/duet-list.js +1 -1
  205. package/lib/dist-custom-elements/duet-logo.js +1 -1
  206. package/lib/dist-custom-elements/duet-menu-bar-button.js +5 -5
  207. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +5 -5
  208. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +7 -7
  209. package/lib/dist-custom-elements/duet-menu-bar-item.js +5 -5
  210. package/lib/dist-custom-elements/duet-menu-bar-link.js +5 -5
  211. package/lib/dist-custom-elements/duet-menu-bar.js +14 -43
  212. package/lib/dist-custom-elements/duet-modal.js +15 -15
  213. package/lib/dist-custom-elements/duet-multiselect.js +15 -15
  214. package/lib/dist-custom-elements/duet-nav.js +3 -3
  215. package/lib/dist-custom-elements/duet-notification-drawer.js +7 -7
  216. package/lib/dist-custom-elements/duet-notification.js +5 -5
  217. package/lib/dist-custom-elements/duet-number-input.js +12 -12
  218. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  219. package/lib/dist-custom-elements/duet-page-heading.js +7 -7
  220. package/lib/dist-custom-elements/duet-pagination.js +25 -25
  221. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  222. package/lib/dist-custom-elements/duet-phone-input.js +17 -17
  223. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  224. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  225. package/lib/dist-custom-elements/duet-progress.js +1 -1
  226. package/lib/dist-custom-elements/duet-promo-card.js +6 -6
  227. package/lib/dist-custom-elements/duet-radio-group.js +9 -9
  228. package/lib/dist-custom-elements/duet-radio.js +2 -2
  229. package/lib/dist-custom-elements/duet-range-slider.js +3 -3
  230. package/lib/dist-custom-elements/duet-range-stepper.js +7 -7
  231. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  232. package/lib/dist-custom-elements/duet-section-layout.js +4 -4
  233. package/lib/dist-custom-elements/duet-select.js +1 -1
  234. package/lib/dist-custom-elements/duet-shaped-image.js +4 -4
  235. package/lib/dist-custom-elements/duet-share-chart-item.js +2 -2
  236. package/lib/dist-custom-elements/duet-share-chart.js +5 -5
  237. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  238. package/lib/dist-custom-elements/duet-slideout-lang.js +4 -4
  239. package/lib/dist-custom-elements/duet-slideout-link.js +5 -5
  240. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +7 -7
  241. package/lib/dist-custom-elements/duet-slideout-panel.js +9 -9
  242. package/lib/dist-custom-elements/duet-slideout.js +8 -8
  243. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  244. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  245. package/lib/dist-custom-elements/duet-status-icon.js +1 -1
  246. package/lib/dist-custom-elements/duet-step.js +5 -5
  247. package/lib/dist-custom-elements/duet-stepper.js +4 -4
  248. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +5 -5
  249. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +8 -8
  250. package/lib/dist-custom-elements/duet-submenu-bar-item.js +4 -4
  251. package/lib/dist-custom-elements/duet-submenu-bar-link.js +4 -4
  252. package/lib/dist-custom-elements/duet-submenu-bar.js +10 -10
  253. package/lib/dist-custom-elements/duet-tab-group.js +12 -12
  254. package/lib/dist-custom-elements/duet-tab.js +2 -2
  255. package/lib/dist-custom-elements/duet-table.js +1 -1
  256. package/lib/dist-custom-elements/duet-textarea.js +11 -11
  257. package/lib/dist-custom-elements/duet-toggle.js +3 -3
  258. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +5 -5
  259. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +7 -7
  260. package/lib/dist-custom-elements/duet-toolbar-item.js +6 -6
  261. package/lib/dist-custom-elements/duet-toolbar-link.js +5 -5
  262. package/lib/dist-custom-elements/duet-toolbar.js +4 -4
  263. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  264. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  265. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  266. package/lib/dist-custom-elements/duet-tray.js +6 -6
  267. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  268. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  269. package/lib/dist-custom-elements/duet-upload.js +23 -23
  270. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  271. package/lib/dist-custom-elements/index.js +1 -1
  272. package/lib/dist-custom-elements/{p-64abcbeb.js → p-06beac61.js} +2 -2
  273. package/lib/dist-custom-elements/{p-e40817b6.js → p-0c829768.js} +2 -2
  274. package/lib/dist-custom-elements/{p-f42fd1a5.js → p-1027ea53.js} +7 -7
  275. package/lib/dist-custom-elements/{p-5fb435c0.js → p-1271d1b9.js} +4 -4
  276. package/lib/dist-custom-elements/{p-ccf00480.js → p-12884dcf.js} +4 -4
  277. package/lib/dist-custom-elements/{p-d6d3f142.js → p-13082a20.js} +3 -3
  278. package/lib/dist-custom-elements/{p-1f214262.js → p-135f668d.js} +2 -2
  279. package/lib/dist-custom-elements/{p-b879c406.js → p-16151d9e.js} +2 -2
  280. package/lib/dist-custom-elements/{p-b7e3ed2c.js → p-2582f9a3.js} +4 -4
  281. package/lib/dist-custom-elements/{p-6f7ac4a5.js → p-276a59a3.js} +4 -4
  282. package/lib/dist-custom-elements/{p-3d69644c.js → p-2dcb2900.js} +9 -9
  283. package/lib/dist-custom-elements/{p-93896e54.js → p-2e148296.js} +8 -8
  284. package/lib/dist-custom-elements/{p-6f57e174.js → p-3757c660.js} +13 -1
  285. package/lib/dist-custom-elements/{p-71245313.js → p-3c558254.js} +13 -13
  286. package/lib/dist-custom-elements/{p-e7c96fb9.js → p-46749593.js} +3 -3
  287. package/lib/dist-custom-elements/{p-daa2778f.js → p-47d05b62.js} +1 -1
  288. package/lib/dist-custom-elements/{p-7b0e3959.js → p-4e53b45e.js} +2 -2
  289. package/lib/dist-custom-elements/{p-3600a7d8.js → p-55c477f3.js} +3 -3
  290. package/lib/dist-custom-elements/{p-c4cf8fc4.js → p-63a0bdcd.js} +2 -2
  291. package/lib/dist-custom-elements/{p-4f46d35d.js → p-653d2256.js} +11 -11
  292. package/lib/dist-custom-elements/{p-1a647490.js → p-67e54308.js} +6 -6
  293. package/lib/dist-custom-elements/{p-6f969e11.js → p-70b67cdd.js} +4 -4
  294. package/lib/dist-custom-elements/{p-b1100334.js → p-7fd99694.js} +8 -8
  295. package/lib/dist-custom-elements/{p-64f1c43c.js → p-80bbbb3a.js} +6 -6
  296. package/lib/dist-custom-elements/{p-dbe0ddfd.js → p-8c472242.js} +1 -1
  297. package/lib/dist-custom-elements/{p-14f9f7a0.js → p-911326a0.js} +2 -2
  298. package/lib/dist-custom-elements/{p-1d53e17e.js → p-a000e044.js} +3 -3
  299. package/lib/dist-custom-elements/{p-16f01714.js → p-aa4ebea4.js} +6 -6
  300. package/lib/dist-custom-elements/{p-1b344cf7.js → p-ad927290.js} +2 -2
  301. package/lib/dist-custom-elements/{p-0c936fe5.js → p-b660d362.js} +11 -11
  302. package/lib/dist-custom-elements/{p-b760d510.js → p-be9b9c9d.js} +6 -6
  303. package/lib/dist-custom-elements/{p-e024b525.js → p-c1e381e3.js} +4 -4
  304. package/lib/dist-custom-elements/{p-38225a71.js → p-c7002b0e.js} +46 -7
  305. package/lib/dist-custom-elements/{p-69ca7615.js → p-ca899a3c.js} +5 -5
  306. package/lib/dist-custom-elements/{p-9f5cbda4.js → p-cdf4b7f6.js} +4 -4
  307. package/lib/dist-custom-elements/{p-74971fe9.js → p-d60c7d74.js} +3 -3
  308. package/lib/dist-custom-elements/{p-b34c0bc0.js → p-de35873c.js} +2 -2
  309. package/lib/dist-custom-elements/{p-5c0ef833.js → p-e3280064.js} +13 -13
  310. package/lib/dist-custom-elements/{p-32a8ced7.js → p-e8dc8877.js} +5 -5
  311. package/lib/dist-custom-elements/{p-d32bd233.js → p-eb60efcc.js} +1 -1
  312. package/lib/dist-custom-elements/{p-0b77ee39.js → p-f7d93067.js} +6 -6
  313. package/lib/dist-custom-elements/{p-ff3742a3.js → p-f80dea81.js} +5 -5
  314. package/lib/duet/duet.esm.js +1 -1
  315. package/lib/duet/duet.js +1 -1
  316. package/lib/duet/{p-02922551.entry.js → p-01965153.entry.js} +1 -1
  317. package/lib/duet/{p-8cfba882.system.entry.js → p-024c34d9.system.entry.js} +1 -1
  318. package/lib/duet/{p-7ff43e10.system.entry.js → p-02aca5ee.system.entry.js} +1 -1
  319. package/lib/duet/{p-9e73ce43.system.entry.js → p-03e76030.system.entry.js} +1 -1
  320. package/lib/duet/{p-cc2adccb.system.entry.js → p-04e49b2e.system.entry.js} +1 -1
  321. package/lib/duet/{p-a6c30abd.entry.js → p-05fc82b0.entry.js} +1 -1
  322. package/lib/duet/{p-2a1dd592.entry.js → p-077813ae.entry.js} +1 -1
  323. package/lib/duet/{p-00e5d987.system.entry.js → p-080a85af.system.entry.js} +1 -1
  324. package/lib/duet/{p-f2277c25.system.entry.js → p-0990faec.system.entry.js} +1 -1
  325. package/lib/duet/{p-1f45b3af.system.entry.js → p-0a405da0.system.entry.js} +1 -1
  326. package/lib/duet/{p-5d2cba5e.system.entry.js → p-0a72cb14.system.entry.js} +1 -1
  327. package/lib/duet/{p-7b01ab6d.system.entry.js → p-0aaac3fd.system.entry.js} +1 -1
  328. package/lib/duet/{p-6f5c7766.system.entry.js → p-0dd78a56.system.entry.js} +1 -1
  329. package/lib/duet/p-0e1d879e.system.js +4 -0
  330. package/lib/duet/{p-fa43f6c2.system.entry.js → p-0e4fe522.system.entry.js} +1 -1
  331. package/lib/duet/{p-d17b23fc.entry.js → p-1390ae19.entry.js} +1 -1
  332. package/lib/duet/{p-651d3dec.entry.js → p-13dce266.entry.js} +1 -1
  333. package/lib/duet/{p-fdf1fec8.entry.js → p-1425b59f.entry.js} +1 -1
  334. package/lib/duet/{p-24dcf46b.entry.js → p-144182a4.entry.js} +1 -1
  335. package/lib/duet/{p-0fa3c05b.entry.js → p-14f51a29.entry.js} +1 -1
  336. package/lib/duet/{p-4f87023e.entry.js → p-1657ff9a.entry.js} +1 -1
  337. package/lib/duet/{p-9b88b8f4.entry.js → p-17029aad.entry.js} +1 -1
  338. package/lib/duet/{p-0db9de80.system.entry.js → p-17ed0be9.system.entry.js} +1 -1
  339. package/lib/duet/{p-987e96a5.entry.js → p-1830fafe.entry.js} +1 -1
  340. package/lib/duet/{p-628dc72c.system.entry.js → p-18e13eb6.system.entry.js} +1 -1
  341. package/lib/duet/{p-23eb5520.entry.js → p-1b355115.entry.js} +1 -1
  342. package/lib/duet/{p-e70e9c50.system.entry.js → p-1be0f96f.system.entry.js} +2 -2
  343. package/lib/duet/p-1ca12248.entry.js +4 -0
  344. package/lib/duet/{p-83ea5225.js → p-1fe5a7e9.js} +1 -1
  345. package/lib/duet/{p-78376f40.system.entry.js → p-20669a1b.system.entry.js} +1 -1
  346. package/lib/duet/{p-16432cd4.entry.js → p-20baa68b.entry.js} +1 -1
  347. package/lib/duet/{p-d8323868.entry.js → p-22ae0db4.entry.js} +1 -1
  348. package/lib/duet/{p-1bd4baef.system.entry.js → p-22f40c48.system.entry.js} +1 -1
  349. package/lib/duet/{p-21208eb0.entry.js → p-24cc3a49.entry.js} +1 -1
  350. package/lib/duet/{p-c1c77f83.entry.js → p-2519a1b2.entry.js} +1 -1
  351. package/lib/duet/{p-e9e4825a.system.entry.js → p-25bfda5f.system.entry.js} +1 -1
  352. package/lib/duet/{p-4bb9c12b.system.entry.js → p-2d6cd3b0.system.entry.js} +1 -1
  353. package/lib/duet/{p-5638079e.system.entry.js → p-2fe6628e.system.entry.js} +2 -2
  354. package/lib/duet/{p-35580d9e.entry.js → p-328f8f18.entry.js} +1 -1
  355. package/lib/duet/{p-3c7d3755.entry.js → p-333f7ae7.entry.js} +1 -1
  356. package/lib/duet/{p-c1a9ca3f.entry.js → p-3372296f.entry.js} +1 -1
  357. package/lib/duet/{p-ce063cbd.system.entry.js → p-33a9413f.system.entry.js} +1 -1
  358. package/lib/duet/{p-88317c08.entry.js → p-33ee2b28.entry.js} +1 -1
  359. package/lib/duet/{p-67d84e6e.system.entry.js → p-35d651a8.system.entry.js} +1 -1
  360. package/lib/duet/{p-940ed1a1.entry.js → p-38baa305.entry.js} +1 -1
  361. package/lib/duet/p-3aecf400.system.entry.js +4 -0
  362. package/lib/duet/{p-bf62ea4a.entry.js → p-3b760329.entry.js} +1 -1
  363. package/lib/duet/{p-911830a9.entry.js → p-3c29e0ba.entry.js} +1 -1
  364. package/lib/duet/{p-8d5ebdab.system.entry.js → p-3c2cf893.system.entry.js} +1 -1
  365. package/lib/duet/{p-7fe2a579.entry.js → p-3c438fec.entry.js} +1 -1
  366. package/lib/duet/{p-f0354143.system.entry.js → p-3cbeb209.system.entry.js} +1 -1
  367. package/lib/duet/{p-82412ccb.entry.js → p-3cd37502.entry.js} +1 -1
  368. package/lib/duet/p-3ea64651.entry.js +4 -0
  369. package/lib/duet/{p-587b5b14.system.entry.js → p-40edc180.system.entry.js} +1 -1
  370. package/lib/duet/{p-705d56cf.entry.js → p-41a3f8ed.entry.js} +1 -1
  371. package/lib/duet/{p-4ca291e2.entry.js → p-435ed67f.entry.js} +1 -1
  372. package/lib/duet/{p-5a144646.entry.js → p-43c4d670.entry.js} +1 -1
  373. package/lib/duet/{p-c4ea6d92.entry.js → p-4421763f.entry.js} +1 -1
  374. package/lib/duet/{p-c8df1d39.entry.js → p-442cac9c.entry.js} +1 -1
  375. package/lib/duet/{p-6bbb4dd9.entry.js → p-4509c90e.entry.js} +1 -1
  376. package/lib/duet/{p-02785b42.system.entry.js → p-45cb4d7f.system.entry.js} +1 -1
  377. package/lib/duet/{p-594f7ff9.entry.js → p-473febb8.entry.js} +1 -1
  378. package/lib/duet/{p-11f51d65.entry.js → p-4cae058e.entry.js} +1 -1
  379. package/lib/duet/{p-053c4b67.system.entry.js → p-4dd14bc1.system.entry.js} +1 -1
  380. package/lib/duet/{p-21fb0158.entry.js → p-4ead37f9.entry.js} +1 -1
  381. package/lib/duet/{p-b87f5ff8.system.entry.js → p-5026ba81.system.entry.js} +2 -2
  382. package/lib/duet/{p-af0e060c.system.js → p-5122eee8.system.js} +1 -1
  383. package/lib/duet/p-519fef05.system.js +4 -0
  384. package/lib/duet/{p-1df441b0.system.entry.js → p-526bce13.system.entry.js} +1 -1
  385. package/lib/duet/{p-62a9692f.entry.js → p-570a2d5c.entry.js} +1 -1
  386. package/lib/duet/{p-0dac0f34.system.entry.js → p-590505a4.system.entry.js} +1 -1
  387. package/lib/duet/{p-21090503.system.entry.js → p-5a1dbce7.system.entry.js} +1 -1
  388. package/lib/duet/{p-3c412042.system.entry.js → p-5aeec4ac.system.entry.js} +1 -1
  389. package/lib/duet/{p-7d861055.entry.js → p-5c01b990.entry.js} +1 -1
  390. package/lib/duet/{p-ebf7a3ac.system.entry.js → p-5c48b80a.system.entry.js} +1 -1
  391. package/lib/duet/{p-f9be6c4a.system.entry.js → p-60ef6c46.system.entry.js} +1 -1
  392. package/lib/duet/{p-833d7be7.system.entry.js → p-61198184.system.entry.js} +1 -1
  393. package/lib/duet/{p-ef4fea1b.entry.js → p-618a0f3a.entry.js} +1 -1
  394. package/lib/duet/{p-b159c0a9.entry.js → p-62ba7ee2.entry.js} +1 -1
  395. package/lib/duet/p-63a67247.js +4 -0
  396. package/lib/duet/p-662c351a.system.js +4 -0
  397. package/lib/duet/{p-da1458e1.system.entry.js → p-68d50809.system.entry.js} +1 -1
  398. package/lib/duet/{p-32971abc.entry.js → p-7194f790.entry.js} +1 -1
  399. package/lib/duet/{p-618232f5.system.entry.js → p-71a2b27b.system.entry.js} +2 -2
  400. package/lib/duet/{p-a3a2f086.system.entry.js → p-71a70553.system.entry.js} +1 -1
  401. package/lib/duet/{p-fcf1b096.entry.js → p-73666dbd.entry.js} +1 -1
  402. package/lib/duet/p-75fdf144.system.js +4 -0
  403. package/lib/duet/{p-6a455c03.entry.js → p-7686eb1f.entry.js} +1 -1
  404. package/lib/duet/{p-03eb030a.system.entry.js → p-7761f427.system.entry.js} +1 -1
  405. package/lib/duet/{p-7013ce09.system.entry.js → p-7789db31.system.entry.js} +1 -1
  406. package/lib/duet/p-78033ea5.js +4 -0
  407. package/lib/duet/{p-bca76d73.entry.js → p-7930882f.entry.js} +1 -1
  408. package/lib/duet/p-79562f98.entry.js +4 -0
  409. package/lib/duet/{p-f87be171.system.entry.js → p-7adab44d.system.entry.js} +1 -1
  410. package/lib/duet/{p-474c40d9.system.entry.js → p-7d050716.system.entry.js} +1 -1
  411. package/lib/duet/{p-a0a43bf4.entry.js → p-7d10302e.entry.js} +1 -1
  412. package/lib/duet/{p-5b0acd52.system.entry.js → p-808d9dc7.system.entry.js} +2 -2
  413. package/lib/duet/{p-10bfafcf.entry.js → p-80c89ac1.entry.js} +1 -1
  414. package/lib/duet/{p-437e64f1.system.entry.js → p-836bee60.system.entry.js} +2 -2
  415. package/lib/duet/{p-ca812b3c.entry.js → p-844d9170.entry.js} +1 -1
  416. package/lib/duet/{p-8e0952b2.entry.js → p-85167dd4.entry.js} +1 -1
  417. package/lib/duet/{p-98eddabd.entry.js → p-8522541f.entry.js} +1 -1
  418. package/lib/duet/{p-0b74ce31.entry.js → p-85696a8e.entry.js} +1 -1
  419. package/lib/duet/p-88dda3dd.entry.js +4 -0
  420. package/lib/duet/{p-6916bba8.entry.js → p-8975b5ee.entry.js} +1 -1
  421. package/lib/duet/{p-d064df5e.js → p-89a1d75a.js} +1 -1
  422. package/lib/duet/{p-2819123b.system.entry.js → p-8a02bd75.system.entry.js} +1 -1
  423. package/lib/duet/{p-8bf31541.system.entry.js → p-8b350472.system.entry.js} +1 -1
  424. package/lib/duet/{p-8173dd50.system.entry.js → p-8bed4283.system.entry.js} +2 -2
  425. package/lib/duet/{p-0454a8c6.entry.js → p-8c1442ff.entry.js} +1 -1
  426. package/lib/duet/{p-40295380.js → p-8c2abe91.js} +1 -1
  427. package/lib/duet/{p-b3b3b6d2.system.entry.js → p-8c66abfb.system.entry.js} +2 -2
  428. package/lib/duet/{p-dab809f9.entry.js → p-8da3b624.entry.js} +1 -1
  429. package/lib/duet/{p-7053f582.entry.js → p-8e5de54a.entry.js} +1 -1
  430. package/lib/duet/{p-e06e9231.entry.js → p-9004d8ff.entry.js} +1 -1
  431. package/lib/duet/p-9608ad22.system.js +4 -0
  432. package/lib/duet/p-9615338f.system.entry.js +4 -0
  433. package/lib/duet/{p-85d98f00.entry.js → p-964cab98.entry.js} +1 -1
  434. package/lib/duet/{p-f58be348.system.entry.js → p-97393e12.system.entry.js} +1 -1
  435. package/lib/duet/{p-3bffb004.system.entry.js → p-98feb289.system.entry.js} +1 -1
  436. package/lib/duet/{p-f074b245.entry.js → p-9c201da2.entry.js} +1 -1
  437. package/lib/duet/{p-3e995aa9.entry.js → p-9e4e3a7d.entry.js} +1 -1
  438. package/lib/duet/{p-bf06650e.js → p-9eed5f82.js} +1 -1
  439. package/lib/duet/{p-72b80f54.entry.js → p-9f1e07cc.entry.js} +1 -1
  440. package/lib/duet/{p-025452a3.system.entry.js → p-9faf2ac2.system.entry.js} +1 -1
  441. package/lib/duet/p-a03fcf76.system.js +4 -0
  442. package/lib/duet/{p-e6c3d5b0.system.entry.js → p-a04ebea2.system.entry.js} +1 -1
  443. package/lib/duet/p-a41a83dc.system.entry.js +4 -0
  444. package/lib/duet/{p-ede03d44.system.entry.js → p-a51a1f94.system.entry.js} +1 -1
  445. package/lib/duet/{p-1f5772a7.entry.js → p-a8e26d38.entry.js} +1 -1
  446. package/lib/duet/{p-a820ff4d.system.entry.js → p-aadd382f.system.entry.js} +1 -1
  447. package/lib/duet/{p-6288d368.system.entry.js → p-ab7e07be.system.entry.js} +1 -1
  448. package/lib/duet/{p-d5ceec92.system.entry.js → p-ad43bd23.system.entry.js} +1 -1
  449. package/lib/duet/{p-69d12878.entry.js → p-af3397e6.entry.js} +1 -1
  450. package/lib/duet/p-b036d747.entry.js +4 -0
  451. package/lib/duet/{p-fa843791.entry.js → p-b094d253.entry.js} +1 -1
  452. package/lib/duet/{p-b9189fc1.js → p-b16705db.js} +1 -1
  453. package/lib/duet/{p-1eed0b1c.system.entry.js → p-b3f5912a.system.entry.js} +1 -1
  454. package/lib/duet/{p-822bbe28.system.entry.js → p-b5191612.system.entry.js} +1 -1
  455. package/lib/duet/{p-c1884875.entry.js → p-b5cb52b3.entry.js} +1 -1
  456. package/lib/duet/{p-61e21220.system.js → p-b5eb657a.system.js} +1 -1
  457. package/lib/duet/{p-64709c5e.system.entry.js → p-b6578600.system.entry.js} +1 -1
  458. package/lib/duet/{p-e9b88155.system.entry.js → p-b9af2990.system.entry.js} +2 -2
  459. package/lib/duet/{p-c6497425.entry.js → p-baf03e8b.entry.js} +1 -1
  460. package/lib/duet/{p-2c09d10f.entry.js → p-bb71c581.entry.js} +1 -1
  461. package/lib/duet/{p-723a5a2f.system.entry.js → p-bc44defc.system.entry.js} +1 -1
  462. package/lib/duet/{p-c9c52ec2.entry.js → p-bfa13cf6.entry.js} +1 -1
  463. package/lib/duet/{p-14108f66.entry.js → p-bffda5ab.entry.js} +1 -1
  464. package/lib/duet/p-c23c9c77.entry.js +4 -0
  465. package/lib/duet/{p-43a8d843.system.entry.js → p-c45ddc7a.system.entry.js} +1 -1
  466. package/lib/duet/{p-33e24f0b.system.entry.js → p-c4eb60a1.system.entry.js} +2 -2
  467. package/lib/duet/{p-6ab8cc04.system.entry.js → p-c59fbbb1.system.entry.js} +1 -1
  468. package/lib/duet/{p-db1a5bf4.system.entry.js → p-c658fdf2.system.entry.js} +1 -1
  469. package/lib/duet/{p-e430fc87.system.entry.js → p-c6c01a4f.system.entry.js} +1 -1
  470. package/lib/duet/{p-903b934c.system.entry.js → p-c6e60d08.system.entry.js} +1 -1
  471. package/lib/duet/{p-79bccb1f.system.entry.js → p-cc22486b.system.entry.js} +1 -1
  472. package/lib/duet/{p-fc9148a1.entry.js → p-cf5551f7.entry.js} +1 -1
  473. package/lib/duet/{p-326ef77a.system.entry.js → p-d0b648c5.system.entry.js} +1 -1
  474. package/lib/duet/{p-a157e1cc.entry.js → p-d1c7c87b.entry.js} +1 -1
  475. package/lib/duet/{p-91df376b.entry.js → p-d4e9333f.entry.js} +1 -1
  476. package/lib/duet/{p-013ff1b1.entry.js → p-d5a2f426.entry.js} +1 -1
  477. package/lib/duet/{p-1c58f3a1.system.entry.js → p-d5ad1dca.system.entry.js} +1 -1
  478. package/lib/duet/{p-41bafdf1.system.entry.js → p-d610918e.system.entry.js} +1 -1
  479. package/lib/duet/{p-5d7af988.system.js → p-d63c92fc.system.js} +1 -1
  480. package/lib/duet/{p-feb01054.entry.js → p-d87768a3.entry.js} +1 -1
  481. package/lib/duet/{p-89a1fa97.system.entry.js → p-d977fe38.system.entry.js} +1 -1
  482. package/lib/duet/{p-c1db69bc.system.entry.js → p-dd011cf1.system.entry.js} +2 -2
  483. package/lib/duet/{p-386fdf47.system.entry.js → p-e124ed8c.system.entry.js} +2 -2
  484. package/lib/duet/{p-61f97ebd.system.entry.js → p-e2e84fa3.system.entry.js} +1 -1
  485. package/lib/duet/{p-46ba82ab.system.entry.js → p-e4bda446.system.entry.js} +1 -1
  486. package/lib/duet/{p-dc12856e.system.entry.js → p-e538f43c.system.entry.js} +1 -1
  487. package/lib/duet/{p-0f945464.entry.js → p-e5716306.entry.js} +1 -1
  488. package/lib/duet/p-e5f1e38a.js +4 -0
  489. package/lib/duet/{p-5da25b76.entry.js → p-e762de37.entry.js} +1 -1
  490. package/lib/duet/{p-0aa18687.system.entry.js → p-e8059b67.system.entry.js} +1 -1
  491. package/lib/duet/{p-38d5c9e6.entry.js → p-e9e59d73.entry.js} +1 -1
  492. package/lib/duet/{p-d32bd233.js → p-eb60efcc.js} +1 -1
  493. package/lib/duet/{p-4ded9936.entry.js → p-ecb06d44.entry.js} +1 -1
  494. package/lib/duet/{p-9cc1306c.entry.js → p-ece11bcb.entry.js} +1 -1
  495. package/lib/duet/{p-9516f5fc.system.entry.js → p-ecf25e2f.system.entry.js} +1 -1
  496. package/lib/duet/{p-7b43d889.system.entry.js → p-f01d0296.system.entry.js} +1 -1
  497. package/lib/duet/{p-3b7bc2eb.entry.js → p-f38adc18.entry.js} +1 -1
  498. package/lib/duet/{p-b7a29ea3.system.entry.js → p-f482b5af.system.entry.js} +1 -1
  499. package/lib/duet/{p-a445ce8a.entry.js → p-f6ada3f6.entry.js} +1 -1
  500. package/lib/duet/{p-f787b33c.entry.js → p-f740cd96.entry.js} +1 -1
  501. package/lib/duet/{p-adeb1555.system.js → p-f78b9d60.system.js} +1 -1
  502. package/lib/duet/{p-563804e0.system.entry.js → p-f7a30994.system.entry.js} +1 -1
  503. package/lib/esm/{a11y-utils-e494647a.js → a11y-utils-d44f1172.js} +1 -1
  504. package/lib/esm/{app-globals-ba36fb7c.js → app-globals-5ec0d260.js} +1 -1
  505. package/lib/esm/duet-action-button.entry.js +3 -3
  506. package/lib/esm/duet-alert.entry.js +4 -4
  507. package/lib/esm/duet-badge.entry.js +4 -4
  508. package/lib/esm/duet-banner.entry.js +3 -3
  509. package/lib/esm/duet-breadcrumb.entry.js +7 -7
  510. package/lib/esm/duet-breadcrumbs.entry.js +5 -5
  511. package/lib/esm/duet-button_2.entry.js +6 -6
  512. package/lib/esm/duet-callout.entry.js +5 -5
  513. package/lib/esm/duet-caption_4.entry.js +9 -9
  514. package/lib/esm/duet-card.entry.js +3 -3
  515. package/lib/esm/duet-checkbox.entry.js +2 -2
  516. package/lib/esm/duet-checkmark.entry.js +4 -4
  517. package/lib/esm/duet-chip.entry.js +3 -3
  518. package/lib/esm/duet-choice_2.entry.js +4 -4
  519. package/lib/esm/duet-collapsible.entry.js +4 -4
  520. package/lib/esm/duet-combobox.entry.js +4 -4
  521. package/lib/esm/duet-contact-card.entry.js +5 -5
  522. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  523. package/lib/esm/duet-date-picker.entry.js +5 -5
  524. package/lib/esm/duet-divider_2.entry.js +3 -3
  525. package/lib/esm/duet-editable-table_3.entry.js +8 -8
  526. package/lib/esm/duet-empty-state.entry.js +2 -2
  527. package/lib/esm/duet-fieldset.entry.js +6 -6
  528. package/lib/esm/duet-file-chooser.entry.js +2 -2
  529. package/lib/esm/duet-footer.entry.js +4 -4
  530. package/lib/esm/duet-grid_2.entry.js +2 -2
  531. package/lib/esm/duet-header_2.entry.js +47 -10
  532. package/lib/esm/duet-hero.entry.js +4 -4
  533. package/lib/esm/duet-icon.entry.js +6 -6
  534. package/lib/esm/duet-input_2.entry.js +4 -4
  535. package/lib/esm/duet-layout.entry.js +2 -2
  536. package/lib/esm/duet-list_2.entry.js +4 -4
  537. package/lib/esm/duet-menu-bar-button.entry.js +4 -4
  538. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
  539. package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
  540. package/lib/esm/duet-menu-bar-item.entry.js +7 -7
  541. package/lib/esm/duet-menu-bar-link.entry.js +4 -4
  542. package/lib/esm/duet-menu-bar.entry.js +11 -42
  543. package/lib/esm/duet-modal.entry.js +11 -11
  544. package/lib/esm/duet-multiselect.entry.js +9 -9
  545. package/lib/esm/duet-nav.entry.js +3 -3
  546. package/lib/esm/duet-notification_2.entry.js +7 -7
  547. package/lib/esm/duet-number-input.entry.js +4 -4
  548. package/lib/esm/duet-overlay.entry.js +3 -3
  549. package/lib/esm/duet-page-heading.entry.js +5 -5
  550. package/lib/esm/duet-pagination_2.entry.js +16 -16
  551. package/lib/esm/duet-phone-input.entry.js +4 -4
  552. package/lib/esm/duet-popup-menu_2.entry.js +6 -6
  553. package/lib/esm/duet-progress.entry.js +3 -3
  554. package/lib/esm/duet-promo-card.entry.js +5 -5
  555. package/lib/esm/duet-radio_2.entry.js +3 -3
  556. package/lib/esm/duet-range-slider.entry.js +2 -2
  557. package/lib/esm/duet-scrollable_3.entry.js +13 -13
  558. package/lib/esm/duet-section-layout.entry.js +4 -4
  559. package/lib/esm/duet-select.entry.js +3 -3
  560. package/lib/esm/duet-shaped-image.entry.js +4 -4
  561. package/lib/esm/duet-share-chart-item.entry.js +2 -2
  562. package/lib/esm/duet-share-chart.entry.js +6 -6
  563. package/lib/esm/duet-show-more.entry.js +5 -5
  564. package/lib/esm/duet-slideout-lang.entry.js +4 -4
  565. package/lib/esm/duet-slideout-link.entry.js +7 -7
  566. package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
  567. package/lib/esm/duet-slideout-panel.entry.js +11 -11
  568. package/lib/esm/duet-slideout.entry.js +9 -9
  569. package/lib/esm/duet-status-icon.entry.js +4 -4
  570. package/lib/esm/duet-step_2.entry.js +4 -4
  571. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
  572. package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
  573. package/lib/esm/duet-submenu-bar-item.entry.js +6 -6
  574. package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
  575. package/lib/esm/duet-submenu-bar.entry.js +8 -8
  576. package/lib/esm/duet-textarea.entry.js +4 -4
  577. package/lib/esm/duet-toggle.entry.js +2 -2
  578. package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
  579. package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
  580. package/lib/esm/duet-toolbar-item.entry.js +8 -8
  581. package/lib/esm/duet-toolbar-link.entry.js +4 -4
  582. package/lib/esm/duet-toolbar.entry.js +4 -4
  583. package/lib/esm/duet-tooltip-button_2.entry.js +8 -8
  584. package/lib/esm/duet-tooltip.entry.js +4 -4
  585. package/lib/esm/duet-tray.entry.js +5 -5
  586. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  587. package/lib/esm/duet-upload-item.entry.js +6 -6
  588. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  589. package/lib/esm/duet.js +4 -4
  590. package/lib/esm/{errorcodes.utils-f1b68042.js → errorcodes.utils-4ce3105d.js} +1 -1
  591. package/lib/esm/{focus-utils-b131ac81.js → focus-utils-0d727936.js} +1 -1
  592. package/lib/esm/{index-822baec2.js → index-5757a151.js} +1 -1
  593. package/lib/esm/{language-utils-2038d09e.js → language-utils-1aea3619.js} +1 -1
  594. package/lib/esm/loader.js +4 -4
  595. package/lib/esm/{slot-utils-5410a171.js → slot-utils-03502471.js} +1 -1
  596. package/lib/esm/{themeable-component-4e1ca2f5.js → themeable-component-e507940b.js} +14 -2
  597. package/lib/esm/{tokens-85fb95d1.js → tokens-57aa1508.js} +1 -1
  598. package/lib/esm-es5/{a11y-utils-e494647a.js → a11y-utils-d44f1172.js} +1 -1
  599. package/lib/esm-es5/{app-globals-ba36fb7c.js → app-globals-5ec0d260.js} +1 -1
  600. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  601. package/lib/esm-es5/duet-alert.entry.js +1 -1
  602. package/lib/esm-es5/duet-badge.entry.js +1 -1
  603. package/lib/esm-es5/duet-banner.entry.js +1 -1
  604. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  605. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  606. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  607. package/lib/esm-es5/duet-callout.entry.js +1 -1
  608. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  609. package/lib/esm-es5/duet-card.entry.js +1 -1
  610. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  611. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  612. package/lib/esm-es5/duet-chip.entry.js +1 -1
  613. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  614. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  615. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  616. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  617. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  618. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  619. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  620. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  621. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  622. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  623. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  624. package/lib/esm-es5/duet-footer.entry.js +1 -1
  625. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  626. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  627. package/lib/esm-es5/duet-hero.entry.js +1 -1
  628. package/lib/esm-es5/duet-icon.entry.js +1 -1
  629. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  630. package/lib/esm-es5/duet-layout.entry.js +1 -1
  631. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  632. package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
  633. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  634. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  635. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  636. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  637. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  638. package/lib/esm-es5/duet-modal.entry.js +1 -1
  639. package/lib/esm-es5/duet-multiselect.entry.js +2 -2
  640. package/lib/esm-es5/duet-nav.entry.js +1 -1
  641. package/lib/esm-es5/duet-notification_2.entry.js +2 -2
  642. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  643. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  644. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  645. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  646. package/lib/esm-es5/duet-phone-input.entry.js +1 -1
  647. package/lib/esm-es5/duet-popup-menu_2.entry.js +1 -1
  648. package/lib/esm-es5/duet-progress.entry.js +1 -1
  649. package/lib/esm-es5/duet-promo-card.entry.js +2 -2
  650. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  651. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  652. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  653. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  654. package/lib/esm-es5/duet-select.entry.js +1 -1
  655. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  656. package/lib/esm-es5/duet-share-chart-item.entry.js +1 -1
  657. package/lib/esm-es5/duet-share-chart.entry.js +1 -1
  658. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  659. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  660. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  661. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
  662. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  663. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  664. package/lib/esm-es5/duet-status-icon.entry.js +1 -1
  665. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  666. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  667. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  668. package/lib/esm-es5/duet-submenu-bar-item.entry.js +1 -1
  669. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  670. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  671. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  672. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  673. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  674. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +2 -2
  675. package/lib/esm-es5/duet-toolbar-item.entry.js +2 -2
  676. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  677. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  678. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  679. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  680. package/lib/esm-es5/duet-tray.entry.js +1 -1
  681. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  682. package/lib/esm-es5/duet-upload-item.entry.js +2 -2
  683. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  684. package/lib/esm-es5/duet.js +1 -1
  685. package/lib/esm-es5/{errorcodes.utils-f1b68042.js → errorcodes.utils-4ce3105d.js} +1 -1
  686. package/lib/esm-es5/focus-utils-0d727936.js +4 -0
  687. package/lib/esm-es5/{index-822baec2.js → index-5757a151.js} +1 -1
  688. package/lib/esm-es5/{language-utils-2038d09e.js → language-utils-1aea3619.js} +1 -1
  689. package/lib/esm-es5/loader.js +1 -1
  690. package/lib/esm-es5/{slot-utils-5410a171.js → slot-utils-03502471.js} +1 -1
  691. package/lib/esm-es5/themeable-component-e507940b.js +4 -0
  692. package/lib/esm-es5/{tokens-85fb95d1.js → tokens-57aa1508.js} +1 -1
  693. package/lib/types/components/duet-logo/duet-logo.d.ts +8 -0
  694. package/lib/types/components/duet-menu-bar/duet-menu-bar.d.ts +5 -4
  695. package/lib/types/components.d.ts +9 -0
  696. package/package.json +4 -4
  697. package/lib/duet/p-0a7ee399.js +0 -4
  698. package/lib/duet/p-0e7cf850.js +0 -4
  699. package/lib/duet/p-1c8887ea.entry.js +0 -4
  700. package/lib/duet/p-242bcacd.system.js +0 -4
  701. package/lib/duet/p-25da61f0.entry.js +0 -4
  702. package/lib/duet/p-27219a43.js +0 -4
  703. package/lib/duet/p-4c6198ef.system.entry.js +0 -4
  704. package/lib/duet/p-4e9fc9dc.system.js +0 -4
  705. package/lib/duet/p-586ba4e6.system.entry.js +0 -4
  706. package/lib/duet/p-91d5d8cb.entry.js +0 -4
  707. package/lib/duet/p-9d336f77.system.js +0 -4
  708. package/lib/duet/p-d64b13f1.system.entry.js +0 -4
  709. package/lib/duet/p-d80ae90e.system.js +0 -4
  710. package/lib/duet/p-dff0867d.system.js +0 -4
  711. package/lib/duet/p-e50a2f96.system.js +0 -4
  712. package/lib/duet/p-f0566568.entry.js +0 -4
  713. package/lib/duet/p-f528fb99.entry.js +0 -4
  714. package/lib/duet/p-f713c32c.entry.js +0 -4
  715. package/lib/esm-es5/focus-utils-b131ac81.js +0 -4
  716. package/lib/esm-es5/themeable-component-4e1ca2f5.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-822baec2.js";import{i as inheritGlobalTheme}from"./themeable-component-4e1ca2f5.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-2038d09e.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)}:host(.duet-theme-turva2.duet-theme-turva) .duet-pagination-total-pages{color:#172a3b}';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:"2a6229532f13b87abbe9516a7e1d963f326bbe5f",onKeyDown:function(t){return e.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},h("nav",{key:"17bb09135ec2469462f97327dd10fc4df8b7ba2f",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:"d7790c2abfd67c48c2c00902c68974dd8626bf71","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:"8575683476771915a156987555b607d1d2aa41d8",theme:this.theme},"jump to page : ",this.numbersStore)),h("ol",{key:"611763930ab1762f00066404535bf671646f11c7",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:"07de0cbb95475c4f651e407083a98842e6f8ce1c",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"6ac18d6caf5e66bcbb2d7081ddb6f15ad002cb32",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:"a77c83085ba874fa552956d7bacbaa51df0f60dc",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"9b88ef244fddf7edb6b198a2eeaa39e17bdf97c1",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:"484cab98fb6fe5db348a64fa07a1f1c121ba4466"},h("li",{key:"107163ced817f01f0396ef770709d8f79aa850cc",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"f3990bec3ff33472269bfe339ccb14fdaecea604",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:"7f1dc1c7b3be8cec6ccb6316e92581b9647c30c4",class:"duet-pagination-page-number"},"1"))),h("li",{key:"eb308628880c8e4b3b26c58458e7206aabd5a9d5",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"a82f0b31fe15c31942c3dde3704657117adc85a0",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:"accb27855f8adce6868045c91119095db44c737c",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:"472d8b4c7ba1d4970f3dca8c20db2d0677d887c3"},(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&h("li",{key:"dd9a303384ff2e3305cb0fe933c65de2c3b52bc4",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"bfcf00cc19f04fcdb04338328e903775968aa679",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:"9663d211118c3d4eaf8dc7c486f537876465d90f",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),h("li",{key:"a8384c6ae3229e426b4dcca36496b3957aeec92b",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"adef2d4a9d24ef1b6b6555ef83795b65c3aa7e39",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:"a22f994edb17fa5865b564324bf3199970e2ae2a",class:"duet-pagination-page-number"},this.totalPages)))),h("li",{key:"d1d2308979af9cda7b793a5b945044e22c64a891",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"29a745ff6e2ea1485c4fd7aef4e658b343fa9c1b",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:"668f3da154d7d5d42f115cf197a95b8a83ba9365",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"eefec009212d7dee560c9f21d1cdf959bfaac645",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}:host(.duet-theme-turva2) .duet-theme-turva .duet-range-step-counter{color:#172a3b}";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:"3fa08eaa9b32a3e86c05908cf62749a1f2d06160",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:"3cc01c7b2b558f049f5dce477ac09d2046f9adaf",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),h("duet-action-button",{key:"be8e08eb55049747a64b8dbedf553809958ef6fa",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:"0930fe197ce06ee4ab4d9f513ee72054b6406e93",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-5757a151.js";import{i as inheritGlobalTheme}from"./themeable-component-e507940b.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-1aea3619.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)}:host(.duet-theme-turva2.duet-theme-turva) .duet-pagination-total-pages{color:#172a3b}';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:"550a0fc5ef320fe167a76073ac541e5c7d5fc906",onKeyDown:function(t){return e.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},h("nav",{key:"7276d529426c05ac4586f1111615893e89192ca3",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:"6c876ae7965c0db70dfc9d4bb38185b3400fd980","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:"491ab26e71e2274ec1f3ae9f9fa807c96c26988f",theme:this.theme},"jump to page : ",this.numbersStore)),h("ol",{key:"b044281e69261b30b387c5511bac3ff44cceffd3",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:"a6255e0ba8858f57f18821a3b1586d069e668c60",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"8497e8b2e090635cf36df9342a57bd69f6c0ca3e",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:"63c11bc55792509810011a9b5998e28b806af088",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"785127577a59b664ac24dd84ba49fa4ff766b12f",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:"2e20e28716d50f15ff6b3d0155503885c6d4b1f9"},h("li",{key:"e7ca743b6441e11f4e7ca05f2d70bd51e0d8249f",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"0ca7e2d7f9b372f7e8159b415f65bb0e034b4412",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:"d962fe9e611a86d7a920a79844e4f218f612f2e0",class:"duet-pagination-page-number"},"1"))),h("li",{key:"0c98e2881a6a27df7c04f39885fdb0091e576e63",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"60657c4c2e7d780ba28f043a8bdb4cdd2bbe056e",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:"04541316f789326e8beab65643257d6163dc7862",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:"fd65168afa2ec2fda465bbc67f65fbbb7ef82fad"},(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&h("li",{key:"16f9aaa144f051f8b69d077c82c7b1373df20533",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"cb8a5a9c94e69471f20a34674e70e5033461f6ca",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:"f0f2535ec2b567e905d09e8b53ecb0c8c8356a3c",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),h("li",{key:"0b55a14d5c021e0287574d8b0087d539286d0aa2",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"ffbcc148424ed5780261538630d9bf3838fd004d",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:"e3555c707cce955ffa25c1a0a0f69e87b00aa930",class:"duet-pagination-page-number"},this.totalPages)))),h("li",{key:"afe74ceb64b04457870df86a203cead270c0a576",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"2349f3eefaa6ffd9a681fe51fd4897e96087758e",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:"b2b64a21aebddfe74abbba43fa76cc3dcbd1c1e9",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"0d0a88080e449b5b36f8c5ac22bff1482f5bf2ac",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}:host(.duet-theme-turva2) .duet-theme-turva .duet-range-step-counter{color:#172a3b}";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:"3d8d9ed5879447251d48ae757daaf8ffef02ad3d",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:"c88c202c7002fb522a26377fb353ca2a24a94eb7",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),h("duet-action-button",{key:"bfab979e32c0b863937a1cab50cd8f6b48d0fb69",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:"59a4f61632394157513cd4f632bed9e46a19e44c",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-822baec2.js";import{i as inheritGlobalTheme}from"./themeable-component-4e1ca2f5.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-2038d09e.js";import{c as checkNamedSlotElement}from"./slot-utils-5410a171.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,i;var a=(n=(e=o.duetInputElement)===null||e===void 0?void 0:e.value)===null||n===void 0?void 0:n.trim();var t=o.currentCountry!=="error"&&((i=o.currentCountry)===null||i===void 0?void 0:i.telephoneCountryCode)||"";var r=o.findCountryCode(a)||"";if(!a){o.currentCountry=undefined;return}if(t===r){return}if(r){o.currentCountry=o.findCountryForCode(r);return}if(t!=="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,o,n;return(n=(o=(e=this.duetInputElement)===null||e===void 0?void 0:e.value)===null||o===void 0?void 0:o.replace(/\s/g,""))!==null&&n!==void 0?n:""},set:function(e){this.duetInputElement.value="".concat(e).replace(/[^\d+ ]/g,"");this.handleInput()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"validity",{get:function(){var e;return(e=this.duetInputElement)===null||e===void 0?void 0:e.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(){var o;return __generator(this,(function(n){(o=this.duetInputElement)===null||o===void 0?void 0:o.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);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===null||e===void 0?void 0: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-divider",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-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,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-5757a151.js";import{i as inheritGlobalTheme}from"./themeable-component-e507940b.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-1aea3619.js";import{c as checkNamedSlotElement}from"./slot-utils-03502471.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,i;var a=(n=(e=o.duetInputElement)===null||e===void 0?void 0:e.value)===null||n===void 0?void 0:n.trim();var t=o.currentCountry!=="error"&&((i=o.currentCountry)===null||i===void 0?void 0:i.telephoneCountryCode)||"";var r=o.findCountryCode(a)||"";if(!a){o.currentCountry=undefined;return}if(t===r){return}if(r){o.currentCountry=o.findCountryForCode(r);return}if(t!=="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,o,n;return(n=(o=(e=this.duetInputElement)===null||e===void 0?void 0:e.value)===null||o===void 0?void 0:o.replace(/\s/g,""))!==null&&n!==void 0?n:""},set:function(e){this.duetInputElement.value="".concat(e).replace(/[^\d+ ]/g,"");this.handleInput()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"validity",{get:function(){var e;return(e=this.duetInputElement)===null||e===void 0?void 0:e.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(){var o;return __generator(this,(function(n){(o=this.duetInputElement)===null||o===void 0?void 0:o.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);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===null||e===void 0?void 0: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-divider",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-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,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,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?i(e.value):r(e.value).then(a,s)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(i=0)),i)try{if(n=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(s[0]===6&&i.label<o[1]){i.label=o[1];o=s;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(s);break}if(o[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];r=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-822baec2.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-ebc91b33.js";import{i as inheritGlobalTheme}from"./themeable-component-4e1ca2f5.js";import{f as focusElement}from"./focus-utils-b131ac81.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-2038d09e.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}slot{--divider-margin:var(--space-x-small, 8px)}:host(.duet-theme-turva2) .duet-popup-menu-list.duet-theme-turva{color:#172a3b !important}";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});e.prototype.getAllPrecedingMatchingSiblings=function(e,t){var i=e.previousElementSibling;if(i){var n=this.getAllPrecedingMatchingSiblings(i,t);if(i===null||i===void 0?void 0:i.matches(t)){n.push(i)}return n}return[]};Object.defineProperty(e.prototype,"popupMenuStyleHeight",{get:function(){var e;var t=":scope duet-popup-menu-item, :scope duet-notification";var i=Array.from(this.element.querySelectorAll(t));var n=i.filter((function(e){return e.style.display!=="none"}));if(n.length>0&&this.scrollLimit){var r=n.slice(0,this.scrollLimit-1);var o=r.reduce((function(e,t){return e+t.offsetHeight}),0);var a=((e=this.filterInput)===null||e===void 0?void 0:e.offsetHeight)||0;var s=r[r.length-1];var u=this.getAllPrecedingMatchingSiblings(s,"duet-divider").length*17;var h=Number(spaceXSmall.replace("px",""))*2;return"".concat(o+a+u+h,"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:"8162bd3dcf089f1fbd0890ba90752b8375845e02"},h("div",{key:"a960165406ca70e48975935be91407e196af3acb",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:"41ff2d5c37e1b82432abe9ae940120c4f27c2de7"},h("duet-input",{key:"aeeebdf64aa13db39dc6bb49e9a33a9eddf71171",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:"22bffb507bc56003ed6df5c58255bba01938e985"},h("span",{key:"2720b44f182bd5590999b37d4ac9157bf3d72a1c",role:"status"},"\n ".concat(this.filterResultCount,"/").concat(this.itemElements.length,"\n ").concat(this.filterResultCountLabel[this.language],"\n "))),h("duet-spacer",{key:"ab6b1d79410935e50a5c6a15fc5f66d141ee5590",size:"xx-small"})),h("slot",{key:"6265f5a9f3cde710961b4e815da45501016f4056"})))};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}:host(.duet-theme-turva2) .duet-popup-menu-item.duet-theme-turva{color:#172a3b}:host(.duet-theme-turva2) .duet-popup-menu-item.active.duet-theme-turva{background:#fdf7f2}:host(.duet-theme-turva2) .duet-popup-menu-item:hover.duet-theme-turva{background:#fbebe1}';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.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(navigator===null||navigator===void 0?void 0:navigator.userAgent);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:"855ded901c72934bac1959da3b87bddc4510f234",role:this.accessibleRole==="menuitem"&&this.isSafariBrowser?null:this.accessibleRole},h(t,{key:"0ff260f8a56f6d2b8dc841efed00cc1d60c79c4f",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:"bc7550f68280ed7fc512994919fba2f5315f9d3d",name:this.leadingIcon,size:"x-small",color:this.leadingIconColor?this.leadingIconColor:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),h("span",{key:"7a0da71e0a62507c7a92bb9804c350ce539db409",class:"duet-popup-menu-item-label"},h("slot",{key:"a259f892030a63c8638546ba897ede8ced555aac"})),(this.trailingIcon||this.active||this.url&&this.external)&&h("duet-icon",{key:"85ccdb025eaa1159afd2d19931a5461d5092d319",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:"b281a83d0a76db4efa87bae68076ce42e153e482",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-5757a151.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-ebc91b33.js";import{i as inheritGlobalTheme}from"./themeable-component-e507940b.js";import{f as focusElement}from"./focus-utils-0d727936.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-1aea3619.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}slot{--divider-margin:var(--space-x-small, 8px)}:host(.duet-theme-turva2) .duet-popup-menu-list.duet-theme-turva{color:#172a3b !important}";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});e.prototype.getAllPrecedingMatchingSiblings=function(e,t){var i=e.previousElementSibling;if(i){var n=this.getAllPrecedingMatchingSiblings(i,t);if(i===null||i===void 0?void 0:i.matches(t)){n.push(i)}return n}return[]};Object.defineProperty(e.prototype,"popupMenuStyleHeight",{get:function(){var e;var t=":scope duet-popup-menu-item, :scope duet-notification";var i=Array.from(this.element.querySelectorAll(t));var n=i.filter((function(e){return e.style.display!=="none"}));if(n.length>0&&this.scrollLimit){var r=n.slice(0,this.scrollLimit-1);var o=r.reduce((function(e,t){return e+t.offsetHeight}),0);var a=((e=this.filterInput)===null||e===void 0?void 0:e.offsetHeight)||0;var s=r[r.length-1];var u=this.getAllPrecedingMatchingSiblings(s,"duet-divider").length*17;var h=Number(spaceXSmall.replace("px",""))*2;return"".concat(o+a+u+h,"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:"8162bd3dcf089f1fbd0890ba90752b8375845e02"},h("div",{key:"a960165406ca70e48975935be91407e196af3acb",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:"41ff2d5c37e1b82432abe9ae940120c4f27c2de7"},h("duet-input",{key:"aeeebdf64aa13db39dc6bb49e9a33a9eddf71171",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:"22bffb507bc56003ed6df5c58255bba01938e985"},h("span",{key:"2720b44f182bd5590999b37d4ac9157bf3d72a1c",role:"status"},"\n ".concat(this.filterResultCount,"/").concat(this.itemElements.length,"\n ").concat(this.filterResultCountLabel[this.language],"\n "))),h("duet-spacer",{key:"ab6b1d79410935e50a5c6a15fc5f66d141ee5590",size:"xx-small"})),h("slot",{key:"6265f5a9f3cde710961b4e815da45501016f4056"})))};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}:host(.duet-theme-turva2) .duet-popup-menu-item.duet-theme-turva{color:#172a3b}:host(.duet-theme-turva2) .duet-popup-menu-item.active.duet-theme-turva{background:#fdf7f2}:host(.duet-theme-turva2) .duet-popup-menu-item:hover.duet-theme-turva{background:#fbebe1}';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.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(navigator===null||navigator===void 0?void 0:navigator.userAgent);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:"76a5ddd0306fa03e605cef3d3e484dca33446d14",role:this.accessibleRole==="menuitem"&&this.isSafariBrowser?null:this.accessibleRole},h(t,{key:"55c06e263ba92718f8927cb910e239023a5de9f4",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:"8283f27db74c5905d7510f0aa46bccdfc229c3a7",name:this.leadingIcon,size:"x-small",color:this.leadingIconColor?this.leadingIconColor:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),h("span",{key:"d37328836527cbae445ebf804c9a9b6cfc841df3",class:"duet-popup-menu-item-label"},h("slot",{key:"48d6351f97fd1a41dd9168bbb15d3c18b5896f7c"})),(this.trailingIcon||this.active||this.url&&this.external)&&h("duet-icon",{key:"9796f803a10e25097178ff191c003ee6ceee5dba",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:"4380153a8426a1254a897efe10cad603dbf8a7d6",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-822baec2.js";import{i as inheritGlobalTheme}from"./themeable-component-4e1ca2f5.js";import{c as createID}from"./create-id-149a1b6d.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-2038d09e.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)}.duet-theme-turva2 .duet-progress.duet-theme-turva .progress-bar{background-color:#fdf7f2}.duet-theme-turva2 .duet-progress.duet-theme-turva .progress-bar>span{background-color:#e61740}.duet-theme-turva2 .duet-progress.duet-theme-turva progress[value]{color:#e61740}.duet-theme-turva2 .duet-progress.duet-theme-turva progress[value]::-webkit-progress-bar{background-color:#fdf7f2}.duet-theme-turva2 .duet-progress.duet-theme-turva progress[value]::-webkit-progress-value{background-color:#e61740}.duet-theme-turva2 .duet-progress.duet-theme-turva progress[value]::-moz-progress-bar{background-color:#fdf7f2}";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-5757a151.js";import{i as inheritGlobalTheme}from"./themeable-component-e507940b.js";import{c as createID}from"./create-id-149a1b6d.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-1aea3619.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)}.duet-theme-turva2 .duet-progress.duet-theme-turva .progress-bar{background-color:#fdf7f2}.duet-theme-turva2 .duet-progress.duet-theme-turva .progress-bar>span{background-color:#e61740}.duet-theme-turva2 .duet-progress.duet-theme-turva progress[value]{color:#e61740}.duet-theme-turva2 .duet-progress.duet-theme-turva progress[value]::-webkit-progress-bar{background-color:#fdf7f2}.duet-theme-turva2 .duet-progress.duet-theme-turva progress[value]::-webkit-progress-value{background-color:#e61740}.duet-theme-turva2 .duet-progress.duet-theme-turva progress[value]::-moz-progress-bar{background-color:#fdf7f2}";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
- 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{s(o.next(e))}catch(e){n(e)}}function d(e){try{s(o["throw"](e))}catch(e){n(e)}}function s(e){e.done?a(e.value):r(e.value).then(i,d)}s((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:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function d(e){return function(t){return s([e,t])}}function s(d){if(o)throw new TypeError("Generator is already executing.");while(i&&(i=0,d[0]&&(a=0)),a)try{if(o=1,r&&(n=d[0]&2?r["return"]:d[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,d[1])).done)return n;if(r=0,n)d=[d[0]&2,n.value];switch(d[0]){case 0:case 1:n=d;break;case 4:a.label++;return{value:d[1],done:false};case 5:a.label++;r=d[1];d=[0];continue;case 7:d=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(d[0]===6||d[0]===2)){a=0;continue}if(d[0]===3&&(!n||d[1]>n[0]&&d[1]<n[3])){a.label=d[1];break}if(d[0]===6&&a.label<n[1]){a.label=n[1];n=d;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(d);break}if(n[2])a.ops.pop();a.trys.pop();continue}d=t.call(e,a)}catch(e){d=[6,e];r=0}finally{o=n=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
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{c(o.next(e))}catch(e){n(e)}}function d(e){try{c(o["throw"](e))}catch(e){n(e)}}function c(e){e.done?a(e.value):r(e.value).then(i,d)}c((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:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function d(e){return function(t){return c([e,t])}}function c(d){if(o)throw new TypeError("Generator is already executing.");while(i&&(i=0,d[0]&&(a=0)),a)try{if(o=1,r&&(n=d[0]&2?r["return"]:d[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,d[1])).done)return n;if(r=0,n)d=[d[0]&2,n.value];switch(d[0]){case 0:case 1:n=d;break;case 4:a.label++;return{value:d[1],done:false};case 5:a.label++;r=d[1];d=[0];continue;case 7:d=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(d[0]===6||d[0]===2)){a=0;continue}if(d[0]===3&&(!n||d[1]>n[0]&&d[1]<n[3])){a.label=d[1];break}if(d[0]===6&&a.label<n[1]){a.label=n[1];n=d;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(d);break}if(n[2])a.ops.pop();a.trys.pop();continue}d=t.call(e,a)}catch(e){d=[6,e];r=0}finally{o=n=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,h,H as Host,g as getElement}from"./index-822baec2.js";import{i as inheritGlobalTheme}from"./themeable-component-4e1ca2f5.js";import{h as hasSlot,c as checkNamedSlotElement}from"./slot-utils-5410a171.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:"d106a014e2f606089c38d6dc260b1ad45ca54957",class:{"duet-m-0":this.margin==="none"}},h("aside",{key:"5686290471d3dd623d00687c2d8589d68cf41a6b",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:"6969a22abb5eef82bd7b7be41f549f8e0068ee1b",href:this.url,class:"content-wrapper",ref:function(t){return e.aOrDivElement=t}},h("img",{key:"bb0a3199e2fe2df65755fd95b1c7d864c24e4321",class:"image",src:this.image,alt:"",role:"presentation"}),h("div",{key:"33993c917fd1a136cde8a94968d3378ada24a87f",class:"content"},this.hasPreHeadingSlot&&h("div",{key:"7d29c53b121f8d7c1b9ed3c8a5f8b8320f23605a",class:"pre-heading"},h("slot",{key:"bbe8d30708743401c10d77e8e396d68a623b3799",name:"pre-heading"})),this.hasHeadingSlot&&h("div",{key:"e7f37460aabadc39bd6d58107df780f3370c20c6",class:"heading"},h("duet-heading",{key:"73014d60a050052991ca8b9cd4b708e09cc4b2c5",theme:this.theme,level:this.headingLevel,"visual-level":"h3",margin:"none",color:this.textColor},h("span",{key:"aeb47383807703238ef6b8e05d60b546e9ce5401"},h("slot",{key:"22c41d18e22855f6bf5a5a0f1a394cc80211412c",name:"heading"})))),this.hasDescriptionSlot&&h("div",{key:"f9062af866af231584a768fabb3cd41c93a5ecb3",class:"description"},h("duet-paragraph",{key:"a36fa27d4a90966385b9fd2a7da872ab7cab05ae",theme:this.theme,margin:"none",color:this.textColor},h("span",{key:"c447f09c8e3f8614a6b14259020308dd612fea18"},h("slot",{key:"1b25d2412516f52a3332d8b9694c8f203e2e32db",name:"description"})))),this.hasActionSlot&&h("div",{key:"724d901256f13542bb24489bf487a56d44fbd57b",class:"action"},h("slot",{key:"ea8b1fe60559b9b1ba9f1e6efa59ca7e587d7d13",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-5757a151.js";import{i as inheritGlobalTheme}from"./themeable-component-e507940b.js";import{h as hasSlot,c as checkNamedSlotElement}from"./slot-utils-03502471.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:"3d281bb1f739ba86d5b36c6043be731799ad8fa5",class:{"duet-m-0":this.margin==="none"}},h("aside",{key:"0aa1940692ce1672ca4af76af2fa4126306f1235",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:"5cf0d74f8a0212ed297d2619d49e39d8c28e246a",href:this.url,class:"content-wrapper",ref:function(t){return e.aOrDivElement=t}},h("img",{key:"b7cc5de830483c0e7a964cfcb72d7f3151a41a24",class:"image",src:this.image,alt:"",role:"presentation"}),h("div",{key:"7608b5880c5906171f05a3c1e87c0e17bd2935d0",class:"content"},this.hasPreHeadingSlot&&h("div",{key:"ad6469a6f8edddc9f7752c1f834571787b89cc38",class:"pre-heading"},h("slot",{key:"d4f0a18260609d18b0178f397a459997f5355def",name:"pre-heading"})),this.hasHeadingSlot&&h("div",{key:"8bc0b5df3919ec6a4a8cade9004a1f62813f5c77",class:"heading"},h("duet-heading",{key:"c55032096a863f88788173207ee7c22f2538106e",theme:this.theme,level:this.headingLevel,"visual-level":"h3",margin:"none",color:this.textColor},h("span",{key:"365672773038187f60ad94999a42b214a865a233"},h("slot",{key:"8e1e4376fd09e6c2cc91e71c02874db4cce56786",name:"heading"})))),this.hasDescriptionSlot&&h("div",{key:"00a6f5bd073cb18c9fdc307615466c885c9be409",class:"description"},h("duet-paragraph",{key:"0c750a27469650603afb05b38762fb26c542ca51",theme:this.theme,margin:"none",color:this.textColor},h("span",{key:"7ae8e761077676b809d53e23b649d554e0f8d3fc"},h("slot",{key:"8dab7cd1b4e77586abc3f266179c621c4aed3921",name:"description"})))),this.hasActionSlot&&h("div",{key:"4eadb71d3c9f7f6598ab708251ad2ee1bcf94719",class:"action"},h("slot",{key:"43d40d4c3afacd136f1a05f44bc0964675bfa53d",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};