@inploi/plugin-feedback 6.2.0 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/index.js +12 -13
- package/dist/index.d.cts +182 -0
- package/dist/index.d.ts +182 -2
- package/dist/plugin-feedback.cjs +357 -527
- package/dist/plugin-feedback.js +357 -527
- package/package.json +20 -15
- 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 -82
- 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,28 +509,19 @@ 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
517
|
function _extends() {
|
|
611
|
-
_extends = Object.assign ? Object.assign.bind() : function(
|
|
612
|
-
for (var
|
|
613
|
-
var
|
|
614
|
-
for (var
|
|
615
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
616
|
-
target[key] = source[key];
|
|
617
|
-
}
|
|
618
|
-
}
|
|
518
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n2) {
|
|
519
|
+
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
520
|
+
var t2 = arguments[e2];
|
|
521
|
+
for (var r2 in t2) ({}).hasOwnProperty.call(t2, r2) && (n2[r2] = t2[r2]);
|
|
619
522
|
}
|
|
620
|
-
return
|
|
621
|
-
};
|
|
622
|
-
return _extends.apply(this, arguments);
|
|
523
|
+
return n2;
|
|
524
|
+
}, _extends.apply(null, arguments);
|
|
623
525
|
}
|
|
624
526
|
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
527
|
function p(n2, t2) {
|
|
@@ -637,15 +539,13 @@ function h(n2, u2, i2) {
|
|
|
637
539
|
t2 !== r2 && (o2.__N = [r2, o2.__[1]], o2.__c.setState({}));
|
|
638
540
|
}], o2.__c = r$2, !r$2.__f)) {
|
|
639
541
|
var f2 = function(n3, t2, r2) {
|
|
640
|
-
if (!o2.__c.__H)
|
|
641
|
-
return true;
|
|
542
|
+
if (!o2.__c.__H) return true;
|
|
642
543
|
var u3 = o2.__c.__H.__.filter(function(n4) {
|
|
643
544
|
return n4.__c;
|
|
644
545
|
});
|
|
645
546
|
if (u3.every(function(n4) {
|
|
646
547
|
return !n4.__N;
|
|
647
|
-
}))
|
|
648
|
-
return !c2 || c2.call(this, n3, t2, r2);
|
|
548
|
+
})) return !c2 || c2.call(this, n3, t2, r2);
|
|
649
549
|
var i3 = o2.__c.props !== n3;
|
|
650
550
|
return u3.some(function(n4) {
|
|
651
551
|
if (n4.__N) {
|
|
@@ -687,10 +587,9 @@ function F$1(n2, t2, r2) {
|
|
|
687
587
|
n2(null), r3 && "function" == typeof r3 && r3();
|
|
688
588
|
};
|
|
689
589
|
}
|
|
690
|
-
if (n2)
|
|
691
|
-
return n2.current =
|
|
692
|
-
|
|
693
|
-
};
|
|
590
|
+
if (n2) return n2.current = t2(), function() {
|
|
591
|
+
return n2.current = null;
|
|
592
|
+
};
|
|
694
593
|
}, null == r2 ? r2 : r2.concat(n2));
|
|
695
594
|
}
|
|
696
595
|
function T$1(n2, r2) {
|
|
@@ -720,8 +619,7 @@ function b(n2) {
|
|
|
720
619
|
function g$1() {
|
|
721
620
|
var n2 = p(t++, 11);
|
|
722
621
|
if (!n2.__) {
|
|
723
|
-
for (var u2 = r$2.__v; null !== u2 && !u2.__m && null !== u2.__; )
|
|
724
|
-
u2 = u2.__;
|
|
622
|
+
for (var u2 = r$2.__v; null !== u2 && !u2.__m && null !== u2.__; ) u2 = u2.__;
|
|
725
623
|
var i2 = u2.__m || (u2.__m = [0, 0]);
|
|
726
624
|
n2.__ = "P" + i2[0] + "-" + i2[1]++;
|
|
727
625
|
}
|
|
@@ -730,12 +628,11 @@ function g$1() {
|
|
|
730
628
|
function j$1() {
|
|
731
629
|
for (var n2; n2 = f.shift(); ) {
|
|
732
630
|
var t2 = n2.__H;
|
|
733
|
-
if (n2.__P && t2)
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
}
|
|
631
|
+
if (n2.__P && t2) try {
|
|
632
|
+
t2.__h.some(z$1), t2.__h.some(B$1), t2.__h = [];
|
|
633
|
+
} catch (r2) {
|
|
634
|
+
t2.__h = [], c.__e(r2, n2.__v);
|
|
635
|
+
}
|
|
739
636
|
}
|
|
740
637
|
}
|
|
741
638
|
c.__b = function(n2) {
|
|
@@ -801,17 +698,12 @@ function D$1(n2, t2) {
|
|
|
801
698
|
return "function" == typeof t2 ? t2(n2) : t2;
|
|
802
699
|
}
|
|
803
700
|
function g(n2, t2) {
|
|
804
|
-
for (var e2 in t2)
|
|
805
|
-
n2[e2] = t2[e2];
|
|
701
|
+
for (var e2 in t2) n2[e2] = t2[e2];
|
|
806
702
|
return n2;
|
|
807
703
|
}
|
|
808
704
|
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;
|
|
705
|
+
for (var e2 in n2) if ("__source" !== e2 && !(e2 in t2)) return true;
|
|
706
|
+
for (var r2 in t2) if ("__source" !== r2 && n2[r2] !== t2[r2]) return true;
|
|
815
707
|
return false;
|
|
816
708
|
}
|
|
817
709
|
function C(n2, t2) {
|
|
@@ -862,7 +754,7 @@ var T = l$2.__b;
|
|
|
862
754
|
l$2.__b = function(n2) {
|
|
863
755
|
n2.type && n2.type.__f && n2.ref && (n2.props.ref = n2.ref, n2.ref = null), T && T(n2);
|
|
864
756
|
};
|
|
865
|
-
var A = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
757
|
+
var A = "undefined" != typeof Symbol && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
|
|
866
758
|
function D(n2) {
|
|
867
759
|
function t2(t3) {
|
|
868
760
|
var e2 = g({}, t3);
|
|
@@ -876,15 +768,12 @@ var L = function(n2, t2) {
|
|
|
876
768
|
return n2 ? L$1(n2).length : 0;
|
|
877
769
|
}, only: function(n2) {
|
|
878
770
|
var t2 = L$1(n2);
|
|
879
|
-
if (1 !== t2.length)
|
|
880
|
-
throw "Children.only";
|
|
771
|
+
if (1 !== t2.length) throw "Children.only";
|
|
881
772
|
return t2[0];
|
|
882
773
|
}, toArray: L$1 }, U = l$2.__e;
|
|
883
774
|
l$2.__e = function(n2, t2, e2, r2) {
|
|
884
775
|
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);
|
|
776
|
+
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
777
|
}
|
|
889
778
|
U(n2, t2, e2, r2);
|
|
890
779
|
};
|
|
@@ -905,8 +794,7 @@ function P() {
|
|
|
905
794
|
this.__u = 0, this.o = null, this.__b = null;
|
|
906
795
|
}
|
|
907
796
|
function j(n2) {
|
|
908
|
-
if (!n2.__)
|
|
909
|
-
return null;
|
|
797
|
+
if (!n2.__) return null;
|
|
910
798
|
var t2 = n2.__.__c;
|
|
911
799
|
return t2 && t2.__a && t2.__a(n2);
|
|
912
800
|
}
|
|
@@ -917,10 +805,8 @@ function z(n2) {
|
|
|
917
805
|
n3 && (o2 = n3.default || n3), u2 = true;
|
|
918
806
|
}, function(n3) {
|
|
919
807
|
r2 = n3, u2 = true;
|
|
920
|
-
}), r2)
|
|
921
|
-
|
|
922
|
-
if (!u2)
|
|
923
|
-
throw e2;
|
|
808
|
+
}), r2) throw r2;
|
|
809
|
+
if (!u2) throw e2;
|
|
924
810
|
return o2 ? _$2(o2, i3) : null;
|
|
925
811
|
}
|
|
926
812
|
return i2.displayName = "Lazy", i2.__f = true, i2;
|
|
@@ -947,8 +833,7 @@ l$2.unmount = function(n2) {
|
|
|
947
833
|
r2.__v.__k[0] = W(n3, n3.__c.__P, n3.__c.__O);
|
|
948
834
|
}
|
|
949
835
|
var t3;
|
|
950
|
-
for (r2.setState({ __a: r2.__b = null }); t3 = r2.o.pop(); )
|
|
951
|
-
t3.__P = l2, t3.forceUpdate();
|
|
836
|
+
for (r2.setState({ __a: r2.__b = null }); t3 = r2.o.pop(); ) t3.__P = l2, t3.forceUpdate();
|
|
952
837
|
}
|
|
953
838
|
};
|
|
954
839
|
r2.__u++ || 32 & t2.__u || r2.setState({ __a: r2.__b = r2.__v.__k[0] }), n2.then(i2, i2);
|
|
@@ -966,14 +851,11 @@ l$2.unmount = function(n2) {
|
|
|
966
851
|
return i2 && (i2.__u &= -33), [_$2(k$3, null, e2.__a ? null : n2.children), i2];
|
|
967
852
|
};
|
|
968
853
|
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
|
-
}
|
|
854
|
+
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; ) {
|
|
855
|
+
for (; e2.length > 3; ) e2.pop()();
|
|
856
|
+
if (e2[1] < e2[0]) break;
|
|
857
|
+
n2.i = e2 = e2[2];
|
|
858
|
+
}
|
|
977
859
|
};
|
|
978
860
|
function Z(n2) {
|
|
979
861
|
return this.getChildContext = function() {
|
|
@@ -985,8 +867,7 @@ function Y(n2) {
|
|
|
985
867
|
if (e2.componentWillUnmount = function() {
|
|
986
868
|
J$1(null, e2.v), e2.v = null, e2.h = null;
|
|
987
869
|
}, e2.h && e2.h !== r2 && e2.componentWillUnmount(), !e2.v) {
|
|
988
|
-
for (var u2 = e2.__v; null !== u2 && !u2.__m && null !== u2.__; )
|
|
989
|
-
u2 = u2.__;
|
|
870
|
+
for (var u2 = e2.__v; null !== u2 && !u2.__m && null !== u2.__; ) u2 = u2.__;
|
|
990
871
|
e2.h = r2, e2.v = { nodeType: 1, parentNode: r2, childNodes: [], __k: { __m: u2.__m }, contains: function() {
|
|
991
872
|
return true;
|
|
992
873
|
}, namespaceURI: r2.namespaceURI, insertBefore: function(n3, t2) {
|
|
@@ -1013,8 +894,7 @@ function $(n2, e2) {
|
|
|
1013
894
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
1014
895
|
var t2 = L$1(n2.children);
|
|
1015
896
|
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]);
|
|
897
|
+
for (var e2 = t2.length; e2--; ) this.l.set(t2[e2], this.i = [1, 0, this.i]);
|
|
1018
898
|
return n2.children;
|
|
1019
899
|
}, B.prototype.componentDidUpdate = B.prototype.componentDidMount = function() {
|
|
1020
900
|
var n2 = this;
|
|
@@ -1022,8 +902,8 @@ function $(n2, e2) {
|
|
|
1022
902
|
H(n2, e2, t2);
|
|
1023
903
|
});
|
|
1024
904
|
};
|
|
1025
|
-
var q = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103, G = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, J = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, K = /[A-Z0-9]/g, Q = "undefined" != typeof document, X = function(n2) {
|
|
1026
|
-
return ("undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/ : /fil|che|ra/).test(n2);
|
|
905
|
+
var q = "undefined" != typeof Symbol && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, G = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, J = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, K = /[A-Z0-9]/g, Q = "undefined" != typeof document, X = function(n2) {
|
|
906
|
+
return ("undefined" != typeof Symbol && "symbol" == typeof /* @__PURE__ */ Symbol() ? /fil|che|rad/ : /fil|che|ra/).test(n2);
|
|
1027
907
|
};
|
|
1028
908
|
function nn(n2, t2, e2) {
|
|
1029
909
|
return null == t2.__k && (t2.textContent = ""), J$1(n2, t2), "function" == typeof e2 && e2(), n2 ? n2.__c : null;
|
|
@@ -1054,7 +934,7 @@ var ln, cn = { enumerable: false, configurable: true, get: function() {
|
|
|
1054
934
|
return this.class;
|
|
1055
935
|
} }, fn = l$2.vnode;
|
|
1056
936
|
l$2.vnode = function(n2) {
|
|
1057
|
-
"string" == typeof n2.type && function(n3) {
|
|
937
|
+
"string" == typeof n2.type && (function(n3) {
|
|
1058
938
|
var t2 = n3.props, e2 = n3.type, u2 = {}, o2 = -1 === e2.indexOf("-");
|
|
1059
939
|
for (var i2 in t2) {
|
|
1060
940
|
var l2 = t2[i2];
|
|
@@ -1068,7 +948,7 @@ l$2.vnode = function(n2) {
|
|
|
1068
948
|
})), "select" == e2 && null != u2.defaultValue && (u2.value = L$1(t2.children).forEach(function(n4) {
|
|
1069
949
|
n4.props.selected = u2.multiple ? -1 != u2.defaultValue.indexOf(n4.props.value) : u2.defaultValue == n4.props.value;
|
|
1070
950
|
})), 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);
|
|
951
|
+
})(n2), n2.$$typeof = q, fn && fn(n2);
|
|
1072
952
|
};
|
|
1073
953
|
var an = l$2.__r;
|
|
1074
954
|
l$2.__r = function(n2) {
|
|
@@ -1161,15 +1041,12 @@ const $2AODx$react = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
|
|
|
1161
1041
|
function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
1162
1042
|
return function handleEvent(event) {
|
|
1163
1043
|
originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
|
|
1164
|
-
if (checkForDefaultPrevented === false || !event.defaultPrevented)
|
|
1165
|
-
return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
|
|
1044
|
+
if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
|
|
1166
1045
|
};
|
|
1167
1046
|
}
|
|
1168
1047
|
function $6ed0406888f73fc4$var$setRef(ref, value) {
|
|
1169
|
-
if (typeof ref === "function")
|
|
1170
|
-
|
|
1171
|
-
else if (ref !== null && ref !== void 0)
|
|
1172
|
-
ref.current = value;
|
|
1048
|
+
if (typeof ref === "function") ref(value);
|
|
1049
|
+
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
1173
1050
|
}
|
|
1174
1051
|
function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
|
|
1175
1052
|
return (node) => refs.forEach(
|
|
@@ -1202,10 +1079,8 @@ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeD
|
|
|
1202
1079
|
function useContext(consumerName, scope) {
|
|
1203
1080
|
const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index2]) || BaseContext;
|
|
1204
1081
|
const context = x$1(Context);
|
|
1205
|
-
if (context)
|
|
1206
|
-
|
|
1207
|
-
if (defaultContext !== void 0)
|
|
1208
|
-
return defaultContext;
|
|
1082
|
+
if (context) return context;
|
|
1083
|
+
if (defaultContext !== void 0) return defaultContext;
|
|
1209
1084
|
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
1210
1085
|
}
|
|
1211
1086
|
Provider.displayName = rootComponentName + "Provider";
|
|
@@ -1242,8 +1117,7 @@ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeD
|
|
|
1242
1117
|
}
|
|
1243
1118
|
function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
|
|
1244
1119
|
const baseScope = scopes[0];
|
|
1245
|
-
if (scopes.length === 1)
|
|
1246
|
-
return baseScope;
|
|
1120
|
+
if (scopes.length === 1) return baseScope;
|
|
1247
1121
|
const createScope1 = () => {
|
|
1248
1122
|
const scopeHooks = scopes.map(
|
|
1249
1123
|
(createScope) => ({
|
|
@@ -1281,11 +1155,9 @@ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ D((props, forw
|
|
|
1281
1155
|
const newElement = slottable.props.children;
|
|
1282
1156
|
const newChildren = childrenArray.map((child) => {
|
|
1283
1157
|
if (child === slottable) {
|
|
1284
|
-
if (O.count(newElement) > 1)
|
|
1285
|
-
return O.only(null);
|
|
1158
|
+
if (O.count(newElement) > 1) return O.only(null);
|
|
1286
1159
|
return /* @__PURE__ */ mn(newElement) ? newElement.props.children : null;
|
|
1287
|
-
} else
|
|
1288
|
-
return child;
|
|
1160
|
+
} else return child;
|
|
1289
1161
|
});
|
|
1290
1162
|
return /* @__PURE__ */ _$2($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
|
|
1291
1163
|
ref: forwardedRef
|
|
@@ -1298,11 +1170,10 @@ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ D((props, forw
|
|
|
1298
1170
|
$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = "Slot";
|
|
1299
1171
|
const $5e63c961fc1ce211$var$SlotClone = /* @__PURE__ */ D((props, forwardedRef) => {
|
|
1300
1172
|
const { children, ...slotProps } = props;
|
|
1301
|
-
if (/* @__PURE__ */ mn(children))
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
});
|
|
1173
|
+
if (/* @__PURE__ */ mn(children)) return /* @__PURE__ */ _n(children, {
|
|
1174
|
+
...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props),
|
|
1175
|
+
ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
|
|
1176
|
+
});
|
|
1306
1177
|
return O.count(children) > 1 ? O.only(null) : null;
|
|
1307
1178
|
});
|
|
1308
1179
|
$5e63c961fc1ce211$var$SlotClone.displayName = "SlotClone";
|
|
@@ -1321,23 +1192,19 @@ function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
|
|
|
1321
1192
|
const childPropValue = childProps[propName];
|
|
1322
1193
|
const isHandler = /^on[A-Z]/.test(propName);
|
|
1323
1194
|
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
|
|
1195
|
+
if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
|
|
1196
|
+
childPropValue(...args);
|
|
1197
|
+
slotPropValue(...args);
|
|
1335
1198
|
};
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1199
|
+
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
1200
|
+
} else if (propName === "style") overrideProps[propName] = {
|
|
1201
|
+
...slotPropValue,
|
|
1202
|
+
...childPropValue
|
|
1203
|
+
};
|
|
1204
|
+
else if (propName === "className") overrideProps[propName] = [
|
|
1205
|
+
slotPropValue,
|
|
1206
|
+
childPropValue
|
|
1207
|
+
].filter(Boolean).join(" ");
|
|
1341
1208
|
}
|
|
1342
1209
|
return {
|
|
1343
1210
|
...slotProps,
|
|
@@ -1367,7 +1234,7 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.re
|
|
|
1367
1234
|
const { asChild, ...primitiveProps } = props;
|
|
1368
1235
|
const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
|
|
1369
1236
|
y(() => {
|
|
1370
|
-
window[Symbol.for("radix-ui")] = true;
|
|
1237
|
+
window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
|
|
1371
1238
|
}, []);
|
|
1372
1239
|
return /* @__PURE__ */ _$2(Comp, _extends({}, primitiveProps, {
|
|
1373
1240
|
ref: forwardedRef
|
|
@@ -1380,10 +1247,9 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.re
|
|
|
1380
1247
|
};
|
|
1381
1248
|
}, {});
|
|
1382
1249
|
function $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event) {
|
|
1383
|
-
if (target)
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
);
|
|
1250
|
+
if (target) En(
|
|
1251
|
+
() => target.dispatchEvent(event)
|
|
1252
|
+
);
|
|
1387
1253
|
}
|
|
1388
1254
|
function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) {
|
|
1389
1255
|
const callbackRef = A$1(callback);
|
|
@@ -1402,8 +1268,7 @@ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDoc
|
|
|
1402
1268
|
const onEscapeKeyDown = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onEscapeKeyDownProp);
|
|
1403
1269
|
y(() => {
|
|
1404
1270
|
const handleKeyDown = (event) => {
|
|
1405
|
-
if (event.key === "Escape")
|
|
1406
|
-
onEscapeKeyDown(event);
|
|
1271
|
+
if (event.key === "Escape") onEscapeKeyDown(event);
|
|
1407
1272
|
};
|
|
1408
1273
|
ownerDocument.addEventListener("keydown", handleKeyDown);
|
|
1409
1274
|
return () => ownerDocument.removeEventListener("keydown", handleKeyDown);
|
|
@@ -1447,12 +1312,10 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
|
|
|
1447
1312
|
].some(
|
|
1448
1313
|
(branch) => branch.contains(target)
|
|
1449
1314
|
);
|
|
1450
|
-
if (!isPointerEventsEnabled || isPointerDownOnBranch)
|
|
1451
|
-
return;
|
|
1315
|
+
if (!isPointerEventsEnabled || isPointerDownOnBranch) return;
|
|
1452
1316
|
onPointerDownOutside === null || onPointerDownOutside === void 0 || onPointerDownOutside(event);
|
|
1453
1317
|
onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
|
|
1454
|
-
if (!event.defaultPrevented)
|
|
1455
|
-
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
1318
|
+
if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
1456
1319
|
}, ownerDocument);
|
|
1457
1320
|
const focusOutside = $5cb92bef7577960e$var$useFocusOutside((event) => {
|
|
1458
1321
|
const target = event.target;
|
|
@@ -1461,17 +1324,14 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
|
|
|
1461
1324
|
].some(
|
|
1462
1325
|
(branch) => branch.contains(target)
|
|
1463
1326
|
);
|
|
1464
|
-
if (isFocusInBranch)
|
|
1465
|
-
return;
|
|
1327
|
+
if (isFocusInBranch) return;
|
|
1466
1328
|
onFocusOutside === null || onFocusOutside === void 0 || onFocusOutside(event);
|
|
1467
1329
|
onInteractOutside === null || onInteractOutside === void 0 || onInteractOutside(event);
|
|
1468
|
-
if (!event.defaultPrevented)
|
|
1469
|
-
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
1330
|
+
if (!event.defaultPrevented) onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
1470
1331
|
}, ownerDocument);
|
|
1471
1332
|
$addc16e1bbe58fd0$export$3a72a57244d6e765((event) => {
|
|
1472
1333
|
const isHighestLayer = index2 === context.layers.size - 1;
|
|
1473
|
-
if (!isHighestLayer)
|
|
1474
|
-
return;
|
|
1334
|
+
if (!isHighestLayer) return;
|
|
1475
1335
|
onEscapeKeyDown === null || onEscapeKeyDown === void 0 || onEscapeKeyDown(event);
|
|
1476
1336
|
if (!event.defaultPrevented && onDismiss) {
|
|
1477
1337
|
event.preventDefault();
|
|
@@ -1479,8 +1339,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
|
|
|
1479
1339
|
}
|
|
1480
1340
|
}, ownerDocument);
|
|
1481
1341
|
y(() => {
|
|
1482
|
-
if (!node1)
|
|
1483
|
-
return;
|
|
1342
|
+
if (!node1) return;
|
|
1484
1343
|
if (disableOutsidePointerEvents) {
|
|
1485
1344
|
if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
|
|
1486
1345
|
$5cb92bef7577960e$var$originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
|
|
@@ -1491,8 +1350,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
|
|
|
1491
1350
|
context.layers.add(node1);
|
|
1492
1351
|
$5cb92bef7577960e$var$dispatchUpdate();
|
|
1493
1352
|
return () => {
|
|
1494
|
-
if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1)
|
|
1495
|
-
ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;
|
|
1353
|
+
if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) ownerDocument.body.style.pointerEvents = $5cb92bef7577960e$var$originalBodyPointerEvents;
|
|
1496
1354
|
};
|
|
1497
1355
|
}, [
|
|
1498
1356
|
node1,
|
|
@@ -1502,8 +1360,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ D((props, forw
|
|
|
1502
1360
|
]);
|
|
1503
1361
|
y(() => {
|
|
1504
1362
|
return () => {
|
|
1505
|
-
if (!node1)
|
|
1506
|
-
return;
|
|
1363
|
+
if (!node1) return;
|
|
1507
1364
|
context.layers.delete(node1);
|
|
1508
1365
|
context.layersWithOutsidePointerEventsDisabled.delete(node1);
|
|
1509
1366
|
$5cb92bef7577960e$var$dispatchUpdate();
|
|
@@ -1550,8 +1407,7 @@ function $5cb92bef7577960e$var$usePointerDownOutside(onPointerDownOutside, owner
|
|
|
1550
1407
|
ownerDocument.addEventListener("click", handleClickRef.current, {
|
|
1551
1408
|
once: true
|
|
1552
1409
|
});
|
|
1553
|
-
} else
|
|
1554
|
-
handleAndDispatchPointerDownOutsideEvent();
|
|
1410
|
+
} else handleAndDispatchPointerDownOutsideEvent();
|
|
1555
1411
|
} else
|
|
1556
1412
|
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
1557
1413
|
isPointerInsideReactTreeRef.current = false;
|
|
@@ -1609,14 +1465,11 @@ function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(name, handler, detai
|
|
|
1609
1465
|
cancelable: true,
|
|
1610
1466
|
detail
|
|
1611
1467
|
});
|
|
1612
|
-
if (handler)
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
$8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event);
|
|
1618
|
-
else
|
|
1619
|
-
target.dispatchEvent(event);
|
|
1468
|
+
if (handler) target.addEventListener(name, handler, {
|
|
1469
|
+
once: true
|
|
1470
|
+
});
|
|
1471
|
+
if (discrete) $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event);
|
|
1472
|
+
else target.dispatchEvent(event);
|
|
1620
1473
|
}
|
|
1621
1474
|
let $3db38b7d1fb3fe6a$var$count = 0;
|
|
1622
1475
|
function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c() {
|
|
@@ -1627,10 +1480,9 @@ function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c() {
|
|
|
1627
1480
|
document.body.insertAdjacentElement("beforeend", (_edgeGuards$2 = edgeGuards[1]) !== null && _edgeGuards$2 !== void 0 ? _edgeGuards$2 : $3db38b7d1fb3fe6a$var$createFocusGuard());
|
|
1628
1481
|
$3db38b7d1fb3fe6a$var$count++;
|
|
1629
1482
|
return () => {
|
|
1630
|
-
if ($3db38b7d1fb3fe6a$var$count === 1)
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
);
|
|
1483
|
+
if ($3db38b7d1fb3fe6a$var$count === 1) document.querySelectorAll("[data-radix-focus-guard]").forEach(
|
|
1484
|
+
(node) => node.remove()
|
|
1485
|
+
);
|
|
1634
1486
|
$3db38b7d1fb3fe6a$var$count--;
|
|
1635
1487
|
};
|
|
1636
1488
|
}, []);
|
|
@@ -1670,41 +1522,31 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
|
|
|
1670
1522
|
y(() => {
|
|
1671
1523
|
if (trapped) {
|
|
1672
1524
|
let handleFocusIn = function(event) {
|
|
1673
|
-
if (focusScope.paused || !container1)
|
|
1674
|
-
return;
|
|
1525
|
+
if (focusScope.paused || !container1) return;
|
|
1675
1526
|
const target = event.target;
|
|
1676
|
-
if (container1.contains(target))
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
select: true
|
|
1681
|
-
});
|
|
1527
|
+
if (container1.contains(target)) lastFocusedElementRef.current = target;
|
|
1528
|
+
else $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {
|
|
1529
|
+
select: true
|
|
1530
|
+
});
|
|
1682
1531
|
}, handleFocusOut = function(event) {
|
|
1683
|
-
if (focusScope.paused || !container1)
|
|
1684
|
-
return;
|
|
1532
|
+
if (focusScope.paused || !container1) return;
|
|
1685
1533
|
const relatedTarget = event.relatedTarget;
|
|
1686
|
-
if (relatedTarget === null)
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
select: true
|
|
1691
|
-
});
|
|
1534
|
+
if (relatedTarget === null) return;
|
|
1535
|
+
if (!container1.contains(relatedTarget)) $d3863c46a17e8a28$var$focus(lastFocusedElementRef.current, {
|
|
1536
|
+
select: true
|
|
1537
|
+
});
|
|
1692
1538
|
}, handleMutations = function(mutations) {
|
|
1693
1539
|
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);
|
|
1540
|
+
if (focusedElement !== document.body) return;
|
|
1541
|
+
for (const mutation of mutations) if (mutation.removedNodes.length > 0) $d3863c46a17e8a28$var$focus(container1);
|
|
1699
1542
|
};
|
|
1700
1543
|
document.addEventListener("focusin", handleFocusIn);
|
|
1701
1544
|
document.addEventListener("focusout", handleFocusOut);
|
|
1702
1545
|
const mutationObserver = new MutationObserver(handleMutations);
|
|
1703
|
-
if (container1)
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
});
|
|
1546
|
+
if (container1) mutationObserver.observe(container1, {
|
|
1547
|
+
childList: true,
|
|
1548
|
+
subtree: true
|
|
1549
|
+
});
|
|
1708
1550
|
return () => {
|
|
1709
1551
|
document.removeEventListener("focusin", handleFocusIn);
|
|
1710
1552
|
document.removeEventListener("focusout", handleFocusOut);
|
|
@@ -1729,8 +1571,7 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
|
|
|
1729
1571
|
$d3863c46a17e8a28$var$focusFirst($d3863c46a17e8a28$var$removeLinks($d3863c46a17e8a28$var$getTabbableCandidates(container1)), {
|
|
1730
1572
|
select: true
|
|
1731
1573
|
});
|
|
1732
|
-
if (document.activeElement === previouslyFocusedElement)
|
|
1733
|
-
$d3863c46a17e8a28$var$focus(container1);
|
|
1574
|
+
if (document.activeElement === previouslyFocusedElement) $d3863c46a17e8a28$var$focus(container1);
|
|
1734
1575
|
}
|
|
1735
1576
|
}
|
|
1736
1577
|
return () => {
|
|
@@ -1739,10 +1580,9 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
|
|
|
1739
1580
|
const unmountEvent = new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, $d3863c46a17e8a28$var$EVENT_OPTIONS);
|
|
1740
1581
|
container1.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
1741
1582
|
container1.dispatchEvent(unmountEvent);
|
|
1742
|
-
if (!unmountEvent.defaultPrevented)
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
});
|
|
1583
|
+
if (!unmountEvent.defaultPrevented) $d3863c46a17e8a28$var$focus(previouslyFocusedElement !== null && previouslyFocusedElement !== void 0 ? previouslyFocusedElement : document.body, {
|
|
1584
|
+
select: true
|
|
1585
|
+
});
|
|
1746
1586
|
container1.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
1747
1587
|
$d3863c46a17e8a28$var$focusScopesStack.remove(focusScope);
|
|
1748
1588
|
}, 0);
|
|
@@ -1755,10 +1595,8 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
|
|
|
1755
1595
|
focusScope
|
|
1756
1596
|
]);
|
|
1757
1597
|
const handleKeyDown = q$1((event) => {
|
|
1758
|
-
if (!loop && !trapped)
|
|
1759
|
-
|
|
1760
|
-
if (focusScope.paused)
|
|
1761
|
-
return;
|
|
1598
|
+
if (!loop && !trapped) return;
|
|
1599
|
+
if (focusScope.paused) return;
|
|
1762
1600
|
const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
|
|
1763
1601
|
const focusedElement = document.activeElement;
|
|
1764
1602
|
if (isTabKey && focusedElement) {
|
|
@@ -1766,21 +1604,18 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ D((props, forw
|
|
|
1766
1604
|
const [first, last] = $d3863c46a17e8a28$var$getTabbableEdges(container);
|
|
1767
1605
|
const hasTabbableElementsInside = first && last;
|
|
1768
1606
|
if (!hasTabbableElementsInside) {
|
|
1769
|
-
if (focusedElement === container)
|
|
1770
|
-
event.preventDefault();
|
|
1607
|
+
if (focusedElement === container) event.preventDefault();
|
|
1771
1608
|
} else {
|
|
1772
1609
|
if (!event.shiftKey && focusedElement === last) {
|
|
1773
1610
|
event.preventDefault();
|
|
1774
|
-
if (loop)
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
});
|
|
1611
|
+
if (loop) $d3863c46a17e8a28$var$focus(first, {
|
|
1612
|
+
select: true
|
|
1613
|
+
});
|
|
1778
1614
|
} else if (event.shiftKey && focusedElement === first) {
|
|
1779
1615
|
event.preventDefault();
|
|
1780
|
-
if (loop)
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
});
|
|
1616
|
+
if (loop) $d3863c46a17e8a28$var$focus(last, {
|
|
1617
|
+
select: true
|
|
1618
|
+
});
|
|
1784
1619
|
}
|
|
1785
1620
|
}
|
|
1786
1621
|
}
|
|
@@ -1802,8 +1637,7 @@ function $d3863c46a17e8a28$var$focusFirst(candidates, { select = false } = {}) {
|
|
|
1802
1637
|
$d3863c46a17e8a28$var$focus(candidate, {
|
|
1803
1638
|
select
|
|
1804
1639
|
});
|
|
1805
|
-
if (document.activeElement !== previouslyFocusedElement)
|
|
1806
|
-
return;
|
|
1640
|
+
if (document.activeElement !== previouslyFocusedElement) return;
|
|
1807
1641
|
}
|
|
1808
1642
|
}
|
|
1809
1643
|
function $d3863c46a17e8a28$var$getTabbableEdges(container) {
|
|
@@ -1820,31 +1654,25 @@ function $d3863c46a17e8a28$var$getTabbableCandidates(container) {
|
|
|
1820
1654
|
const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
|
|
1821
1655
|
acceptNode: (node) => {
|
|
1822
1656
|
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
|
|
1823
|
-
if (node.disabled || node.hidden || isHiddenInput)
|
|
1824
|
-
return NodeFilter.FILTER_SKIP;
|
|
1657
|
+
if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
|
|
1825
1658
|
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
1826
1659
|
}
|
|
1827
1660
|
});
|
|
1828
|
-
while (walker.nextNode())
|
|
1829
|
-
nodes.push(walker.currentNode);
|
|
1661
|
+
while (walker.nextNode()) nodes.push(walker.currentNode);
|
|
1830
1662
|
return nodes;
|
|
1831
1663
|
}
|
|
1832
1664
|
function $d3863c46a17e8a28$var$findVisible(elements, container) {
|
|
1833
1665
|
for (const element of elements) {
|
|
1834
1666
|
if (!$d3863c46a17e8a28$var$isHidden(element, {
|
|
1835
1667
|
upTo: container
|
|
1836
|
-
}))
|
|
1837
|
-
return element;
|
|
1668
|
+
})) return element;
|
|
1838
1669
|
}
|
|
1839
1670
|
}
|
|
1840
1671
|
function $d3863c46a17e8a28$var$isHidden(node, { upTo }) {
|
|
1841
|
-
if (getComputedStyle(node).visibility === "hidden")
|
|
1842
|
-
return true;
|
|
1672
|
+
if (getComputedStyle(node).visibility === "hidden") return true;
|
|
1843
1673
|
while (node) {
|
|
1844
|
-
if (upTo !== void 0 && node === upTo)
|
|
1845
|
-
|
|
1846
|
-
if (getComputedStyle(node).display === "none")
|
|
1847
|
-
return true;
|
|
1674
|
+
if (upTo !== void 0 && node === upTo) return false;
|
|
1675
|
+
if (getComputedStyle(node).display === "none") return true;
|
|
1848
1676
|
node = node.parentElement;
|
|
1849
1677
|
}
|
|
1850
1678
|
return false;
|
|
@@ -1858,8 +1686,7 @@ function $d3863c46a17e8a28$var$focus(element, { select = false } = {}) {
|
|
|
1858
1686
|
element.focus({
|
|
1859
1687
|
preventScroll: true
|
|
1860
1688
|
});
|
|
1861
|
-
if (element !== previouslyFocusedElement && $d3863c46a17e8a28$var$isSelectableInput(element) && select)
|
|
1862
|
-
element.select();
|
|
1689
|
+
if (element !== previouslyFocusedElement && $d3863c46a17e8a28$var$isSelectableInput(element) && select) element.select();
|
|
1863
1690
|
}
|
|
1864
1691
|
}
|
|
1865
1692
|
const $d3863c46a17e8a28$var$focusScopesStack = $d3863c46a17e8a28$var$createFocusScopesStack();
|
|
@@ -1868,8 +1695,7 @@ function $d3863c46a17e8a28$var$createFocusScopesStack() {
|
|
|
1868
1695
|
return {
|
|
1869
1696
|
add(focusScope) {
|
|
1870
1697
|
const activeFocusScope = stack[0];
|
|
1871
|
-
if (focusScope !== activeFocusScope)
|
|
1872
|
-
activeFocusScope === null || activeFocusScope === void 0 || activeFocusScope.pause();
|
|
1698
|
+
if (focusScope !== activeFocusScope) activeFocusScope === null || activeFocusScope === void 0 || activeFocusScope.pause();
|
|
1873
1699
|
stack = $d3863c46a17e8a28$var$arrayRemove(stack, focusScope);
|
|
1874
1700
|
stack.unshift(focusScope);
|
|
1875
1701
|
},
|
|
@@ -1885,8 +1711,7 @@ function $d3863c46a17e8a28$var$arrayRemove(array, item) {
|
|
|
1885
1711
|
...array
|
|
1886
1712
|
];
|
|
1887
1713
|
const index2 = updatedArray.indexOf(item);
|
|
1888
|
-
if (index2 !== -1)
|
|
1889
|
-
updatedArray.splice(index2, 1);
|
|
1714
|
+
if (index2 !== -1) updatedArray.splice(index2, 1);
|
|
1890
1715
|
return updatedArray;
|
|
1891
1716
|
}
|
|
1892
1717
|
function $d3863c46a17e8a28$var$removeLinks(items) {
|
|
@@ -1901,10 +1726,9 @@ let $1746a345f3d73bb7$var$count = 0;
|
|
|
1901
1726
|
function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
|
|
1902
1727
|
const [id, setId] = d($1746a345f3d73bb7$var$useReactId());
|
|
1903
1728
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
);
|
|
1729
|
+
setId(
|
|
1730
|
+
(reactId) => reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
|
|
1731
|
+
);
|
|
1908
1732
|
}, [
|
|
1909
1733
|
deterministicId
|
|
1910
1734
|
]);
|
|
@@ -1978,8 +1802,7 @@ function getSideList(side, isStart, rtl) {
|
|
|
1978
1802
|
switch (side) {
|
|
1979
1803
|
case "top":
|
|
1980
1804
|
case "bottom":
|
|
1981
|
-
if (rtl)
|
|
1982
|
-
return isStart ? rlPlacement : lrPlacement;
|
|
1805
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
1983
1806
|
return isStart ? lrPlacement : rlPlacement;
|
|
1984
1807
|
case "left":
|
|
1985
1808
|
case "right":
|
|
@@ -3537,8 +3360,7 @@ function deepEqual(a2, b2) {
|
|
|
3537
3360
|
if (a2 && b2 && typeof a2 === "object") {
|
|
3538
3361
|
if (Array.isArray(a2)) {
|
|
3539
3362
|
length = a2.length;
|
|
3540
|
-
if (length !== b2.length)
|
|
3541
|
-
return false;
|
|
3363
|
+
if (length !== b2.length) return false;
|
|
3542
3364
|
for (i2 = length; i2-- !== 0; ) {
|
|
3543
3365
|
if (!deepEqual(a2[i2], b2[i2])) {
|
|
3544
3366
|
return false;
|
|
@@ -3680,10 +3502,8 @@ function useFloating(options2) {
|
|
|
3680
3502
|
};
|
|
3681
3503
|
}, []);
|
|
3682
3504
|
index(() => {
|
|
3683
|
-
if (referenceEl)
|
|
3684
|
-
|
|
3685
|
-
if (floatingEl)
|
|
3686
|
-
floatingRef.current = floatingEl;
|
|
3505
|
+
if (referenceEl) referenceRef.current = referenceEl;
|
|
3506
|
+
if (floatingEl) floatingRef.current = floatingEl;
|
|
3687
3507
|
if (referenceEl && floatingEl) {
|
|
3688
3508
|
if (whileElementsMountedRef.current) {
|
|
3689
3509
|
return whileElementsMountedRef.current(referenceEl, floatingEl, update);
|
|
@@ -3794,6 +3614,19 @@ const arrow = (options2, deps) => ({
|
|
|
3794
3614
|
...arrow$1(options2),
|
|
3795
3615
|
options: [options2, deps]
|
|
3796
3616
|
});
|
|
3617
|
+
const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /* @__PURE__ */ D((props, forwardedRef) => {
|
|
3618
|
+
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
3619
|
+
return /* @__PURE__ */ _$2($8927f6f2acc4f386$export$250ffa63cdc0d034.svg, _extends({}, arrowProps, {
|
|
3620
|
+
ref: forwardedRef,
|
|
3621
|
+
width,
|
|
3622
|
+
height,
|
|
3623
|
+
viewBox: "0 0 30 10",
|
|
3624
|
+
preserveAspectRatio: "none"
|
|
3625
|
+
}), props.asChild ? children : /* @__PURE__ */ _$2("polygon", {
|
|
3626
|
+
points: "0,0 30,0 15,10"
|
|
3627
|
+
}));
|
|
3628
|
+
});
|
|
3629
|
+
const $7e8f5cd07187803e$export$be92b6f5f03c0fe9 = $7e8f5cd07187803e$export$21b07c8f274aebd5;
|
|
3797
3630
|
function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
|
|
3798
3631
|
const [size2, setSize] = d(void 0);
|
|
3799
3632
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
@@ -3803,10 +3636,8 @@ function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
|
|
|
3803
3636
|
height: element.offsetHeight
|
|
3804
3637
|
});
|
|
3805
3638
|
const resizeObserver = new ResizeObserver((entries) => {
|
|
3806
|
-
if (!Array.isArray(entries))
|
|
3807
|
-
|
|
3808
|
-
if (!entries.length)
|
|
3809
|
-
return;
|
|
3639
|
+
if (!Array.isArray(entries)) return;
|
|
3640
|
+
if (!entries.length) return;
|
|
3810
3641
|
const entry = entries[0];
|
|
3811
3642
|
let width;
|
|
3812
3643
|
let height;
|
|
@@ -3948,8 +3779,7 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ D((props, forwa
|
|
|
3948
3779
|
const [placedSide, placedAlign] = $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(placement);
|
|
3949
3780
|
const handlePlaced = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPlaced);
|
|
3950
3781
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
3951
|
-
if (isPositioned)
|
|
3952
|
-
handlePlaced === null || handlePlaced === void 0 || handlePlaced();
|
|
3782
|
+
if (isPositioned) handlePlaced === null || handlePlaced === void 0 || handlePlaced();
|
|
3953
3783
|
}, [
|
|
3954
3784
|
isPositioned,
|
|
3955
3785
|
handlePlaced
|
|
@@ -3959,8 +3789,7 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ D((props, forwa
|
|
|
3959
3789
|
const cannotCenterArrow = ((_middlewareData$arrow3 = middlewareData.arrow) === null || _middlewareData$arrow3 === void 0 ? void 0 : _middlewareData$arrow3.centerOffset) !== 0;
|
|
3960
3790
|
const [contentZIndex, setContentZIndex] = d();
|
|
3961
3791
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
3962
|
-
if (content)
|
|
3963
|
-
setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
3792
|
+
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
3964
3793
|
}, [
|
|
3965
3794
|
content
|
|
3966
3795
|
]);
|
|
@@ -4001,6 +3830,55 @@ const $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc = /* @__PURE__ */ D((props, forwa
|
|
|
4001
3830
|
}
|
|
4002
3831
|
}))));
|
|
4003
3832
|
});
|
|
3833
|
+
const $cf1ac5d9fe0e8206$var$ARROW_NAME = "PopperArrow";
|
|
3834
|
+
const $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE = {
|
|
3835
|
+
top: "bottom",
|
|
3836
|
+
right: "left",
|
|
3837
|
+
bottom: "top",
|
|
3838
|
+
left: "right"
|
|
3839
|
+
};
|
|
3840
|
+
const $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0 = /* @__PURE__ */ D(function $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd02(props, forwardedRef) {
|
|
3841
|
+
const { __scopePopper, ...arrowProps } = props;
|
|
3842
|
+
const contentContext = $cf1ac5d9fe0e8206$var$useContentContext($cf1ac5d9fe0e8206$var$ARROW_NAME, __scopePopper);
|
|
3843
|
+
const baseSide = $cf1ac5d9fe0e8206$var$OPPOSITE_SIDE[contentContext.placedSide];
|
|
3844
|
+
return (
|
|
3845
|
+
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
3846
|
+
// doesn't report size as we'd expect on SVG elements.
|
|
3847
|
+
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
3848
|
+
/* @__PURE__ */ _$2("span", {
|
|
3849
|
+
ref: contentContext.onArrowChange,
|
|
3850
|
+
style: {
|
|
3851
|
+
position: "absolute",
|
|
3852
|
+
left: contentContext.arrowX,
|
|
3853
|
+
top: contentContext.arrowY,
|
|
3854
|
+
[baseSide]: 0,
|
|
3855
|
+
transformOrigin: {
|
|
3856
|
+
top: "",
|
|
3857
|
+
right: "0 0",
|
|
3858
|
+
bottom: "center 0",
|
|
3859
|
+
left: "100% 0"
|
|
3860
|
+
}[contentContext.placedSide],
|
|
3861
|
+
transform: {
|
|
3862
|
+
top: "translateY(100%)",
|
|
3863
|
+
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
3864
|
+
bottom: `rotate(180deg)`,
|
|
3865
|
+
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
3866
|
+
}[contentContext.placedSide],
|
|
3867
|
+
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
3868
|
+
}
|
|
3869
|
+
}, /* @__PURE__ */ _$2($7e8f5cd07187803e$export$be92b6f5f03c0fe9, _extends({}, arrowProps, {
|
|
3870
|
+
ref: forwardedRef,
|
|
3871
|
+
style: {
|
|
3872
|
+
...arrowProps.style,
|
|
3873
|
+
// ensures the element can be measured correctly (mostly for if SVG)
|
|
3874
|
+
display: "block"
|
|
3875
|
+
}
|
|
3876
|
+
})))
|
|
3877
|
+
);
|
|
3878
|
+
});
|
|
3879
|
+
/* @__PURE__ */ Object.assign($cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0, {
|
|
3880
|
+
displayName: $cf1ac5d9fe0e8206$var$ARROW_NAME
|
|
3881
|
+
});
|
|
4004
3882
|
function $cf1ac5d9fe0e8206$var$isNotNull(value) {
|
|
4005
3883
|
return value !== null;
|
|
4006
3884
|
}
|
|
@@ -4113,16 +3991,13 @@ function $921a889cee6df7e8$var$usePresence(present) {
|
|
|
4113
3991
|
if (hasPresentChanged) {
|
|
4114
3992
|
const prevAnimationName = prevAnimationNameRef.current;
|
|
4115
3993
|
const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(styles);
|
|
4116
|
-
if (present)
|
|
4117
|
-
send("MOUNT");
|
|
3994
|
+
if (present) send("MOUNT");
|
|
4118
3995
|
else if (currentAnimationName === "none" || (styles === null || styles === void 0 ? void 0 : styles.display) === "none")
|
|
4119
3996
|
send("UNMOUNT");
|
|
4120
3997
|
else {
|
|
4121
3998
|
const isAnimating = prevAnimationName !== currentAnimationName;
|
|
4122
|
-
if (wasPresent && isAnimating)
|
|
4123
|
-
|
|
4124
|
-
else
|
|
4125
|
-
send("UNMOUNT");
|
|
3999
|
+
if (wasPresent && isAnimating) send("ANIMATION_OUT");
|
|
4000
|
+
else send("UNMOUNT");
|
|
4126
4001
|
}
|
|
4127
4002
|
prevPresentRef.current = present;
|
|
4128
4003
|
}
|
|
@@ -4164,8 +4039,7 @@ function $921a889cee6df7e8$var$usePresence(present) {
|
|
|
4164
4039
|
"unmountSuspended"
|
|
4165
4040
|
].includes(state),
|
|
4166
4041
|
ref: q$1((node) => {
|
|
4167
|
-
if (node)
|
|
4168
|
-
stylesRef.current = getComputedStyle(node);
|
|
4042
|
+
if (node) stylesRef.current = getComputedStyle(node);
|
|
4169
4043
|
setNode(node);
|
|
4170
4044
|
}, [])
|
|
4171
4045
|
};
|
|
@@ -4186,10 +4060,8 @@ function $71cd76cc60e0454e$export$6f32135080cb4c3({ prop, defaultProp, onChange
|
|
|
4186
4060
|
if (isControlled) {
|
|
4187
4061
|
const setter = nextValue;
|
|
4188
4062
|
const value = typeof nextValue === "function" ? setter(prop) : nextValue;
|
|
4189
|
-
if (value !== prop)
|
|
4190
|
-
|
|
4191
|
-
} else
|
|
4192
|
-
setUncontrolledProp(nextValue);
|
|
4063
|
+
if (value !== prop) handleChange(value);
|
|
4064
|
+
} else setUncontrolledProp(nextValue);
|
|
4193
4065
|
}, [
|
|
4194
4066
|
isControlled,
|
|
4195
4067
|
prop,
|
|
@@ -4328,7 +4200,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
|
4328
4200
|
markerName = "data-aria-hidden";
|
|
4329
4201
|
}
|
|
4330
4202
|
var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
4331
|
-
var activeParentNode =
|
|
4203
|
+
var activeParentNode = getDefaultParent(originalTarget);
|
|
4332
4204
|
if (!activeParentNode) {
|
|
4333
4205
|
return function() {
|
|
4334
4206
|
return null;
|
|
@@ -4341,9 +4213,7 @@ var __assign = function() {
|
|
|
4341
4213
|
__assign = Object.assign || function __assign2(t2) {
|
|
4342
4214
|
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
4343
4215
|
s2 = arguments[i2];
|
|
4344
|
-
for (var p2 in s2)
|
|
4345
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
4346
|
-
t2[p2] = s2[p2];
|
|
4216
|
+
for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2)) t2[p2] = s2[p2];
|
|
4347
4217
|
}
|
|
4348
4218
|
return t2;
|
|
4349
4219
|
};
|
|
@@ -4351,9 +4221,8 @@ var __assign = function() {
|
|
|
4351
4221
|
};
|
|
4352
4222
|
function __rest(s2, e2) {
|
|
4353
4223
|
var t2 = {};
|
|
4354
|
-
for (var p2 in s2)
|
|
4355
|
-
|
|
4356
|
-
t2[p2] = s2[p2];
|
|
4224
|
+
for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
|
|
4225
|
+
t2[p2] = s2[p2];
|
|
4357
4226
|
if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
|
|
4358
4227
|
for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2); i2 < p2.length; i2++) {
|
|
4359
4228
|
if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2]))
|
|
@@ -4362,14 +4231,12 @@ function __rest(s2, e2) {
|
|
|
4362
4231
|
return t2;
|
|
4363
4232
|
}
|
|
4364
4233
|
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
|
-
}
|
|
4234
|
+
if (pack || arguments.length === 2) for (var i2 = 0, l2 = from.length, ar; i2 < l2; i2++) {
|
|
4235
|
+
if (ar || !(i2 in from)) {
|
|
4236
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i2);
|
|
4237
|
+
ar[i2] = from[i2];
|
|
4372
4238
|
}
|
|
4239
|
+
}
|
|
4373
4240
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
4374
4241
|
}
|
|
4375
4242
|
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
@@ -4416,7 +4283,7 @@ function useCallbackRef(initialValue, callback) {
|
|
|
4416
4283
|
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? _ : y;
|
|
4417
4284
|
var currentValues = /* @__PURE__ */ new WeakMap();
|
|
4418
4285
|
function useMergeRefs(refs, defaultValue) {
|
|
4419
|
-
var callbackRef = useCallbackRef(
|
|
4286
|
+
var callbackRef = useCallbackRef(null, function(newValue) {
|
|
4420
4287
|
return refs.forEach(function(ref) {
|
|
4421
4288
|
return assignRef(ref, newValue);
|
|
4422
4289
|
});
|
|
@@ -4573,11 +4440,7 @@ RemoveScroll.classNames = {
|
|
|
4573
4440
|
fullWidth: fullWidthClassName,
|
|
4574
4441
|
zeroRight: zeroRightClassName
|
|
4575
4442
|
};
|
|
4576
|
-
var currentNonce;
|
|
4577
4443
|
var getNonce = function() {
|
|
4578
|
-
if (currentNonce) {
|
|
4579
|
-
return currentNonce;
|
|
4580
|
-
}
|
|
4581
4444
|
if (typeof __webpack_nonce__ !== "undefined") {
|
|
4582
4445
|
return __webpack_nonce__;
|
|
4583
4446
|
}
|
|
@@ -4817,9 +4680,9 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
|
4817
4680
|
!targetInLock && target !== document.body || // self content
|
|
4818
4681
|
targetInLock && (endTarget.contains(target) || endTarget === target)
|
|
4819
4682
|
);
|
|
4820
|
-
if (isDeltaPositive && (
|
|
4683
|
+
if (isDeltaPositive && (availableScroll === 0 || false)) {
|
|
4821
4684
|
shouldCancelScroll = true;
|
|
4822
|
-
} else if (!isDeltaPositive && (
|
|
4685
|
+
} else if (!isDeltaPositive && (availableScrollTop === 0 || false)) {
|
|
4823
4686
|
shouldCancelScroll = true;
|
|
4824
4687
|
}
|
|
4825
4688
|
return shouldCancelScroll;
|
|
@@ -4903,7 +4766,7 @@ function RemoveScrollSideCar(props) {
|
|
|
4903
4766
|
return true;
|
|
4904
4767
|
}
|
|
4905
4768
|
var cancelingAxis = activeAxis.current || currentAxis;
|
|
4906
|
-
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY
|
|
4769
|
+
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
|
|
4907
4770
|
}, []);
|
|
4908
4771
|
var shouldPrevent = q$1(function(_event) {
|
|
4909
4772
|
var event = _event;
|
|
@@ -4983,9 +4846,8 @@ var ReactRemoveScroll = D(function(props, ref) {
|
|
|
4983
4846
|
return _$2(RemoveScroll, __assign({}, props, { ref, sideCar: SideCar }));
|
|
4984
4847
|
});
|
|
4985
4848
|
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
4986
|
-
const $am6gm$RemoveScroll = ReactRemoveScroll;
|
|
4987
4849
|
const $cb5cc270b50c6fcd$var$POPOVER_NAME = "Popover";
|
|
4988
|
-
const [$cb5cc270b50c6fcd$var$createPopoverContext
|
|
4850
|
+
const [$cb5cc270b50c6fcd$var$createPopoverContext] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($cb5cc270b50c6fcd$var$POPOVER_NAME, [
|
|
4989
4851
|
$cf1ac5d9fe0e8206$export$722aac194ae923
|
|
4990
4852
|
]);
|
|
4991
4853
|
const $cb5cc270b50c6fcd$var$usePopperScope = $cf1ac5d9fe0e8206$export$722aac194ae923();
|
|
@@ -5083,10 +4945,9 @@ const $cb5cc270b50c6fcd$var$PopoverContentModal = /* @__PURE__ */ D((props, forw
|
|
|
5083
4945
|
const isRightClickOutsideRef = A$1(false);
|
|
5084
4946
|
y(() => {
|
|
5085
4947
|
const content = contentRef.current;
|
|
5086
|
-
if (content)
|
|
5087
|
-
return hideOthers(content);
|
|
4948
|
+
if (content) return hideOthers(content);
|
|
5088
4949
|
}, []);
|
|
5089
|
-
return /* @__PURE__ */ _$2(
|
|
4950
|
+
return /* @__PURE__ */ _$2(ReactRemoveScroll, {
|
|
5090
4951
|
as: $5e63c961fc1ce211$export$8c6ed5c666ac1360,
|
|
5091
4952
|
allowPinchZoom: true
|
|
5092
4953
|
}, /* @__PURE__ */ _$2($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends({}, props, {
|
|
@@ -5096,8 +4957,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentModal = /* @__PURE__ */ D((props, forw
|
|
|
5096
4957
|
onCloseAutoFocus: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onCloseAutoFocus, (event) => {
|
|
5097
4958
|
var _context$triggerRef$c;
|
|
5098
4959
|
event.preventDefault();
|
|
5099
|
-
if (!isRightClickOutsideRef.current)
|
|
5100
|
-
(_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();
|
|
4960
|
+
if (!isRightClickOutsideRef.current) (_context$triggerRef$c = context.triggerRef.current) === null || _context$triggerRef$c === void 0 || _context$triggerRef$c.focus();
|
|
5101
4961
|
}),
|
|
5102
4962
|
onPointerDownOutside: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownOutside, (event) => {
|
|
5103
4963
|
const originalEvent = event.detail.originalEvent;
|
|
@@ -5129,8 +4989,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentNonModal = /* @__PURE__ */ D((props, f
|
|
|
5129
4989
|
(_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);
|
|
5130
4990
|
if (!event.defaultPrevented) {
|
|
5131
4991
|
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();
|
|
4992
|
+
if (!hasInteractedOutsideRef.current) (_context$triggerRef$c2 = context.triggerRef.current) === null || _context$triggerRef$c2 === void 0 || _context$triggerRef$c2.focus();
|
|
5134
4993
|
event.preventDefault();
|
|
5135
4994
|
}
|
|
5136
4995
|
hasInteractedOutsideRef.current = false;
|
|
@@ -5141,15 +5000,12 @@ const $cb5cc270b50c6fcd$var$PopoverContentNonModal = /* @__PURE__ */ D((props, f
|
|
|
5141
5000
|
(_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);
|
|
5142
5001
|
if (!event.defaultPrevented) {
|
|
5143
5002
|
hasInteractedOutsideRef.current = true;
|
|
5144
|
-
if (event.detail.originalEvent.type === "pointerdown")
|
|
5145
|
-
hasPointerDownOutsideRef.current = true;
|
|
5003
|
+
if (event.detail.originalEvent.type === "pointerdown") hasPointerDownOutsideRef.current = true;
|
|
5146
5004
|
}
|
|
5147
5005
|
const target = event.target;
|
|
5148
5006
|
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();
|
|
5007
|
+
if (targetIsTrigger) event.preventDefault();
|
|
5008
|
+
if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) event.preventDefault();
|
|
5153
5009
|
}
|
|
5154
5010
|
}));
|
|
5155
5011
|
});
|
|
@@ -5197,39 +5053,26 @@ const $cb5cc270b50c6fcd$export$602eac185826482c = $cb5cc270b50c6fcd$export$dd679
|
|
|
5197
5053
|
const $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2 = $cb5cc270b50c6fcd$export$d7e1f420b25549ff;
|
|
5198
5054
|
function r$1(e2) {
|
|
5199
5055
|
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);
|
|
5056
|
+
if ("string" == typeof e2 || "number" == typeof e2) n2 += e2;
|
|
5057
|
+
else if ("object" == typeof e2) if (Array.isArray(e2)) {
|
|
5058
|
+
var o2 = e2.length;
|
|
5059
|
+
for (t2 = 0; t2 < o2; t2++) e2[t2] && (f2 = r$1(e2[t2])) && (n2 && (n2 += " "), n2 += f2);
|
|
5060
|
+
} else for (f2 in e2) e2[f2] && (n2 && (n2 += " "), n2 += f2);
|
|
5210
5061
|
return n2;
|
|
5211
5062
|
}
|
|
5212
5063
|
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);
|
|
5064
|
+
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
5065
|
return n2;
|
|
5216
5066
|
}
|
|
5217
5067
|
function r(e2) {
|
|
5218
5068
|
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);
|
|
5069
|
+
if ("string" == typeof e2 || "number" == typeof e2) n2 += e2;
|
|
5070
|
+
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);
|
|
5071
|
+
else for (t2 in e2) e2[t2] && (n2 && (n2 += " "), n2 += t2);
|
|
5228
5072
|
return n2;
|
|
5229
5073
|
}
|
|
5230
5074
|
function clsx() {
|
|
5231
|
-
for (var e2, t2, f2 = 0, n2 = ""; f2 < arguments.length; )
|
|
5232
|
-
(e2 = arguments[f2++]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
|
|
5075
|
+
for (var e2, t2, f2 = 0, n2 = ""; f2 < arguments.length; ) (e2 = arguments[f2++]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
|
|
5233
5076
|
return n2;
|
|
5234
5077
|
}
|
|
5235
5078
|
const falsyToString = (value) => typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
|
|
@@ -5238,18 +5081,12 @@ const defineConfig = (options2) => {
|
|
|
5238
5081
|
for (var _len = arguments.length, inputs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5239
5082
|
inputs[_key] = arguments[_key];
|
|
5240
5083
|
}
|
|
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
5084
|
return clsx(inputs);
|
|
5247
5085
|
};
|
|
5248
5086
|
const cva1 = (config) => {
|
|
5249
5087
|
return (props) => {
|
|
5250
5088
|
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);
|
|
5089
|
+
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
5090
|
const { variants, defaultVariants } = config;
|
|
5254
5091
|
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
5255
5092
|
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
@@ -5286,7 +5123,7 @@ const defineConfig = (options2) => {
|
|
|
5286
5123
|
};
|
|
5287
5124
|
return { compose: compose1, cva: cva1, cx: cx1 };
|
|
5288
5125
|
};
|
|
5289
|
-
const {
|
|
5126
|
+
const { cva } = defineConfig();
|
|
5290
5127
|
const FEEDBACK_WIDGET_ID = "inploi-feedback";
|
|
5291
5128
|
var FALLBACK_PLURAL_ORDER = ["other", "few", "many", "two", "one", "zero"];
|
|
5292
5129
|
var createTranslateFunction = ({
|
|
@@ -5629,11 +5466,9 @@ const options = [
|
|
|
5629
5466
|
];
|
|
5630
5467
|
const submitWithMetaEnter = (e2) => {
|
|
5631
5468
|
const isSubmitCombo = e2.key === "Enter" && e2.metaKey;
|
|
5632
|
-
if (!isSubmitCombo)
|
|
5633
|
-
return;
|
|
5469
|
+
if (!isSubmitCombo) return;
|
|
5634
5470
|
const form = e2.currentTarget.form;
|
|
5635
|
-
if (!form)
|
|
5636
|
-
return;
|
|
5471
|
+
if (!form) return;
|
|
5637
5472
|
form.requestSubmit();
|
|
5638
5473
|
};
|
|
5639
5474
|
const Label = () => {
|
|
@@ -5653,8 +5488,7 @@ const FeedbackWidget = ({ analytics, params, logger }) => {
|
|
|
5653
5488
|
const held = A$1(params.score);
|
|
5654
5489
|
held.current = params.score;
|
|
5655
5490
|
y(() => {
|
|
5656
|
-
if (params.score !== void 0)
|
|
5657
|
-
setScore(params.score);
|
|
5491
|
+
if (params.score !== void 0) setScore(params.score);
|
|
5658
5492
|
}, [params.score]);
|
|
5659
5493
|
const [open, setOpen] = d();
|
|
5660
5494
|
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: [
|
|
@@ -5664,10 +5498,8 @@ const FeedbackWidget = ({ analytics, params, logger }) => {
|
|
|
5664
5498
|
{
|
|
5665
5499
|
open: open === option.value,
|
|
5666
5500
|
onOpenChange: (next) => {
|
|
5667
|
-
if (next)
|
|
5668
|
-
|
|
5669
|
-
else
|
|
5670
|
-
setOpen((current) => current === option.value ? void 0 : current);
|
|
5501
|
+
if (next) setOpen(option.value);
|
|
5502
|
+
else setOpen((current) => current === option.value ? void 0 : current);
|
|
5671
5503
|
},
|
|
5672
5504
|
children: [
|
|
5673
5505
|
/* @__PURE__ */ u$1(
|
|
@@ -5688,7 +5520,7 @@ const FeedbackWidget = ({ analytics, params, logger }) => {
|
|
|
5688
5520
|
return;
|
|
5689
5521
|
}
|
|
5690
5522
|
(_b = params.onScore) == null ? void 0 : _b.call(params, newVal);
|
|
5691
|
-
analytics.log({ event: "FEEDBACK", properties: { key: params.key, score: newVal } }).then(
|
|
5523
|
+
analytics.log({ event: "FEEDBACK", properties: { ...params.source, key: params.key, score: newVal } }).then(
|
|
5692
5524
|
() => {
|
|
5693
5525
|
var _a2;
|
|
5694
5526
|
return (_a2 = params.onRate) == null ? void 0 : _a2.call(params, newVal);
|
|
@@ -5752,8 +5584,7 @@ const CommentForm = ({
|
|
|
5752
5584
|
const [submission, setSubmission] = d({ state: "idle" });
|
|
5753
5585
|
_(() => {
|
|
5754
5586
|
var _a;
|
|
5755
|
-
if (submission.state === "success" && transferFocus.current)
|
|
5756
|
-
(_a = success.current) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
5587
|
+
if (submission.state === "success" && transferFocus.current) (_a = success.current) == null ? void 0 : _a.focus({ preventScroll: true });
|
|
5757
5588
|
}, [submission.state]);
|
|
5758
5589
|
if (submission.state === "success") {
|
|
5759
5590
|
return /* @__PURE__ */ u$1(
|
|
@@ -5786,7 +5617,7 @@ const CommentForm = ({
|
|
|
5786
5617
|
return;
|
|
5787
5618
|
}
|
|
5788
5619
|
Promise.all([
|
|
5789
|
-
analytics.log({ event: "FEEDBACK", properties: { key: params.key, comment } }),
|
|
5620
|
+
analytics.log({ event: "FEEDBACK", properties: { ...params.source, key: params.key, comment } }),
|
|
5790
5621
|
/** Min delay of 500ms so it feels like it’s doing stuff */
|
|
5791
5622
|
new Promise((resolve) => setTimeout(resolve, 1e3))
|
|
5792
5623
|
]).then(() => {
|
|
@@ -6831,8 +6662,7 @@ const feedbackPlugin = () => sdk.createPlugin(({ apiClient, logger, analytics })
|
|
|
6831
6662
|
},
|
|
6832
6663
|
/** Release components, portals and document listeners when an owning widget unmounts. */
|
|
6833
6664
|
destroy: () => {
|
|
6834
|
-
for (const target of targets)
|
|
6835
|
-
J$1(null, target);
|
|
6665
|
+
for (const target of targets) J$1(null, target);
|
|
6836
6666
|
targets.clear();
|
|
6837
6667
|
},
|
|
6838
6668
|
"~brand": "@inploi/plugin-feedback"
|