@dazzle-ds/core 0.3.1
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/chunks/tooltip-D5I7ITYB.mjs +897 -0
- package/components/avatar/avatar.d.ts +22 -0
- package/components/avatar/avatar.d.ts.map +1 -0
- package/components/avatar/avatar.mjs +92 -0
- package/components/button/button.d.ts +16 -0
- package/components/button/button.d.ts.map +1 -0
- package/components/button/button.mjs +83 -0
- package/components/checkbox/checkbox.d.ts +3 -0
- package/components/checkbox/checkbox.d.ts.map +1 -0
- package/components/checkbox/checkbox.mjs +23 -0
- package/components/input/input.d.ts +13 -0
- package/components/input/input.d.ts.map +1 -0
- package/components/input/input.mjs +133 -0
- package/components/skeleton/skeleton.d.ts +6 -0
- package/components/skeleton/skeleton.d.ts.map +1 -0
- package/components/skeleton/skeleton.mjs +8 -0
- package/components/toggle/toggle.d.ts +9 -0
- package/components/toggle/toggle.d.ts.map +1 -0
- package/components/toggle/toggle.mjs +18 -0
- package/components/tooltip/tooltip.d.ts +14 -0
- package/components/tooltip/tooltip.d.ts.map +1 -0
- package/components/tooltip/tooltip.mjs +2 -0
- package/core.css +3 -0
- package/icons/index.d.ts +6 -0
- package/icons/index.d.ts.map +1 -0
- package/index.d.ts +9 -0
- package/index.mjs +19 -0
- package/package.json +91 -0
|
@@ -0,0 +1,897 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
2
|
+
var e = Math.min, t = Math.max, n = Math.round, r = Math.floor, i = (e) => ({
|
|
3
|
+
x: e,
|
|
4
|
+
y: e
|
|
5
|
+
}), a = {
|
|
6
|
+
left: "right",
|
|
7
|
+
right: "left",
|
|
8
|
+
bottom: "top",
|
|
9
|
+
top: "bottom"
|
|
10
|
+
};
|
|
11
|
+
function o(n, r, i) {
|
|
12
|
+
return t(n, e(r, i));
|
|
13
|
+
}
|
|
14
|
+
function s(e, t) {
|
|
15
|
+
return typeof e == "function" ? e(t) : e;
|
|
16
|
+
}
|
|
17
|
+
function c(e) {
|
|
18
|
+
return e.split("-")[0];
|
|
19
|
+
}
|
|
20
|
+
function l(e) {
|
|
21
|
+
return e.split("-")[1];
|
|
22
|
+
}
|
|
23
|
+
function u(e) {
|
|
24
|
+
return e === "x" ? "y" : "x";
|
|
25
|
+
}
|
|
26
|
+
function d(e) {
|
|
27
|
+
return e === "y" ? "height" : "width";
|
|
28
|
+
}
|
|
29
|
+
function f(e) {
|
|
30
|
+
let t = e[0];
|
|
31
|
+
return t === "t" || t === "b" ? "y" : "x";
|
|
32
|
+
}
|
|
33
|
+
function p(e) {
|
|
34
|
+
return u(f(e));
|
|
35
|
+
}
|
|
36
|
+
function m(e, t, n) {
|
|
37
|
+
n === void 0 && (n = !1);
|
|
38
|
+
let r = l(e), i = p(e), a = d(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
39
|
+
return t.reference[a] > t.floating[a] && (o = C(o)), [o, C(o)];
|
|
40
|
+
}
|
|
41
|
+
function h(e) {
|
|
42
|
+
let t = C(e);
|
|
43
|
+
return [
|
|
44
|
+
g(e),
|
|
45
|
+
t,
|
|
46
|
+
g(t)
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
function g(e) {
|
|
50
|
+
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
51
|
+
}
|
|
52
|
+
var _ = ["left", "right"], v = ["right", "left"], y = ["top", "bottom"], b = ["bottom", "top"];
|
|
53
|
+
function x(e, t, n) {
|
|
54
|
+
switch (e) {
|
|
55
|
+
case "top":
|
|
56
|
+
case "bottom": return n ? t ? v : _ : t ? _ : v;
|
|
57
|
+
case "left":
|
|
58
|
+
case "right": return t ? y : b;
|
|
59
|
+
default: return [];
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function S(e, t, n, r) {
|
|
63
|
+
let i = l(e), a = x(c(e), n === "start", r);
|
|
64
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(g)))), a;
|
|
65
|
+
}
|
|
66
|
+
function C(e) {
|
|
67
|
+
let t = c(e);
|
|
68
|
+
return a[t] + e.slice(t.length);
|
|
69
|
+
}
|
|
70
|
+
function w(e) {
|
|
71
|
+
return {
|
|
72
|
+
top: 0,
|
|
73
|
+
right: 0,
|
|
74
|
+
bottom: 0,
|
|
75
|
+
left: 0,
|
|
76
|
+
...e
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function ee(e) {
|
|
80
|
+
return typeof e == "number" ? {
|
|
81
|
+
top: e,
|
|
82
|
+
right: e,
|
|
83
|
+
bottom: e,
|
|
84
|
+
left: e
|
|
85
|
+
} : w(e);
|
|
86
|
+
}
|
|
87
|
+
function T(e) {
|
|
88
|
+
let { x: t, y: n, width: r, height: i } = e;
|
|
89
|
+
return {
|
|
90
|
+
width: r,
|
|
91
|
+
height: i,
|
|
92
|
+
top: n,
|
|
93
|
+
left: t,
|
|
94
|
+
right: t + r,
|
|
95
|
+
bottom: n + i,
|
|
96
|
+
x: t,
|
|
97
|
+
y: n
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region ../../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
102
|
+
function E(e, t, n) {
|
|
103
|
+
let { reference: r, floating: i } = e, a = f(t), o = p(t), s = d(o), u = c(t), m = a === "y", h = r.x + r.width / 2 - i.width / 2, g = r.y + r.height / 2 - i.height / 2, _ = r[s] / 2 - i[s] / 2, v;
|
|
104
|
+
switch (u) {
|
|
105
|
+
case "top":
|
|
106
|
+
v = {
|
|
107
|
+
x: h,
|
|
108
|
+
y: r.y - i.height
|
|
109
|
+
};
|
|
110
|
+
break;
|
|
111
|
+
case "bottom":
|
|
112
|
+
v = {
|
|
113
|
+
x: h,
|
|
114
|
+
y: r.y + r.height
|
|
115
|
+
};
|
|
116
|
+
break;
|
|
117
|
+
case "right":
|
|
118
|
+
v = {
|
|
119
|
+
x: r.x + r.width,
|
|
120
|
+
y: g
|
|
121
|
+
};
|
|
122
|
+
break;
|
|
123
|
+
case "left":
|
|
124
|
+
v = {
|
|
125
|
+
x: r.x - i.width,
|
|
126
|
+
y: g
|
|
127
|
+
};
|
|
128
|
+
break;
|
|
129
|
+
default: v = {
|
|
130
|
+
x: r.x,
|
|
131
|
+
y: r.y
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
switch (l(t)) {
|
|
135
|
+
case "start":
|
|
136
|
+
v[o] -= _ * (n && m ? -1 : 1);
|
|
137
|
+
break;
|
|
138
|
+
case "end":
|
|
139
|
+
v[o] += _ * (n && m ? -1 : 1);
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
return v;
|
|
143
|
+
}
|
|
144
|
+
async function D(e, t) {
|
|
145
|
+
t === void 0 && (t = {});
|
|
146
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: u = "viewport", elementContext: d = "floating", altBoundary: f = !1, padding: p = 0 } = s(t, e), m = ee(p), h = o[f ? d === "floating" ? "reference" : "floating" : d], g = T(await i.getClippingRect({
|
|
147
|
+
element: await (i.isElement == null ? void 0 : i.isElement(h)) ?? !0 ? h : h.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
148
|
+
boundary: l,
|
|
149
|
+
rootBoundary: u,
|
|
150
|
+
strategy: c
|
|
151
|
+
})), _ = d === "floating" ? {
|
|
152
|
+
x: n,
|
|
153
|
+
y: r,
|
|
154
|
+
width: a.floating.width,
|
|
155
|
+
height: a.floating.height
|
|
156
|
+
} : a.reference, v = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), y = await (i.isElement == null ? void 0 : i.isElement(v)) && await (i.getScale == null ? void 0 : i.getScale(v)) || {
|
|
157
|
+
x: 1,
|
|
158
|
+
y: 1
|
|
159
|
+
}, b = T(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
160
|
+
elements: o,
|
|
161
|
+
rect: _,
|
|
162
|
+
offsetParent: v,
|
|
163
|
+
strategy: c
|
|
164
|
+
}) : _);
|
|
165
|
+
return {
|
|
166
|
+
top: (g.top - b.top + m.top) / y.y,
|
|
167
|
+
bottom: (b.bottom - g.bottom + m.bottom) / y.y,
|
|
168
|
+
left: (g.left - b.left + m.left) / y.x,
|
|
169
|
+
right: (b.right - g.right + m.right) / y.x
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
var O = 50, k = async (e, t, n) => {
|
|
173
|
+
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
174
|
+
...o,
|
|
175
|
+
detectOverflow: D
|
|
176
|
+
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
177
|
+
reference: e,
|
|
178
|
+
floating: t,
|
|
179
|
+
strategy: i
|
|
180
|
+
}), { x: u, y: d } = E(l, r, c), f = r, p = 0, m = {};
|
|
181
|
+
for (let n = 0; n < a.length; n++) {
|
|
182
|
+
let h = a[n];
|
|
183
|
+
if (!h) continue;
|
|
184
|
+
let { name: g, fn: _ } = h, { x: v, y, data: b, reset: x } = await _({
|
|
185
|
+
x: u,
|
|
186
|
+
y: d,
|
|
187
|
+
initialPlacement: r,
|
|
188
|
+
placement: f,
|
|
189
|
+
strategy: i,
|
|
190
|
+
middlewareData: m,
|
|
191
|
+
rects: l,
|
|
192
|
+
platform: s,
|
|
193
|
+
elements: {
|
|
194
|
+
reference: e,
|
|
195
|
+
floating: t
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
u = v ?? u, d = y ?? d, m[g] = {
|
|
199
|
+
...m[g],
|
|
200
|
+
...b
|
|
201
|
+
}, x && p < O && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
202
|
+
reference: e,
|
|
203
|
+
floating: t,
|
|
204
|
+
strategy: i
|
|
205
|
+
}) : x.rects), {x: u, y: d} = E(l, f, c)), n = -1);
|
|
206
|
+
}
|
|
207
|
+
return {
|
|
208
|
+
x: u,
|
|
209
|
+
y: d,
|
|
210
|
+
placement: f,
|
|
211
|
+
strategy: i,
|
|
212
|
+
middlewareData: m
|
|
213
|
+
};
|
|
214
|
+
}, A = (t) => ({
|
|
215
|
+
name: "arrow",
|
|
216
|
+
options: t,
|
|
217
|
+
async fn(n) {
|
|
218
|
+
let { x: r, y: i, placement: a, rects: c, platform: u, elements: f, middlewareData: m } = n, { element: h, padding: g = 0 } = s(t, n) || {};
|
|
219
|
+
if (h == null) return {};
|
|
220
|
+
let _ = ee(g), v = {
|
|
221
|
+
x: r,
|
|
222
|
+
y: i
|
|
223
|
+
}, y = p(a), b = d(y), x = await u.getDimensions(h), S = y === "y", C = S ? "top" : "left", w = S ? "bottom" : "right", T = S ? "clientHeight" : "clientWidth", E = c.reference[b] + c.reference[y] - v[y] - c.floating[b], D = v[y] - c.reference[y], O = await (u.getOffsetParent == null ? void 0 : u.getOffsetParent(h)), k = O ? O[T] : 0;
|
|
224
|
+
(!k || !await (u.isElement == null ? void 0 : u.isElement(O))) && (k = f.floating[T] || c.floating[b]);
|
|
225
|
+
let A = E / 2 - D / 2, j = k / 2 - x[b] / 2 - 1, te = e(_[C], j), M = e(_[w], j), N = te, ne = k - x[b] - M, P = k / 2 - x[b] / 2 + A, F = o(N, P, ne), I = !m.arrow && l(a) != null && P !== F && c.reference[b] / 2 - (P < N ? te : M) - x[b] / 2 < 0, L = I ? P < N ? P - N : P - ne : 0;
|
|
226
|
+
return {
|
|
227
|
+
[y]: v[y] + L,
|
|
228
|
+
data: {
|
|
229
|
+
[y]: F,
|
|
230
|
+
centerOffset: P - F - L,
|
|
231
|
+
...I && { alignmentOffset: L }
|
|
232
|
+
},
|
|
233
|
+
reset: I
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
}), j = function(e) {
|
|
237
|
+
return e === void 0 && (e = {}), {
|
|
238
|
+
name: "flip",
|
|
239
|
+
options: e,
|
|
240
|
+
async fn(t) {
|
|
241
|
+
var n;
|
|
242
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: l, elements: u } = t, { mainAxis: d = !0, crossAxis: p = !0, fallbackPlacements: g, fallbackStrategy: _ = "bestFit", fallbackAxisSideDirection: v = "none", flipAlignment: y = !0, ...b } = s(e, t);
|
|
243
|
+
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
244
|
+
let x = c(r), w = f(o), ee = c(o) === o, T = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), E = g || (ee || !y ? [C(o)] : h(o)), D = v !== "none";
|
|
245
|
+
!g && D && E.push(...S(o, y, v, T));
|
|
246
|
+
let O = [o, ...E], k = await l.detectOverflow(t, b), A = [], j = i.flip?.overflows || [];
|
|
247
|
+
if (d && A.push(k[x]), p) {
|
|
248
|
+
let e = m(r, a, T);
|
|
249
|
+
A.push(k[e[0]], k[e[1]]);
|
|
250
|
+
}
|
|
251
|
+
if (j = [...j, {
|
|
252
|
+
placement: r,
|
|
253
|
+
overflows: A
|
|
254
|
+
}], !A.every((e) => e <= 0)) {
|
|
255
|
+
let e = (i.flip?.index || 0) + 1, t = O[e];
|
|
256
|
+
if (t && (!(p === "alignment" && w !== f(t)) || j.every((e) => f(e.placement) === w ? e.overflows[0] > 0 : !0))) return {
|
|
257
|
+
data: {
|
|
258
|
+
index: e,
|
|
259
|
+
overflows: j
|
|
260
|
+
},
|
|
261
|
+
reset: { placement: t }
|
|
262
|
+
};
|
|
263
|
+
let n = j.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
264
|
+
if (!n) switch (_) {
|
|
265
|
+
case "bestFit": {
|
|
266
|
+
let e = j.filter((e) => {
|
|
267
|
+
if (D) {
|
|
268
|
+
let t = f(e.placement);
|
|
269
|
+
return t === w || t === "y";
|
|
270
|
+
}
|
|
271
|
+
return !0;
|
|
272
|
+
}).map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
|
|
273
|
+
e && (n = e);
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
case "initialPlacement":
|
|
277
|
+
n = o;
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
if (r !== n) return { reset: { placement: n } };
|
|
281
|
+
}
|
|
282
|
+
return {};
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
}, te = /* @__PURE__ */ new Set(["left", "top"]);
|
|
286
|
+
async function M(e, t) {
|
|
287
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = c(n), u = l(n), d = f(n) === "y", p = te.has(o) ? -1 : 1, m = a && d ? -1 : 1, h = s(t, e), { mainAxis: g, crossAxis: _, alignmentAxis: v } = typeof h == "number" ? {
|
|
288
|
+
mainAxis: h,
|
|
289
|
+
crossAxis: 0,
|
|
290
|
+
alignmentAxis: null
|
|
291
|
+
} : {
|
|
292
|
+
mainAxis: h.mainAxis || 0,
|
|
293
|
+
crossAxis: h.crossAxis || 0,
|
|
294
|
+
alignmentAxis: h.alignmentAxis
|
|
295
|
+
};
|
|
296
|
+
return u && typeof v == "number" && (_ = u === "end" ? v * -1 : v), d ? {
|
|
297
|
+
x: _ * m,
|
|
298
|
+
y: g * p
|
|
299
|
+
} : {
|
|
300
|
+
x: g * p,
|
|
301
|
+
y: _ * m
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
var N = function(e) {
|
|
305
|
+
return e === void 0 && (e = 0), {
|
|
306
|
+
name: "offset",
|
|
307
|
+
options: e,
|
|
308
|
+
async fn(t) {
|
|
309
|
+
var n;
|
|
310
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await M(t, e);
|
|
311
|
+
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
312
|
+
x: r + s.x,
|
|
313
|
+
y: i + s.y,
|
|
314
|
+
data: {
|
|
315
|
+
...s,
|
|
316
|
+
placement: a
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
}, ne = function(e) {
|
|
322
|
+
return e === void 0 && (e = {}), {
|
|
323
|
+
name: "shift",
|
|
324
|
+
options: e,
|
|
325
|
+
async fn(t) {
|
|
326
|
+
let { x: n, y: r, placement: i, platform: a } = t, { mainAxis: l = !0, crossAxis: d = !1, limiter: p = { fn: (e) => {
|
|
327
|
+
let { x: t, y: n } = e;
|
|
328
|
+
return {
|
|
329
|
+
x: t,
|
|
330
|
+
y: n
|
|
331
|
+
};
|
|
332
|
+
} }, ...m } = s(e, t), h = {
|
|
333
|
+
x: n,
|
|
334
|
+
y: r
|
|
335
|
+
}, g = await a.detectOverflow(t, m), _ = f(c(i)), v = u(_), y = h[v], b = h[_];
|
|
336
|
+
if (l) {
|
|
337
|
+
let e = v === "y" ? "top" : "left", t = v === "y" ? "bottom" : "right", n = y + g[e], r = y - g[t];
|
|
338
|
+
y = o(n, y, r);
|
|
339
|
+
}
|
|
340
|
+
if (d) {
|
|
341
|
+
let e = _ === "y" ? "top" : "left", t = _ === "y" ? "bottom" : "right", n = b + g[e], r = b - g[t];
|
|
342
|
+
b = o(n, b, r);
|
|
343
|
+
}
|
|
344
|
+
let x = p.fn({
|
|
345
|
+
...t,
|
|
346
|
+
[v]: y,
|
|
347
|
+
[_]: b
|
|
348
|
+
});
|
|
349
|
+
return {
|
|
350
|
+
...x,
|
|
351
|
+
data: {
|
|
352
|
+
x: x.x - n,
|
|
353
|
+
y: x.y - r,
|
|
354
|
+
enabled: {
|
|
355
|
+
[v]: l,
|
|
356
|
+
[_]: d
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
//#endregion
|
|
364
|
+
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
365
|
+
function P() {
|
|
366
|
+
return typeof window < "u";
|
|
367
|
+
}
|
|
368
|
+
function F(e) {
|
|
369
|
+
return re(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
370
|
+
}
|
|
371
|
+
function I(e) {
|
|
372
|
+
var t;
|
|
373
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
374
|
+
}
|
|
375
|
+
function L(e) {
|
|
376
|
+
return ((re(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
377
|
+
}
|
|
378
|
+
function re(e) {
|
|
379
|
+
return P() ? e instanceof Node || e instanceof I(e).Node : !1;
|
|
380
|
+
}
|
|
381
|
+
function R(e) {
|
|
382
|
+
return P() ? e instanceof Element || e instanceof I(e).Element : !1;
|
|
383
|
+
}
|
|
384
|
+
function z(e) {
|
|
385
|
+
return P() ? e instanceof HTMLElement || e instanceof I(e).HTMLElement : !1;
|
|
386
|
+
}
|
|
387
|
+
function ie(e) {
|
|
388
|
+
return !P() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof I(e).ShadowRoot;
|
|
389
|
+
}
|
|
390
|
+
function B(e) {
|
|
391
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = K(e);
|
|
392
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
393
|
+
}
|
|
394
|
+
function ae(e) {
|
|
395
|
+
return /^(table|td|th)$/.test(F(e));
|
|
396
|
+
}
|
|
397
|
+
function V(e) {
|
|
398
|
+
try {
|
|
399
|
+
if (e.matches(":popover-open")) return !0;
|
|
400
|
+
} catch {}
|
|
401
|
+
try {
|
|
402
|
+
return e.matches(":modal");
|
|
403
|
+
} catch {
|
|
404
|
+
return !1;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
var oe = /transform|translate|scale|rotate|perspective|filter/, se = /paint|layout|strict|content/, H = (e) => !!e && e !== "none", ce;
|
|
408
|
+
function U(e) {
|
|
409
|
+
let t = R(e) ? K(e) : e;
|
|
410
|
+
return H(t.transform) || H(t.translate) || H(t.scale) || H(t.rotate) || H(t.perspective) || !W() && (H(t.backdropFilter) || H(t.filter)) || oe.test(t.willChange || "") || se.test(t.contain || "");
|
|
411
|
+
}
|
|
412
|
+
function le(e) {
|
|
413
|
+
let t = J(e);
|
|
414
|
+
for (; z(t) && !G(t);) {
|
|
415
|
+
if (U(t)) return t;
|
|
416
|
+
if (V(t)) return null;
|
|
417
|
+
t = J(t);
|
|
418
|
+
}
|
|
419
|
+
return null;
|
|
420
|
+
}
|
|
421
|
+
function W() {
|
|
422
|
+
return ce ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), ce;
|
|
423
|
+
}
|
|
424
|
+
function G(e) {
|
|
425
|
+
return /^(html|body|#document)$/.test(F(e));
|
|
426
|
+
}
|
|
427
|
+
function K(e) {
|
|
428
|
+
return I(e).getComputedStyle(e);
|
|
429
|
+
}
|
|
430
|
+
function q(e) {
|
|
431
|
+
return R(e) ? {
|
|
432
|
+
scrollLeft: e.scrollLeft,
|
|
433
|
+
scrollTop: e.scrollTop
|
|
434
|
+
} : {
|
|
435
|
+
scrollLeft: e.scrollX,
|
|
436
|
+
scrollTop: e.scrollY
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
function J(e) {
|
|
440
|
+
if (F(e) === "html") return e;
|
|
441
|
+
let t = e.assignedSlot || e.parentNode || ie(e) && e.host || L(e);
|
|
442
|
+
return ie(t) ? t.host : t;
|
|
443
|
+
}
|
|
444
|
+
function ue(e) {
|
|
445
|
+
let t = J(e);
|
|
446
|
+
return G(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : z(t) && B(t) ? t : ue(t);
|
|
447
|
+
}
|
|
448
|
+
function Y(e, t, n) {
|
|
449
|
+
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
450
|
+
let r = ue(e), i = r === e.ownerDocument?.body, a = I(r);
|
|
451
|
+
if (i) {
|
|
452
|
+
let e = de(a);
|
|
453
|
+
return t.concat(a, a.visualViewport || [], B(r) ? r : [], e && n ? Y(e) : []);
|
|
454
|
+
} else return t.concat(r, Y(r, [], n));
|
|
455
|
+
}
|
|
456
|
+
function de(e) {
|
|
457
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
458
|
+
}
|
|
459
|
+
//#endregion
|
|
460
|
+
//#region ../../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
461
|
+
function fe(e) {
|
|
462
|
+
let t = K(e), r = parseFloat(t.width) || 0, i = parseFloat(t.height) || 0, a = z(e), o = a ? e.offsetWidth : r, s = a ? e.offsetHeight : i, c = n(r) !== o || n(i) !== s;
|
|
463
|
+
return c && (r = o, i = s), {
|
|
464
|
+
width: r,
|
|
465
|
+
height: i,
|
|
466
|
+
$: c
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
function pe(e) {
|
|
470
|
+
return R(e) ? e : e.contextElement;
|
|
471
|
+
}
|
|
472
|
+
function X(e) {
|
|
473
|
+
let t = pe(e);
|
|
474
|
+
if (!z(t)) return i(1);
|
|
475
|
+
let r = t.getBoundingClientRect(), { width: a, height: o, $: s } = fe(t), c = (s ? n(r.width) : r.width) / a, l = (s ? n(r.height) : r.height) / o;
|
|
476
|
+
return (!c || !Number.isFinite(c)) && (c = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
477
|
+
x: c,
|
|
478
|
+
y: l
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
var me = /* @__PURE__ */ i(0);
|
|
482
|
+
function he(e) {
|
|
483
|
+
let t = I(e);
|
|
484
|
+
return !W() || !t.visualViewport ? me : {
|
|
485
|
+
x: t.visualViewport.offsetLeft,
|
|
486
|
+
y: t.visualViewport.offsetTop
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
function ge(e, t, n) {
|
|
490
|
+
return t === void 0 && (t = !1), !n || t && n !== I(e) ? !1 : t;
|
|
491
|
+
}
|
|
492
|
+
function Z(e, t, n, r) {
|
|
493
|
+
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
494
|
+
let a = e.getBoundingClientRect(), o = pe(e), s = i(1);
|
|
495
|
+
t && (r ? R(r) && (s = X(r)) : s = X(e));
|
|
496
|
+
let c = ge(o, n, r) ? he(o) : i(0), l = (a.left + c.x) / s.x, u = (a.top + c.y) / s.y, d = a.width / s.x, f = a.height / s.y;
|
|
497
|
+
if (o) {
|
|
498
|
+
let e = I(o), t = r && R(r) ? I(r) : r, n = e, i = de(n);
|
|
499
|
+
for (; i && r && t !== n;) {
|
|
500
|
+
let e = X(i), t = i.getBoundingClientRect(), r = K(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
501
|
+
l *= e.x, u *= e.y, d *= e.x, f *= e.y, l += a, u += o, n = I(i), i = de(n);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
return T({
|
|
505
|
+
width: d,
|
|
506
|
+
height: f,
|
|
507
|
+
x: l,
|
|
508
|
+
y: u
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
function Q(e, t) {
|
|
512
|
+
let n = q(e).scrollLeft;
|
|
513
|
+
return t ? t.left + n : Z(L(e)).left + n;
|
|
514
|
+
}
|
|
515
|
+
function _e(e, t) {
|
|
516
|
+
let n = e.getBoundingClientRect();
|
|
517
|
+
return {
|
|
518
|
+
x: n.left + t.scrollLeft - Q(e, n),
|
|
519
|
+
y: n.top + t.scrollTop
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
function ve(e) {
|
|
523
|
+
let { elements: t, rect: n, offsetParent: r, strategy: a } = e, o = a === "fixed", s = L(r), c = t ? V(t.floating) : !1;
|
|
524
|
+
if (r === s || c && o) return n;
|
|
525
|
+
let l = {
|
|
526
|
+
scrollLeft: 0,
|
|
527
|
+
scrollTop: 0
|
|
528
|
+
}, u = i(1), d = i(0), f = z(r);
|
|
529
|
+
if ((f || !f && !o) && ((F(r) !== "body" || B(s)) && (l = q(r)), f)) {
|
|
530
|
+
let e = Z(r);
|
|
531
|
+
u = X(r), d.x = e.x + r.clientLeft, d.y = e.y + r.clientTop;
|
|
532
|
+
}
|
|
533
|
+
let p = s && !f && !o ? _e(s, l) : i(0);
|
|
534
|
+
return {
|
|
535
|
+
width: n.width * u.x,
|
|
536
|
+
height: n.height * u.y,
|
|
537
|
+
x: n.x * u.x - l.scrollLeft * u.x + d.x + p.x,
|
|
538
|
+
y: n.y * u.y - l.scrollTop * u.y + d.y + p.y
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
function ye(e) {
|
|
542
|
+
return Array.from(e.getClientRects());
|
|
543
|
+
}
|
|
544
|
+
function be(e) {
|
|
545
|
+
let n = L(e), r = q(e), i = e.ownerDocument.body, a = t(n.scrollWidth, n.clientWidth, i.scrollWidth, i.clientWidth), o = t(n.scrollHeight, n.clientHeight, i.scrollHeight, i.clientHeight), s = -r.scrollLeft + Q(e), c = -r.scrollTop;
|
|
546
|
+
return K(i).direction === "rtl" && (s += t(n.clientWidth, i.clientWidth) - a), {
|
|
547
|
+
width: a,
|
|
548
|
+
height: o,
|
|
549
|
+
x: s,
|
|
550
|
+
y: c
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
var xe = 25;
|
|
554
|
+
function Se(e, t) {
|
|
555
|
+
let n = I(e), r = L(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
556
|
+
if (i) {
|
|
557
|
+
a = i.width, o = i.height;
|
|
558
|
+
let e = W();
|
|
559
|
+
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
560
|
+
}
|
|
561
|
+
let l = Q(r);
|
|
562
|
+
if (l <= 0) {
|
|
563
|
+
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
564
|
+
o <= xe && (a -= o);
|
|
565
|
+
} else l <= xe && (a += l);
|
|
566
|
+
return {
|
|
567
|
+
width: a,
|
|
568
|
+
height: o,
|
|
569
|
+
x: s,
|
|
570
|
+
y: c
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
function Ce(e, t) {
|
|
574
|
+
let n = Z(e, !0, t === "fixed"), r = n.top + e.clientTop, a = n.left + e.clientLeft, o = z(e) ? X(e) : i(1);
|
|
575
|
+
return {
|
|
576
|
+
width: e.clientWidth * o.x,
|
|
577
|
+
height: e.clientHeight * o.y,
|
|
578
|
+
x: a * o.x,
|
|
579
|
+
y: r * o.y
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
function we(e, t, n) {
|
|
583
|
+
let r;
|
|
584
|
+
if (t === "viewport") r = Se(e, n);
|
|
585
|
+
else if (t === "document") r = be(L(e));
|
|
586
|
+
else if (R(t)) r = Ce(t, n);
|
|
587
|
+
else {
|
|
588
|
+
let n = he(e);
|
|
589
|
+
r = {
|
|
590
|
+
x: t.x - n.x,
|
|
591
|
+
y: t.y - n.y,
|
|
592
|
+
width: t.width,
|
|
593
|
+
height: t.height
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
return T(r);
|
|
597
|
+
}
|
|
598
|
+
function Te(e, t) {
|
|
599
|
+
let n = J(e);
|
|
600
|
+
return n === t || !R(n) || G(n) ? !1 : K(n).position === "fixed" || Te(n, t);
|
|
601
|
+
}
|
|
602
|
+
function Ee(e, t) {
|
|
603
|
+
let n = t.get(e);
|
|
604
|
+
if (n) return n;
|
|
605
|
+
let r = Y(e, [], !1).filter((e) => R(e) && F(e) !== "body"), i = null, a = K(e).position === "fixed", o = a ? J(e) : e;
|
|
606
|
+
for (; R(o) && !G(o);) {
|
|
607
|
+
let t = K(o), n = U(o);
|
|
608
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || B(o) && !n && Te(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = J(o);
|
|
609
|
+
}
|
|
610
|
+
return t.set(e, r), r;
|
|
611
|
+
}
|
|
612
|
+
function De(n) {
|
|
613
|
+
let { element: r, boundary: i, rootBoundary: a, strategy: o } = n, s = [...i === "clippingAncestors" ? V(r) ? [] : Ee(r, this._c) : [].concat(i), a], c = we(r, s[0], o), l = c.top, u = c.right, d = c.bottom, f = c.left;
|
|
614
|
+
for (let n = 1; n < s.length; n++) {
|
|
615
|
+
let i = we(r, s[n], o);
|
|
616
|
+
l = t(i.top, l), u = e(i.right, u), d = e(i.bottom, d), f = t(i.left, f);
|
|
617
|
+
}
|
|
618
|
+
return {
|
|
619
|
+
width: u - f,
|
|
620
|
+
height: d - l,
|
|
621
|
+
x: f,
|
|
622
|
+
y: l
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
function Oe(e) {
|
|
626
|
+
let { width: t, height: n } = fe(e);
|
|
627
|
+
return {
|
|
628
|
+
width: t,
|
|
629
|
+
height: n
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
function ke(e, t, n) {
|
|
633
|
+
let r = z(t), a = L(t), o = n === "fixed", s = Z(e, !0, o, t), c = {
|
|
634
|
+
scrollLeft: 0,
|
|
635
|
+
scrollTop: 0
|
|
636
|
+
}, l = i(0);
|
|
637
|
+
function u() {
|
|
638
|
+
l.x = Q(a);
|
|
639
|
+
}
|
|
640
|
+
if (r || !r && !o) if ((F(t) !== "body" || B(a)) && (c = q(t)), r) {
|
|
641
|
+
let e = Z(t, !0, o, t);
|
|
642
|
+
l.x = e.x + t.clientLeft, l.y = e.y + t.clientTop;
|
|
643
|
+
} else a && u();
|
|
644
|
+
o && !r && a && u();
|
|
645
|
+
let d = a && !r && !o ? _e(a, c) : i(0);
|
|
646
|
+
return {
|
|
647
|
+
x: s.left + c.scrollLeft - l.x - d.x,
|
|
648
|
+
y: s.top + c.scrollTop - l.y - d.y,
|
|
649
|
+
width: s.width,
|
|
650
|
+
height: s.height
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
function Ae(e) {
|
|
654
|
+
return K(e).position === "static";
|
|
655
|
+
}
|
|
656
|
+
function je(e, t) {
|
|
657
|
+
if (!z(e) || K(e).position === "fixed") return null;
|
|
658
|
+
if (t) return t(e);
|
|
659
|
+
let n = e.offsetParent;
|
|
660
|
+
return L(e) === n && (n = n.ownerDocument.body), n;
|
|
661
|
+
}
|
|
662
|
+
function Me(e, t) {
|
|
663
|
+
let n = I(e);
|
|
664
|
+
if (V(e)) return n;
|
|
665
|
+
if (!z(e)) {
|
|
666
|
+
let t = J(e);
|
|
667
|
+
for (; t && !G(t);) {
|
|
668
|
+
if (R(t) && !Ae(t)) return t;
|
|
669
|
+
t = J(t);
|
|
670
|
+
}
|
|
671
|
+
return n;
|
|
672
|
+
}
|
|
673
|
+
let r = je(e, t);
|
|
674
|
+
for (; r && ae(r) && Ae(r);) r = je(r, t);
|
|
675
|
+
return r && G(r) && Ae(r) && !U(r) ? n : r || le(e) || n;
|
|
676
|
+
}
|
|
677
|
+
var Ne = async function(e) {
|
|
678
|
+
let t = this.getOffsetParent || Me, n = this.getDimensions, r = await n(e.floating);
|
|
679
|
+
return {
|
|
680
|
+
reference: ke(e.reference, await t(e.floating), e.strategy),
|
|
681
|
+
floating: {
|
|
682
|
+
x: 0,
|
|
683
|
+
y: 0,
|
|
684
|
+
width: r.width,
|
|
685
|
+
height: r.height
|
|
686
|
+
}
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
function Pe(e) {
|
|
690
|
+
return K(e).direction === "rtl";
|
|
691
|
+
}
|
|
692
|
+
var Fe = {
|
|
693
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ve,
|
|
694
|
+
getDocumentElement: L,
|
|
695
|
+
getClippingRect: De,
|
|
696
|
+
getOffsetParent: Me,
|
|
697
|
+
getElementRects: Ne,
|
|
698
|
+
getClientRects: ye,
|
|
699
|
+
getDimensions: Oe,
|
|
700
|
+
getScale: X,
|
|
701
|
+
isElement: R,
|
|
702
|
+
isRTL: Pe
|
|
703
|
+
};
|
|
704
|
+
function Ie(e, t) {
|
|
705
|
+
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
706
|
+
}
|
|
707
|
+
function Le(n, i) {
|
|
708
|
+
let a = null, o, s = L(n);
|
|
709
|
+
function c() {
|
|
710
|
+
var e;
|
|
711
|
+
clearTimeout(o), (e = a) == null || e.disconnect(), a = null;
|
|
712
|
+
}
|
|
713
|
+
function l(u, d) {
|
|
714
|
+
u === void 0 && (u = !1), d === void 0 && (d = 1), c();
|
|
715
|
+
let f = n.getBoundingClientRect(), { left: p, top: m, width: h, height: g } = f;
|
|
716
|
+
if (u || i(), !h || !g) return;
|
|
717
|
+
let _ = r(m), v = r(s.clientWidth - (p + h)), y = r(s.clientHeight - (m + g)), b = r(p), x = {
|
|
718
|
+
rootMargin: -_ + "px " + -v + "px " + -y + "px " + -b + "px",
|
|
719
|
+
threshold: t(0, e(1, d)) || 1
|
|
720
|
+
}, S = !0;
|
|
721
|
+
function C(e) {
|
|
722
|
+
let t = e[0].intersectionRatio;
|
|
723
|
+
if (t !== d) {
|
|
724
|
+
if (!S) return l();
|
|
725
|
+
t ? l(!1, t) : o = setTimeout(() => {
|
|
726
|
+
l(!1, 1e-7);
|
|
727
|
+
}, 1e3);
|
|
728
|
+
}
|
|
729
|
+
t === 1 && !Ie(f, n.getBoundingClientRect()) && l(), S = !1;
|
|
730
|
+
}
|
|
731
|
+
try {
|
|
732
|
+
a = new IntersectionObserver(C, {
|
|
733
|
+
...x,
|
|
734
|
+
root: s.ownerDocument
|
|
735
|
+
});
|
|
736
|
+
} catch {
|
|
737
|
+
a = new IntersectionObserver(C, x);
|
|
738
|
+
}
|
|
739
|
+
a.observe(n);
|
|
740
|
+
}
|
|
741
|
+
return l(!0), c;
|
|
742
|
+
}
|
|
743
|
+
function Re(e, t, n, r) {
|
|
744
|
+
r === void 0 && (r = {});
|
|
745
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = pe(e), u = i || a ? [...l ? Y(l) : [], ...t ? Y(t) : []] : [];
|
|
746
|
+
u.forEach((e) => {
|
|
747
|
+
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
748
|
+
});
|
|
749
|
+
let d = l && s ? Le(l, n) : null, f = -1, p = null;
|
|
750
|
+
o && (p = new ResizeObserver((e) => {
|
|
751
|
+
let [r] = e;
|
|
752
|
+
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
753
|
+
var e;
|
|
754
|
+
(e = p) == null || e.observe(t);
|
|
755
|
+
})), n();
|
|
756
|
+
}), l && !c && p.observe(l), t && p.observe(t));
|
|
757
|
+
let m, h = c ? Z(e) : null;
|
|
758
|
+
c && g();
|
|
759
|
+
function g() {
|
|
760
|
+
let t = Z(e);
|
|
761
|
+
h && !Ie(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
762
|
+
}
|
|
763
|
+
return n(), () => {
|
|
764
|
+
var e;
|
|
765
|
+
u.forEach((e) => {
|
|
766
|
+
i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
|
|
767
|
+
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
var ze = N, Be = ne, Ve = j, He = A, Ue = (e, t, n) => {
|
|
771
|
+
let r = /* @__PURE__ */ new Map(), i = {
|
|
772
|
+
platform: Fe,
|
|
773
|
+
...n
|
|
774
|
+
}, a = {
|
|
775
|
+
...i.platform,
|
|
776
|
+
_c: r
|
|
777
|
+
};
|
|
778
|
+
return k(e, t, {
|
|
779
|
+
...i,
|
|
780
|
+
platform: a
|
|
781
|
+
});
|
|
782
|
+
}, We = [
|
|
783
|
+
"neutral",
|
|
784
|
+
"primary",
|
|
785
|
+
"inverse",
|
|
786
|
+
"always-dark",
|
|
787
|
+
"always-light"
|
|
788
|
+
], Ge = [
|
|
789
|
+
"top",
|
|
790
|
+
"right",
|
|
791
|
+
"bottom",
|
|
792
|
+
"left",
|
|
793
|
+
"top-start",
|
|
794
|
+
"top-end",
|
|
795
|
+
"right-start",
|
|
796
|
+
"right-end",
|
|
797
|
+
"bottom-start",
|
|
798
|
+
"bottom-end",
|
|
799
|
+
"left-start",
|
|
800
|
+
"left-end"
|
|
801
|
+
], Ke = {
|
|
802
|
+
neutral: "dz-tooltip--neutral",
|
|
803
|
+
primary: "dz-tooltip--primary",
|
|
804
|
+
inverse: "dz-tooltip--inverse",
|
|
805
|
+
"always-dark": "dz-tooltip--always-dark",
|
|
806
|
+
"always-light": "dz-tooltip--always-light"
|
|
807
|
+
};
|
|
808
|
+
function qe(e, t, n, r) {
|
|
809
|
+
t.style.display = "none";
|
|
810
|
+
let i;
|
|
811
|
+
function a() {
|
|
812
|
+
t.style.display = "block", i = Re(e, t, () => Je(e, t, n, r));
|
|
813
|
+
}
|
|
814
|
+
function o() {
|
|
815
|
+
t.style.display = "none", i?.();
|
|
816
|
+
}
|
|
817
|
+
return e.addEventListener("mouseenter", a), e.addEventListener("mouseleave", o), e.addEventListener("focusin", a), e.addEventListener("focusout", o), o;
|
|
818
|
+
}
|
|
819
|
+
function Je(e, t, n, r = $.placement) {
|
|
820
|
+
Ue(e, t, {
|
|
821
|
+
middleware: [
|
|
822
|
+
ze(10),
|
|
823
|
+
Ve(),
|
|
824
|
+
Be({ padding: 4 }),
|
|
825
|
+
He({ element: n })
|
|
826
|
+
],
|
|
827
|
+
placement: r
|
|
828
|
+
}).then(({ x: e, y: r, middlewareData: i, placement: a }) => {
|
|
829
|
+
Object.assign(t.style, {
|
|
830
|
+
left: `${e}px`,
|
|
831
|
+
top: `${r}px`
|
|
832
|
+
});
|
|
833
|
+
let { x: o, y: s } = i.arrow, c = {
|
|
834
|
+
top: "bottom",
|
|
835
|
+
right: "left",
|
|
836
|
+
bottom: "top",
|
|
837
|
+
left: "right"
|
|
838
|
+
}[a.split("-")[0]];
|
|
839
|
+
Object.assign(n.style, {
|
|
840
|
+
left: o == null ? "" : `${o}px`,
|
|
841
|
+
top: s == null ? "" : `${s}px`,
|
|
842
|
+
right: "",
|
|
843
|
+
bottom: "",
|
|
844
|
+
[c]: "-4px"
|
|
845
|
+
});
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
function Ye(e) {
|
|
849
|
+
return `dz-tooltip ${Ke[e]}`;
|
|
850
|
+
}
|
|
851
|
+
var $ = {
|
|
852
|
+
color: "neutral",
|
|
853
|
+
placement: "top"
|
|
854
|
+
}, Xe = {
|
|
855
|
+
id: {
|
|
856
|
+
control: "text",
|
|
857
|
+
type: {
|
|
858
|
+
required: !0,
|
|
859
|
+
name: "string"
|
|
860
|
+
},
|
|
861
|
+
description: "Unique element id"
|
|
862
|
+
},
|
|
863
|
+
content: {
|
|
864
|
+
control: "text",
|
|
865
|
+
type: {
|
|
866
|
+
required: !0,
|
|
867
|
+
name: "string"
|
|
868
|
+
},
|
|
869
|
+
description: "Text to show when tooltip appears"
|
|
870
|
+
},
|
|
871
|
+
color: {
|
|
872
|
+
options: We,
|
|
873
|
+
control: "select",
|
|
874
|
+
description: "Color of the tooltip.",
|
|
875
|
+
table: {
|
|
876
|
+
type: {
|
|
877
|
+
summary: "TooltipColor",
|
|
878
|
+
detail: We.join(" | ")
|
|
879
|
+
},
|
|
880
|
+
defaultValue: { summary: $.color }
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
placement: {
|
|
884
|
+
options: Ge,
|
|
885
|
+
control: "select",
|
|
886
|
+
description: "Placement of the tooltip.",
|
|
887
|
+
table: {
|
|
888
|
+
type: {
|
|
889
|
+
summary: "TooltipPlacement",
|
|
890
|
+
detail: Ge.join(" | ")
|
|
891
|
+
},
|
|
892
|
+
defaultValue: { summary: $.placement }
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
//#endregion
|
|
897
|
+
export { Xe as a, Ye as i, Ge as n, $ as o, qe as r, We as t };
|