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