@duetds/components 10.5.0 → 10.6.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 (462) hide show
  1. package/hydrate/index.js +501 -263
  2. package/hydrate/index.mjs +501 -263
  3. package/lib/cjs/{a11y-utils-DaAO4N9d.js → a11y-utils-CgWjS7yq.js} +1 -1
  4. package/lib/cjs/{app-globals-CHNvdfQj.js → app-globals-D68ciWsb.js} +1 -1
  5. package/lib/cjs/duet-action-button.cjs.entry.js +6 -6
  6. package/lib/cjs/duet-alert.cjs.entry.js +4 -4
  7. package/lib/cjs/duet-badge.cjs.entry.js +7 -7
  8. package/lib/cjs/duet-banner.cjs.entry.js +15 -16
  9. package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
  10. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +7 -7
  11. package/lib/cjs/duet-button_2.cjs.entry.js +8 -8
  12. package/lib/cjs/duet-callout.cjs.entry.js +5 -5
  13. package/lib/cjs/duet-caption_4.cjs.entry.js +11 -11
  14. package/lib/cjs/duet-card.cjs.entry.js +21 -10
  15. package/lib/cjs/duet-checkbox.cjs.entry.js +3 -3
  16. package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
  17. package/lib/cjs/duet-chip.cjs.entry.js +28 -12
  18. package/lib/cjs/duet-choice_2.cjs.entry.js +7 -7
  19. package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
  20. package/lib/cjs/duet-combobox.cjs.entry.js +6 -6
  21. package/lib/cjs/duet-contact-card.cjs.entry.js +17 -7
  22. package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -3
  23. package/lib/cjs/duet-date-picker.cjs.entry.js +127 -14
  24. package/lib/cjs/duet-divider_2.cjs.entry.js +5 -5
  25. package/lib/cjs/duet-editable-table_3.cjs.entry.js +15 -15
  26. package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
  27. package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
  28. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  29. package/lib/cjs/duet-footer.cjs.entry.js +5 -5
  30. package/lib/cjs/duet-grid_2.cjs.entry.js +4 -4
  31. package/lib/cjs/duet-header_2.cjs.entry.js +7 -7
  32. package/lib/cjs/duet-hero.cjs.entry.js +22 -21
  33. package/lib/cjs/duet-icon.cjs.entry.js +7 -7
  34. package/lib/cjs/duet-indicator.cjs.entry.js +5 -5
  35. package/lib/cjs/duet-input_2.cjs.entry.js +70 -18
  36. package/lib/cjs/duet-layout.cjs.entry.js +7 -7
  37. package/lib/cjs/duet-list_2.cjs.entry.js +5 -5
  38. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
  39. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +5 -5
  40. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +7 -7
  41. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +7 -7
  42. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
  43. package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -6
  44. package/lib/cjs/duet-modal.cjs.entry.js +15 -15
  45. package/lib/cjs/duet-multiselect.cjs.entry.js +11 -11
  46. package/lib/cjs/duet-nav.cjs.entry.js +3 -3
  47. package/lib/cjs/duet-notification_2.cjs.entry.js +10 -10
  48. package/lib/cjs/duet-number-input.cjs.entry.js +9 -9
  49. package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
  50. package/lib/cjs/duet-page-heading.cjs.entry.js +6 -6
  51. package/lib/cjs/duet-pagination_2.cjs.entry.js +19 -19
  52. package/lib/cjs/duet-panel.cjs.entry.js +4 -4
  53. package/lib/cjs/duet-phone-input.cjs.entry.js +11 -6
  54. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +10 -10
  55. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  56. package/lib/cjs/duet-promo-card.cjs.entry.js +20 -8
  57. package/lib/cjs/duet-radio_2.cjs.entry.js +7 -7
  58. package/lib/cjs/duet-range-slider.cjs.entry.js +8 -8
  59. package/lib/cjs/duet-scrollable_3.cjs.entry.js +18 -18
  60. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  61. package/lib/cjs/duet-select.cjs.entry.js +9 -9
  62. package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
  63. package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
  64. package/lib/cjs/duet-share-chart.cjs.entry.js +8 -8
  65. package/lib/cjs/duet-show-more.cjs.entry.js +6 -6
  66. package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
  67. package/lib/cjs/duet-slideout-link.cjs.entry.js +7 -7
  68. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
  69. package/lib/cjs/duet-slideout-panel.cjs.entry.js +13 -13
  70. package/lib/cjs/duet-slideout.cjs.entry.js +20 -14
  71. package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
  72. package/lib/cjs/duet-step_2.cjs.entry.js +7 -7
  73. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +5 -5
  74. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +7 -7
  75. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +7 -7
  76. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +4 -4
  77. package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
  78. package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
  79. package/lib/cjs/duet-toggle.cjs.entry.js +9 -9
  80. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +5 -5
  81. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +7 -7
  82. package/lib/cjs/duet-toolbar-item.cjs.entry.js +8 -8
  83. package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
  84. package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
  85. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +10 -10
  86. package/lib/cjs/duet-tooltip.cjs.entry.js +5 -5
  87. package/lib/cjs/duet-tray.cjs.entry.js +7 -7
  88. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  89. package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
  90. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  91. package/lib/cjs/duet.cjs.js +3 -3
  92. package/lib/cjs/{errorcodes.utils-Dkf_MfrJ.js → errorcodes.utils-C0tQ3k6Z.js} +1 -1
  93. package/lib/cjs/{focus-utils-BuGg0Oha.js → focus-utils-tCoGOO7d.js} +1 -1
  94. package/lib/cjs/{index-ZxE6MB5V.js → index-BeiMjjVl.js} +9 -9
  95. package/lib/cjs/{keyboard-utils-D9UlHbik.js → keyboard-utils-DibQafwg.js} +2 -0
  96. package/lib/cjs/{label-CpPOBfjS.js → label-Cu4DNShe.js} +1 -1
  97. package/lib/cjs/{language-utils-C7Z0KYg-.js → language-utils-B3NubUDr.js} +1 -1
  98. package/lib/cjs/loader.cjs.js +3 -3
  99. package/lib/cjs/picture-utils-D_HVgfq5.js +15 -0
  100. package/lib/cjs/{slot-utils-BXdHT3A1.js → slot-utils-Dny6EJ_G.js} +1 -1
  101. package/lib/cjs/{themeable-component-CIDaln0Z.js → themeable-component-Csdvrnsd.js} +1 -1
  102. package/lib/cjs/{token-utils-DY3-olMV.js → token-utils-ZISdNshf.js} +1 -1
  103. package/lib/cjs/{tokens.module-CTbvyezn.js → tokens.module-CGRpZaa1.js} +2 -1
  104. package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
  105. package/lib/collection/components/duet-alert/duet-alert.js +1 -1
  106. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  107. package/lib/collection/components/duet-banner/duet-banner.css +12 -0
  108. package/lib/collection/components/duet-banner/duet-banner.js +30 -5
  109. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  110. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  111. package/lib/collection/components/duet-button/duet-button.js +8 -8
  112. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  113. package/lib/collection/components/duet-caption/duet-caption.js +1 -1
  114. package/lib/collection/components/duet-card/duet-card.css +3 -0
  115. package/lib/collection/components/duet-card/duet-card.js +43 -7
  116. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
  117. package/lib/collection/components/duet-chip/duet-chip.js +53 -17
  118. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  119. package/lib/collection/components/duet-choice/duet-choice.js +3 -3
  120. package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
  121. package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
  122. package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
  123. package/lib/collection/components/duet-contact-card/duet-contact-card.css +3 -0
  124. package/lib/collection/components/duet-contact-card/duet-contact-card.js +38 -2
  125. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  126. package/lib/collection/components/duet-date-picker/date-picker-month.js +4 -2
  127. package/lib/collection/components/duet-date-picker/date-utils.js +7 -0
  128. package/lib/collection/components/duet-date-picker/disallowed-days.js +23 -0
  129. package/lib/collection/components/duet-date-picker/duet-date-picker.js +100 -10
  130. package/lib/collection/components/duet-date-picker/finnish-bank-holidays.js +66 -0
  131. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  132. package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
  133. package/lib/collection/components/duet-empty-state/duet-empty-state.js +3 -3
  134. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  135. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  136. package/lib/collection/components/duet-footer/duet-footer.js +7 -7
  137. package/lib/collection/components/duet-grid/duet-grid.js +3 -3
  138. package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
  139. package/lib/collection/components/duet-header/duet-header.js +15 -15
  140. package/lib/collection/components/duet-heading/duet-heading.js +1 -1
  141. package/lib/collection/components/duet-hero/duet-hero.css +92 -14
  142. package/lib/collection/components/duet-hero/duet-hero.js +47 -21
  143. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  144. package/lib/collection/components/duet-indicator/duet-indicator.js +3 -3
  145. package/lib/collection/components/duet-input/duet-input.js +73 -20
  146. package/lib/collection/components/duet-label/duet-label.js +2 -2
  147. package/lib/collection/components/duet-layout/duet-layout.js +6 -6
  148. package/lib/collection/components/duet-link/duet-link.js +2 -2
  149. package/lib/collection/components/duet-list/duet-list.js +4 -4
  150. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  151. package/lib/collection/components/duet-logo/duet-logo.js +2 -2
  152. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +4 -4
  153. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  154. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  155. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  156. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  157. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  158. package/lib/collection/components/duet-modal/duet-modal.js +11 -11
  159. package/lib/collection/components/duet-multiselect/duet-multiselect.js +11 -11
  160. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  161. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  162. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +4 -4
  163. package/lib/collection/components/duet-number-input/duet-number-input.js +8 -8
  164. package/lib/collection/components/duet-overlay/duet-overlay.js +2 -2
  165. package/lib/collection/components/duet-page-heading/duet-page-heading.js +3 -3
  166. package/lib/collection/components/duet-pagination/duet-pagination.js +13 -13
  167. package/lib/collection/components/duet-panel/duet-panel.js +3 -3
  168. package/lib/collection/components/duet-paragraph/duet-paragraph.js +5 -5
  169. package/lib/collection/components/duet-phone-input/duet-phone-input.js +30 -5
  170. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +1 -1
  171. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +4 -4
  172. package/lib/collection/components/duet-promo-card/duet-promo-card.css +4 -0
  173. package/lib/collection/components/duet-promo-card/duet-promo-card.js +39 -2
  174. package/lib/collection/components/duet-radio/duet-radio.js +6 -6
  175. package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
  176. package/lib/collection/components/duet-range-slider/duet-range-slider.js +4 -4
  177. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +3 -3
  178. package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
  179. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  180. package/lib/collection/components/duet-select/duet-select.js +10 -10
  181. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  182. package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
  183. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
  184. package/lib/collection/components/duet-show-more/duet-show-more.js +3 -3
  185. package/lib/collection/components/duet-slideout/duet-slideout.js +12 -6
  186. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  187. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  188. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  189. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  190. package/lib/collection/components/duet-spacer/duet-spacer.js +3 -3
  191. package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
  192. package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
  193. package/lib/collection/components/duet-step/duet-step.js +4 -4
  194. package/lib/collection/components/duet-stepper/duet-stepper.js +2 -2
  195. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  196. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  197. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  198. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  199. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  200. package/lib/collection/components/duet-tab/duet-tab.js +2 -2
  201. package/lib/collection/components/duet-tab-group/duet-tab-group.js +9 -9
  202. package/lib/collection/components/duet-table/duet-table-styles.js +5 -5
  203. package/lib/collection/components/duet-table/duet-table.js +2 -2
  204. package/lib/collection/components/duet-textarea/duet-textarea.js +7 -7
  205. package/lib/collection/components/duet-toggle/duet-toggle.js +4 -4
  206. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  207. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  208. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  209. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  210. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  211. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
  212. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
  213. package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
  214. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  215. package/lib/collection/components/duet-upload/duet-upload.js +16 -16
  216. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  217. package/lib/collection/components/duet-upload-item/duet-upload-item.js +4 -4
  218. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  219. package/lib/collection/utils/keyboard-utils.js +1 -0
  220. package/lib/duet/duet.esm.js +1 -1
  221. package/lib/duet/p-054c334d.entry.js +4 -0
  222. package/lib/duet/{p-3277233e.entry.js → p-0e10e36b.entry.js} +1 -1
  223. package/lib/duet/{p-9ae7aaef.entry.js → p-12d7fdf6.entry.js} +1 -1
  224. package/lib/duet/{p-3f7afd87.entry.js → p-1579bdf5.entry.js} +1 -1
  225. package/lib/duet/{p-7eea47d5.entry.js → p-174935bc.entry.js} +1 -1
  226. package/lib/duet/{p-42ec7305.entry.js → p-1d7a9425.entry.js} +1 -1
  227. package/lib/duet/{p-317e81f3.entry.js → p-20066df8.entry.js} +1 -1
  228. package/lib/duet/{p-3690576a.entry.js → p-20c8226c.entry.js} +1 -1
  229. package/lib/duet/{p-19863cdf.entry.js → p-210bc161.entry.js} +1 -1
  230. package/lib/duet/{p-b747f6e9.entry.js → p-244bfbf9.entry.js} +1 -1
  231. package/lib/duet/{p-38973524.entry.js → p-264688ae.entry.js} +1 -1
  232. package/lib/duet/{p-93ff8fe4.entry.js → p-2bf78fe4.entry.js} +1 -1
  233. package/lib/duet/{p-9e1a59d1.entry.js → p-2e44c6b8.entry.js} +1 -1
  234. package/lib/duet/{p-c1afac0d.entry.js → p-304a9a55.entry.js} +1 -1
  235. package/lib/duet/{p-516397ba.entry.js → p-30d8a1e4.entry.js} +1 -1
  236. package/lib/duet/p-3445529c.entry.js +4 -0
  237. package/lib/duet/{p-2f8a47e2.entry.js → p-3533d6ee.entry.js} +1 -1
  238. package/lib/duet/{p-fe829b53.entry.js → p-374b48f6.entry.js} +1 -1
  239. package/lib/duet/{p-7353ee4c.entry.js → p-3b9d7f6a.entry.js} +1 -1
  240. package/lib/duet/{p-5f5f72d4.entry.js → p-3def9480.entry.js} +1 -1
  241. package/lib/duet/p-3fbe466a.entry.js +4 -0
  242. package/lib/duet/{p-d3b5c997.entry.js → p-407d4e5a.entry.js} +1 -1
  243. package/lib/duet/p-41230630.entry.js +4 -0
  244. package/lib/duet/p-44e53564.entry.js +4 -0
  245. package/lib/duet/p-46287d85.entry.js +4 -0
  246. package/lib/duet/p-48e77341.entry.js +4 -0
  247. package/lib/duet/{p-a8876b3d.entry.js → p-4a041c60.entry.js} +1 -1
  248. package/lib/duet/{p-efa4eecc.entry.js → p-4a251661.entry.js} +1 -1
  249. package/lib/duet/{p-407f7f03.entry.js → p-4a4e5bb5.entry.js} +1 -1
  250. package/lib/duet/{p-b1326cbb.entry.js → p-4acdc586.entry.js} +1 -1
  251. package/lib/duet/{p-8ace1eb4.entry.js → p-4b07ce36.entry.js} +1 -1
  252. package/lib/duet/{p-e7f2359a.entry.js → p-4cee693b.entry.js} +1 -1
  253. package/lib/duet/{p-3f35fce3.entry.js → p-4e1c2676.entry.js} +1 -1
  254. package/lib/duet/{p-40fa7371.entry.js → p-4e5532c8.entry.js} +1 -1
  255. package/lib/duet/{p-7fd39204.entry.js → p-512d18c8.entry.js} +1 -1
  256. package/lib/duet/{p-6ef683d5.entry.js → p-555e0c78.entry.js} +1 -1
  257. package/lib/duet/{p-cb6c4158.entry.js → p-5b322a86.entry.js} +1 -1
  258. package/lib/duet/p-5f72134e.entry.js +4 -0
  259. package/lib/duet/{p-dedf6a32.entry.js → p-61abccd4.entry.js} +1 -1
  260. package/lib/duet/{p-443af533.entry.js → p-6a11ba26.entry.js} +1 -1
  261. package/lib/duet/{p-f040706c.entry.js → p-6bd78205.entry.js} +1 -1
  262. package/lib/duet/p-6c239923.entry.js +4 -0
  263. package/lib/duet/{p-bdbf0fae.entry.js → p-6ce82324.entry.js} +1 -1
  264. package/lib/duet/{p-268b3066.entry.js → p-6d1d1199.entry.js} +1 -1
  265. package/lib/duet/p-81c5d3e3.entry.js +4 -0
  266. package/lib/duet/p-829bccb7.entry.js +4 -0
  267. package/lib/duet/{p-c2026c6b.entry.js → p-83dcbb64.entry.js} +1 -1
  268. package/lib/duet/{p-461d4089.entry.js → p-84f8bee8.entry.js} +1 -1
  269. package/lib/duet/{p-d6f0afa5.entry.js → p-8927ccc1.entry.js} +1 -1
  270. package/lib/duet/{p-3b2fba0f.entry.js → p-8bdcfd1f.entry.js} +1 -1
  271. package/lib/duet/{p-833802f9.entry.js → p-8fbcea55.entry.js} +1 -1
  272. package/lib/duet/{p-20a8ef81.entry.js → p-914ee7ac.entry.js} +1 -1
  273. package/lib/duet/{p-d3baa815.entry.js → p-95bb2a8d.entry.js} +1 -1
  274. package/lib/duet/{p-cbcee3e2.entry.js → p-985213bb.entry.js} +1 -1
  275. package/lib/duet/{p-52beb436.entry.js → p-9889218e.entry.js} +1 -1
  276. package/lib/duet/{p-30108edc.entry.js → p-9b2731b9.entry.js} +1 -1
  277. package/lib/duet/{p-829db926.entry.js → p-9b448008.entry.js} +1 -1
  278. package/lib/duet/p-9c41f1d5.entry.js +4 -0
  279. package/lib/duet/p-BDgGHTHh.js +4 -0
  280. package/lib/duet/p-BZev46O8.js +4 -0
  281. package/lib/duet/p-BaefVzkx.js +4 -0
  282. package/lib/duet/p-CcoGR9T9.js +4 -0
  283. package/lib/duet/{p-R3pTP2Oy.js → p-CyfEm8iD.js} +1 -1
  284. package/lib/duet/p-D3450NfA.js +5 -0
  285. package/lib/duet/{p-CFqvB5PA.js → p-D9N9LBeD.js} +1 -1
  286. package/lib/duet/{p-C5Yfx2kd.js → p-DI7IXBXp.js} +1 -1
  287. package/lib/duet/{p-D2ly4TZR.js → p-DYmL1tSl.js} +1 -1
  288. package/lib/duet/p-Dk60lC7n.js +4 -0
  289. package/lib/duet/p-JFwTD5kM.js +4 -0
  290. package/lib/duet/{p-BzYmwX5_.js → p-KbNgo0QF.js} +1 -1
  291. package/lib/duet/{p-110c7572.entry.js → p-a01f3141.entry.js} +1 -1
  292. package/lib/duet/{p-43e076b5.entry.js → p-a49b5d93.entry.js} +1 -1
  293. package/lib/duet/p-a6dbe893.entry.js +4 -0
  294. package/lib/duet/{p-1da7703d.entry.js → p-aa1256f9.entry.js} +1 -1
  295. package/lib/duet/{p-a068c086.entry.js → p-aa7e4c81.entry.js} +1 -1
  296. package/lib/duet/{p-70612314.entry.js → p-ac4fc44c.entry.js} +1 -1
  297. package/lib/duet/{p-61ec0e1c.entry.js → p-ae382e2e.entry.js} +1 -1
  298. package/lib/duet/{p-a483117e.entry.js → p-bc41d13d.entry.js} +1 -1
  299. package/lib/duet/{p-734249e0.entry.js → p-c54ecb23.entry.js} +1 -1
  300. package/lib/duet/{p-70961edb.entry.js → p-d72dee5d.entry.js} +1 -1
  301. package/lib/duet/p-d7abb7fa.entry.js +4 -0
  302. package/lib/duet/{p-8b0dfbd7.entry.js → p-dbb9e1d4.entry.js} +1 -1
  303. package/lib/duet/{p-317a1fc0.entry.js → p-e40d9c21.entry.js} +1 -1
  304. package/lib/duet/{p-06297bd8.entry.js → p-e43df9c2.entry.js} +1 -1
  305. package/lib/duet/{p-02d8e844.entry.js → p-e442943d.entry.js} +1 -1
  306. package/lib/duet/p-eb7bc989.entry.js +4 -0
  307. package/lib/duet/{p-a9104184.entry.js → p-ec1d2e0a.entry.js} +1 -1
  308. package/lib/duet/p-edcdf0b7.entry.js +4 -0
  309. package/lib/duet/{p-e08dce92.entry.js → p-ee369233.entry.js} +1 -1
  310. package/lib/duet/{p-8012c7bc.entry.js → p-f297f8f2.entry.js} +1 -1
  311. package/lib/duet/{p-c54be349.entry.js → p-f30c3cfe.entry.js} +1 -1
  312. package/lib/duet/{p-a5177d32.entry.js → p-f4538e9d.entry.js} +1 -1
  313. package/lib/duet/{p-c216e746.entry.js → p-f4de7ac0.entry.js} +1 -1
  314. package/lib/duet/{p-4b7f1244.entry.js → p-f8d640ba.entry.js} +1 -1
  315. package/lib/duet/{p-2dd7d75e.entry.js → p-f9db8670.entry.js} +1 -1
  316. package/lib/duet/p-fc1a18f8.entry.js +4 -0
  317. package/lib/duet/{p-d779fe42.entry.js → p-fc2be136.entry.js} +1 -1
  318. package/lib/duet/p-fdc4a97c.entry.js +4 -0
  319. package/lib/duet/p-kkZE1C6Z.js +4 -0
  320. package/lib/esm/{a11y-utils-ChN5Nhxh.js → a11y-utils--wwGTL0T.js} +1 -1
  321. package/lib/esm/{app-globals-4kCk2rkO.js → app-globals-Diuuep9d.js} +1 -1
  322. package/lib/esm/duet-action-button.entry.js +6 -6
  323. package/lib/esm/duet-alert.entry.js +4 -4
  324. package/lib/esm/duet-badge.entry.js +7 -7
  325. package/lib/esm/duet-banner.entry.js +15 -16
  326. package/lib/esm/duet-breadcrumb.entry.js +7 -7
  327. package/lib/esm/duet-breadcrumbs.entry.js +7 -7
  328. package/lib/esm/duet-button_2.entry.js +8 -8
  329. package/lib/esm/duet-callout.entry.js +5 -5
  330. package/lib/esm/duet-caption_4.entry.js +11 -11
  331. package/lib/esm/duet-card.entry.js +22 -11
  332. package/lib/esm/duet-checkbox.entry.js +3 -3
  333. package/lib/esm/duet-checkmark.entry.js +4 -4
  334. package/lib/esm/duet-chip.entry.js +28 -12
  335. package/lib/esm/duet-choice_2.entry.js +7 -7
  336. package/lib/esm/duet-collapsible.entry.js +4 -4
  337. package/lib/esm/duet-combobox.entry.js +6 -6
  338. package/lib/esm/duet-contact-card.entry.js +17 -7
  339. package/lib/esm/duet-cookie-consent.entry.js +3 -3
  340. package/lib/esm/duet-date-picker.entry.js +127 -14
  341. package/lib/esm/duet-divider_2.entry.js +5 -5
  342. package/lib/esm/duet-editable-table_3.entry.js +15 -15
  343. package/lib/esm/duet-empty-state.entry.js +2 -2
  344. package/lib/esm/duet-fieldset.entry.js +6 -6
  345. package/lib/esm/duet-file-chooser.entry.js +2 -2
  346. package/lib/esm/duet-footer.entry.js +5 -5
  347. package/lib/esm/duet-grid_2.entry.js +4 -4
  348. package/lib/esm/duet-header_2.entry.js +7 -7
  349. package/lib/esm/duet-hero.entry.js +22 -21
  350. package/lib/esm/duet-icon.entry.js +7 -7
  351. package/lib/esm/duet-indicator.entry.js +5 -5
  352. package/lib/esm/duet-input_2.entry.js +70 -18
  353. package/lib/esm/duet-layout.entry.js +7 -7
  354. package/lib/esm/duet-list_2.entry.js +5 -5
  355. package/lib/esm/duet-menu-bar-button.entry.js +4 -4
  356. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +5 -5
  357. package/lib/esm/duet-menu-bar-dropdown.entry.js +7 -7
  358. package/lib/esm/duet-menu-bar-item.entry.js +7 -7
  359. package/lib/esm/duet-menu-bar-link.entry.js +4 -4
  360. package/lib/esm/duet-menu-bar.entry.js +6 -6
  361. package/lib/esm/duet-modal.entry.js +15 -15
  362. package/lib/esm/duet-multiselect.entry.js +11 -11
  363. package/lib/esm/duet-nav.entry.js +3 -3
  364. package/lib/esm/duet-notification_2.entry.js +10 -10
  365. package/lib/esm/duet-number-input.entry.js +9 -9
  366. package/lib/esm/duet-overlay.entry.js +3 -3
  367. package/lib/esm/duet-page-heading.entry.js +6 -6
  368. package/lib/esm/duet-pagination_2.entry.js +19 -19
  369. package/lib/esm/duet-panel.entry.js +4 -4
  370. package/lib/esm/duet-phone-input.entry.js +11 -6
  371. package/lib/esm/duet-popup-menu_2.entry.js +10 -10
  372. package/lib/esm/duet-progress.entry.js +3 -3
  373. package/lib/esm/duet-promo-card.entry.js +20 -8
  374. package/lib/esm/duet-radio_2.entry.js +7 -7
  375. package/lib/esm/duet-range-slider.entry.js +8 -8
  376. package/lib/esm/duet-scrollable_3.entry.js +18 -18
  377. package/lib/esm/duet-section-layout.entry.js +4 -4
  378. package/lib/esm/duet-select.entry.js +9 -9
  379. package/lib/esm/duet-shaped-image.entry.js +4 -4
  380. package/lib/esm/duet-share-chart-item.entry.js +2 -2
  381. package/lib/esm/duet-share-chart.entry.js +8 -8
  382. package/lib/esm/duet-show-more.entry.js +6 -6
  383. package/lib/esm/duet-slideout-lang.entry.js +4 -4
  384. package/lib/esm/duet-slideout-link.entry.js +7 -7
  385. package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
  386. package/lib/esm/duet-slideout-panel.entry.js +13 -13
  387. package/lib/esm/duet-slideout.entry.js +20 -14
  388. package/lib/esm/duet-status-icon.entry.js +3 -3
  389. package/lib/esm/duet-step_2.entry.js +7 -7
  390. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +5 -5
  391. package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
  392. package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
  393. package/lib/esm/duet-submenu-bar-link.entry.js +4 -4
  394. package/lib/esm/duet-submenu-bar.entry.js +7 -7
  395. package/lib/esm/duet-textarea.entry.js +8 -8
  396. package/lib/esm/duet-toggle.entry.js +9 -9
  397. package/lib/esm/duet-toolbar-dropdown-link.entry.js +5 -5
  398. package/lib/esm/duet-toolbar-dropdown.entry.js +7 -7
  399. package/lib/esm/duet-toolbar-item.entry.js +8 -8
  400. package/lib/esm/duet-toolbar-link.entry.js +4 -4
  401. package/lib/esm/duet-toolbar.entry.js +4 -4
  402. package/lib/esm/duet-tooltip-button_2.entry.js +10 -10
  403. package/lib/esm/duet-tooltip.entry.js +5 -5
  404. package/lib/esm/duet-tray.entry.js +7 -7
  405. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  406. package/lib/esm/duet-upload-item.entry.js +6 -6
  407. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  408. package/lib/esm/duet.js +4 -4
  409. package/lib/esm/{errorcodes.utils-DuFCu_27.js → errorcodes.utils-S_WrUPeV.js} +1 -1
  410. package/lib/esm/{focus-utils-CFswdkeD.js → focus-utils-C4oaajGr.js} +1 -1
  411. package/lib/esm/{index-B2cboDWM.js → index-D3450NfA.js} +9 -9
  412. package/lib/esm/{keyboard-utils-Db8rvjPI.js → keyboard-utils-BaefVzkx.js} +2 -1
  413. package/lib/esm/{label-CJxIWUOT.js → label-C1HF2o4Y.js} +1 -1
  414. package/lib/esm/{language-utils-C4M4ASkT.js → language-utils-D4WVl8Ph.js} +1 -1
  415. package/lib/esm/loader.js +4 -4
  416. package/lib/esm/picture-utils-MSeJTkDk.js +13 -0
  417. package/lib/esm/{slot-utils--sNK1DNn.js → slot-utils-Dxcjtmp3.js} +1 -1
  418. package/lib/esm/{themeable-component-BBi3552X.js → themeable-component-QHdUfcat.js} +1 -1
  419. package/lib/esm/{token-utils-B0KAgyj_.js → token-utils-BILzD7LX.js} +1 -1
  420. package/lib/esm/{tokens.module-DEzE2U5T.js → tokens.module-kkZE1C6Z.js} +1 -1
  421. package/lib/types/components/duet-banner/duet-banner.d.ts +5 -1
  422. package/lib/types/components/duet-button/duet-button.d.ts +1 -1
  423. package/lib/types/components/duet-card/duet-card.d.ts +5 -0
  424. package/lib/types/components/duet-chip/duet-chip.d.ts +15 -8
  425. package/lib/types/components/duet-contact-card/duet-contact-card.d.ts +5 -0
  426. package/lib/types/components/duet-date-picker/date-picker-month.d.ts +3 -0
  427. package/lib/types/components/duet-date-picker/date-utils.d.ts +4 -0
  428. package/lib/types/components/duet-date-picker/disallowed-days.d.ts +9 -0
  429. package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +14 -0
  430. package/lib/types/components/duet-date-picker/finnish-bank-holidays.d.ts +11 -0
  431. package/lib/types/components/duet-hero/duet-hero.d.ts +5 -0
  432. package/lib/types/components/duet-input/duet-input.d.ts +11 -0
  433. package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +5 -0
  434. package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +6 -0
  435. package/lib/types/components.d.ts +104 -12
  436. package/lib/types/utils/keyboard-utils.d.ts +1 -0
  437. package/package.json +5 -5
  438. package/lib/duet/p-0c04f9f5.entry.js +0 -4
  439. package/lib/duet/p-18a8ea12.entry.js +0 -4
  440. package/lib/duet/p-1bca9931.entry.js +0 -4
  441. package/lib/duet/p-3f3c6e64.entry.js +0 -4
  442. package/lib/duet/p-4af6a8ed.entry.js +0 -4
  443. package/lib/duet/p-5284c707.entry.js +0 -4
  444. package/lib/duet/p-5c9f443c.entry.js +0 -4
  445. package/lib/duet/p-5lFzA17H.js +0 -4
  446. package/lib/duet/p-6b469225.entry.js +0 -4
  447. package/lib/duet/p-7294c37d.entry.js +0 -4
  448. package/lib/duet/p-72b504ef.entry.js +0 -4
  449. package/lib/duet/p-74aac967.entry.js +0 -4
  450. package/lib/duet/p-7c08fd87.entry.js +0 -4
  451. package/lib/duet/p-83238bf3.entry.js +0 -4
  452. package/lib/duet/p-86ffd3cb.entry.js +0 -4
  453. package/lib/duet/p-871620d3.entry.js +0 -4
  454. package/lib/duet/p-9c9811ba.entry.js +0 -4
  455. package/lib/duet/p-B2cboDWM.js +0 -5
  456. package/lib/duet/p-B8-N_qjs.js +0 -4
  457. package/lib/duet/p-Cg4m_WHe.js +0 -4
  458. package/lib/duet/p-DEzE2U5T.js +0 -4
  459. package/lib/duet/p-Db8rvjPI.js +0 -4
  460. package/lib/duet/p-d5f90dbc.entry.js +0 -4
  461. package/lib/duet/p-fa13ffe9.entry.js +0 -4
  462. package/lib/duet/p-s8EL6NG5.js +0 -4
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{h as t,r as e,c as i,H as a,g as n,F as s}from"./p-B2cboDWM.js";import{i as o}from"./p-BzYmwX5_.js";import{f as d,d as l}from"./p-BlUsLmbQ.js";import{i as r}from"./p-Db8rvjPI.js";import{a as h,c as u,d as p,g as b,s as c}from"./p-CFqvB5PA.js";import{q as m,r as f,p as g,u as y,v,w as k,x,y as w,z as $,A as T,f as L,B as z,C as E,D as j,E as M,F as S,G as F,H as C,I as D,j as R,s as _,J as P}from"./p-DEzE2U5T.js";import{b as U,a as A}from"./p-D2ly4TZR.js";import{c as W}from"./p-Cfr_DJqU.js";import{p as q}from"./p-C6E9F6QT.js";import{a as B,g as H}from"./p-C5Yfx2kd.js";const I=({data:e,groupId:i,alignment:a})=>{const n=`duet-editable-table duet-editable-table-content-${i}`;return"string"==typeof e?t("td",{innerHTML:e,class:n,part:`${i}content`,style:{verticalAlign:a}}):t("td",{class:n,part:`${i}content`,style:{verticalAlign:a}},e)},Y=class{constructor(t){e(this,t),this.duetTableToggle=i(this,"duetTableToggle",7),this.duetMenuClick=i(this,"duetMenuClick",7),this.hasHeadSlotFirst=!1,this.hasHeadSlotLast=!1,this.hasFootSlot=!1,this.language=h(),this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.actions=void 0,this.columns=void 0,this.rows=void 0,this.sortable=!1,this.groupId="",this.theme="",this.accessibleRole=void 0,this.hideHeadVisually=!1,this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"},this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"},this.toggleColumn=(t,e)=>{e.preventDefault();const{sort_order:i,direction:a,index:n,key:s}=t;this.duetTableToggle.emit({sort_order:i,index:n,direction:a,key:s,component:"duet-editable-table",originalEvent:e})},this.handleKeyDown=(t,e)=>{r(e)&&this.toggleColumn(t,e)}}componentWillLoad(){o(this),this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']"),this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']"),this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")}connectedCallback(){u(this)}disconnectedCallback(){p(this)}createLabel(e){const{sort_order:i,direction:a,index:n,label:s}=e,o=b(s);return this.sortable?t("span",{class:"duet-table-label","data-index":n},t("duet-button",{size:"small",icon:i&&1===a?"action-arrow-down-small":i&&-1===a?"action-arrow-up-small":"action-subtract-small","icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":!0,onClick:t=>this.toggleColumn(e,t),onKeyDown:t=>this.handleKeyDown(e,t)},o)):o}getSortedColumns(){return[...this.columns].sort(d(["index"]))}getRowSortOrder(){return[...this.columns].sort(d(["sort_order"])).filter((t=>t.sort_order)).map((t=>-1===t.direction?`-${t.key}`:t.key))}renderTableHeader(){if(!this.columns)return;const e=this.getSortedColumns();return t("tr",{class:{"duet-table-action-header":!!this.actions}},e.map((e=>{if(!1!==e.display){const i=this.createLabel(e);return""!==i?t("th",{scope:"col"},i):t("td",null)}})),this.actions&&t("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&t("duet-visually-hidden",null,this.actionColumnLabel[this.language])))}renderActions(e,i){if(this.actions)return t("td",{class:"duet-text-right"},this.actions.map((a=>t("duet-action-button",{actionMeta:Object.assign({},(null==e?void 0:e.meta)||{},{index:i}),actionId:(null==e?void 0:e.uid)||(null==e?void 0:e.id)||null,actionName:a.name,theme:this.theme,iconName:a.icon,iconColor:a.color,iconSize:a.size,background:a.background,"accessible-label":`${e.actionDescription||""} ${b(a.label)} `}))))}renderTableBody(){const e=this.getSortedColumns(),i=this.getRowSortOrder();return[...this.rows].sort(d(i)).map(((i,a)=>t("tr",{class:{"duet-table-action-row":!!this.actions,"duet-editable-table-row":!0,[`duet-editable-table-row-${this.groupId}`]:!0},"data-meta":JSON.stringify(i.meta)},e.map((e=>{if(!1!==e.display)return t(I,{data:i[e.key]?i[e.key]:i.item,groupId:this.groupId})})),this.actions&&this.renderActions(i,a))))}render(){return t(a,{key:"e8047048590b1dfac635e5a94a46fb1d61e4030b",class:{[`duet-editable-table-${this.variation}`]:!0,"duet-editable-table":!0,[`duet-editable-table-${this.theme}`]:!0,"duet-editable-table-scrollable":"none-scrollable"===this.breakpoint,"duet-editable-table-sortable":this.sortable,"duet-editable-table-actions":!!this.actions,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme}},t("duet-table",{key:"abcb5c0dc22830d840bbf18144e66605207849d0",class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},t("table",{key:"269ab86ebe745cfcf2e208e174e0914ea7b4fed8",role:this.accessibleRole},t("caption",{key:"2753e748db0c5264c994a41b002e52a5641d2971"},t("slot",{key:"567de210690137ae00e2ad40e2e2c1e1c733f3d7",name:"tcaption"})),t("thead",{key:"ea6b829d344cd19619f667d75304614cbf60cc9d"},this.hasHeadSlotFirst&&t("tr",{key:"84c66d116690df93737670dbbd0fc2b0e5c9f80b"},t("td",{key:"3ab4954300f48b65cdc48f612045ef4296f3561d",class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{key:"9f32c90606e46036a34ca037bdfd61d4eae70fb2",name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&t("tr",{key:"8be7b6223bd2ba7109db839efde2baab0f04c40f"},t("td",{key:"1d6b0626d4b9dfdedc24f1118b53558e3ad80a54",class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{key:"247e4a043cc716d504a4827c415a3d73e8285046",name:"thead-last"})))),t("tbody",{key:"778fd5a880190cffa0f9649b37839b2a0abedbe5"},this.renderTableBody()),this.hasFootSlot&&t("tfoot",{key:"8c5e4045377ec3547c5005836f389cac2221dc62"},t("tr",{key:"71959adb135cbcd6b7e19c9c9d4dcd3e799e8720"},t("td",{key:"ff1dc8216a9c918c1d9dec4aaf77454fd728a9ff",class:"duet-editable-table-footer-menu",colSpan:99},t("slot",{key:"450238c070a9f72a326737a26b1f6ede2f9606d2",name:"tfoot"})))))))}get element(){return n(this)}};Y.style=":host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.duet-editable-table-actions-menu,td.duet-editable-table-actions-menu{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon .duet-icon{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row .duet-text-right{text-align:right}.duet-editable-table-header tr .duet-editable-table-header-hidden{padding:0 !important;font-size:0;border-bottom:0}";const N=t=>t.replace("rgb(","").replace(")",""),O=`\nduet-table {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n margin-bottom: ${m} !important;\n display: block;\n font-variant-numeric: tabular-nums;\n\n table,\n thead,\n tbody,\n tfoot,\n th,\n td,\n tr {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n }\n\n &.duet-m-0 {\n margin: 0 !important;\n }\n\n table {\n width: 100%;\n font-family: ${f};\n font-size: ${g};\n text-align: left;\n border-spacing: 0;\n border-collapse: separate;\n }\n\n &.duet-table-hide-head-visually.duet-table-hide-head-visually {\n thead,\n thead * {\n position: absolute !important;\n top: 0;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n overflow: hidden !important;\n clip: rect(1px, 1px, 1px, 1px) !important;\n border: 0 !important;\n }\n }\n\n td {\n -webkit-hyphens: auto;\n hyphens: auto;\n color: ${y};\n }\n\n th {\n font-weight: ${v};\n line-height: ${k};\n color: ${x};\n text-align: left;\n }\n\n tbody th {\n font-weight: ${v};\n color: ${y};\n }\n\n & .duet-table-action-row {\n & td:last-child {\n justify-self: end;\n padding-right: ${m} !important;\n white-space: nowrap;\n }\n }\n\n span.duet-table-cell-heading {\n display: none;\n }\n}\n\n.duet-table-flattened {\n table,\n thead,\n tbody,\n tfoot,\n th,\n td,\n tr {\n display: block;\n }\n\n thead tr {\n position: absolute !important;\n top: 0;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n overflow: hidden !important;\n clip: rect(1px, 1px, 1px, 1px) !important;\n border: 0 !important;\n }\n\n td {\n line-height: ${k};\n\n &:not(:last-child) {\n margin-bottom: ${w};\n }\n\n span.duet-table-cell-heading {\n margin-bottom: ${$};\n display: block;\n font-size: ${g};\n font-weight: ${v};\n color: ${y};\n }\n }\n\n tbody td,\n tbody th,\n tfoot td {\n padding: 0 !important;\n text-align: left !important;\n }\n\n tbody th {\n font-weight: ${v};\n line-height: ${k};\n color: ${x};\n text-align: left;\n }\n}\n\n.duet-table-sticky thead th {\n position: sticky;\n top: 0;\n z-index: $z-index-sticky;\n background: ${T};\n}\n\n.duet-table-striped {\n td,\n th {\n padding: ${m} !important;\n @media ${L.replace("'","").replace("'","")} {\n padding: ${m} ${z} !important;\n }\n }\n\n tbody th {\n background: ${T};\n }\n\n &.duet-table-sticky {\n thead th {\n border-bottom: 1px solid ${E};\n }\n }\n\n tbody:not(:first-of-type) th {\n padding-top: calc(${m} * 2) !important;\n }\n\n tbody:only-of-type tr:nth-of-type(odd) {\n background: rgba(4, 81, 128, 0.04);\n }\n\n tbody:not(:only-of-type) tr:nth-of-type(even) {\n background: rgba(4, 81, 128, 0.04);\n }\n\n tfoot td {\n border-top: 1px solid ${E};\n }\n\n &.duet-table-flattened {\n tbody:not(:first-of-type) th {\n padding-top: ${m} !important;\n }\n\n tr {\n padding: ${m} !important;\n }\n\n tfoot {\n td {\n border-top: 0;\n }\n\n tr {\n border-top: 1px solid ${E};\n }\n }\n }\n}\n\n.duet-table-plain, .duet-table-fixed, .duet-table-minimal {\n th {\n padding: ${w} !important;\n border-bottom: 1px solid ${x};\n\n &:first-child {\n padding-left: 0 !important;\n }\n\n &:last-child {\n padding-right: 0 !important;\n }\n }\n\n \n\n tbody th {\n padding-top: calc(${m} * 2) !important;\n border-bottom-color: ${E};\n }\n\n td {\n padding: ${w} !important;\n\n &:first-child {\n padding-left: 0 !important;\n }\n\n &:last-child {\n padding-right: 0 !important;\n }\n }\n\n tbody td {\n border-bottom: 1px solid ${E};\n }\n\n &.duet-table-flattened {\n tbody:first-of-type th {\n padding-top: 0 !important;\n }\n\n td,\n tbody th {\n border-bottom: 0;\n }\n\n tr {\n padding: ${m} 0 !important;\n }\n\n tbody th {\n padding-top: ${m} !important;\n }\n\n tfoot td {\n margin-bottom: ${$} !important;\n }\n\n tbody:not(:only-of-type) tr:first-child {\n border-bottom: 0;\n }\n }\n}\n\n.duet-table-plain {\n\n &.duet-table-flattened {\n tbody tr {\n border-bottom: 1px solid ${E};\n }\n }\n}\n\n.duet-table-minimal {\n\n tbody tr,\n tbody tr td {\n vertical-align: top;\n border-bottom: 0 none;\n }\n\n tbody tr:last-of-type,\n tbody tr:last-of-type td {\n border-bottom: 1px solid ${E};\n }\n\n &.duet-table-flattened {\n tbody tr,\n tbody tr td {\n border-bottom: 0 none;\n }\n\n tbody tr td[data-heading]::before {\n display: none;\n }\n\n tfoot {\n border-top: 1px solid ${E};\n }\n }\n}\n\n.duet-table-fixed {\n\n table {\n table-layout: fixed;\n }\n\n tbody tr,\n tbody tr td,\n tbody tr td:first-child {\n padding: 4px !important;\n vertical-align: text-bottom;\n border-bottom: 0 none;\n }\n\n thead {\n display: none;\n }\n\n tbody tr,\n tbody tr td {\n border-bottom: 0 none;\n }\n\n &:not(.duet-table-flattened) {\n tfoot {\n border-top: 1px solid ${E};\n }\n }\n}\n.duet-table-scrollable {\n position: relative;\n width: 100%;\n overflow-x: auto;\n background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;\n background-repeat: no-repeat;\n background-attachment: local, local, scroll, scroll;\n background-size: 100px 100%, 100px 100%, 12px 100%, 12px 100%;\n}\n\n.duet-table-selected-column {\n background: rgba(${N(R)}, 0.08);\n}\n\n.duet-table-sortable {\n tbody tr td:first-child,\n thead tr th:first-child {\n padding: ${m};\n }\n\n &:not(.duet-table-flattened) {\n tfoot {\n border-top: 1px solid ${E};\n }\n }\n}\n\n\n.duet-table-actions {\n table {\n table-layout: auto;\n }\n\n thead {\n & th:last-child {\n width: 1px;\n white-space: nowrap;\n }\n }\n}\n\n.duet-editable-table-table.duet-table-flattened {\n tr {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n grid-auto-rows: auto;\n gap: 10px;\n\n &.duet-table-action-row td:last-child::before {\n padding: 0;\n content: "";\n }\n }\n\n td {\n grid-column: 1 / 2;\n\n &:first-child {\n grid-row: 1;\n grid-column: 1;\n }\n\n &:last-child {\n grid-row: 1;\n grid-column: 2;\n }\n }\n}\n \nduet-table.duet-theme-turva table {\n font-family: ${j};\n}\n\nduet-table.duet-theme-turva td {\n color: ${M};\n}\n\nduet-table.duet-theme-turva th {\n color: ${S};\n}\n\nduet-table.duet-theme-turva tbody th {\n color: ${M};\n}\n\nduet-table.duet-theme-turva td span.duet-table-cell-heading {\n color: ${F};\n}\n\nduet-table.duet-table-striped.duet-theme-turva.duet-table-sticky thead {\n th,\n td {\n border-bottom-color: ${C};\n }\n}\n\nduet-table.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd) {\n background: rgba(${N(M)}, 0.04);\n}\n\nduet-table.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even) {\n background: rgba(${N(M)}, 0.04);\n}\n\nduet-table.duet-table-striped.duet-theme-turva tfoot td {\n border-top-color: ${C};\n}\n\nduet-table.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr {\n border-top-color: ${C};\n}\n\nduet-table.duet-table-plain.duet-theme-turva tbody {\n th,\n td {\n border-bottom-color: ${C};\n }\n}\n\nduet-table.duet-table-plain.duet-theme-turva tbody td {\n border-bottom-color: ${C};\n}\n\nduet-theme-turva.duet-table-plain th, duet-theme-turva.duet-table-fixed th, duet-theme-turva.duet-table-minimal th {\n border-bottom-color: ${D};\n}\n\nduet-theme-turva.duet-table-plain tbody th, duet-theme-turva.duet-table-fixed tbody th, duet-theme-turva.duet-table-minimal tbody th {\n border-bottom-color: ${C};\n}\n\n.duet-table-flattened.duet-table-plain.duet-theme-turva tbody tr {\n border-bottom-color: ${C};\n}\n\n.duet-theme-turva .duet-table-selected-column {\n background: rgba(${N(D)}, 0.08);\n}\n\nduet-table.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr {\n border-bottom-color: ${C};\n}\n\nduet-table.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot {\n border-top-color: ${C};\n}\n\nduet-table.duet-table-fixed.duet-theme-turva:not(.duet-table-flattened) tfoot {\n border-top-color: ${C};\n}\n\nduet-table.duet-table-sortable.duet-theme-turva:not(.duet-table-flattened) tfoot {\n border-top-color: ${C};\n}\n`.replace(/[\n\r\t]/gm,""),J={none:0,"with-links":16*parseFloat(P),"without-links":16*parseFloat(_)},V=class{constructor(t){e(this,t),this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)",this.matchesBreakpoint=!0,this.language=h(),this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.hideHeadVisually=!1,this.handleMediaQueryChange=t=>{this.matchesBreakpoint=U.includes(this.breakpoint)?!t.matches:t.matches}}watchLanguageStateHandler(t,e){t!==e&&setTimeout((()=>this.copyHeadingsToCells()),50)}connectedCallback(){!function(t){const e=t.getRootNode();if(e instanceof ShadowRoot){const t=new CSSStyleSheet;t.replace(O).then((()=>{e.adoptedStyleSheets.push(t)}))}else{if(document.querySelector("style#duet-table-styles"))return;const t=document.createElement("style");t.id="duet-table-styles",t.innerHTML=O,document.head.append(t)}}(this.element),this.mq=matchMedia("none"===this.breakpoint||"none-scrollable"===this.breakpoint?"all":A[this.breakpoint]),this.mq.addEventListener("change",l(this.handleMediaQueryChange,50)),this.handleMediaQueryChange(this.mq),this.observer=new MutationObserver((()=>l(this.copyHeadingsToCells(),50))),this.observer.observe(this.element,{childList:!0,subtree:!0})}componentWillLoad(){if(o(this),this.copyHeadingsToCells(),this.sticky&&"none-scrollable"===this.breakpoint&&console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence'),this.sticky){const t=J[this.stickyDistance];this.element.querySelectorAll(this.headingSelector).forEach((e=>e.style.top=`${t}px`))}}componentDidLoad(){this.observer&&this.observer.takeRecords(),u(this)}disconnectedCallback(){this.observer.disconnect(),this.observer=null,this.mq.removeListener(this.handleMediaQueryChange),this.mq=null,this.matchesBreakpoint=!0,p(this)}copyHeadingsToCells(){if(["none","none-scrollable"].includes(this.breakpoint))return;const t=this.element.querySelectorAll(this.headingSelector),e=this.element.querySelectorAll("tbody tr"),i=Array.from(t).map((t=>t.textContent.trim()));e.forEach((t=>{t.querySelectorAll("td").forEach(((t,e)=>{if(i[e]){const a=t.querySelector(".duet-table-cell-heading");if(!a||a.textContent!==i[e]){null==a||a.remove();const n=document.createElement("span");n.textContent=i[e],n.classList.add("duet-table-cell-heading"),n.setAttribute("aria-hidden","true"),n.inert=!0,t.prepend(n)}}}))}))}render(){return t(a,{key:"9f1704f22fc4624b02f78c7aef30b43a788ce295",class:{[`duet-table-${this.variation}`]:!0,"duet-table-flattened":!this.matchesBreakpoint,"duet-table-sticky":this.matchesBreakpoint&&this.sticky,"duet-table-scrollable":"none-scrollable"===this.breakpoint,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme,"duet-table-hide-head-visually":this.hideHeadVisually}},t("slot",{key:"110acd28c9af7e36e6be318cfc5ad44251b72d32"}))}get element(){return n(this)}static get watchers(){return{language:["watchLanguageStateHandler"]}}};var X=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}];const K={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"},G=({label:e,categoryLabel:i})=>t("div",{class:"items-header",tabindex:"-1","aria-label":b(K)},i&&t("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},b(i)),t("duet-heading",{class:{"filename-header":!0,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},b(e))),Q=(t,e,i)=>{const{allowedMimetypes:a,allowedExtensions:n,maxBytes:s}=e;let o=!1,d=B("default",i);if(t){const{name:e,type:l,size:r}=t,h=((t,e)=>{if(!e||!t)return!0;const i=e.split(",");let a=!1;return i.forEach((e=>{const i=e.split("/"),n=t.split("/");i[0]!==n[0]||i[1]!==n[1]&&"*"!==i[1]||(a=!0)})),a})(l,a),u="all"===n||""===n||" "===n||void 0===n||((t,e)=>{if(!e)return!0;const i=t.split(".");return e.split(",").includes(i[i.length-1])})(e.toLowerCase(),n),p=((t,e)=>!e||!t||e>=t)(r,s);h||(d=B("duet-upload-101",i)),u||(d=B("duet-upload-100",i)),p||(d=B("duet-upload-201",i)),o=h&&u&&p}else o=!1;return{valid:o,errorMessage:o?void 0:b(d.message),errorSystem:o?void 0:d.system_message,errorType:o?void 0:d.type}},Z=({payload:t,options:e,onFailure:i,onSuccess:a,onProgress:n})=>{const{type:s="POST",xhr:o,uri:d,argument:l=null,headers:r=null}=e;o.open(s,`${d}${l||""}`,!0);const{data:h,name:u}=t;return r&&Object.keys(r).forEach((t=>{o.setRequestHeader(t,r[t])})),"POST"===s&&(o.onreadystatechange=()=>{o.readyState===XMLHttpRequest.DONE&&o.status>=200&&o.status<300&&a(o,u,o.status),o.readyState===XMLHttpRequest.DONE&&o.status>=300&&o.status<999&&i(o,u,o.status)},n(u)),o.send(h),o},tt=class{constructor(a){e(this,a),this.duetChange=i(this,"duetChange",3),this.duetBlur=i(this,"duetBlur",7),this.duetFocus=i(this,"duetFocus",7),this.duetReady=i(this,"duetReady",7),this.duetDone=i(this,"duetDone",3),this.duetState=i(this,"duetState",3),this.duetDelete=i(this,"duetDelete",3),this.duetCancel=i(this,"duetCancel",3),this.duetProgress=i(this,"duetProgress",3),this.duetUpload=i(this,"duetUpload",3),this.linkClick=i(this,"linkClick",3),this.tick=Date.now(),this.external=!1,this.middleware=null,this.deferUpload=!1,this.hideButton=!1,this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}],this.showLinks=!1,this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded}, yhteensä lähetettävänä {filesTotal}.",inProgressWithErrors:"Lähetetään {filesInProgress}, lähetetty {filesUploaded}, yhteensä lähetettävänä {filesTotal}, {filesWithErrors} epäonnistui",done:"Lähetys valmis, {filesTotal} lisätty onnistuneesti",doneWithErrors:"Lähetys valmis, {filesUploaded} lisätty onnistuneesti, {filesWithErrors} epäonnistui",files:"tiedostoa",file:"tiedosto"},sv:{inProgress:"Laddar upp {filesUploaded} av {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Uppladdningen slutförd, {filesTotal} har lagts till",doneWithErrors:"Uppladdningen slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Uploading {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"Upload completed, {filesTotal} added successfully",doneWithErrors:"Upload completed, {filesUploaded} added successfully, {filesWithErrors} failed.",files:"files",file:"file"}},this.statusMessageLabel=b(this.statusLabelDefaults),this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"},this.buttonLabel=b(this.buttonLabelDefaults),this.accessibleButtonLabel=void 0,this.theme="",this.disabled=!1,this.margin="auto",this.required=!1,this.alignment="middle",this.hideGroups=!1,this.files=new Map,this.valid=!this.required,this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"},this.label=b(this.labelDefaults),this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."},this.description=b(this.descriptionDefaults),this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."},this.fileListEmpty=b(this.fileListEmptyDefaults),this.error="",this.errorCodes=X,this.maxBytes=2e8,this.maxBytesTotal=void 0,this.maxFiles=99,this.allowedExtensions="all",this.allowedMimetypes="",this.multiple=!0,this.limitSelection=!1,this.hideCancelButton=!1,this.captionOnBottom=!1,this.showUploadedItemsHeader=!1,this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"},this.headerHeadingLevel="h3",this.hideHeader=!1,this.emitEvent=!1,this.actionButtonTitles={cancel:!1,delete:!1},this.renameDuplicates=!1,this.buttonId=W("DuetButton"),this.labelId=W("DuetLabel"),this.uploadId=W("DuetUpload"),this.filesInProgress=new Map,this.fileMaxReached=!1,this.bytesMaxReached=!1,this.filesToUploadExceedsLimit=!1,this.filesToUploadTotalSizeIsAboveMax=!1,this.internalStatusMessageLabel=void 0,this.itemRefs=new Map,this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"},this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}],this.kick=l((()=>{this.tick=Date.now()}),30),this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"},this.listenForActionEvents=()=>{this.element.addEventListener("duetActionEvent",(t=>{const e=t.detail,{action:i,id:a,originalEvent:n}=e;switch(i){case"delete":this.onDelete(a,n);break;case"cancel":this.onCancel(a,n)}}))},this.verifyValidity=()=>{const{invalid:t,valid:e}=this.getFilesAsArray(),i=this.valid;this.valid=0===t.length&&0!==e.length,this.valid!==i&&this.duetState.emit({originalEvent:void 0,data:{valid:this.valid,from:"componentWillRender"},component:"duet-upload"})},this.getGroupFromItemData=t=>t.valid&&100===t.progress?this.DefaultGroups.success:t.progress>0&&100!==t.progress?this.DefaultGroups.inprogress:t.valid?t.pending?this.DefaultGroups.pending:t.group?t.group:"none":this.DefaultGroups.failure,this.mapFilesToUploadItems=(e,i,a,n)=>i===this.DefaultGroups.success?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,n),type:"success",data:e,showLinks:this.showLinks,linkClickEvent:this.emitEvent?this.linkClick:void 0,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.inprogress?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,n),type:"inprogress",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.pending?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,n),type:"pending",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.failure?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,n),type:"failure",data:e,showLinks:this.showLinks,errorCodes:this.errorCodes,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):e.group?e.html:"none",this.genHashName=()=>Date.now().toString(36)+Math.random(),this.updateValueInMap=(t,e,i,a=!0)=>{try{const a=this.files.get(t);a[e]=i,this.files.set(t,a),this.external&&"url"!==e&&this.trackProgress(t,"uploaded"===e)}catch(t){}a&&this.kick()},this.updateProgress=(t,e)=>{t.lengthComputable?(i=>{this.updateValueInMap(e,"progress",i),this.onProgress(e,i,t)})(t.loaded/t.total*100):console.log("cant read progress")},this.trackProgress=(t,e=!1)=>{e?this.filesInProgress.delete(t):this.filesInProgress.set(t,"inprogress"),0===this.filesInProgress.size&&this.onDone()},this.getFilesAsArray=()=>{const t=[],e=[];return this.files.forEach((i=>{i.valid&&!i.deleted?t.push(i):i.valid||i.deleted||e.push(i)})),{valid:t,invalid:e}},this.resetFormFields=()=>{this.nativeInput.value=""},this.startUpload=async(t,e)=>{const{bytesMaxReached:i,fileMaxReached:a}=this.validateTotals();i||a?this.kick():(this.metaData=e,this.nativeInput.click(),this.onUpload(t,e),t.stopPropagation(),t.preventDefault())},this.transferComplete=t=>{this.updateValueInMap(t,"progress",100,!1),this.trackProgress(t,!0)},this.transferDone=(t,e,i)=>{this.updateValueInMap(e,"status",i,!1),this.updateValueInMap(e,"uploaded",!0,!1);try{const i=JSON.parse(t.response);this.updateValueInMap(e,"url",i.url)}catch(t){this.updateValueInMap(e,"url",null),console.error("Server did not respond with expected response {url: string}")}},this.transferDoneWithFailure=(t,e,i)=>{try{const{error:i}=JSON.parse(t.response);this.updateValueInMap(e,"error",{message:i.message,type:i.type},!1)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}"),this.updateValueInMap(e,"error",{type:i},!1)}this.updateValueInMap(e,"valid",!1,!0)},this.transferFailed=t=>{this.updateValueInMap(t,"error",H("duet-upload-001",this.errorCodes))},this.transferCanceled=t=>{this.files.delete(t),this.validateTotals(t),this.kick()},this.validateTotals=t=>{const e=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&t.size&&(i+=t.size)})),i>=e))})(0,this.maxBytesTotal),i=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&i++})),i>=e))})(0,this.maxFiles);return e&&t&&this.updateValueInMap(t,"error",H("duet-upload-202",this.errorCodes),!1),i&&t&&this.updateValueInMap(t,"error",H("duet-upload-301",this.errorCodes),!1),this.bytesMaxReached=e,this.fileMaxReached=i,{bytesMaxReached:e,fileMaxReached:i}},this.uploadFile=async(t,e=!1,i)=>{!e&&this.deferUpload?(this.updateValueInMap(t.item.name,"pending",!0,!1),this.updateValueInMap(t.item.name,"group","pending",!0)):e&&(this.updateValueInMap(t.item.name,"pending",!1,!1),this.updateValueInMap(t.item.name,"group",void 0,!0));try{if(!this.deferUpload||e){const e=new FormData;e.append("file",t.item),i&&e.append("key",i),e.append("uid",t.uid),e.append("name",t.item.name),e.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta})),t.xhr=await this.makeXHRPostRequest(e)}}catch(e){this.updateValueInMap(t.item.name,"valid",!1,!1)}},this.uploadPendingFiles=()=>{for(const[t,e]of Array.from(this.files.entries()))"pending"===e.group&&!0===e.pending&&this.uploadFile(e,!0,t)},this.getItemFromUID=t=>{for(const[e,i]of Array.from(this.files.entries()))if(i.uid===t)return{value:i,key:e};return null},this.handleExternalUploadButton=(t,e)=>{this.externalUploadButton&&(this.externalUploadButton.disabled=!(!t&&!e))},this.onDelete=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:n,fileMaxReached:s}=this.validateTotals();this.handleExternalUploadButton(n,s),this.kick(),this.duetDelete.emit({originalEvent:e,data:{deletion:a},component:"duet-upload"}),this.external||a.pending||this.makeXHRDeleteRequest(a),this.resetFormFields()},this.onCancel=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:n,fileMaxReached:s}=this.validateTotals();if(this.handleExternalUploadButton(n,s),!this.external){const{xhr:t}=a;t&&t.abort()}this.kick(),this.resetFormFields(),this.duetCancel.emit({originalEvent:e,data:{cancelled:a},component:"duet-upload"})},this.onUpload=(t,e)=>{this.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,component:"duet-upload"})},this.onProgress=(t,e,i)=>{this.duetChange.emit({originalEvent:i,data:{key:t,percentComplete:e},component:"duet-upload"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,component:"duet-upload"})},this.onReady=()=>{this.duetReady.emit({component:"duet-upload"})},this.onDone=()=>{this.duetDone.emit({component:"duet-upload",data:{files:this.files}})},this.filterMap=()=>{const t=Array.from(this.files.values()),e=[],i=[],a=[],n=[];let s=!1;return t.forEach((t=>{const o=this.getGroupFromItemData(t);t.meta&&t.meta.badges&&(s=!0),o===this.DefaultGroups.success?n.push({uid:t.uid,data:t}):o===this.DefaultGroups.inprogress?e.push({uid:t.uid,data:t}):o===this.DefaultGroups.pending?a.push({uid:t.uid,data:t}):o===this.DefaultGroups.failure?i.push({uid:t.uid,data:t}):t.group&&e.push({uid:t.uid,data:t})})),{pending:a,failure:i,success:n,inprogress:e,hasCategory:s}},this.getActions=(t,e)=>e.filter((e=>e.map.includes(t))),this.renderUploadedItems=()=>{this.itemRefs.clear();const e=this.filterMap(),i=e.hasCategory,a=this.hideCancelButton?this.actions.filter((t=>"cancel"!==t.name)):this.actions,n=this.groups.map((n=>{const o=e[n.id];if(null==o?void 0:o.length)return t(s,null,!this.hideGroups&&t(G,{categoryLabel:i?this.categoryLabel:void 0,label:n.label}),o.map((t=>this.mapFilesToUploadItems(t.data,n.id,i,a))))}));return t(s,null,this.showUploadedItemsHeader&&t(G,{categoryLabel:i?this.categoryLabel:void 0,label:this.uploadedItemsHeaderLabel}),n)}}watchValidHandler(t,e){t!==e&&this.kick()}componentWillLoad(){this.internalStatusMessageLabel="string"==typeof this.statusMessageLabel?c(this.groups):this.statusMessageLabel,o(this),this.listenForActionEvents(),this.onReady(),this.externalUploadButton=document.querySelector(`#${this.externalUploadButtonId}`),this.processedButtonTitles=q(this.actionButtonTitles)}componentWillRender(){this.verifyValidity()}async setFocus(t){this.nativeInput&&this.nativeInput.focus(t)}async upload(t){const{bytesMaxReached:e,fileMaxReached:i}=this.validateTotals();if(e||i)return this.handleExternalUploadButton(e,i),void this.kick();this.metaData=t,this.nativeInput.click()}async uploadPending(){this.uploadPendingFiles()}async refresh(){this.kick(),await this.setFocus()}async getFiles(){return!(!this.files||0===this.files.size)&&this.getFilesAsArray()}async updateValue(t,e,i){this.updateValueInMap(t,e,i)}async focusActionButton(t){var e;await(null===(e=this.itemRefs.get(t))||void 0===e?void 0:e.focusActionButton())}render(){const e=this.identifier||this.uploadId,i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024),n=Math.round(this.maxBytes/1024/1024);let o=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());return o=o.replace(/{maxbytes}/g,`${n.toString()} MB`),o=o.replace(/{maxbytestotal}/g,`${i.toString()} MB`),o=o.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", ")),this.externalUploadButton&&(this.externalUploadButton.accessibleLabel=`${this.externalUploadButton.innerText}. ${o}`),t(a,{key:"fe296e7a1f173e1f9d106725647de568270f7381",class:{"duet-m-0":"none"===this.margin}},t("duet-fieldset",{key:"72451c8e8021c8efdbef350e92d5d00db671f5eb","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},t("slot",{key:"120762b8d74276d518b1a4aa5ebc9267bb821b86",name:"header"}),!this.files.size&&t("duet-empty-state",{key:"7d1685f051c1607ed5984f21ca0306cffb135f9c",id:this.labelId,part:this.identifier?`${this.identifier}-empty-state`:"duet-upload-empty-state",icon:"messaging-attachment"},t("duet-paragraph",{key:"4341d78e97e8842976517a9427dad1fb79f15600",margin:"none"},this.fileListEmpty)),!!this.files.size&&t("slot",{key:"ebd5fcbee689a2d69689a66da5770057f959e05b",name:"fileheader"}),!!this.files.size&&t("duet-upload-aria-status",{key:"da8d067ccff2b9de4ef7036d28538c3e1a99813a",invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&t("slot",{key:"72fb36ce235d388cf811d0b1e2689e673f166aee",name:"filefooter"}),t("slot",{key:"1f0f3dc31f01636b94567622dc365a743bb9c555",name:"uploadfooter"}),this.captionOnBottom&&t("duet-caption",{key:"071ab836a62ea4c49ab66af59eebf8fd8e6ac0a1",margin:"none",size:"small"},t("div",{key:"8cb3bbe8afe46260ee01de1ccfec1171ad7d15b3",class:"upload-bottom-caption"},o)),t("slot",{key:"6ccb7bba76d874455cb6c6e4cde19fb4f3118c84",name:"afterfooter"}),!this.hideButton&&t(s,{key:"fb69a17ce2cd8ab89382b3a88aaf11c3ec5111d3"},t("duet-spacer",{key:"d12382964296660b0138d5e7cb23119d9ba51315",size:"large"}),t("duet-button",{key:"585b1a6670caf0810ea89a1dc930b4cb7a45c09a",id:this.buttonId,onClick:this.startUpload,"accessible-controls":e,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||`${this.buttonLabel}. ${o}`,"accessible-owns":e,size:"small",variation:"secondary",fixed:!0,icon:"action-add-circle",part:this.identifier?`${this.identifier}-button-upload`:"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&t(s,{key:"2c6faea7f05f92b8156afb6125ed218230d03a9b"},t("duet-spacer",{key:"0a03717e16ad6080343f46e9cea6235fe7c95fb3",size:"medium"}),t("duet-alert",{key:"6e455df241d9c0371a4ac45e9d7f11f9d5b2469a",part:this.identifier?`${this.identifier}-error-notification`:"duet-upload-error-notification"},this.fileMaxReached&&H("duet-upload-301",this.errorCodes),this.bytesMaxReached&&H("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&H("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&H("duet-upload-203",this.errorCodes))),t("duet-visually-hidden",{key:"0dcf57e2b593b8b4581b9516300d7fcf93a94ded","aria-hidden":"true"},t("input",{key:"8c8089792d4049c26b827d1b543bd9ddaaba326b",ref:t=>{this.nativeInput=t},accept:this.limitSelection?`${this.allowedMimetypes},${this.allowedExtensions}`:void 0,onBlur:this.onBlur,onFocus:this.onFocus,onChange:t=>this.onChange(t),type:"file",class:{"duet-upload":!0},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))}makeXHRPostRequest(t){const e=new XMLHttpRequest,i=t.get("name");e.upload.addEventListener("progress",(t=>{this.updateProgress(t,i)})),e.upload.addEventListener("load",(()=>{this.transferComplete(i)})),e.upload.addEventListener("error",(()=>{this.transferFailed(i)})),e.upload.addEventListener("abort",(()=>{this.transferCanceled(i)}));let a={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:e,argument:null,headers:void 0},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(a=this.middleware(a)),Z(a)}makeXHRDeleteRequest(t){const{uid:e,item:i}=t,a=new XMLHttpRequest;let n={payload:{data:null,name},options:{type:"DELETE",xhr:a,uri:this.uri,argument:`?key=${e}&name=${i.name}`,headers:{"x-fileuid":e,"x-filename":i.name}},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(n=this.middleware(n)),Z(n)}escapeSpecialCharacters(t){return(t+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")}getRenamedFileName(t,e){const i=new RegExp(`${this.escapeSpecialCharacters(t)} \\(\\d+\\).${e}`),a=Array.from(this.files.entries()).map((t=>{const[e,i]=t;return e})).filter((a=>i.test(a)||a===`${t}.${e}`)).sort(((t,e)=>t.split(".").slice(0,-1).join(".")>e.split(".").slice(0,-1).join(".")?1:-1)).pop().split(".").slice(0,-1).join(".");if(a===t)return`${t} (1).${e}`;const n=parseInt(a.split("(").pop().slice(0,-1));return`${t} (${n+1}).${e}`}renameFiles(t){return t.map((t=>{if(this.files.get(t.name)){const e=t.name.split("."),i=e.pop(),a=e.join("."),n=this.getRenamedFileName(a,i);return new File([t],n,{type:t.type,lastModified:t.lastModified})}return t}))}async onChange(t){var e;let i=Array.from(null===(e=this.nativeInput)||void 0===e?void 0:e.files);if(this.filesToUploadExceedsLimit=!1,this.files.size+i.length>this.maxFiles)return this.filesToUploadExceedsLimit=!0,void this.kick();if(this.filesToUploadTotalSizeIsAboveMax=!1,((t,e,i)=>{let a=0;return!!(i&&(this.files.forEach((t=>{t.valid&&t.size&&(a+=t.size)})),e.forEach((t=>{t.size&&(a+=t.size)})),a>=i))})(0,i,this.maxBytesTotal))return this.filesToUploadTotalSizeIsAboveMax=!0,void this.kick();if(i){this.renameDuplicates&&(i=this.renameFiles(i));for(const t of i){const{valid:e,errorMessage:i,errorType:a,errorSystem:n}=Q(t,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),s={uid:this.genHashName(),item:t,size:t.size,meta:this.metaData,uploaded:!1,valid:e,error:{type:e?void 0:a,message:e?void 0:i,system_message:e?void 0:n},progress:0,deleted:!1,xhr:!1,url:!1};this.files.set(t.name,s),e&&!this.external?await this.uploadFile(s):e&&this.external?(this.updateValueInMap(s.item.name,"pending",!0,!1),this.updateValueInMap(s.item.name,"group","pending",!0)):e||this.updateValueInMap(t.name,"valid",!1,!0),this.kick()}}this.resetFormFields(),this.metaData=void 0,this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"})}get element(){return n(this)}static get watchers(){return{valid:["watchValidHandler"]}}};tt.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(212, 223, 229)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";export{Y as duet_editable_table,V as duet_table,tt as duet_upload}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,c as e,h as o,H as n,g as u}from"./p-B2cboDWM.js";import{i as r}from"./p-BzYmwX5_.js";import{a as i,c as d}from"./p-8RjiAqaE.js";import{a,g as b,c as s,d as l}from"./p-CFqvB5PA.js";import{g as p}from"./p-D2ly4TZR.js";import"./p-C6E9F6QT.js";import"./p-DEzE2U5T.js";const h=class{constructor(o){t(this,o),this.duetFocus=e(this,"duetFocus",7),this.duetBlur=e(this,"duetBlur",7),this.accessiblePopup="false",this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.loading=!1,this.variation="default",this.negative=!1,this.theme="",this.margin="auto",this.padding="auto",this.centerText=!1,this.wrapping="auto",this.expand=!1,this.fixed=!1,this.disabled=!1,this.submit=!1,this.external=!1,this.language=a(),this.accessibleLabelExternalDefaults=i,this.accessibleLabelExternal=b(this.accessibleLabelExternalDefaults),this.accessibleLabelLoadingDefaults=d,this.accessibleLabelLoading=b(this.accessibleLabelLoadingDefaults),this.icon="",this.color="",this.iconRight=!1,this.iconSize="medium",this.size="medium",this.iconOnly=!1,this.proxyButtonSetUp=()=>{const t=this.element.querySelector("button[slot=proxybutton]"),e=t||document.createElement("button");if(this.url)return t&&t.remove(),void(this.proxyButton=null);e.setAttribute("slot","proxybutton"),e.style.display="none",e.type=this.getButtonType(),e.disabled=this.disabled,e.setAttribute("form",this.form),this.form||e.removeAttribute("form"),null!=this.name?e.name=this.name:e.removeAttribute("name"),null!=this.value?e.value=this.value:e.removeAttribute("value"),t||this.element.appendChild(e),this.proxyButton=e},this.handleClick=t=>{this.submit&&!this.url&&(this.element.closest("form")||this.form)&&(t.stopPropagation(),t.preventDefault(),this.proxyButton.click())},this.onFocus=()=>{this.duetFocus.emit()},this.onBlur=()=>{this.duetBlur.emit()}}componentWillLoad(){r(this),this.url&&this.external&&this.icon&&console.warn("[DUET]: Button used as an external link will override any icon that is set")}connectedCallback(){s(this,[{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"},{prop:"accessibleLabelLoading",defaults:"accessibleLabelLoadingDefaults"}])}disconnectedCallback(){l(this)}componentDidRender(){!1===this.disabled&&this.element.removeAttribute("disabled"),this.submit&&this.proxyButtonSetUp()}getButtonType(){return this.submit?"submit":"button"}getButtonIconSize(){switch(this.iconSize){case"small":return"small";case"medium-small":return"medium-small";case"medium":default:return"medium";case"large":return"large"}}async setFocus(t){this.nativeButton&&this.nativeButton.focus(t)}render(){var t,e;const u=this.external&&this.url,r=u?"action-new-window":this.icon,i=!!u||this.iconRight,d=o("span",{class:{"duet-button-contents":!0,"icon-right":i},style:{color:p(this.color,this.theme)}},r&&o("span",{"aria-hidden":"true",class:{"duet-button-icon":!0,left:!i,right:i,[this.getButtonIconSize()]:!0}},o("duet-icon",{size:"auto",margin:"none",name:r,color:"currentColor"})),o("span",{class:"duet-button-contents-slot"},o("slot",null))),a="medium"==this.size||"small"==this.size||"x-small"==this.size?this.size:"medium",b={onFocus:this.onFocus,onBlur:this.onBlur,ref:t=>this.nativeButton=t,id:this.identifier,class:{"duet-m-0":"none"===this.margin,"duet-p-0":"none"===this.padding,"duet-no-wrap":"none"===this.wrapping,"duet-button":!0,"duet-button-is-small":"small"===this.size,[`duet-button-size-${a}`]:!0,"duet-button-icon-only":this.iconOnly,"duet-button-text-center":this.centerText,"duet-button-negative":this.negative||"negative"===this.variation,[this.variation]:!0,"input-button":null===(t=this.variation)||void 0===t?void 0:t.startsWith("input-button"),disabled:this.disabled,icon:!!r,"icon-right":i,"icon-left":!!r&&!i,[this.getButtonIconSize()]:!0},"aria-controls":this.accessibleControls,"aria-label":this.accessibleLabel,"aria-expanded":null!=this.accessibleExpanded?this.accessibleExpanded.toString():void 0,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription};return o(n,{class:{"duet-m-0":"none"===this.margin,"duet-small":"small"===this.size,"duet-x-small":"x-small"===this.size,"duet-fixed":this.fixed,"duet-expand":this.expand,[this.variation]:!0,"input-button":null===(e=this.variation)||void 0===e?void 0:e.startsWith("input-button")}},o("span",{onClick:this.handleClick,class:{"duet-button-container":!0,"duet-button-is-loading":this.loading,"duet-theme-turva":"turva"===this.theme,"duet-button-negative":this.negative||"negative"===this.variation,[this.variation]:!0}},this.url?o("a",Object.assign({},b,{href:this.url,target:this.external?"_blank":"_self",rel:this.external?"noopener":void 0}),d,this.external&&o("duet-visually-hidden",null,", ",this.accessibleLabelExternal)):o("button",Object.assign({},b,{type:this.getButtonType(),disabled:this.disabled,name:this.name,value:this.value,"aria-pressed":null!=this.accessiblePressed?this.accessiblePressed.toString():void 0,"aria-haspopup":null!=this.accessiblePopup?this.accessiblePopup.toString():void 0,"aria-disabled":this.disabled}),d,this.loading&&o("duet-visually-hidden",null," ",this.accessibleLabelLoading," ")),this.loading&&o("duet-spinner",{color:(()=>this.disabled?"primary":"destructive-secondary"===this.variation?"color-status-foreground-danger-primary":"default"===this.variation||this.variation.includes("secondary")?"primary":this.variation.includes("destructive")?"gray-lightest":"currentColor")()})),o("slot",{name:"proxybutton"}))}get element(){return u(this)}};h.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:8px !important;margin-bottom:12px !important;position:relative;z-index:1;display:inline-flex;width:auto;max-width:100%;font-size:0;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host:last-of-type:not(:last-child){margin-right:8px !important}@media (max-width: 35.9375em){:host{width:100%}}:host(.square){margin-right:12px !important}:host(.square):last-child,:host(.square):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.square):last-of-type:not(:last-child){margin-right:12px !important}:host(.input-button){z-index:250}:host(.duet-small),:host(.duet-x-small){margin-right:4px !important;margin-bottom:8px !important}:host(.duet-small):last-child,:host(.duet-small):last-of-type,:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.duet-small):last-of-type:not(:last-child),[alignment=form-distribute]>:host(.duet-x-small):last-of-type:not(:last-child){margin-right:4px !important}@media (max-width: 35.9375em){:host(.duet-small),:host(.duet-x-small){width:auto}}:host(.duet-x-small){margin-right:2px !important}:host(.duet-x-small):last-child,:host(.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.duet-x-small):last-of-type:not(:last-child){margin-right:2px !important}:host(.square.duet-small),:host(.square.duet-x-small){margin-right:8px !important}:host(.square.duet-small):last-child,:host(.square.duet-small):last-of-type,:host(.square.duet-x-small):last-child,:host(.square.duet-x-small):last-of-type{margin-right:0 !important}[alignment=form-distribute]>:host(.square.duet-small):last-of-type:not(:last-child),[alignment=form-distribute]>:host(.square.duet-x-small):last-of-type:not(:last-child){margin-right:8px !important}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}:host(.duet-fixed){width:auto !important}:host(:last-child){margin-right:0 !important}.duet-button-container{position:relative;display:block;width:100%}.duet-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;align-items:center;width:100%;min-width:8rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.1;color:rgb(0, 119, 179) !important;text-align:center;text-decoration:none;cursor:pointer;background:transparent;border-style:solid;border-width:1px;transition:background-color 300ms ease, color 300ms ease, border 300ms ease, padding 300ms ease, box-shadow 300ms ease}.duet-button.duet-p-0{padding:0 !important}.duet-button.duet-m-0{margin:0 !important}.duet-button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-button:focus,.duet-button:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-button.duet-button-size-medium{height:50px;padding-right:30px;padding-left:30px;font-size:1rem;border-radius:25px}.duet-button.duet-button-size-medium.square{border-radius:12.5px}.duet-button.duet-button-size-medium.icon-left{padding-left:24px}.duet-button.duet-button-size-medium.icon-right{padding-right:24px}.duet-button.duet-button-size-small{height:40px;padding-right:20px;padding-left:20px;font-size:0.875rem;border-radius:20px}.duet-button.duet-button-size-small.square{border-radius:10px}.duet-button.duet-button-size-small.icon-left{padding-left:18px}.duet-button.duet-button-size-small.icon-right{padding-right:18px}.duet-button.duet-button-size-x-small{height:32px;padding-right:12px;padding-left:12px;font-size:0.75rem;border-radius:8px}.duet-button.duet-button-size-x-small.icon-left{padding-left:10px}.duet-button.duet-button-size-x-small.icon-right{padding-right:10px}.duet-button.plain.duet-p-0{height:auto}.duet-button:not(.input-button-primary,.input-button-secondary,.input-button-embedded){font-variant-numeric:tabular-nums}.duet-button.duet-button-text-center{text-align:center !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only){min-width:48px}.duet-button.duet-button-is-small:not(.duet-button-icon-only).plain{padding-right:0 !important;padding-left:0 !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only).duet-p-0{padding:0 !important}.duet-button .duet-button-contents{position:relative;display:flex;gap:10px;align-items:center;margin:0 auto;pointer-events:none}.duet-button .duet-button-contents.icon-right{flex-direction:row-reverse}.duet-button .duet-button-contents .duet-button-contents-slot{position:relative;top:0}.duet-button.duet-no-wrap{white-space:nowrap}.duet-button svg{width:100%;min-width:100%;fill:currentColor}.duet-button .duet-button-icon{display:flex;align-items:center}.duet-button .duet-button-icon duet-icon{width:16px;height:16px}.duet-button .duet-button-icon.large duet-icon{width:20px;height:20px}.duet-button .duet-button-icon.medium-small duet-icon{width:10px;height:10px}.duet-button .duet-button-icon.small duet-icon{width:7px;height:7px}.duet-button:active:not([disabled]){opacity:0.75;transition:none}.duet-button.default{background:rgb(255, 255, 255);border-color:rgb(181, 198, 208)}.duet-button.default:hover{outline:2px solid rgb(0, 119, 179);outline-offset:-2px;border-color:rgb(0, 119, 179)}.duet-button.default.duet-button-negative{background-color:rgb(255, 255, 255)}.duet-button.default.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-button.primary,.duet-button.input-button-primary,.duet-button.input-button-left-primary{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-button.primary:hover,.duet-button.input-button-primary:hover,.duet-button.input-button-left-primary:hover{background:#005f8f;border-color:#005f8f;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-button.secondary,.duet-button.input-button-secondary,.duet-button.input-button-left-secondary,.duet-button.input-button-embedded{color:rgb(8, 42, 77) !important;background:transparent;border-color:rgb(8, 42, 77)}.duet-button.secondary:hover,.duet-button.input-button-secondary:hover,.duet-button.input-button-left-secondary:hover,.duet-button.input-button-embedded:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179);outline:2px solid;outline-color:rgb(127, 150, 165) !important;outline-offset:-1px}.duet-theme-turva .duet-button.secondary:hover,.duet-button.secondary:hover.duet-theme-turva,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-button.input-button-secondary:hover.duet-theme-turva,.duet-theme-turva .duet-button.input-button-left-secondary:hover,.duet-button.input-button-left-secondary:hover.duet-theme-turva,.duet-theme-turva .duet-button.input-button-embedded:hover,.duet-button.input-button-embedded:hover.duet-theme-turva{outline-color:rgb(120, 145, 164) !important}.duet-button.secondary.duet-button-negative,.duet-button.input-button-secondary.duet-button-negative,.duet-button.input-button-left-secondary.duet-button-negative,.duet-button.input-button-embedded.duet-button-negative{color:rgb(212, 223, 229) !important;border-color:rgb(255, 255, 255)}.duet-button.secondary.duet-button-negative:hover,.duet-button.input-button-secondary.duet-button-negative:hover,.duet-button.input-button-left-secondary.duet-button-negative:hover,.duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-button.input-button-embedded{width:40px;min-width:40px !important;min-height:40px !important;margin:4px !important;border-width:0 !important;border-radius:4px !important}.duet-button.input-button{height:auto}.duet-button.negative{color:rgb(8, 42, 77) !important;background:rgb(255, 255, 255);border-color:rgb(255, 255, 255)}.duet-button.negative:hover{color:rgb(255, 255, 255) !important;background:transparent;border-color:rgb(255, 255, 255)}.duet-button.duet-button-negative:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(255, 255, 255, 0.8)}.duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(214, 28, 82);border-color:rgb(214, 28, 82)}.duet-button.destructive-primary:hover{background:#ab1642;border-color:#ab1642;box-shadow:0 4px 20px 0 rgba(34, 34, 34, 0.1)}.duet-button.destructive,.duet-button.destructive-secondary{color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255);border-color:rgb(214, 28, 82)}.duet-button.destructive:hover,.duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#ab1642;border-color:#ab1642}.duet-button.plain{min-width:48px;padding-right:0 !important;padding-left:0 !important;line-height:1.5;text-align:left;background:transparent;border:0;border-color:transparent;border-radius:4px}.duet-button.plain.duet-p-0 .duet-button-contents{height:auto}.duet-button.plain[disabled],.duet-button.plain[disabled]:hover{color:rgb(98, 121, 138) !important;cursor:not-allowed;background:transparent !important;border-color:transparent !important}.duet-button.plain:hover{color:rgb(0, 75, 129) !important;background:transparent !important}.duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-button.plain.duet-button-negative:hover{color:rgba(255, 255, 255, 0.8) !important}.duet-button.plain.duet-button-icon-only:focus{outline-offset:1px}.duet-button.duet-button-icon-only{min-width:48px;min-height:48px;padding:0 !important}.duet-button.duet-button-icon-only .duet-button-contents{position:static}.duet-button.duet-button-icon-only .duet-button-icon.left.large,.duet-button.duet-button-icon-only .duet-button-icon.left.medium,.duet-button.duet-button-icon-only .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded,.duet-button.duet-button.input-button-left-primary,.duet-button.duet-button.input-button-left-secondary{box-sizing:content-box;min-width:48px;min-height:48px;padding:0 !important;border-width:1px}.duet-button.duet-button.input-button-primary .duet-button-contents,.duet-button.duet-button.input-button-secondary .duet-button-contents,.duet-button.duet-button.input-button-embedded .duet-button-contents,.duet-button.duet-button.input-button-left-primary .duet-button-contents,.duet-button.duet-button.input-button-left-secondary .duet-button-contents{position:static}.duet-button.duet-button.input-button-primary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-secondary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-embedded .duet-button-contents.icon-right,.duet-button.duet-button.input-button-left-primary .duet-button-contents.icon-right,.duet-button.duet-button.input-button-left-secondary .duet-button-contents.icon-right{padding:0 16px}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded{border-top-left-radius:0;border-top-right-radius:4px !important;border-bottom-right-radius:4px !important;border-bottom-left-radius:0}.duet-button.duet-button.input-button-primary .duet-button-icon.left.large,.duet-button.duet-button.input-button-primary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-primary .duet-button-icon.left.small,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.large,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.small,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.large,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.medium,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-embedded{border-left-width:0}.duet-button.duet-button.input-button-left-primary,.duet-button.duet-button.input-button-left-secondary{border-top-left-radius:4px !important;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px !important}.duet-button.duet-button.input-button-left-primary .duet-button-contents,.duet-button.duet-button.input-button-left-secondary .duet-button-contents{position:static}.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-left-secondary{border-color:rgb(127, 150, 165)}.duet-button.square{width:52px;min-width:auto !important;padding:0 !important;font-size:1rem;border-color:rgb(181, 198, 208);border-width:1px}.duet-button.square.duet-button-size-small{width:42px;font-size:0.875rem}.duet-button.square.duet-button-size-x-small{width:34px;font-size:0.875rem}.duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-button.square:hover{outline:2px solid rgb(0, 119, 179);outline-offset:-2px;border-color:rgb(0, 119, 179)}.duet-button.square .duet-button-contents{gap:0}.duet-button[disabled],.duet-button[disabled]:hover,.duet-button.duet-button-negative[disabled],.duet-button.duet-button-negative[disabled]:hover{color:rgb(98, 121, 138) !important;cursor:not-allowed;outline:none !important;outline-color:rgb(212, 223, 229) !important;outline-color:rgb(212, 223, 229) !important;background:rgb(212, 223, 229) !important;border-color:rgb(212, 223, 229) !important;box-shadow:none !important}.duet-button-is-loading.primary,.duet-button-is-loading.input-button-primary{color:rgb(255, 255, 255)}.duet-button-is-loading.default{color:rgb(0, 119, 179)}.duet-button-is-loading .duet-button-contents{visibility:hidden;opacity:0}.duet-theme-turva .duet-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(230, 23, 64) !important;border-radius:8px}.duet-theme-turva .duet-button.duet-button-size-medium{padding-right:24px;padding-left:24px;border-radius:8px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-left{padding-left:14px}.duet-theme-turva .duet-button.duet-button-size-medium.icon-right{padding-right:14px}.duet-theme-turva .duet-button.duet-button-size-small{padding-right:18px;padding-left:18px;border-radius:8px}.duet-theme-turva .duet-button.duet-button-size-small.icon-left{padding-left:18px}.duet-theme-turva .duet-button.duet-button-size-small.icon-right{padding-right:18px}.duet-theme-turva .duet-button.default{color:rgb(230, 23, 64) !important;border-color:rgb(178, 194, 205)}.duet-theme-turva .duet-button.default:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.default.duet-button-negative{background-color:rgb(251, 225, 209) !important}.duet-theme-turva .duet-button.default.duet-button-negative:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.primary,.duet-theme-turva .duet-button.input-button-primary,.duet-theme-turva .duet-button.input-button-left-primary{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.primary:hover,.duet-theme-turva .duet-button.input-button-primary:hover,.duet-theme-turva .duet-button.input-button-left-primary:hover{background:rgb(140, 0, 30);border-color:rgb(140, 0, 30)}.duet-theme-turva .duet-button.secondary,.duet-theme-turva .duet-button.input-button-secondary,.duet-theme-turva .duet-button.input-button-left-secondary,.duet-theme-turva .duet-button.input-button-embedded{color:rgb(23, 42, 59) !important;border-color:rgb(23, 42, 59)}.duet-theme-turva .duet-button.secondary:hover,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-theme-turva .duet-button.input-button-left-secondary:hover,.duet-theme-turva .duet-button.input-button-embedded:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative{color:rgb(251, 225, 209) !important}.duet-theme-turva .duet-button.secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-left-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(230, 23, 64) !important;border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.duet-button.input-button-primary,.duet-theme-turva .duet-button.duet-button.input-button-secondary,.duet-theme-turva .duet-button.duet-button.input-button-embedded{border-top-left-radius:0;border-bottom-left-radius:0}.duet-theme-turva .duet-button.duet-button.input-button-left-primary,.duet-theme-turva .duet-button.duet-button.input-button-left-secondary{border-top-right-radius:0;border-bottom-right-radius:0}.duet-theme-turva .duet-button.duet-button.input-button-secondary,.duet-theme-turva .duet-button.duet-button.input-button-left-secondary{border-color:rgb(120, 145, 164)}.duet-theme-turva .duet-button.negative{color:rgb(23, 42, 59) !important}.duet-theme-turva .duet-button.negative:hover{color:rgb(255, 255, 255) !important}.duet-theme-turva .duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(214, 28, 82);border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-button.destructive-primary:hover{background:#ab1642}.duet-theme-turva .duet-button.destructive,.duet-theme-turva .duet-button.destructive-secondary{color:rgb(214, 28, 82) !important;background:rgb(255, 255, 255);border-color:rgb(214, 28, 82)}.duet-theme-turva .duet-button.destructive:hover,.duet-theme-turva .duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#ab1642;border-color:#ab1642}.duet-theme-turva .duet-button.plain{color:rgb(230, 23, 64) !important;background:transparent;border-color:transparent}.duet-theme-turva .duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-theme-turva .duet-button.plain:hover{color:rgb(140, 0, 30) !important}.duet-theme-turva .duet-button.plain[disabled],.duet-theme-turva .duet-button.plain[disabled]:hover{color:rgb(95, 122, 143) !important;cursor:not-allowed;background:transparent !important;border-color:rgb(251, 225, 209) !important}.duet-theme-turva .duet-button.square{border-color:rgb(212, 221, 226)}.duet-theme-turva .duet-button.square.duet-button-negative{color:rgb(255, 255, 255) !important;background:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button.square:hover{outline-color:rgb(230, 23, 64);border-color:rgb(230, 23, 64)}.duet-theme-turva .duet-button[disabled],.duet-theme-turva .duet-button[disabled]:hover,.duet-theme-turva .duet-button.duet-button-negative [disabled],.duet-theme-turva .duet-button.duet-button-negative [disabled]:hover{color:rgb(120, 145, 164) !important;cursor:not-allowed;outline-color:rgb(212, 221, 226) !important;background:rgb(212, 221, 226) !important;border-color:rgb(212, 221, 226) !important}.duet-theme-turva .duet-button-is-loading.default{color:rgb(230, 23, 64)}';const m=class{constructor(e){t(this,e),this.size="small"}componentWillLoad(){this.color||this.theme||(this.color="gray-lightest"),r(this)}render(){const t=this.color&&"currentColor"===this.color?"currentColor":p(this.color,this.theme);return o(n,{key:"61675c5a2a19edc0eba1be2f591f2bde7a7ab8fd"},o("div",{key:"cf612fe4fe85f35a7019913136249169aa74163c",class:{"duet-spinner":!0,[this.size]:!0,"duet-theme-turva":"turva"===this.theme},style:{color:t},"aria-label":this.accessibleLabel}))}get element(){return u(this)}};m.style=':host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;position:absolute;top:50%;left:50%;z-index:800;max-width:100%}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.duet-spinner{-webkit-user-select:none;user-select:none;position:absolute;top:50%;left:50%;z-index:800;width:24px;height:24px;color:rgb(0, 119, 179);border:2px solid transparent;border-left:2px solid currentColor;border-radius:50%;transform:translateZ(0) translateX(-50%) translateY(-50%);transform-origin:0% 0%;animation:duetRotate 0.6s linear infinite}.duet-spinner::after{position:absolute;top:50%;left:50%;z-index:200;box-sizing:content-box;width:100%;height:100%;overflow:hidden;content:"";border:2px solid currentColor;border-radius:50%;opacity:0.3;transform:translateZ(0) translateX(-50%) translateY(-50%);transform-origin:0% 0%}.duet-spinner.medium{width:36px;height:36px;border-width:4px}.duet-spinner.medium::after{border-width:4px}.duet-spinner.large{width:72px;height:72px;border-width:8px}.duet-spinner.large::after{border-width:8px}@keyframes duetRotate{0%{transform:translateZ(0) rotate(0deg) translateX(-50%) translateY(-50%)}100%{transform:translateZ(0) rotate(360deg) translateX(-50%) translateY(-50%)}}.duet-theme-turva.duet-spinner{color:rgb(230, 23, 64)}';export{h as duet_button,m as duet_spinner}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- const t="duet",e={cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"4.3.9"};var n=Object.defineProperty,o={isServer:!1},l=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(l||{}),s=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(s||{}),r="type",i="value",c="serialized:",u=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},f=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},a=(t,e)=>e in t,d=(t,e)=>(0,console.error)(t,e),h=new Map,p=new Map,v="s-id",$="sty-id",m="c-id",b="slot-fb{display:contents}slot-fb[hidden]{display:none}",y="http://www.w3.org/1999/xlink",g="undefined"!=typeof window?window:{},w={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},S=t=>Promise.resolve(t),j=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),O=!!j&&(()=>!!g.document&&Object.getOwnPropertyDescriptor(g.document.adoptedStyleSheets,"length").writable)(),k=!1,x=[],N=[],E=(t,e)=>n=>{t.push(n),k||(k=!0,e&&4&w.o?M(I):w.raf(I))},C=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){d(t)}t.length=0},I=()=>{C(x),C(N),(k=x.length>0)&&w.raf(I)},M=t=>S().then(t),R=E(N,!0),T=t=>"object"==(t=typeof t)||"function"===t;function L(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var P=class t{static fromLocalValue(e){const n=e[r],o=i in e?e[i]:void 0;switch(n){case"string":case"boolean":return o;case"bigint":return BigInt(o);case"undefined":return;case"null":return null;case"number":return"NaN"===o?NaN:"-0"===o?-0:"Infinity"===o?1/0:"-Infinity"===o?-1/0:o;case"array":return o.map((e=>t.fromLocalValue(e)));case"date":return new Date(o);case"map":const e=new Map;for(const[n,l]of o){const o="object"==typeof n&&null!==n?t.fromLocalValue(n):n,s=t.fromLocalValue(l);e.set(o,s)}return e;case"object":const l={};for(const[e,n]of o)l[e]=t.fromLocalValue(n);return l;case"regexp":const{pattern:s,flags:r}=o;return RegExp(s,r);case"set":const i=new Set;for(const e of o)i.add(t.fromLocalValue(e));return i;case"symbol":return Symbol(o);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(r))return!1;const e=t[r];return!!Object.values({...l,...s}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(i))}};((t,e)=>{for(var o in e)n(t,o,{get:e[o],enumerable:!0})})({},{err:()=>F,map:()=>U,ok:()=>A,unwrap:()=>D,unwrapErr:()=>_});var A=t=>({isOk:!0,isErr:!1,value:t}),F=t=>({isOk:!1,isErr:!0,value:t});function U(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>A(t))):A(n)}if(t.isErr)return F(t.value);throw"should never get here"}var B,D=t=>{if(t.isOk)return t.value;throw t.value},_=t=>{if(t.isErr)return t.value;throw t.value};function V(t){const e=this.attachShadow({mode:"open",delegatesFocus:!!(16&t.o)});void 0===B&&(B=null),B&&(O?e.adoptedStyleSheets.push(B):e.adoptedStyleSheets=[...e.adoptedStyleSheets,B])}var W=t=>{const e=et(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&z(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!q(t,G(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&et(t,"childNodes").length&&W(t)}},H=t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e};function z(t,e,n){let o,l=0,s=[];for(;l<t.length;l++)o=t[l],!o["s-sr"]||e&&o["s-hn"]!==e||void 0!==n||s.push(o),s=[...s,...z(o.childNodes,e,n)];return s}var q=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)G(l)!==e||!n&&l["s-sr"]||o.push(l);return o},J=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,Y=(t,e,n,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const l=document.createTextNode("");if(l["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const s=e["s-cr"].parentNode,r=et(s,"appendChild");if(void 0!==o){l["s-oo"]=o;const t=et(s,"childNodes"),e=[l];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>r.call(s,t)))}else r.call(s,l);t["s-ol"]=l,t["s-sh"]=e["s-hn"]},G=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function K(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:H(l.childNodes)).forEach((t=>{o===G(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}var Q=t=>{class e extends Array{item(t){return this[t]}}tt("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),tt("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]}}),tt("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),tt("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new e;return t.push(...H(this.__childNodes)),t}})},X=["children","nextElementSibling","previousElementSibling"],Z=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function tt(t,e){if(!globalThis.Node||!globalThis.Element)return;let n;X.includes(t)?n=Object.getOwnPropertyDescriptor(Element.prototype,t):Z.includes(t)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,t)),n||(n=Object.getOwnPropertyDescriptor(e,t)),n&&Object.defineProperty(e,"__"+t,n)}function et(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var nt=new WeakMap,ot=(t,e,n)=>{let o=p.get(t);j&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,p.set(t,o)},lt=(t,e)=>{var n;const o=st(e),l=p.get(o);if(!g.document)return o;if(t=11===t.nodeType?t:g.document,l)if("string"==typeof l){let s,r=nt.get(t=t.head||t);if(r||nt.set(t,r=new Set),!r.has(o)){if(t.host&&(s=t.querySelector(`[${$}="${o}"]`)))s.innerHTML=l;else{s=g.document.createElement("style"),s.innerHTML=l;const o=null!=(n=w.i)?n:L(g.document);if(null!=o&&s.setAttribute("nonce",o),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(j){const e=new CSSStyleSheet;e.replaceSync(l),O?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=b),r&&r.add(o)}}else t.adoptedStyleSheets.includes(l)||(O?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o},st=t=>"sc-"+t.u,rt=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),it=(t,e,...n)=>{let o=null,l=null,s=null,r=!1,i=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!T(o))&&(o+=""),r&&i?c[c.length-1].h+=o:c.push(r?ct(null,o):o),i=r)};if(u(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,ft);const f=ct(t,null);return f.p=e,c.length>0&&(f.v=c),f.$=l,f.m=s,f},ct=(t,e)=>({o:0,S:t,h:e,j:null,v:null,p:null,$:null,m:null}),ut={},ft={forEach:(t,e)=>t.map(at).forEach(e),map:(t,e)=>t.map(at).map(e).map(dt)},at=t=>({vattrs:t.p,vchildren:t.v,vkey:t.$,vname:t.m,vtag:t.S,vtext:t.h}),dt=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),it(t.vtag,e,...t.vchildren||[])}const e=ct(t.vtag,t.vtext);return e.p=t.vattrs,e.v=t.vchildren,e.$=t.vkey,e.m=t.vname,e},ht=(t,e,n,o,l,s,r,i=[])=>{let c,u,f,a;const d=l["s-sc"];if(1===s.nodeType){if(c=s.getAttribute(m),c&&(u=c.split("."),u[0]===r||"0"===u[0])){f=vt({o:0,O:u[0],k:u[1],N:u[2],C:u[3],S:s.tagName.toLowerCase(),j:s,p:{class:s.className||""}}),e.push(f),s.removeAttribute(m),t.v||(t.v=[]),d&&u[0]===r&&(s["s-si"]=d,f.p.class+=" "+d);const l=f.j.getAttribute("s-sn");"string"==typeof l&&("slot-fb"===f.S&&($t(l,u[2],f,s,t,e,n,o,i),d&&s.classList.add(d)),f.j["s-sn"]=l,f.j.removeAttribute("s-sn")),void 0!==f.C&&(t.v[f.C]=f),t=f,o&&"0"===f.N&&(o[f.C]=f.j)}if(s.shadowRoot)for(a=s.shadowRoot.childNodes.length-1;a>=0;a--)ht(t,e,n,o,l,s.shadowRoot.childNodes[a],r,i);const h=s.__childNodes||s.childNodes;for(a=h.length-1;a>=0;a--)ht(t,e,n,o,l,h[a],r,i)}else if(8===s.nodeType)u=s.nodeValue.split("."),(u[1]===r||"0"===u[1])&&(c=u[0],f=vt({O:u[1],k:u[2],N:u[3],C:u[4]||"0",j:s,p:null,v:null,$:null,m:null,S:null,h:null}),"t"===c?(f.j=bt(s,3),f.j&&3===f.j.nodeType&&(f.h=f.j.textContent,e.push(f),s.remove(),r===f.O&&(t.v||(t.v=[]),t.v[f.C]=f),o&&"0"===f.N&&(o[f.C]=f.j))):"c"===c?(f.j=bt(s,8),f.j&&8===f.j.nodeType&&(e.push(f),s.remove())):f.O===r&&("s"===c?$t(s["s-sn"]=u[5]||"",u[2],f,s,t,e,n,o,i):"r"===c&&(o?s.remove():(l["s-cr"]=s,s["s-cn"]=!0))));else if(t&&"style"===t.S){const e=ct(null,s.textContent);e.j=s,e.C="0",t.v=[e]}else 3!==s.nodeType||s.wholeText.trim()||s["s-nr"]||s.remove();return t},pt=(t,e)=>{if(1===t.nodeType){const n=t[v]||t.getAttribute(v);n&&e.set(n,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)pt(t.shadowRoot.childNodes[o],e);const l=t.__childNodes||t.childNodes;for(o=0;o<l.length;o++)pt(l[o],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},vt=t=>({o:0,O:null,k:null,N:null,C:"0",j:null,p:null,v:null,$:null,m:null,S:null,h:null,...t});function $t(t,e,n,o,l,s,r,i,c){o["s-sr"]=!0,n.m=t||null,n.S="slot";const u=(null==l?void 0:l.j)?l.j["s-id"]||l.j.getAttribute("s-id"):"";if(i&&g.document){const s=n.j=g.document.createElement(n.S);n.m&&n.j.setAttribute("name",t),l.j.shadowRoot&&u&&u!==n.O?et(l.j,"insertBefore")(s,et(l.j,"children")[0]):et(et(o,"parentNode"),"insertBefore")(s,o),mt(c,e,t,o,n.O),o.remove(),"0"===n.N&&(i[n.C]=n.j)}else{const s=n.j,r=u&&u!==n.O&&l.j.shadowRoot;mt(c,e,t,o,r?u:n.O),K(o),r&&l.j.insertBefore(s,l.j.children[0])}s.push(n),r.push(n),l.v||(l.v=[]),l.v[n.C]=n}var mt=(t,e,n,o,l)=>{var s,r;let i=o.nextSibling;if(t[e]=t[e]||[],i&&!(null==(s=i.nodeValue)?void 0:s.startsWith("s.")))do{!i||(i.getAttribute&&i.getAttribute("slot")||i["s-sn"])!==n&&(""!==n||i["s-sn"]||i.getAttribute&&i.getAttribute("slot")||8!==i.nodeType&&3!==i.nodeType)||(i["s-sn"]=n,t[e].push({slot:o,node:i,hostId:l})),i=null==i?void 0:i.nextSibling}while(i&&!(null==(r=i.nodeValue)?void 0:r.startsWith("s.")))},bt=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},yt=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};yt("::slotted"),yt(":host"),yt(":host-context");var gt,wt,St,jt=(t,e)=>{if("string"==typeof t&&t.startsWith(c))return function(t){return"string"==typeof t&&t.startsWith(c)?P.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t);if("string"==typeof t&&(16&e||8&e)&&(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")))try{return JSON.parse(t)}catch(t){}return null==t||T(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t},Ot=t=>{var e;return null==(e=u(t))?void 0:e.$hostElement$},kt=(t,e,n)=>{const o=Ot(t);return{emit:t=>xt(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},xt=(t,e,n)=>{const o=w.ce(e,n);return t.dispatchEvent(o),o},Nt=(t,e,n,o,l,s,r)=>{if(n===o)return;let i=a(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=Ct(n);let s=Ct(o);if((t["s-si"]||t["s-sc"])&&r){const n=t["s-sc"]||t["s-si"];s.push(n),l.forEach((t=>{t.startsWith(n)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),e.add(...s)}else e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const r=T(o);if((i||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,u=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(u?t.removeAttributeNS(y,e):t.removeAttribute(e)):(!i||4&s||l)&&!r&&1===t.nodeType&&(o=!0===o?"":o,u?t.setAttributeNS(y,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):a(g,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(It);e=e.replace(Mt,""),n&&w.rel(t,e,n,l),o&&w.ael(t,e,o,l)}},Et=/\s/,Ct=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Et):[]),It="Capture",Mt=RegExp(It+"$"),Rt=(t,e,n,o)=>{const l=11===e.j.nodeType&&e.j.host?e.j.host:e.j,s=t&&t.p||{},r=e.p||{};for(const t of Tt(Object.keys(s)))t in r||Nt(l,t,s[t],void 0,n,e.o,o);for(const t of Tt(Object.keys(r)))Nt(l,t,s[t],r[t],n,e.o,o)};function Tt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Lt=!1,Pt=!1,At=!1,Ft=!1,Ut=(t,e,n)=>{var o;const l=e.v[n];let s,r,i,c=0;if(Lt||(At=!0,"slot"===l.S&&(l.o|=l.v?2:1)),null!==l.h)s=l.j=g.document.createTextNode(l.h);else if(1&l.o)s=l.j=g.document.createTextNode(""),Rt(null,l,Ft);else{if(Ft||(Ft="svg"===l.S),!g.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=l.j=g.document.createElementNS(Ft?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Lt&&2&l.o?"slot-fb":l.S),Ft&&"foreignObject"===l.S&&(Ft=!1),Rt(null,l,Ft),null!=gt&&void 0!==gt&&s["s-si"]!==gt&&s.classList.add(s["s-si"]=gt),l.v)for(c=0;c<l.v.length;++c)r=Ut(t,l,c),r&&s.appendChild(r);"svg"===l.S?Ft=!1:"foreignObject"===s.tagName&&(Ft=!0)}return s["s-hn"]=St,3&l.o&&(s["s-sr"]=!0,s["s-cr"]=wt,s["s-sn"]=l.m||"",s["s-rf"]=null==(o=l.p)?void 0:o.ref,K(s),i=t&&t.v&&t.v[n],i&&i.S===l.S&&t.j&&Bt(t.j,!1),Gt(wt,s,e.j,null==t?void 0:t.j)),s},Bt=(t,e)=>{w.o|=1;const n=Array.from(t.__childNodes||t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==St&&o["s-ol"]&&(Yt(Wt(o).parentNode,o,Wt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,At=!0),e&&Bt(o,e)}w.o&=-2},Dt=(t,e,n,o,l,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===St&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=Ut(null,n,l),r&&(o[l].j=r,Yt(i,r,Wt(e))))},_t=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.j;Jt(e),t&&(Pt=!0,t["s-ol"]?t["s-ol"].remove():Bt(t,!0),t.remove())}}},Vt=(t,e,n=!1)=>t.S===e.S&&("slot"===t.S?t.m===e.m:n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),Wt=t=>t&&t["s-ol"]||t,Ht=(t,e,n=!1)=>{const o=e.j=t.j,l=t.v,s=e.v,r=e.S,i=e.h;let c;null===i?(Rt(t,e,Ft="svg"===r||"foreignObject"!==r&&Ft,n),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,v=o[0],$=o[p];for(;i<=a&&c<=p;)if(null==d)d=e[++i];else if(null==h)h=e[--a];else if(null==v)v=o[++c];else if(null==$)$=o[--p];else if(Vt(d,v,l))Ht(d,v,l),d=e[++i],v=o[++c];else if(Vt(h,$,l))Ht(h,$,l),h=e[--a],$=o[--p];else if(Vt(d,$,l))"slot"!==d.S&&"slot"!==$.S||Bt(d.j.parentNode,!1),Ht(d,$,l),Yt(t,d.j,h.j.nextSibling),d=e[++i],$=o[--p];else if(Vt(h,v,l))"slot"!==d.S&&"slot"!==$.S||Bt(h.j.parentNode,!1),Ht(h,v,l),Yt(t,h.j,d.j),h=e[--a],v=o[++c];else{for(u=-1,f=i;f<=a;++f)if(e[f]&&null!==e[f].$&&e[f].$===v.$){u=f;break}u>=0?(r=e[u],r.S!==v.S?s=Ut(e&&e[c],n,u):(Ht(r,v,l),e[u]=void 0,s=r.j),v=o[++c]):(s=Ut(e&&e[c],n,c),v=o[++c]),s&&Yt(Wt(d.j).parentNode,s,Wt(d.j))}i>a?Dt(t,null==o[p+1]?null:o[p+1].j,n,o,c,p):c>p&&_t(e,i,a)})(o,l,e,s,n):null!==s?(null!==t.h&&(o.textContent=""),Dt(o,null,e,s,0,s.length-1)):n||null===l?n&&null!==l&&null===s&&(e.v=l):_t(l,0,l.length-1),Ft&&"svg"===r&&(Ft=!1)):(c=o["s-cr"])?c.parentNode.textContent=i:t.h!==i&&(o.data=i)},zt=[],qt=t=>{let e,n,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const l=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"])if(J(e,l)){let n=zt.find((t=>t.I===e));Pt=!0,e["s-sn"]=e["s-sn"]||l,n?(n.I["s-sh"]=t["s-hn"],n.M=t):(e["s-sh"]=t["s-hn"],zt.push({M:t,I:e})),e["s-sr"]&&zt.map((t=>{J(t.I,e["s-sn"])&&(n=zt.find((t=>t.I===e)),n&&!t.M&&(t.M=n.M))}))}else zt.some((t=>t.I===e))||zt.push({I:e})}1===t.nodeType&&qt(t)}},Jt=t=>{t.p&&t.p.ref&&t.p.ref(null),t.v&&t.v.map(Jt)},Yt=(t,e,n)=>("string"==typeof e["s-sn"]&&e["s-sr"]&&e["s-cr"]&&Gt(e["s-cr"],e,t,e.parentElement),null==t?void 0:t.insertBefore(e,n));function Gt(t,e,n,o){var l,s;let r;if(t&&"string"==typeof e["s-sn"]&&e["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(r=e["s-si"]||t.parentNode["s-sc"])){const t=e["s-sn"],i=e["s-hn"];if(null==(l=n.classList)||l.add(r+"-s"),o&&(null==(s=o.classList)?void 0:s.contains(r+"-s"))){let e=(o.__childNodes||o.childNodes)[0],n=!1;for(;e;){if(e["s-sn"]!==t&&e["s-hn"]===i&&e["s-sr"]){n=!0;break}e=e.nextSibling}n||o.classList.remove(r+"-s")}}}var Kt=(t,e)=>{if(e&&!t.R&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.R=()=>{e["s-p"].splice(n-1,1),o()})))}},Qt=(t,e)=>{if(t.o|=16,4&t.o)return void(t.o|=512);Kt(t,t.T);const n=()=>Xt(t,e);if(!e)return R(n);queueMicrotask((()=>{n()}))},Xt=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.o|=256,t.L&&(t.L.map((([t,e])=>se(o,t,e,n))),t.L=void 0),l=se(o,"componentWillLoad",void 0,n)):l=se(o,"componentWillUpdate",void 0,n),l=Zt(l,(()=>se(o,"componentWillRender",void 0,n))),Zt(l,(()=>ee(t,o,e)))},Zt=(t,e)=>te(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),te=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,ee=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.P,n=t.$hostElement$,o=e.o,l=lt(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);ne(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>oe(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},ne=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,r;const i=t.$hostElement$,c=t.P,u=t.A||ct(null,null),f=(t=>t&&t.S===ut)(e)?e:it(null,null,e);if(St=i.tagName,c.F&&(f.p=f.p||{},c.F.map((([t,e])=>f.p[e]=i[t]))),n&&f.p)for(const t of Object.keys(f.p))i.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.p[t]=i[t]);if(f.S=null,f.o|=4,t.A=f,f.j=u.j=i.shadowRoot||i,gt=i["s-sc"],Lt=!(!(1&c.o)||128&c.o),wt=i["s-cr"],Pt=!1,Ht(u,f,n),w.o|=1,At){qt(f.j);for(const t of zt){const e=t.I;if(!e["s-ol"]&&g.document){const t=g.document.createTextNode("");t["s-nr"]=e,Yt(e.parentNode,e["s-ol"]=t,e)}}for(const t of zt){const e=t.I,i=t.M;if(i){const t=i.parentNode;let n=i.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),Yt(t,e,n),1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof i["s-rf"]&&i["s-rf"](i)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(r=e.hidden)&&r),e.hidden=!0)}}Pt&&W(f.j),w.o&=-2,zt.length=0,wt=void 0})(t,e,o)}catch(e){d(e,t.$hostElement$)}return null},oe=t=>{const e=t.$hostElement$,n=t.t,o=t.T;se(n,"componentDidRender",void 0,e),64&t.o?se(n,"componentDidUpdate",void 0,e):(t.o|=64,re(e),se(n,"componentDidLoad",void 0,e),t.U(e),o||le()),t.B(e),t.R&&(t.R(),t.R=void 0),512&t.o&&M((()=>Qt(t,!1))),t.o&=-517},le=()=>{var e;M((()=>xt(g,"appload",{detail:{namespace:t}}))),(null==(e=w.D)?void 0:e.size)&&w.D.clear()},se=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){d(t,o)}},re=t=>t.classList.add("hydrated"),ie=(t,e,n,o)=>{const l=u(t);if(!l)return;if(!l)throw Error(`Couldn't find host element for "${o.u}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=l.$hostElement$,r=l._.get(e),i=l.o,c=l.t;if(n=jt(n,o.V[e][0]),(!(8&i)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(l._.set(e,n),c)){if(o.W&&128&i){const t=o.W[e];t&&t.map((t=>{try{c[t](n,r,e)}catch(t){d(t,s)}}))}if(2==(18&i)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,r,e))return;Qt(l,!1)}}},ce=(t,e,n)=>{var o,l;const s=t.prototype;if(e.V||e.W||t.watchers){t.watchers&&!e.W&&(e.W=t.watchers);const r=Object.entries(null!=(o=e.V)?o:{});if(r.map((([t,[o]])=>{if(31&o||2&n&&32&o){const{get:l,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};l&&(e.V[t][0]|=2048),r&&(e.V[t][0]|=4096),(1&n||!l)&&Object.defineProperty(s,t,{get(){{if(!(2048&e.V[t][0]))return((t,e)=>u(this)._.get(e))(0,t);const n=u(this),o=n?n.t:s;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(l){const s=u(this);if(s){if(r){const n=32&o?this[t]:s.$hostElement$[t];return void 0===n&&s._.get(t)?l=s._.get(t):!s._.get(t)&&n&&s._.set(t,n),r.call(this,jt(l,o)),void ie(this,t,l=32&o?this[t]:s.$hostElement$[t],e)}{if(!(1&n&&4096&e.V[t][0]))return ie(this,t,l,e),void(1&n&&!s.t&&s.H.then((()=>{4096&e.V[t][0]&&s.t[t]!==s._.get(t)&&(s.t[t]=l)})));const r=()=>{const n=s.t[t];!s._.get(t)&&n&&s._.set(t,n),s.t[t]=jt(l,o),ie(this,t,s.t[t],e)};s.t?r():s.H.then((()=>r()))}}}})}else 1&n&&64&o&&Object.defineProperty(s,t,{value(...e){var n;const o=u(this);return null==(n=null==o?void 0:o.q)?void 0:n.then((()=>{var n;return null==(n=o.t)?void 0:n[t](...e)}))}})})),1&n){const n=new Map;s.attributeChangedCallback=function(t,o,l){w.jmp((()=>{var r;const i=n.get(t);if(this.hasOwnProperty(i))l=this[i],delete this[i];else{if(s.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==l)return;if(null==i){const n=u(this),s=null==n?void 0:n.o;if(n&&s&&!(8&s)&&128&s&&l!==o){const s=n.t,i=null==(r=e.W)?void 0:r[t];null==i||i.forEach((e=>{null!=s[e]&&s[e].call(s,l,o,t)}))}return}}const c=Object.getOwnPropertyDescriptor(s,i);(l=(null!==l||"boolean"!=typeof this[i])&&l)===this[i]||c.get&&!c.set||(this[i]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=e.W)?l:{}),...r.filter((([t,e])=>31&e[0])).map((([t,o])=>{var l;const s=o[1]||t;return n.set(s,t),512&o[0]&&(null==(l=e.F)||l.push([t,s])),s}))]))}}return t},ue=(t,e)=>{se(t,"connectedCallback",void 0,e)},fe=t=>{if(!(1&w.o)){const e=u(t);if(!e)return;const n=e.P,o=()=>{};if(1&e.o)ve(t,e,n.J),(null==e?void 0:e.t)?ue(e.t,t):(null==e?void 0:e.H)&&e.H.then((()=>ue(e.t,t)));else{let o;if(e.o|=1,o=t.getAttribute(v),o){if(1&n.o){const e=lt(t.shadowRoot,n);t.classList.remove(e+"-h",e+"-s")}else if(2&n.o){const e=st(n);t["s-sc"]=e}((t,e,n,o)=>{var l,s,r;const i=t.shadowRoot,c=[],f=[],a=[],d=i?[]:null,h=ct(e,null);let p;h.j=t,Object.entries((null==(l=o.P)?void 0:l.V)||{}).forEach((([e,[n,l]])=>{var s;if(!(31&n))return;const r=t.getAttribute(l||e);if(null!==r){const t=jt(r,n);null==(s=null==o?void 0:o._)||s.set(e,t)}}));{const e=o.P;e&&10&e.o&&t["s-sc"]?(p=t["s-sc"],t.classList.add(p+"-h")):t["s-sc"]&&delete t["s-sc"]}!g.document||w.D&&w.D.size||pt(g.document.body,w.D=new Map),t[v]=n,t.removeAttribute(v),o.A=ht(h,c,f,d,t,t,n,a);let $=0;const m=c.length;let b;for(;$<m;$++){b=c[$];const n=b.O+"."+b.k,o=w.D.get(n),l=b.j;if(i){if((null==(s=b.S)?void 0:(""+s).includes("-"))&&"slot-fb"!==b.S&&!b.j.shadowRoot){const e=u(b.j);if(e){const n=st(e.P),o=g.document.querySelector(`style[sty-id="${n}"]`);o&&t.shadowRoot.append(o.cloneNode(!0))}}}else l["s-hn"]=e.toUpperCase(),"slot"===b.S&&(l["s-cr"]=t["s-cr"]);"slot"===b.S&&(b.m=b.j["s-sn"]||b.j.name||null,b.v?(b.o|=2,b.j.childNodes.length||b.v.forEach((t=>{b.j.appendChild(t.j)}))):b.o|=1),o&&o.isConnected&&(o.parentElement.shadowRoot&&""===o["s-en"]&&o.parentNode.insertBefore(l,o.nextSibling),o.parentNode.removeChild(o),i||(l["s-oo"]=parseInt(b.k))),o&&!o["s-id"]&&w.D.delete(n)}const y=[],S=a.length;let j,O,k,x,N=0;for(;N<S;N++)if(j=a[N],j&&j.length)for(k=j.length,O=0;O<k;O++){if(x=j[O],y[x.hostId]||(y[x.hostId]=w.D.get(x.hostId)),!y[x.hostId])continue;const t=y[x.hostId];t.shadowRoot&&x.node.parentElement!==t&&t.appendChild(x.node),t.shadowRoot&&i||(x.slot["s-cr"]||(x.slot["s-cr"]=t["s-cr"],x.slot["s-cr"]=!x.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),Y(x.node,x.slot,0,x.node["s-oo"]),(null==(r=x.node.parentElement)?void 0:r.shadowRoot)&&x.node.getAttribute&&x.node.getAttribute("slot")&&x.node.removeAttribute("slot"))}if(p&&f.length&&f.forEach((t=>{t.j.parentElement.classList.add(p+"-s")})),i){let e=0;const n=d.length;if(n){for(;e<n;e++){const t=d[e];t&&i.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):(8===t.nodeType&&!t.nodeValue||3===t.nodeType&&!t.wholeText.trim())&&t.parentNode.removeChild(t))}))}}o.$hostElement$=t})(t,n.u,o,e)}o||12&n.o&&ae(t);{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Kt(e,e.T=n);break}}n.V&&Object.entries(n.V).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),M((()=>(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.Y){const l=((t,e)=>{const n=t.u.replace(/-/g,"_"),o=t.Y;if(!o)return;const l=h.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(h.set(o,t),t[n])),(t=>{d(t,e.$hostElement$)}))
5
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.u}#${e.G}" was not found`);o.isProxied||(n.W=o.watchers,ce(o,n,2),o.isProxied=!0);const s=()=>{};e.o|=8;try{new o(e)}catch(e){d(e,t)}e.o&=-9,e.o|=128,s(),ue(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=st(n);if(!p.has(e)){const o=()=>{};ot(e,t,!!(1&n.o)),o()}}}const l=e.T,s=()=>Qt(e,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()})(t,e,n)))}o()}},ae=t=>{if(!g.document)return;const e=t["s-cr"]=g.document.createComment("");e["s-cn"]=!0,Yt(t,e,t.firstChild)},de=(t,e)=>{se(t,"disconnectedCallback",void 0,e||t)},he=(t,e={})=>{var n;if(!g.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],l=e.exclude||[],s=g.customElements,r=g.document.head,i=r.querySelector("meta[charset]"),c=g.document.createElement("style"),f=[];let a,d=!0;Object.assign(w,e),w.l=new URL(e.resourcesUrl||"./",g.document.baseURI).href,w.o|=2,(()=>{if(!g.document)return;const t=g.document.querySelectorAll(`[${$}]`);let e=0;for(;e<t.length;e++)ot(t[e].getAttribute($),rt(t[e].innerHTML),!0)})();let h=!1;if(t.map((t=>{t[1].map((e=>{var n;const r={o:e[0],u:e[1],V:e[2],J:e[3]};4&r.o&&(h=!0),r.V=e[2],r.J=e[3],r.F=[],r.W=null!=(n=e[4])?n:{};const i=r.u,c=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,P:e,_:new Map};n.q=new Promise((t=>n.B=t)),n.H=new Promise((t=>n.U=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,r),1&r.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.u}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else V.call(t,r)}connectedCallback(){const t=u(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ve(this,t,r.J)),a&&(clearTimeout(a),a=null),d?f.push(this):w.jmp((()=>fe(this))))}disconnectedCallback(){w.jmp((()=>(async t=>{if(!(1&w.o)){const e=u(t);(null==e?void 0:e.K)&&(e.K.map((t=>t())),e.K=void 0),(null==e?void 0:e.t)?de(e.t,t):(null==e?void 0:e.H)&&e.H.then((()=>de(e.t,t)))}nt.has(t)&&nt.delete(t),t.shadowRoot&&nt.has(t.shadowRoot)&&nt.delete(t.shadowRoot)})(this))),w.raf((()=>{var t;const e=u(this);if(!e)return;const n=f.findIndex((t=>t===this));n>-1&&f.splice(n,1),(null==(t=null==e?void 0:e.A)?void 0:t.j)instanceof Node&&!e.A.j.isConnected&&delete e.A.j}))}componentOnReady(){var t;return null==(t=u(this))?void 0:t.H}};!(1&r.o)&&256&r.o&&Q(c.prototype),r.Y=t[0],l.includes(i)||s.get(i)||(o.push(i),s.define(i,ce(c,r,1)))}))})),o.length>0&&(h&&(c.textContent+=b),c.innerHTML.length)){c.setAttribute("data-styles","");const t=null!=(n=w.i)?n:L(g.document);null!=t&&c.setAttribute("nonce",t),r.insertBefore(c,i?i.nextSibling:r.firstChild)}d=!1,f.length?f.map((t=>t.connectedCallback())):w.jmp((()=>a=setTimeout(le,30)))},pe=(t,e)=>e,ve=(t,e,n)=>{n&&g.document&&n.map((([n,o,l])=>{const s=me(g.document,t,n),r=$e(e,l),i=be(n);w.ael(s,o,r,i),(e.K=e.K||[]).push((()=>w.rel(s,o,r,i)))}))},$e=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.L=t.L||[]).push([e,n])}catch(e){d(e,t.$hostElement$)}},me=(t,e,n)=>4&n?t:8&n?g:16&n?t.body:e,be=t=>({passive:!!(1&t),capture:!!(2&t)}),ye=t=>w.i=t;export{o as B,e as E,pe as F,ut as H,t as N,he as b,kt as c,Ot as g,it as h,S as p,f as r,ye as s,g as w}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{g as t}from"./p-5lFzA17H.js";function n(n){const s=n.element.textContent;return n.accessibleLabel?n.accessibleLabel:(n.download||""===n.download)&&s?`${s}. ${n.accessibleLabelDownload}.`:n.external&&s?`${s}. ${n.accessibleLabelExternal}.`:t(n.element).length?s:null}function s(t,n,s="true"){if(t.tagName.toLowerCase().startsWith("duet-")){const o=t;o.accessiblePopup=s,o.accessibleExpanded=n}else t.setAttribute("aria-haspopup",s),t.ariaExpanded=String(!!n)}export{n as g,s}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{h as e}from"./p-B2cboDWM.js";const l=(l,t)=>{const{theme:a="",margin:m="auto",size:o="medium",weight:r="semi-bold",color:s="",id:n=""}=l;return e("label",{id:n,class:{"duet-internal-label":!0,"duet-internal-label-small":"small"===o,"duet-theme-turva":"turva"===a,"duet-small-margin":"small"===m,"duet-m-0":"none"===m,[`duet-weight-${r}`]:!0,[`${l.class}`]:!0},htmlFor:l.for,style:{color:s}},e("span",null,t))};export{l as D}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- const r="rgb(181, 198, 208)",o="rgb(120, 145, 164)",a="rgb(98, 121, 138)",e="rgb(95, 122, 143)",c="rgb(212, 223, 229)",g="rgb(212, 221, 226)",l="rgb(255, 255, 255)",n="rgb(178, 194, 205)",u="rgb(0, 119, 179)",b="rgb(230, 23, 64)",t="rgb(8, 42, 77)",i="rgb(23, 42, 59)",d="rgb(23, 42, 59)",s="'localtapiola-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",y="'turva-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",m="1rem",v="600",S="1.5",T="1.25",p="'(min-width: 62em)'",x="'(min-width: 48em)'",B="'(min-width: 36em)'",D="'(min-width: 64.0625em)'",I="'(max-width: 35.9375em)'",F="'(min-width: 76.25em)'",L="'(max-width: 22.5em)'",h="'(min-width: 106.25em)'",P="'(max-width: 20.5em)'",k="4rem",z="3rem",A="20px",G="16px",f="12px",w="8px",W="4px";var X=Object.freeze({__proto__:null,colorBackgroundAccentPrimary:"rgb(240, 247, 250)",colorBackgroundAccentPrimaryTurva:"rgb(253, 247, 242)",colorBackgroundAccentQuaternary:"rgb(0, 119, 179)",colorBackgroundAccentQuaternaryTurva:"rgb(230, 23, 64)",colorBackgroundAccentSecondary:"rgb(228, 241, 247)",colorBackgroundAccentSecondaryTurva:"rgb(251, 235, 225)",colorBackgroundAccentTertiary:"rgb(217, 236, 245)",colorBackgroundAccentTertiaryTurva:"rgb(251, 225, 209)",colorBackgroundDisabledPrimary:"rgb(245, 248, 250)",colorBackgroundDisabledPrimaryTurva:"rgb(245, 246, 247)",colorBackgroundDisabledSecondary:"rgb(228, 236, 239)",colorBackgroundDisabledSecondaryTurva:"rgb(228, 233, 237)",colorBackgroundPrimary:"rgb(255, 255, 255)",colorBackgroundPrimaryTurva:"rgb(255, 255, 255)",colorBackgroundSecondary:"rgb(245, 248, 250)",colorBackgroundSecondaryTurva:"rgb(245, 246, 247)",colorBackgroundTertiary:"rgb(8, 42, 77)",colorBackgroundTertiaryTurva:"rgb(23, 42, 59)",colorBorderAccentPrimary:"rgb(0, 119, 179)",colorBorderAccentPrimaryTurva:"rgb(230, 23, 64)",colorBorderAccentQuaternary:"rgb(217, 236, 245)",colorBorderAccentQuaternaryTurva:"rgb(251, 225, 209)",colorBorderAccentSecondary:"rgb(131, 188, 217)",colorBorderAccentSecondaryTurva:"rgb(243, 119, 133)",colorBorderAccentTertiary:"rgb(198, 225, 238)",colorBorderAccentTertiaryTurva:"rgb(241, 202, 178)",colorBorderDisabledPrimary:"rgb(212, 223, 229)",colorBorderDisabledPrimaryTurva:"rgb(212, 221, 226)",colorBorderDisabledSecondary:"rgb(181, 198, 208)",colorBorderDisabledSecondaryTurva:"rgb(178, 194, 205)",colorBorderInversePrimary:"rgb(127, 150, 165)",colorBorderInversePrimaryTurva:"rgb(120, 145, 164)",colorBorderInverseSecondary:"rgb(81, 105, 123)",colorBorderInverseSecondaryTurva:"rgb(72, 100, 122)",colorBorderInverseTertiary:"rgb(62, 84, 102)",colorBorderInverseTertiaryTurva:"rgb(53, 79, 101)",colorBorderPrimary:"rgb(127, 150, 165)",colorBorderPrimaryTurva:"rgb(120, 145, 164)",colorBorderSecondary:"rgb(181, 198, 208)",colorBorderSecondaryTurva:"rgb(178, 194, 205)",colorBorderTertiary:"rgb(212, 223, 229)",colorBorderTertiaryTurva:"rgb(212, 221, 226)",colorBrandBlue:"rgb(0, 161, 212)",colorBrandGrayTurva:"rgb(178, 180, 179)",colorCategoryFamily:"rgb(11, 114, 136)",colorCategoryFamilyTurva:"rgb(199, 12, 112)",colorCategoryFinance:"rgb(122, 1, 196)",colorCategoryHome:"rgb(211, 36, 131)",colorCategoryHomeTurva:"rgb(161, 10, 78)",colorCategoryPet:"rgb(168, 1, 78)",colorCategoryTravel:"rgb(213, 66, 3)",colorCategoryTravelTurva:"rgb(9, 129, 148)",colorCategoryUnionTurva:"rgb(169, 69, 124)",colorCategoryVehicle:"rgb(54, 74, 129)",colorCategoryVehicleTurva:"rgb(23, 28, 58)",colorDanger:"rgb(214, 28, 82)",colorDanger00:"rgb(255, 240, 243)",colorDanger100:"rgb(255, 211, 219)",colorDanger1000:"rgb(89, 0, 45)",colorDanger200:"rgb(255, 173, 190)",colorDanger300:"rgb(252, 136, 162)",colorDanger400:"rgb(243, 98, 134)",colorDanger50:"rgb(255, 225, 231)",colorDanger500:"rgb(231, 62, 107)",colorDanger600:"rgb(214, 28, 82)",colorDanger700:"rgb(185, 16, 74)",colorDanger800:"rgb(153, 9, 66)",colorDanger900:"rgb(120, 4, 56)",colorDangerTurva:"rgb(214, 28, 82)",colorData01:"rgb(122, 1, 196)",colorData02:"rgb(0, 155, 204)",colorData03:"rgb(27, 171, 75)",colorData04:"rgb(255, 86, 34)",colorData05:"rgb(245, 76, 154)",colorData06:"rgb(194, 21, 101)",colorData07:"rgb(192, 101, 247)",colorData08:"rgb(0, 105, 191)",colorData09:"rgb(19, 120, 53)",colorData10:"rgb(179, 60, 24)",colorData11:"rgb(13, 163, 166)",colorData12:"rgb(11, 114, 136)",colorData13:"rgb(179, 137, 24)",colorData14:"rgb(128, 98, 17)",colorData15:"rgb(0, 41, 77)",colorDomainFamily:"rgb(11, 114, 136)",colorDomainFamilyTurva:"rgb(199, 12, 112)",colorDomainFinance:"rgb(122, 1, 196)",colorDomainFinanceTurva:"rgb(122, 1, 196)",colorDomainHome:"rgb(211, 36, 131)",colorDomainHomeTurva:"rgb(161, 10, 78)",colorDomainPet:"rgb(168, 1, 78)",colorDomainPetTurva:"rgb(168, 1, 78)",colorDomainTravel:"rgb(213, 66, 3)",colorDomainTravelTurva:"rgb(9, 129, 148)",colorDomainVehicle:"rgb(54, 74, 129)",colorDomainVehicleTurva:"rgb(23, 28, 58)",colorForegroundAccentPrimary:"rgb(0, 119, 179)",colorForegroundAccentPrimaryTurva:"rgb(230, 23, 64)",colorForegroundAccentSecondary:"rgb(0, 97, 155)",colorForegroundAccentSecondaryTurva:"rgb(185, 3, 41)",colorForegroundAccentTertiary:"rgb(0, 75, 129)",colorForegroundAccentTertiaryTurva:"rgb(140, 0, 30)",colorForegroundDisabledPrimary:"rgb(127, 150, 165)",colorForegroundDisabledPrimaryTurva:"rgb(120, 145, 164)",colorForegroundDisabledSecondary:"rgb(98, 121, 138)",colorForegroundDisabledSecondaryTurva:"rgb(95, 122, 143)",colorForegroundInverseAccentPrimary:"rgb(131, 188, 217)",colorForegroundInverseAccentPrimaryTurva:"rgb(243, 119, 133)",colorForegroundInverseAccentSecondary:"rgb(172, 210, 229)",colorForegroundInverseAccentSecondaryTurva:"rgb(249, 164, 172)",colorForegroundInverseAccentTertiary:"rgb(198, 225, 238)",colorForegroundInverseAccentTertiaryTurva:"rgb(255, 201, 204)",colorForegroundInversePrimary:"rgb(255, 255, 255)",colorForegroundInversePrimaryTurva:"rgb(255, 255, 255)",colorForegroundInverseSecondary:"rgb(181, 198, 208)",colorForegroundInverseSecondaryTurva:"rgb(178, 194, 205)",colorForegroundInverseTertiary:"rgb(127, 150, 165)",colorForegroundInverseTertiaryTurva:"rgb(120, 145, 164)",colorForegroundPrimary:"rgb(8, 42, 77)",colorForegroundPrimaryTurva:"rgb(23, 42, 59)",colorForegroundSecondary:"rgb(62, 84, 102)",colorForegroundSecondaryTurva:"rgb(53, 79, 101)",colorForegroundTertiary:"rgb(98, 121, 138)",colorForegroundTertiaryTurva:"rgb(95, 122, 143)",colorGray:r,colorGrayDark:"rgb(127, 150, 165)",colorGrayDarkTurva:o,colorGrayDarker:a,colorGrayDarkerTurva:e,colorGrayLight:c,colorGrayLightTurva:g,colorGrayLighter:"rgb(245, 248, 250)",colorGrayLighterTurva:"rgb(245, 246, 247)",colorGrayLightest:l,colorGrayLightestTurva:"rgb(255, 255, 255)",colorGrayTurva:n,colorInteractiveAlternative:"rgb(0, 119, 179)",colorInteractiveAlternativeLight:"rgb(240, 247, 250)",colorInteractiveAlternativeLightTurva:"rgb(245, 246, 247)",colorInteractiveAlternativeTurva:"rgb(23, 42, 59)",colorLtBlue00:"rgb(240, 247, 250)",colorLtBlue100:"rgb(217, 236, 245)",colorLtBlue1000:"rgb(8, 42, 77)",colorLtBlue200:"rgb(198, 225, 238)",colorLtBlue300:"rgb(172, 210, 229)",colorLtBlue400:"rgb(131, 188, 217)",colorLtBlue50:"rgb(228, 241, 247)",colorLtBlue500:"rgb(50, 153, 204)",colorLtBlue600:"rgb(0, 119, 179)",colorLtBlue700:"rgb(0, 97, 155)",colorLtBlue800:"rgb(0, 75, 129)",colorLtBlue900:"rgb(3, 56, 102)",colorLtGray00:"rgb(245, 248, 250)",colorLtGray100:"rgb(212, 223, 229)",colorLtGray1000:"rgb(17, 28, 38)",colorLtGray200:"rgb(181, 198, 208)",colorLtGray300:"rgb(153, 174, 186)",colorLtGray400:"rgb(127, 150, 165)",colorLtGray50:"rgb(228, 236, 239)",colorLtGray500:"rgb(98, 121, 138)",colorLtGray600:"rgb(81, 105, 123)",colorLtGray700:"rgb(62, 84, 102)",colorLtGray800:"rgb(45, 64, 81)",colorLtGray900:"rgb(30, 45, 59)",colorPartnerBrandSGroup:"rgb(0, 170, 70)",colorPrimary:u,colorPrimaryDark:"rgb(0, 75, 129)",colorPrimaryDarkTurva:"rgb(140, 0, 30)",colorPrimaryDarker:"rgb(0, 97, 155)",colorPrimaryDarkerTurva:"rgb(185, 3, 41)",colorPrimaryLight:"rgb(198, 225, 238)",colorPrimaryLightTurva:"rgb(241, 202, 178)",colorPrimaryLighter:"rgb(228, 241, 247)",colorPrimaryLighterTurva:"rgb(251, 235, 225)",colorPrimaryLightest:"rgb(240, 247, 250)",colorPrimaryLightestTurva:"rgb(253, 247, 242)",colorPrimaryTurva:b,colorSecondary:t,colorSecondaryTurva:i,colorStatusBackgroundDangerPrimary:"rgb(255, 240, 243)",colorStatusBackgroundDangerQuaternary:"rgb(185, 16, 74)",colorStatusBackgroundDangerSecondary:"rgb(255, 211, 219)",colorStatusBackgroundDangerTertiary:"rgb(214, 28, 82)",colorStatusBackgroundInfoPrimary:"rgb(240, 247, 250)",colorStatusBackgroundInfoQuaternary:"rgb(0, 97, 155)",colorStatusBackgroundInfoSecondary:"rgb(217, 236, 245)",colorStatusBackgroundInfoTertiary:"rgb(0, 119, 179)",colorStatusBackgroundSuccessPrimary:"rgb(231, 248, 239)",colorStatusBackgroundSuccessQuaternary:"rgb(29, 106, 88)",colorStatusBackgroundSuccessSecondary:"rgb(191, 239, 218)",colorStatusBackgroundSuccessTertiary:"rgb(76, 164, 138)",colorStatusBackgroundWarningPrimary:"rgb(255, 247, 221)",colorStatusBackgroundWarningQuaternary:"rgb(247, 178, 40)",colorStatusBackgroundWarningSecondary:"rgb(255, 232, 160)",colorStatusBackgroundWarningTertiary:"rgb(255, 199, 79)",colorStatusBorderDangerPrimary:"rgb(255, 173, 190)",colorStatusBorderDangerSecondary:"rgb(214, 28, 82)",colorStatusBorderInfoPrimary:"rgb(172, 210, 229)",colorStatusBorderInfoSecondary:"rgb(0, 119, 179)",colorStatusBorderSuccessPrimary:"rgb(163, 229, 202)",colorStatusBorderSuccessSecondary:"rgb(76, 164, 138)",colorStatusBorderWarningPrimary:"rgb(255, 217, 120)",colorStatusBorderWarningSecondary:"rgb(196, 138, 23)",colorStatusForegroundDangerPrimary:"rgb(153, 9, 66)",colorStatusForegroundDangerSecondary:"rgb(120, 4, 56)",colorStatusForegroundInfoPrimary:"rgb(0, 75, 129)",colorStatusForegroundInfoSecondary:"rgb(3, 56, 102)",colorStatusForegroundInverseDanger:"rgb(255, 240, 243)",colorStatusForegroundInverseInfo:"rgb(240, 247, 250)",colorStatusForegroundInverseSuccess:"rgb(244, 250, 247)",colorStatusForegroundInverseWarning:"rgb(38, 26, 4)",colorStatusForegroundSuccessPrimary:"rgb(29, 106, 88)",colorStatusForegroundSuccessSecondary:"rgb(13, 71, 59)",colorStatusForegroundWarningPrimary:"rgb(126, 87, 16)",colorStatusForegroundWarningSecondary:"rgb(81, 55, 9)",colorSuccess:"rgb(48, 131, 105)",colorSuccess00:"rgb(244, 250, 247)",colorSuccess100:"rgb(218, 246, 233)",colorSuccess1000:"rgb(4, 38, 33)",colorSuccess200:"rgb(191, 239, 218)",colorSuccess300:"rgb(163, 229, 202)",colorSuccess400:"rgb(134, 215, 185)",colorSuccess50:"rgb(231, 248, 239)",colorSuccess500:"rgb(105, 196, 166)",colorSuccess600:"rgb(76, 164, 138)",colorSuccess700:"rgb(48, 131, 105)",colorSuccess800:"rgb(29, 106, 88)",colorSuccess900:"rgb(13, 71, 59)",colorSuccessTurva:"rgb(48, 131, 105)",colorTurvaGray00:"rgb(245, 246, 247)",colorTurvaGray100:"rgb(212, 221, 226)",colorTurvaGray1000:"rgb(6, 23, 38)",colorTurvaGray200:"rgb(178, 194, 205)",colorTurvaGray300:"rgb(148, 169, 185)",colorTurvaGray400:"rgb(120, 145, 164)",colorTurvaGray50:"rgb(228, 233, 237)",colorTurvaGray500:"rgb(95, 122, 143)",colorTurvaGray600:"rgb(72, 100, 122)",colorTurvaGray700:"rgb(53, 79, 101)",colorTurvaGray800:"rgb(37, 60, 80)",colorTurvaGray900:d,colorTurvaNude00:"rgb(253, 247, 242)",colorTurvaNude100:"rgb(251, 225, 209)",colorTurvaNude1000:"rgb(38, 21, 15)",colorTurvaNude200:"rgb(241, 202, 178)",colorTurvaNude300:"rgb(216, 174, 150)",colorTurvaNude400:"rgb(190, 147, 124)",colorTurvaNude50:"rgb(251, 235, 225)",colorTurvaNude500:"rgb(165, 122, 101)",colorTurvaNude600:"rgb(140, 98, 79)",colorTurvaNude700:"rgb(114, 76, 60)",colorTurvaNude800:"rgb(89, 56, 43)",colorTurvaNude900:"rgb(64, 38, 28)",colorTurvaRed00:"rgb(255, 242, 242)",colorTurvaRed100:"rgb(255, 229, 230)",colorTurvaRed1000:"rgb(51, 0, 10)",colorTurvaRed200:"rgb(255, 201, 204)",colorTurvaRed300:"rgb(249, 164, 172)",colorTurvaRed400:"rgb(243, 119, 133)",colorTurvaRed50:"rgb(255, 236, 236)",colorTurvaRed500:"rgb(236, 69, 96)",colorTurvaRed600:"rgb(230, 23, 64)",colorTurvaRed700:"rgb(185, 3, 41)",colorTurvaRed800:"rgb(140, 0, 30)",colorTurvaRed900:"rgb(96, 0, 20)",colorWarning:"rgb(247, 178, 40)",colorWarning00:"rgb(255, 251, 242)",colorWarning100:"rgb(255, 244, 198)",colorWarning1000:"rgb(38, 26, 4)",colorWarning200:"rgb(255, 232, 160)",colorWarning300:"rgb(255, 217, 120)",colorWarning400:"rgb(255, 199, 79)",colorWarning50:"rgb(255, 247, 221)",colorWarning500:"rgb(247, 178, 40)",colorWarning600:"rgb(196, 138, 23)",colorWarning700:"rgb(156, 110, 22)",colorWarning800:"rgb(126, 87, 16)",colorWarning900:"rgb(81, 55, 9)",colorWarningTurva:"rgb(247, 178, 40)",fontFamilyHeading:"'localtapiola-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontFamilyHeadingTurva:"'turva-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontFamilyText:s,fontFamilyTextTurva:y,fontSizeLarge:"1.25rem",fontSizeMedium:m,fontSizeSmall:"0.875rem",fontSizeXLarge:"1.5rem",fontSizeXSmall:"0.75rem",fontSizeXxLarge:"2.25rem",fontSizeXxxLarge:"3rem",fontSizeXxxxLarge:"4.5rem",fontWeightBold:"700",fontWeightExtraBold:"800",fontWeightNormal:"400",fontWeightSemiBold:"600",letterSpacingHeading:"-0.01rem",lineHeightMedium:"1.5",lineHeightSmall:T,lineHeightXSmall:"1.1",mediaQueryLarge:p,mediaQueryMedium:x,mediaQuerySmall:B,mediaQueryXLarge:D,mediaQueryXSmall:I,mediaQueryXxLarge:F,mediaQueryXxSmall:L,mediaQueryXxxLarge:h,mediaQueryXxxSmall:P,opacity30:"0.30",opacity50:"0.50",opacity75:"0.75",opacity85:"0.85",radiusCircle:"50%",radiusDefault:"4px",radiusIntermediate:"12px",radiusLarge:"16px",radiusMedium:"8px",radiusPill:"20rem",radiusSharp:"0",shadowCard:"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)",shadowCardTurva:"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)",shadowDefault:"0 2px 6px 0 rgba(0, 41, 77, 0.07)",shadowDefaultTurva:"0 2px 6px 0 rgba(117, 117, 117, 0.13)",shadowError:"0 0 0 1px #de2362",shadowErrorTurva:"0 0 0 1px #e55039",shadowFocus:"0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3",shadowFocusInput:"0 0 0 1px #0077b3",shadowFocusInputTurva:"0 0 0 1px #171c3a",shadowFocusTurva:"0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a",shadowHover:"0 2px 10px 0 rgba(0, 41, 77, 0.1)",shadowHoverInput:"0 0 0 1px #909599",shadowHoverInputTurva:"0 0 0 1px #747475",shadowHoverTurva:"0 2px 10px 0 rgba(117, 117, 117, 0.15)",shadowModal:"0 2px 20px 0 rgba(0, 0, 0, 0.2)",shadowTooltip:"0 2px 10px 0 rgba(0, 41, 77, 0.07)",shadowTooltipTurva:"0 2px 10px 0 rgba(117, 117, 117, 0.13)",sizeButtonBorder:"1px",sizeButtonMinWidth:"8rem",sizeButtonTinyBorder:"1px",sizeFormBorder:"1px",sizeHeader:k,sizeIconLarge:"30px",sizeIconMedium:"24px",sizeIconSmall:"20px",sizeIconXLarge:"36px",sizeIconXSmall:"16px",sizeIconXxLarge:"48px",sizeIconXxSmall:"10px",sizeIconXxxLarge:"72px",sizeIconXxxSmall:"7px",sizeLayoutMaxWidth:"1110px",sizeMediumBorder:"2px",sizeNavigation:z,sizeStepMedium:"40px",sizeStepSmall:"30px",sizeTappableSquare:"48px",spaceLarge:A,spaceMedium:G,spaceSmall:f,spaceXLarge:"28px",spaceXSmall:"8px",spaceXxLarge:"36px",spaceXxSmall:"4px",spaceXxxLarge:"48px",spaceXxxSmall:"2px",spaceXxxxLarge:"72px",spaceXxxxxLarge:"94px",transitionQuickly:"300ms ease",transitionSlowly:"600ms ease",zIndexDeep:"-999999",zIndexDefault:"1",zIndexDropdown:"600",zIndexHeader:"400",zIndexMask:"200",zIndexMaskButtons:"250",zIndexMasked:"100",zIndexModal:"900",zIndexOverlay:"700",zIndexPopup:"950",zIndexSpinner:"800",zIndexSticky:"300",zIndexToast:"500"});export{l as A,f as B,c as C,y as D,d as E,o as F,i as G,g as H,e as I,z as J,F as a,D as b,p as c,x as d,B as e,I as f,L as g,P as h,r as i,u as j,n as k,b as l,h as m,S as n,w as o,m as p,A as q,s as r,k as s,X as t,t as u,v,T as w,a as x,G as y,W as z}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- const a=a=>"ArrowLeft"===a.key||"Left"===a.key,s=a=>"ArrowUp"===a.key||"Up"===a.key,n=a=>"ArrowRight"===a.key||"Right"===a.key,o=a=>"ArrowDown"===a.key||"Down"===a.key,w=w=>o(w)||n(w)||s(w)||a(w),e=a=>"Escape"===a.key||"Esc"===a.key,i=a=>a.shiftKey&&"Tab"===a.key,d=a=>"Tab"===a.key,t=a=>"Backspace"===a.key,r=a=>" "===a.key||"Spacebar"===a.key,b=a=>"+"===a.key||"Add"===a.key,c=a=>"-"===a.key||"Subtract"===a.key,u=a=>"?"===a.key,f=a=>"Enter"===a.key,p=a=>f(a)||r(a),k=a=>a.key>="0"&&a.key<="9",g=new Set;function y(a){g.forEach((s=>{s.element.classList[a?"add":"remove"]("user-is-tabbing")}))}function A(a){d(a)&&(y(!0),window.removeEventListener("keydown",A),window.addEventListener("mousedown",m,!1))}function m(){y(!1),window.removeEventListener("mousedown",m),window.addEventListener("keydown",A,!1)}"undefined"!=typeof window&&(window.addEventListener("mousedown",m,!1),window.addEventListener("blur",(()=>A({key:"Tab"}))));const T=a=>{g.add(a),a.element.classList.add("user-is-tabbing")},h=a=>{g.delete(a)},E=()=>{A({key:"Tab"})};export{e as a,d as b,f as c,a as d,s as e,n as f,o as g,E as h,p as i,w as j,k,c as l,b as m,u as n,t as o,i as p,r as q,T as s,h as u}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as a,c as e,h as d,F as t,H as i,g as r}from"./p-B2cboDWM.js";import{g as n}from"./p-DvwKrUS6.js";import{i as o}from"./p-BzYmwX5_.js";import{c as p}from"./p-Cfr_DJqU.js";import{i as m,s,u as c}from"./p-Db8rvjPI.js";import{a as x}from"./p-5lFzA17H.js";import{s as l}from"./p-C6E9F6QT.js";import{g}from"./p-D2ly4TZR.js";import"./p-DEzE2U5T.js";const h=["h1","h2","h3","h4","h5","h6"],u="div";var b,f,w=n(f?b:(f=1,b={title:"action-arrow-up",tags:"action arrow up caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 17.939a.752.752 0 0 1-.53-1.281L10.94 5.94c.283-.284.659-.44 1.059-.44.401 0 .777.156 1.06.438l10.721 10.72a.752.752 0 0 1-.53 1.281.743.743 0 0 1-.53-.22L12 7 1.28 17.719a.743.743 0 0 1-.53.22z"/></svg>'}));const v=class{constructor(d){a(this,d),this.duetToggle=e(this,"duetToggle",7),this.cardId=p("DuetCard"),this.heading="",this.secondaryHeading="",this.variation="default",this.collapsible=!1,this.open=!0,this.headingLevel="h2",this.iconColor="currentColor",this.background="gray-lightest",this.padding="small",this.margin="auto",this.theme="",this.shadowBreakpoint=void 0,this.togglePanel=a=>{a.preventDefault(),this.open=!this.open,this.duetToggle.emit({component:"duet-card",originalEvent:a})},this.handleKeyDown=a=>{m(a)&&this.togglePanel(a)}}componentWillLoad(){o(this),this.hasHeadingSlot=!!this.element.querySelector(":scope > [slot='heading']"),this.hasFooter=!!this.element.querySelector("[slot='footer']")}connectedCallback(){s(this)}disconnectedCallback(){c(this)}renderHeading(){var a;const e=l(this.headingLevel),i=[...h,u].some((a=>a===e))?e:"h2",r={backgroundColor:g(this.headingBackground)},n=d(t,null,d("div",{class:"duet-card-heading-grid"},this.icon&&d(t,null,d("duet-icon",{class:"duet-card-icon",name:this.icon,size:"medium",margin:"none",color:this.iconColor}),d("duet-spacer",{direction:"horizontal",size:"small"})),d("div",{class:"duet-card-heading-text"},this.heading?this.heading:d("slot",{name:"heading"})),this.secondaryHeading&&d(t,null,d("duet-spacer",{direction:"horizontal",size:"small"}),d("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--inline"},this.secondaryHeading)),this.collapsible&&d(t,null,d("duet-spacer",{direction:"horizontal",size:"small"}),d("duet-icon",{class:"duet-card-caret",icon:w.svg,size:"small",margin:"none",color:"currentColor"}))),this.secondaryHeading&&d("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--new-line"},this.secondaryHeading),d("slot",{name:"below-heading"}));if(this.collapsible){const e=null===(a=x(this.element,"heading"))||void 0===a?void 0:a.map((a=>a.textContent)).join(" ");return d(i,{style:r,class:"duet-card-heading duet-card-heading--collapsible",onClick:this.togglePanel,onKeyDown:this.handleKeyDown},d("button",{type:"button",class:{"duet-theme-turva":"turva"===this.theme},"aria-controls":this.cardId,"aria-expanded":this.open?"true":"false","aria-label":e},n))}return d(i,{style:r,class:"duet-card-heading"},n)}async setFocus(a){this.nativeCard&&this.nativeCard.focus(a)}render(){const a=this.url?"a":"div",e={backgroundColor:g(this.background)};return d(i,{key:"526da1b920f1be4a18d200ab81bc1951649cf3b2",class:{"duet-m-0":"none"===this.margin,"duet-card-info":"info"===this.variation}},d(a,{key:"1cfae581c87423ea9d466fd39084b28505b01a77",href:this.url,style:e,ref:a=>this.nativeCard=a,"aria-label":this.accessibleLabel,class:{"duet-card":!0,[this.padding]:!0,[this.variation]:!0,[`shadow-${this.shadowBreakpoint}`]:!!this.shadowBreakpoint,"duet-p-0":"none"===this.padding,"duet-theme-turva":"turva"===this.theme,"duet-card-has-bg":"gray-lightest"!==this.background,"duet-card-has-icon":!!this.icon,"duet-card-collapsed":this.collapsible&&!this.open}},this.image&&d("div",{key:"e310f18c792507a78333290fc56a3866efe302ca",class:"duet-card-image-mask"},d("img",{key:"84eaf59d2df2a9dd85cf0703b9b1641dff78c473",src:this.image,class:"duet-card-image",loading:"lazy",alt:this.imageAlt||"",role:this.imageAlt?null:"presentation"})),(this.heading||this.hasHeadingSlot)&&this.renderHeading(),d("div",{key:"ef549d1a5f7efeb35a2fd0ca6ab2c22566955029",class:"duet-card-content",id:this.cardId},d("slot",{key:"746a25475887db3e0ba914e273eb32571accbb56"}),this.hasFooter&&d("div",{key:"d30c96b12ae73fc4bdfbfd22f25b862287b8fce5",class:"duet-card-footer"},d("slot",{key:"887615186784331005c099562f296bdd3d216c98",name:"footer"})))))}get element(){return r(this)}};v.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:20px !important;display:flex;width:100%;vertical-align:top}:host(.duet-card-info){margin-bottom:16px !important}:host(.duet-m-0){margin:0 !important}:host{--duet-card-border-radius:12px}@media (min-width: 36em){:host{--duet-card-border-radius:16px}}.duet-card{padding:20px !important;position:relative;display:flex;flex-direction:column;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-style:normal;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-decoration:none;border-radius:var(--duet-card-border-radius);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-card.duet-p-0{padding:0 !important}.duet-card.duet-m-0{margin:0 !important}.duet-card:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-card:focus,.duet-card:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}@media (max-width: 20.5em){.duet-card.shadow-xxx-small{box-shadow:none}}@media (max-width: 22.5em){.duet-card.shadow-xx-small{box-shadow:none}}@media (max-width: 35.9375em){.duet-card.shadow-x-small{box-shadow:none}}@media (min-width: 36em){.duet-card.shadow-small{box-shadow:none}}@media (min-width: 48em){.duet-card.shadow-medium{box-shadow:none}}@media (min-width: 62em){.duet-card.shadow-large{box-shadow:none}}@media (min-width: 64.0625em){.duet-card.shadow-x-large{box-shadow:none}}@media (min-width: 76.25em){.duet-card.shadow-xx-large{box-shadow:none}}@media (min-width: 106.25em){.duet-card.shadow-xxx-large{box-shadow:none}}@media (min-width: 36em){.duet-card{padding:28px !important}}@media (min-width: 36em){.duet-card.xx-small{padding:12px !important}}@media (min-width: 36em){.duet-card.x-small{padding:20px !important}}@media (min-width: 36em){.duet-card.medium{padding:28px !important}}@media (min-width: 48em){.duet-card.medium{padding:36px !important}}@media (min-width: 36em){.duet-card.large{padding:36px !important}}@media (min-width: 48em){.duet-card.large{padding:48px !important}}@media (min-width: 36em){.duet-card.x-large{padding:48px !important}}@media (min-width: 48em){.duet-card.x-large{padding:72px !important}}.duet-card.duet-card-collapsed{padding-bottom:0 !important}@media (min-width: 36em){.duet-card.duet-card-collapsed{padding-bottom:0 !important}}.duet-card.info{background:rgba(4, 81, 128, 0.04) !important;box-shadow:none}.duet-card.plain{box-shadow:none}.duet-card.plain:not(.duet-card-has-bg){background:transparent !important}.duet-card-heading-grid{display:flex;flex-direction:row}.duet-card-icon{align-self:center}.duet-card-heading-text{flex:1;word-break:break-word}.duet-card-secondary-heading{font-size:1rem;font-weight:600;word-break:break-word}.duet-card-secondary-heading--inline{display:block;flex:1;align-self:flex-start;line-height:1.875;text-align:right}@media (max-width: 22.5em){.duet-card-secondary-heading--inline{display:none}}.duet-card-secondary-heading--new-line{display:none}@media (max-width: 22.5em){.duet-card-secondary-heading--new-line{display:block}}.duet-card-heading{position:relative;display:block;padding:16px 20px;margin:-20px -20px 20px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-weight:800;color:rgb(8, 42, 77);border-bottom:1px solid rgb(212, 223, 229);border-radius:var(--duet-card-border-radius) var(--duet-card-border-radius) 0 0}@media (min-width: 36em){.duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}.none .duet-card-heading{padding:0 !important;margin:0}}.duet-card-collapsed .duet-card-heading{border-radius:var(--duet-card-border-radius)}.duet-card-image-mask+.duet-card-heading{border-radius:0}.duet-card-heading.duet-card-heading--collapsible{cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button{width:100%;font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit;text-align:left;cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button:focus{outline:0}:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva :host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus,:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus.duet-theme-turva{outline-color:rgba(53, 79, 101, 0.8)}:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus{border-radius:var(--duet-card-border-radius)}.duet-card-collapsed .duet-card-heading{margin-bottom:0 !important;border-bottom:0 !important}@media (min-width: 36em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 48em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 36em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}@media (min-width: 48em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}.medium .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.medium .duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}}@media (min-width: 48em){.medium .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}.large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.large .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}@media (min-width: 48em){.large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}.x-large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.x-large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}@media (min-width: 48em){.x-large .duet-card-heading{padding:39px 72px 40px !important;margin:-72px -72px 48px}}.none .duet-card-heading{padding:0;margin:0}.duet-card-footer{padding:20px;margin:20px -20px -20px;font-size:0.875rem;line-height:1.25;background:rgb(245, 248, 250);border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 36em){.xx-small .duet-card-footer{padding:10px 20px 11px !important;padding-left:12px !important;margin:12px -12px -12px}}@media (min-width: 36em){.x-small .duet-card-footer{padding:15px 28px 16px !important;padding-left:20px !important;margin:20px -20px -20px}}@media (min-width: 36em){.medium .duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.medium .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 36em){.large .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 48em){.large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 36em){.x-large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 48em){.x-large .duet-card-footer{padding:39px 72px 40px !important;margin:48px -72px -72px}}.none .duet-card-footer{padding:0;margin:0}.duet-card-content{flex:1 1 auto;width:100%}.duet-card-collapsed .duet-card-content{display:none}.duet-card-caret{position:relative;top:6px;align-self:flex-start;transition:300ms ease}[aria-expanded=false] .duet-card-caret{transform:rotate(-180deg)}.duet-card-image-mask{position:relative;width:calc(100% + 40px);margin:-20px 0 20px -20px;overflow:hidden;border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.small .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 36em){.medium .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 48em){.medium .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 28px -36px}}@media (min-width: 36em){.large .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 36px -36px}}@media (min-width: 48em){.large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 36em){.x-large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 48em){.x-large .duet-card-image-mask{width:calc(100% + 144px);margin:-72px 0 36px -72px}}.none .duet-card-image-mask{width:100%;padding:0;margin:0}.duet-card-image{display:block;width:102%;min-width:1px;max-width:102%;height:auto;min-height:1px;margin-left:-1%;transform:scale(1.0001);transition:transform 300ms ease}a.duet-card{transition:box-shadow 300ms ease, background-position 300ms ease}a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}a.duet-card:hover .duet-card-image{transform:scale(1.024)}.duet-theme-turva a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}a.duet-card:active{transform:translateY(1px);transition:none}.duet-card.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 42, 59);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)}.duet-card.duet-theme-turva.info{background:rgb(253, 247, 242) !important}.duet-card.duet-theme-turva .duet-card-heading{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 42, 59);border-color:rgb(212, 221, 226)}.duet-card.duet-theme-turva .duet-card-footer{background:rgb(245, 246, 247)}';export{v as duet_card}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,h as t,H as i,g as a}from"./p-B2cboDWM.js";import{n as o}from"./p-vVCYtBMj.js";import{a as n}from"./p-8RjiAqaE.js";import{i as s}from"./p-BzYmwX5_.js";import{g as l}from"./p-B8-N_qjs.js";import{g as r,c as d,d as c}from"./p-CFqvB5PA.js";import"./p-DvwKrUS6.js";import"./p-5lFzA17H.js";import"./p-C6E9F6QT.js";const p=class{constructor(t){e(this,t),this.theme="",this.targetLanguage=void 0,this.active=!1,this.href="#",this.icon=void 0,this.size="inherit",this.caret=!1,this.menuItem=!1,this.accessibleLabelExternalDefaults=n,this.accessibleLabelExternal=r(this.accessibleLabelExternalDefaults),this.external=!1}componentWillLoad(){s(this)}connectedCallback(){d(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"})}disconnectedCallback(){c(this)}render(){return t(i,{key:"8af50d9b7ac2dff34a22383644c26bc271feb186"},t("a",{key:"2331800cc3a3541998250f6e0d77989311da783d",target:this.href?this.external?"_blank":"_self":null,class:{"duet-slideout-link":!0,"duet-theme-turva":"turva"===this.theme,active:this.active,[this.size]:!0},href:this.href,"aria-current":this.active?"true":"false",lang:this.targetLanguage,hreflang:this.targetLanguage,"aria-label":this.href&&l(this)||this.accessibleLabel,rel:this.external?"noopener":void 0},this.icon&&t("duet-icon",{key:"ce90f34daf34e3fad2b5ad7b3b5e37dad9c1fd20",name:this.icon,color:"secondary",size:this.menuItem?"x-small":"small",margin:"none"}),t("div",{key:"a5fc2cc4c2a7c166b57b529ff62d133775b8dc51",class:"label"},t("span",{key:"49dc50b3f9fccbca74e22a2a62d8b8037484f386"},t("span",{key:"732a205ac37b15f4f242c827b90600ff15194c74",class:"label-container"},t("span",{key:"cc338ec61125f8695556d8ecc08d9d75d2ded84e",class:"label-content"},t("slot",{key:"9eacab150163fb2dba6e373a4a3b8ca05346916d"})),this.external&&t("duet-icon",{key:"6420a54645299ae8b19bfcc8626a929b6cc4f5cb",class:"external-icon",theme:this.theme,name:o.title,margin:"none",size:"auto",color:"currentColor"})),t("slot",{key:"9546111ca2eb2084ee09d4d48ad60eae283fad70",name:"description"})),this.caret&&t("duet-icon",{key:"8d9d92137460efafad759509121e6dae57165a72",name:"action-arrow-right",color:"secondary",size:"x-small",margin:"none"}))))}get element(){return a(this)}};p.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;width:100%;height:100%}.duet-slideout-link{position:relative;display:flex;gap:16px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:inherit;font-weight:inherit;line-height:1.25;color:inherit;text-align:left;text-decoration:none}.duet-slideout-link:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-slideout-link:focus,.duet-slideout-link:focus.duet-theme-turva{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-slideout-link.active span{position:relative}.duet-slideout-link.active .label-content::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:var(--active-height, 2px);content:"";background:rgb(0, 119, 179);transform:var(--active-translate-y, translateY(2px))}.duet-slideout-link.small{font-size:1rem;font-weight:600}.duet-slideout-link.small span::after{--active-height:1px;--active-translate-y:1px}.duet-slideout-link.medium{font-size:1rem;font-weight:600}.duet-slideout-link.large{font-size:1.25rem;font-weight:800}.duet-slideout-link .label{display:flex;gap:8px;align-items:center;justify-content:space-between;width:100%}.duet-slideout-link .label-container{display:flex;gap:8px;align-items:center;justify-content:flex-start;width:100%}.duet-slideout-link .external-icon{width:10px;height:10px}.duet-slideout-link.medium .external-icon,.duet-slideout-link.large .external-icon{width:12px;height:12px}slot[name=description]::slotted(*){display:block;padding:8px 0 0;font-size:1rem;font-size:1.25;font-weight:400;color:rgb(98, 121, 138)}.duet-slideout-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 42, 59)}.duet-slideout-link.duet-theme-turva.active .label-content::after{background:rgb(230, 23, 64)}slot[name=description]::slotted(*){color:rgb(23, 42, 59)}';export{p as duet_slideout_link}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import"./p-B2cboDWM.js";const o=()=>{globalThis.ds={log:()=>{},warn:()=>{},info:()=>{}}};export{o as g}