@inploi/plugin-job-search 0.8.0 → 0.9.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/cdn/index.js +15 -15
- package/cdn/style.css +1 -1
- package/dist/index.cdn.d.ts +1 -0
- package/dist/job-search.api.d.ts +42 -41
- package/dist/job-search.d.ts +37 -15
- package/dist/job-search.schemas.d.ts +62 -61
- package/dist/{plugin-job-alerts-2dab76ff.js → plugin-job-alerts-ddf07a02.js} +474 -635
- package/dist/{plugin-job-alerts-16396947.cjs → plugin-job-alerts-ee47a7fb.cjs} +474 -635
- package/dist/plugin-job-search.cjs +1774 -1645
- package/dist/plugin-job-search.js +1774 -1645
- package/dist/style.css +48 -5
- package/package.json +32 -30
|
@@ -25,28 +25,11 @@ function y$3(l2, u2, t2) {
|
|
|
25
25
|
return d$4(l2, f2, i2, o2, null);
|
|
26
26
|
}
|
|
27
27
|
function d$4(n2, t2, i2, o2, r2) {
|
|
28
|
-
var f2 = {
|
|
29
|
-
type: n2,
|
|
30
|
-
props: t2,
|
|
31
|
-
key: i2,
|
|
32
|
-
ref: o2,
|
|
33
|
-
__k: null,
|
|
34
|
-
__: null,
|
|
35
|
-
__b: 0,
|
|
36
|
-
__e: null,
|
|
37
|
-
__d: void 0,
|
|
38
|
-
__c: null,
|
|
39
|
-
constructor: void 0,
|
|
40
|
-
__v: null == r2 ? ++u$4 : r2,
|
|
41
|
-
__i: -1,
|
|
42
|
-
__u: 0
|
|
43
|
-
};
|
|
28
|
+
var f2 = { type: n2, props: t2, key: i2, ref: o2, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: null == r2 ? ++u$4 : r2, __i: -1, __u: 0 };
|
|
44
29
|
return null == r2 && null != l$4.vnode && l$4.vnode(f2), f2;
|
|
45
30
|
}
|
|
46
31
|
function _$4() {
|
|
47
|
-
return {
|
|
48
|
-
current: null
|
|
49
|
-
};
|
|
32
|
+
return { current: null };
|
|
50
33
|
}
|
|
51
34
|
function g$4(n2) {
|
|
52
35
|
return n2.children;
|
|
@@ -91,9 +74,7 @@ function C$2(n2, l2, u2, t2, i2, o2, r2, f2, e2, a2, h2) {
|
|
|
91
74
|
function P$2(n2, l2, u2) {
|
|
92
75
|
var t2, i2, o2, r2, f2, e2 = l2.length, c2 = u2.length, s2 = c2, a2 = 0;
|
|
93
76
|
for (n2.__k = [], t2 = 0; t2 < e2; t2++)
|
|
94
|
-
null != (i2 = n2.__k[t2] = null == (i2 = l2[t2]) || "boolean" == typeof i2 || "function" == typeof i2 ? null : "string" == typeof i2 || "number" == typeof i2 || "bigint" == typeof i2 || i2.constructor == String ? d$4(null, i2, null, null, i2) : h$2(i2) ? d$4(g$4, {
|
|
95
|
-
children: i2
|
|
96
|
-
}, null, null, null) : void 0 === i2.constructor && i2.__b > 0 ? d$4(i2.type, i2.props, i2.key, i2.ref ? i2.ref : null, i2.__v) : i2) ? (i2.__ = n2, i2.__b = n2.__b + 1, f2 = H$1(i2, u2, r2 = t2 + a2, s2), i2.__i = f2, o2 = null, -1 !== f2 && (s2--, (o2 = u2[f2]) && (o2.__u |= 131072)), null == o2 || null === o2.__v ? (-1 == f2 && a2--, "function" != typeof i2.type && (i2.__u |= 65536)) : f2 !== r2 && (f2 === r2 + 1 ? a2++ : f2 > r2 ? s2 > e2 - r2 ? a2 += f2 - r2 : a2-- : a2 = f2 < r2 && f2 == r2 - 1 ? f2 - r2 : 0, f2 !== t2 + a2 && (i2.__u |= 65536))) : (o2 = u2[t2]) && null == o2.key && o2.__e && (o2.__e == n2.__d && (n2.__d = m$2(o2)), N$1(o2, o2, false), u2[t2] = null, s2--);
|
|
77
|
+
null != (i2 = n2.__k[t2] = null == (i2 = l2[t2]) || "boolean" == typeof i2 || "function" == typeof i2 ? null : "string" == typeof i2 || "number" == typeof i2 || "bigint" == typeof i2 || i2.constructor == String ? d$4(null, i2, null, null, i2) : h$2(i2) ? d$4(g$4, { children: i2 }, null, null, null) : void 0 === i2.constructor && i2.__b > 0 ? d$4(i2.type, i2.props, i2.key, i2.ref ? i2.ref : null, i2.__v) : i2) ? (i2.__ = n2, i2.__b = n2.__b + 1, f2 = H$1(i2, u2, r2 = t2 + a2, s2), i2.__i = f2, o2 = null, -1 !== f2 && (s2--, (o2 = u2[f2]) && (o2.__u |= 131072)), null == o2 || null === o2.__v ? (-1 == f2 && a2--, "function" != typeof i2.type && (i2.__u |= 65536)) : f2 !== r2 && (f2 === r2 + 1 ? a2++ : f2 > r2 ? s2 > e2 - r2 ? a2 += f2 - r2 : a2-- : a2 = f2 < r2 && f2 == r2 - 1 ? f2 - r2 : 0, f2 !== t2 + a2 && (i2.__u |= 65536))) : (o2 = u2[t2]) && null == o2.key && o2.__e && (o2.__e == n2.__d && (n2.__d = m$2(o2)), N$1(o2, o2, false), u2[t2] = null, s2--);
|
|
97
78
|
if (s2)
|
|
98
79
|
for (t2 = 0; t2 < c2; t2++)
|
|
99
80
|
null != (o2 = u2[t2]) && 0 == (131072 & o2.__u) && (o2.__e == n2.__d && (n2.__d = m$2(o2)), N$1(o2, o2));
|
|
@@ -137,7 +118,7 @@ function I$1(n2, l2, u2) {
|
|
|
137
118
|
function T$2(n2, l2, u2, t2, i2) {
|
|
138
119
|
var o2;
|
|
139
120
|
n:
|
|
140
|
-
if ("style" === l2)
|
|
121
|
+
if ("style" === l2)
|
|
141
122
|
if ("string" == typeof u2)
|
|
142
123
|
n2.style.cssText = u2;
|
|
143
124
|
else {
|
|
@@ -148,7 +129,7 @@ function T$2(n2, l2, u2, t2, i2) {
|
|
|
148
129
|
for (l2 in u2)
|
|
149
130
|
t2 && u2[l2] === t2[l2] || I$1(n2.style, l2, u2[l2]);
|
|
150
131
|
}
|
|
151
|
-
|
|
132
|
+
else if ("o" === l2[0] && "n" === l2[1])
|
|
152
133
|
o2 = l2 !== (l2 = l2.replace(/(PointerCapture)$|Capture$/, "$1")), l2 = l2.toLowerCase() in n2 ? l2.toLowerCase().slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + o2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = Date.now(), n2.addEventListener(l2, o2 ? D$1 : A$2, o2)) : n2.removeEventListener(l2, o2 ? D$1 : A$2, o2);
|
|
153
134
|
else {
|
|
154
135
|
if (i2)
|
|
@@ -300,44 +281,37 @@ function E$2(l2, u2, t2) {
|
|
|
300
281
|
return arguments.length > 2 && (e2.children = arguments.length > 3 ? n$1.call(arguments, 2) : t2), d$4(l2.type, e2, i2 || l2.key, o2 || l2.ref, null);
|
|
301
282
|
}
|
|
302
283
|
function F$2(n2, l2) {
|
|
303
|
-
var u2 = {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
u3.splice(u3.indexOf(n4), 1), l3 && l3.call(n4);
|
|
322
|
-
};
|
|
323
|
-
}), n3.children;
|
|
324
|
-
}
|
|
325
|
-
};
|
|
284
|
+
var u2 = { __c: l2 = "__cC" + e$2++, __: n2, Consumer: function(n3, l3) {
|
|
285
|
+
return n3.children(l3);
|
|
286
|
+
}, Provider: function(n3) {
|
|
287
|
+
var u3, t2;
|
|
288
|
+
return this.getChildContext || (u3 = [], (t2 = {})[l2] = this, this.getChildContext = function() {
|
|
289
|
+
return t2;
|
|
290
|
+
}, this.shouldComponentUpdate = function(n4) {
|
|
291
|
+
this.props.value !== n4.value && u3.some(function(n5) {
|
|
292
|
+
n5.__e = true, w$4(n5);
|
|
293
|
+
});
|
|
294
|
+
}, this.sub = function(n4) {
|
|
295
|
+
u3.push(n4);
|
|
296
|
+
var l3 = n4.componentWillUnmount;
|
|
297
|
+
n4.componentWillUnmount = function() {
|
|
298
|
+
u3.splice(u3.indexOf(n4), 1), l3 && l3.call(n4);
|
|
299
|
+
};
|
|
300
|
+
}), n3.children;
|
|
301
|
+
} };
|
|
326
302
|
return u2.Provider.__ = u2.Consumer.contextType = u2;
|
|
327
303
|
}
|
|
328
|
-
n$1 = s$3.slice, l$4 = {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}
|
|
340
|
-
}, u$4 = 0, t$2 = function(n2) {
|
|
304
|
+
n$1 = s$3.slice, l$4 = { __e: function(n2, l2, u2, t2) {
|
|
305
|
+
for (var i2, o2, r2; l2 = l2.__; )
|
|
306
|
+
if ((i2 = l2.__c) && !i2.__)
|
|
307
|
+
try {
|
|
308
|
+
if ((o2 = i2.constructor) && null != o2.getDerivedStateFromError && (i2.setState(o2.getDerivedStateFromError(n2)), r2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), r2 = i2.__d), r2)
|
|
309
|
+
return i2.__E = i2;
|
|
310
|
+
} catch (l3) {
|
|
311
|
+
n2 = l3;
|
|
312
|
+
}
|
|
313
|
+
throw n2;
|
|
314
|
+
} }, u$4 = 0, t$2 = function(n2) {
|
|
341
315
|
return null != n2 && null == n2.constructor;
|
|
342
316
|
}, b$3.prototype.setState = function(n2, l2) {
|
|
343
317
|
var u2;
|
|
@@ -442,15 +416,7 @@ function C$1(t2, l2, c2, p2, u2) {
|
|
|
442
416
|
if (E2.prototype && "function" == typeof E2.prototype.render)
|
|
443
417
|
L2 = w$3(t2, Z2), D2 = t2.__c;
|
|
444
418
|
else {
|
|
445
|
-
t2.__c = D2 = {
|
|
446
|
-
__v: t2,
|
|
447
|
-
props: T2,
|
|
448
|
-
context: Z2,
|
|
449
|
-
setState: x$3,
|
|
450
|
-
forceUpdate: x$3,
|
|
451
|
-
__d: true,
|
|
452
|
-
__h: []
|
|
453
|
-
};
|
|
419
|
+
t2.__c = D2 = { __v: t2, props: T2, context: Z2, setState: x$3, forceUpdate: x$3, __d: true, __h: [] };
|
|
454
420
|
for (var j2 = 0; D2.__d && j2++ < 25; )
|
|
455
421
|
D2.__d = false, h$1 && h$1(t2), L2 = E2.call(D2, T2, Z2);
|
|
456
422
|
D2.__d = true;
|
|
@@ -544,24 +510,7 @@ function u$2(e2, t2, n2, o2, i2, u2) {
|
|
|
544
510
|
var a2, c2, p2 = {};
|
|
545
511
|
for (c2 in t2)
|
|
546
512
|
"ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
|
|
547
|
-
var l2 = {
|
|
548
|
-
type: e2,
|
|
549
|
-
props: p2,
|
|
550
|
-
key: n2,
|
|
551
|
-
ref: a2,
|
|
552
|
-
__k: null,
|
|
553
|
-
__: null,
|
|
554
|
-
__b: 0,
|
|
555
|
-
__e: null,
|
|
556
|
-
__d: void 0,
|
|
557
|
-
__c: null,
|
|
558
|
-
constructor: void 0,
|
|
559
|
-
__v: --f$2,
|
|
560
|
-
__i: -1,
|
|
561
|
-
__u: 0,
|
|
562
|
-
__source: i2,
|
|
563
|
-
__self: u2
|
|
564
|
-
};
|
|
513
|
+
var l2 = { type: e2, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --f$2, __i: -1, __u: 0, __source: i2, __self: u2 };
|
|
565
514
|
if ("function" == typeof e2 && (a2 = e2.defaultProps))
|
|
566
515
|
for (c2 in a2)
|
|
567
516
|
void 0 === p2[c2] && (p2[c2] = a2[c2]);
|
|
@@ -632,13 +581,8 @@ function _extends() {
|
|
|
632
581
|
var t$1, r$2, u$1, i$1, o$1 = 0, f$1 = [], c$1 = [], e$1 = l$4.__b, a$1 = l$4.__r, v$1 = l$4.diffed, l$2 = l$4.__c, m = l$4.unmount;
|
|
633
582
|
function d$2(t2, u2) {
|
|
634
583
|
l$4.__h && l$4.__h(r$2, t2, o$1 || u2), o$1 = 0;
|
|
635
|
-
var i2 = r$2.__H || (r$2.__H = {
|
|
636
|
-
|
|
637
|
-
__h: []
|
|
638
|
-
});
|
|
639
|
-
return t2 >= i2.__.length && i2.__.push({
|
|
640
|
-
__V: c$1
|
|
641
|
-
}), i2.__[t2];
|
|
584
|
+
var i2 = r$2.__H || (r$2.__H = { __: [], __h: [] });
|
|
585
|
+
return t2 >= i2.__.length && i2.__.push({ __V: c$1 }), i2.__[t2];
|
|
642
586
|
}
|
|
643
587
|
function h(n2) {
|
|
644
588
|
return o$1 = 1, s$1(B$1, n2);
|
|
@@ -689,9 +633,7 @@ function y$1(u2, i2) {
|
|
|
689
633
|
}
|
|
690
634
|
function _$2(n2) {
|
|
691
635
|
return o$1 = 5, F$1(function() {
|
|
692
|
-
return {
|
|
693
|
-
current: n2
|
|
694
|
-
};
|
|
636
|
+
return { current: n2 };
|
|
695
637
|
}, []);
|
|
696
638
|
}
|
|
697
639
|
function A$1(n2, t2, r2) {
|
|
@@ -850,20 +792,14 @@ function N(n2) {
|
|
|
850
792
|
}
|
|
851
793
|
var k = function(n2, t2) {
|
|
852
794
|
return null == n2 ? null : $$1($$1(n2).map(t2));
|
|
853
|
-
}, A = {
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
if (1 !== t2.length)
|
|
862
|
-
throw "Children.only";
|
|
863
|
-
return t2[0];
|
|
864
|
-
},
|
|
865
|
-
toArray: $$1
|
|
866
|
-
}, O$1 = l$4.__e;
|
|
795
|
+
}, A = { map: k, forEach: k, count: function(n2) {
|
|
796
|
+
return n2 ? $$1(n2).length : 0;
|
|
797
|
+
}, only: function(n2) {
|
|
798
|
+
var t2 = $$1(n2);
|
|
799
|
+
if (1 !== t2.length)
|
|
800
|
+
throw "Children.only";
|
|
801
|
+
return t2[0];
|
|
802
|
+
}, toArray: $$1 }, O$1 = l$4.__e;
|
|
867
803
|
l$4.__e = function(n2, t2, e2, r2) {
|
|
868
804
|
if (n2.then) {
|
|
869
805
|
for (var u2, o2 = t2; o2 = o2.__; )
|
|
@@ -927,15 +863,11 @@ l$4.unmount = function(n2) {
|
|
|
927
863
|
r2.__v.__k[0] = I(n3, n3.__c.__P, n3.__c.__O);
|
|
928
864
|
}
|
|
929
865
|
var t3;
|
|
930
|
-
for (r2.setState({
|
|
931
|
-
__a: r2.__b = null
|
|
932
|
-
}); t3 = r2.t.pop(); )
|
|
866
|
+
for (r2.setState({ __a: r2.__b = null }); t3 = r2.t.pop(); )
|
|
933
867
|
t3.forceUpdate();
|
|
934
868
|
}
|
|
935
869
|
};
|
|
936
|
-
r2.__u++ || 32 & t2.__u || r2.setState({
|
|
937
|
-
__a: r2.__b = r2.__v.__k[0]
|
|
938
|
-
}), n2.then(i2, i2);
|
|
870
|
+
r2.__u++ || 32 & t2.__u || r2.setState({ __a: r2.__b = r2.__v.__k[0] }), n2.then(i2, i2);
|
|
939
871
|
}, L.prototype.componentWillUnmount = function() {
|
|
940
872
|
this.t = [];
|
|
941
873
|
}, L.prototype.render = function(n2, e2) {
|
|
@@ -968,28 +900,16 @@ function P(n2) {
|
|
|
968
900
|
var e2 = this, r2 = n2.i;
|
|
969
901
|
e2.componentWillUnmount = function() {
|
|
970
902
|
q$2(null, e2.l), e2.l = null, e2.i = null;
|
|
971
|
-
}, e2.i && e2.i !== r2 && e2.componentWillUnmount(), e2.l || (e2.i = r2, e2.l = {
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
childNodes
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
insertBefore: function(n3, t2) {
|
|
979
|
-
this.childNodes.push(n3), e2.i.appendChild(n3);
|
|
980
|
-
},
|
|
981
|
-
removeChild: function(n3) {
|
|
982
|
-
this.childNodes.splice(this.childNodes.indexOf(n3) >>> 1, 1), e2.i.removeChild(n3);
|
|
983
|
-
}
|
|
984
|
-
}), q$2(y$3(W, {
|
|
985
|
-
context: e2.context
|
|
986
|
-
}, n2.__v), e2.l);
|
|
903
|
+
}, e2.i && e2.i !== r2 && e2.componentWillUnmount(), e2.l || (e2.i = r2, e2.l = { nodeType: 1, parentNode: r2, childNodes: [], appendChild: function(n3) {
|
|
904
|
+
this.childNodes.push(n3), e2.i.appendChild(n3);
|
|
905
|
+
}, insertBefore: function(n3, t2) {
|
|
906
|
+
this.childNodes.push(n3), e2.i.appendChild(n3);
|
|
907
|
+
}, removeChild: function(n3) {
|
|
908
|
+
this.childNodes.splice(this.childNodes.indexOf(n3) >>> 1, 1), e2.i.removeChild(n3);
|
|
909
|
+
} }), q$2(y$3(W, { context: e2.context }, n2.__v), e2.l);
|
|
987
910
|
}
|
|
988
911
|
function j(n2, e2) {
|
|
989
|
-
var r2 = y$3(P, {
|
|
990
|
-
__v: n2,
|
|
991
|
-
i: e2
|
|
992
|
-
});
|
|
912
|
+
var r2 = y$3(P, { __v: n2, i: e2 });
|
|
993
913
|
return r2.containerInfo = e2, r2;
|
|
994
914
|
}
|
|
995
915
|
(M.prototype = new b$3()).__a = function(n2) {
|
|
@@ -1023,19 +943,11 @@ function G(n2, t2, e2) {
|
|
|
1023
943
|
return B$2(n2, t2), "function" == typeof e2 && e2(), n2 ? n2.__c : null;
|
|
1024
944
|
}
|
|
1025
945
|
b$3.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t2) {
|
|
1026
|
-
Object.defineProperty(b$3.prototype, t2, {
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
set: function(n2) {
|
|
1032
|
-
Object.defineProperty(this, t2, {
|
|
1033
|
-
configurable: true,
|
|
1034
|
-
writable: true,
|
|
1035
|
-
value: n2
|
|
1036
|
-
});
|
|
1037
|
-
}
|
|
1038
|
-
});
|
|
946
|
+
Object.defineProperty(b$3.prototype, t2, { configurable: true, get: function() {
|
|
947
|
+
return this["UNSAFE_" + t2];
|
|
948
|
+
}, set: function(n2) {
|
|
949
|
+
Object.defineProperty(this, t2, { configurable: true, writable: true, value: n2 });
|
|
950
|
+
} });
|
|
1039
951
|
});
|
|
1040
952
|
var J = l$4.event;
|
|
1041
953
|
function K() {
|
|
@@ -1049,13 +961,9 @@ function X() {
|
|
|
1049
961
|
l$4.event = function(n2) {
|
|
1050
962
|
return J && (n2 = J(n2)), n2.persist = K, n2.isPropagationStopped = Q, n2.isDefaultPrevented = X, n2.nativeEvent = n2;
|
|
1051
963
|
};
|
|
1052
|
-
var nn, tn = {
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
get: function() {
|
|
1056
|
-
return this.class;
|
|
1057
|
-
}
|
|
1058
|
-
}, en = l$4.vnode;
|
|
964
|
+
var nn, tn = { enumerable: false, configurable: true, get: function() {
|
|
965
|
+
return this.class;
|
|
966
|
+
} }, en = l$4.vnode;
|
|
1059
967
|
l$4.vnode = function(n2) {
|
|
1060
968
|
"string" == typeof n2.type && function(n3) {
|
|
1061
969
|
var t2 = n3.props, e2 = n3.type, u2 = {};
|
|
@@ -1083,15 +991,9 @@ l$4.diffed = function(n2) {
|
|
|
1083
991
|
var t2 = n2.props, e2 = n2.__e;
|
|
1084
992
|
null != e2 && "textarea" === n2.type && "value" in t2 && t2.value !== e2.value && (e2.value = null == t2.value ? "" : t2.value), nn = null;
|
|
1085
993
|
};
|
|
1086
|
-
var on = {
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
readContext: function(n2) {
|
|
1090
|
-
return nn.__n[n2.__c].props.value;
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
}, ln = "17.0.2";
|
|
994
|
+
var on = { ReactCurrentDispatcher: { current: { readContext: function(n2) {
|
|
995
|
+
return nn.__n[n2.__c].props.value;
|
|
996
|
+
} } } }, ln = "17.0.2";
|
|
1095
997
|
function cn(n2) {
|
|
1096
998
|
return y$3.bind(null, n2);
|
|
1097
999
|
}
|
|
@@ -1126,23 +1028,12 @@ function bn() {
|
|
|
1126
1028
|
}
|
|
1127
1029
|
var Sn = y$1, gn = fn;
|
|
1128
1030
|
function Cn(n2, t2) {
|
|
1129
|
-
var e2 = t2(), r2 = h({
|
|
1130
|
-
h: {
|
|
1131
|
-
__: e2,
|
|
1132
|
-
v: t2
|
|
1133
|
-
}
|
|
1134
|
-
}), u2 = r2[0].h, o2 = r2[1];
|
|
1031
|
+
var e2 = t2(), r2 = h({ h: { __: e2, v: t2 } }), u2 = r2[0].h, o2 = r2[1];
|
|
1135
1032
|
return y$1(function() {
|
|
1136
|
-
u2.__ = e2, u2.v = t2, En(u2) && o2({
|
|
1137
|
-
h: u2
|
|
1138
|
-
});
|
|
1033
|
+
u2.__ = e2, u2.v = t2, En(u2) && o2({ h: u2 });
|
|
1139
1034
|
}, [n2, e2, t2]), p$2(function() {
|
|
1140
|
-
return En(u2) && o2({
|
|
1141
|
-
h: u2
|
|
1142
|
-
}), n2(function() {
|
|
1143
|
-
En(u2) && o2({
|
|
1144
|
-
h: u2
|
|
1145
|
-
});
|
|
1035
|
+
return En(u2) && o2({ h: u2 }), n2(function() {
|
|
1036
|
+
En(u2) && o2({ h: u2 });
|
|
1146
1037
|
});
|
|
1147
1038
|
}, [n2]), e2;
|
|
1148
1039
|
}
|
|
@@ -1155,51 +1046,7 @@ function En(n2) {
|
|
|
1155
1046
|
return true;
|
|
1156
1047
|
}
|
|
1157
1048
|
}
|
|
1158
|
-
var wn = {
|
|
1159
|
-
useState: h,
|
|
1160
|
-
useId: V$1,
|
|
1161
|
-
useReducer: s$1,
|
|
1162
|
-
useEffect: p$2,
|
|
1163
|
-
useLayoutEffect: y$1,
|
|
1164
|
-
useInsertionEffect: Sn,
|
|
1165
|
-
useTransition: bn,
|
|
1166
|
-
useDeferredValue: _n,
|
|
1167
|
-
useSyncExternalStore: Cn,
|
|
1168
|
-
startTransition: yn,
|
|
1169
|
-
useRef: _$2,
|
|
1170
|
-
useImperativeHandle: A$1,
|
|
1171
|
-
useMemo: F$1,
|
|
1172
|
-
useCallback: T$1,
|
|
1173
|
-
useContext: q$1,
|
|
1174
|
-
useDebugValue: x$2,
|
|
1175
|
-
version: "17.0.2",
|
|
1176
|
-
Children: A,
|
|
1177
|
-
render: q,
|
|
1178
|
-
hydrate: G,
|
|
1179
|
-
unmountComponentAtNode: hn,
|
|
1180
|
-
createPortal: j,
|
|
1181
|
-
createElement: y$3,
|
|
1182
|
-
createContext: F$2,
|
|
1183
|
-
createFactory: cn,
|
|
1184
|
-
cloneElement: sn,
|
|
1185
|
-
createRef: _$4,
|
|
1186
|
-
Fragment: g$4,
|
|
1187
|
-
isValidElement: fn,
|
|
1188
|
-
isElement: gn,
|
|
1189
|
-
isFragment: an,
|
|
1190
|
-
findDOMNode: vn,
|
|
1191
|
-
Component: b$3,
|
|
1192
|
-
PureComponent: E$1,
|
|
1193
|
-
memo: w$1,
|
|
1194
|
-
forwardRef: N,
|
|
1195
|
-
flushSync: pn,
|
|
1196
|
-
unstable_batchedUpdates: dn,
|
|
1197
|
-
StrictMode: mn,
|
|
1198
|
-
Suspense: L,
|
|
1199
|
-
SuspenseList: M,
|
|
1200
|
-
lazy: D,
|
|
1201
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: on
|
|
1202
|
-
};
|
|
1049
|
+
var wn = { useState: h, useId: V$1, useReducer: s$1, useEffect: p$2, useLayoutEffect: y$1, useInsertionEffect: Sn, useTransition: bn, useDeferredValue: _n, useSyncExternalStore: Cn, startTransition: yn, useRef: _$2, useImperativeHandle: A$1, useMemo: F$1, useCallback: T$1, useContext: q$1, useDebugValue: x$2, version: "17.0.2", Children: A, render: q, hydrate: G, unmountComponentAtNode: hn, createPortal: j, createElement: y$3, createContext: F$2, createFactory: cn, cloneElement: sn, createRef: _$4, Fragment: g$4, isValidElement: fn, isElement: gn, isFragment: an, findDOMNode: vn, Component: b$3, PureComponent: E$1, memo: w$1, forwardRef: N, flushSync: pn, unstable_batchedUpdates: dn, StrictMode: mn, Suspense: L, SuspenseList: M, lazy: D, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: on };
|
|
1203
1050
|
const $2AODx$react = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1204
1051
|
__proto__: null,
|
|
1205
1052
|
Children: A,
|
|
@@ -1247,12 +1094,8 @@ const $2AODx$react = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
1247
1094
|
useSyncExternalStore: Cn,
|
|
1248
1095
|
useTransition: bn,
|
|
1249
1096
|
version: ln
|
|
1250
|
-
}, Symbol.toStringTag, {
|
|
1251
|
-
|
|
1252
|
-
}));
|
|
1253
|
-
function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, {
|
|
1254
|
-
checkForDefaultPrevented = true
|
|
1255
|
-
} = {}) {
|
|
1097
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1098
|
+
function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
1256
1099
|
return function handleEvent(event) {
|
|
1257
1100
|
originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
|
|
1258
1101
|
if (checkForDefaultPrevented === false || !event.defaultPrevented)
|
|
@@ -1266,7 +1109,9 @@ function $6ed0406888f73fc4$var$setRef(ref, value) {
|
|
|
1266
1109
|
ref.current = value;
|
|
1267
1110
|
}
|
|
1268
1111
|
function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
|
|
1269
|
-
return (node) => refs.forEach(
|
|
1112
|
+
return (node) => refs.forEach(
|
|
1113
|
+
(ref) => $6ed0406888f73fc4$var$setRef(ref, node)
|
|
1114
|
+
);
|
|
1270
1115
|
}
|
|
1271
1116
|
function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
|
|
1272
1117
|
return T$1($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
|
|
@@ -1276,15 +1121,17 @@ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeD
|
|
|
1276
1121
|
function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
|
|
1277
1122
|
const BaseContext = /* @__PURE__ */ F$2(defaultContext);
|
|
1278
1123
|
const index2 = defaultContexts.length;
|
|
1279
|
-
defaultContexts = [
|
|
1124
|
+
defaultContexts = [
|
|
1125
|
+
...defaultContexts,
|
|
1126
|
+
defaultContext
|
|
1127
|
+
];
|
|
1280
1128
|
function Provider(props) {
|
|
1281
|
-
const {
|
|
1282
|
-
scope,
|
|
1283
|
-
children,
|
|
1284
|
-
...context
|
|
1285
|
-
} = props;
|
|
1129
|
+
const { scope, children, ...context } = props;
|
|
1286
1130
|
const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index2]) || BaseContext;
|
|
1287
|
-
const value = F$1(
|
|
1131
|
+
const value = F$1(
|
|
1132
|
+
() => context,
|
|
1133
|
+
Object.values(context)
|
|
1134
|
+
);
|
|
1288
1135
|
return /* @__PURE__ */ y$3(Context.Provider, {
|
|
1289
1136
|
value
|
|
1290
1137
|
}, children);
|
|
@@ -1299,7 +1146,10 @@ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeD
|
|
|
1299
1146
|
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
1300
1147
|
}
|
|
1301
1148
|
Provider.displayName = rootComponentName + "Provider";
|
|
1302
|
-
return [
|
|
1149
|
+
return [
|
|
1150
|
+
Provider,
|
|
1151
|
+
useContext
|
|
1152
|
+
];
|
|
1303
1153
|
}
|
|
1304
1154
|
const createScope = () => {
|
|
1305
1155
|
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
@@ -1307,31 +1157,39 @@ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeD
|
|
|
1307
1157
|
});
|
|
1308
1158
|
return function useScope(scope) {
|
|
1309
1159
|
const contexts = (scope === null || scope === void 0 ? void 0 : scope[scopeName]) || scopeContexts;
|
|
1310
|
-
return F$1(
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1160
|
+
return F$1(
|
|
1161
|
+
() => ({
|
|
1162
|
+
[`__scope${scopeName}`]: {
|
|
1163
|
+
...scope,
|
|
1164
|
+
[scopeName]: contexts
|
|
1165
|
+
}
|
|
1166
|
+
}),
|
|
1167
|
+
[
|
|
1168
|
+
scope,
|
|
1169
|
+
contexts
|
|
1170
|
+
]
|
|
1171
|
+
);
|
|
1316
1172
|
};
|
|
1317
1173
|
};
|
|
1318
1174
|
createScope.scopeName = scopeName;
|
|
1319
|
-
return [
|
|
1175
|
+
return [
|
|
1176
|
+
$c512c27ab02ef895$export$fd42f52fd3ae1109,
|
|
1177
|
+
$c512c27ab02ef895$var$composeContextScopes(createScope, ...createContextScopeDeps)
|
|
1178
|
+
];
|
|
1320
1179
|
}
|
|
1321
1180
|
function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
|
|
1322
1181
|
const baseScope = scopes[0];
|
|
1323
1182
|
if (scopes.length === 1)
|
|
1324
1183
|
return baseScope;
|
|
1325
1184
|
const createScope1 = () => {
|
|
1326
|
-
const scopeHooks = scopes.map(
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1185
|
+
const scopeHooks = scopes.map(
|
|
1186
|
+
(createScope) => ({
|
|
1187
|
+
useScope: createScope(),
|
|
1188
|
+
scopeName: createScope.scopeName
|
|
1189
|
+
})
|
|
1190
|
+
);
|
|
1330
1191
|
return function useComposedScopes(overrideScopes) {
|
|
1331
|
-
const nextScopes1 = scopeHooks.reduce((nextScopes, {
|
|
1332
|
-
useScope,
|
|
1333
|
-
scopeName
|
|
1334
|
-
}) => {
|
|
1192
|
+
const nextScopes1 = scopeHooks.reduce((nextScopes, { useScope, scopeName }) => {
|
|
1335
1193
|
const scopeProps = useScope(overrideScopes);
|
|
1336
1194
|
const currentScope = scopeProps[`__scope${scopeName}`];
|
|
1337
1195
|
return {
|
|
@@ -1339,19 +1197,21 @@ function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
|
|
|
1339
1197
|
...currentScope
|
|
1340
1198
|
};
|
|
1341
1199
|
}, {});
|
|
1342
|
-
return F$1(
|
|
1343
|
-
|
|
1344
|
-
|
|
1200
|
+
return F$1(
|
|
1201
|
+
() => ({
|
|
1202
|
+
[`__scope${baseScope.scopeName}`]: nextScopes1
|
|
1203
|
+
}),
|
|
1204
|
+
[
|
|
1205
|
+
nextScopes1
|
|
1206
|
+
]
|
|
1207
|
+
);
|
|
1345
1208
|
};
|
|
1346
1209
|
};
|
|
1347
1210
|
createScope1.scopeName = baseScope.scopeName;
|
|
1348
1211
|
return createScope1;
|
|
1349
1212
|
}
|
|
1350
1213
|
const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ N((props, forwardedRef) => {
|
|
1351
|
-
const {
|
|
1352
|
-
children,
|
|
1353
|
-
...slotProps
|
|
1354
|
-
} = props;
|
|
1214
|
+
const { children, ...slotProps } = props;
|
|
1355
1215
|
const childrenArray = A.toArray(children);
|
|
1356
1216
|
const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);
|
|
1357
1217
|
if (slottable) {
|
|
@@ -1374,10 +1234,7 @@ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ N((props, forw
|
|
|
1374
1234
|
});
|
|
1375
1235
|
$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = "Slot";
|
|
1376
1236
|
const $5e63c961fc1ce211$var$SlotClone = /* @__PURE__ */ N((props, forwardedRef) => {
|
|
1377
|
-
const {
|
|
1378
|
-
children,
|
|
1379
|
-
...slotProps
|
|
1380
|
-
} = props;
|
|
1237
|
+
const { children, ...slotProps } = props;
|
|
1381
1238
|
if (/* @__PURE__ */ fn(children))
|
|
1382
1239
|
return /* @__PURE__ */ sn(children, {
|
|
1383
1240
|
...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
|
|
@@ -1386,9 +1243,7 @@ const $5e63c961fc1ce211$var$SlotClone = /* @__PURE__ */ N((props, forwardedRef)
|
|
|
1386
1243
|
return A.count(children) > 1 ? A.only(null) : null;
|
|
1387
1244
|
});
|
|
1388
1245
|
$5e63c961fc1ce211$var$SlotClone.displayName = "SlotClone";
|
|
1389
|
-
const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({
|
|
1390
|
-
children
|
|
1391
|
-
}) => {
|
|
1246
|
+
const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children }) => {
|
|
1392
1247
|
return /* @__PURE__ */ y$3(g$4, null, children);
|
|
1393
1248
|
};
|
|
1394
1249
|
function $5e63c961fc1ce211$var$isSlottable(child) {
|
|
@@ -1416,20 +1271,37 @@ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
|
|
|
1416
1271
|
...childPropValue
|
|
1417
1272
|
};
|
|
1418
1273
|
else if (propName === "className")
|
|
1419
|
-
overrideProps[propName] = [
|
|
1274
|
+
overrideProps[propName] = [
|
|
1275
|
+
slotPropValue,
|
|
1276
|
+
childPropValue
|
|
1277
|
+
].filter(Boolean).join(" ");
|
|
1420
1278
|
}
|
|
1421
1279
|
return {
|
|
1422
1280
|
...slotProps,
|
|
1423
1281
|
...overrideProps
|
|
1424
1282
|
};
|
|
1425
1283
|
}
|
|
1426
|
-
const $8927f6f2acc4f386$var$NODES = [
|
|
1284
|
+
const $8927f6f2acc4f386$var$NODES = [
|
|
1285
|
+
"a",
|
|
1286
|
+
"button",
|
|
1287
|
+
"div",
|
|
1288
|
+
"form",
|
|
1289
|
+
"h2",
|
|
1290
|
+
"h3",
|
|
1291
|
+
"img",
|
|
1292
|
+
"input",
|
|
1293
|
+
"label",
|
|
1294
|
+
"li",
|
|
1295
|
+
"nav",
|
|
1296
|
+
"ol",
|
|
1297
|
+
"p",
|
|
1298
|
+
"span",
|
|
1299
|
+
"svg",
|
|
1300
|
+
"ul"
|
|
1301
|
+
];
|
|
1427
1302
|
const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.reduce((primitive, node) => {
|
|
1428
1303
|
const Node2 = /* @__PURE__ */ N((props, forwardedRef) => {
|
|
1429
|
-
const {
|
|
1430
|
-
asChild,
|
|
1431
|
-
...primitiveProps
|
|
1432
|
-
} = props;
|
|
1304
|
+
const { asChild, ...primitiveProps } = props;
|
|
1433
1305
|
const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
|
|
1434
1306
|
p$2(() => {
|
|
1435
1307
|
window[Symbol.for("radix-ui")] = true;
|
|
@@ -1446,17 +1318,22 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.re
|
|
|
1446
1318
|
}, {});
|
|
1447
1319
|
function $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event) {
|
|
1448
1320
|
if (target)
|
|
1449
|
-
pn(
|
|
1321
|
+
pn(
|
|
1322
|
+
() => target.dispatchEvent(event)
|
|
1323
|
+
);
|
|
1450
1324
|
}
|
|
1451
1325
|
function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
|
|
1452
1326
|
const callbackRef = _$2(callback);
|
|
1453
1327
|
p$2(() => {
|
|
1454
1328
|
callbackRef.current = callback;
|
|
1455
1329
|
});
|
|
1456
|
-
return F$1(
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1330
|
+
return F$1(
|
|
1331
|
+
() => (...args) => {
|
|
1332
|
+
var _callbackRef$current;
|
|
1333
|
+
return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
|
|
1334
|
+
},
|
|
1335
|
+
[]
|
|
1336
|
+
);
|
|
1460
1337
|
}
|
|
1461
1338
|
function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
|
|
1462
1339
|
const onEscapeKeyDown = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEscapeKeyDownProp);
|
|
@@ -1467,7 +1344,10 @@ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDoc
|
|
|
1467
1344
|
};
|
|
1468
1345
|
ownerDocument.addEventListener("keydown", handleKeyDown);
|
|
1469
1346
|
return () => ownerDocument.removeEventListener("keydown", handleKeyDown);
|
|
1470
|
-
}, [
|
|
1347
|
+
}, [
|
|
1348
|
+
onEscapeKeyDown,
|
|
1349
|
+
ownerDocument
|
|
1350
|
+
]);
|
|
1471
1351
|
}
|
|
1472
1352
|
const $5cb92bef7577960e$var$CONTEXT_UPDATE = "dismissableLayer.update";
|
|
1473
1353
|
const $5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
@@ -1480,29 +1360,30 @@ const $5cb92bef7577960e$var$DismissableLayerContext = /* @__PURE__ */ F$2({
|
|
|
1480
1360
|
});
|
|
1481
1361
|
const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ N((props, forwardedRef) => {
|
|
1482
1362
|
var _node$ownerDocument;
|
|
1483
|
-
const {
|
|
1484
|
-
disableOutsidePointerEvents = false,
|
|
1485
|
-
onEscapeKeyDown,
|
|
1486
|
-
onPointerDownOutside,
|
|
1487
|
-
onFocusOutside,
|
|
1488
|
-
onInteractOutside,
|
|
1489
|
-
onDismiss,
|
|
1490
|
-
...layerProps
|
|
1491
|
-
} = props;
|
|
1363
|
+
const { disableOutsidePointerEvents = false, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, onDismiss, ...layerProps } = props;
|
|
1492
1364
|
const context = q$1($5cb92bef7577960e$var$DismissableLayerContext);
|
|
1493
1365
|
const [node1, setNode] = h(null);
|
|
1494
1366
|
const ownerDocument = (_node$ownerDocument = node1 === null || node1 === void 0 ? void 0 : node1.ownerDocument) !== null && _node$ownerDocument !== void 0 ? _node$ownerDocument : globalThis === null || globalThis === void 0 ? void 0 : globalThis.document;
|
|
1495
1367
|
const [, force] = h({});
|
|
1496
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(
|
|
1368
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(
|
|
1369
|
+
forwardedRef,
|
|
1370
|
+
(node) => setNode(node)
|
|
1371
|
+
);
|
|
1497
1372
|
const layers = Array.from(context.layers);
|
|
1498
|
-
const [highestLayerWithOutsidePointerEventsDisabled] = [
|
|
1373
|
+
const [highestLayerWithOutsidePointerEventsDisabled] = [
|
|
1374
|
+
...context.layersWithOutsidePointerEventsDisabled
|
|
1375
|
+
].slice(-1);
|
|
1499
1376
|
const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
|
|
1500
1377
|
const index2 = node1 ? layers.indexOf(node1) : -1;
|
|
1501
1378
|
const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
|
|
1502
1379
|
const isPointerEventsEnabled = index2 >= highestLayerWithOutsidePointerEventsDisabledIndex;
|
|
1503
1380
|
const pointerDownOutside = $5cb92bef7577960e$var$usePointerDownOutside((event) => {
|
|
1504
1381
|
const target = event.target;
|
|
1505
|
-
const isPointerDownOnBranch = [
|
|
1382
|
+
const isPointerDownOnBranch = [
|
|
1383
|
+
...context.branches
|
|
1384
|
+
].some(
|
|
1385
|
+
(branch) => branch.contains(target)
|
|
1386
|
+
);
|
|
1506
1387
|
if (!isPointerEventsEnabled || isPointerDownOnBranch)
|
|
1507
1388
|
return;
|
|
1508
1389
|
onPointerDownOutside === null || onPointerDownOutside === void 0 || onPointerDownOutside(event);
|
|
@@ -1512,7 +1393,11 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ N((props, forw
|
|
|
1512
1393
|
}, ownerDocument);
|
|
1513
1394
|
const focusOutside = $5cb92bef7577960e$var$useFocusOutside((event) => {
|
|
1514
1395
|
const target = event.target;
|
|
1515
|
-
const isFocusInBranch = [
|
|
1396
|
+
const isFocusInBranch = [
|
|
1397
|
+
...context.branches
|
|
1398
|
+
].some(
|
|
1399
|
+
(branch) => branch.contains(target)
|
|
1400
|
+
);
|
|
1516
1401
|
if (isFocusInBranch)
|
|
1517
1402
|
return;
|
|
1518
1403
|
onFocusOutside === null || onFocusOutside === void 0 || onFocusOutside(event);
|
|
@@ -1546,7 +1431,12 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ N((props, forw
|
|
|
1546
1431
|
if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1)
|
|
1547
1432
|
ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;
|
|
1548
1433
|
};
|
|
1549
|
-
}, [
|
|
1434
|
+
}, [
|
|
1435
|
+
node1,
|
|
1436
|
+
ownerDocument,
|
|
1437
|
+
disableOutsidePointerEvents,
|
|
1438
|
+
context
|
|
1439
|
+
]);
|
|
1550
1440
|
p$2(() => {
|
|
1551
1441
|
return () => {
|
|
1552
1442
|
if (!node1)
|
|
@@ -1555,7 +1445,10 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ N((props, forw
|
|
|
1555
1445
|
context.layersWithOutsidePointerEventsDisabled.delete(node1);
|
|
1556
1446
|
$5cb92bef7577960e$var$dispatchUpdate();
|
|
1557
1447
|
};
|
|
1558
|
-
}, [
|
|
1448
|
+
}, [
|
|
1449
|
+
node1,
|
|
1450
|
+
context
|
|
1451
|
+
]);
|
|
1559
1452
|
p$2(() => {
|
|
1560
1453
|
const handleUpdate = () => force({});
|
|
1561
1454
|
document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
|
|
@@ -1608,7 +1501,10 @@ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, owner
|
|
|
1608
1501
|
ownerDocument.removeEventListener("pointerdown", handlePointerDown);
|
|
1609
1502
|
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
1610
1503
|
};
|
|
1611
|
-
}, [
|
|
1504
|
+
}, [
|
|
1505
|
+
ownerDocument,
|
|
1506
|
+
handlePointerDownOutside
|
|
1507
|
+
]);
|
|
1612
1508
|
return {
|
|
1613
1509
|
// ensures we check React component tree (not just DOM tree)
|
|
1614
1510
|
onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true
|
|
@@ -1630,7 +1526,10 @@ function $5cb92bef7577960e$var$useFocusOutside(onFocusOutside, ownerDocument = g
|
|
|
1630
1526
|
};
|
|
1631
1527
|
ownerDocument.addEventListener("focusin", handleFocus);
|
|
1632
1528
|
return () => ownerDocument.removeEventListener("focusin", handleFocus);
|
|
1633
|
-
}, [
|
|
1529
|
+
}, [
|
|
1530
|
+
ownerDocument,
|
|
1531
|
+
handleFocusOutside
|
|
1532
|
+
]);
|
|
1634
1533
|
return {
|
|
1635
1534
|
onFocusCapture: () => isFocusInsideReactTreeRef.current = true,
|
|
1636
1535
|
onBlurCapture: () => isFocusInsideReactTreeRef.current = false
|
|
@@ -1640,9 +1539,7 @@ function $5cb92bef7577960e$var$dispatchUpdate() {
|
|
|
1640
1539
|
const event = new CustomEvent($5cb92bef7577960e$var$CONTEXT_UPDATE);
|
|
1641
1540
|
document.dispatchEvent(event);
|
|
1642
1541
|
}
|
|
1643
|
-
function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detail, {
|
|
1644
|
-
discrete
|
|
1645
|
-
}) {
|
|
1542
|
+
function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
|
|
1646
1543
|
const target = detail.originalEvent.target;
|
|
1647
1544
|
const event = new CustomEvent(name, {
|
|
1648
1545
|
bubbles: false,
|
|
@@ -1668,7 +1565,9 @@ function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c() {
|
|
|
1668
1565
|
$3db38b7d1fb3fe6a$var$count++;
|
|
1669
1566
|
return () => {
|
|
1670
1567
|
if ($3db38b7d1fb3fe6a$var$count === 1)
|
|
1671
|
-
document.querySelectorAll("[data-radix-focus-guard]").forEach(
|
|
1568
|
+
document.querySelectorAll("[data-radix-focus-guard]").forEach(
|
|
1569
|
+
(node) => node.remove()
|
|
1570
|
+
);
|
|
1672
1571
|
$3db38b7d1fb3fe6a$var$count--;
|
|
1673
1572
|
};
|
|
1674
1573
|
}, []);
|
|
@@ -1687,18 +1586,15 @@ const $d3863c46a17e8a28$var$EVENT_OPTIONS = {
|
|
|
1687
1586
|
cancelable: true
|
|
1688
1587
|
};
|
|
1689
1588
|
const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ N((props, forwardedRef) => {
|
|
1690
|
-
const {
|
|
1691
|
-
loop = false,
|
|
1692
|
-
trapped = false,
|
|
1693
|
-
onMountAutoFocus: onMountAutoFocusProp,
|
|
1694
|
-
onUnmountAutoFocus: onUnmountAutoFocusProp,
|
|
1695
|
-
...scopeProps
|
|
1696
|
-
} = props;
|
|
1589
|
+
const { loop = false, trapped = false, onMountAutoFocus: onMountAutoFocusProp, onUnmountAutoFocus: onUnmountAutoFocusProp, ...scopeProps } = props;
|
|
1697
1590
|
const [container1, setContainer] = h(null);
|
|
1698
1591
|
const onMountAutoFocus = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onMountAutoFocusProp);
|
|
1699
1592
|
const onUnmountAutoFocus = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onUnmountAutoFocusProp);
|
|
1700
1593
|
const lastFocusedElementRef = _$2(null);
|
|
1701
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(
|
|
1594
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(
|
|
1595
|
+
forwardedRef,
|
|
1596
|
+
(node) => setContainer(node)
|
|
1597
|
+
);
|
|
1702
1598
|
const focusScope = _$2({
|
|
1703
1599
|
paused: false,
|
|
1704
1600
|
pause() {
|
|
@@ -1752,7 +1648,11 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ N((props, forw
|
|
|
1752
1648
|
mutationObserver.disconnect();
|
|
1753
1649
|
};
|
|
1754
1650
|
}
|
|
1755
|
-
}, [
|
|
1651
|
+
}, [
|
|
1652
|
+
trapped,
|
|
1653
|
+
container1,
|
|
1654
|
+
focusScope.paused
|
|
1655
|
+
]);
|
|
1756
1656
|
p$2(() => {
|
|
1757
1657
|
if (container1) {
|
|
1758
1658
|
$d3863c46a17e8a28$var$focusScopesStack.add(focusScope);
|
|
@@ -1785,7 +1685,12 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ N((props, forw
|
|
|
1785
1685
|
}, 0);
|
|
1786
1686
|
};
|
|
1787
1687
|
}
|
|
1788
|
-
}, [
|
|
1688
|
+
}, [
|
|
1689
|
+
container1,
|
|
1690
|
+
onMountAutoFocus,
|
|
1691
|
+
onUnmountAutoFocus,
|
|
1692
|
+
focusScope
|
|
1693
|
+
]);
|
|
1789
1694
|
const handleKeyDown = T$1((event) => {
|
|
1790
1695
|
if (!loop && !trapped)
|
|
1791
1696
|
return;
|
|
@@ -1816,7 +1721,11 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ N((props, forw
|
|
|
1816
1721
|
}
|
|
1817
1722
|
}
|
|
1818
1723
|
}
|
|
1819
|
-
}, [
|
|
1724
|
+
}, [
|
|
1725
|
+
loop,
|
|
1726
|
+
trapped,
|
|
1727
|
+
focusScope.paused
|
|
1728
|
+
]);
|
|
1820
1729
|
return /* @__PURE__ */ y$3($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
1821
1730
|
tabIndex: -1
|
|
1822
1731
|
}, scopeProps, {
|
|
@@ -1824,9 +1733,7 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ N((props, forw
|
|
|
1824
1733
|
onKeyDown: handleKeyDown
|
|
1825
1734
|
}));
|
|
1826
1735
|
});
|
|
1827
|
-
function $d3863c46a17e8a28$var$focusFirst(candidates, {
|
|
1828
|
-
select = false
|
|
1829
|
-
} = {}) {
|
|
1736
|
+
function $d3863c46a17e8a28$var$focusFirst(candidates, { select = false } = {}) {
|
|
1830
1737
|
const previouslyFocusedElement = document.activeElement;
|
|
1831
1738
|
for (const candidate of candidates) {
|
|
1832
1739
|
$d3863c46a17e8a28$var$focus(candidate, {
|
|
@@ -1840,7 +1747,10 @@ function $d3863c46a17e8a28$var$getTabbableEdges(container) {
|
|
|
1840
1747
|
const candidates = $d3863c46a17e8a28$var$getTabbableCandidates(container);
|
|
1841
1748
|
const first = $d3863c46a17e8a28$var$findVisible(candidates, container);
|
|
1842
1749
|
const last = $d3863c46a17e8a28$var$findVisible(candidates.reverse(), container);
|
|
1843
|
-
return [
|
|
1750
|
+
return [
|
|
1751
|
+
first,
|
|
1752
|
+
last
|
|
1753
|
+
];
|
|
1844
1754
|
}
|
|
1845
1755
|
function $d3863c46a17e8a28$var$getTabbableCandidates(container) {
|
|
1846
1756
|
const nodes = [];
|
|
@@ -1864,9 +1774,7 @@ function $d3863c46a17e8a28$var$findVisible(elements, container) {
|
|
|
1864
1774
|
return element;
|
|
1865
1775
|
}
|
|
1866
1776
|
}
|
|
1867
|
-
function $d3863c46a17e8a28$var$isHidden(node, {
|
|
1868
|
-
upTo
|
|
1869
|
-
}) {
|
|
1777
|
+
function $d3863c46a17e8a28$var$isHidden(node, { upTo }) {
|
|
1870
1778
|
if (getComputedStyle(node).visibility === "hidden")
|
|
1871
1779
|
return true;
|
|
1872
1780
|
while (node) {
|
|
@@ -1881,9 +1789,7 @@ function $d3863c46a17e8a28$var$isHidden(node, {
|
|
|
1881
1789
|
function $d3863c46a17e8a28$var$isSelectableInput(element) {
|
|
1882
1790
|
return element instanceof HTMLInputElement && "select" in element;
|
|
1883
1791
|
}
|
|
1884
|
-
function $d3863c46a17e8a28$var$focus(element, {
|
|
1885
|
-
select = false
|
|
1886
|
-
} = {}) {
|
|
1792
|
+
function $d3863c46a17e8a28$var$focus(element, { select = false } = {}) {
|
|
1887
1793
|
if (element && element.focus) {
|
|
1888
1794
|
const previouslyFocusedElement = document.activeElement;
|
|
1889
1795
|
element.focus({
|
|
@@ -1912,14 +1818,18 @@ function $d3863c46a17e8a28$var$createFocusScopesStack() {
|
|
|
1912
1818
|
};
|
|
1913
1819
|
}
|
|
1914
1820
|
function $d3863c46a17e8a28$var$arrayRemove(array, item) {
|
|
1915
|
-
const updatedArray = [
|
|
1821
|
+
const updatedArray = [
|
|
1822
|
+
...array
|
|
1823
|
+
];
|
|
1916
1824
|
const index2 = updatedArray.indexOf(item);
|
|
1917
1825
|
if (index2 !== -1)
|
|
1918
1826
|
updatedArray.splice(index2, 1);
|
|
1919
1827
|
return updatedArray;
|
|
1920
1828
|
}
|
|
1921
1829
|
function $d3863c46a17e8a28$var$removeLinks(items) {
|
|
1922
|
-
return items.filter(
|
|
1830
|
+
return items.filter(
|
|
1831
|
+
(item) => item.tagName !== "A"
|
|
1832
|
+
);
|
|
1923
1833
|
}
|
|
1924
1834
|
const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? y$1 : () => {
|
|
1925
1835
|
};
|
|
@@ -1929,8 +1839,12 @@ function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
|
|
|
1929
1839
|
const [id, setId] = h($1746a345f3d73bb7$var$useReactId());
|
|
1930
1840
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
1931
1841
|
if (!deterministicId)
|
|
1932
|
-
setId(
|
|
1933
|
-
|
|
1842
|
+
setId(
|
|
1843
|
+
(reactId) => reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
|
|
1844
|
+
);
|
|
1845
|
+
}, [
|
|
1846
|
+
deterministicId
|
|
1847
|
+
]);
|
|
1934
1848
|
return deterministicId || (id ? `radix-${id}` : "");
|
|
1935
1849
|
}
|
|
1936
1850
|
const sides = ["top", "right", "bottom", "left"];
|
|
@@ -3708,17 +3622,16 @@ function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
|
|
|
3708
3622
|
return () => resizeObserver.unobserve(element);
|
|
3709
3623
|
} else
|
|
3710
3624
|
setSize(void 0);
|
|
3711
|
-
}, [
|
|
3625
|
+
}, [
|
|
3626
|
+
element
|
|
3627
|
+
]);
|
|
3712
3628
|
return size2;
|
|
3713
3629
|
}
|
|
3714
3630
|
const $cf1ac5d9fe0e8206$var$POPPER_NAME = "Popper";
|
|
3715
3631
|
const [$cf1ac5d9fe0e8206$var$createPopperContext, $cf1ac5d9fe0e8206$export$722aac194ae923] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($cf1ac5d9fe0e8206$var$POPPER_NAME);
|
|
3716
3632
|
const [$cf1ac5d9fe0e8206$var$PopperProvider, $cf1ac5d9fe0e8206$var$usePopperContext] = $cf1ac5d9fe0e8206$var$createPopperContext($cf1ac5d9fe0e8206$var$POPPER_NAME);
|
|
3717
3633
|
const $cf1ac5d9fe0e8206$export$badac9ada3a0bdf9 = (props) => {
|
|
3718
|
-
const {
|
|
3719
|
-
__scopePopper,
|
|
3720
|
-
children
|
|
3721
|
-
} = props;
|
|
3634
|
+
const { __scopePopper, children } = props;
|
|
3722
3635
|
const [anchor, setAnchor] = h(null);
|
|
3723
3636
|
return /* @__PURE__ */ y$3($cf1ac5d9fe0e8206$var$PopperProvider, {
|
|
3724
3637
|
scope: __scopePopper,
|
|
@@ -3728,11 +3641,7 @@ const $cf1ac5d9fe0e8206$export$badac9ada3a0bdf9 = (props) => {
|
|
|
3728
3641
|
};
|
|
3729
3642
|
const $cf1ac5d9fe0e8206$var$ANCHOR_NAME = "PopperAnchor";
|
|
3730
3643
|
const $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d = /* @__PURE__ */ N((props, forwardedRef) => {
|
|
3731
|
-
const {
|
|
3732
|
-
__scopePopper,
|
|
3733
|
-
virtualRef,
|
|
3734
|
-
...anchorProps
|
|
3735
|
-
} = props;
|
|
3644
|
+
const { __scopePopper, virtualRef, ...anchorProps } = props;
|
|
3736
3645
|
const context = $cf1ac5d9fe0e8206$var$usePopperContext($cf1ac5d9fe0e8206$var$ANCHOR_NAME, __scopePopper);
|
|
3737
3646
|
const ref = _$2(null);
|
|
3738
3647
|
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, ref);
|
|
@@ -3747,25 +3656,13 @@ const $cf1ac5d9fe0e8206$var$CONTENT_NAME = "PopperContent";
|
|
|
3747
3656
|
const [$cf1ac5d9fe0e8206$var$PopperContentProvider, $cf1ac5d9fe0e8206$var$useContentContext] = $cf1ac5d9fe0e8206$var$createPopperContext($cf1ac5d9fe0e8206$var$CONTENT_NAME);
|
|
3748
3657
|
const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ N((props, forwardedRef) => {
|
|
3749
3658
|
var _arrowSize$width, _arrowSize$height, _middlewareData$arrow, _middlewareData$arrow2, _middlewareData$arrow3, _middlewareData$trans, _middlewareData$trans2, _middlewareData$hide;
|
|
3750
|
-
const {
|
|
3751
|
-
__scopePopper,
|
|
3752
|
-
side = "bottom",
|
|
3753
|
-
sideOffset = 0,
|
|
3754
|
-
align = "center",
|
|
3755
|
-
alignOffset = 0,
|
|
3756
|
-
arrowPadding = 0,
|
|
3757
|
-
avoidCollisions = true,
|
|
3758
|
-
collisionBoundary = [],
|
|
3759
|
-
collisionPadding: collisionPaddingProp = 0,
|
|
3760
|
-
sticky = "partial",
|
|
3761
|
-
hideWhenDetached = false,
|
|
3762
|
-
updatePositionStrategy = "optimized",
|
|
3763
|
-
onPlaced,
|
|
3764
|
-
...contentProps
|
|
3765
|
-
} = props;
|
|
3659
|
+
const { __scopePopper, side = "bottom", sideOffset = 0, align = "center", alignOffset = 0, arrowPadding = 0, avoidCollisions = true, collisionBoundary = [], collisionPadding: collisionPaddingProp = 0, sticky = "partial", hideWhenDetached = false, updatePositionStrategy = "optimized", onPlaced, ...contentProps } = props;
|
|
3766
3660
|
const context = $cf1ac5d9fe0e8206$var$usePopperContext($cf1ac5d9fe0e8206$var$CONTENT_NAME, __scopePopper);
|
|
3767
3661
|
const [content, setContent] = h(null);
|
|
3768
|
-
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(
|
|
3662
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(
|
|
3663
|
+
forwardedRef,
|
|
3664
|
+
(node) => setContent(node)
|
|
3665
|
+
);
|
|
3769
3666
|
const [arrow$12, setArrow] = h(null);
|
|
3770
3667
|
const arrowSize = $db6c3485150b8e66$export$1ab7ae714698c4b8(arrow$12);
|
|
3771
3668
|
const arrowWidth = (_arrowSize$width = arrowSize === null || arrowSize === void 0 ? void 0 : arrowSize.width) !== null && _arrowSize$width !== void 0 ? _arrowSize$width : 0;
|
|
@@ -3778,7 +3675,9 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ N((props, forwa
|
|
|
3778
3675
|
left: 0,
|
|
3779
3676
|
...collisionPaddingProp
|
|
3780
3677
|
};
|
|
3781
|
-
const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [
|
|
3678
|
+
const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [
|
|
3679
|
+
collisionBoundary
|
|
3680
|
+
];
|
|
3782
3681
|
const hasExplicitBoundaries = boundary.length > 0;
|
|
3783
3682
|
const detectOverflowOptions = {
|
|
3784
3683
|
padding: collisionPadding,
|
|
@@ -3786,13 +3685,7 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ N((props, forwa
|
|
|
3786
3685
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
3787
3686
|
altBoundary: hasExplicitBoundaries
|
|
3788
3687
|
};
|
|
3789
|
-
const {
|
|
3790
|
-
refs,
|
|
3791
|
-
floatingStyles,
|
|
3792
|
-
placement,
|
|
3793
|
-
isPositioned,
|
|
3794
|
-
middlewareData
|
|
3795
|
-
} = useFloating({
|
|
3688
|
+
const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({
|
|
3796
3689
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
3797
3690
|
strategy: "fixed",
|
|
3798
3691
|
placement: desiredPlacement,
|
|
@@ -3805,51 +3698,54 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ N((props, forwa
|
|
|
3805
3698
|
elements: {
|
|
3806
3699
|
reference: context.anchor
|
|
3807
3700
|
},
|
|
3808
|
-
middleware: [
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
availableHeight
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
width
|
|
3828
|
-
height
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3701
|
+
middleware: [
|
|
3702
|
+
offset({
|
|
3703
|
+
mainAxis: sideOffset + arrowHeight,
|
|
3704
|
+
alignmentAxis: alignOffset
|
|
3705
|
+
}),
|
|
3706
|
+
avoidCollisions && shift({
|
|
3707
|
+
mainAxis: true,
|
|
3708
|
+
crossAxis: false,
|
|
3709
|
+
limiter: sticky === "partial" ? limitShift() : void 0,
|
|
3710
|
+
...detectOverflowOptions
|
|
3711
|
+
}),
|
|
3712
|
+
avoidCollisions && flip({
|
|
3713
|
+
...detectOverflowOptions
|
|
3714
|
+
}),
|
|
3715
|
+
size({
|
|
3716
|
+
...detectOverflowOptions,
|
|
3717
|
+
apply: ({ elements, rects, availableWidth, availableHeight }) => {
|
|
3718
|
+
const { width: anchorWidth, height: anchorHeight } = rects.reference;
|
|
3719
|
+
const contentStyle = elements.floating.style;
|
|
3720
|
+
contentStyle.setProperty("--radix-popper-available-width", `${availableWidth}px`);
|
|
3721
|
+
contentStyle.setProperty("--radix-popper-available-height", `${availableHeight}px`);
|
|
3722
|
+
contentStyle.setProperty("--radix-popper-anchor-width", `${anchorWidth}px`);
|
|
3723
|
+
contentStyle.setProperty("--radix-popper-anchor-height", `${anchorHeight}px`);
|
|
3724
|
+
}
|
|
3725
|
+
}),
|
|
3726
|
+
arrow$12 && arrow({
|
|
3727
|
+
element: arrow$12,
|
|
3728
|
+
padding: arrowPadding
|
|
3729
|
+
}),
|
|
3730
|
+
$cf1ac5d9fe0e8206$var$transformOrigin({
|
|
3731
|
+
arrowWidth,
|
|
3732
|
+
arrowHeight
|
|
3733
|
+
}),
|
|
3734
|
+
hideWhenDetached && hide({
|
|
3735
|
+
strategy: "referenceHidden",
|
|
3736
|
+
...detectOverflowOptions
|
|
3737
|
+
})
|
|
3738
|
+
]
|
|
3846
3739
|
});
|
|
3847
3740
|
const [placedSide, placedAlign] = $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(placement);
|
|
3848
3741
|
const handlePlaced = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPlaced);
|
|
3849
3742
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
3850
3743
|
if (isPositioned)
|
|
3851
3744
|
handlePlaced === null || handlePlaced === void 0 || handlePlaced();
|
|
3852
|
-
}, [
|
|
3745
|
+
}, [
|
|
3746
|
+
isPositioned,
|
|
3747
|
+
handlePlaced
|
|
3748
|
+
]);
|
|
3853
3749
|
const arrowX = (_middlewareData$arrow = middlewareData.arrow) === null || _middlewareData$arrow === void 0 ? void 0 : _middlewareData$arrow.x;
|
|
3854
3750
|
const arrowY = (_middlewareData$arrow2 = middlewareData.arrow) === null || _middlewareData$arrow2 === void 0 ? void 0 : _middlewareData$arrow2.y;
|
|
3855
3751
|
const cannotCenterArrow = ((_middlewareData$arrow3 = middlewareData.arrow) === null || _middlewareData$arrow3 === void 0 ? void 0 : _middlewareData$arrow3.centerOffset) !== 0;
|
|
@@ -3857,7 +3753,9 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ N((props, forwa
|
|
|
3857
3753
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
3858
3754
|
if (content)
|
|
3859
3755
|
setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
3860
|
-
}, [
|
|
3756
|
+
}, [
|
|
3757
|
+
content
|
|
3758
|
+
]);
|
|
3861
3759
|
return /* @__PURE__ */ y$3("div", {
|
|
3862
3760
|
ref: refs.setFloating,
|
|
3863
3761
|
"data-radix-popper-content-wrapper": "",
|
|
@@ -3867,7 +3765,10 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ N((props, forwa
|
|
|
3867
3765
|
// keep off the page when measuring
|
|
3868
3766
|
minWidth: "max-content",
|
|
3869
3767
|
zIndex: contentZIndex,
|
|
3870
|
-
["--radix-popper-transform-origin"]: [
|
|
3768
|
+
["--radix-popper-transform-origin"]: [
|
|
3769
|
+
(_middlewareData$trans = middlewareData.transformOrigin) === null || _middlewareData$trans === void 0 ? void 0 : _middlewareData$trans.x,
|
|
3770
|
+
(_middlewareData$trans2 = middlewareData.transformOrigin) === null || _middlewareData$trans2 === void 0 ? void 0 : _middlewareData$trans2.y
|
|
3771
|
+
].join(" ")
|
|
3871
3772
|
},
|
|
3872
3773
|
dir: props.dir
|
|
3873
3774
|
}, /* @__PURE__ */ y$3($cf1ac5d9fe0e8206$var$PopperContentProvider, {
|
|
@@ -3900,11 +3801,7 @@ const $cf1ac5d9fe0e8206$var$transformOrigin = (options) => ({
|
|
|
3900
3801
|
options,
|
|
3901
3802
|
fn(data) {
|
|
3902
3803
|
var _middlewareData$arrow4, _middlewareData$arrow5, _middlewareData$arrow6, _middlewareData$arrow7, _middlewareData$arrow8;
|
|
3903
|
-
const {
|
|
3904
|
-
placement,
|
|
3905
|
-
rects,
|
|
3906
|
-
middlewareData
|
|
3907
|
-
} = data;
|
|
3804
|
+
const { placement, rects, middlewareData } = data;
|
|
3908
3805
|
const cannotCenterArrow = ((_middlewareData$arrow4 = middlewareData.arrow) === null || _middlewareData$arrow4 === void 0 ? void 0 : _middlewareData$arrow4.centerOffset) !== 0;
|
|
3909
3806
|
const isArrowHidden = cannotCenterArrow;
|
|
3910
3807
|
const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;
|
|
@@ -3942,17 +3839,17 @@ const $cf1ac5d9fe0e8206$var$transformOrigin = (options) => ({
|
|
|
3942
3839
|
});
|
|
3943
3840
|
function $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(placement) {
|
|
3944
3841
|
const [side, align = "center"] = placement.split("-");
|
|
3945
|
-
return [
|
|
3842
|
+
return [
|
|
3843
|
+
side,
|
|
3844
|
+
align
|
|
3845
|
+
];
|
|
3946
3846
|
}
|
|
3947
3847
|
const $cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9 = $cf1ac5d9fe0e8206$export$badac9ada3a0bdf9;
|
|
3948
3848
|
const $cf1ac5d9fe0e8206$export$b688253958b8dfe7 = $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d;
|
|
3949
3849
|
const $cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2 = $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc;
|
|
3950
3850
|
const $f1701beae083dbae$export$602eac185826482c = /* @__PURE__ */ N((props, forwardedRef) => {
|
|
3951
3851
|
var _globalThis$document;
|
|
3952
|
-
const {
|
|
3953
|
-
container = globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : _globalThis$document.body,
|
|
3954
|
-
...portalProps
|
|
3955
|
-
} = props;
|
|
3852
|
+
const { container = globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : _globalThis$document.body, ...portalProps } = props;
|
|
3956
3853
|
return container ? /* @__PURE__ */ wn.createPortal(/* @__PURE__ */ y$3($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, portalProps, {
|
|
3957
3854
|
ref: forwardedRef
|
|
3958
3855
|
})), container) : null;
|
|
@@ -3964,10 +3861,7 @@ function $fe963b355347cc68$export$3e6543de14f8614f(initialState, machine) {
|
|
|
3964
3861
|
}, initialState);
|
|
3965
3862
|
}
|
|
3966
3863
|
const $921a889cee6df7e8$export$99c2b779aa4e8b8b = (props) => {
|
|
3967
|
-
const {
|
|
3968
|
-
present,
|
|
3969
|
-
children
|
|
3970
|
-
} = props;
|
|
3864
|
+
const { present, children } = props;
|
|
3971
3865
|
const presence = $921a889cee6df7e8$var$usePresence(present);
|
|
3972
3866
|
const child = typeof children === "function" ? children({
|
|
3973
3867
|
present: presence.isPresent
|
|
@@ -4001,7 +3895,9 @@ function $921a889cee6df7e8$var$usePresence(present) {
|
|
|
4001
3895
|
p$2(() => {
|
|
4002
3896
|
const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
|
|
4003
3897
|
prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
|
|
4004
|
-
}, [
|
|
3898
|
+
}, [
|
|
3899
|
+
state
|
|
3900
|
+
]);
|
|
4005
3901
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
4006
3902
|
const styles = stylesRef.current;
|
|
4007
3903
|
const wasPresent = prevPresentRef.current;
|
|
@@ -4022,14 +3918,19 @@ function $921a889cee6df7e8$var$usePresence(present) {
|
|
|
4022
3918
|
}
|
|
4023
3919
|
prevPresentRef.current = present;
|
|
4024
3920
|
}
|
|
4025
|
-
}, [
|
|
3921
|
+
}, [
|
|
3922
|
+
present,
|
|
3923
|
+
send
|
|
3924
|
+
]);
|
|
4026
3925
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
4027
3926
|
if (node1) {
|
|
4028
3927
|
const handleAnimationEnd = (event) => {
|
|
4029
3928
|
const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current);
|
|
4030
3929
|
const isCurrentAnimation = currentAnimationName.includes(event.animationName);
|
|
4031
3930
|
if (event.target === node1 && isCurrentAnimation)
|
|
4032
|
-
pn(
|
|
3931
|
+
pn(
|
|
3932
|
+
() => send("ANIMATION_END")
|
|
3933
|
+
);
|
|
4033
3934
|
};
|
|
4034
3935
|
const handleAnimationStart = (event) => {
|
|
4035
3936
|
if (event.target === node1)
|
|
@@ -4045,9 +3946,15 @@ function $921a889cee6df7e8$var$usePresence(present) {
|
|
|
4045
3946
|
};
|
|
4046
3947
|
} else
|
|
4047
3948
|
send("ANIMATION_END");
|
|
4048
|
-
}, [
|
|
3949
|
+
}, [
|
|
3950
|
+
node1,
|
|
3951
|
+
send
|
|
3952
|
+
]);
|
|
4049
3953
|
return {
|
|
4050
|
-
isPresent: [
|
|
3954
|
+
isPresent: [
|
|
3955
|
+
"mounted",
|
|
3956
|
+
"unmountSuspended"
|
|
3957
|
+
].includes(state),
|
|
4051
3958
|
ref: T$1((node) => {
|
|
4052
3959
|
if (node)
|
|
4053
3960
|
stylesRef.current = getComputedStyle(node);
|
|
@@ -4058,12 +3965,8 @@ function $921a889cee6df7e8$var$usePresence(present) {
|
|
|
4058
3965
|
function $921a889cee6df7e8$var$getAnimationName(styles) {
|
|
4059
3966
|
return (styles === null || styles === void 0 ? void 0 : styles.animationName) || "none";
|
|
4060
3967
|
}
|
|
4061
|
-
function $71cd76cc60e0454e$export$6f32135080cb4c3({
|
|
4062
|
-
|
|
4063
|
-
defaultProp,
|
|
4064
|
-
onChange = () => {
|
|
4065
|
-
}
|
|
4066
|
-
}) {
|
|
3968
|
+
function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop, defaultProp, onChange = () => {
|
|
3969
|
+
} }) {
|
|
4067
3970
|
const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState({
|
|
4068
3971
|
defaultProp,
|
|
4069
3972
|
onChange
|
|
@@ -4079,13 +3982,18 @@ function $71cd76cc60e0454e$export$6f32135080cb4c3({
|
|
|
4079
3982
|
handleChange(value);
|
|
4080
3983
|
} else
|
|
4081
3984
|
setUncontrolledProp(nextValue);
|
|
4082
|
-
}, [
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
3985
|
+
}, [
|
|
3986
|
+
isControlled,
|
|
3987
|
+
prop,
|
|
3988
|
+
setUncontrolledProp,
|
|
3989
|
+
handleChange
|
|
3990
|
+
]);
|
|
3991
|
+
return [
|
|
3992
|
+
value1,
|
|
3993
|
+
setValue
|
|
3994
|
+
];
|
|
3995
|
+
}
|
|
3996
|
+
function $71cd76cc60e0454e$var$useUncontrolledState({ defaultProp, onChange }) {
|
|
4089
3997
|
const uncontrolledState = h(defaultProp);
|
|
4090
3998
|
const [value] = uncontrolledState;
|
|
4091
3999
|
const prevValueRef = _$2(value);
|
|
@@ -4095,7 +4003,11 @@ function $71cd76cc60e0454e$var$useUncontrolledState({
|
|
|
4095
4003
|
handleChange(value);
|
|
4096
4004
|
prevValueRef.current = value;
|
|
4097
4005
|
}
|
|
4098
|
-
}, [
|
|
4006
|
+
}, [
|
|
4007
|
+
value,
|
|
4008
|
+
prevValueRef,
|
|
4009
|
+
handleChange
|
|
4010
|
+
]);
|
|
4099
4011
|
return uncontrolledState;
|
|
4100
4012
|
}
|
|
4101
4013
|
var getDefaultParent = function(originalTarget) {
|
|
@@ -4377,10 +4289,7 @@ function createSidecarMedium(options) {
|
|
|
4377
4289
|
options = {};
|
|
4378
4290
|
}
|
|
4379
4291
|
var medium = innerCreateMedium(null);
|
|
4380
|
-
medium.options = __assign({
|
|
4381
|
-
async: true,
|
|
4382
|
-
ssr: false
|
|
4383
|
-
}, options);
|
|
4292
|
+
medium.options = __assign({ async: true, ssr: false }, options);
|
|
4384
4293
|
return medium;
|
|
4385
4294
|
}
|
|
4386
4295
|
var SideCar$1 = function(_a) {
|
|
@@ -4414,21 +4323,12 @@ var RemoveScroll = N(function(props, parentRef) {
|
|
|
4414
4323
|
var SideCar2 = sideCar;
|
|
4415
4324
|
var containerRef = useMergeRefs([ref, parentRef]);
|
|
4416
4325
|
var containerProps = __assign(__assign({}, rest), callbacks);
|
|
4417
|
-
return y$3(
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
shards,
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
setCallbacks,
|
|
4424
|
-
allowPinchZoom: !!allowPinchZoom,
|
|
4425
|
-
lockRef: ref
|
|
4426
|
-
}), forwardProps ? sn(A.only(children), __assign(__assign({}, containerProps), {
|
|
4427
|
-
ref: containerRef
|
|
4428
|
-
})) : y$3(Container, __assign({}, containerProps, {
|
|
4429
|
-
className,
|
|
4430
|
-
ref: containerRef
|
|
4431
|
-
}), children));
|
|
4326
|
+
return y$3(
|
|
4327
|
+
g$4,
|
|
4328
|
+
null,
|
|
4329
|
+
enabled && y$3(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref }),
|
|
4330
|
+
forwardProps ? sn(A.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : y$3(Container, __assign({}, containerProps, { className, ref: containerRef }), children)
|
|
4331
|
+
);
|
|
4432
4332
|
});
|
|
4433
4333
|
RemoveScroll.defaultProps = {
|
|
4434
4334
|
enabled: true,
|
|
@@ -4548,16 +4448,18 @@ var getStyles = function(_a, allowRelative, gapMode, important) {
|
|
|
4548
4448
|
if (gapMode === void 0) {
|
|
4549
4449
|
gapMode = "margin";
|
|
4550
4450
|
}
|
|
4551
|
-
return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
|
|
4451
|
+
return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
|
|
4452
|
+
allowRelative && "position: relative ".concat(important, ";"),
|
|
4453
|
+
gapMode === "margin" && "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
|
|
4454
|
+
gapMode === "padding" && "padding-right: ".concat(gap, "px ").concat(important, ";")
|
|
4455
|
+
].filter(Boolean).join(""), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
|
|
4552
4456
|
};
|
|
4553
4457
|
var RemoveScrollBar = function(props) {
|
|
4554
4458
|
var noRelative = props.noRelative, noImportant = props.noImportant, _a = props.gapMode, gapMode = _a === void 0 ? "margin" : _a;
|
|
4555
4459
|
var gap = F$1(function() {
|
|
4556
4460
|
return getGapWidth(gapMode);
|
|
4557
4461
|
}, [gapMode]);
|
|
4558
|
-
return y$3(Style, {
|
|
4559
|
-
styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "")
|
|
4560
|
-
});
|
|
4462
|
+
return y$3(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
|
|
4561
4463
|
};
|
|
4562
4464
|
var passiveSupported = false;
|
|
4563
4465
|
if (typeof window !== "undefined") {
|
|
@@ -4574,9 +4476,7 @@ if (typeof window !== "undefined") {
|
|
|
4574
4476
|
passiveSupported = false;
|
|
4575
4477
|
}
|
|
4576
4478
|
}
|
|
4577
|
-
var nonPassive = passiveSupported ? {
|
|
4578
|
-
passive: false
|
|
4579
|
-
} : false;
|
|
4479
|
+
var nonPassive = passiveSupported ? { passive: false } : false;
|
|
4580
4480
|
var alwaysContainsScroll = function(node) {
|
|
4581
4481
|
return node.tagName === "TEXTAREA";
|
|
4582
4482
|
};
|
|
@@ -4613,11 +4513,19 @@ var locationCouldBeScrolled = function(axis, node) {
|
|
|
4613
4513
|
};
|
|
4614
4514
|
var getVScrollVariables = function(_a) {
|
|
4615
4515
|
var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
|
|
4616
|
-
return [
|
|
4516
|
+
return [
|
|
4517
|
+
scrollTop,
|
|
4518
|
+
scrollHeight,
|
|
4519
|
+
clientHeight
|
|
4520
|
+
];
|
|
4617
4521
|
};
|
|
4618
4522
|
var getHScrollVariables = function(_a) {
|
|
4619
4523
|
var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
|
|
4620
|
-
return [
|
|
4524
|
+
return [
|
|
4525
|
+
scrollLeft,
|
|
4526
|
+
scrollWidth,
|
|
4527
|
+
clientWidth
|
|
4528
|
+
];
|
|
4621
4529
|
};
|
|
4622
4530
|
var elementCouldBeScrolled = function(axis, node) {
|
|
4623
4531
|
return axis === "v" ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
|
|
@@ -4768,12 +4676,7 @@ function RemoveScrollSideCar(props) {
|
|
|
4768
4676
|
}
|
|
4769
4677
|
}, []);
|
|
4770
4678
|
var shouldCancel = T$1(function(name, delta, target, should) {
|
|
4771
|
-
var event = {
|
|
4772
|
-
name,
|
|
4773
|
-
delta,
|
|
4774
|
-
target,
|
|
4775
|
-
should
|
|
4776
|
-
};
|
|
4679
|
+
var event = { name, delta, target, should };
|
|
4777
4680
|
shouldPreventQueue.current.push(event);
|
|
4778
4681
|
setTimeout(function() {
|
|
4779
4682
|
shouldPreventQueue.current = shouldPreventQueue.current.filter(function(e2) {
|
|
@@ -4811,34 +4714,27 @@ function RemoveScrollSideCar(props) {
|
|
|
4811
4714
|
};
|
|
4812
4715
|
}, []);
|
|
4813
4716
|
var removeScrollBar = props.removeScrollBar, inert = props.inert;
|
|
4814
|
-
return y$3(
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4717
|
+
return y$3(
|
|
4718
|
+
g$4,
|
|
4719
|
+
null,
|
|
4720
|
+
inert ? y$3(Style2, { styles: generateStyle(id) }) : null,
|
|
4721
|
+
removeScrollBar ? y$3(RemoveScrollBar, { gapMode: "margin" }) : null
|
|
4722
|
+
);
|
|
4819
4723
|
}
|
|
4820
4724
|
const SideCar = exportSidecar(effectCar, RemoveScrollSideCar);
|
|
4821
4725
|
var ReactRemoveScroll = N(function(props, ref) {
|
|
4822
|
-
return y$3(RemoveScroll, __assign({}, props, {
|
|
4823
|
-
ref,
|
|
4824
|
-
sideCar: SideCar
|
|
4825
|
-
}));
|
|
4726
|
+
return y$3(RemoveScroll, __assign({}, props, { ref, sideCar: SideCar }));
|
|
4826
4727
|
});
|
|
4827
4728
|
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
4828
4729
|
const $am6gm$RemoveScroll = ReactRemoveScroll;
|
|
4829
4730
|
const $cb5cc270b50c6fcd$var$POPOVER_NAME = "Popover";
|
|
4830
|
-
const [$cb5cc270b50c6fcd$var$createPopoverContext, $cb5cc270b50c6fcd$export$c8393c9e73286932] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($cb5cc270b50c6fcd$var$POPOVER_NAME, [
|
|
4731
|
+
const [$cb5cc270b50c6fcd$var$createPopoverContext, $cb5cc270b50c6fcd$export$c8393c9e73286932] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($cb5cc270b50c6fcd$var$POPOVER_NAME, [
|
|
4732
|
+
$cf1ac5d9fe0e8206$export$722aac194ae923
|
|
4733
|
+
]);
|
|
4831
4734
|
const $cb5cc270b50c6fcd$var$usePopperScope = $cf1ac5d9fe0e8206$export$722aac194ae923();
|
|
4832
4735
|
const [$cb5cc270b50c6fcd$var$PopoverProvider, $cb5cc270b50c6fcd$var$usePopoverContext] = $cb5cc270b50c6fcd$var$createPopoverContext($cb5cc270b50c6fcd$var$POPOVER_NAME);
|
|
4833
4736
|
const $cb5cc270b50c6fcd$export$5b6b19405a83ff9d = (props) => {
|
|
4834
|
-
const {
|
|
4835
|
-
__scopePopover,
|
|
4836
|
-
children,
|
|
4837
|
-
open: openProp,
|
|
4838
|
-
defaultOpen,
|
|
4839
|
-
onOpenChange,
|
|
4840
|
-
modal = false
|
|
4841
|
-
} = props;
|
|
4737
|
+
const { __scopePopover, children, open: openProp, defaultOpen, onOpenChange, modal = false } = props;
|
|
4842
4738
|
const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);
|
|
4843
4739
|
const triggerRef = _$2(null);
|
|
4844
4740
|
const [hasCustomAnchor, setHasCustomAnchor] = h(false);
|
|
@@ -4853,19 +4749,29 @@ const $cb5cc270b50c6fcd$export$5b6b19405a83ff9d = (props) => {
|
|
|
4853
4749
|
triggerRef,
|
|
4854
4750
|
open,
|
|
4855
4751
|
onOpenChange: setOpen,
|
|
4856
|
-
onOpenToggle: T$1(
|
|
4752
|
+
onOpenToggle: T$1(
|
|
4753
|
+
() => setOpen(
|
|
4754
|
+
(prevOpen) => !prevOpen
|
|
4755
|
+
),
|
|
4756
|
+
[
|
|
4757
|
+
setOpen
|
|
4758
|
+
]
|
|
4759
|
+
),
|
|
4857
4760
|
hasCustomAnchor,
|
|
4858
|
-
onCustomAnchorAdd: T$1(
|
|
4859
|
-
|
|
4761
|
+
onCustomAnchorAdd: T$1(
|
|
4762
|
+
() => setHasCustomAnchor(true),
|
|
4763
|
+
[]
|
|
4764
|
+
),
|
|
4765
|
+
onCustomAnchorRemove: T$1(
|
|
4766
|
+
() => setHasCustomAnchor(false),
|
|
4767
|
+
[]
|
|
4768
|
+
),
|
|
4860
4769
|
modal
|
|
4861
4770
|
}, children));
|
|
4862
4771
|
};
|
|
4863
4772
|
const $cb5cc270b50c6fcd$var$TRIGGER_NAME = "PopoverTrigger";
|
|
4864
4773
|
const $cb5cc270b50c6fcd$export$7dacb05d26466c3 = /* @__PURE__ */ N((props, forwardedRef) => {
|
|
4865
|
-
const {
|
|
4866
|
-
__scopePopover,
|
|
4867
|
-
...triggerProps
|
|
4868
|
-
} = props;
|
|
4774
|
+
const { __scopePopover, ...triggerProps } = props;
|
|
4869
4775
|
const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$TRIGGER_NAME, __scopePopover);
|
|
4870
4776
|
const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);
|
|
4871
4777
|
const composedTriggerRef = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.triggerRef);
|
|
@@ -4888,12 +4794,7 @@ const [$cb5cc270b50c6fcd$var$PortalProvider, $cb5cc270b50c6fcd$var$usePortalCont
|
|
|
4888
4794
|
forceMount: void 0
|
|
4889
4795
|
});
|
|
4890
4796
|
const $cb5cc270b50c6fcd$export$dd679ffb4362d2d4 = (props) => {
|
|
4891
|
-
const {
|
|
4892
|
-
__scopePopover,
|
|
4893
|
-
forceMount,
|
|
4894
|
-
children,
|
|
4895
|
-
container
|
|
4896
|
-
} = props;
|
|
4797
|
+
const { __scopePopover, forceMount, children, container } = props;
|
|
4897
4798
|
const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$PORTAL_NAME, __scopePopover);
|
|
4898
4799
|
return /* @__PURE__ */ y$3($cb5cc270b50c6fcd$var$PortalProvider, {
|
|
4899
4800
|
scope: __scopePopover,
|
|
@@ -4908,10 +4809,7 @@ const $cb5cc270b50c6fcd$export$dd679ffb4362d2d4 = (props) => {
|
|
|
4908
4809
|
const $cb5cc270b50c6fcd$var$CONTENT_NAME = "PopoverContent";
|
|
4909
4810
|
const $cb5cc270b50c6fcd$export$d7e1f420b25549ff = /* @__PURE__ */ N((props, forwardedRef) => {
|
|
4910
4811
|
const portalContext = $cb5cc270b50c6fcd$var$usePortalContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);
|
|
4911
|
-
const {
|
|
4912
|
-
forceMount = portalContext.forceMount,
|
|
4913
|
-
...contentProps
|
|
4914
|
-
} = props;
|
|
4812
|
+
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
4915
4813
|
const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);
|
|
4916
4814
|
return /* @__PURE__ */ y$3($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
4917
4815
|
present: forceMount || context.open
|
|
@@ -4952,9 +4850,13 @@ const $cb5cc270b50c6fcd$var$PopoverContentModal = /* @__PURE__ */ N((props, forw
|
|
|
4952
4850
|
}, {
|
|
4953
4851
|
checkForDefaultPrevented: false
|
|
4954
4852
|
}),
|
|
4955
|
-
onFocusOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(
|
|
4956
|
-
|
|
4957
|
-
|
|
4853
|
+
onFocusOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(
|
|
4854
|
+
props.onFocusOutside,
|
|
4855
|
+
(event) => event.preventDefault(),
|
|
4856
|
+
{
|
|
4857
|
+
checkForDefaultPrevented: false
|
|
4858
|
+
}
|
|
4859
|
+
)
|
|
4958
4860
|
})));
|
|
4959
4861
|
});
|
|
4960
4862
|
const $cb5cc270b50c6fcd$var$PopoverContentNonModal = /* @__PURE__ */ N((props, forwardedRef) => {
|
|
@@ -4995,18 +4897,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentNonModal = /* @__PURE__ */ N((props, f
|
|
|
4995
4897
|
}));
|
|
4996
4898
|
});
|
|
4997
4899
|
const $cb5cc270b50c6fcd$var$PopoverContentImpl = /* @__PURE__ */ N((props, forwardedRef) => {
|
|
4998
|
-
const {
|
|
4999
|
-
__scopePopover,
|
|
5000
|
-
trapFocus,
|
|
5001
|
-
onOpenAutoFocus,
|
|
5002
|
-
onCloseAutoFocus,
|
|
5003
|
-
disableOutsidePointerEvents,
|
|
5004
|
-
onEscapeKeyDown,
|
|
5005
|
-
onPointerDownOutside,
|
|
5006
|
-
onFocusOutside,
|
|
5007
|
-
onInteractOutside,
|
|
5008
|
-
...contentProps
|
|
5009
|
-
} = props;
|
|
4900
|
+
const { __scopePopover, trapFocus, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, ...contentProps } = props;
|
|
5010
4901
|
const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, __scopePopover);
|
|
5011
4902
|
const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);
|
|
5012
4903
|
$3db38b7d1fb3fe6a$export$b7ece24a22aeda8c();
|
|
@@ -5105,16 +4996,7 @@ function c(i2) {
|
|
|
5105
4996
|
if (void 0 !== o) {
|
|
5106
4997
|
var t2 = i2.n;
|
|
5107
4998
|
if (void 0 === t2 || t2.t !== o) {
|
|
5108
|
-
t2 = {
|
|
5109
|
-
i: 0,
|
|
5110
|
-
S: i2,
|
|
5111
|
-
p: o.s,
|
|
5112
|
-
n: void 0,
|
|
5113
|
-
t: o,
|
|
5114
|
-
e: void 0,
|
|
5115
|
-
x: void 0,
|
|
5116
|
-
r: t2
|
|
5117
|
-
};
|
|
4999
|
+
t2 = { i: 0, S: i2, p: o.s, n: void 0, t: o, e: void 0, x: void 0, r: t2 };
|
|
5118
5000
|
if (void 0 !== o.s)
|
|
5119
5001
|
o.s.n = t2;
|
|
5120
5002
|
o.s = t2;
|
|
@@ -5194,34 +5076,31 @@ d$1.prototype.toJSON = function() {
|
|
|
5194
5076
|
d$1.prototype.peek = function() {
|
|
5195
5077
|
return this.v;
|
|
5196
5078
|
};
|
|
5197
|
-
Object.defineProperty(d$1.prototype, "value", {
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
} finally {
|
|
5220
|
-
r();
|
|
5221
|
-
}
|
|
5079
|
+
Object.defineProperty(d$1.prototype, "value", { get: function() {
|
|
5080
|
+
var i2 = c(this);
|
|
5081
|
+
if (void 0 !== i2)
|
|
5082
|
+
i2.i = this.i;
|
|
5083
|
+
return this.v;
|
|
5084
|
+
}, set: function(t2) {
|
|
5085
|
+
if (o instanceof _$1)
|
|
5086
|
+
!function() {
|
|
5087
|
+
throw new Error("Computed cannot have side-effects");
|
|
5088
|
+
}();
|
|
5089
|
+
if (t2 !== this.v) {
|
|
5090
|
+
if (e > 100)
|
|
5091
|
+
i();
|
|
5092
|
+
this.v = t2;
|
|
5093
|
+
this.i++;
|
|
5094
|
+
u++;
|
|
5095
|
+
v++;
|
|
5096
|
+
try {
|
|
5097
|
+
for (var n2 = this.t; void 0 !== n2; n2 = n2.x)
|
|
5098
|
+
n2.t.N();
|
|
5099
|
+
} finally {
|
|
5100
|
+
r();
|
|
5222
5101
|
}
|
|
5223
5102
|
}
|
|
5224
|
-
});
|
|
5103
|
+
} });
|
|
5225
5104
|
function a(i2) {
|
|
5226
5105
|
return new d$1(i2);
|
|
5227
5106
|
}
|
|
@@ -5337,19 +5216,17 @@ _$1.prototype.peek = function() {
|
|
|
5337
5216
|
throw this.v;
|
|
5338
5217
|
return this.v;
|
|
5339
5218
|
};
|
|
5340
|
-
Object.defineProperty(_$1.prototype, "value", {
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
}
|
|
5352
|
-
});
|
|
5219
|
+
Object.defineProperty(_$1.prototype, "value", { get: function() {
|
|
5220
|
+
if (1 & this.f)
|
|
5221
|
+
i();
|
|
5222
|
+
var t2 = c(this);
|
|
5223
|
+
this.h();
|
|
5224
|
+
if (void 0 !== t2)
|
|
5225
|
+
t2.i = this.i;
|
|
5226
|
+
if (16 & this.f)
|
|
5227
|
+
throw this.v;
|
|
5228
|
+
return this.v;
|
|
5229
|
+
} });
|
|
5353
5230
|
function p$1(i2) {
|
|
5354
5231
|
return new _$1(i2);
|
|
5355
5232
|
}
|
|
@@ -5482,28 +5359,9 @@ function p(n2) {
|
|
|
5482
5359
|
return e2.value;
|
|
5483
5360
|
}
|
|
5484
5361
|
p.displayName = "_st";
|
|
5485
|
-
Object.defineProperties(d$1.prototype, {
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
value: void 0
|
|
5489
|
-
},
|
|
5490
|
-
type: {
|
|
5491
|
-
configurable: true,
|
|
5492
|
-
value: p
|
|
5493
|
-
},
|
|
5494
|
-
props: {
|
|
5495
|
-
configurable: true,
|
|
5496
|
-
get: function() {
|
|
5497
|
-
return {
|
|
5498
|
-
data: this
|
|
5499
|
-
};
|
|
5500
|
-
}
|
|
5501
|
-
},
|
|
5502
|
-
__b: {
|
|
5503
|
-
configurable: true,
|
|
5504
|
-
value: 1
|
|
5505
|
-
}
|
|
5506
|
-
});
|
|
5362
|
+
Object.defineProperties(d$1.prototype, { constructor: { configurable: true, value: void 0 }, type: { configurable: true, value: p }, props: { configurable: true, get: function() {
|
|
5363
|
+
return { data: this };
|
|
5364
|
+
} }, __b: { configurable: true, value: 1 } });
|
|
5507
5365
|
l("__b", function(n2, r2) {
|
|
5508
5366
|
if ("string" == typeof r2.type) {
|
|
5509
5367
|
var i2, t2 = r2.props;
|
|
@@ -5576,24 +5434,21 @@ l("diffed", function(n2, r2) {
|
|
|
5576
5434
|
});
|
|
5577
5435
|
function _(n2, r2, i2, t2) {
|
|
5578
5436
|
var f2 = r2 in n2 && void 0 === n2.ownerSVGElement, o2 = a(i2);
|
|
5579
|
-
return {
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
if (
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
}
|
|
5595
|
-
})
|
|
5596
|
-
};
|
|
5437
|
+
return { o: function(n3, r3) {
|
|
5438
|
+
o2.value = n3;
|
|
5439
|
+
t2 = r3;
|
|
5440
|
+
}, d: O(function() {
|
|
5441
|
+
var i3 = o2.value.value;
|
|
5442
|
+
if (t2[r2] !== i3) {
|
|
5443
|
+
t2[r2] = i3;
|
|
5444
|
+
if (f2)
|
|
5445
|
+
n2[r2] = i3;
|
|
5446
|
+
else if (i3)
|
|
5447
|
+
n2.setAttribute(r2, i3);
|
|
5448
|
+
else
|
|
5449
|
+
n2.removeAttribute(r2);
|
|
5450
|
+
}
|
|
5451
|
+
}) };
|
|
5597
5452
|
}
|
|
5598
5453
|
l("unmount", function(n2, r2) {
|
|
5599
5454
|
if ("string" == typeof r2.type) {
|
|
@@ -5694,7 +5549,9 @@ var getPaletteColor = (hueAngle, chromaMultipler = 1, mode) => (i2) => {
|
|
|
5694
5549
|
};
|
|
5695
5550
|
var generatePalette = (params) => {
|
|
5696
5551
|
const getColor = getPaletteColor(params.hue, params.chroma, params.mode);
|
|
5697
|
-
return Object.fromEntries(
|
|
5552
|
+
return Object.fromEntries(
|
|
5553
|
+
COLOR_SHADES.map((level) => [params.prefix + level, params.transform(getColor(level))])
|
|
5554
|
+
);
|
|
5698
5555
|
};
|
|
5699
5556
|
var sameAsInput = (input) => input;
|
|
5700
5557
|
var flatten = (obj) => {
|
|
@@ -5722,16 +5579,12 @@ var mergeDeep = (target, ...sources) => {
|
|
|
5722
5579
|
const newSource = source[key];
|
|
5723
5580
|
if (isObject(newSource)) {
|
|
5724
5581
|
if (!target[key])
|
|
5725
|
-
Object.assign(target, {
|
|
5726
|
-
[key]: {}
|
|
5727
|
-
});
|
|
5582
|
+
Object.assign(target, { [key]: {} });
|
|
5728
5583
|
const newTarget = target[key];
|
|
5729
5584
|
if (isObject(newTarget))
|
|
5730
5585
|
mergeDeep(newTarget, newSource);
|
|
5731
5586
|
} else {
|
|
5732
|
-
Object.assign(target, {
|
|
5733
|
-
[key]: source[key]
|
|
5734
|
-
});
|
|
5587
|
+
Object.assign(target, { [key]: source[key] });
|
|
5735
5588
|
}
|
|
5736
5589
|
}
|
|
5737
5590
|
}
|
|
@@ -5750,29 +5603,15 @@ var designTokens = () => {
|
|
|
5750
5603
|
semantic: (semanticFn) => ({
|
|
5751
5604
|
component: (componentFn) => ({
|
|
5752
5605
|
from: (config) => {
|
|
5753
|
-
const {
|
|
5754
|
-
theme,
|
|
5755
|
-
getToken
|
|
5756
|
-
} = config;
|
|
5606
|
+
const { theme, getToken } = config;
|
|
5757
5607
|
const getRef = (path) => getToken("reference", path.toString());
|
|
5758
|
-
const core = coreFn({
|
|
5759
|
-
|
|
5760
|
-
});
|
|
5761
|
-
const semantic = semanticFn({
|
|
5762
|
-
theme,
|
|
5763
|
-
core: getRef,
|
|
5764
|
-
raw: {
|
|
5765
|
-
core
|
|
5766
|
-
}
|
|
5767
|
-
});
|
|
5608
|
+
const core = coreFn({ theme });
|
|
5609
|
+
const semantic = semanticFn({ theme, core: getRef, raw: { core } });
|
|
5768
5610
|
const component = componentFn({
|
|
5769
5611
|
theme,
|
|
5770
5612
|
core: getRef,
|
|
5771
5613
|
semantic: getRef,
|
|
5772
|
-
raw: {
|
|
5773
|
-
core,
|
|
5774
|
-
semantic
|
|
5775
|
-
}
|
|
5614
|
+
raw: { core, semantic }
|
|
5776
5615
|
});
|
|
5777
5616
|
const values = flatten(mergeDeep(core, semantic, component));
|
|
5778
5617
|
const unwrapToken = ([key, value], baseKey) => {
|