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