@commentkit/comment-kit 0.6.8 → 0.7.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 (339) hide show
  1. package/CHANGELOG.md +71 -2
  2. package/LICENSE +18 -2
  3. package/README.md +198 -125
  4. package/SECURITY.md +48 -0
  5. package/dist/THIRD_PARTY_NOTICES.txt +284 -0
  6. package/dist/angular.es.js +68 -3419
  7. package/dist/comment-kit.es.js +33 -3192
  8. package/dist/demo.es.js +472 -0
  9. package/dist/headless.es.js +4 -0
  10. package/dist/preact.es.js +79 -3443
  11. package/dist/qwik.es.js +1 -3474
  12. package/dist/qwik.qwik.mjs +114 -0
  13. package/dist/react.es.js +80 -28447
  14. package/dist/shared/ShadowRootContext-Bv-4aElu.js +13 -0
  15. package/dist/shared/annotation-icons-Dh-bmNYK.js +172 -0
  16. package/dist/shared/annotation-toolbar-B9SxYqoF.js +1093 -0
  17. package/dist/shared/bridge-CJoGYngu.js +177 -0
  18. package/dist/shared/button-By0hGrJK.js +505 -0
  19. package/dist/shared/button-group-Cl9CrvvU.js +93 -0
  20. package/dist/shared/comment-drawing-canvas-Dzb5YoFw.js +124 -0
  21. package/dist/shared/comment-image-lightbox-BPYJT1sB.js +183 -0
  22. package/dist/shared/comment-kit-core-BaSuMzp9.js +3381 -0
  23. package/dist/shared/comment-kit-ui-CzfdAZs2.js +20181 -0
  24. package/dist/shared/comment-screenshot-annotator-C7X-_bm6.js +151 -0
  25. package/dist/shared/comment-screenshot-overlay-wIrZrcRy.js +206 -0
  26. package/dist/shared/comment-utils-BycYTSxA.js +602 -0
  27. package/dist/shared/createReactComponent-BZHeRbD0.js +45 -0
  28. package/dist/shared/dev-export-panel-FwFVdady.js +208 -0
  29. package/dist/shared/dev-grab-DDqg0LQf.js +203 -0
  30. package/dist/shared/dist-De294MVF.js +623 -0
  31. package/dist/{core/dom-x9svfpMk.js → shared/dom-Bhf4WFtY.js} +2 -2
  32. package/dist/shared/element-selector-BhJm-NSs.js +858 -0
  33. package/dist/shared/errors-Bu5ajEmB.js +22 -0
  34. package/dist/shared/icons-nzMOLzrm.js +266 -0
  35. package/dist/shared/mount-ui--ijs8pWT.js +193 -0
  36. package/dist/{angular/pusher-Vs-W-c8I.js → shared/pusher-ipHMJnO_.js} +93 -127
  37. package/dist/shared/realtime-Dk41VwKg.js +302 -0
  38. package/dist/shared/separator-XDBsaWyw.js +4021 -0
  39. package/dist/shared/shadow-root-C5v-T8lQ.js +135 -0
  40. package/dist/shared/styles-D3yMtaec.js +2 -0
  41. package/dist/shared/useValueChanged-CrzfD8l-.js +92 -0
  42. package/dist/{angular/limits-AEqOBweE.js → shared/validation-C7QG8j7Z.js} +2 -28
  43. package/dist/{core/websocket-manager-D1_TEuy_.js → shared/websocket-manager-DhLWh3Jr.js} +90 -148
  44. package/dist/solid.es.js +63 -3427
  45. package/dist/svelte.es.js +78 -3442
  46. package/dist/types/adapters/bridge.d.ts +10 -13
  47. package/dist/types/angular/index.d.ts +17 -7
  48. package/dist/types/core/api-client.d.ts +16 -17
  49. package/dist/types/core/comment-kit-core.d.ts +29 -12
  50. package/dist/types/core/local-demo.d.ts +60 -0
  51. package/dist/types/core/types.d.ts +68 -0
  52. package/dist/types/demo.d.ts +17 -0
  53. package/dist/types/headless.d.ts +8 -0
  54. package/dist/types/index.d.ts +22 -20
  55. package/dist/types/qwik/index.d.ts +4 -1
  56. package/dist/vue.es.js +80 -3443
  57. package/docs/api-reference.md +372 -0
  58. package/docs/local-demo.md +60 -0
  59. package/package.json +69 -41
  60. package/dist/angular/chunk-Cyg4N8Ue.js +0 -11
  61. package/dist/angular/comment-kit-ui-D-LUFD6n.js +0 -24898
  62. package/dist/angular/dom-Cx1nMbdI.js +0 -104
  63. package/dist/angular/mount-ui-C9PJ5aK_.js +0 -72
  64. package/dist/angular/realtime-VrKV0lPI.js +0 -567
  65. package/dist/angular/shadow-root-yMOaW9pk.js +0 -93
  66. package/dist/angular/styles-CMz7-p8x.js +0 -2
  67. package/dist/angular/widget-theme-CYPYAwhR.js +0 -24
  68. package/dist/comment-kit.css +0 -2
  69. package/dist/core/chunk-t7YoJN_i.js +0 -11
  70. package/dist/core/comment-kit-ui-Ct4E18do.js +0 -24898
  71. package/dist/core/error-boundary-CN_BGsYl.js +0 -21
  72. package/dist/core/mount-ui-Bfnuuesk.js +0 -72
  73. package/dist/core/pusher-CizoY5NA.js +0 -2504
  74. package/dist/core/realtime-C3_O7gi2.js +0 -278
  75. package/dist/core/shadow-root-DAtdjHG2.js +0 -93
  76. package/dist/core/styles-ClRoB6ro.js +0 -2
  77. package/dist/core/widget-theme-BWDYr7VR.js +0 -24
  78. package/dist/preact/chunk-CZ0PdaaN.js +0 -11
  79. package/dist/preact/comment-kit-ui-DEzn7J_P.js +0 -24898
  80. package/dist/preact/dom-_ULpq7rg.js +0 -104
  81. package/dist/preact/error-boundary-B4-Bfy3g.js +0 -21
  82. package/dist/preact/limits-C3ZEKcL_.js +0 -71
  83. package/dist/preact/mount-ui-Dx8en--W.js +0 -72
  84. package/dist/preact/pusher-BP4kCufH.js +0 -2504
  85. package/dist/preact/realtime-COin_nJF.js +0 -567
  86. package/dist/preact/shadow-root-D-NcwruG.js +0 -93
  87. package/dist/preact/styles-D6i7be5-.js +0 -2
  88. package/dist/preact/widget-theme-B7Z2pbaA.js +0 -24
  89. package/dist/qwik/chunk-CKKKzG2Q.js +0 -11
  90. package/dist/qwik/comment-kit-ui-Dvwee2tw.js +0 -24898
  91. package/dist/qwik/dom-Dm3gzBBJ.js +0 -104
  92. package/dist/qwik/error-boundary-C4hlYQwS.js +0 -21
  93. package/dist/qwik/limits-DK35yjGY.js +0 -71
  94. package/dist/qwik/mount-ui-DSAwNk_d.js +0 -72
  95. package/dist/qwik/pusher-B1KgC4iB.js +0 -2504
  96. package/dist/qwik/realtime-DhfcBrwF.js +0 -567
  97. package/dist/qwik/shadow-root-PkjcnvPe.js +0 -93
  98. package/dist/qwik/styles-DmEmq5Lh.js +0 -2
  99. package/dist/qwik/widget-theme-lbPF3I0A.js +0 -24
  100. package/dist/react/chunk--MHYZ-zp.js +0 -12
  101. package/dist/react/limits-CpprSem3.js +0 -175
  102. package/dist/react/pusher-3dki8s2l.js +0 -2505
  103. package/dist/react/realtime-DGqScuox.js +0 -567
  104. package/dist/solid/chunk-B2NCWFvW.js +0 -11
  105. package/dist/solid/comment-kit-ui-ACW8BpEm.js +0 -24898
  106. package/dist/solid/dom-DqDH-Gml.js +0 -104
  107. package/dist/solid/error-boundary-9mimpbZA.js +0 -21
  108. package/dist/solid/limits-B_69IbLl.js +0 -71
  109. package/dist/solid/mount-ui-Dq1wj_tx.js +0 -72
  110. package/dist/solid/pusher-_RVNpj1f.js +0 -2504
  111. package/dist/solid/realtime-DbUJK4gU.js +0 -567
  112. package/dist/solid/shadow-root-CssU3bQb.js +0 -93
  113. package/dist/solid/styles-DbueS9xx.js +0 -2
  114. package/dist/solid/widget-theme-B4DJ14fI.js +0 -24
  115. package/dist/svelte/chunk-Pi70BKld.js +0 -11
  116. package/dist/svelte/comment-kit-ui-Cx4u1g77.js +0 -24898
  117. package/dist/svelte/dom-MyTrWzy_.js +0 -104
  118. package/dist/svelte/error-boundary-C3GWI_IX.js +0 -21
  119. package/dist/svelte/limits-CURF22v3.js +0 -71
  120. package/dist/svelte/mount-ui-CBoNGLNS.js +0 -72
  121. package/dist/svelte/pusher-DN1BiUDw.js +0 -2504
  122. package/dist/svelte/realtime-M1CJbCBA.js +0 -567
  123. package/dist/svelte/shadow-root-DG8inbf6.js +0 -93
  124. package/dist/svelte/styles-BK_MaUpD.js +0 -2
  125. package/dist/svelte/widget-theme-CkfJNysI.js +0 -24
  126. package/dist/types/adapters/errors.d.ts +0 -3
  127. package/dist/types/core/auth.d.ts +0 -18
  128. package/dist/types/core/comments.d.ts +0 -43
  129. package/dist/types/core/dev-grab.d.ts +0 -14
  130. package/dist/types/core/keyboard.d.ts +0 -12
  131. package/dist/types/core/limits.d.ts +0 -52
  132. package/dist/types/core/offline-queue.d.ts +0 -23
  133. package/dist/types/core/realtime.d.ts +0 -9
  134. package/dist/types/core/screenshot.d.ts +0 -12
  135. package/dist/types/core/session.d.ts +0 -9
  136. package/dist/types/core/source-resolver.d.ts +0 -19
  137. package/dist/types/core/state.d.ts +0 -24
  138. package/dist/types/react/comment-kit-ui.d.ts +0 -9
  139. package/dist/types/react/comments/comment-flow.d.ts +0 -8
  140. package/dist/types/react/comments/outcomes.d.ts +0 -28
  141. package/dist/types/react/comments/pin-geometry.d.ts +0 -12
  142. package/dist/types/react/comments/view-model.d.ts +0 -66
  143. package/dist/types/react/components/annotation-toolbar.d.ts +0 -36
  144. package/dist/types/react/components/build-panel-shared-props.d.ts +0 -25
  145. package/dist/types/react/components/comment-actions.d.ts +0 -19
  146. package/dist/types/react/components/comment-body.d.ts +0 -8
  147. package/dist/types/react/components/comment-branch-filter.d.ts +0 -15
  148. package/dist/types/react/components/comment-composer-actions.d.ts +0 -26
  149. package/dist/types/react/components/comment-composer-extras-fields.d.ts +0 -32
  150. package/dist/types/react/components/comment-composer-extras-toolbar.d.ts +0 -9
  151. package/dist/types/react/components/comment-composer-extras.d.ts +0 -10
  152. package/dist/types/react/components/comment-composer-extras.state.d.ts +0 -24
  153. package/dist/types/react/components/comment-composer-hook.d.ts +0 -1
  154. package/dist/types/react/components/comment-composer-media.d.ts +0 -17
  155. package/dist/types/react/components/comment-composer.d.ts +0 -4
  156. package/dist/types/react/components/comment-composer.types.d.ts +0 -41
  157. package/dist/types/react/components/comment-composer.utils.d.ts +0 -3
  158. package/dist/types/react/components/comment-connection-alert.d.ts +0 -7
  159. package/dist/types/react/components/comment-cursor-layer.d.ts +0 -14
  160. package/dist/types/react/components/comment-custom-cursor.d.ts +0 -14
  161. package/dist/types/react/components/comment-drawing-canvas.d.ts +0 -10
  162. package/dist/types/react/components/comment-emoji-picker.d.ts +0 -12
  163. package/dist/types/react/components/comment-error-banner.d.ts +0 -8
  164. package/dist/types/react/components/comment-extension-banner.d.ts +0 -8
  165. package/dist/types/react/components/comment-fab-tools.d.ts +0 -37
  166. package/dist/types/react/components/comment-fab.d.ts +0 -34
  167. package/dist/types/react/components/comment-filter-assignee.d.ts +0 -9
  168. package/dist/types/react/components/comment-filter-bar.d.ts +0 -27
  169. package/dist/types/react/components/comment-filter-popover.d.ts +0 -20
  170. package/dist/types/react/components/comment-format-toolbar.constants.d.ts +0 -34
  171. package/dist/types/react/components/comment-format-toolbar.d.ts +0 -6
  172. package/dist/types/react/components/comment-header.d.ts +0 -34
  173. package/dist/types/react/components/comment-highlight-layer.d.ts +0 -11
  174. package/dist/types/react/components/comment-highlight-marker.d.ts +0 -9
  175. package/dist/types/react/components/comment-image-lightbox.d.ts +0 -10
  176. package/dist/types/react/components/comment-images.d.ts +0 -7
  177. package/dist/types/react/components/comment-item.d.ts +0 -26
  178. package/dist/types/react/components/comment-keyboard-shortcuts.d.ts +0 -7
  179. package/dist/types/react/components/comment-kit-overlays.d.ts +0 -15
  180. package/dist/types/react/components/comment-kit.d.ts +0 -12
  181. package/dist/types/react/components/comment-list-filters.d.ts +0 -14
  182. package/dist/types/react/components/comment-login-modal.d.ts +0 -20
  183. package/dist/types/react/components/comment-marker-layer-composer.d.ts +0 -21
  184. package/dist/types/react/components/comment-marker-layer.d.ts +0 -27
  185. package/dist/types/react/components/comment-marker-popover.d.ts +0 -12
  186. package/dist/types/react/components/comment-marker.d.ts +0 -15
  187. package/dist/types/react/components/comment-member-list.d.ts +0 -10
  188. package/dist/types/react/components/comment-mode-bar.d.ts +0 -15
  189. package/dist/types/react/components/comment-online-users.d.ts +0 -8
  190. package/dist/types/react/components/comment-page-ref.d.ts +0 -9
  191. package/dist/types/react/components/comment-panel-header.d.ts +0 -22
  192. package/dist/types/react/components/comment-panel-mobile.d.ts +0 -9
  193. package/dist/types/react/components/comment-panel-utils.d.ts +0 -6
  194. package/dist/types/react/components/comment-panel-view-body.d.ts +0 -23
  195. package/dist/types/react/components/comment-panel.d.ts +0 -37
  196. package/dist/types/react/components/comment-quoted-text.d.ts +0 -9
  197. package/dist/types/react/components/comment-reactions.d.ts +0 -11
  198. package/dist/types/react/components/comment-remote-cursor.d.ts +0 -11
  199. package/dist/types/react/components/comment-screenshot-annotator.d.ts +0 -11
  200. package/dist/types/react/components/comment-screenshot-overlay.d.ts +0 -10
  201. package/dist/types/react/components/comment-search-bar.d.ts +0 -7
  202. package/dist/types/react/components/comment-settings-view.d.ts +0 -20
  203. package/dist/types/react/components/comment-skeletons.d.ts +0 -9
  204. package/dist/types/react/components/comment-thread-detail-badges.d.ts +0 -16
  205. package/dist/types/react/components/comment-thread-detail-meta.d.ts +0 -9
  206. package/dist/types/react/components/comment-thread-detail-replies.d.ts +0 -13
  207. package/dist/types/react/components/comment-thread-detail.d.ts +0 -13
  208. package/dist/types/react/components/comment-thread-footer.d.ts +0 -12
  209. package/dist/types/react/components/comment-thread-list-item.d.ts +0 -15
  210. package/dist/types/react/components/comment-thread-list.d.ts +0 -16
  211. package/dist/types/react/components/comment-user-avatar-tooltip.d.ts +0 -12
  212. package/dist/types/react/components/comment-users-context.d.ts +0 -15
  213. package/dist/types/react/components/comment-utils.d.ts +0 -20
  214. package/dist/types/react/components/comment.d.ts +0 -26
  215. package/dist/types/react/components/constants.d.ts +0 -50
  216. package/dist/types/react/components/dev-export-panel.d.ts +0 -10
  217. package/dist/types/react/components/drawing-path-renderer.d.ts +0 -10
  218. package/dist/types/react/components/element-selector.d.ts +0 -11
  219. package/dist/types/react/components/live-region.d.ts +0 -16
  220. package/dist/types/react/components/screenshot-capture.d.ts +0 -17
  221. package/dist/types/react/components/status-indicator.d.ts +0 -43
  222. package/dist/types/react/components/ui.d.ts +0 -44
  223. package/dist/types/react/components/use-comment-composer.d.ts +0 -28
  224. package/dist/types/react/error-boundary.d.ts +0 -25
  225. package/dist/types/react/hooks/use-comment-fab-drag.d.ts +0 -21
  226. package/dist/types/react/hooks/use-comment-hash-link.d.ts +0 -20
  227. package/dist/types/react/hooks/use-comment-kit-filters.d.ts +0 -19
  228. package/dist/types/react/hooks/use-comment-kit-keyboard.d.ts +0 -11
  229. package/dist/types/react/hooks/use-comment-kit-prop-sync.d.ts +0 -12
  230. package/dist/types/react/hooks/use-comment-marker-drag.d.ts +0 -23
  231. package/dist/types/react/hooks/use-comment-panel-navigation.d.ts +0 -21
  232. package/dist/types/react/hooks/use-comment-realtime.d.ts +0 -6
  233. package/dist/types/react/hooks/use-comment-thread-actions.d.ts +0 -15
  234. package/dist/types/react/hooks/use-connection-retry.d.ts +0 -9
  235. package/dist/types/react/hooks/use-drawing.d.ts +0 -32
  236. package/dist/types/react/hooks/use-extension-conflicts.d.ts +0 -13
  237. package/dist/types/react/hooks/use-filtered-threads.d.ts +0 -7
  238. package/dist/types/react/hooks/use-marker-layer.d.ts +0 -19
  239. package/dist/types/react/hooks/use-screenshot.d.ts +0 -18
  240. package/dist/types/react/hooks/use-text-selection.d.ts +0 -17
  241. package/dist/types/react/hooks/use-websocket.d.ts +0 -9
  242. package/dist/types/react/is-local-host.d.ts +0 -2
  243. package/dist/types/react/mount-ui.d.ts +0 -19
  244. package/dist/types/react/shadow-root.d.ts +0 -23
  245. package/dist/types/react/shims/use-sync-external-store-with-selector.d.ts +0 -4
  246. package/dist/types/react/shims/use-sync-external-store.d.ts +0 -1
  247. package/dist/types/react/ui/lib/ShadowRootContext.d.ts +0 -10
  248. package/dist/types/react/ui/lib/cn.d.ts +0 -12
  249. package/dist/types/react/ui/lib/widget-theme.d.ts +0 -7
  250. package/dist/types/react/ui/primitives/alert/alert.d.ts +0 -8
  251. package/dist/types/react/ui/primitives/alert/index.d.ts +0 -1
  252. package/dist/types/react/ui/primitives/alert-dialog/alert-dialog.d.ts +0 -23
  253. package/dist/types/react/ui/primitives/alert-dialog/index.d.ts +0 -1
  254. package/dist/types/react/ui/primitives/avatar/avatar.d.ts +0 -10
  255. package/dist/types/react/ui/primitives/avatar/index.d.ts +0 -1
  256. package/dist/types/react/ui/primitives/badge/badge.d.ts +0 -5
  257. package/dist/types/react/ui/primitives/badge/index.d.ts +0 -1
  258. package/dist/types/react/ui/primitives/breadcrumb/breadcrumb.d.ts +0 -10
  259. package/dist/types/react/ui/primitives/breadcrumb/index.d.ts +0 -1
  260. package/dist/types/react/ui/primitives/button/button.d.ts +0 -6
  261. package/dist/types/react/ui/primitives/button/index.d.ts +0 -1
  262. package/dist/types/react/ui/primitives/button-group/button-group.d.ts +0 -9
  263. package/dist/types/react/ui/primitives/button-group/index.d.ts +0 -1
  264. package/dist/types/react/ui/primitives/card/card.d.ts +0 -11
  265. package/dist/types/react/ui/primitives/card/index.d.ts +0 -1
  266. package/dist/types/react/ui/primitives/checkbox/checkbox.d.ts +0 -3
  267. package/dist/types/react/ui/primitives/checkbox/index.d.ts +0 -1
  268. package/dist/types/react/ui/primitives/dialog/dialog.d.ts +0 -17
  269. package/dist/types/react/ui/primitives/dialog/index.d.ts +0 -1
  270. package/dist/types/react/ui/primitives/dropdown-menu/dropdown-menu.d.ts +0 -29
  271. package/dist/types/react/ui/primitives/dropdown-menu/index.d.ts +0 -1
  272. package/dist/types/react/ui/primitives/empty/empty.d.ts +0 -10
  273. package/dist/types/react/ui/primitives/empty/index.d.ts +0 -1
  274. package/dist/types/react/ui/primitives/field/field.d.ts +0 -22
  275. package/dist/types/react/ui/primitives/field/index.d.ts +0 -1
  276. package/dist/types/react/ui/primitives/hover-card/hover-card.d.ts +0 -6
  277. package/dist/types/react/ui/primitives/hover-card/index.d.ts +0 -1
  278. package/dist/types/react/ui/primitives/input/index.d.ts +0 -1
  279. package/dist/types/react/ui/primitives/input/input.d.ts +0 -3
  280. package/dist/types/react/ui/primitives/input-group/index.d.ts +0 -1
  281. package/dist/types/react/ui/primitives/input-group/input-group.d.ts +0 -16
  282. package/dist/types/react/ui/primitives/input-otp/index.d.ts +0 -1
  283. package/dist/types/react/ui/primitives/input-otp/input-otp.d.ts +0 -11
  284. package/dist/types/react/ui/primitives/kbd/index.d.ts +0 -1
  285. package/dist/types/react/ui/primitives/kbd/kbd.d.ts +0 -4
  286. package/dist/types/react/ui/primitives/label/index.d.ts +0 -1
  287. package/dist/types/react/ui/primitives/label/label.d.ts +0 -3
  288. package/dist/types/react/ui/primitives/native-select/index.d.ts +0 -1
  289. package/dist/types/react/ui/primitives/native-select/native-select.d.ts +0 -7
  290. package/dist/types/react/ui/primitives/popover/index.d.ts +0 -1
  291. package/dist/types/react/ui/primitives/popover/popover.d.ts +0 -9
  292. package/dist/types/react/ui/primitives/preview/component-preview.d.ts +0 -8
  293. package/dist/types/react/ui/primitives/progress/index.d.ts +0 -1
  294. package/dist/types/react/ui/primitives/progress/progress.d.ts +0 -7
  295. package/dist/types/react/ui/primitives/radio-group/index.d.ts +0 -1
  296. package/dist/types/react/ui/primitives/radio-group/radio-group.d.ts +0 -6
  297. package/dist/types/react/ui/primitives/scroll-area/index.d.ts +0 -1
  298. package/dist/types/react/ui/primitives/scroll-area/scroll-area.d.ts +0 -6
  299. package/dist/types/react/ui/primitives/select/index.d.ts +0 -1
  300. package/dist/types/react/ui/primitives/select/select.d.ts +0 -15
  301. package/dist/types/react/ui/primitives/separator/index.d.ts +0 -1
  302. package/dist/types/react/ui/primitives/separator/separator.d.ts +0 -3
  303. package/dist/types/react/ui/primitives/sheet/index.d.ts +0 -1
  304. package/dist/types/react/ui/primitives/sheet/sheet.d.ts +0 -14
  305. package/dist/types/react/ui/primitives/skeleton/index.d.ts +0 -1
  306. package/dist/types/react/ui/primitives/skeleton/skeleton.d.ts +0 -3
  307. package/dist/types/react/ui/primitives/slider/index.d.ts +0 -1
  308. package/dist/types/react/ui/primitives/slider/slider.d.ts +0 -7
  309. package/dist/types/react/ui/primitives/sonner/index.d.ts +0 -1
  310. package/dist/types/react/ui/primitives/sonner/sonner.d.ts +0 -4
  311. package/dist/types/react/ui/primitives/spinner/index.d.ts +0 -1
  312. package/dist/types/react/ui/primitives/spinner/spinner.d.ts +0 -3
  313. package/dist/types/react/ui/primitives/switch/index.d.ts +0 -1
  314. package/dist/types/react/ui/primitives/switch/switch.d.ts +0 -5
  315. package/dist/types/react/ui/primitives/tabs/index.d.ts +0 -1
  316. package/dist/types/react/ui/primitives/tabs/tabs.d.ts +0 -8
  317. package/dist/types/react/ui/primitives/textarea/index.d.ts +0 -1
  318. package/dist/types/react/ui/primitives/textarea/textarea.d.ts +0 -3
  319. package/dist/types/react/ui/primitives/toggle/index.d.ts +0 -1
  320. package/dist/types/react/ui/primitives/toggle/toggle.d.ts +0 -7
  321. package/dist/types/react/ui/primitives/toggle-group/index.d.ts +0 -1
  322. package/dist/types/react/ui/primitives/toggle-group/toggle-group.d.ts +0 -14
  323. package/dist/types/react/ui/primitives/tooltip/index.d.ts +0 -1
  324. package/dist/types/react/ui/primitives/tooltip/tooltip.d.ts +0 -7
  325. package/dist/types/utils/freeze-animations.d.ts +0 -8
  326. package/dist/types/utils/text.d.ts +0 -9
  327. package/dist/types/utils/validation.d.ts +0 -10
  328. package/dist/vue/chunk-DHrubWSL.js +0 -11
  329. package/dist/vue/comment-kit-ui-C3zijClM.js +0 -24898
  330. package/dist/vue/dom-C7krZAR8.js +0 -104
  331. package/dist/vue/error-boundary-DW6uGR8U.js +0 -21
  332. package/dist/vue/limits-B6csdQeI.js +0 -71
  333. package/dist/vue/mount-ui-18BnLwCO.js +0 -72
  334. package/dist/vue/pusher-cmjNbW6a.js +0 -2504
  335. package/dist/vue/realtime-B0B5cE-E.js +0 -567
  336. package/dist/vue/shadow-root-zwd_wUIP.js +0 -93
  337. package/dist/vue/styles-B0NAkbKu.js +0 -2
  338. package/dist/vue/widget-theme-D7Vkagk7.js +0 -24
  339. /package/dist/{angular/error-boundary-CxhCm8iF.js → shared/error-boundary-D3PD74vI.js} +0 -0
@@ -0,0 +1,623 @@
1
+ import e from "react";
2
+ import t from "react-dom";
3
+ function n(e) {
4
+ if (!e || typeof document > "u") return;
5
+ let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
6
+ n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
7
+ }
8
+ var r = (e) => {
9
+ switch (e) {
10
+ case "success": return o;
11
+ case "info": return c;
12
+ case "warning": return s;
13
+ case "error": return l;
14
+ default: return null;
15
+ }
16
+ }, i = Array(12).fill(0), a = ({ visible: t, className: n }) => /*#__PURE__*/ e.createElement("div", {
17
+ className: ["sonner-loading-wrapper", n].filter(Boolean).join(" "),
18
+ "data-visible": t
19
+ }, /*#__PURE__*/ e.createElement("div", { className: "sonner-spinner" }, i.map((t, n) => /*#__PURE__*/ e.createElement("div", {
20
+ className: "sonner-loading-bar",
21
+ key: `spinner-bar-${n}`
22
+ })))), o = /*#__PURE__*/ e.createElement("svg", {
23
+ xmlns: "http://www.w3.org/2000/svg",
24
+ viewBox: "0 0 20 20",
25
+ fill: "currentColor",
26
+ height: "20",
27
+ width: "20",
28
+ "aria-hidden": "true"
29
+ }, /*#__PURE__*/ e.createElement("path", {
30
+ fillRule: "evenodd",
31
+ d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
32
+ clipRule: "evenodd"
33
+ })), s = /*#__PURE__*/ e.createElement("svg", {
34
+ xmlns: "http://www.w3.org/2000/svg",
35
+ viewBox: "0 0 24 24",
36
+ fill: "currentColor",
37
+ height: "20",
38
+ width: "20",
39
+ "aria-hidden": "true"
40
+ }, /*#__PURE__*/ e.createElement("path", {
41
+ fillRule: "evenodd",
42
+ d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
43
+ clipRule: "evenodd"
44
+ })), c = /*#__PURE__*/ e.createElement("svg", {
45
+ xmlns: "http://www.w3.org/2000/svg",
46
+ viewBox: "0 0 20 20",
47
+ fill: "currentColor",
48
+ height: "20",
49
+ width: "20",
50
+ "aria-hidden": "true"
51
+ }, /*#__PURE__*/ e.createElement("path", {
52
+ fillRule: "evenodd",
53
+ d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
54
+ clipRule: "evenodd"
55
+ })), l = /*#__PURE__*/ e.createElement("svg", {
56
+ xmlns: "http://www.w3.org/2000/svg",
57
+ viewBox: "0 0 20 20",
58
+ fill: "currentColor",
59
+ height: "20",
60
+ width: "20",
61
+ "aria-hidden": "true"
62
+ }, /*#__PURE__*/ e.createElement("path", {
63
+ fillRule: "evenodd",
64
+ d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
65
+ clipRule: "evenodd"
66
+ })), u = /*#__PURE__*/ e.createElement("svg", {
67
+ xmlns: "http://www.w3.org/2000/svg",
68
+ width: "12",
69
+ height: "12",
70
+ viewBox: "0 0 24 24",
71
+ fill: "none",
72
+ stroke: "currentColor",
73
+ strokeWidth: "1.5",
74
+ strokeLinecap: "round",
75
+ strokeLinejoin: "round",
76
+ "aria-hidden": "true"
77
+ }, /*#__PURE__*/ e.createElement("line", {
78
+ x1: "18",
79
+ y1: "6",
80
+ x2: "6",
81
+ y2: "18"
82
+ }), /*#__PURE__*/ e.createElement("line", {
83
+ x1: "6",
84
+ y1: "6",
85
+ x2: "18",
86
+ y2: "18"
87
+ })), ee = () => {
88
+ let [t, n] = e.useState(document.hidden);
89
+ return e.useEffect(() => {
90
+ let e = () => {
91
+ n(document.hidden);
92
+ };
93
+ return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
94
+ }, []), t;
95
+ }, d = 1, f = 100, p = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : d++, m = new class {
96
+ constructor() {
97
+ this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
98
+ let t = this.subscribers.indexOf(e);
99
+ this.subscribers.splice(t, 1);
100
+ }), this.publish = (e) => {
101
+ this.subscribers.forEach((t) => t(e));
102
+ }, this.addToast = (e) => {
103
+ this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
104
+ }, this.trimHistory = () => {
105
+ let e = this.toasts.length - f;
106
+ e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));
107
+ }, this.create = (e) => {
108
+ let { message: t, ...n } = e, r = p(e), i = this.pendingDismissals.get(r);
109
+ i !== void 0 && (cancelAnimationFrame(i), this.pendingDismissals.delete(r), this.dismissedToasts.delete(r));
110
+ let a = this.dismissedToasts.has(r), o = e.dismissible === void 0 || e.dismissible;
111
+ return a && (this.dismissedToasts.delete(r), this.toasts = this.toasts.filter((e) => e.id !== r)), !a && this.toasts.find((e) => e.id === r) ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
112
+ ...n,
113
+ ...e,
114
+ id: r,
115
+ title: t
116
+ }), {
117
+ ...n,
118
+ ...e,
119
+ id: r,
120
+ dismissible: o,
121
+ title: t
122
+ }) : n) : this.addToast({
123
+ title: t,
124
+ ...n,
125
+ dismissible: o,
126
+ id: r
127
+ }), r;
128
+ }, this.dismiss = (e) => {
129
+ if (e == null) return this.getActiveToasts().forEach((e) => {
130
+ this.dismissedToasts.add(e.id), this.subscribers.forEach((t) => t({
131
+ id: e.id,
132
+ dismiss: !0
133
+ }));
134
+ }), e;
135
+ this.dismissedToasts.add(e);
136
+ let t = this.pendingDismissals.get(e);
137
+ return t !== void 0 && cancelAnimationFrame(t), this.pendingDismissals.set(e, requestAnimationFrame(() => {
138
+ this.pendingDismissals.delete(e), this.subscribers.forEach((t) => t({
139
+ id: e,
140
+ dismiss: !0
141
+ }));
142
+ })), e;
143
+ }, this.message = (e, t) => this.create({
144
+ ...t,
145
+ message: e,
146
+ type: void 0
147
+ }), this.error = (e, t) => this.create({
148
+ ...t,
149
+ message: e,
150
+ type: "error"
151
+ }), this.success = (e, t) => this.create({
152
+ ...t,
153
+ type: "success",
154
+ message: e
155
+ }), this.info = (e, t) => this.create({
156
+ ...t,
157
+ type: "info",
158
+ message: e
159
+ }), this.warning = (e, t) => this.create({
160
+ ...t,
161
+ type: "warning",
162
+ message: e
163
+ }), this.loading = (e, t) => this.create({
164
+ ...t,
165
+ type: "loading",
166
+ message: e
167
+ }), this.promise = (t, n) => {
168
+ if (!n) return;
169
+ let r;
170
+ n.loading !== void 0 && (r = this.create({
171
+ ...n,
172
+ promise: t,
173
+ type: "loading",
174
+ message: n.loading,
175
+ description: typeof n.description == "function" ? void 0 : n.description
176
+ }));
177
+ let i = Promise.resolve(t instanceof Function ? t() : t), a = r !== void 0, o, s = i.then(async (t) => {
178
+ if (o = ["resolve", t], e.isValidElement(t)) a = !1, this.create({
179
+ id: r,
180
+ type: "default",
181
+ message: t
182
+ });
183
+ else if (g(t) && !t.ok) {
184
+ a = !1;
185
+ let i = typeof n.error == "function" ? await n.error(`HTTP error! status: ${t.status}`) : n.error, o = typeof n.description == "function" ? await n.description(`HTTP error! status: ${t.status}`) : n.description, s = typeof i == "object" && !e.isValidElement(i) ? i : { message: i };
186
+ this.create({
187
+ id: r,
188
+ type: "error",
189
+ description: o,
190
+ ...s
191
+ });
192
+ } else if (t instanceof Error) {
193
+ a = !1;
194
+ let i = typeof n.error == "function" ? await n.error(t) : n.error, o = typeof n.description == "function" ? await n.description(t) : n.description, s = typeof i == "object" && !e.isValidElement(i) ? i : { message: i };
195
+ this.create({
196
+ id: r,
197
+ type: "error",
198
+ description: o,
199
+ ...s
200
+ });
201
+ } else if (n.success !== void 0) {
202
+ a = !1;
203
+ let i = typeof n.success == "function" ? await n.success(t) : n.success, o = typeof n.description == "function" ? await n.description(t) : n.description, s = typeof i == "object" && !e.isValidElement(i) ? i : { message: i };
204
+ this.create({
205
+ id: r,
206
+ type: "success",
207
+ description: o,
208
+ ...s
209
+ });
210
+ }
211
+ }).catch(async (t) => {
212
+ if (o = ["reject", t], n.error !== void 0) {
213
+ a = !1;
214
+ let i = typeof n.error == "function" ? await n.error(t) : n.error, o = typeof n.description == "function" ? await n.description(t) : n.description, s = typeof i == "object" && !e.isValidElement(i) ? i : { message: i };
215
+ this.create({
216
+ id: r,
217
+ type: "error",
218
+ description: o,
219
+ ...s
220
+ });
221
+ }
222
+ }).finally(() => {
223
+ a && (this.dismiss(r), r = void 0), n.finally == null || n.finally.call(n);
224
+ }), c = () => new Promise((e, t) => s.then(() => o[0] === "reject" ? t(o[1]) : e(o[1])).catch(t));
225
+ return typeof r != "string" && typeof r != "number" ? { unwrap: c } : Object.assign(r, { unwrap: c });
226
+ }, this.custom = (e, t) => {
227
+ let n = p(t);
228
+ return this.create({
229
+ ...t,
230
+ jsx: e(n),
231
+ id: n,
232
+ type: void 0
233
+ }), n;
234
+ }, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
235
+ }
236
+ }(), h = (e, t) => m.message(e, t), g = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", _ = Object.assign(h, {
237
+ success: m.success,
238
+ info: m.info,
239
+ warning: m.warning,
240
+ error: m.error,
241
+ custom: m.custom,
242
+ message: m.message,
243
+ promise: m.promise,
244
+ dismiss: m.dismiss,
245
+ loading: m.loading
246
+ }, {
247
+ getHistory: () => m.toasts,
248
+ getToasts: () => m.getActiveToasts()
249
+ });
250
+ n("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
251
+ function v(e) {
252
+ return e.label !== void 0;
253
+ }
254
+ var y = 3, b = "24px", x = "16px", S = 4e3, te = 356, ne = 14, re = 45, ie = 200;
255
+ function C(...e) {
256
+ return e.filter(Boolean).join(" ");
257
+ }
258
+ function w(e) {
259
+ let [t, n] = e.split("-"), r = [];
260
+ return t && r.push(t), n && r.push(n), r;
261
+ }
262
+ var T = (t) => {
263
+ let { invert: n, toast: i, unstyled: o, interacting: s, setHeights: c, visibleToasts: l, heights: d, index: f, toasts: p, expanded: m, removeToast: h, defaultRichColors: g, closeButton: _, style: y, cancelButtonStyle: b, actionButtonStyle: x, className: te = "", descriptionClassName: ne = "", duration: T, position: E, gap: ae, expandByDefault: D, classNames: O, icons: k, closeButtonAriaLabel: A = "Close toast" } = t, [j, M] = e.useState(null), [N, P] = e.useState(null), [F, I] = e.useState(!1), [L, oe] = e.useState(!1), [R, z] = e.useState(!1), [B, se] = e.useState(!1), [ce, le] = e.useState(!1), [ue, V] = e.useState(0), [de, H] = e.useState(0), U = e.useRef(i.duration || T || S), fe = e.useRef(null), W = e.useRef(null), pe = f === 0, me = f + 1 <= l, G = i.type, he = G ?? "default", K = i.dismissible !== !1, ge = i.className || "", _e = i.descriptionClassName || "", q = e.useMemo(() => d.findIndex((e) => e.toastId === i.id) || 0, [d, i.id]), ve = e.useMemo(() => i.closeButton ?? _, [i.closeButton, _]), ye = e.useMemo(() => i.duration || T || S, [i.duration, T]), J = e.useRef(0), Y = e.useRef(0), be = e.useRef(0), X = e.useRef(null), [xe, Se] = E.split("-"), Ce = e.useMemo(() => d.reduce((e, t, n) => n >= q ? e : e + t.height, 0), [d, q]), we = ee(), Z = e.useMemo(() => t.swipeDirections ?? w(E), [t.swipeDirections, E]), Te = i.invert || n, Q = G === "loading";
264
+ Y.current = e.useMemo(() => q * ae + Ce, [q, Ce]), e.useEffect(() => {
265
+ U.current = ye;
266
+ }, [ye]), e.useEffect(() => {
267
+ I(!0);
268
+ }, []), e.useEffect(() => {
269
+ let e = W.current;
270
+ if (e) {
271
+ let t = e.getBoundingClientRect().height;
272
+ return H(t), c((e) => [{
273
+ toastId: i.id,
274
+ height: t,
275
+ position: i.position
276
+ }, ...e]), () => c((e) => e.filter((e) => e.toastId !== i.id));
277
+ }
278
+ }, [c, i.id]), e.useLayoutEffect(() => {
279
+ if (!F) return;
280
+ let e = W.current, t = e.style.height;
281
+ e.style.height = "auto";
282
+ let n = e.getBoundingClientRect().height;
283
+ e.style.height = t, H(n), c((e) => e.find((e) => e.toastId === i.id) ? e.map((e) => e.toastId === i.id ? {
284
+ ...e,
285
+ height: n
286
+ } : e) : [{
287
+ toastId: i.id,
288
+ height: n,
289
+ position: i.position
290
+ }, ...e]);
291
+ }, [
292
+ F,
293
+ i.title,
294
+ i.description,
295
+ c,
296
+ i.id,
297
+ i.jsx,
298
+ i.action,
299
+ i.cancel
300
+ ]);
301
+ let $ = e.useCallback(() => {
302
+ oe(!0), V(Y.current), c((e) => e.filter((e) => e.toastId !== i.id)), setTimeout(() => {
303
+ h(i);
304
+ }, ie);
305
+ }, [
306
+ i,
307
+ h,
308
+ c,
309
+ Y
310
+ ]);
311
+ e.useEffect(() => {
312
+ if (i.promise && G === "loading" || i.duration === Infinity || i.type === "loading") return;
313
+ let e;
314
+ return m || s || we ? (() => {
315
+ if (be.current < J.current) {
316
+ let e = (/* @__PURE__ */ new Date()).getTime() - J.current;
317
+ U.current -= e;
318
+ }
319
+ be.current = (/* @__PURE__ */ new Date()).getTime();
320
+ })() : U.current !== Infinity && (J.current = (/* @__PURE__ */ new Date()).getTime(), e = setTimeout(() => {
321
+ i.onAutoClose == null || i.onAutoClose.call(i, i), $();
322
+ }, U.current)), () => clearTimeout(e);
323
+ }, [
324
+ m,
325
+ s,
326
+ i,
327
+ G,
328
+ we,
329
+ $
330
+ ]), e.useEffect(() => {
331
+ i.delete && ($(), i.onDismiss == null || i.onDismiss.call(i, i));
332
+ }, [$, i.delete]);
333
+ function Ee() {
334
+ return k?.loading ? /*#__PURE__*/ e.createElement("div", {
335
+ className: C(O?.loader, i?.classNames?.loader, "sonner-loader"),
336
+ "data-visible": G === "loading"
337
+ }, k.loading) : /*#__PURE__*/ e.createElement(a, {
338
+ className: C(O?.loader, i?.classNames?.loader),
339
+ visible: G === "loading"
340
+ });
341
+ }
342
+ let De = i.icon || k?.[G] || r(G);
343
+ return /*#__PURE__*/ e.createElement("li", {
344
+ tabIndex: 0,
345
+ ref: W,
346
+ className: C(te, ge, O?.toast, i?.classNames?.toast, O?.[he], i?.classNames?.[he]),
347
+ "data-sonner-toast": "",
348
+ "data-rich-colors": i.richColors ?? g,
349
+ "data-styled": !(i.jsx || i.unstyled || o),
350
+ "data-mounted": F,
351
+ "data-promise": !!i.promise,
352
+ "data-swiped": ce,
353
+ "data-removed": L,
354
+ "data-visible": me,
355
+ "data-y-position": xe,
356
+ "data-x-position": Se,
357
+ "data-index": f,
358
+ "data-front": pe,
359
+ "data-swiping": R,
360
+ "data-dismissible": K,
361
+ "data-type": G,
362
+ "data-invert": Te,
363
+ "data-swipe-out": B,
364
+ "data-swipe-direction": N,
365
+ "data-expanded": !!(m || D && F),
366
+ "data-testid": i.testId,
367
+ style: {
368
+ "--index": f,
369
+ "--toasts-before": f,
370
+ "--z-index": p.length - f,
371
+ "--offset": `${L ? ue : Y.current}px`,
372
+ "--initial-height": D ? "auto" : `${de}px`,
373
+ ...y,
374
+ ...i.style
375
+ },
376
+ onDragEnd: () => {
377
+ z(!1), M(null), X.current = null;
378
+ },
379
+ onPointerDown: (e) => {
380
+ e.button !== 2 && !Q && K && (fe.current = /* @__PURE__ */ new Date(), V(Y.current), e.target.setPointerCapture(e.pointerId), e.target.tagName !== "BUTTON" && (z(!0), X.current = {
381
+ x: e.clientX,
382
+ y: e.clientY
383
+ }));
384
+ },
385
+ onPointerUp: () => {
386
+ if (B || !K) return;
387
+ X.current = null;
388
+ let e = Number(W.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(W.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), n = (/* @__PURE__ */ new Date()).getTime() - fe.current?.getTime(), r = j === "x" ? e : t, a = Math.abs(r) / n;
389
+ if ((j === "x" ? Z.includes(e > 0 ? "right" : "left") : Z.includes(t > 0 ? "bottom" : "top")) && (Math.abs(r) >= re || a > .11)) V(Y.current), i.onDismiss == null || i.onDismiss.call(i, i), P(j === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), $(), se(!0);
390
+ else {
391
+ var o, s;
392
+ (o = W.current) == null || o.style.setProperty("--swipe-amount-x", "0px"), (s = W.current) == null || s.style.setProperty("--swipe-amount-y", "0px"), le(!1), z(!1), M(null);
393
+ }
394
+ },
395
+ onPointerMove: (e) => {
396
+ var t, n;
397
+ if (!X.current || !K || window.getSelection()?.toString().length > 0) return;
398
+ let r = e.clientY - X.current.y, i = e.clientX - X.current.x;
399
+ !j && (Math.abs(i) > 1 || Math.abs(r) > 1) && M(Math.abs(i) > Math.abs(r) ? "x" : "y");
400
+ let a = {
401
+ x: 0,
402
+ y: 0
403
+ }, o = (e) => 1 / (1.5 + Math.abs(e) / 20);
404
+ if (j === "y") {
405
+ if (Z.includes("top") || Z.includes("bottom")) {
406
+ if (Z.includes("top") && r < 0 || Z.includes("bottom") && r > 0) a.y = r;
407
+ else {
408
+ let e = r * o(r);
409
+ a.y = Math.abs(e) < Math.abs(r) ? e : r;
410
+ }
411
+ }
412
+ } else if (j === "x" && (Z.includes("left") || Z.includes("right"))) {
413
+ if (Z.includes("left") && i < 0 || Z.includes("right") && i > 0) a.x = i;
414
+ else {
415
+ let e = i * o(i);
416
+ a.x = Math.abs(e) < Math.abs(i) ? e : i;
417
+ }
418
+ }
419
+ (Math.abs(a.x) > 0 || Math.abs(a.y) > 0) && le(!0), (t = W.current) == null || t.style.setProperty("--swipe-amount-x", `${a.x}px`), (n = W.current) == null || n.style.setProperty("--swipe-amount-y", `${a.y}px`);
420
+ }
421
+ }, ve && !i.jsx && G !== "loading" ? /*#__PURE__*/ e.createElement("button", {
422
+ "aria-label": A,
423
+ "data-disabled": Q,
424
+ "data-close-button": !0,
425
+ onClick: Q || !K ? () => {} : () => {
426
+ $(), i.onDismiss == null || i.onDismiss.call(i, i);
427
+ },
428
+ className: C(O?.closeButton, i?.classNames?.closeButton)
429
+ }, k?.close ?? u) : null, (G || i.icon || i.promise) && i.icon !== null && (k?.[G] !== null || i.icon) ? /*#__PURE__*/ e.createElement("div", {
430
+ "data-icon": "",
431
+ className: C(O?.icon, i?.classNames?.icon)
432
+ }, G === "loading" ? i.icon || Ee() : i.promise ? Ee() : null, G === "loading" ? null : De) : null, /*#__PURE__*/ e.createElement("div", {
433
+ "data-content": "",
434
+ className: C(O?.content, i?.classNames?.content)
435
+ }, /*#__PURE__*/ e.createElement("div", {
436
+ "data-title": "",
437
+ className: C(O?.title, i?.classNames?.title)
438
+ }, i.jsx ? i.jsx : typeof i.title == "function" ? i.title() : i.title), i.description ? /*#__PURE__*/ e.createElement("div", {
439
+ "data-description": "",
440
+ className: C(ne, _e, O?.description, i?.classNames?.description)
441
+ }, typeof i.description == "function" ? i.description() : i.description) : null), /*#__PURE__*/ e.isValidElement(i.cancel) ? i.cancel : i.cancel && v(i.cancel) ? /*#__PURE__*/ e.createElement("button", {
442
+ "data-button": !0,
443
+ "data-cancel": !0,
444
+ style: i.cancelButtonStyle || b,
445
+ onClick: (e) => {
446
+ v(i.cancel) && K && (i.cancel.onClick == null || i.cancel.onClick.call(i.cancel, e), $());
447
+ },
448
+ className: C(O?.cancelButton, i?.classNames?.cancelButton)
449
+ }, i.cancel.label) : null, /*#__PURE__*/ e.isValidElement(i.action) ? i.action : i.action && v(i.action) ? /*#__PURE__*/ e.createElement("button", {
450
+ "data-button": !0,
451
+ "data-action": !0,
452
+ style: i.actionButtonStyle || x,
453
+ onClick: (e) => {
454
+ v(i.action) && (i.action.onClick == null || i.action.onClick.call(i.action, e), !e.defaultPrevented && $());
455
+ },
456
+ className: C(O?.actionButton, i?.classNames?.actionButton)
457
+ }, i.action.label) : null);
458
+ };
459
+ function E() {
460
+ if (typeof window > "u" || typeof document > "u") return "ltr";
461
+ let e = document.documentElement.getAttribute("dir");
462
+ return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
463
+ }
464
+ function ae(e, t) {
465
+ let n = {};
466
+ return [e, t].forEach((e, t) => {
467
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? x : b;
468
+ function o(e) {
469
+ [
470
+ "top",
471
+ "right",
472
+ "bottom",
473
+ "left"
474
+ ].forEach((t) => {
475
+ n[`${i}-${t}`] = typeof e == "number" ? `${e}px` : e;
476
+ });
477
+ }
478
+ typeof e == "number" || typeof e == "string" ? o(e) : typeof e == "object" ? [
479
+ "top",
480
+ "right",
481
+ "bottom",
482
+ "left"
483
+ ].forEach((t) => {
484
+ e[t] === void 0 ? n[`${i}-${t}`] = a : n[`${i}-${t}`] = typeof e[t] == "number" ? `${e[t]}px` : e[t];
485
+ }) : o(a);
486
+ }), n;
487
+ }
488
+ var D = /*#__PURE__*/ e.forwardRef(function(n, r) {
489
+ let { id: i, invert: a, position: o = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: c, closeButton: l, className: u, offset: ee, mobileOffset: d, theme: f = "light", richColors: p, duration: h, style: g, visibleToasts: _ = y, toastOptions: v, dir: b = E(), gap: x = ne, icons: S, customAriaLabel: re, containerAriaLabel: ie = "Notifications" } = n, [C, w] = e.useState([]), D = e.useMemo(() => i ? C.filter((e) => e.toasterId === i) : C.filter((e) => !e.toasterId), [C, i]), O = e.useMemo(() => Array.from(new Set([o].concat(D.filter((e) => e.position).map((e) => e.position)))), [D, o]), [k, A] = e.useState([]), [j, M] = e.useState(!1), [N, P] = e.useState(!1), [F, I] = e.useState(f === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : f), L = e.useRef(null), oe = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), R = e.useRef(null), z = e.useRef(!1), B = e.useCallback((e) => {
490
+ w((t) => (t.find((t) => t.id === e.id)?.delete || m.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
491
+ }, []);
492
+ return e.useEffect(() => m.subscribe((e) => {
493
+ e.dismiss ? requestAnimationFrame(() => {
494
+ w((t) => t.map((t) => t.id === e.id ? {
495
+ ...t,
496
+ delete: !0
497
+ } : t));
498
+ }) : setTimeout(() => {
499
+ t.flushSync(() => {
500
+ w((t) => {
501
+ let n = t.findIndex((t) => t.id === e.id);
502
+ return n === -1 ? [e, ...t] : [
503
+ ...t.slice(0, n),
504
+ {
505
+ ...t[n],
506
+ ...e
507
+ },
508
+ ...t.slice(n + 1)
509
+ ];
510
+ });
511
+ });
512
+ });
513
+ }), []), e.useEffect(() => {
514
+ if (f !== "system") {
515
+ I(f);
516
+ return;
517
+ }
518
+ if (f === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? I("dark") : I("light")), typeof window > "u") return;
519
+ let e = window.matchMedia("(prefers-color-scheme: dark)");
520
+ try {
521
+ e.addEventListener("change", ({ matches: e }) => {
522
+ I(e ? "dark" : "light");
523
+ });
524
+ } catch {
525
+ e.addListener(({ matches: e }) => {
526
+ try {
527
+ I(e ? "dark" : "light");
528
+ } catch (e) {
529
+ console.error(e);
530
+ }
531
+ });
532
+ }
533
+ }, [f]), e.useEffect(() => {
534
+ C.length <= 1 && M(!1);
535
+ }, [C]), e.useEffect(() => {
536
+ let e = (e) => {
537
+ if (s.length > 0 && s.every((t) => e[t] || e.code === t)) {
538
+ var t;
539
+ M(!0), (t = L.current) == null || t.focus();
540
+ }
541
+ e.code === "Escape" && (document.activeElement === L.current || L.current?.contains(document.activeElement)) && M(!1);
542
+ };
543
+ return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
544
+ }, [s]), e.useEffect(() => {
545
+ if (L.current) return () => {
546
+ R.current && (R.current.focus({ preventScroll: !0 }), R.current = null, z.current = !1);
547
+ };
548
+ }, [L.current]), /*#__PURE__*/ e.createElement("section", {
549
+ ref: r,
550
+ "aria-label": re ?? `${ie} ${oe}`,
551
+ tabIndex: -1,
552
+ "aria-live": "polite",
553
+ "aria-relevant": "additions text",
554
+ "aria-atomic": "false",
555
+ suppressHydrationWarning: !0,
556
+ "data-react-aria-top-layer": !0
557
+ }, O.map((t, r) => {
558
+ let [i, o] = t.split("-");
559
+ return D.length ? /*#__PURE__*/ e.createElement("ol", {
560
+ key: t,
561
+ dir: b === "auto" ? E() : b,
562
+ tabIndex: -1,
563
+ ref: L,
564
+ className: u,
565
+ "data-sonner-toaster": !0,
566
+ "data-sonner-theme": F,
567
+ "data-y-position": i,
568
+ "data-x-position": o,
569
+ style: {
570
+ "--front-toast-height": `${k[0]?.height || 0}px`,
571
+ "--width": `${te}px`,
572
+ "--gap": `${x}px`,
573
+ ...g,
574
+ ...ae(ee, d)
575
+ },
576
+ onBlur: (e) => {
577
+ z.current && !e.currentTarget.contains(e.relatedTarget) && (z.current = !1, R.current &&= (R.current.focus({ preventScroll: !0 }), null));
578
+ },
579
+ onFocus: (e) => {
580
+ e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || z.current || (z.current = !0, R.current = e.relatedTarget);
581
+ },
582
+ onMouseEnter: () => M(!0),
583
+ onMouseMove: () => M(!0),
584
+ onMouseLeave: () => {
585
+ N || M(!1);
586
+ },
587
+ onDragEnd: () => M(!1),
588
+ onPointerDown: (e) => {
589
+ e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || P(!0);
590
+ },
591
+ onPointerUp: () => P(!1)
592
+ }, D.filter((e) => !e.position && r === 0 || e.position === t).map((r, i) => /*#__PURE__*/ e.createElement(T, {
593
+ key: r.id,
594
+ icons: S,
595
+ index: i,
596
+ toast: r,
597
+ defaultRichColors: p,
598
+ duration: v?.duration ?? h,
599
+ className: v?.className,
600
+ descriptionClassName: v?.descriptionClassName,
601
+ invert: a,
602
+ visibleToasts: _,
603
+ closeButton: v?.closeButton ?? l,
604
+ interacting: N,
605
+ position: t,
606
+ style: v?.style,
607
+ unstyled: v?.unstyled,
608
+ classNames: v?.classNames,
609
+ cancelButtonStyle: v?.cancelButtonStyle,
610
+ actionButtonStyle: v?.actionButtonStyle,
611
+ closeButtonAriaLabel: v?.closeButtonAriaLabel,
612
+ removeToast: B,
613
+ toasts: D.filter((e) => e.position == r.position),
614
+ heights: k.filter((e) => e.position == r.position),
615
+ setHeights: A,
616
+ expandByDefault: c,
617
+ gap: x,
618
+ expanded: j,
619
+ swipeDirections: n.swipeDirections
620
+ }))) : null;
621
+ }));
622
+ });
623
+ export { _ as n, D as t };
@@ -29,7 +29,7 @@ function l() {
29
29
  let e = globalThis.crypto;
30
30
  if (typeof e?.randomUUID == "function") return e.randomUUID().replace(/-/g, "").slice(0, 12);
31
31
  if (typeof e?.getRandomValues == "function") {
32
- let t = new Uint8Array(8);
32
+ let t = /* @__PURE__ */ new Uint8Array(8);
33
33
  return e.getRandomValues(t), Array.from(t, (e) => e.toString(36).padStart(2, "0")).join("").slice(0, 12);
34
34
  }
35
35
  return Math.random().toString(36).slice(2, 14);
@@ -160,7 +160,7 @@ function S(e, t) {
160
160
  i &&= (clearTimeout(i), null), n = !1, r = null;
161
161
  }, s;
162
162
  }
163
- var C = new Set([
163
+ var C = /* @__PURE__ */ new Set([
164
164
  "button",
165
165
  "link",
166
166
  "textbox",