@frontify/fondue-components 29.2.0 → 30.0.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.
- package/dist/fondue-components10.js +89 -84
- package/dist/fondue-components10.js.map +1 -1
- package/dist/fondue-components100.js +1 -1
- package/dist/fondue-components112.js +14 -14
- package/dist/fondue-components114.js +1 -1
- package/dist/fondue-components118.js +216 -16
- package/dist/fondue-components118.js.map +1 -1
- package/dist/fondue-components119.js +19 -14
- package/dist/fondue-components119.js.map +1 -1
- package/dist/fondue-components120.js +16 -16
- package/dist/fondue-components120.js.map +1 -1
- package/dist/fondue-components121.js +147 -107
- package/dist/fondue-components121.js.map +1 -1
- package/dist/fondue-components122.js +44 -12
- package/dist/fondue-components122.js.map +1 -1
- package/dist/fondue-components123.js +17 -17
- package/dist/fondue-components123.js.map +1 -1
- package/dist/fondue-components124.js +14 -13
- package/dist/fondue-components124.js.map +1 -1
- package/dist/fondue-components125.js +16 -32
- package/dist/fondue-components125.js.map +1 -1
- package/dist/fondue-components126.js +111 -6
- package/dist/fondue-components126.js.map +1 -1
- package/dist/fondue-components127.js +12 -126
- package/dist/fondue-components127.js.map +1 -1
- package/dist/fondue-components128.js +16 -10
- package/dist/fondue-components128.js.map +1 -1
- package/dist/fondue-components129.js +12 -35
- package/dist/fondue-components129.js.map +1 -1
- package/dist/fondue-components130.js +122 -212
- package/dist/fondue-components130.js.map +1 -1
- package/dist/fondue-components131.js +11 -19
- package/dist/fondue-components131.js.map +1 -1
- package/dist/fondue-components132.js +35 -16
- package/dist/fondue-components132.js.map +1 -1
- package/dist/fondue-components133.js +32 -150
- package/dist/fondue-components133.js.map +1 -1
- package/dist/fondue-components134.js +6 -45
- package/dist/fondue-components134.js.map +1 -1
- package/dist/fondue-components135.js +6 -170
- package/dist/fondue-components135.js.map +1 -1
- package/dist/fondue-components136.js +12 -60
- package/dist/fondue-components136.js.map +1 -1
- package/dist/fondue-components137.js +71 -9
- package/dist/fondue-components137.js.map +1 -1
- package/dist/fondue-components138.js +14 -255
- package/dist/fondue-components138.js.map +1 -1
- package/dist/fondue-components139.js +10 -0
- package/dist/fondue-components139.js.map +1 -0
- package/dist/fondue-components140.js +87 -40
- package/dist/fondue-components140.js.map +1 -1
- package/dist/fondue-components141.js +80 -40
- package/dist/fondue-components141.js.map +1 -1
- package/dist/fondue-components142.js +31 -6
- package/dist/fondue-components142.js.map +1 -1
- package/dist/fondue-components143.js +169 -11
- package/dist/fondue-components143.js.map +1 -1
- package/dist/fondue-components144.js +59 -70
- package/dist/fondue-components144.js.map +1 -1
- package/dist/fondue-components145.js +9 -15
- package/dist/fondue-components145.js.map +1 -1
- package/dist/fondue-components146.js +256 -7
- package/dist/fondue-components146.js.map +1 -1
- package/dist/fondue-components147.js +17 -87
- package/dist/fondue-components147.js.map +1 -1
- package/dist/fondue-components149.js +41 -30
- package/dist/fondue-components149.js.map +1 -1
- package/dist/fondue-components150.js +40 -18
- package/dist/fondue-components150.js.map +1 -1
- package/dist/fondue-components151.js +20 -69
- package/dist/fondue-components151.js.map +1 -1
- package/dist/fondue-components152.js +37 -1349
- package/dist/fondue-components152.js.map +1 -1
- package/dist/fondue-components153.js +59 -930
- package/dist/fondue-components153.js.map +1 -1
- package/dist/fondue-components154.js +1322 -168
- package/dist/fondue-components154.js.map +1 -1
- package/dist/fondue-components155.js +937 -17
- package/dist/fondue-components155.js.map +1 -1
- package/dist/fondue-components156.js +197 -39
- package/dist/fondue-components156.js.map +1 -1
- package/dist/fondue-components158.js +1 -1
- package/dist/fondue-components165.js +17 -8
- package/dist/fondue-components165.js.map +1 -1
- package/dist/fondue-components166.js +8 -17
- package/dist/fondue-components166.js.map +1 -1
- package/dist/fondue-components48.js +1 -1
- package/dist/fondue-components49.js +1 -1
- package/dist/fondue-components50.js +1 -1
- package/dist/fondue-components51.js +2 -2
- package/dist/fondue-components52.js +2 -2
- package/dist/fondue-components55.js +1 -1
- package/dist/fondue-components65.js +2 -2
- package/dist/fondue-components66.js +3 -3
- package/dist/fondue-components67.js +2 -2
- package/dist/fondue-components79.js +2 -2
- package/dist/fondue-components82.js +1 -1
- package/dist/fondue-components83.js +1 -1
- package/dist/fondue-components84.js +1 -1
- package/dist/fondue-components87.js +1 -1
- package/dist/fondue-components89.js +6 -6
- package/dist/fondue-components95.js +2 -2
- package/dist/fondue-components96.js +2 -2
- package/dist/fondue-components97.js +2 -2
- package/dist/fondue-components98.js +2 -2
- package/dist/fondue-components99.js +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/fondue-components148.js +0 -84
- package/dist/fondue-components148.js.map +0 -1
|
@@ -1,944 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const e = t.getAnimations();
|
|
10
|
-
if (e.length > 0)
|
|
11
|
-
for (const i of e) {
|
|
12
|
-
if (i.playState !== "running") continue;
|
|
13
|
-
const { effect: o } = i, r = (q(o) ? o.getKeyframes() : []).filter(n);
|
|
14
|
-
if (r.length > 0)
|
|
15
|
-
return [r[r.length - 1], i];
|
|
16
|
-
}
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
function j(t) {
|
|
20
|
-
const { width: n, height: e, top: i, left: o, bottom: s, right: r } = t.getBoundingClientRect();
|
|
21
|
-
return { width: n, height: e, top: i, left: o, bottom: s, right: r };
|
|
22
|
-
}
|
|
23
|
-
function st(t) {
|
|
24
|
-
const n = Object.prototype.toString.call(t);
|
|
25
|
-
return n === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
26
|
-
n === "[object global]";
|
|
27
|
-
}
|
|
28
|
-
function X(t) {
|
|
29
|
-
return "nodeType" in t;
|
|
30
|
-
}
|
|
31
|
-
function E(t) {
|
|
32
|
-
var n, e, i;
|
|
33
|
-
return t ? st(t) ? t : X(t) ? "defaultView" in t ? (n = t.defaultView) != null ? n : window : (i = (e = t.ownerDocument) == null ? void 0 : e.defaultView) != null ? i : window : window : window;
|
|
34
|
-
}
|
|
35
|
-
function yt(t) {
|
|
36
|
-
const { Document: n } = E(t);
|
|
37
|
-
return t instanceof n || "nodeType" in t && t.nodeType === Node.DOCUMENT_NODE;
|
|
38
|
-
}
|
|
39
|
-
function V(t) {
|
|
40
|
-
return !t || st(t) ? !1 : t instanceof E(t).HTMLElement || "namespaceURI" in t && typeof t.namespaceURI == "string" && t.namespaceURI.endsWith("html");
|
|
41
|
-
}
|
|
42
|
-
function mt(t) {
|
|
43
|
-
return t instanceof E(t).SVGElement || "namespaceURI" in t && typeof t.namespaceURI == "string" && t.namespaceURI.endsWith("svg");
|
|
44
|
-
}
|
|
45
|
-
function rt(t) {
|
|
46
|
-
return t ? st(t) ? t.document : X(t) ? yt(t) ? t : V(t) || mt(t) ? t.ownerDocument : document : document : document;
|
|
47
|
-
}
|
|
48
|
-
function Ct(t) {
|
|
49
|
-
var n, e, i, o;
|
|
50
|
-
const { documentElement: s } = rt(t), r = E(t).visualViewport, c = (n = r == null ? void 0 : r.width) != null ? n : s.clientWidth, l = (e = r == null ? void 0 : r.height) != null ? e : s.clientHeight, a = (i = r == null ? void 0 : r.offsetTop) != null ? i : 0, u = (o = r == null ? void 0 : r.offsetLeft) != null ? o : 0;
|
|
51
|
-
return {
|
|
52
|
-
top: a,
|
|
53
|
-
left: u,
|
|
54
|
-
right: u + c,
|
|
55
|
-
bottom: a + l,
|
|
56
|
-
width: c,
|
|
57
|
-
height: l
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function It(t, n) {
|
|
61
|
-
if (Nt(t) && t.open === !1)
|
|
62
|
-
return !1;
|
|
63
|
-
const { overflow: e, overflowX: i, overflowY: o } = getComputedStyle(t);
|
|
64
|
-
return e === "visible" && i === "visible" && o === "visible";
|
|
65
|
-
}
|
|
66
|
-
function Nt(t) {
|
|
67
|
-
return t.tagName === "DETAILS";
|
|
68
|
-
}
|
|
69
|
-
function D(t, n = t.getBoundingClientRect(), e = 0) {
|
|
70
|
-
var i, o, s, r, c;
|
|
71
|
-
let l = n;
|
|
72
|
-
const { ownerDocument: a } = t, u = (i = a.defaultView) != null ? i : window;
|
|
73
|
-
let h = t.parentElement;
|
|
74
|
-
for (; h && h !== a.documentElement; ) {
|
|
75
|
-
if (!It(h)) {
|
|
76
|
-
const g = h.getBoundingClientRect(), M = e * (g.bottom - g.top), m = e * (g.right - g.left), G = e * (g.bottom - g.top), J = e * (g.right - g.left);
|
|
77
|
-
l = {
|
|
78
|
-
top: Math.max(l.top, g.top - M),
|
|
79
|
-
right: Math.min(l.right, g.right + m),
|
|
80
|
-
bottom: Math.min(l.bottom, g.bottom + G),
|
|
81
|
-
left: Math.max(l.left, g.left - J),
|
|
82
|
-
width: 0,
|
|
83
|
-
// Will be calculated next
|
|
84
|
-
height: 0
|
|
85
|
-
// Will be calculated next
|
|
86
|
-
}, l.width = l.right - l.left, l.height = l.bottom - l.top;
|
|
87
|
-
}
|
|
88
|
-
h = h.parentElement;
|
|
89
|
-
}
|
|
90
|
-
const v = u.visualViewport, y = (o = v == null ? void 0 : v.offsetTop) != null ? o : 0, w = (s = v == null ? void 0 : v.offsetLeft) != null ? s : 0, d = (r = v == null ? void 0 : v.width) != null ? r : u.innerWidth, x = (c = v == null ? void 0 : v.height) != null ? c : u.innerHeight, b = e * x, p = e * d;
|
|
91
|
-
return l = {
|
|
92
|
-
top: Math.max(l.top, y - b),
|
|
93
|
-
right: Math.min(
|
|
94
|
-
l.right,
|
|
95
|
-
w + d + p
|
|
96
|
-
),
|
|
97
|
-
bottom: Math.min(
|
|
98
|
-
l.bottom,
|
|
99
|
-
y + x + b
|
|
100
|
-
),
|
|
101
|
-
left: Math.max(l.left, w - p),
|
|
102
|
-
width: 0,
|
|
103
|
-
// Will be calculated next
|
|
104
|
-
height: 0
|
|
105
|
-
// Will be calculated next
|
|
106
|
-
}, l.width = l.right - l.left, l.height = l.bottom - l.top, l.width < 0 && (l.width = 0), l.height < 0 && (l.height = 0), l;
|
|
107
|
-
}
|
|
108
|
-
function ye(t) {
|
|
109
|
-
return {
|
|
110
|
-
x: t.clientX,
|
|
111
|
-
y: t.clientY
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
var wt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
115
|
-
function at(t = document, n = /* @__PURE__ */ new Set()) {
|
|
116
|
-
if (n.has(t)) return [];
|
|
117
|
-
n.add(t);
|
|
118
|
-
const e = [t];
|
|
119
|
-
for (const i of Array.from(
|
|
120
|
-
t.querySelectorAll("iframe, frame")
|
|
121
|
-
))
|
|
122
|
-
try {
|
|
123
|
-
const o = i.contentDocument;
|
|
124
|
-
o && !n.has(o) && e.push(...at(o, n));
|
|
125
|
-
} catch {
|
|
126
|
-
}
|
|
127
|
-
try {
|
|
128
|
-
const i = t.defaultView;
|
|
129
|
-
if (i && i !== window.top) {
|
|
130
|
-
const o = i.parent;
|
|
131
|
-
o && o.document && o.document !== t && e.push(...at(o.document, n));
|
|
132
|
-
}
|
|
133
|
-
} catch {
|
|
134
|
-
}
|
|
135
|
-
return e;
|
|
136
|
-
}
|
|
137
|
-
function bt() {
|
|
138
|
-
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
139
|
-
}
|
|
140
|
-
function me() {
|
|
141
|
-
var t, n;
|
|
142
|
-
const e = bt() ? window.visualViewport : null;
|
|
143
|
-
return {
|
|
144
|
-
x: (t = e == null ? void 0 : e.offsetLeft) != null ? t : 0,
|
|
145
|
-
y: (n = e == null ? void 0 : e.offsetTop) != null ? n : 0
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
function xt(t) {
|
|
149
|
-
return !t || !X(t) ? !1 : t instanceof E(t).ShadowRoot;
|
|
150
|
-
}
|
|
151
|
-
function we(t) {
|
|
152
|
-
if (t && X(t)) {
|
|
153
|
-
let n = t.getRootNode();
|
|
154
|
-
if (xt(n))
|
|
155
|
-
return n;
|
|
156
|
-
if (n instanceof Document)
|
|
157
|
-
return n;
|
|
158
|
-
}
|
|
159
|
-
return rt(t);
|
|
160
|
-
}
|
|
161
|
-
function be(t) {
|
|
162
|
-
return t.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
163
|
-
}
|
|
164
|
-
function xe(t) {
|
|
165
|
-
const n = "input, textarea, select, canvas, [contenteditable]", e = t.cloneNode(!0), i = Array.from(t.querySelectorAll(n));
|
|
166
|
-
return Array.from(e.querySelectorAll(n)).forEach((s, r) => {
|
|
167
|
-
const c = i[r];
|
|
168
|
-
if (ut(s) && ut(c) && (s.type !== "file" && (s.value = c.value), s.type === "radio" && s.name && (s.name = `Cloned__${s.name}`)), ft(s) && ft(c) && c.width > 0 && c.height > 0) {
|
|
169
|
-
const l = s.getContext("2d");
|
|
170
|
-
l == null || l.drawImage(c, 0, 0);
|
|
171
|
-
}
|
|
172
|
-
}), e;
|
|
173
|
-
}
|
|
174
|
-
function ut(t) {
|
|
175
|
-
return "value" in t;
|
|
176
|
-
}
|
|
177
|
-
function ft(t) {
|
|
178
|
-
return t.tagName === "CANVAS";
|
|
179
|
-
}
|
|
180
|
-
function Lt(t, { x: n, y: e }) {
|
|
181
|
-
const i = t.elementFromPoint(n, e);
|
|
182
|
-
if (Ft(i)) {
|
|
183
|
-
const { contentDocument: o } = i;
|
|
184
|
-
if (o) {
|
|
185
|
-
const { left: s, top: r } = i.getBoundingClientRect();
|
|
186
|
-
return Lt(o, {
|
|
187
|
-
x: n - s,
|
|
188
|
-
y: e - r
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
return i;
|
|
193
|
-
}
|
|
194
|
-
function Ft(t) {
|
|
195
|
-
return (t == null ? void 0 : t.tagName) === "IFRAME";
|
|
196
|
-
}
|
|
197
|
-
var Te = /* @__PURE__ */ new WeakMap();
|
|
198
|
-
function _e(t) {
|
|
199
|
-
return !!t.closest(`
|
|
200
|
-
input:not([disabled]),
|
|
201
|
-
select:not([disabled]),
|
|
202
|
-
textarea:not([disabled]),
|
|
203
|
-
button:not([disabled]),
|
|
204
|
-
a[href],
|
|
205
|
-
[contenteditable]:not([contenteditable="false"])
|
|
206
|
-
`);
|
|
207
|
-
}
|
|
208
|
-
var Re = class {
|
|
209
|
-
constructor() {
|
|
210
|
-
this.entries = /* @__PURE__ */ new Set(), this.clear = () => {
|
|
211
|
-
for (const t of this.entries) {
|
|
212
|
-
const [n, { type: e, listener: i, options: o }] = t;
|
|
213
|
-
n.removeEventListener(e, i, o);
|
|
214
|
-
}
|
|
215
|
-
this.entries.clear();
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
bind(t, n) {
|
|
219
|
-
const e = Array.isArray(t) ? t : [t], i = Array.isArray(n) ? n : [n], o = [];
|
|
220
|
-
for (const s of e)
|
|
221
|
-
for (const r of i) {
|
|
222
|
-
const { type: c, listener: l, options: a } = r, u = [s, r];
|
|
223
|
-
s.addEventListener(c, l, a), this.entries.add(u), o.push(u);
|
|
224
|
-
}
|
|
225
|
-
return function() {
|
|
226
|
-
for (const [r, { type: c, listener: l, options: a }] of o)
|
|
227
|
-
r.removeEventListener(c, l, a);
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
function H(t) {
|
|
232
|
-
const n = t == null ? void 0 : t.ownerDocument.defaultView;
|
|
233
|
-
if (n && n.self !== n.parent)
|
|
234
|
-
return n.frameElement;
|
|
235
|
-
}
|
|
236
|
-
function Pt(t) {
|
|
237
|
-
const n = /* @__PURE__ */ new Set();
|
|
238
|
-
let e = H(t);
|
|
239
|
-
for (; e; )
|
|
240
|
-
n.add(e), e = H(e);
|
|
241
|
-
return n;
|
|
242
|
-
}
|
|
243
|
-
function Vt(t, n) {
|
|
244
|
-
const e = setTimeout(t, n);
|
|
245
|
-
return () => clearTimeout(e);
|
|
246
|
-
}
|
|
247
|
-
function Tt(t, n) {
|
|
248
|
-
const e = () => performance.now();
|
|
249
|
-
let i, o;
|
|
250
|
-
return function(...s) {
|
|
251
|
-
const r = this;
|
|
252
|
-
o ? (i == null || i(), i = Vt(
|
|
253
|
-
() => {
|
|
254
|
-
t.apply(r, s), o = e();
|
|
255
|
-
},
|
|
256
|
-
n - (e() - o)
|
|
257
|
-
)) : (t.apply(r, s), o = e());
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
function Xt(t, n) {
|
|
261
|
-
return t === n ? !0 : !t || !n ? !1 : t.top == n.top && t.left == n.left && t.right == n.right && t.bottom == n.bottom;
|
|
262
|
-
}
|
|
263
|
-
function Yt(t, n = t.getBoundingClientRect()) {
|
|
264
|
-
const { width: e, height: i } = D(
|
|
265
|
-
t,
|
|
266
|
-
n
|
|
267
|
-
);
|
|
268
|
-
return e > 0 && i > 0;
|
|
269
|
-
}
|
|
270
|
-
var Ot = wt ? ResizeObserver : class {
|
|
271
|
-
observe() {
|
|
272
|
-
}
|
|
273
|
-
unobserve() {
|
|
274
|
-
}
|
|
275
|
-
disconnect() {
|
|
276
|
-
}
|
|
277
|
-
}, z, zt = class extends Ot {
|
|
278
|
-
constructor(t) {
|
|
279
|
-
super((n) => {
|
|
280
|
-
if (!f(this, z)) {
|
|
281
|
-
R(this, z, !0);
|
|
282
|
-
return;
|
|
283
|
-
}
|
|
284
|
-
t(n, this);
|
|
285
|
-
}), _(this, z, !1);
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
z = /* @__PURE__ */ new WeakMap();
|
|
289
|
-
var ht = Array.from({ length: 100 }, (t, n) => n / 100), _t = 75, A, $, S, W, C, T, F, I, K, Rt, Mt, Et = class {
|
|
290
|
-
constructor(t, n, e = {
|
|
291
|
-
debug: !1,
|
|
292
|
-
skipInitial: !1
|
|
293
|
-
}) {
|
|
294
|
-
this.element = t, this.callback = n, _(this, K), this.disconnect = () => {
|
|
295
|
-
var s, r, c;
|
|
296
|
-
R(this, F, !0), (s = f(this, S)) == null || s.disconnect(), (r = f(this, W)) == null || r.disconnect(), f(this, C).disconnect(), (c = f(this, T)) == null || c.remove();
|
|
297
|
-
}, _(this, A, !0), _(this, $), _(this, S), _(this, W), _(this, C), _(this, T), _(this, F, !1), _(this, I, Tt(() => {
|
|
298
|
-
var s, r, c;
|
|
299
|
-
const { element: l } = this;
|
|
300
|
-
if ((s = f(this, W)) == null || s.disconnect(), f(this, F) || !f(this, A) || !l.isConnected)
|
|
301
|
-
return;
|
|
302
|
-
const a = (r = l.ownerDocument) != null ? r : document, { innerHeight: u, innerWidth: h } = (c = a.defaultView) != null ? c : window, v = l.getBoundingClientRect(), y = D(l, v), { top: w, left: d, bottom: x, right: b } = y, p = -Math.floor(w), g = -Math.floor(d), M = -Math.floor(h - b), m = -Math.floor(u - x), G = `${p}px ${M}px ${m}px ${g}px`;
|
|
303
|
-
this.boundingClientRect = v, R(this, W, new IntersectionObserver(
|
|
304
|
-
(J) => {
|
|
305
|
-
const [Q] = J, { intersectionRect: At } = Q;
|
|
306
|
-
(Q.intersectionRatio !== 1 ? Q.intersectionRatio : it.intersectionRatio(
|
|
307
|
-
At,
|
|
308
|
-
D(l)
|
|
309
|
-
)) !== 1 && f(this, I).call(this);
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
threshold: ht,
|
|
313
|
-
rootMargin: G,
|
|
314
|
-
root: a
|
|
315
|
-
}
|
|
316
|
-
)), f(this, W).observe(l), gt(this, K, Rt).call(this);
|
|
317
|
-
}, _t)), this.boundingClientRect = t.getBoundingClientRect(), R(this, A, Yt(t, this.boundingClientRect));
|
|
318
|
-
let i = !0;
|
|
319
|
-
this.callback = (s) => {
|
|
320
|
-
i && (i = !1, e.skipInitial) || n(s);
|
|
321
|
-
};
|
|
322
|
-
const o = t.ownerDocument;
|
|
323
|
-
e != null && e.debug && (R(this, T, document.createElement("div")), f(this, T).style.background = "rgba(0,0,0,0.15)", f(this, T).style.position = "fixed", f(this, T).style.pointerEvents = "none", o.body.appendChild(f(this, T))), R(this, C, new IntersectionObserver(
|
|
324
|
-
(s) => {
|
|
325
|
-
var r, c;
|
|
326
|
-
const l = s[s.length - 1], { boundingClientRect: a, isIntersecting: u } = l, { width: h, height: v } = a, y = f(this, A);
|
|
327
|
-
R(this, A, u), !(!h && !v) && (y && !u ? ((r = f(this, W)) == null || r.disconnect(), this.callback(null), (c = f(this, S)) == null || c.disconnect(), R(this, S, void 0), f(this, T) && (f(this, T).style.visibility = "hidden")) : f(this, I).call(this), u && !f(this, S) && (R(this, S, new zt(f(this, I))), f(this, S).observe(t)));
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
threshold: ht,
|
|
331
|
-
root: o
|
|
332
|
-
}
|
|
333
|
-
)), f(this, A) && !e.skipInitial && this.callback(this.boundingClientRect), f(this, C).observe(t);
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
A = /* @__PURE__ */ new WeakMap();
|
|
337
|
-
$ = /* @__PURE__ */ new WeakMap();
|
|
338
|
-
S = /* @__PURE__ */ new WeakMap();
|
|
339
|
-
W = /* @__PURE__ */ new WeakMap();
|
|
340
|
-
C = /* @__PURE__ */ new WeakMap();
|
|
341
|
-
T = /* @__PURE__ */ new WeakMap();
|
|
342
|
-
F = /* @__PURE__ */ new WeakMap();
|
|
343
|
-
I = /* @__PURE__ */ new WeakMap();
|
|
344
|
-
K = /* @__PURE__ */ new WeakSet();
|
|
345
|
-
Rt = function() {
|
|
346
|
-
f(this, F) || (gt(this, K, Mt).call(this), !Xt(this.boundingClientRect, f(this, $)) && (this.callback(this.boundingClientRect), R(this, $, this.boundingClientRect)));
|
|
347
|
-
};
|
|
348
|
-
Mt = function() {
|
|
349
|
-
if (f(this, T)) {
|
|
350
|
-
const { top: t, left: n, width: e, height: i } = D(
|
|
351
|
-
this.element
|
|
352
|
-
);
|
|
353
|
-
f(this, T).style.overflow = "hidden", f(this, T).style.visibility = "visible", f(this, T).style.top = `${Math.floor(t)}px`, f(this, T).style.left = `${Math.floor(n)}px`, f(this, T).style.width = `${Math.floor(e)}px`, f(this, T).style.height = `${Math.floor(i)}px`;
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
var Y = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap();
|
|
357
|
-
function Bt(t, n) {
|
|
358
|
-
let e = Y.get(t);
|
|
359
|
-
return e || (e = { disconnect: new Et(
|
|
360
|
-
t,
|
|
361
|
-
(o) => {
|
|
362
|
-
const s = Y.get(t);
|
|
363
|
-
s && s.callbacks.forEach((r) => r(o));
|
|
364
|
-
},
|
|
365
|
-
{ skipInitial: !0 }
|
|
366
|
-
).disconnect, callbacks: /* @__PURE__ */ new Set() }), e.callbacks.add(n), Y.set(t, e), () => {
|
|
367
|
-
e.callbacks.delete(n), e.callbacks.size === 0 && (Y.delete(t), e.disconnect());
|
|
368
|
-
};
|
|
369
|
-
}
|
|
370
|
-
function Dt(t, n) {
|
|
371
|
-
const e = /* @__PURE__ */ new Set();
|
|
372
|
-
for (const i of t) {
|
|
373
|
-
const o = Bt(i, n);
|
|
374
|
-
e.add(o);
|
|
375
|
-
}
|
|
376
|
-
return () => e.forEach((i) => i());
|
|
377
|
-
}
|
|
378
|
-
function Ht(t, n) {
|
|
379
|
-
var e;
|
|
380
|
-
const i = t.ownerDocument;
|
|
381
|
-
if (!O.has(i)) {
|
|
382
|
-
const r = new AbortController(), c = /* @__PURE__ */ new Set();
|
|
383
|
-
document.addEventListener(
|
|
384
|
-
"scroll",
|
|
385
|
-
(l) => c.forEach((a) => a(l)),
|
|
386
|
-
{
|
|
387
|
-
capture: !0,
|
|
388
|
-
passive: !0,
|
|
389
|
-
signal: r.signal
|
|
390
|
-
}
|
|
391
|
-
), O.set(i, { disconnect: () => r.abort(), listeners: c });
|
|
392
|
-
}
|
|
393
|
-
const { listeners: o, disconnect: s } = (e = O.get(i)) != null ? e : {};
|
|
394
|
-
return !o || !s ? () => {
|
|
395
|
-
} : (o.add(n), () => {
|
|
396
|
-
o.delete(n), o.size === 0 && (s(), O.delete(i));
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
var N, L, B, et, Ee = class {
|
|
400
|
-
constructor(t, n, e) {
|
|
401
|
-
this.callback = n, _(this, N), _(this, L, !1), _(this, B), _(this, et, Tt((r) => {
|
|
402
|
-
if (!f(this, L) && r.target && "contains" in r.target && typeof r.target.contains == "function") {
|
|
403
|
-
for (const c of f(this, B))
|
|
404
|
-
if (r.target.contains(c)) {
|
|
405
|
-
this.callback(f(this, N).boundingClientRect);
|
|
406
|
-
break;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
}, _t));
|
|
410
|
-
const i = Pt(t), o = Dt(i, n), s = Ht(t, f(this, et));
|
|
411
|
-
R(this, B, i), R(this, N, new Et(t, n, e)), this.disconnect = () => {
|
|
412
|
-
f(this, L) || (R(this, L, !0), o(), s(), f(this, N).disconnect());
|
|
413
|
-
};
|
|
414
|
-
}
|
|
415
|
-
};
|
|
416
|
-
N = /* @__PURE__ */ new WeakMap();
|
|
417
|
-
L = /* @__PURE__ */ new WeakMap();
|
|
418
|
-
B = /* @__PURE__ */ new WeakMap();
|
|
419
|
-
et = /* @__PURE__ */ new WeakMap();
|
|
420
|
-
function $t(t) {
|
|
421
|
-
return "showPopover" in t && "hidePopover" in t && typeof t.showPopover == "function" && typeof t.hidePopover == "function";
|
|
422
|
-
}
|
|
423
|
-
function Se(t) {
|
|
424
|
-
try {
|
|
425
|
-
$t(t) && t.isConnected && t.hasAttribute("popover") && // This selector can throw an error in browsers that don't support it
|
|
426
|
-
!t.matches(":popover-open") && t.showPopover();
|
|
427
|
-
} catch {
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
function dt(t) {
|
|
431
|
-
return !wt || !t ? !1 : t === rt(t).scrollingElement;
|
|
432
|
-
}
|
|
433
|
-
function St(t) {
|
|
434
|
-
var n, e;
|
|
435
|
-
const i = E(t), o = dt(t) ? Ct(t) : j(t), s = i.visualViewport, r = dt(t) ? {
|
|
436
|
-
height: (n = s == null ? void 0 : s.height) != null ? n : i.innerHeight,
|
|
437
|
-
width: (e = s == null ? void 0 : s.width) != null ? e : i.innerWidth
|
|
438
|
-
} : {
|
|
439
|
-
height: t.clientHeight,
|
|
440
|
-
width: t.clientWidth
|
|
441
|
-
}, c = {
|
|
442
|
-
current: {
|
|
443
|
-
x: t.scrollLeft,
|
|
444
|
-
y: t.scrollTop
|
|
445
|
-
},
|
|
446
|
-
max: {
|
|
447
|
-
x: t.scrollWidth - r.width,
|
|
448
|
-
y: t.scrollHeight - r.height
|
|
449
|
-
}
|
|
450
|
-
}, l = c.current.y <= 0, a = c.current.x <= 0, u = c.current.y >= c.max.y, h = c.current.x >= c.max.x;
|
|
451
|
-
return {
|
|
452
|
-
rect: o,
|
|
453
|
-
position: c,
|
|
454
|
-
isTop: l,
|
|
455
|
-
isLeft: a,
|
|
456
|
-
isBottom: u,
|
|
457
|
-
isRight: h
|
|
458
|
-
};
|
|
459
|
-
}
|
|
460
|
-
function ke(t, n) {
|
|
461
|
-
const { isTop: e, isBottom: i, isLeft: o, isRight: s, position: r } = St(t), { x: c, y: l } = n ?? { x: 0, y: 0 }, a = !e && r.current.y + l > 0, u = !i && r.current.y + l < r.max.y, h = !o && r.current.x + c > 0, v = !s && r.current.x + c < r.max.x;
|
|
462
|
-
return {
|
|
463
|
-
top: a,
|
|
464
|
-
bottom: u,
|
|
465
|
-
left: h,
|
|
466
|
-
right: v,
|
|
467
|
-
x: h || v,
|
|
468
|
-
y: a || u
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
var ct = class {
|
|
472
|
-
constructor(t) {
|
|
473
|
-
this.scheduler = t, this.pending = !1, this.tasks = /* @__PURE__ */ new Set(), this.resolvers = /* @__PURE__ */ new Set(), this.flush = () => {
|
|
474
|
-
const { tasks: n, resolvers: e } = this;
|
|
475
|
-
this.pending = !1, this.tasks = /* @__PURE__ */ new Set(), this.resolvers = /* @__PURE__ */ new Set();
|
|
476
|
-
for (const i of n)
|
|
477
|
-
i();
|
|
478
|
-
for (const i of e)
|
|
479
|
-
i();
|
|
480
|
-
};
|
|
481
|
-
}
|
|
482
|
-
schedule(t) {
|
|
483
|
-
return this.tasks.add(t), this.pending || (this.pending = !0, this.scheduler(this.flush)), new Promise((n) => this.resolvers.add(n));
|
|
484
|
-
}
|
|
485
|
-
}, Ae = new ct((t) => {
|
|
486
|
-
typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : t();
|
|
487
|
-
}), Kt = new ct((t) => setTimeout(t, 50)), U = /* @__PURE__ */ new Map(), Ut = U.clear.bind(U);
|
|
488
|
-
function k(t, n = !1) {
|
|
489
|
-
if (!n) return pt(t);
|
|
490
|
-
let e = U.get(t);
|
|
491
|
-
return e || (e = pt(t), U.set(t, e), Kt.schedule(Ut), e);
|
|
492
|
-
}
|
|
493
|
-
function pt(t) {
|
|
494
|
-
return E(t).getComputedStyle(t);
|
|
495
|
-
}
|
|
496
|
-
function qt(t, n = k(t, !0)) {
|
|
497
|
-
return n.position === "fixed" || n.position === "sticky";
|
|
498
|
-
}
|
|
499
|
-
function jt(t, n = k(t, !0)) {
|
|
500
|
-
const e = /(auto|scroll|overlay)/;
|
|
501
|
-
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
502
|
-
const s = n[o];
|
|
503
|
-
return typeof s == "string" ? e.test(s) : !1;
|
|
504
|
-
});
|
|
505
|
-
}
|
|
506
|
-
var Gt = {
|
|
507
|
-
excludeElement: !0,
|
|
508
|
-
escapeShadowDOM: !0
|
|
509
|
-
};
|
|
510
|
-
function Jt(t, n = Gt) {
|
|
511
|
-
const { limit: e, excludeElement: i, escapeShadowDOM: o } = n, s = /* @__PURE__ */ new Set();
|
|
512
|
-
function r(c) {
|
|
513
|
-
if (e != null && s.size >= e || !c)
|
|
514
|
-
return s;
|
|
515
|
-
if (yt(c) && c.scrollingElement != null && !s.has(c.scrollingElement))
|
|
516
|
-
return s.add(c.scrollingElement), s;
|
|
517
|
-
if (o && xt(c))
|
|
518
|
-
return r(c.host);
|
|
519
|
-
if (!V(c))
|
|
520
|
-
return mt(c) ? r(c.parentElement) : s;
|
|
521
|
-
if (s.has(c))
|
|
522
|
-
return s;
|
|
523
|
-
const l = k(c, !0);
|
|
524
|
-
if (i && c === t || jt(c, l) && s.add(c), qt(c, l)) {
|
|
525
|
-
const { scrollingElement: a } = c.ownerDocument;
|
|
526
|
-
return a && s.add(a), s;
|
|
527
|
-
}
|
|
528
|
-
return r(c.parentNode);
|
|
529
|
-
}
|
|
530
|
-
return t ? r(t) : s;
|
|
531
|
-
}
|
|
532
|
-
function Qt(t) {
|
|
533
|
-
const [n] = Jt(t, { limit: 1 });
|
|
534
|
-
return n ?? null;
|
|
535
|
-
}
|
|
536
|
-
function kt(t, n = window.frameElement) {
|
|
537
|
-
const e = {
|
|
538
|
-
x: 0,
|
|
539
|
-
y: 0,
|
|
540
|
-
scaleX: 1,
|
|
541
|
-
scaleY: 1
|
|
542
|
-
};
|
|
543
|
-
if (!t) return e;
|
|
544
|
-
let i = H(t);
|
|
545
|
-
for (; i; ) {
|
|
546
|
-
if (i === n)
|
|
547
|
-
return e;
|
|
548
|
-
const o = j(i), { x: s, y: r } = Zt(i, o);
|
|
549
|
-
e.x = e.x + o.left, e.y = e.y + o.top, e.scaleX = e.scaleX * s, e.scaleY = e.scaleY * r, i = H(i);
|
|
550
|
-
}
|
|
551
|
-
return e;
|
|
552
|
-
}
|
|
553
|
-
function Zt(t, n = j(t)) {
|
|
554
|
-
const e = Math.round(n.width), i = Math.round(n.height);
|
|
555
|
-
if (V(t))
|
|
556
|
-
return {
|
|
557
|
-
x: e / t.offsetWidth,
|
|
558
|
-
y: i / t.offsetHeight
|
|
559
|
-
};
|
|
560
|
-
const o = k(t, !0);
|
|
561
|
-
return {
|
|
562
|
-
x: (parseFloat(o.width) || e) / e,
|
|
563
|
-
y: (parseFloat(o.height) || i) / i
|
|
564
|
-
};
|
|
565
|
-
}
|
|
566
|
-
function te(t) {
|
|
567
|
-
if (t === "none")
|
|
1
|
+
import { CollisionPriority as a, CollisionType as u } from "@dnd-kit/abstract";
|
|
2
|
+
import { Rectangle as p, Point as s } from "./fondue-components156.js";
|
|
3
|
+
var m = ({
|
|
4
|
+
dragOperation: t,
|
|
5
|
+
droppable: n
|
|
6
|
+
}) => {
|
|
7
|
+
const e = t.position.current;
|
|
8
|
+
if (!e)
|
|
568
9
|
return null;
|
|
569
|
-
const
|
|
570
|
-
|
|
571
|
-
x: isNaN(e) ? i : e,
|
|
572
|
-
y: isNaN(i) ? e : i
|
|
573
|
-
};
|
|
574
|
-
}
|
|
575
|
-
function nt(t) {
|
|
576
|
-
if (t === "none")
|
|
10
|
+
const { id: r } = n;
|
|
11
|
+
if (!n.shape)
|
|
577
12
|
return null;
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
x: isNaN(o.x) ? 0 : o.x,
|
|
581
|
-
y: isNaN(o.y) ? 0 : o.y,
|
|
582
|
-
z: isNaN(o.z) ? 0 : o.z
|
|
583
|
-
};
|
|
584
|
-
}
|
|
585
|
-
function lt(t) {
|
|
586
|
-
var n, e, i, o, s, r, c, l, a;
|
|
587
|
-
const { scale: u, transform: h, translate: v } = t, y = te(u), w = nt(v), d = ee(h);
|
|
588
|
-
if (!d && !y && !w)
|
|
589
|
-
return null;
|
|
590
|
-
const x = {
|
|
591
|
-
x: (n = y == null ? void 0 : y.x) != null ? n : 1,
|
|
592
|
-
y: (e = y == null ? void 0 : y.y) != null ? e : 1
|
|
593
|
-
}, b = {
|
|
594
|
-
x: (i = w == null ? void 0 : w.x) != null ? i : 0,
|
|
595
|
-
y: (o = w == null ? void 0 : w.y) != null ? o : 0
|
|
596
|
-
}, p = {
|
|
597
|
-
x: (s = d == null ? void 0 : d.x) != null ? s : 0,
|
|
598
|
-
y: (r = d == null ? void 0 : d.y) != null ? r : 0,
|
|
599
|
-
scaleX: (c = d == null ? void 0 : d.scaleX) != null ? c : 1,
|
|
600
|
-
scaleY: (l = d == null ? void 0 : d.scaleY) != null ? l : 1
|
|
601
|
-
};
|
|
602
|
-
return {
|
|
603
|
-
x: b.x + p.x,
|
|
604
|
-
y: b.y + p.y,
|
|
605
|
-
z: (a = w == null ? void 0 : w.z) != null ? a : 0,
|
|
606
|
-
scaleX: x.x * p.scaleX,
|
|
607
|
-
scaleY: x.y * p.scaleY
|
|
608
|
-
};
|
|
609
|
-
}
|
|
610
|
-
function ee(t) {
|
|
611
|
-
if (t.startsWith("matrix3d(")) {
|
|
612
|
-
const n = t.slice(9, -1).split(/, /);
|
|
13
|
+
if (n.shape.containsPoint(e)) {
|
|
14
|
+
const i = s.distance(n.shape.center, e);
|
|
613
15
|
return {
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
16
|
+
id: r,
|
|
17
|
+
value: 1 / i,
|
|
18
|
+
type: u.PointerIntersection,
|
|
19
|
+
priority: a.High
|
|
618
20
|
};
|
|
619
|
-
}
|
|
620
|
-
|
|
21
|
+
}
|
|
22
|
+
return null;
|
|
23
|
+
}, y = ({
|
|
24
|
+
dragOperation: t,
|
|
25
|
+
droppable: n
|
|
26
|
+
}) => {
|
|
27
|
+
const { shape: e } = t;
|
|
28
|
+
if (!n.shape || !(e != null && e.current))
|
|
29
|
+
return null;
|
|
30
|
+
const r = e.current.intersectionArea(n.shape);
|
|
31
|
+
if (r) {
|
|
32
|
+
const { position: i } = t, o = s.distance(n.shape.center, i.current), c = r / (e.current.area + n.shape.area - r) / o;
|
|
621
33
|
return {
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
34
|
+
id: n.id,
|
|
35
|
+
value: c,
|
|
36
|
+
type: u.ShapeIntersection,
|
|
37
|
+
priority: a.Normal
|
|
626
38
|
};
|
|
627
39
|
}
|
|
628
40
|
return null;
|
|
629
|
-
}
|
|
630
|
-
var
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
},
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
x: 0,
|
|
649
|
-
y: 0
|
|
650
|
-
}, m = {
|
|
651
|
-
height: p.height * o.y,
|
|
652
|
-
width: p.width * o.x
|
|
653
|
-
};
|
|
654
|
-
return (!a || b && !u) && c <= p.top + m.height && (e == null ? void 0 : e.y) !== 1 && r >= p.left - s.x && r <= p.right + s.x ? (g.y = b ? 1 : -1, M.y = i * Math.abs(
|
|
655
|
-
(p.top + m.height - c) / m.height
|
|
656
|
-
)) : (!u || b && !a) && c >= p.bottom - m.height && (e == null ? void 0 : e.y) !== -1 && r >= p.left - s.x && r <= p.right + s.x && (g.y = b ? -1 : 1, M.y = i * Math.abs(
|
|
657
|
-
(p.bottom - m.height - c) / m.height
|
|
658
|
-
)), (!v || x && !h) && r >= p.right - m.width && (e == null ? void 0 : e.x) !== -1 && c >= p.top - s.y && c <= p.bottom + s.y ? (g.x = x ? -1 : 1, M.x = i * Math.abs(
|
|
659
|
-
(p.right - m.width - r) / m.width
|
|
660
|
-
)) : (!h || x && !v) && r <= p.left + m.width && (e == null ? void 0 : e.x) !== 1 && c >= p.top - s.y && c <= p.bottom + s.y && (g.x = x ? 1 : -1, M.x = i * Math.abs(
|
|
661
|
-
(p.left + m.width - r) / m.width
|
|
662
|
-
)), {
|
|
663
|
-
direction: g,
|
|
664
|
-
speed: M
|
|
665
|
-
};
|
|
666
|
-
}
|
|
667
|
-
function se(t) {
|
|
668
|
-
return "scrollIntoViewIfNeeded" in t && typeof t.scrollIntoViewIfNeeded == "function";
|
|
669
|
-
}
|
|
670
|
-
function Ce(t, n = !1) {
|
|
671
|
-
if (se(t)) {
|
|
672
|
-
t.scrollIntoViewIfNeeded(n);
|
|
673
|
-
return;
|
|
674
|
-
}
|
|
675
|
-
if (!V(t))
|
|
676
|
-
return t.scrollIntoView();
|
|
677
|
-
var e = Qt(t);
|
|
678
|
-
if (!V(e))
|
|
679
|
-
return;
|
|
680
|
-
const i = k(e, !0), o = parseInt(
|
|
681
|
-
i.getPropertyValue("border-top-width")
|
|
682
|
-
), s = parseInt(
|
|
683
|
-
i.getPropertyValue("border-left-width")
|
|
684
|
-
), r = t.offsetTop - e.offsetTop < e.scrollTop, c = t.offsetTop - e.offsetTop + t.clientHeight - o > e.scrollTop + e.clientHeight, l = t.offsetLeft - e.offsetLeft < e.scrollLeft, a = t.offsetLeft - e.offsetLeft + t.clientWidth - s > e.scrollLeft + e.clientWidth, u = r && !c;
|
|
685
|
-
(r || c) && n && (e.scrollTop = t.offsetTop - e.offsetTop - e.clientHeight / 2 - o + t.clientHeight / 2), (l || a) && n && (e.scrollLeft = t.offsetLeft - e.offsetLeft - e.clientWidth / 2 - s + t.clientWidth / 2), (r || c || l || a) && !n && t.scrollIntoView(u);
|
|
686
|
-
}
|
|
687
|
-
function re(t, n, e) {
|
|
688
|
-
const { scaleX: i, scaleY: o, x: s, y: r } = n, c = t.left + s + (1 - i) * parseFloat(e), l = t.top + r + (1 - o) * parseFloat(e.slice(e.indexOf(" ") + 1)), a = i ? t.width * i : t.width, u = o ? t.height * o : t.height;
|
|
689
|
-
return {
|
|
690
|
-
width: a,
|
|
691
|
-
height: u,
|
|
692
|
-
top: l,
|
|
693
|
-
right: c + a,
|
|
694
|
-
bottom: l + u,
|
|
695
|
-
left: c
|
|
696
|
-
};
|
|
697
|
-
}
|
|
698
|
-
function ce(t, n, e) {
|
|
699
|
-
const { scaleX: i, scaleY: o, x: s, y: r } = n, c = t.left - s - (1 - i) * parseFloat(e), l = t.top - r - (1 - o) * parseFloat(e.slice(e.indexOf(" ") + 1)), a = i ? t.width / i : t.width, u = o ? t.height / o : t.height;
|
|
41
|
+
}, R = (t) => {
|
|
42
|
+
var n;
|
|
43
|
+
return (n = m(t)) != null ? n : y(t);
|
|
44
|
+
}, I = (t) => {
|
|
45
|
+
const { dragOperation: n, droppable: e } = t, { shape: r, position: i } = n;
|
|
46
|
+
if (!e.shape)
|
|
47
|
+
return null;
|
|
48
|
+
const o = r ? p.from(r.current.boundingRectangle).corners : void 0, c = p.from(
|
|
49
|
+
e.shape.boundingRectangle
|
|
50
|
+
).corners.reduce(
|
|
51
|
+
(d, v, f) => {
|
|
52
|
+
var l;
|
|
53
|
+
return d + s.distance(
|
|
54
|
+
s.from(v),
|
|
55
|
+
(l = o == null ? void 0 : o[f]) != null ? l : i.current
|
|
56
|
+
);
|
|
57
|
+
},
|
|
58
|
+
0
|
|
59
|
+
) / 4;
|
|
700
60
|
return {
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
bottom: l + u,
|
|
706
|
-
left: c
|
|
61
|
+
id: e.id,
|
|
62
|
+
value: 1 / c,
|
|
63
|
+
type: u.Collision,
|
|
64
|
+
priority: a.Normal
|
|
707
65
|
};
|
|
708
|
-
}
|
|
709
|
-
function Ie({ element: t, keyframes: n, options: e }) {
|
|
710
|
-
return t.animate(n, e).finished;
|
|
711
|
-
}
|
|
712
|
-
function Ne(t, n = k(t).translate, e = !0) {
|
|
713
|
-
if (e) {
|
|
714
|
-
const i = Wt(
|
|
715
|
-
t,
|
|
716
|
-
(o) => "translate" in o
|
|
717
|
-
);
|
|
718
|
-
if (i) {
|
|
719
|
-
const { translate: o = "" } = i[0];
|
|
720
|
-
if (typeof o == "string") {
|
|
721
|
-
const s = nt(o);
|
|
722
|
-
if (s)
|
|
723
|
-
return s;
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
if (n) {
|
|
728
|
-
const i = nt(n);
|
|
729
|
-
if (i)
|
|
730
|
-
return i;
|
|
731
|
-
}
|
|
732
|
-
return { x: 0, y: 0, z: 0 };
|
|
733
|
-
}
|
|
734
|
-
var le = new ct((t) => setTimeout(t, 0)), P = /* @__PURE__ */ new Map(), ae = P.clear.bind(P);
|
|
735
|
-
function ue(t) {
|
|
736
|
-
const n = t.ownerDocument;
|
|
737
|
-
let e = P.get(n);
|
|
738
|
-
if (e) return e;
|
|
739
|
-
e = n.getAnimations(), P.set(n, e), le.schedule(ae);
|
|
740
|
-
const i = e.filter(
|
|
741
|
-
(o) => q(o.effect) && o.effect.target === t
|
|
742
|
-
);
|
|
743
|
-
return P.set(t, i), e;
|
|
744
|
-
}
|
|
745
|
-
function fe(t, n) {
|
|
746
|
-
const e = ue(t).filter((i) => {
|
|
747
|
-
var o, s;
|
|
748
|
-
if (q(i.effect)) {
|
|
749
|
-
const { target: r } = i.effect;
|
|
750
|
-
if ((s = r && ((o = n.isValidTarget) == null ? void 0 : o.call(n, r))) != null ? s : !0)
|
|
751
|
-
return i.effect.getKeyframes().some((l) => {
|
|
752
|
-
for (const a of n.properties)
|
|
753
|
-
if (l[a]) return !0;
|
|
754
|
-
});
|
|
755
|
-
}
|
|
756
|
-
}).map((i) => {
|
|
757
|
-
const { effect: o, currentTime: s } = i, r = o == null ? void 0 : o.getComputedTiming().duration;
|
|
758
|
-
if (!(i.pending || i.playState === "finished") && typeof r == "number" && typeof s == "number" && s < r)
|
|
759
|
-
return i.currentTime = r, () => {
|
|
760
|
-
i.currentTime = s;
|
|
761
|
-
};
|
|
762
|
-
});
|
|
763
|
-
if (e.length > 0)
|
|
764
|
-
return () => e.forEach((i) => i == null ? void 0 : i());
|
|
765
|
-
}
|
|
766
|
-
var Le = class extends it {
|
|
767
|
-
constructor(t, n = {}) {
|
|
768
|
-
var e, i, o, s;
|
|
769
|
-
const {
|
|
770
|
-
frameTransform: r = kt(t),
|
|
771
|
-
ignoreTransforms: c,
|
|
772
|
-
getBoundingClientRect: l = j
|
|
773
|
-
} = n, a = fe(t, {
|
|
774
|
-
properties: ["transform", "translate", "scale", "width", "height"],
|
|
775
|
-
isValidTarget: (m) => (m !== t || bt()) && m.contains(t)
|
|
776
|
-
}), u = l(t);
|
|
777
|
-
let { top: h, left: v, width: y, height: w } = u, d;
|
|
778
|
-
const x = k(t), b = lt(x), p = {
|
|
779
|
-
x: (e = b == null ? void 0 : b.scaleX) != null ? e : 1,
|
|
780
|
-
y: (i = b == null ? void 0 : b.scaleY) != null ? i : 1
|
|
781
|
-
}, g = he(t, x);
|
|
782
|
-
a == null || a(), b && (d = ce(
|
|
783
|
-
u,
|
|
784
|
-
b,
|
|
785
|
-
x.transformOrigin
|
|
786
|
-
), (c || g) && (h = d.top, v = d.left, y = d.width, w = d.height));
|
|
787
|
-
const M = {
|
|
788
|
-
width: (o = d == null ? void 0 : d.width) != null ? o : y,
|
|
789
|
-
height: (s = d == null ? void 0 : d.height) != null ? s : w
|
|
790
|
-
};
|
|
791
|
-
if (g && !c && d) {
|
|
792
|
-
const m = re(
|
|
793
|
-
d,
|
|
794
|
-
g,
|
|
795
|
-
x.transformOrigin
|
|
796
|
-
);
|
|
797
|
-
h = m.top, v = m.left, y = m.width, w = m.height, p.x = g.scaleX, p.y = g.scaleY;
|
|
798
|
-
}
|
|
799
|
-
r && (c || (v *= r.scaleX, y *= r.scaleX, h *= r.scaleY, w *= r.scaleY), v += r.x, h += r.y), super(v, h, y, w), this.scale = p, this.intrinsicWidth = M.width, this.intrinsicHeight = M.height;
|
|
800
|
-
}
|
|
801
|
-
};
|
|
802
|
-
function he(t, n) {
|
|
803
|
-
var e;
|
|
804
|
-
const i = t.getAnimations();
|
|
805
|
-
let o = null;
|
|
806
|
-
if (!i.length) return null;
|
|
807
|
-
for (const s of i) {
|
|
808
|
-
if (s.playState !== "running") continue;
|
|
809
|
-
const r = q(s.effect) ? s.effect.getKeyframes() : [], c = r[r.length - 1];
|
|
810
|
-
if (!c) continue;
|
|
811
|
-
const { transform: l, translate: a, scale: u } = c;
|
|
812
|
-
if (l || a || u) {
|
|
813
|
-
const h = lt({
|
|
814
|
-
transform: typeof l == "string" && l ? l : n.transform,
|
|
815
|
-
translate: typeof a == "string" && a ? a : n.translate,
|
|
816
|
-
scale: typeof u == "string" && u ? u : n.scale
|
|
817
|
-
});
|
|
818
|
-
h && (o = o ? {
|
|
819
|
-
x: o.x + h.x,
|
|
820
|
-
y: o.y + h.y,
|
|
821
|
-
z: (e = o.z) != null ? e : h.z,
|
|
822
|
-
scaleX: o.scaleX * h.scaleX,
|
|
823
|
-
scaleY: o.scaleY * h.scaleY
|
|
824
|
-
} : h);
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
return o;
|
|
828
|
-
}
|
|
829
|
-
function Z(t) {
|
|
830
|
-
return "style" in t && typeof t.style == "object" && t.style !== null && "setProperty" in t.style && "removeProperty" in t.style && typeof t.style.setProperty == "function" && typeof t.style.removeProperty == "function";
|
|
831
|
-
}
|
|
832
|
-
var Fe = class {
|
|
833
|
-
constructor(t) {
|
|
834
|
-
this.element = t, this.initial = /* @__PURE__ */ new Map();
|
|
835
|
-
}
|
|
836
|
-
set(t, n = "") {
|
|
837
|
-
const { element: e } = this;
|
|
838
|
-
if (Z(e))
|
|
839
|
-
for (const [i, o] of Object.entries(t)) {
|
|
840
|
-
const s = `${n}${i}`;
|
|
841
|
-
this.initial.has(s) || this.initial.set(s, e.style.getPropertyValue(s)), e.style.setProperty(
|
|
842
|
-
s,
|
|
843
|
-
typeof o == "string" ? o : `${o}px`
|
|
844
|
-
);
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
remove(t, n = "") {
|
|
848
|
-
const { element: e } = this;
|
|
849
|
-
if (Z(e))
|
|
850
|
-
for (const i of t) {
|
|
851
|
-
const o = `${n}${i}`;
|
|
852
|
-
e.style.removeProperty(o);
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
reset() {
|
|
856
|
-
const { element: t } = this;
|
|
857
|
-
if (Z(t)) {
|
|
858
|
-
for (const [n, e] of this.initial)
|
|
859
|
-
t.style.setProperty(n, e);
|
|
860
|
-
t.getAttribute("style") === "" && t.removeAttribute("style");
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
66
|
};
|
|
864
|
-
function de(t) {
|
|
865
|
-
return t ? t instanceof E(t).Element || X(t) && t.nodeType === Node.ELEMENT_NODE : !1;
|
|
866
|
-
}
|
|
867
|
-
function Pe(t) {
|
|
868
|
-
if (!t) return !1;
|
|
869
|
-
const { KeyboardEvent: n } = E(t.target);
|
|
870
|
-
return t instanceof n;
|
|
871
|
-
}
|
|
872
|
-
function Ve(t) {
|
|
873
|
-
if (!t) return !1;
|
|
874
|
-
const { PointerEvent: n } = E(t.target);
|
|
875
|
-
return t instanceof n;
|
|
876
|
-
}
|
|
877
|
-
function Xe(t) {
|
|
878
|
-
if (!de(t)) return !1;
|
|
879
|
-
const { tagName: n } = t;
|
|
880
|
-
return n === "INPUT" || n === "TEXTAREA" || pe(t);
|
|
881
|
-
}
|
|
882
|
-
function pe(t) {
|
|
883
|
-
return t.hasAttribute("contenteditable") && t.getAttribute("contenteditable") !== "false";
|
|
884
|
-
}
|
|
885
|
-
var tt = {};
|
|
886
|
-
function Ye(t) {
|
|
887
|
-
const n = tt[t] == null ? 0 : tt[t] + 1;
|
|
888
|
-
return tt[t] = n, `${t}-${n}`;
|
|
889
|
-
}
|
|
890
67
|
export {
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
zt as ResizeNotifier,
|
|
896
|
-
ct as Scheduler,
|
|
897
|
-
ne as ScrollDirection,
|
|
898
|
-
Fe as Styles,
|
|
899
|
-
Ie as animateTransform,
|
|
900
|
-
ke as canScroll,
|
|
901
|
-
wt as canUseDOM,
|
|
902
|
-
xe as cloneElement,
|
|
903
|
-
Ne as computeTranslate,
|
|
904
|
-
We as detectScrollIntent,
|
|
905
|
-
Ye as generateUniqueId,
|
|
906
|
-
j as getBoundingRectangle,
|
|
907
|
-
k as getComputedStyles,
|
|
908
|
-
rt as getDocument,
|
|
909
|
-
at as getDocuments,
|
|
910
|
-
Lt as getElementFromPoint,
|
|
911
|
-
ye as getEventCoordinates,
|
|
912
|
-
Wt as getFinalKeyframe,
|
|
913
|
-
Qt as getFirstScrollableAncestor,
|
|
914
|
-
me as getFixedPositionOffset,
|
|
915
|
-
H as getFrameElement,
|
|
916
|
-
kt as getFrameTransform,
|
|
917
|
-
we as getRoot,
|
|
918
|
-
Jt as getScrollableAncestors,
|
|
919
|
-
Ct as getViewportBoundingRectangle,
|
|
920
|
-
D as getVisibleBoundingRectangle,
|
|
921
|
-
E as getWindow,
|
|
922
|
-
ce as inverseTransform,
|
|
923
|
-
yt as isDocument,
|
|
924
|
-
dt as isDocumentScrollingElement,
|
|
925
|
-
de as isElement,
|
|
926
|
-
V as isHTMLElement,
|
|
927
|
-
_e as isInteractiveElement,
|
|
928
|
-
Pe as isKeyboardEvent,
|
|
929
|
-
q as isKeyframeEffect,
|
|
930
|
-
Ve as isPointerEvent,
|
|
931
|
-
bt as isSafari,
|
|
932
|
-
xt as isShadowRoot,
|
|
933
|
-
Xe as isTextInput,
|
|
934
|
-
lt as parseTransform,
|
|
935
|
-
nt as parseTranslate,
|
|
936
|
-
be as prefersReducedMotion,
|
|
937
|
-
Ae as scheduler,
|
|
938
|
-
Ce as scrollIntoViewIfNeeded,
|
|
939
|
-
Se as showPopover,
|
|
940
|
-
$t as supportsPopover,
|
|
941
|
-
Z as supportsStyle,
|
|
942
|
-
Vt as timeout
|
|
68
|
+
I as closestCorners,
|
|
69
|
+
R as defaultCollisionDetection,
|
|
70
|
+
m as pointerIntersection,
|
|
71
|
+
y as shapeIntersection
|
|
943
72
|
};
|
|
944
73
|
//# sourceMappingURL=fondue-components153.js.map
|