@react-pdf-kit/viewer 2.0.0-beta.1 → 2.0.0-beta.11

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 (150) hide show
  1. package/README.md +6 -6
  2. package/dist/Combination-54a77a7a.js +701 -0
  3. package/dist/MostPageTool.module-13578ad6.js +6 -0
  4. package/dist/OtherTool.module-a4be5f1f.js +6 -0
  5. package/dist/Paginate.module-206a7d7d.js +8 -0
  6. package/dist/PaginationContext-9217cab4.js +201 -0
  7. package/dist/{LayoutWrapper-6224491f.js → RPLayout.module-967bf4bc.js} +3 -9
  8. package/dist/RPToolbar.module-27d7fe77.js +10 -0
  9. package/dist/SearchTool.module-99f60dc7.js +16 -0
  10. package/dist/ToolbarLayout.module-1fee0a18.js +11 -0
  11. package/dist/ZoomTool.module-7082af8c.js +12 -0
  12. package/dist/assets/style.css +1 -1
  13. package/dist/assets/style.js +32 -31
  14. package/dist/components/RPConfig.js +10 -1485
  15. package/dist/components/RPController.js +77 -148
  16. package/dist/components/RPPages.js +981 -124
  17. package/dist/components/RPProvider.js +56 -118
  18. package/dist/components/icons/DualPageIcon.js +6 -6
  19. package/dist/components/icons/SinglePageIcon.js +6 -6
  20. package/dist/components/layout/LayoutContainer.js +31 -138
  21. package/dist/components/layout/LayoutWrapper.js +8 -4
  22. package/dist/components/layout/RPDefaultLayout.js +162 -88
  23. package/dist/components/layout/RPLayout.js +119 -107
  24. package/dist/components/layout/sidebar/RPSidebar.js +83 -113
  25. package/dist/components/layout/sidebar/Thumbnail.js +120 -126
  26. package/dist/components/layout/sidebar/Thumbnails.js +56 -121
  27. package/dist/components/layout/toolbar/DarkModeTool.js +6 -4
  28. package/dist/components/layout/toolbar/DocumentDialog.js +304 -132
  29. package/dist/components/layout/toolbar/DocumentProperties.js +12 -9
  30. package/dist/components/layout/toolbar/FileDownloadTool.js +34 -126
  31. package/dist/components/layout/toolbar/FileUploadTool.js +8 -5
  32. package/dist/components/layout/toolbar/FullScreenTool.js +16 -13
  33. package/dist/components/layout/toolbar/MenuItem.js +11 -8
  34. package/dist/components/layout/toolbar/MenuSeparator.js +8 -5
  35. package/dist/components/layout/toolbar/MostPageTool.js +64 -125
  36. package/dist/components/layout/toolbar/OtherTool.js +162 -114
  37. package/dist/components/layout/toolbar/Paginate.js +113 -117
  38. package/dist/components/layout/toolbar/PrintTool.js +55 -125
  39. package/dist/components/layout/toolbar/RPMenuItem.js +14 -11
  40. package/dist/components/layout/toolbar/RPMoreOptions.js +66 -121
  41. package/dist/components/layout/toolbar/RPToolbar.js +89 -81
  42. package/dist/components/layout/toolbar/RPToolbarEnd.js +68 -90
  43. package/dist/components/layout/toolbar/RotateTool.js +12 -9
  44. package/dist/components/layout/toolbar/ScrollModeTool.js +14 -11
  45. package/dist/components/layout/toolbar/SearchCloseButton.js +23 -9
  46. package/dist/components/layout/toolbar/SearchResultNavigator.js +53 -106
  47. package/dist/components/layout/toolbar/SearchTool.js +222 -121
  48. package/dist/components/layout/toolbar/SelectionModeTool.js +8 -5
  49. package/dist/components/layout/toolbar/ThumbnailTool.js +15 -124
  50. package/dist/components/layout/toolbar/ToolbarCustom.js +44 -130
  51. package/dist/components/layout/toolbar/ToolbarDefault.js +122 -120
  52. package/dist/components/layout/toolbar/ToolbarLayout.js +85 -83
  53. package/dist/components/layout/toolbar/ViewModeTool.js +10 -7
  54. package/dist/components/layout/toolbar/ZoomTool.js +128 -120
  55. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +17 -123
  56. package/dist/components/layout/toolbar/tools/DualPageTool.js +26 -0
  57. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +10 -121
  58. package/dist/components/layout/toolbar/tools/FileUploadTool.js +6 -4
  59. package/dist/components/layout/toolbar/tools/FullScreenTool.js +13 -11
  60. package/dist/components/layout/toolbar/tools/InputPageTool.js +19 -112
  61. package/dist/components/layout/toolbar/tools/NextPageTool.js +30 -123
  62. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +16 -109
  63. package/dist/components/layout/toolbar/tools/PrintTool.js +12 -123
  64. package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +6 -4
  65. package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +6 -4
  66. package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +31 -0
  67. package/dist/components/layout/toolbar/tools/SinglePageTool.js +26 -0
  68. package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +6 -4
  69. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +17 -128
  70. package/dist/components/layout/toolbar/tools/ZoomInTool.js +6 -4
  71. package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +22 -137
  72. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +26 -123
  73. package/dist/components/layout/toolbar/tools/ZoomOutTool.js +6 -4
  74. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +95 -105
  75. package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +16 -125
  76. package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +8 -5
  77. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +10 -117
  78. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +12 -120
  79. package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +10 -7
  80. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +36 -125
  81. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +16 -123
  82. package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +14 -11
  83. package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +15 -12
  84. package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +18 -15
  85. package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +10 -7
  86. package/dist/components/page/AnnotationLayer.js +122 -126
  87. package/dist/components/page/CanvasLayer.js +54 -125
  88. package/dist/components/page/DualPage.js +68 -111
  89. package/dist/components/page/RPPage.js +126 -125
  90. package/dist/components/page/SinglePage.js +58 -111
  91. package/dist/components/page/TextHighlightLayer.js +184 -128
  92. package/dist/components/page/TextLayer.js +184 -125
  93. package/dist/components/ui/Checkbox.js +25 -24
  94. package/dist/components/ui/DropDown.js +11 -8
  95. package/dist/components/ui/LoadingIndicator.js +34 -129
  96. package/dist/components/ui/RPTooltip.js +412 -196
  97. package/dist/contexts/ElementPageContext.js +1 -1
  98. package/dist/contexts/FullScreenContext.js +17 -10
  99. package/dist/contexts/LocalizationContext.js +24 -29
  100. package/dist/contexts/PaginationContext.js +14 -119
  101. package/dist/contexts/PrintContext.js +67 -133
  102. package/dist/contexts/RPDocumentContext.js +32 -24
  103. package/dist/contexts/RenderQueueProvider.js +47 -119
  104. package/dist/contexts/SearchContext.js +65 -113
  105. package/dist/contexts/ThumbnailsContext.js +32 -133
  106. package/dist/contexts/ZoomContext.js +22 -22
  107. package/dist/floating-ui.react-dom-5ec29bd6.js +1327 -0
  108. package/dist/index-4baea9b5.js +1198 -0
  109. package/dist/index-655864a7.js +27 -0
  110. package/dist/{index-c9a2990a.js → index-c0faa594.js} +64 -87
  111. package/dist/index-e3ee9457.js +150 -0
  112. package/dist/main.js +193 -142
  113. package/dist/types/components/icons/DualPageIcon.d.ts +1 -1
  114. package/dist/types/components/icons/SinglePageIcon.d.ts +1 -1
  115. package/dist/types/components/layout/toolbar/tools/DualPageTool.d.ts +3 -0
  116. package/dist/types/components/layout/toolbar/tools/SelectionModeSwitcherTool.d.ts +3 -0
  117. package/dist/types/components/layout/toolbar/tools/SinglePageTool.d.ts +3 -0
  118. package/dist/types/contexts/RenderQueueProvider.d.ts +2 -2
  119. package/dist/types/main.d.ts +5 -5
  120. package/dist/types/utils/annotations.d.ts +2 -1
  121. package/dist/types/utils/getElementPositionInPage.d.ts +2 -2
  122. package/dist/types/utils/hooks/useCopyText.d.ts +1 -0
  123. package/dist/types/utils/hooks/usePrint.d.ts +3 -2
  124. package/dist/types/utils/hooks/useSearch.d.ts +1 -2
  125. package/dist/types/utils/renderPage.d.ts +2 -2
  126. package/dist/types/utils/types.d.ts +27 -4
  127. package/dist/utils/annotations.js +128 -142
  128. package/dist/utils/getWordPositionInPage.js +5 -5
  129. package/dist/utils/highlight.js +72 -72
  130. package/dist/utils/hooks/useCopyText.js +36 -0
  131. package/dist/utils/hooks/useFileDownload.js +20 -129
  132. package/dist/utils/hooks/useHighlight.js +28 -28
  133. package/dist/utils/hooks/useLicense.js +1 -1
  134. package/dist/utils/hooks/useLoadPdf.js +42 -39
  135. package/dist/utils/hooks/useLoadWorker.js +9 -6
  136. package/dist/utils/hooks/useLocalization.js +13 -13
  137. package/dist/utils/hooks/usePaginate.js +21 -126
  138. package/dist/utils/hooks/usePresentPage.js +75 -127
  139. package/dist/utils/hooks/usePrint.js +173 -130
  140. package/dist/utils/hooks/useScrollToPage.js +15 -120
  141. package/dist/utils/hooks/useSearch.js +132 -126
  142. package/dist/utils/hooks/useThumbnail.js +47 -130
  143. package/dist/utils/hooks/useVirtualReactWindow.js +64 -128
  144. package/dist/utils/injectPrintCSS.js +1 -1
  145. package/dist/utils/renderPage.js +12 -10
  146. package/package.json +26 -23
  147. package/dist/SearchCloseButton-08d57275.js +0 -33
  148. package/dist/ToolbarLayout.module-37619c4b.js +0 -3548
  149. package/dist/index-808ea7bf.js +0 -1685
  150. package/dist/index-a48ec088.js +0 -1672
@@ -1,10 +1,226 @@
1
- import { jsx as p, jsxs as L } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import { P as M, c as K, e as J, u as j, a as g, b as Q, f as Z } from "../../index-c9a2990a.js";
4
- import { c as G, u as $, R as ee, A as te, D as oe, C as re, a as ne } from "../../index-808ea7bf.js";
5
- import { withRef as se } from "../../utils/withRef.js";
1
+ import { jsx as p, jsxs as Y } from "react/jsx-runtime";
2
+ import * as a from "react";
3
+ import { P as S, c as ae, a as k, u as oe, f as Fe, b as E, d as We, i as Be } from "../../index-c0faa594.js";
4
+ import { a as Ge, u as Xe, D as Ve } from "../../index-e3ee9457.js";
5
+ import { u as Ue, a as ze, o as qe, s as Ze, f as Ke, b as Je, c as Qe, h as et, l as tt } from "../../floating-ui.react-dom-5ec29bd6.js";
6
+ import { u as rt } from "../../index-655864a7.js";
7
+ import { withRef as ot } from "../../utils/withRef.js";
6
8
  import "react-dom";
7
- var ae = Object.freeze({
9
+ var nt = "Arrow", se = a.forwardRef((e, r) => {
10
+ const { children: t, width: o = 10, height: n = 5, ...i } = e;
11
+ return /* @__PURE__ */ p(
12
+ S.svg,
13
+ {
14
+ ...i,
15
+ ref: r,
16
+ width: o,
17
+ height: n,
18
+ viewBox: "0 0 30 10",
19
+ preserveAspectRatio: "none",
20
+ children: e.asChild ? t : /* @__PURE__ */ p("polygon", { points: "0,0 30,0 15,10" })
21
+ }
22
+ );
23
+ });
24
+ se.displayName = nt;
25
+ var at = se, B = "Popper", [ie, le] = ae(B), [st, ce] = ie(B), pe = (e) => {
26
+ const { __scopePopper: r, children: t } = e, [o, n] = a.useState(null);
27
+ return /* @__PURE__ */ p(st, { scope: r, anchor: o, onAnchorChange: n, children: t });
28
+ };
29
+ pe.displayName = B;
30
+ var de = "PopperAnchor", ue = a.forwardRef(
31
+ (e, r) => {
32
+ const { __scopePopper: t, virtualRef: o, ...n } = e, i = ce(de, t), l = a.useRef(null), h = k(r, l), s = a.useRef(null);
33
+ return a.useEffect(() => {
34
+ const d = s.current;
35
+ s.current = (o == null ? void 0 : o.current) || l.current, d !== s.current && i.onAnchorChange(s.current);
36
+ }), o ? null : /* @__PURE__ */ p(S.div, { ...n, ref: h });
37
+ }
38
+ );
39
+ ue.displayName = de;
40
+ var G = "PopperContent", [it, lt] = ie(G), fe = a.forwardRef(
41
+ (e, r) => {
42
+ var Z, K, J, Q, ee, te;
43
+ const {
44
+ __scopePopper: t,
45
+ side: o = "bottom",
46
+ sideOffset: n = 0,
47
+ align: i = "center",
48
+ alignOffset: l = 0,
49
+ arrowPadding: h = 0,
50
+ avoidCollisions: s = !0,
51
+ collisionBoundary: d = [],
52
+ collisionPadding: c = 0,
53
+ sticky: f = "partial",
54
+ hideWhenDetached: g = !1,
55
+ updatePositionStrategy: u = "optimized",
56
+ onPlaced: v,
57
+ ...m
58
+ } = e, y = ce(G, t), [w, x] = a.useState(null), T = k(r, (_) => x(_)), [C, b] = a.useState(null), P = rt(C), N = (P == null ? void 0 : P.width) ?? 0, V = (P == null ? void 0 : P.height) ?? 0, Ee = o + (i !== "center" ? "-" + i : ""), Re = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, U = Array.isArray(d) ? d : [d], _e = U.length > 0, D = {
59
+ padding: Re,
60
+ boundary: U.filter(pt),
61
+ // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
62
+ altBoundary: _e
63
+ }, { refs: Oe, floatingStyles: z, placement: Se, isPositioned: H, middlewareData: A } = Ue({
64
+ // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
65
+ strategy: "fixed",
66
+ placement: Ee,
67
+ whileElementsMounted: (..._) => ze(..._, {
68
+ animationFrame: u === "always"
69
+ }),
70
+ elements: {
71
+ reference: y.anchor
72
+ },
73
+ middleware: [
74
+ qe({ mainAxis: n + V, alignmentAxis: l }),
75
+ s && Ze({
76
+ mainAxis: !0,
77
+ crossAxis: !1,
78
+ limiter: f === "partial" ? tt() : void 0,
79
+ ...D
80
+ }),
81
+ s && Ke({ ...D }),
82
+ Je({
83
+ ...D,
84
+ apply: ({ elements: _, rects: re, availableWidth: Me, availableHeight: $e }) => {
85
+ const { width: je, height: Ye } = re.reference, L = _.floating.style;
86
+ L.setProperty("--radix-popper-available-width", `${Me}px`), L.setProperty("--radix-popper-available-height", `${$e}px`), L.setProperty("--radix-popper-anchor-width", `${je}px`), L.setProperty("--radix-popper-anchor-height", `${Ye}px`);
87
+ }
88
+ }),
89
+ C && Qe({ element: C, padding: h }),
90
+ dt({ arrowWidth: N, arrowHeight: V }),
91
+ g && et({ strategy: "referenceHidden", ...D })
92
+ ]
93
+ }), [q, Ne] = ge(Se), I = Ge(v);
94
+ oe(() => {
95
+ H && (I == null || I());
96
+ }, [H, I]);
97
+ const De = (Z = A.arrow) == null ? void 0 : Z.x, He = (K = A.arrow) == null ? void 0 : K.y, Ie = ((J = A.arrow) == null ? void 0 : J.centerOffset) !== 0, [Le, ke] = a.useState();
98
+ return oe(() => {
99
+ w && ke(window.getComputedStyle(w).zIndex);
100
+ }, [w]), /* @__PURE__ */ p(
101
+ "div",
102
+ {
103
+ ref: Oe.setFloating,
104
+ "data-radix-popper-content-wrapper": "",
105
+ style: {
106
+ ...z,
107
+ transform: H ? z.transform : "translate(0, -200%)",
108
+ // keep off the page when measuring
109
+ minWidth: "max-content",
110
+ zIndex: Le,
111
+ "--radix-popper-transform-origin": [
112
+ (Q = A.transformOrigin) == null ? void 0 : Q.x,
113
+ (ee = A.transformOrigin) == null ? void 0 : ee.y
114
+ ].join(" "),
115
+ // hide the content if using the hide middleware and should be hidden
116
+ // set visibility to hidden and disable pointer events so the UI behaves
117
+ // as if the PopperContent isn't there at all
118
+ ...((te = A.hide) == null ? void 0 : te.referenceHidden) && {
119
+ visibility: "hidden",
120
+ pointerEvents: "none"
121
+ }
122
+ },
123
+ dir: e.dir,
124
+ children: /* @__PURE__ */ p(
125
+ it,
126
+ {
127
+ scope: t,
128
+ placedSide: q,
129
+ onArrowChange: b,
130
+ arrowX: De,
131
+ arrowY: He,
132
+ shouldHideArrow: Ie,
133
+ children: /* @__PURE__ */ p(
134
+ S.div,
135
+ {
136
+ "data-side": q,
137
+ "data-align": Ne,
138
+ ...m,
139
+ ref: T,
140
+ style: {
141
+ ...m.style,
142
+ // if the PopperContent hasn't been placed yet (not all measurements done)
143
+ // we prevent animations so that users's animation don't kick in too early referring wrong sides
144
+ animation: H ? void 0 : "none"
145
+ }
146
+ }
147
+ )
148
+ }
149
+ )
150
+ }
151
+ );
152
+ }
153
+ );
154
+ fe.displayName = G;
155
+ var he = "PopperArrow", ct = {
156
+ top: "bottom",
157
+ right: "left",
158
+ bottom: "top",
159
+ left: "right"
160
+ }, ve = a.forwardRef(function(r, t) {
161
+ const { __scopePopper: o, ...n } = r, i = lt(he, o), l = ct[i.placedSide];
162
+ return (
163
+ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
164
+ // doesn't report size as we'd expect on SVG elements.
165
+ // it reports their bounding box which is effectively the largest path inside the SVG.
166
+ /* @__PURE__ */ p(
167
+ "span",
168
+ {
169
+ ref: i.onArrowChange,
170
+ style: {
171
+ position: "absolute",
172
+ left: i.arrowX,
173
+ top: i.arrowY,
174
+ [l]: 0,
175
+ transformOrigin: {
176
+ top: "",
177
+ right: "0 0",
178
+ bottom: "center 0",
179
+ left: "100% 0"
180
+ }[i.placedSide],
181
+ transform: {
182
+ top: "translateY(100%)",
183
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
184
+ bottom: "rotate(180deg)",
185
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
186
+ }[i.placedSide],
187
+ visibility: i.shouldHideArrow ? "hidden" : void 0
188
+ },
189
+ children: /* @__PURE__ */ p(
190
+ at,
191
+ {
192
+ ...n,
193
+ ref: t,
194
+ style: {
195
+ ...n.style,
196
+ // ensures the element can be measured correctly (mostly for if SVG)
197
+ display: "block"
198
+ }
199
+ }
200
+ )
201
+ }
202
+ )
203
+ );
204
+ });
205
+ ve.displayName = he;
206
+ function pt(e) {
207
+ return e !== null;
208
+ }
209
+ var dt = (e) => ({
210
+ name: "transformOrigin",
211
+ options: e,
212
+ fn(r) {
213
+ var y, w, x;
214
+ const { placement: t, rects: o, middlewareData: n } = r, l = ((y = n.arrow) == null ? void 0 : y.centerOffset) !== 0, h = l ? 0 : e.arrowWidth, s = l ? 0 : e.arrowHeight, [d, c] = ge(t), f = { start: "0%", center: "50%", end: "100%" }[c], g = (((w = n.arrow) == null ? void 0 : w.x) ?? 0) + h / 2, u = (((x = n.arrow) == null ? void 0 : x.y) ?? 0) + s / 2;
215
+ let v = "", m = "";
216
+ return d === "bottom" ? (v = l ? f : `${g}px`, m = `${-s}px`) : d === "top" ? (v = l ? f : `${g}px`, m = `${o.floating.height + s}px`) : d === "right" ? (v = `${-s}px`, m = l ? f : `${u}px`) : d === "left" && (v = `${o.floating.width + s}px`, m = l ? f : `${u}px`), { data: { x: v, y: m } };
217
+ }
218
+ });
219
+ function ge(e) {
220
+ const [r, t = "center"] = e.split("-");
221
+ return [r, t];
222
+ }
223
+ var ut = pe, ft = ue, ht = fe, vt = ve, gt = Object.freeze({
8
224
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
9
225
  position: "absolute",
10
226
  border: 0,
@@ -16,203 +232,203 @@ var ae = Object.freeze({
16
232
  clip: "rect(0, 0, 0, 0)",
17
233
  whiteSpace: "nowrap",
18
234
  wordWrap: "normal"
19
- }), ie = "VisuallyHidden", F = s.forwardRef(
20
- (e, o) => /* @__PURE__ */ p(
21
- M.span,
235
+ }), mt = "VisuallyHidden", me = a.forwardRef(
236
+ (e, r) => /* @__PURE__ */ p(
237
+ S.span,
22
238
  {
23
239
  ...e,
24
- ref: o,
25
- style: { ...ae, ...e.style }
240
+ ref: r,
241
+ style: { ...gt, ...e.style }
26
242
  }
27
243
  )
28
244
  );
29
- F.displayName = ie;
30
- var le = F, [_, ke] = K("Tooltip", [
31
- G
32
- ]), A = G(), V = "TooltipProvider", ce = 700, O = "tooltip.open", [ue, I] = _(V), Y = (e) => {
245
+ me.displayName = mt;
246
+ var yt = me, [M, Gt] = ae("Tooltip", [
247
+ le
248
+ ]), $ = le(), ye = "TooltipProvider", wt = 700, F = "tooltip.open", [xt, X] = M(ye), we = (e) => {
33
249
  const {
34
- __scopeTooltip: o,
35
- delayDuration: t = ce,
36
- skipDelayDuration: r = 300,
250
+ __scopeTooltip: r,
251
+ delayDuration: t = wt,
252
+ skipDelayDuration: o = 300,
37
253
  disableHoverableContent: n = !1,
38
- children: l
39
- } = e, i = s.useRef(!0), v = s.useRef(!1), a = s.useRef(0);
40
- return s.useEffect(() => {
41
- const d = a.current;
254
+ children: i
255
+ } = e, l = a.useRef(!0), h = a.useRef(!1), s = a.useRef(0);
256
+ return a.useEffect(() => {
257
+ const d = s.current;
42
258
  return () => window.clearTimeout(d);
43
259
  }, []), /* @__PURE__ */ p(
44
- ue,
260
+ xt,
45
261
  {
46
- scope: o,
47
- isOpenDelayedRef: i,
262
+ scope: r,
263
+ isOpenDelayedRef: l,
48
264
  delayDuration: t,
49
- onOpen: s.useCallback(() => {
50
- window.clearTimeout(a.current), i.current = !1;
265
+ onOpen: a.useCallback(() => {
266
+ window.clearTimeout(s.current), l.current = !1;
51
267
  }, []),
52
- onClose: s.useCallback(() => {
53
- window.clearTimeout(a.current), a.current = window.setTimeout(
54
- () => i.current = !0,
55
- r
268
+ onClose: a.useCallback(() => {
269
+ window.clearTimeout(s.current), s.current = window.setTimeout(
270
+ () => l.current = !0,
271
+ o
56
272
  );
57
- }, [r]),
58
- isPointerInTransitRef: v,
59
- onPointerInTransitChange: s.useCallback((d) => {
60
- v.current = d;
273
+ }, [o]),
274
+ isPointerInTransitRef: h,
275
+ onPointerInTransitChange: a.useCallback((d) => {
276
+ h.current = d;
61
277
  }, []),
62
278
  disableHoverableContent: n,
63
- children: l
279
+ children: i
64
280
  }
65
281
  );
66
282
  };
67
- Y.displayName = V;
68
- var P = "Tooltip", [pe, D] = _(P), B = (e) => {
283
+ we.displayName = ye;
284
+ var O = "Tooltip", [Ct, j] = M(O), xe = (e) => {
69
285
  const {
70
- __scopeTooltip: o,
286
+ __scopeTooltip: r,
71
287
  children: t,
72
- open: r,
288
+ open: o,
73
289
  defaultOpen: n,
74
- onOpenChange: l,
75
- disableHoverableContent: i,
76
- delayDuration: v
77
- } = e, a = I(P, e.__scopeTooltip), d = A(o), [c, f] = s.useState(null), h = $(), u = s.useRef(0), y = i ?? a.disableHoverableContent, C = v ?? a.delayDuration, T = s.useRef(!1), [x, m] = J({
78
- prop: r,
290
+ onOpenChange: i,
291
+ disableHoverableContent: l,
292
+ delayDuration: h
293
+ } = e, s = X(O, e.__scopeTooltip), d = $(r), [c, f] = a.useState(null), g = Xe(), u = a.useRef(0), v = l ?? s.disableHoverableContent, m = h ?? s.delayDuration, y = a.useRef(!1), [w, x] = Fe({
294
+ prop: o,
79
295
  defaultProp: n ?? !1,
80
- onChange: (S) => {
81
- S ? (a.onOpen(), document.dispatchEvent(new CustomEvent(O))) : a.onClose(), l == null || l(S);
296
+ onChange: (N) => {
297
+ N ? (s.onOpen(), document.dispatchEvent(new CustomEvent(F))) : s.onClose(), i == null || i(N);
82
298
  },
83
- caller: P
84
- }), b = s.useMemo(() => x ? T.current ? "delayed-open" : "instant-open" : "closed", [x]), E = s.useCallback(() => {
85
- window.clearTimeout(u.current), u.current = 0, T.current = !1, m(!0);
86
- }, [m]), R = s.useCallback(() => {
87
- window.clearTimeout(u.current), u.current = 0, m(!1);
88
- }, [m]), N = s.useCallback(() => {
299
+ caller: O
300
+ }), T = a.useMemo(() => w ? y.current ? "delayed-open" : "instant-open" : "closed", [w]), C = a.useCallback(() => {
301
+ window.clearTimeout(u.current), u.current = 0, y.current = !1, x(!0);
302
+ }, [x]), b = a.useCallback(() => {
303
+ window.clearTimeout(u.current), u.current = 0, x(!1);
304
+ }, [x]), P = a.useCallback(() => {
89
305
  window.clearTimeout(u.current), u.current = window.setTimeout(() => {
90
- T.current = !0, m(!0), u.current = 0;
91
- }, C);
92
- }, [C, m]);
93
- return s.useEffect(() => () => {
306
+ y.current = !0, x(!0), u.current = 0;
307
+ }, m);
308
+ }, [m, x]);
309
+ return a.useEffect(() => () => {
94
310
  u.current && (window.clearTimeout(u.current), u.current = 0);
95
- }, []), /* @__PURE__ */ p(ee, { ...d, children: /* @__PURE__ */ p(
96
- pe,
311
+ }, []), /* @__PURE__ */ p(ut, { ...d, children: /* @__PURE__ */ p(
312
+ Ct,
97
313
  {
98
- scope: o,
99
- contentId: h,
100
- open: x,
101
- stateAttribute: b,
314
+ scope: r,
315
+ contentId: g,
316
+ open: w,
317
+ stateAttribute: T,
102
318
  trigger: c,
103
319
  onTriggerChange: f,
104
- onTriggerEnter: s.useCallback(() => {
105
- a.isOpenDelayedRef.current ? N() : E();
106
- }, [a.isOpenDelayedRef, N, E]),
107
- onTriggerLeave: s.useCallback(() => {
108
- y ? R() : (window.clearTimeout(u.current), u.current = 0);
109
- }, [R, y]),
110
- onOpen: E,
111
- onClose: R,
112
- disableHoverableContent: y,
320
+ onTriggerEnter: a.useCallback(() => {
321
+ s.isOpenDelayedRef.current ? P() : C();
322
+ }, [s.isOpenDelayedRef, P, C]),
323
+ onTriggerLeave: a.useCallback(() => {
324
+ v ? b() : (window.clearTimeout(u.current), u.current = 0);
325
+ }, [b, v]),
326
+ onOpen: C,
327
+ onClose: b,
328
+ disableHoverableContent: v,
113
329
  children: t
114
330
  }
115
331
  ) });
116
332
  };
117
- B.displayName = P;
118
- var k = "TooltipTrigger", U = s.forwardRef(
119
- (e, o) => {
120
- const { __scopeTooltip: t, ...r } = e, n = D(k, t), l = I(k, t), i = A(t), v = s.useRef(null), a = j(o, v, n.onTriggerChange), d = s.useRef(!1), c = s.useRef(!1), f = s.useCallback(() => d.current = !1, []);
121
- return s.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ p(te, { asChild: !0, ...i, children: /* @__PURE__ */ p(
122
- M.button,
333
+ xe.displayName = O;
334
+ var W = "TooltipTrigger", Ce = a.forwardRef(
335
+ (e, r) => {
336
+ const { __scopeTooltip: t, ...o } = e, n = j(W, t), i = X(W, t), l = $(t), h = a.useRef(null), s = k(r, h, n.onTriggerChange), d = a.useRef(!1), c = a.useRef(!1), f = a.useCallback(() => d.current = !1, []);
337
+ return a.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ p(ft, { asChild: !0, ...l, children: /* @__PURE__ */ p(
338
+ S.button,
123
339
  {
124
340
  "aria-describedby": n.open ? n.contentId : void 0,
125
341
  "data-state": n.stateAttribute,
126
- ...r,
127
- ref: a,
128
- onPointerMove: g(e.onPointerMove, (h) => {
129
- h.pointerType !== "touch" && !c.current && !l.isPointerInTransitRef.current && (n.onTriggerEnter(), c.current = !0);
342
+ ...o,
343
+ ref: s,
344
+ onPointerMove: E(e.onPointerMove, (g) => {
345
+ g.pointerType !== "touch" && !c.current && !i.isPointerInTransitRef.current && (n.onTriggerEnter(), c.current = !0);
130
346
  }),
131
- onPointerLeave: g(e.onPointerLeave, () => {
347
+ onPointerLeave: E(e.onPointerLeave, () => {
132
348
  n.onTriggerLeave(), c.current = !1;
133
349
  }),
134
- onPointerDown: g(e.onPointerDown, () => {
350
+ onPointerDown: E(e.onPointerDown, () => {
135
351
  n.open && n.onClose(), d.current = !0, document.addEventListener("pointerup", f, { once: !0 });
136
352
  }),
137
- onFocus: g(e.onFocus, () => {
353
+ onFocus: E(e.onFocus, () => {
138
354
  d.current || n.onOpen();
139
355
  }),
140
- onBlur: g(e.onBlur, n.onClose),
141
- onClick: g(e.onClick, n.onClose)
356
+ onBlur: E(e.onBlur, n.onClose),
357
+ onClick: E(e.onClick, n.onClose)
142
358
  }
143
359
  ) });
144
360
  }
145
361
  );
146
- U.displayName = k;
147
- var de = "TooltipPortal", [Ie, fe] = _(de, {
362
+ Ce.displayName = W;
363
+ var Pt = "TooltipPortal", [Xt, Tt] = M(Pt, {
148
364
  forceMount: void 0
149
- }), w = "TooltipContent", q = s.forwardRef(
150
- (e, o) => {
151
- const t = fe(w, e.__scopeTooltip), { forceMount: r = t.forceMount, side: n = "top", ...l } = e, i = D(w, e.__scopeTooltip);
152
- return /* @__PURE__ */ p(Q, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ p(W, { side: n, ...l, ref: o }) : /* @__PURE__ */ p(ve, { side: n, ...l, ref: o }) });
365
+ }), R = "TooltipContent", Pe = a.forwardRef(
366
+ (e, r) => {
367
+ const t = Tt(R, e.__scopeTooltip), { forceMount: o = t.forceMount, side: n = "top", ...i } = e, l = j(R, e.__scopeTooltip);
368
+ return /* @__PURE__ */ p(We, { present: o || l.open, children: l.disableHoverableContent ? /* @__PURE__ */ p(Te, { side: n, ...i, ref: r }) : /* @__PURE__ */ p(bt, { side: n, ...i, ref: r }) });
153
369
  }
154
- ), ve = s.forwardRef((e, o) => {
155
- const t = D(w, e.__scopeTooltip), r = I(w, e.__scopeTooltip), n = s.useRef(null), l = j(o, n), [i, v] = s.useState(null), { trigger: a, onClose: d } = t, c = n.current, { onPointerInTransitChange: f } = r, h = s.useCallback(() => {
156
- v(null), f(!1);
157
- }, [f]), u = s.useCallback(
158
- (y, C) => {
159
- const T = y.currentTarget, x = { x: y.clientX, y: y.clientY }, m = Ce(x, T.getBoundingClientRect()), b = me(x, m), E = xe(C.getBoundingClientRect()), R = we([...b, ...E]);
160
- v(R), f(!0);
370
+ ), bt = a.forwardRef((e, r) => {
371
+ const t = j(R, e.__scopeTooltip), o = X(R, e.__scopeTooltip), n = a.useRef(null), i = k(r, n), [l, h] = a.useState(null), { trigger: s, onClose: d } = t, c = n.current, { onPointerInTransitChange: f } = o, g = a.useCallback(() => {
372
+ h(null), f(!1);
373
+ }, [f]), u = a.useCallback(
374
+ (v, m) => {
375
+ const y = v.currentTarget, w = { x: v.clientX, y: v.clientY }, x = _t(w, y.getBoundingClientRect()), T = Ot(w, x), C = St(m.getBoundingClientRect()), b = Dt([...T, ...C]);
376
+ h(b), f(!0);
161
377
  },
162
378
  [f]
163
379
  );
164
- return s.useEffect(() => () => h(), [h]), s.useEffect(() => {
165
- if (a && c) {
166
- const y = (T) => u(T, c), C = (T) => u(T, a);
167
- return a.addEventListener("pointerleave", y), c.addEventListener("pointerleave", C), () => {
168
- a.removeEventListener("pointerleave", y), c.removeEventListener("pointerleave", C);
380
+ return a.useEffect(() => () => g(), [g]), a.useEffect(() => {
381
+ if (s && c) {
382
+ const v = (y) => u(y, c), m = (y) => u(y, s);
383
+ return s.addEventListener("pointerleave", v), c.addEventListener("pointerleave", m), () => {
384
+ s.removeEventListener("pointerleave", v), c.removeEventListener("pointerleave", m);
169
385
  };
170
386
  }
171
- }, [a, c, u, h]), s.useEffect(() => {
172
- if (i) {
173
- const y = (C) => {
174
- const T = C.target, x = { x: C.clientX, y: C.clientY }, m = (a == null ? void 0 : a.contains(T)) || (c == null ? void 0 : c.contains(T)), b = !ge(x, i);
175
- m ? h() : b && (h(), d());
387
+ }, [s, c, u, g]), a.useEffect(() => {
388
+ if (l) {
389
+ const v = (m) => {
390
+ const y = m.target, w = { x: m.clientX, y: m.clientY }, x = (s == null ? void 0 : s.contains(y)) || (c == null ? void 0 : c.contains(y)), T = !Nt(w, l);
391
+ x ? g() : T && (g(), d());
176
392
  };
177
- return document.addEventListener("pointermove", y), () => document.removeEventListener("pointermove", y);
393
+ return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
178
394
  }
179
- }, [a, c, i, d, h]), /* @__PURE__ */ p(W, { ...e, ref: l });
180
- }), [he, ye] = _(P, { isInside: !1 }), Te = Z("TooltipContent"), W = s.forwardRef(
181
- (e, o) => {
395
+ }, [s, c, l, d, g]), /* @__PURE__ */ p(Te, { ...e, ref: i });
396
+ }), [At, Et] = M(O, { isInside: !1 }), Rt = Be("TooltipContent"), Te = a.forwardRef(
397
+ (e, r) => {
182
398
  const {
183
399
  __scopeTooltip: t,
184
- children: r,
400
+ children: o,
185
401
  "aria-label": n,
186
- onEscapeKeyDown: l,
187
- onPointerDownOutside: i,
188
- ...v
189
- } = e, a = D(w, t), d = A(t), { onClose: c } = a;
190
- return s.useEffect(() => (document.addEventListener(O, c), () => document.removeEventListener(O, c)), [c]), s.useEffect(() => {
191
- if (a.trigger) {
192
- const f = (h) => {
193
- const u = h.target;
194
- u != null && u.contains(a.trigger) && c();
402
+ onEscapeKeyDown: i,
403
+ onPointerDownOutside: l,
404
+ ...h
405
+ } = e, s = j(R, t), d = $(t), { onClose: c } = s;
406
+ return a.useEffect(() => (document.addEventListener(F, c), () => document.removeEventListener(F, c)), [c]), a.useEffect(() => {
407
+ if (s.trigger) {
408
+ const f = (g) => {
409
+ const u = g.target;
410
+ u != null && u.contains(s.trigger) && c();
195
411
  };
196
412
  return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
197
413
  }
198
- }, [a.trigger, c]), /* @__PURE__ */ p(
199
- oe,
414
+ }, [s.trigger, c]), /* @__PURE__ */ p(
415
+ Ve,
200
416
  {
201
417
  asChild: !0,
202
418
  disableOutsidePointerEvents: !1,
203
- onEscapeKeyDown: l,
204
- onPointerDownOutside: i,
419
+ onEscapeKeyDown: i,
420
+ onPointerDownOutside: l,
205
421
  onFocusOutside: (f) => f.preventDefault(),
206
422
  onDismiss: c,
207
- children: /* @__PURE__ */ L(
208
- re,
423
+ children: /* @__PURE__ */ Y(
424
+ ht,
209
425
  {
210
- "data-state": a.stateAttribute,
426
+ "data-state": s.stateAttribute,
211
427
  ...d,
212
- ...v,
213
- ref: o,
428
+ ...h,
429
+ ref: r,
214
430
  style: {
215
- ...v.style,
431
+ ...h.style,
216
432
  "--radix-tooltip-content-transform-origin": "var(--radix-popper-transform-origin)",
217
433
  "--radix-tooltip-content-available-width": "var(--radix-popper-available-width)",
218
434
  "--radix-tooltip-content-available-height": "var(--radix-popper-available-height)",
@@ -220,8 +436,8 @@ var de = "TooltipPortal", [Ie, fe] = _(de, {
220
436
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
221
437
  },
222
438
  children: [
223
- /* @__PURE__ */ p(Te, { children: r }),
224
- /* @__PURE__ */ p(he, { scope: t, isInside: !0, children: /* @__PURE__ */ p(le, { id: a.contentId, role: "tooltip", children: n || r }) })
439
+ /* @__PURE__ */ p(Rt, { children: o }),
440
+ /* @__PURE__ */ p(At, { scope: t, isInside: !0, children: /* @__PURE__ */ p(yt, { id: s.contentId, role: "tooltip", children: n || o }) })
225
441
  ]
226
442
  }
227
443
  )
@@ -229,127 +445,127 @@ var de = "TooltipPortal", [Ie, fe] = _(de, {
229
445
  );
230
446
  }
231
447
  );
232
- q.displayName = w;
233
- var X = "TooltipArrow", z = s.forwardRef(
234
- (e, o) => {
235
- const { __scopeTooltip: t, ...r } = e, n = A(t);
236
- return ye(
237
- X,
448
+ Pe.displayName = R;
449
+ var be = "TooltipArrow", Ae = a.forwardRef(
450
+ (e, r) => {
451
+ const { __scopeTooltip: t, ...o } = e, n = $(t);
452
+ return Et(
453
+ be,
238
454
  t
239
- ).isInside ? null : /* @__PURE__ */ p(ne, { ...n, ...r, ref: o });
455
+ ).isInside ? null : /* @__PURE__ */ p(vt, { ...n, ...o, ref: r });
240
456
  }
241
457
  );
242
- z.displayName = X;
243
- function Ce(e, o) {
244
- const t = Math.abs(o.top - e.y), r = Math.abs(o.bottom - e.y), n = Math.abs(o.right - e.x), l = Math.abs(o.left - e.x);
245
- switch (Math.min(t, r, n, l)) {
246
- case l:
458
+ Ae.displayName = be;
459
+ function _t(e, r) {
460
+ const t = Math.abs(r.top - e.y), o = Math.abs(r.bottom - e.y), n = Math.abs(r.right - e.x), i = Math.abs(r.left - e.x);
461
+ switch (Math.min(t, o, n, i)) {
462
+ case i:
247
463
  return "left";
248
464
  case n:
249
465
  return "right";
250
466
  case t:
251
467
  return "top";
252
- case r:
468
+ case o:
253
469
  return "bottom";
254
470
  default:
255
471
  throw new Error("unreachable");
256
472
  }
257
473
  }
258
- function me(e, o, t = 5) {
259
- const r = [];
260
- switch (o) {
474
+ function Ot(e, r, t = 5) {
475
+ const o = [];
476
+ switch (r) {
261
477
  case "top":
262
- r.push(
478
+ o.push(
263
479
  { x: e.x - t, y: e.y + t },
264
480
  { x: e.x + t, y: e.y + t }
265
481
  );
266
482
  break;
267
483
  case "bottom":
268
- r.push(
484
+ o.push(
269
485
  { x: e.x - t, y: e.y - t },
270
486
  { x: e.x + t, y: e.y - t }
271
487
  );
272
488
  break;
273
489
  case "left":
274
- r.push(
490
+ o.push(
275
491
  { x: e.x + t, y: e.y - t },
276
492
  { x: e.x + t, y: e.y + t }
277
493
  );
278
494
  break;
279
495
  case "right":
280
- r.push(
496
+ o.push(
281
497
  { x: e.x - t, y: e.y - t },
282
498
  { x: e.x - t, y: e.y + t }
283
499
  );
284
500
  break;
285
501
  }
286
- return r;
502
+ return o;
287
503
  }
288
- function xe(e) {
289
- const { top: o, right: t, bottom: r, left: n } = e;
504
+ function St(e) {
505
+ const { top: r, right: t, bottom: o, left: n } = e;
290
506
  return [
291
- { x: n, y: o },
292
- { x: t, y: o },
507
+ { x: n, y: r },
293
508
  { x: t, y: r },
294
- { x: n, y: r }
509
+ { x: t, y: o },
510
+ { x: n, y: o }
295
511
  ];
296
512
  }
297
- function ge(e, o) {
298
- const { x: t, y: r } = e;
513
+ function Nt(e, r) {
514
+ const { x: t, y: o } = e;
299
515
  let n = !1;
300
- for (let l = 0, i = o.length - 1; l < o.length; i = l++) {
301
- const v = o[l], a = o[i], d = v.x, c = v.y, f = a.x, h = a.y;
302
- c > r != h > r && t < (f - d) * (r - c) / (h - c) + d && (n = !n);
516
+ for (let i = 0, l = r.length - 1; i < r.length; l = i++) {
517
+ const h = r[i], s = r[l], d = h.x, c = h.y, f = s.x, g = s.y;
518
+ c > o != g > o && t < (f - d) * (o - c) / (g - c) + d && (n = !n);
303
519
  }
304
520
  return n;
305
521
  }
306
- function we(e) {
307
- const o = e.slice();
308
- return o.sort((t, r) => t.x < r.x ? -1 : t.x > r.x ? 1 : t.y < r.y ? -1 : t.y > r.y ? 1 : 0), be(o);
522
+ function Dt(e) {
523
+ const r = e.slice();
524
+ return r.sort((t, o) => t.x < o.x ? -1 : t.x > o.x ? 1 : t.y < o.y ? -1 : t.y > o.y ? 1 : 0), Ht(r);
309
525
  }
310
- function be(e) {
526
+ function Ht(e) {
311
527
  if (e.length <= 1)
312
528
  return e.slice();
313
- const o = [];
314
- for (let r = 0; r < e.length; r++) {
315
- const n = e[r];
316
- for (; o.length >= 2; ) {
317
- const l = o[o.length - 1], i = o[o.length - 2];
318
- if ((l.x - i.x) * (n.y - i.y) >= (l.y - i.y) * (n.x - i.x))
319
- o.pop();
529
+ const r = [];
530
+ for (let o = 0; o < e.length; o++) {
531
+ const n = e[o];
532
+ for (; r.length >= 2; ) {
533
+ const i = r[r.length - 1], l = r[r.length - 2];
534
+ if ((i.x - l.x) * (n.y - l.y) >= (i.y - l.y) * (n.x - l.x))
535
+ r.pop();
320
536
  else
321
537
  break;
322
538
  }
323
- o.push(n);
539
+ r.push(n);
324
540
  }
325
- o.pop();
541
+ r.pop();
326
542
  const t = [];
327
- for (let r = e.length - 1; r >= 0; r--) {
328
- const n = e[r];
543
+ for (let o = e.length - 1; o >= 0; o--) {
544
+ const n = e[o];
329
545
  for (; t.length >= 2; ) {
330
- const l = t[t.length - 1], i = t[t.length - 2];
331
- if ((l.x - i.x) * (n.y - i.y) >= (l.y - i.y) * (n.x - i.x))
546
+ const i = t[t.length - 1], l = t[t.length - 2];
547
+ if ((i.x - l.x) * (n.y - l.y) >= (i.y - l.y) * (n.x - l.x))
332
548
  t.pop();
333
549
  else
334
550
  break;
335
551
  }
336
552
  t.push(n);
337
553
  }
338
- return t.pop(), o.length === 1 && t.length === 1 && o[0].x === t[0].x && o[0].y === t[0].y ? o : o.concat(t);
554
+ return t.pop(), r.length === 1 && t.length === 1 && r[0].x === t[0].x && r[0].y === t[0].y ? r : r.concat(t);
339
555
  }
340
- const Ee = "_tooltipContent_12gjy_1", Re = "_tooltipArrow_12gjy_8", Pe = "_fadeIn_12gjy_1", H = {
341
- tooltipContent: Ee,
342
- tooltipArrow: Re,
343
- fadeIn: Pe
344
- }, Ne = se(
345
- ({ children: e, content: o, className: t, style: r }, n) => /* @__PURE__ */ p(Y, { children: /* @__PURE__ */ L(B, { delayDuration: 1e3, children: [
346
- /* @__PURE__ */ p(U, { asChild: !0, children: /* @__PURE__ */ p("div", { ref: n, className: t, style: r, children: e }) }),
347
- /* @__PURE__ */ L(q, { className: H.tooltipContent, sideOffset: 5, children: [
348
- /* @__PURE__ */ p(z, { className: H.tooltipArrow }),
349
- /* @__PURE__ */ p("span", { children: o })
556
+ const It = "_tooltipContent_12gjy_1", Lt = "_tooltipArrow_12gjy_8", kt = "_fadeIn_12gjy_1", ne = {
557
+ tooltipContent: It,
558
+ tooltipArrow: Lt,
559
+ fadeIn: kt
560
+ }, Vt = ot(
561
+ ({ children: e, content: r, className: t, style: o }, n) => /* @__PURE__ */ p(we, { children: /* @__PURE__ */ Y(xe, { delayDuration: 1e3, children: [
562
+ /* @__PURE__ */ p(Ce, { asChild: !0, children: /* @__PURE__ */ p("div", { ref: n, className: t, style: o, children: e }) }),
563
+ /* @__PURE__ */ Y(Pe, { className: ne.tooltipContent, sideOffset: 5, children: [
564
+ /* @__PURE__ */ p(Ae, { className: ne.tooltipArrow }),
565
+ /* @__PURE__ */ p("span", { children: r })
350
566
  ] })
351
567
  ] }) })
352
568
  );
353
569
  export {
354
- Ne as default
570
+ Vt as default
355
571
  };