@duetds/components 6.10.1 → 6.10.3

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 (575) hide show
  1. package/hydrate/index.js +4130 -3647
  2. package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
  3. package/lib/cjs/duet-alert.cjs.entry.js +1 -1
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-banner.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  8. package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
  9. package/lib/cjs/duet-callout.cjs.entry.js +1 -1
  10. package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
  11. package/lib/cjs/duet-card.cjs.entry.js +1 -1
  12. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-chip.cjs.entry.js +95 -0
  15. package/lib/cjs/duet-choice_2.cjs.entry.js +24 -11
  16. package/lib/cjs/duet-collapsible.cjs.entry.js +5 -3
  17. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  21. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-editable-table_3.cjs.entry.js +23 -5
  23. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  39. package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-number-input.cjs.entry.js +8 -1
  43. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-popup-menu-item.cjs.entry.js +43 -0
  46. package/lib/cjs/duet-popup-menu.cjs.entry.js +109 -0
  47. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  48. package/lib/cjs/duet-promo-card.cjs.entry.js +1 -1
  49. package/lib/cjs/duet-radio_2.cjs.entry.js +5 -4
  50. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  51. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  52. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  53. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  54. package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
  55. package/lib/cjs/duet-show-more.cjs.entry.js +95 -0
  56. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  57. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
  58. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
  60. package/lib/cjs/duet-slideout.cjs.entry.js +2 -2
  61. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  62. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  65. package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
  66. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  67. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  68. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  69. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  70. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  71. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  72. package/lib/cjs/duet-tooltip.cjs.entry.js +4 -1174
  73. package/lib/cjs/duet-tray.cjs.entry.js +1 -1
  74. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  75. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  76. package/lib/cjs/duet.cjs.js +2 -2
  77. package/lib/cjs/floating-ui.dom.esm-3801794e.js +1251 -0
  78. package/lib/cjs/{focus-utils-b45e4830.js → focus-utils-fa8771cc.js} +1 -1
  79. package/lib/cjs/{index-a6cfed65.js → index-ad229c23.js} +1 -1
  80. package/lib/cjs/loader.cjs.js +2 -2
  81. package/lib/collection/collection-manifest.json +4 -0
  82. package/lib/collection/components/duet-chip/duet-chip.css +174 -0
  83. package/lib/collection/components/duet-chip/duet-chip.js +320 -0
  84. package/lib/collection/components/duet-choice/duet-choice.css +48 -21
  85. package/lib/collection/components/duet-choice/duet-choice.js +39 -8
  86. package/lib/collection/components/duet-collapsible/duet-collapsible.css +10 -2
  87. package/lib/collection/components/duet-collapsible/duet-collapsible.js +22 -1
  88. package/lib/collection/components/duet-editable-table/duet-editable-table.js +3 -1
  89. package/lib/collection/components/duet-number-input/duet-number-input.js +23 -0
  90. package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +50 -0
  91. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +317 -0
  92. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +69 -0
  93. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +205 -0
  94. package/lib/collection/components/duet-radio/duet-radio.css +3 -3
  95. package/lib/collection/components/duet-radio/duet-radio.js +9 -3
  96. package/lib/collection/components/duet-shaped-image/duet-shaped-image.css +12 -2
  97. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +25 -2
  98. package/lib/collection/components/duet-show-more/duet-show-more.css +46 -0
  99. package/lib/collection/components/duet-show-more/duet-show-more.js +214 -0
  100. package/lib/collection/components/duet-upload/duet-upload.js +48 -1
  101. package/lib/collection/components/duet-upload/upload-item.js +8 -2
  102. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  103. package/lib/dist-custom-elements/duet-alert.js +1 -1
  104. package/lib/dist-custom-elements/duet-badge.js +1 -1
  105. package/lib/dist-custom-elements/duet-banner.js +4 -4
  106. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  107. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  108. package/lib/dist-custom-elements/duet-button.js +1 -1
  109. package/lib/dist-custom-elements/duet-callout.js +3 -3
  110. package/lib/dist-custom-elements/duet-caption.js +1 -1
  111. package/lib/dist-custom-elements/duet-card.js +3 -3
  112. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  113. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  114. package/lib/dist-custom-elements/duet-chip.d.ts +11 -0
  115. package/lib/dist-custom-elements/duet-chip.js +125 -0
  116. package/lib/dist-custom-elements/duet-choice-group.js +6 -6
  117. package/lib/dist-custom-elements/duet-choice.js +28 -14
  118. package/lib/dist-custom-elements/duet-collapsible.js +7 -4
  119. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  120. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  121. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  122. package/lib/dist-custom-elements/duet-date-picker.js +10 -10
  123. package/lib/dist-custom-elements/duet-divider.js +1 -1
  124. package/lib/dist-custom-elements/duet-editable-table.js +10 -8
  125. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  126. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  127. package/lib/dist-custom-elements/duet-footer.js +4 -4
  128. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  129. package/lib/dist-custom-elements/duet-grid.js +1 -1
  130. package/lib/dist-custom-elements/duet-header.js +8 -8
  131. package/lib/dist-custom-elements/duet-heading.js +1 -1
  132. package/lib/dist-custom-elements/duet-hero.js +9 -9
  133. package/lib/dist-custom-elements/duet-icon.js +1 -1
  134. package/lib/dist-custom-elements/duet-input.js +1 -1
  135. package/lib/dist-custom-elements/duet-label.js +1 -1
  136. package/lib/dist-custom-elements/duet-layout.js +1 -1
  137. package/lib/dist-custom-elements/duet-link.js +1 -1
  138. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  139. package/lib/dist-custom-elements/duet-list.js +1 -1
  140. package/lib/dist-custom-elements/duet-logo.js +1 -1
  141. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  142. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  143. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  144. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  145. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  146. package/lib/dist-custom-elements/duet-modal.js +7 -7
  147. package/lib/dist-custom-elements/duet-multiselect.js +8 -8
  148. package/lib/dist-custom-elements/duet-nav.js +1 -1
  149. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  150. package/lib/dist-custom-elements/duet-notification.js +2 -2
  151. package/lib/dist-custom-elements/duet-number-input.js +18 -10
  152. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  153. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  154. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  155. package/lib/dist-custom-elements/duet-popup-menu-item.d.ts +11 -0
  156. package/lib/dist-custom-elements/duet-popup-menu-item.js +72 -0
  157. package/lib/dist-custom-elements/duet-popup-menu.d.ts +11 -0
  158. package/lib/dist-custom-elements/duet-popup-menu.js +137 -0
  159. package/lib/dist-custom-elements/duet-progress.js +1 -1
  160. package/lib/dist-custom-elements/duet-promo-card.js +3 -3
  161. package/lib/dist-custom-elements/duet-radio-group.js +6 -6
  162. package/lib/dist-custom-elements/duet-radio.js +6 -5
  163. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  164. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  165. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  166. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  167. package/lib/dist-custom-elements/duet-select.js +1 -1
  168. package/lib/dist-custom-elements/duet-shaped-image.js +5 -4
  169. package/lib/dist-custom-elements/duet-show-more.d.ts +11 -0
  170. package/lib/dist-custom-elements/duet-show-more.js +137 -0
  171. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  172. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  173. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  174. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
  175. package/lib/dist-custom-elements/duet-slideout.js +2 -2
  176. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  177. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  178. package/lib/dist-custom-elements/duet-step.js +4 -4
  179. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  180. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  181. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  182. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  183. package/lib/dist-custom-elements/duet-submenu-bar.js +2 -2
  184. package/lib/dist-custom-elements/duet-tab-group.js +11 -11
  185. package/lib/dist-custom-elements/duet-tab.js +1 -1
  186. package/lib/dist-custom-elements/duet-table.js +1 -1
  187. package/lib/dist-custom-elements/duet-textarea.js +8 -8
  188. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  189. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  190. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  191. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  192. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  193. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  194. package/lib/dist-custom-elements/duet-tray.js +3 -3
  195. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  196. package/lib/dist-custom-elements/duet-upload.js +37 -20
  197. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  198. package/lib/dist-custom-elements/index.js +1 -1
  199. package/lib/dist-custom-elements/{p-7a8d0bb0.js → p-0639a930.js} +1 -1
  200. package/lib/dist-custom-elements/{p-d7b4d591.js → p-06f56040.js} +1 -1
  201. package/lib/dist-custom-elements/{p-3b39da12.js → p-0bab8976.js} +3 -3
  202. package/lib/dist-custom-elements/{p-1344c068.js → p-1460c5f4.js} +1 -1
  203. package/lib/dist-custom-elements/{p-a15eaed8.js → p-362cf634.js} +2 -2
  204. package/lib/dist-custom-elements/{p-4fcae101.js → p-4524a59b.js} +2 -2
  205. package/lib/dist-custom-elements/{p-0e902571.js → p-581d4969.js} +1 -1
  206. package/lib/dist-custom-elements/{p-ceee58b4.js → p-59964344.js} +1 -1
  207. package/lib/dist-custom-elements/{p-8b72e2b2.js → p-8549a5d3.js} +1 -1
  208. package/lib/dist-custom-elements/{p-9db7387e.js → p-87b42dc0.js} +3 -3
  209. package/lib/dist-custom-elements/{p-ddfc5de9.js → p-88a1aa29.js} +1 -1
  210. package/lib/dist-custom-elements/{p-0674039c.js → p-9a39285c.js} +1 -1
  211. package/lib/dist-custom-elements/{p-d9a3be78.js → p-9e321809.js} +1 -1
  212. package/lib/dist-custom-elements/{p-72c5512a.js → p-a76c2c68.js} +6 -6
  213. package/lib/dist-custom-elements/{p-bcf1e39a.js → p-ab8093ce.js} +2 -2
  214. package/lib/dist-custom-elements/{p-28c1f4ec.js → p-abf2f8eb.js} +1 -1
  215. package/lib/dist-custom-elements/{p-628b8684.js → p-b0a1fc7a.js} +1 -1
  216. package/lib/dist-custom-elements/{p-1d986611.js → p-b0e822ad.js} +1 -1
  217. package/lib/dist-custom-elements/{p-75c1e787.js → p-bd3f4de1.js} +1 -1
  218. package/lib/dist-custom-elements/{p-8dd1cf45.js → p-c221f8d5.js} +5 -5
  219. package/lib/dist-custom-elements/{p-2f9bbe4a.js → p-c3a8f22f.js} +1 -1
  220. package/lib/dist-custom-elements/{p-fe45f59f.js → p-c5723f69.js} +1 -1
  221. package/lib/dist-custom-elements/{p-717d775c.js → p-c9cee36a.js} +1 -1
  222. package/lib/dist-custom-elements/{p-351d00f1.js → p-d993c8ca.js} +4 -4
  223. package/lib/dist-custom-elements/{p-633e1ebc.js → p-dade840c.js} +2 -2
  224. package/lib/dist-custom-elements/{p-48515caf.js → p-ddbc4897.js} +5 -5
  225. package/lib/dist-custom-elements/{p-d3213a33.js → p-df10a767.js} +71 -274
  226. package/lib/dist-custom-elements/{p-fdc1ca33.js → p-e550208a.js} +1 -1
  227. package/lib/dist-custom-elements/{p-65758ed5.js → p-e6027c0e.js} +8 -8
  228. package/lib/dist-custom-elements/{p-a46a6322.js → p-f4a36471.js} +1 -1
  229. package/lib/dist-custom-elements/{p-1ac08a92.js → p-f97098ff.js} +1 -1
  230. package/lib/dist-custom-elements/p-fa4af49a.js +278 -0
  231. package/lib/duet/duet.esm.js +1 -1
  232. package/lib/duet/duet.js +1 -1
  233. package/lib/duet/{p-87cf954f.system.entry.js → p-000197bb.system.entry.js} +1 -1
  234. package/lib/duet/p-00c61228.system.entry.js +4 -0
  235. package/lib/duet/{p-01a6becd.system.entry.js → p-02a9b697.system.entry.js} +2 -2
  236. package/lib/duet/{p-4d93a692.entry.js → p-07795672.entry.js} +1 -1
  237. package/lib/duet/{p-82047e57.system.entry.js → p-0b208f94.system.entry.js} +1 -1
  238. package/lib/duet/{p-75f889b4.system.entry.js → p-0b4324b1.system.entry.js} +1 -1
  239. package/lib/duet/p-0c7c6acc.system.entry.js +4 -0
  240. package/lib/duet/{p-631d95f8.system.entry.js → p-0de3b52d.system.entry.js} +1 -1
  241. package/lib/duet/{p-5a229ae7.system.entry.js → p-0f05038e.system.entry.js} +1 -1
  242. package/lib/duet/{p-8c4f1396.system.entry.js → p-0f49469b.system.entry.js} +1 -1
  243. package/lib/duet/{p-8542d6f4.entry.js → p-0fc4fd1f.entry.js} +1 -1
  244. package/lib/duet/p-0fdddc6d.system.entry.js +4 -0
  245. package/lib/duet/{p-16ca0476.entry.js → p-0fe6e2f3.entry.js} +1 -1
  246. package/lib/duet/p-1090bfbd.entry.js +4 -0
  247. package/lib/duet/p-10d47bb3.entry.js +4 -0
  248. package/lib/duet/p-10d57786.entry.js +4 -0
  249. package/lib/duet/{p-2cadaf24.entry.js → p-17569309.entry.js} +1 -1
  250. package/lib/duet/{p-02a26b88.entry.js → p-18084aa4.entry.js} +1 -1
  251. package/lib/duet/{p-89a01897.system.entry.js → p-18b63745.system.entry.js} +1 -1
  252. package/lib/duet/{p-1d0a1fa6.system.entry.js → p-190e7c1f.system.entry.js} +1 -1
  253. package/lib/duet/{p-9be7d929.system.entry.js → p-193d3aaa.system.entry.js} +1 -1
  254. package/lib/duet/p-1983b903.system.entry.js +4 -0
  255. package/lib/duet/p-2271aa12.entry.js +4 -0
  256. package/lib/duet/{p-69617bca.entry.js → p-242c1c1a.entry.js} +1 -1
  257. package/lib/duet/{p-a9ce97b9.system.entry.js → p-26cfed76.system.entry.js} +1 -1
  258. package/lib/duet/p-26fb19cc.entry.js +4 -0
  259. package/lib/duet/{p-5b66a87d.entry.js → p-29dd2b2b.entry.js} +1 -1
  260. package/lib/duet/{p-cda24383.entry.js → p-2a8ca3eb.entry.js} +1 -1
  261. package/lib/duet/{p-7243f2ca.entry.js → p-2ab30c7f.entry.js} +1 -1
  262. package/lib/duet/{p-7f7ae89e.entry.js → p-2f2554c2.entry.js} +1 -1
  263. package/lib/duet/p-31a14896.entry.js +4 -0
  264. package/lib/duet/{p-445317f4.system.entry.js → p-33ace290.system.entry.js} +1 -1
  265. package/lib/duet/{p-5f860b63.entry.js → p-33e8ba00.entry.js} +1 -1
  266. package/lib/duet/{p-19dcac63.entry.js → p-346b440a.entry.js} +1 -1
  267. package/lib/duet/{p-70ab41b1.entry.js → p-369190ba.entry.js} +1 -1
  268. package/lib/duet/{p-ff7274a1.system.entry.js → p-38b225ec.system.entry.js} +1 -1
  269. package/lib/duet/{p-0bb09731.system.entry.js → p-3ae87f9a.system.entry.js} +1 -1
  270. package/lib/duet/p-3aebf88e.entry.js +4 -0
  271. package/lib/duet/p-3d4d7d03.system.entry.js +4 -0
  272. package/lib/duet/{p-3144ba75.entry.js → p-3fe319db.entry.js} +1 -1
  273. package/lib/duet/p-4047730e.entry.js +4 -0
  274. package/lib/duet/p-41993ad4.js +4 -0
  275. package/lib/duet/{p-1c7bdfb0.entry.js → p-42199e80.entry.js} +1 -1
  276. package/lib/duet/p-4489355c.system.entry.js +4 -0
  277. package/lib/duet/{p-c490fc82.entry.js → p-45df6b17.entry.js} +1 -1
  278. package/lib/duet/{p-29a1886d.entry.js → p-476bec1d.entry.js} +1 -1
  279. package/lib/duet/{p-a279383c.entry.js → p-49cbf9cc.entry.js} +1 -1
  280. package/lib/duet/{p-5b939562.entry.js → p-49f5f27e.entry.js} +1 -1
  281. package/lib/duet/p-4f40525e.system.entry.js +4 -0
  282. package/lib/duet/{p-2ab14f9d.entry.js → p-53800205.entry.js} +1 -1
  283. package/lib/duet/{p-3794c025.system.entry.js → p-54607ab5.system.entry.js} +1 -1
  284. package/lib/duet/{p-1354a068.entry.js → p-5514488e.entry.js} +1 -1
  285. package/lib/duet/{p-5369340a.system.entry.js → p-5590d075.system.entry.js} +1 -1
  286. package/lib/duet/p-57ec25ee.entry.js +4 -0
  287. package/lib/duet/p-59570fb7.system.entry.js +4 -0
  288. package/lib/duet/{p-f5e2ac5a.system.entry.js → p-596343b6.system.entry.js} +1 -1
  289. package/lib/duet/{p-8905f9e9.entry.js → p-5c5dd33e.entry.js} +1 -1
  290. package/lib/duet/p-5dfc4e72.entry.js +4 -0
  291. package/lib/duet/{p-b7847f6c.system.entry.js → p-5f9fc349.system.entry.js} +1 -1
  292. package/lib/duet/{p-c60e5e81.entry.js → p-60210fa0.entry.js} +1 -1
  293. package/lib/duet/{p-4b7d3edc.entry.js → p-6059377c.entry.js} +1 -1
  294. package/lib/duet/{p-60f7231d.system.entry.js → p-61dbdf5a.system.entry.js} +1 -1
  295. package/lib/duet/{p-e5d2f039.system.entry.js → p-639c44ed.system.entry.js} +1 -1
  296. package/lib/duet/{p-1c1e78f4.system.entry.js → p-642a879a.system.entry.js} +1 -1
  297. package/lib/duet/{p-0ee1b7f3.entry.js → p-645d04bc.entry.js} +1 -1
  298. package/lib/duet/{p-65beaf78.entry.js → p-65180079.entry.js} +1 -1
  299. package/lib/duet/{p-e2e3b866.system.entry.js → p-659b9600.system.entry.js} +1 -1
  300. package/lib/duet/{p-cb896d18.system.entry.js → p-679721de.system.entry.js} +1 -1
  301. package/lib/duet/{p-3d0cabd0.entry.js → p-67f35157.entry.js} +1 -1
  302. package/lib/duet/{p-5b705989.system.js → p-6dea5bde.system.js} +1 -1
  303. package/lib/duet/{p-85350ba7.system.entry.js → p-6fafabc4.system.entry.js} +1 -1
  304. package/lib/duet/{p-a7ad439b.entry.js → p-6ff2601a.entry.js} +1 -1
  305. package/lib/duet/p-72a8644b.system.entry.js +4 -0
  306. package/lib/duet/{p-b7c8caab.system.entry.js → p-74bf128c.system.entry.js} +1 -1
  307. package/lib/duet/{p-7b3b57b5.system.entry.js → p-7604e184.system.entry.js} +1 -1
  308. package/lib/duet/{p-1c1d9986.system.entry.js → p-76c68d61.system.entry.js} +1 -1
  309. package/lib/duet/{p-009c5ed3.entry.js → p-77432368.entry.js} +1 -1
  310. package/lib/duet/{p-0815f8d2.system.entry.js → p-7b75c66a.system.entry.js} +1 -1
  311. package/lib/duet/{p-8bdf321a.system.entry.js → p-7c81a1aa.system.entry.js} +1 -1
  312. package/lib/duet/{p-ea6b5401.system.entry.js → p-7ce403a2.system.entry.js} +1 -1
  313. package/lib/duet/{p-95e558a0.system.entry.js → p-7fd5d974.system.entry.js} +1 -1
  314. package/lib/duet/{p-1402a469.system.entry.js → p-7fe4bf9c.system.entry.js} +1 -1
  315. package/lib/duet/{p-80fcd4a9.system.entry.js → p-8168ef41.system.entry.js} +2 -2
  316. package/lib/duet/{p-d8266018.system.entry.js → p-8215e341.system.entry.js} +1 -1
  317. package/lib/duet/p-82b5380b.system.js +4 -0
  318. package/lib/duet/p-82ebc3a6.system.entry.js +4 -0
  319. package/lib/duet/{p-61232a45.system.entry.js → p-831c76d5.system.entry.js} +1 -1
  320. package/lib/duet/{p-513794cb.system.entry.js → p-855f2712.system.entry.js} +1 -1
  321. package/lib/duet/{p-eb0c0713.system.entry.js → p-87ea8cd4.system.entry.js} +1 -1
  322. package/lib/duet/{p-2654e699.entry.js → p-8a06964b.entry.js} +1 -1
  323. package/lib/duet/{p-3c237b9a.system.entry.js → p-8d9dc8b8.system.entry.js} +1 -1
  324. package/lib/duet/{p-74571004.entry.js → p-8fc58e21.entry.js} +1 -1
  325. package/lib/duet/{p-73fed2b4.entry.js → p-9277a98e.entry.js} +1 -1
  326. package/lib/duet/{p-594fcb94.entry.js → p-9781cd5a.entry.js} +1 -1
  327. package/lib/duet/{p-7f8d73d1.system.entry.js → p-984be1b2.system.entry.js} +1 -1
  328. package/lib/duet/{p-3bad0565.entry.js → p-9ad4b03e.entry.js} +1 -1
  329. package/lib/duet/{p-221a319e.system.entry.js → p-9b4b6a88.system.entry.js} +1 -1
  330. package/lib/duet/{p-9fe84140.system.entry.js → p-9cec464f.system.entry.js} +1 -1
  331. package/lib/duet/{p-96cfe85e.entry.js → p-a1e03781.entry.js} +1 -1
  332. package/lib/duet/{p-f66ba762.system.entry.js → p-a6f4302f.system.entry.js} +1 -1
  333. package/lib/duet/{p-fbef8044.system.js → p-a7774674.system.js} +1 -1
  334. package/lib/duet/{p-9f7016b8.entry.js → p-a80b6e7d.entry.js} +1 -1
  335. package/lib/duet/{p-e7e2beca.entry.js → p-a9fac1f4.entry.js} +1 -1
  336. package/lib/duet/{p-5eb79fac.system.entry.js → p-aa1c11b3.system.entry.js} +1 -1
  337. package/lib/duet/{p-b5f84ba1.entry.js → p-ab15c9ba.entry.js} +1 -1
  338. package/lib/duet/{p-04e21013.entry.js → p-b6f46697.entry.js} +1 -1
  339. package/lib/duet/{p-73018bd7.entry.js → p-bb3ab94b.entry.js} +1 -1
  340. package/lib/duet/{p-c0151dc7.entry.js → p-bb450fde.entry.js} +1 -1
  341. package/lib/duet/{p-e2a64fc4.js → p-bcb2eb05.js} +1 -1
  342. package/lib/duet/{p-fe826eeb.entry.js → p-bd21ed24.entry.js} +1 -1
  343. package/lib/duet/{p-e8145797.system.entry.js → p-be64cb47.system.entry.js} +1 -1
  344. package/lib/duet/{p-127549bc.system.entry.js → p-bf5e03b7.system.entry.js} +1 -1
  345. package/lib/duet/{p-acfb1306.entry.js → p-c01a1e38.entry.js} +1 -1
  346. package/lib/duet/{p-3ea2c86d.system.entry.js → p-c20f14ee.system.entry.js} +1 -1
  347. package/lib/duet/{p-2d50b598.entry.js → p-c56f6296.entry.js} +1 -1
  348. package/lib/duet/{p-95740985.system.entry.js → p-c591ed98.system.entry.js} +1 -1
  349. package/lib/duet/{p-2f3e497c.system.entry.js → p-c838f35a.system.entry.js} +1 -1
  350. package/lib/duet/{p-7e67d36d.system.entry.js → p-c8af967c.system.entry.js} +1 -1
  351. package/lib/duet/{p-37909c09.system.entry.js → p-cd14aa98.system.entry.js} +1 -1
  352. package/lib/duet/{p-906f44d1.system.entry.js → p-ced270b7.system.entry.js} +1 -1
  353. package/lib/duet/{p-50a7fb1c.entry.js → p-d1308874.entry.js} +1 -1
  354. package/lib/duet/{p-518d1263.entry.js → p-d1fdf904.entry.js} +1 -1
  355. package/lib/duet/{p-665f67ed.entry.js → p-d20bc0fc.entry.js} +1 -1
  356. package/lib/duet/{p-8bba046c.entry.js → p-d309acda.entry.js} +1 -1
  357. package/lib/duet/{p-5fed2b0f.entry.js → p-d707c91d.entry.js} +1 -1
  358. package/lib/duet/{p-388212f3.entry.js → p-d70c1993.entry.js} +1 -1
  359. package/lib/duet/{p-762401f8.entry.js → p-d837c30c.entry.js} +1 -1
  360. package/lib/duet/{p-c0c28ecb.entry.js → p-d90b9d82.entry.js} +1 -1
  361. package/lib/duet/{p-759770b5.system.entry.js → p-d95542b2.system.entry.js} +1 -1
  362. package/lib/duet/{p-8f235d9a.system.entry.js → p-dcb58b72.system.entry.js} +1 -1
  363. package/lib/duet/p-df10a767.js +4 -0
  364. package/lib/duet/{p-3508f30c.system.entry.js → p-e13b266c.system.entry.js} +1 -1
  365. package/lib/duet/{p-b9e1d2e3.system.entry.js → p-e1470177.system.entry.js} +1 -1
  366. package/lib/duet/{p-8c8ab0cd.entry.js → p-e195ff77.entry.js} +1 -1
  367. package/lib/duet/{p-59e1c2ab.entry.js → p-e26c92ae.entry.js} +1 -1
  368. package/lib/duet/{p-249de5f3.entry.js → p-e33b158e.entry.js} +1 -1
  369. package/lib/duet/{p-87415ffd.system.entry.js → p-e3a868e7.system.entry.js} +1 -1
  370. package/lib/duet/{p-724bd42f.system.entry.js → p-e5ff4740.system.entry.js} +1 -1
  371. package/lib/duet/{p-b14ce6d0.system.entry.js → p-e664403b.system.entry.js} +1 -1
  372. package/lib/duet/{p-c13f03ef.entry.js → p-e6701508.entry.js} +1 -1
  373. package/lib/duet/{p-848d80c0.entry.js → p-ea0b3f23.entry.js} +1 -1
  374. package/lib/duet/{p-0786d3a0.entry.js → p-eaf5b796.entry.js} +1 -1
  375. package/lib/duet/{p-59b62cfa.entry.js → p-f01b3bfa.entry.js} +1 -1
  376. package/lib/duet/{p-f2403023.system.entry.js → p-f1bce38a.system.entry.js} +1 -1
  377. package/lib/duet/{p-1d42396a.system.entry.js → p-f3baf86a.system.entry.js} +1 -1
  378. package/lib/duet/{p-53dec0a5.system.entry.js → p-f605a26a.system.entry.js} +1 -1
  379. package/lib/duet/{p-470110fc.entry.js → p-f9191467.entry.js} +1 -1
  380. package/lib/duet/p-f93a2b8c.system.js +4 -0
  381. package/lib/duet/p-fb88df1a.entry.js +4 -0
  382. package/lib/duet/{p-c9460722.system.entry.js → p-fca2f60d.system.entry.js} +1 -1
  383. package/lib/duet/{p-7743b137.entry.js → p-fcc9c563.entry.js} +1 -1
  384. package/lib/duet/{p-1fb0d391.entry.js → p-fce75de7.entry.js} +1 -1
  385. package/lib/duet/{p-4b2e1595.system.entry.js → p-fd760e06.system.entry.js} +1 -1
  386. package/lib/duet/{p-6b1a925a.system.entry.js → p-ff0c5b5b.system.entry.js} +1 -1
  387. package/lib/duet/{p-8511fe95.entry.js → p-ff814fdc.entry.js} +1 -1
  388. package/lib/esm/duet-action-button.entry.js +1 -1
  389. package/lib/esm/duet-alert.entry.js +1 -1
  390. package/lib/esm/duet-badge.entry.js +1 -1
  391. package/lib/esm/duet-banner.entry.js +1 -1
  392. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  393. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  394. package/lib/esm/duet-button_2.entry.js +1 -1
  395. package/lib/esm/duet-callout.entry.js +1 -1
  396. package/lib/esm/duet-caption_4.entry.js +1 -1
  397. package/lib/esm/duet-card.entry.js +1 -1
  398. package/lib/esm/duet-checkbox.entry.js +1 -1
  399. package/lib/esm/duet-checkmark.entry.js +1 -1
  400. package/lib/esm/duet-chip.entry.js +91 -0
  401. package/lib/esm/duet-choice_2.entry.js +24 -11
  402. package/lib/esm/duet-collapsible.entry.js +5 -3
  403. package/lib/esm/duet-combobox.entry.js +1 -1
  404. package/lib/esm/duet-contact-card.entry.js +1 -1
  405. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  406. package/lib/esm/duet-date-picker.entry.js +2 -2
  407. package/lib/esm/duet-divider_2.entry.js +1 -1
  408. package/lib/esm/duet-editable-table_3.entry.js +23 -5
  409. package/lib/esm/duet-empty-state.entry.js +1 -1
  410. package/lib/esm/duet-fieldset.entry.js +1 -1
  411. package/lib/esm/duet-footer.entry.js +1 -1
  412. package/lib/esm/duet-grid_2.entry.js +1 -1
  413. package/lib/esm/duet-header_2.entry.js +1 -1
  414. package/lib/esm/duet-hero.entry.js +1 -1
  415. package/lib/esm/duet-icon.entry.js +1 -1
  416. package/lib/esm/duet-input_2.entry.js +1 -1
  417. package/lib/esm/duet-layout.entry.js +1 -1
  418. package/lib/esm/duet-list_2.entry.js +1 -1
  419. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  420. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  421. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  422. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  423. package/lib/esm/duet-menu-bar.entry.js +1 -1
  424. package/lib/esm/duet-modal.entry.js +2 -2
  425. package/lib/esm/duet-multiselect.entry.js +1 -1
  426. package/lib/esm/duet-nav.entry.js +1 -1
  427. package/lib/esm/duet-notification_2.entry.js +1 -1
  428. package/lib/esm/duet-number-input.entry.js +8 -1
  429. package/lib/esm/duet-page-heading.entry.js +1 -1
  430. package/lib/esm/duet-pagination_2.entry.js +1 -1
  431. package/lib/esm/duet-popup-menu-item.entry.js +39 -0
  432. package/lib/esm/duet-popup-menu.entry.js +105 -0
  433. package/lib/esm/duet-progress.entry.js +1 -1
  434. package/lib/esm/duet-promo-card.entry.js +1 -1
  435. package/lib/esm/duet-radio_2.entry.js +5 -4
  436. package/lib/esm/duet-range-slider.entry.js +1 -1
  437. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  438. package/lib/esm/duet-section-layout.entry.js +1 -1
  439. package/lib/esm/duet-select.entry.js +1 -1
  440. package/lib/esm/duet-shaped-image.entry.js +4 -4
  441. package/lib/esm/duet-show-more.entry.js +91 -0
  442. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  443. package/lib/esm/duet-slideout-link.entry.js +1 -1
  444. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  445. package/lib/esm/duet-slideout-panel.entry.js +2 -2
  446. package/lib/esm/duet-slideout.entry.js +2 -2
  447. package/lib/esm/duet-step_2.entry.js +1 -1
  448. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  449. package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
  450. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  451. package/lib/esm/duet-submenu-bar.entry.js +1 -1
  452. package/lib/esm/duet-textarea.entry.js +1 -1
  453. package/lib/esm/duet-toggle.entry.js +1 -1
  454. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  455. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  456. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  457. package/lib/esm/duet-toolbar.entry.js +1 -1
  458. package/lib/esm/duet-tooltip.entry.js +2 -1172
  459. package/lib/esm/duet-tray.entry.js +1 -1
  460. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  461. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  462. package/lib/esm/duet.js +3 -3
  463. package/lib/esm/floating-ui.dom.esm-37dc174a.js +1245 -0
  464. package/lib/esm/{focus-utils-4c89d596.js → focus-utils-20785530.js} +1 -1
  465. package/lib/esm/{index-b45ea754.js → index-dcb8c495.js} +1 -1
  466. package/lib/esm/loader.js +3 -3
  467. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  468. package/lib/esm-es5/duet-alert.entry.js +1 -1
  469. package/lib/esm-es5/duet-badge.entry.js +1 -1
  470. package/lib/esm-es5/duet-banner.entry.js +1 -1
  471. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  472. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  473. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  474. package/lib/esm-es5/duet-callout.entry.js +1 -1
  475. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  476. package/lib/esm-es5/duet-card.entry.js +1 -1
  477. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  478. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  479. package/lib/esm-es5/duet-chip.entry.js +4 -0
  480. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  481. package/lib/esm-es5/duet-collapsible.entry.js +2 -2
  482. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  483. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  484. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  485. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  486. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  487. package/lib/esm-es5/duet-editable-table_3.entry.js +2 -2
  488. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  489. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  490. package/lib/esm-es5/duet-footer.entry.js +1 -1
  491. package/lib/esm-es5/duet-grid_2.entry.js +2 -2
  492. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  493. package/lib/esm-es5/duet-hero.entry.js +1 -1
  494. package/lib/esm-es5/duet-icon.entry.js +1 -1
  495. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  496. package/lib/esm-es5/duet-layout.entry.js +1 -1
  497. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  498. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  499. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  500. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  501. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  502. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  503. package/lib/esm-es5/duet-modal.entry.js +1 -1
  504. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  505. package/lib/esm-es5/duet-nav.entry.js +1 -1
  506. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  507. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  508. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  509. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  510. package/lib/esm-es5/duet-popup-menu-item.entry.js +4 -0
  511. package/lib/esm-es5/duet-popup-menu.entry.js +4 -0
  512. package/lib/esm-es5/duet-progress.entry.js +1 -1
  513. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  514. package/lib/esm-es5/duet-radio_2.entry.js +2 -2
  515. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  516. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  517. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  518. package/lib/esm-es5/duet-select.entry.js +1 -1
  519. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  520. package/lib/esm-es5/duet-show-more.entry.js +4 -0
  521. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  522. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  523. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  524. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  525. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  526. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  527. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  528. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  529. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  530. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  531. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  532. package/lib/esm-es5/duet-toggle.entry.js +2 -2
  533. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  534. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  535. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  536. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  537. package/lib/esm-es5/duet-tooltip.entry.js +2 -2
  538. package/lib/esm-es5/duet-tray.entry.js +1 -1
  539. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  540. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  541. package/lib/esm-es5/duet.js +1 -1
  542. package/lib/esm-es5/floating-ui.dom.esm-37dc174a.js +4 -0
  543. package/lib/esm-es5/focus-utils-20785530.js +4 -0
  544. package/lib/esm-es5/{index-b45ea754.js → index-dcb8c495.js} +1 -1
  545. package/lib/esm-es5/loader.js +1 -1
  546. package/lib/types/components/duet-chip/duet-chip.d.ts +83 -0
  547. package/lib/types/components/duet-choice/duet-choice.d.ts +7 -0
  548. package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +5 -0
  549. package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +1 -0
  550. package/lib/types/components/duet-number-input/duet-number-input.d.ts +4 -0
  551. package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +67 -0
  552. package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +47 -0
  553. package/lib/types/components/duet-radio/duet-radio.d.ts +4 -0
  554. package/lib/types/components/duet-shaped-image/duet-shaped-image.d.ts +5 -1
  555. package/lib/types/components/duet-show-more/duet-show-more.d.ts +53 -0
  556. package/lib/types/components/duet-upload/duet-upload.d.ts +10 -0
  557. package/lib/types/components/duet-upload/upload-item.d.ts +1 -0
  558. package/lib/types/components.d.ts +370 -0
  559. package/package.json +11 -6
  560. package/lib/duet/p-2ee395b0.entry.js +0 -4
  561. package/lib/duet/p-5b450895.entry.js +0 -4
  562. package/lib/duet/p-68732531.entry.js +0 -4
  563. package/lib/duet/p-68ed4709.entry.js +0 -4
  564. package/lib/duet/p-6b02f893.system.entry.js +0 -4
  565. package/lib/duet/p-84474371.entry.js +0 -4
  566. package/lib/duet/p-9bb6ecf1.system.js +0 -4
  567. package/lib/duet/p-c0d5c4b4.entry.js +0 -4
  568. package/lib/duet/p-c85da6e1.system.entry.js +0 -4
  569. package/lib/duet/p-d5e35912.system.entry.js +0 -4
  570. package/lib/duet/p-e395bef5.system.entry.js +0 -4
  571. package/lib/duet/p-e6b6d7db.system.entry.js +0 -4
  572. package/lib/duet/p-f3f57a5e.entry.js +0 -4
  573. package/lib/duet/p-fbf03833.system.entry.js +0 -4
  574. package/lib/duet/p-fc9bbd16.js +0 -4
  575. package/lib/esm-es5/focus-utils-4c89d596.js +0 -4
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,c as i,h as e,H as o,g as a}from"./p-e2a64fc4.js";import{i as d}from"./p-4ebf1618.js";import{c as r}from"./p-c1325e35.js";import{f as s,w as n}from"./p-12721178.js";const h=class{constructor(e){t(this,e),this.duetChange=i(this,"duetChange",7),this.duetFocus=i(this,"duetFocus",7),this.duetBlur=i(this,"duetBlur",7),this.radioId=r("DuetRadio"),this.onClick=t=>{t.stopPropagation()},this.onChange=t=>{this.checked=t.target.value,this.checked&&!this.blockEvents&&this.duetChange.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-radio"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-radio"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-radio"})},this.accessibleActiveDescendant=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleIndex=void 0,this.margin="auto",this.accessibleControls=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.theme="",this.disabled=!1,this.required=!1,this.blockEvents=!1,this.identifier=void 0,this.label="label",this.name=void 0,this.role=void 0,this.groupDisabled=void 0,this.groupDirection=void 0,this.groupResponsive=void 0,this.checked=void 0,this.value=void 0}componentWillLoad(){d(this),void 0===this.value&&(this.value=this.identifier)}async setFocus(t){this.nativeInput.focus(t)}render(){const t=this.identifier||this.radioId;return e(o,{onClick:this.onClick,class:{horizontal:"horizontal"===this.groupDirection&&!this.groupResponsive,"horizontal-responsive":"horizontal"===this.groupDirection&&this.groupResponsive,"duet-m-0":"none"===this.margin}},e("div",{class:{"duet-radio-container":!0,"duet-theme-turva":"turva"===this.theme}},e("input",{type:"radio",onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,value:this.value,tabindex:this.accessibleIndex,class:{"duet-radio":!0,disabled:this.disabled||this.groupDisabled},checked:this.checked,disabled:this.disabled||this.groupDisabled,required:this.required,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:this.role,name:this.name,id:t,ref:t=>this.nativeInput=t}),e("label",{class:"duet-label",htmlFor:t},e("span",null,this.label))))}get element(){return a(this)}};h.style='*.sc-duet-radio,*.sc-duet-radio::after,*.sc-duet-radio::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-radio-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:28px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-radio-h:last-child,.sc-duet-radio-h:last-of-type{margin-right:0 !important}.vertical.sc-duet-radio-h{margin-right:0 !important}.horizontal.sc-duet-radio-h{margin-bottom:0 !important;width:auto}.horizontal.sc-duet-radio-h .duet-label.sc-duet-radio span.sc-duet-radio{max-width:100%}@media (min-width: 48em){.horizontal-responsive.sc-duet-radio-h{margin-right:28px !important;margin-bottom:0 !important;width:auto}.horizontal-responsive.sc-duet-radio-h:last-child,.horizontal-responsive.sc-duet-radio-h:last-of-type{margin-right:0 !important}.horizontal-responsive.sc-duet-radio-h .duet-label.sc-duet-radio span.sc-duet-radio{max-width:100%}}.duet-m-0.sc-duet-radio-h{margin:0 !important}.sc-duet-radio-h:last-child:not(:only-child){margin-right:0 !important;margin-bottom:0 !important}.duet-label.sc-duet-radio{position:relative;z-index:100;display:flex;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77);word-break:break-word;overflow-wrap:break-word;cursor:pointer;background:transparent}.duet-theme-turva.sc-duet-radio .duet-label.sc-duet-radio{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-label.sc-duet-radio span.sc-duet-radio{flex-grow:1;font-size:1rem}.duet-label-hidden.sc-duet-radio .duet-label.sc-duet-radio{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-radio-container.sc-duet-radio{position:relative;width:100%;height:100%}.duet-radio.sc-duet-radio{padding:14px !important;position:absolute;top:0;left:0;z-index:200;width:100%;height:100%;cursor:pointer;opacity:0}.duet-radio.sc-duet-radio+label.sc-duet-radio::before{z-index:100;flex-shrink:0;width:20px;height:20px;margin:2px 10px 1px 1px;content:"";background:rgb(255, 255, 255);border:1px solid rgb(0, 41, 77);border-radius:50%}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(23, 28, 58)}.duet-radio.sc-duet-radio:focus+label.sc-duet-radio::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio:focus+label.sc-duet-radio::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-radio.sc-duet-radio:checked+label.sc-duet-radio::after{position:absolute;top:6px;left:5px;z-index:200;flex-shrink:0;width:12px;height:12px;content:"";background:rgb(0, 41, 77);border-radius:50%}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(23, 28, 58)}.duet-radio[disabled].sc-duet-radio{cursor:default}.duet-radio[disabled].sc-duet-radio+label.sc-duet-radio{color:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio+label.sc-duet-radio{color:rgb(116, 116, 117)}.duet-radio[disabled].sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(207, 207, 209)}.duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::before{border:1px solid rgb(101, 119, 135)}.duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(116, 116, 117);border-color:rgb(116, 116, 117)}';const u=class{constructor(i){t(this,i),this.onSelect=t=>{const i=t.target;i&&(this.value=i.value),t.cancelBubble=!0},this.direction="vertical",this.margin="auto",this.theme="",this.error="",this.tooltip="",this.tooltipDirection="auto",this.name=void 0,this.label="Label",this.labelHidden=!1,this.caption="",this.responsive=!1,this.value=void 0,this.disabled=void 0}async connectedCallback(){const t=this.element;if(void 0===this.value){const i=s(t,"duet-radio");void 0!==i&&(await i.componentOnReady(),void 0===this.value&&(this.value=i.value))}this.mutationO=n(t,"duet-radio",(t=>{void 0!==t?t.componentOnReady().then((()=>{this.value=t.value})):this.updateRadios()})),this.updateRadios()}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}componentWillLoad(){d(this)}async updateRadios(){const t=Array.from(this.element.querySelectorAll("duet-radio")),{value:i}=this;let e=!1;for(const o of t)o.name=this.name,o.groupDisabled=this.disabled,o.groupDirection=this.direction,o.groupResponsive=this.responsive,e||o.value!==i?o.checked=!1:(e=!0,o.checked=!0);e||(this.value=void 0)}render(){return e(o,{onDuetChange:this.onSelect,class:{horizontal:"horizontal"===this.direction}},e("duet-fieldset",{label:this.label,labelHidden:this.labelHidden,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme},this.tooltip&&e("duet-tooltip",{slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),e("div",{class:{"duet-radio-group":!0,"duet-no-stacking":!this.responsive}},e("slot",null))))}get element(){return a(this)}static get watchers(){return{name:["updateRadios"],value:["updateRadios"],disabled:["updateRadios"],direction:["updateRadios"],responsive:["updateRadios"]}}};u.style="*.sc-duet-radio-group,*.sc-duet-radio-group::after,*.sc-duet-radio-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-radio-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-radio-group-h .duet-radio-group.sc-duet-radio-group{display:block}@media (min-width: 48em){.horizontal.sc-duet-radio-group-h .duet-radio-group.sc-duet-radio-group{display:flex}}.horizontal.sc-duet-radio-group-h .duet-radio-group.duet-no-stacking.sc-duet-radio-group{display:flex}.deut-radio-group.sc-duet-radio-group{width:100%}";export{h as duet_radio,u as duet_radio_group}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{h as t,r as e,c as a,H as i,g as s,F as d}from"./p-e2a64fc4.js";import{i as o}from"./p-4ebf1618.js";import{f as l,d as n}from"./p-0b3f675e.js";import{i as r}from"./p-f077c646.js";import{g as h,c as u,d as b,a as p,s as m}from"./p-076452be.js";import{p as c,s as g}from"./p-fd4785ab.js";import{b as f,a as y}from"./p-a76ceaf6.js";import{c as v}from"./p-c1325e35.js";import{p as x}from"./p-5a9d75e1.js";const w=({data:e,groupId:a,alignment:i})=>{const s=`duet-editable-table duet-editable-table-content-${a}`;return"string"==typeof e?t("td",{innerHTML:e,class:s,part:`${a}content`,style:{verticalAlign:i}}):t("td",{class:s,part:`${a}content`,style:{verticalAlign:i}},e)},k=class{constructor(t){e(this,t),this.duetTableToggle=a(this,"duetTableToggle",7),this.duetMenuClick=a(this,"duetMenuClick",7),this.hasHeadSlotFirst=!1,this.hasHeadSlotLast=!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:a,direction:i,index:s,key:d}=t;this.duetTableToggle.emit({sort_order:a,index:s,direction:i,key:d,component:"duet-editable-table",originalEvent:e})},this.handleKeyDown=(t,e)=>{r(e)&&this.toggleColumn(t,e)},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}componentWillLoad(){o(this),this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']"),this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']")}connectedCallback(){u(this)}disconnectedCallback(){b(this)}createLabel(e){const{sort_order:a,direction:i,index:s,label:d}=e,o=p(d);return this.sortable?t("span",{class:"duet-table-label","data-index":s},t("duet-button",{size:"small",icon:a&&1===i?"action-arrow-down-small":a&&-1===i?"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(l(["index"]))}getRowSortOrder(){return[...this.columns].sort(l(["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 a=this.createLabel(e);return""!==a?t("th",{scope:"col"},a):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,a){if(this.actions)return t("td",{class:"duet-text-right"},this.actions.map((i=>t("duet-action-button",{actionMeta:Object.assign({},(null==e?void 0:e.meta)||{},{index:a}),actionId:(null==e?void 0:e.uid)||(null==e?void 0:e.id)||null,actionName:i.name,theme:this.theme,iconName:i.icon,iconColor:i.color,iconSize:i.size,background:i.background,"accessible-label":`${e.actionDescription||""} ${p(i.label)} `}))))}renderTableBody(){const e=this.getSortedColumns(),a=this.getRowSortOrder();return[...this.rows].sort(l(a)).map(((a,i)=>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(a.meta)},e.map((e=>{if(!1!==e.display)return t(w,{data:a[e.key]?a[e.key]:a.item,groupId:this.groupId})})),this.actions&&this.renderActions(a,i))))}render(){return t(i,{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",{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",{role:this.accessibleRole},t("caption",null,t("slot",{name:"tcaption"})),t("thead",null,this.hasHeadSlotFirst&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-last"})))),t("tbody",null,this.renderTableBody()),t("tfoot",null,t("tr",null,t("th",{class:"duet-editable-table-footer-menu",colSpan:99},t("slot",{name:"tfoot"})))))))}get element(){return s(this)}};k.style=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";const z={none:0,"with-links":16*parseFloat(c),"without-links":16*parseFloat(g)},T=class{constructor(t){e(this,t),this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)",this.handleMediaQueryChange=t=>{this.matchesBreakpoint=f.includes(this.breakpoint)?!t.matches:t.matches},this.matchesBreakpoint=!0,this.language=h(),this.theme=void 0,this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.hideHeadVisually=!1}watchLanguageStateHandler(t,e){t!==e&&setTimeout((()=>this.copyHeadingsToCells()),50)}connectedCallback(){this.mq=matchMedia("none"===this.breakpoint||"none-scrollable"===this.breakpoint?"all":y[this.breakpoint]),this.mq.addEventListener("change",n(this.handleMediaQueryChange,50)),this.handleMediaQueryChange(this.mq),this.observer=new MutationObserver((()=>n(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=z[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,b(this)}copyHeadingsToCells(){const t=this.element.querySelectorAll(this.headingSelector),e=this.element.querySelectorAll("tbody tr"),a=Array.from(t).map((t=>t.textContent.trim()));e.forEach((t=>{t.querySelectorAll("td").forEach(((t,e)=>{a[e]&&(t.dataset.heading=a[e])}))}))}render(){return t(i,{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",null))}get element(){return s(this)}static get watchers(){return{language:["watchLanguageStateHandler"]}}};T.style='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{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;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(0, 41, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}duet-table.duet-theme-turva th{color:rgb(116, 116, 117)}duet-table tbody th{font-weight:600;color:rgb(0, 41, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}.duet-table-flattened td[data-heading]::before{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(0, 41, 77);content:attr(data-heading)}.duet-table-flattened.duet-theme-turva td[data-heading]::before{color:rgb(23, 28, 58)}.duet-table-sticky thead th{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th{border-bottom-color:rgb(228, 228, 230)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(0, 80, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(0, 80, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(228, 228, 230)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(228, 228, 230)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th{padding:16px !important;border-bottom:1px solid rgb(101, 119, 135)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th{border-bottom-color:rgb(68, 68, 69)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(225, 227, 230)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(228, 228, 230)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(225, 227, 230)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(228, 228, 230)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(228, 228, 230)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;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%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(68, 68, 69, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}';const L=[{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-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."}}],M=(t,e)=>{let a={type:void 0,system_message:void 0,message:void 0};return a=(e=x(e)).filter((e=>e.type==t))[0],a||(a=e.filter((t=>"default"===t.type))[0]),a},S=(t,e)=>{const a=M(t,e),i=p(a.message);return""!==i&&i?i:a.system_message},E={fi:"Tiedosto latautuu",sv:"Filen laddas upp",en:"File is uploading"},j=({data:e,showLinks:a,type:i,actions:s,errorCodes:d,theme:o,label:l,categoryLabel:n,showCategory:r})=>{const{uid:h,item:u,size:b,uploaded:m,url:c,meta:g,progress:f,error:y}=e,{name:v}=u,x=t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),v),w=t("span",{class:"duet-upload-item-size",style:{fontSize:"14px",fontWeight:"400"}},"(",((t,e=2)=>{if(0===t)return"0 Bytes";const a=e<0?0:e,i=Math.floor(Math.log(t)/Math.log(1024));return parseFloat((t/Math.pow(1024,i)).toFixed(a))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]})(b),")"),k=g&&g.badges?t("span",null,g.badges.map((e=>t("duet-badge",{color:"primary"},e)))):void 0,z=`${g&&g.badges?g.badges.join(","):""} ${v}`;return t("div",{class:{"upload-item-row":!0}},r&&t("div",{class:"item-categories"},t("duet-heading",{class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},p(n)),k),t("div",{class:{"item-name":!0,"no-category":!r}},!!l&&t("duet-heading",{class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},p(l)),(()=>{switch(i){case"inprogress":return t("span",{class:"duet-upload-item-name",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"gray-darker",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),v),t("duet-visually-hidden",null,t("duet-paragraph",null,p(E))),t("duet-progress",{progress:Math.ceil(f),"aria-hidden":!0}));case"pending":return t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),v);case"failure":return t("span",{class:"duet-upload-item-error",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"danger",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),v),t("duet-paragraph",{class:"duet-upload-item-error-label",size:"small",margin:"none",color:"danger"},S(y.type,d)));default:return t("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},m&&c&&a?t("duet-link",{url:c,external:!0},x):x,t("duet-spacer",{size:"xx-small",direction:"horizontal"}),w)}})()),t("div",{class:"item-actions"},s.map((e=>t("duet-action-button",{actionMeta:Object.assign({},g||{}),actionId:h||null,actionName:e.name,theme:o,iconName:e.icon,iconColor:e.color,iconSize:e.size,background:e.background,"accessible-label":`${z} ${p(e.label)} `,accessibleTitle:!1})))))},F=({label:e,categoryLabel:a})=>t("div",{class:"items-header"},a&&t("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none"},p(a)),t("duet-heading",{class:{"filename-header":!0,"no-category":!a},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none"},p(e))),C=(t,e,a)=>{const{allowedMimetypes:i,allowedExtensions:s,maxBytes:d}=e;let o=!1,l=M("default",a);if(t){const{name:e,type:n,size:r}=t,h=((t,e)=>{if(!e||!t)return!0;const a=e.split(",");let i=!1;return a.forEach((e=>{const a=e.split("/"),s=t.split("/");a[0]!==s[0]||a[1]!==s[1]&&"*"!==a[1]||(i=!0)})),i})(n,i),u="all"===s||""===s||" "===s||void 0===s||((t,e)=>{if(!e)return!0;const a=t.split(".");return e.split(",").includes(a[a.length-1])})(e.toLowerCase(),s),b=((t,e)=>!e||!t||e>=t)(r,d);h||(l=M("duet-upload-101",a)),u||(l=M("duet-upload-100",a)),b||(l=M("duet-upload-201",a)),o=h&&u&&b}else o=!1;return{valid:o,errorMessage:o?void 0:p(l.message),errorSystem:o?void 0:l.system_message,errorType:o?void 0:l.type}},$=({payload:t,options:e,onFailure:a,onSuccess:i,onProgress:s})=>{const{type:d="POST",xhr:o,uri:l,argument:n=null,headers:r=null}=e;o.open(d,`${l}${n||""}`,!0);const{data:h,name:u}=t;return r&&Object.keys(r).forEach((t=>{o.setRequestHeader(t,r[t])})),"POST"===d&&(o.onreadystatechange=()=>{o.readyState===XMLHttpRequest.DONE&&o.status>=200&&o.status<300&&i(o,u,o.status),o.readyState===XMLHttpRequest.DONE&&o.status>=300&&o.status<999&&a(o,u,o.status)},s(u)),o.send(h),o},D=class{constructor(i){e(this,i),this.duetChange=a(this,"duetChange",3),this.duetBlur=a(this,"duetBlur",7),this.duetFocus=a(this,"duetFocus",7),this.duetReady=a(this,"duetReady",7),this.duetDone=a(this,"duetDone",3),this.duetState=a(this,"duetState",3),this.duetDelete=a(this,"duetDelete",3),this.duetCancel=a(this,"duetCancel",3),this.duetProgress=a(this,"duetProgress",3),this.duetUpload=a(this,"duetUpload",3),this.buttonId=v("DuetButton"),this.labelId=v("DuetLabel"),this.uploadId=v("DuetUpload"),this.filesInProgress=new Map,this.fileMaxReached=!1,this.bytesMaxReached=!1,this.filesToUploadExceedsLimit=!1,this.internalStatusMessageLabel=void 0,this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"},this.kick=n((()=>{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:a,id:i,originalEvent:s}=e;switch(a){case"delete":this.onDelete(i,s);break;case"cancel":this.onCancel(i,s)}}))},this.verifyValidity=()=>{const{invalid:t,valid:e}=this.getFilesAsArray(),a=this.valid;this.valid=0===t.length&&0!==e.length,this.valid!==a&&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,a,i)=>a===this.DefaultGroups.success?t(j,{theme:this.theme,actions:this.getActions(a),type:"success",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:i}):a===this.DefaultGroups.inprogress?t(j,{theme:this.theme,actions:this.getActions(a),type:"inprogress",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:i}):a===this.DefaultGroups.pending?t(j,{theme:this.theme,actions:this.getActions(a),type:"pending",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:i}):a===this.DefaultGroups.failure?t(j,{theme:this.theme,actions:this.getActions(a),type:"failure",data:e,showLinks:this.showLinks,errorCodes:this.errorCodes,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:i}):e.group?e.html:"none",this.genHashName=()=>Date.now().toString(36)+Math.random(),this.updateValueInMap=(t,e,a,i=!0)=>{try{const i=this.files.get(t);i[e]=a,this.files.set(t,i),this.external&&"url"!==e&&this.trackProgress(t,"uploaded"===e)}catch(s){}i&&this.kick()},this.updateProgress=(t,e)=>{t.lengthComputable?(a=>{this.updateValueInMap(e,"progress",a),this.onProgress(e,a,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((a=>{a.valid&&!a.deleted?t.push(a):a.valid||a.deleted||e.push(a)})),{valid:t,invalid:e}},this.resetFormFields=()=>{this.nativeInput.value=""},this.startUpload=async(t,e)=>{const{bytesMaxReached:a,fileMaxReached:i}=this.validateTotals();a||i?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,a)=>{this.updateValueInMap(e,"status",a,!1),this.updateValueInMap(e,"uploaded",!0,!1);try{const a=JSON.parse(t.response);this.updateValueInMap(e,"url",a.url)}catch(i){this.updateValueInMap(e,"url",null),console.error("Server did not respond with expected response {url: string}")}},this.transferDoneWithFailure=(t,e,a)=>{try{const{error:a}=JSON.parse(t.response);this.updateValueInMap(e,"error",{message:a.message,type:a.type},!1)}catch(i){console.error("Server did not respond with expected response error:{message: string, type: int}"),this.updateValueInMap(e,"error",{type:a},!1)}this.updateValueInMap(e,"valid",!1,!0)},this.transferFailed=t=>{this.updateValueInMap(t,"error",S("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 a=0;return!!(e&&(this.files.forEach((t=>{t.valid&&t.size&&(a+=t.size)})),a>=e))})(0,this.maxBytesTotal),a=((t,e)=>{let a=0;return!!(e&&(this.files.forEach((t=>{t.valid&&a++})),a>=e))})(0,this.maxFiles);return e&&t&&this.updateValueInMap(t,"error",S("duet-upload-202",this.errorCodes),!1),a&&t&&this.updateValueInMap(t,"error",S("duet-upload-301",this.errorCodes),!1),this.bytesMaxReached=e,this.fileMaxReached=a,{bytesMaxReached:e,fileMaxReached:a}},this.uploadFile=async(t,e=!1,a)=>{!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),a&&e.append("key",a),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(i){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,a]of Array.from(this.files.entries()))if(a.uid===t)return{value:a,key:e};return null},this.handleExternalUploadButton=(t,e)=>{this.externalUploadButton&&(this.externalUploadButton.disabled=!(!t&&!e))},this.onDelete=(t,e)=>{const a=this.getItemFromUID(t).key,i=this.files.get(a);this.files.delete(a);const{bytesMaxReached:s,fileMaxReached:d}=this.validateTotals();this.handleExternalUploadButton(s,d),this.kick(),this.duetDelete.emit({originalEvent:e,data:{deletion:i},component:"duet-upload"}),this.external||i.pending||this.makeXHRDeleteRequest(i),this.resetFormFields()},this.onCancel=(t,e)=>{const a=this.getItemFromUID(t).key,i=this.files.get(a);this.files.delete(a);const{bytesMaxReached:s,fileMaxReached:d}=this.validateTotals();if(this.handleExternalUploadButton(s,d),!this.external){const{xhr:t}=i;t&&t.abort()}this.kick(),this.resetFormFields(),this.duetCancel.emit({originalEvent:e,data:{cancelled:i},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,a)=>{this.duetChange.emit({originalEvent:a,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=[],a=[],i=[],s=[];let d=!1;return t.forEach((t=>{const o=this.getGroupFromItemData(t);t.meta&&t.meta.badges&&(d=!0),o===this.DefaultGroups.success?s.push({uid:t.uid,data:t}):o===this.DefaultGroups.inprogress?e.push({uid:t.uid,data:t}):o===this.DefaultGroups.pending?i.push({uid:t.uid,data:t}):o===this.DefaultGroups.failure?a.push({uid:t.uid,data:t}):t.group&&e.push({uid:t.uid,data:t})})),{pending:i,failure:a,success:s,inprogress:e,hasCategory:d}},this.getActions=t=>this.actions.filter((e=>e.map.includes(t))),this.renderUploadedItems=()=>{const e=this.filterMap(),a=e.hasCategory,i=this.groups.map((i=>{const s=e[i.id];if(null==s?void 0:s.length)return t(d,null,!this.hideGroups&&t(F,{categoryLabel:a?this.categoryLabel:void 0,label:i.label}),s.map((t=>this.mapFilesToUploadItems(t.data,i.id,a))))}));return t(d,null,this.showUploadedItemsHeader&&t(F,{categoryLabel:a?this.categoryLabel:void 0,label:this.uploadedItemsHeaderLabel}),i)},this.tick=Date.now(),this.accessibleActiveDescendant=void 0,this.accessibleDescribedBy=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,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.uri=void 0,this.showLinks=!1,this.caption=void 0,this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded} lähetettävästä {filesTotal} tiedostosta",inProgressWithErrors:"Lähetetään {filesInProgress} tiedostoa, lähetetty {filesUploaded} lähetettävästä {filesTotal} tiedostosta, {filesWithErrors} tiedostossa on virheitä",done:"Kaikki {filesTotal} tiedostoa lähetetty onnistuneesti",doneWithErrors:"Lataus valmis, {filesUploaded} tiedostoa ladattu onnistuneesti, {filesWithErrors} tiedostossa oli virheitä",files:"tiedostot",file:"tiedosto"},sv:{inProgress:"Adding {filesUploaded} of {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Alla {filesTotal} har lagts till",doneWithErrors:"Handling slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Adding {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"All {filesTotal} added successfully",doneWithErrors:"Action completed, {filesUploaded} has been added successfully, {filesWithErrors} had errors",files:"File",file:"file"}},this.statusMessageLabel=p(this.statusLabelDefaults),this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"},this.buttonLabel=p(this.buttonLabelDefaults),this.accessibleButtonLabel=void 0,this.theme="",this.disabled=!1,this.identifier=void 0,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=p(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=p(this.descriptionDefaults),this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."},this.fileListEmpty=p(this.fileListEmptyDefaults),this.error="",this.errorCodes=L,this.name=void 0,this.maxBytes=2e8,this.maxBytesTotal=void 0,this.maxFiles=99,this.allowedExtensions="all",this.allowedMimetypes="*",this.multiple=!0,this.limitSelection=!1,this.value=void 0,this.externalUploadButtonId=void 0,this.captionOnBottom=!1,this.showUploadedItemsHeader=!1,this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"},this.hideHeader=!1,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"}}]}watchValidHandler(t,e){t!==e&&this.kick()}componentWillLoad(){this.internalStatusMessageLabel="string"==typeof this.statusMessageLabel?m(this.groups):this.statusMessageLabel,o(this),this.listenForActionEvents(),this.onReady(),this.externalUploadButton=document.querySelector(`#${this.externalUploadButtonId}`)}componentWillRender(){this.verifyValidity()}async setFocus(t){this.nativeInput&&this.nativeInput.focus(t)}async upload(t){const{bytesMaxReached:e,fileMaxReached:a}=this.validateTotals();if(e||a)return this.handleExternalUploadButton(e,a),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,a){this.updateValueInMap(t,e,a)}render(){const e=this.identifier||this.uploadId,a=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024),s=Math.round(this.maxBytes/1024/1024);let o=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());return o=o.replace(/{maxbytes}/g,`${s.toString()} MB`),o=o.replace(/{maxbytestotal}/g,`${a.toString()} MB`),o=o.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", ")),this.externalUploadButton&&(this.externalUploadButton.ariaLabel=o),t(i,{class:{"duet-m-0":"none"===this.margin}},t("duet-fieldset",{"label-hidden":this.hideHeader,label:this.label,caption:this.captionOnBottom?void 0:o},t("slot",{name:"header"}),!this.files.size&&t("duet-empty-state",{id:this.labelId,part:this.identifier?`${this.identifier}-empty-state`:"duet-upload-empty-state",icon:"messaging-attachment"},t("duet-paragraph",{margin:"none"},this.fileListEmpty)),!!this.files.size&&t("slot",{name:"fileheader"}),!!this.files.size&&t("duet-upload-aria-status",{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",{name:"filefooter"}),t("slot",{name:"uploadfooter"}),this.captionOnBottom&&t("duet-caption",{margin:"none",size:"small"},t("div",{class:"upload-bottom-caption"},o)),t("slot",{name:"afterfooter"}),!this.hideButton&&t(d,null,t("duet-spacer",{size:"large"}),t("duet-button",{id:this.buttonId,onClick:this.startUpload,"accessible-controls":e,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel,"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)&&t(d,null,t("duet-spacer",{size:"medium"}),t("duet-alert",{part:this.identifier?`${this.identifier}-error-notification`:"duet-upload-error-notification"},this.fileMaxReached&&S("duet-upload-301",this.errorCodes),this.bytesMaxReached&&S("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&S("duet-upload-302",this.errorCodes))),t("duet-visually-hidden",{"aria-hidden":"true"},t("input",{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,a=t.get("name");e.upload.addEventListener("progress",(t=>{this.updateProgress(t,a)})),e.upload.addEventListener("load",(()=>{this.transferComplete(a)})),e.upload.addEventListener("error",(()=>{this.transferFailed(a)})),e.upload.addEventListener("abort",(()=>{this.transferCanceled(a)}));let i={payload:{data:t,name:a},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&&(i=this.middleware(i)),$(i)}makeXHRDeleteRequest(t){const{uid:e,item:a}=t,i=new XMLHttpRequest;let s={payload:{data:null,name},options:{type:"DELETE",xhr:i,uri:this.uri,argument:`?key=${e}&name=${a.name}`,headers:{"x-fileuid":e,"x-filename":a.name}},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(s=this.middleware(s)),$(s)}async onChange(t){var e;const a=Array.from(null===(e=this.nativeInput)||void 0===e?void 0:e.files);if(this.filesToUploadExceedsLimit=!1,this.files.size+a.length>this.maxFiles)return this.filesToUploadExceedsLimit=!0,void this.kick();if(a)for(const i of a){const{valid:t,errorMessage:e,errorType:a,errorSystem:s}=C(i,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),d={uid:this.genHashName(),item:i,size:i.size,meta:this.metaData,uploaded:!1,valid:t,error:{type:t?void 0:a,message:t?void 0:e,system_message:t?void 0:s},progress:0,deleted:!1,xhr:!1,url:!1};this.files.set(i.name,d),t&&!this.external?await this.uploadFile(d):t&&this.external?(this.updateValueInMap(d.item.name,"pending",!0,!1),this.updateValueInMap(d.item.name,"group","pending",!0)):t||this.updateValueInMap(i.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 s(this)}static get watchers(){return{valid:["watchValidHandler"]}}};D.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::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;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.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(225, 227, 230)}@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{k as duet_editable_table,T as duet_table,D as duet_upload}
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,o){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,a){function n(e){try{s(o.next(e))}catch(t){a(t)}}function d(e){try{s(o["throw"](e))}catch(t){a(t)}}function s(e){e.done?i(e.value):r(e.value).then(n,d)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,r,a,n;return n={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function d(e){return function(t){return s([e,t])}}function s(d){if(o)throw new TypeError("Generator is already executing.");while(n&&(n=0,d[0]&&(i=0)),i)try{if(o=1,r&&(a=d[0]&2?r["return"]:d[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,d[1])).done)return a;if(r=0,a)d=[d[0]&2,a.value];switch(d[0]){case 0:case 1:a=d;break;case 4:i.label++;return{value:d[1],done:false};case 5:i.label++;r=d[1];d=[0];continue;case 7:d=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){i.label=d[1];break}if(d[0]===6&&i.label<a[1]){i.label=a[1];a=d;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(d);break}if(a[2])i.ops.pop();i.trys.pop();continue}d=t.call(e,i)}catch(s){d=[6,s];r=0}finally{o=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-fbef8044.system.js","./p-33b3aba4.system.js","./p-5f6bd5db.system.js","./p-eb55ccd2.system.js"],(function(e){"use strict";var t,i,o,r,a,n,d,s,u;return{setters:[function(e){t=e.r;i=e.c;o=e.h;r=e.H;a=e.g},function(e){n=e.i},function(e){d=e.c},function(e){s=e.f;u=e.w}],execute:function(){var c='*.sc-duet-radio,*.sc-duet-radio::after,*.sc-duet-radio::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-radio-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:28px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-radio-h:last-child,.sc-duet-radio-h:last-of-type{margin-right:0 !important}.vertical.sc-duet-radio-h{margin-right:0 !important}.horizontal.sc-duet-radio-h{margin-bottom:0 !important;width:auto}.horizontal.sc-duet-radio-h .duet-label.sc-duet-radio span.sc-duet-radio{max-width:100%}@media (min-width: 48em){.horizontal-responsive.sc-duet-radio-h{margin-right:28px !important;margin-bottom:0 !important;width:auto}.horizontal-responsive.sc-duet-radio-h:last-child,.horizontal-responsive.sc-duet-radio-h:last-of-type{margin-right:0 !important}.horizontal-responsive.sc-duet-radio-h .duet-label.sc-duet-radio span.sc-duet-radio{max-width:100%}}.duet-m-0.sc-duet-radio-h{margin:0 !important}.sc-duet-radio-h:last-child:not(:only-child){margin-right:0 !important;margin-bottom:0 !important}.duet-label.sc-duet-radio{position:relative;z-index:100;display:flex;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77);word-break:break-word;overflow-wrap:break-word;cursor:pointer;background:transparent}.duet-theme-turva.sc-duet-radio .duet-label.sc-duet-radio{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-label.sc-duet-radio span.sc-duet-radio{flex-grow:1;font-size:1rem}.duet-label-hidden.sc-duet-radio .duet-label.sc-duet-radio{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-radio-container.sc-duet-radio{position:relative;width:100%;height:100%}.duet-radio.sc-duet-radio{padding:14px !important;position:absolute;top:0;left:0;z-index:200;width:100%;height:100%;cursor:pointer;opacity:0}.duet-radio.sc-duet-radio+label.sc-duet-radio::before{z-index:100;flex-shrink:0;width:20px;height:20px;margin:2px 10px 1px 1px;content:"";background:rgb(255, 255, 255);border:1px solid rgb(0, 41, 77);border-radius:50%}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(23, 28, 58)}.duet-radio.sc-duet-radio:focus+label.sc-duet-radio::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio:focus+label.sc-duet-radio::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-radio.sc-duet-radio:checked+label.sc-duet-radio::after{position:absolute;top:6px;left:5px;z-index:200;flex-shrink:0;width:12px;height:12px;content:"";background:rgb(0, 41, 77);border-radius:50%}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(23, 28, 58)}.duet-radio[disabled].sc-duet-radio{cursor:default}.duet-radio[disabled].sc-duet-radio+label.sc-duet-radio{color:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio+label.sc-duet-radio{color:rgb(116, 116, 117)}.duet-radio[disabled].sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(207, 207, 209)}.duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::before{border:1px solid rgb(101, 119, 135)}.duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(116, 116, 117);border-color:rgb(116, 116, 117)}';var l=e("duet_radio",function(){function e(e){var o=this;t(this,e);this.duetChange=i(this,"duetChange",7);this.duetFocus=i(this,"duetFocus",7);this.duetBlur=i(this,"duetBlur",7);this.radioId=d("DuetRadio");this.onClick=function(e){e.stopPropagation()};this.onChange=function(e){o.checked=e.target.value;if(o.checked&&!o.blockEvents){o.duetChange.emit({originalEvent:e,checked:o.checked,value:o.value,component:"duet-radio"})}};this.onBlur=function(e){o.duetBlur.emit({originalEvent:e,checked:o.checked,value:o.value,component:"duet-radio"})};this.onFocus=function(e){o.duetFocus.emit({originalEvent:e,checked:o.checked,value:o.value,component:"duet-radio"})};this.accessibleActiveDescendant=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleIndex=undefined;this.margin="auto";this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.theme="";this.disabled=false;this.required=false;this.blockEvents=false;this.identifier=undefined;this.label="label";this.name=undefined;this.role=undefined;this.groupDisabled=undefined;this.groupDirection=undefined;this.groupResponsive=undefined;this.checked=undefined;this.value=undefined}e.prototype.componentWillLoad=function(){n(this);if(this.value===undefined){this.value=this.identifier}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.nativeInput.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.identifier||this.radioId;return o(r,{onClick:this.onClick,class:{horizontal:this.groupDirection==="horizontal"&&!this.groupResponsive,"horizontal-responsive":this.groupDirection==="horizontal"&&this.groupResponsive,"duet-m-0":this.margin==="none"}},o("div",{class:{"duet-radio-container":true,"duet-theme-turva":this.theme==="turva"}},o("input",{type:"radio",onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,value:this.value,tabindex:this.accessibleIndex,class:{"duet-radio":true,disabled:this.disabled||this.groupDisabled},checked:this.checked,disabled:this.disabled||this.groupDisabled,required:this.required,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:this.role,name:this.name,id:t,ref:function(t){return e.nativeInput=t}}),o("label",{class:"duet-label",htmlFor:t},o("span",null,this.label))))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());l.style=c;var h="*.sc-duet-radio-group,*.sc-duet-radio-group::after,*.sc-duet-radio-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-radio-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-radio-group-h .duet-radio-group.sc-duet-radio-group{display:block}@media (min-width: 48em){.horizontal.sc-duet-radio-group-h .duet-radio-group.sc-duet-radio-group{display:flex}}.horizontal.sc-duet-radio-group-h .duet-radio-group.duet-no-stacking.sc-duet-radio-group{display:flex}.deut-radio-group.sc-duet-radio-group{width:100%}";var p=e("duet_radio_group",function(){function e(e){var i=this;t(this,e);this.onSelect=function(e){var t=e.target;if(t){i.value=t.value}e.cancelBubble=true};this.direction="vertical";this.margin="auto";this.theme="";this.error="";this.tooltip="";this.tooltipDirection="auto";this.name=undefined;this.label="Label";this.labelHidden=false;this.caption="";this.responsive=false;this.value=undefined;this.disabled=undefined}e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var i=this;return __generator(this,(function(o){switch(o.label){case 0:e=this.element;if(!(this.value===undefined))return[3,2];t=s(e,"duet-radio");if(!(t!==undefined))return[3,2];return[4,t.componentOnReady()];case 1:o.sent();if(this.value===undefined){this.value=t.value}o.label=2;case 2:this.mutationO=u(e,"duet-radio",(function(e){if(e!==undefined){e.componentOnReady().then((function(){i.value=e.value}))}else{i.updateRadios()}}));this.updateRadios();return[2]}}))}))};e.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}};e.prototype.componentWillLoad=function(){n(this)};e.prototype.updateRadios=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,o,r,a;return __generator(this,(function(n){e=Array.from(this.element.querySelectorAll("duet-radio"));t=this.value;i=false;for(o=0,r=e;o<r.length;o++){a=r[o];a.name=this.name;a.groupDisabled=this.disabled;a.groupDirection=this.direction;a.groupResponsive=this.responsive;if(!i&&a.value===t){i=true;a.checked=true}else{a.checked=false}}if(!i){this.value=undefined}return[2]}))}))};e.prototype.render=function(){return o(r,{onDuetChange:this.onSelect,class:{horizontal:this.direction==="horizontal"}},o("duet-fieldset",{label:this.label,labelHidden:this.labelHidden,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme},this.tooltip&&o("duet-tooltip",{slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),o("div",{class:{"duet-radio-group":true,"duet-no-stacking":!this.responsive}},o("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{name:["updateRadios"],value:["updateRadios"],disabled:["updateRadios"],direction:["updateRadios"],responsive:["updateRadios"]}},enumerable:false,configurable:true});return e}());p.style=h}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,h as e,H as o,g as i}from"./p-e2a64fc4.js";import{m as n,a as r}from"./p-b519ac77.js";import{i as a}from"./p-4ebf1618.js";import{c as s}from"./p-c1325e35.js";import{g as l,a as c,c as u,d as p}from"./p-076452be.js";import"./p-5a9d75e1.js";function d(t){return t.split("-")[1]}function h(t){return"y"===t?"height":"width"}function f(t){return t.split("-")[0]}function b(t){return["top","bottom"].includes(f(t))?"x":"y"}function m(t,e,o){let{reference:i,floating:n}=t;const r=i.x+i.width/2-n.width/2,a=i.y+i.height/2-n.height/2,s=b(e),l=h(s),c=i[l]/2-n[l]/2,u="x"===s;let p;switch(f(e)){case"top":p={x:r,y:i.y-n.height};break;case"bottom":p={x:r,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:a};break;case"left":p={x:i.x-n.width,y:a};break;default:p={x:i.x,y:i.y}}switch(d(e)){case"start":p[s]-=c*(o&&u?-1:1);break;case"end":p[s]+=c*(o&&u?-1:1)}return p}function g(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function x(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function w(t,e){var o;void 0===e&&(e={});const{x:i,y:n,platform:r,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:d=!1,padding:h=0}=e,f=g(h),b=s[d?"floating"===p?"reference":"floating":p],m=x(await r.getClippingRect({element:null==(o=await(null==r.isElement?void 0:r.isElement(b)))||o?b:b.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),w="floating"===p?{...a.floating,x:i,y:n}:a.reference,y=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),v=await(null==r.isElement?void 0:r.isElement(y))&&await(null==r.getScale?void 0:r.getScale(y))||{x:1,y:1},k=x(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:w,offsetParent:y,strategy:l}):w);return{top:(m.top-k.top+f.top)/v.y,bottom:(k.bottom-m.bottom+f.bottom)/v.y,left:(m.left-k.left+f.left)/v.x,right:(k.right-m.right+f.right)/v.x}}const y=Math.min,v=Math.max;function k(t,e,o){return v(t,y(e,o))}const S=t=>({name:"arrow",options:t,async fn(e){const{element:o,padding:i=0}=t||{},{x:n,y:r,placement:a,rects:s,platform:l,elements:c}=e;if(null==o)return{};const u=g(i),p={x:n,y:r},f=b(a),m=h(f),x=await l.getDimensions(o),w="y"===f,y=w?"top":"left",v=w?"bottom":"right",S=w?"clientHeight":"clientWidth",C=s.reference[m]+s.reference[f]-p[f]-s.floating[m],j=p[f]-s.reference[f],A=await(null==l.getOffsetParent?void 0:l.getOffsetParent(o));let z=A?A[S]:0;z&&await(null==l.isElement?void 0:l.isElement(A))||(z=c.floating[S]||s.floating[m]);const R=u[y],I=z-x[m]-u[v],U=z/2-x[m]/2+(C/2-j/2),T=k(R,U,I),D=null!=d(a)&&U!=T&&s.reference[m]/2-(U<R?u[y]:u[v])-x[m]/2<0;return{[f]:p[f]-(D?U<R?R-U:I-U:0),data:{[f]:T,centerOffset:U-T}}}}),C={left:"right",right:"left",bottom:"top",top:"bottom"};function j(t){return t.replace(/left|right|bottom|top/g,(t=>C[t]))}const A={start:"end",end:"start"};function z(t){return t.replace(/start|end/g,(t=>A[t]))}const R=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o;const{placement:i,middlewareData:n,rects:r,initialPlacement:a,platform:s,elements:l}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:x=!0,...y}=t,v=f(i),k=f(a)===a,S=await(null==s.isRTL?void 0:s.isRTL(l.floating)),C=p||(k||!x?[j(a)]:function(t){const e=j(t);return[z(t),e,z(e)]}(a));p||"none"===g||C.push(...function(t,e,o,i){const n=d(t);let r=function(t,e,o){const i=["left","right"],n=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return o?e?n:i:e?i:n;case"left":case"right":return e?r:a;default:return[]}}(f(t),"start"===o,i);return n&&(r=r.map((t=>t+"-"+n)),e&&(r=r.concat(r.map(z)))),r}(a,x,g,S));const A=[a,...C],R=await w(e,y),I=[];let U=(null==(o=n.flip)?void 0:o.overflows)||[];if(c&&I.push(R[v]),u){const{main:t,cross:e}=function(t,e,o){void 0===o&&(o=!1);const i=d(t),n=b(t),r=h(n);let a="x"===n?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=j(a)),{main:a,cross:j(a)}}(i,r,S);I.push(R[t],R[e])}if(U=[...U,{placement:i,overflows:I}],!I.every((t=>t<=0))){var T,D;const t=((null==(T=n.flip)?void 0:T.index)||0)+1,e=A[t];if(e)return{data:{index:t,overflows:U},reset:{placement:e}};let o=null==(D=U.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:D.placement;if(!o)switch(m){case"bestFit":{var E;const t=null==(E=U.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:E[0];t&&(o=t);break}case"initialPlacement":o=a}if(i!==o)return{reset:{placement:o}}}return{}}}};function I(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function U(t){return I(t).getComputedStyle(t)}function T(t){return t instanceof I(t).Node}function D(t){return T(t)?(t.nodeName||"").toLowerCase():""}function E(t){return t instanceof I(t).HTMLElement}function F(t){return t instanceof I(t).Element}function B(t){return"undefined"!=typeof ShadowRoot&&(t instanceof I(t).ShadowRoot||t instanceof ShadowRoot)}function M(t){const{overflow:e,overflowX:o,overflowY:i,display:n}=U(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function L(t){return["table","td","th"].includes(D(t))}function H(t){const e=P(),o=U(t);return"none"!==o.transform||"none"!==o.perspective||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function P(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function $(t){return["html","body","#document"].includes(D(t))}const N=Math.min,O=Math.max,W=Math.round;function V(t){const e=U(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const n=E(t),r=n?t.offsetWidth:o,a=n?t.offsetHeight:i,s=W(o)!==r||W(i)!==a;return s&&(o=r,i=a),{width:o,height:i,fallback:s}}function X(t){return F(t)?t:t.contextElement}const Y={x:1,y:1};function _(t){const e=X(t);if(!E(e))return Y;const o=e.getBoundingClientRect(),{width:i,height:n,fallback:r}=V(e);let a=(r?W(o.width):o.width)/i,s=(r?W(o.height):o.height)/n;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const K={x:0,y:0};function q(t,e,o){var i,n;if(void 0===e&&(e=!0),!P())return K;const r=t?I(t):window;return!o||e&&o!==r?K:{x:(null==(i=r.visualViewport)?void 0:i.offsetLeft)||0,y:(null==(n=r.visualViewport)?void 0:n.offsetTop)||0}}function G(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const n=t.getBoundingClientRect(),r=X(t);let a=Y;e&&(i?F(i)&&(a=_(i)):a=_(t));const s=q(r,o,i);let l=(n.left+s.x)/a.x,c=(n.top+s.y)/a.y,u=n.width/a.x,p=n.height/a.y;if(r){const t=I(r),e=i&&F(i)?I(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=_(o),e=o.getBoundingClientRect(),i=getComputedStyle(o);e.x+=(o.clientLeft+parseFloat(i.paddingLeft))*t.x,e.y+=(o.clientTop+parseFloat(i.paddingTop))*t.y,l*=t.x,c*=t.y,u*=t.x,p*=t.y,l+=e.x,c+=e.y,o=I(o).frameElement}}return x({width:u,height:p,x:l,y:c})}function J(t){return((T(t)?t.ownerDocument:t.document)||window.document).documentElement}function Q(t){return F(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Z(t){return G(J(t)).left+Q(t).scrollLeft}function tt(t){if("html"===D(t))return t;const e=t.assignedSlot||t.parentNode||B(t)&&t.host||J(t);return B(e)?e.host:e}function et(t){const e=tt(t);return $(e)?e.ownerDocument.body:E(e)&&M(e)?e:et(e)}function ot(t,e){var o;void 0===e&&(e=[]);const i=et(t),n=i===(null==(o=t.ownerDocument)?void 0:o.body),r=I(i);return n?e.concat(r,r.visualViewport||[],M(i)?i:[]):e.concat(i,ot(i))}function it(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=I(t),i=J(t),n=o.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(n){r=n.width,a=n.height;const t=P();(!t||t&&"fixed"===e)&&(s=n.offsetLeft,l=n.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=J(t),o=Q(t),i=t.ownerDocument.body,n=O(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=O(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+Z(t);const s=-o.scrollTop;return"rtl"===U(i).direction&&(a+=O(e.clientWidth,i.clientWidth)-n),{width:n,height:r,x:a,y:s}}(J(t));else if(F(e))i=function(t,e){const o=G(t,!0,"fixed"===e),i=o.top+t.clientTop,n=o.left+t.clientLeft,r=E(t)?_(t):{x:1,y:1};return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:n*r.x,y:i*r.y}}(e,o);else{const o=q(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return x(i)}function nt(t,e){const o=tt(t);return!(o===e||!F(o)||$(o))&&("fixed"===U(o).position||nt(o,e))}function rt(t,e){return E(t)&&"fixed"!==U(t).position?e?e(t):t.offsetParent:null}function at(t,e){const o=I(t);if(!E(t))return o;let i=rt(t,e);for(;i&&L(i)&&"static"===U(i).position;)i=rt(i,e);return i&&("html"===D(i)||"body"===D(i)&&"static"===U(i).position&&!H(i))?o:i||function(t){let e=tt(t);for(;E(e)&&!$(e);){if(H(e))return e;e=tt(e)}return null}(t)||o}function st(t,e,o){const i=E(e),n=J(e),r="fixed"===o,a=G(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(i||!i&&!r)if(("body"!==D(e)||M(n))&&(s=Q(e)),E(e)){const t=G(e,!0,r,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else n&&(l.x=Z(n));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}const lt={getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t;const r=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=ot(t).filter((t=>F(t)&&"body"!==D(t))),n=null;const r="fixed"===U(t).position;let a=r?tt(t):t;for(;F(a)&&!$(a);){const e=U(a),o=H(a);o||"fixed"!==e.position||(n=null),(r?!o&&!n:!o&&"static"===e.position&&n&&["absolute","fixed"].includes(n.position)||M(a)&&!o&&nt(t,a))?i=i.filter((t=>t!==a)):n=e,a=tt(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=r.reduce(((t,o)=>{const i=it(e,o,n);return t.top=O(i.top,t.top),t.right=N(i.right,t.right),t.bottom=N(i.bottom,t.bottom),t.left=O(i.left,t.left),t}),it(e,r[0],n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const n=E(o),r=J(o);if(o===r)return e;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((n||!n&&"fixed"!==i)&&(("body"!==D(o)||M(r))&&(a=Q(o)),E(o))){const t=G(o);s=_(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},isElement:F,getDimensions:function(t){return V(t)},getOffsetParent:at,getDocumentElement:J,getScale:_,async getElementRects(t){let{reference:e,floating:o,strategy:i}=t;const n=this.getOffsetParent||at,r=this.getDimensions;return{reference:st(e,await n(o),i),floating:{x:0,y:0,...await r(o)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===U(t).direction},ct=class{constructor(e){t(this,e),this.mql=[window.matchMedia(n.replace(/'/g,"")),window.matchMedia(r.replace(/'/g,""))],this.tooltipId=s("DuetTooltip"),this.openTooltip=()=>{this.focusTarget="tooltip",this.active=!0},this.closeTooltip=(t=!1)=>{t&&(this.focusTarget="trigger"),this.active=!1},this.toggleOpen=()=>{this.active?this.closeTooltip():this.openTooltip()},this.handleFocusOut=t=>{if(!this.active)return;const e=t.relatedTarget;null==e||this.element.shadowRoot.contains(e)||this.element.contains(e)||this.closeTooltip()},this.handleKeyDown=t=>{(27===t.keyCode||t.target===this.scrollableEl&&t.shiftKey&&9===t.keyCode)&&this.closeTooltip(!0)},this.handleCloseClick=()=>{this.closeTooltip(!0)},this.updatePlacement=async()=>{var t,e;let o=!0;("large"!==this.breakpoint||this.mql[1].matches)&&("medium"!==this.breakpoint||this.mql[0].matches)||(o=!1);let i=o?"top-start":"top-end";"left"===this.direction?i="top-end":"right"===this.direction&&(i="top-start");const n=await((t,e,o)=>{const i=new Map,n={platform:lt,...o},r={...n.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:a}=o,s=r.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:p}=m(c,i,l),d=i,h={},f=0;for(let b=0;b<s.length;b++){const{name:o,fn:r}=s[b],{x:g,y:x,data:w,reset:y}=await r({x:u,y:p,initialPlacement:i,placement:d,strategy:n,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});u=null!=g?g:u,p=null!=x?x:p,h={...h,[o]:{...h[o],...w}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(d=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:t,floating:e,strategy:n}):y.rects),({x:u,y:p}=m(c,d,l))),b=-1)}return{x:u,y:p,placement:d,strategy:n,middlewareData:h}})(t,e,{...n,platform:r})})(this.buttonEl,this.tooltipEl,{placement:i,middleware:[R(),(r={padding:5},void 0===r&&(r={}),{name:"shift",options:r,async fn(t){const{x:e,y:o,placement:i}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=r,c={x:e,y:o},u=await w(t,l),p=b(f(i)),d="x"===p?"y":"x";let h=c[p],m=c[d];n&&(h=k(h+u["y"===p?"top":"left"],h,h-u["y"===p?"bottom":"right"])),a&&(m=k(m+u["y"===d?"top":"left"],m,m-u["y"===d?"bottom":"right"]));const g=s.fn({...t,[p]:h,[d]:m});return{...g,data:{x:g.x-e,y:g.y-o}}}}),S({element:this.arrowEl})]});var r;this.tooltipY=n.y,this.tooltipX=n.x,this.placement=n.placement,this.arrowY=null===(t=n.middlewareData.arrow)||void 0===t?void 0:t.y,this.arrowX=null===(e=n.middlewareData.arrow)||void 0===e?void 0:e.x},this.placement="bottom",this.tooltipY=void 0,this.tooltipX=void 0,this.arrowX=void 0,this.arrowY=void 0,this.theme="",this.language=l(),this.accessibleLabelDefault={fi:"Näytä lisätietoja",en:"Show more information",sv:"Visa mer tilläggsuppgifter"},this.accessibleLabel=c(this.accessibleLabelDefault,this.language),this.accessibleInputLabel=void 0,this.accessibleCloseLabelDefault={fi:"Sulje lisätiedot",en:"Close details",sv:"Stäng tilläggsuppgifter"},this.accessibleCloseLabel=c(this.accessibleCloseLabelDefault,this.language),this.label="",this.breakpoint="medium",this.direction="auto",this.positionVertical="0",this.positionHorizontal="0",this.active=!1}watchLanguageStateHandler(t,e){t!==e&&this.accessibleLabel===this.accessibleLabelDefault[e]&&(this.accessibleLabel=c(this.accessibleLabelDefault,t)),t!==e&&this.accessibleCloseLabel===this.accessibleCloseLabelDefault[e]&&(this.accessibleCloseLabel=c(this.accessibleCloseLabelDefault,t))}componentWillLoad(){a(this)}componentDidLoad(){this.updatePlacement()}componentDidUpdate(){switch(this.focusTarget){case"tooltip":this.scrollableEl.focus({preventScroll:!0});break;case"trigger":this.buttonEl.focus({preventScroll:!0})}this.focusTarget=null}connectedCallback(){u(this)}disconnectedCallback(){p(this)}onScroll(){clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout((()=>{this.active&&this.updatePlacement()}),100)}handleWindowResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((()=>{this.updatePlacement()}),100)}handleDocumentClick(t){this.active&&t.composedPath().every((t=>t!==this.element))&&this.closeTooltip()}async handleActiveChange(t){t?this.updatePlacement():setTimeout((()=>this.updatePlacement()),300)}render(){const t={top:`${this.tooltipY}px`,left:`${this.tooltipX}px`,display:"block"},i={top:this.arrowY?`${this.arrowY}px`:void 0,left:this.arrowX?`${this.arrowX}px`:void 0};return e(o,{style:{transform:`translateY(${this.positionVertical}) translateX(${this.positionHorizontal})`,zIndex:this.active?"201":""}},e("button",{ref:t=>this.buttonEl=t,"aria-controls":this.tooltipId,"aria-expanded":this.active?"true":"false",onClick:this.toggleOpen,type:"button",class:{"duet-tooltip-button":!0,"duet-tooltip-button-has-label":!!this.label,"duet-theme-turva":"turva"===this.theme}},e("svg",{"aria-hidden":"true",role:"img",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"m13.5 17.25c-1.241 0-2.25-1.009-2.25-2.25v-3.75h-.75c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h.75c.827 0 1.5.673 1.5 1.5v3.75c0 .414.336.75.75.75h.75c.414 0 .75.336.75.75s-.336.75-.75.75z"}),e("circle",{cx:"11.625",cy:"7.125",r:"1.125"}),e("path",{d:"m12 24c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5z"})),this.label?e("span",{class:"duet-tooltip-label"},this.label):e("duet-visually-hidden",null,this.accessibleInputLabel?`${this.accessibleInputLabel}, ${this.accessibleLabel}`:this.accessibleLabel)),e("div",{ref:t=>this.tooltipEl=t,style:t,class:{"duet-tooltip":!0,"duet-theme-turva":"turva"===this.theme,"duet-tooltip-has-label":!!this.label,"duet-tooltip-active":!0===this.active},onClick:t=>t.stopPropagation(),onKeyDown:this.handleKeyDown,onFocusout:this.handleFocusOut},e("div",{ref:t=>this.scrollableEl=t,class:"duet-tooltip-scrollable",tabindex:"0",id:this.tooltipId},e("slot",null)),e("div",{ref:t=>this.arrowEl=t,class:{arrow:!0,[this.placement]:!0},style:i},e("div",{class:{"arrow-container":!0,[this.placement]:!0}})),e("button",{type:"button",class:"duet-tooltip-close",onClick:this.handleCloseClick},e("duet-icon",{name:"navigation-close-small",margin:"none",color:"currentColor",size:"xxx-small"}),e("duet-visually-hidden",null,this.accessibleCloseLabel))))}get element(){return i(this)}static get watchers(){return{language:["watchLanguageStateHandler"],active:["handleActiveChange"]}}};ct.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;z-index:200;display:inline-flex;width:auto;margin-top:-16px !important;margin-left:-3px !important;-webkit-tap-highlight-color:transparent}.duet-tooltip{position:absolute;z-index:950;display:none;width:282px;min-height:48px;max-height:340px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 41, 77);visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-radius:4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.07);opacity:0;transition:300ms ease;transform-origin:100% 100%}.duet-tooltip.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(228, 228, 230);box-shadow:0 2px 10px 0 rgba(117, 117, 117, 0.13)}.duet-tooltip .arrow{position:absolute;width:22px;height:22px;pointer-events:none}.duet-tooltip .arrow.bottom,.duet-tooltip .arrow.bottom-start,.duet-tooltip .arrow.bottom-end{top:-21px}.duet-tooltip .arrow-container{position:relative;width:100%;height:100%;pointer-events:none}.duet-tooltip .arrow-container::after{position:absolute;z-index:200;width:0;height:0;pointer-events:none;content:""}.duet-tooltip .arrow-container::before{position:absolute;z-index:100;width:0;height:0;pointer-events:none;content:""}.duet-tooltip .arrow-container.top::after,.duet-tooltip .arrow-container.top-start::after,.duet-tooltip .arrow-container.top-end::after{bottom:2px;left:2px;border:10px solid transparent;border-top:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.top::before,.duet-tooltip .arrow-container.top-start::before,.duet-tooltip .arrow-container.top-end::before{bottom:-1px;left:1px;border:11px solid transparent;border-top:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip .arrow-container.top::before,.duet-theme-turva .duet-tooltip .arrow-container.top-start::before,.duet-theme-turva .duet-tooltip .arrow-container.top-end::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip .arrow-container.bottom::after,.duet-tooltip .arrow-container.bottom-start::after,.duet-tooltip .arrow-container.bottom-end::after{bottom:1px;left:2px;border:10px solid transparent;border-bottom:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.bottom::before,.duet-tooltip .arrow-container.bottom-start::before,.duet-tooltip .arrow-container.bottom-end::before{bottom:1px;left:1px;border:11px solid transparent;border-bottom:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip .arrow-container.bottom::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-start::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-end::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip.duet-tooltip-has-label{right:auto !important;left:0;width:282px !important;transform-origin:0 0 !important}.duet-tooltip.duet-tooltip-active{visibility:visible;opacity:1;transition-property:transform, opacity}.duet-tooltip-button{z-index:100;display:inline-block;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 !important;margin-right:-12px;line-height:normal !important;color:rgb(0, 119, 179);white-space:nowrap;cursor:pointer;background:transparent !important;border-radius:4px}.duet-tooltip-button.duet-theme-turva{color:rgb(198, 12, 48)}.duet-tooltip-button:hover{color:rgb(0, 77, 128)}.duet-tooltip-button:hover.duet-theme-turva{color:rgb(148, 9, 37)}.duet-tooltip-button:focus{background:transparent !important;outline:0}:host(.user-is-tabbing) .duet-tooltip-button:focus{background:transparent !important;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important}:host(.user-is-tabbing) .duet-tooltip-button.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important}.duet-tooltip-button svg{width:20px;height:20px;pointer-events:none}.duet-tooltip-button-has-label{margin-right:0}.duet-tooltip-scrollable{padding:20px !important;width:100%;max-height:250px;padding-right:25px !important;overflow-y:auto;-webkit-hyphens:auto;hyphens:auto;border-radius:4px;-webkit-overflow-scrolling:touch}.duet-tooltip-scrollable:focus{outline:none}:host(.user-is-tabbing) .duet-tooltip-scrollable:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-theme-turva .duet-tooltip-scrollable:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-tooltip-scrollable::-webkit-scrollbar{width:4px}.duet-tooltip-scrollable::-webkit-scrollbar-track{border-radius:4px}.duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(225, 227, 230);border-radius:4px}.duet-theme-turva .duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(228, 228, 230)}.duet-tooltip-label{position:relative;z-index:100;display:inline-block;max-width:calc(100% - 30px);margin-left:12px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.25;text-align:left;white-space:normal;vertical-align:top}.duet-theme-turva .duet-tooltip-label{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-tooltip-close{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:17px;height:17px;min-height:0 !important;padding:0 !important;margin:0 !important;line-height:normal;color:rgb(0, 41, 77);cursor:pointer;background:rgb(245, 248, 250);border-radius:50%;-webkit-appearance:none;appearance:none}.duet-tooltip-close:focus{outline:none;box-shadow:0 0 0 2px rgb(0, 119, 179)}.duet-theme-turva .duet-tooltip-close:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px rgb(23, 28, 58)}';export{ct as duet_tooltip}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- System.register(["./p-fbef8044.system.js","./p-21f3a17a.system.js"],(function(e,s){"use strict";var a,l,c,i,t,n,o;return{setters:[function(s){a=s.d;l=s.N;c=s.w;i=s.p;t=s.a;n=s.b;e("setNonce",s.s)},function(e){o=e.g}],execute:function(){function e(e){var s,a,l;return(l=(a=(s=e.head)===null||s===void 0?void 0:s.querySelector('meta[name="csp-nonce"]'))===null||a===void 0?void 0:a.getAttribute("content"))!==null&&l!==void 0?l:undefined}var b=function(e){return"__sc_import_".concat(e.replace(/\s|-/g,"_"))};var d=function(){var e=Array.from(a.querySelectorAll("script")).find((function(e){return new RegExp("/".concat(l,"(\\.esm)?\\.js($|\\?|#)")).test(e.src)||e.getAttribute("data-stencil-namespace")===l}));var t=(e||{})["data-opts"]||{};if("onbeforeload"in e&&!history.scrollRestoration){return{then:function(){}}}{t.resourcesUrl=new URL(".",new URL(e.getAttribute("data-resources-url")||e.src,c.location.href)).href;{r(t.resourcesUrl,e)}if(!c.customElements){return s.import("./p-6cf44bfa.system.js").then((function(){return t}))}}return i(t)};var r=function(s,i){var n=b(l);try{c[n]=new Function("w","return import(w);//".concat(Math.random()))}catch(d){var o=new Map;c[n]=function(l){var b;var d=new URL(l,s).href;var r=o.get(d);if(!r){var u=a.createElement("script");u.type="module";u.crossOrigin=i.crossOrigin;u.src=URL.createObjectURL(new Blob(["import * as m from '".concat(d,"'; window.").concat(n,".m = m;")],{type:"application/javascript"}));var p=(b=t.$nonce$)!==null&&b!==void 0?b:e(a);if(p!=null){u.setAttribute("nonce",p)}r=new Promise((function(e){u.onload=function(){e(c[n].m);u.remove()}}));o.set(d,r);a.head.appendChild(u)}return r}}};d().then((function(e){o();return n(JSON.parse('[["p-c9460722.system",[[1,"duet-icon",{"theme":[1025],"icon":[1],"src":[1],"name":[1],"margin":[1],"responsive":[4],"color":[513],"background":[1],"backgroundOpacity":[2,"background-opacity"],"backgroundRotation":[2,"background-rotation"],"size":[1],"outline":[1],"shape":[1],"svgContent":[32]}]]],["p-80fcd4a9.system",[[17,"duet-link",{"variation":[1],"accessibleLabel":[1,"accessible-label"],"language":[1537],"accessibleLabelExternalDefaults":[1,"accessible-label-external-default"],"accessibleLabelExternal":[1025,"accessible-label-external"],"identifier":[1],"theme":[1025],"url":[513],"external":[4],"tabToLink":[4,"tab-to-link"],"icon":[1],"padding":[1],"setFocus":[64]}],[1,"duet-heading",{"level":[513],"margin":[1],"visualLevel":[1,"visual-level"],"border":[8],"weight":[1],"color":[1],"theme":[1025],"hyphenate":[4]}],[1,"duet-paragraph",{"theme":[1025],"margin":[1],"size":[1],"weight":[1],"variation":[1],"color":[1]}],[1,"duet-caption",{"theme":[1025],"margin":[1],"selected":[4],"size":[1]}]]],["p-e395bef5.system",[[6,"duet-choice-group",{"direction":[1],"margin":[1],"theme":[1025],"error":[1],"name":[1],"label":[1],"labelHidden":[4,"label-hidden"],"caption":[1],"tooltip":[1],"tooltipDirection":[1,"tooltip-direction"],"responsive":[4],"breakpoint":[1],"value":[1537],"disabled":[4]}],[6,"duet-choice",{"theme":[1025],"label":[1],"accessibleLabelInfoButtonDefaults":[1,"accessible-label-info-default"],"accessibleLabelInfoButton":[1025,"accessible-label-info-button"],"accessibleActiveDescendant":[1,"accessible-active-descendant"],"accessibleControls":[1,"accessible-controls"],"accessibleOwns":[1,"accessible-owns"],"accessibleDescribedBy":[1,"accessible-described-by"],"accessibleDetails":[1,"accessible-details"],"accessibleLabelledBy":[1,"accessible-labelled-by"],"accessibleDescription":[1,"accessible-description"],"caption":[1],"value":[1537],"type":[513],"name":[1],"checked":[1540],"collapsible":[4],"margin":[1],"icon":[1],"expand":[4],"padding":[1],"identifier":[1],"groupDirection":[1,"group-direction"],"groupDisabled":[4,"group-disabled"],"groupResponsive":[4,"group-responsive"],"disabled":[516],"required":[4],"infoLabelDefaults":[1,"accessible-label-info-default"],"infoLabel":[1025,"info-label"],"isHovering":[32],"isInfoOpen":[32],"isBlurred":[32],"language":[32],"setFocus":[64],"toggleInfoMethod":[64]},[[2,"blur","handleHostBlur"],[2,"keydown","handleHostKeyDown"],[2,"keyup","handleHostKeyUp"]]]]],["p-2f3e497c.system",[[1,"duet-pagination",{"theme":[1025],"jumpString":[1,"jump-string"],"variation":[1],"accessibleDescribedBy":[1,"accessible-described-by"],"accessibleDetails":[1,"accessible-details"],"accessibleLabelledBy":[1,"accessible-labelled-by"],"accessibleDescription":[1,"accessible-description"],"accessibleLabelsDefaults":[16],"accessibleLabels":[1040],"take":[2],"visibleItems":[2,"visible-items"],"total":[2],"ariaControls":[1,"accessible-controls"],"current":[1026],"numbersStore":[32],"totalPages":[32],"internalSectionIndex":[32],"language":[32]}],[1,"duet-range-stepper",{"theme":[1025],"stepIndex":[1026,"step-index"],"stepSize":[2,"step-size"],"total":[2],"ariaLabelsDefaults":[16],"ariaLabels":[1040],"ariaControls":[1,"accessible-controls"],"language":[32]}]]],["p-906f44d1.system",[[2,"duet-date-picker",{"theme":[1025],"expand":[4],"name":[1],"identifier":[1],"label":[1],"caption":[1],"margin":[1],"language":[1537],"placeholderDefaults":[1,"placeholder-default"],"placeholder":[1025],"echoPlaceholder":[1540,"echo-placeholder"],"disabled":[516],"error":[1],"labelHidden":[4,"label-hidden"],"role":[1],"accessibleActiveDescendant":[1,"accessible-active-descendant"],"accessibleControls":[1,"accessible-controls"],"accessibleOwns":[1,"accessible-owns"],"accessibleDescribedBy":[1,"accessible-described-by"],"required":[4],"direction":[1],"tooltip":[1],"tooltipDirection":[1,"tooltip-direction"],"value":[1537],"min":[1],"max":[1],"incrementYears":[2,"increment"],"validity":[1040],"open":[32],"focusedDay":[32],"inputValue":[32],"setFocus":[64],"show":[64],"hide":[64]},[[4,"click","handleDocumentClick"]]]]],["p-61232a45.system",[[1,"duet-hero",{"theme":[1025],"heading":[1],"preHeading":[1,"pre-heading"],"level":[1],"subHeadingLevel":[1,"sub-heading-level"],"description":[1],"icon":[1],"iconSize":[1,"icon-size"],"iconRight":[4,"icon-right"],"categoryIcon":[1,"category-icon"],"categoryIconColor":[1,"category-icon-color"],"buttonLabel":[1,"button-label"],"language":[1025],"accessibleLabelExternalDefaults":[1,"accessible-label-external-default"],"accessibleLabelExternal":[1025,"accessible-label-external"],"buttonUrl":[1,"button-url"],"buttonId":[1,"button-id"],"buttonData":[16],"textCenter":[4,"text-center"],"leftAlign":[4,"left-align"],"image":[1],"variation":[1],"back":[8],"listItems":[8,"list-items"],"actions":[8],"layout":[1025],"processedListItems":[32],"processedActions":[32],"processedBack":[32]}]]],["p-ff7274a1.system",[[2,"duet-number-input",{"language":[1025],"locale":[1],"unit":[1],"accessibleActiveDescendant":[1,"accessible-active-descendant"],"accessibleControls":[1,"accessible-controls"],"accessibleDetails":[1,"accessible-details"],"accessibleLabelledBy":[1,"accessible-labelled-by"],"accessibleDescription":[1,"accessible-description"],"accessibleOwns":[1,"accessible-owns"],"accessibleDescribedBy":[1,"accessible-described-by"],"accessibleLiveDefaults":[1,"accessible-live-default"],"accessibleLive":[1,"accessible-live"],"accessibleLiveEnabled":[4,"accessible-live-enabled"],"accessibleAddDefaults":[1,"accessible-add-default"],"accessibleAdd":[1,"accessible-add"],"accessibleSubtractDefaults":[1,"accessible-subtract-defaults"],"accessibleSubtract":[1,"accessible-subtract"],"theme":[1025],"margin":[1],"expand":[4],"identifier":[1],"min":[2],"labelDefaults":[1,"label-default"],"label":[1],"labelHidden":[4,"label-hidden"],"max":[2],"name":[1],"error":[1],"tooltip":[1],"step":[2],"rounding":[4],"role":[1],"disabled":[516],"required":[4],"value":[1025],"focusedValue":[32],"setFocus":[64]}]]],["p-53dec0a5.system",[[1,"duet-contact-card",{"theme":[1025],"margin":[1],"image":[1025],"name":[1025],"description":[1025],"email":[1025],"phone":[1025],"buttonText":[1025,"button-text"],"buttonIcon":[1025,"button-icon"],"buttonUrl":[1025,"button-url"],"language":[32]}]]],["p-4b2e1595.system",[[1,"duet-multiselect",{"margin":[1],"error":[1],"accessibleLiveError":[1,"accessible-live-error"],"expand":[4],"value":[1040],"theme":[1025],"labelHidden":[4,"label-hidden"],"identifier":[1],"placeholder":[1],"caption":[1],"items":[1],"disabled":[516],"label":[1],"accessibleDescribedBy":[1,"accessible-described-by"],"tooltip":[1],"tooltipDirection":[1,"tooltip-direction"],"processedItems":[32],"checkboxesVisible":[32],"activeDescendant":[32],"language":[32],"setFocus":[64]},[[8,"click","handleFocus"]]]]],["p-b7847f6c.system",[[2,"duet-textarea",{"margin":[1],"accessibleActiveDescendant":[1,"accessible-active-descendant"],"accessibleAutocomplete":[1,"accessible-autocomplete"],"accessibleControls":[1,"accessible-controls"],"accessibleDetails":[1,"accessible-details"],"accessibleLabelledBy":[1,"accessible-labelled-by"],"accessibleDescription":[1,"accessible-description"],"accessibleLiveError":[1,"accessible-live-error"],"accessibleOwns":[1,"accessible-owns"],"accessibleDescribedBy":[1,"accessible-described-by"],"theme":[1025],"expand":[4],"disabled":[516],"identifier":[1],"required":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"placeholder":[1],"caption":[1],"echoPlaceholder":[4,"echo-placeholder"],"maxlength":[2],"minlength":[2],"error":[1],"role":[1],"tooltip":[1],"tooltipDirection":[1,"tooltip-direction"],"value":[1025],"disallowPattern":[1,"disallow-pattern"],"counter":[4],"counterLabel":[1,"counter-label"],"setFocus":[64]}]]],["p-e2e3b866.system",[[1,"duet-modal",{"language":[1537],"accessibleCloseLabelDefaults":[1,"accessible-close-label-default"],"accessibleCloseLabel":[1025,"accessible-close-label"],"size":[1],"accessibleDescribedBy":[1,"accessible-described-by"],"accessibleLabelledBy":[1,"accessible-labelled-by"],"accessibleLabel":[1,"accessible-label"],"accessibleDetails":[1,"accessible-details"],"accessibleDescription":[1,"accessible-description"],"gutterSize":[1,"gutter-size"],"theme":[1025],"heading":[1],"headingLevel":[1,"heading-level"],"headingVisualLevel":[1,"heading-visual-level"],"icon":[1],"color":[1],"active":[1540],"closeOnBlur":[1028,"close-on-blur"],"open":[32],"show":[64],"hide":[64]},[[8,"keyup","handleKeyUp"]]]]],["p-6b02f893.system",[[6,"duet-radio-group",{"direction":[1],"margin":[1],"theme":[1025],"error":[1],"tooltip":[1],"tooltipDirection":[1,"tooltip-direction"],"name":[1],"label":[1],"labelHidden":[4,"label-hidden"],"caption":[1],"responsive":[4],"value":[1537],"disabled":[4]}],[2,"duet-radio",{"accessibleActiveDescendant":[1,"accessible-active-descendant"],"accessibleDetails":[1,"accessible-details"],"accessibleLabelledBy":[1,"accessible-labelled-by"],"accessibleDescription":[1,"accessible-description"],"accessibleIndex":[1,"accessible-index"],"margin":[1],"accessibleControls":[1,"accessible-controls"],"accessibleOwns":[1,"accessible-owns"],"accessibleDescribedBy":[1,"accessible-described-by"],"theme":[1025],"disabled":[516],"required":[4],"blockEvents":[4,"block-events"],"identifier":[1],"label":[1],"name":[1],"role":[1],"groupDisabled":[4,"group-disabled"],"groupDirection":[1,"group-direction"],"groupResponsive":[4,"group-responsive"],"checked":[1540],"value":[1537],"setFocus":[64]}]]],["p-82047e57.system",[[1,"duet-cookie-consent",{"accessibleLabel":[1,"accessible-label"],"theme":[1025]}]]],["p-7f8d73d1.system",[[1,"duet-notification-drawer",{"icon":[1],"label":[1],"language":[1],"accessibleLabelNotificationsDefaults":[1,"accessible-label-notification-default"],"accessibleLabelNotifications":[1,"accessible-label-notifications"],"badge":[4],"theme":[1025],"direction":[1],"isOpen":[32],"hasNotifications":[32],"setFocus":[64],"open":[64],"close":[64]},[[6,"focus","handleClickFocusOutside"],[6,"click","handleClickFocusOutside"]]],[1,"duet-notification",{"language":[1537],"accessibleLabelUnreadDefaults":[16],"accessibleLabelUnread":[1025,"accessible-label-unread"],"url":[1],"date":[1],"highlight":[4],"external":[4],"theme":[1025],"setFocus":[64]}]]],["p-89a01897.system",[[6,"duet-step",{"theme":[1025],"heading":[1],"headingLevel":[1,"heading-level"],"stepIndex":[2,"step-index"],"state":[1],"roundedTop":[4,"rounded-top"],"roundedBottom":[4,"rounded-bottom"],"setFocus":[64]}],[1,"duet-stepper",{"theme":[1025],"accessibleLive":[1,"accessible-live"],"margin":[1],"backDisabled":[4,"back-disabled"],"selected":[1538]},[[0,"duetStepClick","onDuetStepClick"]]]]],["p-cb896d18.system",[[1,"duet-banner",{"theme":[1025],"margin":[1],"backgroundColor":[1,"background-color"],"iconColor":[1,"icon-color"],"iconBackgroundColor":[1,"icon-background-color"],"textColor":[1,"text-color"],"size":[1],"image":[1],"icon":[1],"headingLevel":[1,"heading-level"]}]]],["p-0815f8d2.system",[[1,"duet-footer",{"theme":[1025],"variation":[1],"margin":[1],"logoHref":[1,"logo-href"],"language":[1537],"items":[8],"accessibleLabelExternalDefaults":[1,"accessible-label-external-default"],"accessibleLabelExternal":[1025,"accessible-label-external"],"menu":[8],"processedMainItem":[32],"processedItems":[32],"processedMenu":[32]}]]],["p-9be7d929.system",[[1,"duet-callout",{"theme":[1025],"margin":[1]}]]],["p-b14ce6d0.system",[[1,"duet-card",{"accessibleLabel":[1,"accessible-label"],"heading":[1],"secondaryHeading":[1,"secondary-heading"],"variation":[1],"collapsible":[4],"open":[1540],"headingLevel":[1,"heading-level"],"headingBackground":[1,"heading-background"],"icon":[1],"image":[1],"background":[1],"padding":[1],"margin":[1],"theme":[1025],"url":[1],"shadowBreakpoint":[1,"shadow-breakpoint"],"setFocus":[64]}]]],["p-a9ce97b9.system",[[1,"duet-promo-card",{"theme":[1025],"margin":[1],"backgroundColor":[1,"background-color"],"textColor":[1,"text-color"],"image":[1],"headingLevel":[1,"heading-level"]}]]],["p-1c1d9986.system",[[1,"duet-tray",{"language":[1025],"accessibleCloseLabelDefaults":[1,"accessible-close-label-default"],"accessibleCloseLabel":[1,"accessible-close-label"],"accessibleOpenLabelDefaults":[1,"accessible-open-label-default"],"accessibleOpenLabel":[1,"accessible-open-label"],"theme":[1025],"active":[516],"autoHide":[4,"auto-hide"],"responsive":[4],"expanded":[32],"hiddenState":[32]},[[9,"scroll","getFrame"],[16,"click","handleBodyClick"]]]]],["p-e8145797.system",[[1,"duet-breadcrumb",{"theme":[1025],"href":[1025],"icon":[1025],"accessibleLabel":[1,"accessible-label"]}]]],["p-d8266018.system",[[1,"duet-breadcrumbs",{"theme":[1025],"variation":[1],"children":[32]}]]],["p-e6b6d7db.system",[[1,"duet-collapsible",{"theme":[1025],"accessibleLabel":[1,"accessible-label"],"heading":[1],"centerHeading":[4,"center-heading"],"headingWeight":[1,"heading-weight"],"headingSize":[1,"heading-size"],"headingLevel":[1,"heading-level"],"margin":[1],"open":[1540],"setFocus":[64]}]]],["p-445317f4.system",[[6,"duet-combobox",{"accessibleLabelDefaults":[1,"accessible-label-defaults"],"accessibleLabels":[1040],"theme":[1025],"force":[4],"items":[1032],"formatter":[16],"value":[1537],"minCharacters":[2,"min-characters"],"openListOnClick":[4,"open-list-on-click"],"filterType":[1,"filter-type"],"processedItems":[32],"inputWidth":[32],"inputValue":[32],"selectionMsg":[32],"listOpen":[32],"selectedItems":[32],"activeItem":[32],"language":[32],"formatItem":[64]},[[4,"click","handleDocumentClick"]]]]],["p-1d42396a.system",[[1,"duet-menu-bar",{"theme":[1025],"logo":[1028],"logoHref":[1025,"logo-href"],"logoLinkAccessibleLabel":[1025,"logo-link-accessible-label"],"accessibleLabel":[1,"accessible-label"],"logoSize":[32],"leftMoreVisible":[32],"rightMoreVisible":[32]},[[9,"resize","onWindowResize"]]]]],["p-95740985.system",[[1,"duet-menu-bar-button",{"accessibleLabel":[1,"accessible-label"],"accessibleControls":[1,"accessible-controls"],"accessiblePopup":[1,"accessible-popup"],"accessibleActiveDescendant":[1,"accessible-active-descendant"],"accessibleOwns":[1,"accessible-owns"],"accessibleDescribedBy":[1,"accessible-described-by"],"accessibleDetails":[1,"accessible-details"],"accessibleLabelledBy":[1,"accessible-labelled-by"],"accessibleDescription":[1,"accessible-description"],"accessibleExpanded":[4,"accessible-expanded"],"accessiblePressed":[4,"accessible-pressed"],"theme":[1025],"icon":[1537],"iconSize":[32],"setFocus":[64]}]]],["p-6b1a925a.system",[[1,"duet-menu-bar-dropdown",{"accessibleLabel":[1,"accessible-label"],"theme":[1025],"open":[1540],"icon":[1537],"iconSize":[32],"setFocus":[64]},[[8,"click","handleFocus"]]]]],["p-f66ba762.system",[[1,"duet-menu-bar-dropdown-link",{"theme":[1025],"href":[1025],"icon":[1537],"accessibleLabel":[1,"accessible-label"]}]]],["p-37909c09.system",[[1,"duet-menu-bar-link",{"theme":[1025],"active":[1028],"href":[1025],"icon":[1537],"accessibleLabel":[1,"accessible-label"],"iconSize":[32]}]]],["p-1c1e78f4.system",[[1,"duet-page-heading",{"theme":[1025],"icon":[1025],"layout":[1025]}]]],["p-eb0c0713.system",[[2,"duet-range-slider",{"theme":[1025],"margin":[1],"expand":[4],"identifier":[1],"name":[1],"required":[4],"disabled":[516],"accessibleActiveDescendant":[1,"accessible-active-descendant"],"accessibleControls":[1,"accessible-controls"],"accessibleOwns":[1,"accessible-owns"],"accessibleDescribedBy":[1,"accessible-described-by"],"min":[2],"label":[1],"labelHidden":[4,"label-hidden"],"unit":[1],"max":[2],"step":[2],"locale":[1],"value":[1026],"debounce":[2],"setFocus":[64]}]]],["p-1d0a1fa6.system",[[1,"duet-slideout",{"theme":[1025],"open":[1540],"backgroundColor":[1537,"background-color"],"language":[32],"toggle":[64],"setFocus":[64]},[[8,"keyup","handleKeyUp"]]]]],["p-5eb79fac.system",[[1,"duet-slideout-lang",{"theme":[1025],"language":[32]}]]],["p-3508f30c.system",[[1,"duet-slideout-link",{"accessibleLabel":[1,"accessible-label"],"theme":[1025],"targetLanguage":[1,"target-language"],"active":[1028],"href":[1025],"icon":[1537],"size":[1537],"caret":[1028],"menuItem":[4,"menu-item"]}]]],["p-85350ba7.system",[[1,"duet-slideout-panel",{"theme":[1025],"active":[1540],"open":[1540],"icon":[1537],"labelSize":[1537,"label-size"],"backgroundColor":[1537,"background-color"],"label":[32],"language":[32],"setFocus":[64]}]]],["p-87cf954f.system",[[1,"duet-slideout-panel-dropdown",{"theme":[1025],"active":[1540],"open":[1540],"icon":[1537],"setFocus":[64]},[[8,"click","handleFocus"]]]]],["p-9fe84140.system",[[1,"duet-submenu-bar",{"theme":[1025],"open":[1540],"accessibleLabel":[1,"accessible-label"],"mobile":[32],"bodyScroll":[32],"setFocus":[64]}]]],["p-7b3b57b5.system",[[1,"duet-submenu-bar-dropdown",{"theme":[1025],"active":[1028],"open":[1540],"icon":[1537],"isDesktop":[32],"iconSize":[32],"setFocus":[64]},[[8,"click","handleFocus"]]]]],["p-8f235d9a.system",[[1,"duet-submenu-bar-dropdown-link",{"theme":[1025],"active":[1028],"href":[1025],"icon":[1537],"caret":[1028],"highlight":[1028]}]]],["p-87415ffd.system",[[1,"duet-submenu-bar-link",{"theme":[1025],"active":[1028],"href":[1025],"icon":[1537],"iconSize":[32]}]]],["p-127549bc.system",[[2,"duet-toggle",{"theme":[1025],"margin":[1],"accessibleActiveDescendant":[1,"accessible-active-descendant"],"accessibleControls":[1,"accessible-controls"],"accessibleOwns":[1,"accessible-owns"],"accessibleDescribedBy":[1,"accessible-described-by"],"accessibleDetails":[1,"accessible-details"],"accessibleLabelledBy":[1,"accessible-labelled-by"],"accessibleDescription":[1,"accessible-description"],"label":[1],"labelPosition":[1,"label-position"],"required":[4],"disabled":[516],"checked":[1540],"value":[1537],"identifier":[1],"name":[1],"role":[1],"setFocus":[64]}]]],["p-3c237b9a.system",[[1,"duet-toolbar-dropdown",{"theme":[1025],"accessibleLabel":[1,"accessible-label"],"active":[1540],"open":[1540],"icon":[1537],"setFocus":[64]},[[8,"click","handleFocus"]]]]],["p-f5e2ac5a.system",[[1,"duet-toolbar-dropdown-link",{"accessibleLabel":[1,"accessible-label"],"theme":[1025],"targetLanguage":[1,"target-language"],"href":[1025],"icon":[1537],"active":[1028]}]]],["p-724bd42f.system",[[1,"duet-toolbar-link",{"theme":[1025],"active":[1028],"href":[1025],"icon":[1537],"accessibleLabel":[1,"accessible-label"]}]]],["p-95e558a0.system",[[1,"duet-layout",{"sticky":[4],"margin":[1],"stickyDistance":[1,"sticky-distance"],"center":[4],"tabs":[4],"middle":[4],"paddingBreakpoint":[1,"padding-breakpoint"]}]]],["p-3ea2c86d.system",[[1,"duet-nav",{"theme":[1025]}]]],["p-3794c025.system",[[1,"duet-section-layout",{"margin":[1],"middle":[4]}]]],["p-d5e35912.system",[[1,"duet-shaped-image",{"theme":[1025],"accessibleLabel":[1,"accessible-label"],"src":[1],"rotation":[2]}]]],["p-b9e1d2e3.system",[[1,"duet-toolbar",{"theme":[1025],"accessibleLabel":[1,"accessible-label"]}]]],["p-0bb09731.system",[[2,"duet-select",{"variation":[1],"accessibleActiveDescendant":[1,"accessible-active-descendant"],"accessibleDescribedBy":[1,"accessible-described-by"],"margin":[1],"accessibleControls":[1,"accessible-controls"],"accessibleOwns":[1,"accessible-owns"],"error":[1],"accessibleLiveError":[1,"accessible-live-error"],"expand":[4],"value":[1537],"theme":[1025],"labelHidden":[4,"label-hidden"],"identifier":[1],"name":[1],"placeholder":[1],"caption":[1],"echoPlaceholder":[4,"echo-placeholder"],"items":[1],"disabled":[516],"required":[4],"label":[1],"role":[1],"tooltip":[1],"tooltipDirection":[1,"tooltip-direction"],"processedItems":[32],"setFocus":[64]}]]],["p-b7c8caab.system",[[1,"duet-alert",{"theme":[1025],"accessibleLabelDefaults":[1,"accessible-label-default"],"accessibleLabel":[1025,"accessible-label"],"announcements":[4],"icon":[1],"autoDismiss":[2,"auto-dismiss"],"margin":[1],"padding":[1],"variation":[1],"dismissible":[4],"isDismissed":[32],"timeoutID":[32],"language":[32],"show":[64],"hide":[64]}]]],["p-1402a469.system",[[0,"duet-progress",{"accessibleDescribedBy":[1,"accessible-described-by"],"accessibleDetails":[1,"accessible-details"],"accessibleLabelledBy":[1,"accessible-labelled-by"],"accessibleDescription":[1,"accessible-description"],"accessibleLabel":[1,"accessible-label"],"accessibleLabelUploadDefaults":[1,"accessible-label-upload-defaults"],"accessibleLabelUpload":[1,"accessible-label-upload"],"progress":[1538],"caption":[1],"height":[1],"theme":[1025]}]]],["p-60f7231d.system",[[1,"duet-upload-aria-status",{"statusMessageLabel":[16],"accessibleAriaLive":[1,"accessible-aria-live"],"valid":[2],"total":[2],"invalid":[2],"inprogress":[2],"statusMessage":[32]}]]],["p-5a229ae7.system",[[2,"duet-checkbox",{"accessibleActiveDescendant":[1,"accessible-active-descendant"],"margin":[1],"accessibleControls":[1,"accessible-controls"],"accessibleIndex":[1,"accessible-index"],"accessibleOwns":[1,"accessible-owns"],"accessibleDescribedBy":[1,"accessible-described-by"],"accessibleDetails":[1,"accessible-details"],"accessibleLabelledBy":[1,"accessible-labelled-by"],"accessibleDescription":[1,"accessible-description"],"accessibleSelected":[1,"accessible-selected"],"required":[4],"theme":[1025],"disabled":[516],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"role":[1],"checked":[1540],"value":[1537],"setFocus":[64]}]]],["p-f2403023.system",[[0,"duet-checkmark",{"theme":[1025],"checked":[1028],"presentationOnly":[4,"presentation-only"],"center":[4],"type":[513]}]]],["p-01a6becd.system",[[1,"duet-tab-group",{"theme":[1025],"scrolls":[4],"collapses":[4],"accessibleLabel":[1,"accessible-label"],"variation":[1],"language":[1025],"labelDefaults":[1,"label-default"],"label":[1],"labelHidden":[4,"label-hidden"],"identifier":[1],"margin":[1],"padding":[1],"setTabIndex":[4,"set-tab-index"],"tabChangeConfirm":[4,"tab-change-confirm"],"tabs":[32],"selected":[32],"openTab":[64],"refresh":[64]}],[6,"duet-tab",{"label":[513],"caption":[513],"selected":[516],"accessibleDescriptionDefault":[1,"accessible-description-defaults"],"accessibleDescription":[1,"accessible-description"]}],[1,"duet-scrollable",{"theme":[1025],"identifier":[1],"collapsed":[1540],"buttons":[4],"center":[4],"selected":[1026],"tablistAtStart":[32],"isTabContentSmallerThanWrapper":[32],"tablistAtEnd":[32],"childrenData":[32]}]]],["p-7e67d36d.system",[[1,"duet-empty-state",{"theme":[1025],"icon":[1],"size":[1]}]]],["p-ea6b5401.system",[[2,"duet-grid",{"responsive":[4],"breakpoint":[1],"direction":[1],"rowReverse":[4,"row-reverse"],"alignment":[1],"distribution":[1],"mobile":[1],"distributeFormElement":[32]}],[2,"duet-grid-item",{"fill":[4],"maxWidth":[1,"max-width"],"minWidth":[1,"min-width"],"theme":[1025],"margin":[1],"responsive":[4],"direction":[1],"breakpoint":[1]}]]],["p-631d95f8.system",[[1,"duet-list",{"theme":[1025],"margin":[1],"padding":[1],"mobile":[1],"breakpoint":[1],"variation":[1],"labelWidth":[1,"label-width"],"responsive":[4]}],[1,"duet-list-item",{"responsive":[4],"breakpoint":[1]}]]],["p-221a319e.system",[[1,"duet-fieldset",{"theme":[1025],"margin":[1],"caption":[1],"label":[1],"error":[1],"accessibleLiveError":[1,"accessible-live-error"],"labelHidden":[4,"label-hidden"],"hasTooltip":[32]}]]],["p-8bdf321a.system",[[1,"duet-badge",{"theme":[1025],"variation":[1],"background":[1],"margin":[1]}]]],["p-513794cb.system",[[1,"duet-visually-hidden"]]],["p-759770b5.system",[[1,"duet-header",{"theme":[1025],"language":[1025],"accessibleI18nLabelsDefaults":[1,"accessible-labels-default"],"accessibleI18nLabels":[1040],"accessibleLabelExternalDefaults":[1,"accessible-label-external-default"],"accessibleLabelExternal":[1025,"accessible-label-external"],"accessibleLabelDefaults":[1,"accessible-label-default"],"accessibleLabel":[1025,"accessible-label"],"user":[8],"logoHref":[1,"logo-href"],"currentHref":[1025,"current-href"],"skipToId":[1,"skip-to-id"],"items":[8],"region":[1],"session":[8],"search":[8],"back":[8],"contact":[1],"contactItems":[8,"contact-items"],"languageItems":[8,"language-items"],"isContactOpen":[32],"isLanguageOpen":[32],"isSessionOpen":[32],"isSlideOutOpen":[32],"isSegmentOpen":[32],"openMenu":[32],"closedActives":[32],"processedItems":[32],"processedLanguageItems":[32],"processedContactItems":[32],"processedSession":[32],"processedSearch":[32],"processedUser":[32],"processedBack":[32],"renderDesktopNav":[32],"closeMenus":[64],"setFocus":[64]},[[8,"keyup","handleKeyUp"],[8,"keydown","handleKeyDown"],[4,"focus","handleDocumentClick"],[4,"click","handleDocumentClick"]]],[1,"duet-logo",{"theme":[1025],"margin":[1],"inverse":[4],"size":[1],"href":[1537],"accessibleLabelDefaults":[1040],"accessibleLabel":[1537,"accessible-label"],"language":[1537],"setFocus":[64]}]]],["p-5369340a.system",[[1,"duet-action-button",{"theme":[1025],"iconName":[1,"icon-name"],"iconColor":[1,"icon-color"],"iconSize":[1,"icon-size"],"actionName":[1,"action-name"],"actionId":[1,"action-id"],"actionMeta":[1,"action-meta"],"disabled":[4],"color":[513],"background":[1],"accessibleTitle":[8,"title"],"accessibleDescribedBy":[1,"accessible-described-by"],"accessibleDetails":[1,"accessible-details"],"accessibleLabelledBy":[1,"accessible-labelled-by"],"accessibleDescription":[1,"accessible-description"],"accessibleLabelsDefaults":[16],"accessibleLabel":[1025,"accessible-label"],"accessibleControls":[1,"accessible-controls"],"numbersStore":[32],"language":[32],"setFocus":[64]}]]],["p-8c4f1396.system",[[1,"duet-divider",{"theme":[1025],"margin":[1],"color":[1]}],[1,"duet-spacer",{"size":[1],"direction":[1],"breakpoint":[1]}]]],["p-c85da6e1.system",[[1,"duet-tooltip",{"theme":[1025],"language":[1025],"accessibleLabelDefault":[1,"accessible-label-default"],"accessibleLabel":[1025,"accessible-label"],"accessibleInputLabel":[1,"accessible-input-label"],"accessibleCloseLabelDefault":[1,"accessible-close-label-default"],"accessibleCloseLabel":[1025,"accessible-close-label"],"label":[1],"breakpoint":[1],"direction":[1],"positionVertical":[513,"position-vertical"],"positionHorizontal":[513,"position-horizontal"],"active":[1540],"placement":[32],"tooltipY":[32],"tooltipX":[32],"arrowX":[32],"arrowY":[32]},[[9,"scroll","onScroll"],[9,"resize","handleWindowResize"],[4,"click","handleDocumentClick"]]]]],["p-e5d2f039.system",[[1,"duet-button",{"accessibleLabel":[1,"accessible-label"],"accessibleControls":[1,"accessible-controls"],"accessiblePopup":[1,"accessible-popup"],"accessibleActiveDescendant":[1,"accessible-active-descendant"],"accessibleOwns":[1,"accessible-owns"],"accessibleDescribedBy":[1,"accessible-described-by"],"accessibleDetails":[1,"accessible-details"],"accessibleLabelledBy":[1,"accessible-labelled-by"],"accessibleDescription":[1,"accessible-description"],"accessibleExpanded":[4,"accessible-expanded"],"accessiblePressed":[4,"accessible-pressed"],"loading":[4],"variation":[1],"negative":[4],"theme":[1025],"margin":[1],"padding":[1],"centerText":[4,"center-text"],"wrapping":[1],"expand":[4],"fixed":[4],"disabled":[516],"name":[1],"value":[1],"identifier":[1],"submit":[516],"external":[4],"language":[1537],"accessibleLabelExternalDefaults":[1,"accessible-label-external-default"],"accessibleLabelExternal":[1025,"accessible-label-external"],"icon":[1],"color":[1],"iconRight":[4,"icon-right"],"iconSize":[1,"icon-size"],"size":[1],"iconOnly":[4,"icon-only"],"url":[513],"setFocus":[64]}],[1,"duet-spinner",{"accessibleLabel":[1,"accessible-label"],"color":[1],"size":[1],"theme":[1025]}]]],["p-fbf03833.system",[[1,"duet-upload",{"accessibleActiveDescendant":[1,"accessible-active-descendant"],"accessibleDescribedBy":[1,"accessible-described-by"],"accessibleControls":[1,"accessible-controls"],"accessibleOwns":[1,"accessible-owns"],"external":[4],"middleware":[16],"deferUpload":[4,"defer-upload"],"hideButton":[4,"hide-upload-button"],"actions":[16],"uri":[1],"showLinks":[4,"show-links"],"caption":[1],"statusLabelDefaults":[1,"status-label-default"],"statusMessageLabel":[1,"status-message-label"],"buttonLabelDefaults":[1,"button-label-default"],"buttonLabel":[1,"button-label"],"accessibleButtonLabel":[1,"accessible-button-label"],"theme":[1025],"disabled":[516],"identifier":[1],"margin":[1],"required":[4],"alignment":[1],"hideGroups":[4,"hide-table-labels"],"files":[1040],"valid":[1540],"labelDefaults":[1,"label-default"],"label":[1],"descriptionDefaults":[1,"description-default"],"description":[1],"fileListEmptyDefaults":[1,"list-empty-default"],"fileListEmpty":[1,"file-list-empty"],"error":[1],"errorCodes":[16],"name":[1],"maxBytes":[2,"max-bytes"],"maxBytesTotal":[2,"max-bytes-total"],"maxFiles":[2,"max-files"],"allowedExtensions":[1,"allowed-extensions"],"allowedMimetypes":[1,"allowed-mimetypes"],"multiple":[4],"limitSelection":[4,"limit-selection"],"value":[1025],"externalUploadButtonId":[1,"external-upload-button-id"],"captionOnBottom":[4,"caption-on-bottom"],"showUploadedItemsHeader":[4,"show-uploaded-items-header"],"uploadedItemsHeaderLabel":[16],"hideHeader":[4,"hide-header"],"groups":[16],"tick":[32],"setFocus":[64],"upload":[64],"uploadPending":[64],"refresh":[64],"getFiles":[64],"updateValue":[64]}],[6,"duet-editable-table",{"margin":[1],"variation":[1],"sticky":[4],"stickyDistance":[1,"sticky-distance"],"breakpoint":[1],"actions":[1040],"columns":[1040],"rows":[1040],"sortable":[4],"groupId":[1,"group-id"],"theme":[1025],"accessibleRole":[1,"accessible-role"],"hideHeadVisually":[4,"hide-head-visually"],"language":[32]}],[4,"duet-table",{"theme":[1025],"margin":[1],"variation":[1],"sticky":[4],"stickyDistance":[1,"sticky-distance"],"breakpoint":[1],"hideHeadVisually":[4,"hide-head-visually"],"matchesBreakpoint":[32],"language":[32]}]]],["p-75f889b4.system",[[6,"duet-input",{"accessibleActiveDescendant":[1,"accessible-active-descendant"],"accessibleAutocomplete":[1,"accessible-autocomplete"],"accessibleControls":[1,"accessible-controls"],"accessibleOwns":[1,"accessible-owns"],"accessibleExpanded":[1,"accessible-expanded"],"accessibleDescribedBy":[1,"accessible-described-by"],"accessibleHasPopup":[1,"accessible-has-popup"],"accessibleDetails":[1,"accessible-details"],"accessibleLabelledBy":[1,"accessible-labelled-by"],"accessibleDescription":[1,"accessible-description"],"accessibleLiveError":[1,"accessible-live-error"],"debounce":[2],"clear":[4],"caption":[1],"echoPlaceholder":[4,"echo-placeholder"],"theme":[1025],"expand":[4],"disabled":[516],"identifier":[1],"margin":[1],"required":[4],"type":[1],"variation":[1],"label":[1025],"error":[1],"labelHidden":[4,"label-hidden"],"numericKeyboard":[4,"numeric-keyboard"],"name":[1],"pattern":[1],"maxlength":[2],"minlength":[2],"placeholder":[1],"component":[1],"role":[1],"icon":[1],"autoComplete":[1,"auto-complete"],"disallowPattern":[1,"disallow-pattern"],"value":[1025],"tooltip":[1],"tooltipDirection":[1,"tooltip-direction"],"language":[32],"isPasswordRevealed":[32],"isFocused":[32],"setFocus":[64],"resetCursor":[64],"clearInput":[64]}],[6,"duet-label",{"theme":[1025],"for":[1],"margin":[1],"size":[1]}]]]]'),e)}))}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,c as t,h as c,H as i,g as o}from"./p-e2a64fc4.js";import{i as h}from"./p-4ebf1618.js";import{D as d}from"./p-76f00bd5.js";import{c as s}from"./p-c1325e35.js";import{F as r}from"./p-fc9bbd16.js";import{i as a,h as u,f as n}from"./p-f077c646.js";import{g as l,a as p,c as b,d as g}from"./p-076452be.js";import{f as m,w as k}from"./p-12721178.js";import"./p-5a9d75e1.js";const f=class{constructor(c){e(this,c),this.duetChange=t(this,"duetChange",7),this.duetFocus=t(this,"duetFocus",7),this.duetBlur=t(this,"duetBlur",7),this.hasHeader=!1,this.choiceId=s("DuetChoice"),this.expandId=s("DuetChoiceExpand"),this.headerId=s("DuetChoiceHeader"),this.infoButtonId=s("DuetChoiceInfoButton"),this.onMouseEnter=()=>{this.isHovering=!0},this.onMouseLeave=()=>{this.isHovering=!1},this.onClick=e=>{this.toggleChecked(e)},this.handleKeyDown=e=>{a(e)&&this.toggleChecked(e),u(e)&&this.hasInfo&&this.toggleInfo()},this.onChange=()=>{this.checked=this.nativeInput.checked||!1,this.duetChange.emit({checked:this.checked,value:this.value,component:"duet-choice"})},this.onBlur=e=>{this.duetBlur.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-choice"})},this.onFocus=e=>{this.duetFocus.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-choice"})},this.toggleChecked=e=>{e.preventDefault(),e.stopPropagation(),this.disabled||this.groupDisabled||(this.isInfoOpen=!1,"radio"===this.type&&this.checked||(this.checked=!this.checked,this.duetChange.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-choice"})))},this.toggleInfo=()=>{this.isInfoOpen=!this.isInfoOpen},this.isHovering=!1,this.isInfoOpen=!1,this.isBlurred=!1,this.language=l(),this.theme="",this.label="label",this.accessibleLabelInfoButtonDefaults=d,this.accessibleLabelInfoButton=p(this.accessibleLabelInfoButtonDefaults),this.accessibleActiveDescendant=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.caption="",this.value=void 0,this.type="checkbox",this.name=void 0,this.checked=!1,this.collapsible=!1,this.margin="auto",this.icon="",this.expand=!1,this.padding="auto",this.identifier=void 0,this.groupDirection=void 0,this.groupDisabled=void 0,this.groupResponsive=void 0,this.disabled=!1,this.required=!1,this.infoLabelDefaults={fi:"Lisätietoja vaihtoehdosta",en:"More information about",sv:"Mera information om"},this.infoLabel=p(this.infoLabelDefaults,l())}watchLanguageStateHandler(e,t){e!==t&&this.accessibleLabelInfoButton===this.accessibleLabelInfoButtonDefaults[t]&&(this.accessibleLabelInfoButton=p(this.accessibleLabelInfoButtonDefaults,e)),e!==t&&this.infoLabel===this.infoLabelDefaults[t]&&(this.infoLabel=p(this.infoLabelDefaults,e))}componentWillLoad(){h(this),this.hasInfo=!!this.element.querySelector("[slot='info']"),this.hasHeader=!!this.element.querySelector('[slot="header"]'),this.hasAdditional=!!this.element.querySelector(":scope > [slot='additional']"),this.hasLabel=!!this.element.querySelector(":scope > [slot='label']"),this.hasBeforeText=!!this.element.querySelector("[slot='before-text']")}connectedCallback(){b(this)}disconnectedCallback(){g(this)}handleHostBlur(e){this.hasInfo&&this.isInfoOpen&&this.isKeyDown&&(this.element.contains(null==e?void 0:e.relatedTarget)||this.toggleInfo())}handleHostKeyDown(){this.isKeyDown=!0}handleHostKeyUp(e){this.isKeyDown=!1,n(e)&&this.isInfoOpen&&this.toggleInfo()}async setFocus(e){this.nativeInput.focus(e)}async toggleInfoMethod(){this.isInfoOpen=!this.isInfoOpen}getAriaDescribedby(){return this.accessibleDescribedBy?this.accessibleDescribedBy:this.collapsible||this.hasInfo?this.hasHeader?this.headerId:this.expandId:null}getClassNames(){return this.hasInfo&&!this.collapsible?{"duet-choice-card-info":!0,"duet-choice-card-info-expanded":this.isInfoOpen,"duet-choice-card-collapsed":!this.isInfoOpen,"duet-theme-turva":"turva"===this.theme}:!this.hasInfo&&this.collapsible?{"duet-choice-card-collapsible":!0,"duet-choice-card-collapsible-expanded":this.checked,"duet-choice-card-collapsed":!this.checked,"duet-choice-card-collapsible-disabled":!(!this.disabled&&!this.groupDisabled),"duet-theme-turva":"turva"===this.theme}:{"duet-choice-default-slot":!0}}render(){const e=this.element.closest("duet-choice-group"),t=e?e.label:void 0,o=this.identifier||this.choiceId;return c(i,{class:{horizontal:"horizontal"===this.groupDirection&&!this.groupResponsive,"horizontal-responsive":"horizontal"===this.groupDirection&&this.groupResponsive,"duet-m-0":"none"===this.margin,"duet-expand":this.expand,"duet-theme-turva":"turva"===this.theme}},c("div",{class:{"duet-choice-card-flextainer":!0,"duet-theme-turva":"turva"===this.theme}},c("div",{class:{"duet-choice-card":!0,"has-icon":!!this.icon,"has-info":this.hasInfo,checked:this.checked,info:this.isInfoOpen,collapsible:this.collapsible,"duet-p-0":"none"===this.padding}},c("input",{class:"duet-choice-input",type:this.type,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,disabled:this.disabled||this.groupDisabled,required:this.required,id:o,name:this.name,value:this.value,checked:this.checked,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-owns":this.accessibleOwns,"aria-describedby":this.getAriaDescribedby(),onKeyDown:this.handleKeyDown,ref:e=>this.nativeInput=e}),c("label",{htmlFor:o,class:{"duet-choice-label":!0,"no-hover":this.isHovering,"has-before-text":this.hasBeforeText},onClick:this.onClick},this.hasBeforeText&&c("slot",{name:"before-text"}),this.icon&&c("div",{class:"duet-choice-card-icon"},c("duet-icon",{margin:"none",size:"small",name:this.icon,color:"currentColor"})),c("div",{class:"duet-choice-card-text"},t&&c("duet-visually-hidden",null,t,", "),c("div",null,this.hasLabel?c("slot",{name:"label"}):this.label),this.caption&&c("div",null,c("duet-spacer",{size:"xx-small"}),c("duet-caption",{margin:"none",selected:this.checked},this.caption)),this.hasAdditional&&c("div",null,c("duet-spacer",{size:"xx-small"}),c("slot",{name:"additional"}))),c("div",null,c("div",{class:{"duet-checkmark-container":!0,"duet-checkmark-radio":"radio"===this.type}},this.checked&&c("div",{class:"duet-checkmark"}))))),this.hasInfo&&!this.collapsible&&c("button",{ref:e=>this.infoButtonEl=e,id:this.infoButtonId,class:{"duet-choice-info-toggle":!0,"duet-theme-turva":"turva"===this.theme},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onClick:this.toggleInfo,disabled:this.disabled||this.groupDisabled,"aria-expanded":this.isInfoOpen?"true":"false","aria-label":`${this.infoLabel} ${this.label}`,"aria-controls":this.expandId,"aria-flowto":this.expandId,tabindex:"radio"!==this.type||this.checked?"0":"-1",type:"button"},c("duet-visually-hidden",{"aria-hidden":this.isBlurred?"false":"true"},this.accessibleLabelInfoButton),c("div",{class:"duet-choice-info-icon"},c("duet-icon",{icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M13.5 17.25A2.252 2.252 0 0 1 11.25 15v-3.75h-.75a.75.75 0 0 1 0-1.5h.75c.827 0 1.5.673 1.5 1.5V15c0 .414.336.75.75.75h.75a.75.75 0 0 1 0 1.5z"/><circle cx="11.625" cy="7.125" r="1.125"/><path d="M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5z"/></svg>',margin:"none",size:"small",color:"currentColor"})))),this.collapsible||this.hasInfo?c("div",{class:this.getClassNames(),id:this.expandId},c("span",{class:{"duet-choice-section-visible":this.collapsible?this.checked:this.isInfoOpen,"duet-choice-section-hidden":this.collapsible?!this.checked:!this.isInfoOpen}},c("span",{id:this.headerId},c("slot",{name:"header"})),this.hasInfo?c("span",null,c("span",{"aria-relevant":"all","aria-atomic":"true","aria-live":this.isInfoOpen?"polite":"off"},c("slot",{name:"info"})),c("slot",null)):c("span",null,c("slot",null))),this.isInfoOpen&&c(r,{moveFocusTo:this.infoButtonEl})):null)}get element(){return o(this)}static get watchers(){return{language:["watchLanguageStateHandler"]}}};f.style='*.sc-duet-choice,*.sc-duet-choice::after,*.sc-duet-choice::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;flex-direction:column;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-choice-h:last-child,.sc-duet-choice-h:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){.sc-duet-choice-h{width:100%}}.duet-expand.sc-duet-choice-h{width:100% !important}.duet-m-0.sc-duet-choice-h{margin:0 !important}.duet-fixed.sc-duet-choice-h{width:auto !important}.vertical.sc-duet-choice-h{margin-right:0 !important}@media (min-width: 48em){.horizontal.sc-duet-choice-h{margin-bottom:0 !important}}@media (min-width: 48em){.horizontal-responsive.sc-duet-choice-h{margin-bottom:0 !important;margin-right:16px !important}.horizontal-responsive.sc-duet-choice-h:last-child,.horizontal-responsive.sc-duet-choice-h:last-of-type{margin-right:0 !important}}.sc-duet-choice-h:last-child:not(:only-child){margin-right:0 !important}.duet-choice-card.sc-duet-choice{position:relative;display:block;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:400;-webkit-hyphens:auto;hyphens:auto;line-height:1.1;color:rgb(0, 41, 77) !important;text-align:left;background:rgb(255, 255, 255);border-width:2px}.duet-choice-card.duet-p-0.sc-duet-choice{padding:0 !important}.duet-choice-card.duet-m-0.sc-duet-choice{margin:0 !important}.duet-theme-turva.sc-duet-choice .duet-choice-card.sc-duet-choice{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58) !important}.duet-choice-card-flextainer.sc-duet-choice{display:flex}.duet-choice-label.sc-duet-choice{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;gap:1rem;align-items:center;justify-content:flex-start;width:100%;height:100%;min-height:3.875rem;padding:1rem;font-size:1rem;font-weight:600;text-decoration:none;word-break:break-word;cursor:pointer;border:2px solid rgb(225, 227, 230);border-radius:4px;transition:background-color 150ms ease}.duet-choice-label.has-before-text.sc-duet-choice .duet-choice-card-icon.sc-duet-choice,.duet-choice-label.has-before-text.sc-duet-choice .duet-choice-card-text.sc-duet-choice{align-self:flex-start;margin-top:0.25rem}.duet-choice-label.sc-duet-choice>div.sc-duet-choice:last-child{flex:1;align-self:flex-start;justify-self:flex-end;margin-top:0.25rem}.has-info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-top-right-radius:0;border-bottom-right-radius:0}.info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-bottom-right-radius:0;border-bottom-left-radius:0}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(228, 228, 230)}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(228, 228, 230)}.duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:rgb(144, 149, 153)}.duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-checkmark-container.sc-duet-choice{border-color:rgb(144, 149, 153)}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:rgb(116, 116, 117)}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-checkmark-container.sc-duet-choice{border-color:rgb(116, 116, 117)}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:rgb(116, 116, 117)}.duet-choice-label.sc-duet-choice:active{opacity:0.75;transition:none !important}.checked.sc-duet-choice .duet-choice-label.sc-duet-choice{color:rgb(0, 119, 179) !important;background:rgb(243, 249, 252);border-color:rgb(0, 119, 179) !important}.checked.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice .duet-choice-label.sc-duet-choice{color:rgb(23, 28, 58) !important;background:rgb(245, 245, 247);border-color:rgb(23, 28, 58) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(198, 12, 48)}.checked.collapsible.sc-duet-choice .duet-choice-label.sc-duet-choice{border-bottom:0 !important;border-bottom-right-radius:0;border-bottom-left-radius:0}input.sc-duet-choice:focus{outline:0}.user-is-tabbing.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3)}.user-is-tabbing.sc-duet-choice-h input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2)}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:rgb(101, 119, 135) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(225, 227, 230) !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:rgb(101, 119, 135) !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:hover,input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:active,input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:focus{box-shadow:none !important;opacity:1 !important;transition:none !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:rgb(116, 116, 117) !important;background:rgb(245, 245, 247) !important;border-color:rgb(228, 228, 230) !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:rgb(116, 116, 117) !important}.checked.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{background:rgb(225, 227, 230) !important;border-color:rgb(225, 227, 230) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{background:rgb(228, 228, 230) !important;border-color:rgb(228, 228, 230) !important}.duet-checkmark-container.sc-duet-choice{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid rgb(144, 149, 153);border-radius:4px;transition:border 300ms ease}.duet-theme-turva.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(116, 116, 117)}.checked.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(0, 119, 179);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58) !important}.duet-checkmark-container.duet-checkmark-radio.sc-duet-choice{border-radius:50%}[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(207, 210, 212) !important}.duet-theme-turva.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(207, 207, 209) !important}.checked.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(207, 210, 212) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(207, 207, 209) !important}.duet-checkmark.sc-duet-choice{position:absolute;top:10px;left:3px;width:5.3333333333px;height:11.8518518519px;border-top:2px solid rgb(255, 255, 255);border-right:2px solid rgb(255, 255, 255);opacity:1;transform:scaleX(-1) rotate(135deg) translateZ(0);transform-origin:left top;animation-name:duet-checkmark;animation-duration:600ms;animation-timing-function:ease-out;animation-fill-mode:forwards}@keyframes duet-checkmark{0%{width:0;height:0;opacity:1}20%{width:5.3333333333px;height:0;opacity:1}40%,100%{width:5.3333333333px;height:11.8518518519px;opacity:1}}.duet-choice-card-icon.sc-duet-choice{position:relative}.duet-choice-card-icon.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-section-hidden.sc-duet-choice{display:none}.duet-choice-card-info.duet-choice-card-collapsed.sc-duet-choice,.duet-choice-card-collapsed.duet-choice-card-collapsible.sc-duet-choice{position:relative;width:auto;padding:0 !important;background:unset !important;border:0;border-radius:0}.duet-choice-card-info.sc-duet-choice,.duet-choice-card-collapsible.sc-duet-choice{padding:20px !important;position:relative;z-index:200;width:100%;font-weight:400;color:rgb(0, 41, 77);border:2px solid rgb(225, 227, 230);border-top:0;border-radius:0 0 4px 4px}@media (min-width: 36em){.duet-choice-card-info.sc-duet-choice,.duet-choice-card-collapsible.sc-duet-choice{padding:28px !important}}.duet-theme-turva.sc-duet-choice .duet-choice-card-info.sc-duet-choice,.duet-theme-turva.sc-duet-choice .duet-choice-card-collapsible.sc-duet-choice{color:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.checked.sc-duet-choice .duet-choice-card-info.sc-duet-choice,.checked.sc-duet-choice .duet-choice-card-collapsible.sc-duet-choice{display:block}.duet-choice-card-info-expanded.sc-duet-choice,.duet-choice-card-collapsible-expanded.sc-duet-choice{display:block}.duet-choice-card-collapsible.sc-duet-choice{background:rgb(255, 255, 255);border:2px solid rgb(0, 119, 179);border-top:0}.duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{background:rgb(255, 255, 255);border-color:rgb(23, 28, 58)}.duet-choice-card-collapsible-disabled.sc-duet-choice{background:rgb(245, 248, 250);border-color:rgb(225, 227, 230)}.duet-choice-card-collapsible-disabled.duet-theme-turva.sc-duet-choice{background:rgb(245, 245, 247);border-color:rgb(228, 228, 230)}.duet-choice-card-info.sc-duet-choice{font-size:0.875rem;line-height:1.5;background:rgb(245, 248, 250);transition:150ms ease-out}.duet-choice-card-info.duet-theme-turva.sc-duet-choice{background:rgb(245, 245, 247);border-color:rgb(228, 228, 230)}.duet-choice-info-toggle.sc-duet-choice{display:flex;flex-shrink:0;align-items:flex-start;justify-content:center;width:57.6px;padding-top:1.25rem;cursor:pointer;background:rgb(255, 255, 255);border:2px solid rgb(225, 227, 230);border-left:0 none;border-top-right-radius:4px;border-bottom-right-radius:4px;-webkit-appearance:none;appearance:none}.duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:rgb(245, 248, 250);border-bottom-color:transparent;border-bottom-right-radius:0}.duet-choice-info-toggle[disabled].sc-duet-choice{pointer-events:none;background:rgb(245, 248, 250) !important;border-color:rgb(225, 227, 230) !important}.duet-choice-info-toggle[disabled].sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(144, 149, 153) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice{background:rgb(245, 245, 247) !important;border-color:rgb(228, 228, 230) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(116, 116, 117) !important}.duet-choice-info-toggle.sc-duet-choice:focus{outline:none}.user-is-tabbing.sc-duet-choice-h .duet-choice-info-toggle.sc-duet-choice:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(144, 149, 153)}.checked.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(0, 119, 179) !important}.duet-choice-info-toggle.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(198, 12, 48)}.duet-choice-input.sc-duet-choice{position:absolute !important;width:100%;height:100%;opacity:0}';const v=":scope duet-choice:not(:scope duet-choice duet-choice-group duet-choice):not(:scope duet-choice duet-fieldset duet-choice)",x=class{constructor(t){e(this,t),this.choiceGroupName="duet-choice-group",this.getChoices=()=>Array.from(this.element.querySelectorAll(v)),this.isMyChoice=e=>this.getChoices().includes(e),this.onSelect=e=>{if("duet-choice"!==e.detail.component)return;const t=e.target;t&&this.isMyChoice(t)&&(this.value=t.value),e.cancelBubble=!0},this.direction="vertical",this.margin="auto",this.theme="",this.error="",this.name=void 0,this.label="Label",this.labelHidden=!1,this.caption=void 0,this.tooltip=void 0,this.tooltipDirection="auto",this.responsive=!1,this.breakpoint="small",this.value=void 0,this.disabled=void 0}async connectedCallback(){const e=this.element;if(void 0===this.value){const t=m(e,v);void 0!==t&&(await t.componentOnReady(),void 0===this.value&&(this.value=t.value))}this.mutationO=k(e,v,(e=>{void 0!==e?e.componentOnReady().then((()=>{this.isMyChoice(e)&&(this.value=e.value)})):this.updateChoices()})),this.updateChoices()}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}componentWillLoad(){h(this)}async updateChoices(){const e=this.getChoices(),{value:t}=this;let c=!1;for(const i of e)i.name=this.name,i.groupDisabled=this.disabled,i.groupDirection=this.direction,i.groupResponsive=this.responsive,c||i.value!==t?i.checked=!1:(c=!0,i.checked=!0);c||(this.value=void 0)}render(){return c(i,{onDuetChange:this.onSelect,class:{horizontal:"horizontal"===this.direction,"duet-choice-group-breakpoint-x-small":this.responsive&&"x-small"===this.breakpoint,"duet-choice-group-breakpoint-small":this.responsive&&"small"===this.breakpoint,"duet-choice-group-breakpoint-medium":this.responsive&&"medium"===this.breakpoint,"duet-choice-group-breakpoint-large":this.responsive&&"large"===this.breakpoint,"duet-choice-group-breakpoint-x-large":this.responsive&&"x-large"===this.breakpoint}},c("duet-fieldset",{label:this.label,labelHidden:this.labelHidden,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme},this.tooltip&&c("duet-tooltip",{slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),c("div",{class:{[this.choiceGroupName]:!0,"duet-no-stacking":!this.responsive}},c("slot",null))))}get element(){return o(this)}static get watchers(){return{value:["updateChoices"],disabled:["updateChoices"],name:["updateChoices"],direction:["updateChoices"],responsive:["updateChoices"]}}};x.style="*.sc-duet-choice-group,*.sc-duet-choice-group::after,*.sc-duet-choice-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:block;margin-bottom:-12px}.horizontal.sc-duet-choice-group-h .duet-choice-group.duet-no-stacking.sc-duet-choice-group{display:flex}@media (min-width: 48em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{margin-bottom:0}}@media (max-width: 35.9375em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:flex}}.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}@media (max-width: 22.5em){.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}}.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 36em){.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 48em){.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 62em){.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 64.0625em){.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.duet-choice-group.sc-duet-choice-group{position:relative;width:100%;margin-bottom:-12px}";export{f as duet_choice,x as duet_choice_group}
@@ -1,4 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++){e=arguments[r];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,r,o){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,n){function a(t){try{s(o.next(t))}catch(e){n(e)}}function l(t){try{s(o["throw"](t))}catch(e){n(e)}}function s(t){t.done?r(t.value):i(t.value).then(a,l)}s((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,i,n,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(t){return function(e){return s([t,e])}}function s(l){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,l[0]&&(r=0)),r)try{if(o=1,i&&(n=l[0]&2?i["return"]:l[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,l[1])).done)return n;if(i=0,n)l=[l[0]&2,n.value];switch(l[0]){case 0:case 1:n=l;break;case 4:r.label++;return{value:l[1],done:false};case 5:r.label++;i=l[1];l=[0];continue;case 7:l=r.ops.pop();r.trys.pop();continue;default:if(!(n=r.trys,n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){r.label=l[1];break}if(l[0]===6&&r.label<n[1]){r.label=n[1];n=l;break}if(n&&r.label<n[2]){r.label=n[2];r.ops.push(l);break}if(n[2])r.ops.pop();r.trys.pop();continue}l=e.call(t,r)}catch(s){l=[6,s];i=0}finally{o=n=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(t,e){var r={};for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0)r[o]=t[o];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++){if(e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i]))r[o[i]]=t[o[i]]}return r};var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var o=0,i=e.length,n;o<i;o++){if(n||!(o in e)){if(!n)n=Array.prototype.slice.call(e,0,o);n[o]=e[o]}}return t.concat(n||Array.prototype.slice.call(e))};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-fbef8044.system.js","./p-45e609b1.system.js","./p-33b3aba4.system.js","./p-5f6bd5db.system.js","./p-c8dc599d.system.js","./p-b6d51921.system.js"],(function(t){"use strict";var e,r,o,i,n,a,l,s,c,u,f,p;return{setters:[function(t){e=t.r;r=t.h;o=t.H;i=t.g},function(t){n=t.m;a=t.a},function(t){l=t.i},function(t){s=t.c},function(t){c=t.g;u=t.a;f=t.c;p=t.d},function(){}],execute:function(){var d=this;function h(t){return t.split("-")[1]}function b(t){return t==="y"?"height":"width"}function v(t){return t.split("-")[0]}function g(t){return["top","bottom"].includes(v(t))?"x":"y"}function m(t,e,r){var o=t.reference,i=t.floating;var n=o.x+o.width/2-i.width/2;var a=o.y+o.height/2-i.height/2;var l=g(e);var s=b(l);var c=o[s]/2-i[s]/2;var u=v(e);var f=l==="x";var p;switch(u){case"top":p={x:n,y:o.y-i.height};break;case"bottom":p={x:n,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:a};break;case"left":p={x:o.x-i.width,y:a};break;default:p={x:o.x,y:o.y}}switch(h(e)){case"start":p[l]-=c*(r&&f?-1:1);break;case"end":p[l]+=c*(r&&f?-1:1);break}return p}var y=function(t,e,r){return __awaiter(d,void 0,void 0,(function(){var o,i,n,a,l,s,c,u,f,p,d,h,b,v,g,y,x,w,_,k,S,T,L,C,E,R;var A,D;return __generator(this,(function(P){switch(P.label){case 0:o=r.placement,i=o===void 0?"bottom":o,n=r.strategy,a=n===void 0?"absolute":n,l=r.middleware,s=l===void 0?[]:l,c=r.platform;u=s.filter(Boolean);return[4,c.isRTL==null?void 0:c.isRTL(e)];case 1:f=P.sent();return[4,c.getElementRects({reference:t,floating:e,strategy:a})];case 2:p=P.sent();d=m(p,i,f),h=d.x,b=d.y;v=i;g={};y=0;x=0;P.label=3;case 3:if(!(x<u.length))return[3,11];w=u[x],_=w.name,k=w.fn;return[4,k({x:h,y:b,initialPlacement:i,placement:v,strategy:a,middlewareData:g,rects:p,platform:c,elements:{reference:t,floating:e}})];case 4:S=P.sent(),T=S.x,L=S.y,C=S.data,E=S.reset;h=T!=null?T:h;b=L!=null?L:b;g=__assign(__assign({},g),(A={},A[_]=__assign(__assign({},g[_]),C),A));if(!(E&&y<=50))return[3,10];y++;if(!(typeof E==="object"))return[3,9];if(E.placement){v=E.placement}if(!E.rects)return[3,8];if(!(E.rects===true))return[3,6];return[4,c.getElementRects({reference:t,floating:e,strategy:a})];case 5:R=P.sent();return[3,7];case 6:R=E.rects;P.label=7;case 7:p=R;P.label=8;case 8:D=m(p,v,f),h=D.x,b=D.y;P.label=9;case 9:x=-1;return[3,10];case 10:x++;return[3,3];case 11:return[2,{x:h,y:b,placement:v,strategy:a,middlewareData:g}]}}))}))};function x(t){return __assign({top:0,right:0,bottom:0,left:0},t)}function w(t){return typeof t!=="number"?x(t):{top:t,right:t,bottom:t,left:t}}function _(t){return __assign(__assign({},t),{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function k(t,e){return __awaiter(this,void 0,void 0,(function(){var r,o,i,n,a,l,s,c,u,f,p,d,h,b,v,g,m,y,x,k,S,T,L,C,E,R,A,D,P,O,j,z,I;var H;return __generator(this,(function(F){switch(F.label){case 0:if(e===void 0){e={}}o=t.x,i=t.y,n=t.platform,a=t.rects,l=t.elements,s=t.strategy;c=e.boundary,u=c===void 0?"clippingAncestors":c,f=e.rootBoundary,p=f===void 0?"viewport":f,d=e.elementContext,h=d===void 0?"floating":d,b=e.altBoundary,v=b===void 0?false:b,g=e.padding,m=g===void 0?0:g;y=w(m);x=h==="floating"?"reference":"floating";k=l[v?x:h];T=_;C=(L=n).getClippingRect;H={};return[4,n.isElement==null?void 0:n.isElement(k)];case 1:if(!((r=F.sent())!=null?r:true))return[3,2];E=k;return[3,5];case 2:R=k.contextElement;if(R)return[3,4];return[4,n.getDocumentElement==null?void 0:n.getDocumentElement(l.floating)];case 3:R=F.sent();F.label=4;case 4:E=R;F.label=5;case 5:return[4,C.apply(L,[(H.element=E,H.boundary=u,H.rootBoundary=p,H.strategy=s,H)])];case 6:S=T.apply(void 0,[F.sent()]);A=h==="floating"?__assign(__assign({},a.floating),{x:o,y:i}):a.reference;return[4,n.getOffsetParent==null?void 0:n.getOffsetParent(l.floating)];case 7:D=F.sent();return[4,n.isElement==null?void 0:n.isElement(D)];case 8:if(!F.sent())return[3,10];return[4,n.getScale==null?void 0:n.getScale(D)];case 9:O=F.sent()||{x:1,y:1};return[3,11];case 10:O={x:1,y:1};F.label=11;case 11:P=O;z=_;if(!n.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,13];return[4,n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:A,offsetParent:D,strategy:s})];case 12:I=F.sent();return[3,14];case 13:I=A;F.label=14;case 14:j=z.apply(void 0,[I]);return[2,{top:(S.top-j.top+y.top)/P.y,bottom:(j.bottom-S.bottom+y.bottom)/P.y,left:(S.left-j.left+y.left)/P.x,right:(j.right-S.right+y.right)/P.x}]}}))}))}var S=Math.min;var T=Math.max;function L(t,e,r){return T(t,S(e,r))}var C=function(t){return{name:"arrow",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,o,i,n,a,l,s,c,u,f,p,d,v,m,y,x,_,k,S,T,C,E,R,A,D,P,O,j,z,I,H;var F,B;return __generator(this,(function(M){switch(M.label){case 0:r=t||{},o=r.element,i=r.padding,n=i===void 0?0:i;a=e.x,l=e.y,s=e.placement,c=e.rects,u=e.platform,f=e.elements;if(o==null){return[2,{}]}p=w(n);d={x:a,y:l};v=g(s);m=b(v);return[4,u.getDimensions(o)];case 1:y=M.sent();x=v==="y";_=x?"top":"left";k=x?"bottom":"right";S=x?"clientHeight":"clientWidth";T=c.reference[m]+c.reference[v]-d[v]-c.floating[m];C=d[v]-c.reference[v];return[4,u.getOffsetParent==null?void 0:u.getOffsetParent(o)];case 2:E=M.sent();R=E?E[S]:0;A=!R;if(A)return[3,4];return[4,u.isElement==null?void 0:u.isElement(E)];case 3:A=!M.sent();M.label=4;case 4:if(A){R=f.floating[S]||c.floating[m]}D=T/2-C/2;P=p[_];O=R-y[m]-p[k];j=R/2-y[m]/2+D;z=L(P,j,O);I=h(s)!=null&&j!=z&&c.reference[m]/2-(j<P?p[_]:p[k])-y[m]/2<0;H=I?j<P?P-j:O-j:0;return[2,(F={},F[v]=d[v]-H,F.data=(B={},B[v]=z,B.centerOffset=j-z,B),F)]}}))}))}}};var E={left:"right",right:"left",bottom:"top",top:"bottom"};function R(t){return t.replace(/left|right|bottom|top/g,(function(t){return E[t]}))}function A(t,e,r){if(r===void 0){r=false}var o=h(t);var i=g(t);var n=b(i);var a=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";if(e.reference[n]>e.floating[n]){a=R(a)}return{main:a,cross:R(a)}}var D={start:"end",end:"start"};function P(t){return t.replace(/start|end/g,(function(t){return D[t]}))}function O(t){var e=R(t);return[P(t),e,P(e)]}function j(t,e,r){var o=["left","right"];var i=["right","left"];var n=["top","bottom"];var a=["bottom","top"];switch(t){case"top":case"bottom":if(r)return e?i:o;return e?o:i;case"left":case"right":return e?n:a;default:return[]}}function z(t,e,r,o){var i=h(t);var n=j(v(t),r==="start",o);if(i){n=n.map((function(t){return t+"-"+i}));if(e){n=n.concat(n.map(P))}}return n}var I=function(t){if(t===void 0){t={}}return{name:"flip",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,o,i,n,a,l,s,c,u,f,p,d,h,b,g,m,y,x,w,_,S,T,L,C,E,D,P,j,I,H,F,B,M,U,W,V,X;return __generator(this,(function(Y){switch(Y.label){case 0:o=e.placement,i=e.middlewareData,n=e.rects,a=e.initialPlacement,l=e.platform,s=e.elements;c=t.mainAxis,u=c===void 0?true:c,f=t.crossAxis,p=f===void 0?true:f,d=t.fallbackPlacements,h=t.fallbackStrategy,b=h===void 0?"bestFit":h,g=t.fallbackAxisSideDirection,m=g===void 0?"none":g,y=t.flipAlignment,x=y===void 0?true:y,w=__rest(t,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);_=v(o);S=v(a)===a;return[4,l.isRTL==null?void 0:l.isRTL(s.floating)];case 1:T=Y.sent();L=d||(S||!x?[R(a)]:O(a));if(!d&&m!=="none"){L.push.apply(L,z(a,x,m,T))}C=__spreadArray([a],L,true);return[4,k(e,w)];case 2:E=Y.sent();D=[];P=((r=i.flip)==null?void 0:r.overflows)||[];if(u){D.push(E[_])}if(p){j=A(o,n,T),I=j.main,H=j.cross;D.push(E[I],E[H])}P=__spreadArray(__spreadArray([],P,true),[{placement:o,overflows:D}],false);if(!D.every((function(t){return t<=0}))){M=(((F=i.flip)==null?void 0:F.index)||0)+1;U=C[M];if(U){return[2,{data:{index:M,overflows:P},reset:{placement:U}}]}W=(B=P.filter((function(t){return t.overflows[0]<=0})).sort((function(t,e){return t.overflows[1]-e.overflows[1]}))[0])==null?void 0:B.placement;if(!W){switch(b){case"bestFit":{X=(V=P.map((function(t){return[t.placement,t.overflows.filter((function(t){return t>0})).reduce((function(t,e){return t+e}),0)]})).sort((function(t,e){return t[1]-e[1]}))[0])==null?void 0:V[0];if(X){W=X}break}case"initialPlacement":W=a;break}}if(o!==W){return[2,{reset:{placement:W}}]}}return[2,{}]}}))}))}}};function H(t){return t==="x"?"y":"x"}var F=function(t){if(t===void 0){t={}}return{name:"shift",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,o,i,n,a,l,s,c,u,f,p,d,h,b,m,y,x,w,_,S,x,w,T,C,E;var R;return __generator(this,(function(A){switch(A.label){case 0:r=e.x,o=e.y,i=e.placement;n=t.mainAxis,a=n===void 0?true:n,l=t.crossAxis,s=l===void 0?false:l,c=t.limiter,u=c===void 0?{fn:function(t){var e=t.x,r=t.y;return{x:e,y:r}}}:c,f=__rest(t,["mainAxis","crossAxis","limiter"]);p={x:r,y:o};return[4,k(e,f)];case 1:d=A.sent();h=g(v(i));b=H(h);m=p[h];y=p[b];if(a){x=h==="y"?"top":"left";w=h==="y"?"bottom":"right";_=m+d[x];S=m-d[w];m=L(_,m,S)}if(s){x=b==="y"?"top":"left";w=b==="y"?"bottom":"right";T=y+d[x];C=y-d[w];y=L(T,y,C)}E=u.fn(__assign(__assign({},e),(R={},R[h]=m,R[b]=y,R)));return[2,__assign(__assign({},E),{data:{x:E.x-r,y:E.y-o}})]}}))}))}}};function B(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function M(t){return B(t).getComputedStyle(t)}function U(t){return t instanceof B(t).Node}function W(t){return U(t)?(t.nodeName||"").toLowerCase():""}function V(t){return t instanceof B(t).HTMLElement}function X(t){return t instanceof B(t).Element}function Y(t){if(typeof ShadowRoot==="undefined"){return false}var e=B(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function N(t){var e=M(t),r=e.overflow,o=e.overflowX,i=e.overflowY,n=e.display;return/auto|scroll|overlay|hidden|clip/.test(r+i+o)&&!["inline","contents"].includes(n)}function K(t){return["table","td","th"].includes(W(t))}function q(t){var e=G();var r=M(t);return r.transform!=="none"||r.perspective!=="none"||!e&&(r.backdropFilter?r.backdropFilter!=="none":false)||!e&&(r.filter?r.filter!=="none":false)||["transform","perspective","filter"].some((function(t){return(r.willChange||"").includes(t)}))||["paint","layout","strict","content"].some((function(t){return(r.contain||"").includes(t)}))}function G(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}function J(t){return["html","body","#document"].includes(W(t))}var Q=Math.min;var Z=Math.max;var $=Math.round;function tt(t){var e=M(t);var r=parseFloat(e.width)||0;var o=parseFloat(e.height)||0;var i=V(t);var n=i?t.offsetWidth:r;var a=i?t.offsetHeight:o;var l=$(r)!==n||$(o)!==a;if(l){r=n;o=a}return{width:r,height:o,fallback:l}}function et(t){return!X(t)?t.contextElement:t}var rt={x:1,y:1};function ot(t){var e=et(t);if(!V(e)){return rt}var r=e.getBoundingClientRect();var o=tt(e),i=o.width,n=o.height,a=o.fallback;var l=(a?$(r.width):r.width)/i;var s=(a?$(r.height):r.height)/n;if(!l||!Number.isFinite(l)){l=1}if(!s||!Number.isFinite(s)){s=1}return{x:l,y:s}}var it={x:0,y:0};function nt(t,e,r){var o,i;if(e===void 0){e=true}if(!G()){return it}var n=t?B(t):window;if(!r||e&&r!==n){return it}return{x:((o=n.visualViewport)==null?void 0:o.offsetLeft)||0,y:((i=n.visualViewport)==null?void 0:i.offsetTop)||0}}function at(t,e,r,o){if(e===void 0){e=false}if(r===void 0){r=false}var i=t.getBoundingClientRect();var n=et(t);var a=rt;if(e){if(o){if(X(o)){a=ot(o)}}else{a=ot(t)}}var l=nt(n,r,o);var s=(i.left+l.x)/a.x;var c=(i.top+l.y)/a.y;var u=i.width/a.x;var f=i.height/a.y;if(n){var p=B(n);var d=o&&X(o)?B(o):o;var h=p.frameElement;while(h&&o&&d!==p){var b=ot(h);var v=h.getBoundingClientRect();var g=getComputedStyle(h);v.x+=(h.clientLeft+parseFloat(g.paddingLeft))*b.x;v.y+=(h.clientTop+parseFloat(g.paddingTop))*b.y;s*=b.x;c*=b.y;u*=b.x;f*=b.y;s+=v.x;c+=v.y;h=B(h).frameElement}}return _({width:u,height:f,x:s,y:c})}function lt(t){return((U(t)?t.ownerDocument:t.document)||window.document).documentElement}function st(t){if(X(t)){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ct(t){var e=t.rect,r=t.offsetParent,o=t.strategy;var i=V(r);var n=lt(r);if(r===n){return e}var a={scrollLeft:0,scrollTop:0};var l={x:1,y:1};var s={x:0,y:0};if(i||!i&&o!=="fixed"){if(W(r)!=="body"||N(n)){a=st(r)}if(V(r)){var c=at(r);l=ot(r);s.x=c.x+r.clientLeft;s.y=c.y+r.clientTop}}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-a.scrollLeft*l.x+s.x,y:e.y*l.y-a.scrollTop*l.y+s.y}}function ut(t){return at(lt(t)).left+st(t).scrollLeft}function ft(t){var e=lt(t);var r=st(t);var o=t.ownerDocument.body;var i=Z(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth);var n=Z(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);var a=-r.scrollLeft+ut(t);var l=-r.scrollTop;if(M(o).direction==="rtl"){a+=Z(e.clientWidth,o.clientWidth)-i}return{width:i,height:n,x:a,y:l}}function pt(t){if(W(t)==="html"){return t}var e=t.assignedSlot||t.parentNode||Y(t)&&t.host||lt(t);return Y(e)?e.host:e}function dt(t){var e=pt(t);if(J(e)){return e.ownerDocument.body}if(V(e)&&N(e)){return e}return dt(e)}function ht(t,e){var r;if(e===void 0){e=[]}var o=dt(t);var i=o===((r=t.ownerDocument)==null?void 0:r.body);var n=B(o);if(i){return e.concat(n,n.visualViewport||[],N(o)?o:[])}return e.concat(o,ht(o))}function bt(t,e){var r=B(t);var o=lt(t);var i=r.visualViewport;var n=o.clientWidth;var a=o.clientHeight;var l=0;var s=0;if(i){n=i.width;a=i.height;var c=G();if(!c||c&&e==="fixed"){l=i.offsetLeft;s=i.offsetTop}}return{width:n,height:a,x:l,y:s}}function vt(t,e){var r=at(t,true,e==="fixed");var o=r.top+t.clientTop;var i=r.left+t.clientLeft;var n=V(t)?ot(t):{x:1,y:1};var a=t.clientWidth*n.x;var l=t.clientHeight*n.y;var s=i*n.x;var c=o*n.y;return{width:a,height:l,x:s,y:c}}function gt(t,e,r){var o;if(e==="viewport"){o=bt(t,r)}else if(e==="document"){o=ft(lt(t))}else if(X(e)){o=vt(e,r)}else{var i=nt(t);o=__assign(__assign({},e),{x:e.x-i.x,y:e.y-i.y})}return _(o)}function mt(t,e){var r=pt(t);if(r===e||!X(r)||J(r)){return false}return M(r).position==="fixed"||mt(r,e)}function yt(t,e){var r=e.get(t);if(r){return r}var o=ht(t).filter((function(t){return X(t)&&W(t)!=="body"}));var i=null;var n=M(t).position==="fixed";var a=n?pt(t):t;while(X(a)&&!J(a)){var l=M(a);var s=q(a);if(!s&&l.position==="fixed"){i=null}var c=n?!s&&!i:!s&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||N(a)&&!s&&mt(t,a);if(c){o=o.filter((function(t){return t!==a}))}else{i=l}a=pt(a)}e.set(t,o);return o}function xt(t){var e=t.element,r=t.boundary,o=t.rootBoundary,i=t.strategy;var n=r==="clippingAncestors"?yt(e,this._c):[].concat(r);var a=__spreadArray(__spreadArray([],n,true),[o],false);var l=a[0];var s=a.reduce((function(t,r){var o=gt(e,r,i);t.top=Z(o.top,t.top);t.right=Q(o.right,t.right);t.bottom=Q(o.bottom,t.bottom);t.left=Z(o.left,t.left);return t}),gt(e,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function wt(t){return tt(t)}function _t(t,e){if(!V(t)||M(t).position==="fixed"){return null}if(e){return e(t)}return t.offsetParent}function kt(t){var e=pt(t);while(V(e)&&!J(e)){if(q(e)){return e}else{e=pt(e)}}return null}function St(t,e){var r=B(t);if(!V(t)){return r}var o=_t(t,e);while(o&&K(o)&&M(o).position==="static"){o=_t(o,e)}if(o&&(W(o)==="html"||W(o)==="body"&&M(o).position==="static"&&!q(o))){return r}return o||kt(t)||r}function Tt(t,e,r){var o=V(e);var i=lt(e);var n=r==="fixed";var a=at(t,true,n,e);var l={scrollLeft:0,scrollTop:0};var s={x:0,y:0};if(o||!o&&!n){if(W(e)!=="body"||N(i)){l=st(e)}if(V(e)){var c=at(e,true,n,e);s.x=c.x+e.clientLeft;s.y=c.y+e.clientTop}else if(i){s.x=ut(i)}}return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}var Lt={getClippingRect:xt,convertOffsetParentRelativeRectToViewportRelativeRect:ct,isElement:X,getDimensions:wt,getOffsetParent:St,getDocumentElement:lt,getScale:ot,getElementRects:function(t){return __awaiter(this,void 0,void 0,(function(){var e,r,o,i,n,a,l,s;var c;return __generator(this,(function(u){switch(u.label){case 0:e=t.reference,r=t.floating,o=t.strategy;i=this.getOffsetParent||St;n=this.getDimensions;c={};a=Tt;l=[e];return[4,i(r)];case 1:c.reference=a.apply(void 0,l.concat([u.sent(),o]));s=[{x:0,y:0}];return[4,n(r)];case 2:return[2,(c.floating=__assign.apply(void 0,s.concat([u.sent()])),c)]}}))}))},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return M(t).direction==="rtl"}};var Ct=function(t,e,r){var o=new Map;var i=__assign({platform:Lt},r);var n=__assign(__assign({},i.platform),{_c:o});return y(t,e,__assign(__assign({},i),{platform:n}))};var Et='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;z-index:200;display:inline-flex;width:auto;margin-top:-16px !important;margin-left:-3px !important;-webkit-tap-highlight-color:transparent}.duet-tooltip{position:absolute;z-index:950;display:none;width:282px;min-height:48px;max-height:340px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 41, 77);visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-radius:4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.07);opacity:0;transition:300ms ease;transform-origin:100% 100%}.duet-tooltip.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(228, 228, 230);box-shadow:0 2px 10px 0 rgba(117, 117, 117, 0.13)}.duet-tooltip .arrow{position:absolute;width:22px;height:22px;pointer-events:none}.duet-tooltip .arrow.bottom,.duet-tooltip .arrow.bottom-start,.duet-tooltip .arrow.bottom-end{top:-21px}.duet-tooltip .arrow-container{position:relative;width:100%;height:100%;pointer-events:none}.duet-tooltip .arrow-container::after{position:absolute;z-index:200;width:0;height:0;pointer-events:none;content:""}.duet-tooltip .arrow-container::before{position:absolute;z-index:100;width:0;height:0;pointer-events:none;content:""}.duet-tooltip .arrow-container.top::after,.duet-tooltip .arrow-container.top-start::after,.duet-tooltip .arrow-container.top-end::after{bottom:2px;left:2px;border:10px solid transparent;border-top:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.top::before,.duet-tooltip .arrow-container.top-start::before,.duet-tooltip .arrow-container.top-end::before{bottom:-1px;left:1px;border:11px solid transparent;border-top:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip .arrow-container.top::before,.duet-theme-turva .duet-tooltip .arrow-container.top-start::before,.duet-theme-turva .duet-tooltip .arrow-container.top-end::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip .arrow-container.bottom::after,.duet-tooltip .arrow-container.bottom-start::after,.duet-tooltip .arrow-container.bottom-end::after{bottom:1px;left:2px;border:10px solid transparent;border-bottom:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.bottom::before,.duet-tooltip .arrow-container.bottom-start::before,.duet-tooltip .arrow-container.bottom-end::before{bottom:1px;left:1px;border:11px solid transparent;border-bottom:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip .arrow-container.bottom::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-start::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-end::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip.duet-tooltip-has-label{right:auto !important;left:0;width:282px !important;transform-origin:0 0 !important}.duet-tooltip.duet-tooltip-active{visibility:visible;opacity:1;transition-property:transform, opacity}.duet-tooltip-button{z-index:100;display:inline-block;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 !important;margin-right:-12px;line-height:normal !important;color:rgb(0, 119, 179);white-space:nowrap;cursor:pointer;background:transparent !important;border-radius:4px}.duet-tooltip-button.duet-theme-turva{color:rgb(198, 12, 48)}.duet-tooltip-button:hover{color:rgb(0, 77, 128)}.duet-tooltip-button:hover.duet-theme-turva{color:rgb(148, 9, 37)}.duet-tooltip-button:focus{background:transparent !important;outline:0}:host(.user-is-tabbing) .duet-tooltip-button:focus{background:transparent !important;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important}:host(.user-is-tabbing) .duet-tooltip-button.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important}.duet-tooltip-button svg{width:20px;height:20px;pointer-events:none}.duet-tooltip-button-has-label{margin-right:0}.duet-tooltip-scrollable{padding:20px !important;width:100%;max-height:250px;padding-right:25px !important;overflow-y:auto;-webkit-hyphens:auto;hyphens:auto;border-radius:4px;-webkit-overflow-scrolling:touch}.duet-tooltip-scrollable:focus{outline:none}:host(.user-is-tabbing) .duet-tooltip-scrollable:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-theme-turva .duet-tooltip-scrollable:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-tooltip-scrollable::-webkit-scrollbar{width:4px}.duet-tooltip-scrollable::-webkit-scrollbar-track{border-radius:4px}.duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(225, 227, 230);border-radius:4px}.duet-theme-turva .duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(228, 228, 230)}.duet-tooltip-label{position:relative;z-index:100;display:inline-block;max-width:calc(100% - 30px);margin-left:12px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.25;text-align:left;white-space:normal;vertical-align:top}.duet-theme-turva .duet-tooltip-label{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-tooltip-close{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:17px;height:17px;min-height:0 !important;padding:0 !important;margin:0 !important;line-height:normal;color:rgb(0, 41, 77);cursor:pointer;background:rgb(245, 248, 250);border-radius:50%;-webkit-appearance:none;appearance:none}.duet-tooltip-close:focus{outline:none;box-shadow:0 0 0 2px rgb(0, 119, 179)}.duet-theme-turva .duet-tooltip-close:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px rgb(23, 28, 58)}';var Rt=t("duet_tooltip",function(){function t(t){var r=this;e(this,t);this.mql=[window.matchMedia(n.replace(/'/g,"")),window.matchMedia(a.replace(/'/g,""))];this.tooltipId=s("DuetTooltip");this.openTooltip=function(){r.focusTarget="tooltip";r.active=true};this.closeTooltip=function(t){if(t===void 0){t=false}if(t){r.focusTarget="trigger"}r.active=false};this.toggleOpen=function(){r.active?r.closeTooltip():r.openTooltip()};this.handleFocusOut=function(t){if(!r.active){return}var e=t.relatedTarget;if(e==null||r.element.shadowRoot.contains(e)||r.element.contains(e)){return}r.closeTooltip()};this.handleKeyDown=function(t){var e=t.keyCode===27;var o=t.target===r.scrollableEl&&t.shiftKey&&t.keyCode===9;if(e||o){r.closeTooltip(true)}};this.handleCloseClick=function(){r.closeTooltip(true)};this.updatePlacement=function(){return __awaiter(r,void 0,void 0,(function(){var t,e,r,o,i;return __generator(this,(function(n){switch(n.label){case 0:r=true;if(this.breakpoint==="large"&&!this.mql[1].matches){r=false}else if(this.breakpoint==="medium"&&!this.mql[0].matches){r=false}o=r?"top-start":"top-end";if(this.direction==="left"){o="top-end"}else if(this.direction==="right"){o="top-start"}return[4,Ct(this.buttonEl,this.tooltipEl,{placement:o,middleware:[I(),F({padding:5}),C({element:this.arrowEl})]})];case 1:i=n.sent();this.tooltipY=i.y;this.tooltipX=i.x;this.placement=i.placement;this.arrowY=(t=i.middlewareData.arrow)===null||t===void 0?void 0:t.y;this.arrowX=(e=i.middlewareData.arrow)===null||e===void 0?void 0:e.x;return[2]}}))}))};this.placement="bottom";this.tooltipY=undefined;this.tooltipX=undefined;this.arrowX=undefined;this.arrowY=undefined;this.theme="";this.language=c();this.accessibleLabelDefault={fi:"Näytä lisätietoja",en:"Show more information",sv:"Visa mer tilläggsuppgifter"};this.accessibleLabel=u(this.accessibleLabelDefault,this.language);this.accessibleInputLabel=undefined;this.accessibleCloseLabelDefault={fi:"Sulje lisätiedot",en:"Close details",sv:"Stäng tilläggsuppgifter"};this.accessibleCloseLabel=u(this.accessibleCloseLabelDefault,this.language);this.label="";this.breakpoint="medium";this.direction="auto";this.positionVertical="0";this.positionHorizontal="0";this.active=false}t.prototype.watchLanguageStateHandler=function(t,e){if(t!==e&&this.accessibleLabel===this.accessibleLabelDefault[e]){this.accessibleLabel=u(this.accessibleLabelDefault,t)}if(t!==e&&this.accessibleCloseLabel===this.accessibleCloseLabelDefault[e]){this.accessibleCloseLabel=u(this.accessibleCloseLabelDefault,t)}};t.prototype.componentWillLoad=function(){l(this)};t.prototype.componentDidLoad=function(){{this.updatePlacement()}};t.prototype.componentDidUpdate=function(){switch(this.focusTarget){case"tooltip":this.scrollableEl.focus({preventScroll:true});break;case"trigger":this.buttonEl.focus({preventScroll:true});break}this.focusTarget=null};t.prototype.connectedCallback=function(){f(this)};t.prototype.disconnectedCallback=function(){p(this)};t.prototype.onScroll=function(){var t=this;clearTimeout(this.scrollTimer);this.scrollTimer=setTimeout((function(){if(t.active){t.updatePlacement()}}),100)};t.prototype.handleWindowResize=function(){var t=this;clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout((function(){t.updatePlacement()}),100)};t.prototype.handleDocumentClick=function(t){var e=this;if(!this.active){return}var r=t.composedPath();var o=r.every((function(t){return t!==e.element}));if(o){this.closeTooltip()}};t.prototype.handleActiveChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(r){if(t){this.updatePlacement()}else{setTimeout((function(){return e.updatePlacement()}),300)}return[2]}))}))};t.prototype.render=function(){var t,e;var i=this;var n={transform:"translateY(".concat(this.positionVertical,") translateX(").concat(this.positionHorizontal,")"),zIndex:this.active?"201":""};var a={top:"".concat(this.tooltipY,"px"),left:"".concat(this.tooltipX,"px"),display:"block"};var l={top:this.arrowY?"".concat(this.arrowY,"px"):undefined,left:this.arrowX?"".concat(this.arrowX,"px"):undefined};return r(o,{style:n},r("button",{ref:function(t){return i.buttonEl=t},"aria-controls":this.tooltipId,"aria-expanded":this.active?"true":"false",onClick:this.toggleOpen,type:"button",class:{"duet-tooltip-button":true,"duet-tooltip-button-has-label":!!this.label,"duet-theme-turva":this.theme==="turva"}},r("svg",{"aria-hidden":"true",role:"img",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"m13.5 17.25c-1.241 0-2.25-1.009-2.25-2.25v-3.75h-.75c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h.75c.827 0 1.5.673 1.5 1.5v3.75c0 .414.336.75.75.75h.75c.414 0 .75.336.75.75s-.336.75-.75.75z"}),r("circle",{cx:"11.625",cy:"7.125",r:"1.125"}),r("path",{d:"m12 24c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5z"})),this.label?r("span",{class:"duet-tooltip-label"},this.label):r("duet-visually-hidden",null,this.accessibleInputLabel?"".concat(this.accessibleInputLabel,", ").concat(this.accessibleLabel):this.accessibleLabel)),r("div",{ref:function(t){return i.tooltipEl=t},style:a,class:{"duet-tooltip":true,"duet-theme-turva":this.theme==="turva","duet-tooltip-has-label":!!this.label,"duet-tooltip-active":this.active===true},onClick:function(t){return t.stopPropagation()},onKeyDown:this.handleKeyDown,onFocusout:this.handleFocusOut},r("div",{ref:function(t){return i.scrollableEl=t},class:"duet-tooltip-scrollable",tabindex:"0",id:this.tooltipId},r("slot",null)),r("div",{ref:function(t){return i.arrowEl=t},class:(t={arrow:true},t[this.placement]=true,t),style:l},r("div",{class:(e={"arrow-container":true},e[this.placement]=true,e)})),r("button",{type:"button",class:"duet-tooltip-close",onClick:this.handleCloseClick},r("duet-icon",{name:"navigation-close-small",margin:"none",color:"currentColor",size:"xxx-small"}),r("duet-visually-hidden",null,this.accessibleCloseLabel))))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{language:["watchLanguageStateHandler"],active:["handleActiveChange"]}},enumerable:false,configurable:true});return t}());Rt.style=Et}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- System.register(["./p-fbef8044.system.js","./p-33b3aba4.system.js"],(function(e){"use strict";var a,t,r,i;return{setters:[function(e){a=e.r;t=e.h;r=e.H},function(e){i=e.i}],execute:function(){var n='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;width:100%;height:100%}.shaped-image{position:relative;display:inline-block;width:100%;height:100%}.shaped-image .shaped-image-mask{position:relative;display:block;width:100%;height:100%;overflow:hidden;border-radius:25%;transform:rotate(var(--rotation))}.shaped-image .shaped-image-mask .shaped-image-img{position:relative;display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:cover;transform:scale(1.07) rotate(calc(-1 * var(--rotation)));transform-origin:center}.shaped-image.duet-theme-turva .shaped-image-mask{transform:none;-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-repeat:no-repeat;mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");mask-repeat:no-repeat}.shaped-image.duet-theme-turva .shaped-image-mask .shaped-image-img{transform:none}';var s=e("duet_shaped_image",function(){function e(e){a(this,e);this.theme="";this.accessibleLabel=undefined;this.src=undefined;this.rotation=7}e.prototype.componentWillLoad=function(){i(this)};e.prototype.render=function(){var e={"--rotation":"".concat(this.rotation,"deg")};return t(r,{class:{x:true}},t("span",{class:{"duet-theme-turva":this.theme==="turva","shaped-image":true},role:"img","aria-label":this.accessibleLabel,style:e},t("span",{class:"shaped-image-mask",role:"presentation"},t("span",{class:"shaped-image-img",role:"presentation",style:{backgroundImage:'url("'.concat(this.src,'")')}}))))};return e}());s.style=n}}}));