@inploi/plugin-feedback 6.1.1 → 6.3.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 +12 -13
- package/dist/index.d.cts +182 -0
- package/dist/index.d.ts +182 -2
- package/dist/plugin-feedback.cjs +402 -535
- package/dist/plugin-feedback.js +402 -535
- package/package.json +17 -11
- package/dist/components/feedback-widget.d.ts +0 -13
- package/dist/components/feedback-widget.test.d.ts +0 -1
- package/dist/components/icon.d.ts +0 -19
- package/dist/feedback.constants.d.ts +0 -1
- package/dist/feedback.d.ts +0 -72
- package/dist/feedback.dev.d.ts +0 -1
- package/dist/i18n.d.ts +0 -97
- package/dist/index.cdn.d.ts +0 -9
- package/dist/mocks/browser.d.ts +0 -1
- package/dist/mocks/handlers.d.ts +0 -1
- package/dist/style/theme.d.ts +0 -7
- package/dist/style/tokens.d.ts +0 -102
- package/dist/style/tokens.test.d.ts +0 -1
package/dist/plugin-feedback.cjs
CHANGED
|
@@ -9,8 +9,7 @@ function invariant(condition, message) {
|
|
|
9
9
|
}
|
|
10
10
|
var n, l$2, u$3, i$2, r$4, o$2, e$1, f$3, c$2, s$2, a$2, h$2, p$2 = {}, v$2 = [], y$2 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, d$2 = Array.isArray;
|
|
11
11
|
function w$3(n2, l2) {
|
|
12
|
-
for (var u2 in l2)
|
|
13
|
-
n2[u2] = l2[u2];
|
|
12
|
+
for (var u2 in l2) n2[u2] = l2[u2];
|
|
14
13
|
return n2;
|
|
15
14
|
}
|
|
16
15
|
function g$3(n2) {
|
|
@@ -18,11 +17,8 @@ function g$3(n2) {
|
|
|
18
17
|
}
|
|
19
18
|
function _$2(l2, u2, t2) {
|
|
20
19
|
var i2, r2, o2, e2 = {};
|
|
21
|
-
for (o2 in u2)
|
|
22
|
-
|
|
23
|
-
if (arguments.length > 2 && (e2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps)
|
|
24
|
-
for (o2 in l2.defaultProps)
|
|
25
|
-
void 0 === e2[o2] && (e2[o2] = l2.defaultProps[o2]);
|
|
20
|
+
for (o2 in u2) "key" == o2 ? i2 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : e2[o2] = u2[o2];
|
|
21
|
+
if (arguments.length > 2 && (e2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps) for (o2 in l2.defaultProps) void 0 === e2[o2] && (e2[o2] = l2.defaultProps[o2]);
|
|
26
22
|
return m$2(l2, e2, i2, r2, null);
|
|
27
23
|
}
|
|
28
24
|
function m$2(n2, t2, i2, r2, o2) {
|
|
@@ -39,11 +35,8 @@ function x$3(n2, l2) {
|
|
|
39
35
|
this.props = n2, this.context = l2;
|
|
40
36
|
}
|
|
41
37
|
function S(n2, l2) {
|
|
42
|
-
if (null == l2)
|
|
43
|
-
|
|
44
|
-
for (var u2; l2 < n2.__k.length; l2++)
|
|
45
|
-
if (null != (u2 = n2.__k[l2]) && null != u2.__e)
|
|
46
|
-
return u2.__e;
|
|
38
|
+
if (null == l2) return n2.__ ? S(n2.__, n2.__i + 1) : null;
|
|
39
|
+
for (var u2; l2 < n2.__k.length; l2++) if (null != (u2 = n2.__k[l2]) && null != u2.__e) return u2.__e;
|
|
47
40
|
return "function" == typeof n2.type ? S(n2) : null;
|
|
48
41
|
}
|
|
49
42
|
function C$3(n2) {
|
|
@@ -53,40 +46,32 @@ function C$3(n2) {
|
|
|
53
46
|
}
|
|
54
47
|
}
|
|
55
48
|
function M$2(n2) {
|
|
56
|
-
if (null != (n2 = n2.__) && null != n2.__c)
|
|
57
|
-
return n2.__e = n2.__c.base =
|
|
58
|
-
|
|
59
|
-
return n2.__e = n2.__c.base = l2.__e;
|
|
60
|
-
}), M$2(n2);
|
|
49
|
+
if (null != (n2 = n2.__) && null != n2.__c) return n2.__e = n2.__c.base = null, n2.__k.some(function(l2) {
|
|
50
|
+
if (null != l2 && null != l2.__e) return n2.__e = n2.__c.base = l2.__e;
|
|
51
|
+
}), M$2(n2);
|
|
61
52
|
}
|
|
62
53
|
function $$2(n2) {
|
|
63
54
|
(!n2.__d && (n2.__d = true) && i$2.push(n2) && !I$2.__r++ || r$4 != l$2.debounceRendering) && ((r$4 = l$2.debounceRendering) || o$2)(I$2);
|
|
64
55
|
}
|
|
65
56
|
function I$2() {
|
|
66
|
-
for (var n2, l2 = 1; i$2.length; )
|
|
67
|
-
i$2.length > l2 && i$2.sort(e$1), n2 = i$2.shift(), l2 = i$2.length, C$3(n2);
|
|
57
|
+
for (var n2, l2 = 1; i$2.length; ) i$2.length > l2 && i$2.sort(e$1), n2 = i$2.shift(), l2 = i$2.length, C$3(n2);
|
|
68
58
|
I$2.__r = 0;
|
|
69
59
|
}
|
|
70
60
|
function P$3(n2, l2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
|
|
71
61
|
var a2, h2, y2, d2, w2, g2, _2, m2 = t2 && t2.__k || v$2, b2 = l2.length;
|
|
72
|
-
for (f2 = A$3(u2, l2, m2, f2, b2), a2 = 0; a2 < b2; a2++)
|
|
73
|
-
null != (y2 = u2.__k[a2]) && (h2 = -1 != y2.__i && m2[y2.__i] || p$2, y2.__i = a2, g2 = z$3(n2, y2, h2, i2, r2, o2, e2, f2, c2, s2), d2 = y2.__e, y2.ref && h2.ref != y2.ref && (h2.ref && D$3(h2.ref, null, y2), s2.push(y2.ref, y2.__c || d2, y2)), null == w2 && null != d2 && (w2 = d2), (_2 = !!(4 & y2.__u)) || h2.__k === y2.__k ? f2 = H$2(y2, f2, n2, _2) : "function" == typeof y2.type && void 0 !== g2 ? f2 = g2 : d2 && (f2 = d2.nextSibling), y2.__u &= -7);
|
|
62
|
+
for (f2 = A$3(u2, l2, m2, f2, b2), a2 = 0; a2 < b2; a2++) null != (y2 = u2.__k[a2]) && (h2 = -1 != y2.__i && m2[y2.__i] || p$2, y2.__i = a2, g2 = z$3(n2, y2, h2, i2, r2, o2, e2, f2, c2, s2), d2 = y2.__e, y2.ref && h2.ref != y2.ref && (h2.ref && D$3(h2.ref, null, y2), s2.push(y2.ref, y2.__c || d2, y2)), null == w2 && null != d2 && (w2 = d2), (_2 = !!(4 & y2.__u)) || h2.__k === y2.__k ? f2 = H$2(y2, f2, n2, _2) : "function" == typeof y2.type && void 0 !== g2 ? f2 = g2 : d2 && (f2 = d2.nextSibling), y2.__u &= -7);
|
|
74
63
|
return u2.__e = w2, f2;
|
|
75
64
|
}
|
|
76
65
|
function A$3(n2, l2, u2, t2, i2) {
|
|
77
66
|
var r2, o2, e2, f2, c2, s2 = u2.length, a2 = s2, h2 = 0;
|
|
78
|
-
for (n2.__k = new Array(i2), r2 = 0; r2 < i2; r2++)
|
|
79
|
-
|
|
80
|
-
if (a2)
|
|
81
|
-
for (r2 = 0; r2 < s2; r2++)
|
|
82
|
-
null != (e2 = u2[r2]) && 0 == (2 & e2.__u) && (e2.__e == t2 && (t2 = S(e2)), E$1(e2, e2));
|
|
67
|
+
for (n2.__k = new Array(i2), r2 = 0; r2 < i2; r2++) null != (o2 = l2[r2]) && "boolean" != typeof o2 && "function" != typeof o2 ? ("string" == typeof o2 || "number" == typeof o2 || "bigint" == typeof o2 || o2.constructor == String ? o2 = n2.__k[r2] = m$2(null, o2, null, null, null) : d$2(o2) ? o2 = n2.__k[r2] = m$2(k$3, { children: o2 }, null, null, null) : void 0 === o2.constructor && o2.__b > 0 ? o2 = n2.__k[r2] = m$2(o2.type, o2.props, o2.key, o2.ref ? o2.ref : null, o2.__v) : n2.__k[r2] = o2, f2 = r2 + h2, o2.__ = n2, o2.__b = n2.__b + 1, e2 = null, -1 != (c2 = o2.__i = T$2(o2, u2, f2, a2)) && (a2--, (e2 = u2[c2]) && (e2.__u |= 2)), null == e2 || null == e2.__v ? (-1 == c2 && (i2 > s2 ? h2-- : i2 < s2 && h2++), "function" != typeof o2.type && (o2.__u |= 4)) : c2 != f2 && (c2 == f2 - 1 ? h2-- : c2 == f2 + 1 ? h2++ : (c2 > f2 ? h2-- : h2++, o2.__u |= 4))) : n2.__k[r2] = null;
|
|
68
|
+
if (a2) for (r2 = 0; r2 < s2; r2++) null != (e2 = u2[r2]) && 0 == (2 & e2.__u) && (e2.__e == t2 && (t2 = S(e2)), E$1(e2, e2));
|
|
83
69
|
return t2;
|
|
84
70
|
}
|
|
85
71
|
function H$2(n2, l2, u2, t2) {
|
|
86
72
|
var i2, r2;
|
|
87
73
|
if ("function" == typeof n2.type) {
|
|
88
|
-
for (i2 = n2.__k, r2 = 0; i2 && r2 < i2.length; r2++)
|
|
89
|
-
i2[r2] && (i2[r2].__ = n2, l2 = H$2(i2[r2], l2, u2, t2));
|
|
74
|
+
for (i2 = n2.__k, r2 = 0; i2 && r2 < i2.length; r2++) i2[r2] && (i2[r2].__ = n2, l2 = H$2(i2[r2], l2, u2, t2));
|
|
90
75
|
return l2;
|
|
91
76
|
}
|
|
92
77
|
n2.__e != l2 && (t2 && (l2 && n2.type && !l2.parentNode && (l2 = S(n2)), u2.insertBefore(n2.__e, l2 || null)), l2 = n2.__e);
|
|
@@ -102,12 +87,9 @@ function L$1(n2, l2) {
|
|
|
102
87
|
}
|
|
103
88
|
function T$2(n2, l2, u2, t2) {
|
|
104
89
|
var i2, r2, o2, e2 = n2.key, f2 = n2.type, c2 = l2[u2], s2 = null != c2 && 0 == (2 & c2.__u);
|
|
105
|
-
if (null === c2 && null == e2 || s2 && e2 == c2.key && f2 == c2.type)
|
|
106
|
-
return u2;
|
|
90
|
+
if (null === c2 && null == e2 || s2 && e2 == c2.key && f2 == c2.type) return u2;
|
|
107
91
|
if (t2 > (s2 ? 1 : 0)) {
|
|
108
|
-
for (i2 = u2 - 1, r2 = u2 + 1; i2 >= 0 || r2 < l2.length; )
|
|
109
|
-
if (null != (c2 = l2[o2 = i2 >= 0 ? i2-- : r2++]) && 0 == (2 & c2.__u) && e2 == c2.key && f2 == c2.type)
|
|
110
|
-
return o2;
|
|
92
|
+
for (i2 = u2 - 1, r2 = u2 + 1; i2 >= 0 || r2 < l2.length; ) if (null != (c2 = l2[o2 = i2 >= 0 ? i2-- : r2++]) && 0 == (2 & c2.__u) && e2 == c2.key && f2 == c2.type) return o2;
|
|
111
93
|
}
|
|
112
94
|
return -1;
|
|
113
95
|
}
|
|
@@ -116,97 +98,73 @@ function j$2(n2, l2, u2) {
|
|
|
116
98
|
}
|
|
117
99
|
function F$3(n2, l2, u2, t2, i2) {
|
|
118
100
|
var r2, o2;
|
|
119
|
-
n:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
else if ("o" == l2[0] && "n" == l2[1])
|
|
132
|
-
r2 = l2 != (l2 = l2.replace(f$3, "$1")), o2 = l2.toLowerCase(), l2 = o2 in n2 || "onFocusOut" == l2 || "onFocusIn" == l2 ? o2.slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + r2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = c$2, n2.addEventListener(l2, r2 ? a$2 : s$2, r2)) : n2.removeEventListener(l2, r2 ? a$2 : s$2, r2);
|
|
133
|
-
else {
|
|
134
|
-
if ("http://www.w3.org/2000/svg" == i2)
|
|
135
|
-
l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
136
|
-
else if ("width" != l2 && "height" != l2 && "href" != l2 && "list" != l2 && "form" != l2 && "tabIndex" != l2 && "download" != l2 && "rowSpan" != l2 && "colSpan" != l2 && "role" != l2 && "popover" != l2 && l2 in n2)
|
|
137
|
-
try {
|
|
138
|
-
n2[l2] = null == u2 ? "" : u2;
|
|
139
|
-
break n;
|
|
140
|
-
} catch (n3) {
|
|
141
|
-
}
|
|
142
|
-
"function" == typeof u2 || (null == u2 || false === u2 && "-" != l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, "popover" == l2 && 1 == u2 ? "" : u2));
|
|
101
|
+
n: if ("style" == l2) if ("string" == typeof u2) n2.style.cssText = u2;
|
|
102
|
+
else {
|
|
103
|
+
if ("string" == typeof t2 && (n2.style.cssText = t2 = ""), t2) for (l2 in t2) u2 && l2 in u2 || j$2(n2.style, l2, "");
|
|
104
|
+
if (u2) for (l2 in u2) t2 && u2[l2] == t2[l2] || j$2(n2.style, l2, u2[l2]);
|
|
105
|
+
}
|
|
106
|
+
else if ("o" == l2[0] && "n" == l2[1]) r2 = l2 != (l2 = l2.replace(f$3, "$1")), o2 = l2.toLowerCase(), l2 = o2 in n2 || "onFocusOut" == l2 || "onFocusIn" == l2 ? o2.slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + r2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = c$2, n2.addEventListener(l2, r2 ? a$2 : s$2, r2)) : n2.removeEventListener(l2, r2 ? a$2 : s$2, r2);
|
|
107
|
+
else {
|
|
108
|
+
if ("http://www.w3.org/2000/svg" == i2) l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
109
|
+
else if ("width" != l2 && "height" != l2 && "href" != l2 && "list" != l2 && "form" != l2 && "tabIndex" != l2 && "download" != l2 && "rowSpan" != l2 && "colSpan" != l2 && "role" != l2 && "popover" != l2 && l2 in n2) try {
|
|
110
|
+
n2[l2] = null == u2 ? "" : u2;
|
|
111
|
+
break n;
|
|
112
|
+
} catch (n3) {
|
|
143
113
|
}
|
|
114
|
+
"function" == typeof u2 || (null == u2 || false === u2 && "-" != l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, "popover" == l2 && 1 == u2 ? "" : u2));
|
|
115
|
+
}
|
|
144
116
|
}
|
|
145
117
|
function O$2(n2) {
|
|
146
118
|
return function(u2) {
|
|
147
119
|
if (this.l) {
|
|
148
120
|
var t2 = this.l[u2.type + n2];
|
|
149
|
-
if (null == u2.t)
|
|
150
|
-
|
|
151
|
-
else if (u2.t < t2.u)
|
|
152
|
-
return;
|
|
121
|
+
if (null == u2.t) u2.t = c$2++;
|
|
122
|
+
else if (u2.t < t2.u) return;
|
|
153
123
|
return t2(l$2.event ? l$2.event(u2) : u2);
|
|
154
124
|
}
|
|
155
125
|
};
|
|
156
126
|
}
|
|
157
127
|
function z$3(n2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
|
|
158
128
|
var a2, h2, p2, y2, _2, m2, b2, S2, C2, M2, $2, I2, A2, H2, L2, T2 = u2.type;
|
|
159
|
-
if (void 0 !== u2.constructor)
|
|
160
|
-
return null;
|
|
129
|
+
if (void 0 !== u2.constructor) return null;
|
|
161
130
|
128 & t2.__u && (c2 = !!(32 & t2.__u), o2 = [f2 = u2.__e = t2.__e]), (a2 = l$2.__b) && a2(u2);
|
|
162
|
-
n:
|
|
163
|
-
if ("
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
n3 && (n3.__ = u2);
|
|
171
|
-
}), v$2.push.apply(h2.__h, h2._sb), h2._sb = [], h2.__h.length && e2.push(h2);
|
|
172
|
-
break n;
|
|
173
|
-
}
|
|
174
|
-
null != h2.componentWillUpdate && h2.componentWillUpdate(S2, h2.__s, $2), C2 && null != h2.componentDidUpdate && h2.__h.push(function() {
|
|
175
|
-
h2.componentDidUpdate(y2, _2, m2);
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
if (h2.context = $2, h2.props = S2, h2.__P = n2, h2.__e = false, I2 = l$2.__r, A2 = 0, C2)
|
|
179
|
-
h2.state = h2.__s, h2.__d = false, I2 && I2(u2), a2 = h2.render(h2.props, h2.state, h2.context), v$2.push.apply(h2.__h, h2._sb), h2._sb = [];
|
|
180
|
-
else
|
|
181
|
-
do {
|
|
182
|
-
h2.__d = false, I2 && I2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
|
|
183
|
-
} while (h2.__d && ++A2 < 25);
|
|
184
|
-
h2.state = h2.__s, null != h2.getChildContext && (i2 = w$3(w$3({}, i2), h2.getChildContext())), C2 && !p2 && null != h2.getSnapshotBeforeUpdate && (m2 = h2.getSnapshotBeforeUpdate(y2, _2)), H2 = null != a2 && a2.type === k$3 && null == a2.key ? q$3(a2.props.children) : a2, f2 = P$3(n2, d$2(H2) ? H2 : [H2], u2, t2, i2, r2, o2, e2, f2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && e2.push(h2), b2 && (h2.__E = h2.__ = null);
|
|
185
|
-
} catch (n3) {
|
|
186
|
-
if (u2.__v = null, c2 || null != o2)
|
|
187
|
-
if (n3.then) {
|
|
188
|
-
for (u2.__u |= c2 ? 160 : 128; f2 && 8 == f2.nodeType && f2.nextSibling; )
|
|
189
|
-
f2 = f2.nextSibling;
|
|
190
|
-
o2[o2.indexOf(f2)] = null, u2.__e = f2;
|
|
191
|
-
} else {
|
|
192
|
-
for (L2 = o2.length; L2--; )
|
|
193
|
-
g$3(o2[L2]);
|
|
194
|
-
N$2(u2);
|
|
195
|
-
}
|
|
196
|
-
else
|
|
197
|
-
u2.__e = t2.__e, u2.__k = t2.__k, n3.then || N$2(u2);
|
|
198
|
-
l$2.__e(n3, u2, t2);
|
|
131
|
+
n: if ("function" == typeof T2) try {
|
|
132
|
+
if (S2 = u2.props, C2 = "prototype" in T2 && T2.prototype.render, M2 = (a2 = T2.contextType) && i2[a2.__c], $2 = a2 ? M2 ? M2.props.value : a2.__ : i2, t2.__c ? b2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (C2 ? u2.__c = h2 = new T2(S2, $2) : (u2.__c = h2 = new x$3(S2, $2), h2.constructor = T2, h2.render = G$2), M2 && M2.sub(h2), h2.state || (h2.state = {}), h2.__n = i2, p2 = h2.__d = true, h2.__h = [], h2._sb = []), C2 && null == h2.__s && (h2.__s = h2.state), C2 && null != T2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = w$3({}, h2.__s)), w$3(h2.__s, T2.getDerivedStateFromProps(S2, h2.__s))), y2 = h2.props, _2 = h2.state, h2.__v = u2, p2) C2 && null == T2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), C2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
|
|
133
|
+
else {
|
|
134
|
+
if (C2 && null == T2.getDerivedStateFromProps && S2 !== y2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(S2, $2), u2.__v == t2.__v || !h2.__e && null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(S2, h2.__s, $2)) {
|
|
135
|
+
u2.__v != t2.__v && (h2.props = S2, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
|
|
136
|
+
n3 && (n3.__ = u2);
|
|
137
|
+
}), v$2.push.apply(h2.__h, h2._sb), h2._sb = [], h2.__h.length && e2.push(h2);
|
|
138
|
+
break n;
|
|
199
139
|
}
|
|
200
|
-
|
|
201
|
-
|
|
140
|
+
null != h2.componentWillUpdate && h2.componentWillUpdate(S2, h2.__s, $2), C2 && null != h2.componentDidUpdate && h2.__h.push(function() {
|
|
141
|
+
h2.componentDidUpdate(y2, _2, m2);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
if (h2.context = $2, h2.props = S2, h2.__P = n2, h2.__e = false, I2 = l$2.__r, A2 = 0, C2) h2.state = h2.__s, h2.__d = false, I2 && I2(u2), a2 = h2.render(h2.props, h2.state, h2.context), v$2.push.apply(h2.__h, h2._sb), h2._sb = [];
|
|
145
|
+
else do {
|
|
146
|
+
h2.__d = false, I2 && I2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
|
|
147
|
+
} while (h2.__d && ++A2 < 25);
|
|
148
|
+
h2.state = h2.__s, null != h2.getChildContext && (i2 = w$3(w$3({}, i2), h2.getChildContext())), C2 && !p2 && null != h2.getSnapshotBeforeUpdate && (m2 = h2.getSnapshotBeforeUpdate(y2, _2)), H2 = null != a2 && a2.type === k$3 && null == a2.key ? q$3(a2.props.children) : a2, f2 = P$3(n2, d$2(H2) ? H2 : [H2], u2, t2, i2, r2, o2, e2, f2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && e2.push(h2), b2 && (h2.__E = h2.__ = null);
|
|
149
|
+
} catch (n3) {
|
|
150
|
+
if (u2.__v = null, c2 || null != o2) if (n3.then) {
|
|
151
|
+
for (u2.__u |= c2 ? 160 : 128; f2 && 8 == f2.nodeType && f2.nextSibling; ) f2 = f2.nextSibling;
|
|
152
|
+
o2[o2.indexOf(f2)] = null, u2.__e = f2;
|
|
153
|
+
} else {
|
|
154
|
+
for (L2 = o2.length; L2--; ) g$3(o2[L2]);
|
|
155
|
+
N$2(u2);
|
|
156
|
+
}
|
|
157
|
+
else u2.__e = t2.__e, u2.__k = t2.__k, n3.then || N$2(u2);
|
|
158
|
+
l$2.__e(n3, u2, t2);
|
|
159
|
+
}
|
|
160
|
+
else null == o2 && u2.__v == t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : f2 = u2.__e = B$3(t2.__e, u2, t2, i2, r2, o2, e2, c2, s2);
|
|
202
161
|
return (a2 = l$2.diffed) && a2(u2), 128 & u2.__u ? void 0 : f2;
|
|
203
162
|
}
|
|
204
163
|
function N$2(n2) {
|
|
205
164
|
n2 && (n2.__c && (n2.__c.__e = true), n2.__k && n2.__k.some(N$2));
|
|
206
165
|
}
|
|
207
166
|
function V$1(n2, u2, t2) {
|
|
208
|
-
for (var i2 = 0; i2 < t2.length; i2++)
|
|
209
|
-
D$3(t2[i2], t2[++i2], t2[++i2]);
|
|
167
|
+
for (var i2 = 0; i2 < t2.length; i2++) D$3(t2[i2], t2[++i2], t2[++i2]);
|
|
210
168
|
l$2.__c && l$2.__c(u2, n2), n2.some(function(u3) {
|
|
211
169
|
try {
|
|
212
170
|
n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
|
|
@@ -223,32 +181,22 @@ function q$3(n2) {
|
|
|
223
181
|
function B$3(u2, t2, i2, r2, o2, e2, f2, c2, s2) {
|
|
224
182
|
var a2, h2, v2, y2, w2, _2, m2, b2 = i2.props || p$2, k2 = t2.props, x2 = t2.type;
|
|
225
183
|
if ("svg" == x2 ? o2 = "http://www.w3.org/2000/svg" : "math" == x2 ? o2 = "http://www.w3.org/1998/Math/MathML" : o2 || (o2 = "http://www.w3.org/1999/xhtml"), null != e2) {
|
|
226
|
-
for (a2 = 0; a2 < e2.length; a2++)
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}
|
|
184
|
+
for (a2 = 0; a2 < e2.length; a2++) if ((w2 = e2[a2]) && "setAttribute" in w2 == !!x2 && (x2 ? w2.localName == x2 : 3 == w2.nodeType)) {
|
|
185
|
+
u2 = w2, e2[a2] = null;
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
231
188
|
}
|
|
232
189
|
if (null == u2) {
|
|
233
|
-
if (null == x2)
|
|
234
|
-
return document.createTextNode(k2);
|
|
190
|
+
if (null == x2) return document.createTextNode(k2);
|
|
235
191
|
u2 = document.createElementNS(o2, x2, k2.is && k2), c2 && (l$2.__m && l$2.__m(t2, e2), c2 = false), e2 = null;
|
|
236
192
|
}
|
|
237
|
-
if (null == x2)
|
|
238
|
-
b2 === k2 || c2 && u2.data == k2 || (u2.data = k2);
|
|
193
|
+
if (null == x2) b2 === k2 || c2 && u2.data == k2 || (u2.data = k2);
|
|
239
194
|
else {
|
|
240
|
-
if (e2 = e2 && n.call(u2.childNodes), !c2 && null != e2)
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
for (a2 in k2)
|
|
246
|
-
w2 = k2[a2], "children" == a2 ? y2 = w2 : "dangerouslySetInnerHTML" == a2 ? h2 = w2 : "value" == a2 ? _2 = w2 : "checked" == a2 ? m2 = w2 : c2 && "function" != typeof w2 || b2[a2] === w2 || F$3(u2, a2, w2, b2[a2], o2);
|
|
247
|
-
if (h2)
|
|
248
|
-
c2 || v2 && (h2.__html == v2.__html || h2.__html == u2.innerHTML) || (u2.innerHTML = h2.__html), t2.__k = [];
|
|
249
|
-
else if (v2 && (u2.innerHTML = ""), P$3("template" == t2.type ? u2.content : u2, d$2(y2) ? y2 : [y2], t2, i2, r2, "foreignObject" == x2 ? "http://www.w3.org/1999/xhtml" : o2, e2, f2, e2 ? e2[0] : i2.__k && S(i2, 0), c2, s2), null != e2)
|
|
250
|
-
for (a2 = e2.length; a2--; )
|
|
251
|
-
g$3(e2[a2]);
|
|
195
|
+
if (e2 = e2 && n.call(u2.childNodes), !c2 && null != e2) for (b2 = {}, a2 = 0; a2 < u2.attributes.length; a2++) b2[(w2 = u2.attributes[a2]).name] = w2.value;
|
|
196
|
+
for (a2 in b2) w2 = b2[a2], "dangerouslySetInnerHTML" == a2 ? v2 = w2 : "children" == a2 || a2 in k2 || "value" == a2 && "defaultValue" in k2 || "checked" == a2 && "defaultChecked" in k2 || F$3(u2, a2, null, w2, o2);
|
|
197
|
+
for (a2 in k2) w2 = k2[a2], "children" == a2 ? y2 = w2 : "dangerouslySetInnerHTML" == a2 ? h2 = w2 : "value" == a2 ? _2 = w2 : "checked" == a2 ? m2 = w2 : c2 && "function" != typeof w2 || b2[a2] === w2 || F$3(u2, a2, w2, b2[a2], o2);
|
|
198
|
+
if (h2) c2 || v2 && (h2.__html == v2.__html || h2.__html == u2.innerHTML) || (u2.innerHTML = h2.__html), t2.__k = [];
|
|
199
|
+
else if (v2 && (u2.innerHTML = ""), P$3("template" == t2.type ? u2.content : u2, d$2(y2) ? y2 : [y2], t2, i2, r2, "foreignObject" == x2 ? "http://www.w3.org/1999/xhtml" : o2, e2, f2, e2 ? e2[0] : i2.__k && S(i2, 0), c2, s2), null != e2) for (a2 = e2.length; a2--; ) g$3(e2[a2]);
|
|
252
200
|
c2 || (a2 = "value", "progress" == x2 && null == _2 ? u2.removeAttribute("value") : null != _2 && (_2 !== u2[a2] || "progress" == x2 && !_2 || "option" == x2 && _2 != b2[a2]) && F$3(u2, a2, _2, b2[a2], o2), a2 = "checked", null != m2 && m2 != u2[a2] && F$3(u2, a2, m2, b2[a2], o2));
|
|
253
201
|
}
|
|
254
202
|
return u2;
|
|
@@ -258,8 +206,7 @@ function D$3(n2, u2, t2) {
|
|
|
258
206
|
if ("function" == typeof n2) {
|
|
259
207
|
var i2 = "function" == typeof n2.__u;
|
|
260
208
|
i2 && n2.__u(), i2 && null == u2 || (n2.__u = n2(u2));
|
|
261
|
-
} else
|
|
262
|
-
n2.current = u2;
|
|
209
|
+
} else n2.current = u2;
|
|
263
210
|
} catch (n3) {
|
|
264
211
|
l$2.__e(n3, t2);
|
|
265
212
|
}
|
|
@@ -267,17 +214,14 @@ function D$3(n2, u2, t2) {
|
|
|
267
214
|
function E$1(n2, u2, t2) {
|
|
268
215
|
var i2, r2;
|
|
269
216
|
if (l$2.unmount && l$2.unmount(n2), (i2 = n2.ref) && (i2.current && i2.current != n2.__e || D$3(i2, null, u2)), null != (i2 = n2.__c)) {
|
|
270
|
-
if (i2.componentWillUnmount)
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}
|
|
217
|
+
if (i2.componentWillUnmount) try {
|
|
218
|
+
i2.componentWillUnmount();
|
|
219
|
+
} catch (n3) {
|
|
220
|
+
l$2.__e(n3, u2);
|
|
221
|
+
}
|
|
276
222
|
i2.base = i2.__P = null;
|
|
277
223
|
}
|
|
278
|
-
if (i2 = n2.__k)
|
|
279
|
-
for (r2 = 0; r2 < i2.length; r2++)
|
|
280
|
-
i2[r2] && E$1(i2[r2], u2, t2 || "function" != typeof n2.type);
|
|
224
|
+
if (i2 = n2.__k) for (r2 = 0; r2 < i2.length; r2++) i2[r2] && E$1(i2[r2], u2, t2 || "function" != typeof n2.type);
|
|
281
225
|
t2 || g$3(n2.__e), n2.__c = n2.__ = n2.__e = void 0;
|
|
282
226
|
}
|
|
283
227
|
function G$2(n2, l2, u2) {
|
|
@@ -292,8 +236,7 @@ function K$1(n2, l2) {
|
|
|
292
236
|
}
|
|
293
237
|
function Q$1(l2, u2, t2) {
|
|
294
238
|
var i2, r2, o2, e2, f2 = w$3({}, l2.props);
|
|
295
|
-
for (o2 in l2.type && l2.type.defaultProps && (e2 = l2.type.defaultProps), u2)
|
|
296
|
-
"key" == o2 ? i2 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : f2[o2] = void 0 === u2[o2] && null != e2 ? e2[o2] : u2[o2];
|
|
239
|
+
for (o2 in l2.type && l2.type.defaultProps && (e2 = l2.type.defaultProps), u2) "key" == o2 ? i2 = u2[o2] : "ref" == o2 ? r2 = u2[o2] : f2[o2] = void 0 === u2[o2] && null != e2 ? e2[o2] : u2[o2];
|
|
297
240
|
return arguments.length > 2 && (f2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), m$2(l2.type, f2, i2 || l2.key, r2 || l2.ref, null);
|
|
298
241
|
}
|
|
299
242
|
function R$2(n2) {
|
|
@@ -320,14 +263,11 @@ function R$2(n2) {
|
|
|
320
263
|
}).contextType = l2, l2;
|
|
321
264
|
}
|
|
322
265
|
n = v$2.slice, l$2 = { __e: function(n2, l2, u2, t2) {
|
|
323
|
-
for (var i2, r2, o2; l2 = l2.__; )
|
|
324
|
-
if ((i2 =
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
} catch (l3) {
|
|
329
|
-
n2 = l3;
|
|
330
|
-
}
|
|
266
|
+
for (var i2, r2, o2; l2 = l2.__; ) if ((i2 = l2.__c) && !i2.__) try {
|
|
267
|
+
if ((r2 = i2.constructor) && null != r2.getDerivedStateFromError && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2) return i2.__E = i2;
|
|
268
|
+
} catch (l3) {
|
|
269
|
+
n2 = l3;
|
|
270
|
+
}
|
|
331
271
|
throw n2;
|
|
332
272
|
} }, u$3 = 0, x$3.prototype.setState = function(n2, l2) {
|
|
333
273
|
var u2;
|
|
@@ -349,8 +289,7 @@ function y$1(e2) {
|
|
|
349
289
|
}
|
|
350
290
|
var _$1 = /["&<]/;
|
|
351
291
|
function g$2(e2) {
|
|
352
|
-
if (0 === e2.length || false === _$1.test(e2))
|
|
353
|
-
return e2;
|
|
292
|
+
if (0 === e2.length || false === _$1.test(e2)) return e2;
|
|
354
293
|
for (var t2 = 0, n2 = 0, r2 = "", o2 = ""; n2 < e2.length; n2++) {
|
|
355
294
|
switch (e2.charCodeAt(n2)) {
|
|
356
295
|
case 34:
|
|
@@ -397,8 +336,7 @@ function B$2(a2, u2, s2) {
|
|
|
397
336
|
var p2 = O$1(a2, u2 || F$2, false, void 0, f2, false, s2);
|
|
398
337
|
return W$1(p2) ? p2.join(H$1) : p2;
|
|
399
338
|
} catch (e2) {
|
|
400
|
-
if (e2.then)
|
|
401
|
-
throw new Error('Use "renderToStringAsync" for suspenseful rendering.');
|
|
339
|
+
if (e2.then) throw new Error('Use "renderToStringAsync" for suspenseful rendering.');
|
|
402
340
|
throw e2;
|
|
403
341
|
} finally {
|
|
404
342
|
l$2[o$1] && l$2[o$1](a2, M$1), l$2[i$1] = l2, M$1.length = 0;
|
|
@@ -409,11 +347,9 @@ function I$1(e2, t2) {
|
|
|
409
347
|
return e2[a$1] ? (o2 = false, (n2 = e2[a$1]).state = n2[s$1]) : n2 = new r2(e2.props, t2), e2[a$1] = n2, n2.__v = e2, n2.props = e2.props, n2.context = t2, v$1(n2), null == n2.state && (n2.state = F$2), null == n2[s$1] && (n2[s$1] = n2.state), r2.getDerivedStateFromProps ? n2.state = z$2({}, n2.state, r2.getDerivedStateFromProps(n2.props, n2.state)) : o2 && n2.componentWillMount ? (n2.componentWillMount(), n2.state = n2[s$1] !== n2.state ? n2[s$1] : n2.state) : !o2 && n2.componentWillUpdate && n2.componentWillUpdate(), $$1 && $$1(e2), n2.render(n2.props, n2.state, t2);
|
|
410
348
|
}
|
|
411
349
|
function O$1(t2, r2, o2, i2, u2, _2, b2) {
|
|
412
|
-
if (null == t2 || true === t2 || false === t2 || t2 === H$1)
|
|
413
|
-
return H$1;
|
|
350
|
+
if (null == t2 || true === t2 || false === t2 || t2 === H$1) return H$1;
|
|
414
351
|
var x2 = typeof t2;
|
|
415
|
-
if ("object" != x2)
|
|
416
|
-
return "function" == x2 ? H$1 : "string" == x2 ? g$2(t2) : t2 + H$1;
|
|
352
|
+
if ("object" != x2) return "function" == x2 ? H$1 : "string" == x2 ? g$2(t2) : t2 + H$1;
|
|
417
353
|
if (W$1(t2)) {
|
|
418
354
|
var k2, C2 = H$1;
|
|
419
355
|
u2[c$1] = t2;
|
|
@@ -426,25 +362,21 @@ function O$1(t2, r2, o2, i2, u2, _2, b2) {
|
|
|
426
362
|
}
|
|
427
363
|
return k2 ? (C2 && k2.push(C2), k2) : C2;
|
|
428
364
|
}
|
|
429
|
-
if (void 0 !== t2.constructor)
|
|
430
|
-
return H$1;
|
|
365
|
+
if (void 0 !== t2.constructor) return H$1;
|
|
431
366
|
t2.__ = u2, D$2 && D$2(t2);
|
|
432
367
|
var Z2 = t2.type, M2 = t2.props;
|
|
433
368
|
if ("function" == typeof Z2) {
|
|
434
369
|
var B2, V2, K2, J2 = r2;
|
|
435
370
|
if (Z2 === k$3) {
|
|
436
371
|
if ("tpl" in M2) {
|
|
437
|
-
for (var Q2 = H$1, X2 = 0; X2 < M2.tpl.length; X2++)
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
"object" != typeof Y2 || void 0 !== Y2.constructor && !W$1(Y2) ? Q2 += Y2 : Q2 += O$1(Y2, r2, o2, i2, t2, _2, b2);
|
|
443
|
-
}
|
|
372
|
+
for (var Q2 = H$1, X2 = 0; X2 < M2.tpl.length; X2++) if (Q2 += M2.tpl[X2], M2.exprs && X2 < M2.exprs.length) {
|
|
373
|
+
var Y2 = M2.exprs[X2];
|
|
374
|
+
if (null == Y2) continue;
|
|
375
|
+
"object" != typeof Y2 || void 0 !== Y2.constructor && !W$1(Y2) ? Q2 += Y2 : Q2 += O$1(Y2, r2, o2, i2, t2, _2, b2);
|
|
376
|
+
}
|
|
444
377
|
return Q2;
|
|
445
378
|
}
|
|
446
|
-
if ("UNSTABLE_comment" in M2)
|
|
447
|
-
return "<!--" + g$2(M2.UNSTABLE_comment) + "-->";
|
|
379
|
+
if ("UNSTABLE_comment" in M2) return "<!--" + g$2(M2.UNSTABLE_comment) + "-->";
|
|
448
380
|
V2 = M2.children;
|
|
449
381
|
} else {
|
|
450
382
|
if (null != (B2 = Z2.contextType)) {
|
|
@@ -452,9 +384,8 @@ function O$1(t2, r2, o2, i2, u2, _2, b2) {
|
|
|
452
384
|
J2 = ee ? ee.props.value : B2.__;
|
|
453
385
|
}
|
|
454
386
|
var te = Z2.prototype && "function" == typeof Z2.prototype.render;
|
|
455
|
-
if (te)
|
|
456
|
-
|
|
457
|
-
I$1(t2, J2), K2 = t2[a$1];
|
|
387
|
+
if (te) V2 = /**#__NOINLINE__**/
|
|
388
|
+
I$1(t2, J2), K2 = t2[a$1];
|
|
458
389
|
else {
|
|
459
390
|
t2[a$1] = K2 = /**#__NOINLINE__**/
|
|
460
391
|
A$2(t2, J2);
|
|
@@ -463,7 +394,7 @@ function O$1(t2, r2, o2, i2, u2, _2, b2) {
|
|
|
463
394
|
try {
|
|
464
395
|
V2 = Z2.call(K2, M2, J2);
|
|
465
396
|
} catch (e2) {
|
|
466
|
-
throw
|
|
397
|
+
throw e2;
|
|
467
398
|
}
|
|
468
399
|
}
|
|
469
400
|
v$1(K2);
|
|
@@ -486,8 +417,8 @@ function O$1(t2, r2, o2, i2, u2, _2, b2) {
|
|
|
486
417
|
return N$1 + e2 + q$2;
|
|
487
418
|
}) : re;
|
|
488
419
|
} catch (n2) {
|
|
489
|
-
if (
|
|
490
|
-
var oe = function e2(n3) {
|
|
420
|
+
if (b2 && b2.onError) {
|
|
421
|
+
var oe = (function e2(n3) {
|
|
491
422
|
return b2.onError(n3, t2, function(t3, n4) {
|
|
492
423
|
try {
|
|
493
424
|
return O$1(t3, r2, o2, i2, n4, _2, b2);
|
|
@@ -495,26 +426,12 @@ function O$1(t2, r2, o2, i2, u2, _2, b2) {
|
|
|
495
426
|
return e2(t4);
|
|
496
427
|
}
|
|
497
428
|
});
|
|
498
|
-
}(n2);
|
|
499
|
-
if (void 0 !== oe)
|
|
500
|
-
return oe;
|
|
429
|
+
})(n2);
|
|
430
|
+
if (void 0 !== oe) return oe;
|
|
501
431
|
var ie = l$2.__e;
|
|
502
432
|
return ie && ie(n2, t2), H$1;
|
|
503
433
|
}
|
|
504
|
-
|
|
505
|
-
throw n2;
|
|
506
|
-
if (!n2 || "function" != typeof n2.then)
|
|
507
|
-
throw n2;
|
|
508
|
-
return n2.then(function e2() {
|
|
509
|
-
try {
|
|
510
|
-
var n3 = O$1(V2, r2, o2, i2, t2, _2, b2);
|
|
511
|
-
return t2._suspended ? N$1 + n3 + q$2 : n3;
|
|
512
|
-
} catch (t3) {
|
|
513
|
-
if (!t3 || "function" != typeof t3.then)
|
|
514
|
-
throw t3;
|
|
515
|
-
return t3.then(e2);
|
|
516
|
-
}
|
|
517
|
-
});
|
|
434
|
+
throw n2;
|
|
518
435
|
}
|
|
519
436
|
}
|
|
520
437
|
var ae, ce = "<" + Z2, ue = H$1;
|
|
@@ -531,13 +448,11 @@ function O$1(t2, r2, o2, i2, u2, _2, b2) {
|
|
|
531
448
|
case "__source":
|
|
532
449
|
continue;
|
|
533
450
|
case "htmlFor":
|
|
534
|
-
if ("for" in M2)
|
|
535
|
-
continue;
|
|
451
|
+
if ("for" in M2) continue;
|
|
536
452
|
se = "for";
|
|
537
453
|
break;
|
|
538
454
|
case "className":
|
|
539
|
-
if ("class" in M2)
|
|
540
|
-
continue;
|
|
455
|
+
if ("class" in M2) continue;
|
|
541
456
|
se = "class";
|
|
542
457
|
break;
|
|
543
458
|
case "defaultChecked":
|
|
@@ -572,21 +487,17 @@ function O$1(t2, r2, o2, i2, u2, _2, b2) {
|
|
|
572
487
|
se = "http-equiv";
|
|
573
488
|
break;
|
|
574
489
|
default:
|
|
575
|
-
if (f$2.test(se))
|
|
576
|
-
se = se.replace(f$2, "$1:$2").toLowerCase();
|
|
490
|
+
if (f$2.test(se)) se = se.replace(f$2, "$1:$2").toLowerCase();
|
|
577
491
|
else {
|
|
578
|
-
if (l$1.test(se))
|
|
579
|
-
continue;
|
|
492
|
+
if (l$1.test(se)) continue;
|
|
580
493
|
"-" !== se[4] && !d$1.has(se) || null == le ? o2 ? h$1.test(se) && (se = "panose1" === se ? "panose-1" : se.replace(/([A-Z])/g, "-$1").toLowerCase()) : p$1.test(se) && (se = se.toLowerCase()) : le += H$1;
|
|
581
494
|
}
|
|
582
495
|
}
|
|
583
496
|
null != le && false !== le && (ce = true === le || le === H$1 ? ce + " " + se : ce + " " + se + '="' + ("string" == typeof le ? g$2(le) : le + H$1) + '"');
|
|
584
497
|
}
|
|
585
498
|
}
|
|
586
|
-
if (l$1.test(Z2))
|
|
587
|
-
|
|
588
|
-
if (ue || ("string" == typeof ae ? ue = g$2(ae) : null != ae && false !== ae && true !== ae && (ue = O$1(ae, r2, "svg" === Z2 || "foreignObject" !== Z2 && o2, i2, t2, _2, b2))), P$2 && P$2(t2), U$1 && U$1(t2), !ue && R$1.has(Z2))
|
|
589
|
-
return ce + "/>";
|
|
499
|
+
if (l$1.test(Z2)) throw new Error(Z2 + " is not a valid HTML tag name in " + ce + ">");
|
|
500
|
+
if (ue || ("string" == typeof ae ? ue = g$2(ae) : null != ae && false !== ae && true !== ae && (ue = O$1(ae, r2, "svg" === Z2 || "foreignObject" !== Z2 && o2, i2, t2, _2, b2))), P$2 && P$2(t2), U$1 && U$1(t2), !ue && R$1.has(Z2)) return ce + "/>";
|
|
590
501
|
var fe = "</" + Z2 + ">", pe = ce + ">";
|
|
591
502
|
return W$1(ue) ? [pe].concat(ue, [fe]) : "string" != typeof ue ? [pe, ue, fe] : pe + ue + fe;
|
|
592
503
|
}
|
|
@@ -598,17 +509,13 @@ var f$1 = 0;
|
|
|
598
509
|
function u$1(e2, t2, n2, o2, i2, u2) {
|
|
599
510
|
t2 || (t2 = {});
|
|
600
511
|
var a2, c2, p2 = t2;
|
|
601
|
-
if ("ref" in p2)
|
|
602
|
-
for (c2 in p2 = {}, t2)
|
|
603
|
-
"ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
|
|
512
|
+
if ("ref" in p2) for (c2 in p2 = {}, t2) "ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
|
|
604
513
|
var l2 = { type: e2, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f$1, __i: -1, __u: 0, __source: i2, __self: u2 };
|
|
605
|
-
if ("function" == typeof e2 && (a2 = e2.defaultProps))
|
|
606
|
-
for (c2 in a2)
|
|
607
|
-
void 0 === p2[c2] && (p2[c2] = a2[c2]);
|
|
514
|
+
if ("function" == typeof e2 && (a2 = e2.defaultProps)) for (c2 in a2) void 0 === p2[c2] && (p2[c2] = a2[c2]);
|
|
608
515
|
return l$2.vnode && l$2.vnode(l2), l2;
|
|
609
516
|
}
|
|
610
|
-
function _extends() {
|
|
611
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
517
|
+
function _extends$1() {
|
|
518
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
612
519
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
613
520
|
var source = arguments[i2];
|
|
614
521
|
for (var key in source) {
|
|
@@ -619,7 +526,7 @@ function _extends() {
|
|
|
619
526
|
}
|
|
620
527
|
return target;
|
|
621
528
|
};
|
|
622
|
-
return _extends.apply(this, arguments);
|
|
529
|
+
return _extends$1.apply(this, arguments);
|
|
623
530
|
}
|
|
624
531
|
var t, r$2, u, i, o = 0, f = [], c = l$2, e = c.__b, a = c.__r, v = c.diffed, l = c.__c, m = c.unmount, s = c.__;
|
|
625
532
|
function p(n2, t2) {
|
|
@@ -637,15 +544,13 @@ function h(n2, u2, i2) {
|
|
|
637
544
|
t2 !== r2 && (o2.__N = [r2, o2.__[1]], o2.__c.setState({}));
|
|
638
545
|
}], o2.__c = r$2, !r$2.__f)) {
|
|
639
546
|
var f2 = function(n3, t2, r2) {
|
|
640
|
-
if (!o2.__c.__H)
|
|
641
|
-
return true;
|
|
547
|
+
if (!o2.__c.__H) return true;
|
|
642
548
|
var u3 = o2.__c.__H.__.filter(function(n4) {
|
|
643
549
|
return n4.__c;
|
|
644
550
|
});
|
|
645
551
|
if (u3.every(function(n4) {
|
|
646
552
|
return !n4.__N;
|
|
647
|
-
}))
|
|
648
|
-
return !c2 || c2.call(this, n3, t2, r2);
|
|
553
|
+
})) return !c2 || c2.call(this, n3, t2, r2);
|
|
649
554
|
var i3 = o2.__c.props !== n3;
|
|
650
555
|
return u3.some(function(n4) {
|
|
651
556
|
if (n4.__N) {
|
|
@@ -687,10 +592,9 @@ function F$1(n2, t2, r2) {
|
|
|
687
592
|
n2(null), r3 && "function" == typeof r3 && r3();
|
|
688
593
|
};
|
|
689
594
|
}
|
|
690
|
-
if (n2)
|
|
691
|
-
return n2.current =
|
|
692
|
-
|
|
693
|
-
};
|
|
595
|
+
if (n2) return n2.current = t2(), function() {
|
|
596
|
+
return n2.current = null;
|
|
597
|
+
};
|
|
694
598
|
}, null == r2 ? r2 : r2.concat(n2));
|
|
695
599
|
}
|
|
696
600
|
function T$1(n2, r2) {
|
|
@@ -720,8 +624,7 @@ function b(n2) {
|
|
|
720
624
|
function g$1() {
|
|
721
625
|
var n2 = p(t++, 11);
|
|
722
626
|
if (!n2.__) {
|
|
723
|
-
for (var u2 = r$2.__v; null !== u2 && !u2.__m && null !== u2.__; )
|
|
724
|
-
u2 = u2.__;
|
|
627
|
+
for (var u2 = r$2.__v; null !== u2 && !u2.__m && null !== u2.__; ) u2 = u2.__;
|
|
725
628
|
var i2 = u2.__m || (u2.__m = [0, 0]);
|
|
726
629
|
n2.__ = "P" + i2[0] + "-" + i2[1]++;
|
|
727
630
|
}
|
|
@@ -730,12 +633,11 @@ function g$1() {
|
|
|
730
633
|
function j$1() {
|
|
731
634
|
for (var n2; n2 = f.shift(); ) {
|
|
732
635
|
var t2 = n2.__H;
|
|
733
|
-
if (n2.__P && t2)
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
}
|
|
636
|
+
if (n2.__P && t2) try {
|
|
637
|
+
t2.__h.some(z$1), t2.__h.some(B$1), t2.__h = [];
|
|
638
|
+
} catch (r2) {
|
|
639
|
+
t2.__h = [], c.__e(r2, n2.__v);
|
|
640
|
+
}
|
|
739
641
|
}
|
|
740
642
|
}
|
|
741
643
|
c.__b = function(n2) {
|
|
@@ -801,17 +703,12 @@ function D$1(n2, t2) {
|
|
|
801
703
|
return "function" == typeof t2 ? t2(n2) : t2;
|
|
802
704
|
}
|
|
803
705
|
function g(n2, t2) {
|
|
804
|
-
for (var e2 in t2)
|
|
805
|
-
n2[e2] = t2[e2];
|
|
706
|
+
for (var e2 in t2) n2[e2] = t2[e2];
|
|
806
707
|
return n2;
|
|
807
708
|
}
|
|
808
709
|
function E(n2, t2) {
|
|
809
|
-
for (var e2 in n2)
|
|
810
|
-
|
|
811
|
-
return true;
|
|
812
|
-
for (var r2 in t2)
|
|
813
|
-
if ("__source" !== r2 && n2[r2] !== t2[r2])
|
|
814
|
-
return true;
|
|
710
|
+
for (var e2 in n2) if ("__source" !== e2 && !(e2 in t2)) return true;
|
|
711
|
+
for (var r2 in t2) if ("__source" !== r2 && n2[r2] !== t2[r2]) return true;
|
|
815
712
|
return false;
|
|
816
713
|
}
|
|
817
714
|
function C(n2, t2) {
|
|
@@ -876,15 +773,12 @@ var L = function(n2, t2) {
|
|
|
876
773
|
return n2 ? L$1(n2).length : 0;
|
|
877
774
|
}, only: function(n2) {
|
|
878
775
|
var t2 = L$1(n2);
|
|
879
|
-
if (1 !== t2.length)
|
|
880
|
-
throw "Children.only";
|
|
776
|
+
if (1 !== t2.length) throw "Children.only";
|
|
881
777
|
return t2[0];
|
|
882
778
|
}, toArray: L$1 }, U = l$2.__e;
|
|
883
779
|
l$2.__e = function(n2, t2, e2, r2) {
|
|
884
780
|
if (n2.then) {
|
|
885
|
-
for (var u2, o2 = t2; o2 = o2.__; )
|
|
886
|
-
if ((u2 = o2.__c) && u2.__c)
|
|
887
|
-
return null == t2.__e && (t2.__e = e2.__e, t2.__k = e2.__k), u2.__c(n2, t2);
|
|
781
|
+
for (var u2, o2 = t2; o2 = o2.__; ) if ((u2 = o2.__c) && u2.__c) return null == t2.__e && (t2.__e = e2.__e, t2.__k = e2.__k), u2.__c(n2, t2);
|
|
888
782
|
}
|
|
889
783
|
U(n2, t2, e2, r2);
|
|
890
784
|
};
|
|
@@ -905,8 +799,7 @@ function P() {
|
|
|
905
799
|
this.__u = 0, this.o = null, this.__b = null;
|
|
906
800
|
}
|
|
907
801
|
function j(n2) {
|
|
908
|
-
if (!n2.__)
|
|
909
|
-
return null;
|
|
802
|
+
if (!n2.__) return null;
|
|
910
803
|
var t2 = n2.__.__c;
|
|
911
804
|
return t2 && t2.__a && t2.__a(n2);
|
|
912
805
|
}
|
|
@@ -917,10 +810,8 @@ function z(n2) {
|
|
|
917
810
|
n3 && (o2 = n3.default || n3), u2 = true;
|
|
918
811
|
}, function(n3) {
|
|
919
812
|
r2 = n3, u2 = true;
|
|
920
|
-
}), r2)
|
|
921
|
-
|
|
922
|
-
if (!u2)
|
|
923
|
-
throw e2;
|
|
813
|
+
}), r2) throw r2;
|
|
814
|
+
if (!u2) throw e2;
|
|
924
815
|
return o2 ? _$2(o2, i3) : null;
|
|
925
816
|
}
|
|
926
817
|
return i2.displayName = "Lazy", i2.__f = true, i2;
|
|
@@ -947,8 +838,7 @@ l$2.unmount = function(n2) {
|
|
|
947
838
|
r2.__v.__k[0] = W(n3, n3.__c.__P, n3.__c.__O);
|
|
948
839
|
}
|
|
949
840
|
var t3;
|
|
950
|
-
for (r2.setState({ __a: r2.__b = null }); t3 = r2.o.pop(); )
|
|
951
|
-
t3.__P = l2, t3.forceUpdate();
|
|
841
|
+
for (r2.setState({ __a: r2.__b = null }); t3 = r2.o.pop(); ) t3.__P = l2, t3.forceUpdate();
|
|
952
842
|
}
|
|
953
843
|
};
|
|
954
844
|
r2.__u++ || 32 & t2.__u || r2.setState({ __a: r2.__b = r2.__v.__k[0] }), n2.then(i2, i2);
|
|
@@ -966,14 +856,11 @@ l$2.unmount = function(n2) {
|
|
|
966
856
|
return i2 && (i2.__u &= -33), [_$2(k$3, null, e2.__a ? null : n2.children), i2];
|
|
967
857
|
};
|
|
968
858
|
var H = function(n2, t2, e2) {
|
|
969
|
-
if (++e2[1] === e2[0] && n2.l.delete(t2), n2.props.revealOrder && ("t" !== n2.props.revealOrder[0] || !n2.l.size))
|
|
970
|
-
for (e2
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
break;
|
|
975
|
-
n2.i = e2 = e2[2];
|
|
976
|
-
}
|
|
859
|
+
if (++e2[1] === e2[0] && n2.l.delete(t2), n2.props.revealOrder && ("t" !== n2.props.revealOrder[0] || !n2.l.size)) for (e2 = n2.i; e2; ) {
|
|
860
|
+
for (; e2.length > 3; ) e2.pop()();
|
|
861
|
+
if (e2[1] < e2[0]) break;
|
|
862
|
+
n2.i = e2 = e2[2];
|
|
863
|
+
}
|
|
977
864
|
};
|
|
978
865
|
function Z(n2) {
|
|
979
866
|
return this.getChildContext = function() {
|
|
@@ -985,8 +872,7 @@ function Y(n2) {
|
|
|
985
872
|
if (e2.componentWillUnmount = function() {
|
|
986
873
|
J$1(null, e2.v), e2.v = null, e2.h = null;
|
|
987
874
|
}, e2.h && e2.h !== r2 && e2.componentWillUnmount(), !e2.v) {
|
|
988
|
-
for (var u2 = e2.__v; null !== u2 && !u2.__m && null !== u2.__; )
|
|
989
|
-
u2 = u2.__;
|
|
875
|
+
for (var u2 = e2.__v; null !== u2 && !u2.__m && null !== u2.__; ) u2 = u2.__;
|
|
990
876
|
e2.h = r2, e2.v = { nodeType: 1, parentNode: r2, childNodes: [], __k: { __m: u2.__m }, contains: function() {
|
|
991
877
|
return true;
|
|
992
878
|
}, namespaceURI: r2.namespaceURI, insertBefore: function(n3, t2) {
|
|
@@ -1013,8 +899,7 @@ function $(n2, e2) {
|
|
|
1013
899
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
1014
900
|
var t2 = L$1(n2.children);
|
|
1015
901
|
n2.revealOrder && "b" === n2.revealOrder[0] && t2.reverse();
|
|
1016
|
-
for (var e2 = t2.length; e2--; )
|
|
1017
|
-
this.l.set(t2[e2], this.i = [1, 0, this.i]);
|
|
902
|
+
for (var e2 = t2.length; e2--; ) this.l.set(t2[e2], this.i = [1, 0, this.i]);
|
|
1018
903
|
return n2.children;
|
|
1019
904
|
}, B.prototype.componentDidUpdate = B.prototype.componentDidMount = function() {
|
|
1020
905
|
var n2 = this;
|
|
@@ -1054,7 +939,7 @@ var ln, cn = { enumerable: false, configurable: true, get: function() {
|
|
|
1054
939
|
return this.class;
|
|
1055
940
|
} }, fn = l$2.vnode;
|
|
1056
941
|
l$2.vnode = function(n2) {
|
|
1057
|
-
"string" == typeof n2.type && function(n3) {
|
|
942
|
+
"string" == typeof n2.type && (function(n3) {
|
|
1058
943
|
var t2 = n3.props, e2 = n3.type, u2 = {}, o2 = -1 === e2.indexOf("-");
|
|
1059
944
|
for (var i2 in t2) {
|
|
1060
945
|
var l2 = t2[i2];
|
|
@@ -1068,7 +953,7 @@ l$2.vnode = function(n2) {
|
|
|
1068
953
|
})), "select" == e2 && null != u2.defaultValue && (u2.value = L$1(t2.children).forEach(function(n4) {
|
|
1069
954
|
n4.props.selected = u2.multiple ? -1 != u2.defaultValue.indexOf(n4.props.value) : u2.defaultValue == n4.props.value;
|
|
1070
955
|
})), t2.class && !t2.className ? (u2.class = t2.class, Object.defineProperty(u2, "className", cn)) : t2.className && (u2.class = u2.className = t2.className), n3.props = u2;
|
|
1071
|
-
}(n2), n2.$$typeof = q, fn && fn(n2);
|
|
956
|
+
})(n2), n2.$$typeof = q, fn && fn(n2);
|
|
1072
957
|
};
|
|
1073
958
|
var an = l$2.__r;
|
|
1074
959
|
l$2.__r = function(n2) {
|
|
@@ -1161,15 +1046,12 @@ const $2AODx$react = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
1161
1046
|
function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
1162
1047
|
return function handleEvent(event) {
|
|
1163
1048
|
originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
|
|
1164
|
-
if (checkForDefaultPrevented === false || !event.defaultPrevented)
|
|
1165
|
-
return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
|
|
1049
|
+
if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
|
|
1166
1050
|
};
|
|
1167
1051
|
}
|
|
1168
1052
|
function $6ed0406888f73fc4$var$setRef(ref, value) {
|
|
1169
|
-
if (typeof ref === "function")
|
|
1170
|
-
|
|
1171
|
-
else if (ref !== null && ref !== void 0)
|
|
1172
|
-
ref.current = value;
|
|
1053
|
+
if (typeof ref === "function") ref(value);
|
|
1054
|
+
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
1173
1055
|
}
|
|
1174
1056
|
function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
|
|
1175
1057
|
return (node) => refs.forEach(
|
|
@@ -1202,10 +1084,8 @@ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeD
|
|
|
1202
1084
|
function useContext(consumerName, scope) {
|
|
1203
1085
|
const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index2]) || BaseContext;
|
|
1204
1086
|
const context = x$1(Context);
|
|
1205
|
-
if (context)
|
|
1206
|
-
|
|
1207
|
-
if (defaultContext !== void 0)
|
|
1208
|
-
return defaultContext;
|
|
1087
|
+
if (context) return context;
|
|
1088
|
+
if (defaultContext !== void 0) return defaultContext;
|
|
1209
1089
|
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
1210
1090
|
}
|
|
1211
1091
|
Provider.displayName = rootComponentName + "Provider";
|
|
@@ -1242,8 +1122,7 @@ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeD
|
|
|
1242
1122
|
}
|
|
1243
1123
|
function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
|
|
1244
1124
|
const baseScope = scopes[0];
|
|
1245
|
-
if (scopes.length === 1)
|
|
1246
|
-
return baseScope;
|
|
1125
|
+
if (scopes.length === 1) return baseScope;
|
|
1247
1126
|
const createScope1 = () => {
|
|
1248
1127
|
const scopeHooks = scopes.map(
|
|
1249
1128
|
(createScope) => ({
|
|
@@ -1281,28 +1160,25 @@ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ D((props, forw
|
|
|
1281
1160
|
const newElement = slottable.props.children;
|
|
1282
1161
|
const newChildren = childrenArray.map((child) => {
|
|
1283
1162
|
if (child === slottable) {
|
|
1284
|
-
if (O.count(newElement) > 1)
|
|
1285
|
-
return O.only(null);
|
|
1163
|
+
if (O.count(newElement) > 1) return O.only(null);
|
|
1286
1164
|
return /* @__PURE__ */ mn(newElement) ? newElement.props.children : null;
|
|
1287
|
-
} else
|
|
1288
|
-
return child;
|
|
1165
|
+
} else return child;
|
|
1289
1166
|
});
|
|
1290
|
-
return /* @__PURE__ */ _$2($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
|
|
1167
|
+
return /* @__PURE__ */ _$2($5e63c961fc1ce211$var$SlotClone, _extends$1({}, slotProps, {
|
|
1291
1168
|
ref: forwardedRef
|
|
1292
1169
|
}), /* @__PURE__ */ mn(newElement) ? /* @__PURE__ */ _n(newElement, void 0, newChildren) : null);
|
|
1293
1170
|
}
|
|
1294
|
-
return /* @__PURE__ */ _$2($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
|
|
1171
|
+
return /* @__PURE__ */ _$2($5e63c961fc1ce211$var$SlotClone, _extends$1({}, slotProps, {
|
|
1295
1172
|
ref: forwardedRef
|
|
1296
1173
|
}), children);
|
|
1297
1174
|
});
|
|
1298
1175
|
$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = "Slot";
|
|
1299
1176
|
const $5e63c961fc1ce211$var$SlotClone = /* @__PURE__ */ D((props, forwardedRef) => {
|
|
1300
1177
|
const { children, ...slotProps } = props;
|
|
1301
|
-
if (/* @__PURE__ */ mn(children))
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
});
|
|
1178
|
+
if (/* @__PURE__ */ mn(children)) return /* @__PURE__ */ _n(children, {
|
|
1179
|
+
...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
|
|
1180
|
+
ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
|
|
1181
|
+
});
|
|
1306
1182
|
return O.count(children) > 1 ? O.only(null) : null;
|
|
1307
1183
|
});
|
|
1308
1184
|
$5e63c961fc1ce211$var$SlotClone.displayName = "SlotClone";
|
|
@@ -1321,23 +1197,19 @@ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
|
|
|
1321
1197
|
const childPropValue = childProps[propName];
|
|
1322
1198
|
const isHandler = /^on[A-Z]/.test(propName);
|
|
1323
1199
|
if (isHandler) {
|
|
1324
|
-
if (slotPropValue && childPropValue)
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
slotPropValue(...args);
|
|
1328
|
-
};
|
|
1329
|
-
else if (slotPropValue)
|
|
1330
|
-
overrideProps[propName] = slotPropValue;
|
|
1331
|
-
} else if (propName === "style")
|
|
1332
|
-
overrideProps[propName] = {
|
|
1333
|
-
...slotPropValue,
|
|
1334
|
-
...childPropValue
|
|
1200
|
+
if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
|
|
1201
|
+
childPropValue(...args);
|
|
1202
|
+
slotPropValue(...args);
|
|
1335
1203
|
};
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1204
|
+
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
1205
|
+
} else if (propName === "style") overrideProps[propName] = {
|
|
1206
|
+
...slotPropValue,
|
|
1207
|
+
...childPropValue
|
|
1208
|
+
};
|
|
1209
|
+
else if (propName === "className") overrideProps[propName] = [
|
|
1210
|
+
slotPropValue,
|
|
1211
|
+
childPropValue
|
|
1212
|
+
].filter(Boolean).join(" ");
|
|
1341
1213
|
}
|
|
1342
1214
|
return {
|
|
1343
1215
|
...slotProps,
|
|
@@ -1369,7 +1241,7 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.re
|
|
|
1369
1241
|
y(() => {
|
|
1370
1242
|
window[Symbol.for("radix-ui")] = true;
|
|
1371
1243
|
}, []);
|
|
1372
|
-
return /* @__PURE__ */ _$2(Comp, _extends({}, primitiveProps, {
|
|
1244
|
+
return /* @__PURE__ */ _$2(Comp, _extends$1({}, primitiveProps, {
|
|
1373
1245
|
ref: forwardedRef
|
|
1374
1246
|
}));
|
|
1375
1247
|
});
|
|
@@ -1380,10 +1252,9 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.re
|
|
|
1380
1252
|
};
|
|
1381
1253
|
}, {});
|
|
1382
1254
|
function $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event) {
|
|
1383
|
-
if (target)
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
);
|
|
1255
|
+
if (target) En(
|
|
1256
|
+
() => target.dispatchEvent(event)
|
|
1257
|
+
);
|
|
1387
1258
|
}
|
|
1388
1259
|
function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
|
|
1389
1260
|
const callbackRef = A$1(callback);
|
|
@@ -1402,8 +1273,7 @@ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDoc
|
|
|
1402
1273
|
const onEscapeKeyDown = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEscapeKeyDownProp);
|
|
1403
1274
|
y(() => {
|
|
1404
1275
|
const handleKeyDown = (event) => {
|
|
1405
|
-
if (event.key === "Escape")
|
|
1406
|
-
onEscapeKeyDown(event);
|
|
1276
|
+
if (event.key === "Escape") onEscapeKeyDown(event);
|
|
1407
1277
|
};
|
|
1408
1278
|
ownerDocument.addEventListener("keydown", handleKeyDown);
|
|
1409
1279
|
return () => ownerDocument.removeEventListener("keydown", handleKeyDown);
|
|
@@ -1447,12 +1317,10 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
|
|
|
1447
1317
|
].some(
|
|
1448
1318
|
(branch) => branch.contains(target)
|
|
1449
1319
|
);
|
|
1450
|
-
if (!isPointerEventsEnabled || isPointerDownOnBranch)
|
|
1451
|
-
return;
|
|
1320
|
+
if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
|
|
1452
1321
|
onPointerDownOutside === null || onPointerDownOutside === void 0 || onPointerDownOutside(event);
|
|
1453
1322
|
onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
|
|
1454
|
-
if (!event.defaultPrevented)
|
|
1455
|
-
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
1323
|
+
if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
1456
1324
|
}, ownerDocument);
|
|
1457
1325
|
const focusOutside = $5cb92bef7577960e$var$useFocusOutside((event) => {
|
|
1458
1326
|
const target = event.target;
|
|
@@ -1461,17 +1329,14 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
|
|
|
1461
1329
|
].some(
|
|
1462
1330
|
(branch) => branch.contains(target)
|
|
1463
1331
|
);
|
|
1464
|
-
if (isFocusInBranch)
|
|
1465
|
-
return;
|
|
1332
|
+
if (isFocusInBranch) return;
|
|
1466
1333
|
onFocusOutside === null || onFocusOutside === void 0 || onFocusOutside(event);
|
|
1467
1334
|
onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
|
|
1468
|
-
if (!event.defaultPrevented)
|
|
1469
|
-
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
1335
|
+
if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
1470
1336
|
}, ownerDocument);
|
|
1471
1337
|
$addc16e1bbe58fd0$export$3a72a57244d6e765((event) => {
|
|
1472
1338
|
const isHighestLayer = index2 === context.layers.size - 1;
|
|
1473
|
-
if (!isHighestLayer)
|
|
1474
|
-
return;
|
|
1339
|
+
if (!isHighestLayer) return;
|
|
1475
1340
|
onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);
|
|
1476
1341
|
if (!event.defaultPrevented && onDismiss) {
|
|
1477
1342
|
event.preventDefault();
|
|
@@ -1479,8 +1344,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
|
|
|
1479
1344
|
}
|
|
1480
1345
|
}, ownerDocument);
|
|
1481
1346
|
y(() => {
|
|
1482
|
-
if (!node1)
|
|
1483
|
-
return;
|
|
1347
|
+
if (!node1) return;
|
|
1484
1348
|
if (disableOutsidePointerEvents) {
|
|
1485
1349
|
if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
|
|
1486
1350
|
$5cb92bef7577960e$var$originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
|
|
@@ -1491,8 +1355,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
|
|
|
1491
1355
|
context.layers.add(node1);
|
|
1492
1356
|
$5cb92bef7577960e$var$dispatchUpdate();
|
|
1493
1357
|
return () => {
|
|
1494
|
-
if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1)
|
|
1495
|
-
ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;
|
|
1358
|
+
if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;
|
|
1496
1359
|
};
|
|
1497
1360
|
}, [
|
|
1498
1361
|
node1,
|
|
@@ -1502,8 +1365,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
|
|
|
1502
1365
|
]);
|
|
1503
1366
|
y(() => {
|
|
1504
1367
|
return () => {
|
|
1505
|
-
if (!node1)
|
|
1506
|
-
return;
|
|
1368
|
+
if (!node1) return;
|
|
1507
1369
|
context.layers.delete(node1);
|
|
1508
1370
|
context.layersWithOutsidePointerEventsDisabled.delete(node1);
|
|
1509
1371
|
$5cb92bef7577960e$var$dispatchUpdate();
|
|
@@ -1517,7 +1379,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
|
|
|
1517
1379
|
document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
|
|
1518
1380
|
return () => document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
|
|
1519
1381
|
}, []);
|
|
1520
|
-
return /* @__PURE__ */ _$2($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, layerProps, {
|
|
1382
|
+
return /* @__PURE__ */ _$2($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({}, layerProps, {
|
|
1521
1383
|
ref: composedRefs,
|
|
1522
1384
|
style: {
|
|
1523
1385
|
pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
|
|
@@ -1550,8 +1412,7 @@ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, owner
|
|
|
1550
1412
|
ownerDocument.addEventListener("click", handleClickRef.current, {
|
|
1551
1413
|
once: true
|
|
1552
1414
|
});
|
|
1553
|
-
} else
|
|
1554
|
-
handleAndDispatchPointerDownOutsideEvent();
|
|
1415
|
+
} else handleAndDispatchPointerDownOutsideEvent();
|
|
1555
1416
|
} else
|
|
1556
1417
|
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
1557
1418
|
isPointerInsideReactTreeRef.current = false;
|
|
@@ -1609,14 +1470,11 @@ function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detai
|
|
|
1609
1470
|
cancelable: true,
|
|
1610
1471
|
detail
|
|
1611
1472
|
});
|
|
1612
|
-
if (handler)
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
$8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event);
|
|
1618
|
-
else
|
|
1619
|
-
target.dispatchEvent(event);
|
|
1473
|
+
if (handler) target.addEventListener(name, handler, {
|
|
1474
|
+
once: true
|
|
1475
|
+
});
|
|
1476
|
+
if (discrete) $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event);
|
|
1477
|
+
else target.dispatchEvent(event);
|
|
1620
1478
|
}
|
|
1621
1479
|
let $3db38b7d1fb3fe6a$var$count = 0;
|
|
1622
1480
|
function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c() {
|
|
@@ -1627,10 +1485,9 @@ function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c() {
|
|
|
1627
1485
|
document.body.insertAdjacentElement("beforeend", (_edgeGuards$2 = edgeGuards[1]) !== null && _edgeGuards$2 !== void 0 ? _edgeGuards$2 : $3db38b7d1fb3fe6a$var$createFocusGuard());
|
|
1628
1486
|
$3db38b7d1fb3fe6a$var$count++;
|
|
1629
1487
|
return () => {
|
|
1630
|
-
if ($3db38b7d1fb3fe6a$var$count === 1)
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
);
|
|
1488
|
+
if ($3db38b7d1fb3fe6a$var$count === 1) document.querySelectorAll("[data-radix-focus-guard]").forEach(
|
|
1489
|
+
(node) => node.remove()
|
|
1490
|
+
);
|
|
1634
1491
|
$3db38b7d1fb3fe6a$var$count--;
|
|
1635
1492
|
};
|
|
1636
1493
|
}, []);
|
|
@@ -1670,41 +1527,31 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
|
|
|
1670
1527
|
y(() => {
|
|
1671
1528
|
if (trapped) {
|
|
1672
1529
|
let handleFocusIn = function(event) {
|
|
1673
|
-
if (focusScope.paused || !container1)
|
|
1674
|
-
return;
|
|
1530
|
+
if (focusScope.paused || !container1) return;
|
|
1675
1531
|
const target = event.target;
|
|
1676
|
-
if (container1.contains(target))
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
select: true
|
|
1681
|
-
});
|
|
1532
|
+
if (container1.contains(target)) lastFocusedElementRef.current = target;
|
|
1533
|
+
else $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {
|
|
1534
|
+
select: true
|
|
1535
|
+
});
|
|
1682
1536
|
}, handleFocusOut = function(event) {
|
|
1683
|
-
if (focusScope.paused || !container1)
|
|
1684
|
-
return;
|
|
1537
|
+
if (focusScope.paused || !container1) return;
|
|
1685
1538
|
const relatedTarget = event.relatedTarget;
|
|
1686
|
-
if (relatedTarget === null)
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
select: true
|
|
1691
|
-
});
|
|
1539
|
+
if (relatedTarget === null) return;
|
|
1540
|
+
if (!container1.contains(relatedTarget)) $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {
|
|
1541
|
+
select: true
|
|
1542
|
+
});
|
|
1692
1543
|
}, handleMutations = function(mutations) {
|
|
1693
1544
|
const focusedElement = document.activeElement;
|
|
1694
|
-
if (focusedElement !== document.body)
|
|
1695
|
-
|
|
1696
|
-
for (const mutation of mutations)
|
|
1697
|
-
if (mutation.removedNodes.length > 0)
|
|
1698
|
-
$d3863c46a17e8a28$var$focus(container1);
|
|
1545
|
+
if (focusedElement !== document.body) return;
|
|
1546
|
+
for (const mutation of mutations) if (mutation.removedNodes.length > 0) $d3863c46a17e8a28$var$focus(container1);
|
|
1699
1547
|
};
|
|
1700
1548
|
document.addEventListener("focusin", handleFocusIn);
|
|
1701
1549
|
document.addEventListener("focusout", handleFocusOut);
|
|
1702
1550
|
const mutationObserver = new MutationObserver(handleMutations);
|
|
1703
|
-
if (container1)
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
});
|
|
1551
|
+
if (container1) mutationObserver.observe(container1, {
|
|
1552
|
+
childList: true,
|
|
1553
|
+
subtree: true
|
|
1554
|
+
});
|
|
1708
1555
|
return () => {
|
|
1709
1556
|
document.removeEventListener("focusin", handleFocusIn);
|
|
1710
1557
|
document.removeEventListener("focusout", handleFocusOut);
|
|
@@ -1729,8 +1576,7 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
|
|
|
1729
1576
|
$d3863c46a17e8a28$var$focusFirst($d3863c46a17e8a28$var$removeLinks($d3863c46a17e8a28$var$getTabbableCandidates(container1)), {
|
|
1730
1577
|
select: true
|
|
1731
1578
|
});
|
|
1732
|
-
if (document.activeElement === previouslyFocusedElement)
|
|
1733
|
-
$d3863c46a17e8a28$var$focus(container1);
|
|
1579
|
+
if (document.activeElement === previouslyFocusedElement) $d3863c46a17e8a28$var$focus(container1);
|
|
1734
1580
|
}
|
|
1735
1581
|
}
|
|
1736
1582
|
return () => {
|
|
@@ -1739,10 +1585,9 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
|
|
|
1739
1585
|
const unmountEvent = new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, $d3863c46a17e8a28$var$EVENT_OPTIONS);
|
|
1740
1586
|
container1.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
1741
1587
|
container1.dispatchEvent(unmountEvent);
|
|
1742
|
-
if (!unmountEvent.defaultPrevented)
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
});
|
|
1588
|
+
if (!unmountEvent.defaultPrevented) $d3863c46a17e8a28$var$focus(previouslyFocusedElement !== null && previouslyFocusedElement !== void 0 ? previouslyFocusedElement : document.body, {
|
|
1589
|
+
select: true
|
|
1590
|
+
});
|
|
1746
1591
|
container1.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
1747
1592
|
$d3863c46a17e8a28$var$focusScopesStack.remove(focusScope);
|
|
1748
1593
|
}, 0);
|
|
@@ -1755,10 +1600,8 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
|
|
|
1755
1600
|
focusScope
|
|
1756
1601
|
]);
|
|
1757
1602
|
const handleKeyDown = q$1((event) => {
|
|
1758
|
-
if (!loop && !trapped)
|
|
1759
|
-
|
|
1760
|
-
if (focusScope.paused)
|
|
1761
|
-
return;
|
|
1603
|
+
if (!loop && !trapped) return;
|
|
1604
|
+
if (focusScope.paused) return;
|
|
1762
1605
|
const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
|
|
1763
1606
|
const focusedElement = document.activeElement;
|
|
1764
1607
|
if (isTabKey && focusedElement) {
|
|
@@ -1766,21 +1609,18 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
|
|
|
1766
1609
|
const [first, last] = $d3863c46a17e8a28$var$getTabbableEdges(container);
|
|
1767
1610
|
const hasTabbableElementsInside = first && last;
|
|
1768
1611
|
if (!hasTabbableElementsInside) {
|
|
1769
|
-
if (focusedElement === container)
|
|
1770
|
-
event.preventDefault();
|
|
1612
|
+
if (focusedElement === container) event.preventDefault();
|
|
1771
1613
|
} else {
|
|
1772
1614
|
if (!event.shiftKey && focusedElement === last) {
|
|
1773
1615
|
event.preventDefault();
|
|
1774
|
-
if (loop)
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
});
|
|
1616
|
+
if (loop) $d3863c46a17e8a28$var$focus(first, {
|
|
1617
|
+
select: true
|
|
1618
|
+
});
|
|
1778
1619
|
} else if (event.shiftKey && focusedElement === first) {
|
|
1779
1620
|
event.preventDefault();
|
|
1780
|
-
if (loop)
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
});
|
|
1621
|
+
if (loop) $d3863c46a17e8a28$var$focus(last, {
|
|
1622
|
+
select: true
|
|
1623
|
+
});
|
|
1784
1624
|
}
|
|
1785
1625
|
}
|
|
1786
1626
|
}
|
|
@@ -1789,7 +1629,7 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
|
|
|
1789
1629
|
trapped,
|
|
1790
1630
|
focusScope.paused
|
|
1791
1631
|
]);
|
|
1792
|
-
return /* @__PURE__ */ _$2($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
1632
|
+
return /* @__PURE__ */ _$2($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
1793
1633
|
tabIndex: -1
|
|
1794
1634
|
}, scopeProps, {
|
|
1795
1635
|
ref: composedRefs,
|
|
@@ -1802,8 +1642,7 @@ function $d3863c46a17e8a28$var$focusFirst(candidates, { select = false } = {}) {
|
|
|
1802
1642
|
$d3863c46a17e8a28$var$focus(candidate, {
|
|
1803
1643
|
select
|
|
1804
1644
|
});
|
|
1805
|
-
if (document.activeElement !== previouslyFocusedElement)
|
|
1806
|
-
return;
|
|
1645
|
+
if (document.activeElement !== previouslyFocusedElement) return;
|
|
1807
1646
|
}
|
|
1808
1647
|
}
|
|
1809
1648
|
function $d3863c46a17e8a28$var$getTabbableEdges(container) {
|
|
@@ -1820,31 +1659,25 @@ function $d3863c46a17e8a28$var$getTabbableCandidates(container) {
|
|
|
1820
1659
|
const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
|
|
1821
1660
|
acceptNode: (node) => {
|
|
1822
1661
|
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
|
|
1823
|
-
if (node.disabled || node.hidden || isHiddenInput)
|
|
1824
|
-
return NodeFilter.FILTER_SKIP;
|
|
1662
|
+
if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
|
|
1825
1663
|
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
1826
1664
|
}
|
|
1827
1665
|
});
|
|
1828
|
-
while (walker.nextNode())
|
|
1829
|
-
nodes.push(walker.currentNode);
|
|
1666
|
+
while (walker.nextNode()) nodes.push(walker.currentNode);
|
|
1830
1667
|
return nodes;
|
|
1831
1668
|
}
|
|
1832
1669
|
function $d3863c46a17e8a28$var$findVisible(elements, container) {
|
|
1833
1670
|
for (const element of elements) {
|
|
1834
1671
|
if (!$d3863c46a17e8a28$var$isHidden(element, {
|
|
1835
1672
|
upTo: container
|
|
1836
|
-
}))
|
|
1837
|
-
return element;
|
|
1673
|
+
})) return element;
|
|
1838
1674
|
}
|
|
1839
1675
|
}
|
|
1840
1676
|
function $d3863c46a17e8a28$var$isHidden(node, { upTo }) {
|
|
1841
|
-
if (getComputedStyle(node).visibility === "hidden")
|
|
1842
|
-
return true;
|
|
1677
|
+
if (getComputedStyle(node).visibility === "hidden") return true;
|
|
1843
1678
|
while (node) {
|
|
1844
|
-
if (upTo !== void 0 && node === upTo)
|
|
1845
|
-
|
|
1846
|
-
if (getComputedStyle(node).display === "none")
|
|
1847
|
-
return true;
|
|
1679
|
+
if (upTo !== void 0 && node === upTo) return false;
|
|
1680
|
+
if (getComputedStyle(node).display === "none") return true;
|
|
1848
1681
|
node = node.parentElement;
|
|
1849
1682
|
}
|
|
1850
1683
|
return false;
|
|
@@ -1858,8 +1691,7 @@ function $d3863c46a17e8a28$var$focus(element, { select = false } = {}) {
|
|
|
1858
1691
|
element.focus({
|
|
1859
1692
|
preventScroll: true
|
|
1860
1693
|
});
|
|
1861
|
-
if (element !== previouslyFocusedElement && $d3863c46a17e8a28$var$isSelectableInput(element) && select)
|
|
1862
|
-
element.select();
|
|
1694
|
+
if (element !== previouslyFocusedElement && $d3863c46a17e8a28$var$isSelectableInput(element) && select) element.select();
|
|
1863
1695
|
}
|
|
1864
1696
|
}
|
|
1865
1697
|
const $d3863c46a17e8a28$var$focusScopesStack = $d3863c46a17e8a28$var$createFocusScopesStack();
|
|
@@ -1868,8 +1700,7 @@ function $d3863c46a17e8a28$var$createFocusScopesStack() {
|
|
|
1868
1700
|
return {
|
|
1869
1701
|
add(focusScope) {
|
|
1870
1702
|
const activeFocusScope = stack[0];
|
|
1871
|
-
if (focusScope !== activeFocusScope)
|
|
1872
|
-
activeFocusScope === null || activeFocusScope === void 0 || activeFocusScope.pause();
|
|
1703
|
+
if (focusScope !== activeFocusScope) activeFocusScope === null || activeFocusScope === void 0 || activeFocusScope.pause();
|
|
1873
1704
|
stack = $d3863c46a17e8a28$var$arrayRemove(stack, focusScope);
|
|
1874
1705
|
stack.unshift(focusScope);
|
|
1875
1706
|
},
|
|
@@ -1885,8 +1716,7 @@ function $d3863c46a17e8a28$var$arrayRemove(array, item) {
|
|
|
1885
1716
|
...array
|
|
1886
1717
|
];
|
|
1887
1718
|
const index2 = updatedArray.indexOf(item);
|
|
1888
|
-
if (index2 !== -1)
|
|
1889
|
-
updatedArray.splice(index2, 1);
|
|
1719
|
+
if (index2 !== -1) updatedArray.splice(index2, 1);
|
|
1890
1720
|
return updatedArray;
|
|
1891
1721
|
}
|
|
1892
1722
|
function $d3863c46a17e8a28$var$removeLinks(items) {
|
|
@@ -1901,10 +1731,9 @@ let $1746a345f3d73bb7$var$count = 0;
|
|
|
1901
1731
|
function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
|
|
1902
1732
|
const [id, setId] = d($1746a345f3d73bb7$var$useReactId());
|
|
1903
1733
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
);
|
|
1734
|
+
setId(
|
|
1735
|
+
(reactId) => reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
|
|
1736
|
+
);
|
|
1908
1737
|
}, [
|
|
1909
1738
|
deterministicId
|
|
1910
1739
|
]);
|
|
@@ -1978,8 +1807,7 @@ function getSideList(side, isStart, rtl) {
|
|
|
1978
1807
|
switch (side) {
|
|
1979
1808
|
case "top":
|
|
1980
1809
|
case "bottom":
|
|
1981
|
-
if (rtl)
|
|
1982
|
-
return isStart ? rlPlacement : lrPlacement;
|
|
1810
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
1983
1811
|
return isStart ? lrPlacement : rlPlacement;
|
|
1984
1812
|
case "left":
|
|
1985
1813
|
case "right":
|
|
@@ -3537,8 +3365,7 @@ function deepEqual(a2, b2) {
|
|
|
3537
3365
|
if (a2 && b2 && typeof a2 === "object") {
|
|
3538
3366
|
if (Array.isArray(a2)) {
|
|
3539
3367
|
length = a2.length;
|
|
3540
|
-
if (length !== b2.length)
|
|
3541
|
-
return false;
|
|
3368
|
+
if (length !== b2.length) return false;
|
|
3542
3369
|
for (i2 = length; i2-- !== 0; ) {
|
|
3543
3370
|
if (!deepEqual(a2[i2], b2[i2])) {
|
|
3544
3371
|
return false;
|
|
@@ -3680,10 +3507,8 @@ function useFloating(options2) {
|
|
|
3680
3507
|
};
|
|
3681
3508
|
}, []);
|
|
3682
3509
|
index(() => {
|
|
3683
|
-
if (referenceEl)
|
|
3684
|
-
|
|
3685
|
-
if (floatingEl)
|
|
3686
|
-
floatingRef.current = floatingEl;
|
|
3510
|
+
if (referenceEl) referenceRef.current = referenceEl;
|
|
3511
|
+
if (floatingEl) floatingRef.current = floatingEl;
|
|
3687
3512
|
if (referenceEl && floatingEl) {
|
|
3688
3513
|
if (whileElementsMountedRef.current) {
|
|
3689
3514
|
return whileElementsMountedRef.current(referenceEl, floatingEl, update);
|
|
@@ -3794,6 +3619,28 @@ const arrow = (options2, deps) => ({
|
|
|
3794
3619
|
...arrow$1(options2),
|
|
3795
3620
|
options: [options2, deps]
|
|
3796
3621
|
});
|
|
3622
|
+
function _extends() {
|
|
3623
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n2) {
|
|
3624
|
+
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
3625
|
+
var t2 = arguments[e2];
|
|
3626
|
+
for (var r2 in t2) ({}).hasOwnProperty.call(t2, r2) && (n2[r2] = t2[r2]);
|
|
3627
|
+
}
|
|
3628
|
+
return n2;
|
|
3629
|
+
}, _extends.apply(null, arguments);
|
|
3630
|
+
}
|
|
3631
|
+
const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /* @__PURE__ */ D((props, forwardedRef) => {
|
|
3632
|
+
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
3633
|
+
return /* @__PURE__ */ _$2($8927f6f2acc4f386$export$250ffa63cdc0d034.svg, _extends({}, arrowProps, {
|
|
3634
|
+
ref: forwardedRef,
|
|
3635
|
+
width,
|
|
3636
|
+
height,
|
|
3637
|
+
viewBox: "0 0 30 10",
|
|
3638
|
+
preserveAspectRatio: "none"
|
|
3639
|
+
}), props.asChild ? children : /* @__PURE__ */ _$2("polygon", {
|
|
3640
|
+
points: "0,0 30,0 15,10"
|
|
3641
|
+
}));
|
|
3642
|
+
});
|
|
3643
|
+
const $7e8f5cd07187803e$export$be92b6f5f03c0fe9 = $7e8f5cd07187803e$export$21b07c8f274aebd5;
|
|
3797
3644
|
function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
|
|
3798
3645
|
const [size2, setSize] = d(void 0);
|
|
3799
3646
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
@@ -3803,10 +3650,8 @@ function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
|
|
|
3803
3650
|
height: element.offsetHeight
|
|
3804
3651
|
});
|
|
3805
3652
|
const resizeObserver = new ResizeObserver((entries) => {
|
|
3806
|
-
if (!Array.isArray(entries))
|
|
3807
|
-
|
|
3808
|
-
if (!entries.length)
|
|
3809
|
-
return;
|
|
3653
|
+
if (!Array.isArray(entries)) return;
|
|
3654
|
+
if (!entries.length) return;
|
|
3810
3655
|
const entry = entries[0];
|
|
3811
3656
|
let width;
|
|
3812
3657
|
let height;
|
|
@@ -3856,7 +3701,7 @@ const $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d = /* @__PURE__ */ D((props, forwa
|
|
|
3856
3701
|
y(() => {
|
|
3857
3702
|
context.onAnchorChange((virtualRef === null || virtualRef === void 0 ? void 0 : virtualRef.current) || ref.current);
|
|
3858
3703
|
});
|
|
3859
|
-
return virtualRef ? null : /* @__PURE__ */ _$2($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, anchorProps, {
|
|
3704
|
+
return virtualRef ? null : /* @__PURE__ */ _$2($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({}, anchorProps, {
|
|
3860
3705
|
ref: composedRefs
|
|
3861
3706
|
}));
|
|
3862
3707
|
});
|
|
@@ -3948,8 +3793,7 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ D((props, forwa
|
|
|
3948
3793
|
const [placedSide, placedAlign] = $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(placement);
|
|
3949
3794
|
const handlePlaced = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPlaced);
|
|
3950
3795
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
3951
|
-
if (isPositioned)
|
|
3952
|
-
handlePlaced === null || handlePlaced === void 0 || handlePlaced();
|
|
3796
|
+
if (isPositioned) handlePlaced === null || handlePlaced === void 0 || handlePlaced();
|
|
3953
3797
|
}, [
|
|
3954
3798
|
isPositioned,
|
|
3955
3799
|
handlePlaced
|
|
@@ -3959,8 +3803,7 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ D((props, forwa
|
|
|
3959
3803
|
const cannotCenterArrow = ((_middlewareData$arrow3 = middlewareData.arrow) === null || _middlewareData$arrow3 === void 0 ? void 0 : _middlewareData$arrow3.centerOffset) !== 0;
|
|
3960
3804
|
const [contentZIndex, setContentZIndex] = d();
|
|
3961
3805
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
3962
|
-
if (content)
|
|
3963
|
-
setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
3806
|
+
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
3964
3807
|
}, [
|
|
3965
3808
|
content
|
|
3966
3809
|
]);
|
|
@@ -3986,7 +3829,7 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ D((props, forwa
|
|
|
3986
3829
|
arrowX,
|
|
3987
3830
|
arrowY,
|
|
3988
3831
|
shouldHideArrow: cannotCenterArrow
|
|
3989
|
-
}, /* @__PURE__ */ _$2($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
3832
|
+
}, /* @__PURE__ */ _$2($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
3990
3833
|
"data-side": placedSide,
|
|
3991
3834
|
"data-align": placedAlign
|
|
3992
3835
|
}, contentProps, {
|
|
@@ -4001,6 +3844,55 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ D((props, forwa
|
|
|
4001
3844
|
}
|
|
4002
3845
|
}))));
|
|
4003
3846
|
});
|
|
3847
|
+
const $cf1ac5d9fe0e8206$var$ARROW_NAME = "PopperArrow";
|
|
3848
|
+
const $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE = {
|
|
3849
|
+
top: "bottom",
|
|
3850
|
+
right: "left",
|
|
3851
|
+
bottom: "top",
|
|
3852
|
+
left: "right"
|
|
3853
|
+
};
|
|
3854
|
+
const $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0 = /* @__PURE__ */ D(function $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd02(props, forwardedRef) {
|
|
3855
|
+
const { __scopePopper, ...arrowProps } = props;
|
|
3856
|
+
const contentContext = $cf1ac5d9fe0e8206$var$useContentContext($cf1ac5d9fe0e8206$var$ARROW_NAME, __scopePopper);
|
|
3857
|
+
const baseSide = $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE[contentContext.placedSide];
|
|
3858
|
+
return (
|
|
3859
|
+
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
3860
|
+
// doesn't report size as we'd expect on SVG elements.
|
|
3861
|
+
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
3862
|
+
/* @__PURE__ */ _$2("span", {
|
|
3863
|
+
ref: contentContext.onArrowChange,
|
|
3864
|
+
style: {
|
|
3865
|
+
position: "absolute",
|
|
3866
|
+
left: contentContext.arrowX,
|
|
3867
|
+
top: contentContext.arrowY,
|
|
3868
|
+
[baseSide]: 0,
|
|
3869
|
+
transformOrigin: {
|
|
3870
|
+
top: "",
|
|
3871
|
+
right: "0 0",
|
|
3872
|
+
bottom: "center 0",
|
|
3873
|
+
left: "100% 0"
|
|
3874
|
+
}[contentContext.placedSide],
|
|
3875
|
+
transform: {
|
|
3876
|
+
top: "translateY(100%)",
|
|
3877
|
+
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
3878
|
+
bottom: `rotate(180deg)`,
|
|
3879
|
+
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
3880
|
+
}[contentContext.placedSide],
|
|
3881
|
+
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
3882
|
+
}
|
|
3883
|
+
}, /* @__PURE__ */ _$2($7e8f5cd07187803e$export$be92b6f5f03c0fe9, _extends$1({}, arrowProps, {
|
|
3884
|
+
ref: forwardedRef,
|
|
3885
|
+
style: {
|
|
3886
|
+
...arrowProps.style,
|
|
3887
|
+
// ensures the element can be measured correctly (mostly for if SVG)
|
|
3888
|
+
display: "block"
|
|
3889
|
+
}
|
|
3890
|
+
})))
|
|
3891
|
+
);
|
|
3892
|
+
});
|
|
3893
|
+
/* @__PURE__ */ Object.assign($cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0, {
|
|
3894
|
+
displayName: $cf1ac5d9fe0e8206$var$ARROW_NAME
|
|
3895
|
+
});
|
|
4004
3896
|
function $cf1ac5d9fe0e8206$var$isNotNull(value) {
|
|
4005
3897
|
return value !== null;
|
|
4006
3898
|
}
|
|
@@ -4058,7 +3950,7 @@ const $cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2 = $cf1ac5d9fe0e8206$export$bc4ae
|
|
|
4058
3950
|
const $f1701beae083dbae$export$602eac185826482c = /* @__PURE__ */ D((props, forwardedRef) => {
|
|
4059
3951
|
var _globalThis$document;
|
|
4060
3952
|
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;
|
|
4061
|
-
return container ? /* @__PURE__ */ xn.createPortal(/* @__PURE__ */ _$2($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, portalProps, {
|
|
3953
|
+
return container ? /* @__PURE__ */ xn.createPortal(/* @__PURE__ */ _$2($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({}, portalProps, {
|
|
4062
3954
|
ref: forwardedRef
|
|
4063
3955
|
})), container) : null;
|
|
4064
3956
|
});
|
|
@@ -4113,16 +4005,13 @@ function $921a889cee6df7e8$var$usePresence(present) {
|
|
|
4113
4005
|
if (hasPresentChanged) {
|
|
4114
4006
|
const prevAnimationName = prevAnimationNameRef.current;
|
|
4115
4007
|
const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(styles);
|
|
4116
|
-
if (present)
|
|
4117
|
-
send("MOUNT");
|
|
4008
|
+
if (present) send("MOUNT");
|
|
4118
4009
|
else if (currentAnimationName === "none" || (styles === null || styles === void 0 ? void 0 : styles.display) === "none")
|
|
4119
4010
|
send("UNMOUNT");
|
|
4120
4011
|
else {
|
|
4121
4012
|
const isAnimating = prevAnimationName !== currentAnimationName;
|
|
4122
|
-
if (wasPresent && isAnimating)
|
|
4123
|
-
|
|
4124
|
-
else
|
|
4125
|
-
send("UNMOUNT");
|
|
4013
|
+
if (wasPresent && isAnimating) send("ANIMATION_OUT");
|
|
4014
|
+
else send("UNMOUNT");
|
|
4126
4015
|
}
|
|
4127
4016
|
prevPresentRef.current = present;
|
|
4128
4017
|
}
|
|
@@ -4164,8 +4053,7 @@ function $921a889cee6df7e8$var$usePresence(present) {
|
|
|
4164
4053
|
"unmountSuspended"
|
|
4165
4054
|
].includes(state),
|
|
4166
4055
|
ref: q$1((node) => {
|
|
4167
|
-
if (node)
|
|
4168
|
-
stylesRef.current = getComputedStyle(node);
|
|
4056
|
+
if (node) stylesRef.current = getComputedStyle(node);
|
|
4169
4057
|
setNode(node);
|
|
4170
4058
|
}, [])
|
|
4171
4059
|
};
|
|
@@ -4186,10 +4074,8 @@ function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop, defaultProp, onChange
|
|
|
4186
4074
|
if (isControlled) {
|
|
4187
4075
|
const setter = nextValue;
|
|
4188
4076
|
const value = typeof nextValue === "function" ? setter(prop) : nextValue;
|
|
4189
|
-
if (value !== prop)
|
|
4190
|
-
|
|
4191
|
-
} else
|
|
4192
|
-
setUncontrolledProp(nextValue);
|
|
4077
|
+
if (value !== prop) handleChange(value);
|
|
4078
|
+
} else setUncontrolledProp(nextValue);
|
|
4193
4079
|
}, [
|
|
4194
4080
|
isControlled,
|
|
4195
4081
|
prop,
|
|
@@ -4328,7 +4214,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
|
4328
4214
|
markerName = "data-aria-hidden";
|
|
4329
4215
|
}
|
|
4330
4216
|
var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
4331
|
-
var activeParentNode =
|
|
4217
|
+
var activeParentNode = getDefaultParent(originalTarget);
|
|
4332
4218
|
if (!activeParentNode) {
|
|
4333
4219
|
return function() {
|
|
4334
4220
|
return null;
|
|
@@ -4341,9 +4227,7 @@ var __assign = function() {
|
|
|
4341
4227
|
__assign = Object.assign || function __assign2(t2) {
|
|
4342
4228
|
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
4343
4229
|
s2 = arguments[i2];
|
|
4344
|
-
for (var p2 in s2)
|
|
4345
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
4346
|
-
t2[p2] = s2[p2];
|
|
4230
|
+
for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2)) t2[p2] = s2[p2];
|
|
4347
4231
|
}
|
|
4348
4232
|
return t2;
|
|
4349
4233
|
};
|
|
@@ -4351,9 +4235,8 @@ var __assign = function() {
|
|
|
4351
4235
|
};
|
|
4352
4236
|
function __rest(s2, e2) {
|
|
4353
4237
|
var t2 = {};
|
|
4354
|
-
for (var p2 in s2)
|
|
4355
|
-
|
|
4356
|
-
t2[p2] = s2[p2];
|
|
4238
|
+
for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
|
|
4239
|
+
t2[p2] = s2[p2];
|
|
4357
4240
|
if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
|
|
4358
4241
|
for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2); i2 < p2.length; i2++) {
|
|
4359
4242
|
if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2]))
|
|
@@ -4362,14 +4245,12 @@ function __rest(s2, e2) {
|
|
|
4362
4245
|
return t2;
|
|
4363
4246
|
}
|
|
4364
4247
|
function __spreadArray(to, from, pack) {
|
|
4365
|
-
if (pack || arguments.length === 2)
|
|
4366
|
-
|
|
4367
|
-
if (ar
|
|
4368
|
-
|
|
4369
|
-
ar = Array.prototype.slice.call(from, 0, i2);
|
|
4370
|
-
ar[i2] = from[i2];
|
|
4371
|
-
}
|
|
4248
|
+
if (pack || arguments.length === 2) for (var i2 = 0, l2 = from.length, ar; i2 < l2; i2++) {
|
|
4249
|
+
if (ar || !(i2 in from)) {
|
|
4250
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i2);
|
|
4251
|
+
ar[i2] = from[i2];
|
|
4372
4252
|
}
|
|
4253
|
+
}
|
|
4373
4254
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
4374
4255
|
}
|
|
4375
4256
|
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
@@ -4416,7 +4297,7 @@ function useCallbackRef(initialValue, callback) {
|
|
|
4416
4297
|
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? _ : y;
|
|
4417
4298
|
var currentValues = /* @__PURE__ */ new WeakMap();
|
|
4418
4299
|
function useMergeRefs(refs, defaultValue) {
|
|
4419
|
-
var callbackRef = useCallbackRef(
|
|
4300
|
+
var callbackRef = useCallbackRef(null, function(newValue) {
|
|
4420
4301
|
return refs.forEach(function(ref) {
|
|
4421
4302
|
return assignRef(ref, newValue);
|
|
4422
4303
|
});
|
|
@@ -4573,11 +4454,7 @@ RemoveScroll.classNames = {
|
|
|
4573
4454
|
fullWidth: fullWidthClassName,
|
|
4574
4455
|
zeroRight: zeroRightClassName
|
|
4575
4456
|
};
|
|
4576
|
-
var currentNonce;
|
|
4577
4457
|
var getNonce = function() {
|
|
4578
|
-
if (currentNonce) {
|
|
4579
|
-
return currentNonce;
|
|
4580
|
-
}
|
|
4581
4458
|
if (typeof __webpack_nonce__ !== "undefined") {
|
|
4582
4459
|
return __webpack_nonce__;
|
|
4583
4460
|
}
|
|
@@ -4817,9 +4694,9 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
|
4817
4694
|
!targetInLock && target !== document.body || // self content
|
|
4818
4695
|
targetInLock && (endTarget.contains(target) || endTarget === target)
|
|
4819
4696
|
);
|
|
4820
|
-
if (isDeltaPositive && (
|
|
4697
|
+
if (isDeltaPositive && (availableScroll === 0 || false)) {
|
|
4821
4698
|
shouldCancelScroll = true;
|
|
4822
|
-
} else if (!isDeltaPositive && (
|
|
4699
|
+
} else if (!isDeltaPositive && (availableScrollTop === 0 || false)) {
|
|
4823
4700
|
shouldCancelScroll = true;
|
|
4824
4701
|
}
|
|
4825
4702
|
return shouldCancelScroll;
|
|
@@ -4903,7 +4780,7 @@ function RemoveScrollSideCar(props) {
|
|
|
4903
4780
|
return true;
|
|
4904
4781
|
}
|
|
4905
4782
|
var cancelingAxis = activeAxis.current || currentAxis;
|
|
4906
|
-
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY
|
|
4783
|
+
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
|
|
4907
4784
|
}, []);
|
|
4908
4785
|
var shouldPrevent = q$1(function(_event) {
|
|
4909
4786
|
var event = _event;
|
|
@@ -4983,9 +4860,8 @@ var ReactRemoveScroll = D(function(props, ref) {
|
|
|
4983
4860
|
return _$2(RemoveScroll, __assign({}, props, { ref, sideCar: SideCar }));
|
|
4984
4861
|
});
|
|
4985
4862
|
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
4986
|
-
const $am6gm$RemoveScroll = ReactRemoveScroll;
|
|
4987
4863
|
const $cb5cc270b50c6fcd$var$POPOVER_NAME = "Popover";
|
|
4988
|
-
const [$cb5cc270b50c6fcd$var$createPopoverContext
|
|
4864
|
+
const [$cb5cc270b50c6fcd$var$createPopoverContext] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($cb5cc270b50c6fcd$var$POPOVER_NAME, [
|
|
4989
4865
|
$cf1ac5d9fe0e8206$export$722aac194ae923
|
|
4990
4866
|
]);
|
|
4991
4867
|
const $cb5cc270b50c6fcd$var$usePopperScope = $cf1ac5d9fe0e8206$export$722aac194ae923();
|
|
@@ -5032,7 +4908,7 @@ const $cb5cc270b50c6fcd$export$7dacb05d26466c3 = /* @__PURE__ */ D((props, forwa
|
|
|
5032
4908
|
const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$TRIGGER_NAME, __scopePopover);
|
|
5033
4909
|
const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);
|
|
5034
4910
|
const composedTriggerRef = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef, context.triggerRef);
|
|
5035
|
-
const trigger = /* @__PURE__ */ _$2($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
|
|
4911
|
+
const trigger = /* @__PURE__ */ _$2($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$1({
|
|
5036
4912
|
type: "button",
|
|
5037
4913
|
"aria-haspopup": "dialog",
|
|
5038
4914
|
"aria-expanded": context.open,
|
|
@@ -5042,7 +4918,7 @@ const $cb5cc270b50c6fcd$export$7dacb05d26466c3 = /* @__PURE__ */ D((props, forwa
|
|
|
5042
4918
|
ref: composedTriggerRef,
|
|
5043
4919
|
onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, context.onOpenToggle)
|
|
5044
4920
|
}));
|
|
5045
|
-
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ _$2($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends({
|
|
4921
|
+
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ _$2($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$1({
|
|
5046
4922
|
asChild: true
|
|
5047
4923
|
}, popperScope), trigger);
|
|
5048
4924
|
});
|
|
@@ -5070,9 +4946,9 @@ const $cb5cc270b50c6fcd$export$d7e1f420b25549ff = /* @__PURE__ */ D((props, forw
|
|
|
5070
4946
|
const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);
|
|
5071
4947
|
return /* @__PURE__ */ _$2($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
5072
4948
|
present: forceMount || context.open
|
|
5073
|
-
}, context.modal ? /* @__PURE__ */ _$2($cb5cc270b50c6fcd$var$PopoverContentModal, _extends({}, contentProps, {
|
|
4949
|
+
}, context.modal ? /* @__PURE__ */ _$2($cb5cc270b50c6fcd$var$PopoverContentModal, _extends$1({}, contentProps, {
|
|
5074
4950
|
ref: forwardedRef
|
|
5075
|
-
})) : /* @__PURE__ */ _$2($cb5cc270b50c6fcd$var$PopoverContentNonModal, _extends({}, contentProps, {
|
|
4951
|
+
})) : /* @__PURE__ */ _$2($cb5cc270b50c6fcd$var$PopoverContentNonModal, _extends$1({}, contentProps, {
|
|
5076
4952
|
ref: forwardedRef
|
|
5077
4953
|
})));
|
|
5078
4954
|
});
|
|
@@ -5083,21 +4959,19 @@ const $cb5cc270b50c6fcd$var$PopoverContentModal = /* @__PURE__ */ D((props, forw
|
|
|
5083
4959
|
const isRightClickOutsideRef = A$1(false);
|
|
5084
4960
|
y(() => {
|
|
5085
4961
|
const content = contentRef.current;
|
|
5086
|
-
if (content)
|
|
5087
|
-
return hideOthers(content);
|
|
4962
|
+
if (content) return hideOthers(content);
|
|
5088
4963
|
}, []);
|
|
5089
|
-
return /* @__PURE__ */ _$2(
|
|
4964
|
+
return /* @__PURE__ */ _$2(ReactRemoveScroll, {
|
|
5090
4965
|
as: $5e63c961fc1ce211$export$8c6ed5c666ac1360,
|
|
5091
4966
|
allowPinchZoom: true
|
|
5092
|
-
}, /* @__PURE__ */ _$2($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends({}, props, {
|
|
4967
|
+
}, /* @__PURE__ */ _$2($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends$1({}, props, {
|
|
5093
4968
|
ref: composedRefs,
|
|
5094
4969
|
trapFocus: context.open,
|
|
5095
4970
|
disableOutsidePointerEvents: true,
|
|
5096
4971
|
onCloseAutoFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onCloseAutoFocus, (event) => {
|
|
5097
4972
|
var _context$triggerRef$c;
|
|
5098
4973
|
event.preventDefault();
|
|
5099
|
-
if (!isRightClickOutsideRef.current)
|
|
5100
|
-
(_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();
|
|
4974
|
+
if (!isRightClickOutsideRef.current) (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();
|
|
5101
4975
|
}),
|
|
5102
4976
|
onPointerDownOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownOutside, (event) => {
|
|
5103
4977
|
const originalEvent = event.detail.originalEvent;
|
|
@@ -5120,7 +4994,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentNonModal = /* @__PURE__ */ D((props, f
|
|
|
5120
4994
|
const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);
|
|
5121
4995
|
const hasInteractedOutsideRef = A$1(false);
|
|
5122
4996
|
const hasPointerDownOutsideRef = A$1(false);
|
|
5123
|
-
return /* @__PURE__ */ _$2($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends({}, props, {
|
|
4997
|
+
return /* @__PURE__ */ _$2($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends$1({}, props, {
|
|
5124
4998
|
ref: forwardedRef,
|
|
5125
4999
|
trapFocus: false,
|
|
5126
5000
|
disableOutsidePointerEvents: false,
|
|
@@ -5129,8 +5003,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentNonModal = /* @__PURE__ */ D((props, f
|
|
|
5129
5003
|
(_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);
|
|
5130
5004
|
if (!event.defaultPrevented) {
|
|
5131
5005
|
var _context$triggerRef$c2;
|
|
5132
|
-
if (!hasInteractedOutsideRef.current)
|
|
5133
|
-
(_context$triggerRef$c2 = context.triggerRef.current) === null || _context$triggerRef$c2 === void 0 || _context$triggerRef$c2.focus();
|
|
5006
|
+
if (!hasInteractedOutsideRef.current) (_context$triggerRef$c2 = context.triggerRef.current) === null || _context$triggerRef$c2 === void 0 || _context$triggerRef$c2.focus();
|
|
5134
5007
|
event.preventDefault();
|
|
5135
5008
|
}
|
|
5136
5009
|
hasInteractedOutsideRef.current = false;
|
|
@@ -5141,15 +5014,12 @@ const $cb5cc270b50c6fcd$var$PopoverContentNonModal = /* @__PURE__ */ D((props, f
|
|
|
5141
5014
|
(_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);
|
|
5142
5015
|
if (!event.defaultPrevented) {
|
|
5143
5016
|
hasInteractedOutsideRef.current = true;
|
|
5144
|
-
if (event.detail.originalEvent.type === "pointerdown")
|
|
5145
|
-
hasPointerDownOutsideRef.current = true;
|
|
5017
|
+
if (event.detail.originalEvent.type === "pointerdown") hasPointerDownOutsideRef.current = true;
|
|
5146
5018
|
}
|
|
5147
5019
|
const target = event.target;
|
|
5148
5020
|
const targetIsTrigger = (_context$triggerRef$c3 = context.triggerRef.current) === null || _context$triggerRef$c3 === void 0 ? void 0 : _context$triggerRef$c3.contains(target);
|
|
5149
|
-
if (targetIsTrigger)
|
|
5150
|
-
|
|
5151
|
-
if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current)
|
|
5152
|
-
event.preventDefault();
|
|
5021
|
+
if (targetIsTrigger) event.preventDefault();
|
|
5022
|
+
if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) event.preventDefault();
|
|
5153
5023
|
}
|
|
5154
5024
|
}));
|
|
5155
5025
|
});
|
|
@@ -5172,7 +5042,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentImpl = /* @__PURE__ */ D((props, forwa
|
|
|
5172
5042
|
onPointerDownOutside,
|
|
5173
5043
|
onFocusOutside,
|
|
5174
5044
|
onDismiss: () => context.onOpenChange(false)
|
|
5175
|
-
}, /* @__PURE__ */ _$2($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends({
|
|
5045
|
+
}, /* @__PURE__ */ _$2($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$1({
|
|
5176
5046
|
"data-state": $cb5cc270b50c6fcd$var$getState(context.open),
|
|
5177
5047
|
role: "dialog",
|
|
5178
5048
|
id: context.contentId
|
|
@@ -5197,39 +5067,26 @@ const $cb5cc270b50c6fcd$export$602eac185826482c = $cb5cc270b50c6fcd$export$dd679
|
|
|
5197
5067
|
const $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2 = $cb5cc270b50c6fcd$export$d7e1f420b25549ff;
|
|
5198
5068
|
function r$1(e2) {
|
|
5199
5069
|
var t2, f2, n2 = "";
|
|
5200
|
-
if ("string" == typeof e2 || "number" == typeof e2)
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
for (t2 = 0; t2 < o2; t2++)
|
|
5206
|
-
e2[t2] && (f2 = r$1(e2[t2])) && (n2 && (n2 += " "), n2 += f2);
|
|
5207
|
-
} else
|
|
5208
|
-
for (f2 in e2)
|
|
5209
|
-
e2[f2] && (n2 && (n2 += " "), n2 += f2);
|
|
5070
|
+
if ("string" == typeof e2 || "number" == typeof e2) n2 += e2;
|
|
5071
|
+
else if ("object" == typeof e2) if (Array.isArray(e2)) {
|
|
5072
|
+
var o2 = e2.length;
|
|
5073
|
+
for (t2 = 0; t2 < o2; t2++) e2[t2] && (f2 = r$1(e2[t2])) && (n2 && (n2 += " "), n2 += f2);
|
|
5074
|
+
} else for (f2 in e2) e2[f2] && (n2 && (n2 += " "), n2 += f2);
|
|
5210
5075
|
return n2;
|
|
5211
5076
|
}
|
|
5212
5077
|
function clsx$1() {
|
|
5213
|
-
for (var e2, t2, f2 = 0, n2 = "", o2 = arguments.length; f2 < o2; f2++)
|
|
5214
|
-
(e2 = arguments[f2]) && (t2 = r$1(e2)) && (n2 && (n2 += " "), n2 += t2);
|
|
5078
|
+
for (var e2, t2, f2 = 0, n2 = "", o2 = arguments.length; f2 < o2; f2++) (e2 = arguments[f2]) && (t2 = r$1(e2)) && (n2 && (n2 += " "), n2 += t2);
|
|
5215
5079
|
return n2;
|
|
5216
5080
|
}
|
|
5217
5081
|
function r(e2) {
|
|
5218
5082
|
var t2, f2, n2 = "";
|
|
5219
|
-
if ("string" == typeof e2 || "number" == typeof e2)
|
|
5220
|
-
|
|
5221
|
-
else
|
|
5222
|
-
if (Array.isArray(e2))
|
|
5223
|
-
for (t2 = 0; t2 < e2.length; t2++)
|
|
5224
|
-
e2[t2] && (f2 = r(e2[t2])) && (n2 && (n2 += " "), n2 += f2);
|
|
5225
|
-
else
|
|
5226
|
-
for (t2 in e2)
|
|
5227
|
-
e2[t2] && (n2 && (n2 += " "), n2 += t2);
|
|
5083
|
+
if ("string" == typeof e2 || "number" == typeof e2) n2 += e2;
|
|
5084
|
+
else if ("object" == typeof e2) if (Array.isArray(e2)) for (t2 = 0; t2 < e2.length; t2++) e2[t2] && (f2 = r(e2[t2])) && (n2 && (n2 += " "), n2 += f2);
|
|
5085
|
+
else for (t2 in e2) e2[t2] && (n2 && (n2 += " "), n2 += t2);
|
|
5228
5086
|
return n2;
|
|
5229
5087
|
}
|
|
5230
5088
|
function clsx() {
|
|
5231
|
-
for (var e2, t2, f2 = 0, n2 = ""; f2 < arguments.length; )
|
|
5232
|
-
(e2 = arguments[f2++]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
|
|
5089
|
+
for (var e2, t2, f2 = 0, n2 = ""; f2 < arguments.length; ) (e2 = arguments[f2++]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
|
|
5233
5090
|
return n2;
|
|
5234
5091
|
}
|
|
5235
5092
|
const falsyToString = (value) => typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
|
|
@@ -5238,18 +5095,12 @@ const defineConfig = (options2) => {
|
|
|
5238
5095
|
for (var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5239
5096
|
inputs[_key] = arguments[_key];
|
|
5240
5097
|
}
|
|
5241
|
-
var ref, ref1;
|
|
5242
|
-
if (typeof (options2 === null || options2 === void 0 ? void 0 : (ref = options2.hooks) === null || ref === void 0 ? void 0 : ref["cx:done"]) !== "undefined")
|
|
5243
|
-
return options2 === null || options2 === void 0 ? void 0 : options2.hooks["cx:done"](clsx(inputs));
|
|
5244
|
-
if (typeof (options2 === null || options2 === void 0 ? void 0 : (ref1 = options2.hooks) === null || ref1 === void 0 ? void 0 : ref1.onComplete) !== "undefined")
|
|
5245
|
-
return options2 === null || options2 === void 0 ? void 0 : options2.hooks.onComplete(clsx(inputs));
|
|
5246
5098
|
return clsx(inputs);
|
|
5247
5099
|
};
|
|
5248
5100
|
const cva1 = (config) => {
|
|
5249
5101
|
return (props) => {
|
|
5250
5102
|
var ref;
|
|
5251
|
-
if ((config === null || config === void 0 ? void 0 : config.variants) == null)
|
|
5252
|
-
return cx1(config === null || config === void 0 ? void 0 : config.base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
5103
|
+
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx1(config === null || config === void 0 ? void 0 : config.base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
5253
5104
|
const { variants, defaultVariants } = config;
|
|
5254
5105
|
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
5255
5106
|
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
@@ -5286,7 +5137,7 @@ const defineConfig = (options2) => {
|
|
|
5286
5137
|
};
|
|
5287
5138
|
return { compose: compose1, cva: cva1, cx: cx1 };
|
|
5288
5139
|
};
|
|
5289
|
-
const {
|
|
5140
|
+
const { cva } = defineConfig();
|
|
5290
5141
|
const FEEDBACK_WIDGET_ID = "inploi-feedback";
|
|
5291
5142
|
var FALLBACK_PLURAL_ORDER = ["other", "few", "many", "two", "one", "zero"];
|
|
5292
5143
|
var createTranslateFunction = ({
|
|
@@ -5629,11 +5480,9 @@ const options = [
|
|
|
5629
5480
|
];
|
|
5630
5481
|
const submitWithMetaEnter = (e2) => {
|
|
5631
5482
|
const isSubmitCombo = e2.key === "Enter" && e2.metaKey;
|
|
5632
|
-
if (!isSubmitCombo)
|
|
5633
|
-
return;
|
|
5483
|
+
if (!isSubmitCombo) return;
|
|
5634
5484
|
const form = e2.currentTarget.form;
|
|
5635
|
-
if (!form)
|
|
5636
|
-
return;
|
|
5485
|
+
if (!form) return;
|
|
5637
5486
|
form.requestSubmit();
|
|
5638
5487
|
};
|
|
5639
5488
|
const Label = () => {
|
|
@@ -5648,7 +5497,13 @@ const FeedbackWidget = ({ analytics, params, logger }) => {
|
|
|
5648
5497
|
() => createTFunction({ overrides: params.terms ?? {}, locale: params.locale }),
|
|
5649
5498
|
[params.terms, params.locale]
|
|
5650
5499
|
);
|
|
5651
|
-
const [score, setScore] = d(0);
|
|
5500
|
+
const [score, setScore] = d(params.score ?? 0);
|
|
5501
|
+
const presses = A$1(0);
|
|
5502
|
+
const held = A$1(params.score);
|
|
5503
|
+
held.current = params.score;
|
|
5504
|
+
y(() => {
|
|
5505
|
+
if (params.score !== void 0) setScore(params.score);
|
|
5506
|
+
}, [params.score]);
|
|
5652
5507
|
const [open, setOpen] = d();
|
|
5653
5508
|
return /* @__PURE__ */ u$1(TranslationProvider, { locale: params.locale, terms: params.terms, children: /* @__PURE__ */ u$1("div", { role: "group", "aria-labelledby": `${id}-label`, class: variants, children: [
|
|
5654
5509
|
/* @__PURE__ */ u$1("span", { id: `${id}-label`, className: "sr-only", children: /* @__PURE__ */ u$1(Label, {}) }),
|
|
@@ -5657,10 +5512,8 @@ const FeedbackWidget = ({ analytics, params, logger }) => {
|
|
|
5657
5512
|
{
|
|
5658
5513
|
open: open === option.value,
|
|
5659
5514
|
onOpenChange: (next) => {
|
|
5660
|
-
if (next)
|
|
5661
|
-
|
|
5662
|
-
else
|
|
5663
|
-
setOpen((current) => current === option.value ? void 0 : current);
|
|
5515
|
+
if (next) setOpen(option.value);
|
|
5516
|
+
else setOpen((current) => current === option.value ? void 0 : current);
|
|
5664
5517
|
},
|
|
5665
5518
|
children: [
|
|
5666
5519
|
/* @__PURE__ */ u$1(
|
|
@@ -5670,20 +5523,31 @@ const FeedbackWidget = ({ analytics, params, logger }) => {
|
|
|
5670
5523
|
"aria-pressed": score === option.value,
|
|
5671
5524
|
class: buttonClass({ colorScheme: option.variant, size: params.size }),
|
|
5672
5525
|
onClick: (e2) => {
|
|
5526
|
+
var _a, _b;
|
|
5673
5527
|
const newVal = option.value === score ? 0 : option.value;
|
|
5528
|
+
const press = ++presses.current;
|
|
5674
5529
|
setScore(newVal);
|
|
5675
5530
|
if (newVal === 0) {
|
|
5676
5531
|
e2.preventDefault();
|
|
5677
5532
|
setOpen(void 0);
|
|
5533
|
+
(_a = params.onScore) == null ? void 0 : _a.call(params, 0);
|
|
5678
5534
|
return;
|
|
5679
5535
|
}
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
(
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5536
|
+
(_b = params.onScore) == null ? void 0 : _b.call(params, newVal);
|
|
5537
|
+
analytics.log({ event: "FEEDBACK", properties: { ...params.source, key: params.key, score: newVal } }).then(
|
|
5538
|
+
() => {
|
|
5539
|
+
var _a2;
|
|
5540
|
+
return (_a2 = params.onRate) == null ? void 0 : _a2.call(params, newVal);
|
|
5541
|
+
},
|
|
5542
|
+
(e22) => {
|
|
5543
|
+
var _a2;
|
|
5544
|
+
logger.error(e22);
|
|
5545
|
+
if (press !== presses.current || held.current !== void 0 && held.current !== newVal)
|
|
5546
|
+
return;
|
|
5547
|
+
setScore(0);
|
|
5548
|
+
(_a2 = params.onScore) == null ? void 0 : _a2.call(params, 0);
|
|
5549
|
+
}
|
|
5550
|
+
);
|
|
5687
5551
|
},
|
|
5688
5552
|
children: /* @__PURE__ */ u$1("div", { class: "ease-expo-out duration-medium scale-75 transition-transform group-aria-[pressed=true]:scale-100", children: option.icon })
|
|
5689
5553
|
}
|
|
@@ -5734,8 +5598,7 @@ const CommentForm = ({
|
|
|
5734
5598
|
const [submission, setSubmission] = d({ state: "idle" });
|
|
5735
5599
|
_(() => {
|
|
5736
5600
|
var _a;
|
|
5737
|
-
if (submission.state === "success" && transferFocus.current)
|
|
5738
|
-
(_a = success.current) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
5601
|
+
if (submission.state === "success" && transferFocus.current) (_a = success.current) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
5739
5602
|
}, [submission.state]);
|
|
5740
5603
|
if (submission.state === "success") {
|
|
5741
5604
|
return /* @__PURE__ */ u$1(
|
|
@@ -5768,7 +5631,7 @@ const CommentForm = ({
|
|
|
5768
5631
|
return;
|
|
5769
5632
|
}
|
|
5770
5633
|
Promise.all([
|
|
5771
|
-
analytics.log({ event: "FEEDBACK", properties: { key: params.key, comment } }),
|
|
5634
|
+
analytics.log({ event: "FEEDBACK", properties: { ...params.source, key: params.key, comment } }),
|
|
5772
5635
|
/** Min delay of 500ms so it feels like it’s doing stuff */
|
|
5773
5636
|
new Promise((resolve) => setTimeout(resolve, 1e3))
|
|
5774
5637
|
]).then(() => {
|
|
@@ -6806,10 +6669,14 @@ const feedbackPlugin = () => sdk.createPlugin(({ apiClient, logger, analytics })
|
|
|
6806
6669
|
targets.add(target);
|
|
6807
6670
|
fn2(_$2(App, { params }), target);
|
|
6808
6671
|
},
|
|
6672
|
+
/** Release one target's widget (and its portals), leaving any other target's. */
|
|
6673
|
+
unmount: (target) => {
|
|
6674
|
+
J$1(null, target);
|
|
6675
|
+
targets.delete(target);
|
|
6676
|
+
},
|
|
6809
6677
|
/** Release components, portals and document listeners when an owning widget unmounts. */
|
|
6810
6678
|
destroy: () => {
|
|
6811
|
-
for (const target of targets)
|
|
6812
|
-
J$1(null, target);
|
|
6679
|
+
for (const target of targets) J$1(null, target);
|
|
6813
6680
|
targets.clear();
|
|
6814
6681
|
},
|
|
6815
6682
|
"~brand": "@inploi/plugin-feedback"
|