@web-site-utilities/feedback 0.0.6 → 0.0.7
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/form/index.d.ts +165 -0
- package/dist/index.cjs.js +18 -18
- package/dist/index.d.ts +170 -0
- package/dist/index.es.js +577 -504
- package/dist/index.iife.js +18 -18
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import l, { useMemo as
|
|
2
|
-
import
|
|
1
|
+
import l, { useMemo as le, createElement as vo, useContext as Eo, useState as We, useEffect as He, useRef as vn, useCallback as xe, Fragment as So } from "react";
|
|
2
|
+
import To from "react-dom";
|
|
3
3
|
var vt = {}, Hr;
|
|
4
|
-
function
|
|
4
|
+
function wo() {
|
|
5
5
|
if (Hr) return vt;
|
|
6
6
|
Hr = 1;
|
|
7
|
-
var e =
|
|
7
|
+
var e = To;
|
|
8
8
|
return vt.createRoot = e.createRoot, vt.hydrateRoot = e.hydrateRoot, vt;
|
|
9
9
|
}
|
|
10
|
-
var
|
|
10
|
+
var xo = wo(), V = function() {
|
|
11
11
|
return V = Object.assign || function(t) {
|
|
12
12
|
for (var r, n = 1, o = arguments.length; n < o; n++) {
|
|
13
13
|
r = arguments[n];
|
|
@@ -21,14 +21,14 @@ function Ot(e, t, r) {
|
|
|
21
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-", En = "comm", Lt = "rule", vr = "decl", Co = "@import", Sn = "@keyframes", Ao = "@layer", Tn = Math.abs, Er = String.fromCharCode, ur = Object.assign;
|
|
25
|
+
function _o(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 wn(e) {
|
|
29
29
|
return e.trim();
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function he(e, t) {
|
|
32
32
|
return (e = t.exec(e)) ? e[0] : e;
|
|
33
33
|
}
|
|
34
34
|
function g(e, t, r) {
|
|
@@ -40,55 +40,55 @@ function Ct(e, t, r) {
|
|
|
40
40
|
function B(e, t) {
|
|
41
41
|
return e.charCodeAt(t) | 0;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Ve(e, t, r) {
|
|
44
44
|
return e.slice(t, r);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function se(e) {
|
|
47
47
|
return e.length;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function xn(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 Io(e, t) {
|
|
56
56
|
return e.map(t).join("");
|
|
57
57
|
}
|
|
58
58
|
function Vr(e, t) {
|
|
59
59
|
return e.filter(function(r) {
|
|
60
|
-
return !
|
|
60
|
+
return !he(r, t);
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
var Mt = 1,
|
|
63
|
+
var Mt = 1, Ge = 1, Cn = 0, Z = 0, F = 0, Ke = "";
|
|
64
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:
|
|
65
|
+
return { value: e, root: t, parent: r, type: n, props: o, children: i, line: Mt, column: Ge, length: s, return: "", siblings: d };
|
|
66
66
|
}
|
|
67
67
|
function ye(e, t) {
|
|
68
68
|
return ur(Ft("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
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 Ro() {
|
|
76
76
|
return F;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return F = Z > 0 ? B(
|
|
78
|
+
function ko() {
|
|
79
|
+
return F = Z > 0 ? B(Ke, --Z) : 0, Ge--, F === 10 && (Ge = 1, Mt--), F;
|
|
80
80
|
}
|
|
81
81
|
function oe() {
|
|
82
|
-
return F = Z <
|
|
82
|
+
return F = Z < Cn ? B(Ke, Z++) : 0, Ge++, F === 10 && (Ge = 1, Mt++), F;
|
|
83
83
|
}
|
|
84
84
|
function Ce() {
|
|
85
|
-
return B(
|
|
85
|
+
return B(Ke, Z);
|
|
86
86
|
}
|
|
87
87
|
function At() {
|
|
88
88
|
return Z;
|
|
89
89
|
}
|
|
90
90
|
function zt(e, t) {
|
|
91
|
-
return
|
|
91
|
+
return Ve(Ke, e, t);
|
|
92
92
|
}
|
|
93
93
|
function dr(e) {
|
|
94
94
|
switch (e) {
|
|
@@ -128,21 +128,21 @@ function dr(e) {
|
|
|
128
128
|
}
|
|
129
129
|
return 0;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return Mt =
|
|
131
|
+
function Oo(e) {
|
|
132
|
+
return Mt = Ge = 1, Cn = se(Ke = e), Z = 0, [];
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
return
|
|
134
|
+
function Po(e) {
|
|
135
|
+
return Ke = "", e;
|
|
136
136
|
}
|
|
137
137
|
function er(e) {
|
|
138
|
-
return
|
|
138
|
+
return wn(zt(Z - 1, fr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function No(e) {
|
|
141
141
|
for (; (F = Ce()) && F < 33; )
|
|
142
142
|
oe();
|
|
143
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));
|
|
@@ -169,27 +169,27 @@ function fr(e) {
|
|
|
169
169
|
}
|
|
170
170
|
return Z;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Do(e, t) {
|
|
173
173
|
for (; oe() && e + F !== 57; )
|
|
174
174
|
if (e + F === 84 && Ce() === 47)
|
|
175
175
|
break;
|
|
176
176
|
return "/*" + zt(t, Z - 1) + "*" + Er(e === 47 ? e : oe());
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function Lo(e) {
|
|
179
179
|
for (; !dr(Ce()); )
|
|
180
180
|
oe();
|
|
181
181
|
return zt(e, Z);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
return
|
|
183
|
+
function Mo(e) {
|
|
184
|
+
return Po(_t("", null, null, null, [""], e = Oo(e), 0, [0], e));
|
|
185
185
|
}
|
|
186
186
|
function _t(e, t, r, n, o, i, s, d, u) {
|
|
187
|
-
for (var m = 0, p = 0, T = s, w = 0,
|
|
187
|
+
for (var m = 0, p = 0, T = s, w = 0, E = 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(er(O), "&", "&\f"), "&\f",
|
|
192
|
+
Ct(y += g(er(O), "&", "&\f"), "&\f", Tn(m ? d[m - 1] : 0)) != -1 && (D = -1);
|
|
193
193
|
break;
|
|
194
194
|
}
|
|
195
195
|
// " ' [
|
|
@@ -203,18 +203,18 @@ function _t(e, t, r, n, o, i, s, d, u) {
|
|
|
203
203
|
case 10:
|
|
204
204
|
case 13:
|
|
205
205
|
case 32:
|
|
206
|
-
y +=
|
|
206
|
+
y += No(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(Fo(Do(oe(), At()), t, r, u), u);
|
|
218
218
|
break;
|
|
219
219
|
default:
|
|
220
220
|
y += "/";
|
|
@@ -222,7 +222,7 @@ function _t(e, t, r, n, o, i, s, d, u) {
|
|
|
222
222
|
break;
|
|
223
223
|
// {
|
|
224
224
|
case 123 * $:
|
|
225
|
-
d[m++] =
|
|
225
|
+
d[m++] = se(y) * D;
|
|
226
226
|
// } ; \0
|
|
227
227
|
case 125 * $:
|
|
228
228
|
case 59:
|
|
@@ -234,7 +234,7 @@ function _t(e, t, r, n, o, i, s, d, u) {
|
|
|
234
234
|
G = 0;
|
|
235
235
|
// ;
|
|
236
236
|
case 59 + p:
|
|
237
|
-
D == -1 && (y = g(y, /\f/g, "")),
|
|
237
|
+
D == -1 && (y = g(y, /\f/g, "")), E > 0 && se(y) - T && lt(E > 32 ? jr(y + ";", n, r, T - 1, u) : jr(g(y, " ", "") + ";", n, r, T - 2, u), u);
|
|
238
238
|
break;
|
|
239
239
|
// @ ;
|
|
240
240
|
case 59:
|
|
@@ -257,16 +257,16 @@ function _t(e, t, r, n, o, i, s, d, u) {
|
|
|
257
257
|
_t(y, x, x, x, [""], R, 0, d, R);
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
m = p =
|
|
260
|
+
m = p = E = 0, $ = D = 1, _ = y = "", T = s;
|
|
261
261
|
break;
|
|
262
262
|
// :
|
|
263
263
|
case 58:
|
|
264
|
-
T = 1 +
|
|
264
|
+
T = 1 + se(y), E = A;
|
|
265
265
|
default:
|
|
266
266
|
if ($ < 1) {
|
|
267
267
|
if (O == 123)
|
|
268
268
|
--$;
|
|
269
|
-
else if (O == 125 && $++ == 0 &&
|
|
269
|
+
else if (O == 125 && $++ == 0 && ko() == 125)
|
|
270
270
|
continue;
|
|
271
271
|
}
|
|
272
272
|
switch (y += Er(O), O * $) {
|
|
@@ -276,33 +276,33 @@ function _t(e, t, r, n, o, i, s, d, u) {
|
|
|
276
276
|
break;
|
|
277
277
|
// ,
|
|
278
278
|
case 44:
|
|
279
|
-
d[m++] = (
|
|
279
|
+
d[m++] = (se(y) - 1) * D, D = 1;
|
|
280
280
|
break;
|
|
281
281
|
// @
|
|
282
282
|
case 64:
|
|
283
|
-
Ce() === 45 && (y += er(oe())), w = Ce(), p = T =
|
|
283
|
+
Ce() === 45 && (y += er(oe())), w = Ce(), p = T = se(_ = y += Lo(At())), O++;
|
|
284
284
|
break;
|
|
285
285
|
// -
|
|
286
286
|
case 45:
|
|
287
|
-
A === 45 &&
|
|
287
|
+
A === 45 && se(y) == 2 && ($ = 0);
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
return i;
|
|
291
291
|
}
|
|
292
292
|
function Gr(e, t, r, n, o, i, s, d, u, m, p, T) {
|
|
293
|
-
for (var w = o - 1,
|
|
294
|
-
for (var O = 0, _ =
|
|
295
|
-
(b =
|
|
293
|
+
for (var w = o - 1, E = o === 0 ? i : [""], A = xn(E), $ = 0, G = 0, D = 0; $ < n; ++$)
|
|
294
|
+
for (var O = 0, _ = Ve(e, w + 1, w = Tn(G = s[$])), b = e; O < A; ++O)
|
|
295
|
+
(b = wn(G > 0 ? E[O] + " " + _ : g(_, /&\f/g, E[O]))) && (u[D++] = b);
|
|
296
296
|
return Ft(e, t, r, o === 0 ? Lt : d, u, m, p, T);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
return Ft(e, t, r,
|
|
298
|
+
function Fo(e, t, r, n) {
|
|
299
|
+
return Ft(e, t, r, En, Er(Ro()), Ve(e, 2, -2), 0, n);
|
|
300
300
|
}
|
|
301
301
|
function jr(e, t, r, n, o) {
|
|
302
|
-
return Ft(e, t, r, vr,
|
|
302
|
+
return Ft(e, t, r, vr, Ve(e, 0, n), Ve(e, n + 1, -1), n, o);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
switch (
|
|
304
|
+
function An(e, t, r) {
|
|
305
|
+
switch (_o(e, t)) {
|
|
306
306
|
// color-adjust
|
|
307
307
|
case 5103:
|
|
308
308
|
return C + "print-" + e + e;
|
|
@@ -372,7 +372,7 @@ function Cn(e, t, r) {
|
|
|
372
372
|
return C + e + g(e, /(\w+).+(:[^]+)/, C + "box-$1$2" + k + "flex-$1$2") + e;
|
|
373
373
|
// align-self
|
|
374
374
|
case 5443:
|
|
375
|
-
return C + e + k + "flex-item-" + g(e, /flex-|-self/g, "") + (
|
|
375
|
+
return C + e + k + "flex-item-" + g(e, /flex-|-self/g, "") + (he(e, /flex-|baseline/) ? "" : k + "grid-row-" + g(e, /flex-|-self/g, "")) + e;
|
|
376
376
|
// align-content
|
|
377
377
|
case 4675:
|
|
378
378
|
return C + e + k + "flex-line-pack" + g(e, /align-content|flex-|-self/g, "") + e;
|
|
@@ -400,7 +400,7 @@ function Cn(e, t, r) {
|
|
|
400
400
|
return g(g(e, /(.+:)(flex-)?(.*)/, C + "box-pack:$3" + k + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + C + e + e;
|
|
401
401
|
// justify-self
|
|
402
402
|
case 4200:
|
|
403
|
-
if (!
|
|
403
|
+
if (!he(e, /flex-|baseline/)) return k + "grid-column-align" + Ve(e, t) + e;
|
|
404
404
|
break;
|
|
405
405
|
// grid-template-(columns|rows)
|
|
406
406
|
case 2592:
|
|
@@ -410,13 +410,13 @@ function Cn(e, t, r) {
|
|
|
410
410
|
case 4384:
|
|
411
411
|
case 3616:
|
|
412
412
|
return r && r.some(function(n, o) {
|
|
413
|
-
return t = o,
|
|
414
|
-
}) ? ~Ct(e + (r = r[t].value), "span", 0) ? e : k + g(e, "-start", "") + e + k + "grid-row-span:" + (~Ct(r, "span", 0) ?
|
|
413
|
+
return t = o, he(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) ? he(r, /\d+/) : +he(r, /\d+/) - +he(e, /\d+/)) + ";" : k + g(e, "-start", "") + e;
|
|
415
415
|
// grid-(row|column)-end
|
|
416
416
|
case 4896:
|
|
417
417
|
case 4128:
|
|
418
418
|
return r && r.some(function(n) {
|
|
419
|
-
return
|
|
419
|
+
return he(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:
|
|
@@ -437,7 +437,7 @@ function Cn(e, t, r) {
|
|
|
437
437
|
case 5789:
|
|
438
438
|
case 5021:
|
|
439
439
|
case 4765:
|
|
440
|
-
if (
|
|
440
|
+
if (se(e) - 1 - t > 6)
|
|
441
441
|
switch (B(e, t + 1)) {
|
|
442
442
|
// (m)ax-content, (m)in-content
|
|
443
443
|
case 109:
|
|
@@ -448,7 +448,7 @@ function Cn(e, t, r) {
|
|
|
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) ? An(g(e, "stretch", "fill-available"), t, r) + e : e;
|
|
452
452
|
}
|
|
453
453
|
break;
|
|
454
454
|
// grid-(column|row)
|
|
@@ -488,62 +488,62 @@ function Pt(e, t) {
|
|
|
488
488
|
r += t(e[n], n, e, t) || "";
|
|
489
489
|
return r;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function zo(e, t, r, n) {
|
|
492
492
|
switch (e.type) {
|
|
493
|
-
case
|
|
493
|
+
case Ao:
|
|
494
494
|
if (e.children.length) break;
|
|
495
|
-
case
|
|
495
|
+
case Co:
|
|
496
496
|
case vr:
|
|
497
497
|
return e.return = e.return || e.value;
|
|
498
|
-
case vn:
|
|
499
|
-
return "";
|
|
500
498
|
case En:
|
|
499
|
+
return "";
|
|
500
|
+
case Sn:
|
|
501
501
|
return e.return = e.value + "{" + Pt(e.children, n) + "}";
|
|
502
502
|
case Lt:
|
|
503
|
-
if (!
|
|
503
|
+
if (!se(e.value = e.props.join(","))) return "";
|
|
504
504
|
}
|
|
505
|
-
return
|
|
505
|
+
return se(r = Pt(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
var t =
|
|
507
|
+
function Bo(e) {
|
|
508
|
+
var t = xn(e);
|
|
509
509
|
return function(r, n, o, i) {
|
|
510
510
|
for (var s = "", d = 0; d < t; d++)
|
|
511
511
|
s += e[d](r, n, o, i) || "";
|
|
512
512
|
return s;
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Uo(e) {
|
|
516
516
|
return function(t) {
|
|
517
517
|
t.root || (t = t.return) && e(t);
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Wo(e, t, r, n) {
|
|
521
521
|
if (e.length > -1 && !e.return)
|
|
522
522
|
switch (e.type) {
|
|
523
523
|
case vr:
|
|
524
|
-
e.return =
|
|
524
|
+
e.return = An(e.value, e.length, r);
|
|
525
525
|
return;
|
|
526
|
-
case
|
|
526
|
+
case Sn:
|
|
527
527
|
return Pt([ye(e, { value: g(e.value, "@", "@" + C) })], n);
|
|
528
528
|
case Lt:
|
|
529
529
|
if (e.length)
|
|
530
|
-
return
|
|
531
|
-
switch (
|
|
530
|
+
return Io(r = e.props, function(o) {
|
|
531
|
+
switch (he(o, n = /(::plac\w+|:read-\w+)/)) {
|
|
532
532
|
// :read-(only|write)
|
|
533
533
|
case ":read-only":
|
|
534
534
|
case ":read-write":
|
|
535
|
-
|
|
535
|
+
ze(ye(e, { props: [g(o, /:(read-\w+)/, ":" + ut + "$1")] })), ze(ye(e, { props: [o] })), ur(e, { props: Vr(r, n) });
|
|
536
536
|
break;
|
|
537
537
|
// :placeholder
|
|
538
538
|
case "::placeholder":
|
|
539
|
-
|
|
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: Vr(r, n) });
|
|
540
540
|
break;
|
|
541
541
|
}
|
|
542
542
|
return "";
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
var
|
|
546
|
+
var Ho = {
|
|
547
547
|
animationIterationCount: 1,
|
|
548
548
|
aspectRatio: 1,
|
|
549
549
|
borderImageOutset: 1,
|
|
@@ -591,58 +591,58 @@ var Mo = {
|
|
|
591
591
|
strokeMiterlimit: 1,
|
|
592
592
|
strokeOpacity: 1,
|
|
593
593
|
strokeWidth: 1
|
|
594
|
-
},
|
|
595
|
-
`, Nt = typeof window < "u" && typeof document < "u",
|
|
596
|
-
function
|
|
597
|
-
return r === void 0 && (r =
|
|
594
|
+
}, je = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", _n = "active", In = "data-styled-version", Bt = "6.1.19", Sr = `/*!sc*/
|
|
595
|
+
`, Nt = typeof window < "u" && typeof document < "u", Vo = !!(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([]), Ye = Object.freeze({});
|
|
596
|
+
function Go(e, t, r) {
|
|
597
|
+
return r === void 0 && (r = Ye), e.theme !== r.theme && e.theme || t || r.theme;
|
|
598
598
|
}
|
|
599
|
-
var
|
|
599
|
+
var Rn = /* @__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"]), jo = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Yo = /(^-|-$)/g;
|
|
600
600
|
function Yr(e) {
|
|
601
|
-
return e.replace(
|
|
601
|
+
return e.replace(jo, "-").replace(Yo, "");
|
|
602
602
|
}
|
|
603
|
-
var
|
|
603
|
+
var qo = /(a)(d)/gi, Et = 52, qr = function(e) {
|
|
604
604
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
605
605
|
};
|
|
606
606
|
function mr(e) {
|
|
607
607
|
var t, r = "";
|
|
608
608
|
for (t = Math.abs(e); t > Et; t = t / Et | 0) r = qr(t % Et) + r;
|
|
609
|
-
return (qr(t % Et) + r).replace(
|
|
609
|
+
return (qr(t % Et) + r).replace(qo, "$1-$2");
|
|
610
610
|
}
|
|
611
|
-
var tr,
|
|
611
|
+
var tr, kn = 5381, Be = function(e, t) {
|
|
612
612
|
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
613
613
|
return e;
|
|
614
|
-
},
|
|
615
|
-
return
|
|
614
|
+
}, On = function(e) {
|
|
615
|
+
return Be(kn, e);
|
|
616
616
|
};
|
|
617
|
-
function
|
|
618
|
-
return mr(
|
|
617
|
+
function Ko(e) {
|
|
618
|
+
return mr(On(e) >>> 0);
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function Xo(e) {
|
|
621
621
|
return e.displayName || e.name || "Component";
|
|
622
622
|
}
|
|
623
623
|
function rr(e) {
|
|
624
624
|
return typeof e == "string" && !0;
|
|
625
625
|
}
|
|
626
|
-
var
|
|
626
|
+
var Pn = typeof Symbol == "function" && Symbol.for, Nn = Pn ? Symbol.for("react.memo") : 60115, Zo = Pn ? Symbol.for("react.forward_ref") : 60112, Qo = { 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 }, $n = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, ea = ((tr = {})[Zo] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, tr[Nn] = $n, tr);
|
|
627
627
|
function Kr(e) {
|
|
628
|
-
return ("type" in (t = e) && t.type.$$typeof) ===
|
|
628
|
+
return ("type" in (t = e) && t.type.$$typeof) === Nn ? $n : "$$typeof" in e ? ea[e.$$typeof] : Qo;
|
|
629
629
|
var t;
|
|
630
630
|
}
|
|
631
|
-
var
|
|
632
|
-
function
|
|
631
|
+
var ta = Object.defineProperty, ra = Object.getOwnPropertyNames, Xr = Object.getOwnPropertySymbols, na = Object.getOwnPropertyDescriptor, oa = Object.getPrototypeOf, Zr = Object.prototype;
|
|
632
|
+
function Dn(e, t, r) {
|
|
633
633
|
if (typeof t != "string") {
|
|
634
634
|
if (Zr) {
|
|
635
|
-
var n =
|
|
636
|
-
n && n !== Zr &&
|
|
635
|
+
var n = oa(t);
|
|
636
|
+
n && n !== Zr && Dn(e, n, r);
|
|
637
637
|
}
|
|
638
|
-
var o =
|
|
638
|
+
var o = ra(t);
|
|
639
639
|
Xr && (o = o.concat(Xr(t)));
|
|
640
640
|
for (var i = Kr(e), s = Kr(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 = na(t, u);
|
|
644
644
|
try {
|
|
645
|
-
|
|
645
|
+
ta(e, u, m);
|
|
646
646
|
} catch {
|
|
647
647
|
}
|
|
648
648
|
}
|
|
@@ -680,7 +680,7 @@ function Ie(e) {
|
|
|
680
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 aa = (function() {
|
|
684
684
|
function e(t) {
|
|
685
685
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
686
686
|
}
|
|
@@ -711,41 +711,41 @@ var Jo = (function() {
|
|
|
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
|
+
}, ia = function(e, t) {
|
|
715
715
|
Rt = t + 1, It.set(e, t), $t.set(t, e);
|
|
716
|
-
},
|
|
716
|
+
}, sa = "style[".concat(je, "][").concat(In, '="').concat(Bt, '"]'), la = new RegExp("^".concat(je, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ca = function(e, t, r) {
|
|
717
717
|
for (var n, o = r.split(","), i = 0, s = o.length; i < s; i++) (n = o[i]) && e.registerName(t, n);
|
|
718
|
-
},
|
|
718
|
+
}, ua = function(e, t) {
|
|
719
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
720
|
var d = n[i].trim();
|
|
721
721
|
if (d) {
|
|
722
|
-
var u = d.match(
|
|
722
|
+
var u = d.match(la);
|
|
723
723
|
if (u) {
|
|
724
724
|
var m = 0 | parseInt(u[1], 10), p = u[2];
|
|
725
|
-
m !== 0 && (
|
|
725
|
+
m !== 0 && (ia(p, m), ca(e, p, u[3]), e.getTag().insertRules(m, o)), o.length = 0;
|
|
726
726
|
} else o.push(d);
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
}, Jr = function(e) {
|
|
730
|
-
for (var t = document.querySelectorAll(
|
|
730
|
+
for (var t = document.querySelectorAll(sa), r = 0, n = t.length; r < n; r++) {
|
|
731
731
|
var o = t[r];
|
|
732
|
-
o && o.getAttribute(
|
|
732
|
+
o && o.getAttribute(je) !== _n && (ua(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
733
733
|
}
|
|
734
734
|
};
|
|
735
|
-
function
|
|
735
|
+
function da() {
|
|
736
736
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
737
737
|
}
|
|
738
|
-
var
|
|
738
|
+
var Ln = function(e) {
|
|
739
739
|
var t = document.head, r = e || t, n = document.createElement("style"), o = (function(d) {
|
|
740
|
-
var u = Array.from(d.querySelectorAll("style[".concat(
|
|
740
|
+
var u = Array.from(d.querySelectorAll("style[".concat(je, "]")));
|
|
741
741
|
return u[u.length - 1];
|
|
742
742
|
})(r), i = o !== void 0 ? o.nextSibling : null;
|
|
743
|
-
n.setAttribute(
|
|
744
|
-
var s =
|
|
743
|
+
n.setAttribute(je, _n), n.setAttribute(In, Bt);
|
|
744
|
+
var s = da();
|
|
745
745
|
return s && n.setAttribute("nonce", s), r.insertBefore(n, i), n;
|
|
746
|
-
},
|
|
746
|
+
}, fa = (function() {
|
|
747
747
|
function e(t) {
|
|
748
|
-
this.element =
|
|
748
|
+
this.element = Ln(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(r) {
|
|
749
749
|
if (r.sheet) return r.sheet;
|
|
750
750
|
for (var n = document.styleSheets, o = 0, i = n.length; o < i; o++) {
|
|
751
751
|
var s = n[o];
|
|
@@ -766,9 +766,9 @@ var Dn = function(e) {
|
|
|
766
766
|
var r = this.sheet.cssRules[t];
|
|
767
767
|
return r && r.cssText ? r.cssText : "";
|
|
768
768
|
}, e;
|
|
769
|
-
})(),
|
|
769
|
+
})(), ma = (function() {
|
|
770
770
|
function e(t) {
|
|
771
|
-
this.element =
|
|
771
|
+
this.element = Ln(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
772
772
|
}
|
|
773
773
|
return e.prototype.insertRule = function(t, r) {
|
|
774
774
|
if (t <= this.length && t >= 0) {
|
|
@@ -781,7 +781,7 @@ var Dn = function(e) {
|
|
|
781
781
|
}, e.prototype.getRule = function(t) {
|
|
782
782
|
return t < this.length ? this.nodes[t].textContent : "";
|
|
783
783
|
}, e;
|
|
784
|
-
})(),
|
|
784
|
+
})(), ha = (function() {
|
|
785
785
|
function e(t) {
|
|
786
786
|
this.rules = [], this.length = 0;
|
|
787
787
|
}
|
|
@@ -792,21 +792,21 @@ var Dn = function(e) {
|
|
|
792
792
|
}, e.prototype.getRule = function(t) {
|
|
793
793
|
return t < this.length ? this.rules[t] : "";
|
|
794
794
|
}, e;
|
|
795
|
-
})(), en = Nt,
|
|
795
|
+
})(), en = Nt, pa = { isServer: !Nt, useCSSOMInjection: !Vo }, Mn = (function() {
|
|
796
796
|
function e(t, r, n) {
|
|
797
|
-
t === void 0 && (t =
|
|
797
|
+
t === void 0 && (t = Ye), r === void 0 && (r = {});
|
|
798
798
|
var o = this;
|
|
799
|
-
this.options = V(V({},
|
|
799
|
+
this.options = V(V({}, pa), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && Nt && en && (en = !1, Jr(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) {
|
|
803
803
|
return $t.get(D);
|
|
804
804
|
})(T);
|
|
805
805
|
if (w === void 0) return "continue";
|
|
806
|
-
var
|
|
807
|
-
if (
|
|
808
|
-
var $ = "".concat(
|
|
809
|
-
|
|
806
|
+
var E = i.names.get(w), A = s.getGroup(T);
|
|
807
|
+
if (E === void 0 || !E.size || A.length === 0) return "continue";
|
|
808
|
+
var $ = "".concat(je, ".g").concat(T, '[id="').concat(w, '"]'), G = "";
|
|
809
|
+
E !== void 0 && E.forEach(function(D) {
|
|
810
810
|
D.length > 0 && (G += "".concat(D, ","));
|
|
811
811
|
}), u += "".concat(A).concat($, '{content:"').concat(G, '"}').concat(Sr);
|
|
812
812
|
}, p = 0; p < d; p++) m(p);
|
|
@@ -825,8 +825,8 @@ var Dn = function(e) {
|
|
|
825
825
|
}, e.prototype.getTag = function() {
|
|
826
826
|
return this.tag || (this.tag = (t = (function(r) {
|
|
827
827
|
var n = r.useCSSOMInjection, o = r.target;
|
|
828
|
-
return r.isServer ? new
|
|
829
|
-
})(this.options), new
|
|
828
|
+
return r.isServer ? new ha(o) : n ? new fa(o) : new ma(o);
|
|
829
|
+
})(this.options), new aa(t)));
|
|
830
830
|
var t;
|
|
831
831
|
}, e.prototype.hasNameForId = function(t, r) {
|
|
832
832
|
return this.names.has(t) && this.names.get(t).has(r);
|
|
@@ -845,41 +845,41 @@ var Dn = function(e) {
|
|
|
845
845
|
}, e.prototype.clearTag = function() {
|
|
846
846
|
this.tag = void 0;
|
|
847
847
|
}, e;
|
|
848
|
-
})(),
|
|
849
|
-
function
|
|
848
|
+
})(), ga = /&/g, ba = /^\s*\/\/.*$/gm;
|
|
849
|
+
function Fn(e, t) {
|
|
850
850
|
return e.map(function(r) {
|
|
851
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
852
|
return "".concat(t, " ").concat(n);
|
|
853
|
-
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children =
|
|
853
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = Fn(r.children, t)), r;
|
|
854
854
|
});
|
|
855
855
|
}
|
|
856
|
-
function
|
|
857
|
-
var t, r, n, o =
|
|
856
|
+
function ya(e) {
|
|
857
|
+
var t, r, n, o = Ye, i = o.options, s = i === void 0 ? Ye : i, d = o.plugins, u = d === void 0 ? Ut : d, m = function(w, E, A) {
|
|
858
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(
|
|
863
|
-
var T = function(w,
|
|
864
|
-
|
|
865
|
-
var G = w.replace(
|
|
866
|
-
s.namespace && (D =
|
|
861
|
+
w.type === Lt && w.value.includes("&") && (w.props[0] = w.props[0].replace(ga, r).replace(n, m));
|
|
862
|
+
}), s.prefix && p.push(Wo), p.push(zo);
|
|
863
|
+
var T = function(w, E, A, $) {
|
|
864
|
+
E === void 0 && (E = ""), A === void 0 && (A = ""), $ === void 0 && ($ = "&"), t = $, r = E, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
865
|
+
var G = w.replace(ba, ""), D = Mo(A || E ? "".concat(A, " ").concat(E, " { ").concat(G, " }") : G);
|
|
866
|
+
s.namespace && (D = Fn(D, s.namespace));
|
|
867
867
|
var O = [];
|
|
868
|
-
return Pt(D,
|
|
868
|
+
return Pt(D, Bo(p.concat(Uo(function(_) {
|
|
869
869
|
return O.push(_);
|
|
870
870
|
})))), O;
|
|
871
871
|
};
|
|
872
|
-
return T.hash = u.length ? u.reduce(function(w,
|
|
873
|
-
return
|
|
874
|
-
},
|
|
872
|
+
return T.hash = u.length ? u.reduce(function(w, E) {
|
|
873
|
+
return E.name || Ie(15), Be(w, E.name);
|
|
874
|
+
}, kn).toString() : "", T;
|
|
875
875
|
}
|
|
876
|
-
var
|
|
877
|
-
|
|
876
|
+
var va = new Mn(), pr = ya(), zn = l.createContext({ shouldForwardProp: void 0, styleSheet: va, stylis: pr });
|
|
877
|
+
zn.Consumer;
|
|
878
878
|
l.createContext(void 0);
|
|
879
879
|
function tn() {
|
|
880
|
-
return
|
|
880
|
+
return Eo(zn);
|
|
881
881
|
}
|
|
882
|
-
var
|
|
882
|
+
var Ea = (function() {
|
|
883
883
|
function e(t, r) {
|
|
884
884
|
var n = this;
|
|
885
885
|
this.inject = function(o, i) {
|
|
@@ -893,29 +893,29 @@ var ha = (function() {
|
|
|
893
893
|
return e.prototype.getName = function(t) {
|
|
894
894
|
return t === void 0 && (t = pr), this.name + t.hash;
|
|
895
895
|
}, e;
|
|
896
|
-
})(),
|
|
896
|
+
})(), Sa = function(e) {
|
|
897
897
|
return e >= "A" && e <= "Z";
|
|
898
898
|
};
|
|
899
899
|
function rn(e) {
|
|
900
900
|
for (var t = "", r = 0; r < e.length; r++) {
|
|
901
901
|
var n = e[r];
|
|
902
902
|
if (r === 1 && n === "-" && e[0] === "-") return e;
|
|
903
|
-
|
|
903
|
+
Sa(n) ? t += "-" + n.toLowerCase() : t += n;
|
|
904
904
|
}
|
|
905
905
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
906
906
|
}
|
|
907
|
-
var
|
|
907
|
+
var Bn = function(e) {
|
|
908
908
|
return e == null || e === !1 || e === "";
|
|
909
|
-
},
|
|
909
|
+
}, Un = function(e) {
|
|
910
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) && !Bn(i) && (Array.isArray(i) && i.isCss || _e(i) ? n.push("".concat(rn(o), ":"), i, ";") : dt(i) ? n.push.apply(n, Ot(Ot(["".concat(o, " {")], Un(i), !1), ["}"], !1)) : n.push("".concat(rn(o), ": ").concat((t = o, (r = i) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in Ho || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
914
914
|
}
|
|
915
915
|
return n;
|
|
916
916
|
};
|
|
917
917
|
function Ae(e, t, r, n) {
|
|
918
|
-
if (
|
|
918
|
+
if (Bn(e)) return [];
|
|
919
919
|
if (Tr(e)) return [".".concat(e.styledComponentId)];
|
|
920
920
|
if (_e(e)) {
|
|
921
921
|
if (!_e(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
|
|
@@ -923,26 +923,26 @@ function Ae(e, t, r, n) {
|
|
|
923
923
|
return Ae(o, t, r, n);
|
|
924
924
|
}
|
|
925
925
|
var i;
|
|
926
|
-
return e instanceof
|
|
926
|
+
return e instanceof Ea ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : dt(e) ? Un(e) : Array.isArray(e) ? Array.prototype.concat.apply(Ut, e.map(function(s) {
|
|
927
927
|
return Ae(s, t, r, n);
|
|
928
928
|
})) : [e.toString()];
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function Ta(e) {
|
|
931
931
|
for (var t = 0; t < e.length; t += 1) {
|
|
932
932
|
var r = e[t];
|
|
933
933
|
if (_e(r) && !Tr(r)) return !1;
|
|
934
934
|
}
|
|
935
935
|
return !0;
|
|
936
936
|
}
|
|
937
|
-
var
|
|
937
|
+
var wa = On(Bt), xa = (function() {
|
|
938
938
|
function e(t, r, n) {
|
|
939
|
-
this.rules = t, this.staticRulesId = "", this.isStatic = (n === void 0 || n.isStatic) &&
|
|
939
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = (n === void 0 || n.isStatic) && Ta(t), this.componentId = r, this.baseHash = Be(wa, r), this.baseStyle = n, Mn.registerId(r);
|
|
940
940
|
}
|
|
941
941
|
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
942
942
|
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
943
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 = Qr(Ae(this.rules, t, r, n)), s = mr(
|
|
945
|
+
var i = Qr(Ae(this.rules, t, r, n)), s = mr(Be(this.baseHash, i) >>> 0);
|
|
946
946
|
if (!r.hasNameForId(this.componentId, s)) {
|
|
947
947
|
var d = n(i, ".".concat(s), void 0, this.componentId);
|
|
948
948
|
r.insertRules(this.componentId, s, d);
|
|
@@ -950,25 +950,25 @@ var ba = kn(Bt), ya = (function() {
|
|
|
950
950
|
o = we(o, s), this.staticRulesId = s;
|
|
951
951
|
}
|
|
952
952
|
else {
|
|
953
|
-
for (var u =
|
|
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
957
|
var w = Qr(Ae(T, t, r, n));
|
|
958
|
-
u =
|
|
958
|
+
u = Be(u, w + p), m += w;
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
if (m) {
|
|
962
|
-
var
|
|
963
|
-
r.hasNameForId(this.componentId,
|
|
962
|
+
var E = mr(u >>> 0);
|
|
963
|
+
r.hasNameForId(this.componentId, E) || r.insertRules(this.componentId, E, n(m, ".".concat(E), void 0, this.componentId)), o = we(o, E);
|
|
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), r =
|
|
970
|
+
function Ca(e) {
|
|
971
|
+
var t = l.useContext(Dt), r = le(function() {
|
|
972
972
|
return (function(n, o) {
|
|
973
973
|
if (!n) throw Ie(14);
|
|
974
974
|
if (_e(n)) {
|
|
@@ -982,15 +982,15 @@ function va(e) {
|
|
|
982
982
|
return e.children ? l.createElement(Dt.Provider, { value: r }, e.children) : null;
|
|
983
983
|
}
|
|
984
984
|
var nr = {};
|
|
985
|
-
function
|
|
985
|
+
function Aa(e, t, r) {
|
|
986
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
987
|
var x = typeof b != "string" ? "sc" : Yr(b);
|
|
988
988
|
nr[x] = (nr[x] || 0) + 1;
|
|
989
|
-
var y = "".concat(x, "-").concat(
|
|
989
|
+
var y = "".concat(x, "-").concat(Ko(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 rr(b) ? "styled.".concat(b) : "Styled(".concat(
|
|
993
|
-
})(e) : p, w = t.displayName && t.componentId ? "".concat(Yr(t.displayName), "-").concat(t.componentId) : t.componentId || m,
|
|
992
|
+
return rr(b) ? "styled.".concat(b) : "Styled(".concat(Xo(b), ")");
|
|
993
|
+
})(e) : p, w = t.displayName && t.componentId ? "".concat(Yr(t.displayName), "-").concat(t.componentId) : t.componentId || m, E = n && o.attrs ? o.attrs.concat(d).filter(Boolean) : d, A = t.shouldForwardProp;
|
|
994
994
|
if (n && o.shouldForwardProp) {
|
|
995
995
|
var $ = o.shouldForwardProp;
|
|
996
996
|
if (t.shouldForwardProp) {
|
|
@@ -1000,37 +1000,37 @@ function Ea(e, t, r) {
|
|
|
1000
1000
|
};
|
|
1001
1001
|
} else A = $;
|
|
1002
1002
|
}
|
|
1003
|
-
var D = new
|
|
1003
|
+
var D = new xa(r, w, n ? o.componentStyle : void 0);
|
|
1004
1004
|
function O(b, R) {
|
|
1005
1005
|
return (function(x, y, pe) {
|
|
1006
|
-
var
|
|
1007
|
-
for (var be, re = V(V({}, te), { className: void 0, theme: ge }),
|
|
1008
|
-
var Ee = _e(be = I[
|
|
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 = tn(), Je = x.shouldForwardProp || Vt.shouldForwardProp, et = Go(y, Ht, U) || Ye, 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 = _e(be = I[Pe]) ? be(re) : be;
|
|
1009
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
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
1015
|
var ge = tn(), be = I.generateAndInjectStyles(te, ge.styleSheet, ge.stylis);
|
|
1016
1016
|
return be;
|
|
1017
|
-
})(Wt, J),
|
|
1018
|
-
return L && (
|
|
1017
|
+
})(Wt, J), Oe = we(Xe, Ze);
|
|
1018
|
+
return L && (Oe += " " + L), J.className && (Oe += " " + J.className), P[rr(ve) && !Rn.has(ve) ? "class" : "className"] = Oe, pe && (P.ref = pe), vo(ve, P);
|
|
1019
1019
|
})(_, b, R);
|
|
1020
1020
|
}
|
|
1021
1021
|
O.displayName = T;
|
|
1022
1022
|
var _ = l.forwardRef(O);
|
|
1023
|
-
return _.attrs =
|
|
1023
|
+
return _.attrs = E, _.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
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,
|
|
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 && Dn(_, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), _;
|
|
1034
1034
|
}
|
|
1035
1035
|
function nn(e, t) {
|
|
1036
1036
|
for (var r = [e[0]], n = 0, o = t.length; n < o; n += 1) r.push(t[n], e[n + 1]);
|
|
@@ -1039,17 +1039,17 @@ function nn(e, t) {
|
|
|
1039
1039
|
var on = function(e) {
|
|
1040
1040
|
return Object.assign(e, { isCss: !0 });
|
|
1041
1041
|
};
|
|
1042
|
-
function
|
|
1042
|
+
function _a(e) {
|
|
1043
1043
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1044
1044
|
if (_e(e) || dt(e)) return on(Ae(nn(Ut, Ot([e], t, !0))));
|
|
1045
1045
|
var n = e;
|
|
1046
1046
|
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? Ae(n) : on(Ae(nn(n, t)));
|
|
1047
1047
|
}
|
|
1048
1048
|
function gr(e, t, r) {
|
|
1049
|
-
if (r === void 0 && (r =
|
|
1049
|
+
if (r === void 0 && (r = Ye), !t) throw Ie(1, t);
|
|
1050
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, r,
|
|
1052
|
+
return e(t, r, _a.apply(void 0, Ot([o], i, !1)));
|
|
1053
1053
|
};
|
|
1054
1054
|
return n.attrs = function(o) {
|
|
1055
1055
|
return gr(e, t, V(V({}, r), { attrs: Array.prototype.concat(r.attrs, o).filter(Boolean) }));
|
|
@@ -1057,13 +1057,13 @@ function gr(e, t, r) {
|
|
|
1057
1057
|
return gr(e, t, V(V({}, r), o));
|
|
1058
1058
|
}, n;
|
|
1059
1059
|
}
|
|
1060
|
-
var
|
|
1061
|
-
return gr(
|
|
1062
|
-
},
|
|
1063
|
-
|
|
1064
|
-
|
|
1060
|
+
var Wn = function(e) {
|
|
1061
|
+
return gr(Aa, e);
|
|
1062
|
+
}, v = Wn;
|
|
1063
|
+
Rn.forEach(function(e) {
|
|
1064
|
+
v[e] = Wn(e);
|
|
1065
1065
|
});
|
|
1066
|
-
const
|
|
1066
|
+
const Ue = {
|
|
1067
1067
|
// Main colors usually to be modified by the user
|
|
1068
1068
|
primary: "#422ad5",
|
|
1069
1069
|
// Primary brand color, The main color of your brand
|
|
@@ -1119,14 +1119,14 @@ const Be = {
|
|
|
1119
1119
|
// radio/checkbox item element width
|
|
1120
1120
|
spacing: ".3rem",
|
|
1121
1121
|
depth: 1
|
|
1122
|
-
},
|
|
1122
|
+
}, Ia = {
|
|
1123
1123
|
selectedVariant: "primary",
|
|
1124
1124
|
getDefaultVariantOrSelected: () => "primary",
|
|
1125
|
-
...
|
|
1126
|
-
},
|
|
1127
|
-
...
|
|
1128
|
-
...
|
|
1129
|
-
}),
|
|
1125
|
+
...Ue
|
|
1126
|
+
}, Hn = l.createContext({
|
|
1127
|
+
...Ue,
|
|
1128
|
+
...Ia
|
|
1129
|
+
}), Ra = v.div`
|
|
1130
1130
|
font-family:
|
|
1131
1131
|
ui-sans-serif,
|
|
1132
1132
|
system-ui,
|
|
@@ -1179,27 +1179,27 @@ const Be = {
|
|
|
1179
1179
|
--all-fields-size: ${(e) => e.$theme.allFieldsSize};
|
|
1180
1180
|
`, xr = (e) => {
|
|
1181
1181
|
const t = e.selectedVariant ?? "primary";
|
|
1182
|
-
return console.log("ThemeProvider_theme", e.theme ??
|
|
1183
|
-
theme: e.theme ??
|
|
1184
|
-
children: l.createElement(
|
|
1185
|
-
$theme: e.theme ??
|
|
1186
|
-
children: l.createElement(
|
|
1182
|
+
return console.log("ThemeProvider_theme", e.theme ?? Ue), l.createElement(Ca, {
|
|
1183
|
+
theme: e.theme ?? Ue,
|
|
1184
|
+
children: l.createElement(Ra, {
|
|
1185
|
+
$theme: e.theme ?? Ue,
|
|
1186
|
+
children: l.createElement(Hn.Provider, {
|
|
1187
1187
|
value: {
|
|
1188
1188
|
selectedVariant: t,
|
|
1189
1189
|
getDefaultVariantOrSelected: () => t,
|
|
1190
|
-
...e.theme ??
|
|
1190
|
+
...e.theme ?? Ue
|
|
1191
1191
|
},
|
|
1192
1192
|
children: e.children
|
|
1193
1193
|
})
|
|
1194
1194
|
})
|
|
1195
1195
|
});
|
|
1196
|
-
},
|
|
1197
|
-
const { getDefaultVariantOrSelected: t, ...r } =
|
|
1196
|
+
}, Vn = () => l.useContext(Hn), ce = (e) => {
|
|
1197
|
+
const { getDefaultVariantOrSelected: t, ...r } = Vn(), n = t();
|
|
1198
1198
|
return r[e ?? n];
|
|
1199
|
-
},
|
|
1200
|
-
const { getDefaultVariantOrSelected: t, ...r } =
|
|
1199
|
+
}, Gn = (e) => {
|
|
1200
|
+
const { getDefaultVariantOrSelected: t, ...r } = Vn(), n = t(), o = e ? `${e}Content` : `${n}Content`;
|
|
1201
1201
|
return r[o];
|
|
1202
|
-
},
|
|
1202
|
+
}, ka = () => {
|
|
1203
1203
|
const e = "http://localhost:4000/external", t = async (r) => {
|
|
1204
1204
|
const n = await r;
|
|
1205
1205
|
if (!n.ok)
|
|
@@ -1403,7 +1403,7 @@ const Be = {
|
|
|
1403
1403
|
]
|
|
1404
1404
|
}
|
|
1405
1405
|
]
|
|
1406
|
-
},
|
|
1406
|
+
}, Oa = (e, t) => new Promise((r) => {
|
|
1407
1407
|
r({
|
|
1408
1408
|
id: "",
|
|
1409
1409
|
domainId: "",
|
|
@@ -1446,16 +1446,16 @@ const Be = {
|
|
|
1446
1446
|
form: an
|
|
1447
1447
|
}
|
|
1448
1448
|
});
|
|
1449
|
-
}),
|
|
1450
|
-
const [t, r] =
|
|
1451
|
-
return
|
|
1449
|
+
}), Pa = (e) => {
|
|
1450
|
+
const [t, r] = We(), [n, o] = We(!0), [i, s] = We(null);
|
|
1451
|
+
return He(() => {
|
|
1452
1452
|
const d = new AbortController();
|
|
1453
1453
|
return o(!0), e(d).then(r).catch(s).finally(() => o(!1)), () => {
|
|
1454
1454
|
d.abort();
|
|
1455
1455
|
};
|
|
1456
1456
|
}, []), { data: t, loading: n, error: i };
|
|
1457
|
-
},
|
|
1458
|
-
const t =
|
|
1457
|
+
}, qe = v.button((e) => {
|
|
1458
|
+
const t = ce(), r = Gn(), 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 Be = {
|
|
|
1489
1489
|
paddingInline: "0.7rem"
|
|
1490
1490
|
}
|
|
1491
1491
|
};
|
|
1492
|
-
}),
|
|
1492
|
+
}), Na = v.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 Be = {
|
|
|
1508
1508
|
height: ${(e) => e.$isVisible ? "auto" : "0"};
|
|
1509
1509
|
width: ${(e) => e.$isVisible ? "auto" : "0"};
|
|
1510
1510
|
}
|
|
1511
|
-
`,
|
|
1512
|
-
const t =
|
|
1513
|
-
return
|
|
1511
|
+
`, jn = (e) => {
|
|
1512
|
+
const t = vn(null);
|
|
1513
|
+
return He(() => {
|
|
1514
1514
|
t.current && e.onSetMaxHeight(t.current.clientHeight);
|
|
1515
|
-
}, [t]), l.createElement(
|
|
1515
|
+
}, [t]), l.createElement(Na, {
|
|
1516
1516
|
ref: t,
|
|
1517
1517
|
$height: e.height,
|
|
1518
1518
|
$isVisible: e.isVisible,
|
|
1519
1519
|
children: e.children
|
|
1520
1520
|
});
|
|
1521
|
-
},
|
|
1521
|
+
}, $a = v.ul`
|
|
1522
1522
|
counter-reset: step;
|
|
1523
1523
|
grid-auto-columns: 1fr;
|
|
1524
1524
|
grid-auto-flow: column;
|
|
@@ -1527,8 +1527,8 @@ const Be = {
|
|
|
1527
1527
|
@media (max-width: 900px) {
|
|
1528
1528
|
display: none;
|
|
1529
1529
|
}
|
|
1530
|
-
`,
|
|
1531
|
-
const t =
|
|
1530
|
+
`, Da = v.li((e) => {
|
|
1531
|
+
const t = ce(e.colorVariant), r = Gn(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
1534
|
"--step-bg": n,
|
|
@@ -1569,10 +1569,10 @@ const Be = {
|
|
|
1569
1569
|
position: "relative"
|
|
1570
1570
|
}
|
|
1571
1571
|
};
|
|
1572
|
-
}),
|
|
1572
|
+
}), Yn = (e) => (console.log("props.currentStepIndex", e.currentStepIndex), l.createElement($a, {
|
|
1573
1573
|
children: [
|
|
1574
1574
|
e.steps.map(
|
|
1575
|
-
(t, r) => l.createElement(
|
|
1575
|
+
(t, r) => l.createElement(Da, {
|
|
1576
1576
|
key: t.title,
|
|
1577
1577
|
colorVariant: e.colorVariant,
|
|
1578
1578
|
shouldBeFilled: e.currentStepIndex >= r,
|
|
@@ -1580,7 +1580,7 @@ const Be = {
|
|
|
1580
1580
|
})
|
|
1581
1581
|
)
|
|
1582
1582
|
]
|
|
1583
|
-
})),
|
|
1583
|
+
})), La = {
|
|
1584
1584
|
title: {
|
|
1585
1585
|
marginTop: "0",
|
|
1586
1586
|
marginBottom: ".888889em",
|
|
@@ -1612,15 +1612,15 @@ const Be = {
|
|
|
1612
1612
|
marginBottom: "1.25em",
|
|
1613
1613
|
fontSize: "1rem"
|
|
1614
1614
|
}
|
|
1615
|
-
},
|
|
1616
|
-
...
|
|
1615
|
+
}, Ma = v.div((e) => ({
|
|
1616
|
+
...La[e.$variant ?? "paragraph"],
|
|
1617
1617
|
color: e.theme.baseContent,
|
|
1618
1618
|
...e.$linear ? { margin: "0" } : {}
|
|
1619
|
-
})),
|
|
1619
|
+
})), ae = (e) => l.createElement(Ma, {
|
|
1620
1620
|
$variant: e.variant,
|
|
1621
1621
|
$linear: e.linear,
|
|
1622
1622
|
children: e.children
|
|
1623
|
-
}),
|
|
1623
|
+
}), Fa = (e) => {
|
|
1624
1624
|
switch (e) {
|
|
1625
1625
|
case "textarea":
|
|
1626
1626
|
return "";
|
|
@@ -1639,8 +1639,8 @@ const Be = {
|
|
|
1639
1639
|
default:
|
|
1640
1640
|
return null;
|
|
1641
1641
|
}
|
|
1642
|
-
},
|
|
1643
|
-
const t =
|
|
1642
|
+
}, qn = (e) => {
|
|
1643
|
+
const t = le(
|
|
1644
1644
|
() => e.form.steps.reduce(
|
|
1645
1645
|
(s, d, u) => (s.validationsPerStep[u] = {}, s.steps = [
|
|
1646
1646
|
...s.steps,
|
|
@@ -1653,7 +1653,7 @@ const Be = {
|
|
|
1653
1653
|
validations: m.validations
|
|
1654
1654
|
}, s.state = {
|
|
1655
1655
|
...s.state,
|
|
1656
|
-
[p]:
|
|
1656
|
+
[p]: Fa(m.type)
|
|
1657
1657
|
}, {
|
|
1658
1658
|
dataField: p,
|
|
1659
1659
|
...m
|
|
@@ -1671,7 +1671,7 @@ const Be = {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
),
|
|
1673
1673
|
[e.form]
|
|
1674
|
-
), [r, n] =
|
|
1674
|
+
), [r, n] = We(t.state), o = xe(
|
|
1675
1675
|
(s, d) => {
|
|
1676
1676
|
s !== null && n((u) => ({
|
|
1677
1677
|
...u,
|
|
@@ -1690,19 +1690,19 @@ const Be = {
|
|
|
1690
1690
|
setStateByKey: o,
|
|
1691
1691
|
getStateByKey: i
|
|
1692
1692
|
};
|
|
1693
|
-
},
|
|
1693
|
+
}, za = ka(), Ba = (e, t) => za.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:
|
|
1696
|
+
entries: Kn,
|
|
1697
1697
|
setPrototypeOf: sn,
|
|
1698
|
-
isFrozen:
|
|
1699
|
-
getPrototypeOf:
|
|
1700
|
-
getOwnPropertyDescriptor:
|
|
1698
|
+
isFrozen: Ua,
|
|
1699
|
+
getPrototypeOf: Wa,
|
|
1700
|
+
getOwnPropertyDescriptor: Ha
|
|
1701
1701
|
} = Object;
|
|
1702
1702
|
let {
|
|
1703
1703
|
freeze: q,
|
|
1704
1704
|
seal: Q,
|
|
1705
|
-
create:
|
|
1705
|
+
create: Xn
|
|
1706
1706
|
} = Object, {
|
|
1707
1707
|
apply: br,
|
|
1708
1708
|
construct: yr
|
|
@@ -1723,7 +1723,7 @@ yr || (yr = function(t) {
|
|
|
1723
1723
|
n[o - 1] = arguments[o];
|
|
1724
1724
|
return new t(...n);
|
|
1725
1725
|
});
|
|
1726
|
-
const Tt = K(Array.prototype.forEach),
|
|
1726
|
+
const Tt = K(Array.prototype.forEach), Va = K(Array.prototype.lastIndexOf), ln = K(Array.prototype.pop), nt = K(Array.prototype.push), Ga = K(Array.prototype.splice), kt = K(String.prototype.toLowerCase), or = K(String.prototype.toString), ar = K(String.prototype.match), ot = K(String.prototype.replace), ja = K(String.prototype.indexOf), Ya = K(String.prototype.trim), ne = K(Object.prototype.hasOwnProperty), Y = K(RegExp.prototype.test), at = qa(TypeError);
|
|
1727
1727
|
function K(e) {
|
|
1728
1728
|
return function(t) {
|
|
1729
1729
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -1732,14 +1732,14 @@ function K(e) {
|
|
|
1732
1732
|
return br(e, t, n);
|
|
1733
1733
|
};
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function qa(e) {
|
|
1736
1736
|
return function() {
|
|
1737
1737
|
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
1738
1738
|
r[n] = arguments[n];
|
|
1739
1739
|
return yr(e, r);
|
|
1740
1740
|
};
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1742
|
+
function S(e, t) {
|
|
1743
1743
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : kt;
|
|
1744
1744
|
sn && sn(e, null);
|
|
1745
1745
|
let n = t.length;
|
|
@@ -1747,58 +1747,58 @@ function E(e, t) {
|
|
|
1747
1747
|
let o = t[n];
|
|
1748
1748
|
if (typeof o == "string") {
|
|
1749
1749
|
const i = r(o);
|
|
1750
|
-
i !== o && (
|
|
1750
|
+
i !== o && (Ua(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 Ka(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
|
-
function
|
|
1762
|
-
const t =
|
|
1763
|
-
for (const [r, n] of
|
|
1764
|
-
ne(e, r) && (Array.isArray(n) ? t[r] =
|
|
1761
|
+
function me(e) {
|
|
1762
|
+
const t = Xn(null);
|
|
1763
|
+
for (const [r, n] of Kn(e))
|
|
1764
|
+
ne(e, r) && (Array.isArray(n) ? t[r] = Ka(n) : n && typeof n == "object" && n.constructor === Object ? t[r] = me(n) : t[r] = n);
|
|
1765
1765
|
return t;
|
|
1766
1766
|
}
|
|
1767
1767
|
function it(e, t) {
|
|
1768
1768
|
for (; e !== null; ) {
|
|
1769
|
-
const n =
|
|
1769
|
+
const n = Ha(e, t);
|
|
1770
1770
|
if (n) {
|
|
1771
1771
|
if (n.get)
|
|
1772
1772
|
return K(n.get);
|
|
1773
1773
|
if (typeof n.value == "function")
|
|
1774
1774
|
return K(n.value);
|
|
1775
1775
|
}
|
|
1776
|
-
e =
|
|
1776
|
+
e = Wa(e);
|
|
1777
1777
|
}
|
|
1778
1778
|
function r() {
|
|
1779
1779
|
return null;
|
|
1780
1780
|
}
|
|
1781
1781
|
return r;
|
|
1782
1782
|
}
|
|
1783
|
-
const cn = 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"]),
|
|
1783
|
+
const cn = 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"]), Xa = 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"]), Za = q(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), un = q(["#text"]), dn = 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"]), fn = 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"]), Qa = Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ja = Q(/<%[\w\W]*|[\w\W]*%>/gm), ei = Q(/\$\{[\w\W]*/gm), ti = Q(/^data-[\-\w.\u00B7-\uFFFF]+$/), ri = Q(/^aria-[\-\w]+$/), Zn = 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
|
+
), ni = Q(/^(?:\w+script|data):/i), oi = Q(
|
|
1787
1787
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
1788
1788
|
// eslint-disable-line no-control-regex
|
|
1789
|
-
),
|
|
1789
|
+
), Qn = Q(/^html$/i), ai = Q(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
1790
1790
|
var mn = /* @__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: ri,
|
|
1793
|
+
ATTR_WHITESPACE: oi,
|
|
1794
|
+
CUSTOM_ELEMENT: ai,
|
|
1795
|
+
DATA_ATTR: ti,
|
|
1796
|
+
DOCTYPE_NAME: Qn,
|
|
1797
|
+
ERB_EXPR: Ja,
|
|
1798
|
+
IS_ALLOWED_URI: Zn,
|
|
1799
|
+
IS_SCRIPT_OR_DATA: ni,
|
|
1800
|
+
MUSTACHE_EXPR: Qa,
|
|
1801
|
+
TMPLIT_EXPR: ei
|
|
1802
1802
|
});
|
|
1803
1803
|
const st = {
|
|
1804
1804
|
element: 1,
|
|
@@ -1807,9 +1807,9 @@ const st = {
|
|
|
1807
1807
|
progressingInstruction: 7,
|
|
1808
1808
|
comment: 8,
|
|
1809
1809
|
document: 9
|
|
1810
|
-
},
|
|
1810
|
+
}, ii = function() {
|
|
1811
1811
|
return typeof window > "u" ? null : window;
|
|
1812
|
-
},
|
|
1812
|
+
}, si = function(t, r) {
|
|
1813
1813
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
1814
1814
|
return null;
|
|
1815
1815
|
let n = null;
|
|
@@ -1841,9 +1841,9 @@ 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 Jn() {
|
|
1845
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ii();
|
|
1846
|
+
const t = (h) => Jn(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 {
|
|
@@ -1858,7 +1858,7 @@ function Qn() {
|
|
|
1858
1858
|
NamedNodeMap: p = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
1859
1859
|
HTMLFormElement: T,
|
|
1860
1860
|
DOMParser: w,
|
|
1861
|
-
trustedTypes:
|
|
1861
|
+
trustedTypes: E
|
|
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
1864
|
const h = r.createElement("template");
|
|
@@ -1869,12 +1869,12 @@ function Qn() {
|
|
|
1869
1869
|
implementation: x,
|
|
1870
1870
|
createNodeIterator: y,
|
|
1871
1871
|
createDocumentFragment: pe,
|
|
1872
|
-
getElementsByTagName:
|
|
1872
|
+
getElementsByTagName: ke
|
|
1873
1873
|
} = r, {
|
|
1874
1874
|
importNode: Wt
|
|
1875
1875
|
} = n;
|
|
1876
1876
|
let U = hn();
|
|
1877
|
-
t.isSupported = typeof
|
|
1877
|
+
t.isSupported = typeof Kn == "function" && typeof _ == "function" && x && x.createHTMLDocument !== void 0;
|
|
1878
1878
|
const {
|
|
1879
1879
|
MUSTACHE_EXPR: Xe,
|
|
1880
1880
|
ERB_EXPR: Ze,
|
|
@@ -1888,10 +1888,10 @@ function Qn() {
|
|
|
1888
1888
|
let {
|
|
1889
1889
|
IS_ALLOWED_URI: ve
|
|
1890
1890
|
} = mn, P = null;
|
|
1891
|
-
const ee =
|
|
1891
|
+
const ee = S({}, [...cn, ...ir, ...sr, ...lr, ...un]);
|
|
1892
1892
|
let L = null;
|
|
1893
|
-
const
|
|
1894
|
-
let I = Object.seal(
|
|
1893
|
+
const Oe = S({}, [...dn, ...cr, ...fn, ...wt]);
|
|
1894
|
+
let I = Object.seal(Xn(null, {
|
|
1895
1895
|
tagNameCheck: {
|
|
1896
1896
|
writable: !0,
|
|
1897
1897
|
configurable: !1,
|
|
@@ -1910,46 +1910,46 @@ function Qn() {
|
|
|
1910
1910
|
enumerable: !0,
|
|
1911
1911
|
value: !1
|
|
1912
1912
|
}
|
|
1913
|
-
})), te = null, ge = null, be = !0, re = !0,
|
|
1914
|
-
const
|
|
1915
|
-
let Yt = !0, tt = !1,
|
|
1916
|
-
const _r =
|
|
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, Cr = !0, Ar = !1;
|
|
1914
|
+
const uo = "user-content-";
|
|
1915
|
+
let Yt = !0, tt = !1, $e = {}, De = null;
|
|
1916
|
+
const _r = S({}, ["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
1917
|
let Ir = null;
|
|
1918
|
-
const Rr =
|
|
1918
|
+
const Rr = S({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
1919
1919
|
let qt = null;
|
|
1920
|
-
const kr =
|
|
1921
|
-
let
|
|
1922
|
-
const
|
|
1923
|
-
let bt =
|
|
1924
|
-
const
|
|
1920
|
+
const kr = S({}, ["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", ue = "http://www.w3.org/1999/xhtml";
|
|
1921
|
+
let Le = ue, Kt = !1, Xt = null;
|
|
1922
|
+
const fo = S({}, [pt, gt, ue], or);
|
|
1923
|
+
let bt = S({}, ["mi", "mo", "mn", "ms", "mtext"]), yt = S({}, ["annotation-xml"]);
|
|
1924
|
+
const mo = S({}, ["title", "style", "font", "a", "script"]);
|
|
1925
1925
|
let rt = null;
|
|
1926
|
-
const
|
|
1927
|
-
let z = null,
|
|
1928
|
-
const
|
|
1926
|
+
const ho = ["application/xhtml+xml", "text/html"], po = "text/html";
|
|
1927
|
+
let z = null, Me = null;
|
|
1928
|
+
const go = r.createElement("form"), Or = 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
|
-
if (!(
|
|
1933
|
-
if ((!a || typeof a != "object") && (a = {}), a =
|
|
1934
|
-
|
|
1932
|
+
if (!(Me && Me === a)) {
|
|
1933
|
+
if ((!a || typeof a != "object") && (a = {}), a = me(a), rt = // eslint-disable-next-line unicorn/prefer-includes
|
|
1934
|
+
ho.indexOf(a.PARSER_MEDIA_TYPE) === -1 ? po : a.PARSER_MEDIA_TYPE, z = rt === "application/xhtml+xml" ? or : kt, P = ne(a, "ALLOWED_TAGS") ? S({}, a.ALLOWED_TAGS, z) : ee, L = ne(a, "ALLOWED_ATTR") ? S({}, a.ALLOWED_ATTR, z) : Oe, Xt = ne(a, "ALLOWED_NAMESPACES") ? S({}, a.ALLOWED_NAMESPACES, or) : fo, qt = ne(a, "ADD_URI_SAFE_ATTR") ? S(me(kr), a.ADD_URI_SAFE_ATTR, z) : kr, Ir = ne(a, "ADD_DATA_URI_TAGS") ? S(me(Rr), a.ADD_DATA_URI_TAGS, z) : Rr, De = ne(a, "FORBID_CONTENTS") ? S({}, a.FORBID_CONTENTS, z) : _r, te = ne(a, "FORBID_TAGS") ? S({}, a.FORBID_TAGS, z) : me({}), ge = ne(a, "FORBID_ATTR") ? S({}, a.FORBID_ATTR, z) : me({}), $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, Cr = a.SANITIZE_DOM !== !1, Ar = a.SANITIZE_NAMED_PROPS || !1, Yt = a.KEEP_CONTENT !== !1, tt = a.IN_PLACE || !1, ve = a.ALLOWED_URI_REGEXP || Zn, Le = a.NAMESPACE || ue, bt = a.MATHML_TEXT_INTEGRATION_POINTS || bt, yt = a.HTML_INTEGRATION_POINTS || yt, I = a.CUSTOM_ELEMENT_HANDLING || {}, a.CUSTOM_ELEMENT_HANDLING && Or(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (I.tagNameCheck = a.CUSTOM_ELEMENT_HANDLING.tagNameCheck), a.CUSTOM_ELEMENT_HANDLING && Or(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 = S({}, un), L = [], $e.html === !0 && (S(P, cn), S(L, dn)), $e.svg === !0 && (S(P, ir), S(L, cr), S(L, wt)), $e.svgFilters === !0 && (S(P, sr), S(L, cr), S(L, wt)), $e.mathMl === !0 && (S(P, lr), S(L, fn), S(L, wt))), a.ADD_TAGS && (P === ee && (P = me(P)), S(P, a.ADD_TAGS, z)), a.ADD_ATTR && (L === Oe && (L = me(L)), S(L, a.ADD_ATTR, z)), a.ADD_URI_SAFE_ATTR && S(qt, a.ADD_URI_SAFE_ATTR, z), a.FORBID_CONTENTS && (De === _r && (De = me(De)), S(De, a.FORBID_CONTENTS, z)), Yt && (P["#text"] = !0), Se && S(P, ["html", "head", "body"]), P.table && (S(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 =
|
|
1942
|
-
q && q(a),
|
|
1941
|
+
b === void 0 && (b = si(E, o)), b !== null && typeof R == "string" && (R = b.createHTML(""));
|
|
1942
|
+
q && q(a), Me = a;
|
|
1943
1943
|
}
|
|
1944
|
-
}, Pr =
|
|
1944
|
+
}, Pr = S({}, [...ir, ...sr, ...Xa]), Nr = S({}, [...lr, ...Za]), bo = function(a) {
|
|
1945
1945
|
let c = _(a);
|
|
1946
1946
|
(!c || !c.tagName) && (c = {
|
|
1947
|
-
namespaceURI:
|
|
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 ===
|
|
1952
|
-
},
|
|
1951
|
+
return Xt[a.namespaceURI] ? a.namespaceURI === gt ? c.namespaceURI === ue ? f === "svg" : c.namespaceURI === pt ? f === "svg" && (N === "annotation-xml" || bt[N]) : !!Pr[f] : a.namespaceURI === pt ? c.namespaceURI === ue ? f === "math" : c.namespaceURI === gt ? f === "math" && yt[N] : !!Nr[f] : a.namespaceURI === ue ? c.namespaceURI === gt && !yt[N] || c.namespaceURI === pt && !bt[N] ? !1 : !Nr[f] && (mo[f] || !Pr[f]) : !!(rt === "application/xhtml+xml" && Xt[a.namespaceURI]) : !1;
|
|
1952
|
+
}, ie = function(a) {
|
|
1953
1953
|
nt(t.removed, {
|
|
1954
1954
|
element: a
|
|
1955
1955
|
});
|
|
@@ -1971,9 +1971,9 @@ function Qn() {
|
|
|
1971
1971
|
});
|
|
1972
1972
|
}
|
|
1973
1973
|
if (c.removeAttribute(a), a === "is")
|
|
1974
|
-
if (
|
|
1974
|
+
if (Ne || mt)
|
|
1975
1975
|
try {
|
|
1976
|
-
|
|
1976
|
+
ie(c);
|
|
1977
1977
|
} catch {
|
|
1978
1978
|
}
|
|
1979
1979
|
else
|
|
@@ -1989,22 +1989,22 @@ function Qn() {
|
|
|
1989
1989
|
const M = ar(a, /^[\r\n\t ]+/);
|
|
1990
1990
|
f = M && M[0];
|
|
1991
1991
|
}
|
|
1992
|
-
rt === "application/xhtml+xml" &&
|
|
1992
|
+
rt === "application/xhtml+xml" && Le === ue && (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
|
-
if (
|
|
1994
|
+
if (Le === ue)
|
|
1995
1995
|
try {
|
|
1996
1996
|
c = new w().parseFromString(N, rt);
|
|
1997
1997
|
} catch {
|
|
1998
1998
|
}
|
|
1999
1999
|
if (!c || !c.documentElement) {
|
|
2000
|
-
c = x.createDocument(
|
|
2000
|
+
c = x.createDocument(Le, "template", null);
|
|
2001
2001
|
try {
|
|
2002
2002
|
c.documentElement.innerHTML = Kt ? R : N;
|
|
2003
2003
|
} catch {
|
|
2004
2004
|
}
|
|
2005
2005
|
}
|
|
2006
2006
|
const H = c.body || c.documentElement;
|
|
2007
|
-
return a && f && H.insertBefore(r.createTextNode(f), H.childNodes[0] || null),
|
|
2007
|
+
return a && f && H.insertBefore(r.createTextNode(f), H.childNodes[0] || null), Le === ue ? ke.call(c, Se ? "html" : "body")[0] : Se ? c.documentElement : H;
|
|
2008
2008
|
}, Dr = function(a) {
|
|
2009
2009
|
return y.call(
|
|
2010
2010
|
a.ownerDocument || a,
|
|
@@ -2018,43 +2018,43 @@ function Qn() {
|
|
|
2018
2018
|
}, Lr = function(a) {
|
|
2019
2019
|
return typeof d == "function" && a instanceof d;
|
|
2020
2020
|
};
|
|
2021
|
-
function
|
|
2021
|
+
function de(h, a, c) {
|
|
2022
2022
|
Tt(h, (f) => {
|
|
2023
|
-
f.call(t, a, c,
|
|
2023
|
+
f.call(t, a, c, Me);
|
|
2024
2024
|
});
|
|
2025
2025
|
}
|
|
2026
2026
|
const Mr = function(a) {
|
|
2027
2027
|
let c = null;
|
|
2028
|
-
if (
|
|
2029
|
-
return
|
|
2028
|
+
if (de(U.beforeSanitizeElements, a, null), Qt(a))
|
|
2029
|
+
return ie(a), !0;
|
|
2030
2030
|
const f = z(a.nodeName);
|
|
2031
|
-
if (
|
|
2031
|
+
if (de(U.uponSanitizeElement, a, {
|
|
2032
2032
|
tagName: f,
|
|
2033
2033
|
allowedTags: P
|
|
2034
2034
|
}), ft && a.hasChildNodes() && !Lr(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
|
-
return
|
|
2035
|
+
return ie(a), !0;
|
|
2036
2036
|
if (!P[f] || te[f]) {
|
|
2037
2037
|
if (!te[f] && zr(f) && (I.tagNameCheck instanceof RegExp && Y(I.tagNameCheck, f) || I.tagNameCheck instanceof Function && I.tagNameCheck(f)))
|
|
2038
2038
|
return !1;
|
|
2039
|
-
if (Yt &&
|
|
2039
|
+
if (Yt && !De[f]) {
|
|
2040
2040
|
const N = _(a) || a.parentNode, H = O(a) || a.childNodes;
|
|
2041
2041
|
if (H && N) {
|
|
2042
2042
|
const M = H.length;
|
|
2043
2043
|
for (let X = M - 1; X >= 0; --X) {
|
|
2044
|
-
const
|
|
2045
|
-
|
|
2044
|
+
const fe = $(H[X], !0);
|
|
2045
|
+
fe.__removalCount = (a.__removalCount || 0) + 1, N.insertBefore(fe, D(a));
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
|
-
return
|
|
2049
|
+
return ie(a), !0;
|
|
2050
2050
|
}
|
|
2051
|
-
return a instanceof u && !
|
|
2051
|
+
return a instanceof u && !bo(a) || (f === "noscript" || f === "noembed" || f === "noframes") && Y(/<\/no(script|embed|frames)/i, a.innerHTML) ? (ie(a), !0) : (j && a.nodeType === st.text && (c = a.textContent, Tt([Xe, Ze, Qe], (N) => {
|
|
2052
2052
|
c = ot(c, N, " ");
|
|
2053
2053
|
}), a.textContent !== c && (nt(t.removed, {
|
|
2054
2054
|
element: a.cloneNode()
|
|
2055
|
-
}), a.textContent = c)),
|
|
2055
|
+
}), a.textContent = c)), de(U.afterSanitizeElements, a, null), !1);
|
|
2056
2056
|
}, Fr = function(a, c, f) {
|
|
2057
|
-
if (Cr && (c === "id" || c === "name") && (f in r || f in
|
|
2057
|
+
if (Cr && (c === "id" || c === "name") && (f in r || f in go))
|
|
2058
2058
|
return !1;
|
|
2059
2059
|
if (!(re && !ge[c] && Y(Ht, c))) {
|
|
2060
2060
|
if (!(be && Y(Vt, c))) {
|
|
@@ -2069,8 +2069,8 @@ function Qn() {
|
|
|
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" &&
|
|
2073
|
-
if (!(
|
|
2072
|
+
if (!((c === "src" || c === "xlink:href" || c === "href") && a !== "script" && ja(f, "data:") === 0 && Ir[a])) {
|
|
2073
|
+
if (!(Pe && !Y(Je, ot(f, et, "")))) {
|
|
2074
2074
|
if (f)
|
|
2075
2075
|
return !1;
|
|
2076
2076
|
}
|
|
@@ -2083,7 +2083,7 @@ function Qn() {
|
|
|
2083
2083
|
}, zr = function(a) {
|
|
2084
2084
|
return a !== "annotation-xml" && ar(a, J);
|
|
2085
2085
|
}, Br = function(a) {
|
|
2086
|
-
|
|
2086
|
+
de(U.beforeSanitizeAttributes, a, null);
|
|
2087
2087
|
const {
|
|
2088
2088
|
attributes: c
|
|
2089
2089
|
} = a;
|
|
@@ -2101,14 +2101,14 @@ function Qn() {
|
|
|
2101
2101
|
const H = c[N], {
|
|
2102
2102
|
name: M,
|
|
2103
2103
|
namespaceURI: X,
|
|
2104
|
-
value:
|
|
2105
|
-
} = H,
|
|
2106
|
-
let W = M === "value" ? Jt :
|
|
2107
|
-
if (f.attrName =
|
|
2104
|
+
value: fe
|
|
2105
|
+
} = H, Fe = z(M), Jt = fe;
|
|
2106
|
+
let W = M === "value" ? Jt : Ya(Jt);
|
|
2107
|
+
if (f.attrName = Fe, f.attrValue = W, f.keepAttr = !0, f.forceKeepAttr = void 0, de(U.uponSanitizeAttribute, a, f), W = f.attrValue, Ar && (Fe === "id" || Fe === "name") && (Te(M, a), W = uo + W), ft && Y(/((--!?|])>)|<\/(style|title|textarea)/i, W)) {
|
|
2108
2108
|
Te(M, a);
|
|
2109
2109
|
continue;
|
|
2110
2110
|
}
|
|
2111
|
-
if (
|
|
2111
|
+
if (Fe === "attributename" && ar(W, "href")) {
|
|
2112
2112
|
Te(M, a);
|
|
2113
2113
|
continue;
|
|
2114
2114
|
}
|
|
@@ -2126,12 +2126,12 @@ function Qn() {
|
|
|
2126
2126
|
W = ot(W, Wr, " ");
|
|
2127
2127
|
});
|
|
2128
2128
|
const Ur = z(a.nodeName);
|
|
2129
|
-
if (!Fr(Ur,
|
|
2129
|
+
if (!Fr(Ur, Fe, W)) {
|
|
2130
2130
|
Te(M, a);
|
|
2131
2131
|
continue;
|
|
2132
2132
|
}
|
|
2133
|
-
if (b && typeof
|
|
2134
|
-
switch (
|
|
2133
|
+
if (b && typeof E == "object" && typeof E.getAttributeType == "function" && !X)
|
|
2134
|
+
switch (E.getAttributeType(Ur, Fe)) {
|
|
2135
2135
|
case "TrustedHTML": {
|
|
2136
2136
|
W = b.createHTML(W);
|
|
2137
2137
|
break;
|
|
@@ -2143,18 +2143,18 @@ function Qn() {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
if (W !== Jt)
|
|
2145
2145
|
try {
|
|
2146
|
-
X ? a.setAttributeNS(X, M, W) : a.setAttribute(M, W), Qt(a) ?
|
|
2146
|
+
X ? a.setAttributeNS(X, M, W) : a.setAttribute(M, W), Qt(a) ? ie(a) : ln(t.removed);
|
|
2147
2147
|
} catch {
|
|
2148
2148
|
Te(M, a);
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
|
-
|
|
2152
|
-
},
|
|
2151
|
+
de(U.afterSanitizeAttributes, a, null);
|
|
2152
|
+
}, yo = function h(a) {
|
|
2153
2153
|
let c = null;
|
|
2154
2154
|
const f = Dr(a);
|
|
2155
|
-
for (
|
|
2156
|
-
|
|
2157
|
-
|
|
2155
|
+
for (de(U.beforeSanitizeShadowDOM, a, null); c = f.nextNode(); )
|
|
2156
|
+
de(U.uponSanitizeShadowNode, c, null), Mr(c), Br(c), c.content instanceof i && h(c.content);
|
|
2157
|
+
de(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;
|
|
@@ -2168,26 +2168,26 @@ function Qn() {
|
|
|
2168
2168
|
return h;
|
|
2169
2169
|
if (Gt || Zt(a), t.removed = [], typeof h == "string" && (tt = !1), tt) {
|
|
2170
2170
|
if (h.nodeName) {
|
|
2171
|
-
const
|
|
2172
|
-
if (!P[
|
|
2171
|
+
const fe = z(h.nodeName);
|
|
2172
|
+
if (!P[fe] || te[fe])
|
|
2173
2173
|
throw at("root node is forbidden and cannot be sanitized in-place");
|
|
2174
2174
|
}
|
|
2175
2175
|
} else if (h instanceof d)
|
|
2176
2176
|
c = $r("<!---->"), 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
|
-
if (!
|
|
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
2181
|
if (c = $r(h), !c)
|
|
2182
|
-
return
|
|
2182
|
+
return Ne ? null : ht ? R : "";
|
|
2183
2183
|
}
|
|
2184
|
-
c && jt &&
|
|
2184
|
+
c && jt && ie(c.firstChild);
|
|
2185
2185
|
const M = Dr(tt ? h : c);
|
|
2186
2186
|
for (; N = M.nextNode(); )
|
|
2187
|
-
Mr(N), Br(N), N.content instanceof i &&
|
|
2187
|
+
Mr(N), Br(N), N.content instanceof i && yo(N.content);
|
|
2188
2188
|
if (tt)
|
|
2189
2189
|
return h;
|
|
2190
|
-
if (
|
|
2190
|
+
if (Ne) {
|
|
2191
2191
|
if (mt)
|
|
2192
2192
|
for (H = pe.call(c.ownerDocument); c.firstChild; )
|
|
2193
2193
|
H.appendChild(c.firstChild);
|
|
@@ -2196,25 +2196,25 @@ function Qn() {
|
|
|
2196
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(
|
|
2200
|
-
` + X), j && Tt([Xe, Ze, Qe], (
|
|
2201
|
-
X = ot(X,
|
|
2199
|
+
return Se && P["!doctype"] && c.ownerDocument && c.ownerDocument.doctype && c.ownerDocument.doctype.name && Y(Qn, c.ownerDocument.doctype.name) && (X = "<!DOCTYPE " + c.ownerDocument.doctype.name + `>
|
|
2200
|
+
` + X), j && Tt([Xe, Ze, Qe], (fe) => {
|
|
2201
|
+
X = ot(X, fe, " ");
|
|
2202
2202
|
}), b && ht ? b.createHTML(X) : X;
|
|
2203
2203
|
}, t.setConfig = function() {
|
|
2204
2204
|
let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2205
2205
|
Zt(h), Gt = !0;
|
|
2206
2206
|
}, t.clearConfig = function() {
|
|
2207
|
-
|
|
2207
|
+
Me = null, Gt = !1;
|
|
2208
2208
|
}, t.isValidAttribute = function(h, a, c) {
|
|
2209
|
-
|
|
2209
|
+
Me || Zt({});
|
|
2210
2210
|
const f = z(h), N = z(a);
|
|
2211
2211
|
return Fr(f, N, c);
|
|
2212
2212
|
}, t.addHook = function(h, a) {
|
|
2213
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 = Va(U[h], a);
|
|
2217
|
+
return c === -1 ? void 0 : Ga(U[h], c, 1)[0];
|
|
2218
2218
|
}
|
|
2219
2219
|
return ln(U[h]);
|
|
2220
2220
|
}, t.removeHooks = function(h) {
|
|
@@ -2223,23 +2223,23 @@ function Qn() {
|
|
|
2223
2223
|
U = hn();
|
|
2224
2224
|
}, t;
|
|
2225
2225
|
}
|
|
2226
|
-
var
|
|
2227
|
-
const
|
|
2226
|
+
var li = Jn();
|
|
2227
|
+
const ci = (e) => e == null, ct = (e) => !ci(e), ui = (e, t) => t ? t.required && (e == null || e === "") ? "Field is required" : t.basicEmailValidation && (e == null || e === "") ? "Field should be email" : null : null, pn = (e, t) => t ? Object.keys(t).map(
|
|
2228
2228
|
(o) => {
|
|
2229
|
-
const i =
|
|
2229
|
+
const i = ui(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, r] =
|
|
2236
|
+
).filter(ct) : [], eo = (e) => {
|
|
2237
|
+
const [t, r] = We(0), [n, o] = We([]), i = xe(async () => {
|
|
2238
2238
|
try {
|
|
2239
|
-
await
|
|
2239
|
+
await Ba({
|
|
2240
2240
|
feedbackFormId: e.formId,
|
|
2241
2241
|
link: window.location.pathname,
|
|
2242
|
-
rawHtml:
|
|
2242
|
+
rawHtml: li.sanitize(document.getElementsByTagName("html")[0] ?? ""),
|
|
2243
2243
|
domainId: e.domainId,
|
|
2244
2244
|
data: e.state,
|
|
2245
2245
|
formType: e.formType,
|
|
@@ -2273,7 +2273,7 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2273
2273
|
}, [e.state, e.validationsPerStep, t, i]), d = xe(() => {
|
|
2274
2274
|
t !== 0 && (o([]), r((u) => u - 1));
|
|
2275
2275
|
}, [t]);
|
|
2276
|
-
return
|
|
2276
|
+
return He(() => {
|
|
2277
2277
|
o((u) => {
|
|
2278
2278
|
if (u.length) {
|
|
2279
2279
|
const m = pn(e.state, e.validationsPerStep[t]);
|
|
@@ -2287,16 +2287,16 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2287
2287
|
onContinue: s,
|
|
2288
2288
|
onBack: d
|
|
2289
2289
|
};
|
|
2290
|
-
},
|
|
2290
|
+
}, di = v.div({
|
|
2291
2291
|
marginTop: "1rem",
|
|
2292
2292
|
color: "var(--color-error)",
|
|
2293
2293
|
height: "20px"
|
|
2294
|
-
}),
|
|
2294
|
+
}), Re = ({ errors: e }) => {
|
|
2295
2295
|
var t;
|
|
2296
|
-
return l.createElement(
|
|
2297
|
-
},
|
|
2296
|
+
return l.createElement(di, { children: ((t = (e || [])[0]) == null ? void 0 : t.error) ?? null });
|
|
2297
|
+
}, fi = v.input(
|
|
2298
2298
|
({ theme: e, colorVariant: t, selected: r }) => {
|
|
2299
|
-
const n = `calc(${e.sizeSelector} * 6);`, o =
|
|
2299
|
+
const n = `calc(${e.sizeSelector} * 6);`, o = ce(t);
|
|
2300
2300
|
return {
|
|
2301
2301
|
cursor: "pointer",
|
|
2302
2302
|
appearance: "none",
|
|
@@ -2331,15 +2331,15 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2331
2331
|
}
|
|
2332
2332
|
};
|
|
2333
2333
|
}
|
|
2334
|
-
),
|
|
2334
|
+
), mi = v.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
|
-
})),
|
|
2342
|
-
const t =
|
|
2341
|
+
})), hi = (e) => {
|
|
2342
|
+
const t = le(
|
|
2343
2343
|
() => `${e.id}-${e.label.replace(/\s/g, "-").toLowerCase()}`,
|
|
2344
2344
|
[]
|
|
2345
2345
|
), r = (o) => {
|
|
@@ -2347,10 +2347,10 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2347
2347
|
e.value.includes(o) ? e.value.filter((i) => i !== o) : [...e.value, o]
|
|
2348
2348
|
);
|
|
2349
2349
|
}, n = e.value.includes(t);
|
|
2350
|
-
return l.createElement(
|
|
2350
|
+
return l.createElement(mi, {
|
|
2351
2351
|
selected: n,
|
|
2352
2352
|
children: [
|
|
2353
|
-
l.createElement(
|
|
2353
|
+
l.createElement(fi, {
|
|
2354
2354
|
id: t,
|
|
2355
2355
|
type: "checkbox",
|
|
2356
2356
|
selected: n,
|
|
@@ -2358,13 +2358,13 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2358
2358
|
onChange: () => r(t),
|
|
2359
2359
|
name: e.name
|
|
2360
2360
|
}),
|
|
2361
|
-
l.createElement(
|
|
2361
|
+
l.createElement(ae, {
|
|
2362
2362
|
children: e.label,
|
|
2363
2363
|
linear: !0
|
|
2364
2364
|
})
|
|
2365
2365
|
]
|
|
2366
2366
|
});
|
|
2367
|
-
},
|
|
2367
|
+
}, pi = v.div`
|
|
2368
2368
|
display: flex;
|
|
2369
2369
|
flex-direction: column;
|
|
2370
2370
|
width: var(--all-fields-size);
|
|
@@ -2372,15 +2372,15 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2372
2372
|
@media (max-width: 900px) {
|
|
2373
2373
|
width: 100%;
|
|
2374
2374
|
}
|
|
2375
|
-
`,
|
|
2375
|
+
`, gi = v.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(), r = e.elementsPerCol || 4, n =
|
|
2382
|
+
`, to = (e) => {
|
|
2383
|
+
const t = e.label.replace(/\s/g, "-").toLowerCase(), r = e.elementsPerCol || 4, n = le(() => e.options.reduce(
|
|
2384
2384
|
(o, i, s) => {
|
|
2385
2385
|
var u;
|
|
2386
2386
|
return (s % r === 0 || s === 0) && o.push([]), (u = o[o.length - 1]) == null || u.push(i), o;
|
|
@@ -2389,16 +2389,16 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2389
2389
|
), [r, e.options]);
|
|
2390
2390
|
return l.createElement("div", {
|
|
2391
2391
|
children: [
|
|
2392
|
-
l.createElement(
|
|
2392
|
+
l.createElement(ae, {
|
|
2393
2393
|
children: e.label,
|
|
2394
2394
|
variant: "section"
|
|
2395
2395
|
}),
|
|
2396
|
-
l.createElement(
|
|
2396
|
+
l.createElement(gi, {
|
|
2397
2397
|
children: n.map(
|
|
2398
|
-
(o, i) => l.createElement(
|
|
2398
|
+
(o, i) => l.createElement(pi, {
|
|
2399
2399
|
key: i,
|
|
2400
2400
|
children: o.map(
|
|
2401
|
-
(s) => l.createElement(
|
|
2401
|
+
(s) => l.createElement(hi, {
|
|
2402
2402
|
onSelect: e.onChange,
|
|
2403
2403
|
colorVariant: e.colorVariant,
|
|
2404
2404
|
value: e.value,
|
|
@@ -2410,12 +2410,12 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2410
2410
|
})
|
|
2411
2411
|
)
|
|
2412
2412
|
}),
|
|
2413
|
-
l.createElement(
|
|
2413
|
+
l.createElement(Re, {
|
|
2414
2414
|
errors: e.errors
|
|
2415
2415
|
})
|
|
2416
2416
|
]
|
|
2417
2417
|
});
|
|
2418
|
-
},
|
|
2418
|
+
}, bi = v(qe)(() => ({
|
|
2419
2419
|
"&:not(:last-of-type):not(:first-of-type)": {
|
|
2420
2420
|
borderRadius: "0",
|
|
2421
2421
|
marginRight: "-1px",
|
|
@@ -2432,15 +2432,15 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2432
2432
|
"@media (max-width: 900px)": {
|
|
2433
2433
|
// display: 'none',
|
|
2434
2434
|
}
|
|
2435
|
-
})),
|
|
2435
|
+
})), yi = (e) => l.createElement(bi, {
|
|
2436
2436
|
onClick: e.onChange,
|
|
2437
2437
|
$outlined: !e.selected,
|
|
2438
2438
|
children: e.label
|
|
2439
|
-
}), gn =
|
|
2439
|
+
}), gn = v("span")(({
|
|
2440
2440
|
min: e,
|
|
2441
2441
|
variant: t
|
|
2442
2442
|
}) => {
|
|
2443
|
-
const r = t ||
|
|
2443
|
+
const r = t || ce();
|
|
2444
2444
|
return {
|
|
2445
2445
|
position: "absolute",
|
|
2446
2446
|
left: e ? "0" : void 0,
|
|
@@ -2452,18 +2452,18 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2452
2452
|
textTransform: "uppercase",
|
|
2453
2453
|
color: r
|
|
2454
2454
|
};
|
|
2455
|
-
}),
|
|
2455
|
+
}), vi = v.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
|
+
})), ro = (e) => l.createElement("div", {
|
|
2461
2461
|
children: [
|
|
2462
|
-
l.createElement(
|
|
2462
|
+
l.createElement(ae, {
|
|
2463
2463
|
children: e.label,
|
|
2464
2464
|
variant: "section"
|
|
2465
2465
|
}),
|
|
2466
|
-
l.createElement(
|
|
2466
|
+
l.createElement(vi, {
|
|
2467
2467
|
withText: e.maxText || e.minText,
|
|
2468
2468
|
children: [
|
|
2469
2469
|
e.maxText ? l.createElement(gn, {
|
|
@@ -2474,7 +2474,7 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2474
2474
|
min: !0,
|
|
2475
2475
|
children: e.minText
|
|
2476
2476
|
}) : null,
|
|
2477
|
-
Array(e.max).fill(1).map((t, r) => l.createElement(
|
|
2477
|
+
Array(e.max).fill(1).map((t, r) => l.createElement(yi, {
|
|
2478
2478
|
onChange: () => e.onChange(r + 1),
|
|
2479
2479
|
selected: r + 1 === e.value,
|
|
2480
2480
|
key: `${r}`,
|
|
@@ -2482,12 +2482,12 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2482
2482
|
}))
|
|
2483
2483
|
]
|
|
2484
2484
|
}),
|
|
2485
|
-
l.createElement(
|
|
2485
|
+
l.createElement(Re, {
|
|
2486
2486
|
errors: e.errors
|
|
2487
2487
|
})
|
|
2488
2488
|
]
|
|
2489
|
-
}),
|
|
2490
|
-
const n = `calc(${e.sizeSelector} * 6);`, o =
|
|
2489
|
+
}), Ei = v.input(({ theme: e, selected: t, colorVariant: r }) => {
|
|
2490
|
+
const n = `calc(${e.sizeSelector} * 6);`, o = ce(r);
|
|
2491
2491
|
return {
|
|
2492
2492
|
width: n,
|
|
2493
2493
|
height: n,
|
|
@@ -2513,25 +2513,25 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2513
2513
|
display: "block"
|
|
2514
2514
|
}
|
|
2515
2515
|
};
|
|
2516
|
-
}),
|
|
2516
|
+
}), Si = v.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
|
-
})),
|
|
2524
|
-
const t =
|
|
2523
|
+
})), Ti = (e) => {
|
|
2524
|
+
const t = le(
|
|
2525
2525
|
() => `${e.id}-${e.label.replace(/\s/g, "-").toLowerCase()}`,
|
|
2526
2526
|
[e.id]
|
|
2527
2527
|
), r = (o) => {
|
|
2528
2528
|
e.onSelect(o);
|
|
2529
2529
|
}, n = e.value === t;
|
|
2530
|
-
return l.createElement(
|
|
2530
|
+
return l.createElement(Si, {
|
|
2531
2531
|
selected: n,
|
|
2532
2532
|
htmlFor: t,
|
|
2533
2533
|
children: [
|
|
2534
|
-
l.createElement(
|
|
2534
|
+
l.createElement(Ei, {
|
|
2535
2535
|
id: t,
|
|
2536
2536
|
type: "radio",
|
|
2537
2537
|
variant: e.colorVariant,
|
|
@@ -2539,13 +2539,13 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2539
2539
|
onChange: () => r(t),
|
|
2540
2540
|
name: e.name
|
|
2541
2541
|
}),
|
|
2542
|
-
l.createElement(
|
|
2542
|
+
l.createElement(ae, {
|
|
2543
2543
|
children: e.label,
|
|
2544
2544
|
linear: !0
|
|
2545
2545
|
})
|
|
2546
2546
|
]
|
|
2547
2547
|
});
|
|
2548
|
-
},
|
|
2548
|
+
}, wi = v.div`
|
|
2549
2549
|
display: flex;
|
|
2550
2550
|
flex-direction: column;
|
|
2551
2551
|
width: var(--all-fields-size);
|
|
@@ -2553,15 +2553,15 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2553
2553
|
@media (max-width: 900px) {
|
|
2554
2554
|
width: 100%;
|
|
2555
2555
|
}
|
|
2556
|
-
`,
|
|
2556
|
+
`, xi = v.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, r =
|
|
2563
|
+
`, no = (e) => {
|
|
2564
|
+
const t = e.elementsPerCol || 4, r = le(() => e.options.reduce(
|
|
2565
2565
|
(n, o, i) => {
|
|
2566
2566
|
var d;
|
|
2567
2567
|
return (i % t === 0 || i === 0) && n.push([]), (d = n[n.length - 1]) == null || d.push(o), n;
|
|
@@ -2570,15 +2570,15 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2570
2570
|
), [t, e.options]);
|
|
2571
2571
|
return l.createElement("div", {
|
|
2572
2572
|
children: [
|
|
2573
|
-
l.createElement(
|
|
2573
|
+
l.createElement(ae, {
|
|
2574
2574
|
children: e.label,
|
|
2575
2575
|
variant: "section"
|
|
2576
2576
|
}),
|
|
2577
|
-
l.createElement(
|
|
2577
|
+
l.createElement(xi, {
|
|
2578
2578
|
children: r.map(
|
|
2579
|
-
(n) => l.createElement(
|
|
2579
|
+
(n) => l.createElement(wi, {
|
|
2580
2580
|
children: n.map(
|
|
2581
|
-
(o) => l.createElement(
|
|
2581
|
+
(o) => l.createElement(Ti, {
|
|
2582
2582
|
colorVariant: e.colorVariant,
|
|
2583
2583
|
onSelect: e.onChange,
|
|
2584
2584
|
value: e.value,
|
|
@@ -2590,13 +2590,13 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2590
2590
|
})
|
|
2591
2591
|
)
|
|
2592
2592
|
}),
|
|
2593
|
-
l.createElement(
|
|
2593
|
+
l.createElement(Re, {
|
|
2594
2594
|
errors: e.errors
|
|
2595
2595
|
})
|
|
2596
2596
|
]
|
|
2597
2597
|
});
|
|
2598
|
-
},
|
|
2599
|
-
const t =
|
|
2598
|
+
}, Ci = v.input((e) => {
|
|
2599
|
+
const t = ce(e.colorVariant);
|
|
2600
2600
|
return {
|
|
2601
2601
|
cursor: "text",
|
|
2602
2602
|
border: `var(--border-width)solid ${t}`,
|
|
@@ -2622,8 +2622,8 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2622
2622
|
isolation: "isolate"
|
|
2623
2623
|
}
|
|
2624
2624
|
};
|
|
2625
|
-
}),
|
|
2626
|
-
const r =
|
|
2625
|
+
}), Ai = v.input((e) => {
|
|
2626
|
+
const r = ce(e.colorVariant);
|
|
2627
2627
|
return {
|
|
2628
2628
|
cursor: "pointer",
|
|
2629
2629
|
flex: "1",
|
|
@@ -2672,31 +2672,31 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2672
2672
|
transform: "translateY(-50%)"
|
|
2673
2673
|
}
|
|
2674
2674
|
};
|
|
2675
|
-
}),
|
|
2675
|
+
}), _i = v.div`
|
|
2676
2676
|
width: clamp(3rem, 30rem, 100%);
|
|
2677
|
-
`,
|
|
2677
|
+
`, Ii = v(Ci)`
|
|
2678
2678
|
width: calc(var(--size-field) * 15);
|
|
2679
|
-
`,
|
|
2679
|
+
`, Ri = v.div`
|
|
2680
2680
|
display: flex;
|
|
2681
2681
|
align-items: center;
|
|
2682
2682
|
gap: calc(var(--spacing) * 2);
|
|
2683
|
-
`,
|
|
2683
|
+
`, ki = (e) => {
|
|
2684
2684
|
var o;
|
|
2685
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
|
-
return
|
|
2689
|
+
return He(() => {
|
|
2690
2690
|
e.onChange(e.value || e.initialValue || 0);
|
|
2691
|
-
}, []), l.createElement(
|
|
2691
|
+
}, []), l.createElement(_i, {
|
|
2692
2692
|
children: [
|
|
2693
|
-
l.createElement(
|
|
2693
|
+
l.createElement(ae, {
|
|
2694
2694
|
children: e.label,
|
|
2695
2695
|
variant: "section"
|
|
2696
2696
|
}),
|
|
2697
|
-
l.createElement(
|
|
2697
|
+
l.createElement(Ri, {
|
|
2698
2698
|
children: [
|
|
2699
|
-
l.createElement(
|
|
2699
|
+
l.createElement(Ai, {
|
|
2700
2700
|
type: "range",
|
|
2701
2701
|
min: t,
|
|
2702
2702
|
max: r,
|
|
@@ -2704,7 +2704,7 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2704
2704
|
value: e.value,
|
|
2705
2705
|
onChange: n
|
|
2706
2706
|
}),
|
|
2707
|
-
l.createElement(
|
|
2707
|
+
l.createElement(Ii, {
|
|
2708
2708
|
type: "number",
|
|
2709
2709
|
value: ((o = e.value) == null ? void 0 : o.toString()) ?? "",
|
|
2710
2710
|
max: r,
|
|
@@ -2714,21 +2714,21 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2714
2714
|
})
|
|
2715
2715
|
]
|
|
2716
2716
|
}),
|
|
2717
|
-
l.createElement(
|
|
2717
|
+
l.createElement(Re, {
|
|
2718
2718
|
errors: e.errors
|
|
2719
2719
|
})
|
|
2720
2720
|
]
|
|
2721
2721
|
});
|
|
2722
|
-
},
|
|
2723
|
-
heart: encodeURIComponent(
|
|
2724
|
-
star: encodeURIComponent(
|
|
2725
|
-
star2: encodeURIComponent(
|
|
2722
|
+
}, Oi = '<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>', Pi = '<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>', Ni = '<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>', $i = {
|
|
2723
|
+
heart: encodeURIComponent(Oi),
|
|
2724
|
+
star: encodeURIComponent(Pi),
|
|
2725
|
+
star2: encodeURIComponent(Ni)
|
|
2726
2726
|
}, bn = {
|
|
2727
2727
|
small: "1rem",
|
|
2728
2728
|
medium: "1.5rem",
|
|
2729
2729
|
large: "2rem"
|
|
2730
|
-
},
|
|
2731
|
-
const t =
|
|
2730
|
+
}, Di = v.input((e) => {
|
|
2731
|
+
const t = $i[e.icon ?? "star2"], r = ce(e.colorVariant);
|
|
2732
2732
|
return {
|
|
2733
2733
|
maskImage: `url(data:image/svg+xml,${t})`,
|
|
2734
2734
|
backgroundColor: r,
|
|
@@ -2750,19 +2750,19 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2750
2750
|
width: bn[e.size ?? "medium"],
|
|
2751
2751
|
height: bn[e.size ?? "medium"]
|
|
2752
2752
|
};
|
|
2753
|
-
}),
|
|
2753
|
+
}), Li = v.div(() => ({
|
|
2754
2754
|
verticalAlign: "middle",
|
|
2755
2755
|
position: "relative"
|
|
2756
|
-
})),
|
|
2756
|
+
})), oo = ({ value: e, max: t, errors: r, label: n, onChange: o }) => l.createElement(Li, {
|
|
2757
2757
|
value: 1,
|
|
2758
2758
|
max: 5,
|
|
2759
2759
|
children: [
|
|
2760
|
-
l.createElement(
|
|
2760
|
+
l.createElement(ae, {
|
|
2761
2761
|
variant: "section",
|
|
2762
2762
|
children: n
|
|
2763
2763
|
}),
|
|
2764
2764
|
Array(t).fill(1).map(
|
|
2765
|
-
(i, s) => l.createElement(
|
|
2765
|
+
(i, s) => l.createElement(Di, {
|
|
2766
2766
|
selected: s < e,
|
|
2767
2767
|
name: `rating-${s + 1}`,
|
|
2768
2768
|
key: `${s}`,
|
|
@@ -2772,14 +2772,14 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2772
2772
|
type: "radio"
|
|
2773
2773
|
})
|
|
2774
2774
|
),
|
|
2775
|
-
l.createElement(
|
|
2775
|
+
l.createElement(Re, {
|
|
2776
2776
|
errors: r
|
|
2777
2777
|
})
|
|
2778
2778
|
]
|
|
2779
|
-
}),
|
|
2779
|
+
}), Mi = v.div`
|
|
2780
2780
|
width: 100%;
|
|
2781
|
-
`,
|
|
2782
|
-
const t =
|
|
2781
|
+
`, Fi = v.textarea((e) => {
|
|
2782
|
+
const t = ce(e.colorVariant);
|
|
2783
2783
|
return {
|
|
2784
2784
|
border: "var(--border-width)solid #0000",
|
|
2785
2785
|
appearance: "none",
|
|
@@ -2803,28 +2803,28 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2803
2803
|
isolation: "isolate"
|
|
2804
2804
|
}
|
|
2805
2805
|
};
|
|
2806
|
-
}),
|
|
2806
|
+
}), ao = (e) => {
|
|
2807
2807
|
const t = (r) => e.onChange(r.target.value);
|
|
2808
|
-
return l.createElement(
|
|
2808
|
+
return l.createElement(Mi, {
|
|
2809
2809
|
children: [
|
|
2810
|
-
l.createElement(
|
|
2810
|
+
l.createElement(ae, {
|
|
2811
2811
|
variant: "section",
|
|
2812
2812
|
children: e.label
|
|
2813
2813
|
}),
|
|
2814
|
-
l.createElement(
|
|
2814
|
+
l.createElement(Fi, {
|
|
2815
2815
|
value: e.value ?? "",
|
|
2816
2816
|
useThemeColors: e.colorVariant,
|
|
2817
2817
|
rows: e.rows ?? 3,
|
|
2818
2818
|
onChange: t
|
|
2819
2819
|
}),
|
|
2820
|
-
l.createElement(
|
|
2820
|
+
l.createElement(Re, {
|
|
2821
2821
|
errors: e.errors
|
|
2822
2822
|
})
|
|
2823
2823
|
]
|
|
2824
2824
|
});
|
|
2825
|
-
},
|
|
2825
|
+
}, zi = v.div`
|
|
2826
2826
|
width: 100%;
|
|
2827
|
-
`, xt = (e) => e != null,
|
|
2827
|
+
`, xt = (e) => e != null, Bi = (e, t) => ((n) => {
|
|
2828
2828
|
if (!n) return e.default;
|
|
2829
2829
|
const o = n.find((i) => i.conditions.every((s) => {
|
|
2830
2830
|
const d = t(s.fieldName);
|
|
@@ -2833,9 +2833,9 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
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), io = (e) => {
|
|
2837
2837
|
const t = () => {
|
|
2838
|
-
const r = (i) => e.setStateByKey(e.dataField, i), n =
|
|
2838
|
+
const r = (i) => e.setStateByKey(e.dataField, i), n = Bi(e.fieldProps.label, e.getStateByKey), o = {
|
|
2839
2839
|
formClientId: e.formClientId,
|
|
2840
2840
|
label: n,
|
|
2841
2841
|
errors: e.errors,
|
|
@@ -2846,7 +2846,7 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2846
2846
|
switch (e.type) {
|
|
2847
2847
|
case "matrix": {
|
|
2848
2848
|
const i = e.fieldProps;
|
|
2849
|
-
return l.createElement(
|
|
2849
|
+
return l.createElement(ro, {
|
|
2850
2850
|
...i,
|
|
2851
2851
|
...o,
|
|
2852
2852
|
max: 10
|
|
@@ -2854,35 +2854,35 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (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(no, {
|
|
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(to, {
|
|
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(ki, {
|
|
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(oo, {
|
|
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(ao, {
|
|
2886
2886
|
...i,
|
|
2887
2887
|
...o
|
|
2888
2888
|
});
|
|
@@ -2891,28 +2891,28 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2891
2891
|
return null;
|
|
2892
2892
|
}
|
|
2893
2893
|
};
|
|
2894
|
-
return l.createElement(
|
|
2894
|
+
return l.createElement(zi, {
|
|
2895
2895
|
children: t()
|
|
2896
2896
|
});
|
|
2897
|
-
},
|
|
2897
|
+
}, Ui = v.div({
|
|
2898
2898
|
position: "relative",
|
|
2899
2899
|
fontSize: "var(--font-size)"
|
|
2900
|
-
}),
|
|
2900
|
+
}), Wi = v.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
|
-
`,
|
|
2906
|
-
const t =
|
|
2905
|
+
`, so = (e) => {
|
|
2906
|
+
const t = le(
|
|
2907
2907
|
() => Math.random().toString(36).substring(2, 10),
|
|
2908
2908
|
[]
|
|
2909
2909
|
), [r, n] = l.useState(null), o = (d) => {
|
|
2910
2910
|
n((u) => !u || u < d ? d : u);
|
|
2911
|
-
}, i =
|
|
2911
|
+
}, i = qn({
|
|
2912
2912
|
form: e.inlineForm.form,
|
|
2913
2913
|
formId: e.formId,
|
|
2914
2914
|
domainId: e.domainId
|
|
2915
|
-
}), s =
|
|
2915
|
+
}), s = eo({
|
|
2916
2916
|
domainId: e.domainId,
|
|
2917
2917
|
formType: "inlineForm",
|
|
2918
2918
|
stepsCount: i.steps.length,
|
|
@@ -2920,22 +2920,22 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (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(Ui, {
|
|
2924
2924
|
children: [
|
|
2925
|
-
e.inlineForm.config.formTitle && l.createElement(
|
|
2925
|
+
e.inlineForm.config.formTitle && l.createElement(ae, {
|
|
2926
2926
|
variant: "title",
|
|
2927
2927
|
children: e.inlineForm.config.formTitle
|
|
2928
2928
|
}),
|
|
2929
2929
|
i.steps.map(
|
|
2930
2930
|
(d, u) => {
|
|
2931
2931
|
var m;
|
|
2932
|
-
return l.createElement(
|
|
2932
|
+
return l.createElement(jn, {
|
|
2933
2933
|
key: u + `${(m = d.meta) == null ? void 0 : m.name}`,
|
|
2934
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(io, {
|
|
2939
2939
|
type: p.type,
|
|
2940
2940
|
fieldProps: p,
|
|
2941
2941
|
dataField: p.dataField,
|
|
@@ -2949,18 +2949,18 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2949
2949
|
});
|
|
2950
2950
|
}
|
|
2951
2951
|
),
|
|
2952
|
-
l.createElement(
|
|
2952
|
+
l.createElement(Wi, {
|
|
2953
2953
|
children: [
|
|
2954
|
-
l.createElement(
|
|
2954
|
+
l.createElement(qe, {
|
|
2955
2955
|
children: "Back",
|
|
2956
2956
|
disabled: s.step === 0,
|
|
2957
2957
|
onClick: s.onBack
|
|
2958
2958
|
}),
|
|
2959
|
-
l.createElement(
|
|
2959
|
+
l.createElement(Yn, {
|
|
2960
2960
|
steps: i.steps,
|
|
2961
2961
|
currentStepIndex: s.step
|
|
2962
2962
|
}),
|
|
2963
|
-
l.createElement(
|
|
2963
|
+
l.createElement(qe, {
|
|
2964
2964
|
children: "Continue",
|
|
2965
2965
|
onClick: s.onContinue
|
|
2966
2966
|
})
|
|
@@ -2968,7 +2968,7 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2968
2968
|
})
|
|
2969
2969
|
]
|
|
2970
2970
|
});
|
|
2971
|
-
},
|
|
2971
|
+
}, Hi = v.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 ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2991
2991
|
maxWidth: "initial",
|
|
2992
2992
|
width: "auto"
|
|
2993
2993
|
}
|
|
2994
|
-
})),
|
|
2994
|
+
})), Vi = v.div(() => ({})), Gi = v.dialog(({ $visible: e }) => ({
|
|
2995
2995
|
pointerEvents: e ? "auto" : "none",
|
|
2996
2996
|
visibility: e ? "visible" : "hidden",
|
|
2997
2997
|
width: "100%",
|
|
@@ -3013,8 +3013,8 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
3013
3013
|
top: 0,
|
|
3014
3014
|
border: 0,
|
|
3015
3015
|
outline: 0
|
|
3016
|
-
})),
|
|
3017
|
-
const t =
|
|
3016
|
+
})), ji = (e) => {
|
|
3017
|
+
const t = vn(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
|
},
|
|
@@ -3022,35 +3022,35 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
3022
3022
|
), o = xe((i) => {
|
|
3023
3023
|
i.key === "Escape" && e.onClose(), i.preventDefault();
|
|
3024
3024
|
}, []);
|
|
3025
|
-
return
|
|
3025
|
+
return He(() => {
|
|
3026
3026
|
t.current && e.isOpen ? t.current.show() : t.current && !e.isOpen && t.current.close();
|
|
3027
|
-
}, [t, e.isOpen]),
|
|
3027
|
+
}, [t, e.isOpen]), He(() => (document.addEventListener("keyup", o), () => {
|
|
3028
3028
|
document.removeEventListener("keyup", o);
|
|
3029
|
-
}), []), l.createElement(
|
|
3029
|
+
}), []), l.createElement(Gi, {
|
|
3030
3030
|
$visible: e.isOpen,
|
|
3031
3031
|
onClick: n,
|
|
3032
3032
|
ref: t,
|
|
3033
3033
|
id: r,
|
|
3034
|
-
children: l.createElement(
|
|
3034
|
+
children: l.createElement(Hi, {
|
|
3035
3035
|
$visible: e.isOpen,
|
|
3036
3036
|
children: [
|
|
3037
|
-
l.createElement(
|
|
3037
|
+
l.createElement(ae, {
|
|
3038
3038
|
children: e.heading,
|
|
3039
3039
|
variant: "title"
|
|
3040
3040
|
}),
|
|
3041
3041
|
e.children,
|
|
3042
|
-
l.createElement(
|
|
3042
|
+
l.createElement(Vi, {
|
|
3043
3043
|
children: e.footer
|
|
3044
3044
|
})
|
|
3045
3045
|
]
|
|
3046
3046
|
})
|
|
3047
3047
|
});
|
|
3048
|
-
},
|
|
3048
|
+
}, Yi = v.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
|
+
`, qi = v(qe)`
|
|
3054
3054
|
position: fixed;
|
|
3055
3055
|
width: fit-content;
|
|
3056
3056
|
height: fit-content;
|
|
@@ -3064,17 +3064,17 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
3064
3064
|
&:active {
|
|
3065
3065
|
transform: rotate(-90deg) translateY(calc(100% - 18px));
|
|
3066
3066
|
}
|
|
3067
|
-
`,
|
|
3068
|
-
const [t, r] = l.useState(!1), [n, o] = l.useState(null), i =
|
|
3067
|
+
`, lo = (e) => {
|
|
3068
|
+
const [t, r] = l.useState(!1), [n, o] = l.useState(null), i = le(
|
|
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 = qn({
|
|
3074
3074
|
form: e.popupForm.form,
|
|
3075
3075
|
formId: e.formId,
|
|
3076
3076
|
domainId: e.domainId
|
|
3077
|
-
}), u =
|
|
3077
|
+
}), u = eo({
|
|
3078
3078
|
domainId: e.domainId,
|
|
3079
3079
|
formType: "inlineForm",
|
|
3080
3080
|
stepsCount: d.steps.length,
|
|
@@ -3082,9 +3082,9 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (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(So, {
|
|
3086
3086
|
children: [
|
|
3087
|
-
l.createElement(
|
|
3087
|
+
l.createElement(qi, {
|
|
3088
3088
|
children: e.popupForm.config.buttonText,
|
|
3089
3089
|
onClick: () => r(!0),
|
|
3090
3090
|
$left: e.popupForm.styles.left ?? null,
|
|
@@ -3092,22 +3092,22 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
3092
3092
|
$top: e.popupForm.styles.top ?? null,
|
|
3093
3093
|
$bottom: e.popupForm.styles.bottom ?? null
|
|
3094
3094
|
}),
|
|
3095
|
-
l.createElement(
|
|
3095
|
+
l.createElement(ji, {
|
|
3096
3096
|
onClose: () => r(!1),
|
|
3097
3097
|
heading: e.popupForm.config.formTitle,
|
|
3098
3098
|
isOpen: t,
|
|
3099
|
-
footer: l.createElement(
|
|
3099
|
+
footer: l.createElement(Yi, {
|
|
3100
3100
|
children: [
|
|
3101
|
-
l.createElement(
|
|
3101
|
+
l.createElement(qe, {
|
|
3102
3102
|
children: "Back",
|
|
3103
3103
|
disabled: u.step === 0,
|
|
3104
3104
|
onClick: u.onBack
|
|
3105
3105
|
}),
|
|
3106
|
-
l.createElement(
|
|
3106
|
+
l.createElement(Yn, {
|
|
3107
3107
|
steps: d.steps,
|
|
3108
3108
|
currentStepIndex: u.step
|
|
3109
3109
|
}),
|
|
3110
|
-
l.createElement(
|
|
3110
|
+
l.createElement(qe, {
|
|
3111
3111
|
children: "Continue",
|
|
3112
3112
|
onClick: u.onContinue
|
|
3113
3113
|
})
|
|
@@ -3116,19 +3116,19 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (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(jn, {
|
|
3120
3120
|
key: p + `${(T = m.meta) == null ? void 0 : T.name}`,
|
|
3121
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(io, {
|
|
3126
3126
|
type: w.type,
|
|
3127
3127
|
fieldProps: w,
|
|
3128
3128
|
formClientId: i,
|
|
3129
3129
|
dataField: w.dataField,
|
|
3130
3130
|
onContinue: u.onContinue,
|
|
3131
|
-
errors: u.errors.filter((
|
|
3131
|
+
errors: u.errors.filter((E) => E.field === w.dataField),
|
|
3132
3132
|
getStateByKey: d.getStateByKey,
|
|
3133
3133
|
setStateByKey: d.setStateByKey
|
|
3134
3134
|
})
|
|
@@ -3157,20 +3157,20 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
3157
3157
|
// ),
|
|
3158
3158
|
]
|
|
3159
3159
|
});
|
|
3160
|
-
},
|
|
3160
|
+
}, co = (e) => {
|
|
3161
3161
|
e.locale;
|
|
3162
|
-
let { data: t, loading: r, error: n } =
|
|
3163
|
-
() =>
|
|
3162
|
+
let { data: t, loading: r, error: n } = Pa(
|
|
3163
|
+
() => Oa({
|
|
3164
3164
|
formId: e.formId
|
|
3165
3165
|
})
|
|
3166
3166
|
);
|
|
3167
|
-
const o =
|
|
3167
|
+
const o = le(() => t != null && t.inlineForm ? l.createElement(so, {
|
|
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 =
|
|
3173
|
+
}) : null, [t == null ? void 0 : t.attributes.theme, t == null ? void 0 : t.domainId, t == null ? void 0 : t.inlineForm, e.formId]), i = le(() => t != null && t.popupForm ? l.createElement(lo, {
|
|
3174
3174
|
key: `popup-form-${e.formId}`,
|
|
3175
3175
|
formId: e.formId,
|
|
3176
3176
|
domainId: t.domainId,
|
|
@@ -3182,7 +3182,72 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
3182
3182
|
selectedVariant: t.attributes.variant,
|
|
3183
3183
|
children: [o, i]
|
|
3184
3184
|
});
|
|
3185
|
-
},
|
|
3185
|
+
}, yn = v.option(() => ({
|
|
3186
|
+
borderRadius: "var(--radius-field)",
|
|
3187
|
+
whiteSpace: "normal",
|
|
3188
|
+
paddingBlock: ".375rem",
|
|
3189
|
+
paddingInline: ".75rem",
|
|
3190
|
+
transitionProperty: "color,background-color",
|
|
3191
|
+
transitionDuration: ".2s",
|
|
3192
|
+
transitionTimingFunction: "cubic-bezier(0,0,.2,1)"
|
|
3193
|
+
})), Ki = v.select((e) => ({
|
|
3194
|
+
border: `var(--border-width)solid ${ce(e.colorVariant)}`,
|
|
3195
|
+
backgroundColor: "var(--color-base-100)",
|
|
3196
|
+
verticalAlign: "middle",
|
|
3197
|
+
width: "clamp(3rem,30rem,100%)",
|
|
3198
|
+
height: "calc(var(--size-field,.25rem)*10)",
|
|
3199
|
+
touchAction: "manipulation",
|
|
3200
|
+
whiteSpace: "nowrap",
|
|
3201
|
+
textOverflow: "ellipsis",
|
|
3202
|
+
borderStartStartRadius: "var(--radius-field)",
|
|
3203
|
+
borderStartEndRadius: "var(--radius-field)",
|
|
3204
|
+
borderEndEndRadius: "var(--radius-field)",
|
|
3205
|
+
borderEndStartRadius: "var(--radius-field)",
|
|
3206
|
+
flexShrink: "1",
|
|
3207
|
+
alignItems: "center",
|
|
3208
|
+
gap: ".375rem",
|
|
3209
|
+
paddingInline: ".75rem 1.75rem",
|
|
3210
|
+
fontSize: ".875rem",
|
|
3211
|
+
display: "inline-flex",
|
|
3212
|
+
position: "relative",
|
|
3213
|
+
overflow: "hidden"
|
|
3214
|
+
})), Xi = (e) => {
|
|
3215
|
+
const t = (r) => e.onChange(r.target.value);
|
|
3216
|
+
return l.createElement("div", {
|
|
3217
|
+
children: [
|
|
3218
|
+
l.createElement(ae, {
|
|
3219
|
+
children: e.label,
|
|
3220
|
+
variant: "section"
|
|
3221
|
+
}),
|
|
3222
|
+
l.createElement(Ki, {
|
|
3223
|
+
colorVariant: e.colorVariant,
|
|
3224
|
+
value: e.value ?? null,
|
|
3225
|
+
defaultChecked: !1,
|
|
3226
|
+
defaultValue: null,
|
|
3227
|
+
onChange: t,
|
|
3228
|
+
children: [
|
|
3229
|
+
l.createElement(yn, {
|
|
3230
|
+
value: "",
|
|
3231
|
+
selected: !e.value,
|
|
3232
|
+
children: "Select an option",
|
|
3233
|
+
key: ""
|
|
3234
|
+
}),
|
|
3235
|
+
e.options.map(
|
|
3236
|
+
(r) => l.createElement(yn, {
|
|
3237
|
+
value: r.id,
|
|
3238
|
+
selected: r.id === e.value,
|
|
3239
|
+
children: r.label,
|
|
3240
|
+
key: r.id
|
|
3241
|
+
})
|
|
3242
|
+
)
|
|
3243
|
+
]
|
|
3244
|
+
}),
|
|
3245
|
+
l.createElement(Re, {
|
|
3246
|
+
errors: e.errors
|
|
3247
|
+
})
|
|
3248
|
+
]
|
|
3249
|
+
});
|
|
3250
|
+
}, es = (e) => {
|
|
3186
3251
|
if (!e) {
|
|
3187
3252
|
console.error("options must be provided. Feedback module deactivated");
|
|
3188
3253
|
return;
|
|
@@ -3191,27 +3256,35 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
3191
3256
|
console.error("formId must be provided. Feedback module deactivated");
|
|
3192
3257
|
return;
|
|
3193
3258
|
}
|
|
3194
|
-
const t =
|
|
3259
|
+
const t = xo.createRoot(e.container || document);
|
|
3195
3260
|
typeof window < "u" && t.render(
|
|
3196
|
-
l.createElement(
|
|
3261
|
+
l.createElement(co, {
|
|
3197
3262
|
formId: e.formId
|
|
3198
3263
|
})
|
|
3199
3264
|
);
|
|
3200
|
-
},
|
|
3265
|
+
}, Zi = (e) => e ? e.formId ? typeof window > "u" ? null : l.createElement(co, {
|
|
3201
3266
|
formId: e.formId
|
|
3202
|
-
}) : (console.error("formId must be provided. Feedback module deactivated"), null) : (console.error("options must be provided. Feedback module deactivated"), null),
|
|
3267
|
+
}) : (console.error("formId must be provided. Feedback module deactivated"), null) : (console.error("options must be provided. Feedback module deactivated"), null), ts = (e) => Zi(e), rs = (e) => l.createElement(xr, {
|
|
3203
3268
|
theme: e.formTheme,
|
|
3204
3269
|
selectedVariant: e.variant,
|
|
3205
|
-
children: [l.createElement(
|
|
3206
|
-
}),
|
|
3270
|
+
children: [l.createElement(so, e)]
|
|
3271
|
+
}), ns = (e) => l.createElement(xr, {
|
|
3207
3272
|
theme: e.formTheme,
|
|
3208
3273
|
selectedVariant: e.variant,
|
|
3209
|
-
children: [l.createElement(
|
|
3210
|
-
})
|
|
3274
|
+
children: [l.createElement(lo, e)]
|
|
3275
|
+
}), os = {
|
|
3276
|
+
Checkbox: to,
|
|
3277
|
+
QuestionMatrix: ro,
|
|
3278
|
+
Radio: no,
|
|
3279
|
+
Rating: oo,
|
|
3280
|
+
Select: Xi,
|
|
3281
|
+
Textarea: ao
|
|
3282
|
+
};
|
|
3211
3283
|
export {
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3284
|
+
ts as FeedbackModule,
|
|
3285
|
+
rs as PreviewInPlaceForm,
|
|
3286
|
+
ns as PreviewPopupForm,
|
|
3287
|
+
os as SurveyFormComponents,
|
|
3288
|
+
es as initiateFeedbackModule,
|
|
3289
|
+
Zi as renderFeedbackModule
|
|
3217
3290
|
};
|