@webority/ui-elements 0.165.0 → 0.168.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/dist/WuiCarousel-CRx2-eKV.js +1 -0
  2. package/dist/WuiCodeBlock-DTckR_z3.js +1 -0
  3. package/dist/WuiCommandPalette-CSzl5yGf.js +2 -0
  4. package/dist/WuiCommentThread-AYovTYSA.js +1 -0
  5. package/dist/WuiConsentBanner-CWvXnwBH.js +1 -0
  6. package/dist/WuiContextMenu-CyejQsef.js +1 -0
  7. package/dist/WuiDataTable-BniN81KC.js +1 -0
  8. package/dist/WuiDatePicker-q0s8tL_E.js +31 -0
  9. package/dist/WuiDateRange-p2r5A9CY.js +25 -0
  10. package/dist/WuiDrawer-CQ7nRHUD.js +1 -0
  11. package/dist/{WuiDropdown-CeiMaiwi.js → WuiDropdown-BQC04Q48.js} +1 -1
  12. package/dist/WuiEntryGrid-DPAYNu1v.js +3 -0
  13. package/dist/{WuiHoverCard-AAXID-P3.js → WuiHoverCard-DRZh88zM.js} +1 -1
  14. package/dist/WuiImageCrop-BTY59Qsm.js +17 -0
  15. package/dist/WuiInlineEdit-CEjs5Ruk.js +1 -0
  16. package/dist/WuiLeadPopup-L9UCTVA5.js +382 -0
  17. package/dist/WuiLightbox-DDQAOabU.js +1 -0
  18. package/dist/WuiMentionInput-CkhrCz_2.js +1 -0
  19. package/dist/{WuiModal-Bz2Xg161.js → WuiModal-BRILsSMq.js} +1 -1
  20. package/dist/{WuiNavigationMenu-Dybw-nMb.js → WuiNavigationMenu-BCnqv7e-.js} +1 -1
  21. package/dist/WuiNotificationCenter-BCXT3Y7m.js +1 -0
  22. package/dist/WuiOrgTree-5v0vqPVk.js +1 -0
  23. package/dist/WuiOverflow-DtetLQHW.js +1 -0
  24. package/dist/WuiPhone-B6jgFRSi.js +16 -0
  25. package/dist/{WuiPopover-y_Vxm64z.js → WuiPopover-BzVxNSs1.js} +1 -1
  26. package/dist/WuiRecordPager-Dye7AfCS.js +1 -0
  27. package/dist/{WuiRelativeTime-CmlKD-97.js → WuiRelativeTime-DTGKGHbK.js} +1 -1
  28. package/dist/WuiSavedViews-BsAyuOzX.js +1 -0
  29. package/dist/WuiSelect-CMHoPHlx.js +9 -0
  30. package/dist/WuiShortcuts-DSjwaZx7.js +1 -0
  31. package/dist/WuiShowMore-CGhWrlmK.js +1 -0
  32. package/dist/WuiSlider-J9YPWu9e.js +51 -0
  33. package/dist/WuiSortable-BfOm57Mj.js +1 -0
  34. package/dist/WuiTimePicker-C5XouoR7.js +9 -0
  35. package/dist/WuiTour-BDOGWyNA.js +1 -0
  36. package/dist/WuiTree-CeYbyaCx.js +1 -0
  37. package/dist/{WuiWhatsNew-BdsS6MzB.js → WuiWhatsNew-DOo54GiH.js} +1 -1
  38. package/dist/WuiWizardStep-Ce6O_8oc.js +1 -0
  39. package/dist/calendarMath-CFjBxJYM.js +1 -0
  40. package/dist/carousel.g-Bw_pFDzc.js +1 -0
  41. package/dist/chips-CemguTKJ.js +2 -0
  42. package/dist/codeBlock.g-BCF2IlK-.js +1 -0
  43. package/dist/commandPalette.g-DFWnCufa.js +1 -0
  44. package/dist/commentText-NWsssKvj.js +1 -0
  45. package/dist/consentBanner.g-CZAb1BLJ.js +1 -0
  46. package/dist/country-B7jmc--B.js +1 -0
  47. package/dist/customRule-BXJdj57A.js +1 -0
  48. package/dist/customRule.g-Cfkl3_ZC.js +1 -0
  49. package/dist/dataTable-CKz4Oncc.js +1 -0
  50. package/dist/dataTable.g-BVxhub_d.js +1 -0
  51. package/dist/datePicker.g-CT9FBY21.js +1 -0
  52. package/dist/dateRangePicker.g-Pnc37vgX.js +1 -0
  53. package/dist/drawer.g-B-zYKBfQ.js +1 -0
  54. package/dist/drawerDiscard-BjykHS_G.js +1 -0
  55. package/dist/elements/carousel.js +1 -1
  56. package/dist/elements/code-block.js +1 -1
  57. package/dist/elements/command-palette.js +1 -1
  58. package/dist/elements/comment-thread.js +1 -1
  59. package/dist/elements/consent-banner.js +1 -1
  60. package/dist/elements/context-menu.js +1 -1
  61. package/dist/elements/data-table.js +1 -1
  62. package/dist/elements/date-range.js +1 -1
  63. package/dist/elements/datepicker.js +1 -1
  64. package/dist/elements/drawer.js +1 -1
  65. package/dist/elements/dropdown.js +1 -1
  66. package/dist/elements/entry-grid.js +1 -1
  67. package/dist/elements/filter-popover.js +1 -1
  68. package/dist/elements/hover-card.js +1 -1
  69. package/dist/elements/image-crop.js +1 -1
  70. package/dist/elements/inline-edit.js +1 -1
  71. package/dist/elements/kanban.js +1 -1
  72. package/dist/elements/lead-popup.js +1 -1
  73. package/dist/elements/lightbox.js +1 -1
  74. package/dist/elements/mention-input.js +1 -1
  75. package/dist/elements/modal.js +1 -1
  76. package/dist/elements/navigation-menu.js +1 -1
  77. package/dist/elements/notification-center.js +1 -1
  78. package/dist/elements/org-tree.js +1 -1
  79. package/dist/elements/overflow.js +1 -1
  80. package/dist/elements/phone.js +1 -1
  81. package/dist/elements/popover.js +1 -1
  82. package/dist/elements/record-pager.js +1 -1
  83. package/dist/elements/relative-time.js +1 -1
  84. package/dist/elements/saved-views.js +1 -1
  85. package/dist/elements/select.js +1 -1
  86. package/dist/elements/shortcuts.js +1 -1
  87. package/dist/elements/show-more.js +1 -1
  88. package/dist/elements/slider.js +1 -1
  89. package/dist/elements/sortable.js +1 -1
  90. package/dist/elements/timepicker.js +1 -1
  91. package/dist/elements/tour.js +1 -1
  92. package/dist/elements/tree.js +1 -1
  93. package/dist/elements/whats-new.js +1 -1
  94. package/dist/elements/wizard.js +1 -1
  95. package/dist/fileViewer.g-B5XQ5WKr.js +1 -0
  96. package/dist/fileViewerImage-B0Q9zdgW.js +3 -0
  97. package/dist/fileViewerMedia-D3fdG-Ti.js +1 -0
  98. package/dist/fileViewerPdf-DeRWa1JE.js +20 -0
  99. package/dist/{filterPopover-B29bt1s2.js → filterPopover-DmeVG4_N.js} +1 -1
  100. package/dist/formatters-Dy4kQQ_h.js +1 -0
  101. package/dist/formatters.g-BNAu1PMe.js +1 -0
  102. package/dist/helpers.js +1 -1
  103. package/dist/httpFailure.g-DBKzEpAf.js +1 -0
  104. package/dist/iconGlyphs.g-DxSJLQJ8.js +1 -0
  105. package/dist/imageCrop.g-BnbAeH2Q.js +1 -0
  106. package/dist/inlineEdit.g-ZxRNYq0t.js +1 -0
  107. package/dist/inlineEditText-BUO5sZxN.js +1 -0
  108. package/dist/kanban-CEZmyYFY.js +1 -0
  109. package/dist/kanban.g-dtKYyIpr.js +1 -0
  110. package/dist/kanbanModel-Dp5c1rTs.js +1 -0
  111. package/dist/leadPopup.g-BfMPz9nH.js +1 -0
  112. package/dist/lightbox.g-DDrycPou.js +1 -0
  113. package/dist/{loader-C7Ov09Bx.js → loader-CQJFj96n.js} +1 -1
  114. package/dist/mentionInput.g-DJo6d2Gm.js +1 -0
  115. package/dist/nativeOverlay-C1Rw2gIW.js +1 -0
  116. package/dist/notificationCentre.g-UsAurkUz.js +1 -0
  117. package/dist/notificationDays-B7cbYu4q.js +1 -0
  118. package/dist/{optionLabel-4xjXWy74.js → optionLabel-B2cU4Ax0.js} +1 -1
  119. package/dist/orgTree.g-CIg75quV.js +1 -0
  120. package/dist/overflow.g-BfcGEhwR.js +1 -0
  121. package/dist/passwordRules.g-CMYrohdd.js +1 -0
  122. package/dist/phone.g-P66U-SK5.js +1 -0
  123. package/dist/recents-BQ0fD7Y0.js +1 -0
  124. package/dist/relativeTime-CdFw-ekO.js +1 -0
  125. package/dist/relativeTime.g-BH90tjJM.js +1 -0
  126. package/dist/rowDrop.g-DQpB10Ey.js +1 -0
  127. package/dist/savedViews.g-CzzEliTR.js +1 -0
  128. package/dist/search-Cj1YQUwK.js +1 -0
  129. package/dist/search.g-B5d1s59A.js +1 -0
  130. package/dist/server.js +1 -1
  131. package/dist/shell.g-C2Ht5xl2.js +1 -0
  132. package/dist/shortcutKeys-DmPiY4T7.js +1 -0
  133. package/dist/shortcutKeys.g-C0TeAfYL.js +1 -0
  134. package/dist/showMore.g-BdQ5MUSd.js +1 -0
  135. package/dist/slider.g-BPNfxZEV.js +1 -0
  136. package/dist/sortable.g-BsTKys5-.js +1 -0
  137. package/dist/tableSelect.g-DKZqXQT_.js +1 -0
  138. package/dist/text/en.json +1278 -0
  139. package/dist/text.js +1 -0
  140. package/dist/textStore-opIEM4lu.js +1 -0
  141. package/dist/themeTransition-CDB0Mx61.js +1 -0
  142. package/dist/timePicker.g-DM61i-ZE.js +1 -0
  143. package/dist/tourAdvance.g-BJqDnqag.js +1 -0
  144. package/dist/tree.g-RId8xZSk.js +1 -0
  145. package/dist/ui-calendar.global.js +1 -1
  146. package/dist/ui-calendar.js +1 -1
  147. package/dist/ui-chart.global.js +2 -2
  148. package/dist/ui-chart.js +2 -2
  149. package/dist/ui-consent-banner.global.js +1 -1
  150. package/dist/ui-elements/carousel.global.js +1 -1
  151. package/dist/ui-elements/code-block.global.js +1 -1
  152. package/dist/ui-elements/command-palette.global.js +2 -2
  153. package/dist/ui-elements/comment-thread.global.js +1 -1
  154. package/dist/ui-elements/consent-banner.global.js +1 -1
  155. package/dist/ui-elements/context-menu.global.js +1 -1
  156. package/dist/ui-elements/date-range.global.js +12 -12
  157. package/dist/ui-elements/drawer.global.js +1 -1
  158. package/dist/ui-elements/dropdown.global.js +1 -1
  159. package/dist/ui-elements/entry-grid.global.js +3 -1
  160. package/dist/ui-elements/glyphs.global.js +1 -1
  161. package/dist/ui-elements/image-crop.global.js +8 -8
  162. package/dist/ui-elements/inline-edit.global.js +1 -1
  163. package/dist/ui-elements/kanban.global.js +1 -1
  164. package/dist/ui-elements/lead-popup.global.js +50 -50
  165. package/dist/ui-elements/lightbox.global.js +1 -1
  166. package/dist/ui-elements/markdown.global.js +1 -1
  167. package/dist/ui-elements/org-tree.global.js +1 -1
  168. package/dist/ui-elements/phone.global.js +9 -9
  169. package/dist/ui-elements/popover.global.js +1 -1
  170. package/dist/ui-elements/saved-views.global.js +1 -1
  171. package/dist/ui-elements/select-chips.global.js +2 -2
  172. package/dist/ui-elements/select-recents.global.js +1 -1
  173. package/dist/ui-elements/select-search.global.js +1 -1
  174. package/dist/ui-elements/slider.global.js +13 -13
  175. package/dist/ui-elements/sortable.global.js +1 -1
  176. package/dist/ui-elements/status-icon.global.js +1 -1
  177. package/dist/ui-elements/timepicker.global.js +4 -4
  178. package/dist/ui-elements/tour.global.js +1 -1
  179. package/dist/ui-elements/tree.global.js +1 -1
  180. package/dist/ui-elements/wizard.global.js +1 -1
  181. package/dist/ui-elements.global.js +21 -21
  182. package/dist/ui-elements.js +1 -1
  183. package/dist/ui-file-viewer.global.js +11 -11
  184. package/dist/ui-file-viewer.js +1 -1
  185. package/dist/ui-lead-popup.global.js +1 -1
  186. package/dist/ui-rich-text.global.js +8 -8
  187. package/dist/ui-rich-text.js +8 -8
  188. package/dist/ui-tour.global.js +1 -1
  189. package/dist/wizard.g-DOZSBUc5.js +1 -0
  190. package/package.json +11 -6
  191. package/types/WuiCarousel.d.ts +0 -8
  192. package/types/WuiChart.d.ts +1 -1
  193. package/types/WuiCommentThread.d.ts +1 -1
  194. package/types/WuiDrawer.d.ts +1 -1
  195. package/types/WuiEntryGrid.d.ts +5 -2
  196. package/types/WuiMentionInput.d.ts +0 -10
  197. package/types/WuiTour.d.ts +1 -12
  198. package/types/avatarPicker.d.ts +0 -13
  199. package/types/calendarMath.d.ts +0 -2
  200. package/types/chartAdapter.d.ts +1 -0
  201. package/types/chartSpec.d.ts +0 -4
  202. package/types/commentText.d.ts +0 -35
  203. package/types/dataTable.d.ts +6 -8
  204. package/types/elements/comment-thread.d.ts +2 -2
  205. package/types/elements/data-table.d.ts +1 -1
  206. package/types/elements/inline-edit.d.ts +2 -2
  207. package/types/elements/mention-input.d.ts +2 -2
  208. package/types/formatters.d.ts +15 -3
  209. package/types/global/core.d.ts +8 -7
  210. package/types/global/shared.d.ts +6 -0
  211. package/types/helpers.d.ts +9 -9
  212. package/types/inlineEditText.d.ts +0 -14
  213. package/types/kanbanModel.d.ts +0 -32
  214. package/types/notificationDays.d.ts +0 -19
  215. package/types/passwordRules.d.ts +0 -2
  216. package/types/server/drawerDiscard.d.ts +0 -5
  217. package/types/server/index.d.ts +3 -3
  218. package/types/server/remoteModal.d.ts +7 -5
  219. package/types/server/serverActions.d.ts +0 -9
  220. package/types/server/serverTable.d.ts +0 -11
  221. package/types/server/unsavedChanges.d.ts +0 -6
  222. package/types/shortcutKeys.d.ts +3 -3
  223. package/types/tableSelect.d.ts +0 -2
  224. package/types/text/index.d.ts +8 -0
  225. package/types/text/textStore.d.ts +19 -0
  226. package/types/text/web/accountSwitcher.g.d.ts +4 -0
  227. package/types/text/web/alert.g.d.ts +4 -0
  228. package/types/text/web/asyncBlock.g.d.ts +7 -0
  229. package/types/text/web/avatar.g.d.ts +4 -0
  230. package/types/text/web/avatarGroup.g.d.ts +4 -0
  231. package/types/text/web/banner.g.d.ts +4 -0
  232. package/types/text/web/breadcrumbs.g.d.ts +4 -0
  233. package/types/text/web/calendar.g.d.ts +20 -0
  234. package/types/text/web/card.g.d.ts +4 -0
  235. package/types/text/web/carousel.g.d.ts +13 -0
  236. package/types/text/web/catalogue.g.d.ts +266 -0
  237. package/types/text/web/chart.g.d.ts +102 -0
  238. package/types/text/web/chartCard.g.d.ts +13 -0
  239. package/types/text/web/check.g.d.ts +4 -0
  240. package/types/text/web/checkbox.g.d.ts +4 -0
  241. package/types/text/web/chip.g.d.ts +5 -0
  242. package/types/text/web/chipGroup.g.d.ts +4 -0
  243. package/types/text/web/choiceCard.g.d.ts +4 -0
  244. package/types/text/web/choiceChip.g.d.ts +4 -0
  245. package/types/text/web/codeBlock.g.d.ts +6 -0
  246. package/types/text/web/colourField.g.d.ts +7 -0
  247. package/types/text/web/columnMenu.g.d.ts +4 -0
  248. package/types/text/web/commandPalette.g.d.ts +12 -0
  249. package/types/text/web/commentThread.g.d.ts +35 -0
  250. package/types/text/web/compareTable.g.d.ts +7 -0
  251. package/types/text/web/confirmDialog.g.d.ts +10 -0
  252. package/types/text/web/confirmProvider.g.d.ts +4 -0
  253. package/types/text/web/consentBanner.g.d.ts +18 -0
  254. package/types/text/web/contextMenu.g.d.ts +5 -0
  255. package/types/text/web/copyButton.g.d.ts +5 -0
  256. package/types/text/web/customRule.g.d.ts +4 -0
  257. package/types/text/web/dataTable.g.d.ts +31 -0
  258. package/types/text/web/datePicker.g.d.ts +16 -0
  259. package/types/text/web/dateRangePicker.g.d.ts +22 -0
  260. package/types/text/web/drawer.g.d.ts +9 -0
  261. package/types/text/web/dropZone.g.d.ts +8 -0
  262. package/types/text/web/dropdown.g.d.ts +7 -0
  263. package/types/text/web/dueDate.g.d.ts +10 -0
  264. package/types/text/web/entryGrid.g.d.ts +16 -0
  265. package/types/text/web/errorBoundary.g.d.ts +4 -0
  266. package/types/text/web/errorSummary.g.d.ts +5 -0
  267. package/types/text/web/field.g.d.ts +4 -0
  268. package/types/text/web/fileAttachment.g.d.ts +18 -0
  269. package/types/text/web/filePicker.g.d.ts +20 -0
  270. package/types/text/web/fileValidation.g.d.ts +15 -0
  271. package/types/text/web/fileViewer.g.d.ts +55 -0
  272. package/types/text/web/filterBar.g.d.ts +15 -0
  273. package/types/text/web/floatingDock.g.d.ts +4 -0
  274. package/types/text/web/formatters.g.d.ts +49 -0
  275. package/types/text/web/formulaSteps.g.d.ts +9 -0
  276. package/types/text/web/hoverCard.g.d.ts +4 -0
  277. package/types/text/web/httpFailure.g.d.ts +4 -0
  278. package/types/text/web/imageCrop.g.d.ts +18 -0
  279. package/types/text/web/imagePicker.g.d.ts +22 -0
  280. package/types/text/web/index.g.d.ts +132 -0
  281. package/types/text/web/infoTip.g.d.ts +4 -0
  282. package/types/text/web/inlineEdit.g.d.ts +12 -0
  283. package/types/text/web/input.g.d.ts +11 -0
  284. package/types/text/web/inputMask.g.d.ts +12 -0
  285. package/types/text/web/kanban.g.d.ts +33 -0
  286. package/types/text/web/kbd.g.d.ts +6 -0
  287. package/types/text/web/kpiTile.g.d.ts +4 -0
  288. package/types/text/web/labelHelp.g.d.ts +4 -0
  289. package/types/text/web/leadPopup.g.d.ts +23 -0
  290. package/types/text/web/lightbox.g.d.ts +12 -0
  291. package/types/text/web/mentionInput.g.d.ts +11 -0
  292. package/types/text/web/modal.g.d.ts +14 -0
  293. package/types/text/web/modalCardRenderer.g.d.ts +5 -0
  294. package/types/text/web/modalContent.g.d.ts +4 -0
  295. package/types/text/web/modalForm.g.d.ts +5 -0
  296. package/types/text/web/navigationMenu.g.d.ts +4 -0
  297. package/types/text/web/notificationCentre.g.d.ts +24 -0
  298. package/types/text/web/numberInput.g.d.ts +7 -0
  299. package/types/text/web/onboardingChecklist.g.d.ts +10 -0
  300. package/types/text/web/orgTree.g.d.ts +10 -0
  301. package/types/text/web/otpInput.g.d.ts +5 -0
  302. package/types/text/web/overflow.g.d.ts +4 -0
  303. package/types/text/web/pageHeader.g.d.ts +5 -0
  304. package/types/text/web/passwordRules.g.d.ts +11 -0
  305. package/types/text/web/periodPicker.g.d.ts +13 -0
  306. package/types/text/web/person.g.d.ts +4 -0
  307. package/types/text/web/phone.g.d.ts +12 -0
  308. package/types/text/web/phoneNumberInput.g.d.ts +6 -0
  309. package/types/text/web/pricingCard.g.d.ts +4 -0
  310. package/types/text/web/qrCode.g.d.ts +4 -0
  311. package/types/text/web/radio.g.d.ts +4 -0
  312. package/types/text/web/radioGroup.g.d.ts +5 -0
  313. package/types/text/web/rating.g.d.ts +8 -0
  314. package/types/text/web/recordPager.g.d.ts +6 -0
  315. package/types/text/web/relativeTime.g.d.ts +16 -0
  316. package/types/text/web/repeater.g.d.ts +5 -0
  317. package/types/text/web/richText.g.d.ts +25 -0
  318. package/types/text/web/routeError.g.d.ts +12 -0
  319. package/types/text/web/rowActions.g.d.ts +4 -0
  320. package/types/text/web/rowDrop.g.d.ts +5 -0
  321. package/types/text/web/savedViews.g.d.ts +19 -0
  322. package/types/text/web/scoreScale.g.d.ts +4 -0
  323. package/types/text/web/search.g.d.ts +6 -0
  324. package/types/text/web/sectionLeadCapture.g.d.ts +12 -0
  325. package/types/text/web/segmented.g.d.ts +4 -0
  326. package/types/text/web/select.g.d.ts +26 -0
  327. package/types/text/web/shell.g.d.ts +36 -0
  328. package/types/text/web/shortcutKeys.g.d.ts +10 -0
  329. package/types/text/web/showMore.g.d.ts +5 -0
  330. package/types/text/web/skeletonShapes.g.d.ts +4 -0
  331. package/types/text/web/slider.g.d.ts +9 -0
  332. package/types/text/web/sortable.g.d.ts +12 -0
  333. package/types/text/web/sortableList.g.d.ts +4 -0
  334. package/types/text/web/sparkline.g.d.ts +7 -0
  335. package/types/text/web/spinner.g.d.ts +4 -0
  336. package/types/text/web/splash.g.d.ts +4 -0
  337. package/types/text/web/splitButton.g.d.ts +4 -0
  338. package/types/text/web/splitView.g.d.ts +19 -0
  339. package/types/text/web/stepper.g.d.ts +5 -0
  340. package/types/text/web/switch.g.d.ts +4 -0
  341. package/types/text/web/tablePagination.g.d.ts +11 -0
  342. package/types/text/web/tableRows.g.d.ts +4 -0
  343. package/types/text/web/tableSelect.g.d.ts +5 -0
  344. package/types/text/web/tableToolbar.g.d.ts +8 -0
  345. package/types/text/web/tabs.g.d.ts +6 -0
  346. package/types/text/web/textarea.g.d.ts +5 -0
  347. package/types/text/web/themeToggle.g.d.ts +10 -0
  348. package/types/text/web/timePicker.g.d.ts +15 -0
  349. package/types/text/web/timeline.g.d.ts +4 -0
  350. package/types/text/web/toast.g.d.ts +9 -0
  351. package/types/text/web/tour.g.d.ts +12 -0
  352. package/types/text/web/tourAdvance.g.d.ts +4 -0
  353. package/types/text/web/tree.g.d.ts +5 -0
  354. package/types/text/web/unsavedChanges.g.d.ts +6 -0
  355. package/types/text/web/updateBar.g.d.ts +6 -0
  356. package/types/text/web/value.g.d.ts +4 -0
  357. package/types/text/web/whatsNew.g.d.ts +7 -0
  358. package/types/text/web/wizard.g.d.ts +16 -0
  359. package/types/text/web/workspaceSwitcher.g.d.ts +8 -0
  360. package/dist/WuiCarousel-BdhJLo1m.js +0 -1
  361. package/dist/WuiCodeBlock-7O514Hqe.js +0 -1
  362. package/dist/WuiCommandPalette-rVScJ2Hy.js +0 -2
  363. package/dist/WuiCommentThread-Bkb78uhy.js +0 -1
  364. package/dist/WuiConsentBanner-Bm7tT3_5.js +0 -1
  365. package/dist/WuiContextMenu-Fc9WCgM8.js +0 -1
  366. package/dist/WuiDataTable-Bb5hxTfn.js +0 -1
  367. package/dist/WuiDatePicker-D7tOu4kV.js +0 -31
  368. package/dist/WuiDateRange-D0pzZeUU.js +0 -25
  369. package/dist/WuiDrawer-BKNcc0WX.js +0 -1
  370. package/dist/WuiEntryGrid-DCVSZuPc.js +0 -1
  371. package/dist/WuiImageCrop-ChvH8GKb.js +0 -17
  372. package/dist/WuiInlineEdit-DwnXChDc.js +0 -1
  373. package/dist/WuiLeadPopup-BmZG0Fk_.js +0 -382
  374. package/dist/WuiLightbox-hw48EjHj.js +0 -1
  375. package/dist/WuiMentionInput-BCXdub58.js +0 -1
  376. package/dist/WuiNotificationCenter-BRomMzI2.js +0 -1
  377. package/dist/WuiOrgTree-DzeLFQxy.js +0 -1
  378. package/dist/WuiOverflow-CV5y5zkM.js +0 -1
  379. package/dist/WuiPhone-BKxBok5L.js +0 -16
  380. package/dist/WuiRecordPager-7HVGoFlP.js +0 -1
  381. package/dist/WuiSavedViews-CdjavvPC.js +0 -1
  382. package/dist/WuiSelect-CKfM5kWG.js +0 -9
  383. package/dist/WuiShortcuts-Wiv_zufK.js +0 -1
  384. package/dist/WuiShowMore-CvdNQXrA.js +0 -1
  385. package/dist/WuiSlider-Cz5-zWC7.js +0 -51
  386. package/dist/WuiSortable-CBLMNRuZ.js +0 -1
  387. package/dist/WuiTimePicker-DAS2sxSH.js +0 -9
  388. package/dist/WuiTour-CAVM3O8-.js +0 -1
  389. package/dist/WuiTree-BPT9EZuw.js +0 -1
  390. package/dist/WuiWizardStep-Cencr-mT.js +0 -1
  391. package/dist/calendarMath-D6UUgYTD.js +0 -1
  392. package/dist/chips-DjccCG3b.js +0 -2
  393. package/dist/commentText-BnX7rA2-.js +0 -1
  394. package/dist/country-x5lqC5Xu.js +0 -1
  395. package/dist/customRule-Chp7YwFb.js +0 -1
  396. package/dist/dataTable-CcH1lBIM.js +0 -1
  397. package/dist/drawerDiscard-C1We4r_2.js +0 -1
  398. package/dist/fileViewerImage-CVHV1fBb.js +0 -3
  399. package/dist/fileViewerMedia-DGnbWDXP.js +0 -1
  400. package/dist/fileViewerPdf-BxoLE4hd.js +0 -20
  401. package/dist/fileViewerUi-2ZoK9uX0.js +0 -1
  402. package/dist/formatters-ljfITOZ3.js +0 -1
  403. package/dist/iconGlyphs.g-DPqoOoXy.js +0 -1
  404. package/dist/inlineEditText-CDptpqmI.js +0 -1
  405. package/dist/kanban-CDaks135.js +0 -1
  406. package/dist/kanbanModel-BaT75e-b.js +0 -1
  407. package/dist/nativeOverlay-BsVSWs1q.js +0 -1
  408. package/dist/notificationDays-BIWczft0.js +0 -1
  409. package/dist/recents-Dcw-b5cB.js +0 -1
  410. package/dist/relativeTime-BahImc8F.js +0 -1
  411. package/dist/search-Du-vK_9z.js +0 -1
  412. package/dist/shortcutKeys-COVLox98.js +0 -1
  413. package/dist/themeTransition-Dt7Br1QT.js +0 -1
  414. package/dist/zone-BR02ZkHF.js +0 -1
@@ -1 +1 @@
1
- var WeborityTour=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){if(typeof customElements>`u`||customElements.get(e))return;let n=[];if(typeof document<`u`)for(let r of document.querySelectorAll(e))for(let i of Object.keys(r)){let a=Object.getOwnPropertyDescriptor(t.prototype,i);if(a&&(a.set||a.get)&&(n.push([r,i,Reflect.get(r,i)]),!Reflect.deleteProperty(r,i)))throw Error(`defineElement: could not clear the early "${i}" property on <${e}>.`)}customElements.define(e,t);for(let[t,r,i]of n)if(!Reflect.set(t,r,i))throw Error(`defineElement: could not restore the "${r}" property on <${e}>.`)}var n=`@webority/ui-elements needs a browser DOM; import its types or helpers entry on the server`;if(typeof HTMLElement>`u`)throw Error(n);var r=HTMLElement;function i(e,t){a(e),e._reanchor=t,e._reanchorScroll=n=>{n.composedPath().includes(e)||t()},window.addEventListener(`resize`,e._reanchor),window.addEventListener(`scroll`,e._reanchorScroll,!0)}function a(e){if(!e?._reanchor)return;window.removeEventListener(`resize`,e._reanchor);let t=e._reanchorScroll;t&&window.removeEventListener(`scroll`,t,!0),e._reanchor=null,e._reanchorScroll=null}var o=`AppButton`,s=new Set([`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),c={solid:e=>`btn-${e}`,soft:e=>`btn-soft-${e}`,outline:e=>`btn-outline-${e}`,ghost:e=>`btn-ghost-${e}`,link:e=>`btn-link-${e}`,glass:()=>`btn-glass`};function l(e){return Object.hasOwn(c,e)}function u(e=`primary`,t=`solid`,n=`md`){if(!s.has(e))throw RangeError(`buttonClass: unknown tone "${e}"`);if(!l(t))throw RangeError(`buttonClass: unknown variant "${t}"`);let r=c[t](e);return n===`md`?`btn ${r}`:`btn ${r} btn-${n}`}var d=`data-wui-dismiss`,f=`data-wui-closing`,p=`[${d}]`,m=`(prefers-reduced-motion: reduce)`,h=`a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])`,g=new WeakSet,_=Symbol.for(`webority.ui.modal-stack`),v=Symbol.for(`webority.ui.root-watches`);function ee(e){let t=e;return t[v]??=new Set,t[v]}function te(e){let t=e.querySelector(`[data-autofocus]`);if(t)return t;let n=null;for(let t of e.querySelectorAll(h))if(!t.closest(`[hidden],[inert]`)){if(!t.closest(`${p},.wui-modal-back`))return t;n??=t}return n}function y(e){let t=e;return t[_]??=[],t[_]}function ne(e){b(e),y(e.ownerDocument).push(e)}function b(e){let t=y(e.ownerDocument),n=t.indexOf(e);n>=0&&t.splice(n,1)}function x(e){for(let t of ee(e)){let n=S(e);t.last!==n&&(t.last=n,t.listener(n))}}function re(e){let t=Promise.allSettled(e.getAnimations().map(e=>e.finished));return new Promise(e=>{let n=window.setTimeout(e,400);t.then(()=>{window.clearTimeout(n),e()})})}function ie(e,t){let n=t.focus===`first-control`?te(e):null,r=n??e,i=r===e&&!e.hasAttribute(`tabindex`);i&&e.setAttribute(`tabindex`,`-1`);let a=!t.escape&&!e.hasAttribute(`closedby`);a&&e.setAttribute(`closedby`,`none`),g.add(e);let o=()=>{if(ne(e),!e.hasAttribute(`open`)){let t=n!==null&&!e.querySelector(`[autofocus]`);t&&n.setAttribute(`autofocus`,``);try{e.showModal()}catch(t){throw b(e),t}finally{t&&n.removeAttribute(`autofocus`)}}r.focus(),x(e.ownerDocument)},s=!1,c=n=>{if(n.key!==`Escape`||n.defaultPrevented||!t.escape||n.altKey||n.ctrlKey||n.metaKey)return;let r=e.ownerDocument;S(r)===e&&(e.querySelector(`:popover-open`)||r.querySelector(`[popover=""]:popover-open, [popover="auto"]:popover-open`)||(s=!0,window.setTimeout(()=>{s&&g.has(e)&&e.open&&(s=!1,t.onRequestClose(`escape`))},0)))},l=e=>{s=!1,e.preventDefault(),t.escape&&t.onRequestClose(`escape`)},u=n=>{let r=n.target;if(!(r instanceof Element))return;let i=r.closest(p);if(i&&i.closest(`dialog`)===e){t.onRequestClose(`dismiss`);return}if(r!==e||!t.backdrop)return;let a=e.getBoundingClientRect();(n.clientX<a.left||n.clientX>a.right||n.clientY<a.top||n.clientY>a.bottom)&&t.onRequestClose(`backdrop`)},d=()=>{let n=s;s=!1,b(e),g.has(e)?(o(),n&&t.onRequestClose(`escape`)):x(e.ownerDocument)},f=e.ownerDocument;return f.addEventListener(`keydown`,c),e.addEventListener(`cancel`,l),e.addEventListener(`click`,u),e.addEventListener(`close`,d),o(),()=>{f.removeEventListener(`keydown`,c),e.removeEventListener(`cancel`,l),e.removeEventListener(`click`,u),e.removeEventListener(`close`,d),g.delete(e),i&&e.removeAttribute(`tabindex`),a&&e.removeAttribute(`closedby`),b(e),x(e.ownerDocument)}}async function ae(e){g.delete(e),e.setAttribute(f,``),!window.matchMedia(m).matches&&typeof e.getAnimations==`function`&&e.getAnimations().length>0&&await re(e),e.close(),b(e),x(e.ownerDocument),e.removeAttribute(f)}function oe(e){if(se(e),!e.isConnected)throw Error(`nativeOverlay: raisePopover was given a panel that is not on the page; a caller whose overlay root can leave the page skips the raise until the panel moves to the new root`);e.hidePopover(),e.showPopover()}function se(e){if(!e.hasAttribute(`popover`))throw Error(`nativeOverlay: the panel has no popover attribute`)}function S(e=document){let t=y(e);for(let e=t.length-1;e>=0;e--){let n=t[e];if(n?.isConnected&&n.hasAttribute(`open`))return n}return e.body}var C=`data-advance`,w=`wui-tour-hint`,T=`wui-tour-pointer`,ce=`Click {actionName} to continue.`,le=`a[href], button, input, select, textarea, summary, [tabindex], [contenteditable]`,E=(e,t)=>e?.advanceOn===`click`&&!!t,D=e=>(e??``).replace(/\s+/g,` `).trim(),ue=e=>e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLMeterElement||e instanceof HTMLOutputElement||e instanceof HTMLProgressElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement?e.labels:null,de=e=>e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLFieldSetElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement?e.disabled:!1;function fe(e){let t=e.ownerDocument,n=(e.getAttribute(`aria-labelledby`)||``).split(/\s+/).filter(Boolean),r=e instanceof HTMLInputElement&&/^(button|submit|reset)$/.test(e.type)?e.value:``,i=[n.map(e=>t.getElementById(e)?.textContent??``).join(` `),e.getAttribute(`aria-label`),Array.from(ue(e)??[],e=>e.textContent).join(` `),e.getAttribute(`alt`),r,e.textContent,e.getAttribute(`title`)];for(let e of i){let t=D(e);if(t)return t}return``}function pe(e){for(let t of[e,...e.querySelectorAll(le)])if((t instanceof HTMLElement||t instanceof SVGElement)&&t.tabIndex>=0&&!de(t))return t;return null}function O(e,t,n){let r=(e.getAttribute(`aria-describedby`)||``).split(/\s+/).filter(e=>e&&e!==t);n&&r.push(t),r.length>0?e.setAttribute(`aria-describedby`,r.join(` `)):e.removeAttribute(`aria-describedby`)}function me(e,t){let n=e.querySelector(`.${w}`),r=e.querySelector(`.wui-tour-text`)?.id,i=r?`${r.replace(/-text$/,``)}-hint`:``;if(!t)n?.remove(),i&&O(e,i,!1);else{if(!n){n=e.ownerDocument.createElement(`p`),n.className=w,i&&(n.id=i);let t=e.querySelector(`.wui-tour-actions`);if(!t)throw Error(`Tour card has no actions row.`);t.before(n)}n.textContent=t,i&&O(e,i,!0)}}function he(e,t){let n=e.querySelector(`.${T}`);if(!t){n?.remove();return}if(n)return;let r=e.ownerDocument.createElement(`span`);r.className=T,r.setAttribute(`aria-hidden`,`true`),e.append(r)}var ge=e=>getComputedStyle(e).animationName;function k(e,{layer:t,spot:n,card:r},i,a){let o=E(i,a);t.toggleAttribute(C,o&&!(t.getRootNode()instanceof ShadowRoot)),n.hasAttribute(C)&&(n.removeAttribute(C),o&&ge(n)),o&&n.setAttribute(C,``),he(n,o);let s=r.querySelector(`.wui-tour-next`);if(!(s instanceof HTMLElement))throw Error(`Tour card has no next button.`);s.classList.toggle(`btn-primary`,!o),s.classList.toggle(`btn-link`,o);let c=o?D(i?.actionLabel)||fe(a):``,l=e.getAttribute(`advance-label`)||ce,u=c?l.replace(/\{actionName\}/g,()=>c):``;return me(r,u),u}function _e(e,t,n){if(!E(e,t))return()=>{};let r,i=()=>{r??=setTimeout(n,0)};return t.addEventListener(`click`,i),()=>{t.removeEventListener(`click`,i),clearTimeout(r)}}function ve(e,t,n,r){return e.contains(r)||E(t,n)&&n.contains(r)}function ye(e,{card:t,active:n,step:r,target:i}){let a=Array.from(t.querySelectorAll(`button`)).filter(e=>!e.hidden),o=E(r,i)?pe(i):null;o&&a.push(o);let s=a.findIndex(e=>e===n||e===o&&i?.contains(n));e.preventDefault();let c=a[s===-1?e.shiftKey?a.length-1:0:(s+(e.shiftKey?-1:1)+a.length)%a.length];if(!c)throw Error(`Tour card has no focus stop.`);c.focus()}function be(e){return e.key===`Enter`&&e.isComposing!==!0&&e.keyCode!==229}var xe=2/3,Se=1e3,Ce=new Set([`top`,`left`,`width`,`height`]),A=new WeakMap,j=(e,t)=>typeof e.getAnimations==`function`?e.getAnimations().filter(t):[],M=e=>`transitionProperty`in e&&e.transitionProperty===`opacity`,we=e=>`transitionProperty`in e&&typeof e.transitionProperty==`string`&&Ce.has(e.transitionProperty),Te=e=>`animationName`in e&&typeof e.animationName==`string`&&e.animationName.startsWith(`wui-tour-`);function N(e){return e.length===0?null:new Promise(t=>{let n=setTimeout(t,Se);Promise.allSettled(e.map(e=>e.finished)).then(()=>{clearTimeout(n),t()})})}function Ee(e){let t=e.parentElement?.querySelector(`:scope > .wui-tour-spot`),n=0;for(let e of t?j(t,we):[]){let t=e.effect?.getComputedTiming?.();if(typeof t?.duration!=`number`)continue;let r=typeof e.currentTime==`number`?e.currentTime:0;n=Math.max(n,(t.delay??0)+t.duration*xe-r)}return n}function P(e){let t=Ee(e);t>0?e.style.setProperty(`--wui-tour-card-delay`,`${Math.round(t)}ms`):e.style.removeProperty(`--wui-tour-card-delay`),e.dataset.state=`entering`;let n={};A.set(e,n);let r=()=>{A.get(e)===n&&e.dataset.state===`entering`&&(e.dataset.state=`shown`)},i=j(e,Te);i.length===0?r():Promise.allSettled(i.map(e=>e.finished)).then(r)}function F(e){return e.dataset.state=`leaving`,N(j(e,M))}function De(e){let t=e.shadowRoot?.querySelector(`.wui-tour-layer`),n=e.classList.contains(`wui-tour-layer`)?e:t instanceof HTMLElement?t:null;n&&(n.dataset.state=`leaving`);let r=n?N(j(n,M)):null;r?(e.setAttribute(`inert`,``),r.then(()=>e.remove())):e.remove()}var Oe=2,I=12,L=8,R=4,z=20,ke=`(max-width: 575.98px)`,Ae=[`bottom`,`top`,`right`,`left`],B=[`top-left`,`top-right`,`bottom-right`,`bottom-left`],V,H=(e,t,n)=>Math.max(t,Math.min(e,n)),U=(e,t,n,r)=>(Math.max(e,n)+Math.min(t,r))/2;function je(e,t){if(!t?.scrollIntoView)return;e.style.maxHeight=``;let n=G(e),r=e.offsetHeight+I;if(t.getBoundingClientRect().height+4+r*2<=n.bottom-n.top){t.scrollIntoView({block:`center`,inline:`nearest`});return}let i=t.style.scrollMarginTop;t.style.scrollMarginTop=`${n.top+r+Oe}px`,t.scrollIntoView({block:`start`,inline:`nearest`}),t.style.scrollMarginTop=i}function W(e,t,n){let r=e.style,i=t.style,a=Ie(t);if(!n){r.top=`50%`,r.left=`50%`,r.width=`0px`,r.height=`0px`,r.boxShadow=`0 0 0 100vmax var(--color-scrim-strong)`;for(let e of B)r.removeProperty(`border-${e}-radius`),r.removeProperty(`corner-${e}-shape`);t.dataset.placement=`center`,a.hidden=!0,i.position=`fixed`,i.top=`50%`,i.left=`50%`,i.transform=`translate(-50%, -50%)`,i.maxHeight=`calc(100vh - 16px)`;return}r.boxShadow=``,i.transform=``,i.position=`fixed`;let o=n.getBoundingClientRect();r.top=`${o.top}px`,r.left=`${o.left}px`,r.width=`${o.width}px`,r.height=`${o.height}px`,Me(r,n);let s=t.scrollTop;i.maxHeight=``;let c={width:t.offsetWidth,height:t.offsetHeight},l=G(t),u=l.bottom-l.top,d={bottom:l.bottom-o.bottom-I,top:o.top-I-l.top,right:l.right-o.right-I,left:o.left-I-l.left},f=window.matchMedia(ke).matches,p=Ae.find(e=>e===`top`||e===`bottom`?c.height<=d[e]+1:!f&&c.width<=d[e]+1&&c.height<=u+1),m=Math.min(o.bottom,l.bottom+L)-Math.max(o.top,l.top-L);p?Ne(t,a,p,o,l,c):m>=Math.min(c.height,u)+8?Pe(t,a,o,l,c):Fe(t,a,d.bottom>=d.top?`bottom`:`top`,o,l,c,d),t.scrollTop=s}function Me(e,t){V??=CSS.supports(`corner-top-left-shape`,`squircle`);let n=getComputedStyle(t);for(let t of B)e.setProperty(`border-${t}-radius`,n.getPropertyValue(`border-${t}-radius`)),V&&e.setProperty(`corner-${t}-shape`,n.getPropertyValue(`corner-${t}-shape`))}function Ne(e,t,n,r,i,a){let o=n===`top`||n===`bottom`,s,c,l;if(o){let e=U(r.left,r.right,i.left,i.right);s=H(e-a.width/2,i.left,i.right-a.width),c=n===`bottom`?r.bottom+I:r.top-I-a.height,l=H(e-s,z,a.width-z)}else{let e=U(r.top,r.bottom,i.top,i.bottom);c=H(e-a.height/2,i.top,i.bottom-a.height),s=n===`right`?r.right+I:r.left-I-a.width,l=H(e-c,z,a.height-z)}e.dataset.placement=n,e.style.top=`${c}px`,e.style.left=`${s}px`,t.hidden=!1,t.style.left=o?`${l-e.clientLeft-t.offsetWidth/2}px`:``,t.style.top=o?``:`${l-e.clientTop-t.offsetHeight/2}px`}function Pe(e,t,n,r,i){let a=r.bottom-r.top;e.dataset.placement=`overlap`,t.hidden=!0,e.style.maxHeight=i.height>a?`${Math.max(a,0)}px`:``;let o=Math.min(n.bottom,r.bottom)-R;e.style.top=`${Math.max(r.top,o-Math.min(i.height,a))}px`,e.style.left=`${H(n.left+R,r.left,r.right-i.width)}px`}function Fe(e,t,n,r,i,a,o){let s=Math.max(o[n],0),c=Math.min(a.height,s);e.dataset.placement=n,t.hidden=!0,e.style.maxHeight=a.height>s?`${s}px`:``,e.style.top=`${n===`bottom`?r.bottom+I:r.top-I-c}px`;let l=U(r.left,r.right,i.left,i.right);e.style.left=`${H(l-a.width/2,i.left,i.right-a.width)}px`}function G(e){let t=e.parentElement,n=t?getComputedStyle(t):null,r=e=>Number.parseFloat(n?.[e]??``)||0;return{top:r(`paddingTop`)+L,bottom:window.innerHeight-r(`paddingBottom`)-L,left:r(`paddingLeft`)+L,right:window.innerWidth-r(`paddingRight`)-L}}function Ie(e){let t=e.querySelector(`:scope > .wui-tour-arrow`);if(t instanceof HTMLElement)return t;let n=document.createElement(`span`);return n.className=`wui-tour-arrow`,n.setAttribute(`aria-hidden`,`true`),n.hidden=!0,e.append(n),n}var Le=0,Re=`btn btn-sm btn-link`;function K(e,t,n){let r=e.querySelector(t);if(!(r instanceof n))throw Error(`Expected "${t}" to match a ${n.name}.`);return r}function ze(e,t,n){let r=`wui-tour-end-${++Le}`,i=!!(t.nextLabel&&t.nextHref),a=n?e.createElement(`dialog`):e.createElement(`div`);a.className=`wui-tour-card wui-tour-end`,a.dataset.layout=`center`,i&&(a.dataset.next=``),a.setAttribute(`role`,`dialog`),a.tabIndex=-1,a.setAttribute(`aria-labelledby`,`${r}-title`),a.setAttribute(`aria-describedby`,`${r}-message`),a.innerHTML=` <div class="wui-tour-end-mark" aria-hidden="true"><svg viewBox="0 0 24 24" focusable="false"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></div> <h2 class="wui-tour-title wui-tour-end-title" id="${r}-title"></h2> <p class="wui-tour-text wui-tour-end-message" id="${r}-message"></p> <div class="wui-tour-actions">${i?`<a class="${u(`primary`,`solid`,`sm`)} wui-tour-end-next" data-wui="${o}"></a>`:``}<button type="button" class="${i?Re:u(`primary`,`solid`,`sm`)} wui-tour-end-button" data-wui="${o}"></button></div>`,K(a,`.wui-tour-end-title`,HTMLElement).textContent=t.title,K(a,`.wui-tour-end-message`,HTMLElement).textContent=t.message,K(a,`.wui-tour-end-button`,HTMLButtonElement).textContent=t.button;let{nextLabel:s,nextHref:c}=t;if(i&&s&&c){let e=K(a,`.wui-tour-end-next`,HTMLAnchorElement);e.textContent=s,e.setAttribute(`href`,c)}return a}var Be=e=>e.button===0&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey;function Ve(e,t,n){let r=e.ownerDocument,i=ze(r,t,e.getRootNode()===r),a=K(i,`.wui-tour-end-button`,HTMLButtonElement),o=i.querySelector(`.wui-tour-end-next`);if(o!==null&&!(o instanceof HTMLAnchorElement))throw Error(`The end dialog's next link is not a link.`);let s=o,c=s??a,l=new AbortController,u=i instanceof HTMLDialogElement?i:null,d=null;return new Promise(o=>{let f=e=>{if(l.abort(),d&&u){let e=d;d=null,ae(u).then(e)}o(e)};if(n?.aborted){f(`done`);return}let p=K(e,`.wui-tour-card:not(.wui-tour-end)`,HTMLElement),m=K(e,`.wui-tour-spot`,HTMLElement),h=K(e,`[role=status]`,HTMLElement),g={signal:l.signal};n?.addEventListener(`abort`,()=>f(`done`),g),a.addEventListener(`click`,()=>f(`done`),g),s&&s.addEventListener(`click`,e=>{Be(e)&&(e.preventDefault(),f(`next`))},g),r.addEventListener(`keydown`,e=>{if(!(e.altKey||e.ctrlKey||e.metaKey)){if(e.key===`Escape`){if(d)return;e.preventDefault(),e.stopPropagation(),f(`done`)}else be(e)&&s&&!e.shiftKey&&(e.composedPath?.()[0]??e.target)===s&&(e.preventDefault(),f(`next`))}},{capture:!0,signal:l.signal});let _=()=>{l.signal.aborted||(p.hidden=!0,W(m,p,null),e.append(i),P(i),u&&(d=ie(u,{escape:!0,backdrop:!1,focus:`first-control`,onRequestClose:()=>f(`done`)})),h.textContent=[t.title,t.message].filter(Boolean).join(`. `),c.focus())},v=F(p);v?v.then(_):_()})}var He=` :host { all: initial; display: revert-layer; position: fixed; inset: 0; ${Object.entries({"--wui-z-tour":`1550`,"--wui-radius-sm":`8px`,"--wui-radius-lg":`14px`,"--wui-shadow-popover":`0px 8px 28px -6px rgba(7, 20, 55, 0.14)`,"--wui-ease-out":`cubic-bezier(0.22, 1, 0.36, 1)`,"--wui-ease-linear":`cubic-bezier(0, 0, 1, 1)`,"--wui-duration-fast":`150ms`,"--wui-duration-default":`250ms`,"--wui-duration-slow":`400ms`,"--wui-space-xs":`4px`,"--wui-tour-motion-duration":`200ms`,"--wui-tour-motion-ease":`cubic-bezier(0.22, 1, 0.36, 1)`,"--wui-tour-spot-duration":`240ms`,"--wui-tour-spot-ease":`cubic-bezier(0.32, 0.72, 0, 1)`,"--color-primary":`#4F46E5`,"--color-primary-hover":`#4338CA`,"--color-primary-text":`#4F46E5`,"--color-focus-ring":`#4F46E5`,"--wui-focus-ring-width":`2px`,"--wui-focus-ring-offset":`2px`,"--color-on-primary":`#FFFFFF`,"--color-success-soft":`#E8FAEE`,"--color-success-text":`#0e7531`,"--color-on-scrim":`#FFFFFF`,"--color-scrim-strong":`color-mix(in srgb, #071437 62%, transparent)`,"--color-surface":`#FFFFFF`,"--color-text":`#071437`,"--color-text-muted":`#4B5675`,"--color-border":`#EBEDF3`,"--color-bg-muted":`#F5F6FA`}).map(([e,t])=>` ${e}: ${t};`).join(` `)} } *, *::before, *::after { box-sizing: border-box; } [hidden] { display: none !important; } .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; } .btn { display: inline-block; margin: 0; padding: 0.25rem 0.5rem; border: 1px solid transparent; border-radius: 0.375rem; background: transparent; font: inherit; font-size: 0.875rem; font-weight: 500; line-height: 1.5; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; } .btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; } .btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); } .btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); } .btn-outline-neutral { border-color: var(--color-text-muted); color: var(--color-text-muted); } .btn-outline-neutral:hover { background: var(--color-bg-muted); color: var(--color-text); } .btn-link { font-weight: 400; color: var(--color-primary-text); text-decoration: underline; } .btn-link:hover { color: var(--color-primary-hover); } .wui-tour-layer { pointer-events: none; font-family: "Webority Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--color-text); text-align: start; } .wui-tour-card { pointer-events: auto; } .wui-tour-layer { position: fixed; inset: 0; z-index: var(--wui-z-tour); width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: visible; background: none; } .wui-tour-spot { position: fixed; box-shadow: 0 0 0 2px var(--color-primary), 0 0 4px 2px color-mix(in srgb, var(--color-primary) 30%, transparent), 0 0 0 100vmax var(--color-scrim-strong); pointer-events: none; } .wui-tour-card { display: flex; flex-direction: column; gap: 8px; width: min(360px, 100vw - 16px); padding: 16px; overflow-y: auto; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--wui-radius-lg); corner-shape: squircle; box-shadow: var(--wui-shadow-popover); } .wui-tour-card:focus { outline: none; } .wui-tour-card:focus-visible { outline: var(--wui-focus-ring-width) solid var(--color-focus-ring); outline-offset: var(--wui-focus-ring-offset); } .wui-tour-title { margin: 0; font-size: 16px; font-weight: 600; } .wui-tour-text { margin: 0; font-size: 14px; color: var(--color-text-muted); } .wui-tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; } .wui-tour-nav { display: flex; gap: 8px; } .wui-tour-skip { color: var(--color-text-muted); } .wui-tour-back, .wui-tour-next { min-width: 64px; } @keyframes wui-tour-fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes wui-tour-card-enter { from { opacity: 0; scale: 0.96; translate: var(--wui-tour-card-lift, 0 6px); } to { opacity: 1; scale: 1; translate: 0 0; } } .wui-tour-layer[data-state=leaving], .wui-tour-card[data-state=leaving] { opacity: 0; } .wui-tour-layer[data-state=leaving], .wui-tour-layer[data-state=leaving] * { pointer-events: none; } @media (prefers-reduced-motion: no-preference) { .wui-tour-layer { animation: wui-tour-fade-in var(--wui-tour-motion-duration) var(--wui-tour-motion-ease); } .wui-tour-layer[data-state=leaving] { transition: opacity var(--wui-tour-motion-duration) var(--wui-tour-motion-ease); } .wui-tour-spot { transition: top var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), left var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), width var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), height var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), border-radius var(--wui-tour-spot-duration) var(--wui-tour-spot-ease); } .wui-tour-spot[data-tracking] { transition: none; } .wui-tour-card { --wui-tour-card-lift: 0 6px; transform-origin: top center; } .wui-tour-card[data-placement=top] { --wui-tour-card-lift: 0 -6px; transform-origin: bottom center; } .wui-tour-card[data-placement=bottom] { --wui-tour-card-lift: 0 6px; transform-origin: top center; } .wui-tour-card[data-placement=left] { --wui-tour-card-lift: -6px 0; transform-origin: right center; } .wui-tour-card[data-placement=right] { --wui-tour-card-lift: 6px 0; transform-origin: left center; } .wui-tour-card[data-placement=overlap], .wui-tour-card[data-placement=center] { --wui-tour-card-lift: 0 0; transform-origin: center; } .wui-tour-card[data-state=entering] { animation: wui-tour-card-enter var(--wui-tour-motion-duration) var(--wui-tour-motion-ease) var(--wui-tour-card-delay, 0ms) both; } .wui-tour-card[data-state=leaving] { transition: opacity calc(var(--wui-tour-motion-duration) / 2) var(--wui-tour-motion-ease); } } @media (prefers-reduced-motion: reduce) { .wui-tour-layer { animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear); } .wui-tour-layer[data-state=leaving] { transition: opacity var(--wui-duration-fast) var(--wui-ease-linear); } .wui-tour-card[data-state=entering] { animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear) both; } } .wui-tour-progress-bar { display: flex; gap: 4px; } .wui-tour-progress-segment { flex: 1 1 0; height: 4px; border-radius: 999px; background: var(--color-border); } .wui-tour-progress-segment[data-filled] { background: var(--color-primary); } .wui-tour-position { margin: 0; font-size: 12px; color: var(--color-text-muted); } .wui-tour-layer { padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); } .wui-tour-card:has(.wui-tour-arrow:not([hidden])) { overflow: visible; } .wui-tour-arrow { position: absolute; width: 8px; height: 8px; background: var(--color-surface); border: 1px solid var(--color-border); rotate: 45deg; pointer-events: none; } .wui-tour-card[data-placement=bottom] .wui-tour-arrow { top: -5px; border-right-color: rgba(0, 0, 0, 0); border-bottom-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=top] .wui-tour-arrow { bottom: -5px; border-top-color: rgba(0, 0, 0, 0); border-left-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=right] .wui-tour-arrow { left: -5px; border-top-color: rgba(0, 0, 0, 0); border-right-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=left] .wui-tour-arrow { right: -5px; border-bottom-color: rgba(0, 0, 0, 0); border-left-color: rgba(0, 0, 0, 0); } @media (max-width: 575.98px) { .wui-tour-card { width: calc(100vw - 16px); } .wui-tour-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; } } .wui-tour-media { position: relative; order: -1; flex: none; aspect-ratio: 16/9; margin: -16px -16px 4px; overflow: hidden; background: var(--color-border); } .wui-tour-media>img, .wui-tour-media>video { display: block; width: 100%; height: 100%; object-fit: cover; } .wui-tour-card[data-welcome] { width: min(420px, 100vw - 16px); } .wui-tour-media-toggle { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--color-scrim-strong); color: var(--color-on-scrim); cursor: pointer; } .wui-tour-media-toggle>svg { width: 20px; height: 20px; fill: currentColor; } .wui-tour-media-toggle:focus-visible { outline: 2px solid var(--color-on-scrim); outline-offset: var(--wui-focus-ring-offset); } .wui-tour-layer[data-advance] { pointer-events: none; } .wui-tour-layer[data-advance]:not([data-state=leaving]) .wui-tour-card { pointer-events: auto; } .wui-tour-layer[data-advance]:not([data-state=leaving]) .wui-tour-spot::before { content: ""; position: absolute; inset: -100vmax; pointer-events: auto; clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 100vmax 100vmax, calc(100% - 100vmax) 100vmax, calc(100% - 100vmax) calc(100% - 100vmax), 100vmax calc(100% - 100vmax), 100vmax 100vmax); } .wui-tour-hint { margin: 0; font-size: 14px; font-weight: 600; color: var(--color-text); } .wui-tour-pointer { position: absolute; top: 50%; left: 50%; width: 18px; height: 24px; pointer-events: none; } .wui-tour-pointer::before { content: ""; position: absolute; inset: 0; background: var(--color-primary); clip-path: polygon(0 0, 0 75%, 28% 58%, 46% 100%, 62% 92%, 45% 52%, 85% 52%); filter: drop-shadow(1px 0 0 var(--color-surface)) drop-shadow(-1px 0 0 var(--color-surface)) drop-shadow(0 1px 0 var(--color-surface)) drop-shadow(0 -1px 0 var(--color-surface)); } .wui-tour-pointer::after { content: ""; position: absolute; top: -16px; left: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary); opacity: 0; display: none; } @media (max-width: 575.98px) { .wui-tour-pointer { width: 24px; height: 24px; translate: -50% -50%; } .wui-tour-pointer::before { clip-path: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--color-surface); filter: none; } .wui-tour-pointer::after { top: -4px; left: -4px; } } @keyframes wui-tour-tap { 0% { opacity: 0; transform: translate(56px, 44px) scale(1); } 10% { opacity: 1; transform: translate(56px, 44px) scale(1); } 45% { transform: translate(0, 0) scale(1); } 52% { transform: translate(0, 0) scale(0.86); } 60% { transform: translate(0, 0) scale(1); } 85% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(0, 0) scale(1); } } @keyframes wui-tour-ripple { 0%, 50% { opacity: 0; transform: scale(0.2); } 52% { opacity: 0.35; transform: scale(0.2); } 80%, 100% { opacity: 0; transform: scale(1); } } @media (prefers-reduced-motion: no-preference) { .wui-tour-pointer { opacity: 0; animation: wui-tour-tap calc(var(--wui-duration-slow) * 6) var(--wui-ease-out) var(--wui-tour-spot-duration) infinite; } .wui-tour-pointer::after { display: block; animation: wui-tour-ripple calc(var(--wui-duration-slow) * 6) var(--wui-ease-out) var(--wui-tour-spot-duration) infinite; } } @keyframes wui-tour-check { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } } .wui-tour-end[data-layout=center] { --wui-tour-card-lift: 0 0; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); transform-origin: center; align-items: center; gap: 8px; width: min(420px, 100vw - 16px); max-height: calc(100vh - 16px); padding: 24px; text-align: center; } .wui-tour-end[data-layout=center] .wui-tour-actions { justify-content: center; margin-top: 8px; } .wui-tour-end[data-layout=center][data-next] .wui-tour-actions { flex-direction: column; align-items: stretch; width: 100%; gap: var(--wui-space-xs); } .wui-tour-end-mark { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-success-soft); color: var(--color-success-text); } .wui-tour-end-mark>svg { width: 26px; height: 26px; } .wui-tour-end-mark path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; } .wui-tour-end-title { font-size: 18px; } .wui-tour-end-message { text-wrap: balance; } .wui-tour-end-next { text-wrap: balance; } .wui-tour-end-button { min-width: 120px; } @media (prefers-reduced-motion: no-preference) { .wui-tour-end-mark path { animation: wui-tour-check var(--wui-duration-default) var(--wui-ease-out) calc(var(--wui-tour-card-delay, 0ms) + var(--wui-duration-fast)) both; } } `,q=`wui-tour-media`,Ue=`wui-tour-media-toggle`,J=`http://www.w3.org/2000/svg`,We=`M6 5h4v14H6zM14 5h4v14h-4z`,Ge=`M8 5v14l11-7z`,Ke={pause:`Pause animation`,play:`Play animation`},qe=()=>globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`)?.matches===!0;function Je(e){let t=document.createElementNS(J,`svg`);t.setAttribute(`viewBox`,`0 0 24 24`),t.setAttribute(`aria-hidden`,`true`),t.setAttribute(`focusable`,`false`);let n=document.createElementNS(J,`path`);return n.setAttribute(`d`,e),t.appendChild(n),t}function Ye(e){let t=document.createElement(`img`);return t.setAttribute(`alt`,e.mediaAlt??``),t.setAttribute(`width`,`1280`),t.setAttribute(`height`,`720`),t.setAttribute(`loading`,`lazy`),t.setAttribute(`decoding`,`async`),t.setAttribute(`src`,e.media??``),t}function Xe(e,t){let n=document.createElement(`video`);return n.muted=!0,n.setAttribute(`muted`,``),n.loop=!0,n.setAttribute(`playsinline`,``),t&&n.setAttribute(`autoplay`,``),n.setAttribute(`preload`,t?`auto`:`metadata`),e.mediaAlt&&n.setAttribute(`aria-label`,e.mediaAlt),e.mediaPoster&&n.setAttribute(`poster`,e.mediaPoster),n.setAttribute(`src`,e.media??``),n}function Ze(e,t){let n=document.createElement(`button`);n.type=`button`,n.className=Ue;let r=(r=!e.paused)=>{n.setAttribute(`aria-label`,r?t.pause:t.play),n.replaceChildren(Je(r?We:Ge))};return e.addEventListener(`play`,()=>r()),e.addEventListener(`pause`,()=>r()),n.addEventListener(`click`,()=>{e.paused?e.play()?.catch(()=>r()):e.pause()}),r(e.hasAttribute(`autoplay`)),n}function Qe(e){let t=e.querySelector(`:scope > .${q}`);if(!t)return;let n=t.querySelector(`video`);n&&(n.pause(),n.removeAttribute(`src`),n.load()),t.remove()}function $e(e,t,n=Ke){if(Qe(e),!t.media){e.removeAttribute(`data-media`);return}let r=document.createElement(`div`);if(r.className=q,t.mediaType===`video`){let e=Xe(t,!qe());r.append(e,Ze(e,n))}else r.appendChild(Ye(t));e.prepend(r),e.setAttribute(`data-media`,t.target?`step`:`welcome`)}var Y=`data-wui-tour-open`,et=`Step {current} of {total}`;function X(e){let t=new Set;return{drop:e=>{t.add(e)},position:e=>{t.delete(e);let n=0;for(let r of t)r<e&&n++;return e+1-n},total:()=>e-t.size}}function tt(e,t,n){return(e.getAttribute(`progress-label`)||et).replace(/\{(current|total)\}/g,(e,r)=>String(r===`current`?t:n))}function nt(e,{text:t,position:n,total:r}){let i=e.querySelector(`.wui-tour-position`);if(!(i instanceof HTMLElement))throw Error(`tour position label missing`);i.textContent=t;let a=e.querySelector(`.wui-tour-progress-bar`);if(!a){let t=e.ownerDocument,n=t.createElement(`div`);n.className=`wui-tour-progress`,n.setAttribute(`aria-hidden`,`true`),a=t.createElement(`div`),a.className=`wui-tour-progress-bar`,n.append(a),i.before(n)}let o=a.children;for(;o.length<r;){let t=e.ownerDocument.createElement(`span`);t.className=`wui-tour-progress-segment`,a.append(t)}for(;o.length>r;){let e=a.lastElementChild;if(!e)throw Error(`progress bar segment missing`);e.remove()}for(let e=0;e<o.length;e++){let t=o[e];if(!t)throw Error(`progress bar segment missing`);t.toggleAttribute(`data-filled`,e<n)}}var rt=`wui-tour-seen:`;function it(e=rt,t=globalThis.localStorage){return{isSeen:async n=>t.getItem(e+n)===`1`,markSeen:async n=>{t.setItem(e+n,`1`)}}}var at=`wui-tour-step`,ot=`wui-tour-host`,Z=`data-tracking`,st={back:`Back`,next:`Next`,skip:`Skip`,done:`Done`,mediaPause:`Pause animation`,mediaPlay:`Play animation`,endTitle:`You're all set`,endMessage:`You know your way around now. Enjoy exploring.`,endButton:`Done`},ct={back:`back-label`,next:`next-label`,skip:`skip-label`,done:`done-label`,mediaPause:`media-pause-label`,mediaPlay:`media-play-label`,endTitle:`end-title`,endMessage:`end-message`,endButton:`end-button`},lt=[[`media`,`media`],[`mediaAlt`,`media-alt`],[`mediaPoster`,`media-poster`],[`mediaType`,`media-type`],[`advanceOn`,`advance-on`],[`actionLabel`,`action-label`]],ut={index:null,position:null,total:null},dt=0,ft=e=>!e?.isConnected||getComputedStyle(e).visibility===`hidden`?!1:e.getClientRects().length>0,pt=e=>e instanceof HTMLElement&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));function Q(e,t,n){let r=e.querySelector(t);if(!(r instanceof n))throw Error(`<wui-tour> layer has no ${t}`);return r}var mt=()=>{let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e},$=null;function ht(e){$||($=new CSSStyleSheet,$.replaceSync(He)),e.adoptedStyleSheets=[$]}var gt=class extends r{seenStore;onBeforeStep;_run;_running;_layer;_outer;_shadow;_unbindAdvance;_ending;_seenMark;_steps=[];_progress=X(0);_firstIndex=0;_returnFocus=null;_current=null;_moving=!1;_card=null;_spot=null;_live=null;_onKey=null;_onFocusIn=null;static get observedAttributes(){return[`open`]}constructor(){super(),this.seenStore=null,this.onBeforeStep=null,this._run=0,this._running=!1,this._layer=null,this._outer=null,this._shadow=null,this._unbindAdvance=null,this._ending=null,this._seenMark=null}connectedCallback(){this.hasAttribute(`open`)&&this.start()}disconnectedCallback(){this.stop()}attributeChangedCallback(e,t,n){e===`open`&&this.isConnected&&(n===null?this.stop():this.start())}get tourId(){return this.getAttribute(`tour-id`)||``}set tourId(e){e==null||e===``?this.removeAttribute(`tour-id`):this.setAttribute(`tour-id`,String(e))}get isolated(){return this.hasAttribute(`isolated`)}set isolated(e){this.toggleAttribute(`isolated`,e===!0||e===``||e===`true`)}_stepList(){return Array.from(this.querySelectorAll(`:scope > ${at}`),e=>{let t={target:e.getAttribute(`target`)||``,title:e.getAttribute(`title`)||void 0,description:(e.textContent??``).trim()};for(let[n,r]of lt)e.hasAttribute(r)&&(t[n]=e.getAttribute(r)??``);return t})}_stepAt(e){let t=this._steps[e];if(!t)throw RangeError(`<wui-tour> has no step ${e}; it has ${this._steps.length}.`);return t}_store(){return this.seenStore?this.seenStore:this.getAttribute(`seen-store`)===`local`?it():globalThis.window?.WUI?.tour?.seenStore||null}_label(e){return this.getAttribute(ct[e])||st[e]}_endDialogText(){if(this.getAttribute(`end-dialog`)===`false`)return null;let e=(this.getAttribute(`end-next-label`)??``).trim(),t=(this.getAttribute(`end-next-href`)??``).trim();return{title:this._label(`endTitle`),message:this._label(`endMessage`),button:this._label(`endButton`),nextLabel:e,nextHref:t}}_markSeen(e){let t=this._store();return t?t.markSeen(this.tourId,e):null}async start(){if(this._running)return;this._running=!0;let e=++this._run;this.hasAttribute(`open`)||this.setAttribute(`open`,``);try{await this._start(e)}catch(t){throw e===this._run&&(this._running=!1),t}}async _start(e){this._steps=this._stepList(),this._progress=X(this._steps.length);let t=this._store();if(t&&!this.tourId)throw Error(`<wui-tour> needs a tour-id to use a seen store.`);if(t&&await t.isSeen(this.tourId)){e===this._run&&this._finish(`alreadySeen`);return}for(let[e,t]of this._steps.entries())t.target&&!ft(document.querySelector(t.target))&&this._progress.drop(e);this._returnFocus=document.activeElement;let n=await this._locate(0,1,e);e===this._run&&(n?(this._firstIndex=n.index,this.dispatchEvent(new CustomEvent(`wui-tour:start`,{bubbles:!0,detail:{total:this._progress.total()}})),e===this._run&&(this._build(),this._show(n))):this._finish(`noTargets`))}next(){return this._move(1)}back(){return!this._current||this._current.index<=this._firstIndex?Promise.resolve():this._move(-1)}async goTo(e){if(this._current){if(!Number.isInteger(e)||e<0||e>=this._steps.length)throw RangeError(`<wui-tour> has no step ${e}; it has ${this._steps.length}.`);await this._go(e,1)}}stop(){this._running&&(this._run++,this._teardown(),this._running=!1,this.hasAttribute(`open`)&&this.removeAttribute(`open`))}async _locate(e,t,n){let r=this._steps;for(let i=e;i>=0&&i<r.length;i+=t){let e=r[i];if(!e)break;if(await this._beforeStep(e,i),n!==this._run)return null;if(!e.target)return{index:i,target:null};let t=document.querySelector(e.target),a=t instanceof HTMLElement||t instanceof SVGElement?t:null;if(ft(a))return this._progress.position(i),{index:i,target:a};this._progress.drop(i)}return null}async _beforeStep(e,t){let n=[];this.dispatchEvent(new CustomEvent(`wui-tour:beforestep`,{bubbles:!0,detail:{step:e,index:t,wait:e=>n.push(e)}})),await Promise.all(n),typeof this.onBeforeStep==`function`&&await this.onBeforeStep(e,t)}_build(){let e=`wui-tour-${++dt}`,t=document.createElement(`div`);t.className=`wui-tour-layer`,t.innerHTML=` <div class="wui-tour-spot" aria-hidden="true"></div> <div class="wui-tour-card" role="dialog" tabindex="-1" aria-labelledby="${e}-title" aria-describedby="${e}-text"> <p class="wui-tour-position"></p> <h2 class="wui-tour-title" id="${e}-title"></h2> <p class="wui-tour-text" id="${e}-text"></p> <div class="wui-tour-actions"> <button type="button" class="btn btn-sm btn-link wui-tour-skip"></button> <div class="wui-tour-nav"> <button type="button" class="${u(`neutral`,`outline`,`sm`)} wui-tour-back" data-wui="${o}"></button> <button type="button" class="${u(`primary`,`solid`,`sm`)} wui-tour-next" data-wui="${o}"></button> </div> </div> </div> <div class="visually-hidden" role="status" aria-live="polite"></div>`;let n=t;this._shadow=null,this.isolated&&(n=document.createElement(ot),this._shadow=n.attachShadow({mode:`open`}),ht(this._shadow),this._shadow.appendChild(t)),n.setAttribute(`popover`,`manual`),S(document).appendChild(n),document.documentElement.setAttribute(Y,``),this._outer=n,this._layer=t;let r=Q(t,`.wui-tour-spot`,HTMLDivElement),a=Q(t,`.wui-tour-card`,HTMLDivElement),s=Q(t,`[role=status]`,HTMLElement);this._spot=r,this._card=a,this._live=s,Q(a,`.wui-tour-skip`,HTMLElement).addEventListener(`click`,()=>this._close(`skipped`,`button`)),Q(a,`.wui-tour-back`,HTMLElement).addEventListener(`click`,()=>this._move(-1)),Q(a,`.wui-tour-next`,HTMLElement).addEventListener(`click`,()=>this._move(1));let c=e=>this._key(e);this._onKey=c;let l=e=>{let t=this._layer;if(!t||this._ending)return;let n=this._current,r=n?this._stepAt(n.index):null;if(!(e.target instanceof Node))throw Error(`<wui-tour> saw a focus change from a non-node target`);ve(t,r,n?.target??null,e.target)||a.focus()};this._onFocusIn=l,document.addEventListener(`keydown`,c,!0),this._shadow||document.addEventListener(`focusin`,l),i(n,()=>this._follow())}_active(){return this._shadow?this._shadow.activeElement:document.activeElement}_raise(){let e=this._outer;if(!e)throw Error(`<wui-tour> raises a step before its host is built`);let t=S(this.ownerDocument);e.parentElement!==t&&t.appendChild(e),oe(e)}_show(e){this._current=e;let{index:t,target:n}=e,r=this._stepAt(t),i=this._layer,a=this._spot,o=this._card,s=this._live;if(!i||!a||!o||!s)throw Error(`<wui-tour> shows a step before its layer is built`);this._raise();let c=this._progress.position(t),l=this._progress.total(),u=c===l&&!this._endDialogText(),d=tt(this,c,l);nt(o,{text:d,position:c,total:l}),$e(o,r,{pause:this._label(`mediaPause`),play:this._label(`mediaPlay`)}),o.toggleAttribute(`data-welcome`,!n);let f=k(this,{layer:i,spot:a,card:o},r,n),p=Q(o,`.wui-tour-title`,HTMLElement);p.textContent=r.title||``,p.hidden=!r.title,Q(o,`.wui-tour-text`,HTMLElement).textContent=r.description||``,Q(o,`.wui-tour-skip`,HTMLElement).textContent=this._label(`skip`);let m=Q(o,`.wui-tour-back`,HTMLElement);m.textContent=this._label(`back`),m.hidden=t<=this._firstIndex,Q(o,`.wui-tour-next`,HTMLElement).textContent=this._label(u?`done`:`next`);let h=[d,r.title,r.description].filter(Boolean).join(`. `);s.textContent=f?[h,f].join(/[.!?]$/.test(h)?` `:`. `):h,je(o,n),a.removeAttribute(Z),this._place(),P(o),this._unbindAdvance?.(),this._unbindAdvance=_e(r,n,()=>this._move(1));let g=this._active();(g!==null&&o.contains(g)?!(g instanceof HTMLElement&&g.hidden):this._shadow!==null&&pt(mt()))||o.focus(),this.dispatchEvent(new CustomEvent(`wui-tour:step`,{bubbles:!0,detail:{step:r,index:t,position:c,total:l}}))}_place(){if(!this._current||!this._layer)return;let e=this._spot,t=this._card;if(!e||!t)throw Error(`<wui-tour> places a step before its layer is built`);W(e,t,this._current.target)}_follow(){if(!this._current||!this._layer||this._ending)return;let e=this._spot;if(!e)throw Error(`<wui-tour> follows a step before its spot is built`);let t=e.style.cssText;this._place(),e.style.cssText!==t&&e.setAttribute(Z,``)}async _move(e){this._current&&await this._go(this._current.index+e,e)}async _go(e,t){if(!this._current||this._moving)return;this._moving=!0;let n=this._run;try{let r=await this._locate(e,t,n);if(n!==this._run)return;if(r){let e=this._card;if(!e)throw Error(`<wui-tour> moved with no card showing`);let t=F(e);if(t&&await t,n!==this._run)return;this._show(r)}else if(t>0){let e=this._endDialogText(),t=e?await this._showEnd(e):`done`;if(n!==this._run)return;let r=await this._close(t===`next`?`next`:`finished`);if(t===`next`&&r&&e){let t=this.ownerDocument.defaultView;if(!t)throw Error(`<wui-tour> has no window to follow its next link in`);t.location.assign(e.nextHref)}}}finally{this._moving=!1}}_showEnd(e){this._unbindAdvance?.(),this._unbindAdvance=null;let t=this._layer,n=this._spot,r=this._card;if(!t||!n||!r)throw Error(`<wui-tour> ends a tour before its layer is built`);return k(this,{layer:t,spot:n,card:r},null,null),n.removeAttribute(Z),this._ending=new AbortController,this._seenMark=this._markSeen(`finished`),Ve(t,e,this._ending.signal)}_key(e){if(!(!this._layer||this._ending||e.altKey||e.ctrlKey||e.metaKey)){if(e.key===`Escape`)e.preventDefault(),e.stopPropagation(),this._close(`skipped`,`escape`);else if(e.key===`ArrowRight`||e.key===`ArrowLeft`){if(pt(e.composedPath?.()[0]??e.target))return;if(e.preventDefault(),e.key===`ArrowRight`)this._move(1);else{let e=this._current;if(!e)throw Error(`<wui-tour> moved back with no step showing`);e.index>this._firstIndex&&this._move(-1)}}else if(e.key===`Tab`&&!this._shadow){let t=this._current,n=this._card;if(!t||!n)throw Error(`<wui-tour> cycled focus with no step showing`);ye(e,{card:n,active:this._active(),step:this._stepAt(t.index),target:t.target})}}}_teardown(){if(!this._layer)return;this._onKey&&document.removeEventListener(`keydown`,this._onKey,!0),this._onFocusIn&&document.removeEventListener(`focusin`,this._onFocusIn);let e=!this._shadow||this._shadow.activeElement!==null||!document.activeElement||document.activeElement===document.body;this._unbindAdvance?.(),this._unbindAdvance=null,this._ending?.abort(),this._ending=null,this._seenMark=null;let t=this._outer;if(a(t),!t)throw Error(`<wui-tour> has a layer with no host to remove`);De(t),document.documentElement.removeAttribute(Y),this._outer=null,this._shadow=null,this._layer=null,this._current=null;let n=this._returnFocus;this._returnFocus=null,e&&n?.isConnected&&(n instanceof HTMLElement||n instanceof SVGElement)&&n.focus()}async _close(e,t=null){let n=this._run,r=this._current,i=r?{index:r.index,position:this._progress.position(r.index),total:this._progress.total()}:ut,a=this._seenMark;this._teardown();let o=e===`next`?`finished`:e,s=!1;try{n===this._run&&await(a??this._markSeen(o)),s=n===this._run}finally{this._finish(e,i,t)}return s}_finish(e,t=ut,n=null){this._run++,this._running=!1,this.hasAttribute(`open`)&&this.removeAttribute(`open`),this.dispatchEvent(new CustomEvent(`wui-tour:close`,{bubbles:!0,detail:{reason:e,...t,via:n}}))}},_t=class extends r{constructor(){super(),this.shadowRoot||this.attachShadow({mode:`open`})}};return t(`wui-tour`,gt),t(`wui-tour-step`,_t),e.WuiTourStep=_t,e})({});
1
+ var WeborityTour=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){if(typeof customElements>`u`||customElements.get(e))return;let n=[];if(typeof document<`u`)for(let r of document.querySelectorAll(e))for(let i of Object.keys(r)){let a=Object.getOwnPropertyDescriptor(t.prototype,i);if(a&&(a.set||a.get)&&(n.push([r,i,Reflect.get(r,i)]),!Reflect.deleteProperty(r,i)))throw Error(`defineElement: could not clear the early "${i}" property on <${e}>.`)}customElements.define(e,t);for(let[t,r,i]of n)if(!Reflect.set(t,r,i))throw Error(`defineElement: could not restore the "${r}" property on <${e}>.`)}var n=`@webority/ui-elements needs a browser DOM; import its types or helpers entry on the server`;if(typeof HTMLElement>`u`)throw Error(n);var r=HTMLElement;function i(e,t){a(e),e._reanchor=t,e._reanchorScroll=n=>{n.composedPath().includes(e)||t()},window.addEventListener(`resize`,e._reanchor),window.addEventListener(`scroll`,e._reanchorScroll,!0)}function a(e){if(!e?._reanchor)return;window.removeEventListener(`resize`,e._reanchor);let t=e._reanchorScroll;t&&window.removeEventListener(`scroll`,t,!0),e._reanchor=null,e._reanchorScroll=null}var o=`AppButton`,s=new Set([`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),c={solid:e=>`btn-${e}`,soft:e=>`btn-soft-${e}`,outline:e=>`btn-outline-${e}`,ghost:e=>`btn-ghost-${e}`,link:e=>`btn-link-${e}`,glass:()=>`btn-glass`};function l(e){return Object.hasOwn(c,e)}function u(e=`primary`,t=`solid`,n=`md`){if(!s.has(e))throw RangeError(`buttonClass: unknown tone "${e}"`);if(!l(t))throw RangeError(`buttonClass: unknown variant "${t}"`);let r=c[t](e);return n===`md`?`btn ${r}`:`btn ${r} btn-${n}`}var d=`data-wui-dismiss`,f=`data-wui-closing`,p=`[${d}]`,m=`(prefers-reduced-motion: reduce)`,h=`a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])`,g=new WeakSet,_=Symbol.for(`webority.ui.modal-stack`),v=Symbol.for(`webority.ui.root-watches`);function ee(e){let t=e;return t[v]??=new Set,t[v]}function te(e){let t=e.querySelector(`[data-autofocus]`);if(t)return t;let n=null;for(let t of e.querySelectorAll(h))if(!t.closest(`[hidden],[inert]`)){if(!t.closest(`${p},.wui-modal-back`))return t;n??=t}return n}function ne(e){let t=[],n=new Map;for(let r of e.querySelectorAll(h))if(!(r.closest(`[hidden],[inert]`)||r.closest(`dialog`)!==e)&&!(r.tabIndex<0||r.getClientRects().length===0)){if(r instanceof HTMLInputElement&&r.type===`radio`&&r.name){let e=n.get(r.name);e?r.checked&&!e.checked&&(e.checked=r,t[t.indexOf(e.first)]=r):(n.set(r.name,{first:r,checked:r.checked?r:null}),t.push(r))}else t.push(r)}return t}function y(e){let t=e;return t[_]??=[],t[_]}function re(e){b(e),y(e.ownerDocument).push(e)}function b(e){let t=y(e.ownerDocument),n=t.indexOf(e);n>=0&&t.splice(n,1)}function x(e){for(let t of ee(e)){let n=S(e);t.last!==n&&(t.last=n,t.listener(n))}}function ie(e){let t=Promise.allSettled(e.getAnimations().map(e=>e.finished));return new Promise(e=>{let n=window.setTimeout(e,400);t.then(()=>{window.clearTimeout(n),e()})})}function ae(e,t){let n=t.focus===`first-control`?te(e):null,r=n??e,i=r===e&&!e.hasAttribute(`tabindex`);i&&e.setAttribute(`tabindex`,`-1`);let a=!t.escape&&!e.hasAttribute(`closedby`);a&&e.setAttribute(`closedby`,`none`),g.add(e);let o=()=>{if(re(e),!e.hasAttribute(`open`)){let t=n!==null&&!e.querySelector(`[autofocus]`);t&&n.setAttribute(`autofocus`,``);try{e.showModal()}catch(t){throw b(e),t}finally{t&&n.removeAttribute(`autofocus`)}}r.focus(),x(e.ownerDocument)},s=!1,c=n=>{if(n.key!==`Escape`||n.defaultPrevented||!t.escape||n.altKey||n.ctrlKey||n.metaKey)return;let r=e.ownerDocument;S(r)===e&&(e.querySelector(`:popover-open`)||r.querySelector(`[popover=""]:popover-open, [popover="auto"]:popover-open`)||(s=!0,window.setTimeout(()=>{s&&g.has(e)&&e.open&&(s=!1,t.onRequestClose(`escape`))},0)))},l=t=>{if(t.key!==`Tab`||t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey)return;let n=e.ownerDocument;if(S(n)!==e||e.querySelector(`:popover-open`))return;t.preventDefault();let r=ne(e),i=r[0],a=r[r.length-1];if(!i||!a){e.focus();return}let o=n.activeElement,s=o?r.findIndex(e=>e===o||e.contains(o)):-1;s<0?(t.shiftKey?a:i).focus():r[((t.shiftKey?s-1:s+1)+r.length)%r.length]?.focus()},u=e=>{s=!1,e.preventDefault(),t.escape&&t.onRequestClose(`escape`)},d=n=>{let r=n.target;if(!(r instanceof Element))return;let i=r.closest(p);if(i&&i.closest(`dialog`)===e){t.onRequestClose(`dismiss`);return}if(r!==e||!t.backdrop)return;let a=e.getBoundingClientRect();(n.clientX<a.left||n.clientX>a.right||n.clientY<a.top||n.clientY>a.bottom)&&t.onRequestClose(`backdrop`)},f=()=>{let n=s;s=!1,b(e),g.has(e)?(o(),n&&t.onRequestClose(`escape`)):x(e.ownerDocument)},m=e.ownerDocument;return m.addEventListener(`keydown`,c),m.addEventListener(`keydown`,l),e.addEventListener(`cancel`,u),e.addEventListener(`click`,d),e.addEventListener(`close`,f),o(),()=>{m.removeEventListener(`keydown`,c),m.removeEventListener(`keydown`,l),e.removeEventListener(`cancel`,u),e.removeEventListener(`click`,d),e.removeEventListener(`close`,f),g.delete(e),i&&e.removeAttribute(`tabindex`),a&&e.removeAttribute(`closedby`),b(e),x(e.ownerDocument)}}async function oe(e){g.delete(e),e.setAttribute(f,``),!window.matchMedia(m).matches&&typeof e.getAnimations==`function`&&e.getAnimations().length>0&&await ie(e),e.close(),b(e),x(e.ownerDocument),e.removeAttribute(f)}function se(e){if(ce(e),!e.isConnected)throw Error(`nativeOverlay: raisePopover was given a panel that is not on the page; a caller whose overlay root can leave the page skips the raise until the panel moves to the new root`);e.hidePopover(),e.showPopover()}function ce(e){if(!e.hasAttribute(`popover`))throw Error(`nativeOverlay: the panel has no popover attribute`)}function S(e=document){let t=y(e);for(let e=t.length-1;e>=0;e--){let n=t[e];if(n?.isConnected&&n.hasAttribute(`open`))return n}return e.body}var le=/\{([A-Za-z0-9_]+)\}/g,ue=new Map,de=0,fe=new Map;function C(e,t){let n=ue.get(e);if(n===void 0)return t;let r=fe.get(e);if(r!==void 0&&r.version===de&&r.english===t&&me(r.merged,t))return r.merged;let i=pe(e,n,t);return fe.set(e,{version:de,english:t,merged:i}),i}function pe(e,t,n){let r={};for(let[i,a]of Object.entries(t)){let t=Object.hasOwn(n,i)?n[i]:void 0;if(t===void 0)throw RangeError(`Text ${e}.${i} is not a key of the English text. Allowed keys: ${Object.keys(n).join(`, `)}.`);let o=he(t);for(let t of he(a))if(!o.includes(t))throw RangeError(`Text ${e}.${i} uses {${t}}, which the English text does not have. Allowed placeholders: ${o.length===0?`none`:o.map(e=>`{${e}}`).join(`, `)}.`);r[i]=a}return Object.assign({},n,r)}function me(e,t){let n=Object.keys(t);return Object.keys(e).length===n.length&&n.every(t=>Object.hasOwn(e,t))}function he(e){return Array.from(e.matchAll(le),e=>e[1]??``)}var w={backLabel:`Back`,doneLabel:`Done`,endMessage:`You know your way around now. Enjoy exploring.`,endTitle:`You're all set`,mediaPauseLabel:`Pause animation`,mediaPlayLabel:`Play animation`,nextLabel:`Next`,progressLabel:`Step {current} of {total}`,skipLabel:`Skip`},ge={advanceLabel:`Click {actionName} to continue.`},T=`data-advance`,E=`wui-tour-hint`,D=`wui-tour-pointer`,_e=`a[href], button, input, select, textarea, summary, [tabindex], [contenteditable]`,ve=()=>C(`tourAdvance`,ge),O=(e,t)=>e?.advanceOn===`click`&&!!t,k=e=>(e??``).replace(/\s+/g,` `).trim(),ye=e=>e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLMeterElement||e instanceof HTMLOutputElement||e instanceof HTMLProgressElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement?e.labels:null,be=e=>e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLFieldSetElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement?e.disabled:!1;function xe(e){let t=e.ownerDocument,n=(e.getAttribute(`aria-labelledby`)||``).split(/\s+/).filter(Boolean),r=e instanceof HTMLInputElement&&/^(button|submit|reset)$/.test(e.type)?e.value:``,i=[n.map(e=>t.getElementById(e)?.textContent??``).join(` `),e.getAttribute(`aria-label`),Array.from(ye(e)??[],e=>e.textContent).join(` `),e.getAttribute(`alt`),r,e.textContent,e.getAttribute(`title`)];for(let e of i){let t=k(e);if(t)return t}return``}function Se(e){for(let t of[e,...e.querySelectorAll(_e)])if((t instanceof HTMLElement||t instanceof SVGElement)&&t.tabIndex>=0&&!be(t))return t;return null}function A(e,t,n){let r=(e.getAttribute(`aria-describedby`)||``).split(/\s+/).filter(e=>e&&e!==t);n&&r.push(t),r.length>0?e.setAttribute(`aria-describedby`,r.join(` `)):e.removeAttribute(`aria-describedby`)}function Ce(e,t){let n=e.querySelector(`.${E}`),r=e.querySelector(`.wui-tour-text`)?.id,i=r?`${r.replace(/-text$/,``)}-hint`:``;if(!t)n?.remove(),i&&A(e,i,!1);else{if(!n){n=e.ownerDocument.createElement(`p`),n.className=E,i&&(n.id=i);let t=e.querySelector(`.wui-tour-actions`);if(!t)throw Error(`Tour card has no actions row.`);t.before(n)}n.textContent=t,i&&A(e,i,!0)}}function we(e,t){let n=e.querySelector(`.${D}`);if(!t){n?.remove();return}if(n)return;let r=e.ownerDocument.createElement(`span`);r.className=D,r.setAttribute(`aria-hidden`,`true`),e.append(r)}var Te=e=>getComputedStyle(e).animationName;function j(e,{layer:t,spot:n,card:r},i,a){let o=O(i,a);t.toggleAttribute(T,o&&!(t.getRootNode()instanceof ShadowRoot)),n.hasAttribute(T)&&(n.removeAttribute(T),o&&Te(n)),o&&n.setAttribute(T,``),we(n,o);let s=r.querySelector(`.wui-tour-next`);if(!(s instanceof HTMLElement))throw Error(`Tour card has no next button.`);s.classList.toggle(`btn-primary`,!o),s.classList.toggle(`btn-link`,o);let c=o?k(i?.actionLabel)||xe(a):``,l=e.getAttribute(`advance-label`)||ve().advanceLabel,u=c?l.replace(/\{actionName\}/g,()=>c):``;return Ce(r,u),u}function Ee(e,t,n){if(!O(e,t))return()=>{};let r,i=()=>{r??=setTimeout(n,0)};return t.addEventListener(`click`,i),()=>{t.removeEventListener(`click`,i),clearTimeout(r)}}function De(e,t,n,r){return e.contains(r)||O(t,n)&&n.contains(r)}function Oe(e,{card:t,active:n,step:r,target:i}){let a=Array.from(t.querySelectorAll(`button`)).filter(e=>!e.hidden),o=O(r,i)?Se(i):null;o&&a.push(o);let s=a.findIndex(e=>e===n||e===o&&i?.contains(n));e.preventDefault();let c=a[s===-1?e.shiftKey?a.length-1:0:(s+(e.shiftKey?-1:1)+a.length)%a.length];if(!c)throw Error(`Tour card has no focus stop.`);c.focus()}function ke(e){return e.key===`Enter`&&e.isComposing!==!0&&e.keyCode!==229}var Ae=2/3,je=1e3,Me=new Set([`top`,`left`,`width`,`height`]),M=new WeakMap,N=(e,t)=>typeof e.getAnimations==`function`?e.getAnimations().filter(t):[],P=e=>`transitionProperty`in e&&e.transitionProperty===`opacity`,Ne=e=>`transitionProperty`in e&&typeof e.transitionProperty==`string`&&Me.has(e.transitionProperty),Pe=e=>`animationName`in e&&typeof e.animationName==`string`&&e.animationName.startsWith(`wui-tour-`);function F(e){return e.length===0?null:new Promise(t=>{let n=setTimeout(t,je);Promise.allSettled(e.map(e=>e.finished)).then(()=>{clearTimeout(n),t()})})}function Fe(e){let t=e.parentElement?.querySelector(`:scope > .wui-tour-spot`),n=0;for(let e of t?N(t,Ne):[]){let t=e.effect?.getComputedTiming?.();if(typeof t?.duration!=`number`)continue;let r=typeof e.currentTime==`number`?e.currentTime:0;n=Math.max(n,(t.delay??0)+t.duration*Ae-r)}return n}function I(e){let t=Fe(e);t>0?e.style.setProperty(`--wui-tour-card-delay`,`${Math.round(t)}ms`):e.style.removeProperty(`--wui-tour-card-delay`),e.dataset.state=`entering`;let n={};M.set(e,n);let r=()=>{M.get(e)===n&&e.dataset.state===`entering`&&(e.dataset.state=`shown`)},i=N(e,Pe);i.length===0?r():Promise.allSettled(i.map(e=>e.finished)).then(r)}function L(e){return e.dataset.state=`leaving`,F(N(e,P))}function Ie(e){let t=e.shadowRoot?.querySelector(`.wui-tour-layer`),n=e.classList.contains(`wui-tour-layer`)?e:t instanceof HTMLElement?t:null;n&&(n.dataset.state=`leaving`);let r=n?F(N(n,P)):null;r?(e.setAttribute(`inert`,``),r.then(()=>e.remove())):e.remove()}var Le=2,R=12,z=8,B=4,V=20,Re=`(max-width: 575.98px)`,ze=[`bottom`,`top`,`right`,`left`],H=[`top-left`,`top-right`,`bottom-right`,`bottom-left`],U,W=(e,t,n)=>Math.max(t,Math.min(e,n)),G=(e,t,n,r)=>(Math.max(e,n)+Math.min(t,r))/2;function Be(e,t){if(!t?.scrollIntoView)return;e.style.maxHeight=``;let n=q(e),r=e.offsetHeight+R;if(t.getBoundingClientRect().height+4+r*2<=n.bottom-n.top){t.scrollIntoView({block:`center`,inline:`nearest`});return}let i=t.style.scrollMarginTop;t.style.scrollMarginTop=`${n.top+r+Le}px`,t.scrollIntoView({block:`start`,inline:`nearest`}),t.style.scrollMarginTop=i}function K(e,t,n){let r=e.style,i=t.style,a=Ge(t);if(!n){r.top=`50%`,r.left=`50%`,r.width=`0px`,r.height=`0px`,r.boxShadow=`0 0 0 100vmax var(--color-scrim-strong)`;for(let e of H)r.removeProperty(`border-${e}-radius`),r.removeProperty(`corner-${e}-shape`);t.dataset.placement=`center`,a.hidden=!0,i.position=`fixed`,i.top=`50%`,i.left=`50%`,i.transform=`translate(-50%, -50%)`,i.maxHeight=`calc(100vh - 16px)`;return}r.boxShadow=``,i.transform=``,i.position=`fixed`;let o=n.getBoundingClientRect();r.top=`${o.top}px`,r.left=`${o.left}px`,r.width=`${o.width}px`,r.height=`${o.height}px`,Ve(r,n);let s=t.scrollTop;i.maxHeight=``;let c={width:t.offsetWidth,height:t.offsetHeight},l=q(t),u=l.bottom-l.top,d={bottom:l.bottom-o.bottom-R,top:o.top-R-l.top,right:l.right-o.right-R,left:o.left-R-l.left},f=window.matchMedia(Re).matches,p=ze.find(e=>e===`top`||e===`bottom`?c.height<=d[e]+1:!f&&c.width<=d[e]+1&&c.height<=u+1),m=Math.min(o.bottom,l.bottom+z)-Math.max(o.top,l.top-z);p?He(t,a,p,o,l,c):m>=Math.min(c.height,u)+8?Ue(t,a,o,l,c):We(t,a,d.bottom>=d.top?`bottom`:`top`,o,l,c,d),t.scrollTop=s}function Ve(e,t){U??=CSS.supports(`corner-top-left-shape`,`squircle`);let n=getComputedStyle(t);for(let t of H)e.setProperty(`border-${t}-radius`,n.getPropertyValue(`border-${t}-radius`)),U&&e.setProperty(`corner-${t}-shape`,n.getPropertyValue(`corner-${t}-shape`))}function He(e,t,n,r,i,a){let o=n===`top`||n===`bottom`,s,c,l;if(o){let e=G(r.left,r.right,i.left,i.right);s=W(e-a.width/2,i.left,i.right-a.width),c=n===`bottom`?r.bottom+R:r.top-R-a.height,l=W(e-s,V,a.width-V)}else{let e=G(r.top,r.bottom,i.top,i.bottom);c=W(e-a.height/2,i.top,i.bottom-a.height),s=n===`right`?r.right+R:r.left-R-a.width,l=W(e-c,V,a.height-V)}e.dataset.placement=n,e.style.top=`${c}px`,e.style.left=`${s}px`,t.hidden=!1,t.style.left=o?`${l-e.clientLeft-t.offsetWidth/2}px`:``,t.style.top=o?``:`${l-e.clientTop-t.offsetHeight/2}px`}function Ue(e,t,n,r,i){let a=r.bottom-r.top;e.dataset.placement=`overlap`,t.hidden=!0,e.style.maxHeight=i.height>a?`${Math.max(a,0)}px`:``;let o=Math.min(n.bottom,r.bottom)-B;e.style.top=`${Math.max(r.top,o-Math.min(i.height,a))}px`,e.style.left=`${W(n.left+B,r.left,r.right-i.width)}px`}function We(e,t,n,r,i,a,o){let s=Math.max(o[n],0),c=Math.min(a.height,s);e.dataset.placement=n,t.hidden=!0,e.style.maxHeight=a.height>s?`${s}px`:``,e.style.top=`${n===`bottom`?r.bottom+R:r.top-R-c}px`;let l=G(r.left,r.right,i.left,i.right);e.style.left=`${W(l-a.width/2,i.left,i.right-a.width)}px`}function q(e){let t=e.parentElement,n=t?getComputedStyle(t):null,r=e=>Number.parseFloat(n?.[e]??``)||0;return{top:r(`paddingTop`)+z,bottom:window.innerHeight-r(`paddingBottom`)-z,left:r(`paddingLeft`)+z,right:window.innerWidth-r(`paddingRight`)-z}}function Ge(e){let t=e.querySelector(`:scope > .wui-tour-arrow`);if(t instanceof HTMLElement)return t;let n=document.createElement(`span`);return n.className=`wui-tour-arrow`,n.setAttribute(`aria-hidden`,`true`),n.hidden=!0,e.append(n),n}var Ke=0,qe=`btn btn-sm btn-link`;function J(e,t,n){let r=e.querySelector(t);if(!(r instanceof n))throw Error(`Expected "${t}" to match a ${n.name}.`);return r}function Je(e,t,n){let r=`wui-tour-end-${++Ke}`,i=!!(t.nextLabel&&t.nextHref),a=n?e.createElement(`dialog`):e.createElement(`div`);a.className=`wui-tour-card wui-tour-end`,a.dataset.layout=`center`,i&&(a.dataset.next=``),a.setAttribute(`role`,`dialog`),a.tabIndex=-1,a.setAttribute(`aria-labelledby`,`${r}-title`),a.setAttribute(`aria-describedby`,`${r}-message`),a.innerHTML=` <div class="wui-tour-end-mark" aria-hidden="true"><svg viewBox="0 0 24 24" focusable="false"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></div> <h2 class="wui-tour-title wui-tour-end-title" id="${r}-title"></h2> <p class="wui-tour-text wui-tour-end-message" id="${r}-message"></p> <div class="wui-tour-actions">${i?`<a class="${u(`primary`,`solid`,`sm`)} wui-tour-end-next" data-wui="${o}"></a>`:``}<button type="button" class="${i?qe:u(`primary`,`solid`,`sm`)} wui-tour-end-button" data-wui="${o}"></button></div>`,J(a,`.wui-tour-end-title`,HTMLElement).textContent=t.title,J(a,`.wui-tour-end-message`,HTMLElement).textContent=t.message,J(a,`.wui-tour-end-button`,HTMLButtonElement).textContent=t.button;let{nextLabel:s,nextHref:c}=t;if(i&&s&&c){let e=J(a,`.wui-tour-end-next`,HTMLAnchorElement);e.textContent=s,e.setAttribute(`href`,c)}return a}var Ye=e=>e.button===0&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey;function Xe(e,t,n){let r=e.ownerDocument,i=Je(r,t,e.getRootNode()===r),a=J(i,`.wui-tour-end-button`,HTMLButtonElement),o=i.querySelector(`.wui-tour-end-next`);if(o!==null&&!(o instanceof HTMLAnchorElement))throw Error(`The end dialog's next link is not a link.`);let s=o,c=s??a,l=new AbortController,u=i instanceof HTMLDialogElement?i:null,d=null;return new Promise(o=>{let f=e=>{if(l.abort(),d&&u){let e=d;d=null,oe(u).then(e)}o(e)};if(n?.aborted){f(`done`);return}let p=J(e,`.wui-tour-card:not(.wui-tour-end)`,HTMLElement),m=J(e,`.wui-tour-spot`,HTMLElement),h=J(e,`[role=status]`,HTMLElement),g={signal:l.signal};n?.addEventListener(`abort`,()=>f(`done`),g),a.addEventListener(`click`,()=>f(`done`),g),s&&s.addEventListener(`click`,e=>{Ye(e)&&(e.preventDefault(),f(`next`))},g),r.addEventListener(`keydown`,e=>{if(!(e.altKey||e.ctrlKey||e.metaKey)){if(e.key===`Escape`){if(d)return;e.preventDefault(),e.stopPropagation(),f(`done`)}else ke(e)&&s&&!e.shiftKey&&(e.composedPath?.()[0]??e.target)===s&&(e.preventDefault(),f(`next`))}},{capture:!0,signal:l.signal});let _=()=>{l.signal.aborted||(p.hidden=!0,K(m,p,null),e.append(i),I(i),u&&(d=ae(u,{escape:!0,backdrop:!1,focus:`first-control`,onRequestClose:()=>f(`done`)})),h.textContent=[t.title,t.message].filter(Boolean).join(`. `),c.focus())},v=L(p);v?v.then(_):_()})}var Ze=` :host { all: initial; display: revert-layer; position: fixed; inset: 0; ${Object.entries({"--wui-z-tour":`1550`,"--wui-radius-sm":`8px`,"--wui-radius-lg":`14px`,"--wui-shadow-popover":`0px 8px 28px -6px rgba(7, 20, 55, 0.14)`,"--wui-ease-out":`cubic-bezier(0.22, 1, 0.36, 1)`,"--wui-ease-linear":`cubic-bezier(0, 0, 1, 1)`,"--wui-duration-fast":`150ms`,"--wui-duration-default":`250ms`,"--wui-duration-slow":`400ms`,"--wui-space-xs":`4px`,"--wui-tour-motion-duration":`200ms`,"--wui-tour-motion-ease":`cubic-bezier(0.22, 1, 0.36, 1)`,"--wui-tour-spot-duration":`240ms`,"--wui-tour-spot-ease":`cubic-bezier(0.32, 0.72, 0, 1)`,"--color-primary":`#4F46E5`,"--color-primary-hover":`#4338CA`,"--color-primary-text":`#4F46E5`,"--color-focus-ring":`#4F46E5`,"--wui-focus-ring-width":`2px`,"--wui-focus-ring-offset":`2px`,"--color-on-primary":`#FFFFFF`,"--color-success-soft":`#E8FAEE`,"--color-success-text":`#0e7531`,"--color-on-scrim":`#FFFFFF`,"--color-scrim-strong":`color-mix(in srgb, #071437 62%, transparent)`,"--color-surface":`#FFFFFF`,"--color-text":`#071437`,"--color-text-muted":`#4B5675`,"--color-border":`#EBEDF3`,"--color-bg-muted":`#F5F6FA`}).map(([e,t])=>` ${e}: ${t};`).join(` `)} } *, *::before, *::after { box-sizing: border-box; } [hidden] { display: none !important; } .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; } .btn { display: inline-block; margin: 0; padding: 0.25rem 0.5rem; border: 1px solid transparent; border-radius: 0.375rem; background: transparent; font: inherit; font-size: 0.875rem; font-weight: 500; line-height: 1.5; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; } .btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; } .btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); } .btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); } .btn-outline-neutral { border-color: var(--color-text-muted); color: var(--color-text-muted); } .btn-outline-neutral:hover { background: var(--color-bg-muted); color: var(--color-text); } .btn-link { font-weight: 400; color: var(--color-primary-text); text-decoration: underline; } .btn-link:hover { color: var(--color-primary-hover); } .wui-tour-layer { pointer-events: none; font-family: "Webority Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--color-text); text-align: start; } .wui-tour-card { pointer-events: auto; } .wui-tour-layer { position: fixed; inset: 0; z-index: var(--wui-z-tour); width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: visible; background: none; } .wui-tour-spot { position: fixed; box-shadow: 0 0 0 2px var(--color-primary), 0 0 4px 2px color-mix(in srgb, var(--color-primary) 30%, transparent), 0 0 0 100vmax var(--color-scrim-strong); pointer-events: none; } .wui-tour-card { display: flex; flex-direction: column; gap: 8px; width: min(360px, 100vw - 16px); padding: 16px; overflow-y: auto; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--wui-radius-lg); corner-shape: squircle; box-shadow: var(--wui-shadow-popover); } .wui-tour-card:focus { outline: none; } .wui-tour-card:focus-visible { outline: var(--wui-focus-ring-width) solid var(--color-focus-ring); outline-offset: var(--wui-focus-ring-offset); } .wui-tour-title { margin: 0; font-size: 16px; font-weight: 600; } .wui-tour-text { margin: 0; font-size: 14px; color: var(--color-text-muted); } .wui-tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; } .wui-tour-nav { display: flex; gap: 8px; } .wui-tour-skip { color: var(--color-text-muted); } .wui-tour-back, .wui-tour-next { min-width: 64px; } @keyframes wui-tour-fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes wui-tour-card-enter { from { opacity: 0; scale: 0.96; translate: var(--wui-tour-card-lift, 0 6px); } to { opacity: 1; scale: 1; translate: 0 0; } } .wui-tour-layer[data-state=leaving], .wui-tour-card[data-state=leaving] { opacity: 0; } .wui-tour-layer[data-state=leaving], .wui-tour-layer[data-state=leaving] * { pointer-events: none; } @media (prefers-reduced-motion: no-preference) { .wui-tour-layer { animation: wui-tour-fade-in var(--wui-tour-motion-duration) var(--wui-tour-motion-ease); } .wui-tour-layer[data-state=leaving] { transition: opacity var(--wui-tour-motion-duration) var(--wui-tour-motion-ease); } .wui-tour-spot { transition: top var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), left var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), width var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), height var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), border-radius var(--wui-tour-spot-duration) var(--wui-tour-spot-ease); } .wui-tour-spot[data-tracking] { transition: none; } .wui-tour-card { --wui-tour-card-lift: 0 6px; transform-origin: top center; } .wui-tour-card[data-placement=top] { --wui-tour-card-lift: 0 -6px; transform-origin: bottom center; } .wui-tour-card[data-placement=bottom] { --wui-tour-card-lift: 0 6px; transform-origin: top center; } .wui-tour-card[data-placement=left] { --wui-tour-card-lift: -6px 0; transform-origin: right center; } .wui-tour-card[data-placement=right] { --wui-tour-card-lift: 6px 0; transform-origin: left center; } .wui-tour-card[data-placement=overlap], .wui-tour-card[data-placement=center] { --wui-tour-card-lift: 0 0; transform-origin: center; } .wui-tour-card[data-state=entering] { animation: wui-tour-card-enter var(--wui-tour-motion-duration) var(--wui-tour-motion-ease) var(--wui-tour-card-delay, 0ms) both; } .wui-tour-card[data-state=leaving] { transition: opacity calc(var(--wui-tour-motion-duration) / 2) var(--wui-tour-motion-ease); } } @media (prefers-reduced-motion: reduce) { .wui-tour-layer { animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear); } .wui-tour-layer[data-state=leaving] { transition: opacity var(--wui-duration-fast) var(--wui-ease-linear); } .wui-tour-card[data-state=entering] { animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear) both; } } .wui-tour-progress-bar { display: flex; gap: 4px; } .wui-tour-progress-segment { flex: 1 1 0; height: 4px; border-radius: 999px; background: var(--color-border); } .wui-tour-progress-segment[data-filled] { background: var(--color-primary); } .wui-tour-position { margin: 0; font-size: 12px; color: var(--color-text-muted); } .wui-tour-layer { padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); } .wui-tour-card:has(.wui-tour-arrow:not([hidden])) { overflow: visible; } .wui-tour-arrow { position: absolute; width: 8px; height: 8px; background: var(--color-surface); border: 1px solid var(--color-border); rotate: 45deg; pointer-events: none; } .wui-tour-card[data-placement=bottom] .wui-tour-arrow { top: -5px; border-right-color: rgba(0, 0, 0, 0); border-bottom-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=top] .wui-tour-arrow { bottom: -5px; border-top-color: rgba(0, 0, 0, 0); border-left-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=right] .wui-tour-arrow { left: -5px; border-top-color: rgba(0, 0, 0, 0); border-right-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=left] .wui-tour-arrow { right: -5px; border-bottom-color: rgba(0, 0, 0, 0); border-left-color: rgba(0, 0, 0, 0); } @media (max-width: 575.98px) { .wui-tour-card { width: calc(100vw - 16px); } .wui-tour-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; } } .wui-tour-media { position: relative; order: -1; flex: none; aspect-ratio: 16/9; margin: -16px -16px 4px; overflow: hidden; background: var(--color-border); } .wui-tour-media>img, .wui-tour-media>video { display: block; width: 100%; height: 100%; object-fit: cover; } .wui-tour-card[data-welcome] { width: min(420px, 100vw - 16px); } .wui-tour-media-toggle { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--color-scrim-strong); color: var(--color-on-scrim); cursor: pointer; } .wui-tour-media-toggle>svg { width: 20px; height: 20px; fill: currentColor; } .wui-tour-media-toggle:focus-visible { outline: 2px solid var(--color-on-scrim); outline-offset: var(--wui-focus-ring-offset); } .wui-tour-layer[data-advance] { pointer-events: none; } .wui-tour-layer[data-advance]:not([data-state=leaving]) .wui-tour-card { pointer-events: auto; } .wui-tour-layer[data-advance]:not([data-state=leaving]) .wui-tour-spot::before { content: ""; position: absolute; inset: -100vmax; pointer-events: auto; clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 100vmax 100vmax, calc(100% - 100vmax) 100vmax, calc(100% - 100vmax) calc(100% - 100vmax), 100vmax calc(100% - 100vmax), 100vmax 100vmax); } .wui-tour-hint { margin: 0; font-size: 14px; font-weight: 600; color: var(--color-text); } .wui-tour-pointer { position: absolute; top: 50%; left: 50%; width: 18px; height: 24px; pointer-events: none; } .wui-tour-pointer::before { content: ""; position: absolute; inset: 0; background: var(--color-primary); clip-path: polygon(0 0, 0 75%, 28% 58%, 46% 100%, 62% 92%, 45% 52%, 85% 52%); filter: drop-shadow(1px 0 0 var(--color-surface)) drop-shadow(-1px 0 0 var(--color-surface)) drop-shadow(0 1px 0 var(--color-surface)) drop-shadow(0 -1px 0 var(--color-surface)); } .wui-tour-pointer::after { content: ""; position: absolute; top: -16px; left: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary); opacity: 0; display: none; } @media (max-width: 575.98px) { .wui-tour-pointer { width: 24px; height: 24px; translate: -50% -50%; } .wui-tour-pointer::before { clip-path: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--color-surface); filter: none; } .wui-tour-pointer::after { top: -4px; left: -4px; } } @keyframes wui-tour-tap { 0% { opacity: 0; transform: translate(56px, 44px) scale(1); } 10% { opacity: 1; transform: translate(56px, 44px) scale(1); } 45% { transform: translate(0, 0) scale(1); } 52% { transform: translate(0, 0) scale(0.86); } 60% { transform: translate(0, 0) scale(1); } 85% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(0, 0) scale(1); } } @keyframes wui-tour-ripple { 0%, 50% { opacity: 0; transform: scale(0.2); } 52% { opacity: 0.35; transform: scale(0.2); } 80%, 100% { opacity: 0; transform: scale(1); } } @media (prefers-reduced-motion: no-preference) { .wui-tour-pointer { opacity: 0; animation: wui-tour-tap calc(var(--wui-duration-slow) * 6) var(--wui-ease-out) var(--wui-tour-spot-duration) infinite; } .wui-tour-pointer::after { display: block; animation: wui-tour-ripple calc(var(--wui-duration-slow) * 6) var(--wui-ease-out) var(--wui-tour-spot-duration) infinite; } } @keyframes wui-tour-check { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } } .wui-tour-end[data-layout=center] { --wui-tour-card-lift: 0 0; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); transform-origin: center; align-items: center; gap: 8px; width: min(420px, 100vw - 16px); max-height: calc(100vh - 16px); padding: 24px; text-align: center; } .wui-tour-end[data-layout=center] .wui-tour-actions { justify-content: center; margin-top: 8px; } .wui-tour-end[data-layout=center][data-next] .wui-tour-actions { flex-direction: column; align-items: stretch; width: 100%; gap: var(--wui-space-xs); } .wui-tour-end-mark { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-success-soft); color: var(--color-success-text); } .wui-tour-end-mark>svg { width: 26px; height: 26px; } .wui-tour-end-mark path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; } .wui-tour-end-title { font-size: 18px; } .wui-tour-end-message { text-wrap: balance; } .wui-tour-end-next { text-wrap: balance; } .wui-tour-end-button { min-width: 120px; } @media (prefers-reduced-motion: no-preference) { .wui-tour-end-mark path { animation: wui-tour-check var(--wui-duration-default) var(--wui-ease-out) calc(var(--wui-tour-card-delay, 0ms) + var(--wui-duration-fast)) both; } } `,Qe=()=>C(`tour`,w),$e=`wui-tour-media`,et=`wui-tour-media-toggle`,tt=`http://www.w3.org/2000/svg`,nt=`M6 5h4v14H6zM14 5h4v14h-4z`,rt=`M8 5v14l11-7z`,it=()=>({pause:Qe().mediaPauseLabel,play:Qe().mediaPlayLabel}),at=()=>globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`)?.matches===!0;function ot(e){let t=document.createElementNS(tt,`svg`);t.setAttribute(`viewBox`,`0 0 24 24`),t.setAttribute(`aria-hidden`,`true`),t.setAttribute(`focusable`,`false`);let n=document.createElementNS(tt,`path`);return n.setAttribute(`d`,e),t.appendChild(n),t}function st(e){let t=document.createElement(`img`);return t.setAttribute(`alt`,e.mediaAlt??``),t.setAttribute(`width`,`1280`),t.setAttribute(`height`,`720`),t.setAttribute(`loading`,`lazy`),t.setAttribute(`decoding`,`async`),t.setAttribute(`src`,e.media??``),t}function ct(e,t){let n=document.createElement(`video`);return n.muted=!0,n.setAttribute(`muted`,``),n.loop=!0,n.setAttribute(`playsinline`,``),t&&n.setAttribute(`autoplay`,``),n.setAttribute(`preload`,t?`auto`:`metadata`),e.mediaAlt&&n.setAttribute(`aria-label`,e.mediaAlt),e.mediaPoster&&n.setAttribute(`poster`,e.mediaPoster),n.setAttribute(`src`,e.media??``),n}function lt(e,t){let n=document.createElement(`button`);n.type=`button`,n.className=et;let r=(r=!e.paused)=>{n.setAttribute(`aria-label`,r?t.pause:t.play),n.replaceChildren(ot(r?nt:rt))};return e.addEventListener(`play`,()=>r()),e.addEventListener(`pause`,()=>r()),n.addEventListener(`click`,()=>{e.paused?e.play()?.catch(()=>r()):e.pause()}),r(e.hasAttribute(`autoplay`)),n}function ut(e){let t=e.querySelector(`:scope > .${$e}`);if(!t)return;let n=t.querySelector(`video`);n&&(n.pause(),n.removeAttribute(`src`),n.load()),t.remove()}function dt(e,t,n=it()){if(ut(e),!t.media){e.removeAttribute(`data-media`);return}let r=document.createElement(`div`);if(r.className=$e,t.mediaType===`video`){let e=ct(t,!at());r.append(e,lt(e,n))}else r.appendChild(st(t));e.prepend(r),e.setAttribute(`data-media`,t.target?`step`:`welcome`)}var ft=`data-wui-tour-open`,pt=()=>C(`tour`,w);function mt(e){let t=new Set;return{drop:e=>{t.add(e)},position:e=>{t.delete(e);let n=0;for(let r of t)r<e&&n++;return e+1-n},total:()=>e-t.size}}function ht(e,t,n){return(e.getAttribute(`progress-label`)||pt().progressLabel).replace(/\{(current|total)\}/g,(e,r)=>String(r===`current`?t:n))}function gt(e,{text:t,position:n,total:r}){let i=e.querySelector(`.wui-tour-position`);if(!(i instanceof HTMLElement))throw Error(`tour position label missing`);i.textContent=t;let a=e.querySelector(`.wui-tour-progress-bar`);if(!a){let t=e.ownerDocument,n=t.createElement(`div`);n.className=`wui-tour-progress`,n.setAttribute(`aria-hidden`,`true`),a=t.createElement(`div`),a.className=`wui-tour-progress-bar`,n.append(a),i.before(n)}let o=a.children;for(;o.length<r;){let t=e.ownerDocument.createElement(`span`);t.className=`wui-tour-progress-segment`,a.append(t)}for(;o.length>r;){let e=a.lastElementChild;if(!e)throw Error(`progress bar segment missing`);e.remove()}for(let e=0;e<o.length;e++){let t=o[e];if(!t)throw Error(`progress bar segment missing`);t.toggleAttribute(`data-filled`,e<n)}}var _t=`wui-tour-seen:`;function vt(e=_t,t=globalThis.localStorage){return{isSeen:async n=>t.getItem(e+n)===`1`,markSeen:async n=>{t.setItem(e+n,`1`)}}}var yt=`wui-tour-step`,bt=`wui-tour-host`,Y=`data-tracking`,X=()=>C(`tour`,w),xt=()=>({back:X().backLabel,next:X().nextLabel,skip:X().skipLabel,done:X().doneLabel,mediaPause:X().mediaPauseLabel,mediaPlay:X().mediaPlayLabel,endTitle:X().endTitle,endMessage:X().endMessage,endButton:X().doneLabel}),St={back:`back-label`,next:`next-label`,skip:`skip-label`,done:`done-label`,mediaPause:`media-pause-label`,mediaPlay:`media-play-label`,endTitle:`end-title`,endMessage:`end-message`,endButton:`end-button`},Ct=[[`media`,`media`],[`mediaAlt`,`media-alt`],[`mediaPoster`,`media-poster`],[`mediaType`,`media-type`],[`advanceOn`,`advance-on`],[`actionLabel`,`action-label`]],wt={index:null,position:null,total:null},Tt=0,Et=e=>!e?.isConnected||getComputedStyle(e).visibility===`hidden`?!1:e.getClientRects().length>0,Dt=e=>e instanceof HTMLElement&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));function Z(e,t,n){let r=e.querySelector(t);if(!(r instanceof n))throw Error(`<wui-tour> layer has no ${t}`);return r}var Ot=()=>{let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e},Q=null;function kt(e){Q||(Q=new CSSStyleSheet,Q.replaceSync(Ze)),e.adoptedStyleSheets=[Q]}var At=class extends r{seenStore;onBeforeStep;_run;_running;_layer;_outer;_shadow;_unbindAdvance;_ending;_seenMark;_steps=[];_progress=mt(0);_firstIndex=0;_returnFocus=null;_current=null;_moving=!1;_card=null;_spot=null;_live=null;_onKey=null;_onFocusIn=null;static get observedAttributes(){return[`open`]}constructor(){super(),this.seenStore=null,this.onBeforeStep=null,this._run=0,this._running=!1,this._layer=null,this._outer=null,this._shadow=null,this._unbindAdvance=null,this._ending=null,this._seenMark=null}connectedCallback(){this.hasAttribute(`open`)&&this.start()}disconnectedCallback(){this.stop()}attributeChangedCallback(e,t,n){e===`open`&&this.isConnected&&(n===null?this.stop():this.start())}get tourId(){return this.getAttribute(`tour-id`)||``}set tourId(e){e==null||e===``?this.removeAttribute(`tour-id`):this.setAttribute(`tour-id`,String(e))}get isolated(){return this.hasAttribute(`isolated`)}set isolated(e){this.toggleAttribute(`isolated`,e===!0||e===``||e===`true`)}_stepList(){return Array.from(this.querySelectorAll(`:scope > ${yt}`),e=>{let t={target:e.getAttribute(`target`)||``,title:e.getAttribute(`title`)||void 0,description:(e.textContent??``).trim()};for(let[n,r]of Ct)e.hasAttribute(r)&&(t[n]=e.getAttribute(r)??``);return t})}_stepAt(e){let t=this._steps[e];if(!t)throw RangeError(`<wui-tour> has no step ${e}; it has ${this._steps.length}.`);return t}_store(){return this.seenStore?this.seenStore:this.getAttribute(`seen-store`)===`local`?vt():globalThis.window?.WUI?.tour?.seenStore||null}_label(e){return this.getAttribute(St[e])||xt()[e]}_endDialogText(){if(this.getAttribute(`end-dialog`)===`false`)return null;let e=(this.getAttribute(`end-next-label`)??``).trim(),t=(this.getAttribute(`end-next-href`)??``).trim();return{title:this._label(`endTitle`),message:this._label(`endMessage`),button:this._label(`endButton`),nextLabel:e,nextHref:t}}_markSeen(e){let t=this._store();return t?t.markSeen(this.tourId,e):null}async start(){if(this._running)return;this._running=!0;let e=++this._run;this.hasAttribute(`open`)||this.setAttribute(`open`,``);try{await this._start(e)}catch(t){throw e===this._run&&(this._running=!1),t}}async _start(e){this._steps=this._stepList(),this._progress=mt(this._steps.length);let t=this._store();if(t&&!this.tourId)throw Error(`<wui-tour> needs a tour-id to use a seen store.`);if(t&&await t.isSeen(this.tourId)){e===this._run&&this._finish(`alreadySeen`);return}for(let[e,t]of this._steps.entries())t.target&&!Et(document.querySelector(t.target))&&this._progress.drop(e);this._returnFocus=document.activeElement;let n=await this._locate(0,1,e);e===this._run&&(n?(this._firstIndex=n.index,this.dispatchEvent(new CustomEvent(`wui-tour:start`,{bubbles:!0,detail:{total:this._progress.total()}})),e===this._run&&(this._build(),this._show(n))):this._finish(`noTargets`))}next(){return this._move(1)}back(){return!this._current||this._current.index<=this._firstIndex?Promise.resolve():this._move(-1)}async goTo(e){if(this._current){if(!Number.isInteger(e)||e<0||e>=this._steps.length)throw RangeError(`<wui-tour> has no step ${e}; it has ${this._steps.length}.`);await this._go(e,1)}}stop(){this._running&&(this._run++,this._teardown(),this._running=!1,this.hasAttribute(`open`)&&this.removeAttribute(`open`))}async _locate(e,t,n){let r=this._steps;for(let i=e;i>=0&&i<r.length;i+=t){let e=r[i];if(!e)break;if(await this._beforeStep(e,i),n!==this._run)return null;if(!e.target)return{index:i,target:null};let t=document.querySelector(e.target),a=t instanceof HTMLElement||t instanceof SVGElement?t:null;if(Et(a))return this._progress.position(i),{index:i,target:a};this._progress.drop(i)}return null}async _beforeStep(e,t){let n=[];this.dispatchEvent(new CustomEvent(`wui-tour:beforestep`,{bubbles:!0,detail:{step:e,index:t,wait:e=>n.push(e)}})),await Promise.all(n),typeof this.onBeforeStep==`function`&&await this.onBeforeStep(e,t)}_build(){let e=`wui-tour-${++Tt}`,t=document.createElement(`div`);t.className=`wui-tour-layer`,t.innerHTML=` <div class="wui-tour-spot" aria-hidden="true"></div> <div class="wui-tour-card" role="dialog" tabindex="-1" aria-labelledby="${e}-title" aria-describedby="${e}-text"> <p class="wui-tour-position"></p> <h2 class="wui-tour-title" id="${e}-title"></h2> <p class="wui-tour-text" id="${e}-text"></p> <div class="wui-tour-actions"> <button type="button" class="btn btn-sm btn-link wui-tour-skip"></button> <div class="wui-tour-nav"> <button type="button" class="${u(`neutral`,`outline`,`sm`)} wui-tour-back" data-wui="${o}"></button> <button type="button" class="${u(`primary`,`solid`,`sm`)} wui-tour-next" data-wui="${o}"></button> </div> </div> </div> <div class="visually-hidden" role="status" aria-live="polite"></div>`;let n=t;this._shadow=null,this.isolated&&(n=document.createElement(bt),this._shadow=n.attachShadow({mode:`open`}),kt(this._shadow),this._shadow.appendChild(t)),n.setAttribute(`popover`,`manual`),S(document).appendChild(n),document.documentElement.setAttribute(ft,``),this._outer=n,this._layer=t;let r=Z(t,`.wui-tour-spot`,HTMLDivElement),a=Z(t,`.wui-tour-card`,HTMLDivElement),s=Z(t,`[role=status]`,HTMLElement);this._spot=r,this._card=a,this._live=s,Z(a,`.wui-tour-skip`,HTMLElement).addEventListener(`click`,()=>this._close(`skipped`,`button`)),Z(a,`.wui-tour-back`,HTMLElement).addEventListener(`click`,()=>this._move(-1)),Z(a,`.wui-tour-next`,HTMLElement).addEventListener(`click`,()=>this._move(1));let c=e=>this._key(e);this._onKey=c;let l=e=>{let t=this._layer;if(!t||this._ending)return;let n=this._current,r=n?this._stepAt(n.index):null;if(!(e.target instanceof Node))throw Error(`<wui-tour> saw a focus change from a non-node target`);De(t,r,n?.target??null,e.target)||a.focus()};this._onFocusIn=l,document.addEventListener(`keydown`,c,!0),this._shadow||document.addEventListener(`focusin`,l),i(n,()=>this._follow())}_active(){return this._shadow?this._shadow.activeElement:document.activeElement}_raise(){let e=this._outer;if(!e)throw Error(`<wui-tour> raises a step before its host is built`);let t=S(this.ownerDocument);e.parentElement!==t&&t.appendChild(e),se(e)}_show(e){this._current=e;let{index:t,target:n}=e,r=this._stepAt(t),i=this._layer,a=this._spot,o=this._card,s=this._live;if(!i||!a||!o||!s)throw Error(`<wui-tour> shows a step before its layer is built`);this._raise();let c=this._progress.position(t),l=this._progress.total(),u=c===l&&!this._endDialogText(),d=ht(this,c,l);gt(o,{text:d,position:c,total:l}),dt(o,r,{pause:this._label(`mediaPause`),play:this._label(`mediaPlay`)}),o.toggleAttribute(`data-welcome`,!n);let f=j(this,{layer:i,spot:a,card:o},r,n),p=Z(o,`.wui-tour-title`,HTMLElement);p.textContent=r.title||``,p.hidden=!r.title,Z(o,`.wui-tour-text`,HTMLElement).textContent=r.description||``,Z(o,`.wui-tour-skip`,HTMLElement).textContent=this._label(`skip`);let m=Z(o,`.wui-tour-back`,HTMLElement);m.textContent=this._label(`back`),m.hidden=t<=this._firstIndex,Z(o,`.wui-tour-next`,HTMLElement).textContent=this._label(u?`done`:`next`);let h=[d,r.title,r.description].filter(Boolean).join(`. `);s.textContent=f?[h,f].join(/[.!?]$/.test(h)?` `:`. `):h,Be(o,n),a.removeAttribute(Y),this._place(),I(o),this._unbindAdvance?.(),this._unbindAdvance=Ee(r,n,()=>this._move(1));let g=this._active();(g!==null&&o.contains(g)?!(g instanceof HTMLElement&&g.hidden):this._shadow!==null&&Dt(Ot()))||o.focus(),this.dispatchEvent(new CustomEvent(`wui-tour:step`,{bubbles:!0,detail:{step:r,index:t,position:c,total:l}}))}_place(){if(!this._current||!this._layer)return;let e=this._spot,t=this._card;if(!e||!t)throw Error(`<wui-tour> places a step before its layer is built`);K(e,t,this._current.target)}_follow(){if(!this._current||!this._layer||this._ending)return;let e=this._spot;if(!e)throw Error(`<wui-tour> follows a step before its spot is built`);let t=e.style.cssText;this._place(),e.style.cssText!==t&&e.setAttribute(Y,``)}async _move(e){this._current&&await this._go(this._current.index+e,e)}async _go(e,t){if(!this._current||this._moving)return;this._moving=!0;let n=this._run;try{let r=await this._locate(e,t,n);if(n!==this._run)return;if(r){let e=this._card;if(!e)throw Error(`<wui-tour> moved with no card showing`);let t=L(e);if(t&&await t,n!==this._run)return;this._show(r)}else if(t>0){let e=this._endDialogText(),t=e?await this._showEnd(e):`done`;if(n!==this._run)return;let r=await this._close(t===`next`?`next`:`finished`);if(t===`next`&&r&&e){let t=this.ownerDocument.defaultView;if(!t)throw Error(`<wui-tour> has no window to follow its next link in`);t.location.assign(e.nextHref)}}}finally{this._moving=!1}}_showEnd(e){this._unbindAdvance?.(),this._unbindAdvance=null;let t=this._layer,n=this._spot,r=this._card;if(!t||!n||!r)throw Error(`<wui-tour> ends a tour before its layer is built`);return j(this,{layer:t,spot:n,card:r},null,null),n.removeAttribute(Y),this._ending=new AbortController,this._seenMark=this._markSeen(`finished`),Xe(t,e,this._ending.signal)}_key(e){if(!(!this._layer||this._ending||e.altKey||e.ctrlKey||e.metaKey)){if(e.key===`Escape`)e.preventDefault(),e.stopPropagation(),this._close(`skipped`,`escape`);else if(e.key===`ArrowRight`||e.key===`ArrowLeft`){if(Dt(e.composedPath?.()[0]??e.target))return;if(e.preventDefault(),e.key===`ArrowRight`)this._move(1);else{let e=this._current;if(!e)throw Error(`<wui-tour> moved back with no step showing`);e.index>this._firstIndex&&this._move(-1)}}else if(e.key===`Tab`&&!this._shadow){let t=this._current,n=this._card;if(!t||!n)throw Error(`<wui-tour> cycled focus with no step showing`);Oe(e,{card:n,active:this._active(),step:this._stepAt(t.index),target:t.target})}}}_teardown(){if(!this._layer)return;this._onKey&&document.removeEventListener(`keydown`,this._onKey,!0),this._onFocusIn&&document.removeEventListener(`focusin`,this._onFocusIn);let e=!this._shadow||this._shadow.activeElement!==null||!document.activeElement||document.activeElement===document.body;this._unbindAdvance?.(),this._unbindAdvance=null,this._ending?.abort(),this._ending=null,this._seenMark=null;let t=this._outer;if(a(t),!t)throw Error(`<wui-tour> has a layer with no host to remove`);Ie(t),document.documentElement.removeAttribute(ft),this._outer=null,this._shadow=null,this._layer=null,this._current=null;let n=this._returnFocus;this._returnFocus=null,e&&n?.isConnected&&(n instanceof HTMLElement||n instanceof SVGElement)&&n.focus()}async _close(e,t=null){let n=this._run,r=this._current,i=r?{index:r.index,position:this._progress.position(r.index),total:this._progress.total()}:wt,a=this._seenMark;this._teardown();let o=e===`next`?`finished`:e,s=!1;try{n===this._run&&await(a??this._markSeen(o)),s=n===this._run}finally{this._finish(e,i,t)}return s}_finish(e,t=wt,n=null){this._run++,this._running=!1,this.hasAttribute(`open`)&&this.removeAttribute(`open`),this.dispatchEvent(new CustomEvent(`wui-tour:close`,{bubbles:!0,detail:{reason:e,...t,via:n}}))}},$=class extends r{constructor(){super(),this.shadowRoot||this.attachShadow({mode:`open`})}};return t(`wui-tour`,At),t(`wui-tour-step`,$),e.WuiTourStep=$,e})({});
@@ -0,0 +1 @@
1
+ var e={activeLabel:`Current`,backLabel:`Back`,closeLabel:`Close`,doneLabel:`Done`,errorLabel:`Error`,finishLabel:`Finish`,label:`Progress`,nextLabel:`Next`,pendingLabel:`To do`,skipLabel:`Skip`,skippedLabel:`Skipped`,stepOfText:`Step {position} of {total}`,stepText:`Step {position}`};export{e as t};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/ui-elements",
3
- "version": "0.165.0",
3
+ "version": "0.168.0",
4
4
  "description": "Webority framework-agnostic UI custom elements (<wui-*>): the single implementation of the interactive components, styled by @webority/theme. Used natively in Razor and wrapped by @webority/ui-react.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -27,6 +27,11 @@
27
27
  "types": "./types/helpers.d.ts",
28
28
  "default": "./dist/helpers.js"
29
29
  },
30
+ "./text": {
31
+ "types": "./types/text/index.d.ts",
32
+ "default": "./dist/text.js"
33
+ },
34
+ "./text/en.json": "./dist/text/en.json",
30
35
  "./server": {
31
36
  "types": "./types/server/index.d.ts",
32
37
  "default": "./dist/server.js"
@@ -258,10 +263,10 @@
258
263
  "@tiptap/starter-kit": "3.31.4",
259
264
  "@types/node": "25.6.0",
260
265
  "@vitest/coverage-v8": "5.1.0",
261
- "@webority/biome-config": "0.165.0",
262
- "@webority/markdown-core": "0.165.0",
263
- "@webority/theme": "0.165.0",
264
- "@webority/web-core": "0.165.0",
266
+ "@webority/biome-config": "0.168.0",
267
+ "@webority/markdown-core": "0.168.0",
268
+ "@webority/theme": "0.168.0",
269
+ "@webority/web-core": "0.168.0",
265
270
  "echarts": "6.1.0",
266
271
  "jsdom": "30.1.1",
267
272
  "libphonenumber-js": "^1.13.9",
@@ -271,7 +276,7 @@
271
276
  "vitest": "5.1.0"
272
277
  },
273
278
  "scripts": {
274
- "build": "node scripts/check-wui-assembly.ts && tsc -p tsconfig.json && vite build && vite build -c vite.phone.config.ts && vite build -c vite.consent-banner.config.ts && vite build -c vite.lead-popup.config.ts && vite build -c vite.tour.config.ts && vite build -c vite.file-viewer.config.ts && vite build -c vite.chart.config.ts && vite build -c vite.calendar.config.ts && vite build -c vite.rich-text.config.ts && node build-global.ts && vite build -c vite.razor.config.ts && node ../../scripts/sync-rcl-assets.mjs elements && node scripts/emit-types.ts clean && tsc -p tsconfig.build.json && node scripts/emit-types.ts flatten",
279
+ "build": "node scripts/check-wui-assembly.ts && tsc -p tsconfig.json && vite build && vite build -c vite.phone.config.ts && vite build -c vite.consent-banner.config.ts && vite build -c vite.lead-popup.config.ts && vite build -c vite.tour.config.ts && vite build -c vite.file-viewer.config.ts && vite build -c vite.chart.config.ts && vite build -c vite.calendar.config.ts && vite build -c vite.rich-text.config.ts && node build-global.ts && vite build -c vite.razor.config.ts && node ../../scripts/sync-rcl-assets.mjs elements && node scripts/emit-types.ts clean && tsc -p tsconfig.build.json && node scripts/emit-types.ts flatten && node -e \"const f=require('node:fs');f.mkdirSync('dist/text',{recursive:true});f.copyFileSync('../../text/web.en.json','dist/text/en.json')\"",
275
280
  "typecheck": "tsc -p tsconfig.json",
276
281
  "test": "vitest run",
277
282
  "test:razor-js": "vitest run --config vitest.razor-js.config.ts",
@@ -1,12 +1,4 @@
1
1
  import { ElementBase } from "./elementBase.ts";
2
- /** The words the element says on its own. */
3
- export declare const CAROUSEL_TEXT: Readonly<{
4
- slide: (n: number, total: number) => string;
5
- status: (first: number, last: number, total: number) => string;
6
- dot: "Go to slide";
7
- pause: "Pause";
8
- play: "Play";
9
- }>;
10
2
  export declare class WuiCarousel extends ElementBase {
11
3
  _page: number;
12
4
  _pages: number;
@@ -66,7 +66,7 @@ export declare class WuiChart extends ElementBase {
66
66
  _renderLegend(spec: NormalizedSpec | null, show: boolean): void;
67
67
  _renderTable(spec: NormalizedSpec): void;
68
68
  _draw(): void;
69
- _themeChanged(): void;
69
+ _themeChanged(printing?: boolean): void;
70
70
  _resized(): void;
71
71
  _toggle(key: string | null | undefined): void;
72
72
  _onKey(e: KeyboardEvent): void;
@@ -53,7 +53,7 @@ export declare class WuiCommentThread extends ElementBase {
53
53
  send: string;
54
54
  opener: HTMLElement;
55
55
  }): void;
56
- _button(tone: string, variant: string, size: "sm" | "md" | "lg", action: string, text: string): HTMLButtonElement;
56
+ _button(tone: string, variant: string, size: "sm" | "md" | "lg", action: string, label: string): HTMLButtonElement;
57
57
  _closeSlot(slot: HTMLElement | null, restoreFocus: boolean): void;
58
58
  _askDelete(comment: Element | null): void;
59
59
  _closeConfirm(comment: Element | null, restoreFocus: boolean): void;
@@ -25,7 +25,7 @@ export declare class WuiDrawer extends ElementBase {
25
25
  _onPointerUp: (e: PointerEvent) => void;
26
26
  _onKeyDown: (e: KeyboardEvent) => void;
27
27
  _onTransitionEnd: (e: TransitionEvent) => void;
28
- _announced: boolean;
28
+ _settled: boolean | null;
29
29
  static get observedAttributes(): string[];
30
30
  constructor();
31
31
  connectedCallback(): void;
@@ -10,15 +10,18 @@ export declare class WuiEntryGrid extends ElementBase {
10
10
  private _onKeyDown;
11
11
  private _onFocusIn;
12
12
  private _onClick;
13
+ private _pendingCell;
13
14
  private _ready;
15
+ private _onPointerDown;
16
+ private _onPaste;
14
17
  constructor();
15
18
  static get observedAttributes(): string[];
16
19
  connectedCallback(): void;
17
20
  disconnectedCallback(): void;
18
21
  attributeChangedCallback(_name: string, oldValue: string | null, newValue: string | null): void;
19
- _within(node: Element | null): node is Element;
22
+ _owns(node: EventTarget | null): boolean;
20
23
  _rows(): HTMLElement[];
21
- _rowOf(target: EventTarget | null): HTMLElement | null;
24
+ _ownRow(target: EventTarget | null): HTMLElement | null;
22
25
  _emit(name: string, detail: object): void;
23
26
  _focusActiveRow(): void;
24
27
  _keyDown(e: KeyboardEvent): void;
@@ -11,14 +11,6 @@ export interface MentionRef {
11
11
  id: string;
12
12
  label: string;
13
13
  }
14
- export interface MentionText {
15
- listName: string;
16
- searching: string;
17
- noMatch: string;
18
- searchFailed: string;
19
- found: (n: number) => string;
20
- mentioned: (label: string) => string;
21
- }
22
14
  interface MentionQuery {
23
15
  start: number;
24
16
  end: number;
@@ -28,8 +20,6 @@ interface MentionQuery {
28
20
  export declare const MENTION_MAX_RESULTS: number;
29
21
  /** The longest name fragment after "@" that still searches; past it the list closes. */
30
22
  export declare const MENTION_MAX_QUERY: number;
31
- /** The words the element says on its own. The Razor tag helper renders the same list name. */
32
- export declare const MENTION_TEXT: Readonly<MentionText>;
33
23
  /**
34
24
  * Builds the shell into `host` from its attributes. Exported so the comment thread adds a box the
35
25
  * same way; React and Razor never call it (Razor renders the shell, React leaves the host empty).
@@ -1,18 +1,7 @@
1
1
  import { ElementBase } from "./elementBase.ts";
2
2
  import { createProgress } from "./tourProgress.ts";
3
3
  import { type SeenOutcome, type SeenStore } from "./tourSeenStore.ts";
4
- declare const DEFAULT_LABELS: {
5
- back: string;
6
- next: string;
7
- skip: string;
8
- done: string;
9
- mediaPause: string;
10
- mediaPlay: string;
11
- endTitle: string;
12
- endMessage: string;
13
- endButton: string;
14
- };
15
- type LabelKey = keyof typeof DEFAULT_LABELS;
4
+ type LabelKey = "back" | "next" | "skip" | "done" | "mediaPause" | "mediaPlay" | "endTitle" | "endMessage" | "endButton";
16
5
  type TourStep = {
17
6
  target: string;
18
7
  title?: string | undefined;
@@ -8,19 +8,6 @@ export declare const AVATAR_OUTPUT_SIZE = 512;
8
8
  export declare const AVATAR_OUTPUT_TYPE = "image/webp";
9
9
  /** The two live previews in the crop dialog, in px. */
10
10
  export declare const AVATAR_PREVIEW_SIZES: number[];
11
- export declare const AVATAR_TEXT: {
12
- dialogTitle: string;
13
- dialogSubtitle: string;
14
- save: string;
15
- cancel: string;
16
- choose: string;
17
- change: string;
18
- camera: string;
19
- remove: string;
20
- unreadable: string;
21
- heicUnreadable: string;
22
- cropFailed: string;
23
- };
24
11
  /** Is this a HEIC/HEIF photo? Windows reports an empty type for one, so the name decides then. */
25
12
  export declare function isHeicFile(file: {
26
13
  name?: string;
@@ -1,5 +1,3 @@
1
- export declare const MONTHS: string[];
2
- export declare const WEEKDAYS: string[];
3
1
  /**
4
2
  * The weekday a calendar's week starts on, 0 = Sunday to 6 = Saturday: the element's own
5
3
  * `first-day` attribute, else the theme's `--wui-first-day` token (inherited, so a product, a
@@ -58,6 +58,7 @@ export interface ChartHandle {
58
58
  focusPoint(seriesIndex: number, row: number): void;
59
59
  clearFocus(): void;
60
60
  resize(): void;
61
+ flush(): void;
61
62
  onSelect(listener: (hit: {
62
63
  seriesIndex: number;
63
64
  dataIndex: number;
@@ -251,10 +251,6 @@ export declare const CANVAS_POINT_THRESHOLD: number;
251
251
  export declare const DEFAULT_HEIGHT: number;
252
252
  /** Rows the table shows; the CSV always carries every row. */
253
253
  export declare const TABLE_ROW_LIMIT: number;
254
- export declare const OTHER_LABEL: string;
255
- export declare const DEFAULT_EMPTY_TEXT: string;
256
- export declare const DEFAULT_ERROR_TEXT: string;
257
- export declare const DEFAULT_LOADING_TEXT: string;
258
254
  /** True for a type that draws exactly one series. */
259
255
  export declare const isSingleSeries: (type: ChartType) => boolean;
260
256
  /** Warn once when `value` is outside `allowed`; nullish means omitted and passes. */
@@ -1,40 +1,5 @@
1
- import type { HttpKind } from "./server/wuiHttp.ts";
2
1
  export type CommentIntent = "post" | "reply" | "edit" | "delete" | "react";
3
2
  /** The reactions offered when the thread names none. */
4
3
  export declare const COMMENT_REACTIONS: readonly string[];
5
4
  /** What a change asks the server or the host to do. */
6
5
  export declare const COMMENT_INTENTS: readonly CommentIntent[];
7
- export declare const FAILED_CLIENT = "This did not go through. Refresh the page and try again.";
8
- export declare const FAILED_SERVER = "Something went wrong on our side. Try again in a moment.";
9
- /** The words of a thread. React AppCommentThread and the Razor tag helper render the same. */
10
- export declare const COMMENT_TEXT: Readonly<{
11
- listName: "Comments";
12
- empty: "No comments yet.";
13
- deleted: "This comment was deleted.";
14
- edited: "Edited";
15
- reply: "Reply";
16
- edit: "Edit";
17
- delete: "Delete";
18
- cancel: "Cancel";
19
- save: "Save";
20
- post: "Comment";
21
- confirmDelete: "Delete this comment?";
22
- composerLabel: "Add a comment";
23
- composerPlaceholder: "Write a comment. Type @ to mention someone.";
24
- replyLabel: (author: string) => string;
25
- replyPlaceholder: "Write a reply";
26
- editLabel: "Edit comment";
27
- repliesName: (author: string) => string;
28
- reactions: "Reactions";
29
- addReaction: "Add a reaction";
30
- pickerName: "Choose a reaction";
31
- emptyBody: "Write something first.";
32
- done: Readonly<{
33
- post: "Comment posted.";
34
- reply: "Reply posted.";
35
- edit: "Comment saved.";
36
- delete: "Comment deleted.";
37
- react: "";
38
- }>;
39
- failed: Partial<Record<HttpKind, string>>;
40
- }>;
@@ -15,14 +15,12 @@ export declare const ROW_HEIGHTS: {
15
15
  cozy: number;
16
16
  compact: number;
17
17
  };
18
- export declare const DATA_TABLE_TEXT: {
19
- resize: (label: string) => string;
20
- width: (px: number) => string;
21
- rows: (n: number) => string;
22
- saved: (label: string) => string;
23
- savedMany: (n: number) => string;
24
- notSaved: (label: string, reason?: string) => string;
25
- };
18
+ export declare const resizeName: (label: string) => string;
19
+ export declare const widthText: (px: number) => string;
20
+ export declare const groupRowsText: (n: number) => string;
21
+ export declare const savedText: (label: string) => string;
22
+ export declare const savedManyText: (n: number) => string;
23
+ export declare const notSavedText: (label: string, reason?: string) => string;
26
24
  /** Formats a group's row count the way the group header shows it (Indian digit grouping). */
27
25
  export declare const groupCount: (n: number) => string;
28
26
  /** Clamps a dragged or typed width to the minimum and rounds it to whole pixels. */
@@ -1,4 +1,4 @@
1
- import { COMMENT_INTENTS, COMMENT_REACTIONS, COMMENT_TEXT } from "../commentText.ts";
1
+ import { COMMENT_INTENTS, COMMENT_REACTIONS } from "../commentText.ts";
2
2
  import { WuiCommentThread } from "../WuiCommentThread.ts";
3
3
  import "./mention-input.ts";
4
- export { COMMENT_INTENTS, COMMENT_REACTIONS, COMMENT_TEXT, WuiCommentThread };
4
+ export { COMMENT_INTENTS, COMMENT_REACTIONS, WuiCommentThread };
@@ -1,3 +1,3 @@
1
1
  import { WuiDataTable } from "../WuiDataTable.ts";
2
- export { COLUMN_MAX_WIDTH, COLUMN_MIN_WIDTH, clampColumnWidth, DATA_TABLE_TEXT, groupCount, groupItems, identityCell, measureRows, PIN_AT_VAR, PIN_SIDES, pinAtValue, pinClasses, pinOffsetVar, planPins, playRowMoves, RESIZE_STEP, RESIZE_STEP_LARGE, ROW_HEIGHTS, ROW_MOVE_LIMIT, ROW_MOVE_MS, ROW_SAVE_ATTR, ROW_SAVE_ERROR_CLASS, ROW_SAVE_STATES, readColumnWidths, rowLabel, rowOrderChanged, saveOutcomeText, setRowSaveState, settledRows, VIRTUAL_OVERSCAN, virtualRange, writeColumnWidths, } from "../dataTable.ts";
2
+ export { COLUMN_MAX_WIDTH, COLUMN_MIN_WIDTH, clampColumnWidth, groupCount, groupItems, identityCell, measureRows, PIN_AT_VAR, PIN_SIDES, pinAtValue, pinClasses, pinOffsetVar, planPins, playRowMoves, RESIZE_STEP, RESIZE_STEP_LARGE, ROW_HEIGHTS, ROW_MOVE_LIMIT, ROW_MOVE_MS, ROW_SAVE_ATTR, ROW_SAVE_ERROR_CLASS, ROW_SAVE_STATES, readColumnWidths, rowLabel, rowOrderChanged, saveOutcomeText, setRowSaveState, settledRows, VIRTUAL_OVERSCAN, virtualRange, writeColumnWidths, } from "../dataTable.ts";
3
3
  export { WuiDataTable };
@@ -1,3 +1,3 @@
1
- import { INLINE_EDIT_SAVED_MS, INLINE_EDIT_TEXT, INLINE_EDIT_TYPES, inlineEditText } from "../inlineEditText.ts";
1
+ import { INLINE_EDIT_SAVED_MS, INLINE_EDIT_TYPES, inlineEditText } from "../inlineEditText.ts";
2
2
  import { WuiInlineEdit } from "../WuiInlineEdit.ts";
3
- export { INLINE_EDIT_SAVED_MS, INLINE_EDIT_TEXT, INLINE_EDIT_TYPES, inlineEditText, WuiInlineEdit };
3
+ export { INLINE_EDIT_SAVED_MS, INLINE_EDIT_TYPES, inlineEditText, WuiInlineEdit };
@@ -1,3 +1,3 @@
1
1
  import { MENTION_ID_PATTERN, mentionLabel, mentionTextFromValue, mentionValueFromText } from "../mentionText.ts";
2
- import { MENTION_MAX_QUERY, MENTION_MAX_RESULTS, MENTION_TEXT, WuiMentionInput } from "../WuiMentionInput.ts";
3
- export { MENTION_ID_PATTERN, MENTION_MAX_QUERY, MENTION_MAX_RESULTS, MENTION_TEXT, mentionLabel, mentionTextFromValue, mentionValueFromText, WuiMentionInput, };
2
+ import { MENTION_MAX_QUERY, MENTION_MAX_RESULTS, WuiMentionInput } from "../WuiMentionInput.ts";
3
+ export { MENTION_ID_PATTERN, MENTION_MAX_QUERY, MENTION_MAX_RESULTS, mentionLabel, mentionTextFromValue, mentionValueFromText, WuiMentionInput, };
@@ -11,8 +11,20 @@ export declare const MONEY_UNITS: readonly MoneyUnit[];
11
11
  export declare const DURATION_UNITS: readonly DurationUnit[];
12
12
  export declare const DATE_PATTERNS: readonly DatePattern[];
13
13
  export declare function isMoneyUnit(value: string): value is MoneyUnit;
14
- /** Shown for a missing value: the house placeholder, a plain hyphen. */
15
- export declare const EMPTY_VALUE: string;
14
+ /** The house placeholder for a missing value, a plain hyphen, from the text bundle. */
15
+ export declare const emptyValueLabel: () => string;
16
+ declare const WEEKDAY_KEYS: {
17
+ readonly short: readonly ["sunShortLabel", "monShortLabel", "tueShortLabel", "wedShortLabel", "thuShortLabel", "friShortLabel", "satShortLabel"];
18
+ readonly long: readonly ["sundayLabel", "mondayLabel", "tuesdayLabel", "wednesdayLabel", "thursdayLabel", "fridayLabel", "saturdayLabel"];
19
+ readonly min: readonly ["sunMinLabel", "monMinLabel", "tueMinLabel", "wedMinLabel", "thuMinLabel", "friMinLabel", "satMinLabel"];
20
+ };
21
+ /** The short month name, 0 = January, as in Sep. */
22
+ export declare const monthLabel: (i: number) => string;
23
+ /** The long month name, 0 = January: "September". */
24
+ export declare const monthLongLabel: (i: number) => string;
25
+ export type WeekdayStyle = keyof typeof WEEKDAY_KEYS;
26
+ /** A weekday name, 0 = Sunday, in the short, long or two-letter form. */
27
+ export declare function weekdayLabel(i: number, style: WeekdayStyle): string;
16
28
  /** The most fraction digits a format may ask for; Intl.NumberFormat throws past its own limit. */
17
29
  export declare const MAX_DECIMALS: number;
18
30
  /**
@@ -106,7 +118,7 @@ export declare function formatValue(value: unknown, format?: FormatOptions): str
106
118
  */
107
119
  export declare function compactFormatOf(format?: FormatOptions): FormatOptions;
108
120
  /**
109
- * House date-time, "21-Sep-2026, 3:30 PM", in timeZone (default "Asia/Kolkata"); EMPTY_VALUE for null or an invalid date.
121
+ * House date-time, "21-Sep-2026, 3:30 PM", in timeZone (default "Asia/Kolkata"); the empty-value label for null or an invalid date.
110
122
  *
111
123
  * @param value
112
124
  * @param options
@@ -23,30 +23,31 @@ declare global {
23
23
  modules: typeof SHARED_MODULES;
24
24
  } | undefined;
25
25
  }
26
- export { AVATAR_ACCEPT, AVATAR_MAX_SIZE_MB, AVATAR_OUTPUT_SIZE, AVATAR_OUTPUT_TYPE, AVATAR_PREVIEW_SIZES, AVATAR_TEXT, avatarCropOptions, avatarUnreadableMessage, isHeicFile, } from "../avatarPicker.ts";
26
+ export { AVATAR_ACCEPT, AVATAR_MAX_SIZE_MB, AVATAR_OUTPUT_SIZE, AVATAR_OUTPUT_TYPE, AVATAR_PREVIEW_SIZES, avatarCropOptions, avatarUnreadableMessage, isHeicFile, } from "../avatarPicker.ts";
27
27
  export { collapseSearch, initCollapsibleSearch, openSearch, SEARCH_OPEN_KEY } from "../collapsibleSearch.ts";
28
28
  export { COMMAND_SHORTCUT_ATTRIBUTE, initCommandShortcuts, isCommandChord } from "../commandShortcut.ts";
29
29
  export { COPY_FEEDBACK_MS, copyTextToClipboard } from "../copyText.ts";
30
30
  export { CURRENCY_SYMBOLS, currencyPrefix, DEFAULT_CURRENCY, isCurrencyCode } from "../currency.ts";
31
- export { COLUMN_MAX_WIDTH, COLUMN_MIN_WIDTH, clampColumnWidth, DATA_TABLE_TEXT, groupCount, groupItems, identityCell, measureRows, PIN_AT_VAR, PIN_SIDES, pinAtValue, pinClasses, pinOffsetVar, planPins, playRowMoves, RESIZE_STEP, RESIZE_STEP_LARGE, ROW_HEIGHTS, ROW_MOVE_LIMIT, ROW_MOVE_MS, ROW_SAVE_ATTR, ROW_SAVE_ERROR_CLASS, ROW_SAVE_STATES, readColumnWidths, rowLabel, rowOrderChanged, saveOutcomeText, setRowSaveState, settledRows, VIRTUAL_OVERSCAN, virtualRange, writeColumnWidths, } from "../dataTable.ts";
31
+ export { COLUMN_MAX_WIDTH, COLUMN_MIN_WIDTH, clampColumnWidth, groupCount, groupItems, identityCell, measureRows, PIN_AT_VAR, PIN_SIDES, pinAtValue, pinClasses, pinOffsetVar, planPins, playRowMoves, RESIZE_STEP, RESIZE_STEP_LARGE, ROW_HEIGHTS, ROW_MOVE_LIMIT, ROW_MOVE_MS, ROW_SAVE_ATTR, ROW_SAVE_ERROR_CLASS, ROW_SAVE_STATES, readColumnWidths, rowLabel, rowOrderChanged, saveOutcomeText, setRowSaveState, settledRows, VIRTUAL_OVERSCAN, virtualRange, writeColumnWidths, } from "../dataTable.ts";
32
32
  export { acceptDroppedFiles, attachFileDrop } from "../fileDrop.ts";
33
33
  export { acceptLabel, DEFAULT_IMAGE_ACCEPT, DEFAULT_MAX_SIZE_MB, formatFileSize, isImageFile, isImageOnlyAccept, isPdfFile, matchesAccept, validateFile, } from "../fileValidation.ts";
34
34
  export { FILTER_POPOVER_MAX_CHIPS } from "../filterPopover.ts";
35
- export { CURRENCIES, DATE_PATTERNS, DURATION_UNITS, EMPTY_VALUE, FORMAT_STYLES, formatCompact, formatCurrency, formatDate, formatDateTime, formatDuration, formatNumber, formatPercent, formatValue, IST_TIME_ZONE, MONEY_UNITS, timeZoneLabel, toInstant, } from "../formatters.ts";
35
+ export { CURRENCIES, DATE_PATTERNS, DURATION_UNITS, emptyValueLabel, FORMAT_STYLES, formatCompact, formatCurrency, formatDate, formatDateTime, formatDuration, formatNumber, formatPercent, formatValue, IST_TIME_ZONE, MONEY_UNITS, timeZoneLabel, toInstant, } from "../formatters.ts";
36
36
  export { attachInputMask, formatMasked, initInputMasks, isMaskPattern, MASK_INPUT_TYPES, MASK_NAMES, maskedPostValue, postedMasked, rawMasked, resolveMask, } from "../inputMask.ts";
37
37
  export { MENTION_ID_PATTERN, mentionedIds, mentionLabel, mentionTextFromValue, mentionValueFromText, parseMentionValue, } from "../mentionText.ts";
38
- export { groupNotificationsByDay, NOTIFICATION_COUNT_CAP, NOTIFICATION_TEXT, notificationCountText, notificationDayHeading, notificationTime, notificationTriggerLabel, notificationUnreadAnnouncement, } from "../notificationDays.ts";
38
+ export { groupNotificationsByDay, NOTIFICATION_COUNT_CAP, notificationCountText, notificationDayHeading, notificationTime, notificationTriggerLabel, notificationUnreadAnnouncement, } from "../notificationDays.ts";
39
39
  export { withTrustedLabel } from "../optionLabel.ts";
40
40
  export { applyBarBulk, BAR_BULK_IN_BAR_ATTRIBUTE, barBulkCountText, initPageBarBulk } from "../pageBarBulk.ts";
41
- export { buildPasswordRules, DEFAULT_PASSWORD_RULES, DEFAULT_REQUIREMENTS_TITLE, evaluatePassword, passwordSatisfies, } from "../passwordRules.ts";
41
+ export { buildPasswordRules, DEFAULT_PASSWORD_RULES, evaluatePassword, passwordSatisfies, } from "../passwordRules.ts";
42
42
  export { formatRelativeTime, relativeTimeTitle } from "../relativeTime.ts";
43
43
  export { attachRowDrag, DROP_OVER_CLASS, initRowDrag, ROW_DRAG_TYPE, ROW_DROP_EVENT, syncTargets, tickedKeys } from "../rowDrop.ts";
44
44
  export { attachScrollEdges, initScrollEdges, SCROLL_EDGE_SELECTOR } from "../scrollEdges.ts";
45
45
  export * from "../server/index.ts";
46
- export { ariaKeyShortcuts, inShortcutScope, isTypingTarget, LIST_KEYS, moveFocus, runShortcut, SELECT_KEY, SHORTCUT_EVENT, SHORTCUT_SCOPE_ATTRIBUTE, SHORTCUT_TEXT, SHORTCUTS_OFF_ATTRIBUTE, shortcutKey, shortcutName, shortcutsOff, } from "../shortcutKeys.ts";
46
+ export { ariaKeyShortcuts, inShortcutScope, isTypingTarget, moveFocus, runShortcut, SHORTCUT_EVENT, SHORTCUT_SCOPE_ATTRIBUTE, SHORTCUTS_OFF_ATTRIBUTE, shortcutKey, shortcutName, shortcutsOff, } from "../shortcutKeys.ts";
47
47
  export { deriveStepStatus, stepperHeaderItems } from "../stepperHeader.ts";
48
48
  export { initSubmitOnce, SUBMIT_ONCE_ATTRIBUTE } from "../submitOnce.ts";
49
- export { addRowSelectCells, addSelectColumn, attachShiftRange, createSelectHeaderCell, createSelectRowCell, createSelectSpacerCell, SELECT_ALL_LABEL, SELECT_CELL_CLASS, SELECT_ROW_LABEL, syncSelectAll, } from "../tableSelect.ts";
49
+ export { addRowSelectCells, addSelectColumn, attachShiftRange, createSelectHeaderCell, createSelectRowCell, createSelectSpacerCell, SELECT_CELL_CLASS, syncSelectAll, } from "../tableSelect.ts";
50
+ export { fillText, pluralText, readText, setText } from "../text/textStore.ts";
50
51
  export { matchSegments } from "../textMatch.ts";
51
52
  export { applyTheme, DEFAULT_THEME_EFFECT, DEFAULT_THEME_STORAGE_KEY, nextTheme, readStoredTheme, resolveTheme, storeTheme, THEME_BOOT_SCRIPT_BODY, THEME_CHANGE_EVENT, THEME_EFFECT_DURATION, THEME_EFFECTS, THEME_MODES, THEME_SWITCHING_CLASS, themeBootScript, themeKeyframes, transitionTheme, watchSystemTheme, } from "../themeTransition.ts";
52
53
  export { WHATS_NEW_READ_EVENT } from "../WuiWhatsNew.ts";