@bloodhoundenterprise/doodleui 1.0.0-alpha.26 → 1.0.0-alpha.27
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/README.md +1 -1
- package/dist/doodleui.js +1317 -1263
- package/dist/index.d.ts +16 -1
- package/dist/styles.css +1 -1
- package/dist/{vendor-BhZp4gAT.js → vendor-BXoT1G6o.js} +249 -250
- package/package.json +4 -1
|
@@ -8531,136 +8531,13 @@ function uv(e, n) {
|
|
|
8531
8531
|
return e.map((t, r) => e[(n + r) % e.length]);
|
|
8532
8532
|
}
|
|
8533
8533
|
var Lb = il, $b = al, Vb = cl, Hb = ul, Wb = dl, Bb = fl, zb = hl, Gb = yl, jb = bl, Yb = Sl, Ub = xl, qb = _l, Kb = Pl, Xb = Ml;
|
|
8534
|
-
|
|
8535
|
-
active: !0,
|
|
8536
|
-
breakpoints: {},
|
|
8537
|
-
delay: 4e3,
|
|
8538
|
-
jump: !1,
|
|
8539
|
-
playOnInit: !0,
|
|
8540
|
-
stopOnFocusIn: !0,
|
|
8541
|
-
stopOnInteraction: !0,
|
|
8542
|
-
stopOnMouseEnter: !1,
|
|
8543
|
-
stopOnLastSnap: !1,
|
|
8544
|
-
rootNode: null
|
|
8545
|
-
};
|
|
8546
|
-
function fv(e, n) {
|
|
8547
|
-
const t = e.scrollSnapList();
|
|
8548
|
-
return typeof n == "number" ? t.map(() => n) : n(t, e);
|
|
8549
|
-
}
|
|
8550
|
-
function gv(e, n) {
|
|
8551
|
-
const t = e.rootNode();
|
|
8552
|
-
return n && n(t) || t;
|
|
8553
|
-
}
|
|
8554
|
-
function Tl(e = {}) {
|
|
8555
|
-
let n, t, r, o, i = null, s = 0, a = !1, l = !1, c = !1, u = !1;
|
|
8556
|
-
function d(N, W) {
|
|
8557
|
-
t = N;
|
|
8558
|
-
const {
|
|
8559
|
-
mergeOptions: k,
|
|
8560
|
-
optionsAtMedia: M
|
|
8561
|
-
} = W, _ = k(dv, Tl.globalOptions), B = k(_, e);
|
|
8562
|
-
if (n = M(B), t.scrollSnapList().length <= 1) return;
|
|
8563
|
-
u = n.jump, r = !1, o = fv(t, n.delay);
|
|
8564
|
-
const {
|
|
8565
|
-
eventStore: J,
|
|
8566
|
-
ownerDocument: Q
|
|
8567
|
-
} = t.internalEngine(), pe = !!t.internalEngine().options.watchDrag, me = gv(t, n.rootNode);
|
|
8568
|
-
J.add(Q, "visibilitychange", y), pe && t.on("pointerDown", C), pe && !n.stopOnInteraction && t.on("pointerUp", S), n.stopOnMouseEnter && J.add(me, "mouseenter", x), n.stopOnMouseEnter && !n.stopOnInteraction && J.add(me, "mouseleave", P), n.stopOnFocusIn && t.on("slideFocusStart", m), n.stopOnFocusIn && !n.stopOnInteraction && J.add(t.containerNode(), "focusout", g), n.playOnInit && g();
|
|
8569
|
-
}
|
|
8570
|
-
function f() {
|
|
8571
|
-
t.off("pointerDown", C).off("pointerUp", S).off("slideFocusStart", m), m(), r = !0, a = !1;
|
|
8572
|
-
}
|
|
8573
|
-
function p() {
|
|
8574
|
-
const {
|
|
8575
|
-
ownerWindow: N
|
|
8576
|
-
} = t.internalEngine();
|
|
8577
|
-
N.clearTimeout(s), s = N.setTimeout(T, o[t.selectedScrollSnap()]), i = (/* @__PURE__ */ new Date()).getTime(), t.emit("autoplay:timerset");
|
|
8578
|
-
}
|
|
8579
|
-
function h() {
|
|
8580
|
-
const {
|
|
8581
|
-
ownerWindow: N
|
|
8582
|
-
} = t.internalEngine();
|
|
8583
|
-
N.clearTimeout(s), s = 0, i = null, t.emit("autoplay:timerstopped");
|
|
8584
|
-
}
|
|
8585
|
-
function g() {
|
|
8586
|
-
if (!r) {
|
|
8587
|
-
if (w()) {
|
|
8588
|
-
c = !0;
|
|
8589
|
-
return;
|
|
8590
|
-
}
|
|
8591
|
-
a || t.emit("autoplay:play"), p(), a = !0;
|
|
8592
|
-
}
|
|
8593
|
-
}
|
|
8594
|
-
function m() {
|
|
8595
|
-
r || (a && t.emit("autoplay:stop"), h(), a = !1);
|
|
8596
|
-
}
|
|
8597
|
-
function y() {
|
|
8598
|
-
if (w())
|
|
8599
|
-
return c = a, m();
|
|
8600
|
-
c && g();
|
|
8601
|
-
}
|
|
8602
|
-
function w() {
|
|
8603
|
-
const {
|
|
8604
|
-
ownerDocument: N
|
|
8605
|
-
} = t.internalEngine();
|
|
8606
|
-
return N.visibilityState === "hidden";
|
|
8607
|
-
}
|
|
8608
|
-
function C() {
|
|
8609
|
-
l || m();
|
|
8610
|
-
}
|
|
8611
|
-
function S() {
|
|
8612
|
-
l || g();
|
|
8613
|
-
}
|
|
8614
|
-
function x() {
|
|
8615
|
-
l = !0, m();
|
|
8616
|
-
}
|
|
8617
|
-
function P() {
|
|
8618
|
-
l = !1, g();
|
|
8619
|
-
}
|
|
8620
|
-
function R(N) {
|
|
8621
|
-
typeof N < "u" && (u = N), g();
|
|
8622
|
-
}
|
|
8623
|
-
function E() {
|
|
8624
|
-
a && m();
|
|
8625
|
-
}
|
|
8626
|
-
function O() {
|
|
8627
|
-
a && g();
|
|
8628
|
-
}
|
|
8629
|
-
function I() {
|
|
8630
|
-
return a;
|
|
8631
|
-
}
|
|
8632
|
-
function T() {
|
|
8633
|
-
const {
|
|
8634
|
-
index: N
|
|
8635
|
-
} = t.internalEngine(), W = N.clone().add(1).get(), k = t.scrollSnapList().length - 1, M = n.stopOnLastSnap && W === k;
|
|
8636
|
-
if (t.canScrollNext() ? t.scrollNext(u) : t.scrollTo(0, u), t.emit("autoplay:select"), M) return m();
|
|
8637
|
-
g();
|
|
8638
|
-
}
|
|
8639
|
-
function A() {
|
|
8640
|
-
if (!i) return null;
|
|
8641
|
-
const N = o[t.selectedScrollSnap()], W = (/* @__PURE__ */ new Date()).getTime() - i;
|
|
8642
|
-
return N - W;
|
|
8643
|
-
}
|
|
8644
|
-
return {
|
|
8645
|
-
name: "autoplay",
|
|
8646
|
-
options: e,
|
|
8647
|
-
init: d,
|
|
8648
|
-
destroy: f,
|
|
8649
|
-
play: R,
|
|
8650
|
-
stop: E,
|
|
8651
|
-
reset: O,
|
|
8652
|
-
isPlaying: I,
|
|
8653
|
-
timeUntilNext: A
|
|
8654
|
-
};
|
|
8655
|
-
}
|
|
8656
|
-
Tl.globalOptions = void 0;
|
|
8657
|
-
function pv(e) {
|
|
8534
|
+
function dv(e) {
|
|
8658
8535
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
8659
8536
|
}
|
|
8660
8537
|
function ys(e) {
|
|
8661
|
-
return
|
|
8538
|
+
return dv(e) || Array.isArray(e);
|
|
8662
8539
|
}
|
|
8663
|
-
function
|
|
8540
|
+
function fv() {
|
|
8664
8541
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
8665
8542
|
}
|
|
8666
8543
|
function li(e, n) {
|
|
@@ -8675,7 +8552,7 @@ function li(e, n) {
|
|
|
8675
8552
|
function ws(e) {
|
|
8676
8553
|
return e.concat().sort((n, t) => n.name > t.name ? 1 : -1).map((n) => n.options);
|
|
8677
8554
|
}
|
|
8678
|
-
function
|
|
8555
|
+
function gv(e, n) {
|
|
8679
8556
|
if (e.length !== n.length) return !1;
|
|
8680
8557
|
const t = ws(e), r = ws(n);
|
|
8681
8558
|
return t.every((o, i) => {
|
|
@@ -8704,12 +8581,12 @@ function ui(e) {
|
|
|
8704
8581
|
function nn(e, n) {
|
|
8705
8582
|
return se(e - n);
|
|
8706
8583
|
}
|
|
8707
|
-
function
|
|
8584
|
+
function pv(e, n) {
|
|
8708
8585
|
if (e === 0 || n === 0 || se(e) <= se(n)) return 0;
|
|
8709
8586
|
const t = nn(se(e), se(n));
|
|
8710
8587
|
return se(t / e);
|
|
8711
8588
|
}
|
|
8712
|
-
function
|
|
8589
|
+
function mv(e) {
|
|
8713
8590
|
return Math.round(e * 100) / 100;
|
|
8714
8591
|
}
|
|
8715
8592
|
function ln(e) {
|
|
@@ -8730,16 +8607,16 @@ function Cs(e, n = 0) {
|
|
|
8730
8607
|
function cn(e) {
|
|
8731
8608
|
return Object.keys(e);
|
|
8732
8609
|
}
|
|
8733
|
-
function
|
|
8610
|
+
function Tl(e, n) {
|
|
8734
8611
|
return [e, n].reduce((t, r) => (cn(r).forEach((o) => {
|
|
8735
8612
|
const i = t[o], s = r[o], a = bs(i) && bs(s);
|
|
8736
|
-
t[o] = a ?
|
|
8613
|
+
t[o] = a ? Tl(i, s) : s;
|
|
8737
8614
|
}), t), {});
|
|
8738
8615
|
}
|
|
8739
8616
|
function po(e, n) {
|
|
8740
8617
|
return typeof n.MouseEvent < "u" && e instanceof n.MouseEvent;
|
|
8741
8618
|
}
|
|
8742
|
-
function
|
|
8619
|
+
function hv(e, n) {
|
|
8743
8620
|
const t = {
|
|
8744
8621
|
start: r,
|
|
8745
8622
|
center: o,
|
|
@@ -8784,7 +8661,7 @@ function un() {
|
|
|
8784
8661
|
};
|
|
8785
8662
|
return r;
|
|
8786
8663
|
}
|
|
8787
|
-
function
|
|
8664
|
+
function vv(e, n, t, r) {
|
|
8788
8665
|
const o = un(), i = 1e3 / 60;
|
|
8789
8666
|
let s = null, a = 0, l = 0;
|
|
8790
8667
|
function c() {
|
|
@@ -8822,7 +8699,7 @@ function bv(e, n, t, r) {
|
|
|
8822
8699
|
render: r
|
|
8823
8700
|
};
|
|
8824
8701
|
}
|
|
8825
|
-
function
|
|
8702
|
+
function yv(e, n) {
|
|
8826
8703
|
const t = n === "rtl", r = e === "y", o = r ? "y" : "x", i = r ? "x" : "y", s = !r && t ? -1 : 1, a = u(), l = d();
|
|
8827
8704
|
function c(h) {
|
|
8828
8705
|
const {
|
|
@@ -8877,7 +8754,7 @@ function St(e = 0, n = 0) {
|
|
|
8877
8754
|
removeOffset: a
|
|
8878
8755
|
};
|
|
8879
8756
|
}
|
|
8880
|
-
function
|
|
8757
|
+
function Nl(e, n, t) {
|
|
8881
8758
|
const {
|
|
8882
8759
|
constrain: r
|
|
8883
8760
|
} = St(0, e), o = e + 1;
|
|
@@ -8895,7 +8772,7 @@ function kl(e, n, t) {
|
|
|
8895
8772
|
return u().set(a() + f);
|
|
8896
8773
|
}
|
|
8897
8774
|
function u() {
|
|
8898
|
-
return
|
|
8775
|
+
return Nl(e, a(), t);
|
|
8899
8776
|
}
|
|
8900
8777
|
const d = {
|
|
8901
8778
|
get: a,
|
|
@@ -8905,7 +8782,7 @@ function kl(e, n, t) {
|
|
|
8905
8782
|
};
|
|
8906
8783
|
return d;
|
|
8907
8784
|
}
|
|
8908
|
-
function
|
|
8785
|
+
function wv(e, n, t, r, o, i, s, a, l, c, u, d, f, p, h, g, m, y, w) {
|
|
8909
8786
|
const {
|
|
8910
8787
|
cross: C,
|
|
8911
8788
|
direction: S
|
|
@@ -8960,7 +8837,7 @@ function Sv(e, n, t, r, o, i, s, a, l, c, u, d, f, p, h, g, m, y, w) {
|
|
|
8960
8837
|
de > g && (_ = !0), c.useFriction(0.3).useDuration(0.75), a.start(), o.add(S(qe)), D.preventDefault();
|
|
8961
8838
|
}
|
|
8962
8839
|
function U(D) {
|
|
8963
|
-
const te = u.byDistance(0, !1).index !== d.get(), ae = i.pointerUp(D) * ce(), de = Ee(S(ae), te), he =
|
|
8840
|
+
const te = u.byDistance(0, !1).index !== d.get(), ae = i.pointerUp(D) * ce(), de = Ee(S(ae), te), he = pv(ae, de), qe = A - 10 * he, Se = y + he / 50;
|
|
8964
8841
|
M = !1, k = !1, E.clear(), c.useDuration(qe).useFriction(Se), l.distance(de, !h), B = !1, f.emit("pointerUp");
|
|
8965
8842
|
}
|
|
8966
8843
|
function re(D) {
|
|
@@ -8975,7 +8852,7 @@ function Sv(e, n, t, r, o, i, s, a, l, c, u, d, f, p, h, g, m, y, w) {
|
|
|
8975
8852
|
pointerDown: X
|
|
8976
8853
|
};
|
|
8977
8854
|
}
|
|
8978
|
-
function
|
|
8855
|
+
function bv(e, n) {
|
|
8979
8856
|
let r, o;
|
|
8980
8857
|
function i(d) {
|
|
8981
8858
|
return d.timeStamp;
|
|
@@ -9003,7 +8880,7 @@ function xv(e, n) {
|
|
|
9003
8880
|
readPoint: s
|
|
9004
8881
|
};
|
|
9005
8882
|
}
|
|
9006
|
-
function
|
|
8883
|
+
function Cv() {
|
|
9007
8884
|
function e(t) {
|
|
9008
8885
|
const {
|
|
9009
8886
|
offsetTop: r,
|
|
@@ -9024,7 +8901,7 @@ function Rv() {
|
|
|
9024
8901
|
measure: e
|
|
9025
8902
|
};
|
|
9026
8903
|
}
|
|
9027
|
-
function
|
|
8904
|
+
function Sv(e) {
|
|
9028
8905
|
function n(r) {
|
|
9029
8906
|
return e * (r / 100);
|
|
9030
8907
|
}
|
|
@@ -9032,7 +8909,7 @@ function _v(e) {
|
|
|
9032
8909
|
measure: n
|
|
9033
8910
|
};
|
|
9034
8911
|
}
|
|
9035
|
-
function
|
|
8912
|
+
function xv(e, n, t, r, o, i, s) {
|
|
9036
8913
|
const a = [e].concat(r);
|
|
9037
8914
|
let l, c, u = [], d = !1;
|
|
9038
8915
|
function f(m) {
|
|
@@ -9065,7 +8942,7 @@ function Pv(e, n, t, r, o, i, s) {
|
|
|
9065
8942
|
destroy: h
|
|
9066
8943
|
};
|
|
9067
8944
|
}
|
|
9068
|
-
function
|
|
8945
|
+
function Rv(e, n, t, r, o, i) {
|
|
9069
8946
|
let s = 0, a = 0, l = o, c = i, u = e.get(), d = 0;
|
|
9070
8947
|
function f() {
|
|
9071
8948
|
const P = r.get() - e.get(), R = !l;
|
|
@@ -9110,7 +8987,7 @@ function Ev(e, n, t, r, o, i) {
|
|
|
9110
8987
|
};
|
|
9111
8988
|
return x;
|
|
9112
8989
|
}
|
|
9113
|
-
function
|
|
8990
|
+
function _v(e, n, t, r, o) {
|
|
9114
8991
|
const i = o.measure(10), s = o.measure(50), a = St(0.1, 0.99);
|
|
9115
8992
|
let l = !1;
|
|
9116
8993
|
function c() {
|
|
@@ -9130,7 +9007,7 @@ function Mv(e, n, t, r, o) {
|
|
|
9130
9007
|
toggleActive: d
|
|
9131
9008
|
};
|
|
9132
9009
|
}
|
|
9133
|
-
function
|
|
9010
|
+
function Pv(e, n, t, r, o) {
|
|
9134
9011
|
const i = St(-n + e, 0), s = d(), a = u(), l = f();
|
|
9135
9012
|
function c(h, g) {
|
|
9136
9013
|
return nn(h, g) <= 1;
|
|
@@ -9162,13 +9039,13 @@ function Dv(e, n, t, r, o) {
|
|
|
9162
9039
|
scrollContainLimit: a
|
|
9163
9040
|
};
|
|
9164
9041
|
}
|
|
9165
|
-
function
|
|
9042
|
+
function Ev(e, n, t) {
|
|
9166
9043
|
const r = n[0], o = t ? r - e : Ie(n);
|
|
9167
9044
|
return {
|
|
9168
9045
|
limit: St(o, r)
|
|
9169
9046
|
};
|
|
9170
9047
|
}
|
|
9171
|
-
function
|
|
9048
|
+
function Mv(e, n, t, r) {
|
|
9172
9049
|
const i = n.min + 0.1, s = n.max + 0.1, {
|
|
9173
9050
|
reachedMin: a,
|
|
9174
9051
|
reachedMax: l
|
|
@@ -9185,7 +9062,7 @@ function Av(e, n, t, r) {
|
|
|
9185
9062
|
loop: u
|
|
9186
9063
|
};
|
|
9187
9064
|
}
|
|
9188
|
-
function
|
|
9065
|
+
function Dv(e) {
|
|
9189
9066
|
const {
|
|
9190
9067
|
max: n,
|
|
9191
9068
|
length: t
|
|
@@ -9198,7 +9075,7 @@ function Iv(e) {
|
|
|
9198
9075
|
get: r
|
|
9199
9076
|
};
|
|
9200
9077
|
}
|
|
9201
|
-
function
|
|
9078
|
+
function Ov(e, n, t, r, o) {
|
|
9202
9079
|
const {
|
|
9203
9080
|
startEdge: i,
|
|
9204
9081
|
endEdge: s
|
|
@@ -9219,7 +9096,7 @@ function Tv(e, n, t, r, o) {
|
|
|
9219
9096
|
snapsAligned: u
|
|
9220
9097
|
};
|
|
9221
9098
|
}
|
|
9222
|
-
function
|
|
9099
|
+
function Av(e, n, t, r, o, i) {
|
|
9223
9100
|
const {
|
|
9224
9101
|
groupSlides: s
|
|
9225
9102
|
} = o, {
|
|
@@ -9245,7 +9122,7 @@ function Nv(e, n, t, r, o, i) {
|
|
|
9245
9122
|
slideRegistry: c
|
|
9246
9123
|
};
|
|
9247
9124
|
}
|
|
9248
|
-
function
|
|
9125
|
+
function Iv(e, n, t, r, o) {
|
|
9249
9126
|
const {
|
|
9250
9127
|
reachedAny: i,
|
|
9251
9128
|
removeOffset: s,
|
|
@@ -9301,7 +9178,7 @@ function kv(e, n, t, r, o) {
|
|
|
9301
9178
|
shortcut: u
|
|
9302
9179
|
};
|
|
9303
9180
|
}
|
|
9304
|
-
function
|
|
9181
|
+
function Tv(e, n, t, r, o, i, s) {
|
|
9305
9182
|
function a(d) {
|
|
9306
9183
|
const f = d.distance, p = d.index !== n.get();
|
|
9307
9184
|
i.add(f), f && (r.duration() ? e.start() : (e.update(), e.render(1), e.update())), p && (t.set(n.get()), n.set(d.index), s.emit("select"));
|
|
@@ -9319,7 +9196,7 @@ function Fv(e, n, t, r, o, i, s) {
|
|
|
9319
9196
|
index: c
|
|
9320
9197
|
};
|
|
9321
9198
|
}
|
|
9322
|
-
function
|
|
9199
|
+
function Nv(e, n, t, r, o, i, s, a) {
|
|
9323
9200
|
const l = {
|
|
9324
9201
|
passive: !0,
|
|
9325
9202
|
capture: !0
|
|
@@ -9370,7 +9247,7 @@ function en(e) {
|
|
|
9370
9247
|
subtract: i
|
|
9371
9248
|
};
|
|
9372
9249
|
}
|
|
9373
|
-
function
|
|
9250
|
+
function kl(e, n) {
|
|
9374
9251
|
const t = e.scroll === "x" ? s : a, r = n.style;
|
|
9375
9252
|
let o = null, i = !1;
|
|
9376
9253
|
function s(f) {
|
|
@@ -9381,7 +9258,7 @@ function Fl(e, n) {
|
|
|
9381
9258
|
}
|
|
9382
9259
|
function l(f) {
|
|
9383
9260
|
if (i) return;
|
|
9384
|
-
const p =
|
|
9261
|
+
const p = mv(e.direction(f));
|
|
9385
9262
|
p !== o && (r.transform = t(p), o = p);
|
|
9386
9263
|
}
|
|
9387
9264
|
function c(f) {
|
|
@@ -9396,7 +9273,7 @@ function Fl(e, n) {
|
|
|
9396
9273
|
toggleActive: c
|
|
9397
9274
|
};
|
|
9398
9275
|
}
|
|
9399
|
-
function
|
|
9276
|
+
function kv(e, n, t, r, o, i, s, a, l) {
|
|
9400
9277
|
const u = ln(o), d = ln(o).reverse(), f = y().concat(w());
|
|
9401
9278
|
function p(R, E) {
|
|
9402
9279
|
return R.reduce((O, I) => O - o[I], E);
|
|
@@ -9418,7 +9295,7 @@ function $v(e, n, t, r, o, i, s, a, l) {
|
|
|
9418
9295
|
index: T,
|
|
9419
9296
|
loopPoint: W,
|
|
9420
9297
|
slideLocation: en(-1),
|
|
9421
|
-
translate:
|
|
9298
|
+
translate: kl(e, l[T]),
|
|
9422
9299
|
target: () => a.get() > W ? A : H
|
|
9423
9300
|
};
|
|
9424
9301
|
});
|
|
@@ -9459,7 +9336,7 @@ function $v(e, n, t, r, o, i, s, a, l) {
|
|
|
9459
9336
|
loopPoints: f
|
|
9460
9337
|
};
|
|
9461
9338
|
}
|
|
9462
|
-
function
|
|
9339
|
+
function Fv(e, n, t) {
|
|
9463
9340
|
let r, o = !1;
|
|
9464
9341
|
function i(l) {
|
|
9465
9342
|
if (!t) return;
|
|
@@ -9484,7 +9361,7 @@ function Vv(e, n, t) {
|
|
|
9484
9361
|
destroy: s
|
|
9485
9362
|
};
|
|
9486
9363
|
}
|
|
9487
|
-
function
|
|
9364
|
+
function Lv(e, n, t, r) {
|
|
9488
9365
|
const o = {};
|
|
9489
9366
|
let i = null, s = null, a, l = !1;
|
|
9490
9367
|
function c() {
|
|
@@ -9521,7 +9398,7 @@ function Hv(e, n, t, r) {
|
|
|
9521
9398
|
get: f
|
|
9522
9399
|
};
|
|
9523
9400
|
}
|
|
9524
|
-
function
|
|
9401
|
+
function $v(e, n, t, r, o, i) {
|
|
9525
9402
|
const {
|
|
9526
9403
|
measureSize: s,
|
|
9527
9404
|
startEdge: a,
|
|
@@ -9550,7 +9427,7 @@ function Wv(e, n, t, r, o, i) {
|
|
|
9550
9427
|
endGap: d
|
|
9551
9428
|
};
|
|
9552
9429
|
}
|
|
9553
|
-
function
|
|
9430
|
+
function Vv(e, n, t, r, o, i, s, a, l) {
|
|
9554
9431
|
const {
|
|
9555
9432
|
startEdge: c,
|
|
9556
9433
|
endEdge: u,
|
|
@@ -9575,7 +9452,7 @@ function Bv(e, n, t, r, o, i, s, a, l) {
|
|
|
9575
9452
|
groupSlides: g
|
|
9576
9453
|
};
|
|
9577
9454
|
}
|
|
9578
|
-
function
|
|
9455
|
+
function Hv(e, n, t, r, o, i, s) {
|
|
9579
9456
|
const {
|
|
9580
9457
|
align: a,
|
|
9581
9458
|
axis: l,
|
|
@@ -9593,20 +9470,20 @@ function zv(e, n, t, r, o, i, s) {
|
|
|
9593
9470
|
watchSlides: S,
|
|
9594
9471
|
watchDrag: x,
|
|
9595
9472
|
watchFocus: P
|
|
9596
|
-
} = i, R = 2, E =
|
|
9473
|
+
} = i, R = 2, E = Cv(), O = E.measure(n), I = t.map(E.measure), T = yv(l, c), A = T.measureSize(O), H = Sv(A), N = hv(a, A), W = !d && !!w, k = d || !!w, {
|
|
9597
9474
|
slideSizes: M,
|
|
9598
9475
|
slideSizesWithGaps: _,
|
|
9599
9476
|
startGap: B,
|
|
9600
9477
|
endGap: J
|
|
9601
|
-
} =
|
|
9478
|
+
} = $v(T, O, I, t, k, o), Q = Vv(T, A, m, d, O, I, B, J, R), {
|
|
9602
9479
|
snaps: pe,
|
|
9603
9480
|
snapsAligned: me
|
|
9604
|
-
} =
|
|
9481
|
+
} = Ov(T, N, O, I, Q), ce = -Ie(pe) + Ie(_), {
|
|
9605
9482
|
snapsContained: Ee,
|
|
9606
9483
|
scrollContainLimit: Ce
|
|
9607
|
-
} =
|
|
9484
|
+
} = Pv(A, ce, me, w, R), F = W ? Ee : me, {
|
|
9608
9485
|
limit: U
|
|
9609
|
-
} =
|
|
9486
|
+
} = Ev(ce, F, d), re = Nl(wn(F), u, d), X = re.clone(), L = ln(t), D = ({
|
|
9610
9487
|
dragHandler: Mt,
|
|
9611
9488
|
scrollBody: Cr,
|
|
9612
9489
|
scrollBounds: Sr,
|
|
@@ -9635,9 +9512,9 @@ function zv(e, n, t, r, o, i, s) {
|
|
|
9635
9512
|
Ni && hu.stop();
|
|
9636
9513
|
const wu = Sr.get() * Ai + fu.get() * (1 - Ai);
|
|
9637
9514
|
xn.set(wu), Oi && (gu.loop(Mt.direction()), pu.loop()), Cr.to(xn.get()), Ni && Di.emit("settle"), Ti || Di.emit("scroll");
|
|
9638
|
-
}, te =
|
|
9515
|
+
}, te = vv(r, o, () => D(br), (Mt) => K(br, Mt)), ae = 0.68, de = F[re.get()], he = en(de), qe = en(de), Se = en(de), pt = en(de), Ut = Rv(he, Se, qe, pt, f, ae), yr = Iv(d, F, ce, U, pt), wr = Tv(te, re, X, Ut, yr, pt, s), Pi = Dv(U), Ei = un(), uu = Lv(n, t, s, g), {
|
|
9639
9516
|
slideRegistry: Mi
|
|
9640
|
-
} =
|
|
9517
|
+
} = Av(W, w, F, Ce, Q, L), du = Nv(e, t, Mi, wr, Ut, Ei, s, P), br = {
|
|
9641
9518
|
ownerDocument: r,
|
|
9642
9519
|
ownerWindow: o,
|
|
9643
9520
|
eventHandler: s,
|
|
@@ -9645,7 +9522,7 @@ function zv(e, n, t, r, o, i, s) {
|
|
|
9645
9522
|
slideRects: I,
|
|
9646
9523
|
animation: te,
|
|
9647
9524
|
axis: T,
|
|
9648
|
-
dragHandler:
|
|
9525
|
+
dragHandler: wv(T, e, r, o, pt, bv(T, o), he, te, wr, Ut, yr, re, s, H, p, h, y, ae, x),
|
|
9649
9526
|
eventStore: Ei,
|
|
9650
9527
|
percentOfView: H,
|
|
9651
9528
|
index: re,
|
|
@@ -9655,28 +9532,28 @@ function zv(e, n, t, r, o, i, s) {
|
|
|
9655
9532
|
offsetLocation: Se,
|
|
9656
9533
|
previousLocation: qe,
|
|
9657
9534
|
options: i,
|
|
9658
|
-
resizeHandler:
|
|
9535
|
+
resizeHandler: xv(n, s, o, t, T, C, E),
|
|
9659
9536
|
scrollBody: Ut,
|
|
9660
|
-
scrollBounds:
|
|
9661
|
-
scrollLooper:
|
|
9537
|
+
scrollBounds: _v(U, Se, pt, Ut, H),
|
|
9538
|
+
scrollLooper: Mv(ce, U, Se, [he, Se, qe, pt]),
|
|
9662
9539
|
scrollProgress: Pi,
|
|
9663
9540
|
scrollSnapList: F.map(Pi.get),
|
|
9664
9541
|
scrollSnaps: F,
|
|
9665
9542
|
scrollTarget: yr,
|
|
9666
9543
|
scrollTo: wr,
|
|
9667
|
-
slideLooper:
|
|
9544
|
+
slideLooper: kv(T, A, ce, M, _, pe, F, Se, t),
|
|
9668
9545
|
slideFocus: du,
|
|
9669
|
-
slidesHandler:
|
|
9546
|
+
slidesHandler: Fv(n, s, S),
|
|
9670
9547
|
slidesInView: uu,
|
|
9671
9548
|
slideIndexes: L,
|
|
9672
9549
|
slideRegistry: Mi,
|
|
9673
9550
|
slidesToScroll: Q,
|
|
9674
9551
|
target: pt,
|
|
9675
|
-
translate:
|
|
9552
|
+
translate: kl(T, n)
|
|
9676
9553
|
};
|
|
9677
9554
|
return br;
|
|
9678
9555
|
}
|
|
9679
|
-
function
|
|
9556
|
+
function Wv() {
|
|
9680
9557
|
let e = {}, n;
|
|
9681
9558
|
function t(c) {
|
|
9682
9559
|
n = c;
|
|
@@ -9705,7 +9582,7 @@ function Gv() {
|
|
|
9705
9582
|
};
|
|
9706
9583
|
return l;
|
|
9707
9584
|
}
|
|
9708
|
-
const
|
|
9585
|
+
const Bv = {
|
|
9709
9586
|
align: "center",
|
|
9710
9587
|
axis: "x",
|
|
9711
9588
|
container: null,
|
|
@@ -9727,9 +9604,9 @@ const jv = {
|
|
|
9727
9604
|
watchSlides: !0,
|
|
9728
9605
|
watchFocus: !0
|
|
9729
9606
|
};
|
|
9730
|
-
function
|
|
9607
|
+
function zv(e) {
|
|
9731
9608
|
function n(i, s) {
|
|
9732
|
-
return
|
|
9609
|
+
return Tl(i, s || {});
|
|
9733
9610
|
}
|
|
9734
9611
|
function t(i) {
|
|
9735
9612
|
const s = i.breakpoints || {}, a = cn(s).filter((l) => e.matchMedia(l).matches).map((l) => s[l]).reduce((l, c) => n(l, c), {});
|
|
@@ -9744,7 +9621,7 @@ function Yv(e) {
|
|
|
9744
9621
|
optionsMediaQueries: r
|
|
9745
9622
|
};
|
|
9746
9623
|
}
|
|
9747
|
-
function
|
|
9624
|
+
function Gv(e) {
|
|
9748
9625
|
let n = [];
|
|
9749
9626
|
function t(i, s) {
|
|
9750
9627
|
return n = s.filter(({
|
|
@@ -9762,7 +9639,7 @@ function Uv(e) {
|
|
|
9762
9639
|
};
|
|
9763
9640
|
}
|
|
9764
9641
|
function jn(e, n, t) {
|
|
9765
|
-
const r = e.ownerDocument, o = r.defaultView, i =
|
|
9642
|
+
const r = e.ownerDocument, o = r.defaultView, i = zv(o), s = Gv(i), a = un(), l = Wv(), {
|
|
9766
9643
|
mergeOptions: c,
|
|
9767
9644
|
optionsAtMedia: u,
|
|
9768
9645
|
optionsMediaQueries: d
|
|
@@ -9771,7 +9648,7 @@ function jn(e, n, t) {
|
|
|
9771
9648
|
off: p,
|
|
9772
9649
|
emit: h
|
|
9773
9650
|
} = l, g = T;
|
|
9774
|
-
let m = !1, y, w = c(
|
|
9651
|
+
let m = !1, y, w = c(Bv, jn.globalOptions), C = c(w), S = [], x, P, R;
|
|
9775
9652
|
function E() {
|
|
9776
9653
|
const {
|
|
9777
9654
|
container: L,
|
|
@@ -9782,7 +9659,7 @@ function jn(e, n, t) {
|
|
|
9782
9659
|
R = [].slice.call(te || P.children);
|
|
9783
9660
|
}
|
|
9784
9661
|
function O(L) {
|
|
9785
|
-
const D =
|
|
9662
|
+
const D = Hv(e, P, R, r, o, L, l);
|
|
9786
9663
|
if (L.loop && !D.slideLooper.canLoop()) {
|
|
9787
9664
|
const K = Object.assign({}, L, {
|
|
9788
9665
|
loop: !1
|
|
@@ -9884,23 +9761,146 @@ function jn(e, n, t) {
|
|
|
9884
9761
|
return I(n, t), setTimeout(() => l.emit("init"), 0), X;
|
|
9885
9762
|
}
|
|
9886
9763
|
jn.globalOptions = void 0;
|
|
9887
|
-
function
|
|
9764
|
+
function Fl(e = {}, n = []) {
|
|
9888
9765
|
const t = Qr(e), r = Qr(n), [o, i] = st(), [s, a] = st(), l = bu(() => {
|
|
9889
9766
|
o && o.reInit(t.current, r.current);
|
|
9890
9767
|
}, [o]);
|
|
9891
9768
|
return ht(() => {
|
|
9892
9769
|
li(t.current, e) || (t.current = e, l());
|
|
9893
9770
|
}, [e, l]), ht(() => {
|
|
9894
|
-
|
|
9771
|
+
gv(r.current, n) || (r.current = n, l());
|
|
9895
9772
|
}, [n, l]), ht(() => {
|
|
9896
|
-
if (
|
|
9897
|
-
jn.globalOptions =
|
|
9773
|
+
if (fv() && s) {
|
|
9774
|
+
jn.globalOptions = Fl.globalOptions;
|
|
9898
9775
|
const c = jn(s, t.current, r.current);
|
|
9899
9776
|
return i(c), () => c.destroy();
|
|
9900
9777
|
} else
|
|
9901
9778
|
i(void 0);
|
|
9902
9779
|
}, [s, i]), [a, o];
|
|
9903
9780
|
}
|
|
9781
|
+
Fl.globalOptions = void 0;
|
|
9782
|
+
const jv = {
|
|
9783
|
+
active: !0,
|
|
9784
|
+
breakpoints: {},
|
|
9785
|
+
delay: 4e3,
|
|
9786
|
+
jump: !1,
|
|
9787
|
+
playOnInit: !0,
|
|
9788
|
+
stopOnFocusIn: !0,
|
|
9789
|
+
stopOnInteraction: !0,
|
|
9790
|
+
stopOnMouseEnter: !1,
|
|
9791
|
+
stopOnLastSnap: !1,
|
|
9792
|
+
rootNode: null
|
|
9793
|
+
};
|
|
9794
|
+
function Yv(e, n) {
|
|
9795
|
+
const t = e.scrollSnapList();
|
|
9796
|
+
return typeof n == "number" ? t.map(() => n) : n(t, e);
|
|
9797
|
+
}
|
|
9798
|
+
function Uv(e, n) {
|
|
9799
|
+
const t = e.rootNode();
|
|
9800
|
+
return n && n(t) || t;
|
|
9801
|
+
}
|
|
9802
|
+
function Ll(e = {}) {
|
|
9803
|
+
let n, t, r, o, i = null, s = 0, a = !1, l = !1, c = !1, u = !1;
|
|
9804
|
+
function d(N, W) {
|
|
9805
|
+
t = N;
|
|
9806
|
+
const {
|
|
9807
|
+
mergeOptions: k,
|
|
9808
|
+
optionsAtMedia: M
|
|
9809
|
+
} = W, _ = k(jv, Ll.globalOptions), B = k(_, e);
|
|
9810
|
+
if (n = M(B), t.scrollSnapList().length <= 1) return;
|
|
9811
|
+
u = n.jump, r = !1, o = Yv(t, n.delay);
|
|
9812
|
+
const {
|
|
9813
|
+
eventStore: J,
|
|
9814
|
+
ownerDocument: Q
|
|
9815
|
+
} = t.internalEngine(), pe = !!t.internalEngine().options.watchDrag, me = Uv(t, n.rootNode);
|
|
9816
|
+
J.add(Q, "visibilitychange", y), pe && t.on("pointerDown", C), pe && !n.stopOnInteraction && t.on("pointerUp", S), n.stopOnMouseEnter && J.add(me, "mouseenter", x), n.stopOnMouseEnter && !n.stopOnInteraction && J.add(me, "mouseleave", P), n.stopOnFocusIn && t.on("slideFocusStart", m), n.stopOnFocusIn && !n.stopOnInteraction && J.add(t.containerNode(), "focusout", g), n.playOnInit && g();
|
|
9817
|
+
}
|
|
9818
|
+
function f() {
|
|
9819
|
+
t.off("pointerDown", C).off("pointerUp", S).off("slideFocusStart", m), m(), r = !0, a = !1;
|
|
9820
|
+
}
|
|
9821
|
+
function p() {
|
|
9822
|
+
const {
|
|
9823
|
+
ownerWindow: N
|
|
9824
|
+
} = t.internalEngine();
|
|
9825
|
+
N.clearTimeout(s), s = N.setTimeout(T, o[t.selectedScrollSnap()]), i = (/* @__PURE__ */ new Date()).getTime(), t.emit("autoplay:timerset");
|
|
9826
|
+
}
|
|
9827
|
+
function h() {
|
|
9828
|
+
const {
|
|
9829
|
+
ownerWindow: N
|
|
9830
|
+
} = t.internalEngine();
|
|
9831
|
+
N.clearTimeout(s), s = 0, i = null, t.emit("autoplay:timerstopped");
|
|
9832
|
+
}
|
|
9833
|
+
function g() {
|
|
9834
|
+
if (!r) {
|
|
9835
|
+
if (w()) {
|
|
9836
|
+
c = !0;
|
|
9837
|
+
return;
|
|
9838
|
+
}
|
|
9839
|
+
a || t.emit("autoplay:play"), p(), a = !0;
|
|
9840
|
+
}
|
|
9841
|
+
}
|
|
9842
|
+
function m() {
|
|
9843
|
+
r || (a && t.emit("autoplay:stop"), h(), a = !1);
|
|
9844
|
+
}
|
|
9845
|
+
function y() {
|
|
9846
|
+
if (w())
|
|
9847
|
+
return c = a, m();
|
|
9848
|
+
c && g();
|
|
9849
|
+
}
|
|
9850
|
+
function w() {
|
|
9851
|
+
const {
|
|
9852
|
+
ownerDocument: N
|
|
9853
|
+
} = t.internalEngine();
|
|
9854
|
+
return N.visibilityState === "hidden";
|
|
9855
|
+
}
|
|
9856
|
+
function C() {
|
|
9857
|
+
l || m();
|
|
9858
|
+
}
|
|
9859
|
+
function S() {
|
|
9860
|
+
l || g();
|
|
9861
|
+
}
|
|
9862
|
+
function x() {
|
|
9863
|
+
l = !0, m();
|
|
9864
|
+
}
|
|
9865
|
+
function P() {
|
|
9866
|
+
l = !1, g();
|
|
9867
|
+
}
|
|
9868
|
+
function R(N) {
|
|
9869
|
+
typeof N < "u" && (u = N), g();
|
|
9870
|
+
}
|
|
9871
|
+
function E() {
|
|
9872
|
+
a && m();
|
|
9873
|
+
}
|
|
9874
|
+
function O() {
|
|
9875
|
+
a && g();
|
|
9876
|
+
}
|
|
9877
|
+
function I() {
|
|
9878
|
+
return a;
|
|
9879
|
+
}
|
|
9880
|
+
function T() {
|
|
9881
|
+
const {
|
|
9882
|
+
index: N
|
|
9883
|
+
} = t.internalEngine(), W = N.clone().add(1).get(), k = t.scrollSnapList().length - 1, M = n.stopOnLastSnap && W === k;
|
|
9884
|
+
if (t.canScrollNext() ? t.scrollNext(u) : t.scrollTo(0, u), t.emit("autoplay:select"), M) return m();
|
|
9885
|
+
g();
|
|
9886
|
+
}
|
|
9887
|
+
function A() {
|
|
9888
|
+
if (!i) return null;
|
|
9889
|
+
const N = o[t.selectedScrollSnap()], W = (/* @__PURE__ */ new Date()).getTime() - i;
|
|
9890
|
+
return N - W;
|
|
9891
|
+
}
|
|
9892
|
+
return {
|
|
9893
|
+
name: "autoplay",
|
|
9894
|
+
options: e,
|
|
9895
|
+
init: d,
|
|
9896
|
+
destroy: f,
|
|
9897
|
+
play: R,
|
|
9898
|
+
stop: E,
|
|
9899
|
+
reset: O,
|
|
9900
|
+
isPlaying: I,
|
|
9901
|
+
timeUntilNext: A
|
|
9902
|
+
};
|
|
9903
|
+
}
|
|
9904
9904
|
Ll.globalOptions = void 0;
|
|
9905
9905
|
var ur = "Checkbox", [qv, Qb] = Oe(ur), [Kv, fi] = qv(ur);
|
|
9906
9906
|
function Xv(e) {
|
|
@@ -12379,7 +12379,10 @@ function nC(e) {
|
|
|
12379
12379
|
...e
|
|
12380
12380
|
});
|
|
12381
12381
|
}
|
|
12382
|
-
|
|
12382
|
+
function ew(e) {
|
|
12383
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
12384
|
+
}
|
|
12385
|
+
var fr = "Dialog", [ec, rC] = Oe(fr), [tw, He] = ec(fr), tc = (e) => {
|
|
12383
12386
|
const {
|
|
12384
12387
|
__scopeDialog: n,
|
|
12385
12388
|
children: t,
|
|
@@ -12394,7 +12397,7 @@ var fr = "Dialog", [ec, rC] = Oe(fr), [ew, He] = ec(fr), tc = (e) => {
|
|
|
12394
12397
|
caller: fr
|
|
12395
12398
|
});
|
|
12396
12399
|
return /* @__PURE__ */ b(
|
|
12397
|
-
|
|
12400
|
+
tw,
|
|
12398
12401
|
{
|
|
12399
12402
|
scope: n,
|
|
12400
12403
|
triggerRef: a,
|
|
@@ -12430,27 +12433,27 @@ var nc = "DialogTrigger", rc = v.forwardRef(
|
|
|
12430
12433
|
}
|
|
12431
12434
|
);
|
|
12432
12435
|
rc.displayName = nc;
|
|
12433
|
-
var hi = "DialogPortal", [
|
|
12436
|
+
var hi = "DialogPortal", [nw, oc] = ec(hi, {
|
|
12434
12437
|
forceMount: void 0
|
|
12435
12438
|
}), ic = (e) => {
|
|
12436
12439
|
const { __scopeDialog: n, forceMount: t, children: r, container: o } = e, i = He(hi, n);
|
|
12437
|
-
return /* @__PURE__ */ b(
|
|
12440
|
+
return /* @__PURE__ */ b(nw, { scope: n, forceMount: t, children: v.Children.map(r, (s) => /* @__PURE__ */ b($e, { present: t || i.open, children: /* @__PURE__ */ b(yn, { asChild: !0, container: o, children: s }) })) });
|
|
12438
12441
|
};
|
|
12439
12442
|
ic.displayName = hi;
|
|
12440
12443
|
var Yn = "DialogOverlay", sc = v.forwardRef(
|
|
12441
12444
|
(e, n) => {
|
|
12442
12445
|
const t = oc(Yn, e.__scopeDialog), { forceMount: r = t.forceMount, ...o } = e, i = He(Yn, e.__scopeDialog);
|
|
12443
|
-
return i.modal ? /* @__PURE__ */ b($e, { present: r || i.open, children: /* @__PURE__ */ b(
|
|
12446
|
+
return i.modal ? /* @__PURE__ */ b($e, { present: r || i.open, children: /* @__PURE__ */ b(ow, { ...o, ref: n }) }) : null;
|
|
12444
12447
|
}
|
|
12445
12448
|
);
|
|
12446
12449
|
sc.displayName = Yn;
|
|
12447
|
-
var
|
|
12450
|
+
var rw = /* @__PURE__ */ vt("DialogOverlay.RemoveScroll"), ow = v.forwardRef(
|
|
12448
12451
|
(e, n) => {
|
|
12449
12452
|
const { __scopeDialog: t, ...r } = e, o = He(Yn, t);
|
|
12450
12453
|
return (
|
|
12451
12454
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
12452
12455
|
// ie. when `Overlay` and `Content` are siblings
|
|
12453
|
-
/* @__PURE__ */ b(ir, { as:
|
|
12456
|
+
/* @__PURE__ */ b(ir, { as: rw, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ b(
|
|
12454
12457
|
Y.div,
|
|
12455
12458
|
{
|
|
12456
12459
|
"data-state": yi(o.open),
|
|
@@ -12464,11 +12467,11 @@ var nw = /* @__PURE__ */ vt("DialogOverlay.RemoveScroll"), rw = v.forwardRef(
|
|
|
12464
12467
|
), xt = "DialogContent", ac = v.forwardRef(
|
|
12465
12468
|
(e, n) => {
|
|
12466
12469
|
const t = oc(xt, e.__scopeDialog), { forceMount: r = t.forceMount, ...o } = e, i = He(xt, e.__scopeDialog);
|
|
12467
|
-
return /* @__PURE__ */ b($e, { present: r || i.open, children: i.modal ? /* @__PURE__ */ b(
|
|
12470
|
+
return /* @__PURE__ */ b($e, { present: r || i.open, children: i.modal ? /* @__PURE__ */ b(iw, { ...o, ref: n }) : /* @__PURE__ */ b(sw, { ...o, ref: n }) });
|
|
12468
12471
|
}
|
|
12469
12472
|
);
|
|
12470
12473
|
ac.displayName = xt;
|
|
12471
|
-
var
|
|
12474
|
+
var iw = v.forwardRef(
|
|
12472
12475
|
(e, n) => {
|
|
12473
12476
|
const t = He(xt, e.__scopeDialog), r = v.useRef(null), o = ee(n, t.contentRef, r);
|
|
12474
12477
|
return v.useEffect(() => {
|
|
@@ -12496,7 +12499,7 @@ var ow = v.forwardRef(
|
|
|
12496
12499
|
}
|
|
12497
12500
|
);
|
|
12498
12501
|
}
|
|
12499
|
-
),
|
|
12502
|
+
), sw = v.forwardRef(
|
|
12500
12503
|
(e, n) => {
|
|
12501
12504
|
const t = He(xt, e.__scopeDialog), r = v.useRef(!1), o = v.useRef(!1);
|
|
12502
12505
|
return /* @__PURE__ */ b(
|
|
@@ -12547,8 +12550,8 @@ var ow = v.forwardRef(
|
|
|
12547
12550
|
}
|
|
12548
12551
|
),
|
|
12549
12552
|
/* @__PURE__ */ le(ge, { children: [
|
|
12550
|
-
/* @__PURE__ */ b(
|
|
12551
|
-
/* @__PURE__ */ b(
|
|
12553
|
+
/* @__PURE__ */ b(aw, { titleId: a.titleId }),
|
|
12554
|
+
/* @__PURE__ */ b(cw, { contentRef: l, descriptionId: a.descriptionId })
|
|
12552
12555
|
] })
|
|
12553
12556
|
] });
|
|
12554
12557
|
}
|
|
@@ -12588,7 +12591,7 @@ var pc = "DialogTitleWarning", [oC, mc] = xu(pc, {
|
|
|
12588
12591
|
contentName: xt,
|
|
12589
12592
|
titleName: vi,
|
|
12590
12593
|
docsSlug: "dialog"
|
|
12591
|
-
}),
|
|
12594
|
+
}), aw = ({ titleId: e }) => {
|
|
12592
12595
|
const n = mc(pc), t = `\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
12593
12596
|
|
|
12594
12597
|
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -12597,26 +12600,26 @@ For more information, see https://radix-ui.com/primitives/docs/components/${n.do
|
|
|
12597
12600
|
return v.useEffect(() => {
|
|
12598
12601
|
e && (document.getElementById(e) || console.error(t));
|
|
12599
12602
|
}, [t, e]), null;
|
|
12600
|
-
},
|
|
12601
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mc(
|
|
12603
|
+
}, lw = "DialogDescriptionWarning", cw = ({ contentRef: e, descriptionId: n }) => {
|
|
12604
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mc(lw).contentName}}.`;
|
|
12602
12605
|
return v.useEffect(() => {
|
|
12603
12606
|
var i;
|
|
12604
12607
|
const o = (i = e.current) == null ? void 0 : i.getAttribute("aria-describedby");
|
|
12605
12608
|
n && o && (document.getElementById(n) || console.warn(r));
|
|
12606
12609
|
}, [r, e, n]), null;
|
|
12607
|
-
}, iC = tc, sC = rc, aC = ic, lC = sc, cC = ac, uC = cc, dC = dc, fC = gc,
|
|
12610
|
+
}, iC = tc, sC = rc, aC = ic, lC = sc, cC = ac, uC = cc, dC = dc, fC = gc, uw = (e) => e.type === "checkbox", tn = (e) => e instanceof Date, wi = (e) => e == null;
|
|
12608
12611
|
const hc = (e) => typeof e == "object";
|
|
12609
|
-
var Rt = (e) => !wi(e) && !Array.isArray(e) && hc(e) && !tn(e),
|
|
12612
|
+
var Rt = (e) => !wi(e) && !Array.isArray(e) && hc(e) && !tn(e), dw = (e) => Rt(e) && e.target ? uw(e.target) ? e.target.checked : e.target.value : e, fw = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, gw = (e, n) => e.has(fw(n)), pw = (e) => {
|
|
12610
12613
|
const n = e.constructor && e.constructor.prototype;
|
|
12611
12614
|
return Rt(n) && n.hasOwnProperty("isPrototypeOf");
|
|
12612
|
-
},
|
|
12615
|
+
}, mw = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
12613
12616
|
function vc(e) {
|
|
12614
12617
|
let n;
|
|
12615
12618
|
const t = Array.isArray(e), r = typeof FileList < "u" ? e instanceof FileList : !1;
|
|
12616
12619
|
if (e instanceof Date)
|
|
12617
12620
|
n = new Date(e);
|
|
12618
|
-
else if (!(
|
|
12619
|
-
if (n = t ? [] :
|
|
12621
|
+
else if (!(mw && (e instanceof Blob || r)) && (t || Rt(e)))
|
|
12622
|
+
if (n = t ? [] : {}, !t && !pw(e))
|
|
12620
12623
|
n = e;
|
|
12621
12624
|
else
|
|
12622
12625
|
for (const o in e)
|
|
@@ -12625,7 +12628,7 @@ function vc(e) {
|
|
|
12625
12628
|
return e;
|
|
12626
12629
|
return n;
|
|
12627
12630
|
}
|
|
12628
|
-
var yc = (e) => /^\w*$/.test(e), bo = (e) => e === void 0,
|
|
12631
|
+
var yc = (e) => /^\w*$/.test(e), bo = (e) => e === void 0, hw = (e) => Array.isArray(e) ? e.filter(Boolean) : [], wc = (e) => hw(e.replace(/["|']|\]/g, "").split(/\.|\[/)), ye = (e, n, t) => {
|
|
12629
12632
|
if (!n || !Rt(e))
|
|
12630
12633
|
return t;
|
|
12631
12634
|
const r = (yc(n) ? [n] : wc(n)).reduce((o, i) => wi(o) ? o : o[i], e);
|
|
@@ -12656,7 +12659,7 @@ const Ci = () => j.useContext(bi), gC = (e) => {
|
|
|
12656
12659
|
const { children: n, ...t } = e;
|
|
12657
12660
|
return j.createElement(bi.Provider, { value: t }, n);
|
|
12658
12661
|
};
|
|
12659
|
-
var
|
|
12662
|
+
var vw = (e, n, t, r = !0) => {
|
|
12660
12663
|
const o = {
|
|
12661
12664
|
defaultValues: n._defaultValues
|
|
12662
12665
|
};
|
|
@@ -12670,7 +12673,7 @@ var hw = (e, n, t, r = !0) => {
|
|
|
12670
12673
|
return o;
|
|
12671
12674
|
};
|
|
12672
12675
|
const bc = typeof window < "u" ? j.useLayoutEffect : j.useEffect;
|
|
12673
|
-
function
|
|
12676
|
+
function yw(e) {
|
|
12674
12677
|
const n = Ci(), { control: t = n.control, disabled: r, name: o, exact: i } = e || {}, [s, a] = j.useState(t._formState), l = j.useRef({
|
|
12675
12678
|
isDirty: !1,
|
|
12676
12679
|
isLoading: !1,
|
|
@@ -12693,9 +12696,9 @@ function vw(e) {
|
|
|
12693
12696
|
}
|
|
12694
12697
|
}), [o, r, i]), j.useEffect(() => {
|
|
12695
12698
|
l.current.isValid && t._setValid(!0);
|
|
12696
|
-
}, [t]), j.useMemo(() =>
|
|
12699
|
+
}, [t]), j.useMemo(() => vw(s, t, l.current, !1), [s, t]);
|
|
12697
12700
|
}
|
|
12698
|
-
var
|
|
12701
|
+
var ww = (e) => typeof e == "string", bw = (e, n, t, r, o) => ww(e) ? ye(t, e, o) : Array.isArray(e) ? e.map((i) => ye(t, i)) : t, Is = (e) => wi(e) || !hc(e);
|
|
12699
12702
|
function Cc(e, n, t = /* @__PURE__ */ new WeakSet()) {
|
|
12700
12703
|
if (Is(e) || Is(n))
|
|
12701
12704
|
return e === n;
|
|
@@ -12719,7 +12722,7 @@ function Cc(e, n, t = /* @__PURE__ */ new WeakSet()) {
|
|
|
12719
12722
|
}
|
|
12720
12723
|
return !0;
|
|
12721
12724
|
}
|
|
12722
|
-
function
|
|
12725
|
+
function Cw(e) {
|
|
12723
12726
|
const n = Ci(), { control: t = n.control, name: r, defaultValue: o, disabled: i, exact: s, compute: a } = e || {}, l = j.useRef(o), c = j.useRef(a), u = j.useRef(void 0);
|
|
12724
12727
|
c.current = a;
|
|
12725
12728
|
const d = j.useMemo(() => t._getWatch(r, l.current), [t, r]), [f, p] = j.useState(c.current ? c.current(d) : d);
|
|
@@ -12731,7 +12734,7 @@ function bw(e) {
|
|
|
12731
12734
|
exact: s,
|
|
12732
12735
|
callback: (h) => {
|
|
12733
12736
|
if (!i) {
|
|
12734
|
-
const g =
|
|
12737
|
+
const g = bw(r, t._names, h.values || t._formValues, !1, l.current);
|
|
12735
12738
|
if (c.current) {
|
|
12736
12739
|
const m = c.current(g);
|
|
12737
12740
|
Cc(m, u.current) || (p(m), u.current = m);
|
|
@@ -12741,13 +12744,13 @@ function bw(e) {
|
|
|
12741
12744
|
}
|
|
12742
12745
|
}), [t, i, r, s]), j.useEffect(() => t._removeUnmounted()), f;
|
|
12743
12746
|
}
|
|
12744
|
-
function
|
|
12745
|
-
const n = Ci(), { name: t, disabled: r, control: o = n.control, shouldUnregister: i, defaultValue: s } = e, a =
|
|
12747
|
+
function Sw(e) {
|
|
12748
|
+
const n = Ci(), { name: t, disabled: r, control: o = n.control, shouldUnregister: i, defaultValue: s } = e, a = gw(o._names.array, t), l = j.useMemo(() => ye(o._formValues, t, ye(o._defaultValues, t, s)), [o, t, s]), c = Cw({
|
|
12746
12749
|
control: o,
|
|
12747
12750
|
name: t,
|
|
12748
12751
|
defaultValue: l,
|
|
12749
12752
|
exact: !0
|
|
12750
|
-
}), u =
|
|
12753
|
+
}), u = yw({
|
|
12751
12754
|
control: o,
|
|
12752
12755
|
name: t,
|
|
12753
12756
|
exact: !0
|
|
@@ -12780,7 +12783,7 @@ function Cw(e) {
|
|
|
12780
12783
|
}
|
|
12781
12784
|
}), [u, t]), h = j.useCallback((w) => f.current.onChange({
|
|
12782
12785
|
target: {
|
|
12783
|
-
value:
|
|
12786
|
+
value: dw(w),
|
|
12784
12787
|
name: t
|
|
12785
12788
|
},
|
|
12786
12789
|
type: Os.CHANGE
|
|
@@ -12834,8 +12837,8 @@ function Cw(e) {
|
|
|
12834
12837
|
fieldState: p
|
|
12835
12838
|
}), [y, u, p]);
|
|
12836
12839
|
}
|
|
12837
|
-
const pC = (e) => e.render(
|
|
12838
|
-
var
|
|
12840
|
+
const pC = (e) => e.render(Sw(e));
|
|
12841
|
+
var xw = "Label", Sc = v.forwardRef((e, n) => /* @__PURE__ */ b(
|
|
12839
12842
|
Y.label,
|
|
12840
12843
|
{
|
|
12841
12844
|
...e,
|
|
@@ -12846,12 +12849,8 @@ var Sw = "Label", Sc = v.forwardRef((e, n) => /* @__PURE__ */ b(
|
|
|
12846
12849
|
}
|
|
12847
12850
|
}
|
|
12848
12851
|
));
|
|
12849
|
-
Sc.displayName =
|
|
12850
|
-
var mC = Sc
|
|
12851
|
-
function xw(e) {
|
|
12852
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
12853
|
-
}
|
|
12854
|
-
var gr = "Popover", [xc, hC] = Oe(gr, [
|
|
12852
|
+
Sc.displayName = xw;
|
|
12853
|
+
var mC = Sc, gr = "Popover", [xc, hC] = Oe(gr, [
|
|
12855
12854
|
jt
|
|
12856
12855
|
]), bn = jt(), [Rw, gt] = xc(gr), Rc = (e) => {
|
|
12857
12856
|
const {
|
|
@@ -14003,40 +14002,40 @@ var hb = mb(
|
|
|
14003
14002
|
}
|
|
14004
14003
|
}
|
|
14005
14004
|
);
|
|
14006
|
-
const kC = /* @__PURE__ */
|
|
14005
|
+
const kC = /* @__PURE__ */ ew(hb);
|
|
14007
14006
|
export {
|
|
14008
|
-
|
|
14009
|
-
|
|
14010
|
-
|
|
14007
|
+
vC as $,
|
|
14008
|
+
Ll as A,
|
|
14009
|
+
ew as B,
|
|
14011
14010
|
Pb as C,
|
|
14012
14011
|
kb as D,
|
|
14013
14012
|
Tb as E,
|
|
14014
|
-
|
|
14013
|
+
cC as F,
|
|
14015
14014
|
Gb as G,
|
|
14016
14015
|
Rb as H,
|
|
14017
14016
|
xb as I,
|
|
14018
|
-
|
|
14019
|
-
|
|
14017
|
+
uC as J,
|
|
14018
|
+
dC as K,
|
|
14020
14019
|
jb as L,
|
|
14021
|
-
|
|
14022
|
-
|
|
14020
|
+
iC as M,
|
|
14021
|
+
fC as N,
|
|
14023
14022
|
lC as O,
|
|
14024
14023
|
Wb as P,
|
|
14025
|
-
|
|
14024
|
+
aC as Q,
|
|
14026
14025
|
Sb as R,
|
|
14027
14026
|
bb as S,
|
|
14028
14027
|
_b as T,
|
|
14029
|
-
|
|
14028
|
+
sC as U,
|
|
14030
14029
|
zb as V,
|
|
14031
|
-
|
|
14032
|
-
|
|
14033
|
-
|
|
14034
|
-
|
|
14035
|
-
|
|
14030
|
+
mC as W,
|
|
14031
|
+
Ci as X,
|
|
14032
|
+
yw as Y,
|
|
14033
|
+
gC as Z,
|
|
14034
|
+
pC as _,
|
|
14036
14035
|
Ab as a,
|
|
14037
|
-
|
|
14038
|
-
|
|
14039
|
-
|
|
14036
|
+
yC as a0,
|
|
14037
|
+
wC as a1,
|
|
14038
|
+
bC as a2,
|
|
14040
14039
|
SC as a3,
|
|
14041
14040
|
xC as a4,
|
|
14042
14041
|
PC as a5,
|
|
@@ -14045,9 +14044,9 @@ export {
|
|
|
14045
14044
|
_C as a8,
|
|
14046
14045
|
IC as a9,
|
|
14047
14046
|
NC as aa,
|
|
14048
|
-
|
|
14049
|
-
|
|
14050
|
-
|
|
14047
|
+
OC as ab,
|
|
14048
|
+
AC as ac,
|
|
14049
|
+
TC as ad,
|
|
14051
14050
|
oh as ae,
|
|
14052
14051
|
kC as af,
|
|
14053
14052
|
Nb as b,
|
|
@@ -14069,7 +14068,7 @@ export {
|
|
|
14069
14068
|
Zv as r,
|
|
14070
14069
|
Mb as s,
|
|
14071
14070
|
Eb as t,
|
|
14072
|
-
|
|
14071
|
+
Fl as u,
|
|
14073
14072
|
Zb as v,
|
|
14074
14073
|
tC as w,
|
|
14075
14074
|
nC as x,
|