@duetds/components 6.9.6 → 6.9.7

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 (506) hide show
  1. package/hydrate/index.js +1246 -58
  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-breadcrumb.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
  8. package/lib/cjs/duet-callout.cjs.entry.js +5 -2
  9. package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
  10. package/lib/cjs/duet-card.cjs.entry.js +1 -1
  11. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  12. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-choice_2.cjs.entry.js +5 -3
  14. package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  16. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  19. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-editable-table_3.cjs.entry.js +12 -4
  21. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  23. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-hero.cjs.entry.js +4 -3
  27. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  37. package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  39. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  43. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  46. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  47. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  48. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  49. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  50. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
  51. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  52. package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
  53. package/lib/cjs/duet-slideout.cjs.entry.js +2 -2
  54. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  55. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  56. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
  57. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  58. package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  60. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  61. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  62. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  65. package/lib/cjs/duet-tooltip.cjs.entry.js +1220 -48
  66. package/lib/cjs/duet-tray.cjs.entry.js +1 -1
  67. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  68. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  69. package/lib/cjs/duet.cjs.js +2 -2
  70. package/lib/cjs/{focus-utils-de2e491b.js → focus-utils-8852d70c.js} +1 -1
  71. package/lib/cjs/{index-978ec5b0.js → index-8baedc34.js} +1 -1
  72. package/lib/cjs/loader.cjs.js +2 -2
  73. package/lib/collection/components/duet-callout/duet-callout.js +4 -1
  74. package/lib/collection/components/duet-choice/duet-choice.js +3 -1
  75. package/lib/collection/components/duet-hero/duet-hero.css +10 -0
  76. package/lib/collection/components/duet-hero/duet-hero.js +3 -1
  77. package/lib/collection/components/duet-tooltip/duet-tooltip.css +39 -106
  78. package/lib/collection/components/duet-tooltip/duet-tooltip.js +53 -49
  79. package/lib/collection/components/duet-upload/duet-upload.js +3 -3
  80. package/lib/collection/components/duet-upload/upload-item.js +8 -2
  81. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  82. package/lib/dist-custom-elements/duet-alert.js +1 -1
  83. package/lib/dist-custom-elements/duet-badge.js +1 -1
  84. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  85. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  86. package/lib/dist-custom-elements/duet-button.js +1 -1
  87. package/lib/dist-custom-elements/duet-callout.js +7 -4
  88. package/lib/dist-custom-elements/duet-caption.js +1 -1
  89. package/lib/dist-custom-elements/duet-card.js +3 -3
  90. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  91. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  92. package/lib/dist-custom-elements/duet-choice-group.js +6 -6
  93. package/lib/dist-custom-elements/duet-choice.js +8 -6
  94. package/lib/dist-custom-elements/duet-collapsible.js +3 -3
  95. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  96. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  97. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  98. package/lib/dist-custom-elements/duet-date-picker.js +10 -10
  99. package/lib/dist-custom-elements/duet-divider.js +1 -1
  100. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  101. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  102. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  103. package/lib/dist-custom-elements/duet-footer.js +4 -4
  104. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  105. package/lib/dist-custom-elements/duet-grid.js +1 -1
  106. package/lib/dist-custom-elements/duet-header.js +9 -9
  107. package/lib/dist-custom-elements/duet-heading.js +1 -1
  108. package/lib/dist-custom-elements/duet-hero.js +12 -11
  109. package/lib/dist-custom-elements/duet-icon.js +1 -1
  110. package/lib/dist-custom-elements/duet-input.js +1 -1
  111. package/lib/dist-custom-elements/duet-label.js +1 -1
  112. package/lib/dist-custom-elements/duet-layout.js +1 -1
  113. package/lib/dist-custom-elements/duet-link.js +1 -1
  114. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  115. package/lib/dist-custom-elements/duet-list.js +1 -1
  116. package/lib/dist-custom-elements/duet-logo.js +1 -1
  117. package/lib/dist-custom-elements/duet-menu-bar-button.js +3 -3
  118. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  119. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +3 -3
  120. package/lib/dist-custom-elements/duet-menu-bar-link.js +3 -3
  121. package/lib/dist-custom-elements/duet-menu-bar.js +3 -3
  122. package/lib/dist-custom-elements/duet-modal.js +7 -7
  123. package/lib/dist-custom-elements/duet-multiselect.js +8 -8
  124. package/lib/dist-custom-elements/duet-nav.js +1 -1
  125. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  126. package/lib/dist-custom-elements/duet-notification.js +2 -2
  127. package/lib/dist-custom-elements/duet-number-input.js +9 -9
  128. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  129. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  130. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  131. package/lib/dist-custom-elements/duet-progress.js +1 -1
  132. package/lib/dist-custom-elements/duet-radio-group.js +6 -6
  133. package/lib/dist-custom-elements/duet-radio.js +1 -1
  134. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  135. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  136. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  137. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  138. package/lib/dist-custom-elements/duet-select.js +1 -1
  139. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  140. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  141. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  142. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
  143. package/lib/dist-custom-elements/duet-slideout.js +2 -2
  144. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  145. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  146. package/lib/dist-custom-elements/duet-step.js +4 -4
  147. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  148. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  149. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +3 -3
  150. package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
  151. package/lib/dist-custom-elements/duet-submenu-bar.js +3 -3
  152. package/lib/dist-custom-elements/duet-tab-group.js +9 -9
  153. package/lib/dist-custom-elements/duet-tab.js +1 -1
  154. package/lib/dist-custom-elements/duet-table.js +1 -1
  155. package/lib/dist-custom-elements/duet-textarea.js +8 -8
  156. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  157. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  158. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  159. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  160. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  161. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  162. package/lib/dist-custom-elements/duet-tray.js +3 -3
  163. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  164. package/lib/dist-custom-elements/duet-upload.js +28 -20
  165. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  166. package/lib/dist-custom-elements/index.js +1 -1
  167. package/lib/dist-custom-elements/p-1635a5ff.js +1446 -0
  168. package/lib/dist-custom-elements/{p-6f0966d2.js → p-1d207f70.js} +4 -4
  169. package/lib/dist-custom-elements/{p-0a6a8f11.js → p-2a351223.js} +1 -1
  170. package/lib/dist-custom-elements/{p-f9c288b5.js → p-369a9e6b.js} +3 -3
  171. package/lib/dist-custom-elements/{p-9ed66812.js → p-3d6100be.js} +2 -2
  172. package/lib/dist-custom-elements/{p-4d0f9f83.js → p-4d20fcd1.js} +1 -1
  173. package/lib/dist-custom-elements/{p-70ef0e9d.js → p-5119f1dc.js} +5 -5
  174. package/lib/dist-custom-elements/{p-5962ecc8.js → p-5183d2cf.js} +1 -1
  175. package/lib/dist-custom-elements/{p-a2fa664a.js → p-53c27e8e.js} +1 -1
  176. package/lib/dist-custom-elements/{p-087e9427.js → p-62683175.js} +1 -1
  177. package/lib/dist-custom-elements/{p-d8ca2c64.js → p-649043a8.js} +2 -2
  178. package/lib/dist-custom-elements/{p-f5d77e8e.js → p-67365843.js} +1 -1
  179. package/lib/dist-custom-elements/{p-a78d941c.js → p-68be9a91.js} +1 -1
  180. package/lib/dist-custom-elements/{p-c4689e7b.js → p-783a8425.js} +2 -2
  181. package/lib/dist-custom-elements/{p-5c9bf9ba.js → p-7a905f45.js} +3 -3
  182. package/lib/dist-custom-elements/{p-0b141ef0.js → p-7e395433.js} +1 -1
  183. package/lib/dist-custom-elements/{p-57bb44bf.js → p-87df78c6.js} +1 -1
  184. package/lib/dist-custom-elements/{p-c638adb2.js → p-8bad78a6.js} +1 -1
  185. package/lib/dist-custom-elements/{p-4a060f56.js → p-93fab31d.js} +1 -1
  186. package/lib/dist-custom-elements/{p-8160f98e.js → p-99687f8f.js} +6 -6
  187. package/lib/dist-custom-elements/{p-cbc12626.js → p-9d1b018a.js} +1 -1
  188. package/lib/dist-custom-elements/{p-a3ba0ed5.js → p-c243ec01.js} +1 -1
  189. package/lib/{esm/tokens-0963dc8b.js → dist-custom-elements/p-cb9787ec.js} +1 -1
  190. package/lib/dist-custom-elements/{p-f5252ae4.js → p-cbb67f4e.js} +1 -1
  191. package/lib/dist-custom-elements/{p-75f47a29.js → p-d95944c8.js} +1 -1
  192. package/lib/dist-custom-elements/{p-a27921ba.js → p-e080ccaa.js} +1 -1
  193. package/lib/dist-custom-elements/{p-49ef7e25.js → p-e2a3c6fa.js} +2 -2
  194. package/lib/dist-custom-elements/{p-064985f6.js → p-e4e40736.js} +2 -2
  195. package/lib/dist-custom-elements/{p-a1863bda.js → p-efa5255b.js} +1 -1
  196. package/lib/dist-custom-elements/{p-db20025e.js → p-f0e99128.js} +8 -8
  197. package/lib/dist-custom-elements/{p-b5a87909.js → p-f2d8763d.js} +2 -2
  198. package/lib/dist-custom-elements/{p-d54ecc52.js → p-f83c1df9.js} +1 -1
  199. package/lib/duet/duet.esm.js +1 -1
  200. package/lib/duet/duet.js +1 -1
  201. package/lib/duet/p-01d38ac9.entry.js +4 -0
  202. package/lib/duet/{p-7ecff545.system.entry.js → p-029f96ec.system.entry.js} +1 -1
  203. package/lib/duet/{p-0c1051da.entry.js → p-03bd5373.entry.js} +1 -1
  204. package/lib/duet/{p-4c812d78.system.entry.js → p-04da22d7.system.entry.js} +1 -1
  205. package/lib/duet/{p-b154ecd8.system.entry.js → p-07d0ed0a.system.entry.js} +1 -1
  206. package/lib/duet/{p-b8705a85.entry.js → p-08693a37.entry.js} +1 -1
  207. package/lib/duet/{p-11749645.system.entry.js → p-097da893.system.entry.js} +1 -1
  208. package/lib/duet/{p-50ce994c.system.entry.js → p-09d4bac7.system.entry.js} +1 -1
  209. package/lib/duet/{p-9c483f1d.system.entry.js → p-0a03a862.system.entry.js} +1 -1
  210. package/lib/duet/{p-0626d8a9.entry.js → p-0a6ff475.entry.js} +1 -1
  211. package/lib/duet/{p-26f3b159.system.entry.js → p-0b752687.system.entry.js} +1 -1
  212. package/lib/duet/{p-0a317f12.entry.js → p-0cdc880e.entry.js} +1 -1
  213. package/lib/duet/{p-6e5abb84.system.entry.js → p-0e165a4e.system.entry.js} +1 -1
  214. package/lib/duet/{p-da5583ea.entry.js → p-0f80e2fc.entry.js} +1 -1
  215. package/lib/duet/{p-f6e2e71a.system.entry.js → p-0fc1b439.system.entry.js} +1 -1
  216. package/lib/duet/{p-49eef496.system.entry.js → p-1028e393.system.entry.js} +1 -1
  217. package/lib/duet/{p-940f11ad.system.entry.js → p-106abf71.system.entry.js} +1 -1
  218. package/lib/duet/{p-67176e9e.entry.js → p-12afe002.entry.js} +1 -1
  219. package/lib/duet/{p-5707ba42.system.entry.js → p-1396c277.system.entry.js} +1 -1
  220. package/lib/duet/p-151892ff.system.entry.js +4 -0
  221. package/lib/duet/{p-830be23d.system.entry.js → p-1677ce5c.system.entry.js} +1 -1
  222. package/lib/duet/{p-336c0409.system.entry.js → p-1a0b0fe9.system.entry.js} +1 -1
  223. package/lib/duet/{p-44268138.system.js → p-1c0453e0.system.js} +1 -1
  224. package/lib/duet/{p-5da36d9e.entry.js → p-1c0a39db.entry.js} +1 -1
  225. package/lib/duet/{p-ca405201.entry.js → p-2125b071.entry.js} +1 -1
  226. package/lib/duet/{p-a3b22a18.entry.js → p-2879b97d.entry.js} +1 -1
  227. package/lib/duet/{p-7a7ef869.entry.js → p-29b9e99e.entry.js} +1 -1
  228. package/lib/duet/{p-1eece5bf.system.entry.js → p-2bc4d34e.system.entry.js} +1 -1
  229. package/lib/duet/p-2c68ee2d.system.entry.js +4 -0
  230. package/lib/duet/{p-e6d1e0be.system.entry.js → p-2d5be93c.system.entry.js} +1 -1
  231. package/lib/duet/{p-4058cee8.entry.js → p-2d71fa26.entry.js} +1 -1
  232. package/lib/duet/{p-d656d96e.system.entry.js → p-32eecc8d.system.entry.js} +1 -1
  233. package/lib/duet/{p-a03c4dcd.system.entry.js → p-344134e5.system.entry.js} +1 -1
  234. package/lib/duet/{p-c9edd0bb.system.entry.js → p-36bca919.system.entry.js} +1 -1
  235. package/lib/duet/{p-a0876e2e.system.entry.js → p-3b1ff9be.system.entry.js} +1 -1
  236. package/lib/duet/{p-2c31977d.entry.js → p-3c88792b.entry.js} +1 -1
  237. package/lib/duet/{p-13540a69.system.entry.js → p-3d6d2012.system.entry.js} +1 -1
  238. package/lib/duet/{p-728c2f13.entry.js → p-3de9ea90.entry.js} +1 -1
  239. package/lib/duet/{p-482497cd.entry.js → p-3e2c87e6.entry.js} +1 -1
  240. package/lib/duet/{p-50df271c.entry.js → p-3e7b62a4.entry.js} +1 -1
  241. package/lib/duet/{p-653eb7ce.system.entry.js → p-401a454b.system.entry.js} +1 -1
  242. package/lib/duet/{p-aa79548d.system.entry.js → p-41a69e48.system.entry.js} +1 -1
  243. package/lib/duet/{p-3d31b17b.system.entry.js → p-42844e9d.system.entry.js} +1 -1
  244. package/lib/duet/{p-f2f60847.entry.js → p-44f22e6b.entry.js} +1 -1
  245. package/lib/duet/{p-0eb4217a.entry.js → p-458dd158.entry.js} +1 -1
  246. package/lib/duet/{p-c2757db1.entry.js → p-45fe4429.entry.js} +1 -1
  247. package/lib/duet/p-4634f44d.entry.js +4 -0
  248. package/lib/duet/{p-51adf63c.system.entry.js → p-466c4910.system.entry.js} +1 -1
  249. package/lib/duet/{p-475d42a8.system.entry.js → p-48ef2786.system.entry.js} +1 -1
  250. package/lib/duet/{p-bdc400cf.entry.js → p-4a4cbba5.entry.js} +1 -1
  251. package/lib/duet/{p-745645b0.entry.js → p-4c1fb962.entry.js} +1 -1
  252. package/lib/duet/{p-8b148f79.system.entry.js → p-4c7fb05f.system.entry.js} +1 -1
  253. package/lib/duet/{p-636e5f15.entry.js → p-4cb43c38.entry.js} +1 -1
  254. package/lib/duet/p-5074accf.entry.js +4 -0
  255. package/lib/duet/{p-81c05491.system.entry.js → p-5573222d.system.entry.js} +1 -1
  256. package/lib/duet/{p-b672280a.entry.js → p-57a26a2a.entry.js} +1 -1
  257. package/lib/duet/{p-a92d4f59.system.entry.js → p-5c17a74a.system.entry.js} +1 -1
  258. package/lib/duet/{p-c6793076.system.entry.js → p-5d15cd89.system.entry.js} +1 -1
  259. package/lib/duet/{p-d6149423.entry.js → p-5e6542bc.entry.js} +1 -1
  260. package/lib/duet/{p-c42f3a40.system.entry.js → p-5f7a2639.system.entry.js} +1 -1
  261. package/lib/duet/{p-83b776f5.system.entry.js → p-613156e6.system.entry.js} +2 -2
  262. package/lib/duet/{p-da4c713c.system.entry.js → p-62a63d5b.system.entry.js} +1 -1
  263. package/lib/duet/{p-4d0d61a7.entry.js → p-6325ae2d.entry.js} +1 -1
  264. package/lib/duet/p-66fbed51.entry.js +4 -0
  265. package/lib/duet/{p-4ec88753.entry.js → p-675f844b.entry.js} +1 -1
  266. package/lib/duet/{p-e66936a4.system.entry.js → p-68ee9bfa.system.entry.js} +1 -1
  267. package/lib/duet/{p-5b17dfea.system.entry.js → p-6a0f118b.system.entry.js} +1 -1
  268. package/lib/duet/{p-d71ba70b.system.entry.js → p-6ba40ef9.system.entry.js} +1 -1
  269. package/lib/duet/{p-5cfb7c71.entry.js → p-6dc868fd.entry.js} +1 -1
  270. package/lib/duet/{p-ffbb062e.system.entry.js → p-6dcce504.system.entry.js} +1 -1
  271. package/lib/duet/{p-955782ae.entry.js → p-70e49d00.entry.js} +1 -1
  272. package/lib/duet/p-752fb0a0.system.entry.js +4 -0
  273. package/lib/duet/{p-3429690e.entry.js → p-75316086.entry.js} +1 -1
  274. package/lib/duet/p-789a9af4.entry.js +4 -0
  275. package/lib/duet/{p-be4bb297.system.entry.js → p-79dd09a6.system.entry.js} +1 -1
  276. package/lib/duet/{p-825fa6d7.entry.js → p-79eb3572.entry.js} +1 -1
  277. package/lib/duet/{p-1f66cbb6.entry.js → p-7b99f674.entry.js} +1 -1
  278. package/lib/duet/{p-587e1ad0.system.js → p-7bab508c.system.js} +1 -1
  279. package/lib/duet/{p-35664bb6.system.entry.js → p-7cf776fa.system.entry.js} +1 -1
  280. package/lib/duet/{p-46e061d9.entry.js → p-7e3e70df.entry.js} +1 -1
  281. package/lib/duet/{p-02fd20f6.system.entry.js → p-7f94280a.system.entry.js} +1 -1
  282. package/lib/duet/p-7fefe439.entry.js +4 -0
  283. package/lib/duet/{p-49c7c6fb.system.entry.js → p-8349ff2d.system.entry.js} +1 -1
  284. package/lib/duet/{p-fbc7ad71.entry.js → p-853ac360.entry.js} +1 -1
  285. package/lib/duet/{p-9f1699dc.system.entry.js → p-8d5edbbe.system.entry.js} +1 -1
  286. package/lib/duet/{p-c192f269.system.entry.js → p-91be047f.system.entry.js} +1 -1
  287. package/lib/duet/{p-7345aff9.system.entry.js → p-92e94229.system.entry.js} +1 -1
  288. package/lib/duet/{p-0ec6a000.entry.js → p-93a2c807.entry.js} +1 -1
  289. package/lib/duet/{p-ce00f1fd.system.entry.js → p-97528238.system.entry.js} +1 -1
  290. package/lib/duet/{p-0bcdec8b.system.entry.js → p-9791ab1b.system.entry.js} +1 -1
  291. package/lib/duet/{p-d24ebe03.system.entry.js → p-97df072f.system.entry.js} +1 -1
  292. package/lib/duet/{p-b731849c.system.entry.js → p-981f2443.system.entry.js} +1 -1
  293. package/lib/duet/{p-af932bca.system.entry.js → p-98777ba0.system.entry.js} +1 -1
  294. package/lib/duet/{p-e078ba11.entry.js → p-991271a2.entry.js} +1 -1
  295. package/lib/duet/{p-14ab7ebe.system.entry.js → p-9916b7d2.system.entry.js} +1 -1
  296. package/lib/duet/{p-02b08c30.entry.js → p-9c127e8f.entry.js} +1 -1
  297. package/lib/duet/p-9ec19751.entry.js +4 -0
  298. package/lib/duet/p-9f81873c.entry.js +4 -0
  299. package/lib/duet/{p-8ab66620.system.entry.js → p-a042bc85.system.entry.js} +2 -2
  300. package/lib/duet/{p-01dc716d.entry.js → p-a1a8395b.entry.js} +1 -1
  301. package/lib/duet/{p-cafb90c2.entry.js → p-a341e9c3.entry.js} +1 -1
  302. package/lib/duet/{p-a74c2dff.entry.js → p-a653bb02.entry.js} +1 -1
  303. package/lib/duet/{p-474bacf0.entry.js → p-a6aba2d3.entry.js} +1 -1
  304. package/lib/duet/{p-628600fa.entry.js → p-a903a315.entry.js} +1 -1
  305. package/lib/duet/{p-8078b081.system.js → p-a9a7d16c.system.js} +1 -1
  306. package/lib/duet/{p-c03df848.entry.js → p-a9d7b38d.entry.js} +1 -1
  307. package/lib/duet/{p-de62f610.system.entry.js → p-afcfc528.system.entry.js} +1 -1
  308. package/lib/duet/{p-8d98f055.entry.js → p-b4ff5c09.entry.js} +1 -1
  309. package/lib/duet/{p-1522db1d.entry.js → p-b90cdb91.entry.js} +1 -1
  310. package/lib/duet/{p-b651d2d1.entry.js → p-bb97ab92.entry.js} +1 -1
  311. package/lib/duet/{p-c9854b35.system.entry.js → p-bef59086.system.entry.js} +1 -1
  312. package/lib/duet/{p-041b483b.entry.js → p-c39467e4.entry.js} +1 -1
  313. package/lib/duet/{p-e4faf457.entry.js → p-c50233e1.entry.js} +1 -1
  314. package/lib/duet/{p-7000ce85.system.entry.js → p-c504d7cd.system.entry.js} +1 -1
  315. package/lib/duet/{p-f3d588ab.entry.js → p-c56dd6d7.entry.js} +1 -1
  316. package/lib/duet/{p-d9ef6f51.system.entry.js → p-c6a321f1.system.entry.js} +1 -1
  317. package/lib/duet/{p-e65709fc.entry.js → p-c94a423f.entry.js} +1 -1
  318. package/lib/duet/{p-c4d8cad0.js → p-cb9787ec.js} +1 -1
  319. package/lib/duet/{p-cc5a3edc.js → p-cca182be.js} +1 -1
  320. package/lib/duet/{p-cdea33d4.entry.js → p-cff8b0b3.entry.js} +1 -1
  321. package/lib/duet/{p-22c2c6d5.system.entry.js → p-d1b6fd73.system.entry.js} +1 -1
  322. package/lib/duet/p-d3bba23f.entry.js +4 -0
  323. package/lib/duet/{p-23ec6f02.entry.js → p-d4d2569e.entry.js} +1 -1
  324. package/lib/duet/{p-cb9991a5.system.entry.js → p-d6196775.system.entry.js} +1 -1
  325. package/lib/duet/{p-d0857e1f.system.js → p-d7e6a4ed.system.js} +1 -1
  326. package/lib/duet/{p-4b457bad.system.entry.js → p-da04e483.system.entry.js} +1 -1
  327. package/lib/duet/{p-420af35d.system.entry.js → p-dc4b4a04.system.entry.js} +1 -1
  328. package/lib/duet/{p-40b5d6b7.entry.js → p-de82bfee.entry.js} +1 -1
  329. package/lib/duet/{p-9c5001ab.entry.js → p-df7481e8.entry.js} +1 -1
  330. package/lib/duet/{p-9d0b30a0.system.entry.js → p-e057d8c4.system.entry.js} +1 -1
  331. package/lib/duet/{p-d20fb807.entry.js → p-e05c4a5b.entry.js} +1 -1
  332. package/lib/duet/{p-56f913f0.system.entry.js → p-e0848924.system.entry.js} +1 -1
  333. package/lib/duet/{p-332dc9a8.entry.js → p-e5d2b68e.entry.js} +1 -1
  334. package/lib/duet/{p-a57772d2.system.entry.js → p-e65bc05f.system.entry.js} +1 -1
  335. package/lib/duet/{p-1eccf55b.system.entry.js → p-e6f92c08.system.entry.js} +1 -1
  336. package/lib/duet/{p-d82963c2.system.entry.js → p-ed16d00b.system.entry.js} +1 -1
  337. package/lib/duet/p-f5a74f01.js +4 -0
  338. package/lib/duet/p-f5fd8e55.entry.js +4 -0
  339. package/lib/duet/{p-9ebea289.entry.js → p-f691d0b6.entry.js} +1 -1
  340. package/lib/duet/{p-55bdc762.entry.js → p-f7fbc435.entry.js} +1 -1
  341. package/lib/duet/{p-e4f417fe.entry.js → p-f8d91f4b.entry.js} +1 -1
  342. package/lib/esm/duet-action-button.entry.js +1 -1
  343. package/lib/esm/duet-alert.entry.js +1 -1
  344. package/lib/esm/duet-badge.entry.js +1 -1
  345. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  346. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  347. package/lib/esm/duet-button_2.entry.js +1 -1
  348. package/lib/esm/duet-callout.entry.js +5 -2
  349. package/lib/esm/duet-caption_4.entry.js +1 -1
  350. package/lib/esm/duet-card.entry.js +1 -1
  351. package/lib/esm/duet-checkbox.entry.js +1 -1
  352. package/lib/esm/duet-checkmark.entry.js +1 -1
  353. package/lib/esm/duet-choice_2.entry.js +5 -3
  354. package/lib/esm/duet-collapsible.entry.js +2 -2
  355. package/lib/esm/duet-combobox.entry.js +1 -1
  356. package/lib/esm/duet-contact-card.entry.js +1 -1
  357. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  358. package/lib/esm/duet-date-picker.entry.js +2 -2
  359. package/lib/esm/duet-divider_2.entry.js +1 -1
  360. package/lib/esm/duet-editable-table_3.entry.js +12 -4
  361. package/lib/esm/duet-empty-state.entry.js +1 -1
  362. package/lib/esm/duet-fieldset.entry.js +1 -1
  363. package/lib/esm/duet-footer.entry.js +1 -1
  364. package/lib/esm/duet-grid_2.entry.js +2 -2
  365. package/lib/esm/duet-header_2.entry.js +2 -2
  366. package/lib/esm/duet-hero.entry.js +4 -3
  367. package/lib/esm/duet-icon.entry.js +1 -1
  368. package/lib/esm/duet-input_2.entry.js +1 -1
  369. package/lib/esm/duet-layout.entry.js +1 -1
  370. package/lib/esm/duet-list_2.entry.js +1 -1
  371. package/lib/esm/duet-menu-bar-button.entry.js +2 -2
  372. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  373. package/lib/esm/duet-menu-bar-dropdown.entry.js +2 -2
  374. package/lib/esm/duet-menu-bar-link.entry.js +2 -2
  375. package/lib/esm/duet-menu-bar.entry.js +2 -2
  376. package/lib/esm/duet-modal.entry.js +2 -2
  377. package/lib/esm/duet-multiselect.entry.js +1 -1
  378. package/lib/esm/duet-nav.entry.js +1 -1
  379. package/lib/esm/duet-notification_2.entry.js +1 -1
  380. package/lib/esm/duet-number-input.entry.js +1 -1
  381. package/lib/esm/duet-page-heading.entry.js +1 -1
  382. package/lib/esm/duet-pagination_2.entry.js +1 -1
  383. package/lib/esm/duet-progress.entry.js +1 -1
  384. package/lib/esm/duet-radio_2.entry.js +1 -1
  385. package/lib/esm/duet-range-slider.entry.js +1 -1
  386. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  387. package/lib/esm/duet-section-layout.entry.js +1 -1
  388. package/lib/esm/duet-select.entry.js +1 -1
  389. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  390. package/lib/esm/duet-slideout-link.entry.js +1 -1
  391. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  392. package/lib/esm/duet-slideout-panel.entry.js +2 -2
  393. package/lib/esm/duet-slideout.entry.js +2 -2
  394. package/lib/esm/duet-step_2.entry.js +1 -1
  395. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  396. package/lib/esm/duet-submenu-bar-dropdown.entry.js +2 -2
  397. package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
  398. package/lib/esm/duet-submenu-bar.entry.js +2 -2
  399. package/lib/esm/duet-textarea.entry.js +1 -1
  400. package/lib/esm/duet-toggle.entry.js +1 -1
  401. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  402. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  403. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  404. package/lib/esm/duet-toolbar.entry.js +1 -1
  405. package/lib/esm/duet-tooltip.entry.js +1220 -48
  406. package/lib/esm/duet-tray.entry.js +1 -1
  407. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  408. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  409. package/lib/esm/duet.js +3 -3
  410. package/lib/esm/{focus-utils-b482bcb1.js → focus-utils-1e6af8c1.js} +1 -1
  411. package/lib/esm/{index-5a68b13e.js → index-77de1d56.js} +1 -1
  412. package/lib/esm/loader.js +3 -3
  413. package/lib/{dist-custom-elements/p-c4d8cad0.js → esm/tokens-20d688dc.js} +1 -1
  414. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  415. package/lib/esm-es5/duet-alert.entry.js +1 -1
  416. package/lib/esm-es5/duet-badge.entry.js +1 -1
  417. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  418. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  419. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  420. package/lib/esm-es5/duet-callout.entry.js +1 -1
  421. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  422. package/lib/esm-es5/duet-card.entry.js +1 -1
  423. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  424. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  425. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  426. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  427. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  428. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  429. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  430. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  431. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  432. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  433. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  434. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  435. package/lib/esm-es5/duet-footer.entry.js +1 -1
  436. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  437. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  438. package/lib/esm-es5/duet-hero.entry.js +1 -1
  439. package/lib/esm-es5/duet-icon.entry.js +1 -1
  440. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  441. package/lib/esm-es5/duet-layout.entry.js +1 -1
  442. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  443. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  444. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  445. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  446. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  447. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  448. package/lib/esm-es5/duet-modal.entry.js +1 -1
  449. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  450. package/lib/esm-es5/duet-nav.entry.js +1 -1
  451. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  452. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  453. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  454. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  455. package/lib/esm-es5/duet-progress.entry.js +1 -1
  456. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  457. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  458. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  459. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  460. package/lib/esm-es5/duet-select.entry.js +1 -1
  461. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  462. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  463. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  464. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  465. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  466. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  467. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  468. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  469. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  470. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  471. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  472. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  473. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  474. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  475. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  476. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  477. package/lib/esm-es5/duet-tooltip.entry.js +2 -2
  478. package/lib/esm-es5/duet-tray.entry.js +1 -1
  479. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  480. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  481. package/lib/esm-es5/duet.js +1 -1
  482. package/lib/esm-es5/{focus-utils-b482bcb1.js → focus-utils-1e6af8c1.js} +1 -1
  483. package/lib/esm-es5/{index-5a68b13e.js → index-77de1d56.js} +1 -1
  484. package/lib/esm-es5/loader.js +1 -1
  485. package/lib/esm-es5/{tokens-0963dc8b.js → tokens-20d688dc.js} +1 -1
  486. package/lib/types/components/duet-callout/duet-callout.d.ts +2 -0
  487. package/lib/types/components/duet-hero/duet-hero.d.ts +2 -0
  488. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +8 -7
  489. package/lib/types/components/duet-upload/duet-upload.d.ts +1 -1
  490. package/lib/types/components.d.ts +2 -2
  491. package/package.json +6 -5
  492. package/lib/dist-custom-elements/p-98c77c8d.js +0 -272
  493. package/lib/duet/p-2b1f8599.system.entry.js +0 -4
  494. package/lib/duet/p-3877d445.entry.js +0 -4
  495. package/lib/duet/p-42e60321.entry.js +0 -4
  496. package/lib/duet/p-4af2f77a.entry.js +0 -4
  497. package/lib/duet/p-60912840.entry.js +0 -4
  498. package/lib/duet/p-624d38a3.system.entry.js +0 -4
  499. package/lib/duet/p-673a6c11.entry.js +0 -4
  500. package/lib/duet/p-793dcfc2.js +0 -4
  501. package/lib/duet/p-95eb41b3.system.entry.js +0 -4
  502. package/lib/duet/p-a7953c81.entry.js +0 -4
  503. package/lib/duet/p-b1ae5c07.entry.js +0 -4
  504. package/lib/duet/p-b89cad4d.entry.js +0 -4
  505. package/lib/duet/p-bf4ceb06.entry.js +0 -4
  506. package/lib/duet/p-d5f65552.entry.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as t,H as a,g as i}from"./p-cc5a3edc.js";import{m as n}from"./p-c4d8cad0.js";import{i as o}from"./p-4ebf1618.js";const r=class{constructor(t){e(this,t),this.mql=[window.matchMedia(n.replace(/'/g,""))],this.boundMqlFunctions=[],this.changeIconSize=()=>{this.iconSize=this.mql[0].matches?"x-small":"small"},this.iconSize="x-small",this.theme="",this.active=!1,this.href="#",this.icon=void 0,this.accessibleLabel=void 0}componentWillLoad(){o(this)}connectedCallback(){this.changeIconSize();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.changeIconSize.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=[]}render(){return t(a,null,t("a",{class:{"duet-menu-bar-link":!0,"duet-theme-turva":"turva"===this.theme,active:this.active},href:this.href,"aria-current":this.active?"true":"false","aria-label":this.accessibleLabel},this.icon&&t("duet-icon",{theme:this.theme,size:this.iconSize,name:this.icon,margin:"none",color:"currentColor"}),t("slot",null)))}get element(){return i(this)}};r.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;height:100%}.duet-menu-bar-link{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:inherit;text-align:center;text-decoration:none;white-space:nowrap}.duet-menu-bar-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}@media (min-width: 62em){.duet-menu-bar-link{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-link{padding:0 28px}}.duet-menu-bar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-menu-bar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-menu-bar-link.active{color:rgb(0, 119, 179)}.duet-menu-bar-link.active::after{position:absolute;top:auto;bottom:2px;left:0;z-index:1;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(2px)}@media (min-width: 62em){.duet-menu-bar-link.active::after{z-index:auto;height:2px}}.duet-menu-bar-link.active.duet-theme-turva{color:rgb(198, 12, 48)}.duet-menu-bar-link.active.duet-theme-turva::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-menu-bar-link:hover{color:rgb(0, 119, 179)}.duet-menu-bar-link:hover.duet-theme-turva{color:rgb(198, 12, 48)}}';export{r as duet_menu_bar_link}
4
+ import{r as e,h as t,H as a,g as i}from"./p-cca182be.js";import{a as n}from"./p-cb9787ec.js";import{i as o}from"./p-4ebf1618.js";const r=class{constructor(t){e(this,t),this.mql=[window.matchMedia(n.replace(/'/g,""))],this.boundMqlFunctions=[],this.changeIconSize=()=>{this.iconSize=this.mql[0].matches?"x-small":"small"},this.iconSize="x-small",this.theme="",this.active=!1,this.href="#",this.icon=void 0,this.accessibleLabel=void 0}componentWillLoad(){o(this)}connectedCallback(){this.changeIconSize();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.changeIconSize.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=[]}render(){return t(a,null,t("a",{class:{"duet-menu-bar-link":!0,"duet-theme-turva":"turva"===this.theme,active:this.active},href:this.href,"aria-current":this.active?"true":"false","aria-label":this.accessibleLabel},this.icon&&t("duet-icon",{theme:this.theme,size:this.iconSize,name:this.icon,margin:"none",color:"currentColor"}),t("slot",null)))}get element(){return i(this)}};r.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;height:100%}.duet-menu-bar-link{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:inherit;text-align:center;text-decoration:none;white-space:nowrap}.duet-menu-bar-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}@media (min-width: 62em){.duet-menu-bar-link{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-link{padding:0 28px}}.duet-menu-bar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-menu-bar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-menu-bar-link.active{color:rgb(0, 119, 179)}.duet-menu-bar-link.active::after{position:absolute;top:auto;bottom:2px;left:0;z-index:1;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(2px)}@media (min-width: 62em){.duet-menu-bar-link.active::after{z-index:auto;height:2px}}.duet-menu-bar-link.active.duet-theme-turva{color:rgb(198, 12, 48)}.duet-menu-bar-link.active.duet-theme-turva::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-menu-bar-link:hover{color:rgb(0, 119, 179)}.duet-menu-bar-link:hover.duet-theme-turva{color:rgb(198, 12, 48)}}';export{r as duet_menu_bar_link}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-d0857e1f.system.js","./p-8078b081.system.js","./p-33b3aba4.system.js"],(function(e){"use strict";var t,i,n,o,r,a,l,s;return{setters:[function(e){t=e.r;i=e.c;n=e.h;o=e.H;r=e.g},function(e){a=e.m;l=e.c},function(e){s=e.i}],execute:function(){var c='*,*::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)}';var h=e("duet_menu_bar",function(){function e(e){var n=this;t(this,e);this.duetEvent=i(this,"duetEvent",7);this.mql=[window.matchMedia(a.replace(/'/g,"")),window.matchMedia(l.replace(/'/g,""))];this.boundMqlFunctions=[];this.scrollbarCheck=function(){n.leftMoreVisible=n.container.scrollLeft>0;n.rightMoreVisible=n.container.scrollLeft!==n.container.scrollWidth-n.container.clientWidth};this.scrollToActive=function(){var e=n.element.querySelectorAll("[active]");var t;e.forEach((function(e){if(e.active){t=e}}));if(t&&t.offsetLeft){if(t.offsetLeft>50){n.container.scrollLeft=t.offsetLeft-n.element.offsetWidth/2+t.offsetWidth/2}}};this.changeLogoSize=function(){if(n.mql[1].matches){n.logoSize="large"}else{n.logoSize="medium"}};this.handleLogoClick=function(e){n.duetEvent.emit({name:"logoClick",component:"duet-menu-bar",data:{logoHref:n.logoHref},originalEvent:e})};this.logoSize="large";this.leftMoreVisible=false;this.rightMoreVisible=false;this.theme="";this.logo=true;this.logoHref=undefined;this.logoLinkAccessibleLabel=undefined;this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){s(this);var e=Array.from(this.element.children);for(var t=0,i=e;t<i.length;t++){var n=i[t];if(n.getAttribute("slot")==="center"){for(var o=0,r=Array.from(n.children);o<r.length;o++){var a=r[o];a.setAttribute("role","listitem")}}else if(n.getAttribute("slot")==="right"){for(var l=0,c=Array.from(n.children);l<c.length;l++){var a=c[l];a.setAttribute("role","listitem")}}}};e.prototype.connectedCallback=function(){this.changeLogoSize();for(var e=0;e<this.mql.length;e++){if(this.mql[e].addEventListener){var t=this.changeLogoSize.bind(this);this.mql[e].addEventListener("change",t);this.boundMqlFunctions[e]=t}}};e.prototype.disconnectedCallback=function(){for(var e=0;e<this.mql.length;e++){if(this.mql[e].removeEventListener){this.mql[e].removeEventListener("change",this.boundMqlFunctions[e])}}this.boundMqlFunctions=[]};e.prototype.componentDidLoad=function(){var e=this;setTimeout((function(){e.scrollbarCheck();e.scrollToActive()}),0)};e.prototype.onWindowResize=function(){var e=this;clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout((function(){e.scrollToActive()}),100)};e.prototype.render=function(){var e=this;var t=document.querySelectorAll("duet-slideout").length>0;var i=t&&!this.logo;return n(o,null,n("nav",{class:{"duet-menu-bar":true,"duet-theme-turva":this.theme==="turva","horizontal-nav":i},"aria-label":this.accessibleLabel},n("div",{class:"top"}),n("div",{class:{container:true},ref:function(t){return e.container=t},onScroll:function(){return e.scrollbarCheck()}},this.logo&&n("div",null,n("duet-logo",{size:this.logoSize,margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick})),n("div",{class:"list center",role:"list"},n("div",{class:"more-left",hidden:!this.leftMoreVisible,role:"presentation"}),n("slot",{name:"center"}),n("div",{class:"more-right",hidden:!this.rightMoreVisible,role:"presentation"})),n("div",{class:"list right",role:"list"},n("slot",{name:"right"}))),n("div",{class:"bottom"})))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());h.style=c}}}));
4
+ System.register(["./p-d7e6a4ed.system.js","./p-a9a7d16c.system.js","./p-33b3aba4.system.js"],(function(e){"use strict";var t,i,n,o,r,a,l,s;return{setters:[function(e){t=e.r;i=e.c;n=e.h;o=e.H;r=e.g},function(e){a=e.a;l=e.c},function(e){s=e.i}],execute:function(){var c='*,*::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)}';var d=e("duet_menu_bar",function(){function e(e){var n=this;t(this,e);this.duetEvent=i(this,"duetEvent",7);this.mql=[window.matchMedia(a.replace(/'/g,"")),window.matchMedia(l.replace(/'/g,""))];this.boundMqlFunctions=[];this.scrollbarCheck=function(){n.leftMoreVisible=n.container.scrollLeft>0;n.rightMoreVisible=n.container.scrollLeft!==n.container.scrollWidth-n.container.clientWidth};this.scrollToActive=function(){var e=n.element.querySelectorAll("[active]");var t;e.forEach((function(e){if(e.active){t=e}}));if(t&&t.offsetLeft){if(t.offsetLeft>50){n.container.scrollLeft=t.offsetLeft-n.element.offsetWidth/2+t.offsetWidth/2}}};this.changeLogoSize=function(){if(n.mql[1].matches){n.logoSize="large"}else{n.logoSize="medium"}};this.handleLogoClick=function(e){n.duetEvent.emit({name:"logoClick",component:"duet-menu-bar",data:{logoHref:n.logoHref},originalEvent:e})};this.logoSize="large";this.leftMoreVisible=false;this.rightMoreVisible=false;this.theme="";this.logo=true;this.logoHref=undefined;this.logoLinkAccessibleLabel=undefined;this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){s(this);var e=Array.from(this.element.children);for(var t=0,i=e;t<i.length;t++){var n=i[t];if(n.getAttribute("slot")==="center"){for(var o=0,r=Array.from(n.children);o<r.length;o++){var a=r[o];a.setAttribute("role","listitem")}}else if(n.getAttribute("slot")==="right"){for(var l=0,c=Array.from(n.children);l<c.length;l++){var a=c[l];a.setAttribute("role","listitem")}}}};e.prototype.connectedCallback=function(){this.changeLogoSize();for(var e=0;e<this.mql.length;e++){if(this.mql[e].addEventListener){var t=this.changeLogoSize.bind(this);this.mql[e].addEventListener("change",t);this.boundMqlFunctions[e]=t}}};e.prototype.disconnectedCallback=function(){for(var e=0;e<this.mql.length;e++){if(this.mql[e].removeEventListener){this.mql[e].removeEventListener("change",this.boundMqlFunctions[e])}}this.boundMqlFunctions=[]};e.prototype.componentDidLoad=function(){var e=this;setTimeout((function(){e.scrollbarCheck();e.scrollToActive()}),0)};e.prototype.onWindowResize=function(){var e=this;clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout((function(){e.scrollToActive()}),100)};e.prototype.render=function(){var e=this;var t=document.querySelectorAll("duet-slideout").length>0;var i=t&&!this.logo;return n(o,null,n("nav",{class:{"duet-menu-bar":true,"duet-theme-turva":this.theme==="turva","horizontal-nav":i},"aria-label":this.accessibleLabel},n("div",{class:"top"}),n("div",{class:{container:true},ref:function(t){return e.container=t},onScroll:function(){return e.scrollbarCheck()}},this.logo&&n("div",null,n("duet-logo",{size:this.logoSize,margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick})),n("div",{class:"list center",role:"list"},n("div",{class:"more-left",hidden:!this.leftMoreVisible,role:"presentation"}),n("slot",{name:"center"}),n("div",{class:"more-right",hidden:!this.rightMoreVisible,role:"presentation"})),n("div",{class:"list right",role:"list"},n("slot",{name:"right"}))),n("div",{class:"bottom"})))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());d.style=c}}}));
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import{r as t,c as i,h as e,F as a,H as s,g as n}from"./p-cca182be.js";import{i as r}from"./p-4ebf1618.js";import{c as o}from"./p-c1325e35.js";import{d as h}from"./p-0b3f675e.js";import{k as l,l as p,d,b as u,a as c,c as g,m,n as b}from"./p-f077c646.js";import{g as v,a as k,c as w,d as f}from"./p-076452be.js";import"./p-5a9d75e1.js";const y=class{constructor(e){t(this,e),this.duetPageChange=i(this,"duetPageChange",3),this.listId=o("duet-pagination-list"),this.actionChain=async(t,i)=>{if(0===t)this.current=1;else if(i!==t){const i=Math.ceil(t/this.visibleItems)-1;i!==this.internalSectionIndex&&(this.internalSectionIndex=i,await this.setFocus())}return!0},this.emitPageEvent=h(((t,i)=>{const e=Number(i||this.current);this.duetPageChange.emit({component:"duet-pagination",from:e*this.take,to:e*this.take+this.take,current:e,take:this.take,type:"page",originalEvent:t})}),100),this.getEnteredNumber=h((t=>{this.emitPageEvent(t,this.numbersStore),this.current=Number(this.numbersStore),this.numbersStore="",this.duetPageChange.emit({component:"duet-pagination",from:this.current*this.take,to:this.current*this.take+this.take,current:this.current,take:this.take,type:"jump",originalEvent:t})}),500),this.numbersStore="",this.totalPages=10,this.internalSectionIndex=0,this.language=v(),this.theme="",this.jumpString="...",this.variation="default",this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLabelsDefaults={en:{next_page:"Next page",previous_page:"Previous page",first_page:"First page",last_page:"Last page",jump_to:"Jump to page",go_to:"Go to page",description:"You may use arrow keys to select page number",pagination_label:"Pagination, choose a number to jump to a page",prev_section:"Show previous {0} page numbers, screen reader user should use arrowkeys to navigate",next_section:"Show next {0} page numbers, screen reader user should use arrowkeys to navigate"},fi:{next_page:"Seuraava sivu",previous_page:"Edellinen sivu",first_page:"Ensimmäinen sivu",last_page:"Viimeinen sivu",jump_to:"Siirry sivulle",go_to:"Siirry sivulle",description:"Voit käyttää nuolinäppäimiä sivunumeron valitsemiseen",pagination_label:"Sivutus, valitse sivunumero siirtyäksesi sivulle",prev_section:"Näytä edelliset {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi",next_section:"Näytä seuraavat {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi"},sv:{next_page:"Nästa sida",previous_page:"Föregående sida",first_page:"Första sidan",last_page:"Sista sidan",jump_to:"Hoppa till sida",go_to:"Hoppa till sida",description:"Du kan använda piltangenterna för att välja sida",pagination_label:"Sidutning, välj en siffra för att hoppa till en sida",prev_section:"Visa föregående {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera",next_section:"Visa nästa {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera"}},this.accessibleLabels=k(this.accessibleLabelsDefaults),this.take=5,this.visibleItems=5,this.total=1e3,this.ariaControls="",this.current=1}watchLanguageStateHandler(t,i){t!==i&&this.accessibleLabels===this.accessibleLabelsDefaults[i]&&(this.accessibleLabels=k(this.accessibleLabelsDefaults,t))}watchPropTotalHandler(){return this.calculatePageTake(),!0}watchStateHandler(t,i){return this.actionChain(t,i)}componentWillLoad(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1,this.calculatePageTake(),r(this)}componentWillRender(){0!==this.internalSectionIndex&&this.internalSectionIndex!==this.totalPages&&this.calculatePageTake()}componentDidRender(){this.setFocus()}connectedCallback(){w(this)}disconnectedCallback(){f(this)}calculatePageTake(){this.totalPages=Math.ceil(this.total/this.take)}async onMouseHandler(t,i){t.preventDefault(),t.stopPropagation(),this.current=this.current+i,this.emitPageEvent(t)}async onKeyboardDown(t){let i=this.current;(d(t)||u(t))&&i--,(c(t)||g(t))&&i++,l(t)&&i<=this.totalPages&&(this.current=i,this.emitPageEvent(t)),p(t)&&this.shouldDisplayNavigation()&&(this.numbersStore=this.numbersStore+t.key,Number(this.numbersStore)>this.totalPages&&(this.numbersStore=this.totalPages+""),this.getEnteredNumber(t))}async setFocus(){const t=this.nativeNav.querySelector("li.duet-pagination-item-is-active duet-button");t&&await t.setFocus()}pageClickHandler(t){t.preventDefault();const i=Number(t.target.getAttribute("data-id"));this.current=i,this.emitPageEvent({},i)}sectionClickHandler(t,i){t.preventDefault();let e=this.internalSectionIndex+i;e*(this.take*this.visibleItems)>this.total&&(e=this.internalSectionIndex),this.internalSectionIndex=e>=0?e:0}jumpToStart(t){t.preventDefault(),this.internalSectionIndex=0,this.current=1,this.emitPageEvent(t)}jumpToEnd(t){t.preventDefault(),this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1),this.current=this.totalPages,this.emitPageEvent(t)}renderPageNumbers(){const t=[];let i=this.internalSectionIndex*this.visibleItems;do{if(i++,i>this.totalPages)break;t.push(e("li",{class:{"duet-pagination-item":!0,"duet-pagination-item-is-active":i===this.current},role:"menuitem"},e("duet-button",{class:{"duet-pagination-link":!0},color:i!==this.current?"turva"!==this.theme?"secondary":"secondary-turva":"turva"!==this.theme?"primary":"primary-turva","data-id":i,"center-text":!0,variation:"plain",margin:"none",accessibleLabel:`${this.accessibleLabels.go_to} ${i}`,onClick:t=>this.pageClickHandler(t),theme:this.theme},e("div",{class:"duet-pagination-page-number","aria-hidden":!0},i))))}while(i<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t}shouldDisplayNavigation(){return"compact"!==this.variation&&!(2*this.visibleItems>this.total/this.take)}render(){return e(s,{onKeyDown:t=>this.onKeyboardDown(t)},e("nav",{role:"navigation","aria-labelledby":this.accessibleLabelledBy?`${this.accessibleLabelledBy} ${this.listId}`:this.listId,"aria-describedby":this.accessibleDescribedBy?`${this.accessibleDescribedBy} ${this.listId}`:this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:t=>this.nativeNav=t,"aria-controls":this.ariaControls,class:{"duet-pagination-nav":!0,[`duet-pagination-variation-${this.variation}`]:!0}},""!==this.numbersStore&&e("div",{"aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":`${this.accessibleLabels.jump_to} ${this.numbersStore}`,part:"navigation-overlay"},e("duet-badge",{theme:this.theme},"jump to page : ",this.numbersStore)),e("ol",{id:this.listId,class:{"duet-pagination":!0,"duet-pagination-is-dimmed":""!==this.numbersStore},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},e("li",{class:{"duet-pagination-page-button":!0,"duet-pagination-button-first":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{disabled:0===this.internalSectionIndex&&this.current<=1,"data-direction":"back",onClick:t=>this.onMouseHandler(t,-1),"accessible-label":this.accessibleLabels.previous_page,"icon-name":"action-arrow-left-small",theme:this.theme})),0!==this.internalSectionIndex&&this.shouldDisplayNavigation()&&e(a,null,e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:"turva"!==this.theme?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:t=>this.jumpToStart(t),theme:this.theme},e("div",{class:"duet-pagination-page-number"},"1"))),e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}",`${this.visibleItems}`),onClick:t=>this.sectionClickHandler(t,-1),theme:this.theme},e("div",{class:"duet-pagination-page-number","aria-hidden":"true"},"...")))),this.renderPageNumbers(),this.internalSectionIndex*(this.visibleItems+2)<this.totalPages&&this.shouldDisplayNavigation()&&e(a,null,e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}",`${this.visibleItems}`),onClick:t=>this.sectionClickHandler(t,1),theme:this.theme},e("div",{class:"duet-pagination-page-number","aria-hidden":"true"},"..."))),e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:t=>this.jumpToEnd(t),theme:this.theme},e("div",{class:"duet-pagination-page-number"},this.totalPages)))),e("li",{class:{"duet-pagination-page-button":!0,"duet-pagination-button-last":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1,class:"duet-date-dialog-next","accessible-label":this.accessibleLabels.next_page,onClick:t=>this.onMouseHandler(t,1),"icon-name":"action-arrow-right-small",theme:this.theme})))))}get element(){return n(this)}static get watchers(){return{language:["watchLanguageStateHandler"],total:["watchPropTotalHandler"],current:["watchStateHandler"]}}};y.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;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}";const x=class{constructor(e){t(this,e),this.duetRangeStepUpdate=i(this,"duetRangeStepUpdate",7),this.leftBn=o("duetRangeStepper-left"),this.rightBn=o("duetRangeStepper-right"),this.handleClick=(t,i)=>{t.preventDefault(),this.stepIndex+=i,this.clampStepIndex(),this.handleStepClick(t)},this.language=v(),this.theme="",this.stepIndex=1,this.stepSize=50,this.total=1e3,this.ariaLabelsDefaults={en:{next_increment:"Next range increment",previous_increment:"Previous range increment",x_of_y:"{0}–{1} of {2}"},fi:{next_increment:"Seuraava välillä",previous_increment:"Edellinen välillä",x_of_y:"{0}–{1} / {2}"},sv:{next_increment:"Nästa intervall",previous_increment:"Föregående intervall",x_of_y:"{0}–{1} av {2}"}},this.ariaLabels=k(this.ariaLabelsDefaults),this.ariaControls=""}watchLanguageStateHandler(t,i){t!==i&&this.ariaLabels===this.ariaLabelsDefaults[i]&&(this.ariaLabels=k(this.ariaLabelsDefaults,t))}watchStepIndexStateHandler(t){this.leftBnRef&&this.rightBnRef&&(t<=1?(this.element===document.activeElement&&this.rightBnRef.setFocus(),this.leftBnRef.setAttribute("disabled","")):this.leftBnRef.removeAttribute("disabled"),t>=this.total/this.stepSize?(this.element===document.activeElement&&this.leftBnRef.setFocus(),this.rightBnRef.setAttribute("disabled","")):this.rightBnRef.removeAttribute("disabled"))}watchStepSizeStateHandler(t,i){t!==i&&(this.stepIndex*t>this.total&&(this.stepIndex=Math.ceil(this.total/t)),this.watchStepIndexStateHandler(this.stepIndex))}handleStepClick(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})}componentWillLoad(){r(this),this.clampStepIndex()}componentDidLoad(){this.watchStepIndexStateHandler(this.stepIndex)}connectedCallback(){w(this)}disconnectedCallback(){f(this)}clampStepIndex(){this.stepIndex<1?this.stepIndex=1:this.stepIndex*this.stepSize>this.total&&(this.stepIndex=Math.ceil(this.total/this.stepSize))}getFrom(){return Math.floor((this.stepIndex-1)*this.stepSize)+1}getTo(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)}generateStepSize(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))}generatePreviousIncrementLabel(){return 1===this.getFrom()?"":this.ariaLabels.x_of_y.replace("{0}",String(Math.max(this.getFrom()-this.stepSize,1))).replace("{1}",String(Math.min(this.getFrom()-1,this.total))).replace("{2}",String(this.total))}generateNextIncrementLabel(){return this.getTo()===this.total?"":this.ariaLabels.x_of_y.replace("{0}",String(this.getTo()+1)).replace("{1}",String(Math.min(this.getTo()+this.stepSize,this.total))).replace("{2}",String(this.total))}async onKeyboardDown(t){let i=this.stepIndex,e=1;(d(t)||u(t)||m(t))&&(i--,e=-1,this.leftBnRef.setFocus()),(c(t)||g(t)||b(t))&&(i++,e=1),l(t)&&i>0&&i*this.stepSize<=this.total&&this.handleClick(t,e)}render(){return e("div",{class:{"duet-range-stepper":!0,"duet-theme-turva":"turva"===this.theme},onKeyDown:t=>this.onKeyboardDown(t),"aria-controls":this.ariaControls},e("span",{class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),e("duet-action-button",{class:"duet-range-step-button duet-range-step-minus",onClick:t=>this.handleClick(t,-1),id:this.leftBn,"accessible-label":`${this.ariaLabels.previous_increment} ${this.generatePreviousIncrementLabel()}`,ref:t=>this.leftBnRef=t,part:"navigation-arrow",iconName:"action-arrow-left-small"}),e("duet-action-button",{class:"duet-range-step-button duet-range-step-plus",onClick:t=>this.handleClick(t,1),"accessible-label":`${this.ariaLabels.next_increment} ${this.generateNextIncrementLabel()}`,id:this.rightBn,ref:t=>this.rightBnRef=t,part:"navigation-arrow",iconName:"action-arrow-right-small"}))}get element(){return n(this)}static get watchers(){return{language:["watchLanguageStateHandler"],stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}}};x.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;display:inline-block;margin:0 auto}.duet-range-stepper{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;justify-content:center;min-width:30px;min-height:30px;font-weight:600;text-decoration:none;border-left-width:0}.duet-range-stepper{white-space:nowrap}.duet-range-stepper .duet-range-step-counter{font-weight:600;color:rgb(0, 41, 77)}.duet-range-stepper ::part(button){border:0}";export{y as duet_pagination,x as duet_range_stepper}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{E as t,r as e,h as i,H as d,g as n}from"./p-cc5a3edc.js";import{i as o}from"./p-4ebf1618.js";import{g as a,r}from"./p-73f9efad.js";import"./p-7c4baf1c.js";const s=t=>{if("script"===t.nodeName.toLowerCase())return!1;for(let e=0;e<t.attributes.length;e++)if(0===t.attributes[e].name.toLowerCase().indexOf("on"))return!1;if(t.children)for(let e=0;e<t.children.length;e++)if(!s(t.children[e]))return!1;return!0},u={},c=class{constructor(t){e(this,t),this.svgContent=void 0,this.theme="",this.icon=void 0,this.src=void 0,this.name="action-add",this.margin="auto",this.responsive=!0,this.color="",this.background="",this.backgroundOpacity=1,this.backgroundRotation=0,this.size="medium",this.outline="",this.shape="circle"}componentWillLoad(){o(this),this.src&&this.icon&&console.warn("[DUET COMPONENTS]: <duet-icon> should have either have src or icon attributes, but not both. icon attribute will take precedence","icon:",this.icon,"src:",this.src),this.loadIcon()}async loadIcon(){if(this.icon)return void(this.svgContent=this.icon);const e=this.src?this.src:`${t.cdnURIProd}/icons/${t.duetIconVersion}/lib/assets/${this.name}.svg`;try{this.svgContent=await function(t){if(u[t])return u[t];const e=async function(){const e=await fetch(t);if(!e.ok)throw new Error(`SVG request failed: ${e.status} ${e.statusText}`);const i=(t=>{if("undefined"==typeof document||!t)return;const e=document.createElement("div");e.innerHTML=t;for(let i=e.childNodes.length-1;i>=0;i--)"svg"!==e.childNodes[i].nodeName.toLowerCase()&&e.removeChild(e.childNodes[i]);return e.firstElementChild})(await e.text());if(!s(i))throw new Error("SVG validation failed");const d=document.createElement("div");return d.appendChild(i),d.innerHTML}();return u[t]=e}(e)}catch(i){console.warn(`[DUET COMPONENTS]: <duet-icon> could not load SVG from URL: ${e}.`,i)}}render(){const t="currentColor"===this.color?"currentColor":a(this.color,this.theme)||a(this.outline,this.theme),e=this.backgroundRotation?{transform:`rotate(${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{},n=Object.assign({color:t,background:r(a(this.background,this.theme),this.backgroundOpacity),"border-color":a(this.outline,this.theme)},e),o=Object.assign({},this.backgroundRotation?{transform:`rotate(-${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{});return i(d,{class:{"duet-m-0":"none"===this.margin,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background}},i("div",{"aria-hidden":"true",style:n,class:{"duet-icon":!0,[this.size]:!0,"duet-theme-turva":"turva"===this.theme,"duet-theme-default":"default"===this.theme,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background,["brand-rotated"===this.shape?"duet-icon-shape-brand":`duet-icon-shape-${this.shape}`]:!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme,"duet-icon-not-responsive":!this.responsive}},i("span",{"aria-hidden":"true",class:{"duet-icon-svg":!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme},innerHTML:this.svgContent,style:o})))}get element(){return n(this)}static get watchers(){return{src:["loadIcon"],icon:["loadIcon"],name:["loadIcon"]}}};c.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;margin-bottom:16px !important;display:inline-block;width:auto;max-width:100%;color:inherit;-webkit-tap-highlight-color:transparent}@media (max-width: 35.9375em){:host(.duet-icon-has-outline){margin-bottom:0 !important}}@media (max-width: 35.9375em){:host(.duet-icon-has-background){margin-bottom:0 !important}}:host(.duet-m-0){margin:0 !important}@media (max-width: 35.9375em){:host(.duet-m-0){margin:0 !important}}.duet-icon{-webkit-user-select:none;user-select:none;width:100%;height:100%;transform-origin:top center}.duet-icon.duet-icon-has-outline{padding:12px;border-style:solid;border-width:1px}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-outline{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background{padding:16px;color:rgb(255, 255, 255)}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-background{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background.duet-theme-turva,.duet-icon.duet-icon-has-background.duet-theme-default{color:rgb(255, 255, 255)}.duet-icon.duet-icon-shape-circle{border-radius:50%}.duet-icon.duet-icon-shape-brand{border-radius:25%}.duet-icon.duet-icon-has-background.xxx-small .duet-icon-svg,.duet-icon.duet-icon-has-outline.xxx-small .duet-icon-svg{width:10px;height:10px}.duet-icon.duet-icon-has-background.xx-small .duet-icon-svg,.duet-icon.duet-icon-has-outline.xx-small .duet-icon-svg{width:16px;height:16px}@media (max-width: 35.9375em){.duet-icon.duet-icon-not-responsive{transform:scale(1) !important}}.duet-icon.duet-theme-default{color:rgb(0, 119, 179)}.duet-icon.duet-theme-turva{color:rgb(198, 12, 48)}.duet-icon.auto .duet-icon-svg{width:100%;height:100%}.duet-icon.xxx-small .duet-icon-svg{width:7px;height:7px}.duet-icon.duet-icon-has-background.xxx-small{padding:6px}.duet-icon.duet-icon-has-outline.xxx-small{padding:4px}.duet-icon.xx-small .duet-icon-svg{width:10px;height:10px}.duet-icon.duet-icon-has-background.xx-small{padding:8px}.duet-icon.duet-icon-has-outline.xx-small{padding:7px}.duet-icon.x-small .duet-icon-svg{width:16px;height:16px}.duet-icon.duet-icon-has-outline.x-small{padding:10px}.duet-icon.duet-icon-has-background.x-small{padding:12px}.duet-icon.small .duet-icon-svg{width:20px;height:20px}.duet-icon.duet-icon-has-background.small{padding:14px}.duet-icon.large .duet-icon-svg{width:30px;height:30px}.duet-icon.x-large .duet-icon-svg{width:36px;height:36px}.duet-icon.xx-large .duet-icon-svg{width:48px;height:48px}.duet-icon.xxx-large .duet-icon-svg{width:48px;height:48px}@media (min-width: 48em){.duet-icon.xxx-large .duet-icon-svg{width:72px;height:72px}}.duet-icon.duet-icon-shape-brand.rotated{transform:rotate(20deg) scale(0.875);transform-origin:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva{display:flex;align-items:center;justify-content:center;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");-webkit-mask-repeat:no-repeat;mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");mask-repeat:no-repeat}.duet-icon.duet-icon-shape-brand.duet-theme-turva .duet-icon-svg{min-width:auto}.duet-icon.duet-icon-shape-brand.duet-theme-turva.xx-small{width:18px;height:15px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.x-small{width:32px;height:30px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.small{width:36px;height:34px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.medium{width:48px;height:44px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.large{width:62px;height:56px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.x-large{width:76px;height:68px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.xx-large{width:95px;height:86px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.xxx-large{width:144px;height:130px;padding:0}.duet-icon.duet-icon-shape-brand.xxx-small{padding:0}.duet-icon.duet-icon-shape-brand.xxx-small .duet-icon-svg{width:0;height:0}.duet-icon.duet-icon-shape-brand.xx-small{padding:4px}.duet-icon.duet-icon-shape-brand.xx-small .duet-icon-svg{width:10px;height:10px}.duet-icon.duet-icon-shape-brand.x-small{padding:8px}.duet-icon.duet-icon-shape-brand.x-small .duet-icon-svg{width:16px;height:16px}.duet-icon.duet-icon-shape-brand.small{padding:8px}.duet-icon.duet-icon-shape-brand.small .duet-icon-svg{width:20px;height:20px}.duet-icon.duet-icon-shape-brand.medium{padding:12px}.duet-icon.duet-icon-shape-brand.medium .duet-icon-svg{width:24px;height:24px}.duet-icon.duet-icon-shape-brand.large{padding:16px}.duet-icon.duet-icon-shape-brand.large .duet-icon-svg{width:30px;height:30px}.duet-icon.duet-icon-shape-brand.x-large{padding:20px}.duet-icon.duet-icon-shape-brand.x-large .duet-icon-svg{width:36px;height:36px}.duet-icon.duet-icon-shape-brand.xx-large{padding:24px}.duet-icon.duet-icon-shape-brand.xx-large .duet-icon-svg{width:48px;height:48px}.duet-icon.duet-icon-shape-brand.xxx-large{padding:36px}.duet-icon.duet-icon-shape-brand.xxx-large .duet-icon-svg{width:72px;height:72px}.duet-icon .duet-icon-svg{display:block;width:24px;min-width:100%;height:24px;font-size:0}.duet-icon .duet-icon-svg.rotated{transform:rotate(-20deg) scale(1.14)}.duet-icon svg{width:100%;min-width:100%;fill:currentColor}";export{c as duet_icon}
4
+ import{E as t,r as e,h as i,H as d,g as n}from"./p-cca182be.js";import{i as o}from"./p-4ebf1618.js";import{g as a,r}from"./p-73f9efad.js";import"./p-7c4baf1c.js";const s=t=>{if("script"===t.nodeName.toLowerCase())return!1;for(let e=0;e<t.attributes.length;e++)if(0===t.attributes[e].name.toLowerCase().indexOf("on"))return!1;if(t.children)for(let e=0;e<t.children.length;e++)if(!s(t.children[e]))return!1;return!0},u={},c=class{constructor(t){e(this,t),this.svgContent=void 0,this.theme="",this.icon=void 0,this.src=void 0,this.name="action-add",this.margin="auto",this.responsive=!0,this.color="",this.background="",this.backgroundOpacity=1,this.backgroundRotation=0,this.size="medium",this.outline="",this.shape="circle"}componentWillLoad(){o(this),this.src&&this.icon&&console.warn("[DUET COMPONENTS]: <duet-icon> should have either have src or icon attributes, but not both. icon attribute will take precedence","icon:",this.icon,"src:",this.src),this.loadIcon()}async loadIcon(){if(this.icon)return void(this.svgContent=this.icon);const e=this.src?this.src:`${t.cdnURIProd}/icons/${t.duetIconVersion}/lib/assets/${this.name}.svg`;try{this.svgContent=await function(t){if(u[t])return u[t];const e=async function(){const e=await fetch(t);if(!e.ok)throw new Error(`SVG request failed: ${e.status} ${e.statusText}`);const i=(t=>{if("undefined"==typeof document||!t)return;const e=document.createElement("div");e.innerHTML=t;for(let i=e.childNodes.length-1;i>=0;i--)"svg"!==e.childNodes[i].nodeName.toLowerCase()&&e.removeChild(e.childNodes[i]);return e.firstElementChild})(await e.text());if(!s(i))throw new Error("SVG validation failed");const d=document.createElement("div");return d.appendChild(i),d.innerHTML}();return u[t]=e}(e)}catch(i){console.warn(`[DUET COMPONENTS]: <duet-icon> could not load SVG from URL: ${e}.`,i)}}render(){const t="currentColor"===this.color?"currentColor":a(this.color,this.theme)||a(this.outline,this.theme),e=this.backgroundRotation?{transform:`rotate(${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{},n=Object.assign({color:t,background:r(a(this.background,this.theme),this.backgroundOpacity),"border-color":a(this.outline,this.theme)},e),o=Object.assign({},this.backgroundRotation?{transform:`rotate(-${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{});return i(d,{class:{"duet-m-0":"none"===this.margin,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background}},i("div",{"aria-hidden":"true",style:n,class:{"duet-icon":!0,[this.size]:!0,"duet-theme-turva":"turva"===this.theme,"duet-theme-default":"default"===this.theme,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background,["brand-rotated"===this.shape?"duet-icon-shape-brand":`duet-icon-shape-${this.shape}`]:!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme,"duet-icon-not-responsive":!this.responsive}},i("span",{"aria-hidden":"true",class:{"duet-icon-svg":!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme},innerHTML:this.svgContent,style:o})))}get element(){return n(this)}static get watchers(){return{src:["loadIcon"],icon:["loadIcon"],name:["loadIcon"]}}};c.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;margin-bottom:16px !important;display:inline-block;width:auto;max-width:100%;color:inherit;-webkit-tap-highlight-color:transparent}@media (max-width: 35.9375em){:host(.duet-icon-has-outline){margin-bottom:0 !important}}@media (max-width: 35.9375em){:host(.duet-icon-has-background){margin-bottom:0 !important}}:host(.duet-m-0){margin:0 !important}@media (max-width: 35.9375em){:host(.duet-m-0){margin:0 !important}}.duet-icon{-webkit-user-select:none;user-select:none;width:100%;height:100%;transform-origin:top center}.duet-icon.duet-icon-has-outline{padding:12px;border-style:solid;border-width:1px}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-outline{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background{padding:16px;color:rgb(255, 255, 255)}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-background{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background.duet-theme-turva,.duet-icon.duet-icon-has-background.duet-theme-default{color:rgb(255, 255, 255)}.duet-icon.duet-icon-shape-circle{border-radius:50%}.duet-icon.duet-icon-shape-brand{border-radius:25%}.duet-icon.duet-icon-has-background.xxx-small .duet-icon-svg,.duet-icon.duet-icon-has-outline.xxx-small .duet-icon-svg{width:10px;height:10px}.duet-icon.duet-icon-has-background.xx-small .duet-icon-svg,.duet-icon.duet-icon-has-outline.xx-small .duet-icon-svg{width:16px;height:16px}@media (max-width: 35.9375em){.duet-icon.duet-icon-not-responsive{transform:scale(1) !important}}.duet-icon.duet-theme-default{color:rgb(0, 119, 179)}.duet-icon.duet-theme-turva{color:rgb(198, 12, 48)}.duet-icon.auto .duet-icon-svg{width:100%;height:100%}.duet-icon.xxx-small .duet-icon-svg{width:7px;height:7px}.duet-icon.duet-icon-has-background.xxx-small{padding:6px}.duet-icon.duet-icon-has-outline.xxx-small{padding:4px}.duet-icon.xx-small .duet-icon-svg{width:10px;height:10px}.duet-icon.duet-icon-has-background.xx-small{padding:8px}.duet-icon.duet-icon-has-outline.xx-small{padding:7px}.duet-icon.x-small .duet-icon-svg{width:16px;height:16px}.duet-icon.duet-icon-has-outline.x-small{padding:10px}.duet-icon.duet-icon-has-background.x-small{padding:12px}.duet-icon.small .duet-icon-svg{width:20px;height:20px}.duet-icon.duet-icon-has-background.small{padding:14px}.duet-icon.large .duet-icon-svg{width:30px;height:30px}.duet-icon.x-large .duet-icon-svg{width:36px;height:36px}.duet-icon.xx-large .duet-icon-svg{width:48px;height:48px}.duet-icon.xxx-large .duet-icon-svg{width:48px;height:48px}@media (min-width: 48em){.duet-icon.xxx-large .duet-icon-svg{width:72px;height:72px}}.duet-icon.duet-icon-shape-brand.rotated{transform:rotate(20deg) scale(0.875);transform-origin:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva{display:flex;align-items:center;justify-content:center;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");-webkit-mask-repeat:no-repeat;mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");mask-repeat:no-repeat}.duet-icon.duet-icon-shape-brand.duet-theme-turva .duet-icon-svg{min-width:auto}.duet-icon.duet-icon-shape-brand.duet-theme-turva.xx-small{width:18px;height:15px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.x-small{width:32px;height:30px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.small{width:36px;height:34px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.medium{width:48px;height:44px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.large{width:62px;height:56px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.x-large{width:76px;height:68px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.xx-large{width:95px;height:86px;padding:0}.duet-icon.duet-icon-shape-brand.duet-theme-turva.xxx-large{width:144px;height:130px;padding:0}.duet-icon.duet-icon-shape-brand.xxx-small{padding:0}.duet-icon.duet-icon-shape-brand.xxx-small .duet-icon-svg{width:0;height:0}.duet-icon.duet-icon-shape-brand.xx-small{padding:4px}.duet-icon.duet-icon-shape-brand.xx-small .duet-icon-svg{width:10px;height:10px}.duet-icon.duet-icon-shape-brand.x-small{padding:8px}.duet-icon.duet-icon-shape-brand.x-small .duet-icon-svg{width:16px;height:16px}.duet-icon.duet-icon-shape-brand.small{padding:8px}.duet-icon.duet-icon-shape-brand.small .duet-icon-svg{width:20px;height:20px}.duet-icon.duet-icon-shape-brand.medium{padding:12px}.duet-icon.duet-icon-shape-brand.medium .duet-icon-svg{width:24px;height:24px}.duet-icon.duet-icon-shape-brand.large{padding:16px}.duet-icon.duet-icon-shape-brand.large .duet-icon-svg{width:30px;height:30px}.duet-icon.duet-icon-shape-brand.x-large{padding:20px}.duet-icon.duet-icon-shape-brand.x-large .duet-icon-svg{width:36px;height:36px}.duet-icon.duet-icon-shape-brand.xx-large{padding:24px}.duet-icon.duet-icon-shape-brand.xx-large .duet-icon-svg{width:48px;height:48px}.duet-icon.duet-icon-shape-brand.xxx-large{padding:36px}.duet-icon.duet-icon-shape-brand.xxx-large .duet-icon-svg{width:72px;height:72px}.duet-icon .duet-icon-svg{display:block;width:24px;min-width:100%;height:24px;font-size:0}.duet-icon .duet-icon-svg.rotated{transform:rotate(-20deg) scale(1.14)}.duet-icon svg{width:100%;min-width:100%;fill:currentColor}";export{c as duet_icon}
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,s,i){function o(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,r){function l(e){try{a(i.next(e))}catch(t){r(t)}}function c(e){try{a(i["throw"](e))}catch(t){r(t)}}function a(e){e.done?s(e.value):o(e.value).then(l,c)}a((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,o,r,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(e){return function(t){return a([e,t])}}function a(c){if(i)throw new TypeError("Generator is already executing.");while(l&&(l=0,c[0]&&(s=0)),s)try{if(i=1,o&&(r=c[0]&2?o["return"]:c[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;if(o=0,r)c=[c[0]&2,r.value];switch(c[0]){case 0:case 1:r=c;break;case 4:s.label++;return{value:c[1],done:false};case 5:s.label++;o=c[1];c=[0];continue;case 7:c=s.ops.pop();s.trys.pop();continue;default:if(!(r=s.trys,r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){s=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){s.label=c[1];break}if(c[0]===6&&s.label<r[1]){s.label=r[1];r=c;break}if(r&&s.label<r[2]){s.label=r[2];s.ops.push(c);break}if(r[2])s.ops.pop();s.trys.pop();continue}c=t.call(e,s)}catch(a){c=[6,a];o=0}finally{i=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-d0857e1f.system.js","./p-33b3aba4.system.js","./p-5f6bd5db.system.js","./p-b6d51921.system.js"],(function(e){"use strict";var t,s,i,o,r,l,c,a;return{setters:[function(e){t=e.r;s=e.c;i=e.h;o=e.H;r=e.g},function(e){l=e.i},function(e){c=e.c},function(e){a=e.p}],execute:function(){var n='*.sc-duet-select,*.sc-duet-select::after,*.sc-duet-select::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-select-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}.sc-duet-select-h:last-child,.sc-duet-select-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-select-h{width:calc(50% - 16px - 3px)}.duet-expand.sc-duet-select-h{width:100% !important}}.duet-select-variation-tiny.sc-duet-select-h{position:relative;top:-2px;width:72px;margin:0 !important;vertical-align:baseline}.duet-m-0.sc-duet-select-h{margin:0 !important}duet-tooltip.sc-duet-select{position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-select{position:relative;top:4px;right:auto}}.duet-select-placeholder.sc-duet-select{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-select-container.sc-duet-select{position:relative;width:100%}.duet-select-container.duet-select-variation-tiny.sc-duet-select{width:72px}.duet-select-wrapper.sc-duet-select{position:relative;width:100%;padding:15px 14px !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:400;line-height:1.25}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-select-variation-tiny.sc-duet-select .duet-select-wrapper.sc-duet-select{width:81px;padding:0 !important}.duet-select-wrapper.sc-duet-select select.sc-duet-select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:200;width:100%;height:100%;padding:0;margin:0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;cursor:pointer;border:0;outline:none;opacity:0}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{border-color:rgb(144, 149, 153);box-shadow:0 0 0 1px rgb(144, 149, 153)}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{border-color:rgb(116, 116, 117);box-shadow:0 0 0 1px rgb(116, 116, 117)}.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{box-shadow:0 0 0 1px rgb(222, 35, 98)}.duet-theme-turva.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{box-shadow:0 0 0 1px rgb(224, 42, 13)}.duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px rgb(0, 119, 179);transition:none}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px rgb(23, 28, 58)}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(23, 28, 58)}.duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(0, 119, 179)}.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{box-shadow:0 0 0 1px rgb(222, 35, 98)}.duet-theme-turva.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{box-shadow:0 0 0 1px rgb(224, 42, 13)}.duet-select-wrapper.sc-duet-select select[disabled].sc-duet-select{cursor:default !important}.duet-select-wrapper.sc-duet-select select[disabled].sc-duet-select+.duet-select.sc-duet-select{color:rgb(0, 41, 77) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(0, 41, 77) !important}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select[disabled].sc-duet-select+.duet-select.sc-duet-select{color:rgb(23, 28, 58) !important;background:rgb(245, 245, 247) !important;border-color:rgb(245, 245, 247) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-select-wrapper.sc-duet-select span.duet-keep-container-height.sc-duet-select{opacity:0}.duet-select.sc-duet-select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:100;display:block;width:100%;min-width:8rem;padding:12px 14px !important;padding-right:48px !important;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(0, 41, 77);text-align:left;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255);border:1px solid rgb(144, 149, 153);border-radius:4px;transition:150ms ease}.has-error.sc-duet-select .duet-select.sc-duet-select{border-color:rgb(222, 35, 98) !important}.has-error.sc-duet-select .duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(222, 35, 98) !important}.duet-theme-turva.has-error.sc-duet-select .duet-select.sc-duet-select{border-color:rgb(224, 42, 13) !important}.duet-theme-turva.has-error.sc-duet-select .duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(224, 42, 13) !important}.duet-theme-turva.sc-duet-select .duet-select.sc-duet-select{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(116, 116, 117)}.duet-select.sc-duet-select svg.sc-duet-select{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;color:rgb(0, 41, 77);pointer-events:none;transform:translateY(-50%)}.duet-theme-turva.sc-duet-select .duet-select.sc-duet-select svg.sc-duet-select{color:rgb(23, 28, 58)}.duet-select-variation-tiny.sc-duet-select .duet-select.sc-duet-select{width:72px;min-width:inherit;padding:0 !important;margin-bottom:-4px;overflow:visible;font-weight:600;text-align:center}.duet-select-variation-tiny.sc-duet-select .duet-select.sc-duet-select duet-icon.sc-duet-select{padding-left:10px}.duet-select-help.sc-duet-select{display:block;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(101, 119, 135);border-radius:4px}.duet-select-help.sc-duet-select span.sc-duet-select{display:block;margin-top:8px}.duet-theme-turva.sc-duet-select .duet-select-help.sc-duet-select{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(116, 116, 117)}.has-error.sc-duet-select .duet-select-help.sc-duet-select{color:rgb(222, 35, 98)}.duet-theme-turva.has-error.sc-duet-select .duet-select-help.sc-duet-select{color:rgb(224, 42, 13)}.duet-label-hidden.sc-duet-select duet-label.sc-duet-select{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';function d(e){return"options"in e}function u(e,t){for(var s=0;s<e.length;s++){var i=e[s];if(d(i)){i=u(i.options,t)}if(i&&i.value===t){return i}}}var p=e("duet_select",function(){function e(e){var i=this;t(this,e);this.duetChange=s(this,"duetChange",3);this.duetFocus=s(this,"duetFocus",7);this.duetBlur=s(this,"duetBlur",7);this.selectId=c("DuetSelect");this.errorId=c("DuetError");this.labelId=c("DuetLabel");this.topCaptionId=c("DuetCaptionTop");this.topCaptionPlaceholderId=c("DuetCaptionPlaceholderTop");this.onClick=function(e){e.stopPropagation()};this.onChange=function(){i.value=i.nativeSelect.value;i.duetChange.emit({value:i.value,component:"duet-select"})};this.onBlur=function(e){i.duetBlur.emit({originalEvent:e,value:i.value,component:"duet-select"})};this.onFocus=function(e){i.duetFocus.emit({originalEvent:e,value:i.value,component:"duet-select"})};this.getDescribedBy=function(){var e=[];if(i.isCaptionVisible&&i.topCaptionId){e.push(i.topCaptionId)}if(i.accessibleDescribedBy){e.push(i.accessibleDescribedBy)}if(i.error){e.push(i.errorId)}return e.length>0?e.join(" "):null};this.processedItems=null;this.variation="default";this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.margin="auto";this.accessibleControls=undefined;this.accessibleOwns=undefined;this.error="";this.accessibleLiveError="polite";this.expand=false;this.value=undefined;this.theme="";this.labelHidden=false;this.identifier=undefined;this.name=undefined;this.placeholder="";this.caption=undefined;this.echoPlaceholder=false;this.items=undefined;this.disabled=false;this.required=false;this.label="label";this.role=undefined;this.tooltip="";this.tooltipDirection="auto"}e.prototype.valueChanged=function(){if(this.nativeSelect){this.nativeSelect.value=this.value}this.isCaptionVisible=!!this.caption};e.prototype.componentWillLoad=function(){l(this);this.isCaptionVisible=!!this.caption;this.refresh()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeSelect){this.nativeSelect.focus(e)}return[2]}))}))};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.processedItems=a(this.items);return[2]}))}))};e.prototype.getSelectedItemLabel=function(){var e;if(this.processedItems){e=u(this.processedItems,this.value)}return e?e.label:this.placeholder||""};e.prototype.renderOption=function(e){return i("option",{"aria-label":e.ariaLabel,value:e.value,key:e.value,selected:this.value===e.value,disabled:e.disabled},e.label)};e.prototype.renderOptionGroup=function(e){var t=this;return i("optgroup",{key:e.label,label:e.label,disabled:e.disabled},e.options.map((function(e){return t.renderOption(e)})))};e.prototype.render=function(){var e=this;var t=this.identifier||this.selectId;return i(o,{onClick:this.onClick,class:{"duet-m-0":this.margin==="none","duet-expand":this.expand,"duet-select-variation-tiny":this.variation==="tiny"}},i("div",{class:{"duet-select-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva","duet-select-variation-tiny":this.variation==="tiny","duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error}},i("duet-label",{theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},id:this.labelId,for:t},this.label),this.tooltip&&i("duet-tooltip",{direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),this.caption&&i("duet-caption",{id:this.topCaptionId,size:"medium"},this.caption),i("div",{class:"duet-select-wrapper"},this.placeholder&&this.echoPlaceholder&&this.value&&i("duet-caption",{id:this.topCaptionPlaceholderId,class:"duet-select-placeholder",size:"small"},this.placeholder),i("select",{ref:function(t){return e.nativeSelect=t},disabled:this.disabled,name:this.name,id:t,role:this.role,"aria-labelledby":this.labelId,"aria-describedby":this.getDescribedBy(),"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,required:this.required},this.placeholder&&i("option",{disabled:true,selected:true,value:""},this.placeholder),!this.processedItems?i("option",null,"Virhe valintoja ladattaessa. Päivitä sivu ja kokeile uusiksi."):this.processedItems.map((function(t){return d(t)?e.renderOptionGroup(t):e.renderOption(t)}))),i("div",{class:{"duet-select":true,"duet-select-variation-tiny":this.variation==="tiny"},"aria-hidden":"true"},i("span",{key:this.value},this.getSelectedItemLabel()),this.variation!=="tiny"&&i("svg",{role:"img",class:"duet-select-icon",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z"})),this.variation==="tiny"&&i("duet-icon",{name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xx-small"})),i("span",{class:"duet-keep-container-height",role:"presention","aria-hidden":"true"},"_")),i("span",{class:"duet-select-help",id:this.errorId,"aria-live":this.accessibleLiveError,"aria-atomic":"true","aria-relevant":"additions removals"},this.error&&i("span",null,this.error))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueChanged"],items:["refresh"]}},enumerable:false,configurable:true});return e}());p.style=n}}}));
4
+ */System.register(["./p-d7e6a4ed.system.js","./p-33b3aba4.system.js","./p-5f6bd5db.system.js","./p-b6d51921.system.js"],(function(e){"use strict";var t,s,i,o,r,l,c,a;return{setters:[function(e){t=e.r;s=e.c;i=e.h;o=e.H;r=e.g},function(e){l=e.i},function(e){c=e.c},function(e){a=e.p}],execute:function(){var n='*.sc-duet-select,*.sc-duet-select::after,*.sc-duet-select::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-select-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}.sc-duet-select-h:last-child,.sc-duet-select-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-select-h{width:calc(50% - 16px - 3px)}.duet-expand.sc-duet-select-h{width:100% !important}}.duet-select-variation-tiny.sc-duet-select-h{position:relative;top:-2px;width:72px;margin:0 !important;vertical-align:baseline}.duet-m-0.sc-duet-select-h{margin:0 !important}duet-tooltip.sc-duet-select{position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-select{position:relative;top:4px;right:auto}}.duet-select-placeholder.sc-duet-select{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-select-container.sc-duet-select{position:relative;width:100%}.duet-select-container.duet-select-variation-tiny.sc-duet-select{width:72px}.duet-select-wrapper.sc-duet-select{position:relative;width:100%;padding:15px 14px !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:400;line-height:1.25}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-select-variation-tiny.sc-duet-select .duet-select-wrapper.sc-duet-select{width:81px;padding:0 !important}.duet-select-wrapper.sc-duet-select select.sc-duet-select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:200;width:100%;height:100%;padding:0;margin:0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;cursor:pointer;border:0;outline:none;opacity:0}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{border-color:rgb(144, 149, 153);box-shadow:0 0 0 1px rgb(144, 149, 153)}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{border-color:rgb(116, 116, 117);box-shadow:0 0 0 1px rgb(116, 116, 117)}.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{box-shadow:0 0 0 1px rgb(222, 35, 98)}.duet-theme-turva.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{box-shadow:0 0 0 1px rgb(224, 42, 13)}.duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px rgb(0, 119, 179);transition:none}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px rgb(23, 28, 58)}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(23, 28, 58)}.duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(0, 119, 179)}.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{box-shadow:0 0 0 1px rgb(222, 35, 98)}.duet-theme-turva.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{box-shadow:0 0 0 1px rgb(224, 42, 13)}.duet-select-wrapper.sc-duet-select select[disabled].sc-duet-select{cursor:default !important}.duet-select-wrapper.sc-duet-select select[disabled].sc-duet-select+.duet-select.sc-duet-select{color:rgb(0, 41, 77) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(0, 41, 77) !important}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select[disabled].sc-duet-select+.duet-select.sc-duet-select{color:rgb(23, 28, 58) !important;background:rgb(245, 245, 247) !important;border-color:rgb(245, 245, 247) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-select-wrapper.sc-duet-select span.duet-keep-container-height.sc-duet-select{opacity:0}.duet-select.sc-duet-select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:100;display:block;width:100%;min-width:8rem;padding:12px 14px !important;padding-right:48px !important;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(0, 41, 77);text-align:left;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255);border:1px solid rgb(144, 149, 153);border-radius:4px;transition:150ms ease}.has-error.sc-duet-select .duet-select.sc-duet-select{border-color:rgb(222, 35, 98) !important}.has-error.sc-duet-select .duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(222, 35, 98) !important}.duet-theme-turva.has-error.sc-duet-select .duet-select.sc-duet-select{border-color:rgb(224, 42, 13) !important}.duet-theme-turva.has-error.sc-duet-select .duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(224, 42, 13) !important}.duet-theme-turva.sc-duet-select .duet-select.sc-duet-select{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(116, 116, 117)}.duet-select.sc-duet-select svg.sc-duet-select{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;color:rgb(0, 41, 77);pointer-events:none;transform:translateY(-50%)}.duet-theme-turva.sc-duet-select .duet-select.sc-duet-select svg.sc-duet-select{color:rgb(23, 28, 58)}.duet-select-variation-tiny.sc-duet-select .duet-select.sc-duet-select{width:72px;min-width:inherit;padding:0 !important;margin-bottom:-4px;overflow:visible;font-weight:600;text-align:center}.duet-select-variation-tiny.sc-duet-select .duet-select.sc-duet-select duet-icon.sc-duet-select{padding-left:10px}.duet-select-help.sc-duet-select{display:block;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(101, 119, 135);border-radius:4px}.duet-select-help.sc-duet-select span.sc-duet-select{display:block;margin-top:8px}.duet-theme-turva.sc-duet-select .duet-select-help.sc-duet-select{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(116, 116, 117)}.has-error.sc-duet-select .duet-select-help.sc-duet-select{color:rgb(222, 35, 98)}.duet-theme-turva.has-error.sc-duet-select .duet-select-help.sc-duet-select{color:rgb(224, 42, 13)}.duet-label-hidden.sc-duet-select duet-label.sc-duet-select{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';function d(e){return"options"in e}function u(e,t){for(var s=0;s<e.length;s++){var i=e[s];if(d(i)){i=u(i.options,t)}if(i&&i.value===t){return i}}}var p=e("duet_select",function(){function e(e){var i=this;t(this,e);this.duetChange=s(this,"duetChange",3);this.duetFocus=s(this,"duetFocus",7);this.duetBlur=s(this,"duetBlur",7);this.selectId=c("DuetSelect");this.errorId=c("DuetError");this.labelId=c("DuetLabel");this.topCaptionId=c("DuetCaptionTop");this.topCaptionPlaceholderId=c("DuetCaptionPlaceholderTop");this.onClick=function(e){e.stopPropagation()};this.onChange=function(){i.value=i.nativeSelect.value;i.duetChange.emit({value:i.value,component:"duet-select"})};this.onBlur=function(e){i.duetBlur.emit({originalEvent:e,value:i.value,component:"duet-select"})};this.onFocus=function(e){i.duetFocus.emit({originalEvent:e,value:i.value,component:"duet-select"})};this.getDescribedBy=function(){var e=[];if(i.isCaptionVisible&&i.topCaptionId){e.push(i.topCaptionId)}if(i.accessibleDescribedBy){e.push(i.accessibleDescribedBy)}if(i.error){e.push(i.errorId)}return e.length>0?e.join(" "):null};this.processedItems=null;this.variation="default";this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.margin="auto";this.accessibleControls=undefined;this.accessibleOwns=undefined;this.error="";this.accessibleLiveError="polite";this.expand=false;this.value=undefined;this.theme="";this.labelHidden=false;this.identifier=undefined;this.name=undefined;this.placeholder="";this.caption=undefined;this.echoPlaceholder=false;this.items=undefined;this.disabled=false;this.required=false;this.label="label";this.role=undefined;this.tooltip="";this.tooltipDirection="auto"}e.prototype.valueChanged=function(){if(this.nativeSelect){this.nativeSelect.value=this.value}this.isCaptionVisible=!!this.caption};e.prototype.componentWillLoad=function(){l(this);this.isCaptionVisible=!!this.caption;this.refresh()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeSelect){this.nativeSelect.focus(e)}return[2]}))}))};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.processedItems=a(this.items);return[2]}))}))};e.prototype.getSelectedItemLabel=function(){var e;if(this.processedItems){e=u(this.processedItems,this.value)}return e?e.label:this.placeholder||""};e.prototype.renderOption=function(e){return i("option",{"aria-label":e.ariaLabel,value:e.value,key:e.value,selected:this.value===e.value,disabled:e.disabled},e.label)};e.prototype.renderOptionGroup=function(e){var t=this;return i("optgroup",{key:e.label,label:e.label,disabled:e.disabled},e.options.map((function(e){return t.renderOption(e)})))};e.prototype.render=function(){var e=this;var t=this.identifier||this.selectId;return i(o,{onClick:this.onClick,class:{"duet-m-0":this.margin==="none","duet-expand":this.expand,"duet-select-variation-tiny":this.variation==="tiny"}},i("div",{class:{"duet-select-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva","duet-select-variation-tiny":this.variation==="tiny","duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error}},i("duet-label",{theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},id:this.labelId,for:t},this.label),this.tooltip&&i("duet-tooltip",{direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),this.caption&&i("duet-caption",{id:this.topCaptionId,size:"medium"},this.caption),i("div",{class:"duet-select-wrapper"},this.placeholder&&this.echoPlaceholder&&this.value&&i("duet-caption",{id:this.topCaptionPlaceholderId,class:"duet-select-placeholder",size:"small"},this.placeholder),i("select",{ref:function(t){return e.nativeSelect=t},disabled:this.disabled,name:this.name,id:t,role:this.role,"aria-labelledby":this.labelId,"aria-describedby":this.getDescribedBy(),"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,required:this.required},this.placeholder&&i("option",{disabled:true,selected:true,value:""},this.placeholder),!this.processedItems?i("option",null,"Virhe valintoja ladattaessa. Päivitä sivu ja kokeile uusiksi."):this.processedItems.map((function(t){return d(t)?e.renderOptionGroup(t):e.renderOption(t)}))),i("div",{class:{"duet-select":true,"duet-select-variation-tiny":this.variation==="tiny"},"aria-hidden":"true"},i("span",{key:this.value},this.getSelectedItemLabel()),this.variation!=="tiny"&&i("svg",{role:"img",class:"duet-select-icon",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z"})),this.variation==="tiny"&&i("duet-icon",{name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xx-small"})),i("span",{class:"duet-keep-container-height",role:"presention","aria-hidden":"true"},"_")),i("span",{class:"duet-select-help",id:this.errorId,"aria-live":this.accessibleLiveError,"aria-atomic":"true","aria-relevant":"additions removals"},this.error&&i("span",null,this.error))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueChanged"],items:["refresh"]}},enumerable:false,configurable:true});return e}());p.style=n}}}));
@@ -1,5 +1,5 @@
1
1
  var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function o(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r["throw"](e))}catch(t){i(t)}}function s(e){e.done?n(e.value):a(e.value).then(o,l)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return s([e,t])}}function s(l){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(n=0)),n)try{if(r=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;a=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1];i=l;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(l);break}if(i[2])n.ops.pop();n.trys.pop();continue}l=t.call(e,n)}catch(s){l=[6,s];a=0}finally{r=i=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,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++){if(i||!(r in t)){if(!i)i=Array.prototype.slice.call(t,0,r);i[r]=t[r]}}return e.concat(i||Array.prototype.slice.call(t))};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register([],(function(e,t){"use strict";return{execute:function(){var n=this;var r=e("N","duet");var a=e("E",{cdnURILocal:"http://0.0.0.0:3334",cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"3.0.53"});var i;var o;var l;var s=false;var $=false;var f=false;var u=false;var c=false;var v=e("B",{isDev:false,isBrowser:true,isServer:false,isTesting:false});var d=function(e,t){if(t===void 0){t=""}{return function(){return}}};var h=function(e,t){{return function(){return}}};var p="r";var m="o";var g="s";var y="t";var b="s-id";var w="sty-id";var N="c-id";var R="{visibility:hidden}.hydrated{visibility:inherit}";var x="http://www.w3.org/1999/xlink";var S={};var _="http://www.w3.org/2000/svg";var k="http://www.w3.org/1999/xhtml";var T=function(e){return e!=null};var L=function(e){e=typeof e;return e==="object"||e==="function"};function A(e){var t,n,r;return(r=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&r!==void 0?r:undefined}var C=e("h",(function(e,t){var n=[];for(var r=2;r<arguments.length;r++){n[r-2]=arguments[r]}var a=null;var i=null;var o=null;var l=false;var s=false;var $=[];var f=function(t){for(var n=0;n<t.length;n++){a=t[n];if(Array.isArray(a)){f(a)}else if(a!=null&&typeof a!=="boolean"){if(l=typeof e!=="function"&&!L(a)){a=String(a)}if(l&&s){$[$.length-1].$text$+=a}else{$.push(l?I(null,a):a)}s=l}}};f(n);if(t){if(t.key){i=t.key}if(t.name){o=t.name}{var u=t.className||t.class;if(u){t.class=typeof u!=="object"?u:Object.keys(u).filter((function(e){return u[e]})).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,$,P)}var c=I(e,null);c.$attrs$=t;if($.length>0){c.$children$=$}{c.$key$=i}{c.$name$=o}return c}));var I=function(e,t){var n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{n.$attrs$=null}{n.$key$=null}{n.$name$=null}return n};var j=e("H",{});var E=function(e){return e&&e.$tag$===j};var P={forEach:function(e,t){return e.map(O).forEach(t)},map:function(e,t){return e.map(O).map(t).map(M)}};var O=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}};var M=function(e){if(typeof e.vtag==="function"){var t=Object.assign({},e.vattrs);if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return C.apply(void 0,__spreadArray([e.vtag,t],e.vchildren||[],false))}var n=I(e.vtag,e.vtext);n.$attrs$=e.vattrs;n.$children$=e.vchildren;n.$key$=e.vkey;n.$name$=e.vname;return n};var B=function(e,t,n,r){var a=d("hydrateClient",t);var i=e.shadowRoot;var o=[];var l=[];var s=i?[]:null;var $=r.$vnode$=I(t,null);if(!Ze.$orgLocNodes$){z(Ye.body,Ze.$orgLocNodes$=new Map)}e[b]=n;e.removeAttribute(b);q($,o,l,s,e,e,n);o.map((function(e){var n=e.$hostId$+"."+e.$nodeId$;var r=Ze.$orgLocNodes$.get(n);var a=e.$elm$;if(r&&et&&r["s-en"]===""){r.parentNode.insertBefore(a,r.nextSibling)}if(!i){a["s-hn"]=t;if(r){a["s-ol"]=r;a["s-ol"]["s-nr"]=a}}Ze.$orgLocNodes$.delete(n)}));if(i){s.map((function(e){if(e){i.appendChild(e)}}))}a()};var q=function(e,t,n,r,a,i,o){var l;var s;var $;var f;if(i.nodeType===1){l=i.getAttribute(N);if(l){s=l.split(".");if(s[0]===o||s[0]==="0"){$={$flags$:0,$hostId$:s[0],$nodeId$:s[1],$depth$:s[2],$index$:s[3],$tag$:i.tagName.toLowerCase(),$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null};t.push($);i.removeAttribute(N);if(!e.$children$){e.$children$=[]}e.$children$[$.$index$]=$;e=$;if(r&&$.$depth$==="0"){r[$.$index$]=$.$elm$}}}for(f=i.childNodes.length-1;f>=0;f--){q(e,t,n,r,a,i.childNodes[f],o)}if(i.shadowRoot){for(f=i.shadowRoot.childNodes.length-1;f>=0;f--){q(e,t,n,r,a,i.shadowRoot.childNodes[f],o)}}}else if(i.nodeType===8){s=i.nodeValue.split(".");if(s[1]===o||s[1]==="0"){l=s[0];$={$flags$:0,$hostId$:s[1],$nodeId$:s[2],$depth$:s[3],$index$:s[4],$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null};if(l===y){$.$elm$=i.nextSibling;if($.$elm$&&$.$elm$.nodeType===3){$.$text$=$.$elm$.textContent;t.push($);i.remove();if(!e.$children$){e.$children$=[]}e.$children$[$.$index$]=$;if(r&&$.$depth$==="0"){r[$.$index$]=$.$elm$}}}else if($.$hostId$===o){if(l===g){$.$tag$="slot";if(s[5]){i["s-sn"]=$.$name$=s[5]}else{i["s-sn"]=""}i["s-sr"]=true;if(r){$.$elm$=Ye.createElement($.$tag$);if($.$name$){$.$elm$.setAttribute("name",$.$name$)}i.parentNode.insertBefore($.$elm$,i);i.remove();if($.$depth$==="0"){r[$.$index$]=$.$elm$}}n.push($);if(!e.$children$){e.$children$=[]}e.$children$[$.$index$]=$}else if(l===p){if(r){i.remove()}else{a["s-cr"]=i;i["s-cn"]=true}}}}}else if(e&&e.$tag$==="style"){var u=I(null,i.textContent);u.$elm$=i;u.$index$="0";e.$children$=[u]}};var z=function(e,t){if(e.nodeType===1){var n=0;for(;n<e.childNodes.length;n++){z(e.childNodes[n],t)}if(e.shadowRoot){for(n=0;n<e.shadowRoot.childNodes.length;n++){z(e.shadowRoot.childNodes[n],t)}}}else if(e.nodeType===8){var r=e.nodeValue.split(".");if(r[0]===m){t.set(r[1]+"."+r[2],e);e.nodeValue="";e["s-en"]=r[3]}}};var U=function(e,t){if(e!=null&&!L(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var V=e("g",(function(e){return He(e).$hostElement$}));var H=e("c",(function(e,t,n){var r=V(e);return{emit:function(e){return D(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}}}));var D=function(e,t,n){var r=Ze.ce(t,n);e.dispatchEvent(r);return r};var F=new WeakMap;var W=function(e,t,n){var r=Qe.get(e);if(nt&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}Qe.set(e,r)};var G=function(e,t,n,r){var a;var i=K(t);var o=Qe.get(i);e=e.nodeType===11?e:Ye;if(o){if(typeof o==="string"){e=e.head||e;var l=F.get(e);var s=void 0;if(!l){F.set(e,l=new Set)}if(!l.has(i)){if(e.host&&(s=e.querySelector("[".concat(w,'="').concat(i,'"]')))){s.innerHTML=o}else{{s=Ye.createElement("style");s.innerHTML=o}var $=(a=Ze.$nonce$)!==null&&a!==void 0?a:A(Ye);if($!=null){s.setAttribute("nonce",$)}e.insertBefore(s,e.querySelector("link"))}if(l){l.add(i)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[o],false)}}return i};var J=function(e){var t=e.$cmpMeta$;var n=e.$hostElement$;var r=t.$flags$;var a=d("attachStyles",t.$tagName$);var i=G(et&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=i;n.classList.add(i+"-h");if(r&2){n.classList.add(i+"-s")}}a()};var K=function(e,t){return"sc-"+e.$tagName$};var Q=function(e){return e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{")};var X=function(e,t,n,r,a,i){if(n!==r){var o=We(e,t);var l=t.toLowerCase();if(t==="class"){var s=e.classList;var $=Z(n);var f=Z(r);s.remove.apply(s,$.filter((function(e){return e&&!f.includes(e)})));s.add.apply(s,f.filter((function(e){return e&&!$.includes(e)})))}else if(t==="style"){{for(var u in n){if(!r||r[u]==null){if(u.includes("-")){e.style.removeProperty(u)}else{e.style[u]=""}}}}for(var u in r){if(!n||r[u]!==n[u]){if(u.includes("-")){e.style.setProperty(u,r[u])}else{e.style[u]=r[u]}}}}else if(t==="key");else if(t==="ref"){if(r){r(e)}}else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(We(Xe,l)){t=l.slice(2)}else{t=l[2]+t.slice(3)}if(n){Ze.rel(e,t,n,false)}if(r){Ze.ael(e,t,r,false)}}else{var c=L(r);if((o||c&&r!==null)&&!a){try{if(!e.tagName.includes("-")){var v=r==null?"":r;if(t==="list"){o=false}else if(n==null||e[t]!=v){e[t]=v}}else{e[t]=r}}catch(h){}}var d=false;{if(l!==(l=l.replace(/^xlink\:?/,""))){t=l;d=true}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){if(d){e.removeAttributeNS(x,t)}else{e.removeAttribute(t)}}}else if((!o||i&4||a)&&!c){r=r===true?"":r;if(d){e.setAttributeNS(x,t,r)}else{e.setAttribute(t,r)}}}}};var Y=/\s/;var Z=function(e){return!e?[]:e.split(Y)};var ee=function(e,t,n,r){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var i=e&&e.$attrs$||S;var o=t.$attrs$||S;{for(r in i){if(!(r in o)){X(a,r,i[r],undefined,n,t.$flags$)}}}for(r in o){X(a,r,i[r],o[r],n,t.$flags$)}};var te=function(e,t,n,r){var a=t.$children$[n];var $=0;var c;var v;var d;if(!s){f=true;if(a.$tag$==="slot"){if(i){r.classList.add(i+"-s")}a.$flags$|=a.$children$?2:1}}if(a.$text$!==null){c=a.$elm$=Ye.createTextNode(a.$text$)}else if(a.$flags$&1){c=a.$elm$=Ye.createTextNode("")}else{if(!u){u=a.$tag$==="svg"}c=a.$elm$=Ye.createElementNS(u?_:k,a.$flags$&2?"slot-fb":a.$tag$);if(u&&a.$tag$==="foreignObject"){u=false}{ee(null,a,u)}if(T(i)&&c["s-si"]!==i){c.classList.add(c["s-si"]=i)}if(a.$children$){for($=0;$<a.$children$.length;++$){v=te(e,a,$,c);if(v){c.appendChild(v)}}}{if(a.$tag$==="svg"){u=false}else if(c.tagName==="foreignObject"){u=true}}}{c["s-hn"]=l;if(a.$flags$&(2|1)){c["s-sr"]=true;c["s-cr"]=o;c["s-sn"]=a.$name$||"";d=e&&e.$children$&&e.$children$[n];if(d&&d.$tag$===a.$tag$&&e.$elm$){ne(e.$elm$,false)}}}return c};var ne=function(e,t){Ze.$flags$|=1;var n=e.childNodes;for(var r=n.length-1;r>=0;r--){var a=n[r];if(a["s-hn"]!==l&&a["s-ol"]){se(a).insertBefore(a,le(a));a["s-ol"].remove();a["s-ol"]=undefined;f=true}if(t){ne(a,t)}}Ze.$flags$&=~1};var re=function(e,t,n,r,a,i){var o=e["s-cr"]&&e["s-cr"].parentNode||e;var s;if(o.shadowRoot&&o.tagName===l){o=o.shadowRoot}for(;a<=i;++a){if(r[a]){s=te(null,n,a,e);if(s){r[a].$elm$=s;o.insertBefore(s,le(t))}}}};var ae=function(e,t,n,r,a){for(;t<=n;++t){if(r=e[t]){a=r.$elm$;de(r);{$=true;if(a["s-ol"]){a["s-ol"].remove()}else{ne(a,true)}}a.remove()}}};var ie=function(e,t,n,r){var a=0;var i=0;var o=0;var l=0;var s=t.length-1;var $=t[0];var f=t[s];var u=r.length-1;var c=r[0];var v=r[u];var d;var h;while(a<=s&&i<=u){if($==null){$=t[++a]}else if(f==null){f=t[--s]}else if(c==null){c=r[++i]}else if(v==null){v=r[--u]}else if(oe($,c)){$e($,c);$=t[++a];c=r[++i]}else if(oe(f,v)){$e(f,v);f=t[--s];v=r[--u]}else if(oe($,v)){if($.$tag$==="slot"||v.$tag$==="slot"){ne($.$elm$.parentNode,false)}$e($,v);e.insertBefore($.$elm$,f.$elm$.nextSibling);$=t[++a];v=r[--u]}else if(oe(f,c)){if($.$tag$==="slot"||v.$tag$==="slot"){ne(f.$elm$.parentNode,false)}$e(f,c);e.insertBefore(f.$elm$,$.$elm$);f=t[--s];c=r[++i]}else{o=-1;{for(l=a;l<=s;++l){if(t[l]&&t[l].$key$!==null&&t[l].$key$===c.$key$){o=l;break}}}if(o>=0){h=t[o];if(h.$tag$!==c.$tag$){d=te(t&&t[i],n,o,e)}else{$e(h,c);t[o]=undefined;d=h.$elm$}c=r[++i]}else{d=te(t&&t[i],n,i,e);c=r[++i]}if(d){{se($.$elm$).insertBefore(d,le($.$elm$))}}}}if(a>s){re(e,r[u+1]==null?null:r[u+1].$elm$,n,r,i,u)}else if(i>u){ae(t,a,s)}};var oe=function(e,t){if(e.$tag$===t.$tag$){if(e.$tag$==="slot"){return e.$name$===t.$name$}{return e.$key$===t.$key$}}return false};var le=function(e){return e&&e["s-ol"]||e};var se=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var $e=function(e,t){var n=t.$elm$=e.$elm$;var r=e.$children$;var a=t.$children$;var i=t.$tag$;var o=t.$text$;var l;if(o===null){{u=i==="svg"?true:i==="foreignObject"?false:u}{if(i==="slot");else{ee(e,t,u)}}if(r!==null&&a!==null){ie(n,r,t,a)}else if(a!==null){if(e.$text$!==null){n.textContent=""}re(n,null,t,a,0,a.length-1)}else if(r!==null){ae(r,0,r.length-1)}if(u&&i==="svg"){u=false}}else if(l=n["s-cr"]){l.parentNode.textContent=o}else if(e.$text$!==o){n.data=o}};var fe=function(e){var t=e.childNodes;var n;var r;var a;var i;var o;var l;for(r=0,a=t.length;r<a;r++){n=t[r];if(n.nodeType===1){if(n["s-sr"]){o=n["s-sn"];n.hidden=false;for(i=0;i<a;i++){l=t[i].nodeType;if(t[i]["s-hn"]!==n["s-hn"]||o!==""){if(l===1&&o===t[i].getAttribute("slot")){n.hidden=true;break}}else{if(l===1||l===3&&t[i].textContent.trim()!==""){n.hidden=true;break}}}}fe(n)}}};var ue=[];var ce=function(e){var t;var n;var r;var a;var i;var o;var l=0;var s=e.childNodes;var f=s.length;for(;l<f;l++){t=s[l];if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){r=n.parentNode.childNodes;a=t["s-sn"];for(o=r.length-1;o>=0;o--){n=r[o];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]){if(ve(n,a)){i=ue.find((function(e){return e.$nodeToRelocate$===n}));$=true;n["s-sn"]=n["s-sn"]||a;if(i){i.$slotRefNode$=t}else{ue.push({$slotRefNode$:t,$nodeToRelocate$:n})}if(n["s-sr"]){ue.map((function(e){if(ve(e.$nodeToRelocate$,n["s-sn"])){i=ue.find((function(e){return e.$nodeToRelocate$===n}));if(i&&!e.$slotRefNode$){e.$slotRefNode$=i.$slotRefNode$}}}))}}else if(!ue.some((function(e){return e.$nodeToRelocate$===n}))){ue.push({$nodeToRelocate$:n})}}}}if(t.nodeType===1){ce(t)}}};var ve=function(e,t){if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var de=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(de)}};var he=function(e,t){var n=e.$hostElement$;var r=e.$cmpMeta$;var a=e.$vnode$||I(null,null);var u=E(t)?t:C(null,null,t);l=n.tagName;if(r.$attrsToReflect$){u.$attrs$=u.$attrs$||{};r.$attrsToReflect$.map((function(e){var t=e[0],r=e[1];return u.$attrs$[r]=n[t]}))}u.$tag$=null;u.$flags$|=4;e.$vnode$=u;u.$elm$=a.$elm$=n.shadowRoot||n;{i=n["s-sc"]}{o=n["s-cr"];s=et&&(r.$flags$&1)!==0;$=false}$e(a,u);{Ze.$flags$|=1;if(f){ce(u.$elm$);var c=void 0;var v=void 0;var d=void 0;var h=void 0;var p=void 0;var m=void 0;var g=0;for(;g<ue.length;g++){c=ue[g];v=c.$nodeToRelocate$;if(!v["s-ol"]){d=Ye.createTextNode("");d["s-nr"]=v;v.parentNode.insertBefore(v["s-ol"]=d,v)}}for(g=0;g<ue.length;g++){c=ue[g];v=c.$nodeToRelocate$;if(c.$slotRefNode$){h=c.$slotRefNode$.parentNode;p=c.$slotRefNode$.nextSibling;d=v["s-ol"];while(d=d.previousSibling){m=d["s-nr"];if(m&&m["s-sn"]===v["s-sn"]&&h===m.parentNode){m=m.nextSibling;if(!m||!m["s-nr"]){p=m;break}}}if(!p&&h!==v.parentNode||v.nextSibling!==p){if(v!==p){if(!v["s-hn"]&&v["s-ol"]){v["s-hn"]=v["s-ol"].parentNode.nodeName}h.insertBefore(v,p)}}}else{if(v.nodeType===1){v.hidden=true}}}}if($){fe(u.$elm$)}Ze.$flags$&=~1;ue.length=0}};var pe=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var me=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}pe(e,e.$ancestorComponent$);var n=function(){return ge(e,t)};return $t(n)};var ge=function(e,t){var n=d("scheduleUpdate",e.$cmpMeta$.$tagName$);var r=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],n=e[1];return Re(r,t,n)}));e.$queuedListeners$=null}}{a=Re(r,"componentWillLoad")}}{a=xe(a,(function(){return Re(r,"componentWillRender")}))}n();return xe(a,(function(){return ye(e,r,t)}))};var ye=function(e,t,r){return __awaiter(n,void 0,void 0,(function(){var n,a,i,o,l,s;return __generator(this,(function($){n=e.$hostElement$;a=d("update",e.$cmpMeta$.$tagName$);i=n["s-rc"];if(r){J(e)}o=d("render",e.$cmpMeta$.$tagName$);{be(e,t)}if(i){i.map((function(e){return e()}));n["s-rc"]=undefined}o();a();{l=n["s-p"];s=function(){return we(e)};if(l.length===0){s()}else{Promise.all(l).then(s);e.$flags$|=4;l.length=0}}return[2]}))}))};var be=function(e,t,n){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{he(e,t)}}}}catch(r){Ge(r,e.$hostElement$)}return null};var we=function(e){var t=e.$cmpMeta$.$tagName$;var n=e.$hostElement$;var r=d("postUpdate",t);var a=e.$lazyInstance$;var i=e.$ancestorComponent$;{Re(a,"componentDidRender")}if(!(e.$flags$&64)){e.$flags$|=64;{Se(n)}{Re(a,"componentDidLoad")}r();{e.$onReadyResolve$(n);if(!i){Ne()}}}else{{Re(a,"componentDidUpdate")}r()}{e.$onInstanceResolve$(n)}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){st((function(){return me(e,false)}))}e.$flags$&=~(4|512)}};var Ne=function(e){{Se(Ye.documentElement)}st((function(){return D(Xe,"appload",{detail:{namespace:r}})}))};var Re=function(e,t,n){if(e&&e[t]){try{return e[t](n)}catch(r){Ge(r)}}return undefined};var xe=function(e,t){return e&&e.then?e.then(t):t()};var Se=function(e){return e.classList.add("hydrated")};var _e=function(e,t){return He(e).$instanceValues$.get(t)};var ke=function(e,t,n,r){var a=He(e);var i=a.$hostElement$;var o=a.$instanceValues$.get(t);var l=a.$flags$;var s=a.$lazyInstance$;n=U(n,r.$members$[t][0]);var $=Number.isNaN(o)&&Number.isNaN(n);var f=n!==o&&!$;if((!(l&8)||o===undefined)&&f){a.$instanceValues$.set(t,n);if(s){if(r.$watchers$&&l&128){var u=r.$watchers$[t];if(u){u.map((function(e){try{s[e](n,o,t)}catch(r){Ge(r,i)}}))}}if((l&(2|16))===2){me(a,false)}}}};var Te=function(e,t,n){if(t.$members$){if(e.watchers){t.$watchers$=e.watchers}var r=Object.entries(t.$members$);var a=e.prototype;r.map((function(e){var r=e[0],i=e[1][0];if(i&31||n&2&&i&32){Object.defineProperty(a,r,{get:function(){return _e(this,r)},set:function(e){ke(this,r,e,t)},configurable:true,enumerable:true})}else if(n&1&&i&64){Object.defineProperty(a,r,{value:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var n=He(this);return n.$onInstancePromise$.then((function(){var t;return(t=n.$lazyInstance$)[r].apply(t,e)}))}})}}));if(n&1){var i=new Map;a.attributeChangedCallback=function(e,t,n){var r=this;Ze.jmp((function(){var t=i.get(e);if(r.hasOwnProperty(t)){n=r[t];delete r[t]}else if(a.hasOwnProperty(t)&&typeof r[t]==="number"&&r[t]==n){return}r[t]=n===null&&typeof r[t]==="boolean"?false:n}))};e.observedAttributes=r.filter((function(e){var t=e[0],n=e[1];return n[0]&15})).map((function(e){var n=e[0],r=e[1];var a=r[1]||n;i.set(a,n);if(r[0]&512){t.$attrsToReflect$.push([n,a])}return a}))}}return e};var Le=function(e,r,a,i,o){return __awaiter(n,void 0,void 0,(function(){var e,n,i,l,s,$,f;return __generator(this,(function(u){switch(u.label){case 0:if(!((r.$flags$&32)===0))return[3,5];r.$flags$|=32;o=Ke(a);if(!o.then)return[3,2];e=h();return[4,o];case 1:o=u.sent();e();u.label=2;case 2:if(!o.isProxied){{a.$watchers$=o.watchers}Te(o,a,2);o.isProxied=true}n=d("createInstance",a.$tagName$);{r.$flags$|=8}try{new o(r)}catch(c){Ge(c)}{r.$flags$&=~8}{r.$flags$|=128}n();Ae(r.$lazyInstance$);if(!o.style)return[3,5];i=o.style;l=K(a);if(!!Qe.has(l))return[3,5];s=d("registerStyles",a.$tagName$);if(!(a.$flags$&8))return[3,4];return[4,t.import("./p-9d9204af.system.js").then((function(e){return e.scopeCss(i,l,false)}))];case 3:i=u.sent();u.label=4;case 4:W(l,i,!!(a.$flags$&1));s();u.label=5;case 5:$=r.$ancestorComponent$;f=function(){return me(r,true)};if($&&$["s-rc"]){$["s-rc"].push(f)}else{f()}return[2]}}))}))};var Ae=function(e){{Re(e,"connectedCallback")}};var Ce=function(e){if((Ze.$flags$&1)===0){var t=He(e);var n=t.$cmpMeta$;var r=d("connectedCallback",n.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;var a=void 0;{a=e.getAttribute(b);if(a){if(et&&n.$flags$&1){var i=G(e.shadowRoot,n);e.classList.remove(i+"-h",i+"-s")}B(e,n.$tagName$,a,t)}}if(!a){if(n.$flags$&(4|8)){Ie(e)}}{var o=e;while(o=o.parentNode||o.host){if(o.nodeType===1&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){pe(t,t.$ancestorComponent$=o);break}}}if(n.$members$){Object.entries(n.$members$).map((function(t){var n=t[0],r=t[1][0];if(r&31&&e.hasOwnProperty(n)){var a=e[n];delete e[n];e[n]=a}}))}{st((function(){return Le(e,t,n)}))}}else{Me(e,t,n.$listeners$);Ae(t.$lazyInstance$)}r()}};var Ie=function(e){var t=e["s-cr"]=Ye.createComment("");t["s-cn"]=true;e.insertBefore(t,e.firstChild)};var je=function(e){if((Ze.$flags$&1)===0){var t=He(e);var n=t.$lazyInstance$;{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}{Re(n,"disconnectedCallback")}}};var Ee=function(e,t){var n=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.item=function(e){return this[e]};return t}(Array);if(t.$flags$&8){var r=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get:function(){return this.childNodes.map((function(e){return e.nodeType===1}))}});Object.defineProperty(e,"childElementCount",{get:function(){return e.children.length}});Object.defineProperty(e,"childNodes",{get:function(){var e=r.call(this);if((Ze.$flags$&1)===0&&He(this).$flags$&2){var t=new n;for(var a=0;a<e.length;a++){var i=e[a]["s-nr"];if(i){t.push(i)}}return t}return n.from(e)}})}};var Pe=e("b",(function(e,t){if(t===void 0){t={}}var n;var r=d();var a=[];var i=t.exclude||[];var o=Xe.customElements;var l=Ye.head;var s=l.querySelector("meta[charset]");var $=Ye.createElement("style");var f=[];var u=Ye.querySelectorAll("[".concat(w,"]"));var c;var v=true;var h=0;Object.assign(Ze,t);Ze.$resourcesUrl$=new URL(t.resourcesUrl||"./",Ye.baseURI).href;{Ze.$flags$|=2}{for(;h<u.length;h++){W(u[h].getAttribute(w),Q(u[h].innerHTML),true)}}e.map((function(e){e[1].map((function(t){var n={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{n.$members$=t[2]}{n.$listeners$=t[3]}{n.$attrsToReflect$=[]}{n.$watchers$={}}if(!et&&n.$flags$&1){n.$flags$|=8}var r=n.$tagName$;var l=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;t=r;Fe(t,n);if(n.$flags$&1){if(et){{t.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}}else if(!("shadowRoot"in t)){t.shadowRoot=t}}{Ee(t,n)}return r}t.prototype.connectedCallback=function(){var e=this;if(c){clearTimeout(c);c=null}if(v){f.push(this)}else{Ze.jmp((function(){return Ce(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;Ze.jmp((function(){return je(e)}))};t.prototype.componentOnReady=function(){return He(this).$onReadyPromise$};return t}(HTMLElement);n.$lazyBundleId$=e[0];if(!i.includes(r)&&!o.get(r)){a.push(r);o.define(r,Te(l,n,1))}}))}));{$.innerHTML=a+R;$.setAttribute("data-styles","");var p=(n=Ze.$nonce$)!==null&&n!==void 0?n:A(Ye);if(p!=null){$.setAttribute("nonce",p)}l.insertBefore($,s?s.nextSibling:l.firstChild)}v=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{Ze.jmp((function(){return c=setTimeout(Ne,30)}))}}r()}));var Oe=e("F",(function(e,t){return t}));var Me=function(e,t,n,r){if(n){n.map((function(n){var r=n[0],a=n[1],i=n[2];var o=qe(e,r);var l=Be(t,i);var s=ze(r);Ze.ael(o,a,l,s);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return Ze.rel(o,a,l,s)}))}))}};var Be=function(e,t){return function(n){try{{if(e.$flags$&256){e.$lazyInstance$[t](n)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}}}catch(r){Ge(r)}}};var qe=function(e,t){if(t&4)return Ye;if(t&8)return Xe;if(t&16)return Ye.body;return e};var ze=function(e){return(e&2)!==0};var Ue=e("s",(function(e){return Ze.$nonce$=e}));var Ve=new WeakMap;var He=function(e){return Ve.get(e)};var De=e("r",(function(e,t){return Ve.set(t.$lazyInstance$=e,t)}));var Fe=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{n.$onInstancePromise$=new Promise((function(e){return n.$onInstanceResolve$=e}))}{n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}Me(e,n,t.$listeners$);return Ve.set(e,n)};var We=function(e,t){return t in e};var Ge=function(e,t){return(0,console.error)(e,t)};var Je=new Map;var Ke=function(e,n,r){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var o=Je.get(i);if(o){return o[a]}
4
+ */System.register([],(function(e,t){"use strict";return{execute:function(){var n=this;var r=e("N","duet");var a=e("E",{cdnURILocal:"http://0.0.0.0:3334",cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"3.0.54"});var i;var o;var l;var s=false;var $=false;var f=false;var u=false;var c=false;var v=e("B",{isDev:false,isBrowser:true,isServer:false,isTesting:false});var d=function(e,t){if(t===void 0){t=""}{return function(){return}}};var h=function(e,t){{return function(){return}}};var p="r";var m="o";var g="s";var y="t";var b="s-id";var w="sty-id";var N="c-id";var R="{visibility:hidden}.hydrated{visibility:inherit}";var x="http://www.w3.org/1999/xlink";var S={};var _="http://www.w3.org/2000/svg";var k="http://www.w3.org/1999/xhtml";var T=function(e){return e!=null};var L=function(e){e=typeof e;return e==="object"||e==="function"};function A(e){var t,n,r;return(r=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&r!==void 0?r:undefined}var C=e("h",(function(e,t){var n=[];for(var r=2;r<arguments.length;r++){n[r-2]=arguments[r]}var a=null;var i=null;var o=null;var l=false;var s=false;var $=[];var f=function(t){for(var n=0;n<t.length;n++){a=t[n];if(Array.isArray(a)){f(a)}else if(a!=null&&typeof a!=="boolean"){if(l=typeof e!=="function"&&!L(a)){a=String(a)}if(l&&s){$[$.length-1].$text$+=a}else{$.push(l?I(null,a):a)}s=l}}};f(n);if(t){if(t.key){i=t.key}if(t.name){o=t.name}{var u=t.className||t.class;if(u){t.class=typeof u!=="object"?u:Object.keys(u).filter((function(e){return u[e]})).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,$,P)}var c=I(e,null);c.$attrs$=t;if($.length>0){c.$children$=$}{c.$key$=i}{c.$name$=o}return c}));var I=function(e,t){var n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{n.$attrs$=null}{n.$key$=null}{n.$name$=null}return n};var j=e("H",{});var E=function(e){return e&&e.$tag$===j};var P={forEach:function(e,t){return e.map(O).forEach(t)},map:function(e,t){return e.map(O).map(t).map(M)}};var O=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}};var M=function(e){if(typeof e.vtag==="function"){var t=Object.assign({},e.vattrs);if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return C.apply(void 0,__spreadArray([e.vtag,t],e.vchildren||[],false))}var n=I(e.vtag,e.vtext);n.$attrs$=e.vattrs;n.$children$=e.vchildren;n.$key$=e.vkey;n.$name$=e.vname;return n};var B=function(e,t,n,r){var a=d("hydrateClient",t);var i=e.shadowRoot;var o=[];var l=[];var s=i?[]:null;var $=r.$vnode$=I(t,null);if(!Ze.$orgLocNodes$){z(Ye.body,Ze.$orgLocNodes$=new Map)}e[b]=n;e.removeAttribute(b);q($,o,l,s,e,e,n);o.map((function(e){var n=e.$hostId$+"."+e.$nodeId$;var r=Ze.$orgLocNodes$.get(n);var a=e.$elm$;if(r&&et&&r["s-en"]===""){r.parentNode.insertBefore(a,r.nextSibling)}if(!i){a["s-hn"]=t;if(r){a["s-ol"]=r;a["s-ol"]["s-nr"]=a}}Ze.$orgLocNodes$.delete(n)}));if(i){s.map((function(e){if(e){i.appendChild(e)}}))}a()};var q=function(e,t,n,r,a,i,o){var l;var s;var $;var f;if(i.nodeType===1){l=i.getAttribute(N);if(l){s=l.split(".");if(s[0]===o||s[0]==="0"){$={$flags$:0,$hostId$:s[0],$nodeId$:s[1],$depth$:s[2],$index$:s[3],$tag$:i.tagName.toLowerCase(),$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null};t.push($);i.removeAttribute(N);if(!e.$children$){e.$children$=[]}e.$children$[$.$index$]=$;e=$;if(r&&$.$depth$==="0"){r[$.$index$]=$.$elm$}}}for(f=i.childNodes.length-1;f>=0;f--){q(e,t,n,r,a,i.childNodes[f],o)}if(i.shadowRoot){for(f=i.shadowRoot.childNodes.length-1;f>=0;f--){q(e,t,n,r,a,i.shadowRoot.childNodes[f],o)}}}else if(i.nodeType===8){s=i.nodeValue.split(".");if(s[1]===o||s[1]==="0"){l=s[0];$={$flags$:0,$hostId$:s[1],$nodeId$:s[2],$depth$:s[3],$index$:s[4],$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null};if(l===y){$.$elm$=i.nextSibling;if($.$elm$&&$.$elm$.nodeType===3){$.$text$=$.$elm$.textContent;t.push($);i.remove();if(!e.$children$){e.$children$=[]}e.$children$[$.$index$]=$;if(r&&$.$depth$==="0"){r[$.$index$]=$.$elm$}}}else if($.$hostId$===o){if(l===g){$.$tag$="slot";if(s[5]){i["s-sn"]=$.$name$=s[5]}else{i["s-sn"]=""}i["s-sr"]=true;if(r){$.$elm$=Ye.createElement($.$tag$);if($.$name$){$.$elm$.setAttribute("name",$.$name$)}i.parentNode.insertBefore($.$elm$,i);i.remove();if($.$depth$==="0"){r[$.$index$]=$.$elm$}}n.push($);if(!e.$children$){e.$children$=[]}e.$children$[$.$index$]=$}else if(l===p){if(r){i.remove()}else{a["s-cr"]=i;i["s-cn"]=true}}}}}else if(e&&e.$tag$==="style"){var u=I(null,i.textContent);u.$elm$=i;u.$index$="0";e.$children$=[u]}};var z=function(e,t){if(e.nodeType===1){var n=0;for(;n<e.childNodes.length;n++){z(e.childNodes[n],t)}if(e.shadowRoot){for(n=0;n<e.shadowRoot.childNodes.length;n++){z(e.shadowRoot.childNodes[n],t)}}}else if(e.nodeType===8){var r=e.nodeValue.split(".");if(r[0]===m){t.set(r[1]+"."+r[2],e);e.nodeValue="";e["s-en"]=r[3]}}};var U=function(e,t){if(e!=null&&!L(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var V=e("g",(function(e){return He(e).$hostElement$}));var H=e("c",(function(e,t,n){var r=V(e);return{emit:function(e){return D(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}}}));var D=function(e,t,n){var r=Ze.ce(t,n);e.dispatchEvent(r);return r};var F=new WeakMap;var W=function(e,t,n){var r=Qe.get(e);if(nt&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}Qe.set(e,r)};var G=function(e,t,n,r){var a;var i=K(t);var o=Qe.get(i);e=e.nodeType===11?e:Ye;if(o){if(typeof o==="string"){e=e.head||e;var l=F.get(e);var s=void 0;if(!l){F.set(e,l=new Set)}if(!l.has(i)){if(e.host&&(s=e.querySelector("[".concat(w,'="').concat(i,'"]')))){s.innerHTML=o}else{{s=Ye.createElement("style");s.innerHTML=o}var $=(a=Ze.$nonce$)!==null&&a!==void 0?a:A(Ye);if($!=null){s.setAttribute("nonce",$)}e.insertBefore(s,e.querySelector("link"))}if(l){l.add(i)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[o],false)}}return i};var J=function(e){var t=e.$cmpMeta$;var n=e.$hostElement$;var r=t.$flags$;var a=d("attachStyles",t.$tagName$);var i=G(et&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=i;n.classList.add(i+"-h");if(r&2){n.classList.add(i+"-s")}}a()};var K=function(e,t){return"sc-"+e.$tagName$};var Q=function(e){return e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{")};var X=function(e,t,n,r,a,i){if(n!==r){var o=We(e,t);var l=t.toLowerCase();if(t==="class"){var s=e.classList;var $=Z(n);var f=Z(r);s.remove.apply(s,$.filter((function(e){return e&&!f.includes(e)})));s.add.apply(s,f.filter((function(e){return e&&!$.includes(e)})))}else if(t==="style"){{for(var u in n){if(!r||r[u]==null){if(u.includes("-")){e.style.removeProperty(u)}else{e.style[u]=""}}}}for(var u in r){if(!n||r[u]!==n[u]){if(u.includes("-")){e.style.setProperty(u,r[u])}else{e.style[u]=r[u]}}}}else if(t==="key");else if(t==="ref"){if(r){r(e)}}else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(We(Xe,l)){t=l.slice(2)}else{t=l[2]+t.slice(3)}if(n){Ze.rel(e,t,n,false)}if(r){Ze.ael(e,t,r,false)}}else{var c=L(r);if((o||c&&r!==null)&&!a){try{if(!e.tagName.includes("-")){var v=r==null?"":r;if(t==="list"){o=false}else if(n==null||e[t]!=v){e[t]=v}}else{e[t]=r}}catch(h){}}var d=false;{if(l!==(l=l.replace(/^xlink\:?/,""))){t=l;d=true}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){if(d){e.removeAttributeNS(x,t)}else{e.removeAttribute(t)}}}else if((!o||i&4||a)&&!c){r=r===true?"":r;if(d){e.setAttributeNS(x,t,r)}else{e.setAttribute(t,r)}}}}};var Y=/\s/;var Z=function(e){return!e?[]:e.split(Y)};var ee=function(e,t,n,r){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var i=e&&e.$attrs$||S;var o=t.$attrs$||S;{for(r in i){if(!(r in o)){X(a,r,i[r],undefined,n,t.$flags$)}}}for(r in o){X(a,r,i[r],o[r],n,t.$flags$)}};var te=function(e,t,n,r){var a=t.$children$[n];var $=0;var c;var v;var d;if(!s){f=true;if(a.$tag$==="slot"){if(i){r.classList.add(i+"-s")}a.$flags$|=a.$children$?2:1}}if(a.$text$!==null){c=a.$elm$=Ye.createTextNode(a.$text$)}else if(a.$flags$&1){c=a.$elm$=Ye.createTextNode("")}else{if(!u){u=a.$tag$==="svg"}c=a.$elm$=Ye.createElementNS(u?_:k,a.$flags$&2?"slot-fb":a.$tag$);if(u&&a.$tag$==="foreignObject"){u=false}{ee(null,a,u)}if(T(i)&&c["s-si"]!==i){c.classList.add(c["s-si"]=i)}if(a.$children$){for($=0;$<a.$children$.length;++$){v=te(e,a,$,c);if(v){c.appendChild(v)}}}{if(a.$tag$==="svg"){u=false}else if(c.tagName==="foreignObject"){u=true}}}{c["s-hn"]=l;if(a.$flags$&(2|1)){c["s-sr"]=true;c["s-cr"]=o;c["s-sn"]=a.$name$||"";d=e&&e.$children$&&e.$children$[n];if(d&&d.$tag$===a.$tag$&&e.$elm$){ne(e.$elm$,false)}}}return c};var ne=function(e,t){Ze.$flags$|=1;var n=e.childNodes;for(var r=n.length-1;r>=0;r--){var a=n[r];if(a["s-hn"]!==l&&a["s-ol"]){se(a).insertBefore(a,le(a));a["s-ol"].remove();a["s-ol"]=undefined;f=true}if(t){ne(a,t)}}Ze.$flags$&=~1};var re=function(e,t,n,r,a,i){var o=e["s-cr"]&&e["s-cr"].parentNode||e;var s;if(o.shadowRoot&&o.tagName===l){o=o.shadowRoot}for(;a<=i;++a){if(r[a]){s=te(null,n,a,e);if(s){r[a].$elm$=s;o.insertBefore(s,le(t))}}}};var ae=function(e,t,n,r,a){for(;t<=n;++t){if(r=e[t]){a=r.$elm$;de(r);{$=true;if(a["s-ol"]){a["s-ol"].remove()}else{ne(a,true)}}a.remove()}}};var ie=function(e,t,n,r){var a=0;var i=0;var o=0;var l=0;var s=t.length-1;var $=t[0];var f=t[s];var u=r.length-1;var c=r[0];var v=r[u];var d;var h;while(a<=s&&i<=u){if($==null){$=t[++a]}else if(f==null){f=t[--s]}else if(c==null){c=r[++i]}else if(v==null){v=r[--u]}else if(oe($,c)){$e($,c);$=t[++a];c=r[++i]}else if(oe(f,v)){$e(f,v);f=t[--s];v=r[--u]}else if(oe($,v)){if($.$tag$==="slot"||v.$tag$==="slot"){ne($.$elm$.parentNode,false)}$e($,v);e.insertBefore($.$elm$,f.$elm$.nextSibling);$=t[++a];v=r[--u]}else if(oe(f,c)){if($.$tag$==="slot"||v.$tag$==="slot"){ne(f.$elm$.parentNode,false)}$e(f,c);e.insertBefore(f.$elm$,$.$elm$);f=t[--s];c=r[++i]}else{o=-1;{for(l=a;l<=s;++l){if(t[l]&&t[l].$key$!==null&&t[l].$key$===c.$key$){o=l;break}}}if(o>=0){h=t[o];if(h.$tag$!==c.$tag$){d=te(t&&t[i],n,o,e)}else{$e(h,c);t[o]=undefined;d=h.$elm$}c=r[++i]}else{d=te(t&&t[i],n,i,e);c=r[++i]}if(d){{se($.$elm$).insertBefore(d,le($.$elm$))}}}}if(a>s){re(e,r[u+1]==null?null:r[u+1].$elm$,n,r,i,u)}else if(i>u){ae(t,a,s)}};var oe=function(e,t){if(e.$tag$===t.$tag$){if(e.$tag$==="slot"){return e.$name$===t.$name$}{return e.$key$===t.$key$}}return false};var le=function(e){return e&&e["s-ol"]||e};var se=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var $e=function(e,t){var n=t.$elm$=e.$elm$;var r=e.$children$;var a=t.$children$;var i=t.$tag$;var o=t.$text$;var l;if(o===null){{u=i==="svg"?true:i==="foreignObject"?false:u}{if(i==="slot");else{ee(e,t,u)}}if(r!==null&&a!==null){ie(n,r,t,a)}else if(a!==null){if(e.$text$!==null){n.textContent=""}re(n,null,t,a,0,a.length-1)}else if(r!==null){ae(r,0,r.length-1)}if(u&&i==="svg"){u=false}}else if(l=n["s-cr"]){l.parentNode.textContent=o}else if(e.$text$!==o){n.data=o}};var fe=function(e){var t=e.childNodes;var n;var r;var a;var i;var o;var l;for(r=0,a=t.length;r<a;r++){n=t[r];if(n.nodeType===1){if(n["s-sr"]){o=n["s-sn"];n.hidden=false;for(i=0;i<a;i++){l=t[i].nodeType;if(t[i]["s-hn"]!==n["s-hn"]||o!==""){if(l===1&&o===t[i].getAttribute("slot")){n.hidden=true;break}}else{if(l===1||l===3&&t[i].textContent.trim()!==""){n.hidden=true;break}}}}fe(n)}}};var ue=[];var ce=function(e){var t;var n;var r;var a;var i;var o;var l=0;var s=e.childNodes;var f=s.length;for(;l<f;l++){t=s[l];if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){r=n.parentNode.childNodes;a=t["s-sn"];for(o=r.length-1;o>=0;o--){n=r[o];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]){if(ve(n,a)){i=ue.find((function(e){return e.$nodeToRelocate$===n}));$=true;n["s-sn"]=n["s-sn"]||a;if(i){i.$slotRefNode$=t}else{ue.push({$slotRefNode$:t,$nodeToRelocate$:n})}if(n["s-sr"]){ue.map((function(e){if(ve(e.$nodeToRelocate$,n["s-sn"])){i=ue.find((function(e){return e.$nodeToRelocate$===n}));if(i&&!e.$slotRefNode$){e.$slotRefNode$=i.$slotRefNode$}}}))}}else if(!ue.some((function(e){return e.$nodeToRelocate$===n}))){ue.push({$nodeToRelocate$:n})}}}}if(t.nodeType===1){ce(t)}}};var ve=function(e,t){if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var de=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(de)}};var he=function(e,t){var n=e.$hostElement$;var r=e.$cmpMeta$;var a=e.$vnode$||I(null,null);var u=E(t)?t:C(null,null,t);l=n.tagName;if(r.$attrsToReflect$){u.$attrs$=u.$attrs$||{};r.$attrsToReflect$.map((function(e){var t=e[0],r=e[1];return u.$attrs$[r]=n[t]}))}u.$tag$=null;u.$flags$|=4;e.$vnode$=u;u.$elm$=a.$elm$=n.shadowRoot||n;{i=n["s-sc"]}{o=n["s-cr"];s=et&&(r.$flags$&1)!==0;$=false}$e(a,u);{Ze.$flags$|=1;if(f){ce(u.$elm$);var c=void 0;var v=void 0;var d=void 0;var h=void 0;var p=void 0;var m=void 0;var g=0;for(;g<ue.length;g++){c=ue[g];v=c.$nodeToRelocate$;if(!v["s-ol"]){d=Ye.createTextNode("");d["s-nr"]=v;v.parentNode.insertBefore(v["s-ol"]=d,v)}}for(g=0;g<ue.length;g++){c=ue[g];v=c.$nodeToRelocate$;if(c.$slotRefNode$){h=c.$slotRefNode$.parentNode;p=c.$slotRefNode$.nextSibling;d=v["s-ol"];while(d=d.previousSibling){m=d["s-nr"];if(m&&m["s-sn"]===v["s-sn"]&&h===m.parentNode){m=m.nextSibling;if(!m||!m["s-nr"]){p=m;break}}}if(!p&&h!==v.parentNode||v.nextSibling!==p){if(v!==p){if(!v["s-hn"]&&v["s-ol"]){v["s-hn"]=v["s-ol"].parentNode.nodeName}h.insertBefore(v,p)}}}else{if(v.nodeType===1){v.hidden=true}}}}if($){fe(u.$elm$)}Ze.$flags$&=~1;ue.length=0}};var pe=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var me=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}pe(e,e.$ancestorComponent$);var n=function(){return ge(e,t)};return $t(n)};var ge=function(e,t){var n=d("scheduleUpdate",e.$cmpMeta$.$tagName$);var r=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],n=e[1];return Re(r,t,n)}));e.$queuedListeners$=null}}{a=Re(r,"componentWillLoad")}}{a=xe(a,(function(){return Re(r,"componentWillRender")}))}n();return xe(a,(function(){return ye(e,r,t)}))};var ye=function(e,t,r){return __awaiter(n,void 0,void 0,(function(){var n,a,i,o,l,s;return __generator(this,(function($){n=e.$hostElement$;a=d("update",e.$cmpMeta$.$tagName$);i=n["s-rc"];if(r){J(e)}o=d("render",e.$cmpMeta$.$tagName$);{be(e,t)}if(i){i.map((function(e){return e()}));n["s-rc"]=undefined}o();a();{l=n["s-p"];s=function(){return we(e)};if(l.length===0){s()}else{Promise.all(l).then(s);e.$flags$|=4;l.length=0}}return[2]}))}))};var be=function(e,t,n){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{he(e,t)}}}}catch(r){Ge(r,e.$hostElement$)}return null};var we=function(e){var t=e.$cmpMeta$.$tagName$;var n=e.$hostElement$;var r=d("postUpdate",t);var a=e.$lazyInstance$;var i=e.$ancestorComponent$;{Re(a,"componentDidRender")}if(!(e.$flags$&64)){e.$flags$|=64;{Se(n)}{Re(a,"componentDidLoad")}r();{e.$onReadyResolve$(n);if(!i){Ne()}}}else{{Re(a,"componentDidUpdate")}r()}{e.$onInstanceResolve$(n)}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){st((function(){return me(e,false)}))}e.$flags$&=~(4|512)}};var Ne=function(e){{Se(Ye.documentElement)}st((function(){return D(Xe,"appload",{detail:{namespace:r}})}))};var Re=function(e,t,n){if(e&&e[t]){try{return e[t](n)}catch(r){Ge(r)}}return undefined};var xe=function(e,t){return e&&e.then?e.then(t):t()};var Se=function(e){return e.classList.add("hydrated")};var _e=function(e,t){return He(e).$instanceValues$.get(t)};var ke=function(e,t,n,r){var a=He(e);var i=a.$hostElement$;var o=a.$instanceValues$.get(t);var l=a.$flags$;var s=a.$lazyInstance$;n=U(n,r.$members$[t][0]);var $=Number.isNaN(o)&&Number.isNaN(n);var f=n!==o&&!$;if((!(l&8)||o===undefined)&&f){a.$instanceValues$.set(t,n);if(s){if(r.$watchers$&&l&128){var u=r.$watchers$[t];if(u){u.map((function(e){try{s[e](n,o,t)}catch(r){Ge(r,i)}}))}}if((l&(2|16))===2){me(a,false)}}}};var Te=function(e,t,n){if(t.$members$){if(e.watchers){t.$watchers$=e.watchers}var r=Object.entries(t.$members$);var a=e.prototype;r.map((function(e){var r=e[0],i=e[1][0];if(i&31||n&2&&i&32){Object.defineProperty(a,r,{get:function(){return _e(this,r)},set:function(e){ke(this,r,e,t)},configurable:true,enumerable:true})}else if(n&1&&i&64){Object.defineProperty(a,r,{value:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var n=He(this);return n.$onInstancePromise$.then((function(){var t;return(t=n.$lazyInstance$)[r].apply(t,e)}))}})}}));if(n&1){var i=new Map;a.attributeChangedCallback=function(e,t,n){var r=this;Ze.jmp((function(){var t=i.get(e);if(r.hasOwnProperty(t)){n=r[t];delete r[t]}else if(a.hasOwnProperty(t)&&typeof r[t]==="number"&&r[t]==n){return}r[t]=n===null&&typeof r[t]==="boolean"?false:n}))};e.observedAttributes=r.filter((function(e){var t=e[0],n=e[1];return n[0]&15})).map((function(e){var n=e[0],r=e[1];var a=r[1]||n;i.set(a,n);if(r[0]&512){t.$attrsToReflect$.push([n,a])}return a}))}}return e};var Le=function(e,r,a,i,o){return __awaiter(n,void 0,void 0,(function(){var e,n,i,l,s,$,f;return __generator(this,(function(u){switch(u.label){case 0:if(!((r.$flags$&32)===0))return[3,5];r.$flags$|=32;o=Ke(a);if(!o.then)return[3,2];e=h();return[4,o];case 1:o=u.sent();e();u.label=2;case 2:if(!o.isProxied){{a.$watchers$=o.watchers}Te(o,a,2);o.isProxied=true}n=d("createInstance",a.$tagName$);{r.$flags$|=8}try{new o(r)}catch(c){Ge(c)}{r.$flags$&=~8}{r.$flags$|=128}n();Ae(r.$lazyInstance$);if(!o.style)return[3,5];i=o.style;l=K(a);if(!!Qe.has(l))return[3,5];s=d("registerStyles",a.$tagName$);if(!(a.$flags$&8))return[3,4];return[4,t.import("./p-9d9204af.system.js").then((function(e){return e.scopeCss(i,l,false)}))];case 3:i=u.sent();u.label=4;case 4:W(l,i,!!(a.$flags$&1));s();u.label=5;case 5:$=r.$ancestorComponent$;f=function(){return me(r,true)};if($&&$["s-rc"]){$["s-rc"].push(f)}else{f()}return[2]}}))}))};var Ae=function(e){{Re(e,"connectedCallback")}};var Ce=function(e){if((Ze.$flags$&1)===0){var t=He(e);var n=t.$cmpMeta$;var r=d("connectedCallback",n.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;var a=void 0;{a=e.getAttribute(b);if(a){if(et&&n.$flags$&1){var i=G(e.shadowRoot,n);e.classList.remove(i+"-h",i+"-s")}B(e,n.$tagName$,a,t)}}if(!a){if(n.$flags$&(4|8)){Ie(e)}}{var o=e;while(o=o.parentNode||o.host){if(o.nodeType===1&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){pe(t,t.$ancestorComponent$=o);break}}}if(n.$members$){Object.entries(n.$members$).map((function(t){var n=t[0],r=t[1][0];if(r&31&&e.hasOwnProperty(n)){var a=e[n];delete e[n];e[n]=a}}))}{st((function(){return Le(e,t,n)}))}}else{Me(e,t,n.$listeners$);Ae(t.$lazyInstance$)}r()}};var Ie=function(e){var t=e["s-cr"]=Ye.createComment("");t["s-cn"]=true;e.insertBefore(t,e.firstChild)};var je=function(e){if((Ze.$flags$&1)===0){var t=He(e);var n=t.$lazyInstance$;{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}{Re(n,"disconnectedCallback")}}};var Ee=function(e,t){var n=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.item=function(e){return this[e]};return t}(Array);if(t.$flags$&8){var r=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get:function(){return this.childNodes.map((function(e){return e.nodeType===1}))}});Object.defineProperty(e,"childElementCount",{get:function(){return e.children.length}});Object.defineProperty(e,"childNodes",{get:function(){var e=r.call(this);if((Ze.$flags$&1)===0&&He(this).$flags$&2){var t=new n;for(var a=0;a<e.length;a++){var i=e[a]["s-nr"];if(i){t.push(i)}}return t}return n.from(e)}})}};var Pe=e("b",(function(e,t){if(t===void 0){t={}}var n;var r=d();var a=[];var i=t.exclude||[];var o=Xe.customElements;var l=Ye.head;var s=l.querySelector("meta[charset]");var $=Ye.createElement("style");var f=[];var u=Ye.querySelectorAll("[".concat(w,"]"));var c;var v=true;var h=0;Object.assign(Ze,t);Ze.$resourcesUrl$=new URL(t.resourcesUrl||"./",Ye.baseURI).href;{Ze.$flags$|=2}{for(;h<u.length;h++){W(u[h].getAttribute(w),Q(u[h].innerHTML),true)}}e.map((function(e){e[1].map((function(t){var n={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{n.$members$=t[2]}{n.$listeners$=t[3]}{n.$attrsToReflect$=[]}{n.$watchers$={}}if(!et&&n.$flags$&1){n.$flags$|=8}var r=n.$tagName$;var l=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;t=r;Fe(t,n);if(n.$flags$&1){if(et){{t.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}}else if(!("shadowRoot"in t)){t.shadowRoot=t}}{Ee(t,n)}return r}t.prototype.connectedCallback=function(){var e=this;if(c){clearTimeout(c);c=null}if(v){f.push(this)}else{Ze.jmp((function(){return Ce(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;Ze.jmp((function(){return je(e)}))};t.prototype.componentOnReady=function(){return He(this).$onReadyPromise$};return t}(HTMLElement);n.$lazyBundleId$=e[0];if(!i.includes(r)&&!o.get(r)){a.push(r);o.define(r,Te(l,n,1))}}))}));{$.innerHTML=a+R;$.setAttribute("data-styles","");var p=(n=Ze.$nonce$)!==null&&n!==void 0?n:A(Ye);if(p!=null){$.setAttribute("nonce",p)}l.insertBefore($,s?s.nextSibling:l.firstChild)}v=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{Ze.jmp((function(){return c=setTimeout(Ne,30)}))}}r()}));var Oe=e("F",(function(e,t){return t}));var Me=function(e,t,n,r){if(n){n.map((function(n){var r=n[0],a=n[1],i=n[2];var o=qe(e,r);var l=Be(t,i);var s=ze(r);Ze.ael(o,a,l,s);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return Ze.rel(o,a,l,s)}))}))}};var Be=function(e,t){return function(n){try{{if(e.$flags$&256){e.$lazyInstance$[t](n)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}}}catch(r){Ge(r)}}};var qe=function(e,t){if(t&4)return Ye;if(t&8)return Xe;if(t&16)return Ye.body;return e};var ze=function(e){return(e&2)!==0};var Ue=e("s",(function(e){return Ze.$nonce$=e}));var Ve=new WeakMap;var He=function(e){return Ve.get(e)};var De=e("r",(function(e,t){return Ve.set(t.$lazyInstance$=e,t)}));var Fe=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{n.$onInstancePromise$=new Promise((function(e){return n.$onInstanceResolve$=e}))}{n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}Me(e,n,t.$listeners$);return Ve.set(e,n)};var We=function(e,t){return t in e};var Ge=function(e,t){return(0,console.error)(e,t)};var Je=new Map;var Ke=function(e,n,r){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var o=Je.get(i);if(o){return o[a]}
5
5
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return t.import("./".concat(i,".entry.js").concat("")).then((function(e){{Je.set(i,e)}return e[a]}),Ge)};var Qe=new Map;var Xe=e("w",typeof window!=="undefined"?window:{});var Ye=e("d",Xe.document||{head:{}});var Ze=e("a",{$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,r){return e.addEventListener(t,n,r)},rel:function(e,t,n,r){return e.removeEventListener(t,n,r)},ce:function(e,t){return new CustomEvent(e,t)}});var et=function(){return(Ye.head.attachShadow+"").indexOf("[native")>-1}();var tt=e("p",(function(e){return Promise.resolve(e)}));var nt=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var rt=[];var at=[];var it=function(e,t){return function(n){e.push(n);if(!c){c=true;if(t&&Ze.$flags$&4){st(lt)}else{Ze.raf(lt)}}}};var ot=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(n){Ge(n)}}e.length=0};var lt=function(){ot(rt);{ot(at);if(c=rt.length>0){Ze.raf(lt)}}};var st=function(e){return tt().then(e)};var $t=it(at,true)}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-d0857e1f.system.js","./p-e566ff11.system.js"],(function(e){"use strict";var t,i,a,d,n;return{setters:[function(e){t=e.r;i=e.h;a=e.H;d=e.g},function(e){n=e.i}],execute:function(){var o="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex:1 0 auto;width:100%}:host(.duet-middle){display:flex}:host(.duet-middle) .duet-layout{padding:36px 28px !important}@media (min-width: 36em){:host(.duet-middle) .duet-layout{padding:48px 36px !important}}@media (min-width: 62em){:host(.duet-middle) .duet-layout{padding:56px !important}}:host(.duet-ie){height:100%}:host(.duet-middle.duet-ie){height:auto}.duet-layout{position:relative;padding:0 16px;margin:48px auto 36px}@media (min-width: 36em){.duet-layout{margin-top:72px}}.duet-layout.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}@media (min-width: 36em){.duet-layout{padding:0 28px}}@media (min-width: 62em){.duet-layout{display:flex;flex-direction:row;padding:0 56px;margin-bottom:48px}}@media (min-width: 76.25em){.duet-layout{max-width:1110px;padding:0}}.duet-main{display:block;width:100%}@media (min-width: 62em){.duet-main{min-width:600px;margin:0 auto}.has-sidebar .duet-main{max-width:734px;margin-right:20px}}";var r=e("duet_section_layout",function(){function e(e){t(this,e);this.margin="auto";this.middle=false}e.prototype.render=function(){return i(a,{class:{"duet-middle":this.middle,"duet-ie":n()}},i("div",{class:{"duet-layout":true,"duet-m-0":this.margin==="none"}},i("section",{class:"duet-main"},i("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return d(this)},enumerable:false,configurable:true});return e}());r.style=o}}}));
4
+ System.register(["./p-d7e6a4ed.system.js","./p-e566ff11.system.js"],(function(e){"use strict";var t,i,a,d,n;return{setters:[function(e){t=e.r;i=e.h;a=e.H;d=e.g},function(e){n=e.i}],execute:function(){var o="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex:1 0 auto;width:100%}:host(.duet-middle){display:flex}:host(.duet-middle) .duet-layout{padding:36px 28px !important}@media (min-width: 36em){:host(.duet-middle) .duet-layout{padding:48px 36px !important}}@media (min-width: 62em){:host(.duet-middle) .duet-layout{padding:56px !important}}:host(.duet-ie){height:100%}:host(.duet-middle.duet-ie){height:auto}.duet-layout{position:relative;padding:0 16px;margin:48px auto 36px}@media (min-width: 36em){.duet-layout{margin-top:72px}}.duet-layout.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}@media (min-width: 36em){.duet-layout{padding:0 28px}}@media (min-width: 62em){.duet-layout{display:flex;flex-direction:row;padding:0 56px;margin-bottom:48px}}@media (min-width: 76.25em){.duet-layout{max-width:1110px;padding:0}}.duet-main{display:block;width:100%}@media (min-width: 62em){.duet-main{min-width:600px;margin:0 auto}.has-sidebar .duet-main{max-width:734px;margin-right:20px}}";var r=e("duet_section_layout",function(){function e(e){t(this,e);this.margin="auto";this.middle=false}e.prototype.render=function(){return i(a,{class:{"duet-middle":this.middle,"duet-ie":n()}},i("div",{class:{"duet-layout":true,"duet-m-0":this.margin==="none"}},i("section",{class:"duet-main"},i("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return d(this)},enumerable:false,configurable:true});return e}());r.style=o}}}));
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,n,i){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function l(e){try{r(i.next(e))}catch(t){o(t)}}function s(e){try{r(i["throw"](e))}catch(t){o(t)}}function r(e){e.done?n(e.value):a(e.value).then(l,s)}r((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,a,o,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(e){return function(t){return r([e,t])}}function r(s){if(i)throw new TypeError("Generator is already executing.");while(l&&(l=0,s[0]&&(n=0)),n)try{if(i=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(r){s=[6,r];a=0}finally{i=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-d0857e1f.system.js","./p-0c4bbd65.system.js","./p-8078b081.system.js","./p-33b3aba4.system.js","./p-5f6bd5db.system.js","./p-51721695.system.js","./p-b6d51921.system.js"],(function(e){"use strict";var t,n,i,a,o,l,s,r,c,u,d,h;return{setters:[function(e){t=e.r;n=e.c;i=e.h;a=e.H;o=e.g},function(e){l=e.a},function(e){s=e.f;r=e.t},function(e){c=e.i},function(e){u=e.c},function(e){d=e.i},function(e){h=e.s}],execute:function(){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;margin-bottom:16px !important;display:block;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.5;color:rgb(0, 41, 77)}:host(.duet-theme-turva){font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}.duet-collapsible-content{display:none;padding-left:18px;margin-top:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77)}@media (max-width: 35.9375em){.duet-collapsible-content{font-size:0.875rem}}.duet-collapsible-content.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host([open])>.duet-collapsible-content{display:block}.duet-collapsible-heading{-webkit-user-select:none;user-select:none;display:flex;align-items:center;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.5;color:rgb(0, 41, 77);text-align:left;cursor:pointer;border-radius:4px}.duet-collapsible-heading.duet-collapsible-heading-centered{margin:auto}.duet-collapsible-heading.duet-collapsible-normal-weight{font-weight:400}.duet-collapsible-heading.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-collapsible-heading .duet-collapsible-heading-content{flex:0 auto;min-width:0}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div{flex:1 0 auto;margin-left:16px}.duet-collapsible-heading:focus{outline:0}:host(.user-is-tabbing) .duet-collapsible-heading:focus{border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-collapsible-heading.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-collapsible-heading-icon{margin-right:8px !important;display:flex;align-items:center;justify-content:center;color:rgb(0, 41, 77);transition:transform 300ms ease}.duet-collapsible-heading-icon:last-child,.duet-collapsible-heading-icon:last-of-type{margin-right:0 !important}[aria-expanded=true] .duet-collapsible-heading-icon{transform:rotate(180deg)}';var g=e("duet_collapsible",function(){function e(e){var i=this;t(this,e);this.duetToggle=n(this,"duetToggle",7);this.id=u("DuetCollapsible");this.handleKeyDown=function(e){if(d(e)){i.handleClick(e)}};this.getFontSizeFromTokens=function(e){if(e===void 0){e=i.headingSize}if(!e){return s}else{var t=/-/g;var n=e.replace(t,"_");return r["font_size_".concat(n)]}};this.getEquivalentIconSize=function(e){if(e===void 0){e=i.headingSize}switch(e){case"x-small":return"xx-small";case"small":return"xx-small";case"medium":return"xx-small";case"large":return"x-small";case"x-large":return"small";case"xx-large":return"medium";case"xxx-large":return"x-large";case"xxxx-large":return"xxx-large";default:return"xx-small"}};this.handleClick=function(e){e.preventDefault();i.open=!i.open;i.duetToggle.emit({component:"duet-collapsible",originalEvent:e})};this.theme="";this.accessibleLabel=undefined;this.heading="";this.centerHeading=false;this.headingWeight="semibold";this.headingSize=undefined;this.headingLevel=undefined;this.margin="auto";this.open=false}e.prototype.componentWillLoad=function(){c(this);this.hasAfterHeading=!!this.element.querySelector(":scope > [slot='after-heading']")};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeButton){this.element.classList.add("user-is-tabbing");this.nativeButton.focus(e)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.headingLevel?h(this.headingLevel):"div";return i(a,{class:{"duet-m-0":this.margin==="none"}},i(t,null,i("button",{class:{"duet-collapsible-heading":true,"duet-collapsible-heading-centered":this.centerHeading,"duet-theme-turva":this.theme==="turva","duet-collapsible-normal-weight":this.headingWeight==="normal","has-after-heading":this.hasAfterHeading},style:{"font-size":this.getFontSizeFromTokens()},role:"button",ref:function(t){return e.nativeButton=t},"aria-label":this.accessibleLabel,"aria-expanded":this.open?"true":"false","aria-controls":this.id,onClick:this.handleClick,onKeyDown:this.handleKeyDown},i("div",{class:"duet-collapsible-heading-icon"},i("duet-icon",{margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary",size:this.getEquivalentIconSize(),icon:l.svg})),i("div",{class:"duet-collapsible-heading-content",part:"duet-collapsible-heading-content"},this.heading),this.hasAfterHeading&&i("div",null,i("slot",{name:"after-heading"})))),i("div",{id:this.id,class:{"duet-collapsible-content":true,"duet-theme-turva":this.theme==="turva"},part:"duet-collapsible-content"},i("slot",null)))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());g.style=p}}}));
4
+ */System.register(["./p-d7e6a4ed.system.js","./p-0c4bbd65.system.js","./p-a9a7d16c.system.js","./p-33b3aba4.system.js","./p-5f6bd5db.system.js","./p-51721695.system.js","./p-b6d51921.system.js"],(function(e){"use strict";var t,n,i,a,o,l,s,r,c,u,d,h;return{setters:[function(e){t=e.r;n=e.c;i=e.h;a=e.H;o=e.g},function(e){l=e.a},function(e){s=e.f;r=e.t},function(e){c=e.i},function(e){u=e.c},function(e){d=e.i},function(e){h=e.s}],execute:function(){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;margin-bottom:16px !important;display:block;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.5;color:rgb(0, 41, 77)}:host(.duet-theme-turva){font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}.duet-collapsible-content{display:none;padding-left:18px;margin-top:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77)}@media (max-width: 35.9375em){.duet-collapsible-content{font-size:0.875rem}}.duet-collapsible-content.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host([open])>.duet-collapsible-content{display:block}.duet-collapsible-heading{-webkit-user-select:none;user-select:none;display:flex;align-items:center;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.5;color:rgb(0, 41, 77);text-align:left;cursor:pointer;border-radius:4px}.duet-collapsible-heading.duet-collapsible-heading-centered{margin:auto}.duet-collapsible-heading.duet-collapsible-normal-weight{font-weight:400}.duet-collapsible-heading.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-collapsible-heading .duet-collapsible-heading-content{flex:0 auto;min-width:0}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div{flex:1 0 auto;margin-left:16px}.duet-collapsible-heading:focus{outline:0}:host(.user-is-tabbing) .duet-collapsible-heading:focus{border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-collapsible-heading.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-collapsible-heading-icon{margin-right:8px !important;display:flex;align-items:center;justify-content:center;color:rgb(0, 41, 77);transition:transform 300ms ease}.duet-collapsible-heading-icon:last-child,.duet-collapsible-heading-icon:last-of-type{margin-right:0 !important}[aria-expanded=true] .duet-collapsible-heading-icon{transform:rotate(180deg)}';var g=e("duet_collapsible",function(){function e(e){var i=this;t(this,e);this.duetToggle=n(this,"duetToggle",7);this.id=u("DuetCollapsible");this.handleKeyDown=function(e){if(d(e)){i.handleClick(e)}};this.getFontSizeFromTokens=function(e){if(e===void 0){e=i.headingSize}if(!e){return s}else{var t=/-/g;var n=e.replace(t,"_");return r["font_size_".concat(n)]}};this.getEquivalentIconSize=function(e){if(e===void 0){e=i.headingSize}switch(e){case"x-small":return"xx-small";case"small":return"xx-small";case"medium":return"xx-small";case"large":return"x-small";case"x-large":return"small";case"xx-large":return"medium";case"xxx-large":return"x-large";case"xxxx-large":return"xxx-large";default:return"xx-small"}};this.handleClick=function(e){e.preventDefault();i.open=!i.open;i.duetToggle.emit({component:"duet-collapsible",originalEvent:e})};this.theme="";this.accessibleLabel=undefined;this.heading="";this.centerHeading=false;this.headingWeight="semibold";this.headingSize=undefined;this.headingLevel=undefined;this.margin="auto";this.open=false}e.prototype.componentWillLoad=function(){c(this);this.hasAfterHeading=!!this.element.querySelector(":scope > [slot='after-heading']")};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeButton){this.element.classList.add("user-is-tabbing");this.nativeButton.focus(e)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.headingLevel?h(this.headingLevel):"div";return i(a,{class:{"duet-m-0":this.margin==="none"}},i(t,null,i("button",{class:{"duet-collapsible-heading":true,"duet-collapsible-heading-centered":this.centerHeading,"duet-theme-turva":this.theme==="turva","duet-collapsible-normal-weight":this.headingWeight==="normal","has-after-heading":this.hasAfterHeading},style:{"font-size":this.getFontSizeFromTokens()},role:"button",ref:function(t){return e.nativeButton=t},"aria-label":this.accessibleLabel,"aria-expanded":this.open?"true":"false","aria-controls":this.id,onClick:this.handleClick,onKeyDown:this.handleKeyDown},i("div",{class:"duet-collapsible-heading-icon"},i("duet-icon",{margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary",size:this.getEquivalentIconSize(),icon:l.svg})),i("div",{class:"duet-collapsible-heading-content",part:"duet-collapsible-heading-content"},this.heading),this.hasAfterHeading&&i("div",null,i("slot",{name:"after-heading"})))),i("div",{id:this.id,class:{"duet-collapsible-content":true,"duet-theme-turva":this.theme==="turva"},part:"duet-collapsible-content"},i("slot",null)))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());g.style=p}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as t,c as e,h as a,H as r,g as i}from"./p-cc5a3edc.js";import{i as s}from"./p-4ebf1618.js";import{c as o}from"./p-c1325e35.js";import{c as d}from"./p-56118313.js";const u=({value:t,maxlength:e,label:r,theme:i})=>{if(null==e)return;const s=t.length,o=Math.max(e-s,0);return a("div",{class:"duet-character-count"},a("duet-caption",{margin:"none",theme:i,size:"small"},a("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true",class:"duet-textarea-counter-remaining"},o/e<=.1&&`${o} ${r}`),a("span",{"aria-hidden":"true"},s,"/",e)))},h=class{constructor(a){t(this,a),this.duetInput=e(this,"duetInput",7),this.duetChange=e(this,"duetChange",7),this.duetBlur=e(this,"duetBlur",7),this.duetFocus=e(this,"duetFocus",7),this.textareaId=o("DuetTextarea"),this.topCaptionId=o("DuetCaptionTop"),this.topCaptionPlaceholderId=o("DuetCaptionPlaceholderTop"),this.labelId=o("DuetLabel"),this.errorId=o("DuetError"),this.characterCountId=o("DuetCharacterCount"),this.disallowPatternRegex=null,this.handleInput=t=>{this.disallowPatternRegex&&d(this.nativeInput,this.disallowPatternRegex),this.value=this.nativeInput.value,this.isCaptionVisible=!!this.caption,this.duetInput.emit({originalEvent:t,value:this.value,component:"duet-textarea"})},this.handleChange=t=>{this.value=this.nativeInput.value,this.duetChange.emit({originalEvent:t,value:this.value,component:"duet-textarea"})},this.handleBlur=t=>{this.duetBlur.emit({originalEvent:t,value:this.value,component:"duet-textarea"})},this.handleFocus=t=>{this.counter&&(this.hiddenCounterLabel.textContent=`${Math.max(this.maxlength-this.value.length,0)}/${this.maxlength} ${this.counterLabel}`),this.duetFocus.emit({originalEvent:t,value:this.value,component:"duet-textarea"})},this.getDescribedBy=()=>{const t=[];return this.isCaptionVisible&&this.topCaptionId&&t.push(this.topCaptionId),this.accessibleDescribedBy&&t.push(this.accessibleDescribedBy),this.error&&t.push(this.errorId),this.counter&&t.push(this.characterCountId),t.length>0?t.join(" "):null},this.margin="auto",this.accessibleActiveDescendant=void 0,this.accessibleAutocomplete=void 0,this.accessibleControls=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLiveError="polite",this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.theme="",this.expand=!1,this.disabled=!1,this.identifier=void 0,this.required=!1,this.label="label",this.labelHidden=!1,this.name=void 0,this.placeholder=void 0,this.caption=void 0,this.echoPlaceholder=!1,this.maxlength=void 0,this.minlength=void 0,this.error="",this.role=void 0,this.tooltip="",this.tooltipDirection="auto",this.value="",this.disallowPattern=null,this.counter=!1,this.counterLabel=void 0}disallowedPatternChange(){this.disallowPatternRegex=this.disallowPattern?new RegExp(this.disallowPattern,"g"):null}componentWillLoad(){s(this),this.disallowedPatternChange(),this.isCaptionVisible=!!this.caption,this.counter&&null==this.maxlength&&console.warn("[DUET WARNING]: counter will only take effect if maxlength is set"),this.counter||null==this.counterLabel||console.warn("[DUET WARNING]: counter-label is redundant unless used with counter"),this.counter&&!this.counterLabel&&console.warn("[DUET WARNING]: counter requires counter-label to be set")}async setFocus(t){this.nativeInput.focus(t)}render(){const t=this.identifier||this.textareaId;return a(r,{class:{"duet-m-0":"none"===this.margin,"duet-has-counter":this.counter&&!this.error,"duet-expand":this.expand}},a("div",{class:{"duet-textarea-container":!0,"duet-theme-turva":"turva"===this.theme,"duet-label-hidden":this.labelHidden,"duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error}},a("duet-label",{theme:"turva"===this.theme?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},margin:this.isCaptionVisible?"small":"auto",id:this.labelId,for:t},this.label),this.tooltip&&a("duet-tooltip",{direction:this.tooltipDirection,accessibleInputLabel:this.label,theme:"turva"===this.theme?"turva":"default"},this.tooltip),this.caption&&a("duet-caption",{id:this.topCaptionId,size:"medium",theme:"turva"===this.theme?"turva":"default"},this.caption),a("div",{class:"duet-textarea-wrapper"},this.placeholder&&this.echoPlaceholder&&this.value&&a("duet-caption",{id:this.topCaptionPlaceholderId,class:"duet-textarea-placeholder",size:"small"},this.placeholder),a("textarea",{onInput:this.handleInput,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus,ref:t=>this.nativeInput=t,class:{"duet-textarea":!0,disabled:this.disabled},value:this.value,disabled:this.disabled,"aria-labelledby":this.accessibleLabelledBy?`${this.labelId} ${this.accessibleLabelledBy}`:this.labelId,"aria-controls":this.accessibleControls,"aria-autocomplete":this.accessibleAutocomplete,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.getDescribedBy(),"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,placeholder:this.placeholder,spellcheck:"false",required:this.required,minlength:this.minlength,maxlength:this.maxlength,role:this.role,name:this.name,id:t})),a("duet-grid",{alignment:"stretch"},a("duet-grid-item",{margin:"none",fill:!0},a("div",{class:"duet-textarea-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&a("span",null,this.error))),a("duet-grid-item",{margin:"none",class:"duet-character-count-caption"},this.counter&&a(u,{theme:this.theme,value:this.value,maxlength:this.maxlength,label:this.counterLabel}))),this.counter&&a("duet-visually-hidden",{class:"duet-visually-hidden",id:this.characterCountId,ref:t=>{this.hiddenCounterLabel=t}})))}get element(){return i(this)}static get watchers(){return{disallowPattern:["disallowedPatternChange"]}}};h.style='*.sc-duet-textarea,*.sc-duet-textarea::after,*.sc-duet-textarea::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-textarea-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:block;width:100%;max-width:100%;text-align:left}.sc-duet-textarea-h:last-child,.sc-duet-textarea-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-textarea-h{width:calc(50% - 16px - 3px)}.duet-expand.sc-duet-textarea-h{width:100% !important}}.duet-m-0.sc-duet-textarea-h{margin:0 !important}duet-tooltip.sc-duet-textarea{position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-textarea{position:relative;top:4px;right:auto}}.duet-textarea-container.sc-duet-textarea{position:relative;width:100%;height:100%}.duet-textarea-container.sc-duet-textarea .duet-input-top-caption.sc-duet-textarea{display:none}.duet-textarea-container.duet-input-top-caption-shown.sc-duet-textarea .duet-input-top-caption.sc-duet-textarea{display:flex !important}.duet-textarea-wrapper.sc-duet-textarea{position:relative}.duet-textarea-placeholder.sc-duet-textarea{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-textarea.sc-duet-textarea{padding:15px !important;position:relative;z-index:100;display:block;width:100%;min-width:8rem;min-height:160px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(0, 41, 77);resize:vertical;background:rgb(255, 255, 255);border:1px solid rgb(144, 149, 153);border-radius:4px;transition:150ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea{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(116, 116, 117)}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea{border-color:rgb(222, 35, 98) !important}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea{border-color:rgb(224, 42, 13) !important}.duet-textarea.sc-duet-textarea::-webkit-input-placeholder{color:rgb(101, 119, 135);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea::-webkit-input-placeholder{color:rgb(116, 116, 117)}.duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(207, 207, 209)}.duet-textarea.sc-duet-textarea::-moz-placeholder{color:rgb(101, 119, 135);opacity:1 !important}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea::-moz-placeholder{color:rgb(116, 116, 117)}.duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(207, 207, 209)}.duet-textarea.sc-duet-textarea:-ms-input-placeholder{color:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:-ms-input-placeholder{color:rgb(116, 116, 117)}.duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(207, 207, 209)}.duet-textarea[disabled].sc-duet-textarea{color:rgb(101, 119, 135) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea{color:rgb(116, 116, 117) !important;background:rgb(245, 245, 247) !important;border-color:rgb(245, 245, 247) !important}.duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px rgb(144, 149, 153)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px rgb(116, 116, 117)}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px rgb(222, 35, 98)}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px rgb(224, 42, 13)}.duet-textarea.sc-duet-textarea:focus{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px rgb(0, 119, 179);transition:none}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px rgb(23, 28, 58)}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{box-shadow:0 0 0 1px rgb(222, 35, 98)}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{box-shadow:0 0 0 1px rgb(224, 42, 13)}.duet-textarea.sc-duet-textarea:not(:focus):not(:hover):invalid{box-shadow:none}.duet-textarea-help.sc-duet-textarea{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;line-height:1.25}.duet-textarea-help.sc-duet-textarea span.sc-duet-textarea{display:block;margin-top:8px}.duet-theme-turva.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{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(116, 116, 117)}.has-error.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{color:rgb(222, 35, 98)}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{color:rgb(224, 42, 13)}.duet-label-hidden.sc-duet-textarea duet-label.sc-duet-textarea{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-character-count.sc-duet-textarea{display:block;margin:8px 0 0 auto}';export{h as duet_textarea}
4
+ import{r as t,c as e,h as a,H as r,g as i}from"./p-cca182be.js";import{i as s}from"./p-4ebf1618.js";import{c as o}from"./p-c1325e35.js";import{c as d}from"./p-56118313.js";const u=({value:t,maxlength:e,label:r,theme:i})=>{if(null==e)return;const s=t.length,o=Math.max(e-s,0);return a("div",{class:"duet-character-count"},a("duet-caption",{margin:"none",theme:i,size:"small"},a("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true",class:"duet-textarea-counter-remaining"},o/e<=.1&&`${o} ${r}`),a("span",{"aria-hidden":"true"},s,"/",e)))},h=class{constructor(a){t(this,a),this.duetInput=e(this,"duetInput",7),this.duetChange=e(this,"duetChange",7),this.duetBlur=e(this,"duetBlur",7),this.duetFocus=e(this,"duetFocus",7),this.textareaId=o("DuetTextarea"),this.topCaptionId=o("DuetCaptionTop"),this.topCaptionPlaceholderId=o("DuetCaptionPlaceholderTop"),this.labelId=o("DuetLabel"),this.errorId=o("DuetError"),this.characterCountId=o("DuetCharacterCount"),this.disallowPatternRegex=null,this.handleInput=t=>{this.disallowPatternRegex&&d(this.nativeInput,this.disallowPatternRegex),this.value=this.nativeInput.value,this.isCaptionVisible=!!this.caption,this.duetInput.emit({originalEvent:t,value:this.value,component:"duet-textarea"})},this.handleChange=t=>{this.value=this.nativeInput.value,this.duetChange.emit({originalEvent:t,value:this.value,component:"duet-textarea"})},this.handleBlur=t=>{this.duetBlur.emit({originalEvent:t,value:this.value,component:"duet-textarea"})},this.handleFocus=t=>{this.counter&&(this.hiddenCounterLabel.textContent=`${Math.max(this.maxlength-this.value.length,0)}/${this.maxlength} ${this.counterLabel}`),this.duetFocus.emit({originalEvent:t,value:this.value,component:"duet-textarea"})},this.getDescribedBy=()=>{const t=[];return this.isCaptionVisible&&this.topCaptionId&&t.push(this.topCaptionId),this.accessibleDescribedBy&&t.push(this.accessibleDescribedBy),this.error&&t.push(this.errorId),this.counter&&t.push(this.characterCountId),t.length>0?t.join(" "):null},this.margin="auto",this.accessibleActiveDescendant=void 0,this.accessibleAutocomplete=void 0,this.accessibleControls=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLiveError="polite",this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.theme="",this.expand=!1,this.disabled=!1,this.identifier=void 0,this.required=!1,this.label="label",this.labelHidden=!1,this.name=void 0,this.placeholder=void 0,this.caption=void 0,this.echoPlaceholder=!1,this.maxlength=void 0,this.minlength=void 0,this.error="",this.role=void 0,this.tooltip="",this.tooltipDirection="auto",this.value="",this.disallowPattern=null,this.counter=!1,this.counterLabel=void 0}disallowedPatternChange(){this.disallowPatternRegex=this.disallowPattern?new RegExp(this.disallowPattern,"g"):null}componentWillLoad(){s(this),this.disallowedPatternChange(),this.isCaptionVisible=!!this.caption,this.counter&&null==this.maxlength&&console.warn("[DUET WARNING]: counter will only take effect if maxlength is set"),this.counter||null==this.counterLabel||console.warn("[DUET WARNING]: counter-label is redundant unless used with counter"),this.counter&&!this.counterLabel&&console.warn("[DUET WARNING]: counter requires counter-label to be set")}async setFocus(t){this.nativeInput.focus(t)}render(){const t=this.identifier||this.textareaId;return a(r,{class:{"duet-m-0":"none"===this.margin,"duet-has-counter":this.counter&&!this.error,"duet-expand":this.expand}},a("div",{class:{"duet-textarea-container":!0,"duet-theme-turva":"turva"===this.theme,"duet-label-hidden":this.labelHidden,"duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error}},a("duet-label",{theme:"turva"===this.theme?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},margin:this.isCaptionVisible?"small":"auto",id:this.labelId,for:t},this.label),this.tooltip&&a("duet-tooltip",{direction:this.tooltipDirection,accessibleInputLabel:this.label,theme:"turva"===this.theme?"turva":"default"},this.tooltip),this.caption&&a("duet-caption",{id:this.topCaptionId,size:"medium",theme:"turva"===this.theme?"turva":"default"},this.caption),a("div",{class:"duet-textarea-wrapper"},this.placeholder&&this.echoPlaceholder&&this.value&&a("duet-caption",{id:this.topCaptionPlaceholderId,class:"duet-textarea-placeholder",size:"small"},this.placeholder),a("textarea",{onInput:this.handleInput,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus,ref:t=>this.nativeInput=t,class:{"duet-textarea":!0,disabled:this.disabled},value:this.value,disabled:this.disabled,"aria-labelledby":this.accessibleLabelledBy?`${this.labelId} ${this.accessibleLabelledBy}`:this.labelId,"aria-controls":this.accessibleControls,"aria-autocomplete":this.accessibleAutocomplete,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.getDescribedBy(),"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,placeholder:this.placeholder,spellcheck:"false",required:this.required,minlength:this.minlength,maxlength:this.maxlength,role:this.role,name:this.name,id:t})),a("duet-grid",{alignment:"stretch"},a("duet-grid-item",{margin:"none",fill:!0},a("div",{class:"duet-textarea-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&a("span",null,this.error))),a("duet-grid-item",{margin:"none",class:"duet-character-count-caption"},this.counter&&a(u,{theme:this.theme,value:this.value,maxlength:this.maxlength,label:this.counterLabel}))),this.counter&&a("duet-visually-hidden",{class:"duet-visually-hidden",id:this.characterCountId,ref:t=>{this.hiddenCounterLabel=t}})))}get element(){return i(this)}static get watchers(){return{disallowPattern:["disallowedPatternChange"]}}};h.style='*.sc-duet-textarea,*.sc-duet-textarea::after,*.sc-duet-textarea::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-textarea-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:block;width:100%;max-width:100%;text-align:left}.sc-duet-textarea-h:last-child,.sc-duet-textarea-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-textarea-h{width:calc(50% - 16px - 3px)}.duet-expand.sc-duet-textarea-h{width:100% !important}}.duet-m-0.sc-duet-textarea-h{margin:0 !important}duet-tooltip.sc-duet-textarea{position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-textarea{position:relative;top:4px;right:auto}}.duet-textarea-container.sc-duet-textarea{position:relative;width:100%;height:100%}.duet-textarea-container.sc-duet-textarea .duet-input-top-caption.sc-duet-textarea{display:none}.duet-textarea-container.duet-input-top-caption-shown.sc-duet-textarea .duet-input-top-caption.sc-duet-textarea{display:flex !important}.duet-textarea-wrapper.sc-duet-textarea{position:relative}.duet-textarea-placeholder.sc-duet-textarea{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-textarea.sc-duet-textarea{padding:15px !important;position:relative;z-index:100;display:block;width:100%;min-width:8rem;min-height:160px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(0, 41, 77);resize:vertical;background:rgb(255, 255, 255);border:1px solid rgb(144, 149, 153);border-radius:4px;transition:150ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea{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(116, 116, 117)}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea{border-color:rgb(222, 35, 98) !important}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea{border-color:rgb(224, 42, 13) !important}.duet-textarea.sc-duet-textarea::-webkit-input-placeholder{color:rgb(101, 119, 135);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea::-webkit-input-placeholder{color:rgb(116, 116, 117)}.duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(207, 207, 209)}.duet-textarea.sc-duet-textarea::-moz-placeholder{color:rgb(101, 119, 135);opacity:1 !important}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea::-moz-placeholder{color:rgb(116, 116, 117)}.duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(207, 207, 209)}.duet-textarea.sc-duet-textarea:-ms-input-placeholder{color:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:-ms-input-placeholder{color:rgb(116, 116, 117)}.duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(207, 207, 209)}.duet-textarea[disabled].sc-duet-textarea{color:rgb(101, 119, 135) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea{color:rgb(116, 116, 117) !important;background:rgb(245, 245, 247) !important;border-color:rgb(245, 245, 247) !important}.duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px rgb(144, 149, 153)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px rgb(116, 116, 117)}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px rgb(222, 35, 98)}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px rgb(224, 42, 13)}.duet-textarea.sc-duet-textarea:focus{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px rgb(0, 119, 179);transition:none}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px rgb(23, 28, 58)}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{box-shadow:0 0 0 1px rgb(222, 35, 98)}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{box-shadow:0 0 0 1px rgb(224, 42, 13)}.duet-textarea.sc-duet-textarea:not(:focus):not(:hover):invalid{box-shadow:none}.duet-textarea-help.sc-duet-textarea{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;line-height:1.25}.duet-textarea-help.sc-duet-textarea span.sc-duet-textarea{display:block;margin-top:8px}.duet-theme-turva.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{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(116, 116, 117)}.has-error.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{color:rgb(222, 35, 98)}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{color:rgb(224, 42, 13)}.duet-label-hidden.sc-duet-textarea duet-label.sc-duet-textarea{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-character-count.sc-duet-textarea{display:block;margin:8px 0 0 auto}';export{h as duet_textarea}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as t,H as i,g as o}from"./p-cc5a3edc.js";import{i as a}from"./p-4ebf1618.js";import{F as s}from"./p-793dcfc2.js";import{g as l,c as n,d as r,a as p}from"./p-076452be.js";import{g as d}from"./p-73f9efad.js";import"./p-5a9d75e1.js";import"./p-7c4baf1c.js";const u=class{constructor(t){e(this,t),this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"},this.backLangObject={en:"Back to main menu",fi:"Takaisin päävalikkoon",sv:"Tillbaka till huvudmenyn"},this.updateLabel=()=>{const e=this.element.querySelector("[slot='label']");this.label=e},this.onToggleClick=()=>{const e=!this.open;this.open=e,e?setTimeout((()=>{this.closeButton.focus()}),200):setTimeout((()=>{this.openButton.focus()}),200)},this.onCloseClick=e=>{e.stopPropagation(),"DUET-SLIDEOUT"===this.element.parentElement.tagName&&this.element.parentElement.toggle()},this.label=void 0,this.language=l(),this.theme="",this.active=!1,this.open=!1,this.icon=void 0,this.labelSize="medium",this.backgroundColor="primary-lightest"}componentWillLoad(){a(this),this.updateLabel()}connectedCallback(){n(this)}disconnectedCallback(){r(this)}async setFocus(e){this.open?setTimeout((()=>{this.closeButton.focus(e)}),200):setTimeout((()=>{this.openButton.focus(e)}),200)}render(){const e={background:d("primary-lightest"===this.backgroundColor&&"turva"===this.theme?"gray-lighter":this.backgroundColor,this.theme)},o=p(this.exitLangObject),a=p(this.backLangObject);return t(i,null,t("div",{class:{"duet-slideout-panel":!0,"duet-theme-turva":"turva"===this.theme,active:this.open}},t("button",{ref:e=>this.openButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{link:!0,active:this.active},onClick:this.onToggleClick},this.icon&&t("duet-icon",{name:this.icon,size:"medium",margin:"none",color:"secondary"}),t("div",{class:"label"},t("span",{class:{"label-text":!0,[this.labelSize]:!0}},t("slot",{name:"label"})),t("duet-icon",{class:"caret",name:"action-arrow-right",margin:"none",size:"x-small",color:"secondary"}))),t("div",{class:{dialog:!0,hidden:!this.open},style:e},t(s,{moveFocusTo:this.closeButton}),t("div",{class:"top"},t("button",{ref:e=>this.closeButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-label":`${a}`,type:"button",class:{back:!0},onClick:this.onToggleClick},t("duet-icon",{class:"caret",name:"action-arrow-left",margin:"none",size:"small",color:"secondary"})),t("span",null,this.label.innerHTML),t("button",{class:"close",type:"button",onClick:this.onCloseClick,"aria-label":`${o}`},t("duet-icon",{name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),t("div",{tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0}},t("slot",null)),t(s,{moveFocusTo:this.closeButton}))))}get element(){return o(this)}};u.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;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel{position:relative;height:100%}.duet-slideout-panel .link{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.5rem;font-weight:800;line-height:1.25;color:rgb(0, 41, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-slideout-panel .link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}.duet-slideout-panel .link .label-text.small{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.medium{font-size:1.25rem;font-weight:600}.duet-slideout-panel .link .label-text.large{font-size:1.5rem;font-weight:800}.duet-slideout-panel .link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-slideout-panel .link.active .label-text{position:relative}.duet-slideout-panel .link.active .label-text.small::after{height:1px;transform:translateY(1px)}.duet-slideout-panel .link.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:2px;content:"";background:rgb(0, 119, 179);transform:translateY(2px)}.duet-slideout-panel .dialog{position:fixed;top:0;left:0;z-index:600;width:100%;height:100%;overflow-y:auto;visibility:visible}.duet-slideout-panel .dialog.hidden{visibility:hidden}.duet-slideout-panel .dialog.hidden .top .back,.duet-slideout-panel .dialog.hidden .top span{opacity:0}.duet-slideout-panel .top{display:flex;align-items:center;justify-content:space-between;padding:4px}.duet-slideout-panel .top .back{opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .close:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-slideout-panel .top duet-icon{padding:16px}.duet-slideout-panel .top span{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.5;color:rgb(0, 41, 77);opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:1rem 16px;overflow-y:auto;color:rgb(0, 41, 77)}.duet-slideout-panel.duet-theme-turva .link{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-slideout-panel.duet-theme-turva .link:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(198, 12, 48)}.duet-slideout-panel.duet-theme-turva .top .back:focus,.duet-slideout-panel.duet-theme-turva .top .close:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-slideout-panel.duet-theme-turva .top span{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)}slot:not([name=label]){--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:600;color:rgb(0, 41, 77)}.duet-theme-turva slot:not([name=label]){color:rgb(23, 28, 58)}';export{u as duet_slideout_panel}
4
+ import{r as e,h as t,H as i,g as o}from"./p-cca182be.js";import{i as a}from"./p-4ebf1618.js";import{F as s}from"./p-f5a74f01.js";import{g as l,c as n,d as r,a as p}from"./p-076452be.js";import{g as d}from"./p-73f9efad.js";import"./p-5a9d75e1.js";import"./p-7c4baf1c.js";const u=class{constructor(t){e(this,t),this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"},this.backLangObject={en:"Back to main menu",fi:"Takaisin päävalikkoon",sv:"Tillbaka till huvudmenyn"},this.updateLabel=()=>{const e=this.element.querySelector("[slot='label']");this.label=e},this.onToggleClick=()=>{const e=!this.open;this.open=e,e?setTimeout((()=>{this.closeButton.focus()}),200):setTimeout((()=>{this.openButton.focus()}),200)},this.onCloseClick=e=>{e.stopPropagation(),"DUET-SLIDEOUT"===this.element.parentElement.tagName&&this.element.parentElement.toggle()},this.label=void 0,this.language=l(),this.theme="",this.active=!1,this.open=!1,this.icon=void 0,this.labelSize="medium",this.backgroundColor="primary-lightest"}componentWillLoad(){a(this),this.updateLabel()}connectedCallback(){n(this)}disconnectedCallback(){r(this)}async setFocus(e){this.open?setTimeout((()=>{this.closeButton.focus(e)}),200):setTimeout((()=>{this.openButton.focus(e)}),200)}render(){const e={background:d("primary-lightest"===this.backgroundColor&&"turva"===this.theme?"gray-lighter":this.backgroundColor,this.theme)},o=p(this.exitLangObject),a=p(this.backLangObject);return t(i,null,t("div",{class:{"duet-slideout-panel":!0,"duet-theme-turva":"turva"===this.theme,active:this.open}},t("button",{ref:e=>this.openButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{link:!0,active:this.active},onClick:this.onToggleClick},this.icon&&t("duet-icon",{name:this.icon,size:"medium",margin:"none",color:"secondary"}),t("div",{class:"label"},t("span",{class:{"label-text":!0,[this.labelSize]:!0}},t("slot",{name:"label"})),t("duet-icon",{class:"caret",name:"action-arrow-right",margin:"none",size:"x-small",color:"secondary"}))),t("div",{class:{dialog:!0,hidden:!this.open},style:e},t(s,{moveFocusTo:this.closeButton}),t("div",{class:"top"},t("button",{ref:e=>this.closeButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-label":`${a}`,type:"button",class:{back:!0},onClick:this.onToggleClick},t("duet-icon",{class:"caret",name:"action-arrow-left",margin:"none",size:"small",color:"secondary"})),t("span",null,this.label.innerHTML),t("button",{class:"close",type:"button",onClick:this.onCloseClick,"aria-label":`${o}`},t("duet-icon",{name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),t("div",{tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0}},t("slot",null)),t(s,{moveFocusTo:this.closeButton}))))}get element(){return o(this)}};u.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;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel{position:relative;height:100%}.duet-slideout-panel .link{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.5rem;font-weight:800;line-height:1.25;color:rgb(0, 41, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-slideout-panel .link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}.duet-slideout-panel .link .label-text.small{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.medium{font-size:1.25rem;font-weight:600}.duet-slideout-panel .link .label-text.large{font-size:1.5rem;font-weight:800}.duet-slideout-panel .link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-slideout-panel .link.active .label-text{position:relative}.duet-slideout-panel .link.active .label-text.small::after{height:1px;transform:translateY(1px)}.duet-slideout-panel .link.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:2px;content:"";background:rgb(0, 119, 179);transform:translateY(2px)}.duet-slideout-panel .dialog{position:fixed;top:0;left:0;z-index:600;width:100%;height:100%;overflow-y:auto;visibility:visible}.duet-slideout-panel .dialog.hidden{visibility:hidden}.duet-slideout-panel .dialog.hidden .top .back,.duet-slideout-panel .dialog.hidden .top span{opacity:0}.duet-slideout-panel .top{display:flex;align-items:center;justify-content:space-between;padding:4px}.duet-slideout-panel .top .back{opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .close:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-slideout-panel .top duet-icon{padding:16px}.duet-slideout-panel .top span{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.5;color:rgb(0, 41, 77);opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:1rem 16px;overflow-y:auto;color:rgb(0, 41, 77)}.duet-slideout-panel.duet-theme-turva .link{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-slideout-panel.duet-theme-turva .link:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(198, 12, 48)}.duet-slideout-panel.duet-theme-turva .top .back:focus,.duet-slideout-panel.duet-theme-turva .top .close:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-slideout-panel.duet-theme-turva .top span{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)}slot:not([name=label]){--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:600;color:rgb(0, 41, 77)}.duet-theme-turva slot:not([name=label]){color:rgb(23, 28, 58)}';export{u as duet_slideout_panel}