@profiq/ui 0.1.1 → 0.1.3
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.
- package/dist/components/custom/basic/button.d.ts +2 -1
- package/dist/components/custom/basic/button.d.ts.map +1 -1
- package/dist/components/custom/basic/input.d.ts +2 -1
- package/dist/components/custom/basic/input.d.ts.map +1 -1
- package/dist/components/ui/buttonVariants.d.ts.map +1 -1
- package/dist/components/ui/buttonVariants.js +2 -2
- package/dist/components/ui/slider.js +23 -23
- package/dist/index.css +161 -260
- package/dist/index.js +7 -50
- package/dist/lib/baseProps.d.ts +2 -2
- package/dist/lib/baseProps.d.ts.map +1 -1
- package/dist/lib/baseProps.js +6 -6
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +171 -171
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +191 -190
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +125 -101
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +97 -97
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +60 -62
- package/package.json +4 -20
- package/dist/components/custom/basic/index.d.ts +0 -17
- package/dist/components/custom/basic/index.d.ts.map +0 -1
- package/dist/components/custom/basic/index.js +0 -20
- package/dist/components/custom/icons/index.d.ts +0 -15
- package/dist/components/custom/icons/index.d.ts.map +0 -1
- package/dist/components/custom/icons/index.js +0 -27
- package/dist/components/ui/index.d.ts +0 -14
- package/dist/components/ui/index.d.ts.map +0 -1
- package/dist/components/ui/index.js +0 -59
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/index.js +0 -11
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { computePosition as st, offset as rt, shift as ct, flip as lt, size as ft, hide as ut, arrow as ht, limitShift as at } from "../../core/dist/floating-ui.core.js";
|
|
2
|
-
import { createCoords as y, round as
|
|
3
|
-
import { isElement as v, getDocumentElement as
|
|
2
|
+
import { createCoords as y, round as z, max as E, min as N, rectToClientRect as J, floor as D } from "../../utils/dist/floating-ui.utils.js";
|
|
3
|
+
import { isElement as v, getDocumentElement as b, getOverflowAncestors as $, getComputedStyle as R, isHTMLElement as T, getWindow as O, isTopLayer as V, getParentNode as S, isLastTraversableNode as A, isTableElement as dt, isContainingBlock as Q, getContainingBlock as gt, getNodeName as _, isOverflowElement as q, getNodeScroll as H, getFrameElement as U, isWebKit as Y } from "../../utils/dist/floating-ui.utils.dom.js";
|
|
4
4
|
function Z(t) {
|
|
5
|
-
const e =
|
|
6
|
-
let
|
|
7
|
-
const n =
|
|
8
|
-
return c && (
|
|
9
|
-
width:
|
|
10
|
-
height:
|
|
5
|
+
const e = R(t);
|
|
6
|
+
let i = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
7
|
+
const n = T(t), r = n ? t.offsetWidth : i, s = n ? t.offsetHeight : o, c = z(i) !== r || z(o) !== s;
|
|
8
|
+
return c && (i = r, o = s), {
|
|
9
|
+
width: i,
|
|
10
|
+
height: o,
|
|
11
11
|
$: c
|
|
12
12
|
};
|
|
13
13
|
}
|
|
@@ -16,14 +16,14 @@ function X(t) {
|
|
|
16
16
|
}
|
|
17
17
|
function F(t) {
|
|
18
18
|
const e = X(t);
|
|
19
|
-
if (!
|
|
19
|
+
if (!T(e))
|
|
20
20
|
return y(1);
|
|
21
|
-
const
|
|
22
|
-
width:
|
|
21
|
+
const i = e.getBoundingClientRect(), {
|
|
22
|
+
width: o,
|
|
23
23
|
height: n,
|
|
24
24
|
$: r
|
|
25
25
|
} = Z(e);
|
|
26
|
-
let s = (r ?
|
|
26
|
+
let s = (r ? z(i.width) : i.width) / o, c = (r ? z(i.height) : i.height) / n;
|
|
27
27
|
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
28
28
|
x: s,
|
|
29
29
|
y: c
|
|
@@ -31,83 +31,83 @@ function F(t) {
|
|
|
31
31
|
}
|
|
32
32
|
const pt = /* @__PURE__ */ y(0);
|
|
33
33
|
function tt(t) {
|
|
34
|
-
const e =
|
|
34
|
+
const e = O(t);
|
|
35
35
|
return !Y() || !e.visualViewport ? pt : {
|
|
36
36
|
x: e.visualViewport.offsetLeft,
|
|
37
37
|
y: e.visualViewport.offsetTop
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
function mt(t, e,
|
|
41
|
-
return e === void 0 && (e = !1), !
|
|
40
|
+
function mt(t, e, i) {
|
|
41
|
+
return e === void 0 && (e = !1), !i || e && i !== O(t) ? !1 : e;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
e === void 0 && (e = !1),
|
|
43
|
+
function L(t, e, i, o) {
|
|
44
|
+
e === void 0 && (e = !1), i === void 0 && (i = !1);
|
|
45
45
|
const n = t.getBoundingClientRect(), r = X(t);
|
|
46
46
|
let s = y(1);
|
|
47
|
-
e && (
|
|
48
|
-
const c = mt(r,
|
|
49
|
-
let
|
|
47
|
+
e && (o ? v(o) && (s = F(o)) : s = F(t));
|
|
48
|
+
const c = mt(r, i, o) ? tt(r) : y(0);
|
|
49
|
+
let l = (n.left + c.x) / s.x, f = (n.top + c.y) / s.y, u = n.width / s.x, a = n.height / s.y;
|
|
50
50
|
if (r) {
|
|
51
|
-
const d =
|
|
51
|
+
const d = O(r), h = o && v(o) ? O(o) : o;
|
|
52
52
|
let m = d, p = U(m);
|
|
53
|
-
for (; p &&
|
|
54
|
-
const w = F(p), g = p.getBoundingClientRect(), x =
|
|
55
|
-
|
|
53
|
+
for (; p && o && h !== m; ) {
|
|
54
|
+
const w = F(p), g = p.getBoundingClientRect(), x = R(p), C = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, W = g.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
|
|
55
|
+
l *= w.x, f *= w.y, u *= w.x, a *= w.y, l += C, f += W, m = O(p), p = U(m);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
return J({
|
|
59
59
|
width: u,
|
|
60
|
-
height:
|
|
61
|
-
x:
|
|
62
|
-
y:
|
|
60
|
+
height: a,
|
|
61
|
+
x: l,
|
|
62
|
+
y: f
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
function I(t, e) {
|
|
66
|
-
const
|
|
67
|
-
return e ? e.left +
|
|
66
|
+
const i = H(t).scrollLeft;
|
|
67
|
+
return e ? e.left + i : L(b(t)).left + i;
|
|
68
68
|
}
|
|
69
69
|
function et(t, e) {
|
|
70
|
-
const
|
|
70
|
+
const i = t.getBoundingClientRect(), o = i.left + e.scrollLeft - I(t, i), n = i.top + e.scrollTop;
|
|
71
71
|
return {
|
|
72
|
-
x:
|
|
72
|
+
x: o,
|
|
73
73
|
y: n
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
function wt(t) {
|
|
77
77
|
let {
|
|
78
78
|
elements: e,
|
|
79
|
-
rect:
|
|
80
|
-
offsetParent:
|
|
79
|
+
rect: i,
|
|
80
|
+
offsetParent: o,
|
|
81
81
|
strategy: n
|
|
82
82
|
} = t;
|
|
83
|
-
const r = n === "fixed", s =
|
|
84
|
-
if (
|
|
85
|
-
return
|
|
86
|
-
let
|
|
83
|
+
const r = n === "fixed", s = b(o), c = e ? V(e.floating) : !1;
|
|
84
|
+
if (o === s || c && r)
|
|
85
|
+
return i;
|
|
86
|
+
let l = {
|
|
87
87
|
scrollLeft: 0,
|
|
88
88
|
scrollTop: 0
|
|
89
|
-
},
|
|
90
|
-
const u = y(0),
|
|
91
|
-
if ((
|
|
92
|
-
const
|
|
93
|
-
|
|
89
|
+
}, f = y(1);
|
|
90
|
+
const u = y(0), a = T(o);
|
|
91
|
+
if ((a || !a && !r) && ((_(o) !== "body" || q(s)) && (l = H(o)), a)) {
|
|
92
|
+
const h = L(o);
|
|
93
|
+
f = F(o), u.x = h.x + o.clientLeft, u.y = h.y + o.clientTop;
|
|
94
94
|
}
|
|
95
|
-
const d = s && !
|
|
95
|
+
const d = s && !a && !r ? et(s, l) : y(0);
|
|
96
96
|
return {
|
|
97
|
-
width:
|
|
98
|
-
height:
|
|
99
|
-
x:
|
|
100
|
-
y:
|
|
97
|
+
width: i.width * f.x,
|
|
98
|
+
height: i.height * f.y,
|
|
99
|
+
x: i.x * f.x - l.scrollLeft * f.x + u.x + d.x,
|
|
100
|
+
y: i.y * f.y - l.scrollTop * f.y + u.y + d.y
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
function yt(t) {
|
|
104
104
|
return Array.from(t.getClientRects());
|
|
105
105
|
}
|
|
106
106
|
function xt(t) {
|
|
107
|
-
const e =
|
|
108
|
-
let s = -
|
|
109
|
-
const c = -
|
|
110
|
-
return
|
|
107
|
+
const e = b(t), i = H(t), o = t.ownerDocument.body, n = E(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = E(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
108
|
+
let s = -i.scrollLeft + I(t);
|
|
109
|
+
const c = -i.scrollTop;
|
|
110
|
+
return R(o).direction === "rtl" && (s += E(e.clientWidth, o.clientWidth) - n), {
|
|
111
111
|
width: n,
|
|
112
112
|
height: r,
|
|
113
113
|
x: s,
|
|
@@ -116,271 +116,272 @@ function xt(t) {
|
|
|
116
116
|
}
|
|
117
117
|
const K = 25;
|
|
118
118
|
function vt(t, e) {
|
|
119
|
-
const
|
|
120
|
-
let r =
|
|
119
|
+
const i = O(t), o = b(t), n = i.visualViewport;
|
|
120
|
+
let r = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
|
|
121
121
|
if (n) {
|
|
122
122
|
r = n.width, s = n.height;
|
|
123
123
|
const u = Y();
|
|
124
|
-
(!u || u && e === "fixed") && (c = n.offsetLeft,
|
|
124
|
+
(!u || u && e === "fixed") && (c = n.offsetLeft, l = n.offsetTop);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
128
|
-
const u =
|
|
126
|
+
const f = I(o);
|
|
127
|
+
if (f <= 0) {
|
|
128
|
+
const u = o.ownerDocument, a = u.body, d = getComputedStyle(a), h = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, m = Math.abs(o.clientWidth - a.clientWidth - h);
|
|
129
129
|
m <= K && (r -= m);
|
|
130
|
-
} else
|
|
130
|
+
} else f <= K && (r += f);
|
|
131
131
|
return {
|
|
132
132
|
width: r,
|
|
133
133
|
height: s,
|
|
134
134
|
x: c,
|
|
135
|
-
y:
|
|
135
|
+
y: l
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
const bt = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
139
138
|
function Rt(t, e) {
|
|
140
|
-
const
|
|
139
|
+
const i = L(t, !0, e === "fixed"), o = i.top + t.clientTop, n = i.left + t.clientLeft, r = T(t) ? F(t) : y(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = n * r.x, f = o * r.y;
|
|
141
140
|
return {
|
|
142
141
|
width: s,
|
|
143
142
|
height: c,
|
|
144
|
-
x:
|
|
145
|
-
y:
|
|
143
|
+
x: l,
|
|
144
|
+
y: f
|
|
146
145
|
};
|
|
147
146
|
}
|
|
148
|
-
function j(t, e,
|
|
149
|
-
let
|
|
147
|
+
function j(t, e, i) {
|
|
148
|
+
let o;
|
|
150
149
|
if (e === "viewport")
|
|
151
|
-
|
|
150
|
+
o = vt(t, i);
|
|
152
151
|
else if (e === "document")
|
|
153
|
-
|
|
152
|
+
o = xt(b(t));
|
|
154
153
|
else if (v(e))
|
|
155
|
-
|
|
154
|
+
o = Rt(e, i);
|
|
156
155
|
else {
|
|
157
156
|
const n = tt(t);
|
|
158
|
-
|
|
157
|
+
o = {
|
|
159
158
|
x: e.x - n.x,
|
|
160
159
|
y: e.y - n.y,
|
|
161
160
|
width: e.width,
|
|
162
161
|
height: e.height
|
|
163
162
|
};
|
|
164
163
|
}
|
|
165
|
-
return J(
|
|
164
|
+
return J(o);
|
|
166
165
|
}
|
|
167
166
|
function it(t, e) {
|
|
168
|
-
const
|
|
169
|
-
return
|
|
167
|
+
const i = S(t);
|
|
168
|
+
return i === e || !v(i) || A(i) ? !1 : R(i).position === "fixed" || it(i, e);
|
|
170
169
|
}
|
|
171
|
-
function
|
|
172
|
-
const
|
|
173
|
-
if (
|
|
174
|
-
return
|
|
175
|
-
let
|
|
176
|
-
const r =
|
|
170
|
+
function bt(t, e) {
|
|
171
|
+
const i = e.get(t);
|
|
172
|
+
if (i)
|
|
173
|
+
return i;
|
|
174
|
+
let o = $(t, [], !1).filter((c) => v(c) && _(c) !== "body"), n = null;
|
|
175
|
+
const r = R(t).position === "fixed";
|
|
177
176
|
let s = r ? S(t) : t;
|
|
178
|
-
for (; v(s) && !
|
|
179
|
-
const c =
|
|
180
|
-
!
|
|
177
|
+
for (; v(s) && !A(s); ) {
|
|
178
|
+
const c = R(s), l = Q(s);
|
|
179
|
+
!l && c.position === "fixed" && (n = null), (r ? !l && !n : !l && c.position === "static" && !!n && (n.position === "absolute" || n.position === "fixed") || q(s) && !l && it(t, s)) ? o = o.filter((u) => u !== s) : n = c, s = S(s);
|
|
181
180
|
}
|
|
182
|
-
return e.set(t,
|
|
181
|
+
return e.set(t, o), o;
|
|
183
182
|
}
|
|
184
|
-
function
|
|
183
|
+
function Ct(t) {
|
|
185
184
|
let {
|
|
186
185
|
element: e,
|
|
187
|
-
boundary:
|
|
188
|
-
rootBoundary:
|
|
186
|
+
boundary: i,
|
|
187
|
+
rootBoundary: o,
|
|
189
188
|
strategy: n
|
|
190
189
|
} = t;
|
|
191
|
-
const s = [...
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
190
|
+
const s = [...i === "clippingAncestors" ? V(e) ? [] : bt(e, this._c) : [].concat(i), o], c = j(e, s[0], n);
|
|
191
|
+
let l = c.top, f = c.right, u = c.bottom, a = c.left;
|
|
192
|
+
for (let d = 1; d < s.length; d++) {
|
|
193
|
+
const h = j(e, s[d], n);
|
|
194
|
+
l = E(h.top, l), f = N(h.right, f), u = N(h.bottom, u), a = E(h.left, a);
|
|
195
|
+
}
|
|
195
196
|
return {
|
|
196
|
-
width: f
|
|
197
|
-
height:
|
|
198
|
-
x:
|
|
199
|
-
y:
|
|
197
|
+
width: f - a,
|
|
198
|
+
height: u - l,
|
|
199
|
+
x: a,
|
|
200
|
+
y: l
|
|
200
201
|
};
|
|
201
202
|
}
|
|
202
|
-
function
|
|
203
|
+
function Ot(t) {
|
|
203
204
|
const {
|
|
204
205
|
width: e,
|
|
205
|
-
height:
|
|
206
|
+
height: i
|
|
206
207
|
} = Z(t);
|
|
207
208
|
return {
|
|
208
209
|
width: e,
|
|
209
|
-
height:
|
|
210
|
+
height: i
|
|
210
211
|
};
|
|
211
212
|
}
|
|
212
|
-
function
|
|
213
|
-
const
|
|
213
|
+
function Lt(t, e, i) {
|
|
214
|
+
const o = T(e), n = b(e), r = i === "fixed", s = L(t, !0, r, e);
|
|
214
215
|
let c = {
|
|
215
216
|
scrollLeft: 0,
|
|
216
217
|
scrollTop: 0
|
|
217
218
|
};
|
|
218
|
-
const
|
|
219
|
-
function
|
|
220
|
-
|
|
219
|
+
const l = y(0);
|
|
220
|
+
function f() {
|
|
221
|
+
l.x = I(n);
|
|
221
222
|
}
|
|
222
|
-
if (
|
|
223
|
-
if ((_(e) !== "body" || q(n)) && (c = H(e)),
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
} else n &&
|
|
227
|
-
r && !
|
|
228
|
-
const u = n && !
|
|
223
|
+
if (o || !o && !r)
|
|
224
|
+
if ((_(e) !== "body" || q(n)) && (c = H(e)), o) {
|
|
225
|
+
const h = L(e, !0, r, e);
|
|
226
|
+
l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
|
|
227
|
+
} else n && f();
|
|
228
|
+
r && !o && n && f();
|
|
229
|
+
const u = n && !o && !r ? et(n, c) : y(0), a = s.left + c.scrollLeft - l.x - u.x, d = s.top + c.scrollTop - l.y - u.y;
|
|
229
230
|
return {
|
|
230
|
-
x:
|
|
231
|
+
x: a,
|
|
231
232
|
y: d,
|
|
232
233
|
width: s.width,
|
|
233
234
|
height: s.height
|
|
234
235
|
};
|
|
235
236
|
}
|
|
236
237
|
function M(t) {
|
|
237
|
-
return
|
|
238
|
+
return R(t).position === "static";
|
|
238
239
|
}
|
|
239
240
|
function G(t, e) {
|
|
240
|
-
if (!
|
|
241
|
+
if (!T(t) || R(t).position === "fixed")
|
|
241
242
|
return null;
|
|
242
243
|
if (e)
|
|
243
244
|
return e(t);
|
|
244
|
-
let
|
|
245
|
-
return
|
|
245
|
+
let i = t.offsetParent;
|
|
246
|
+
return b(t) === i && (i = i.ownerDocument.body), i;
|
|
246
247
|
}
|
|
247
248
|
function ot(t, e) {
|
|
248
|
-
const
|
|
249
|
+
const i = O(t);
|
|
249
250
|
if (V(t))
|
|
250
|
-
return
|
|
251
|
-
if (!
|
|
251
|
+
return i;
|
|
252
|
+
if (!T(t)) {
|
|
252
253
|
let n = S(t);
|
|
253
|
-
for (; n && !
|
|
254
|
+
for (; n && !A(n); ) {
|
|
254
255
|
if (v(n) && !M(n))
|
|
255
256
|
return n;
|
|
256
257
|
n = S(n);
|
|
257
258
|
}
|
|
258
|
-
return
|
|
259
|
+
return i;
|
|
259
260
|
}
|
|
260
|
-
let
|
|
261
|
-
for (;
|
|
262
|
-
|
|
263
|
-
return
|
|
261
|
+
let o = G(t, e);
|
|
262
|
+
for (; o && dt(o) && M(o); )
|
|
263
|
+
o = G(o, e);
|
|
264
|
+
return o && A(o) && M(o) && !Q(o) ? i : o || gt(t) || i;
|
|
264
265
|
}
|
|
265
|
-
const
|
|
266
|
-
const e = this.getOffsetParent || ot,
|
|
266
|
+
const Tt = async function(t) {
|
|
267
|
+
const e = this.getOffsetParent || ot, i = this.getDimensions, o = await i(t.floating);
|
|
267
268
|
return {
|
|
268
|
-
reference:
|
|
269
|
+
reference: Lt(t.reference, await e(t.floating), t.strategy),
|
|
269
270
|
floating: {
|
|
270
271
|
x: 0,
|
|
271
272
|
y: 0,
|
|
272
|
-
width:
|
|
273
|
-
height:
|
|
273
|
+
width: o.width,
|
|
274
|
+
height: o.height
|
|
274
275
|
}
|
|
275
276
|
};
|
|
276
277
|
};
|
|
277
|
-
function
|
|
278
|
-
return
|
|
278
|
+
function Et(t) {
|
|
279
|
+
return R(t).direction === "rtl";
|
|
279
280
|
}
|
|
280
|
-
const
|
|
281
|
+
const Ft = {
|
|
281
282
|
convertOffsetParentRelativeRectToViewportRelativeRect: wt,
|
|
282
|
-
getDocumentElement:
|
|
283
|
-
getClippingRect:
|
|
283
|
+
getDocumentElement: b,
|
|
284
|
+
getClippingRect: Ct,
|
|
284
285
|
getOffsetParent: ot,
|
|
285
|
-
getElementRects:
|
|
286
|
+
getElementRects: Tt,
|
|
286
287
|
getClientRects: yt,
|
|
287
|
-
getDimensions:
|
|
288
|
+
getDimensions: Ot,
|
|
288
289
|
getScale: F,
|
|
289
290
|
isElement: v,
|
|
290
|
-
isRTL:
|
|
291
|
+
isRTL: Et
|
|
291
292
|
};
|
|
292
293
|
function nt(t, e) {
|
|
293
294
|
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
294
295
|
}
|
|
295
|
-
function
|
|
296
|
-
let
|
|
297
|
-
const n =
|
|
296
|
+
function St(t, e) {
|
|
297
|
+
let i = null, o;
|
|
298
|
+
const n = b(t);
|
|
298
299
|
function r() {
|
|
299
300
|
var c;
|
|
300
|
-
clearTimeout(
|
|
301
|
+
clearTimeout(o), (c = i) == null || c.disconnect(), i = null;
|
|
301
302
|
}
|
|
302
|
-
function s(c,
|
|
303
|
-
c === void 0 && (c = !1),
|
|
304
|
-
const
|
|
303
|
+
function s(c, l) {
|
|
304
|
+
c === void 0 && (c = !1), l === void 0 && (l = 1), r();
|
|
305
|
+
const f = t.getBoundingClientRect(), {
|
|
305
306
|
left: u,
|
|
306
|
-
top:
|
|
307
|
+
top: a,
|
|
307
308
|
width: d,
|
|
308
|
-
height:
|
|
309
|
-
} =
|
|
310
|
-
if (c || e(), !d || !
|
|
309
|
+
height: h
|
|
310
|
+
} = f;
|
|
311
|
+
if (c || e(), !d || !h)
|
|
311
312
|
return;
|
|
312
|
-
const m =
|
|
313
|
+
const m = D(a), p = D(n.clientWidth - (u + d)), w = D(n.clientHeight - (a + h)), g = D(u), C = {
|
|
313
314
|
rootMargin: -m + "px " + -p + "px " + -w + "px " + -g + "px",
|
|
314
|
-
threshold: E(0, N(1,
|
|
315
|
+
threshold: E(0, N(1, l)) || 1
|
|
315
316
|
};
|
|
316
317
|
let W = !0;
|
|
317
318
|
function k(P) {
|
|
318
319
|
const B = P[0].intersectionRatio;
|
|
319
|
-
if (B !==
|
|
320
|
+
if (B !== l) {
|
|
320
321
|
if (!W)
|
|
321
322
|
return s();
|
|
322
|
-
B ? s(!1, B) :
|
|
323
|
+
B ? s(!1, B) : o = setTimeout(() => {
|
|
323
324
|
s(!1, 1e-7);
|
|
324
325
|
}, 1e3);
|
|
325
326
|
}
|
|
326
|
-
B === 1 && !nt(
|
|
327
|
+
B === 1 && !nt(f, t.getBoundingClientRect()) && s(), W = !1;
|
|
327
328
|
}
|
|
328
329
|
try {
|
|
329
|
-
|
|
330
|
-
...
|
|
330
|
+
i = new IntersectionObserver(k, {
|
|
331
|
+
...C,
|
|
331
332
|
// Handle <iframe>s
|
|
332
333
|
root: n.ownerDocument
|
|
333
334
|
});
|
|
334
335
|
} catch {
|
|
335
|
-
|
|
336
|
+
i = new IntersectionObserver(k, C);
|
|
336
337
|
}
|
|
337
|
-
|
|
338
|
+
i.observe(t);
|
|
338
339
|
}
|
|
339
340
|
return s(!0), r;
|
|
340
341
|
}
|
|
341
|
-
function zt(t, e,
|
|
342
|
-
|
|
342
|
+
function zt(t, e, i, o) {
|
|
343
|
+
o === void 0 && (o = {});
|
|
343
344
|
const {
|
|
344
345
|
ancestorScroll: n = !0,
|
|
345
346
|
ancestorResize: r = !0,
|
|
346
347
|
elementResize: s = typeof ResizeObserver == "function",
|
|
347
348
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
348
|
-
animationFrame:
|
|
349
|
-
} =
|
|
349
|
+
animationFrame: l = !1
|
|
350
|
+
} = o, f = X(t), u = n || r ? [...f ? $(f) : [], ...e ? $(e) : []] : [];
|
|
350
351
|
u.forEach((g) => {
|
|
351
|
-
n && g.addEventListener("scroll",
|
|
352
|
+
n && g.addEventListener("scroll", i, {
|
|
352
353
|
passive: !0
|
|
353
|
-
}), r && g.addEventListener("resize",
|
|
354
|
+
}), r && g.addEventListener("resize", i);
|
|
354
355
|
});
|
|
355
|
-
const
|
|
356
|
-
let d = -1,
|
|
357
|
-
s && (
|
|
356
|
+
const a = f && c ? St(f, i) : null;
|
|
357
|
+
let d = -1, h = null;
|
|
358
|
+
s && (h = new ResizeObserver((g) => {
|
|
358
359
|
let [x] = g;
|
|
359
|
-
x && x.target ===
|
|
360
|
-
var
|
|
361
|
-
(
|
|
362
|
-
})),
|
|
363
|
-
}),
|
|
364
|
-
let m, p =
|
|
365
|
-
|
|
360
|
+
x && x.target === f && h && e && (h.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
361
|
+
var C;
|
|
362
|
+
(C = h) == null || C.observe(e);
|
|
363
|
+
})), i();
|
|
364
|
+
}), f && !l && h.observe(f), e && h.observe(e));
|
|
365
|
+
let m, p = l ? L(t) : null;
|
|
366
|
+
l && w();
|
|
366
367
|
function w() {
|
|
367
|
-
const g =
|
|
368
|
-
p && !nt(p, g) &&
|
|
368
|
+
const g = L(t);
|
|
369
|
+
p && !nt(p, g) && i(), p = g, m = requestAnimationFrame(w);
|
|
369
370
|
}
|
|
370
|
-
return
|
|
371
|
+
return i(), () => {
|
|
371
372
|
var g;
|
|
372
373
|
u.forEach((x) => {
|
|
373
|
-
n && x.removeEventListener("scroll",
|
|
374
|
-
}),
|
|
374
|
+
n && x.removeEventListener("scroll", i), r && x.removeEventListener("resize", i);
|
|
375
|
+
}), a?.(), (g = h) == null || g.disconnect(), h = null, l && cancelAnimationFrame(m);
|
|
375
376
|
};
|
|
376
377
|
}
|
|
377
|
-
const
|
|
378
|
-
const
|
|
379
|
-
platform:
|
|
380
|
-
...
|
|
378
|
+
const At = rt, Ht = ct, It = lt, Mt = ft, Nt = ut, $t = ht, Vt = at, _t = (t, e, i) => {
|
|
379
|
+
const o = /* @__PURE__ */ new Map(), n = {
|
|
380
|
+
platform: Ft,
|
|
381
|
+
...i
|
|
381
382
|
}, r = {
|
|
382
383
|
...n.platform,
|
|
383
|
-
_c:
|
|
384
|
+
_c: o
|
|
384
385
|
};
|
|
385
386
|
return st(t, e, {
|
|
386
387
|
...n,
|
|
@@ -388,15 +389,15 @@ const Ht = rt, It = ct, Mt = lt, Nt = ft, $t = ut, Vt = ht, _t = at, qt = (t, e,
|
|
|
388
389
|
});
|
|
389
390
|
};
|
|
390
391
|
export {
|
|
391
|
-
|
|
392
|
+
$t as arrow,
|
|
392
393
|
zt as autoUpdate,
|
|
393
|
-
|
|
394
|
-
|
|
394
|
+
_t as computePosition,
|
|
395
|
+
It as flip,
|
|
395
396
|
$ as getOverflowAncestors,
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
397
|
+
Nt as hide,
|
|
398
|
+
Vt as limitShift,
|
|
399
|
+
At as offset,
|
|
400
|
+
Ft as platform,
|
|
401
|
+
Ht as shift,
|
|
402
|
+
Mt as size
|
|
402
403
|
};
|