@web-site-utilities/feedback 0.0.1 → 0.0.2
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/dist/common/types/FormConfig.d.ts +1 -0
- package/dist/form/features/InPlaceForm/InPlaceForm.d.ts +1 -2
- package/dist/form/features/PopupForm/PopupForm.d.ts +1 -2
- package/dist/form/hooks/useIsClient.d.ts +1 -0
- package/dist/form/index.d.ts +4 -0
- package/dist/index.cjs.js +18 -18
- package/dist/index.d.ts +21 -0
- package/dist/index.es.js +733 -731
- package/dist/index.iife.js +18 -18
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import l, { useMemo as se, createElement as
|
|
2
|
-
import
|
|
3
|
-
var vt = {},
|
|
4
|
-
function
|
|
5
|
-
if (
|
|
6
|
-
|
|
7
|
-
var e =
|
|
1
|
+
import l, { useMemo as se, createElement as fo, useContext as mo, useState as Ue, useEffect as We, useRef as bn, useCallback as xe, Fragment as ho } from "react";
|
|
2
|
+
import po from "react-dom";
|
|
3
|
+
var vt = {}, Wr;
|
|
4
|
+
function go() {
|
|
5
|
+
if (Wr) return vt;
|
|
6
|
+
Wr = 1;
|
|
7
|
+
var e = po;
|
|
8
8
|
return vt.createRoot = e.createRoot, vt.hydrateRoot = e.hydrateRoot, vt;
|
|
9
9
|
}
|
|
10
|
-
var
|
|
10
|
+
var bo = go(), V = function() {
|
|
11
11
|
return V = Object.assign || function(t) {
|
|
12
|
-
for (var
|
|
13
|
-
|
|
14
|
-
for (var i in
|
|
12
|
+
for (var r, n = 1, o = arguments.length; n < o; n++) {
|
|
13
|
+
r = arguments[n];
|
|
14
|
+
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
15
15
|
}
|
|
16
16
|
return t;
|
|
17
17
|
}, V.apply(this, arguments);
|
|
18
18
|
};
|
|
19
|
-
function Ot(e, t,
|
|
20
|
-
if (
|
|
21
|
-
(i || !(
|
|
19
|
+
function Ot(e, t, r) {
|
|
20
|
+
if (r || arguments.length === 2) for (var n = 0, o = t.length, i; n < o; n++)
|
|
21
|
+
(i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
|
22
22
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
23
23
|
}
|
|
24
|
-
var k = "-ms-", ut = "-moz-", C = "-webkit-",
|
|
25
|
-
function
|
|
24
|
+
var k = "-ms-", ut = "-moz-", C = "-webkit-", yn = "comm", Lt = "rule", vr = "decl", yo = "@import", vn = "@keyframes", vo = "@layer", En = Math.abs, Er = String.fromCharCode, ur = Object.assign;
|
|
25
|
+
function Eo(e, t) {
|
|
26
26
|
return B(e, 0) ^ 45 ? (((t << 2 ^ B(e, 0)) << 2 ^ B(e, 1)) << 2 ^ B(e, 2)) << 2 ^ B(e, 3) : 0;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function Sn(e) {
|
|
29
29
|
return e.trim();
|
|
30
30
|
}
|
|
31
31
|
function me(e, t) {
|
|
32
32
|
return (e = t.exec(e)) ? e[0] : e;
|
|
33
33
|
}
|
|
34
|
-
function g(e, t,
|
|
35
|
-
return e.replace(t,
|
|
34
|
+
function g(e, t, r) {
|
|
35
|
+
return e.replace(t, r);
|
|
36
36
|
}
|
|
37
|
-
function Ct(e, t,
|
|
38
|
-
return e.indexOf(t,
|
|
37
|
+
function Ct(e, t, r) {
|
|
38
|
+
return e.indexOf(t, r);
|
|
39
39
|
}
|
|
40
40
|
function B(e, t) {
|
|
41
41
|
return e.charCodeAt(t) | 0;
|
|
42
42
|
}
|
|
43
|
-
function He(e, t,
|
|
44
|
-
return e.slice(t,
|
|
43
|
+
function He(e, t, r) {
|
|
44
|
+
return e.slice(t, r);
|
|
45
45
|
}
|
|
46
46
|
function ie(e) {
|
|
47
47
|
return e.length;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Tn(e) {
|
|
50
50
|
return e.length;
|
|
51
51
|
}
|
|
52
52
|
function lt(e, t) {
|
|
53
53
|
return t.push(e), e;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function So(e, t) {
|
|
56
56
|
return e.map(t).join("");
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
return e.filter(function(
|
|
60
|
-
return !me(
|
|
58
|
+
function Hr(e, t) {
|
|
59
|
+
return e.filter(function(r) {
|
|
60
|
+
return !me(r, t);
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
var Mt = 1, Ve = 1,
|
|
64
|
-
function Ft(e, t,
|
|
65
|
-
return { value: e, root: t, parent:
|
|
63
|
+
var Mt = 1, Ve = 1, wn = 0, Z = 0, F = 0, qe = "";
|
|
64
|
+
function Ft(e, t, r, n, o, i, s, d) {
|
|
65
|
+
return { value: e, root: t, parent: r, type: n, props: o, children: i, line: Mt, column: Ve, length: s, return: "", siblings: d };
|
|
66
66
|
}
|
|
67
67
|
function ye(e, t) {
|
|
68
|
-
return
|
|
68
|
+
return ur(Ft("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
69
69
|
}
|
|
70
70
|
function ze(e) {
|
|
71
71
|
for (; e.root; )
|
|
72
72
|
e = ye(e.root, { children: [e] });
|
|
73
73
|
lt(e, e.siblings);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function To() {
|
|
76
76
|
return F;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function wo() {
|
|
79
79
|
return F = Z > 0 ? B(qe, --Z) : 0, Ve--, F === 10 && (Ve = 1, Mt--), F;
|
|
80
80
|
}
|
|
81
81
|
function oe() {
|
|
82
|
-
return F = Z <
|
|
82
|
+
return F = Z < wn ? B(qe, Z++) : 0, Ve++, F === 10 && (Ve = 1, Mt++), F;
|
|
83
83
|
}
|
|
84
84
|
function Ce() {
|
|
85
85
|
return B(qe, Z);
|
|
@@ -90,7 +90,7 @@ function At() {
|
|
|
90
90
|
function zt(e, t) {
|
|
91
91
|
return He(qe, e, t);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function dr(e) {
|
|
94
94
|
switch (e) {
|
|
95
95
|
// \0 \t \n \r \s whitespace token
|
|
96
96
|
case 0:
|
|
@@ -128,26 +128,26 @@ function fn(e) {
|
|
|
128
128
|
}
|
|
129
129
|
return 0;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return Mt = Ve = 1,
|
|
131
|
+
function xo(e) {
|
|
132
|
+
return Mt = Ve = 1, wn = ie(qe = e), Z = 0, [];
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Co(e) {
|
|
135
135
|
return qe = "", e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
return
|
|
137
|
+
function er(e) {
|
|
138
|
+
return Sn(zt(Z - 1, fr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Ao(e) {
|
|
141
141
|
for (; (F = Ce()) && F < 33; )
|
|
142
142
|
oe();
|
|
143
|
-
return
|
|
143
|
+
return dr(e) > 2 || dr(F) > 3 ? "" : " ";
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function _o(e, t) {
|
|
146
146
|
for (; --t && oe() && !(F < 48 || F > 102 || F > 57 && F < 65 || F > 70 && F < 97); )
|
|
147
147
|
;
|
|
148
148
|
return zt(e, At() + (t < 6 && Ce() == 32 && oe() == 32));
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function fr(e) {
|
|
151
151
|
for (; oe(); )
|
|
152
152
|
switch (F) {
|
|
153
153
|
// ] ) " '
|
|
@@ -156,11 +156,11 @@ function mn(e) {
|
|
|
156
156
|
// " '
|
|
157
157
|
case 34:
|
|
158
158
|
case 39:
|
|
159
|
-
e !== 34 && e !== 39 &&
|
|
159
|
+
e !== 34 && e !== 39 && fr(F);
|
|
160
160
|
break;
|
|
161
161
|
// (
|
|
162
162
|
case 40:
|
|
163
|
-
e === 41 &&
|
|
163
|
+
e === 41 && fr(e);
|
|
164
164
|
break;
|
|
165
165
|
// \
|
|
166
166
|
case 92:
|
|
@@ -169,52 +169,52 @@ function mn(e) {
|
|
|
169
169
|
}
|
|
170
170
|
return Z;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Io(e, t) {
|
|
173
173
|
for (; oe() && e + F !== 57; )
|
|
174
174
|
if (e + F === 84 && Ce() === 47)
|
|
175
175
|
break;
|
|
176
|
-
return "/*" + zt(t, Z - 1) + "*" +
|
|
176
|
+
return "/*" + zt(t, Z - 1) + "*" + Er(e === 47 ? e : oe());
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
for (; !
|
|
178
|
+
function Ro(e) {
|
|
179
|
+
for (; !dr(Ce()); )
|
|
180
180
|
oe();
|
|
181
181
|
return zt(e, Z);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
return
|
|
183
|
+
function ko(e) {
|
|
184
|
+
return Co(_t("", null, null, null, [""], e = xo(e), 0, [0], e));
|
|
185
185
|
}
|
|
186
|
-
function _t(e, t,
|
|
187
|
-
for (var m = 0, p = 0, T = s, w = 0, v = 0, A = 0, $ = 1, G = 1, D = 1, O = 0, _ = "", b = o, R = i, x =
|
|
186
|
+
function _t(e, t, r, n, o, i, s, d, u) {
|
|
187
|
+
for (var m = 0, p = 0, T = s, w = 0, v = 0, A = 0, $ = 1, G = 1, D = 1, O = 0, _ = "", b = o, R = i, x = n, y = _; G; )
|
|
188
188
|
switch (A = O, O = oe()) {
|
|
189
189
|
// (
|
|
190
190
|
case 40:
|
|
191
191
|
if (A != 108 && B(y, T - 1) == 58) {
|
|
192
|
-
Ct(y += g(
|
|
192
|
+
Ct(y += g(er(O), "&", "&\f"), "&\f", En(m ? d[m - 1] : 0)) != -1 && (D = -1);
|
|
193
193
|
break;
|
|
194
194
|
}
|
|
195
195
|
// " ' [
|
|
196
196
|
case 34:
|
|
197
197
|
case 39:
|
|
198
198
|
case 91:
|
|
199
|
-
y +=
|
|
199
|
+
y += er(O);
|
|
200
200
|
break;
|
|
201
201
|
// \t \n \r \s
|
|
202
202
|
case 9:
|
|
203
203
|
case 10:
|
|
204
204
|
case 13:
|
|
205
205
|
case 32:
|
|
206
|
-
y +=
|
|
206
|
+
y += Ao(A);
|
|
207
207
|
break;
|
|
208
208
|
// \
|
|
209
209
|
case 92:
|
|
210
|
-
y +=
|
|
210
|
+
y += _o(At() - 1, 7);
|
|
211
211
|
continue;
|
|
212
212
|
// /
|
|
213
213
|
case 47:
|
|
214
214
|
switch (Ce()) {
|
|
215
215
|
case 42:
|
|
216
216
|
case 47:
|
|
217
|
-
lt(
|
|
217
|
+
lt(Oo(Io(oe(), At()), t, r, u), u);
|
|
218
218
|
break;
|
|
219
219
|
default:
|
|
220
220
|
y += "/";
|
|
@@ -234,14 +234,14 @@ function _t(e, t, n, r, o, i, s, d, u) {
|
|
|
234
234
|
G = 0;
|
|
235
235
|
// ;
|
|
236
236
|
case 59 + p:
|
|
237
|
-
D == -1 && (y = g(y, /\f/g, "")), v > 0 && ie(y) - T && lt(v > 32 ?
|
|
237
|
+
D == -1 && (y = g(y, /\f/g, "")), v > 0 && ie(y) - T && lt(v > 32 ? Gr(y + ";", n, r, T - 1, u) : Gr(g(y, " ", "") + ";", n, r, T - 2, u), u);
|
|
238
238
|
break;
|
|
239
239
|
// @ ;
|
|
240
240
|
case 59:
|
|
241
241
|
y += ";";
|
|
242
242
|
// { rule/at-rule
|
|
243
243
|
default:
|
|
244
|
-
if (lt(x =
|
|
244
|
+
if (lt(x = Vr(y, t, r, m, p, o, d, _, b = [], R = [], T, i), i), O === 123)
|
|
245
245
|
if (p === 0)
|
|
246
246
|
_t(y, t, x, x, b, i, T, d, R);
|
|
247
247
|
else
|
|
@@ -251,7 +251,7 @@ function _t(e, t, n, r, o, i, s, d, u) {
|
|
|
251
251
|
case 108:
|
|
252
252
|
case 109:
|
|
253
253
|
case 115:
|
|
254
|
-
_t(e, x, x,
|
|
254
|
+
_t(e, x, x, n && lt(Vr(e, x, x, 0, 0, o, d, _, o, b = [], T, R), R), o, R, T, d, n ? b : R);
|
|
255
255
|
break;
|
|
256
256
|
default:
|
|
257
257
|
_t(y, x, x, x, [""], R, 0, d, R);
|
|
@@ -266,10 +266,10 @@ function _t(e, t, n, r, o, i, s, d, u) {
|
|
|
266
266
|
if ($ < 1) {
|
|
267
267
|
if (O == 123)
|
|
268
268
|
--$;
|
|
269
|
-
else if (O == 125 && $++ == 0 &&
|
|
269
|
+
else if (O == 125 && $++ == 0 && wo() == 125)
|
|
270
270
|
continue;
|
|
271
271
|
}
|
|
272
|
-
switch (y +=
|
|
272
|
+
switch (y += Er(O), O * $) {
|
|
273
273
|
// &
|
|
274
274
|
case 38:
|
|
275
275
|
D = p > 0 ? 1 : (y += "\f", -1);
|
|
@@ -280,7 +280,7 @@ function _t(e, t, n, r, o, i, s, d, u) {
|
|
|
280
280
|
break;
|
|
281
281
|
// @
|
|
282
282
|
case 64:
|
|
283
|
-
Ce() === 45 && (y +=
|
|
283
|
+
Ce() === 45 && (y += er(oe())), w = Ce(), p = T = ie(_ = y += Ro(At())), O++;
|
|
284
284
|
break;
|
|
285
285
|
// -
|
|
286
286
|
case 45:
|
|
@@ -289,20 +289,20 @@ function _t(e, t, n, r, o, i, s, d, u) {
|
|
|
289
289
|
}
|
|
290
290
|
return i;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
for (var w = o - 1, v = o === 0 ? i : [""], A =
|
|
294
|
-
for (var O = 0, _ = He(e, w + 1, w =
|
|
295
|
-
(b =
|
|
296
|
-
return Ft(e, t,
|
|
292
|
+
function Vr(e, t, r, n, o, i, s, d, u, m, p, T) {
|
|
293
|
+
for (var w = o - 1, v = o === 0 ? i : [""], A = Tn(v), $ = 0, G = 0, D = 0; $ < n; ++$)
|
|
294
|
+
for (var O = 0, _ = He(e, w + 1, w = En(G = s[$])), b = e; O < A; ++O)
|
|
295
|
+
(b = Sn(G > 0 ? v[O] + " " + _ : g(_, /&\f/g, v[O]))) && (u[D++] = b);
|
|
296
|
+
return Ft(e, t, r, o === 0 ? Lt : d, u, m, p, T);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
return Ft(e, t,
|
|
298
|
+
function Oo(e, t, r, n) {
|
|
299
|
+
return Ft(e, t, r, yn, Er(To()), He(e, 2, -2), 0, n);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
302
|
-
return Ft(e, t,
|
|
301
|
+
function Gr(e, t, r, n, o) {
|
|
302
|
+
return Ft(e, t, r, vr, He(e, 0, n), He(e, n + 1, -1), n, o);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
switch (
|
|
304
|
+
function xn(e, t, r) {
|
|
305
|
+
switch (Eo(e, t)) {
|
|
306
306
|
// color-adjust
|
|
307
307
|
case 5103:
|
|
308
308
|
return C + "print-" + e + e;
|
|
@@ -409,14 +409,14 @@ function xr(e, t, n) {
|
|
|
409
409
|
// grid-(row|column)-start
|
|
410
410
|
case 4384:
|
|
411
411
|
case 3616:
|
|
412
|
-
return
|
|
413
|
-
return t = o, me(
|
|
414
|
-
}) ? ~Ct(e + (
|
|
412
|
+
return r && r.some(function(n, o) {
|
|
413
|
+
return t = o, me(n.props, /grid-\w+-end/);
|
|
414
|
+
}) ? ~Ct(e + (r = r[t].value), "span", 0) ? e : k + g(e, "-start", "") + e + k + "grid-row-span:" + (~Ct(r, "span", 0) ? me(r, /\d+/) : +me(r, /\d+/) - +me(e, /\d+/)) + ";" : k + g(e, "-start", "") + e;
|
|
415
415
|
// grid-(row|column)-end
|
|
416
416
|
case 4896:
|
|
417
417
|
case 4128:
|
|
418
|
-
return
|
|
419
|
-
return me(
|
|
418
|
+
return r && r.some(function(n) {
|
|
419
|
+
return me(n.props, /grid-\w+-start/);
|
|
420
420
|
}) ? e : k + g(g(e, "-end", "-span"), "span ", "") + e;
|
|
421
421
|
// (margin|padding)-inline-(start|end)
|
|
422
422
|
case 4095:
|
|
@@ -448,13 +448,13 @@ function xr(e, t, n) {
|
|
|
448
448
|
return g(e, /(.+:)(.+)-([^]+)/, "$1" + C + "$2-$3$1" + ut + (B(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
449
449
|
// (s)tretch
|
|
450
450
|
case 115:
|
|
451
|
-
return ~Ct(e, "stretch", 0) ?
|
|
451
|
+
return ~Ct(e, "stretch", 0) ? xn(g(e, "stretch", "fill-available"), t, r) + e : e;
|
|
452
452
|
}
|
|
453
453
|
break;
|
|
454
454
|
// grid-(column|row)
|
|
455
455
|
case 5152:
|
|
456
456
|
case 5920:
|
|
457
|
-
return g(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(
|
|
457
|
+
return g(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, o, i, s, d, u, m) {
|
|
458
458
|
return k + o + ":" + i + m + (s ? k + o + "-span:" + (d ? u : +u - +i) + m : "") + e;
|
|
459
459
|
});
|
|
460
460
|
// position: sticky
|
|
@@ -484,66 +484,66 @@ function xr(e, t, n) {
|
|
|
484
484
|
return e;
|
|
485
485
|
}
|
|
486
486
|
function Pt(e, t) {
|
|
487
|
-
for (var
|
|
488
|
-
|
|
489
|
-
return
|
|
487
|
+
for (var r = "", n = 0; n < e.length; n++)
|
|
488
|
+
r += t(e[n], n, e, t) || "";
|
|
489
|
+
return r;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Po(e, t, r, n) {
|
|
492
492
|
switch (e.type) {
|
|
493
|
-
case
|
|
493
|
+
case vo:
|
|
494
494
|
if (e.children.length) break;
|
|
495
|
-
case
|
|
496
|
-
case
|
|
495
|
+
case yo:
|
|
496
|
+
case vr:
|
|
497
497
|
return e.return = e.return || e.value;
|
|
498
|
-
case
|
|
498
|
+
case yn:
|
|
499
499
|
return "";
|
|
500
|
-
case
|
|
501
|
-
return e.return = e.value + "{" + Pt(e.children,
|
|
500
|
+
case vn:
|
|
501
|
+
return e.return = e.value + "{" + Pt(e.children, n) + "}";
|
|
502
502
|
case Lt:
|
|
503
503
|
if (!ie(e.value = e.props.join(","))) return "";
|
|
504
504
|
}
|
|
505
|
-
return ie(
|
|
505
|
+
return ie(r = Pt(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
var t =
|
|
509
|
-
return function(
|
|
507
|
+
function No(e) {
|
|
508
|
+
var t = Tn(e);
|
|
509
|
+
return function(r, n, o, i) {
|
|
510
510
|
for (var s = "", d = 0; d < t; d++)
|
|
511
|
-
s += e[d](
|
|
511
|
+
s += e[d](r, n, o, i) || "";
|
|
512
512
|
return s;
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function $o(e) {
|
|
516
516
|
return function(t) {
|
|
517
517
|
t.root || (t = t.return) && e(t);
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Do(e, t, r, n) {
|
|
521
521
|
if (e.length > -1 && !e.return)
|
|
522
522
|
switch (e.type) {
|
|
523
|
-
case En:
|
|
524
|
-
e.return = xr(e.value, e.length, n);
|
|
525
|
-
return;
|
|
526
523
|
case vr:
|
|
527
|
-
return
|
|
524
|
+
e.return = xn(e.value, e.length, r);
|
|
525
|
+
return;
|
|
526
|
+
case vn:
|
|
527
|
+
return Pt([ye(e, { value: g(e.value, "@", "@" + C) })], n);
|
|
528
528
|
case Lt:
|
|
529
529
|
if (e.length)
|
|
530
|
-
return
|
|
531
|
-
switch (me(o,
|
|
530
|
+
return So(r = e.props, function(o) {
|
|
531
|
+
switch (me(o, n = /(::plac\w+|:read-\w+)/)) {
|
|
532
532
|
// :read-(only|write)
|
|
533
533
|
case ":read-only":
|
|
534
534
|
case ":read-write":
|
|
535
|
-
ze(ye(e, { props: [g(o, /:(read-\w+)/, ":" + ut + "$1")] })), ze(ye(e, { props: [o] })),
|
|
535
|
+
ze(ye(e, { props: [g(o, /:(read-\w+)/, ":" + ut + "$1")] })), ze(ye(e, { props: [o] })), ur(e, { props: Hr(r, n) });
|
|
536
536
|
break;
|
|
537
537
|
// :placeholder
|
|
538
538
|
case "::placeholder":
|
|
539
|
-
ze(ye(e, { props: [g(o, /:(plac\w+)/, ":" + C + "input-$1")] })), ze(ye(e, { props: [g(o, /:(plac\w+)/, ":" + ut + "$1")] })), ze(ye(e, { props: [g(o, /:(plac\w+)/, k + "input-$1")] })), ze(ye(e, { props: [o] })),
|
|
539
|
+
ze(ye(e, { props: [g(o, /:(plac\w+)/, ":" + C + "input-$1")] })), ze(ye(e, { props: [g(o, /:(plac\w+)/, ":" + ut + "$1")] })), ze(ye(e, { props: [g(o, /:(plac\w+)/, k + "input-$1")] })), ze(ye(e, { props: [o] })), ur(e, { props: Hr(r, n) });
|
|
540
540
|
break;
|
|
541
541
|
}
|
|
542
542
|
return "";
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
var
|
|
546
|
+
var Lo = {
|
|
547
547
|
animationIterationCount: 1,
|
|
548
548
|
aspectRatio: 1,
|
|
549
549
|
borderImageOutset: 1,
|
|
@@ -591,58 +591,58 @@ var $o = {
|
|
|
591
591
|
strokeMiterlimit: 1,
|
|
592
592
|
strokeOpacity: 1,
|
|
593
593
|
strokeWidth: 1
|
|
594
|
-
}, Ge = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
|
|
595
|
-
`, Nt = typeof window < "u" && typeof document < "u",
|
|
596
|
-
function
|
|
597
|
-
return
|
|
594
|
+
}, Ge = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Cn = "active", An = "data-styled-version", Bt = "6.1.19", Sr = `/*!sc*/
|
|
595
|
+
`, Nt = typeof window < "u" && typeof document < "u", Mo = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" && process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY), Ut = Object.freeze([]), je = Object.freeze({});
|
|
596
|
+
function Fo(e, t, r) {
|
|
597
|
+
return r === void 0 && (r = je), e.theme !== r.theme && e.theme || t || r.theme;
|
|
598
598
|
}
|
|
599
|
-
var
|
|
600
|
-
function
|
|
601
|
-
return e.replace(
|
|
599
|
+
var _n = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), zo = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Bo = /(^-|-$)/g;
|
|
600
|
+
function jr(e) {
|
|
601
|
+
return e.replace(zo, "-").replace(Bo, "");
|
|
602
602
|
}
|
|
603
|
-
var
|
|
603
|
+
var Uo = /(a)(d)/gi, Et = 52, Yr = function(e) {
|
|
604
604
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
605
605
|
};
|
|
606
|
-
function
|
|
607
|
-
var t,
|
|
608
|
-
for (t = Math.abs(e); t > Et; t = t / Et | 0)
|
|
609
|
-
return (
|
|
606
|
+
function mr(e) {
|
|
607
|
+
var t, r = "";
|
|
608
|
+
for (t = Math.abs(e); t > Et; t = t / Et | 0) r = Yr(t % Et) + r;
|
|
609
|
+
return (Yr(t % Et) + r).replace(Uo, "$1-$2");
|
|
610
610
|
}
|
|
611
|
-
var
|
|
612
|
-
for (var
|
|
611
|
+
var tr, In = 5381, Be = function(e, t) {
|
|
612
|
+
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
613
613
|
return e;
|
|
614
|
-
},
|
|
615
|
-
return Be(
|
|
614
|
+
}, Rn = function(e) {
|
|
615
|
+
return Be(In, e);
|
|
616
616
|
};
|
|
617
|
-
function
|
|
618
|
-
return
|
|
617
|
+
function Wo(e) {
|
|
618
|
+
return mr(Rn(e) >>> 0);
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function Ho(e) {
|
|
621
621
|
return e.displayName || e.name || "Component";
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function rr(e) {
|
|
624
624
|
return typeof e == "string" && !0;
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
function
|
|
628
|
-
return ("type" in (t = e) && t.type.$$typeof) ===
|
|
626
|
+
var kn = typeof Symbol == "function" && Symbol.for, On = kn ? Symbol.for("react.memo") : 60115, Vo = kn ? Symbol.for("react.forward_ref") : 60112, Go = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, jo = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Pn = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Yo = ((tr = {})[Vo] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, tr[On] = Pn, tr);
|
|
627
|
+
function qr(e) {
|
|
628
|
+
return ("type" in (t = e) && t.type.$$typeof) === On ? Pn : "$$typeof" in e ? Yo[e.$$typeof] : Go;
|
|
629
629
|
var t;
|
|
630
630
|
}
|
|
631
|
-
var
|
|
632
|
-
function
|
|
631
|
+
var qo = Object.defineProperty, Ko = Object.getOwnPropertyNames, Kr = Object.getOwnPropertySymbols, Xo = Object.getOwnPropertyDescriptor, Zo = Object.getPrototypeOf, Xr = Object.prototype;
|
|
632
|
+
function Nn(e, t, r) {
|
|
633
633
|
if (typeof t != "string") {
|
|
634
|
-
if (
|
|
635
|
-
var
|
|
636
|
-
|
|
634
|
+
if (Xr) {
|
|
635
|
+
var n = Zo(t);
|
|
636
|
+
n && n !== Xr && Nn(e, n, r);
|
|
637
637
|
}
|
|
638
|
-
var o =
|
|
639
|
-
|
|
640
|
-
for (var i =
|
|
638
|
+
var o = Ko(t);
|
|
639
|
+
Kr && (o = o.concat(Kr(t)));
|
|
640
|
+
for (var i = qr(e), s = qr(t), d = 0; d < o.length; ++d) {
|
|
641
641
|
var u = o[d];
|
|
642
|
-
if (!(u in
|
|
643
|
-
var m =
|
|
642
|
+
if (!(u in jo || r && r[u] || s && u in s || i && u in i)) {
|
|
643
|
+
var m = Xo(t, u);
|
|
644
644
|
try {
|
|
645
|
-
|
|
645
|
+
qo(e, u, m);
|
|
646
646
|
} catch {
|
|
647
647
|
}
|
|
648
648
|
}
|
|
@@ -653,127 +653,127 @@ function Nr(e, t, n) {
|
|
|
653
653
|
function Ie(e) {
|
|
654
654
|
return typeof e == "function";
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function Tr(e) {
|
|
657
657
|
return typeof e == "object" && "styledComponentId" in e;
|
|
658
658
|
}
|
|
659
659
|
function we(e, t) {
|
|
660
660
|
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Zr(e, t) {
|
|
663
663
|
if (e.length === 0) return "";
|
|
664
|
-
for (var
|
|
665
|
-
return
|
|
664
|
+
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
665
|
+
return r;
|
|
666
666
|
}
|
|
667
667
|
function dt(e) {
|
|
668
668
|
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
if (
|
|
672
|
-
if (Array.isArray(t)) for (var
|
|
673
|
-
else if (dt(t)) for (var
|
|
670
|
+
function hr(e, t, r) {
|
|
671
|
+
if (r === void 0 && (r = !1), !r && !dt(e) && !Array.isArray(e)) return t;
|
|
672
|
+
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = hr(e[n], t[n]);
|
|
673
|
+
else if (dt(t)) for (var n in t) e[n] = hr(e[n], t[n]);
|
|
674
674
|
return e;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function wr(e, t) {
|
|
677
677
|
Object.defineProperty(e, "toString", { value: t });
|
|
678
678
|
}
|
|
679
679
|
function Re(e) {
|
|
680
|
-
for (var t = [],
|
|
680
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
681
681
|
return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : ""));
|
|
682
682
|
}
|
|
683
|
-
var
|
|
683
|
+
var Qo = (function() {
|
|
684
684
|
function e(t) {
|
|
685
685
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
686
686
|
}
|
|
687
687
|
return e.prototype.indexOfGroup = function(t) {
|
|
688
|
-
for (var
|
|
689
|
-
return
|
|
690
|
-
}, e.prototype.insertRules = function(t,
|
|
688
|
+
for (var r = 0, n = 0; n < t; n++) r += this.groupSizes[n];
|
|
689
|
+
return r;
|
|
690
|
+
}, e.prototype.insertRules = function(t, r) {
|
|
691
691
|
if (t >= this.groupSizes.length) {
|
|
692
|
-
for (var
|
|
693
|
-
this.groupSizes = new Uint32Array(i), this.groupSizes.set(
|
|
692
|
+
for (var n = this.groupSizes, o = n.length, i = o; t >= i; ) if ((i <<= 1) < 0) throw Re(16, "".concat(t));
|
|
693
|
+
this.groupSizes = new Uint32Array(i), this.groupSizes.set(n), this.length = i;
|
|
694
694
|
for (var s = o; s < i; s++) this.groupSizes[s] = 0;
|
|
695
695
|
}
|
|
696
|
-
for (var d = this.indexOfGroup(t + 1), u = (s = 0,
|
|
696
|
+
for (var d = this.indexOfGroup(t + 1), u = (s = 0, r.length); s < u; s++) this.tag.insertRule(d, r[s]) && (this.groupSizes[t]++, d++);
|
|
697
697
|
}, e.prototype.clearGroup = function(t) {
|
|
698
698
|
if (t < this.length) {
|
|
699
|
-
var
|
|
699
|
+
var r = this.groupSizes[t], n = this.indexOfGroup(t), o = n + r;
|
|
700
700
|
this.groupSizes[t] = 0;
|
|
701
|
-
for (var i =
|
|
701
|
+
for (var i = n; i < o; i++) this.tag.deleteRule(n);
|
|
702
702
|
}
|
|
703
703
|
}, e.prototype.getGroup = function(t) {
|
|
704
|
-
var
|
|
705
|
-
if (t >= this.length || this.groupSizes[t] === 0) return
|
|
706
|
-
for (var
|
|
707
|
-
return
|
|
704
|
+
var r = "";
|
|
705
|
+
if (t >= this.length || this.groupSizes[t] === 0) return r;
|
|
706
|
+
for (var n = this.groupSizes[t], o = this.indexOfGroup(t), i = o + n, s = o; s < i; s++) r += "".concat(this.tag.getRule(s)).concat(Sr);
|
|
707
|
+
return r;
|
|
708
708
|
}, e;
|
|
709
709
|
})(), It = /* @__PURE__ */ new Map(), $t = /* @__PURE__ */ new Map(), Rt = 1, St = function(e) {
|
|
710
710
|
if (It.has(e)) return It.get(e);
|
|
711
711
|
for (; $t.has(Rt); ) Rt++;
|
|
712
712
|
var t = Rt++;
|
|
713
713
|
return It.set(e, t), $t.set(t, e), t;
|
|
714
|
-
},
|
|
714
|
+
}, Jo = function(e, t) {
|
|
715
715
|
Rt = t + 1, It.set(e, t), $t.set(t, e);
|
|
716
|
-
},
|
|
717
|
-
for (var
|
|
718
|
-
},
|
|
719
|
-
for (var
|
|
720
|
-
var d =
|
|
716
|
+
}, ea = "style[".concat(Ge, "][").concat(An, '="').concat(Bt, '"]'), ta = new RegExp("^".concat(Ge, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ra = function(e, t, r) {
|
|
717
|
+
for (var n, o = r.split(","), i = 0, s = o.length; i < s; i++) (n = o[i]) && e.registerName(t, n);
|
|
718
|
+
}, na = function(e, t) {
|
|
719
|
+
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Sr), o = [], i = 0, s = n.length; i < s; i++) {
|
|
720
|
+
var d = n[i].trim();
|
|
721
721
|
if (d) {
|
|
722
|
-
var u = d.match(
|
|
722
|
+
var u = d.match(ta);
|
|
723
723
|
if (u) {
|
|
724
724
|
var m = 0 | parseInt(u[1], 10), p = u[2];
|
|
725
|
-
m !== 0 && (
|
|
725
|
+
m !== 0 && (Jo(p, m), ra(e, p, u[3]), e.getTag().insertRules(m, o)), o.length = 0;
|
|
726
726
|
} else o.push(d);
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
},
|
|
730
|
-
for (var t = document.querySelectorAll(
|
|
731
|
-
var o = t[
|
|
732
|
-
o && o.getAttribute(Ge) !==
|
|
729
|
+
}, Qr = function(e) {
|
|
730
|
+
for (var t = document.querySelectorAll(ea), r = 0, n = t.length; r < n; r++) {
|
|
731
|
+
var o = t[r];
|
|
732
|
+
o && o.getAttribute(Ge) !== Cn && (na(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
733
733
|
}
|
|
734
734
|
};
|
|
735
|
-
function
|
|
735
|
+
function oa() {
|
|
736
736
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
737
737
|
}
|
|
738
|
-
var $
|
|
739
|
-
var t = document.head,
|
|
738
|
+
var $n = function(e) {
|
|
739
|
+
var t = document.head, r = e || t, n = document.createElement("style"), o = (function(d) {
|
|
740
740
|
var u = Array.from(d.querySelectorAll("style[".concat(Ge, "]")));
|
|
741
741
|
return u[u.length - 1];
|
|
742
|
-
})(
|
|
743
|
-
|
|
744
|
-
var s =
|
|
745
|
-
return s &&
|
|
746
|
-
},
|
|
742
|
+
})(r), i = o !== void 0 ? o.nextSibling : null;
|
|
743
|
+
n.setAttribute(Ge, Cn), n.setAttribute(An, Bt);
|
|
744
|
+
var s = oa();
|
|
745
|
+
return s && n.setAttribute("nonce", s), r.insertBefore(n, i), n;
|
|
746
|
+
}, aa = (function() {
|
|
747
747
|
function e(t) {
|
|
748
|
-
this.element = $
|
|
749
|
-
if (
|
|
750
|
-
for (var
|
|
751
|
-
var s =
|
|
752
|
-
if (s.ownerNode ===
|
|
748
|
+
this.element = $n(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(r) {
|
|
749
|
+
if (r.sheet) return r.sheet;
|
|
750
|
+
for (var n = document.styleSheets, o = 0, i = n.length; o < i; o++) {
|
|
751
|
+
var s = n[o];
|
|
752
|
+
if (s.ownerNode === r) return s;
|
|
753
753
|
}
|
|
754
754
|
throw Re(17);
|
|
755
755
|
})(this.element), this.length = 0;
|
|
756
756
|
}
|
|
757
|
-
return e.prototype.insertRule = function(t,
|
|
757
|
+
return e.prototype.insertRule = function(t, r) {
|
|
758
758
|
try {
|
|
759
|
-
return this.sheet.insertRule(
|
|
759
|
+
return this.sheet.insertRule(r, t), this.length++, !0;
|
|
760
760
|
} catch {
|
|
761
761
|
return !1;
|
|
762
762
|
}
|
|
763
763
|
}, e.prototype.deleteRule = function(t) {
|
|
764
764
|
this.sheet.deleteRule(t), this.length--;
|
|
765
765
|
}, e.prototype.getRule = function(t) {
|
|
766
|
-
var
|
|
767
|
-
return
|
|
766
|
+
var r = this.sheet.cssRules[t];
|
|
767
|
+
return r && r.cssText ? r.cssText : "";
|
|
768
768
|
}, e;
|
|
769
|
-
})(),
|
|
769
|
+
})(), ia = (function() {
|
|
770
770
|
function e(t) {
|
|
771
|
-
this.element = $
|
|
771
|
+
this.element = $n(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
772
772
|
}
|
|
773
|
-
return e.prototype.insertRule = function(t,
|
|
773
|
+
return e.prototype.insertRule = function(t, r) {
|
|
774
774
|
if (t <= this.length && t >= 0) {
|
|
775
|
-
var
|
|
776
|
-
return this.element.insertBefore(
|
|
775
|
+
var n = document.createTextNode(r);
|
|
776
|
+
return this.element.insertBefore(n, this.nodes[t] || null), this.length++, !0;
|
|
777
777
|
}
|
|
778
778
|
return !1;
|
|
779
779
|
}, e.prototype.deleteRule = function(t) {
|
|
@@ -781,22 +781,22 @@ var $r = function(e) {
|
|
|
781
781
|
}, e.prototype.getRule = function(t) {
|
|
782
782
|
return t < this.length ? this.nodes[t].textContent : "";
|
|
783
783
|
}, e;
|
|
784
|
-
})(),
|
|
784
|
+
})(), sa = (function() {
|
|
785
785
|
function e(t) {
|
|
786
786
|
this.rules = [], this.length = 0;
|
|
787
787
|
}
|
|
788
|
-
return e.prototype.insertRule = function(t,
|
|
789
|
-
return t <= this.length && (this.rules.splice(t, 0,
|
|
788
|
+
return e.prototype.insertRule = function(t, r) {
|
|
789
|
+
return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0);
|
|
790
790
|
}, e.prototype.deleteRule = function(t) {
|
|
791
791
|
this.rules.splice(t, 1), this.length--;
|
|
792
792
|
}, e.prototype.getRule = function(t) {
|
|
793
793
|
return t < this.length ? this.rules[t] : "";
|
|
794
794
|
}, e;
|
|
795
|
-
})(),
|
|
796
|
-
function e(t,
|
|
797
|
-
t === void 0 && (t = je),
|
|
795
|
+
})(), Jr = Nt, la = { isServer: !Nt, useCSSOMInjection: !Mo }, Dn = (function() {
|
|
796
|
+
function e(t, r, n) {
|
|
797
|
+
t === void 0 && (t = je), r === void 0 && (r = {});
|
|
798
798
|
var o = this;
|
|
799
|
-
this.options = V(V({},
|
|
799
|
+
this.options = V(V({}, la), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && Nt && Jr && (Jr = !1, Qr(this)), wr(this, function() {
|
|
800
800
|
return (function(i) {
|
|
801
801
|
for (var s = i.getTag(), d = s.length, u = "", m = function(T) {
|
|
802
802
|
var w = (function(D) {
|
|
@@ -808,7 +808,7 @@ var $r = function(e) {
|
|
|
808
808
|
var $ = "".concat(Ge, ".g").concat(T, '[id="').concat(w, '"]'), G = "";
|
|
809
809
|
v !== void 0 && v.forEach(function(D) {
|
|
810
810
|
D.length > 0 && (G += "".concat(D, ","));
|
|
811
|
-
}), u += "".concat(A).concat($, '{content:"').concat(G, '"}').concat(
|
|
811
|
+
}), u += "".concat(A).concat($, '{content:"').concat(G, '"}').concat(Sr);
|
|
812
812
|
}, p = 0; p < d; p++) m(p);
|
|
813
813
|
return u;
|
|
814
814
|
})(o);
|
|
@@ -817,27 +817,27 @@ var $r = function(e) {
|
|
|
817
817
|
return e.registerId = function(t) {
|
|
818
818
|
return St(t);
|
|
819
819
|
}, e.prototype.rehydrate = function() {
|
|
820
|
-
!this.server && Nt &&
|
|
821
|
-
}, e.prototype.reconstructWithOptions = function(t,
|
|
822
|
-
return
|
|
820
|
+
!this.server && Nt && Qr(this);
|
|
821
|
+
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
822
|
+
return r === void 0 && (r = !0), new e(V(V({}, this.options), t), this.gs, r && this.names || void 0);
|
|
823
823
|
}, e.prototype.allocateGSInstance = function(t) {
|
|
824
824
|
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
825
825
|
}, e.prototype.getTag = function() {
|
|
826
|
-
return this.tag || (this.tag = (t = (function(
|
|
827
|
-
var
|
|
828
|
-
return
|
|
829
|
-
})(this.options), new
|
|
826
|
+
return this.tag || (this.tag = (t = (function(r) {
|
|
827
|
+
var n = r.useCSSOMInjection, o = r.target;
|
|
828
|
+
return r.isServer ? new sa(o) : n ? new aa(o) : new ia(o);
|
|
829
|
+
})(this.options), new Qo(t)));
|
|
830
830
|
var t;
|
|
831
|
-
}, e.prototype.hasNameForId = function(t,
|
|
832
|
-
return this.names.has(t) && this.names.get(t).has(
|
|
833
|
-
}, e.prototype.registerName = function(t,
|
|
834
|
-
if (St(t), this.names.has(t)) this.names.get(t).add(
|
|
831
|
+
}, e.prototype.hasNameForId = function(t, r) {
|
|
832
|
+
return this.names.has(t) && this.names.get(t).has(r);
|
|
833
|
+
}, e.prototype.registerName = function(t, r) {
|
|
834
|
+
if (St(t), this.names.has(t)) this.names.get(t).add(r);
|
|
835
835
|
else {
|
|
836
|
-
var
|
|
837
|
-
|
|
836
|
+
var n = /* @__PURE__ */ new Set();
|
|
837
|
+
n.add(r), this.names.set(t, n);
|
|
838
838
|
}
|
|
839
|
-
}, e.prototype.insertRules = function(t,
|
|
840
|
-
this.registerName(t,
|
|
839
|
+
}, e.prototype.insertRules = function(t, r, n) {
|
|
840
|
+
this.registerName(t, r), this.getTag().insertRules(St(t), n);
|
|
841
841
|
}, e.prototype.clearNames = function(t) {
|
|
842
842
|
this.names.has(t) && this.names.get(t).clear();
|
|
843
843
|
}, e.prototype.clearRules = function(t) {
|
|
@@ -845,153 +845,153 @@ var $r = function(e) {
|
|
|
845
845
|
}, e.prototype.clearTag = function() {
|
|
846
846
|
this.tag = void 0;
|
|
847
847
|
}, e;
|
|
848
|
-
})(),
|
|
849
|
-
function
|
|
850
|
-
return e.map(function(
|
|
851
|
-
return
|
|
852
|
-
return "".concat(t, " ").concat(
|
|
853
|
-
})), Array.isArray(
|
|
848
|
+
})(), ca = /&/g, ua = /^\s*\/\/.*$/gm;
|
|
849
|
+
function Ln(e, t) {
|
|
850
|
+
return e.map(function(r) {
|
|
851
|
+
return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(n) {
|
|
852
|
+
return "".concat(t, " ").concat(n);
|
|
853
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = Ln(r.children, t)), r;
|
|
854
854
|
});
|
|
855
855
|
}
|
|
856
|
-
function
|
|
857
|
-
var t,
|
|
858
|
-
return A.startsWith(
|
|
856
|
+
function da(e) {
|
|
857
|
+
var t, r, n, o = je, i = o.options, s = i === void 0 ? je : i, d = o.plugins, u = d === void 0 ? Ut : d, m = function(w, v, A) {
|
|
858
|
+
return A.startsWith(r) && A.endsWith(r) && A.replaceAll(r, "").length > 0 ? ".".concat(t) : w;
|
|
859
859
|
}, p = u.slice();
|
|
860
860
|
p.push(function(w) {
|
|
861
|
-
w.type === Lt && w.value.includes("&") && (w.props[0] = w.props[0].replace(
|
|
862
|
-
}), s.prefix && p.push(
|
|
861
|
+
w.type === Lt && w.value.includes("&") && (w.props[0] = w.props[0].replace(ca, r).replace(n, m));
|
|
862
|
+
}), s.prefix && p.push(Do), p.push(Po);
|
|
863
863
|
var T = function(w, v, A, $) {
|
|
864
|
-
v === void 0 && (v = ""), A === void 0 && (A = ""), $ === void 0 && ($ = "&"), t = $,
|
|
865
|
-
var G = w.replace(
|
|
866
|
-
s.namespace && (D =
|
|
864
|
+
v === void 0 && (v = ""), A === void 0 && (A = ""), $ === void 0 && ($ = "&"), t = $, r = v, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
865
|
+
var G = w.replace(ua, ""), D = ko(A || v ? "".concat(A, " ").concat(v, " { ").concat(G, " }") : G);
|
|
866
|
+
s.namespace && (D = Ln(D, s.namespace));
|
|
867
867
|
var O = [];
|
|
868
|
-
return Pt(D,
|
|
868
|
+
return Pt(D, No(p.concat($o(function(_) {
|
|
869
869
|
return O.push(_);
|
|
870
870
|
})))), O;
|
|
871
871
|
};
|
|
872
872
|
return T.hash = u.length ? u.reduce(function(w, v) {
|
|
873
873
|
return v.name || Re(15), Be(w, v.name);
|
|
874
|
-
},
|
|
874
|
+
}, In).toString() : "", T;
|
|
875
875
|
}
|
|
876
|
-
var
|
|
877
|
-
|
|
876
|
+
var fa = new Dn(), pr = da(), Mn = l.createContext({ shouldForwardProp: void 0, styleSheet: fa, stylis: pr });
|
|
877
|
+
Mn.Consumer;
|
|
878
878
|
l.createContext(void 0);
|
|
879
|
-
function
|
|
880
|
-
return
|
|
879
|
+
function en() {
|
|
880
|
+
return mo(Mn);
|
|
881
881
|
}
|
|
882
|
-
var
|
|
883
|
-
function e(t,
|
|
884
|
-
var
|
|
882
|
+
var ma = (function() {
|
|
883
|
+
function e(t, r) {
|
|
884
|
+
var n = this;
|
|
885
885
|
this.inject = function(o, i) {
|
|
886
|
-
i === void 0 && (i =
|
|
887
|
-
var s =
|
|
888
|
-
o.hasNameForId(
|
|
889
|
-
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules =
|
|
890
|
-
throw Re(12, String(
|
|
886
|
+
i === void 0 && (i = pr);
|
|
887
|
+
var s = n.name + i.hash;
|
|
888
|
+
o.hasNameForId(n.id, s) || o.insertRules(n.id, s, i(n.rules, s, "@keyframes"));
|
|
889
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, wr(this, function() {
|
|
890
|
+
throw Re(12, String(n.name));
|
|
891
891
|
});
|
|
892
892
|
}
|
|
893
893
|
return e.prototype.getName = function(t) {
|
|
894
|
-
return t === void 0 && (t =
|
|
894
|
+
return t === void 0 && (t = pr), this.name + t.hash;
|
|
895
895
|
}, e;
|
|
896
|
-
})(),
|
|
896
|
+
})(), ha = function(e) {
|
|
897
897
|
return e >= "A" && e <= "Z";
|
|
898
898
|
};
|
|
899
|
-
function
|
|
900
|
-
for (var t = "",
|
|
901
|
-
var
|
|
902
|
-
if (
|
|
903
|
-
|
|
899
|
+
function tn(e) {
|
|
900
|
+
for (var t = "", r = 0; r < e.length; r++) {
|
|
901
|
+
var n = e[r];
|
|
902
|
+
if (r === 1 && n === "-" && e[0] === "-") return e;
|
|
903
|
+
ha(n) ? t += "-" + n.toLowerCase() : t += n;
|
|
904
904
|
}
|
|
905
905
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
906
906
|
}
|
|
907
|
-
var
|
|
907
|
+
var Fn = function(e) {
|
|
908
908
|
return e == null || e === !1 || e === "";
|
|
909
|
-
},
|
|
910
|
-
var t,
|
|
909
|
+
}, zn = function(e) {
|
|
910
|
+
var t, r, n = [];
|
|
911
911
|
for (var o in e) {
|
|
912
912
|
var i = e[o];
|
|
913
|
-
e.hasOwnProperty(o) && !
|
|
913
|
+
e.hasOwnProperty(o) && !Fn(i) && (Array.isArray(i) && i.isCss || Ie(i) ? n.push("".concat(tn(o), ":"), i, ";") : dt(i) ? n.push.apply(n, Ot(Ot(["".concat(o, " {")], zn(i), !1), ["}"], !1)) : n.push("".concat(tn(o), ": ").concat((t = o, (r = i) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in Lo || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
914
914
|
}
|
|
915
|
-
return
|
|
915
|
+
return n;
|
|
916
916
|
};
|
|
917
|
-
function Ae(e, t,
|
|
918
|
-
if (
|
|
919
|
-
if (
|
|
917
|
+
function Ae(e, t, r, n) {
|
|
918
|
+
if (Fn(e)) return [];
|
|
919
|
+
if (Tr(e)) return [".".concat(e.styledComponentId)];
|
|
920
920
|
if (Ie(e)) {
|
|
921
921
|
if (!Ie(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
|
|
922
922
|
var o = e(t);
|
|
923
|
-
return Ae(o, t,
|
|
923
|
+
return Ae(o, t, r, n);
|
|
924
924
|
}
|
|
925
925
|
var i;
|
|
926
|
-
return e instanceof
|
|
927
|
-
return Ae(s, t,
|
|
926
|
+
return e instanceof ma ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : dt(e) ? zn(e) : Array.isArray(e) ? Array.prototype.concat.apply(Ut, e.map(function(s) {
|
|
927
|
+
return Ae(s, t, r, n);
|
|
928
928
|
})) : [e.toString()];
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function pa(e) {
|
|
931
931
|
for (var t = 0; t < e.length; t += 1) {
|
|
932
|
-
var
|
|
933
|
-
if (Ie(
|
|
932
|
+
var r = e[t];
|
|
933
|
+
if (Ie(r) && !Tr(r)) return !1;
|
|
934
934
|
}
|
|
935
935
|
return !0;
|
|
936
936
|
}
|
|
937
|
-
var
|
|
938
|
-
function e(t,
|
|
939
|
-
this.rules = t, this.staticRulesId = "", this.isStatic = (
|
|
937
|
+
var ga = Rn(Bt), ba = (function() {
|
|
938
|
+
function e(t, r, n) {
|
|
939
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = (n === void 0 || n.isStatic) && pa(t), this.componentId = r, this.baseHash = Be(ga, r), this.baseStyle = n, Dn.registerId(r);
|
|
940
940
|
}
|
|
941
|
-
return e.prototype.generateAndInjectStyles = function(t,
|
|
942
|
-
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t,
|
|
943
|
-
if (this.isStatic && !
|
|
941
|
+
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
942
|
+
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
943
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) o = we(o, this.staticRulesId);
|
|
944
944
|
else {
|
|
945
|
-
var i =
|
|
946
|
-
if (!
|
|
947
|
-
var d =
|
|
948
|
-
|
|
945
|
+
var i = Zr(Ae(this.rules, t, r, n)), s = mr(Be(this.baseHash, i) >>> 0);
|
|
946
|
+
if (!r.hasNameForId(this.componentId, s)) {
|
|
947
|
+
var d = n(i, ".".concat(s), void 0, this.componentId);
|
|
948
|
+
r.insertRules(this.componentId, s, d);
|
|
949
949
|
}
|
|
950
950
|
o = we(o, s), this.staticRulesId = s;
|
|
951
951
|
}
|
|
952
952
|
else {
|
|
953
|
-
for (var u = Be(this.baseHash,
|
|
953
|
+
for (var u = Be(this.baseHash, n.hash), m = "", p = 0; p < this.rules.length; p++) {
|
|
954
954
|
var T = this.rules[p];
|
|
955
955
|
if (typeof T == "string") m += T;
|
|
956
956
|
else if (T) {
|
|
957
|
-
var w =
|
|
957
|
+
var w = Zr(Ae(T, t, r, n));
|
|
958
958
|
u = Be(u, w + p), m += w;
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
if (m) {
|
|
962
|
-
var v =
|
|
963
|
-
|
|
962
|
+
var v = mr(u >>> 0);
|
|
963
|
+
r.hasNameForId(this.componentId, v) || r.insertRules(this.componentId, v, n(m, ".".concat(v), void 0, this.componentId)), o = we(o, v);
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
return o;
|
|
967
967
|
}, e;
|
|
968
968
|
})(), Dt = l.createContext(void 0);
|
|
969
969
|
Dt.Consumer;
|
|
970
|
-
function
|
|
971
|
-
var t = l.useContext(Dt),
|
|
972
|
-
return (function(
|
|
973
|
-
if (!
|
|
974
|
-
if (Ie(
|
|
975
|
-
var i =
|
|
970
|
+
function ya(e) {
|
|
971
|
+
var t = l.useContext(Dt), r = se(function() {
|
|
972
|
+
return (function(n, o) {
|
|
973
|
+
if (!n) throw Re(14);
|
|
974
|
+
if (Ie(n)) {
|
|
975
|
+
var i = n(o);
|
|
976
976
|
return i;
|
|
977
977
|
}
|
|
978
|
-
if (Array.isArray(
|
|
979
|
-
return o ? V(V({}, o),
|
|
978
|
+
if (Array.isArray(n) || typeof n != "object") throw Re(8);
|
|
979
|
+
return o ? V(V({}, o), n) : n;
|
|
980
980
|
})(e.theme, t);
|
|
981
981
|
}, [e.theme, t]);
|
|
982
|
-
return e.children ? l.createElement(Dt.Provider, { value:
|
|
983
|
-
}
|
|
984
|
-
var
|
|
985
|
-
function
|
|
986
|
-
var
|
|
987
|
-
var x = typeof b != "string" ? "sc" :
|
|
988
|
-
|
|
989
|
-
var y = "".concat(x, "-").concat(
|
|
982
|
+
return e.children ? l.createElement(Dt.Provider, { value: r }, e.children) : null;
|
|
983
|
+
}
|
|
984
|
+
var nr = {};
|
|
985
|
+
function va(e, t, r) {
|
|
986
|
+
var n = Tr(e), o = e, i = !rr(e), s = t.attrs, d = s === void 0 ? Ut : s, u = t.componentId, m = u === void 0 ? (function(b, R) {
|
|
987
|
+
var x = typeof b != "string" ? "sc" : jr(b);
|
|
988
|
+
nr[x] = (nr[x] || 0) + 1;
|
|
989
|
+
var y = "".concat(x, "-").concat(Wo(Bt + x + nr[x]));
|
|
990
990
|
return R ? "".concat(R, "-").concat(y) : y;
|
|
991
991
|
})(t.displayName, t.parentComponentId) : u, p = t.displayName, T = p === void 0 ? (function(b) {
|
|
992
|
-
return
|
|
993
|
-
})(e) : p, w = t.displayName && t.componentId ? "".concat(
|
|
994
|
-
if (
|
|
992
|
+
return rr(b) ? "styled.".concat(b) : "Styled(".concat(Ho(b), ")");
|
|
993
|
+
})(e) : p, w = t.displayName && t.componentId ? "".concat(jr(t.displayName), "-").concat(t.componentId) : t.componentId || m, v = n && o.attrs ? o.attrs.concat(d).filter(Boolean) : d, A = t.shouldForwardProp;
|
|
994
|
+
if (n && o.shouldForwardProp) {
|
|
995
995
|
var $ = o.shouldForwardProp;
|
|
996
996
|
if (t.shouldForwardProp) {
|
|
997
997
|
var G = t.shouldForwardProp;
|
|
@@ -1000,68 +1000,68 @@ function ba(e, t, n) {
|
|
|
1000
1000
|
};
|
|
1001
1001
|
} else A = $;
|
|
1002
1002
|
}
|
|
1003
|
-
var D = new
|
|
1003
|
+
var D = new ba(r, w, n ? o.componentStyle : void 0);
|
|
1004
1004
|
function O(b, R) {
|
|
1005
1005
|
return (function(x, y, pe) {
|
|
1006
|
-
var ke = x.attrs, Wt = x.componentStyle, U = x.defaultProps, Xe = x.foldedComponentIds, Ze = x.styledComponentId, Qe = x.target, Ht = l.useContext(Dt), Vt =
|
|
1007
|
-
for (var be,
|
|
1008
|
-
var Ee = Ie(be = I[Pe]) ? be(
|
|
1009
|
-
for (var j in Ee)
|
|
1006
|
+
var ke = x.attrs, Wt = x.componentStyle, U = x.defaultProps, Xe = x.foldedComponentIds, Ze = x.styledComponentId, Qe = x.target, Ht = l.useContext(Dt), Vt = en(), Je = x.shouldForwardProp || Vt.shouldForwardProp, et = Fo(y, Ht, U) || je, J = (function(I, te, ge) {
|
|
1007
|
+
for (var be, re = V(V({}, te), { className: void 0, theme: ge }), Pe = 0; Pe < I.length; Pe += 1) {
|
|
1008
|
+
var Ee = Ie(be = I[Pe]) ? be(re) : be;
|
|
1009
|
+
for (var j in Ee) re[j] = j === "className" ? we(re[j], Ee[j]) : j === "style" ? V(V({}, re[j]), Ee[j]) : Ee[j];
|
|
1010
1010
|
}
|
|
1011
|
-
return te.className && (
|
|
1011
|
+
return te.className && (re.className = we(re.className, te.className)), re;
|
|
1012
1012
|
})(ke, y, et), ve = J.as || Qe, P = {};
|
|
1013
1013
|
for (var ee in J) J[ee] === void 0 || ee[0] === "$" || ee === "as" || ee === "theme" && J.theme === et || (ee === "forwardedAs" ? P.as = J.forwardedAs : Je && !Je(ee, ve) || (P[ee] = J[ee]));
|
|
1014
1014
|
var L = (function(I, te) {
|
|
1015
|
-
var ge =
|
|
1015
|
+
var ge = en(), be = I.generateAndInjectStyles(te, ge.styleSheet, ge.stylis);
|
|
1016
1016
|
return be;
|
|
1017
1017
|
})(Wt, J), Oe = we(Xe, Ze);
|
|
1018
|
-
return L && (Oe += " " + L), J.className && (Oe += " " + J.className), P[
|
|
1018
|
+
return L && (Oe += " " + L), J.className && (Oe += " " + J.className), P[rr(ve) && !_n.has(ve) ? "class" : "className"] = Oe, pe && (P.ref = pe), fo(ve, P);
|
|
1019
1019
|
})(_, b, R);
|
|
1020
1020
|
}
|
|
1021
1021
|
O.displayName = T;
|
|
1022
1022
|
var _ = l.forwardRef(O);
|
|
1023
|
-
return _.attrs = v, _.componentStyle = D, _.displayName = T, _.shouldForwardProp = A, _.foldedComponentIds =
|
|
1023
|
+
return _.attrs = v, _.componentStyle = D, _.displayName = T, _.shouldForwardProp = A, _.foldedComponentIds = n ? we(o.foldedComponentIds, o.styledComponentId) : "", _.styledComponentId = w, _.target = n ? o.target : e, Object.defineProperty(_, "defaultProps", { get: function() {
|
|
1024
1024
|
return this._foldedDefaultProps;
|
|
1025
1025
|
}, set: function(b) {
|
|
1026
|
-
this._foldedDefaultProps =
|
|
1026
|
+
this._foldedDefaultProps = n ? (function(R) {
|
|
1027
1027
|
for (var x = [], y = 1; y < arguments.length; y++) x[y - 1] = arguments[y];
|
|
1028
|
-
for (var pe = 0, ke = x; pe < ke.length; pe++)
|
|
1028
|
+
for (var pe = 0, ke = x; pe < ke.length; pe++) hr(R, ke[pe], !0);
|
|
1029
1029
|
return R;
|
|
1030
1030
|
})({}, o.defaultProps, b) : b;
|
|
1031
|
-
} }),
|
|
1031
|
+
} }), wr(_, function() {
|
|
1032
1032
|
return ".".concat(_.styledComponentId);
|
|
1033
|
-
}), i &&
|
|
1033
|
+
}), i && Nn(_, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), _;
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1036
|
-
for (var
|
|
1037
|
-
return
|
|
1035
|
+
function rn(e, t) {
|
|
1036
|
+
for (var r = [e[0]], n = 0, o = t.length; n < o; n += 1) r.push(t[n], e[n + 1]);
|
|
1037
|
+
return r;
|
|
1038
1038
|
}
|
|
1039
|
-
var
|
|
1039
|
+
var nn = function(e) {
|
|
1040
1040
|
return Object.assign(e, { isCss: !0 });
|
|
1041
1041
|
};
|
|
1042
|
-
function
|
|
1043
|
-
for (var t = [],
|
|
1044
|
-
if (Ie(e) || dt(e)) return
|
|
1045
|
-
var
|
|
1046
|
-
return t.length === 0 &&
|
|
1047
|
-
}
|
|
1048
|
-
function
|
|
1049
|
-
if (
|
|
1050
|
-
var
|
|
1042
|
+
function Ea(e) {
|
|
1043
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1044
|
+
if (Ie(e) || dt(e)) return nn(Ae(rn(Ut, Ot([e], t, !0))));
|
|
1045
|
+
var n = e;
|
|
1046
|
+
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? Ae(n) : nn(Ae(rn(n, t)));
|
|
1047
|
+
}
|
|
1048
|
+
function gr(e, t, r) {
|
|
1049
|
+
if (r === void 0 && (r = je), !t) throw Re(1, t);
|
|
1050
|
+
var n = function(o) {
|
|
1051
1051
|
for (var i = [], s = 1; s < arguments.length; s++) i[s - 1] = arguments[s];
|
|
1052
|
-
return e(t,
|
|
1052
|
+
return e(t, r, Ea.apply(void 0, Ot([o], i, !1)));
|
|
1053
1053
|
};
|
|
1054
|
-
return
|
|
1055
|
-
return
|
|
1056
|
-
},
|
|
1057
|
-
return
|
|
1058
|
-
},
|
|
1059
|
-
}
|
|
1060
|
-
var
|
|
1061
|
-
return
|
|
1062
|
-
}, S =
|
|
1063
|
-
|
|
1064
|
-
S[e] =
|
|
1054
|
+
return n.attrs = function(o) {
|
|
1055
|
+
return gr(e, t, V(V({}, r), { attrs: Array.prototype.concat(r.attrs, o).filter(Boolean) }));
|
|
1056
|
+
}, n.withConfig = function(o) {
|
|
1057
|
+
return gr(e, t, V(V({}, r), o));
|
|
1058
|
+
}, n;
|
|
1059
|
+
}
|
|
1060
|
+
var Bn = function(e) {
|
|
1061
|
+
return gr(va, e);
|
|
1062
|
+
}, S = Bn;
|
|
1063
|
+
_n.forEach(function(e) {
|
|
1064
|
+
S[e] = Bn(e);
|
|
1065
1065
|
});
|
|
1066
1066
|
const _e = {
|
|
1067
1067
|
// Main colors usually to be modified by the user
|
|
@@ -1119,14 +1119,14 @@ const _e = {
|
|
|
1119
1119
|
// radio/checkbox item element width
|
|
1120
1120
|
spacing: ".3rem",
|
|
1121
1121
|
depth: 1
|
|
1122
|
-
},
|
|
1122
|
+
}, Sa = {
|
|
1123
1123
|
selectedVariant: "primary",
|
|
1124
1124
|
getDefaultVariantOrSelected: () => "primary",
|
|
1125
1125
|
..._e
|
|
1126
|
-
},
|
|
1126
|
+
}, Un = l.createContext({
|
|
1127
1127
|
..._e,
|
|
1128
|
-
...
|
|
1129
|
-
}),
|
|
1128
|
+
...Sa
|
|
1129
|
+
}), Ta = S.div`
|
|
1130
1130
|
font-family:
|
|
1131
1131
|
ui-sans-serif,
|
|
1132
1132
|
system-ui,
|
|
@@ -1177,13 +1177,13 @@ const _e = {
|
|
|
1177
1177
|
--depth: ${(e) => e.$theme.depth};
|
|
1178
1178
|
--spacing: ${(e) => e.$theme.spacing};
|
|
1179
1179
|
--all-fields-size: ${(e) => e.$theme.allFieldsSize};
|
|
1180
|
-
`,
|
|
1180
|
+
`, wa = (e) => {
|
|
1181
1181
|
const t = e.selectedVariant ?? "primary";
|
|
1182
|
-
return l.createElement(
|
|
1182
|
+
return l.createElement(ya, {
|
|
1183
1183
|
theme: e.theme ?? _e,
|
|
1184
|
-
children: l.createElement(
|
|
1184
|
+
children: l.createElement(Ta, {
|
|
1185
1185
|
$theme: e.theme ?? _e,
|
|
1186
|
-
children: l.createElement(
|
|
1186
|
+
children: l.createElement(Un.Provider, {
|
|
1187
1187
|
value: {
|
|
1188
1188
|
selectedVariant: t,
|
|
1189
1189
|
getDefaultVariantOrSelected: () => t,
|
|
@@ -1193,17 +1193,17 @@ const _e = {
|
|
|
1193
1193
|
})
|
|
1194
1194
|
})
|
|
1195
1195
|
});
|
|
1196
|
-
},
|
|
1197
|
-
const { getDefaultVariantOrSelected: t } =
|
|
1198
|
-
return _e[e ??
|
|
1199
|
-
},
|
|
1200
|
-
const { getDefaultVariantOrSelected: t } =
|
|
1201
|
-
return _e[
|
|
1202
|
-
},
|
|
1203
|
-
const e = "http://localhost:4000/external", t = async (
|
|
1204
|
-
const
|
|
1205
|
-
if (!
|
|
1206
|
-
switch (
|
|
1196
|
+
}, Wn = () => l.useContext(Un), he = (e) => {
|
|
1197
|
+
const { getDefaultVariantOrSelected: t } = Wn(), r = t();
|
|
1198
|
+
return _e[e ?? r];
|
|
1199
|
+
}, Hn = (e) => {
|
|
1200
|
+
const { getDefaultVariantOrSelected: t } = Wn(), r = t(), n = e ? `${e}Content` : `${r}Content`;
|
|
1201
|
+
return _e[n];
|
|
1202
|
+
}, xa = () => {
|
|
1203
|
+
const e = "http://localhost:4000/external", t = async (r) => {
|
|
1204
|
+
const n = await r;
|
|
1205
|
+
if (!n.ok)
|
|
1206
|
+
switch (n.status) {
|
|
1207
1207
|
case 404:
|
|
1208
1208
|
throw new Error("Not found");
|
|
1209
1209
|
case 400:
|
|
@@ -1211,16 +1211,16 @@ const _e = {
|
|
|
1211
1211
|
default:
|
|
1212
1212
|
throw new Error("Unknown error");
|
|
1213
1213
|
}
|
|
1214
|
-
return (await
|
|
1214
|
+
return (await r).json();
|
|
1215
1215
|
};
|
|
1216
1216
|
return {
|
|
1217
|
-
post: async (
|
|
1217
|
+
post: async (r, n, o) => {
|
|
1218
1218
|
var i;
|
|
1219
1219
|
try {
|
|
1220
1220
|
return t(
|
|
1221
|
-
fetch(`${e}${
|
|
1221
|
+
fetch(`${e}${r}`, {
|
|
1222
1222
|
method: "POST",
|
|
1223
|
-
body: JSON.stringify(
|
|
1223
|
+
body: JSON.stringify(n),
|
|
1224
1224
|
signal: ((i = o == null ? void 0 : o.abortController) == null ? void 0 : i.signal) ?? null,
|
|
1225
1225
|
headers: {
|
|
1226
1226
|
"Content-Type": "application/json",
|
|
@@ -1232,16 +1232,16 @@ const _e = {
|
|
|
1232
1232
|
throw console.log(s), s;
|
|
1233
1233
|
}
|
|
1234
1234
|
},
|
|
1235
|
-
get: async (
|
|
1235
|
+
get: async (r, n) => {
|
|
1236
1236
|
var o;
|
|
1237
1237
|
try {
|
|
1238
1238
|
return t(
|
|
1239
|
-
fetch(`${e}${
|
|
1239
|
+
fetch(`${e}${r}`, {
|
|
1240
1240
|
method: "GET",
|
|
1241
|
-
signal: ((o =
|
|
1241
|
+
signal: ((o = n == null ? void 0 : n.abortController) == null ? void 0 : o.signal) ?? null,
|
|
1242
1242
|
headers: {
|
|
1243
1243
|
"Content-Type": "application/json",
|
|
1244
|
-
...(
|
|
1244
|
+
...(n == null ? void 0 : n.headers) ?? {}
|
|
1245
1245
|
}
|
|
1246
1246
|
})
|
|
1247
1247
|
);
|
|
@@ -1250,7 +1250,7 @@ const _e = {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
1252
|
};
|
|
1253
|
-
},
|
|
1253
|
+
}, on = {
|
|
1254
1254
|
meta: { name: "asd" },
|
|
1255
1255
|
steps: [
|
|
1256
1256
|
{
|
|
@@ -1403,8 +1403,8 @@ const _e = {
|
|
|
1403
1403
|
]
|
|
1404
1404
|
}
|
|
1405
1405
|
]
|
|
1406
|
-
},
|
|
1407
|
-
|
|
1406
|
+
}, Ca = (e, t) => new Promise((r) => {
|
|
1407
|
+
r({
|
|
1408
1408
|
id: "",
|
|
1409
1409
|
domainId: "",
|
|
1410
1410
|
attributes: {
|
|
@@ -1430,7 +1430,7 @@ const _e = {
|
|
|
1430
1430
|
bottom: -20,
|
|
1431
1431
|
right: 0
|
|
1432
1432
|
},
|
|
1433
|
-
form:
|
|
1433
|
+
form: on
|
|
1434
1434
|
},
|
|
1435
1435
|
inlineForm: {
|
|
1436
1436
|
meta: {
|
|
@@ -1443,19 +1443,19 @@ const _e = {
|
|
|
1443
1443
|
submitButtonText: "Submit",
|
|
1444
1444
|
formTitle: "We are looking forward to hear from you!"
|
|
1445
1445
|
},
|
|
1446
|
-
form:
|
|
1446
|
+
form: on
|
|
1447
1447
|
}
|
|
1448
1448
|
});
|
|
1449
|
-
}),
|
|
1450
|
-
const [t,
|
|
1449
|
+
}), Aa = (e) => {
|
|
1450
|
+
const [t, r] = Ue(), [n, o] = Ue(!0), [i, s] = Ue(null);
|
|
1451
1451
|
return We(() => {
|
|
1452
1452
|
const d = new AbortController();
|
|
1453
|
-
return o(!0), e(d).then(
|
|
1453
|
+
return o(!0), e(d).then(r).catch(s).finally(() => o(!1)), () => {
|
|
1454
1454
|
d.abort();
|
|
1455
1455
|
};
|
|
1456
|
-
}, []), { data: t, loading:
|
|
1456
|
+
}, []), { data: t, loading: n, error: i };
|
|
1457
1457
|
}, Ye = S.button((e) => {
|
|
1458
|
-
const t = he(),
|
|
1458
|
+
const t = he(), r = Hn(), o = !e.$outlined ? t : "#fff", i = e.$outlined ? t : r, s = e.$outlined ? i : o, d = `calc(${e.theme.sizeField} * 10)`;
|
|
1459
1459
|
return {
|
|
1460
1460
|
borderRadius: e.theme.radiusField,
|
|
1461
1461
|
borderColor: e.disabled ? "#cfcfcf" : s,
|
|
@@ -1489,7 +1489,7 @@ const _e = {
|
|
|
1489
1489
|
paddingInline: "0.7rem"
|
|
1490
1490
|
}
|
|
1491
1491
|
};
|
|
1492
|
-
}),
|
|
1492
|
+
}), _a = S.div`
|
|
1493
1493
|
visibility: ${(e) => e.$isVisible && e.$height ? "visible" : "hidden"};
|
|
1494
1494
|
opacity: ${(e) => e.$isVisible ? 1 : 0};
|
|
1495
1495
|
display: flex;
|
|
@@ -1508,17 +1508,17 @@ const _e = {
|
|
|
1508
1508
|
height: ${(e) => e.$isVisible ? "auto" : "0"};
|
|
1509
1509
|
width: ${(e) => e.$isVisible ? "auto" : "0"};
|
|
1510
1510
|
}
|
|
1511
|
-
`,
|
|
1512
|
-
const t =
|
|
1511
|
+
`, Vn = (e) => {
|
|
1512
|
+
const t = bn(null);
|
|
1513
1513
|
return We(() => {
|
|
1514
1514
|
t.current && e.onSetMaxHeight(t.current.clientHeight);
|
|
1515
|
-
}, [t]), l.createElement(
|
|
1515
|
+
}, [t]), l.createElement(_a, {
|
|
1516
1516
|
ref: t,
|
|
1517
1517
|
$height: e.height,
|
|
1518
1518
|
$isVisible: e.isVisible,
|
|
1519
1519
|
children: e.children
|
|
1520
1520
|
});
|
|
1521
|
-
},
|
|
1521
|
+
}, Ia = S.ul`
|
|
1522
1522
|
counter-reset: step;
|
|
1523
1523
|
grid-auto-columns: 1fr;
|
|
1524
1524
|
grid-auto-flow: column;
|
|
@@ -1527,11 +1527,11 @@ const _e = {
|
|
|
1527
1527
|
@media (max-width: 900px) {
|
|
1528
1528
|
display: none;
|
|
1529
1529
|
}
|
|
1530
|
-
`,
|
|
1531
|
-
const t = he(e.colorVariant),
|
|
1530
|
+
`, Ra = S.li((e) => {
|
|
1531
|
+
const t = he(e.colorVariant), r = Hn(e.colorVariant), n = e.shouldBeFilled ? t : "var(--color-base-300)", o = e.shouldBeFilled ? r : "var(--color-base-content)";
|
|
1532
1532
|
return {
|
|
1533
1533
|
textAlign: "center",
|
|
1534
|
-
"--step-bg":
|
|
1534
|
+
"--step-bg": n,
|
|
1535
1535
|
"--step-fg": o,
|
|
1536
1536
|
gridTemplateRows: "40px 1fr",
|
|
1537
1537
|
gridTemplateColumns: "auto",
|
|
@@ -1569,18 +1569,18 @@ const _e = {
|
|
|
1569
1569
|
position: "relative"
|
|
1570
1570
|
}
|
|
1571
1571
|
};
|
|
1572
|
-
}),
|
|
1572
|
+
}), Gn = (e) => (console.log("props.currentStepIndex", e.currentStepIndex), l.createElement(Ia, {
|
|
1573
1573
|
children: [
|
|
1574
1574
|
e.steps.map(
|
|
1575
|
-
(t,
|
|
1575
|
+
(t, r) => l.createElement(Ra, {
|
|
1576
1576
|
key: t.title,
|
|
1577
1577
|
colorVariant: e.colorVariant,
|
|
1578
|
-
shouldBeFilled: e.currentStepIndex >=
|
|
1578
|
+
shouldBeFilled: e.currentStepIndex >= r,
|
|
1579
1579
|
children: t.title
|
|
1580
1580
|
})
|
|
1581
1581
|
)
|
|
1582
1582
|
]
|
|
1583
|
-
})),
|
|
1583
|
+
})), ka = {
|
|
1584
1584
|
title: {
|
|
1585
1585
|
marginTop: "0",
|
|
1586
1586
|
marginBottom: ".888889em",
|
|
@@ -1612,15 +1612,15 @@ const _e = {
|
|
|
1612
1612
|
marginBottom: "1.25em",
|
|
1613
1613
|
fontSize: "1rem"
|
|
1614
1614
|
}
|
|
1615
|
-
},
|
|
1616
|
-
...
|
|
1615
|
+
}, Oa = S.div((e) => ({
|
|
1616
|
+
...ka[e.$variant ?? "paragraph"],
|
|
1617
1617
|
color: e.theme.baseContent,
|
|
1618
1618
|
...e.$linear ? { margin: "0" } : {}
|
|
1619
|
-
})), le = (e) => l.createElement(
|
|
1619
|
+
})), le = (e) => l.createElement(Oa, {
|
|
1620
1620
|
$variant: e.variant,
|
|
1621
1621
|
$linear: e.linear,
|
|
1622
1622
|
children: e.children
|
|
1623
|
-
}),
|
|
1623
|
+
}), Pa = (e) => {
|
|
1624
1624
|
switch (e) {
|
|
1625
1625
|
case "textarea":
|
|
1626
1626
|
return "";
|
|
@@ -1639,7 +1639,7 @@ const _e = {
|
|
|
1639
1639
|
default:
|
|
1640
1640
|
return null;
|
|
1641
1641
|
}
|
|
1642
|
-
},
|
|
1642
|
+
}, jn = (e) => {
|
|
1643
1643
|
const t = se(
|
|
1644
1644
|
() => e.form.steps.reduce(
|
|
1645
1645
|
(s, d, u) => (s.validationsPerStep[u] = {}, s.steps = [
|
|
@@ -1653,7 +1653,7 @@ const _e = {
|
|
|
1653
1653
|
validations: m.validations
|
|
1654
1654
|
}, s.state = {
|
|
1655
1655
|
...s.state,
|
|
1656
|
-
[p]:
|
|
1656
|
+
[p]: Pa(m.type)
|
|
1657
1657
|
}, {
|
|
1658
1658
|
dataField: p,
|
|
1659
1659
|
...m
|
|
@@ -1671,41 +1671,41 @@ const _e = {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
),
|
|
1673
1673
|
[e.form]
|
|
1674
|
-
), [
|
|
1674
|
+
), [r, n] = Ue(t.state), o = xe(
|
|
1675
1675
|
(s, d) => {
|
|
1676
|
-
s !== null &&
|
|
1676
|
+
s !== null && n((u) => ({
|
|
1677
1677
|
...u,
|
|
1678
1678
|
[s]: d
|
|
1679
1679
|
}));
|
|
1680
1680
|
},
|
|
1681
|
-
[r]
|
|
1682
|
-
), i = xe(
|
|
1683
|
-
(s) => s ? n[s] : null,
|
|
1684
1681
|
[n]
|
|
1682
|
+
), i = xe(
|
|
1683
|
+
(s) => s ? r[s] : null,
|
|
1684
|
+
[r]
|
|
1685
1685
|
);
|
|
1686
1686
|
return {
|
|
1687
1687
|
steps: t.steps,
|
|
1688
1688
|
validationsPerStep: t.validationsPerStep,
|
|
1689
|
-
state:
|
|
1689
|
+
state: r,
|
|
1690
1690
|
setStateByKey: o,
|
|
1691
1691
|
getStateByKey: i
|
|
1692
1692
|
};
|
|
1693
|
-
},
|
|
1693
|
+
}, Na = xa(), $a = (e, t) => Na.post("/feedback-receiver", e, t);
|
|
1694
1694
|
/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */
|
|
1695
1695
|
const {
|
|
1696
|
-
entries:
|
|
1697
|
-
setPrototypeOf:
|
|
1698
|
-
isFrozen:
|
|
1699
|
-
getPrototypeOf:
|
|
1700
|
-
getOwnPropertyDescriptor:
|
|
1696
|
+
entries: Yn,
|
|
1697
|
+
setPrototypeOf: an,
|
|
1698
|
+
isFrozen: Da,
|
|
1699
|
+
getPrototypeOf: La,
|
|
1700
|
+
getOwnPropertyDescriptor: Ma
|
|
1701
1701
|
} = Object;
|
|
1702
1702
|
let {
|
|
1703
1703
|
freeze: q,
|
|
1704
1704
|
seal: Q,
|
|
1705
|
-
create:
|
|
1705
|
+
create: qn
|
|
1706
1706
|
} = Object, {
|
|
1707
|
-
apply:
|
|
1708
|
-
construct:
|
|
1707
|
+
apply: br,
|
|
1708
|
+
construct: yr
|
|
1709
1709
|
} = typeof Reflect < "u" && Reflect;
|
|
1710
1710
|
q || (q = function(t) {
|
|
1711
1711
|
return t;
|
|
@@ -1713,92 +1713,92 @@ q || (q = function(t) {
|
|
|
1713
1713
|
Q || (Q = function(t) {
|
|
1714
1714
|
return t;
|
|
1715
1715
|
});
|
|
1716
|
-
|
|
1717
|
-
for (var
|
|
1716
|
+
br || (br = function(t, r) {
|
|
1717
|
+
for (var n = arguments.length, o = new Array(n > 2 ? n - 2 : 0), i = 2; i < n; i++)
|
|
1718
1718
|
o[i - 2] = arguments[i];
|
|
1719
|
-
return t.apply(
|
|
1719
|
+
return t.apply(r, o);
|
|
1720
1720
|
});
|
|
1721
|
-
|
|
1722
|
-
for (var
|
|
1723
|
-
|
|
1724
|
-
return new t(...
|
|
1721
|
+
yr || (yr = function(t) {
|
|
1722
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
|
1723
|
+
n[o - 1] = arguments[o];
|
|
1724
|
+
return new t(...n);
|
|
1725
1725
|
});
|
|
1726
|
-
const Tt = K(Array.prototype.forEach),
|
|
1726
|
+
const Tt = K(Array.prototype.forEach), Fa = K(Array.prototype.lastIndexOf), sn = K(Array.prototype.pop), nt = K(Array.prototype.push), za = K(Array.prototype.splice), kt = K(String.prototype.toLowerCase), or = K(String.prototype.toString), ar = K(String.prototype.match), ot = K(String.prototype.replace), Ba = K(String.prototype.indexOf), Ua = K(String.prototype.trim), ne = K(Object.prototype.hasOwnProperty), Y = K(RegExp.prototype.test), at = Wa(TypeError);
|
|
1727
1727
|
function K(e) {
|
|
1728
1728
|
return function(t) {
|
|
1729
1729
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
1730
|
-
for (var
|
|
1731
|
-
|
|
1732
|
-
return
|
|
1730
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
|
|
1731
|
+
n[o - 1] = arguments[o];
|
|
1732
|
+
return br(e, t, n);
|
|
1733
1733
|
};
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function Wa(e) {
|
|
1736
1736
|
return function() {
|
|
1737
|
-
for (var t = arguments.length,
|
|
1738
|
-
n
|
|
1739
|
-
return
|
|
1737
|
+
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
1738
|
+
r[n] = arguments[n];
|
|
1739
|
+
return yr(e, r);
|
|
1740
1740
|
};
|
|
1741
1741
|
}
|
|
1742
1742
|
function E(e, t) {
|
|
1743
|
-
let
|
|
1744
|
-
|
|
1745
|
-
let
|
|
1746
|
-
for (;
|
|
1747
|
-
let o = t[
|
|
1743
|
+
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : kt;
|
|
1744
|
+
an && an(e, null);
|
|
1745
|
+
let n = t.length;
|
|
1746
|
+
for (; n--; ) {
|
|
1747
|
+
let o = t[n];
|
|
1748
1748
|
if (typeof o == "string") {
|
|
1749
|
-
const i =
|
|
1750
|
-
i !== o && (
|
|
1749
|
+
const i = r(o);
|
|
1750
|
+
i !== o && (Da(t) || (t[n] = i), o = i);
|
|
1751
1751
|
}
|
|
1752
1752
|
e[o] = !0;
|
|
1753
1753
|
}
|
|
1754
1754
|
return e;
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function Ha(e) {
|
|
1757
1757
|
for (let t = 0; t < e.length; t++)
|
|
1758
|
-
|
|
1758
|
+
ne(e, t) || (e[t] = null);
|
|
1759
1759
|
return e;
|
|
1760
1760
|
}
|
|
1761
1761
|
function fe(e) {
|
|
1762
|
-
const t =
|
|
1763
|
-
for (const [
|
|
1764
|
-
|
|
1762
|
+
const t = qn(null);
|
|
1763
|
+
for (const [r, n] of Yn(e))
|
|
1764
|
+
ne(e, r) && (Array.isArray(n) ? t[r] = Ha(n) : n && typeof n == "object" && n.constructor === Object ? t[r] = fe(n) : t[r] = n);
|
|
1765
1765
|
return t;
|
|
1766
1766
|
}
|
|
1767
1767
|
function it(e, t) {
|
|
1768
1768
|
for (; e !== null; ) {
|
|
1769
|
-
const
|
|
1770
|
-
if (
|
|
1771
|
-
if (
|
|
1772
|
-
return K(
|
|
1773
|
-
if (typeof
|
|
1774
|
-
return K(
|
|
1769
|
+
const n = Ma(e, t);
|
|
1770
|
+
if (n) {
|
|
1771
|
+
if (n.get)
|
|
1772
|
+
return K(n.get);
|
|
1773
|
+
if (typeof n.value == "function")
|
|
1774
|
+
return K(n.value);
|
|
1775
1775
|
}
|
|
1776
|
-
e =
|
|
1776
|
+
e = La(e);
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1778
|
+
function r() {
|
|
1779
1779
|
return null;
|
|
1780
1780
|
}
|
|
1781
|
-
return
|
|
1781
|
+
return r;
|
|
1782
1782
|
}
|
|
1783
|
-
const
|
|
1783
|
+
const ln = q(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ir = q(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "slot", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), sr = q(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Va = q(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), lr = q(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ga = q(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), cn = q(["#text"]), un = q(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), cr = q(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), dn = q(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), wt = q(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ja = Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ya = Q(/<%[\w\W]*|[\w\W]*%>/gm), qa = Q(/\$\{[\w\W]*/gm), Ka = Q(/^data-[\-\w.\u00B7-\uFFFF]+$/), Xa = Q(/^aria-[\-\w]+$/), Kn = Q(
|
|
1784
1784
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
1785
1785
|
// eslint-disable-line no-useless-escape
|
|
1786
|
-
),
|
|
1786
|
+
), Za = Q(/^(?:\w+script|data):/i), Qa = Q(
|
|
1787
1787
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
1788
1788
|
// eslint-disable-line no-control-regex
|
|
1789
|
-
),
|
|
1790
|
-
var
|
|
1789
|
+
), Xn = Q(/^html$/i), Ja = Q(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
1790
|
+
var fn = /* @__PURE__ */ Object.freeze({
|
|
1791
1791
|
__proto__: null,
|
|
1792
|
-
ARIA_ATTR:
|
|
1793
|
-
ATTR_WHITESPACE:
|
|
1794
|
-
CUSTOM_ELEMENT:
|
|
1795
|
-
DATA_ATTR:
|
|
1796
|
-
DOCTYPE_NAME:
|
|
1797
|
-
ERB_EXPR:
|
|
1798
|
-
IS_ALLOWED_URI:
|
|
1799
|
-
IS_SCRIPT_OR_DATA:
|
|
1800
|
-
MUSTACHE_EXPR:
|
|
1801
|
-
TMPLIT_EXPR:
|
|
1792
|
+
ARIA_ATTR: Xa,
|
|
1793
|
+
ATTR_WHITESPACE: Qa,
|
|
1794
|
+
CUSTOM_ELEMENT: Ja,
|
|
1795
|
+
DATA_ATTR: Ka,
|
|
1796
|
+
DOCTYPE_NAME: Xn,
|
|
1797
|
+
ERB_EXPR: Ya,
|
|
1798
|
+
IS_ALLOWED_URI: Kn,
|
|
1799
|
+
IS_SCRIPT_OR_DATA: Za,
|
|
1800
|
+
MUSTACHE_EXPR: ja,
|
|
1801
|
+
TMPLIT_EXPR: qa
|
|
1802
1802
|
});
|
|
1803
1803
|
const st = {
|
|
1804
1804
|
element: 1,
|
|
@@ -1807,15 +1807,15 @@ const st = {
|
|
|
1807
1807
|
progressingInstruction: 7,
|
|
1808
1808
|
comment: 8,
|
|
1809
1809
|
document: 9
|
|
1810
|
-
},
|
|
1810
|
+
}, ei = function() {
|
|
1811
1811
|
return typeof window > "u" ? null : window;
|
|
1812
|
-
},
|
|
1812
|
+
}, ti = function(t, r) {
|
|
1813
1813
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
1814
1814
|
return null;
|
|
1815
|
-
let
|
|
1815
|
+
let n = null;
|
|
1816
1816
|
const o = "data-tt-policy-suffix";
|
|
1817
|
-
|
|
1818
|
-
const i = "dompurify" + (
|
|
1817
|
+
r && r.hasAttribute(o) && (n = r.getAttribute(o));
|
|
1818
|
+
const i = "dompurify" + (n ? "#" + n : "");
|
|
1819
1819
|
try {
|
|
1820
1820
|
return t.createPolicy(i, {
|
|
1821
1821
|
createHTML(s) {
|
|
@@ -1828,7 +1828,7 @@ const st = {
|
|
|
1828
1828
|
} catch {
|
|
1829
1829
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
1830
1830
|
}
|
|
1831
|
-
},
|
|
1831
|
+
}, mn = function() {
|
|
1832
1832
|
return {
|
|
1833
1833
|
afterSanitizeAttributes: [],
|
|
1834
1834
|
afterSanitizeElements: [],
|
|
@@ -1841,15 +1841,15 @@ const st = {
|
|
|
1841
1841
|
uponSanitizeShadowNode: []
|
|
1842
1842
|
};
|
|
1843
1843
|
};
|
|
1844
|
-
function
|
|
1845
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
1846
|
-
const t = (h) =>
|
|
1844
|
+
function Zn() {
|
|
1845
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ei();
|
|
1846
|
+
const t = (h) => Zn(h);
|
|
1847
1847
|
if (t.version = "3.2.7", t.removed = [], !e || !e.document || e.document.nodeType !== st.document || !e.Element)
|
|
1848
1848
|
return t.isSupported = !1, t;
|
|
1849
1849
|
let {
|
|
1850
|
-
document:
|
|
1850
|
+
document: r
|
|
1851
1851
|
} = e;
|
|
1852
|
-
const
|
|
1852
|
+
const n = r, o = n.currentScript, {
|
|
1853
1853
|
DocumentFragment: i,
|
|
1854
1854
|
HTMLTemplateElement: s,
|
|
1855
1855
|
Node: d,
|
|
@@ -1861,8 +1861,8 @@ function Zr() {
|
|
|
1861
1861
|
trustedTypes: v
|
|
1862
1862
|
} = e, A = u.prototype, $ = it(A, "cloneNode"), G = it(A, "remove"), D = it(A, "nextSibling"), O = it(A, "childNodes"), _ = it(A, "parentNode");
|
|
1863
1863
|
if (typeof s == "function") {
|
|
1864
|
-
const h =
|
|
1865
|
-
h.content && h.content.ownerDocument && (
|
|
1864
|
+
const h = r.createElement("template");
|
|
1865
|
+
h.content && h.content.ownerDocument && (r = h.content.ownerDocument);
|
|
1866
1866
|
}
|
|
1867
1867
|
let b, R = "";
|
|
1868
1868
|
const {
|
|
@@ -1870,11 +1870,11 @@ function Zr() {
|
|
|
1870
1870
|
createNodeIterator: y,
|
|
1871
1871
|
createDocumentFragment: pe,
|
|
1872
1872
|
getElementsByTagName: ke
|
|
1873
|
-
} =
|
|
1873
|
+
} = r, {
|
|
1874
1874
|
importNode: Wt
|
|
1875
|
-
} =
|
|
1876
|
-
let U =
|
|
1877
|
-
t.isSupported = typeof
|
|
1875
|
+
} = n;
|
|
1876
|
+
let U = mn();
|
|
1877
|
+
t.isSupported = typeof Yn == "function" && typeof _ == "function" && x && x.createHTMLDocument !== void 0;
|
|
1878
1878
|
const {
|
|
1879
1879
|
MUSTACHE_EXPR: Xe,
|
|
1880
1880
|
ERB_EXPR: Ze,
|
|
@@ -1884,14 +1884,14 @@ function Zr() {
|
|
|
1884
1884
|
IS_SCRIPT_OR_DATA: Je,
|
|
1885
1885
|
ATTR_WHITESPACE: et,
|
|
1886
1886
|
CUSTOM_ELEMENT: J
|
|
1887
|
-
} =
|
|
1887
|
+
} = fn;
|
|
1888
1888
|
let {
|
|
1889
1889
|
IS_ALLOWED_URI: ve
|
|
1890
|
-
} =
|
|
1891
|
-
const ee = E({}, [...
|
|
1890
|
+
} = fn, P = null;
|
|
1891
|
+
const ee = E({}, [...ln, ...ir, ...sr, ...lr, ...cn]);
|
|
1892
1892
|
let L = null;
|
|
1893
|
-
const Oe = E({}, [...
|
|
1894
|
-
let I = Object.seal(
|
|
1893
|
+
const Oe = E({}, [...un, ...cr, ...dn, ...wt]);
|
|
1894
|
+
let I = Object.seal(qn(null, {
|
|
1895
1895
|
tagNameCheck: {
|
|
1896
1896
|
writable: !0,
|
|
1897
1897
|
configurable: !1,
|
|
@@ -1910,47 +1910,47 @@ function Zr() {
|
|
|
1910
1910
|
enumerable: !0,
|
|
1911
1911
|
value: !1
|
|
1912
1912
|
}
|
|
1913
|
-
})), te = null, ge = null, be = !0,
|
|
1914
|
-
const
|
|
1913
|
+
})), te = null, ge = null, be = !0, re = !0, Pe = !1, Ee = !0, j = !1, ft = !0, Se = !1, Gt = !1, jt = !1, Ne = !1, mt = !1, ht = !1, xr = !0, Cr = !1;
|
|
1914
|
+
const no = "user-content-";
|
|
1915
1915
|
let Yt = !0, tt = !1, $e = {}, De = null;
|
|
1916
|
-
const
|
|
1917
|
-
let
|
|
1918
|
-
const
|
|
1916
|
+
const Ar = E({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
1917
|
+
let _r = null;
|
|
1918
|
+
const Ir = E({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
1919
1919
|
let qt = null;
|
|
1920
|
-
const
|
|
1920
|
+
const Rr = E({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), pt = "http://www.w3.org/1998/Math/MathML", gt = "http://www.w3.org/2000/svg", ce = "http://www.w3.org/1999/xhtml";
|
|
1921
1921
|
let Le = ce, Kt = !1, Xt = null;
|
|
1922
|
-
const
|
|
1922
|
+
const oo = E({}, [pt, gt, ce], or);
|
|
1923
1923
|
let bt = E({}, ["mi", "mo", "mn", "ms", "mtext"]), yt = E({}, ["annotation-xml"]);
|
|
1924
|
-
const
|
|
1925
|
-
let
|
|
1926
|
-
const
|
|
1924
|
+
const ao = E({}, ["title", "style", "font", "a", "script"]);
|
|
1925
|
+
let rt = null;
|
|
1926
|
+
const io = ["application/xhtml+xml", "text/html"], so = "text/html";
|
|
1927
1927
|
let z = null, Me = null;
|
|
1928
|
-
const
|
|
1928
|
+
const lo = r.createElement("form"), kr = function(a) {
|
|
1929
1929
|
return a instanceof RegExp || a instanceof Function;
|
|
1930
1930
|
}, Zt = function() {
|
|
1931
1931
|
let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1932
1932
|
if (!(Me && Me === a)) {
|
|
1933
|
-
if ((!a || typeof a != "object") && (a = {}), a = fe(a),
|
|
1934
|
-
|
|
1933
|
+
if ((!a || typeof a != "object") && (a = {}), a = fe(a), rt = // eslint-disable-next-line unicorn/prefer-includes
|
|
1934
|
+
io.indexOf(a.PARSER_MEDIA_TYPE) === -1 ? so : a.PARSER_MEDIA_TYPE, z = rt === "application/xhtml+xml" ? or : kt, P = ne(a, "ALLOWED_TAGS") ? E({}, a.ALLOWED_TAGS, z) : ee, L = ne(a, "ALLOWED_ATTR") ? E({}, a.ALLOWED_ATTR, z) : Oe, Xt = ne(a, "ALLOWED_NAMESPACES") ? E({}, a.ALLOWED_NAMESPACES, or) : oo, qt = ne(a, "ADD_URI_SAFE_ATTR") ? E(fe(Rr), a.ADD_URI_SAFE_ATTR, z) : Rr, _r = ne(a, "ADD_DATA_URI_TAGS") ? E(fe(Ir), a.ADD_DATA_URI_TAGS, z) : Ir, De = ne(a, "FORBID_CONTENTS") ? E({}, a.FORBID_CONTENTS, z) : Ar, te = ne(a, "FORBID_TAGS") ? E({}, a.FORBID_TAGS, z) : fe({}), ge = ne(a, "FORBID_ATTR") ? E({}, a.FORBID_ATTR, z) : fe({}), $e = ne(a, "USE_PROFILES") ? a.USE_PROFILES : !1, be = a.ALLOW_ARIA_ATTR !== !1, re = a.ALLOW_DATA_ATTR !== !1, Pe = a.ALLOW_UNKNOWN_PROTOCOLS || !1, Ee = a.ALLOW_SELF_CLOSE_IN_ATTR !== !1, j = a.SAFE_FOR_TEMPLATES || !1, ft = a.SAFE_FOR_XML !== !1, Se = a.WHOLE_DOCUMENT || !1, Ne = a.RETURN_DOM || !1, mt = a.RETURN_DOM_FRAGMENT || !1, ht = a.RETURN_TRUSTED_TYPE || !1, jt = a.FORCE_BODY || !1, xr = a.SANITIZE_DOM !== !1, Cr = a.SANITIZE_NAMED_PROPS || !1, Yt = a.KEEP_CONTENT !== !1, tt = a.IN_PLACE || !1, ve = a.ALLOWED_URI_REGEXP || Kn, Le = a.NAMESPACE || ce, bt = a.MATHML_TEXT_INTEGRATION_POINTS || bt, yt = a.HTML_INTEGRATION_POINTS || yt, I = a.CUSTOM_ELEMENT_HANDLING || {}, a.CUSTOM_ELEMENT_HANDLING && kr(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (I.tagNameCheck = a.CUSTOM_ELEMENT_HANDLING.tagNameCheck), a.CUSTOM_ELEMENT_HANDLING && kr(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (I.attributeNameCheck = a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), a.CUSTOM_ELEMENT_HANDLING && typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), j && (re = !1), mt && (Ne = !0), $e && (P = E({}, cn), L = [], $e.html === !0 && (E(P, ln), E(L, un)), $e.svg === !0 && (E(P, ir), E(L, cr), E(L, wt)), $e.svgFilters === !0 && (E(P, sr), E(L, cr), E(L, wt)), $e.mathMl === !0 && (E(P, lr), E(L, dn), E(L, wt))), a.ADD_TAGS && (P === ee && (P = fe(P)), E(P, a.ADD_TAGS, z)), a.ADD_ATTR && (L === Oe && (L = fe(L)), E(L, a.ADD_ATTR, z)), a.ADD_URI_SAFE_ATTR && E(qt, a.ADD_URI_SAFE_ATTR, z), a.FORBID_CONTENTS && (De === Ar && (De = fe(De)), E(De, a.FORBID_CONTENTS, z)), Yt && (P["#text"] = !0), Se && E(P, ["html", "head", "body"]), P.table && (E(P, ["tbody"]), delete te.tbody), a.TRUSTED_TYPES_POLICY) {
|
|
1935
1935
|
if (typeof a.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1936
1936
|
throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1937
1937
|
if (typeof a.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
1938
1938
|
throw at('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
1939
1939
|
b = a.TRUSTED_TYPES_POLICY, R = b.createHTML("");
|
|
1940
1940
|
} else
|
|
1941
|
-
b === void 0 && (b =
|
|
1941
|
+
b === void 0 && (b = ti(v, o)), b !== null && typeof R == "string" && (R = b.createHTML(""));
|
|
1942
1942
|
q && q(a), Me = a;
|
|
1943
1943
|
}
|
|
1944
|
-
},
|
|
1944
|
+
}, Or = E({}, [...ir, ...sr, ...Va]), Pr = E({}, [...lr, ...Ga]), co = function(a) {
|
|
1945
1945
|
let c = _(a);
|
|
1946
1946
|
(!c || !c.tagName) && (c = {
|
|
1947
1947
|
namespaceURI: Le,
|
|
1948
1948
|
tagName: "template"
|
|
1949
1949
|
});
|
|
1950
1950
|
const f = kt(a.tagName), N = kt(c.tagName);
|
|
1951
|
-
return Xt[a.namespaceURI] ? a.namespaceURI === gt ? c.namespaceURI === ce ? f === "svg" : c.namespaceURI === pt ? f === "svg" && (N === "annotation-xml" || bt[N]) : !!
|
|
1951
|
+
return Xt[a.namespaceURI] ? a.namespaceURI === gt ? c.namespaceURI === ce ? f === "svg" : c.namespaceURI === pt ? f === "svg" && (N === "annotation-xml" || bt[N]) : !!Or[f] : a.namespaceURI === pt ? c.namespaceURI === ce ? f === "math" : c.namespaceURI === gt ? f === "math" && yt[N] : !!Pr[f] : a.namespaceURI === ce ? c.namespaceURI === gt && !yt[N] || c.namespaceURI === pt && !bt[N] ? !1 : !Pr[f] && (ao[f] || !Or[f]) : !!(rt === "application/xhtml+xml" && Xt[a.namespaceURI]) : !1;
|
|
1952
1952
|
}, ae = function(a) {
|
|
1953
|
-
|
|
1953
|
+
nt(t.removed, {
|
|
1954
1954
|
element: a
|
|
1955
1955
|
});
|
|
1956
1956
|
try {
|
|
@@ -1960,12 +1960,12 @@ function Zr() {
|
|
|
1960
1960
|
}
|
|
1961
1961
|
}, Te = function(a, c) {
|
|
1962
1962
|
try {
|
|
1963
|
-
|
|
1963
|
+
nt(t.removed, {
|
|
1964
1964
|
attribute: c.getAttributeNode(a),
|
|
1965
1965
|
from: c
|
|
1966
1966
|
});
|
|
1967
1967
|
} catch {
|
|
1968
|
-
|
|
1968
|
+
nt(t.removed, {
|
|
1969
1969
|
attribute: null,
|
|
1970
1970
|
from: c
|
|
1971
1971
|
});
|
|
@@ -1981,19 +1981,19 @@ function Zr() {
|
|
|
1981
1981
|
c.setAttribute(a, "");
|
|
1982
1982
|
} catch {
|
|
1983
1983
|
}
|
|
1984
|
-
},
|
|
1984
|
+
}, Nr = function(a) {
|
|
1985
1985
|
let c = null, f = null;
|
|
1986
1986
|
if (jt)
|
|
1987
1987
|
a = "<remove></remove>" + a;
|
|
1988
1988
|
else {
|
|
1989
|
-
const M =
|
|
1989
|
+
const M = ar(a, /^[\r\n\t ]+/);
|
|
1990
1990
|
f = M && M[0];
|
|
1991
1991
|
}
|
|
1992
|
-
|
|
1992
|
+
rt === "application/xhtml+xml" && Le === ce && (a = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + a + "</body></html>");
|
|
1993
1993
|
const N = b ? b.createHTML(a) : a;
|
|
1994
1994
|
if (Le === ce)
|
|
1995
1995
|
try {
|
|
1996
|
-
c = new w().parseFromString(N,
|
|
1996
|
+
c = new w().parseFromString(N, rt);
|
|
1997
1997
|
} catch {
|
|
1998
1998
|
}
|
|
1999
1999
|
if (!c || !c.documentElement) {
|
|
@@ -2004,8 +2004,8 @@ function Zr() {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
}
|
|
2006
2006
|
const H = c.body || c.documentElement;
|
|
2007
|
-
return a && f && H.insertBefore(
|
|
2008
|
-
},
|
|
2007
|
+
return a && f && H.insertBefore(r.createTextNode(f), H.childNodes[0] || null), Le === ce ? ke.call(c, Se ? "html" : "body")[0] : Se ? c.documentElement : H;
|
|
2008
|
+
}, $r = function(a) {
|
|
2009
2009
|
return y.call(
|
|
2010
2010
|
a.ownerDocument || a,
|
|
2011
2011
|
a,
|
|
@@ -2015,7 +2015,7 @@ function Zr() {
|
|
|
2015
2015
|
);
|
|
2016
2016
|
}, Qt = function(a) {
|
|
2017
2017
|
return a instanceof T && (typeof a.nodeName != "string" || typeof a.textContent != "string" || typeof a.removeChild != "function" || !(a.attributes instanceof p) || typeof a.removeAttribute != "function" || typeof a.setAttribute != "function" || typeof a.namespaceURI != "string" || typeof a.insertBefore != "function" || typeof a.hasChildNodes != "function");
|
|
2018
|
-
},
|
|
2018
|
+
}, Dr = function(a) {
|
|
2019
2019
|
return typeof d == "function" && a instanceof d;
|
|
2020
2020
|
};
|
|
2021
2021
|
function ue(h, a, c) {
|
|
@@ -2023,7 +2023,7 @@ function Zr() {
|
|
|
2023
2023
|
f.call(t, a, c, Me);
|
|
2024
2024
|
});
|
|
2025
2025
|
}
|
|
2026
|
-
const
|
|
2026
|
+
const Lr = function(a) {
|
|
2027
2027
|
let c = null;
|
|
2028
2028
|
if (ue(U.beforeSanitizeElements, a, null), Qt(a))
|
|
2029
2029
|
return ae(a), !0;
|
|
@@ -2031,10 +2031,10 @@ function Zr() {
|
|
|
2031
2031
|
if (ue(U.uponSanitizeElement, a, {
|
|
2032
2032
|
tagName: f,
|
|
2033
2033
|
allowedTags: P
|
|
2034
|
-
}), ft && a.hasChildNodes() && !
|
|
2034
|
+
}), ft && a.hasChildNodes() && !Dr(a.firstElementChild) && Y(/<[/\w!]/g, a.innerHTML) && Y(/<[/\w!]/g, a.textContent) || a.nodeType === st.progressingInstruction || ft && a.nodeType === st.comment && Y(/<[/\w]/g, a.data))
|
|
2035
2035
|
return ae(a), !0;
|
|
2036
2036
|
if (!P[f] || te[f]) {
|
|
2037
|
-
if (!te[f] &&
|
|
2037
|
+
if (!te[f] && Fr(f) && (I.tagNameCheck instanceof RegExp && Y(I.tagNameCheck, f) || I.tagNameCheck instanceof Function && I.tagNameCheck(f)))
|
|
2038
2038
|
return !1;
|
|
2039
2039
|
if (Yt && !De[f]) {
|
|
2040
2040
|
const N = _(a) || a.parentNode, H = O(a) || a.childNodes;
|
|
@@ -2048,28 +2048,28 @@ function Zr() {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
return ae(a), !0;
|
|
2050
2050
|
}
|
|
2051
|
-
return a instanceof u && !
|
|
2051
|
+
return a instanceof u && !co(a) || (f === "noscript" || f === "noembed" || f === "noframes") && Y(/<\/no(script|embed|frames)/i, a.innerHTML) ? (ae(a), !0) : (j && a.nodeType === st.text && (c = a.textContent, Tt([Xe, Ze, Qe], (N) => {
|
|
2052
2052
|
c = ot(c, N, " ");
|
|
2053
|
-
}), a.textContent !== c && (
|
|
2053
|
+
}), a.textContent !== c && (nt(t.removed, {
|
|
2054
2054
|
element: a.cloneNode()
|
|
2055
2055
|
}), a.textContent = c)), ue(U.afterSanitizeElements, a, null), !1);
|
|
2056
|
-
},
|
|
2057
|
-
if (
|
|
2056
|
+
}, Mr = function(a, c, f) {
|
|
2057
|
+
if (xr && (c === "id" || c === "name") && (f in r || f in lo))
|
|
2058
2058
|
return !1;
|
|
2059
|
-
if (!(
|
|
2059
|
+
if (!(re && !ge[c] && Y(Ht, c))) {
|
|
2060
2060
|
if (!(be && Y(Vt, c))) {
|
|
2061
2061
|
if (!L[c] || ge[c]) {
|
|
2062
2062
|
if (
|
|
2063
2063
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
2064
2064
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2065
2065
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
2066
|
-
!(
|
|
2066
|
+
!(Fr(a) && (I.tagNameCheck instanceof RegExp && Y(I.tagNameCheck, a) || I.tagNameCheck instanceof Function && I.tagNameCheck(a)) && (I.attributeNameCheck instanceof RegExp && Y(I.attributeNameCheck, c) || I.attributeNameCheck instanceof Function && I.attributeNameCheck(c, a)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
2067
2067
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2068
2068
|
c === "is" && I.allowCustomizedBuiltInElements && (I.tagNameCheck instanceof RegExp && Y(I.tagNameCheck, f) || I.tagNameCheck instanceof Function && I.tagNameCheck(f)))
|
|
2069
2069
|
) return !1;
|
|
2070
2070
|
} else if (!qt[c]) {
|
|
2071
2071
|
if (!Y(ve, ot(f, et, ""))) {
|
|
2072
|
-
if (!((c === "src" || c === "xlink:href" || c === "href") && a !== "script" &&
|
|
2072
|
+
if (!((c === "src" || c === "xlink:href" || c === "href") && a !== "script" && Ba(f, "data:") === 0 && _r[a])) {
|
|
2073
2073
|
if (!(Pe && !Y(Je, ot(f, et, "")))) {
|
|
2074
2074
|
if (f)
|
|
2075
2075
|
return !1;
|
|
@@ -2080,9 +2080,9 @@ function Zr() {
|
|
|
2080
2080
|
}
|
|
2081
2081
|
}
|
|
2082
2082
|
return !0;
|
|
2083
|
-
},
|
|
2084
|
-
return a !== "annotation-xml" &&
|
|
2085
|
-
},
|
|
2083
|
+
}, Fr = function(a) {
|
|
2084
|
+
return a !== "annotation-xml" && ar(a, J);
|
|
2085
|
+
}, zr = function(a) {
|
|
2086
2086
|
ue(U.beforeSanitizeAttributes, a, null);
|
|
2087
2087
|
const {
|
|
2088
2088
|
attributes: c
|
|
@@ -2103,12 +2103,12 @@ function Zr() {
|
|
|
2103
2103
|
namespaceURI: X,
|
|
2104
2104
|
value: de
|
|
2105
2105
|
} = H, Fe = z(M), Jt = de;
|
|
2106
|
-
let W = M === "value" ? Jt :
|
|
2107
|
-
if (f.attrName = Fe, f.attrValue = W, f.keepAttr = !0, f.forceKeepAttr = void 0, ue(U.uponSanitizeAttribute, a, f), W = f.attrValue,
|
|
2106
|
+
let W = M === "value" ? Jt : Ua(Jt);
|
|
2107
|
+
if (f.attrName = Fe, f.attrValue = W, f.keepAttr = !0, f.forceKeepAttr = void 0, ue(U.uponSanitizeAttribute, a, f), W = f.attrValue, Cr && (Fe === "id" || Fe === "name") && (Te(M, a), W = no + W), ft && Y(/((--!?|])>)|<\/(style|title|textarea)/i, W)) {
|
|
2108
2108
|
Te(M, a);
|
|
2109
2109
|
continue;
|
|
2110
2110
|
}
|
|
2111
|
-
if (Fe === "attributename" &&
|
|
2111
|
+
if (Fe === "attributename" && ar(W, "href")) {
|
|
2112
2112
|
Te(M, a);
|
|
2113
2113
|
continue;
|
|
2114
2114
|
}
|
|
@@ -2122,16 +2122,16 @@ function Zr() {
|
|
|
2122
2122
|
Te(M, a);
|
|
2123
2123
|
continue;
|
|
2124
2124
|
}
|
|
2125
|
-
j && Tt([Xe, Ze, Qe], (
|
|
2126
|
-
W = ot(W,
|
|
2125
|
+
j && Tt([Xe, Ze, Qe], (Ur) => {
|
|
2126
|
+
W = ot(W, Ur, " ");
|
|
2127
2127
|
});
|
|
2128
|
-
const
|
|
2129
|
-
if (!
|
|
2128
|
+
const Br = z(a.nodeName);
|
|
2129
|
+
if (!Mr(Br, Fe, W)) {
|
|
2130
2130
|
Te(M, a);
|
|
2131
2131
|
continue;
|
|
2132
2132
|
}
|
|
2133
2133
|
if (b && typeof v == "object" && typeof v.getAttributeType == "function" && !X)
|
|
2134
|
-
switch (v.getAttributeType(
|
|
2134
|
+
switch (v.getAttributeType(Br, Fe)) {
|
|
2135
2135
|
case "TrustedHTML": {
|
|
2136
2136
|
W = b.createHTML(W);
|
|
2137
2137
|
break;
|
|
@@ -2143,22 +2143,22 @@ function Zr() {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
if (W !== Jt)
|
|
2145
2145
|
try {
|
|
2146
|
-
X ? a.setAttributeNS(X, M, W) : a.setAttribute(M, W), Qt(a) ? ae(a) :
|
|
2146
|
+
X ? a.setAttributeNS(X, M, W) : a.setAttribute(M, W), Qt(a) ? ae(a) : sn(t.removed);
|
|
2147
2147
|
} catch {
|
|
2148
2148
|
Te(M, a);
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
2151
|
ue(U.afterSanitizeAttributes, a, null);
|
|
2152
|
-
},
|
|
2152
|
+
}, uo = function h(a) {
|
|
2153
2153
|
let c = null;
|
|
2154
|
-
const f =
|
|
2154
|
+
const f = $r(a);
|
|
2155
2155
|
for (ue(U.beforeSanitizeShadowDOM, a, null); c = f.nextNode(); )
|
|
2156
|
-
ue(U.uponSanitizeShadowNode, c, null),
|
|
2156
|
+
ue(U.uponSanitizeShadowNode, c, null), Lr(c), zr(c), c.content instanceof i && h(c.content);
|
|
2157
2157
|
ue(U.afterSanitizeShadowDOM, a, null);
|
|
2158
2158
|
};
|
|
2159
2159
|
return t.sanitize = function(h) {
|
|
2160
2160
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, c = null, f = null, N = null, H = null;
|
|
2161
|
-
if (Kt = !h, Kt && (h = "<!-->"), typeof h != "string" && !
|
|
2161
|
+
if (Kt = !h, Kt && (h = "<!-->"), typeof h != "string" && !Dr(h))
|
|
2162
2162
|
if (typeof h.toString == "function") {
|
|
2163
2163
|
if (h = h.toString(), typeof h != "string")
|
|
2164
2164
|
throw at("dirty is not a string, aborting");
|
|
@@ -2173,18 +2173,18 @@ function Zr() {
|
|
|
2173
2173
|
throw at("root node is forbidden and cannot be sanitized in-place");
|
|
2174
2174
|
}
|
|
2175
2175
|
} else if (h instanceof d)
|
|
2176
|
-
c =
|
|
2176
|
+
c = Nr("<!---->"), f = c.ownerDocument.importNode(h, !0), f.nodeType === st.element && f.nodeName === "BODY" || f.nodeName === "HTML" ? c = f : c.appendChild(f);
|
|
2177
2177
|
else {
|
|
2178
2178
|
if (!Ne && !j && !Se && // eslint-disable-next-line unicorn/prefer-includes
|
|
2179
2179
|
h.indexOf("<") === -1)
|
|
2180
2180
|
return b && ht ? b.createHTML(h) : h;
|
|
2181
|
-
if (c =
|
|
2181
|
+
if (c = Nr(h), !c)
|
|
2182
2182
|
return Ne ? null : ht ? R : "";
|
|
2183
2183
|
}
|
|
2184
2184
|
c && jt && ae(c.firstChild);
|
|
2185
|
-
const M =
|
|
2185
|
+
const M = $r(tt ? h : c);
|
|
2186
2186
|
for (; N = M.nextNode(); )
|
|
2187
|
-
|
|
2187
|
+
Lr(N), zr(N), N.content instanceof i && uo(N.content);
|
|
2188
2188
|
if (tt)
|
|
2189
2189
|
return h;
|
|
2190
2190
|
if (Ne) {
|
|
@@ -2193,10 +2193,10 @@ function Zr() {
|
|
|
2193
2193
|
H.appendChild(c.firstChild);
|
|
2194
2194
|
else
|
|
2195
2195
|
H = c;
|
|
2196
|
-
return (L.shadowroot || L.shadowrootmode) && (H = Wt.call(
|
|
2196
|
+
return (L.shadowroot || L.shadowrootmode) && (H = Wt.call(n, H, !0)), H;
|
|
2197
2197
|
}
|
|
2198
2198
|
let X = Se ? c.outerHTML : c.innerHTML;
|
|
2199
|
-
return Se && P["!doctype"] && c.ownerDocument && c.ownerDocument.doctype && c.ownerDocument.doctype.name && Y(
|
|
2199
|
+
return Se && P["!doctype"] && c.ownerDocument && c.ownerDocument.doctype && c.ownerDocument.doctype.name && Y(Xn, c.ownerDocument.doctype.name) && (X = "<!DOCTYPE " + c.ownerDocument.doctype.name + `>
|
|
2200
2200
|
` + X), j && Tt([Xe, Ze, Qe], (de) => {
|
|
2201
2201
|
X = ot(X, de, " ");
|
|
2202
2202
|
}), b && ht ? b.createHTML(X) : X;
|
|
@@ -2208,38 +2208,38 @@ function Zr() {
|
|
|
2208
2208
|
}, t.isValidAttribute = function(h, a, c) {
|
|
2209
2209
|
Me || Zt({});
|
|
2210
2210
|
const f = z(h), N = z(a);
|
|
2211
|
-
return
|
|
2211
|
+
return Mr(f, N, c);
|
|
2212
2212
|
}, t.addHook = function(h, a) {
|
|
2213
|
-
typeof a == "function" &&
|
|
2213
|
+
typeof a == "function" && nt(U[h], a);
|
|
2214
2214
|
}, t.removeHook = function(h, a) {
|
|
2215
2215
|
if (a !== void 0) {
|
|
2216
|
-
const c =
|
|
2217
|
-
return c === -1 ? void 0 :
|
|
2216
|
+
const c = Fa(U[h], a);
|
|
2217
|
+
return c === -1 ? void 0 : za(U[h], c, 1)[0];
|
|
2218
2218
|
}
|
|
2219
|
-
return
|
|
2219
|
+
return sn(U[h]);
|
|
2220
2220
|
}, t.removeHooks = function(h) {
|
|
2221
2221
|
U[h] = [];
|
|
2222
2222
|
}, t.removeAllHooks = function() {
|
|
2223
|
-
U =
|
|
2223
|
+
U = mn();
|
|
2224
2224
|
}, t;
|
|
2225
2225
|
}
|
|
2226
|
-
var
|
|
2227
|
-
const
|
|
2226
|
+
var ri = Zn();
|
|
2227
|
+
const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required && (e == null || e === "") ? "Field is required" : t.basicEmailValidation && (e == null || e === "") ? "Field should be email" : null : null, hn = (e, t) => t ? Object.keys(t).map(
|
|
2228
2228
|
(o) => {
|
|
2229
|
-
const i =
|
|
2229
|
+
const i = oi(e[o], t[o].validations);
|
|
2230
2230
|
return i ? {
|
|
2231
2231
|
field: o,
|
|
2232
2232
|
error: i
|
|
2233
2233
|
} : null;
|
|
2234
2234
|
},
|
|
2235
2235
|
{}
|
|
2236
|
-
).filter(ct) : [],
|
|
2237
|
-
const [t,
|
|
2236
|
+
).filter(ct) : [], Qn = (e) => {
|
|
2237
|
+
const [t, r] = Ue(0), [n, o] = Ue([]), i = xe(async () => {
|
|
2238
2238
|
try {
|
|
2239
|
-
await
|
|
2239
|
+
await $a({
|
|
2240
2240
|
feedbackFormId: e.formId,
|
|
2241
2241
|
link: window.location.pathname,
|
|
2242
|
-
rawHtml:
|
|
2242
|
+
rawHtml: ri.sanitize(document.getElementsByTagName("html")[0] ?? ""),
|
|
2243
2243
|
domainId: e.domainId,
|
|
2244
2244
|
data: e.state,
|
|
2245
2245
|
formType: e.formType,
|
|
@@ -2268,44 +2268,44 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2268
2268
|
console.log(u);
|
|
2269
2269
|
}
|
|
2270
2270
|
}, [e.state, e.formType]), s = xe(() => {
|
|
2271
|
-
const u =
|
|
2272
|
-
o(u), u.length || (t < e.stepsCount - 1 ?
|
|
2271
|
+
const u = hn(e.state, e.validationsPerStep[t]);
|
|
2272
|
+
o(u), u.length || (t < e.stepsCount - 1 ? r((m) => m + 1) : i());
|
|
2273
2273
|
}, [e.state, e.validationsPerStep, t, i]), d = xe(() => {
|
|
2274
|
-
t !== 0 && (o([]),
|
|
2274
|
+
t !== 0 && (o([]), r((u) => u - 1));
|
|
2275
2275
|
}, [t]);
|
|
2276
2276
|
return We(() => {
|
|
2277
2277
|
o((u) => {
|
|
2278
2278
|
if (u.length) {
|
|
2279
|
-
const m =
|
|
2279
|
+
const m = hn(e.state, e.validationsPerStep[t]);
|
|
2280
2280
|
if (m.length !== u.length) return m;
|
|
2281
2281
|
}
|
|
2282
2282
|
return u;
|
|
2283
2283
|
});
|
|
2284
|
-
}, [
|
|
2284
|
+
}, [n, e.state, t]), {
|
|
2285
2285
|
step: t,
|
|
2286
|
-
errors:
|
|
2286
|
+
errors: n,
|
|
2287
2287
|
onContinue: s,
|
|
2288
2288
|
onBack: d
|
|
2289
2289
|
};
|
|
2290
|
-
},
|
|
2290
|
+
}, ai = S.div({
|
|
2291
2291
|
marginTop: "1rem",
|
|
2292
2292
|
color: "var(--color-error)",
|
|
2293
2293
|
height: "20px"
|
|
2294
2294
|
}), Ke = ({ errors: e }) => {
|
|
2295
2295
|
var t;
|
|
2296
|
-
return l.createElement(
|
|
2297
|
-
},
|
|
2298
|
-
({ theme: e, colorVariant: t, selected:
|
|
2299
|
-
const
|
|
2296
|
+
return l.createElement(ai, { children: ((t = (e || [])[0]) == null ? void 0 : t.error) ?? null });
|
|
2297
|
+
}, ii = S.input(
|
|
2298
|
+
({ theme: e, colorVariant: t, selected: r }) => {
|
|
2299
|
+
const n = `calc(${e.sizeSelector} * 6);`, o = he(t);
|
|
2300
2300
|
return {
|
|
2301
2301
|
cursor: "pointer",
|
|
2302
2302
|
appearance: "none",
|
|
2303
2303
|
borderRadius: "var(--radius-selector)",
|
|
2304
2304
|
verticalAlign: "middle",
|
|
2305
2305
|
color: "var(--color-base-content)",
|
|
2306
|
-
width:
|
|
2306
|
+
width: n,
|
|
2307
2307
|
border: `1px solid ${o}`,
|
|
2308
|
-
height:
|
|
2308
|
+
height: n,
|
|
2309
2309
|
flexShrink: "0",
|
|
2310
2310
|
padding: ".25rem",
|
|
2311
2311
|
transition: "background-color .2s,box-shadow .2s",
|
|
@@ -2324,38 +2324,38 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2324
2324
|
transition: "clip-path .3s .1s,opacity .1s .1s,rotate .3s .1s,translate .3s .1s",
|
|
2325
2325
|
display: "block",
|
|
2326
2326
|
rotate: "45deg",
|
|
2327
|
-
...
|
|
2327
|
+
...r ? {
|
|
2328
2328
|
clipPath: "polygon(20% 100%,20% 80%,50% 80%,50% 0%,70% 0%,70% 100%)",
|
|
2329
2329
|
opacity: "1"
|
|
2330
2330
|
} : {}
|
|
2331
2331
|
}
|
|
2332
2332
|
};
|
|
2333
2333
|
}
|
|
2334
|
-
),
|
|
2334
|
+
), si = S.label((e) => ({
|
|
2335
2335
|
display: "flex",
|
|
2336
2336
|
fontWeight: e.selected ? "500" : "normal",
|
|
2337
2337
|
transition: ".2s ease-in-out",
|
|
2338
2338
|
alignItems: "center",
|
|
2339
2339
|
cursor: "pointer",
|
|
2340
2340
|
gap: "calc(var(--spacing) * 2)"
|
|
2341
|
-
})),
|
|
2341
|
+
})), li = (e) => {
|
|
2342
2342
|
const t = se(
|
|
2343
2343
|
() => `${e.id}-${e.label.replace(/\s/g, "-").toLowerCase()}`,
|
|
2344
2344
|
[]
|
|
2345
|
-
),
|
|
2345
|
+
), r = (o) => {
|
|
2346
2346
|
e.onSelect(
|
|
2347
2347
|
e.value.includes(o) ? e.value.filter((i) => i !== o) : [...e.value, o]
|
|
2348
2348
|
);
|
|
2349
|
-
},
|
|
2350
|
-
return l.createElement(
|
|
2351
|
-
selected:
|
|
2349
|
+
}, n = e.value.includes(t);
|
|
2350
|
+
return l.createElement(si, {
|
|
2351
|
+
selected: n,
|
|
2352
2352
|
children: [
|
|
2353
|
-
l.createElement(
|
|
2353
|
+
l.createElement(ii, {
|
|
2354
2354
|
id: t,
|
|
2355
2355
|
type: "checkbox",
|
|
2356
|
-
selected:
|
|
2356
|
+
selected: n,
|
|
2357
2357
|
colorVariant: e.colorVariant,
|
|
2358
|
-
onChange: () =>
|
|
2358
|
+
onChange: () => r(t),
|
|
2359
2359
|
name: e.name
|
|
2360
2360
|
}),
|
|
2361
2361
|
l.createElement(le, {
|
|
@@ -2364,7 +2364,7 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2364
2364
|
})
|
|
2365
2365
|
]
|
|
2366
2366
|
});
|
|
2367
|
-
},
|
|
2367
|
+
}, ci = S.div`
|
|
2368
2368
|
display: flex;
|
|
2369
2369
|
flex-direction: column;
|
|
2370
2370
|
width: var(--all-fields-size);
|
|
@@ -2372,33 +2372,33 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2372
2372
|
@media (max-width: 900px) {
|
|
2373
2373
|
width: 100%;
|
|
2374
2374
|
}
|
|
2375
|
-
`,
|
|
2375
|
+
`, ui = S.div`
|
|
2376
2376
|
display: flex;
|
|
2377
2377
|
gap: calc(var(--spacing) * 10);
|
|
2378
2378
|
@media (max-width: 900px) {
|
|
2379
2379
|
gap: var(--spacing);
|
|
2380
2380
|
flex-direction: column;
|
|
2381
2381
|
}
|
|
2382
|
-
`,
|
|
2383
|
-
const t = e.label.replace(/\s/g, "-").toLowerCase(),
|
|
2382
|
+
`, di = (e) => {
|
|
2383
|
+
const t = e.label.replace(/\s/g, "-").toLowerCase(), r = e.elementsPerCol || 4, n = se(() => e.options.reduce(
|
|
2384
2384
|
(o, i, s) => {
|
|
2385
2385
|
var u;
|
|
2386
|
-
return (s %
|
|
2386
|
+
return (s % r === 0 || s === 0) && o.push([]), (u = o[o.length - 1]) == null || u.push(i), o;
|
|
2387
2387
|
},
|
|
2388
2388
|
[]
|
|
2389
|
-
), [
|
|
2389
|
+
), [r, e.options]);
|
|
2390
2390
|
return l.createElement("div", {
|
|
2391
2391
|
children: [
|
|
2392
2392
|
l.createElement(le, {
|
|
2393
2393
|
children: e.label,
|
|
2394
2394
|
variant: "section"
|
|
2395
2395
|
}),
|
|
2396
|
-
l.createElement(
|
|
2397
|
-
children:
|
|
2398
|
-
(o, i) => l.createElement(
|
|
2396
|
+
l.createElement(ui, {
|
|
2397
|
+
children: n.map(
|
|
2398
|
+
(o, i) => l.createElement(ci, {
|
|
2399
2399
|
key: i,
|
|
2400
2400
|
children: o.map(
|
|
2401
|
-
(s) => l.createElement(
|
|
2401
|
+
(s) => l.createElement(li, {
|
|
2402
2402
|
onSelect: e.onChange,
|
|
2403
2403
|
colorVariant: e.colorVariant,
|
|
2404
2404
|
value: e.value,
|
|
@@ -2415,7 +2415,7 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2415
2415
|
})
|
|
2416
2416
|
]
|
|
2417
2417
|
});
|
|
2418
|
-
},
|
|
2418
|
+
}, fi = S(Ye)(() => ({
|
|
2419
2419
|
"&:not(:last-of-type):not(:first-of-type)": {
|
|
2420
2420
|
borderRadius: "0",
|
|
2421
2421
|
marginRight: "-1px",
|
|
@@ -2432,15 +2432,15 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2432
2432
|
"@media (max-width: 900px)": {
|
|
2433
2433
|
// display: 'none',
|
|
2434
2434
|
}
|
|
2435
|
-
})),
|
|
2435
|
+
})), mi = (e) => l.createElement(fi, {
|
|
2436
2436
|
onClick: e.onChange,
|
|
2437
2437
|
$outlined: !e.selected,
|
|
2438
2438
|
children: e.label
|
|
2439
|
-
}),
|
|
2439
|
+
}), pn = S("span")(({
|
|
2440
2440
|
min: e,
|
|
2441
2441
|
variant: t
|
|
2442
2442
|
}) => {
|
|
2443
|
-
const
|
|
2443
|
+
const r = t || he();
|
|
2444
2444
|
return {
|
|
2445
2445
|
position: "absolute",
|
|
2446
2446
|
left: e ? "0" : void 0,
|
|
@@ -2450,35 +2450,35 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2450
2450
|
fontWeight: "300",
|
|
2451
2451
|
transform: "translateY(100%)",
|
|
2452
2452
|
textTransform: "uppercase",
|
|
2453
|
-
color:
|
|
2453
|
+
color: r
|
|
2454
2454
|
};
|
|
2455
|
-
}),
|
|
2455
|
+
}), hi = S.div((e) => ({
|
|
2456
2456
|
verticalAlign: "middle",
|
|
2457
2457
|
display: "inline-flex",
|
|
2458
2458
|
position: "relative",
|
|
2459
2459
|
marginBottom: e.withText ? "calc(var(--spacing) * 6)" : "0"
|
|
2460
|
-
})),
|
|
2460
|
+
})), pi = (e) => l.createElement("div", {
|
|
2461
2461
|
children: [
|
|
2462
2462
|
l.createElement(le, {
|
|
2463
2463
|
children: e.label,
|
|
2464
2464
|
variant: "section"
|
|
2465
2465
|
}),
|
|
2466
|
-
l.createElement(
|
|
2466
|
+
l.createElement(hi, {
|
|
2467
2467
|
withText: e.maxText || e.minText,
|
|
2468
2468
|
children: [
|
|
2469
|
-
e.maxText ? l.createElement(
|
|
2469
|
+
e.maxText ? l.createElement(pn, {
|
|
2470
2470
|
min: !1,
|
|
2471
2471
|
children: e.maxText
|
|
2472
2472
|
}) : null,
|
|
2473
|
-
e.minText ? l.createElement(
|
|
2473
|
+
e.minText ? l.createElement(pn, {
|
|
2474
2474
|
min: !0,
|
|
2475
2475
|
children: e.minText
|
|
2476
2476
|
}) : null,
|
|
2477
|
-
Array(e.max).fill(1).map((t,
|
|
2478
|
-
onChange: () => e.onChange(
|
|
2479
|
-
selected:
|
|
2480
|
-
key: `${
|
|
2481
|
-
label: `${
|
|
2477
|
+
Array(e.max).fill(1).map((t, r) => l.createElement(mi, {
|
|
2478
|
+
onChange: () => e.onChange(r + 1),
|
|
2479
|
+
selected: r + 1 === e.value,
|
|
2480
|
+
key: `${r}`,
|
|
2481
|
+
label: `${r + 1}`
|
|
2482
2482
|
}))
|
|
2483
2483
|
]
|
|
2484
2484
|
}),
|
|
@@ -2486,11 +2486,11 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2486
2486
|
errors: e.errors
|
|
2487
2487
|
})
|
|
2488
2488
|
]
|
|
2489
|
-
}),
|
|
2490
|
-
const
|
|
2489
|
+
}), gi = S.input(({ theme: e, selected: t, colorVariant: r }) => {
|
|
2490
|
+
const n = `calc(${e.sizeSelector} * 6);`, o = he(r);
|
|
2491
2491
|
return {
|
|
2492
|
-
width:
|
|
2493
|
-
height:
|
|
2492
|
+
width: n,
|
|
2493
|
+
height: n,
|
|
2494
2494
|
color: e.neutral,
|
|
2495
2495
|
margin: "0",
|
|
2496
2496
|
cursor: "pointer",
|
|
@@ -2513,30 +2513,30 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2513
2513
|
display: "block"
|
|
2514
2514
|
}
|
|
2515
2515
|
};
|
|
2516
|
-
}),
|
|
2516
|
+
}), bi = S.label((e) => ({
|
|
2517
2517
|
display: "flex",
|
|
2518
2518
|
fontWeight: e.selected ? "500" : "normal",
|
|
2519
2519
|
transition: ".2s ease-in-out",
|
|
2520
2520
|
alignItems: "center",
|
|
2521
2521
|
cursor: "pointer",
|
|
2522
2522
|
gap: "calc(var(--spacing) * 2)"
|
|
2523
|
-
})),
|
|
2523
|
+
})), yi = (e) => {
|
|
2524
2524
|
const t = se(
|
|
2525
2525
|
() => `${e.id}-${e.label.replace(/\s/g, "-").toLowerCase()}`,
|
|
2526
2526
|
[e.id]
|
|
2527
|
-
),
|
|
2527
|
+
), r = (o) => {
|
|
2528
2528
|
e.onSelect(o);
|
|
2529
|
-
},
|
|
2530
|
-
return l.createElement(
|
|
2531
|
-
selected:
|
|
2529
|
+
}, n = e.value === t;
|
|
2530
|
+
return l.createElement(bi, {
|
|
2531
|
+
selected: n,
|
|
2532
2532
|
htmlFor: t,
|
|
2533
2533
|
children: [
|
|
2534
|
-
l.createElement(
|
|
2534
|
+
l.createElement(gi, {
|
|
2535
2535
|
id: t,
|
|
2536
2536
|
type: "radio",
|
|
2537
2537
|
variant: e.colorVariant,
|
|
2538
|
-
selected:
|
|
2539
|
-
onChange: () =>
|
|
2538
|
+
selected: n,
|
|
2539
|
+
onChange: () => r(t),
|
|
2540
2540
|
name: e.name
|
|
2541
2541
|
}),
|
|
2542
2542
|
l.createElement(le, {
|
|
@@ -2545,7 +2545,7 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2545
2545
|
})
|
|
2546
2546
|
]
|
|
2547
2547
|
});
|
|
2548
|
-
},
|
|
2548
|
+
}, vi = S.div`
|
|
2549
2549
|
display: flex;
|
|
2550
2550
|
flex-direction: column;
|
|
2551
2551
|
width: var(--all-fields-size);
|
|
@@ -2553,18 +2553,18 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2553
2553
|
@media (max-width: 900px) {
|
|
2554
2554
|
width: 100%;
|
|
2555
2555
|
}
|
|
2556
|
-
`,
|
|
2556
|
+
`, Ei = S.div`
|
|
2557
2557
|
display: flex;
|
|
2558
2558
|
gap: calc(var(--spacing) * 10);
|
|
2559
2559
|
@media (max-width: 900px) {
|
|
2560
2560
|
gap: var(--spacing);
|
|
2561
2561
|
flex-direction: column;
|
|
2562
2562
|
}
|
|
2563
|
-
`,
|
|
2564
|
-
const t = e.elementsPerCol || 4,
|
|
2565
|
-
(
|
|
2563
|
+
`, Si = (e) => {
|
|
2564
|
+
const t = e.elementsPerCol || 4, r = se(() => e.options.reduce(
|
|
2565
|
+
(n, o, i) => {
|
|
2566
2566
|
var d;
|
|
2567
|
-
return (i % t === 0 || i === 0) &&
|
|
2567
|
+
return (i % t === 0 || i === 0) && n.push([]), (d = n[n.length - 1]) == null || d.push(o), n;
|
|
2568
2568
|
},
|
|
2569
2569
|
[]
|
|
2570
2570
|
), [t, e.options]);
|
|
@@ -2574,11 +2574,11 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2574
2574
|
children: e.label,
|
|
2575
2575
|
variant: "section"
|
|
2576
2576
|
}),
|
|
2577
|
-
l.createElement(
|
|
2578
|
-
children:
|
|
2579
|
-
(
|
|
2580
|
-
children:
|
|
2581
|
-
(o) => l.createElement(
|
|
2577
|
+
l.createElement(Ei, {
|
|
2578
|
+
children: r.map(
|
|
2579
|
+
(n) => l.createElement(vi, {
|
|
2580
|
+
children: n.map(
|
|
2581
|
+
(o) => l.createElement(yi, {
|
|
2582
2582
|
colorVariant: e.colorVariant,
|
|
2583
2583
|
onSelect: e.onChange,
|
|
2584
2584
|
value: e.value,
|
|
@@ -2595,7 +2595,7 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2595
2595
|
})
|
|
2596
2596
|
]
|
|
2597
2597
|
});
|
|
2598
|
-
},
|
|
2598
|
+
}, Ti = S.input((e) => {
|
|
2599
2599
|
const t = he(e.colorVariant);
|
|
2600
2600
|
return {
|
|
2601
2601
|
cursor: "text",
|
|
@@ -2622,8 +2622,8 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2622
2622
|
isolation: "isolate"
|
|
2623
2623
|
}
|
|
2624
2624
|
};
|
|
2625
|
-
}),
|
|
2626
|
-
const
|
|
2625
|
+
}), wi = S.input((e) => {
|
|
2626
|
+
const r = he(e.colorVariant);
|
|
2627
2627
|
return {
|
|
2628
2628
|
cursor: "pointer",
|
|
2629
2629
|
flex: "1",
|
|
@@ -2639,10 +2639,10 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2639
2639
|
margin: "0",
|
|
2640
2640
|
"--range-thumb": "var(--color-base-100)",
|
|
2641
2641
|
"--range-thumb-size": "calc(var(--size-selector,.25rem)*6)",
|
|
2642
|
-
"--range-progress":
|
|
2642
|
+
"--range-progress": r,
|
|
2643
2643
|
"--range-fill": "1",
|
|
2644
2644
|
"--range-p": ".25rem",
|
|
2645
|
-
"--range-bg":
|
|
2645
|
+
"--range-bg": r,
|
|
2646
2646
|
font: "inherit",
|
|
2647
2647
|
fontFeatureSettings: "inherit",
|
|
2648
2648
|
fontVariationSettings: "inherit",
|
|
@@ -2666,48 +2666,48 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2666
2666
|
webkitAppearance: "none",
|
|
2667
2667
|
color: "var(--range-progress)",
|
|
2668
2668
|
boxShadow: "0 -1px oklch(0% 0 0 / calc(var(--depth) * .1)) inset, 0 8px 0 -4px oklch(100% 0 0 / calc(var(--depth) * .1)) inset, 0 0 1px 1px currentColor, 0 0 0 2rem var(--range-thumb) inset, calc((var(--range-dir, 1) * -100rem) - (var(--range-dir, 1) * var(--range-thumb-size) / 2)) 0 0 calc(100rem * var(--range-fill))",
|
|
2669
|
-
backgroundColor:
|
|
2669
|
+
backgroundColor: r,
|
|
2670
2670
|
position: "relative",
|
|
2671
2671
|
top: "50%",
|
|
2672
2672
|
transform: "translateY(-50%)"
|
|
2673
2673
|
}
|
|
2674
2674
|
};
|
|
2675
|
-
}),
|
|
2675
|
+
}), xi = S.div`
|
|
2676
2676
|
width: clamp(3rem, 30rem, 100%);
|
|
2677
|
-
`,
|
|
2677
|
+
`, Ci = S(Ti)`
|
|
2678
2678
|
width: calc(var(--size-field) * 15);
|
|
2679
|
-
`,
|
|
2679
|
+
`, Ai = S.div`
|
|
2680
2680
|
display: flex;
|
|
2681
2681
|
align-items: center;
|
|
2682
2682
|
gap: calc(var(--spacing) * 2);
|
|
2683
|
-
`,
|
|
2683
|
+
`, _i = (e) => {
|
|
2684
2684
|
var o;
|
|
2685
|
-
const t = e.min || 0,
|
|
2685
|
+
const t = e.min || 0, r = e.max || 100, n = (i) => {
|
|
2686
2686
|
const s = Number.parseInt(i.target.value);
|
|
2687
2687
|
Number.isNaN(s) ? console.error("RangeSlide must be a number") : e.onChange(s);
|
|
2688
2688
|
};
|
|
2689
2689
|
return We(() => {
|
|
2690
2690
|
e.onChange(e.value || e.initialValue || 0);
|
|
2691
|
-
}, []), l.createElement(
|
|
2691
|
+
}, []), l.createElement(xi, {
|
|
2692
2692
|
children: [
|
|
2693
2693
|
l.createElement(le, {
|
|
2694
2694
|
children: e.label,
|
|
2695
2695
|
variant: "section"
|
|
2696
2696
|
}),
|
|
2697
|
-
l.createElement(
|
|
2697
|
+
l.createElement(Ai, {
|
|
2698
2698
|
children: [
|
|
2699
|
-
l.createElement(
|
|
2699
|
+
l.createElement(wi, {
|
|
2700
2700
|
type: "range",
|
|
2701
2701
|
min: t,
|
|
2702
|
-
max:
|
|
2702
|
+
max: r,
|
|
2703
2703
|
useThemeColors: e.colorVariant,
|
|
2704
2704
|
value: e.value,
|
|
2705
|
-
onChange:
|
|
2705
|
+
onChange: n
|
|
2706
2706
|
}),
|
|
2707
|
-
l.createElement(
|
|
2707
|
+
l.createElement(Ci, {
|
|
2708
2708
|
type: "number",
|
|
2709
2709
|
value: ((o = e.value) == null ? void 0 : o.toString()) ?? "",
|
|
2710
|
-
max:
|
|
2710
|
+
max: r,
|
|
2711
2711
|
min: t,
|
|
2712
2712
|
colorVariant: e.colorVariant,
|
|
2713
2713
|
onChange: (i) => e.onChange(+i.target.value)
|
|
@@ -2719,19 +2719,19 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2719
2719
|
})
|
|
2720
2720
|
]
|
|
2721
2721
|
});
|
|
2722
|
-
},
|
|
2723
|
-
heart: encodeURIComponent(
|
|
2724
|
-
star: encodeURIComponent(
|
|
2725
|
-
star2: encodeURIComponent(
|
|
2726
|
-
},
|
|
2722
|
+
}, Ii = '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="185"><path d="M100 184.606a15.384 15.384 0 0 1-8.653-2.678C53.565 156.28 37.205 138.695 28.182 127.7 8.952 104.264-.254 80.202.005 54.146.308 24.287 24.264 0 53.406 0c21.192 0 35.869 11.937 44.416 21.879a2.884 2.884 0 0 0 4.356 0C110.725 11.927 125.402 0 146.594 0c29.142 0 53.098 24.287 53.4 54.151.26 26.061-8.956 50.122-28.176 73.554-9.023 10.994-25.383 28.58-63.165 54.228a15.384 15.384 0 0 1-8.653 2.673Z" fill="black" fill-rule="nonzero"/></svg>', Ri = '<svg xmlns="http://www.w3.org/2000/svg" width="192" height="180"><path fill="black" d="m96 137.263-58.779 42.024 22.163-68.389L.894 68.481l72.476-.243L96 0l22.63 68.238 72.476.243-58.49 42.417 22.163 68.389z" fill-rule="evenodd"/></svg>', ki = '<svg xmlns="http://www.w3.org/2000/svg" width="192" height="180"><path fill="black" d="m96 153.044-58.779 26.243 7.02-63.513L.894 68.481l63.117-13.01L96 0l31.989 55.472 63.117 13.01-43.347 47.292 7.02 63.513z" fill-rule="evenodd"/></svg>', Oi = {
|
|
2723
|
+
heart: encodeURIComponent(Ii),
|
|
2724
|
+
star: encodeURIComponent(Ri),
|
|
2725
|
+
star2: encodeURIComponent(ki)
|
|
2726
|
+
}, gn = {
|
|
2727
2727
|
small: "1rem",
|
|
2728
2728
|
medium: "1.5rem",
|
|
2729
2729
|
large: "2rem"
|
|
2730
|
-
},
|
|
2731
|
-
const t =
|
|
2730
|
+
}, Pi = S.input((e) => {
|
|
2731
|
+
const t = Oi[e.icon ?? "star2"], r = he(e.colorVariant);
|
|
2732
2732
|
return {
|
|
2733
2733
|
maskImage: `url(data:image/svg+xml,${t})`,
|
|
2734
|
-
backgroundColor:
|
|
2734
|
+
backgroundColor: r,
|
|
2735
2735
|
appearance: "none",
|
|
2736
2736
|
transform: e.selected ? "scale(1.1)" : "scale(1)",
|
|
2737
2737
|
transition: "transform 0.3s",
|
|
@@ -2747,22 +2747,22 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2747
2747
|
WebkitMaskRepeat: "no-repeat",
|
|
2748
2748
|
maskRepeat: "no-repeat",
|
|
2749
2749
|
borderRadius: "0",
|
|
2750
|
-
width:
|
|
2751
|
-
height:
|
|
2750
|
+
width: gn[e.size ?? "medium"],
|
|
2751
|
+
height: gn[e.size ?? "medium"]
|
|
2752
2752
|
};
|
|
2753
|
-
}),
|
|
2753
|
+
}), Ni = S.div(() => ({
|
|
2754
2754
|
verticalAlign: "middle",
|
|
2755
2755
|
position: "relative"
|
|
2756
|
-
})),
|
|
2756
|
+
})), $i = ({ value: e, max: t, errors: r, label: n, onChange: o }) => l.createElement(Ni, {
|
|
2757
2757
|
value: 1,
|
|
2758
2758
|
max: 5,
|
|
2759
2759
|
children: [
|
|
2760
2760
|
l.createElement(le, {
|
|
2761
2761
|
variant: "section",
|
|
2762
|
-
children:
|
|
2762
|
+
children: n
|
|
2763
2763
|
}),
|
|
2764
2764
|
Array(t).fill(1).map(
|
|
2765
|
-
(i, s) => l.createElement(
|
|
2765
|
+
(i, s) => l.createElement(Pi, {
|
|
2766
2766
|
selected: s < e,
|
|
2767
2767
|
name: `rating-${s + 1}`,
|
|
2768
2768
|
key: `${s}`,
|
|
@@ -2773,12 +2773,12 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2773
2773
|
})
|
|
2774
2774
|
),
|
|
2775
2775
|
l.createElement(Ke, {
|
|
2776
|
-
errors:
|
|
2776
|
+
errors: r
|
|
2777
2777
|
})
|
|
2778
2778
|
]
|
|
2779
|
-
}),
|
|
2779
|
+
}), Di = S.div`
|
|
2780
2780
|
width: 100%;
|
|
2781
|
-
`,
|
|
2781
|
+
`, Li = S.textarea((e) => {
|
|
2782
2782
|
const t = he(e.colorVariant);
|
|
2783
2783
|
return {
|
|
2784
2784
|
border: "var(--border-width)solid #0000",
|
|
@@ -2803,15 +2803,15 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2803
2803
|
isolation: "isolate"
|
|
2804
2804
|
}
|
|
2805
2805
|
};
|
|
2806
|
-
}),
|
|
2807
|
-
const t = (
|
|
2808
|
-
return l.createElement(
|
|
2806
|
+
}), Mi = (e) => {
|
|
2807
|
+
const t = (r) => e.onChange(r.target.value);
|
|
2808
|
+
return l.createElement(Di, {
|
|
2809
2809
|
children: [
|
|
2810
2810
|
l.createElement(le, {
|
|
2811
2811
|
variant: "section",
|
|
2812
2812
|
children: e.label
|
|
2813
2813
|
}),
|
|
2814
|
-
l.createElement(
|
|
2814
|
+
l.createElement(Li, {
|
|
2815
2815
|
value: e.value ?? "",
|
|
2816
2816
|
useThemeColors: e.colorVariant,
|
|
2817
2817
|
rows: e.rows ?? 3,
|
|
@@ -2822,31 +2822,31 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2822
2822
|
})
|
|
2823
2823
|
]
|
|
2824
2824
|
});
|
|
2825
|
-
},
|
|
2825
|
+
}, Fi = S.div`
|
|
2826
2826
|
width: 100%;
|
|
2827
|
-
`, xt = (e) => e != null,
|
|
2828
|
-
if (!
|
|
2829
|
-
const o =
|
|
2827
|
+
`, xt = (e) => e != null, zi = (e, t) => ((n) => {
|
|
2828
|
+
if (!n) return e.default;
|
|
2829
|
+
const o = n.find((i) => i.conditions.every((s) => {
|
|
2830
2830
|
const d = t(s.fieldName);
|
|
2831
2831
|
if (!xt(d)) return !1;
|
|
2832
2832
|
const u = [];
|
|
2833
2833
|
return xt(s.eq) ? s.eq === d ? u.push(!0) : u.push(!1) : xt(s.lessThan) ? s.lessThan > d ? u.push(!0) : u.push(!1) : xt(s.moreThan) && (s.moreThan < d ? u.push(!0) : u.push(!1)), u.every(Boolean);
|
|
2834
2834
|
}));
|
|
2835
2835
|
return (o == null ? void 0 : o.value) ?? e.default;
|
|
2836
|
-
})(e.values),
|
|
2836
|
+
})(e.values), Jn = (e) => {
|
|
2837
2837
|
const t = () => {
|
|
2838
|
-
const
|
|
2838
|
+
const r = (i) => e.setStateByKey(e.dataField, i), n = zi(e.fieldProps.label, e.getStateByKey), o = {
|
|
2839
2839
|
formClientId: e.formClientId,
|
|
2840
|
-
label:
|
|
2840
|
+
label: n,
|
|
2841
2841
|
errors: e.errors,
|
|
2842
|
-
onChange:
|
|
2842
|
+
onChange: r,
|
|
2843
2843
|
value: e.getStateByKey(e.dataField),
|
|
2844
2844
|
key: `${e.type}-${e.fieldProps.label}-${e.fieldProps.meta.name}`
|
|
2845
2845
|
};
|
|
2846
2846
|
switch (e.type) {
|
|
2847
2847
|
case "matrix": {
|
|
2848
2848
|
const i = e.fieldProps;
|
|
2849
|
-
return l.createElement(
|
|
2849
|
+
return l.createElement(pi, {
|
|
2850
2850
|
...i,
|
|
2851
2851
|
...o,
|
|
2852
2852
|
max: 10
|
|
@@ -2854,35 +2854,35 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2854
2854
|
}
|
|
2855
2855
|
case "radio-group": {
|
|
2856
2856
|
const i = e.fieldProps;
|
|
2857
|
-
return l.createElement(
|
|
2857
|
+
return l.createElement(Si, {
|
|
2858
2858
|
...i,
|
|
2859
2859
|
...o
|
|
2860
2860
|
});
|
|
2861
2861
|
}
|
|
2862
2862
|
case "checkbox-group": {
|
|
2863
2863
|
const i = e.fieldProps;
|
|
2864
|
-
return l.createElement(
|
|
2864
|
+
return l.createElement(di, {
|
|
2865
2865
|
...i,
|
|
2866
2866
|
...o
|
|
2867
2867
|
});
|
|
2868
2868
|
}
|
|
2869
2869
|
case "range-slide": {
|
|
2870
2870
|
const i = e.fieldProps;
|
|
2871
|
-
return l.createElement(
|
|
2871
|
+
return l.createElement(_i, {
|
|
2872
2872
|
...i,
|
|
2873
2873
|
...o
|
|
2874
2874
|
});
|
|
2875
2875
|
}
|
|
2876
2876
|
case "rating": {
|
|
2877
2877
|
const i = e.fieldProps;
|
|
2878
|
-
return l.createElement(
|
|
2878
|
+
return l.createElement($i, {
|
|
2879
2879
|
...i,
|
|
2880
2880
|
...o
|
|
2881
2881
|
});
|
|
2882
2882
|
}
|
|
2883
2883
|
case "textarea": {
|
|
2884
2884
|
const i = e.fieldProps;
|
|
2885
|
-
return l.createElement(
|
|
2885
|
+
return l.createElement(Mi, {
|
|
2886
2886
|
...i,
|
|
2887
2887
|
...o
|
|
2888
2888
|
});
|
|
@@ -2891,28 +2891,28 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2891
2891
|
return null;
|
|
2892
2892
|
}
|
|
2893
2893
|
};
|
|
2894
|
-
return l.createElement(
|
|
2894
|
+
return l.createElement(Fi, {
|
|
2895
2895
|
children: t()
|
|
2896
2896
|
});
|
|
2897
|
-
},
|
|
2897
|
+
}, Bi = S.div({
|
|
2898
2898
|
position: "relative",
|
|
2899
2899
|
fontSize: "var(--font-size)"
|
|
2900
|
-
}),
|
|
2900
|
+
}), Ui = S.div`
|
|
2901
2901
|
display: flex;
|
|
2902
2902
|
align-items: center;
|
|
2903
2903
|
justify-content: space-between;
|
|
2904
2904
|
margin-top: calc(var(--spacing) * 10);
|
|
2905
|
-
`,
|
|
2905
|
+
`, eo = (e) => {
|
|
2906
2906
|
const t = se(
|
|
2907
2907
|
() => Math.random().toString(36).substring(2, 10),
|
|
2908
2908
|
[]
|
|
2909
|
-
), [
|
|
2910
|
-
|
|
2911
|
-
}, i =
|
|
2909
|
+
), [r, n] = l.useState(null), o = (d) => {
|
|
2910
|
+
n((u) => !u || u < d ? d : u);
|
|
2911
|
+
}, i = jn({
|
|
2912
2912
|
form: e.inlineForm.form,
|
|
2913
2913
|
formId: e.formId,
|
|
2914
2914
|
domainId: e.domainId
|
|
2915
|
-
}), s =
|
|
2915
|
+
}), s = Qn({
|
|
2916
2916
|
domainId: e.domainId,
|
|
2917
2917
|
formType: "inlineForm",
|
|
2918
2918
|
stepsCount: i.steps.length,
|
|
@@ -2920,7 +2920,7 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2920
2920
|
formId: e.formId,
|
|
2921
2921
|
state: i.state
|
|
2922
2922
|
});
|
|
2923
|
-
return l.createElement(
|
|
2923
|
+
return l.createElement(Bi, {
|
|
2924
2924
|
children: [
|
|
2925
2925
|
e.inlineForm.config.formTitle && l.createElement(le, {
|
|
2926
2926
|
variant: "title",
|
|
@@ -2929,13 +2929,13 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2929
2929
|
i.steps.map(
|
|
2930
2930
|
(d, u) => {
|
|
2931
2931
|
var m;
|
|
2932
|
-
return l.createElement(
|
|
2932
|
+
return l.createElement(Vn, {
|
|
2933
2933
|
key: u + `${(m = d.meta) == null ? void 0 : m.name}`,
|
|
2934
|
-
height:
|
|
2934
|
+
height: r,
|
|
2935
2935
|
onSetMaxHeight: o,
|
|
2936
2936
|
isVisible: u === s.step,
|
|
2937
2937
|
children: d.fields.map(
|
|
2938
|
-
(p) => l.createElement(
|
|
2938
|
+
(p) => l.createElement(Jn, {
|
|
2939
2939
|
type: p.type,
|
|
2940
2940
|
fieldProps: p,
|
|
2941
2941
|
dataField: p.dataField,
|
|
@@ -2949,14 +2949,14 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2949
2949
|
});
|
|
2950
2950
|
}
|
|
2951
2951
|
),
|
|
2952
|
-
l.createElement(
|
|
2952
|
+
l.createElement(Ui, {
|
|
2953
2953
|
children: [
|
|
2954
2954
|
l.createElement(Ye, {
|
|
2955
2955
|
children: "Back",
|
|
2956
2956
|
disabled: s.step === 0,
|
|
2957
2957
|
onClick: s.onBack
|
|
2958
2958
|
}),
|
|
2959
|
-
l.createElement(
|
|
2959
|
+
l.createElement(Gn, {
|
|
2960
2960
|
steps: i.steps,
|
|
2961
2961
|
currentStepIndex: s.step
|
|
2962
2962
|
}),
|
|
@@ -2968,7 +2968,7 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2968
2968
|
})
|
|
2969
2969
|
]
|
|
2970
2970
|
});
|
|
2971
|
-
},
|
|
2971
|
+
}, Wi = S.div((e) => ({
|
|
2972
2972
|
backgroundColor: "var(--color-base-100)",
|
|
2973
2973
|
borderTopLeftRadius: "var(--modal-tl,var(--radius-box))",
|
|
2974
2974
|
borderTopRightRadius: "var(--modal-tr,var(--radius-box))",
|
|
@@ -2991,7 +2991,7 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
2991
2991
|
maxWidth: "initial",
|
|
2992
2992
|
width: "auto"
|
|
2993
2993
|
}
|
|
2994
|
-
})),
|
|
2994
|
+
})), Hi = S.div(() => ({})), Vi = S.dialog(({ $visible: e }) => ({
|
|
2995
2995
|
pointerEvents: e ? "auto" : "none",
|
|
2996
2996
|
visibility: e ? "visible" : "hidden",
|
|
2997
2997
|
width: "100%",
|
|
@@ -3013,8 +3013,8 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
3013
3013
|
top: 0,
|
|
3014
3014
|
border: 0,
|
|
3015
3015
|
outline: 0
|
|
3016
|
-
})),
|
|
3017
|
-
const t =
|
|
3016
|
+
})), Gi = (e) => {
|
|
3017
|
+
const t = bn(null), r = Math.random().toString(36).substring(2, 16), n = xe(
|
|
3018
3018
|
(i) => {
|
|
3019
3019
|
i.target === t.current && e.onClose(), i.preventDefault(), i.stopPropagation();
|
|
3020
3020
|
},
|
|
@@ -3026,12 +3026,12 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
3026
3026
|
t.current && e.isOpen ? t.current.show() : t.current && !e.isOpen && t.current.close();
|
|
3027
3027
|
}, [t, e.isOpen]), We(() => (document.addEventListener("keyup", o), () => {
|
|
3028
3028
|
document.removeEventListener("keyup", o);
|
|
3029
|
-
}), []), l.createElement(
|
|
3029
|
+
}), []), l.createElement(Vi, {
|
|
3030
3030
|
$visible: e.isOpen,
|
|
3031
|
-
onClick:
|
|
3031
|
+
onClick: n,
|
|
3032
3032
|
ref: t,
|
|
3033
|
-
id:
|
|
3034
|
-
children: l.createElement(
|
|
3033
|
+
id: r,
|
|
3034
|
+
children: l.createElement(Wi, {
|
|
3035
3035
|
$visible: e.isOpen,
|
|
3036
3036
|
children: [
|
|
3037
3037
|
l.createElement(le, {
|
|
@@ -3039,18 +3039,18 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
3039
3039
|
variant: "title"
|
|
3040
3040
|
}),
|
|
3041
3041
|
e.children,
|
|
3042
|
-
l.createElement(
|
|
3042
|
+
l.createElement(Hi, {
|
|
3043
3043
|
children: e.footer
|
|
3044
3044
|
})
|
|
3045
3045
|
]
|
|
3046
3046
|
})
|
|
3047
3047
|
});
|
|
3048
|
-
},
|
|
3048
|
+
}, ji = S.div`
|
|
3049
3049
|
display: flex;
|
|
3050
3050
|
align-items: center;
|
|
3051
3051
|
justify-content: space-between;
|
|
3052
3052
|
margin-top: calc(var(--spacing) * 10);
|
|
3053
|
-
`,
|
|
3053
|
+
`, Yi = S(Ye)`
|
|
3054
3054
|
position: fixed;
|
|
3055
3055
|
width: fit-content;
|
|
3056
3056
|
height: fit-content;
|
|
@@ -3064,17 +3064,17 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
3064
3064
|
&:active {
|
|
3065
3065
|
transform: rotate(-90deg) translateY(calc(100% - 18px));
|
|
3066
3066
|
}
|
|
3067
|
-
`,
|
|
3068
|
-
const [t,
|
|
3067
|
+
`, to = (e) => {
|
|
3068
|
+
const [t, r] = l.useState(!1), [n, o] = l.useState(null), i = se(
|
|
3069
3069
|
() => Math.random().toString(36).substring(2, 10),
|
|
3070
3070
|
[]
|
|
3071
3071
|
), s = (m) => {
|
|
3072
3072
|
o((p) => !p || p < m ? m : p);
|
|
3073
|
-
}, d =
|
|
3073
|
+
}, d = jn({
|
|
3074
3074
|
form: e.popupForm.form,
|
|
3075
3075
|
formId: e.formId,
|
|
3076
3076
|
domainId: e.domainId
|
|
3077
|
-
}), u =
|
|
3077
|
+
}), u = Qn({
|
|
3078
3078
|
domainId: e.domainId,
|
|
3079
3079
|
formType: "inlineForm",
|
|
3080
3080
|
stepsCount: d.steps.length,
|
|
@@ -3082,28 +3082,28 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
3082
3082
|
formId: e.formId,
|
|
3083
3083
|
state: d.state
|
|
3084
3084
|
});
|
|
3085
|
-
return l.createElement(
|
|
3085
|
+
return l.createElement(ho, {
|
|
3086
3086
|
children: [
|
|
3087
|
-
l.createElement(
|
|
3087
|
+
l.createElement(Yi, {
|
|
3088
3088
|
children: e.popupForm.config.buttonText,
|
|
3089
|
-
onClick: () =>
|
|
3089
|
+
onClick: () => r(!0),
|
|
3090
3090
|
$left: e.popupForm.styles.left ?? null,
|
|
3091
3091
|
$right: e.popupForm.styles.right ?? null,
|
|
3092
3092
|
$top: e.popupForm.styles.top ?? null,
|
|
3093
3093
|
$bottom: e.popupForm.styles.bottom ?? null
|
|
3094
3094
|
}),
|
|
3095
|
-
l.createElement(
|
|
3096
|
-
onClose: () =>
|
|
3095
|
+
l.createElement(Gi, {
|
|
3096
|
+
onClose: () => r(!1),
|
|
3097
3097
|
heading: e.popupForm.config.formTitle,
|
|
3098
3098
|
isOpen: t,
|
|
3099
|
-
footer: l.createElement(
|
|
3099
|
+
footer: l.createElement(ji, {
|
|
3100
3100
|
children: [
|
|
3101
3101
|
l.createElement(Ye, {
|
|
3102
3102
|
children: "Back",
|
|
3103
3103
|
disabled: u.step === 0,
|
|
3104
3104
|
onClick: u.onBack
|
|
3105
3105
|
}),
|
|
3106
|
-
l.createElement(
|
|
3106
|
+
l.createElement(Gn, {
|
|
3107
3107
|
steps: d.steps,
|
|
3108
3108
|
currentStepIndex: u.step
|
|
3109
3109
|
}),
|
|
@@ -3116,13 +3116,13 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
3116
3116
|
children: d.steps.map(
|
|
3117
3117
|
(m, p) => {
|
|
3118
3118
|
var T;
|
|
3119
|
-
return l.createElement(
|
|
3119
|
+
return l.createElement(Vn, {
|
|
3120
3120
|
key: p + `${(T = m.meta) == null ? void 0 : T.name}`,
|
|
3121
|
-
height:
|
|
3121
|
+
height: n,
|
|
3122
3122
|
onSetMaxHeight: s,
|
|
3123
3123
|
isVisible: p === u.step,
|
|
3124
3124
|
children: m.fields.map(
|
|
3125
|
-
(w) => l.createElement(
|
|
3125
|
+
(w) => l.createElement(Jn, {
|
|
3126
3126
|
type: w.type,
|
|
3127
3127
|
fieldProps: w,
|
|
3128
3128
|
formClientId: i,
|
|
@@ -3157,27 +3157,27 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
3157
3157
|
// ),
|
|
3158
3158
|
]
|
|
3159
3159
|
});
|
|
3160
|
-
},
|
|
3160
|
+
}, ro = (e) => {
|
|
3161
3161
|
e.locale;
|
|
3162
|
-
let { data: t, loading:
|
|
3163
|
-
() =>
|
|
3162
|
+
let { data: t, loading: r, error: n } = Aa(
|
|
3163
|
+
() => Ca({
|
|
3164
3164
|
formId: e.formId
|
|
3165
3165
|
})
|
|
3166
3166
|
);
|
|
3167
|
-
const o = se(() => t != null && t.inlineForm ? l.createElement(
|
|
3167
|
+
const o = se(() => t != null && t.inlineForm ? l.createElement(eo, {
|
|
3168
3168
|
key: `inline-form-${e.formId}`,
|
|
3169
3169
|
formId: e.formId,
|
|
3170
3170
|
domainId: t.domainId,
|
|
3171
3171
|
formTheme: t.attributes.theme,
|
|
3172
3172
|
inlineForm: t.inlineForm
|
|
3173
|
-
}) : null, [t == null ? void 0 : t.attributes.theme, t == null ? void 0 : t.domainId, t == null ? void 0 : t.inlineForm, e.formId]), i = se(() => t != null && t.popupForm ? l.createElement(
|
|
3173
|
+
}) : null, [t == null ? void 0 : t.attributes.theme, t == null ? void 0 : t.domainId, t == null ? void 0 : t.inlineForm, e.formId]), i = se(() => t != null && t.popupForm ? l.createElement(to, {
|
|
3174
3174
|
key: `popup-form-${e.formId}`,
|
|
3175
3175
|
formId: e.formId,
|
|
3176
3176
|
domainId: t.domainId,
|
|
3177
3177
|
formTheme: t.attributes.theme,
|
|
3178
3178
|
popupForm: t.popupForm
|
|
3179
3179
|
}) : null, [t == null ? void 0 : t.attributes.theme, t == null ? void 0 : t.domainId, t == null ? void 0 : t.inlineForm, e.formId]);
|
|
3180
|
-
return !t &&
|
|
3180
|
+
return !t && r ? "Loading..." : !t || n ? n ? n.message : "Unknown error" : l.createElement(wa, {
|
|
3181
3181
|
theme: t.attributes.theme,
|
|
3182
3182
|
selectedVariant: t.attributes.variant,
|
|
3183
3183
|
children: [o, i]
|
|
@@ -3191,17 +3191,19 @@ const ti = (e) => e == null, ct = (e) => !ti(e), ni = (e, t) => t ? t.required &
|
|
|
3191
3191
|
console.error("formId must be provided. Feedback module deactivated");
|
|
3192
3192
|
return;
|
|
3193
3193
|
}
|
|
3194
|
-
const t =
|
|
3194
|
+
const t = bo.createRoot(e.container || document);
|
|
3195
3195
|
typeof window < "u" && t.render(
|
|
3196
|
-
l.createElement(
|
|
3196
|
+
l.createElement(ro, {
|
|
3197
3197
|
formId: e.formId
|
|
3198
3198
|
})
|
|
3199
3199
|
);
|
|
3200
|
-
}, qi = (e) => e ? e.formId ? typeof window > "u" ? null : l.createElement(
|
|
3200
|
+
}, qi = (e) => e ? e.formId ? typeof window > "u" ? null : l.createElement(ro, {
|
|
3201
3201
|
formId: e.formId
|
|
3202
|
-
}) : (console.error("formId must be provided. Feedback module deactivated"), null) : (console.error("options must be provided. Feedback module deactivated"), null), Qi = (e) => qi(e);
|
|
3202
|
+
}) : (console.error("formId must be provided. Feedback module deactivated"), null) : (console.error("options must be provided. Feedback module deactivated"), null), Qi = (e) => qi(e), Ji = (e) => l.createElement(eo, e), es = (e) => l.createElement(to, e);
|
|
3203
3203
|
export {
|
|
3204
3204
|
Qi as FeedbackModule,
|
|
3205
|
+
Ji as PreviewInPlaceForm,
|
|
3206
|
+
es as PreviewPopupForm,
|
|
3205
3207
|
Zi as initiateFeedbackModule,
|
|
3206
3208
|
qi as renderFeedbackModule
|
|
3207
3209
|
};
|