@duetds/components 6.11.0 → 6.11.2

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 (590) hide show
  1. package/hydrate/index.js +183 -71
  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 +2 -2
  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 +1 -1
  15. package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
  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 +52 -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 +2 -2
  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 +3 -2
  38. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  39. package/lib/cjs/duet-multiselect.cjs.entry.js +23 -4
  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 +1 -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 +1 -1
  46. package/lib/cjs/duet-popup-menu.cjs.entry.js +6 -33
  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 +1 -1
  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 +1 -1
  55. package/lib/cjs/duet-show-more.cjs.entry.js +1 -1
  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 +2 -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-button_2.cjs.entry.js +92 -0
  73. package/lib/cjs/duet-tooltip.cjs.entry.js +35 -50
  74. package/lib/cjs/duet-tray.cjs.entry.js +1 -1
  75. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  76. package/lib/cjs/duet-upload-item.cjs.entry.js +1 -1
  77. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  78. package/lib/cjs/duet.cjs.js +2 -2
  79. package/lib/cjs/{focus-utils-f19181d6.js → focus-utils-e486f272.js} +1 -1
  80. package/lib/cjs/{index-ef0568d5.js → index-04de4d35.js} +1 -1
  81. package/lib/cjs/loader.cjs.js +2 -2
  82. package/lib/cjs/{floating-ui.dom.esm-3801794e.js → teleport-d79735ca.js} +36 -0
  83. package/lib/collection/collection-manifest.json +2 -1
  84. package/lib/collection/components/duet-button/duet-button.css +22 -1
  85. package/lib/collection/components/duet-input/duet-input.css +1 -1
  86. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +2 -1
  87. package/lib/collection/components/duet-multiselect/duet-multiselect.css +37 -0
  88. package/lib/collection/components/duet-multiselect/duet-multiselect.js +39 -2
  89. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +1 -0
  90. package/lib/collection/components/duet-table/duet-table.css +13 -11
  91. package/lib/collection/components/duet-table/duet-table.js +10 -1
  92. package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +87 -0
  93. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +175 -0
  94. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +2 -0
  95. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +9 -12
  96. package/lib/collection/components/duet-tooltip/duet-tooltip.css +4 -61
  97. package/lib/collection/components/duet-tooltip/duet-tooltip.js +38 -47
  98. package/lib/collection/components/duet-upload/duet-upload.js +14 -4
  99. package/lib/collection/components/duet-upload/upload-validators.js +19 -0
  100. package/lib/collection/utils/teleport.js +11 -5
  101. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  102. package/lib/dist-custom-elements/duet-alert.js +1 -1
  103. package/lib/dist-custom-elements/duet-badge.js +1 -1
  104. package/lib/dist-custom-elements/duet-banner.js +4 -4
  105. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  106. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  107. package/lib/dist-custom-elements/duet-button.js +1 -1
  108. package/lib/dist-custom-elements/duet-callout.js +3 -3
  109. package/lib/dist-custom-elements/duet-caption.js +1 -1
  110. package/lib/dist-custom-elements/duet-card.js +3 -3
  111. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  112. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  113. package/lib/dist-custom-elements/duet-chip.js +2 -2
  114. package/lib/dist-custom-elements/duet-choice-group.js +17 -11
  115. package/lib/dist-custom-elements/duet-choice.js +5 -5
  116. package/lib/dist-custom-elements/duet-collapsible.js +2 -2
  117. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  118. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  119. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  120. package/lib/dist-custom-elements/duet-date-picker.js +25 -19
  121. package/lib/dist-custom-elements/duet-divider.js +1 -1
  122. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  123. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  124. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  125. package/lib/dist-custom-elements/duet-footer.js +4 -4
  126. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  127. package/lib/dist-custom-elements/duet-grid.js +1 -1
  128. package/lib/dist-custom-elements/duet-header.js +8 -8
  129. package/lib/dist-custom-elements/duet-heading.js +1 -1
  130. package/lib/dist-custom-elements/duet-hero.js +9 -9
  131. package/lib/dist-custom-elements/duet-icon.js +1 -1
  132. package/lib/dist-custom-elements/duet-input.js +1 -1
  133. package/lib/dist-custom-elements/duet-label.js +1 -1
  134. package/lib/dist-custom-elements/duet-layout.js +1 -1
  135. package/lib/dist-custom-elements/duet-link.js +1 -1
  136. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  137. package/lib/dist-custom-elements/duet-list.js +1 -1
  138. package/lib/dist-custom-elements/duet-logo.js +1 -1
  139. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  140. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  141. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  142. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  143. package/lib/dist-custom-elements/duet-menu-bar.js +4 -3
  144. package/lib/dist-custom-elements/duet-modal.js +7 -7
  145. package/lib/dist-custom-elements/duet-multiselect.js +44 -18
  146. package/lib/dist-custom-elements/duet-nav.js +1 -1
  147. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  148. package/lib/dist-custom-elements/duet-notification.js +2 -2
  149. package/lib/dist-custom-elements/duet-number-input.js +23 -17
  150. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  151. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  152. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  153. package/lib/dist-custom-elements/duet-popup-menu-item.js +2 -2
  154. package/lib/dist-custom-elements/duet-popup-menu.js +2 -30
  155. package/lib/dist-custom-elements/duet-progress.js +1 -1
  156. package/lib/dist-custom-elements/duet-promo-card.js +3 -3
  157. package/lib/dist-custom-elements/duet-radio-group.js +17 -11
  158. package/lib/dist-custom-elements/duet-radio.js +1 -1
  159. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  160. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  161. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  162. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  163. package/lib/dist-custom-elements/duet-select.js +1 -1
  164. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  165. package/lib/dist-custom-elements/duet-show-more.js +5 -5
  166. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  167. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  168. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  169. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
  170. package/lib/dist-custom-elements/duet-slideout.js +2 -2
  171. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  172. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  173. package/lib/dist-custom-elements/duet-step.js +4 -4
  174. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  175. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  176. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  177. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  178. package/lib/dist-custom-elements/duet-submenu-bar.js +3 -2
  179. package/lib/dist-custom-elements/duet-tab-group.js +27 -21
  180. package/lib/dist-custom-elements/duet-tab.js +1 -1
  181. package/lib/dist-custom-elements/duet-table.js +1 -1
  182. package/lib/dist-custom-elements/duet-textarea.js +21 -15
  183. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  184. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  185. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  186. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  187. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  188. package/lib/dist-custom-elements/duet-tooltip-button.d.ts +11 -0
  189. package/lib/dist-custom-elements/duet-tooltip-button.js +9 -0
  190. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  191. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  192. package/lib/dist-custom-elements/duet-tray.js +3 -3
  193. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  194. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  195. package/lib/dist-custom-elements/duet-upload.js +58 -20
  196. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  197. package/lib/dist-custom-elements/index.js +1 -1
  198. package/lib/dist-custom-elements/{p-1f5d4fdb.js → p-2159ffc3.js} +2 -2
  199. package/lib/dist-custom-elements/{p-44376288.js → p-229871c3.js} +5 -5
  200. package/lib/dist-custom-elements/{p-cedbe8b5.js → p-2bd44c3c.js} +3 -3
  201. package/lib/dist-custom-elements/{p-62d5eeeb.js → p-2ca516d3.js} +2 -2
  202. package/lib/dist-custom-elements/{p-baccad0b.js → p-32fdcec8.js} +1 -1
  203. package/lib/dist-custom-elements/{p-85edc0fe.js → p-351b0f8c.js} +1 -1
  204. package/lib/dist-custom-elements/p-411af53d.js +145 -0
  205. package/lib/dist-custom-elements/{p-238d0ad2.js → p-44316a49.js} +1 -1
  206. package/lib/dist-custom-elements/{p-773bf99a.js → p-4f3d4b28.js} +1 -1
  207. package/lib/dist-custom-elements/p-66ab9994.js +273 -0
  208. package/lib/dist-custom-elements/{p-ba31dce0.js → p-67584a63.js} +3 -3
  209. package/lib/dist-custom-elements/{p-0c506783.js → p-726f277c.js} +5 -5
  210. package/lib/dist-custom-elements/{p-757bf6af.js → p-748fb4e9.js} +1 -1
  211. package/lib/{esm/floating-ui.dom.esm-37dc174a.js → dist-custom-elements/p-784fe90e.js} +36 -1
  212. package/lib/dist-custom-elements/{p-b761b810.js → p-7a906a81.js} +2 -2
  213. package/lib/dist-custom-elements/{p-0ada372b.js → p-7c68ac5a.js} +44 -55
  214. package/lib/dist-custom-elements/{p-55c2bb2d.js → p-7ece12ec.js} +1 -1
  215. package/lib/dist-custom-elements/{p-ca8561b3.js → p-9dc40c4f.js} +22 -16
  216. package/lib/dist-custom-elements/{p-31eb790f.js → p-a5cb00f4.js} +2 -2
  217. package/lib/dist-custom-elements/{p-c35ceaed.js → p-b244b9d4.js} +1 -1
  218. package/lib/dist-custom-elements/{p-f462e031.js → p-b260c7b8.js} +1 -1
  219. package/lib/dist-custom-elements/{p-2c9478af.js → p-b4163126.js} +1 -1
  220. package/lib/dist-custom-elements/{p-dfbbdce3.js → p-baa9e0f3.js} +1 -1
  221. package/lib/dist-custom-elements/{p-980b82ed.js → p-c56b4bad.js} +1 -1
  222. package/lib/dist-custom-elements/{p-e71e9330.js → p-c624c26b.js} +17 -11
  223. package/lib/dist-custom-elements/{p-00416416.js → p-ce09b821.js} +1 -1
  224. package/lib/dist-custom-elements/{p-1212aab5.js → p-d9bf49cf.js} +1 -1
  225. package/lib/dist-custom-elements/{p-0aeec550.js → p-df34106b.js} +1 -1
  226. package/lib/dist-custom-elements/p-e22956bf.js +72 -0
  227. package/lib/dist-custom-elements/{p-04bb5c9f.js → p-e354b687.js} +1 -1
  228. package/lib/dist-custom-elements/{p-264ce363.js → p-e4198c92.js} +1 -1
  229. package/lib/dist-custom-elements/p-f13081a0.js +87 -0
  230. package/lib/dist-custom-elements/{p-42fe016c.js → p-f30df343.js} +1 -1
  231. package/lib/dist-custom-elements/{p-127ad24e.js → p-f79fe19b.js} +1 -1
  232. package/lib/dist-custom-elements/{p-7d158728.js → p-f9076d3e.js} +10 -10
  233. package/lib/duet/duet.esm.js +1 -1
  234. package/lib/duet/duet.js +1 -1
  235. package/lib/duet/p-00cf42c2.system.js +4 -0
  236. package/lib/duet/p-00ff74e5.system.entry.js +4 -0
  237. package/lib/duet/{p-8fe534ac.entry.js → p-02c5180a.entry.js} +1 -1
  238. package/lib/duet/p-042b1636.entry.js +4 -0
  239. package/lib/duet/p-05dc550e.entry.js +4 -0
  240. package/lib/duet/{p-6e8dbf19.system.entry.js → p-07bea2fe.system.entry.js} +1 -1
  241. package/lib/duet/{p-015f92ba.system.entry.js → p-0e6350bf.system.entry.js} +1 -1
  242. package/lib/duet/{p-2867f068.system.entry.js → p-1002e2ae.system.entry.js} +1 -1
  243. package/lib/duet/{p-4b9c271c.entry.js → p-107887be.entry.js} +1 -1
  244. package/lib/duet/{p-42e29141.system.entry.js → p-11c031c1.system.entry.js} +1 -1
  245. package/lib/duet/{p-864ccce8.system.entry.js → p-1274aa0f.system.entry.js} +1 -1
  246. package/lib/duet/{p-dc003f39.entry.js → p-14fc2fba.entry.js} +1 -1
  247. package/lib/duet/{p-cd1ed6f6.entry.js → p-1507d44f.entry.js} +1 -1
  248. package/lib/duet/{p-8cde4aa3.entry.js → p-164aa67a.entry.js} +1 -1
  249. package/lib/duet/{p-8d1df4a0.entry.js → p-18607658.entry.js} +1 -1
  250. package/lib/duet/{p-c8967f73.system.entry.js → p-197496f4.system.entry.js} +1 -1
  251. package/lib/duet/{p-c1b71a60.entry.js → p-19babdcf.entry.js} +1 -1
  252. package/lib/duet/{p-90b0a60f.system.entry.js → p-1a5b2354.system.entry.js} +1 -1
  253. package/lib/duet/{p-2bfb9cf4.entry.js → p-1dc34d52.entry.js} +1 -1
  254. package/lib/duet/p-1f2686b7.system.entry.js +4 -0
  255. package/lib/duet/{p-3a47193c.entry.js → p-20a3bf2b.entry.js} +1 -1
  256. package/lib/duet/p-23ba8301.entry.js +4 -0
  257. package/lib/duet/{p-84848786.entry.js → p-247f5600.entry.js} +1 -1
  258. package/lib/duet/{p-21e22519.system.entry.js → p-262f4bf7.system.entry.js} +1 -1
  259. package/lib/duet/{p-79b6ac98.js → p-27530b53.js} +1 -1
  260. package/lib/duet/{p-379b7a5b.system.entry.js → p-27c853fe.system.entry.js} +1 -1
  261. package/lib/duet/{p-200f1abc.entry.js → p-2a49661d.entry.js} +1 -1
  262. package/lib/duet/{p-440aff1c.system.entry.js → p-2a6ca4ea.system.entry.js} +1 -1
  263. package/lib/duet/{p-3dbbd772.entry.js → p-2b1d7c14.entry.js} +1 -1
  264. package/lib/duet/{p-5ba959af.system.entry.js → p-2d1e8451.system.entry.js} +1 -1
  265. package/lib/duet/{p-03b229f9.system.entry.js → p-2d4c9a5b.system.entry.js} +1 -1
  266. package/lib/duet/{p-f15e031a.system.entry.js → p-2dd573a3.system.entry.js} +1 -1
  267. package/lib/duet/{p-6fba1a6d.entry.js → p-2ec51250.entry.js} +1 -1
  268. package/lib/duet/{p-84492c72.entry.js → p-2f35384b.entry.js} +1 -1
  269. package/lib/duet/p-2f3e999c.system.entry.js +4 -0
  270. package/lib/duet/p-30218ca6.system.entry.js +4 -0
  271. package/lib/duet/{p-6a1f6639.system.entry.js → p-31441d04.system.entry.js} +1 -1
  272. package/lib/duet/{p-3499c5ce.system.entry.js → p-375a323f.system.entry.js} +1 -1
  273. package/lib/duet/{p-4f49a9ca.entry.js → p-37fb65e4.entry.js} +1 -1
  274. package/lib/duet/{p-caf1d401.entry.js → p-3b651d8c.entry.js} +1 -1
  275. package/lib/duet/{p-26fc5f52.system.entry.js → p-3ba5bafd.system.entry.js} +1 -1
  276. package/lib/duet/{p-e414a557.js → p-3c2ae0d5.js} +1 -1
  277. package/lib/duet/{p-0a5bea68.entry.js → p-3ca2dafc.entry.js} +1 -1
  278. package/lib/duet/p-3d8f8731.entry.js +4 -0
  279. package/lib/duet/{p-d58ad6fe.system.entry.js → p-3d94b518.system.entry.js} +1 -1
  280. package/lib/duet/{p-9a9bc779.entry.js → p-3f96bb94.entry.js} +1 -1
  281. package/lib/duet/{p-b5546c64.entry.js → p-3fcc6db9.entry.js} +1 -1
  282. package/lib/duet/{p-e66b2cf4.entry.js → p-475d6e82.entry.js} +1 -1
  283. package/lib/duet/{p-762f26d7.entry.js → p-489c0d61.entry.js} +1 -1
  284. package/lib/duet/{p-9b96a374.entry.js → p-4aa7c43e.entry.js} +1 -1
  285. package/lib/duet/{p-6105d937.entry.js → p-4c063f5f.entry.js} +1 -1
  286. package/lib/duet/{p-b6d43529.entry.js → p-57fbcba7.entry.js} +1 -1
  287. package/lib/duet/{p-3a9e4386.system.entry.js → p-581baf04.system.entry.js} +1 -1
  288. package/lib/duet/{p-2827e61e.system.entry.js → p-5aa537c3.system.entry.js} +1 -1
  289. package/lib/duet/{p-1447cb8a.system.entry.js → p-5b27a74d.system.entry.js} +1 -1
  290. package/lib/duet/{p-75d98b0c.system.entry.js → p-5ccd0a8a.system.entry.js} +1 -1
  291. package/lib/duet/{p-ad3c2f28.entry.js → p-5d5f6c7c.entry.js} +1 -1
  292. package/lib/duet/{p-1eb8f4fe.system.entry.js → p-5e96a337.system.entry.js} +1 -1
  293. package/lib/duet/{p-358f27d4.system.entry.js → p-6049c423.system.entry.js} +1 -1
  294. package/lib/duet/{p-a481cf6f.entry.js → p-60b48a3d.entry.js} +1 -1
  295. package/lib/duet/{p-0de1d79f.entry.js → p-6586bc19.entry.js} +1 -1
  296. package/lib/duet/{p-95a2dc66.system.entry.js → p-66604d21.system.entry.js} +1 -1
  297. package/lib/duet/{p-a4f63bc8.entry.js → p-66dfe352.entry.js} +1 -1
  298. package/lib/duet/{p-19c4479c.entry.js → p-6753d3e9.entry.js} +1 -1
  299. package/lib/duet/{p-1b7bb41b.system.entry.js → p-6999dcca.system.entry.js} +1 -1
  300. package/lib/duet/{p-cfdd8822.system.entry.js → p-6a640a77.system.entry.js} +1 -1
  301. package/lib/duet/{p-30c6c9f0.entry.js → p-6ecf1c48.entry.js} +1 -1
  302. package/lib/duet/{p-fa579e10.system.entry.js → p-72e1da72.system.entry.js} +1 -1
  303. package/lib/duet/{p-35fddc0c.system.entry.js → p-7431d1f1.system.entry.js} +1 -1
  304. package/lib/duet/{p-bdd55461.system.entry.js → p-747807c9.system.entry.js} +1 -1
  305. package/lib/duet/{p-e009dd0e.entry.js → p-78207603.entry.js} +1 -1
  306. package/lib/duet/{p-c2860fc6.system.entry.js → p-7a0c7e22.system.entry.js} +1 -1
  307. package/lib/duet/{p-e53475fd.system.entry.js → p-7b8bd6ae.system.entry.js} +1 -1
  308. package/lib/duet/{p-a9dee517.system.entry.js → p-7d15ac32.system.entry.js} +1 -1
  309. package/lib/duet/{p-b29fac9e.entry.js → p-7de54682.entry.js} +1 -1
  310. package/lib/duet/{p-e0711844.system.entry.js → p-807acf6d.system.entry.js} +1 -1
  311. package/lib/duet/{p-ebd0deb2.entry.js → p-8459e611.entry.js} +1 -1
  312. package/lib/duet/{p-890ce3fa.entry.js → p-86c132c9.entry.js} +1 -1
  313. package/lib/duet/{p-2b79476c.system.entry.js → p-88b565dc.system.entry.js} +1 -1
  314. package/lib/duet/{p-deb6c0b1.system.entry.js → p-892dab61.system.entry.js} +1 -1
  315. package/lib/duet/{p-a7925c2c.system.entry.js → p-8ac9042e.system.entry.js} +1 -1
  316. package/lib/duet/{p-16493302.system.entry.js → p-8b533166.system.entry.js} +1 -1
  317. package/lib/duet/p-8c7ae2a9.system.js +4 -0
  318. package/lib/duet/p-8f416ae3.entry.js +4 -0
  319. package/lib/duet/{p-6c7a20e1.system.entry.js → p-9355b478.system.entry.js} +1 -1
  320. package/lib/duet/{p-312ae93d.system.entry.js → p-9364781c.system.entry.js} +2 -2
  321. package/lib/duet/{p-a5ee6446.entry.js → p-949c4fd0.entry.js} +1 -1
  322. package/lib/duet/{p-de933c56.system.entry.js → p-94ecf766.system.entry.js} +1 -1
  323. package/lib/duet/{p-1afb6da1.system.entry.js → p-9793321f.system.entry.js} +1 -1
  324. package/lib/duet/{p-22b301c0.entry.js → p-97b7d224.entry.js} +1 -1
  325. package/lib/duet/{p-798f633d.system.entry.js → p-9915e4e4.system.entry.js} +1 -1
  326. package/lib/duet/{p-49c0b3f8.entry.js → p-994fd476.entry.js} +1 -1
  327. package/lib/duet/{p-cad183f3.entry.js → p-99cc8fb5.entry.js} +1 -1
  328. package/lib/duet/{p-07b68373.entry.js → p-9e675661.entry.js} +1 -1
  329. package/lib/duet/{p-ed2fa79e.entry.js → p-9fbdd8b6.entry.js} +1 -1
  330. package/lib/duet/{p-ae4927ce.entry.js → p-a11c326b.entry.js} +1 -1
  331. package/lib/duet/{p-be8e6a2f.entry.js → p-a1d40591.entry.js} +1 -1
  332. package/lib/duet/{p-6ea838bf.entry.js → p-a262eecf.entry.js} +1 -1
  333. package/lib/duet/p-a47b67e2.system.entry.js +4 -0
  334. package/lib/duet/{p-61611577.entry.js → p-a6307cb3.entry.js} +1 -1
  335. package/lib/duet/{p-32d6a948.system.entry.js → p-a6b44386.system.entry.js} +1 -1
  336. package/lib/duet/{p-c3bf4ada.system.entry.js → p-a77b749b.system.entry.js} +1 -1
  337. package/lib/duet/{p-d86b661a.entry.js → p-a829f5f4.entry.js} +1 -1
  338. package/lib/duet/{p-ce48373f.system.entry.js → p-a8ea10a9.system.entry.js} +1 -1
  339. package/lib/duet/{p-f783a2bc.entry.js → p-a93132ea.entry.js} +1 -1
  340. package/lib/duet/{p-98894eb0.entry.js → p-a9997645.entry.js} +1 -1
  341. package/lib/duet/{p-0d941b02.system.entry.js → p-a9a34171.system.entry.js} +1 -1
  342. package/lib/duet/{p-cb620ca3.system.entry.js → p-aa6a1a0e.system.entry.js} +1 -1
  343. package/lib/duet/{p-6322975a.entry.js → p-ab26e29d.entry.js} +1 -1
  344. package/lib/duet/{p-ebaf813c.system.entry.js → p-ab7d36e8.system.entry.js} +1 -1
  345. package/lib/duet/{p-f80275c5.system.entry.js → p-abdf2879.system.entry.js} +1 -1
  346. package/lib/duet/{p-7d0c4a6e.entry.js → p-ac93ef4d.entry.js} +1 -1
  347. package/lib/duet/{p-dd2c8397.system.entry.js → p-aec52fd0.system.entry.js} +1 -1
  348. package/lib/duet/{p-2ed796cf.system.entry.js → p-b482b06d.system.entry.js} +1 -1
  349. package/lib/duet/{p-469c8430.entry.js → p-b4b2f99a.entry.js} +1 -1
  350. package/lib/duet/{p-5c9febf5.entry.js → p-b5ea61f3.entry.js} +1 -1
  351. package/lib/duet/{p-8b1084e1.entry.js → p-b6e0c13e.entry.js} +1 -1
  352. package/lib/duet/{p-04da6058.system.entry.js → p-bd3fd83f.system.entry.js} +1 -1
  353. package/lib/duet/p-be192c5b.js +4 -0
  354. package/lib/duet/{p-ec120930.system.entry.js → p-be52bfd0.system.entry.js} +1 -1
  355. package/lib/duet/{p-46547a79.entry.js → p-be567ab1.entry.js} +1 -1
  356. package/lib/duet/{p-c1aafc6e.entry.js → p-beb2fcfd.entry.js} +1 -1
  357. package/lib/duet/{p-ab308aa0.entry.js → p-c3c627fe.entry.js} +1 -1
  358. package/lib/duet/{p-cdbd1085.system.entry.js → p-c4917f80.system.entry.js} +1 -1
  359. package/lib/duet/{p-3f9bafee.system.entry.js → p-c674c251.system.entry.js} +1 -1
  360. package/lib/duet/{p-71cc3d68.entry.js → p-c84acb8f.entry.js} +1 -1
  361. package/lib/duet/p-cc6b57eb.entry.js +4 -0
  362. package/lib/duet/{p-cefbaef0.system.entry.js → p-cc9f1e7e.system.entry.js} +1 -1
  363. package/lib/duet/{p-4cb95b05.system.entry.js → p-cfea40ab.system.entry.js} +1 -1
  364. package/lib/duet/{p-f5bc03c1.system.entry.js → p-d202fbd4.system.entry.js} +1 -1
  365. package/lib/duet/{p-80c9d1a3.entry.js → p-d67196da.entry.js} +1 -1
  366. package/lib/duet/{p-28e7d8ee.system.entry.js → p-d7cb8511.system.entry.js} +1 -1
  367. package/lib/duet/p-d86d90f2.entry.js +4 -0
  368. package/lib/duet/{p-f58f7049.system.entry.js → p-da62279b.system.entry.js} +1 -1
  369. package/lib/duet/{p-ab1488e4.entry.js → p-dae9d8eb.entry.js} +1 -1
  370. package/lib/duet/p-dd6874b5.entry.js +4 -0
  371. package/lib/duet/{p-ab9b002c.system.entry.js → p-de07a6c7.system.entry.js} +1 -1
  372. package/lib/duet/{p-fdd13933.system.entry.js → p-dee965b3.system.entry.js} +1 -1
  373. package/lib/duet/{p-74b822f7.system.entry.js → p-df3c0a26.system.entry.js} +1 -1
  374. package/lib/duet/p-e0af1e68.system.entry.js +4 -0
  375. package/lib/duet/{p-a8657943.entry.js → p-e15bdc0f.entry.js} +1 -1
  376. package/lib/duet/{p-a18c65be.entry.js → p-e232c9a6.entry.js} +1 -1
  377. package/lib/duet/{p-3fd216ee.system.entry.js → p-e380af5d.system.entry.js} +1 -1
  378. package/lib/duet/{p-ca783bce.system.js → p-e3b90925.system.js} +1 -1
  379. package/lib/duet/{p-8793147c.system.entry.js → p-e500eae6.system.entry.js} +1 -1
  380. package/lib/duet/{p-17e717aa.system.entry.js → p-e6ebe252.system.entry.js} +1 -1
  381. package/lib/duet/{p-435cb7c2.entry.js → p-e7ddaaf0.entry.js} +1 -1
  382. package/lib/duet/{p-0077c0b9.system.entry.js → p-e8323345.system.entry.js} +1 -1
  383. package/lib/duet/{p-bf35789c.entry.js → p-e8bef1aa.entry.js} +1 -1
  384. package/lib/duet/{p-4c05864f.system.entry.js → p-e91ebfb3.system.entry.js} +1 -1
  385. package/lib/duet/{p-1880e89c.system.js → p-ea8d7c61.system.js} +1 -1
  386. package/lib/duet/{p-402a51b4.system.entry.js → p-eb3a72fc.system.entry.js} +1 -1
  387. package/lib/duet/{p-eb478d40.entry.js → p-ef2eb6d8.entry.js} +1 -1
  388. package/lib/duet/{p-b54bf042.entry.js → p-f08bc317.entry.js} +1 -1
  389. package/lib/duet/p-f1d9862a.entry.js +4 -0
  390. package/lib/duet/{p-a57b8625.entry.js → p-f601fb92.entry.js} +1 -1
  391. package/lib/duet/{p-5cca8d3e.system.entry.js → p-fb763129.system.entry.js} +1 -1
  392. package/lib/duet/{p-4ba495ae.entry.js → p-fc25294f.entry.js} +1 -1
  393. package/lib/duet/{p-30f0945c.entry.js → p-ff433afd.entry.js} +1 -1
  394. package/lib/esm/duet-action-button.entry.js +1 -1
  395. package/lib/esm/duet-alert.entry.js +1 -1
  396. package/lib/esm/duet-badge.entry.js +1 -1
  397. package/lib/esm/duet-banner.entry.js +1 -1
  398. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  399. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  400. package/lib/esm/duet-button_2.entry.js +2 -2
  401. package/lib/esm/duet-callout.entry.js +1 -1
  402. package/lib/esm/duet-caption_4.entry.js +1 -1
  403. package/lib/esm/duet-card.entry.js +1 -1
  404. package/lib/esm/duet-checkbox.entry.js +1 -1
  405. package/lib/esm/duet-checkmark.entry.js +1 -1
  406. package/lib/esm/duet-chip.entry.js +1 -1
  407. package/lib/esm/duet-choice_2.entry.js +2 -2
  408. package/lib/esm/duet-collapsible.entry.js +1 -1
  409. package/lib/esm/duet-combobox.entry.js +1 -1
  410. package/lib/esm/duet-contact-card.entry.js +1 -1
  411. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  412. package/lib/esm/duet-date-picker.entry.js +2 -2
  413. package/lib/esm/duet-divider_2.entry.js +1 -1
  414. package/lib/esm/duet-editable-table_3.entry.js +52 -5
  415. package/lib/esm/duet-empty-state.entry.js +1 -1
  416. package/lib/esm/duet-fieldset.entry.js +1 -1
  417. package/lib/esm/duet-footer.entry.js +1 -1
  418. package/lib/esm/duet-grid_2.entry.js +1 -1
  419. package/lib/esm/duet-header_2.entry.js +1 -1
  420. package/lib/esm/duet-hero.entry.js +1 -1
  421. package/lib/esm/duet-icon.entry.js +1 -1
  422. package/lib/esm/duet-input_2.entry.js +2 -2
  423. package/lib/esm/duet-layout.entry.js +1 -1
  424. package/lib/esm/duet-list_2.entry.js +1 -1
  425. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  426. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  427. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  428. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  429. package/lib/esm/duet-menu-bar.entry.js +3 -2
  430. package/lib/esm/duet-modal.entry.js +2 -2
  431. package/lib/esm/duet-multiselect.entry.js +23 -4
  432. package/lib/esm/duet-nav.entry.js +1 -1
  433. package/lib/esm/duet-notification_2.entry.js +1 -1
  434. package/lib/esm/duet-number-input.entry.js +1 -1
  435. package/lib/esm/duet-page-heading.entry.js +1 -1
  436. package/lib/esm/duet-pagination_2.entry.js +1 -1
  437. package/lib/esm/duet-popup-menu-item.entry.js +1 -1
  438. package/lib/esm/duet-popup-menu.entry.js +3 -30
  439. package/lib/esm/duet-progress.entry.js +1 -1
  440. package/lib/esm/duet-promo-card.entry.js +1 -1
  441. package/lib/esm/duet-radio_2.entry.js +1 -1
  442. package/lib/esm/duet-range-slider.entry.js +1 -1
  443. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  444. package/lib/esm/duet-section-layout.entry.js +1 -1
  445. package/lib/esm/duet-select.entry.js +1 -1
  446. package/lib/esm/duet-shaped-image.entry.js +1 -1
  447. package/lib/esm/duet-show-more.entry.js +1 -1
  448. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  449. package/lib/esm/duet-slideout-link.entry.js +1 -1
  450. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  451. package/lib/esm/duet-slideout-panel.entry.js +2 -2
  452. package/lib/esm/duet-slideout.entry.js +2 -2
  453. package/lib/esm/duet-step_2.entry.js +1 -1
  454. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  455. package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
  456. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  457. package/lib/esm/duet-submenu-bar.entry.js +2 -1
  458. package/lib/esm/duet-textarea.entry.js +1 -1
  459. package/lib/esm/duet-toggle.entry.js +1 -1
  460. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  461. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  462. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  463. package/lib/esm/duet-toolbar.entry.js +1 -1
  464. package/lib/esm/duet-tooltip-button_2.entry.js +87 -0
  465. package/lib/esm/duet-tooltip.entry.js +33 -48
  466. package/lib/esm/duet-tray.entry.js +1 -1
  467. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  468. package/lib/esm/duet-upload-item.entry.js +1 -1
  469. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  470. package/lib/esm/duet.js +3 -3
  471. package/lib/esm/{focus-utils-a516bd48.js → focus-utils-8008bc82.js} +1 -1
  472. package/lib/esm/{index-23851de5.js → index-79528b07.js} +1 -1
  473. package/lib/esm/loader.js +3 -3
  474. package/lib/{dist-custom-elements/p-df10a767.js → esm/teleport-542f423e.js} +36 -1
  475. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  476. package/lib/esm-es5/duet-alert.entry.js +1 -1
  477. package/lib/esm-es5/duet-badge.entry.js +1 -1
  478. package/lib/esm-es5/duet-banner.entry.js +1 -1
  479. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  480. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  481. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  482. package/lib/esm-es5/duet-callout.entry.js +1 -1
  483. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  484. package/lib/esm-es5/duet-card.entry.js +1 -1
  485. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  486. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  487. package/lib/esm-es5/duet-chip.entry.js +1 -1
  488. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  489. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  490. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  491. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  492. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  493. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  494. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  495. package/lib/esm-es5/duet-editable-table_3.entry.js +2 -2
  496. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  497. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  498. package/lib/esm-es5/duet-footer.entry.js +1 -1
  499. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  500. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  501. package/lib/esm-es5/duet-hero.entry.js +1 -1
  502. package/lib/esm-es5/duet-icon.entry.js +1 -1
  503. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  504. package/lib/esm-es5/duet-layout.entry.js +1 -1
  505. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  506. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  507. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  508. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  509. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  510. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  511. package/lib/esm-es5/duet-modal.entry.js +1 -1
  512. package/lib/esm-es5/duet-multiselect.entry.js +2 -2
  513. package/lib/esm-es5/duet-nav.entry.js +1 -1
  514. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  515. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  516. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  517. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  518. package/lib/esm-es5/duet-popup-menu-item.entry.js +1 -1
  519. package/lib/esm-es5/duet-popup-menu.entry.js +1 -1
  520. package/lib/esm-es5/duet-progress.entry.js +1 -1
  521. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  522. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  523. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  524. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  525. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  526. package/lib/esm-es5/duet-select.entry.js +1 -1
  527. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  528. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  529. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  530. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  531. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  532. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  533. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  534. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  535. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  536. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  537. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  538. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  539. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  540. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  541. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  542. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  543. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  544. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  545. package/lib/esm-es5/duet-tooltip-button_2.entry.js +4 -0
  546. package/lib/esm-es5/duet-tooltip.entry.js +2 -2
  547. package/lib/esm-es5/duet-tray.entry.js +1 -1
  548. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  549. package/lib/esm-es5/duet-upload-item.entry.js +1 -1
  550. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  551. package/lib/esm-es5/duet.js +1 -1
  552. package/lib/esm-es5/focus-utils-8008bc82.js +4 -0
  553. package/lib/esm-es5/{index-23851de5.js → index-79528b07.js} +1 -1
  554. package/lib/esm-es5/loader.js +1 -1
  555. package/lib/esm-es5/teleport-542f423e.js +4 -0
  556. package/lib/types/components/duet-multiselect/duet-multiselect.d.ts +9 -0
  557. package/lib/types/components/duet-tooltip/duet-tooltip-button.d.ts +29 -0
  558. package/lib/types/components/duet-tooltip/duet-tooltip-popup.d.ts +4 -7
  559. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +3 -2
  560. package/lib/types/components/duet-upload/duet-upload.d.ts +1 -0
  561. package/lib/types/components/duet-upload/upload-validators.d.ts +1 -0
  562. package/lib/types/components.d.ts +39 -3
  563. package/lib/types/utils/teleport.d.ts +1 -0
  564. package/package.json +5 -5
  565. package/lib/cjs/duet-tooltip-popup.cjs.entry.js +0 -56
  566. package/lib/dist-custom-elements/p-0c934ab8.js +0 -273
  567. package/lib/dist-custom-elements/p-c6c0520d.js +0 -136
  568. package/lib/dist-custom-elements/p-cfe72fa4.js +0 -88
  569. package/lib/duet/p-0b19b2fc.system.entry.js +0 -4
  570. package/lib/duet/p-120fcef7.system.entry.js +0 -4
  571. package/lib/duet/p-2b16b250.system.entry.js +0 -4
  572. package/lib/duet/p-3cff6ebc.entry.js +0 -4
  573. package/lib/duet/p-57bc9d10.system.entry.js +0 -4
  574. package/lib/duet/p-6b7d3c8c.entry.js +0 -4
  575. package/lib/duet/p-7b29ea1b.entry.js +0 -4
  576. package/lib/duet/p-82b5380b.system.js +0 -4
  577. package/lib/duet/p-a4376044.entry.js +0 -4
  578. package/lib/duet/p-aaf1b496.system.js +0 -4
  579. package/lib/duet/p-b07af8d7.entry.js +0 -4
  580. package/lib/duet/p-be37633b.entry.js +0 -4
  581. package/lib/duet/p-d7460d04.system.entry.js +0 -4
  582. package/lib/duet/p-df10a767.js +0 -4
  583. package/lib/duet/p-e689dc8c.system.entry.js +0 -4
  584. package/lib/duet/p-f5c10f8e.entry.js +0 -4
  585. package/lib/duet/p-f6ba5087.entry.js +0 -4
  586. package/lib/duet/p-f93a4db5.entry.js +0 -4
  587. package/lib/esm/duet-tooltip-popup.entry.js +0 -52
  588. package/lib/esm-es5/duet-tooltip-popup.entry.js +0 -4
  589. package/lib/esm-es5/floating-ui.dom.esm-37dc174a.js +0 -4
  590. package/lib/esm-es5/focus-utils-a516bd48.js +0 -4
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function s(e){try{a(i.next(e))}catch(e){r(e)}}function u(e){try{a(i["throw"](e))}catch(e){r(e)}}function a(e){e.done?n(e.value):o(e.value).then(s,u)}a((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,o,r,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(e){return function(t){return a([e,t])}}function a(u){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,u[0]&&(n=0)),n)try{if(i=1,o&&(r=u[0]&2?o["return"]:u[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,u[1])).done)return r;if(o=0,r)u=[u[0]&2,r.value];switch(u[0]){case 0:case 1:r=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;o=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){n.label=u[1];break}if(u[0]===6&&n.label<r[1]){n.label=r[1];r=u;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(u);break}if(r[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];o=0}finally{i=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-1880e89c.system.js","./p-82b5380b.system.js","./p-33b3aba4.system.js","./p-51721695.system.js","./p-10695d55.system.js"],(function(e){"use strict";var t,n,i,o,r,s,u,a,c,l,p,h,f,d;return{setters:[function(e){t=e.r;n=e.c;i=e.h;o=e.H;r=e.g},function(e){s=e.c;u=e.o;a=e.f},function(e){c=e.i},function(e){l=e.f;p=e.c;h=e.b;f=e.o},function(e){d=e.z}],execute:function(){var m=function(){function e(e,t){this.element=e;this.target=t||document.body}e.prototype.go=function(){this.stub=document.createElement("div");this.element.insertAdjacentElement("afterend",this.stub);this.target.appendChild(this.element);this.element.style.zIndex=d};e.prototype.resume=function(e){var t=this;if(e===void 0){e=0}setTimeout((function(){t.element.style.zIndex="";t.stub.insertAdjacentElement("beforebegin",t.element);t.stub.remove()}),e)};return e}();var b="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-popup-menu-list{position:absolute;top:0;left:0;z-index:950;width:max-content;min-width:175px;padding:0;padding:1rem 0;margin:0;color:rgb(0, 41, 77);list-style:none;visibility:hidden !important;background:rgb(243, 249, 252);border-radius:0 0 8px 8px;box-shadow:0 6px 6px 0 rgba(0, 41, 77, 0.1);opacity:0;transition:transform 300ms ease, visibility 300ms ease, opacity 300ms ease;transform:scaleY(0);transform-origin:top center}.duet-popup-menu-list.open{visibility:visible !important;opacity:1;transform:scaleY(1)}.duet-popup-menu-list.fixed{position:fixed}.duet-popup-menu-list.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(245, 245, 247)}";var g=e("duet_popup_menu",function(){function e(e){var i=this;t(this,e);this.duetToggle=n(this,"duetToggle",7);this.updatePlacement=function(){return __awaiter(i,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!this.controller){return[2]}return[4,s(this.controller,this.element,{middleware:[u({mainAxis:this.mainAxisOffset,crossAxis:this.crossAxisOffset}),a()],placement:this.placement,strategy:this.position})];case 1:e=t.sent();this.menuY=e.y;this.menuX=e.x;return[2]}}))}))};this.open=false;this.menuY=undefined;this.menuX=undefined;this.accessibleLabel=undefined;this.theme="";this.controller=undefined;this.placement="bottom-start";this.position="absolute";this.mainAxisOffset=0;this.crossAxisOffset=0}e.prototype.componentWillLoad=function(){c(this);this.teleport=new m(this.element)};e.prototype.componentDidLoad=function(){{this.updatePlacement()}};e.prototype.handleKeyUp=function(e){if(this.open){if(l(e)){this.focusController();this.hide()}}};e.prototype.handleKeyDown=function(e){return __awaiter(this,void 0,void 0,(function(){var t,t;return __generator(this,(function(n){switch(n.label){case 0:if(!this.open)return[3,5];if(!p(e))return[3,2];return[4,this.getFocusedItemIndex()];case 1:t=n.sent();if(t!==-1){if(t<this.itemElements.length-1){this.itemElements[t+1].setFocus()}else{this.itemElements[0].setFocus()}}n.label=2;case 2:if(!h(e))return[3,4];return[4,this.getFocusedItemIndex()];case 3:t=n.sent();if(t!==-1){if(t===0){this.itemElements[this.itemElements.length-1].setFocus()}else{this.itemElements[t-1].setFocus()}}n.label=4;case 4:if(f(e)){e.preventDefault();this.hide()}n.label=5;case 5:return[2]}}))}))};e.prototype.handleClick=function(e){var t=this;var n=e.composedPath().every((function(e){return e!==t.element&&e!==t.controller}));if(this.open&&n){this.hide()}};e.prototype.isOpen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.open]}))}))};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=true;this.teleport.go();this.itemElements[0].setFocus();this.duetToggle.emit({open:this.open,component:"duet-popup-menu"});this.updatePlacement();return[2]}))}))};e.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=false;this.duetToggle.emit({open:this.open,component:"duet-popup-menu"});this.focusController();this.teleport.resume(200);return[2]}))}))};e.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.open){this.hide()}else{this.show()}return[2]}))}))};e.prototype.focusController=function(){if(this.controller){if("setFocus"in this.controller){this.controller.setFocus()}else{this.controller.focus()}}};Object.defineProperty(e.prototype,"itemElements",{get:function(){return Array.from(this.element.querySelectorAll(":scope > duet-popup-menu-item"))},enumerable:false,configurable:true});e.prototype.getFocusedItemIndex=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e=this.itemElements;t=0;n.label=1;case 1:if(!(t<e.length))return[3,4];return[4,e[t].isFocused()];case 2:if(n.sent()){return[2,t]}n.label=3;case 3:t++;return[3,1];case 4:return[2,-1]}}))}))};e.prototype.render=function(){var e={top:"".concat(this.menuY,"px"),left:"".concat(this.menuX,"px")};return i(o,{class:this.position},i("div",{style:e,class:{open:this.open,"duet-popup-menu-list":true,"duet-theme-turva":this.theme==="turva"},role:"menu","aria-label":this.accessibleLabel},i("slot",null)))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());g.style=b}}}));
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,o){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function s(t){try{l(o.next(t))}catch(t){a(t)}}function r(t){try{l(o["throw"](t))}catch(t){a(t)}}function l(t){t.done?i(t.value):n(t.value).then(s,r)}l((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,n,a,s;return s={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function r(t){return function(e){return l([t,e])}}function l(r){if(o)throw new TypeError("Generator is already executing.");while(s&&(s=0,r[0]&&(i=0)),i)try{if(o=1,n&&(a=r[0]&2?n["return"]:r[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,r[1])).done)return a;if(n=0,a)r=[r[0]&2,a.value];switch(r[0]){case 0:case 1:a=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;n=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!a||r[1]>a[0]&&r[1]<a[3])){i.label=r[1];break}if(r[0]===6&&i.label<a[1]){i.label=a[1];a=r;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(r);break}if(a[2])i.ops.pop();i.trys.pop();continue}r=e.call(t,i)}catch(t){r=[6,t];n=0}finally{o=a=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-1880e89c.system.js","./p-45e609b1.system.js","./p-82b5380b.system.js","./p-33b3aba4.system.js","./p-5f6bd5db.system.js","./p-c8dc599d.system.js","./p-b6d51921.system.js"],(function(t){"use strict";var e,i,o,n,a,s,r,l,c,u,p,h,d,f,b,m;return{setters:[function(t){e=t.r;i=t.h;o=t.H;n=t.g},function(t){a=t.m;s=t.a},function(t){r=t.c;l=t.f;c=t.s;u=t.a},function(t){p=t.i},function(t){h=t.c},function(t){d=t.g;f=t.a;b=t.c;m=t.d},function(){}],execute:function(){var g='*,*::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-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-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"}';var v=t("duet_tooltip",function(){function t(t){var i=this;e(this,t);this.mql=[window.matchMedia(a.replace(/'/g,"")),window.matchMedia(s.replace(/'/g,""))];this.tooltipId=h("DuetTooltip");this.openTooltip=function(){i.focusTarget="tooltip";i.active=true};this.closeTooltip=function(t){if(t===void 0){t=false}if(t){i.focusTarget="trigger"}i.active=false};this.toggleOpen=function(){i.active?i.closeTooltip():i.openTooltip()};this.handleFocusOut=function(t){if(!i.active){return}var e=t.relatedTarget;if(e==null||i.element.shadowRoot.contains(e)||i.element.contains(e)){return}i.closeTooltip()};this.handleKeyDown=function(t){var e=t.keyCode===27;var o=t.target===i.popupElement&&t.shiftKey&&t.keyCode===9;if(e||o){i.closeTooltip(true)}};this.updatePlacement=function(){return __awaiter(i,void 0,void 0,(function(){var t,e,i,o,n;return __generator(this,(function(a){switch(a.label){case 0:i=true;if(this.breakpoint==="large"&&!this.mql[1].matches){i=false}else if(this.breakpoint==="medium"&&!this.mql[0].matches){i=false}o=i?"top-start":"top-end";if(this.direction==="left"){o="top-end"}else if(this.direction==="right"){o="top-start"}return[4,r(this.buttonEl,this.popupElement,{placement:o,middleware:[l(),c({padding:5}),u({element:this.arrowEl})]})];case 1:n=a.sent();this.tooltipY=n.y;this.tooltipX=n.x;this.placement=n.placement;this.arrowY=(t=n.middlewareData.arrow)===null||t===void 0?void 0:t.y;this.arrowX=(e=n.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=d();this.accessibleLabelDefault={fi:"Näytä lisätietoja",en:"Show more information",sv:"Visa mer tilläggsuppgifter"};this.accessibleLabel=f(this.accessibleLabelDefault,this.language);this.accessibleInputLabel=undefined;this.accessibleCloseLabelDefault={fi:"Sulje lisätiedot",en:"Close details",sv:"Stäng tilläggsuppgifter"};this.accessibleCloseLabel=f(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=f(this.accessibleLabelDefault,t)}if(t!==e&&this.accessibleCloseLabel===this.accessibleCloseLabelDefault[e]){this.accessibleCloseLabel=f(this.accessibleCloseLabelDefault,t)}};t.prototype.componentWillLoad=function(){p(this)};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:t=this;return[4,this.popupElement.getArrowElement()];case 1:t.arrowEl=i.sent();e=this;return[4,this.popupElement.getContentElement()];case 2:e.contentEl=i.sent();{this.updatePlacement()}return[2]}}))}))};t.prototype.componentDidUpdate=function(){switch(this.focusTarget){case"tooltip":this.contentEl.focus({preventScroll:true});if(this.element.classList.contains("user-is-tabbing")){this.popupElement.classList.add("user-is-tabbing")}else{this.popupElement.classList.remove("user-is-tabbing")}break;case"trigger":this.buttonEl.focus({preventScroll:true});break}this.focusTarget=null};t.prototype.connectedCallback=function(){b(this)};t.prototype.disconnectedCallback=function(){m(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 i=t.composedPath();var o=i.every((function(t){return t!==e.element}));if(o){this.closeTooltip()}};t.prototype.handlePopupClose=function(){this.closeTooltip(true)};t.prototype.handleActiveChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){if(t){this.updatePlacement()}else{setTimeout((function(){return e.updatePlacement()}),300)}return[2]}))}))};t.prototype.render=function(){var t=this;var e={transform:"translateY(".concat(this.positionVertical,") translateX(").concat(this.positionHorizontal,")"),zIndex:this.active?"201":""};var n={top:"".concat(this.tooltipY,"px"),left:"".concat(this.tooltipX,"px"),display:"block"};var a={top:this.arrowY?"".concat(this.arrowY,"px"):undefined,left:this.arrowX?"".concat(this.arrowX,"px"):undefined};return i(o,{style:e},i("button",{ref:function(e){return t.buttonEl=e},"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"}},i("svg",{"aria-hidden":"true",role:"img",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},i("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"}),i("circle",{cx:"11.625",cy:"7.125",r:"1.125"}),i("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?i("span",{class:"duet-tooltip-label"},this.label):i("duet-visually-hidden",null,this.accessibleInputLabel?"".concat(this.accessibleInputLabel,", ").concat(this.accessibleLabel):this.accessibleLabel)),i("duet-tooltip-popup",{ref:function(e){return t.popupElement=e},active:this.active,tooltipId:this.tooltipId,arrowStyles:a,style:n,placement:this.placement,accessibleCloseLabel:this.accessibleCloseLabel,onKeyDown:this.handleKeyDown,onFocusout:this.handleFocusOut},i("slot",null)))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{language:["watchLanguageStateHandler"],active:["handleActiveChange"]}},enumerable:false,configurable:true});return t}());v.style=g}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,h as t,H as i,g as s}from"./p-79b6ac98.js";import{a as o}from"./p-b519ac77.js";import{e as a,d as n}from"./p-bd779757.js";import{i as r}from"./p-4ebf1618.js";const d=class{constructor(t){e(this,t),this.mql=[window.matchMedia(o.replace(/'/g,""))],this.boundMqlFunctions=[],this.changeAriaProperties=()=>{this.mql[0].matches?(this.mobile=!1,a(this.element)):(this.mobile=!0,this.bodyScroll||n(this.element,{reserveScrollBarGap:!0}))},this.onClick=()=>{const e=this.open;e?(a(this.element),this.bodyScroll=!0):(this.bodyScroll=!1,n(this.element,{reserveScrollBarGap:!0})),this.open=!e},this.mobile=!0,this.bodyScroll=!0,this.theme="",this.open=!1,this.accessibleLabel=void 0}componentWillLoad(){r(this);const e=Array.from(this.element.children);for(const t of e)t.setAttribute("role","listitem")}connectedCallback(){this.changeAriaProperties();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.changeAriaProperties.bind(this);this.mql[e].addEventListener("change",t),this.boundMqlFunctions[e]=t}}disconnectedCallback(){for(let e=0;e<this.mql.length;e++)this.mql[e].removeEventListener&&this.mql[e].removeEventListener("change",this.boundMqlFunctions[e]);this.boundMqlFunctions=[]}async setFocus(e){this.button.focus(e)}render(){return t(i,null,t("nav",{class:{"duet-submenu-bar":!0,"duet-theme-turva":"turva"===this.theme},"aria-label":this.accessibleLabel},t("div",{class:"shadow-container",role:"presentation"},t("div",{class:"top-shadow"})),t("button",{ref:e=>this.button=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false",id:"button",type:"button",class:{active:this.open},onClick:this.onClick},t("div",{class:"label"},t("slot",{name:"label"}),t("duet-icon",{theme:this.theme,class:"caret",name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),t("div",{class:{"menu-container":!0,hidden:!this.open},role:"presentation"},t("div",{role:this.mobile?"menu":null,id:"menu","aria-labelledby":this.mobile?"button":null,"aria-expanded":this.mobile?this.open?"true":"false":null,class:{items:!0,hidden:!this.open}},t("div",{class:"list",role:this.mobile?"presentation":"list"},t("slot",null))),t("div",{class:"mobile-background"}))))}get element(){return s(this)}};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;width:100%}:host(:not([open])) ::slotted(duet-submenu-bar-dropdown){display:none}@media (min-width: 62em){:host(:not([open])) ::slotted(duet-submenu-bar-dropdown){display:inherit}}.duet-submenu-bar{position:relative;background:rgb(243, 249, 252)}.duet-submenu-bar .shadow-container{position:absolute;width:100%;height:100%;overflow:hidden}.duet-submenu-bar .shadow-container .top-shadow{position:absolute;top:-52px;width:100%;height:52px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07)}@media (min-width: 62em){.duet-submenu-bar .shadow-container .top-shadow{top:-80px;height:80px;box-shadow:0 3px 6px rgba(0, 41, 77, 0.1)}}@media (min-width: 62em){.duet-submenu-bar{border-bottom:1px solid rgb(205, 229, 241)}}.duet-submenu-bar button{display:flex;align-items:center;justify-content:center;width:100%;padding:12px 0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 41, 77)}.duet-submenu-bar button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-submenu-bar button.active .caret{transform:rotate(180deg)}.duet-submenu-bar button .label{position:relative;display:flex;gap:8px;align-items:center;justify-content:center}@media (min-width: 62em){.duet-submenu-bar button{display:none}}.duet-submenu-bar .menu-container{position:absolute;z-index:399;width:100%}.duet-submenu-bar .menu-container.hidden{max-height:0;overflow:hidden;visibility:hidden}@media (min-width: 62em){.duet-submenu-bar .menu-container,.duet-submenu-bar .menu-container.hidden{position:static;z-index:auto;max-height:unset;overflow:visible;visibility:visible}}.duet-submenu-bar .items{width:100%;height:70vh;overflow-y:scroll;visibility:visible;background:rgb(243, 249, 252);border-bottom:1px solid rgb(207, 210, 212)}.duet-submenu-bar .items ::slotted(*){position:relative}.duet-submenu-bar .items.hidden{max-height:0;overflow:hidden;visibility:hidden;border-bottom:0 solid rgb(207, 210, 212)}@media (min-width: 62em){.duet-submenu-bar .items .list{display:flex;align-items:center;justify-content:space-between;height:100%}.duet-submenu-bar .items,.duet-submenu-bar .items.hidden{position:static;z-index:auto;display:flex;flex-direction:row;align-items:center;justify-content:center;height:auto;max-height:unset;overflow:visible;visibility:visible;border:0}}.duet-submenu-bar .mobile-background{position:absolute;width:100%;height:100%;background:rgba(0, 41, 77, 0.6)}@media (min-width: 62em){.duet-submenu-bar .mobile-background{display:none}}.duet-submenu-bar.duet-theme-turva{background:rgb(245, 245, 247);border-bottom:1px solid rgb(228, 228, 230)}.duet-submenu-bar.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-submenu-bar.duet-theme-turva .items{background:rgb(245, 245, 247)}.duet-submenu-bar.duet-theme-turva .mobile-background{background:rgba(23, 28, 58, 0.6)}.duet-submenu-bar.duet-theme-turva .shadow-container .top-shadow{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13)}@media (min-width: 62em){.duet-submenu-bar.duet-theme-turva .shadow-container .top-shadow{box-shadow:0 3px 6px 0 rgba(117, 117, 117, 0.15)}}';export{d as duet_submenu_bar}
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,a,i){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function r(e){try{s(i.next(e))}catch(e){o(e)}}function l(e){try{s(i["throw"](e))}catch(e){o(e)}}function s(e){e.done?a(e.value):n(e.value).then(r,l)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(e){return function(t){return s([e,t])}}function s(l){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(a=0)),a)try{if(i=1,n&&(o=l[0]&2?n["return"]:l[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;if(n=0,o)l=[l[0]&2,o.value];switch(l[0]){case 0:case 1:o=l;break;case 4:a.label++;return{value:l[1],done:false};case 5:a.label++;n=l[1];l=[0];continue;case 7:l=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(l[0]===6&&a.label<o[1]){a.label=o[1];o=l;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(l);break}if(o[2])a.ops.pop();a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e];n=0}finally{i=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,a){if(a||arguments.length===2)for(var i=0,n=t.length,o;i<n;i++){if(o||!(i in t)){if(!o)o=Array.prototype.slice.call(t,0,i);o[i]=t[i]}}return e.concat(o||Array.prototype.slice.call(t))};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-1880e89c.system.js","./p-33b3aba4.system.js","./p-34ea0849.system.js","./p-51721695.system.js","./p-c8dc599d.system.js","./p-10695d55.system.js","./p-277d9e45.system.js","./p-5f6bd5db.system.js","./p-6b115b63.system.js","./p-b6d51921.system.js"],(function(e){"use strict";var t,a,i,n,o,r,l,s,d,u,p,h,c,f,b,m,g,y,v,x,k,w;return{setters:[function(e){t=e.h;a=e.r;i=e.c;n=e.H;o=e.g;r=e.F},function(e){l=e.i},function(e){s=e.f;d=e.d},function(e){u=e.i},function(e){p=e.g;h=e.c;c=e.d;f=e.a;b=e.s},function(e){m=e.p;g=e.s},function(e){y=e.b;v=e.a},function(e){x=e.c},function(e){k=e.g;w=e.a},function(){}],execute:function(){var L=function(e,a){var i=e.data,n=e.groupId,o=e.alignment;var r="duet-editable-table duet-editable-table-content-".concat(n);if(typeof i==="string"){return t("td",{innerHTML:i,class:r,part:"".concat(n,"content"),style:{verticalAlign:o}})}else{return t("td",{class:r,part:"".concat(n,"content"),style:{verticalAlign:o}},i)}};var D=".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}";var M=e("duet_editable_table",function(){function e(e){var t=this;a(this,e);this.duetTableToggle=i(this,"duetTableToggle",7);this.duetMenuClick=i(this,"duetMenuClick",7);this.hasHeadSlotFirst=false;this.hasHeadSlotLast=false;this.hasFootSlot=false;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=function(e,a){a.preventDefault();var i=e.sort_order,n=e.direction,o=e.index,r=e.key;t.duetTableToggle.emit({sort_order:i,index:o,direction:n,key:r,component:"duet-editable-table",originalEvent:a})};this.handleKeyDown=function(e,a){if(u(a)){t.toggleColumn(e,a)}};this.language=p();this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.actions=undefined;this.columns=undefined;this.rows=undefined;this.sortable=false;this.groupId="";this.theme="";this.accessibleRole=undefined;this.hideHeadVisually=false}e.prototype.componentWillLoad=function(){l(this);this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']");this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']");this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")};e.prototype.connectedCallback=function(){h(this)};e.prototype.disconnectedCallback=function(){c(this)};e.prototype.createLabel=function(e){var a=this;var i=e.sort_order,n=e.direction,o=e.index,r=e.label;var l=f(r);if(!this.sortable){return l}var s=function(){if(!!i&&n===1){return"action-arrow-down-small"}else if(!!i&&n===-1){return"action-arrow-up-small"}return"action-subtract-small"};return t("span",{class:"duet-table-label","data-index":o},t("duet-button",{size:"small",icon:s(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(t){return a.toggleColumn(e,t)},onKeyDown:function(t){return a.handleKeyDown(e,t)}},l))};e.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(s(["index"]))};e.prototype.getRowSortOrder=function(){var e=__spreadArray([],this.columns,true).sort(s(["sort_order"]));return e.filter((function(e){return e.sort_order})).map((function(e){return e.direction===-1?"-".concat(e.key):e.key}))};e.prototype.renderTableHeader=function(){var e=this;if(!this.columns){return}var a=this.getSortedColumns();return t("tr",{class:{"duet-table-action-header":!!this.actions}},a.map((function(a){if(a.display!==false){var i=e.createLabel(a);return i!==""?t("th",{scope:"col"},i):t("td",null)}})),this.actions&&t("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&t("duet-visually-hidden",null,this.actionColumnLabel[this.language])))};e.prototype.renderActions=function(e,a){var i=this;if(!this.actions){return}return t("td",{class:"duet-text-right"},this.actions.map((function(n){return t("duet-action-button",{actionMeta:Object.assign({},(e===null||e===void 0?void 0:e.meta)||{},{index:a}),actionId:(e===null||e===void 0?void 0:e.uid)||(e===null||e===void 0?void 0:e.id)||null,actionName:n.name,theme:i.theme,iconName:n.icon,iconColor:n.color,iconSize:n.size,background:n.background,"accessible-label":"".concat(e.actionDescription||""," ").concat(f(n.label)," ")})})))};e.prototype.renderTableBody=function(){var e=this;var a=this.getSortedColumns();var i=this.getRowSortOrder();var n=__spreadArray([],this.rows,true).sort(s(i));return n.map((function(i,n){var o;return t("tr",{class:(o={"duet-table-action-row":!!e.actions,"duet-editable-table-row":true},o["duet-editable-table-row-".concat(e.groupId)]=true,o),"data-meta":JSON.stringify(i.meta)},a.map((function(a){var n=i[a.key]?i[a.key]:i.item;if(a.display!==false){return t(L,{data:n,groupId:e.groupId})}})),e.actions&&e.renderActions(i,n))}))};e.prototype.render=function(){var e;return t(n,{class:(e={},e["duet-editable-table-".concat(this.variation)]=true,e["duet-editable-table"]=true,e["duet-editable-table-".concat(this.theme)]=true,e["duet-editable-table-scrollable"]=this.breakpoint==="none-scrollable",e["duet-editable-table-sortable"]=this.sortable,e["duet-editable-table-actions"]=!!this.actions,e["duet-m-0"]=this.margin==="none",e["duet-theme-turva"]=this.theme==="turva",e)},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()),this.hasFootSlot&&t("tfoot",null,t("tr",null,t("td",{class:"duet-editable-table-footer-menu",colSpan:99},t("slot",{name:"tfoot"})))))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());M.style=D;var _='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}';var I={none:0,"with-links":parseFloat(m)*16,"without-links":parseFloat(g)*16};var S=e("duet_table",function(){function e(e){var t=this;a(this,e);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(e){t.matchesBreakpoint=y.includes(t.breakpoint)?!e.matches:e.matches};this.matchesBreakpoint=true;this.language=p();this.theme=undefined;this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.hideHeadVisually=false}e.prototype.watchLanguageStateHandler=function(e,t){var a=this;if(e!==t){setTimeout((function(){return a.copyHeadingsToCells()}),50)}};e.prototype.connectedCallback=function(){var e=this;var t=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":v[this.breakpoint];this.mq=matchMedia(t);this.mq.addEventListener("change",d(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return d(e.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};e.prototype.componentWillLoad=function(){l(this);this.copyHeadingsToCells();if(this.sticky&&this.breakpoint==="none-scrollable"){console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence')}if(this.sticky){var e=I[this.stickyDistance];var t=this.element.querySelectorAll(this.headingSelector);t.forEach((function(t){return t.style.top="".concat(e,"px")}))}};e.prototype.componentDidLoad=function(){this.observer?this.observer.takeRecords():null;h(this)};e.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;this.mq.removeListener(this.handleMediaQueryChange);this.mq=null;this.matchesBreakpoint=true;c(this)};e.prototype.copyHeadingsToCells=function(){var e=this.element.querySelectorAll(this.headingSelector);var t=this.element.querySelectorAll("tbody tr");var a=Array.from(e).map((function(e){return e.textContent.trim()}));t.forEach((function(e){e.querySelectorAll("td").forEach((function(e,t){if(a[t]){e.dataset.heading=a[t]}}))}))};e.prototype.render=function(){var e;return t(n,{class:(e={},e["duet-table-".concat(this.variation)]=true,e["duet-table-flattened"]=!this.matchesBreakpoint,e["duet-table-sticky"]=this.matchesBreakpoint&&this.sticky,e["duet-table-scrollable"]=this.breakpoint==="none-scrollable",e["duet-m-0"]=this.margin==="none",e["duet-theme-turva"]=this.theme==="turva",e["duet-table-hide-head-visually"]=this.hideHeadVisually,e)},t("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return e}());S.style=_;var E=[{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."}}];var F=function(e){var a=e.label,i=e.categoryLabel;return t("div",{class:"items-header"},i&&t("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none"},f(i)),t("duet-heading",{class:{"filename-header":true,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none"},f(a)))};var T=function(e,t){if(!t){return true}var a=e.split(".");var i=t.split(",");var n=a[a.length-1];return i.includes(n)};var C=function(e,t){if(!t||!e){return true}var a=t.split(",");var i=false;a.forEach((function(t){var a=t.split("/");var n=e.split("/");if(a[0]===n[0]&&(a[1]===n[1]||a[1]==="*")){i=true}}));return i};var A=function(e,t){if(!t||!e){return true}return t>=e};var U=function(e,t,a){var i=t.allowedMimetypes,n=t.allowedExtensions,o=t.maxBytes;var r=false;var l=k("default",a);if(e){var s=e.name,d=e.type,u=e.size;var p=C(d,i);var h=n==="all"||n===""||n===" "||n===undefined?true:T(s.toLowerCase(),n);var c=A(u,o);if(!p){l=k("duet-upload-101",a)}if(!h){l=k("duet-upload-100",a)}if(!c){l=k("duet-upload-201",a)}r=p&&h&&c}else{r=false}return{valid:r,errorMessage:r?undefined:f(l.message),errorSystem:r?undefined:l.system_message,errorType:r?undefined:l.type}};var R=function(e,t){var a=0;if(t){e.forEach((function(e){if(e.valid&&e.size){a+=e.size}}));if(a>=t){return true}}return false};var B=function(e,t){var a=0;if(t){e.forEach((function(e){if(e.valid){a++}}));if(a>=t){return true}}return false};var z=function(e,t,a){if(e+t>a){return true}return false};var H=function(e){var t=e.payload,a=e.options,i=e.onFailure,n=e.onSuccess,o=e.onProgress;var r=a.type,l=r===void 0?"POST":r,s=a.xhr,d=a.uri,u=a.argument,p=u===void 0?null:u,h=a.headers,c=h===void 0?null:h;s.open(l,"".concat(d).concat(p||""),true);var f=t.data,b=t.name;if(c){Object.keys(c).forEach((function(e){s.setRequestHeader(e,c[e])}))}if(l==="POST"){s.onreadystatechange=function(){if(s.readyState===XMLHttpRequest.DONE&&s.status>=200&&s.status<300){n(s,b,s.status)}if(s.readyState===XMLHttpRequest.DONE&&s.status>=300&&s.status<999){i(s,b,s.status)}};o(b)}s.send(f);return s};var P="*,*::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}";var j=e("duet_upload",function(){function e(e){var n=this;a(this,e);this.duetChange=i(this,"duetChange",3);this.duetBlur=i(this,"duetBlur",7);this.duetFocus=i(this,"duetFocus",7);this.duetReady=i(this,"duetReady",7);this.duetDone=i(this,"duetDone",3);this.duetState=i(this,"duetState",3);this.duetDelete=i(this,"duetDelete",3);this.duetCancel=i(this,"duetCancel",3);this.duetProgress=i(this,"duetProgress",3);this.duetUpload=i(this,"duetUpload",3);this.linkClick=i(this,"linkClick",3);this.buttonId=x("DuetButton");this.labelId=x("DuetLabel");this.uploadId=x("DuetUpload");this.filesInProgress=new Map;this.fileMaxReached=false;this.bytesMaxReached=false;this.filesToUploadExceedsLimit=false;this.internalStatusMessageLabel=undefined;this.itemRefs=new Map;this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"};this.kick=d((function(){n.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){n.element.addEventListener("duetActionEvent",(function(e){var t=e.detail;var a=t.action,i=t.id,o=t.originalEvent;switch(a){case"delete":n.onDelete(i,o);break;case"cancel":n.onCancel(i,o);break}}))};this.verifyValidity=function(){var e=n.getFilesAsArray(),t=e.invalid,a=e.valid;var i=n.valid;n.valid=t.length===0&&a.length!==0;if(n.valid!==i){n.duetState.emit({originalEvent:undefined,data:{valid:n.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(e){if(e.valid&&e.progress===100){return n.DefaultGroups.success}else if(e.progress>0&&e.progress!==100){return n.DefaultGroups.inprogress}else if(!e.valid){return n.DefaultGroups.failure}else if(e.pending){return n.DefaultGroups.pending}else if(e.group){return e.group}else{return"none"}};this.mapFilesToUploadItems=function(e,a,i){if(a===n.DefaultGroups.success){return t("duet-upload-item",{theme:n.theme,actions:n.getActions(a),type:"success",data:e,showLinks:n.showLinks,linkClickEvent:n.emitEvent?n.linkClick:undefined,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,ref:function(t){n.itemRefs.set(e.uid,t)}})}else if(a===n.DefaultGroups.inprogress){return t("duet-upload-item",{theme:n.theme,actions:n.getActions(a),type:"inprogress",data:e,showLinks:n.showLinks,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,ref:function(t){n.itemRefs.set(e.uid,t)}})}else if(a===n.DefaultGroups.pending){return t("duet-upload-item",{theme:n.theme,actions:n.getActions(a),type:"pending",data:e,showLinks:n.showLinks,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,ref:function(t){n.itemRefs.set(e.uid,t)}})}else if(a===n.DefaultGroups.failure){return t("duet-upload-item",{theme:n.theme,actions:n.getActions(a),type:"failure",data:e,showLinks:n.showLinks,errorCodes:n.errorCodes,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,ref:function(t){n.itemRefs.set(e.uid,t)}})}else if(e.group){return e.html}else{return"none"}};this.genHashName=function(){return Date.now().toString(36)+Math.random()};this.updateValueInMap=function(e,t,a,i){if(i===void 0){i=true}try{var o=n.files.get(e);o[t]=a;n.files.set(e,o);if(n.external&&t!=="url"){n.trackProgress(e,t==="uploaded")}}catch(e){}if(i){n.kick()}};this.updateProgress=function(e,t){var a=function(a){n.updateValueInMap(t,"progress",a);n.onProgress(t,a,e)};if(e.lengthComputable){var i=e.loaded/e.total*100;a(i)}else{console.log("cant read progress")}};this.trackProgress=function(e,t){if(t===void 0){t=false}if(t){n.filesInProgress.delete(e)}else{n.filesInProgress.set(e,"inprogress")}if(n.filesInProgress.size===0){n.onDone()}};this.getFilesAsArray=function(){var e=[];var t=[];n.files.forEach((function(a){if(a.valid&&!a.deleted){e.push(a)}else if(!a.valid&&!a.deleted){t.push(a)}}));return{valid:e,invalid:t}};this.resetFormFields=function(){n.nativeInput.value=""};this.startUpload=function(e,t){if(t===void 0){t=undefined}return __awaiter(n,void 0,void 0,(function(){var a,i,n;return __generator(this,(function(o){a=this.validateTotals(),i=a.bytesMaxReached,n=a.fileMaxReached;if(i||n){this.kick();return[2]}this.metaData=t;this.nativeInput.click();this.onUpload(e,t);e.stopPropagation();e.preventDefault();return[2]}))}))};this.transferComplete=function(e){n.updateValueInMap(e,"progress",100,false);n.trackProgress(e,true)};this.transferDone=function(e,t,a){n.updateValueInMap(t,"status",a,false);n.updateValueInMap(t,"uploaded",true,false);try{var i=JSON.parse(e.response);n.updateValueInMap(t,"url",i.url)}catch(e){n.updateValueInMap(t,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(e,t,a){try{var i=JSON.parse(e.response).error;n.updateValueInMap(t,"error",{message:i.message,type:i.type},false)}catch(e){console.error("Server did not respond with expected response error:{message: string, type: int}");n.updateValueInMap(t,"error",{type:a},false)}n.updateValueInMap(t,"valid",false,true)};this.transferFailed=function(e){n.updateValueInMap(e,"error",w("duet-upload-001",n.errorCodes))};this.transferCanceled=function(e){n.files.delete(e);n.validateTotals(e);n.kick()};this.validateTotals=function(e){var t=R(n.files,n.maxBytesTotal);var a=B(n.files,n.maxFiles);if(t&&e){n.updateValueInMap(e,"error",w("duet-upload-202",n.errorCodes),false)}if(a&&e){n.updateValueInMap(e,"error",w("duet-upload-301",n.errorCodes),false)}n.bytesMaxReached=t;n.fileMaxReached=a;return{bytesMaxReached:t,fileMaxReached:a}};this.uploadFile=function(e,t,a){if(t===void 0){t=false}return __awaiter(n,void 0,void 0,(function(){var i,n,o;return __generator(this,(function(r){switch(r.label){case 0:if(!t&&this.deferUpload){this.updateValueInMap(e.item.name,"pending",true,false);this.updateValueInMap(e.item.name,"group","pending",true)}else if(t){this.updateValueInMap(e.item.name,"pending",false,false);this.updateValueInMap(e.item.name,"group",undefined,true)}r.label=1;case 1:r.trys.push([1,4,,5]);if(!(!this.deferUpload||t))return[3,3];i=new FormData;i.append("file",e.item);if(a){i.append("key",a)}i.append("uid",e.uid);i.append("name",e.item.name);i.append("metadata",JSON.stringify({uid:e.uid,url:this.uri,size:e.item.size,meta:e.meta}));n=e;return[4,this.makeXHRPostRequest(i)];case 2:n.xhr=r.sent();r.label=3;case 3:return[3,5];case 4:o=r.sent();this.updateValueInMap(e.item.name,"valid",false,false);return[3,5];case 5:return[2]}}))}))};this.uploadPendingFiles=function(){for(var e=0,t=Array.from(n.files.entries());e<t.length;e++){var a=t[e],i=a[0],o=a[1];if(o.group==="pending"&&o.pending===true){n.uploadFile(o,true,i)}}};this.getItemFromUID=function(e){for(var t=0,a=Array.from(n.files.entries());t<a.length;t++){var i=a[t],o=i[0],r=i[1];if(r.uid===e){return{value:r,key:o}}}return null};this.handleExternalUploadButton=function(e,t){if(n.externalUploadButton){if(e||t){n.externalUploadButton.disabled=true}else{n.externalUploadButton.disabled=false}}};this.onDelete=function(e,t){var a=n.getItemFromUID(e);var i=a.key;var o=n.files.get(i);n.files.delete(i);var r=n.validateTotals(),l=r.bytesMaxReached,s=r.fileMaxReached;n.handleExternalUploadButton(l,s);n.kick();n.duetDelete.emit({originalEvent:t,data:{deletion:o},component:"duet-upload"});if(!n.external&&!o.pending){n.makeXHRDeleteRequest(o)}n.resetFormFields()};this.onCancel=function(e,t){var a=n.getItemFromUID(e).key;var i=n.files.get(a);n.files.delete(a);var o=n.validateTotals(),r=o.bytesMaxReached,l=o.fileMaxReached;n.handleExternalUploadButton(r,l);if(!n.external){var s=i.xhr;if(s){s.abort()}}n.kick();n.resetFormFields();n.duetCancel.emit({originalEvent:t,data:{cancelled:i},component:"duet-upload"})};this.onUpload=function(e,t){n.duetUpload.emit({originalEvent:e,metaData:t,component:"duet-upload"})};this.onBlur=function(e){n.duetBlur.emit({originalEvent:e,component:"duet-upload"})};this.onProgress=function(e,t,a){n.duetChange.emit({originalEvent:a,data:{key:e,percentComplete:t},component:"duet-upload"})};this.onFocus=function(e){n.duetFocus.emit({originalEvent:e,component:"duet-upload"})};this.onReady=function(){n.duetReady.emit({component:"duet-upload"})};this.onDone=function(){n.duetDone.emit({component:"duet-upload",data:{files:n.files}})};this.filterMap=function(){var e=Array.from(n.files.values());var t=[];var a=[];var i=[];var o=[];var r=false;e.forEach((function(e){var l=n.getGroupFromItemData(e);if(e.meta&&!!e.meta.badges){r=true}if(l===n.DefaultGroups.success){o.push({uid:e.uid,data:e})}else if(l===n.DefaultGroups.inprogress){t.push({uid:e.uid,data:e})}else if(l===n.DefaultGroups.pending){i.push({uid:e.uid,data:e})}else if(l===n.DefaultGroups.failure){a.push({uid:e.uid,data:e})}else if(e.group){t.push({uid:e.uid,data:e})}}));return{pending:i,failure:a,success:o,inprogress:t,hasCategory:r}};this.getActions=function(e){return n.actions.filter((function(t){return t.map.includes(e)}))};this.renderUploadedItems=function(){n.itemRefs.clear();var e=n.filterMap();var a=e.hasCategory;var i=n.groups.map((function(i){var o=e[i.id];if(!(o===null||o===void 0?void 0:o.length)){return}return t(r,null,!n.hideGroups&&t(F,{categoryLabel:a?n.categoryLabel:undefined,label:i.label}),o.map((function(e){return n.mapFilesToUploadItems(e.data,i.id,a)})))}));return t(r,null,n.showUploadedItemsHeader&&t(F,{categoryLabel:a?n.categoryLabel:undefined,label:n.uploadedItemsHeaderLabel}),i)};this.tick=Date.now();this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.external=false;this.middleware=null;this.deferUpload=false;this.hideButton=false;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=undefined;this.showLinks=false;this.caption=undefined;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=f(this.statusLabelDefaults);this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"};this.buttonLabel=f(this.buttonLabelDefaults);this.accessibleButtonLabel=undefined;this.theme="";this.disabled=false;this.identifier=undefined;this.margin="auto";this.required=false;this.alignment="middle";this.hideGroups=false;this.files=new Map;this.valid=!this.required;this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"};this.label=f(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=f(this.descriptionDefaults);this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."};this.fileListEmpty=f(this.fileListEmptyDefaults);this.error="";this.errorCodes=E;this.name=undefined;this.maxBytes=2e8;this.maxBytesTotal=undefined;this.maxFiles=99;this.allowedExtensions="all";this.allowedMimetypes="*";this.multiple=true;this.limitSelection=false;this.value=undefined;this.externalUploadButtonId=undefined;this.captionOnBottom=false;this.showUploadedItemsHeader=false;this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"};this.hideHeader=false;this.emitEvent=false;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"}}]}e.prototype.watchValidHandler=function(e,t){if(e!==t){this.kick()}};e.prototype.componentWillLoad=function(){if(typeof this.statusMessageLabel==="string"){this.internalStatusMessageLabel=b(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}l(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId))};e.prototype.componentWillRender=function(){this.verifyValidity()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeInput){this.nativeInput.focus(e)}return[2]}))}))};e.prototype.upload=function(e){if(e===void 0){e=undefined}return __awaiter(this,void 0,void 0,(function(){var t,a,i;return __generator(this,(function(n){t=this.validateTotals(),a=t.bytesMaxReached,i=t.fileMaxReached;if(a||i){this.handleExternalUploadButton(a,i);this.kick();return[2]}this.metaData=e;this.nativeInput.click();return[2]}))}))};e.prototype.uploadPending=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.uploadPendingFiles();return[2]}))}))};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.kick();return[4,this.setFocus()];case 1:e.sent();return[2]}}))}))};e.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.files||this.files.size===0){return[2,false]}return[2,this.getFilesAsArray()]}))}))};e.prototype.updateValue=function(e,t,a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.updateValueInMap(e,t,a);return[2]}))}))};e.prototype.focusActionButton=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(a){switch(a.label){case 0:return[4,(t=this.itemRefs.get(e))===null||t===void 0?void 0:t.focusActionButton()];case 1:a.sent();return[2]}}))}))};e.prototype.render=function(){var e=this;var a=this.identifier||this.uploadId;var i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024);var o=Math.round(this.maxBytes/1024/1024);var l=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());l=l.replace(/{maxbytes}/g,"".concat(o.toString()," MB"));l=l.replace(/{maxbytestotal}/g,"".concat(i.toString()," MB"));l=l.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.ariaLabel=l}return t(n,{class:{"duet-m-0":this.margin==="none"}},t("duet-fieldset",{"label-hidden":this.hideHeader,label:this.label,caption:!this.captionOnBottom?l:undefined},t("slot",{name:"header"}),!this.files.size&&t("duet-empty-state",{id:this.labelId,part:this.identifier?"".concat(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"},l)),t("slot",{name:"afterfooter"}),!this.hideButton&&t(r,null,t("duet-spacer",{size:"large"}),t("duet-button",{id:this.buttonId,onClick:this.startUpload,"accessible-controls":a,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel,"accessible-owns":a,size:"small",variation:"secondary",fixed:true,icon:"action-add-circle",part:this.identifier?"".concat(this.identifier,"-button-upload"):"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit)&&t(r,null,t("duet-spacer",{size:"medium"}),t("duet-alert",{part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&w("duet-upload-301",this.errorCodes),this.bytesMaxReached&&w("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&w("duet-upload-302",this.errorCodes))),t("duet-visually-hidden",{"aria-hidden":"true"},t("input",{ref:function(t){e.nativeInput=t},accept:!this.limitSelection?undefined:"".concat(this.allowedMimetypes,",").concat(this.allowedExtensions),onBlur:this.onBlur,onFocus:this.onFocus,onChange:function(t){return e.onChange(t)},type:"file",class:{"duet-upload":true},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))};e.prototype.makeXHRPostRequest=function(e){var t=this;var a=new XMLHttpRequest;var i=e.get("name");a.upload.addEventListener("progress",(function(e){t.updateProgress(e,i)}));a.upload.addEventListener("load",(function(){t.transferComplete(i)}));a.upload.addEventListener("error",(function(){t.transferFailed(i)}));a.upload.addEventListener("abort",(function(){t.transferCanceled(i)}));var n={payload:{data:e,name:i},options:{type:"POST",uri:this.uri,xhr:a,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){n=this.middleware(n)}return H(n)};e.prototype.makeXHRDeleteRequest=function(e){var t=e.uid,a=e.item;var i=new XMLHttpRequest;var n={"x-fileuid":t,"x-filename":a.name};var o={payload:{data:null,name:name},options:{type:"DELETE",xhr:i,uri:this.uri,argument:"?key=".concat(t,"&name=").concat(a.name),headers:n},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){o=this.middleware(o)}return H(o)};e.prototype.onChange=function(e){return __awaiter(this,void 0,void 0,(function(){var t,a,i,n,o,r,l,s,d,u,p,h;return __generator(this,(function(c){switch(c.label){case 0:a=Array.from((t=this.nativeInput)===null||t===void 0?void 0:t.files);this.filesToUploadExceedsLimit=false;if(z(this.files.size,a.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}if(!a)return[3,6];i=0,n=a;c.label=1;case 1:if(!(i<n.length))return[3,6];o=n[i];r=U(o,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),l=r.valid,s=r.errorMessage,d=r.errorType,u=r.errorSystem;p=this.genHashName();h={uid:p,item:o,size:o.size,meta:this.metaData,uploaded:false,valid:l,error:{type:l?undefined:d,message:l?undefined:s,system_message:l?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(o.name,h);if(!(l&&!this.external))return[3,3];return[4,this.uploadFile(h)];case 2:c.sent();return[3,4];case 3:if(l&&this.external){this.updateValueInMap(h.item.name,"pending",true,false);this.updateValueInMap(h.item.name,"group","pending",true)}else if(!l){this.updateValueInMap(o.name,"valid",false,true)}c.label=4;case 4:this.kick();c.label=5;case 5:i++;return[3,1];case 6:this.resetFormFields();this.metaData=undefined;this.duetChange.emit({originalEvent:e,data:{files:this.files},component:"duet-upload"});return[2]}}))}))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{valid:["watchValidHandler"]}},enumerable:false,configurable:true});return e}());j.style=P}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{h as t,r as e,c as i,H as a,g as s,F as d}from"./p-79b6ac98.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-7649b95e.js";import{b as f,a as y}from"./p-75f7a572.js";import{c as v}from"./p-c1325e35.js";import{g as x,a as w}from"./p-cf504df5.js";import"./p-5a9d75e1.js";const k=({data:e,groupId:i,alignment:a})=>{const s=`duet-editable-table duet-editable-table-content-${i}`;return"string"==typeof e?t("td",{innerHTML:e,class:s,part:`${i}content`,style:{verticalAlign:a}}):t("td",{class:s,part:`${i}content`,style:{verticalAlign:a}},e)},T=class{constructor(t){e(this,t),this.duetTableToggle=i(this,"duetTableToggle",7),this.duetMenuClick=i(this,"duetMenuClick",7),this.hasHeadSlotFirst=!1,this.hasHeadSlotLast=!1,this.hasFootSlot=!1,this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"},this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"},this.toggleColumn=(t,e)=>{e.preventDefault();const{sort_order:i,direction:a,index:s,key:d}=t;this.duetTableToggle.emit({sort_order:i,index:s,direction:a,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']"),this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")}connectedCallback(){u(this)}disconnectedCallback(){b(this)}createLabel(e){const{sort_order:i,direction:a,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:i&&1===a?"action-arrow-down-small":i&&-1===a?"action-arrow-up-small":"action-subtract-small","icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":!0,onClick:t=>this.toggleColumn(e,t),onKeyDown:t=>this.handleKeyDown(e,t)},o)):o}getSortedColumns(){return[...this.columns].sort(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 i=this.createLabel(e);return""!==i?t("th",{scope:"col"},i):t("td",null)}})),this.actions&&t("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&t("duet-visually-hidden",null,this.actionColumnLabel[this.language])))}renderActions(e,i){if(this.actions)return t("td",{class:"duet-text-right"},this.actions.map((a=>t("duet-action-button",{actionMeta:Object.assign({},(null==e?void 0:e.meta)||{},{index:i}),actionId:(null==e?void 0:e.uid)||(null==e?void 0:e.id)||null,actionName:a.name,theme:this.theme,iconName:a.icon,iconColor:a.color,iconSize:a.size,background:a.background,"accessible-label":`${e.actionDescription||""} ${p(a.label)} `}))))}renderTableBody(){const e=this.getSortedColumns(),i=this.getRowSortOrder();return[...this.rows].sort(l(i)).map(((i,a)=>t("tr",{class:{"duet-table-action-row":!!this.actions,"duet-editable-table-row":!0,[`duet-editable-table-row-${this.groupId}`]:!0},"data-meta":JSON.stringify(i.meta)},e.map((e=>{if(!1!==e.display)return t(k,{data:i[e.key]?i[e.key]:i.item,groupId:this.groupId})})),this.actions&&this.renderActions(i,a))))}render(){return t(a,{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()),this.hasFootSlot&&t("tfoot",null,t("tr",null,t("td",{class:"duet-editable-table-footer-menu",colSpan:99},t("slot",{name:"tfoot"})))))))}get element(){return s(this)}};T.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 L={none:0,"with-links":16*parseFloat(c),"without-links":16*parseFloat(g)},S=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=L[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"),i=Array.from(t).map((t=>t.textContent.trim()));e.forEach((t=>{t.querySelectorAll("td").forEach(((t,e)=>{i[e]&&(t.dataset.heading=i[e])}))}))}render(){return t(a,{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"]}}};S.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 E=[{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."}}],j=({label:e,categoryLabel:i})=>t("div",{class:"items-header"},i&&t("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none"},p(i)),t("duet-heading",{class:{"filename-header":!0,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none"},p(e))),M=(t,e,i)=>{const{allowedMimetypes:a,allowedExtensions:s,maxBytes:d}=e;let o=!1,l=x("default",i);if(t){const{name:e,type:n,size:r}=t,h=((t,e)=>{if(!e||!t)return!0;const i=e.split(",");let a=!1;return i.forEach((e=>{const i=e.split("/"),s=t.split("/");i[0]!==s[0]||i[1]!==s[1]&&"*"!==i[1]||(a=!0)})),a})(n,a),u="all"===s||""===s||" "===s||void 0===s||((t,e)=>{if(!e)return!0;const i=t.split(".");return e.split(",").includes(i[i.length-1])})(e.toLowerCase(),s),b=((t,e)=>!e||!t||e>=t)(r,d);h||(l=x("duet-upload-101",i)),u||(l=x("duet-upload-100",i)),b||(l=x("duet-upload-201",i)),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}},z=({payload:t,options:e,onFailure:i,onSuccess:a,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&&a(o,u,o.status),o.readyState===XMLHttpRequest.DONE&&o.status>=300&&o.status<999&&i(o,u,o.status)},s(u)),o.send(h),o},F=class{constructor(a){e(this,a),this.duetChange=i(this,"duetChange",3),this.duetBlur=i(this,"duetBlur",7),this.duetFocus=i(this,"duetFocus",7),this.duetReady=i(this,"duetReady",7),this.duetDone=i(this,"duetDone",3),this.duetState=i(this,"duetState",3),this.duetDelete=i(this,"duetDelete",3),this.duetCancel=i(this,"duetCancel",3),this.duetProgress=i(this,"duetProgress",3),this.duetUpload=i(this,"duetUpload",3),this.linkClick=i(this,"linkClick",3),this.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.itemRefs=new Map,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:i,id:a,originalEvent:s}=e;switch(i){case"delete":this.onDelete(a,s);break;case"cancel":this.onCancel(a,s)}}))},this.verifyValidity=()=>{const{invalid:t,valid:e}=this.getFilesAsArray(),i=this.valid;this.valid=0===t.length&&0!==e.length,this.valid!==i&&this.duetState.emit({originalEvent:void 0,data:{valid:this.valid,from:"componentWillRender"},component:"duet-upload"})},this.getGroupFromItemData=t=>t.valid&&100===t.progress?this.DefaultGroups.success:t.progress>0&&100!==t.progress?this.DefaultGroups.inprogress:t.valid?t.pending?this.DefaultGroups.pending:t.group?t.group:"none":this.DefaultGroups.failure,this.mapFilesToUploadItems=(e,i,a)=>i===this.DefaultGroups.success?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i),type:"success",data:e,showLinks:this.showLinks,linkClickEvent:this.emitEvent?this.linkClick:void 0,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.inprogress?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i),type:"inprogress",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.pending?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i),type:"pending",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.failure?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i),type:"failure",data:e,showLinks:this.showLinks,errorCodes:this.errorCodes,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):e.group?e.html:"none",this.genHashName=()=>Date.now().toString(36)+Math.random(),this.updateValueInMap=(t,e,i,a=!0)=>{try{const a=this.files.get(t);a[e]=i,this.files.set(t,a),this.external&&"url"!==e&&this.trackProgress(t,"uploaded"===e)}catch(t){}a&&this.kick()},this.updateProgress=(t,e)=>{t.lengthComputable?(i=>{this.updateValueInMap(e,"progress",i),this.onProgress(e,i,t)})(t.loaded/t.total*100):console.log("cant read progress")},this.trackProgress=(t,e=!1)=>{e?this.filesInProgress.delete(t):this.filesInProgress.set(t,"inprogress"),0===this.filesInProgress.size&&this.onDone()},this.getFilesAsArray=()=>{const t=[],e=[];return this.files.forEach((i=>{i.valid&&!i.deleted?t.push(i):i.valid||i.deleted||e.push(i)})),{valid:t,invalid:e}},this.resetFormFields=()=>{this.nativeInput.value=""},this.startUpload=async(t,e)=>{const{bytesMaxReached:i,fileMaxReached:a}=this.validateTotals();i||a?this.kick():(this.metaData=e,this.nativeInput.click(),this.onUpload(t,e),t.stopPropagation(),t.preventDefault())},this.transferComplete=t=>{this.updateValueInMap(t,"progress",100,!1),this.trackProgress(t,!0)},this.transferDone=(t,e,i)=>{this.updateValueInMap(e,"status",i,!1),this.updateValueInMap(e,"uploaded",!0,!1);try{const i=JSON.parse(t.response);this.updateValueInMap(e,"url",i.url)}catch(t){this.updateValueInMap(e,"url",null),console.error("Server did not respond with expected response {url: string}")}},this.transferDoneWithFailure=(t,e,i)=>{try{const{error:i}=JSON.parse(t.response);this.updateValueInMap(e,"error",{message:i.message,type:i.type},!1)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}"),this.updateValueInMap(e,"error",{type:i},!1)}this.updateValueInMap(e,"valid",!1,!0)},this.transferFailed=t=>{this.updateValueInMap(t,"error",w("duet-upload-001",this.errorCodes))},this.transferCanceled=t=>{this.files.delete(t),this.validateTotals(t),this.kick()},this.validateTotals=t=>{const e=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&t.size&&(i+=t.size)})),i>=e))})(0,this.maxBytesTotal),i=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&i++})),i>=e))})(0,this.maxFiles);return e&&t&&this.updateValueInMap(t,"error",w("duet-upload-202",this.errorCodes),!1),i&&t&&this.updateValueInMap(t,"error",w("duet-upload-301",this.errorCodes),!1),this.bytesMaxReached=e,this.fileMaxReached=i,{bytesMaxReached:e,fileMaxReached:i}},this.uploadFile=async(t,e=!1,i)=>{!e&&this.deferUpload?(this.updateValueInMap(t.item.name,"pending",!0,!1),this.updateValueInMap(t.item.name,"group","pending",!0)):e&&(this.updateValueInMap(t.item.name,"pending",!1,!1),this.updateValueInMap(t.item.name,"group",void 0,!0));try{if(!this.deferUpload||e){const e=new FormData;e.append("file",t.item),i&&e.append("key",i),e.append("uid",t.uid),e.append("name",t.item.name),e.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta})),t.xhr=await this.makeXHRPostRequest(e)}}catch(e){this.updateValueInMap(t.item.name,"valid",!1,!1)}},this.uploadPendingFiles=()=>{for(const[t,e]of Array.from(this.files.entries()))"pending"===e.group&&!0===e.pending&&this.uploadFile(e,!0,t)},this.getItemFromUID=t=>{for(const[e,i]of Array.from(this.files.entries()))if(i.uid===t)return{value:i,key:e};return null},this.handleExternalUploadButton=(t,e)=>{this.externalUploadButton&&(this.externalUploadButton.disabled=!(!t&&!e))},this.onDelete=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:s,fileMaxReached:d}=this.validateTotals();this.handleExternalUploadButton(s,d),this.kick(),this.duetDelete.emit({originalEvent:e,data:{deletion:a},component:"duet-upload"}),this.external||a.pending||this.makeXHRDeleteRequest(a),this.resetFormFields()},this.onCancel=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:s,fileMaxReached:d}=this.validateTotals();if(this.handleExternalUploadButton(s,d),!this.external){const{xhr:t}=a;t&&t.abort()}this.kick(),this.resetFormFields(),this.duetCancel.emit({originalEvent:e,data:{cancelled:a},component:"duet-upload"})},this.onUpload=(t,e)=>{this.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,component:"duet-upload"})},this.onProgress=(t,e,i)=>{this.duetChange.emit({originalEvent:i,data:{key:t,percentComplete:e},component:"duet-upload"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,component:"duet-upload"})},this.onReady=()=>{this.duetReady.emit({component:"duet-upload"})},this.onDone=()=>{this.duetDone.emit({component:"duet-upload",data:{files:this.files}})},this.filterMap=()=>{const t=Array.from(this.files.values()),e=[],i=[],a=[],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?a.push({uid:t.uid,data:t}):o===this.DefaultGroups.failure?i.push({uid:t.uid,data:t}):t.group&&e.push({uid:t.uid,data:t})})),{pending:a,failure:i,success:s,inprogress:e,hasCategory:d}},this.getActions=t=>this.actions.filter((e=>e.map.includes(t))),this.renderUploadedItems=()=>{this.itemRefs.clear();const e=this.filterMap(),i=e.hasCategory,a=this.groups.map((a=>{const s=e[a.id];if(null==s?void 0:s.length)return t(d,null,!this.hideGroups&&t(j,{categoryLabel:i?this.categoryLabel:void 0,label:a.label}),s.map((t=>this.mapFilesToUploadItems(t.data,a.id,i))))}));return t(d,null,this.showUploadedItemsHeader&&t(j,{categoryLabel:i?this.categoryLabel:void 0,label:this.uploadedItemsHeaderLabel}),a)},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=E,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.emitEvent=!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:i}=this.validateTotals();if(e||i)return this.handleExternalUploadButton(e,i),void this.kick();this.metaData=t,this.nativeInput.click()}async uploadPending(){this.uploadPendingFiles()}async refresh(){this.kick(),await this.setFocus()}async getFiles(){return!(!this.files||0===this.files.size)&&this.getFilesAsArray()}async updateValue(t,e,i){this.updateValueInMap(t,e,i)}async focusActionButton(t){var e;await(null===(e=this.itemRefs.get(t))||void 0===e?void 0:e.focusActionButton())}render(){const e=this.identifier||this.uploadId,i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024),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,`${i.toString()} MB`),o=o.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", ")),this.externalUploadButton&&(this.externalUploadButton.ariaLabel=o),t(a,{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&&w("duet-upload-301",this.errorCodes),this.bytesMaxReached&&w("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&w("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,i=t.get("name");e.upload.addEventListener("progress",(t=>{this.updateProgress(t,i)})),e.upload.addEventListener("load",(()=>{this.transferComplete(i)})),e.upload.addEventListener("error",(()=>{this.transferFailed(i)})),e.upload.addEventListener("abort",(()=>{this.transferCanceled(i)}));let a={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:e,argument:null,headers:void 0},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(a=this.middleware(a)),z(a)}makeXHRDeleteRequest(t){const{uid:e,item:i}=t,a=new XMLHttpRequest;let s={payload:{data:null,name},options:{type:"DELETE",xhr:a,uri:this.uri,argument:`?key=${e}&name=${i.name}`,headers:{"x-fileuid":e,"x-filename":i.name}},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(s=this.middleware(s)),z(s)}async onChange(t){var e;const i=Array.from(null===(e=this.nativeInput)||void 0===e?void 0:e.files);if(this.filesToUploadExceedsLimit=!1,this.files.size+i.length>this.maxFiles)return this.filesToUploadExceedsLimit=!0,void this.kick();if(i)for(const t of i){const{valid:e,errorMessage:i,errorType:a,errorSystem:s}=M(t,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),d={uid:this.genHashName(),item:t,size:t.size,meta:this.metaData,uploaded:!1,valid:e,error:{type:e?void 0:a,message:e?void 0:i,system_message:e?void 0:s},progress:0,deleted:!1,xhr:!1,url:!1};this.files.set(t.name,d),e&&!this.external?await this.uploadFile(d):e&&this.external?(this.updateValueInMap(d.item.name,"pending",!0,!1),this.updateValueInMap(d.item.name,"group","pending",!0)):e||this.updateValueInMap(t.name,"valid",!1,!0),this.kick()}this.resetFormFields(),this.metaData=void 0,this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"})}get element(){return s(this)}static get watchers(){return{valid:["watchValidHandler"]}}};F.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{T as duet_editable_table,S as duet_table,F as duet_upload}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,c as t,h as i,H as n,g as o}from"./p-79b6ac98.js";import{a,c as r}from"./p-b519ac77.js";import{i as s}from"./p-4ebf1618.js";const h=class{constructor(i){e(this,i),this.duetEvent=t(this,"duetEvent",7),this.mql=[window.matchMedia(a.replace(/'/g,"")),window.matchMedia(r.replace(/'/g,""))],this.boundMqlFunctions=[],this.scrollbarCheck=()=>{this.leftMoreVisible=this.container.scrollLeft>0,this.rightMoreVisible=this.container.scrollLeft!==this.container.scrollWidth-this.container.clientWidth},this.scrollToActive=()=>{let e;this.element.querySelectorAll("[active]").forEach((t=>{t.active&&(e=t)})),e&&e.offsetLeft&&e.offsetLeft>50&&(this.container.scrollLeft=e.offsetLeft-this.element.offsetWidth/2+e.offsetWidth/2)},this.changeLogoSize=()=>{this.logoSize=this.mql[1].matches?"large":"medium"},this.handleLogoClick=e=>{this.duetEvent.emit({name:"logoClick",component:"duet-menu-bar",data:{logoHref:this.logoHref},originalEvent:e})},this.logoSize="large",this.leftMoreVisible=!1,this.rightMoreVisible=!1,this.theme="",this.logo=!0,this.logoHref=void 0,this.logoLinkAccessibleLabel=void 0,this.accessibleLabel=void 0}componentWillLoad(){s(this);const e=Array.from(this.element.children);for(const t of e)if("center"===t.getAttribute("slot"))for(const e of Array.from(t.children))e.setAttribute("role","listitem");else if("right"===t.getAttribute("slot"))for(const e of Array.from(t.children))e.setAttribute("role","listitem")}connectedCallback(){this.changeLogoSize();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.changeLogoSize.bind(this);this.mql[e].addEventListener("change",t),this.boundMqlFunctions[e]=t}}disconnectedCallback(){for(let e=0;e<this.mql.length;e++)this.mql[e].removeEventListener&&this.mql[e].removeEventListener("change",this.boundMqlFunctions[e]);this.boundMqlFunctions=[]}componentDidLoad(){setTimeout((()=>{this.scrollbarCheck(),this.scrollToActive()}),0)}onWindowResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((()=>{this.scrollToActive()}),100)}render(){const e=document.querySelectorAll("duet-slideout").length>0;return i(n,null,i("nav",{class:{"duet-menu-bar":!0,"duet-theme-turva":"turva"===this.theme,"horizontal-nav":e&&!this.logo},"aria-label":this.accessibleLabel},i("div",{class:"top"}),i("div",{class:{container:!0},ref:e=>this.container=e,onScroll:()=>this.scrollbarCheck()},this.logo&&i("div",null,i("duet-logo",{size:this.logoSize,margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick})),i("div",{class:"list center",role:"list"},i("div",{class:"more-left",hidden:!this.leftMoreVisible,role:"presentation"}),i("slot",{name:"center"}),i("div",{class:"more-right",hidden:!this.rightMoreVisible,role:"presentation"})),i("div",{class:"list right",role:"list"},i("slot",{name:"right"}))),i("div",{class:"bottom"})))}get element(){return o(this)}};h.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;width:100%}.duet-menu-bar{display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07)}@media (min-width: 62em){.duet-menu-bar{box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1)}}.duet-menu-bar .top{display:none}.duet-menu-bar .bottom{display:none}.duet-menu-bar.horizontal-nav{position:relative}.duet-menu-bar.horizontal-nav .top{position:absolute;top:0;left:3.5%;display:block;width:93%;height:1px;background:rgb(245, 248, 250)}.duet-menu-bar.horizontal-nav .bottom{position:absolute;bottom:0;left:0;display:block;width:100%;height:1px;background:rgb(225, 227, 230)}.duet-menu-bar.horizontal-nav .more-left{position:absolute;top:0;left:-1px;z-index:1;width:56px;height:49px;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-left{display:none}}.duet-menu-bar.horizontal-nav .more-right{position:absolute;top:0;right:-1px;z-index:1;width:56px;height:49px;background:linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-right{display:none}}@media (pointer: fine){.duet-menu-bar.horizontal-nav{display:none}}@media (pointer: fine) and ((min-width: 62em)){.duet-menu-bar.horizontal-nav{display:flex}}.duet-menu-bar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1440px;height:100%;height:3.25rem;padding:0 8px 0 20px;overflow-x:auto;scrollbar-width:none}.duet-menu-bar .container::-webkit-scrollbar{width:0;height:0}@media (min-width: 62em){.duet-menu-bar .container{height:5rem;padding:0 28px;overflow-x:visible}}.duet-menu-bar .container .list{height:100%;list-style-type:none}.duet-menu-bar .container ::slotted(*){height:100%}.duet-menu-bar .container>*{display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar .container>:first-child{flex-basis:0;flex-grow:1;justify-content:flex-start}.duet-menu-bar .container>:last-child{flex-basis:0;flex-grow:1;justify-content:flex-end}.duet-menu-bar .container ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar.duet-theme-turva{background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13)}@media (min-width: 62em){.duet-menu-bar.duet-theme-turva{box-shadow:0 3px 6px 0 rgba(117, 117, 117, 0.15)}}.center{font-size:1rem;font-weight:600;line-height:1.25;color:rgb(0, 41, 77)}.duet-theme-turva .center{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.right{font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 77, 128)}.duet-theme-turva .right{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}';export{h as duet_menu_bar}
@@ -1,4 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;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,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,a){function o(t){try{s(n.next(t))}catch(t){a(t)}}function l(t){try{s(n["throw"](t))}catch(t){a(t)}}function s(t){t.done?r(t.value):i(t.value).then(o,l)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(t){return function(e){return s([t,e])}}function s(l){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(r=0)),r)try{if(n=1,i&&(a=l[0]&2?i["return"]:l[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;if(i=0,a)l=[l[0]&2,a.value];switch(l[0]){case 0:case 1:a=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(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1];a=l;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(l);break}if(a[2])r.ops.pop();r.trys.pop();continue}l=e.call(t,r)}catch(t){l=[6,t];i=0}finally{n=a=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 n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0)r[n]=t[n];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++){if(e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i]))r[n[i]]=t[n[i]]}return r};var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++){if(a||!(n in e)){if(!a)a=Array.prototype.slice.call(e,0,n);a[n]=e[n]}}return t.concat(a||Array.prototype.slice.call(e))};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register([],(function(t){"use strict";return{execute:function(){var e=this;function r(t){return t.split("-")[1]}function n(t){return t==="y"?"height":"width"}function i(t){return t.split("-")[0]}function a(t){return["top","bottom"].includes(i(t))?"x":"y"}function o(t,e,o){var l=t.reference,s=t.floating;var f=l.x+l.width/2-s.width/2;var c=l.y+l.height/2-s.height/2;var u=a(e);var v=n(u);var d=l[v]/2-s[v]/2;var p=i(e);var h=u==="x";var g;switch(p){case"top":g={x:f,y:l.y-s.height};break;case"bottom":g={x:f,y:l.y+l.height};break;case"right":g={x:l.x+l.width,y:c};break;case"left":g={x:l.x-s.width,y:c};break;default:g={x:l.x,y:l.y}}switch(r(e)){case"start":g[u]-=d*(o&&h?-1:1);break;case"end":g[u]+=d*(o&&h?-1:1);break}return g}var l=function(t,r,n){return __awaiter(e,void 0,void 0,(function(){var e,i,a,l,s,f,c,u,v,d,p,h,g,y,m,x,_,b,w,A,R,T,L,k,O,S;var E,P;return __generator(this,(function(D){switch(D.label){case 0:e=n.placement,i=e===void 0?"bottom":e,a=n.strategy,l=a===void 0?"absolute":a,s=n.middleware,f=s===void 0?[]:s,c=n.platform;u=f.filter(Boolean);return[4,c.isRTL==null?void 0:c.isRTL(r)];case 1:v=D.sent();return[4,c.getElementRects({reference:t,floating:r,strategy:l})];case 2:d=D.sent();p=o(d,i,v),h=p.x,g=p.y;y=i;m={};x=0;_=0;D.label=3;case 3:if(!(_<u.length))return[3,11];b=u[_],w=b.name,A=b.fn;return[4,A({x:h,y:g,initialPlacement:i,placement:y,strategy:l,middlewareData:m,rects:d,platform:c,elements:{reference:t,floating:r}})];case 4:R=D.sent(),T=R.x,L=R.y,k=R.data,O=R.reset;h=T!=null?T:h;g=L!=null?L:g;m=__assign(__assign({},m),(E={},E[w]=__assign(__assign({},m[w]),k),E));if(!(O&&x<=50))return[3,10];x++;if(!(typeof O==="object"))return[3,9];if(O.placement){y=O.placement}if(!O.rects)return[3,8];if(!(O.rects===true))return[3,6];return[4,c.getElementRects({reference:t,floating:r,strategy:l})];case 5:S=D.sent();return[3,7];case 6:S=O.rects;D.label=7;case 7:d=S;D.label=8;case 8:P=o(d,y,v),h=P.x,g=P.y;D.label=9;case 9:_=-1;return[3,10];case 10:_++;return[3,3];case 11:return[2,{x:h,y:g,placement:y,strategy:l,middlewareData:m}]}}))}))};function s(t){return __assign({top:0,right:0,bottom:0,left:0},t)}function f(t){return typeof t!=="number"?s(t):{top:t,right:t,bottom:t,left:t}}function c(t){return __assign(__assign({},t),{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function u(t,e){return __awaiter(this,void 0,void 0,(function(){var r,n,i,a,o,l,s,u,v,d,p,h,g,y,m,x,_,b,w,A,R,T,L,k,O,S,E,P,D,C,F,W,H;var B;return __generator(this,(function(V){switch(V.label){case 0:if(e===void 0){e={}}n=t.x,i=t.y,a=t.platform,o=t.rects,l=t.elements,s=t.strategy;u=e.boundary,v=u===void 0?"clippingAncestors":u,d=e.rootBoundary,p=d===void 0?"viewport":d,h=e.elementContext,g=h===void 0?"floating":h,y=e.altBoundary,m=y===void 0?false:y,x=e.padding,_=x===void 0?0:x;b=f(_);w=g==="floating"?"reference":"floating";A=l[m?w:g];T=c;k=(L=a).getClippingRect;B={};return[4,a.isElement==null?void 0:a.isElement(A)];case 1:if(!((r=V.sent())!=null?r:true))return[3,2];O=A;return[3,5];case 2:S=A.contextElement;if(S)return[3,4];return[4,a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)];case 3:S=V.sent();V.label=4;case 4:O=S;V.label=5;case 5:return[4,k.apply(L,[(B.element=O,B.boundary=v,B.rootBoundary=p,B.strategy=s,B)])];case 6:R=T.apply(void 0,[V.sent()]);E=g==="floating"?__assign(__assign({},o.floating),{x:n,y:i}):o.reference;return[4,a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)];case 7:P=V.sent();return[4,a.isElement==null?void 0:a.isElement(P)];case 8:if(!V.sent())return[3,10];return[4,a.getScale==null?void 0:a.getScale(P)];case 9:C=V.sent()||{x:1,y:1};return[3,11];case 10:C={x:1,y:1};V.label=11;case 11:D=C;W=c;if(!a.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,13];return[4,a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:E,offsetParent:P,strategy:s})];case 12:H=V.sent();return[3,14];case 13:H=E;V.label=14;case 14:F=W.apply(void 0,[H]);return[2,{top:(R.top-F.top+b.top)/D.y,bottom:(F.bottom-R.bottom+b.bottom)/D.y,left:(R.left-F.left+b.left)/D.x,right:(F.right-R.right+b.right)/D.x}]}}))}))}var v=Math.min;var d=Math.max;function p(t,e,r){return d(t,v(e,r))}var h=t("a",(function(t){return{name:"arrow",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var i,o,l,s,c,u,v,d,h,g,y,m,x,_,b,w,A,R,T,L,k,O,S,E,P,D,C,F,W,H,B;var V,j;return __generator(this,(function(M){switch(M.label){case 0:i=t||{},o=i.element,l=i.padding,s=l===void 0?0:l;c=e.x,u=e.y,v=e.placement,d=e.rects,h=e.platform,g=e.elements;if(o==null){return[2,{}]}y=f(s);m={x:c,y:u};x=a(v);_=n(x);return[4,h.getDimensions(o)];case 1:b=M.sent();w=x==="y";A=w?"top":"left";R=w?"bottom":"right";T=w?"clientHeight":"clientWidth";L=d.reference[_]+d.reference[x]-m[x]-d.floating[_];k=m[x]-d.reference[x];return[4,h.getOffsetParent==null?void 0:h.getOffsetParent(o)];case 2:O=M.sent();S=O?O[T]:0;E=!S;if(E)return[3,4];return[4,h.isElement==null?void 0:h.isElement(O)];case 3:E=!M.sent();M.label=4;case 4:if(E){S=g.floating[T]||d.floating[_]}P=L/2-k/2;D=y[A];C=S-b[_]-y[R];F=S/2-b[_]/2+P;W=p(D,F,C);H=r(v)!=null&&F!=W&&d.reference[_]/2-(F<D?y[A]:y[R])-b[_]/2<0;B=H?F<D?D-F:C-F:0;return[2,(V={},V[x]=m[x]-B,V.data=(j={},j[x]=W,j.centerOffset=F-W,j),V)]}}))}))}}}));var g={left:"right",right:"left",bottom:"top",top:"bottom"};function y(t){return t.replace(/left|right|bottom|top/g,(function(t){return g[t]}))}function m(t,e,i){if(i===void 0){i=false}var o=r(t);var l=a(t);var s=n(l);var f=l==="x"?o===(i?"end":"start")?"right":"left":o==="start"?"bottom":"top";if(e.reference[s]>e.floating[s]){f=y(f)}return{main:f,cross:y(f)}}var x={start:"end",end:"start"};function _(t){return t.replace(/start|end/g,(function(t){return x[t]}))}function b(t){var e=y(t);return[_(t),e,_(e)]}function w(t,e,r){var n=["left","right"];var i=["right","left"];var a=["top","bottom"];var o=["bottom","top"];switch(t){case"top":case"bottom":if(r)return e?i:n;return e?n:i;case"left":case"right":return e?a:o;default:return[]}}function A(t,e,n,a){var o=r(t);var l=w(i(t),n==="start",a);if(o){l=l.map((function(t){return t+"-"+o}));if(e){l=l.concat(l.map(_))}}return l}var R=t("f",(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,n,a,o,l,s,f,c,v,d,p,h,g,x,_,w,R,T,L,k,O,S,E,P,D,C,F,W,H,B,V,j,M,N,X,Y,G;return __generator(this,(function(I){switch(I.label){case 0:n=e.placement,a=e.middlewareData,o=e.rects,l=e.initialPlacement,s=e.platform,f=e.elements;c=t.mainAxis,v=c===void 0?true:c,d=t.crossAxis,p=d===void 0?true:d,h=t.fallbackPlacements,g=t.fallbackStrategy,x=g===void 0?"bestFit":g,_=t.fallbackAxisSideDirection,w=_===void 0?"none":_,R=t.flipAlignment,T=R===void 0?true:R,L=__rest(t,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);k=i(n);O=i(l)===l;return[4,s.isRTL==null?void 0:s.isRTL(f.floating)];case 1:S=I.sent();E=h||(O||!T?[y(l)]:b(l));if(!h&&w!=="none"){E.push.apply(E,A(l,T,w,S))}P=__spreadArray([l],E,true);return[4,u(e,L)];case 2:D=I.sent();C=[];F=((r=a.flip)==null?void 0:r.overflows)||[];if(v){C.push(D[k])}if(p){W=m(n,o,S),H=W.main,B=W.cross;C.push(D[H],D[B])}F=__spreadArray(__spreadArray([],F,true),[{placement:n,overflows:C}],false);if(!C.every((function(t){return t<=0}))){M=(((V=a.flip)==null?void 0:V.index)||0)+1;N=P[M];if(N){return[2,{data:{index:M,overflows:F},reset:{placement:N}}]}X=(j=F.filter((function(t){return t.overflows[0]<=0})).sort((function(t,e){return t.overflows[1]-e.overflows[1]}))[0])==null?void 0:j.placement;if(!X){switch(x){case"bestFit":{G=(Y=F.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:Y[0];if(G){X=G}break}case"initialPlacement":X=l;break}}if(n!==X){return[2,{reset:{placement:X}}]}}return[2,{}]}}))}))}}}));function T(t,e){return __awaiter(this,void 0,void 0,(function(){var n,o,l,s,f,c,u,v,d,p,h,g,y,m;return __generator(this,(function(x){switch(x.label){case 0:n=t.placement,o=t.platform,l=t.elements;return[4,o.isRTL==null?void 0:o.isRTL(l.floating)];case 1:s=x.sent();f=i(n);c=r(n);u=a(n)==="x";v=["left","top"].includes(f)?-1:1;d=s&&u?-1:1;p=typeof e==="function"?e(t):e;h=typeof p==="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:__assign({mainAxis:0,crossAxis:0,alignmentAxis:null},p),g=h.mainAxis,y=h.crossAxis,m=h.alignmentAxis;if(c&&typeof m==="number"){y=c==="end"?m*-1:m}return[2,u?{x:y*d,y:g*v}:{x:g*v,y:y*d}]}}))}))}var L=t("o",(function(t){if(t===void 0){t=0}return{name:"offset",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(a){switch(a.label){case 0:r=e.x,n=e.y;return[4,T(e,t)];case 1:i=a.sent();return[2,{x:r+i.x,y:n+i.y,data:i}]}}))}))}}}));function k(t){return t==="x"?"y":"x"}var O=t("s",(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,n,o,l,s,f,c,v,d,h,g,y,m,x,_,b,w,A,R,T,w,A,L,O,S;var E;return __generator(this,(function(P){switch(P.label){case 0:r=e.x,n=e.y,o=e.placement;l=t.mainAxis,s=l===void 0?true:l,f=t.crossAxis,c=f===void 0?false:f,v=t.limiter,d=v===void 0?{fn:function(t){var e=t.x,r=t.y;return{x:e,y:r}}}:v,h=__rest(t,["mainAxis","crossAxis","limiter"]);g={x:r,y:n};return[4,u(e,h)];case 1:y=P.sent();m=a(i(o));x=k(m);_=g[m];b=g[x];if(s){w=m==="y"?"top":"left";A=m==="y"?"bottom":"right";R=_+y[w];T=_-y[A];_=p(R,_,T)}if(c){w=x==="y"?"top":"left";A=x==="y"?"bottom":"right";L=b+y[w];O=b-y[A];b=p(L,b,O)}S=d.fn(__assign(__assign({},e),(E={},E[m]=_,E[x]=b,E)));return[2,__assign(__assign({},S),{data:{x:S.x-r,y:S.y-n}})]}}))}))}}}));function S(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function E(t){return S(t).getComputedStyle(t)}function P(t){return t instanceof S(t).Node}function D(t){return P(t)?(t.nodeName||"").toLowerCase():""}function C(t){return t instanceof S(t).HTMLElement}function F(t){return t instanceof S(t).Element}function W(t){if(typeof ShadowRoot==="undefined"){return false}var e=S(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function H(t){var e=E(t),r=e.overflow,n=e.overflowX,i=e.overflowY,a=e.display;return/auto|scroll|overlay|hidden|clip/.test(r+i+n)&&!["inline","contents"].includes(a)}function B(t){return["table","td","th"].includes(D(t))}function V(t){var e=j();var r=E(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 j(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}function M(t){return["html","body","#document"].includes(D(t))}var N=Math.min;var X=Math.max;var Y=Math.round;function G(t){var e=E(t);var r=parseFloat(e.width)||0;var n=parseFloat(e.height)||0;var i=C(t);var a=i?t.offsetWidth:r;var o=i?t.offsetHeight:n;var l=Y(r)!==a||Y(n)!==o;if(l){r=a;n=o}return{width:r,height:n,fallback:l}}function I(t){return!F(t)?t.contextElement:t}var q={x:1,y:1};function z(t){var e=I(t);if(!C(e)){return q}var r=e.getBoundingClientRect();var n=G(e),i=n.width,a=n.height,o=n.fallback;var l=(o?Y(r.width):r.width)/i;var s=(o?Y(r.height):r.height)/a;if(!l||!Number.isFinite(l)){l=1}if(!s||!Number.isFinite(s)){s=1}return{x:l,y:s}}var J={x:0,y:0};function K(t,e,r){var n,i;if(e===void 0){e=true}if(!j()){return J}var a=t?S(t):window;if(!r||e&&r!==a){return J}return{x:((n=a.visualViewport)==null?void 0:n.offsetLeft)||0,y:((i=a.visualViewport)==null?void 0:i.offsetTop)||0}}function Q(t,e,r,n){if(e===void 0){e=false}if(r===void 0){r=false}var i=t.getBoundingClientRect();var a=I(t);var o=q;if(e){if(n){if(F(n)){o=z(n)}}else{o=z(t)}}var l=K(a,r,n);var s=(i.left+l.x)/o.x;var f=(i.top+l.y)/o.y;var u=i.width/o.x;var v=i.height/o.y;if(a){var d=S(a);var p=n&&F(n)?S(n):n;var h=d.frameElement;while(h&&n&&p!==d){var g=z(h);var y=h.getBoundingClientRect();var m=getComputedStyle(h);y.x+=(h.clientLeft+parseFloat(m.paddingLeft))*g.x;y.y+=(h.clientTop+parseFloat(m.paddingTop))*g.y;s*=g.x;f*=g.y;u*=g.x;v*=g.y;s+=y.x;f+=y.y;h=S(h).frameElement}}return c({width:u,height:v,x:s,y:f})}function U(t){return((P(t)?t.ownerDocument:t.document)||window.document).documentElement}function Z(t){if(F(t)){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function $(t){var e=t.rect,r=t.offsetParent,n=t.strategy;var i=C(r);var a=U(r);if(r===a){return e}var o={scrollLeft:0,scrollTop:0};var l={x:1,y:1};var s={x:0,y:0};if(i||!i&&n!=="fixed"){if(D(r)!=="body"||H(a)){o=Z(r)}if(C(r)){var f=Q(r);l=z(r);s.x=f.x+r.clientLeft;s.y=f.y+r.clientTop}}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-o.scrollLeft*l.x+s.x,y:e.y*l.y-o.scrollTop*l.y+s.y}}function tt(t){return Q(U(t)).left+Z(t).scrollLeft}function et(t){var e=U(t);var r=Z(t);var n=t.ownerDocument.body;var i=X(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth);var a=X(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);var o=-r.scrollLeft+tt(t);var l=-r.scrollTop;if(E(n).direction==="rtl"){o+=X(e.clientWidth,n.clientWidth)-i}return{width:i,height:a,x:o,y:l}}function rt(t){if(D(t)==="html"){return t}var e=t.assignedSlot||t.parentNode||W(t)&&t.host||U(t);return W(e)?e.host:e}function nt(t){var e=rt(t);if(M(e)){return e.ownerDocument.body}if(C(e)&&H(e)){return e}return nt(e)}function it(t,e){var r;if(e===void 0){e=[]}var n=nt(t);var i=n===((r=t.ownerDocument)==null?void 0:r.body);var a=S(n);if(i){return e.concat(a,a.visualViewport||[],H(n)?n:[])}return e.concat(n,it(n))}function at(t,e){var r=S(t);var n=U(t);var i=r.visualViewport;var a=n.clientWidth;var o=n.clientHeight;var l=0;var s=0;if(i){a=i.width;o=i.height;var f=j();if(!f||f&&e==="fixed"){l=i.offsetLeft;s=i.offsetTop}}return{width:a,height:o,x:l,y:s}}function ot(t,e){var r=Q(t,true,e==="fixed");var n=r.top+t.clientTop;var i=r.left+t.clientLeft;var a=C(t)?z(t):{x:1,y:1};var o=t.clientWidth*a.x;var l=t.clientHeight*a.y;var s=i*a.x;var f=n*a.y;return{width:o,height:l,x:s,y:f}}function lt(t,e,r){var n;if(e==="viewport"){n=at(t,r)}else if(e==="document"){n=et(U(t))}else if(F(e)){n=ot(e,r)}else{var i=K(t);n=__assign(__assign({},e),{x:e.x-i.x,y:e.y-i.y})}return c(n)}function st(t,e){var r=rt(t);if(r===e||!F(r)||M(r)){return false}return E(r).position==="fixed"||st(r,e)}function ft(t,e){var r=e.get(t);if(r){return r}var n=it(t).filter((function(t){return F(t)&&D(t)!=="body"}));var i=null;var a=E(t).position==="fixed";var o=a?rt(t):t;while(F(o)&&!M(o)){var l=E(o);var s=V(o);if(!s&&l.position==="fixed"){i=null}var f=a?!s&&!i:!s&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||H(o)&&!s&&st(t,o);if(f){n=n.filter((function(t){return t!==o}))}else{i=l}o=rt(o)}e.set(t,n);return n}function ct(t){var e=t.element,r=t.boundary,n=t.rootBoundary,i=t.strategy;var a=r==="clippingAncestors"?ft(e,this._c):[].concat(r);var o=__spreadArray(__spreadArray([],a,true),[n],false);var l=o[0];var s=o.reduce((function(t,r){var n=lt(e,r,i);t.top=X(n.top,t.top);t.right=N(n.right,t.right);t.bottom=N(n.bottom,t.bottom);t.left=X(n.left,t.left);return t}),lt(e,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function ut(t){return G(t)}function vt(t,e){if(!C(t)||E(t).position==="fixed"){return null}if(e){return e(t)}return t.offsetParent}function dt(t){var e=rt(t);while(C(e)&&!M(e)){if(V(e)){return e}else{e=rt(e)}}return null}function pt(t,e){var r=S(t);if(!C(t)){return r}var n=vt(t,e);while(n&&B(n)&&E(n).position==="static"){n=vt(n,e)}if(n&&(D(n)==="html"||D(n)==="body"&&E(n).position==="static"&&!V(n))){return r}return n||dt(t)||r}function ht(t,e,r){var n=C(e);var i=U(e);var a=r==="fixed";var o=Q(t,true,a,e);var l={scrollLeft:0,scrollTop:0};var s={x:0,y:0};if(n||!n&&!a){if(D(e)!=="body"||H(i)){l=Z(e)}if(C(e)){var f=Q(e,true,a,e);s.x=f.x+e.clientLeft;s.y=f.y+e.clientTop}else if(i){s.x=tt(i)}}return{x:o.left+l.scrollLeft-s.x,y:o.top+l.scrollTop-s.y,width:o.width,height:o.height}}var gt={getClippingRect:ct,convertOffsetParentRelativeRectToViewportRelativeRect:$,isElement:F,getDimensions:ut,getOffsetParent:pt,getDocumentElement:U,getScale:z,getElementRects:function(t){return __awaiter(this,void 0,void 0,(function(){var e,r,n,i,a,o,l,s;var f;return __generator(this,(function(c){switch(c.label){case 0:e=t.reference,r=t.floating,n=t.strategy;i=this.getOffsetParent||pt;a=this.getDimensions;f={};o=ht;l=[e];return[4,i(r)];case 1:f.reference=o.apply(void 0,l.concat([c.sent(),n]));s=[{x:0,y:0}];return[4,a(r)];case 2:return[2,(f.floating=__assign.apply(void 0,s.concat([c.sent()])),f)]}}))}))},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return E(t).direction==="rtl"}};var yt=t("c",(function(t,e,r){var n=new Map;var i=__assign({platform:gt},r);var a=__assign(__assign({},i.platform),{_c:n});return l(t,e,__assign(__assign({},i),{platform:a}))}))}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,c as o,h as p,H as e,g as i}from"./p-79b6ac98.js";import{i as r}from"./p-4ebf1618.js";const u=class{constructor(p){t(this,p),this.tooltipPopupClosed=o(this,"tooltipPopupClosed",7),this.handleCloseClick=t=>{this.tooltipPopupClosed.emit({originalEvent:t,component:"duet-tooltip-popup"})},this.theme="",this.active=void 0,this.tooltipId=void 0,this.arrowStyles=void 0,this.placement=void 0,this.accessibleCloseLabel=void 0}componentWillLoad(){r(this)}async getArrowElement(){return this.arrowEl}async getContentElement(){return this.contentEl}async setFocusOnContentElement(){this.contentEl.focus()}render(){return p(e,null,p("div",{class:{"duet-tooltip":!0,"duet-theme-turva":"turva"===this.theme,"duet-tooltip-active":!0===this.active},onClick:t=>t.stopPropagation()},p("div",{ref:t=>this.contentEl=t,class:"duet-tooltip-content-area",tabindex:0,id:this.tooltipId},p("slot",null)),p("div",{ref:t=>this.arrowEl=t,class:{arrow:!0,[this.placement]:!0},style:this.arrowStyles},p("div",{class:{"arrow-container":!0,[this.placement]:!0}})),p("button",{type:"button",class:"duet-tooltip-close",onClick:this.handleCloseClick},p("duet-icon",{name:"navigation-close-small",margin:"none",color:"currentColor",size:"xxx-small"}),p("duet-visually-hidden",null,this.accessibleCloseLabel))))}get element(){return i(this)}};u.style='*.sc-duet-tooltip-popup,*.sc-duet-tooltip-popup::after,*.sc-duet-tooltip-popup::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-tooltip-popup-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute;z-index:950}.duet-tooltip.sc-duet-tooltip-popup{width:282px;min-height:48px;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.sc-duet-tooltip-popup{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.sc-duet-tooltip-popup .arrow.sc-duet-tooltip-popup{position:absolute;width:22px;height:22px;pointer-events:none}.duet-tooltip.sc-duet-tooltip-popup .arrow.bottom.sc-duet-tooltip-popup,.duet-tooltip.sc-duet-tooltip-popup .arrow.bottom-start.sc-duet-tooltip-popup,.duet-tooltip.sc-duet-tooltip-popup .arrow.bottom-end.sc-duet-tooltip-popup{top:-20px}.duet-tooltip.sc-duet-tooltip-popup .arrow-container.sc-duet-tooltip-popup{position:relative;width:100%;height:100%;pointer-events:none}.duet-tooltip.sc-duet-tooltip-popup .arrow-container.sc-duet-tooltip-popup::after{position:absolute;z-index:200;width:0;height:0;pointer-events:none;content:""}.duet-tooltip.sc-duet-tooltip-popup .arrow-container.sc-duet-tooltip-popup::before{position:absolute;z-index:100;width:0;height:0;pointer-events:none;content:""}.duet-tooltip.sc-duet-tooltip-popup .arrow-container.top.sc-duet-tooltip-popup::after,.duet-tooltip.sc-duet-tooltip-popup .arrow-container.top-start.sc-duet-tooltip-popup::after,.duet-tooltip.sc-duet-tooltip-popup .arrow-container.top-end.sc-duet-tooltip-popup::after{bottom:2px;left:2px;border:10px solid transparent;border-top:10px solid rgb(255, 255, 255)}.duet-tooltip.sc-duet-tooltip-popup .arrow-container.top.sc-duet-tooltip-popup::before,.duet-tooltip.sc-duet-tooltip-popup .arrow-container.top-start.sc-duet-tooltip-popup::before,.duet-tooltip.sc-duet-tooltip-popup .arrow-container.top-end.sc-duet-tooltip-popup::before{bottom:-1px;left:1px;border:11px solid transparent;border-top:11px solid rgb(225, 227, 230)}.duet-theme-turva.sc-duet-tooltip-popup .duet-tooltip.sc-duet-tooltip-popup .arrow-container.top.sc-duet-tooltip-popup::before,.duet-theme-turva.sc-duet-tooltip-popup .duet-tooltip.sc-duet-tooltip-popup .arrow-container.top-start.sc-duet-tooltip-popup::before,.duet-theme-turva.sc-duet-tooltip-popup .duet-tooltip.sc-duet-tooltip-popup .arrow-container.top-end.sc-duet-tooltip-popup::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip.sc-duet-tooltip-popup .arrow-container.bottom.sc-duet-tooltip-popup::after,.duet-tooltip.sc-duet-tooltip-popup .arrow-container.bottom-start.sc-duet-tooltip-popup::after,.duet-tooltip.sc-duet-tooltip-popup .arrow-container.bottom-end.sc-duet-tooltip-popup::after{bottom:1px;left:2px;border:10px solid transparent;border-bottom:10px solid rgb(255, 255, 255)}.duet-tooltip.sc-duet-tooltip-popup .arrow-container.bottom.sc-duet-tooltip-popup::before,.duet-tooltip.sc-duet-tooltip-popup .arrow-container.bottom-start.sc-duet-tooltip-popup::before,.duet-tooltip.sc-duet-tooltip-popup .arrow-container.bottom-end.sc-duet-tooltip-popup::before{bottom:1px;left:1px;border:11px solid transparent;border-bottom:11px solid rgb(225, 227, 230)}.duet-theme-turva.sc-duet-tooltip-popup .duet-tooltip.sc-duet-tooltip-popup .arrow-container.bottom.sc-duet-tooltip-popup::before,.duet-theme-turva.sc-duet-tooltip-popup .duet-tooltip.sc-duet-tooltip-popup .arrow-container.bottom-start.sc-duet-tooltip-popup::before,.duet-theme-turva.sc-duet-tooltip-popup .duet-tooltip.sc-duet-tooltip-popup .arrow-container.bottom-end.sc-duet-tooltip-popup::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip.duet-tooltip-has-label.sc-duet-tooltip-popup{right:auto !important;left:0;width:282px !important;transform-origin:0 0 !important}.duet-tooltip.duet-tooltip-active.sc-duet-tooltip-popup{visibility:visible;opacity:1;transition-property:transform, opacity}.duet-tooltip-content-area.sc-duet-tooltip-popup{padding:20px !important;width:100%;padding-right:25px !important;overflow-y:auto;-webkit-hyphens:auto;hyphens:auto;border-radius:4px;-webkit-overflow-scrolling:touch}.duet-tooltip-content-area.sc-duet-tooltip-popup:focus{outline:none}.user-is-tabbing.sc-duet-tooltip-popup-h .duet-tooltip-content-area.sc-duet-tooltip-popup:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.user-is-tabbing.sc-duet-tooltip-popup-h .duet-theme-turva.sc-duet-tooltip-popup .duet-tooltip-content-area.sc-duet-tooltip-popup:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-tooltip-content-area.sc-duet-tooltip-popup::-webkit-scrollbar{width:4px}.duet-tooltip-content-area.sc-duet-tooltip-popup::-webkit-scrollbar-track{border-radius:4px}.duet-tooltip-content-area.sc-duet-tooltip-popup::-webkit-scrollbar-thumb{background:rgb(225, 227, 230);border-radius:4px}.duet-theme-turva.sc-duet-tooltip-popup .duet-tooltip-content-area.sc-duet-tooltip-popup::-webkit-scrollbar-thumb{background:rgb(228, 228, 230)}.duet-tooltip-close.sc-duet-tooltip-popup{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.sc-duet-tooltip-popup:focus{outline:none;box-shadow:0 0 0 2px rgb(0, 119, 179)}.duet-theme-turva.sc-duet-tooltip-popup .duet-tooltip-close.sc-duet-tooltip-popup:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px rgb(23, 28, 58)}';export{u as duet_tooltip_popup}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- System.register(["./p-1880e89c.system.js","./p-21f3a17a.system.js"],(function(e,s){"use strict";var a,l,c,i,t;return{setters:[function(s){a=s.d;l=s.N;c=s.p;i=s.b;e("setNonce",s.s)},function(e){t=e.g}],execute:function(){var e=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 i=s.meta.url;var t=(e||{})["data-opts"]||{};if(i!==""){t.resourcesUrl=new URL(".",i).href}return c(t)};e().then((function(e){t();return i(JSON.parse('[["p-28e7d8ee.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-cb620ca3.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],"collapsibleForceExpanded":[4,"collapsible-force-expanded"],"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-42e29141.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-1eb8f4fe.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-2867f068.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],"getValueAsNumber":[64]}]]],["p-35fddc0c.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-d7460d04.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-5cca8d3e.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-cefbaef0.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-6e8dbf19.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]}],[6,"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-015f92ba.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-4c05864f.system",[[1,"duet-cookie-consent",{"accessibleLabel":[1,"accessible-label"],"theme":[1025]}]]],["p-f15e031a.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-74b822f7.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-1afb6da1.system",[[1,"duet-show-more",{"theme":[1025],"language":[1537],"showMoreLabelDefaults":[16],"showMoreLabel":[1537,"show-more-label"],"showLessLabelDefaults":[16],"showLessLabel":[1537,"show-less-label"],"showMoreAccessibleLabelDefaults":[16],"showMoreAccessibleLabel":[1537,"show-more-accessible-label"],"showLessAccessibleLabelDefaults":[16],"showLessAccessibleLabel":[1537,"show-less-accessible-label"],"margin":[1],"open":[1540],"buttonAriaOpen":[32]}]]],["p-03b229f9.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-f5bc03c1.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-16493302.system",[[1,"duet-callout",{"theme":[1025],"margin":[1]}]]],["p-6a1f6639.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-4cb95b05.system",[[1,"duet-promo-card",{"theme":[1025],"margin":[1],"backgroundColor":[1,"background-color"],"textColor":[1,"text-color"],"image":[1],"headingLevel":[1,"heading-level"]}]]],["p-f58f7049.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-1447cb8a.system",[[1,"duet-breadcrumb",{"theme":[1025],"href":[1025],"icon":[1025],"accessibleLabel":[1,"accessible-label"]}]]],["p-cfdd8822.system",[[1,"duet-breadcrumbs",{"theme":[1025],"variation":[1],"children":[32]}]]],["p-440aff1c.system",[[1,"duet-chip",{"accessibleLabel":[1,"accessible-label"],"variation":[1],"icon":[1],"theme":[1025],"identifier":[1],"value":[1025],"name":[1],"checked":[1540],"focus":[32],"popup":[32],"popupOpen":[32],"setFocus":[64]}]]],["p-864ccce8.system",[[1,"duet-collapsible",{"theme":[1025],"accessibleLabel":[1,"accessible-label"],"heading":[1],"headingFullWidth":[4,"heading-full-width"],"centerHeading":[4,"center-heading"],"headingWeight":[1,"heading-weight"],"headingSize":[1,"heading-size"],"headingLevel":[1,"heading-level"],"margin":[1],"open":[1540],"setFocus":[64]}]]],["p-3fd216ee.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-17e717aa.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-a7925c2c.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-402a51b4.system",[[1,"duet-menu-bar-dropdown",{"accessibleLabel":[1,"accessible-label"],"theme":[1025],"open":[1540],"icon":[1537],"iconSize":[32],"setFocus":[64]},[[8,"click","handleFocus"]]]]],["p-3f9bafee.system",[[1,"duet-menu-bar-dropdown-link",{"theme":[1025],"href":[1025],"icon":[1537],"accessibleLabel":[1,"accessible-label"]}]]],["p-379b7a5b.system",[[1,"duet-menu-bar-link",{"theme":[1025],"active":[1028],"href":[1025],"icon":[1537],"accessibleLabel":[1,"accessible-label"],"iconSize":[32]}]]],["p-a9dee517.system",[[1,"duet-page-heading",{"theme":[1025],"icon":[1025],"layout":[1025]}]]],["p-8793147c.system",[[1,"duet-popup-menu-item",{"accessibleLabel":[1,"accessible-label"],"theme":[1025],"url":[1],"external":[4],"value":[1],"leadingIcon":[1,"leading-icon"],"trailingIcon":[1,"trailing-icon"],"trailingText":[1,"trailing-text"],"active":[1028],"focus":[32],"setFocus":[64],"isFocused":[64]}]]],["p-fdd13933.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-90b0a60f.system",[[1,"duet-slideout",{"theme":[1025],"open":[1540],"backgroundColor":[1537,"background-color"],"language":[32],"toggle":[64],"setFocus":[64]},[[8,"keyup","handleKeyUp"]]]]],["p-dd2c8397.system",[[1,"duet-slideout-lang",{"theme":[1025],"language":[32]}]]],["p-deb6c0b1.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-3499c5ce.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-c8967f73.system",[[1,"duet-slideout-panel-dropdown",{"theme":[1025],"active":[1540],"open":[1540],"icon":[1537],"setFocus":[64]},[[8,"click","handleFocus"]]]]],["p-75d98b0c.system",[[1,"duet-submenu-bar",{"theme":[1025],"open":[1540],"accessibleLabel":[1,"accessible-label"],"mobile":[32],"bodyScroll":[32],"setFocus":[64]}]]],["p-1b7bb41b.system",[[1,"duet-submenu-bar-dropdown",{"theme":[1025],"active":[1028],"open":[1540],"icon":[1537],"isDesktop":[32],"iconSize":[32],"setFocus":[64]},[[8,"click","handleFocus"]]]]],["p-5ba959af.system",[[1,"duet-submenu-bar-dropdown-link",{"theme":[1025],"active":[1028],"href":[1025],"icon":[1537],"caret":[1028],"highlight":[1028]}]]],["p-de933c56.system",[[1,"duet-submenu-bar-link",{"theme":[1025],"active":[1028],"href":[1025],"icon":[1537],"iconSize":[32]}]]],["p-0d941b02.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-26fc5f52.system",[[1,"duet-toolbar-dropdown",{"theme":[1025],"accessibleLabel":[1,"accessible-label"],"active":[1540],"open":[1540],"icon":[1537],"setFocus":[64]},[[8,"click","handleFocus"]]]]],["p-04da6058.system",[[1,"duet-toolbar-dropdown-link",{"accessibleLabel":[1,"accessible-label"],"theme":[1025],"targetLanguage":[1,"target-language"],"href":[1025],"icon":[1537],"active":[1028]}]]],["p-798f633d.system",[[1,"duet-toolbar-link",{"theme":[1025],"active":[1028],"href":[1025],"icon":[1537],"accessibleLabel":[1,"accessible-label"]}]]],["p-358f27d4.system",[[1,"duet-layout",{"sticky":[4],"margin":[1],"stickyDistance":[1,"sticky-distance"],"center":[4],"tabs":[4],"middle":[4],"paddingBreakpoint":[1,"padding-breakpoint"]}]]],["p-e0711844.system",[[1,"duet-nav",{"theme":[1025]}]]],["p-120fcef7.system",[[1,"duet-popup-menu",{"accessibleLabel":[1,"accessible-label"],"theme":[1025],"controller":[16],"placement":[1],"position":[1],"mainAxisOffset":[2,"main-axis-offset"],"crossAxisOffset":[2,"cross-axis-offset"],"open":[32],"menuY":[32],"menuX":[32],"isOpen":[64],"show":[64],"hide":[64],"toggle":[64]},[[8,"keyup","handleKeyUp"],[8,"keydown","handleKeyDown"],[8,"click","handleClick"]]]]],["p-ebaf813c.system",[[1,"duet-section-layout",{"margin":[1],"middle":[4]}]]],["p-21e22519.system",[[1,"duet-shaped-image",{"theme":[1025],"accessibleLabel":[1,"accessible-label"],"margin":[1],"src":[1],"rotation":[2]}]]],["p-d58ad6fe.system",[[1,"duet-toolbar",{"theme":[1025],"accessibleLabel":[1,"accessible-label"]}]]],["p-ec120930.system",[[0,"duet-upload-item",{"theme":[1025],"data":[16],"type":[1],"showLinks":[4,"show-links"],"actions":[8],"label":[16],"categoryLabel":[16],"errorCodes":[16],"showCategory":[4,"show-category"],"linkClickEvent":[16],"focusActionButton":[64]}]]],["p-2827e61e.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-bdd55461.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-fa579e10.system",[[1,"duet-upload-aria-status",{"statusMessageLabel":[16],"accessibleAriaLive":[1,"accessible-aria-live"],"valid":[2],"total":[2],"invalid":[2],"inprogress":[2],"statusMessage":[32]}]]],["p-6c7a20e1.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-e53475fd.system",[[0,"duet-checkmark",{"theme":[1025],"checked":[1028],"presentationOnly":[4,"presentation-only"],"center":[4],"type":[513]}]]],["p-95a2dc66.system",[[1,"duet-empty-state",{"theme":[1025],"icon":[1],"size":[1]}]]],["p-f80275c5.system",[[6,"duet-grid",{"responsive":[4],"breakpoint":[1],"direction":[1],"rowReverse":[4,"row-reverse"],"alignment":[1],"distribution":[1],"mobile":[1],"gridTemplate":[1,"grid-template"],"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-0077c0b9.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-3a9e4386.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-c3bf4ada.system",[[1,"duet-divider",{"theme":[1025],"margin":[1],"color":[1]}],[1,"duet-spacer",{"size":[1],"direction":[1],"breakpoint":[1]}]]],["p-2b79476c.system",[[1,"duet-visually-hidden"]]],["p-32d6a948.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-c2860fc6.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-ab9b002c.system",[[1,"duet-badge",{"theme":[1025],"variation":[1],"background":[1],"margin":[1]}]]],["p-ce48373f.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-0b19b2fc.system",[[6,"duet-tooltip-popup",{"theme":[1025],"active":[4],"tooltipId":[1,"tooltip-id"],"arrowStyles":[16],"placement":[1],"accessibleCloseLabel":[1,"accessible-close-label"],"getArrowElement":[64],"getContentElement":[64],"setFocusOnContentElement":[64]}]]],["p-2b16b250.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"],[0,"tooltipPopupClosed","handlePopupClose"]]]]],["p-e689dc8c.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-cdbd1085.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-57bc9d10.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"],"emitEvent":[4,"link-click-event"],"groups":[16],"tick":[32],"setFocus":[64],"upload":[64],"uploadPending":[64],"refresh":[64],"getFiles":[64],"updateValue":[64],"focusActionButton":[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-2ed796cf.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]}]]],["p-312ae93d.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]}]]]]'),e)}))}}}));