@web-site-utilities/feedback 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/components/Checkbox.d.ts +1 -1
- package/dist/common/components/QuestionMatrix.d.ts +1 -1
- package/dist/common/components/Radio.d.ts +2 -2
- package/dist/common/components/Rating.d.ts +1 -1
- package/dist/common/components/Select.d.ts +1 -2
- package/dist/common/components/Textarea.d.ts +1 -2
- package/dist/fields/Field/Field.d.ts +2 -41
- package/dist/form/index.d.ts +46 -3
- package/dist/index.cjs.js +22 -22
- package/dist/index.d.ts +47 -2
- package/dist/index.es.js +993 -896
- package/dist/index.iife.js +22 -22
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import l, { useMemo as
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
function
|
|
5
|
-
if (
|
|
6
|
-
|
|
7
|
-
var e =
|
|
8
|
-
return
|
|
9
|
-
}
|
|
10
|
-
var
|
|
11
|
-
return
|
|
12
|
-
for (var r, n = 1,
|
|
1
|
+
import l, { useMemo as le, createElement as ya, useContext as va, useState as We, useEffect as He, useRef as vn, useCallback as Ce, Fragment as Ea } from "react";
|
|
2
|
+
import Sa from "react-dom";
|
|
3
|
+
var Et = {}, Wr;
|
|
4
|
+
function Ta() {
|
|
5
|
+
if (Wr) return Et;
|
|
6
|
+
Wr = 1;
|
|
7
|
+
var e = Sa;
|
|
8
|
+
return Et.createRoot = e.createRoot, Et.hydrateRoot = e.hydrateRoot, Et;
|
|
9
|
+
}
|
|
10
|
+
var wa = Ta(), H = function() {
|
|
11
|
+
return H = Object.assign || function(t) {
|
|
12
|
+
for (var r, n = 1, a = arguments.length; n < a; n++) {
|
|
13
13
|
r = arguments[n];
|
|
14
14
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
15
15
|
}
|
|
16
16
|
return t;
|
|
17
|
-
},
|
|
17
|
+
}, H.apply(this, arguments);
|
|
18
18
|
};
|
|
19
19
|
function Ot(e, t, r) {
|
|
20
|
-
if (r || arguments.length === 2) for (var n = 0,
|
|
20
|
+
if (r || arguments.length === 2) for (var n = 0, a = t.length, i; n < a; n++)
|
|
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-",
|
|
25
|
-
function
|
|
24
|
+
var k = "-ms-", dt = "-moz-", C = "-webkit-", En = "comm", Mt = "rule", Er = "decl", xa = "@import", Sn = "@keyframes", Ca = "@layer", Tn = Math.abs, Sr = String.fromCharCode, dr = Object.assign;
|
|
25
|
+
function Aa(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) {
|
|
35
35
|
return e.replace(t, r);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function At(e, t, r) {
|
|
38
38
|
return e.indexOf(t, r);
|
|
39
39
|
}
|
|
40
40
|
function B(e, t) {
|
|
41
41
|
return e.charCodeAt(t) | 0;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Ge(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
|
-
function
|
|
52
|
+
function ct(e, t) {
|
|
53
53
|
return t.push(e), e;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function _a(e, t) {
|
|
56
56
|
return e.map(t).join("");
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Hr(e, t) {
|
|
59
59
|
return e.filter(function(r) {
|
|
60
|
-
return !
|
|
60
|
+
return !he(r, t);
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
var
|
|
64
|
-
function
|
|
65
|
-
return { value: e, root: t, parent: r, type: n, props:
|
|
63
|
+
var Ft = 1, je = 1, Cn = 0, Z = 0, F = 0, Xe = "";
|
|
64
|
+
function zt(e, t, r, n, a, i, s, d) {
|
|
65
|
+
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Ft, column: je, length: s, return: "", siblings: d };
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
return
|
|
67
|
+
function ve(e, t) {
|
|
68
|
+
return dr(zt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Be(e) {
|
|
71
71
|
for (; e.root; )
|
|
72
|
-
e =
|
|
73
|
-
|
|
72
|
+
e = ve(e.root, { children: [e] });
|
|
73
|
+
ct(e, e.siblings);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Ia() {
|
|
76
76
|
return F;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return F = Z > 0 ? B(
|
|
78
|
+
function Ra() {
|
|
79
|
+
return F = Z > 0 ? B(Xe, --Z) : 0, je--, F === 10 && (je = 1, Ft--), F;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return F = Z <
|
|
81
|
+
function ae() {
|
|
82
|
+
return F = Z < Cn ? B(Xe, Z++) : 0, je++, F === 10 && (je = 1, Ft++), F;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return B(
|
|
84
|
+
function Ae() {
|
|
85
|
+
return B(Xe, Z);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function _t() {
|
|
88
88
|
return Z;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
return
|
|
90
|
+
function Bt(e, t) {
|
|
91
|
+
return Ge(Xe, e, t);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function mr(e) {
|
|
94
94
|
switch (e) {
|
|
95
95
|
// \0 \t \n \r \s whitespace token
|
|
96
96
|
case 0:
|
|
@@ -128,27 +128,27 @@ function dr(e) {
|
|
|
128
128
|
}
|
|
129
129
|
return 0;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return
|
|
131
|
+
function ka(e) {
|
|
132
|
+
return Ft = je = 1, Cn = se(Xe = e), Z = 0, [];
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
return
|
|
134
|
+
function Pa(e) {
|
|
135
|
+
return Xe = "", e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
return
|
|
137
|
+
function tr(e) {
|
|
138
|
+
return wn(Bt(Z - 1, fr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
for (; (F =
|
|
142
|
-
|
|
143
|
-
return
|
|
140
|
+
function Oa(e) {
|
|
141
|
+
for (; (F = Ae()) && F < 33; )
|
|
142
|
+
ae();
|
|
143
|
+
return mr(e) > 2 || mr(F) > 3 ? "" : " ";
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
for (; --t &&
|
|
145
|
+
function Na(e, t) {
|
|
146
|
+
for (; --t && ae() && !(F < 48 || F > 102 || F > 57 && F < 65 || F > 70 && F < 97); )
|
|
147
147
|
;
|
|
148
|
-
return
|
|
148
|
+
return Bt(e, _t() + (t < 6 && Ae() == 32 && ae() == 32));
|
|
149
149
|
}
|
|
150
150
|
function fr(e) {
|
|
151
|
-
for (;
|
|
151
|
+
for (; ae(); )
|
|
152
152
|
switch (F) {
|
|
153
153
|
// ] ) " '
|
|
154
154
|
case e:
|
|
@@ -164,57 +164,57 @@ function fr(e) {
|
|
|
164
164
|
break;
|
|
165
165
|
// \
|
|
166
166
|
case 92:
|
|
167
|
-
|
|
167
|
+
ae();
|
|
168
168
|
break;
|
|
169
169
|
}
|
|
170
170
|
return Z;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
for (;
|
|
174
|
-
if (e + F === 84 &&
|
|
172
|
+
function $a(e, t) {
|
|
173
|
+
for (; ae() && e + F !== 57; )
|
|
174
|
+
if (e + F === 84 && Ae() === 47)
|
|
175
175
|
break;
|
|
176
|
-
return "/*" +
|
|
176
|
+
return "/*" + Bt(t, Z - 1) + "*" + Sr(e === 47 ? e : ae());
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
for (; !
|
|
180
|
-
|
|
181
|
-
return
|
|
178
|
+
function Da(e) {
|
|
179
|
+
for (; !mr(Ae()); )
|
|
180
|
+
ae();
|
|
181
|
+
return Bt(e, Z);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
return
|
|
183
|
+
function La(e) {
|
|
184
|
+
return Pa(It("", null, null, null, [""], e = ka(e), 0, [0], e));
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
for (var
|
|
188
|
-
switch (A =
|
|
186
|
+
function It(e, t, r, n, a, i, s, d, u) {
|
|
187
|
+
for (var f = 0, p = 0, T = s, w = 0, E = 0, A = 0, $ = 1, G = 1, D = 1, P = 0, _ = "", b = a, R = i, x = n, y = _; G; )
|
|
188
|
+
switch (A = P, P = ae()) {
|
|
189
189
|
// (
|
|
190
190
|
case 40:
|
|
191
191
|
if (A != 108 && B(y, T - 1) == 58) {
|
|
192
|
-
|
|
192
|
+
At(y += g(tr(P), "&", "&\f"), "&\f", Tn(f ? d[f - 1] : 0)) != -1 && (D = -1);
|
|
193
193
|
break;
|
|
194
194
|
}
|
|
195
195
|
// " ' [
|
|
196
196
|
case 34:
|
|
197
197
|
case 39:
|
|
198
198
|
case 91:
|
|
199
|
-
y +=
|
|
199
|
+
y += tr(P);
|
|
200
200
|
break;
|
|
201
201
|
// \t \n \r \s
|
|
202
202
|
case 9:
|
|
203
203
|
case 10:
|
|
204
204
|
case 13:
|
|
205
205
|
case 32:
|
|
206
|
-
y +=
|
|
206
|
+
y += Oa(A);
|
|
207
207
|
break;
|
|
208
208
|
// \
|
|
209
209
|
case 92:
|
|
210
|
-
y +=
|
|
210
|
+
y += Na(_t() - 1, 7);
|
|
211
211
|
continue;
|
|
212
212
|
// /
|
|
213
213
|
case 47:
|
|
214
|
-
switch (
|
|
214
|
+
switch (Ae()) {
|
|
215
215
|
case 42:
|
|
216
216
|
case 47:
|
|
217
|
-
|
|
217
|
+
ct(Ma($a(ae(), _t()), t, r, u), u);
|
|
218
218
|
break;
|
|
219
219
|
default:
|
|
220
220
|
y += "/";
|
|
@@ -222,28 +222,28 @@ function _t(e, t, r, n, o, i, s, d, u) {
|
|
|
222
222
|
break;
|
|
223
223
|
// {
|
|
224
224
|
case 123 * $:
|
|
225
|
-
d[
|
|
225
|
+
d[f++] = se(y) * D;
|
|
226
226
|
// } ; \0
|
|
227
227
|
case 125 * $:
|
|
228
228
|
case 59:
|
|
229
229
|
case 0:
|
|
230
|
-
switch (
|
|
230
|
+
switch (P) {
|
|
231
231
|
// \0 }
|
|
232
232
|
case 0:
|
|
233
233
|
case 125:
|
|
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 && ct(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:
|
|
241
241
|
y += ";";
|
|
242
242
|
// { rule/at-rule
|
|
243
243
|
default:
|
|
244
|
-
if (
|
|
244
|
+
if (ct(x = Gr(y, t, r, f, p, a, d, _, b = [], R = [], T, i), i), P === 123)
|
|
245
245
|
if (p === 0)
|
|
246
|
-
|
|
246
|
+
It(y, t, x, x, b, i, T, d, R);
|
|
247
247
|
else
|
|
248
248
|
switch (w === 99 && B(y, 3) === 110 ? 100 : w) {
|
|
249
249
|
// d l m s
|
|
@@ -251,58 +251,58 @@ function _t(e, t, r, n, o, i, s, d, u) {
|
|
|
251
251
|
case 108:
|
|
252
252
|
case 109:
|
|
253
253
|
case 115:
|
|
254
|
-
|
|
254
|
+
It(e, x, x, n && ct(Gr(e, x, x, 0, 0, a, d, _, a, b = [], T, R), R), a, R, T, d, n ? b : R);
|
|
255
255
|
break;
|
|
256
256
|
default:
|
|
257
|
-
|
|
257
|
+
It(y, x, x, x, [""], R, 0, d, R);
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
f = 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
|
-
if (
|
|
267
|
+
if (P == 123)
|
|
268
268
|
--$;
|
|
269
|
-
else if (
|
|
269
|
+
else if (P == 125 && $++ == 0 && Ra() == 125)
|
|
270
270
|
continue;
|
|
271
271
|
}
|
|
272
|
-
switch (y +=
|
|
272
|
+
switch (y += Sr(P), P * $) {
|
|
273
273
|
// &
|
|
274
274
|
case 38:
|
|
275
275
|
D = p > 0 ? 1 : (y += "\f", -1);
|
|
276
276
|
break;
|
|
277
277
|
// ,
|
|
278
278
|
case 44:
|
|
279
|
-
d[
|
|
279
|
+
d[f++] = (se(y) - 1) * D, D = 1;
|
|
280
280
|
break;
|
|
281
281
|
// @
|
|
282
282
|
case 64:
|
|
283
|
-
|
|
283
|
+
Ae() === 45 && (y += tr(ae())), w = Ae(), p = T = se(_ = y += Da(_t())), P++;
|
|
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
|
-
function Gr(e, t, r, n,
|
|
293
|
-
for (var w =
|
|
294
|
-
for (var
|
|
295
|
-
(b =
|
|
296
|
-
return
|
|
292
|
+
function Gr(e, t, r, n, a, i, s, d, u, f, p, T) {
|
|
293
|
+
for (var w = a - 1, E = a === 0 ? i : [""], A = xn(E), $ = 0, G = 0, D = 0; $ < n; ++$)
|
|
294
|
+
for (var P = 0, _ = Ge(e, w + 1, w = Tn(G = s[$])), b = e; P < A; ++P)
|
|
295
|
+
(b = wn(G > 0 ? E[P] + " " + _ : g(_, /&\f/g, E[P]))) && (u[D++] = b);
|
|
296
|
+
return zt(e, t, r, a === 0 ? Mt : d, u, f, p, T);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
return
|
|
298
|
+
function Ma(e, t, r, n) {
|
|
299
|
+
return zt(e, t, r, En, Sr(Ia()), Ge(e, 2, -2), 0, n);
|
|
300
300
|
}
|
|
301
|
-
function jr(e, t, r, n,
|
|
302
|
-
return
|
|
301
|
+
function jr(e, t, r, n, a) {
|
|
302
|
+
return zt(e, t, r, Er, Ge(e, 0, n), Ge(e, n + 1, -1), n, a);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
switch (
|
|
304
|
+
function An(e, t, r) {
|
|
305
|
+
switch (Aa(e, t)) {
|
|
306
306
|
// color-adjust
|
|
307
307
|
case 5103:
|
|
308
308
|
return C + "print-" + e + e;
|
|
@@ -338,14 +338,14 @@ function Cn(e, t, r) {
|
|
|
338
338
|
return C + e + e;
|
|
339
339
|
// tab-size
|
|
340
340
|
case 4789:
|
|
341
|
-
return
|
|
341
|
+
return dt + e + e;
|
|
342
342
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
343
343
|
case 5349:
|
|
344
344
|
case 4246:
|
|
345
345
|
case 4810:
|
|
346
346
|
case 6968:
|
|
347
347
|
case 2756:
|
|
348
|
-
return C + e +
|
|
348
|
+
return C + e + dt + e + k + e + e;
|
|
349
349
|
// writing-mode
|
|
350
350
|
case 5936:
|
|
351
351
|
switch (B(e, t + 11)) {
|
|
@@ -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" + Ge(e, t) + e;
|
|
404
404
|
break;
|
|
405
405
|
// grid-template-(columns|rows)
|
|
406
406
|
case 2592:
|
|
@@ -409,14 +409,14 @@ function Cn(e, t, r) {
|
|
|
409
409
|
// grid-(row|column)-start
|
|
410
410
|
case 4384:
|
|
411
411
|
case 3616:
|
|
412
|
-
return r && r.some(function(n,
|
|
413
|
-
return t =
|
|
414
|
-
}) ? ~
|
|
412
|
+
return r && r.some(function(n, a) {
|
|
413
|
+
return t = a, he(n.props, /grid-\w+-end/);
|
|
414
|
+
}) ? ~At(e + (r = r[t].value), "span", 0) ? e : k + g(e, "-start", "") + e + k + "grid-row-span:" + (~At(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:
|
|
@@ -445,17 +445,17 @@ function Cn(e, t, r) {
|
|
|
445
445
|
break;
|
|
446
446
|
// (f)ill-available, (f)it-content
|
|
447
447
|
case 102:
|
|
448
|
-
return g(e, /(.+:)(.+)-([^]+)/, "$1" + C + "$2-$3$1" +
|
|
448
|
+
return g(e, /(.+:)(.+)-([^]+)/, "$1" + C + "$2-$3$1" + dt + (B(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
449
449
|
// (s)tretch
|
|
450
450
|
case 115:
|
|
451
|
-
return ~
|
|
451
|
+
return ~At(e, "stretch", 0) ? An(g(e, "stretch", "fill-available"), t, r) + e : e;
|
|
452
452
|
}
|
|
453
453
|
break;
|
|
454
454
|
// grid-(column|row)
|
|
455
455
|
case 5152:
|
|
456
456
|
case 5920:
|
|
457
|
-
return g(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n,
|
|
458
|
-
return k +
|
|
457
|
+
return g(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, a, i, s, d, u, f) {
|
|
458
|
+
return k + a + ":" + i + f + (s ? k + a + "-span:" + (d ? u : +u - +i) + f : "") + e;
|
|
459
459
|
});
|
|
460
460
|
// position: sticky
|
|
461
461
|
case 4949:
|
|
@@ -483,67 +483,67 @@ function Cn(e, t, r) {
|
|
|
483
483
|
}
|
|
484
484
|
return e;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function Nt(e, t) {
|
|
487
487
|
for (var r = "", n = 0; n < e.length; n++)
|
|
488
488
|
r += t(e[n], n, e, t) || "";
|
|
489
489
|
return r;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Fa(e, t, r, n) {
|
|
492
492
|
switch (e.type) {
|
|
493
|
-
case
|
|
493
|
+
case Ca:
|
|
494
494
|
if (e.children.length) break;
|
|
495
|
-
case
|
|
496
|
-
case
|
|
495
|
+
case xa:
|
|
496
|
+
case Er:
|
|
497
497
|
return e.return = e.return || e.value;
|
|
498
|
-
case vn:
|
|
499
|
-
return "";
|
|
500
498
|
case En:
|
|
501
|
-
return
|
|
502
|
-
case
|
|
503
|
-
|
|
499
|
+
return "";
|
|
500
|
+
case Sn:
|
|
501
|
+
return e.return = e.value + "{" + Nt(e.children, n) + "}";
|
|
502
|
+
case Mt:
|
|
503
|
+
if (!se(e.value = e.props.join(","))) return "";
|
|
504
504
|
}
|
|
505
|
-
return
|
|
505
|
+
return se(r = Nt(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
var t =
|
|
509
|
-
return function(r, n,
|
|
507
|
+
function za(e) {
|
|
508
|
+
var t = xn(e);
|
|
509
|
+
return function(r, n, a, i) {
|
|
510
510
|
for (var s = "", d = 0; d < t; d++)
|
|
511
|
-
s += e[d](r, n,
|
|
511
|
+
s += e[d](r, n, a, i) || "";
|
|
512
512
|
return s;
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Ba(e) {
|
|
516
516
|
return function(t) {
|
|
517
517
|
t.root || (t = t.return) && e(t);
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Ua(e, t, r, n) {
|
|
521
521
|
if (e.length > -1 && !e.return)
|
|
522
522
|
switch (e.type) {
|
|
523
|
-
case
|
|
524
|
-
e.return =
|
|
523
|
+
case Er:
|
|
524
|
+
e.return = An(e.value, e.length, r);
|
|
525
525
|
return;
|
|
526
|
-
case
|
|
527
|
-
return
|
|
528
|
-
case
|
|
526
|
+
case Sn:
|
|
527
|
+
return Nt([ve(e, { value: g(e.value, "@", "@" + C) })], n);
|
|
528
|
+
case Mt:
|
|
529
529
|
if (e.length)
|
|
530
|
-
return
|
|
531
|
-
switch (
|
|
530
|
+
return _a(r = e.props, function(a) {
|
|
531
|
+
switch (he(a, n = /(::plac\w+|:read-\w+)/)) {
|
|
532
532
|
// :read-(only|write)
|
|
533
533
|
case ":read-only":
|
|
534
534
|
case ":read-write":
|
|
535
|
-
|
|
535
|
+
Be(ve(e, { props: [g(a, /:(read-\w+)/, ":" + dt + "$1")] })), Be(ve(e, { props: [a] })), dr(e, { props: Hr(r, n) });
|
|
536
536
|
break;
|
|
537
537
|
// :placeholder
|
|
538
538
|
case "::placeholder":
|
|
539
|
-
|
|
539
|
+
Be(ve(e, { props: [g(a, /:(plac\w+)/, ":" + C + "input-$1")] })), Be(ve(e, { props: [g(a, /:(plac\w+)/, ":" + dt + "$1")] })), Be(ve(e, { props: [g(a, /:(plac\w+)/, k + "input-$1")] })), Be(ve(e, { props: [a] })), dr(e, { props: Hr(r, n) });
|
|
540
540
|
break;
|
|
541
541
|
}
|
|
542
542
|
return "";
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
var
|
|
546
|
+
var Va = {
|
|
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
|
-
`,
|
|
596
|
-
function
|
|
597
|
-
return r === void 0 && (r =
|
|
594
|
+
}, Ye = 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", Ut = "6.1.19", Tr = `/*!sc*/
|
|
595
|
+
`, $t = typeof window < "u" && typeof document < "u", Wa = !!(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), Vt = Object.freeze([]), qe = Object.freeze({});
|
|
596
|
+
function Ha(e, t, r) {
|
|
597
|
+
return r === void 0 && (r = qe), 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"]), Ga = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, ja = /(^-|-$)/g;
|
|
600
600
|
function Yr(e) {
|
|
601
|
-
return e.replace(
|
|
601
|
+
return e.replace(Ga, "-").replace(ja, "");
|
|
602
602
|
}
|
|
603
|
-
var
|
|
603
|
+
var Ya = /(a)(d)/gi, St = 52, qr = function(e) {
|
|
604
604
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
605
605
|
};
|
|
606
|
-
function
|
|
606
|
+
function hr(e) {
|
|
607
607
|
var t, r = "";
|
|
608
|
-
for (t = Math.abs(e); t >
|
|
609
|
-
return (qr(t %
|
|
608
|
+
for (t = Math.abs(e); t > St; t = t / St | 0) r = qr(t % St) + r;
|
|
609
|
+
return (qr(t % St) + r).replace(Ya, "$1-$2");
|
|
610
610
|
}
|
|
611
|
-
var
|
|
611
|
+
var rr, kn = 5381, Ue = 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
|
+
}, Pn = function(e) {
|
|
615
|
+
return Ue(kn, e);
|
|
616
616
|
};
|
|
617
|
-
function
|
|
618
|
-
return
|
|
617
|
+
function qa(e) {
|
|
618
|
+
return hr(Pn(e) >>> 0);
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function Ka(e) {
|
|
621
621
|
return e.displayName || e.name || "Component";
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function nr(e) {
|
|
624
624
|
return typeof e == "string" && !0;
|
|
625
625
|
}
|
|
626
|
-
var On = typeof Symbol == "function" && Symbol.for,
|
|
626
|
+
var On = typeof Symbol == "function" && Symbol.for, Nn = On ? Symbol.for("react.memo") : 60115, Xa = On ? Symbol.for("react.forward_ref") : 60112, Za = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Qa = { 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 }, Ja = ((rr = {})[Xa] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, rr[Nn] = $n, rr);
|
|
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 ? Ja[e.$$typeof] : Za;
|
|
629
629
|
var t;
|
|
630
630
|
}
|
|
631
|
-
var
|
|
632
|
-
function
|
|
631
|
+
var eo = Object.defineProperty, to = Object.getOwnPropertyNames, Xr = Object.getOwnPropertySymbols, ro = Object.getOwnPropertyDescriptor, no = 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 = no(t);
|
|
636
|
+
n && n !== Zr && Dn(e, n, r);
|
|
637
637
|
}
|
|
638
|
-
var
|
|
639
|
-
Xr && (
|
|
640
|
-
for (var i = Kr(e), s = Kr(t), d = 0; d <
|
|
641
|
-
var u =
|
|
642
|
-
if (!(u in
|
|
643
|
-
var
|
|
638
|
+
var a = to(t);
|
|
639
|
+
Xr && (a = a.concat(Xr(t)));
|
|
640
|
+
for (var i = Kr(e), s = Kr(t), d = 0; d < a.length; ++d) {
|
|
641
|
+
var u = a[d];
|
|
642
|
+
if (!(u in Qa || r && r[u] || s && u in s || i && u in i)) {
|
|
643
|
+
var f = ro(t, u);
|
|
644
644
|
try {
|
|
645
|
-
|
|
645
|
+
eo(e, u, f);
|
|
646
646
|
} catch {
|
|
647
647
|
}
|
|
648
648
|
}
|
|
@@ -650,13 +650,13 @@ function $n(e, t, r) {
|
|
|
650
650
|
}
|
|
651
651
|
return e;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function Ie(e) {
|
|
654
654
|
return typeof e == "function";
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function wr(e) {
|
|
657
657
|
return typeof e == "object" && "styledComponentId" in e;
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function xe(e, t) {
|
|
660
660
|
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
661
661
|
}
|
|
662
662
|
function Qr(e, t) {
|
|
@@ -664,23 +664,23 @@ function Qr(e, t) {
|
|
|
664
664
|
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
665
665
|
return r;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function mt(e) {
|
|
668
668
|
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
if (r === void 0 && (r = !1), !r && !
|
|
672
|
-
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] =
|
|
673
|
-
else if (
|
|
670
|
+
function pr(e, t, r) {
|
|
671
|
+
if (r === void 0 && (r = !1), !r && !mt(e) && !Array.isArray(e)) return t;
|
|
672
|
+
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = pr(e[n], t[n]);
|
|
673
|
+
else if (mt(t)) for (var n in t) e[n] = pr(e[n], t[n]);
|
|
674
674
|
return e;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function xr(e, t) {
|
|
677
677
|
Object.defineProperty(e, "toString", { value: t });
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function Re(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 ao = (function() {
|
|
684
684
|
function e(t) {
|
|
685
685
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
686
686
|
}
|
|
@@ -689,69 +689,69 @@ var Jo = (function() {
|
|
|
689
689
|
return r;
|
|
690
690
|
}, e.prototype.insertRules = function(t, r) {
|
|
691
691
|
if (t >= this.groupSizes.length) {
|
|
692
|
-
for (var n = this.groupSizes,
|
|
692
|
+
for (var n = this.groupSizes, a = n.length, i = a; t >= i; ) if ((i <<= 1) < 0) throw Re(16, "".concat(t));
|
|
693
693
|
this.groupSizes = new Uint32Array(i), this.groupSizes.set(n), this.length = i;
|
|
694
|
-
for (var s =
|
|
694
|
+
for (var s = a; s < i; s++) this.groupSizes[s] = 0;
|
|
695
695
|
}
|
|
696
696
|
for (var d = this.indexOfGroup(t + 1), u = (s = 0, r.length); s < u; s++) this.tag.insertRule(d, r[s]) && (this.groupSizes[t]++, d++);
|
|
697
697
|
}, e.prototype.clearGroup = function(t) {
|
|
698
698
|
if (t < this.length) {
|
|
699
|
-
var r = this.groupSizes[t], n = this.indexOfGroup(t),
|
|
699
|
+
var r = this.groupSizes[t], n = this.indexOfGroup(t), a = n + r;
|
|
700
700
|
this.groupSizes[t] = 0;
|
|
701
|
-
for (var i = n; i <
|
|
701
|
+
for (var i = n; i < a; i++) this.tag.deleteRule(n);
|
|
702
702
|
}
|
|
703
703
|
}, e.prototype.getGroup = function(t) {
|
|
704
704
|
var r = "";
|
|
705
705
|
if (t >= this.length || this.groupSizes[t] === 0) return r;
|
|
706
|
-
for (var n = this.groupSizes[t],
|
|
706
|
+
for (var n = this.groupSizes[t], a = this.indexOfGroup(t), i = a + n, s = a; s < i; s++) r += "".concat(this.tag.getRule(s)).concat(Tr);
|
|
707
707
|
return r;
|
|
708
708
|
}, e;
|
|
709
|
-
})(),
|
|
710
|
-
if (
|
|
711
|
-
for (;
|
|
712
|
-
var t =
|
|
713
|
-
return
|
|
714
|
-
},
|
|
715
|
-
|
|
716
|
-
},
|
|
717
|
-
for (var n,
|
|
718
|
-
},
|
|
719
|
-
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(
|
|
709
|
+
})(), Rt = /* @__PURE__ */ new Map(), Dt = /* @__PURE__ */ new Map(), kt = 1, Tt = function(e) {
|
|
710
|
+
if (Rt.has(e)) return Rt.get(e);
|
|
711
|
+
for (; Dt.has(kt); ) kt++;
|
|
712
|
+
var t = kt++;
|
|
713
|
+
return Rt.set(e, t), Dt.set(t, e), t;
|
|
714
|
+
}, oo = function(e, t) {
|
|
715
|
+
kt = t + 1, Rt.set(e, t), Dt.set(t, e);
|
|
716
|
+
}, io = "style[".concat(Ye, "][").concat(In, '="').concat(Ut, '"]'), so = new RegExp("^".concat(Ye, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), lo = function(e, t, r) {
|
|
717
|
+
for (var n, a = r.split(","), i = 0, s = a.length; i < s; i++) (n = a[i]) && e.registerName(t, n);
|
|
718
|
+
}, co = function(e, t) {
|
|
719
|
+
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Tr), a = [], 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(so);
|
|
723
723
|
if (u) {
|
|
724
|
-
var
|
|
725
|
-
|
|
726
|
-
} else
|
|
724
|
+
var f = 0 | parseInt(u[1], 10), p = u[2];
|
|
725
|
+
f !== 0 && (oo(p, f), lo(e, p, u[3]), e.getTag().insertRules(f, a)), a.length = 0;
|
|
726
|
+
} else a.push(d);
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
}, Jr = function(e) {
|
|
730
|
-
for (var t = document.querySelectorAll(
|
|
731
|
-
var
|
|
732
|
-
|
|
730
|
+
for (var t = document.querySelectorAll(io), r = 0, n = t.length; r < n; r++) {
|
|
731
|
+
var a = t[r];
|
|
732
|
+
a && a.getAttribute(Ye) !== _n && (co(e, a), a.parentNode && a.parentNode.removeChild(a));
|
|
733
733
|
}
|
|
734
734
|
};
|
|
735
|
-
function
|
|
735
|
+
function uo() {
|
|
736
736
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
737
737
|
}
|
|
738
|
-
var
|
|
739
|
-
var t = document.head, r = e || t, n = document.createElement("style"),
|
|
740
|
-
var u = Array.from(d.querySelectorAll("style[".concat(
|
|
738
|
+
var Ln = function(e) {
|
|
739
|
+
var t = document.head, r = e || t, n = document.createElement("style"), a = (function(d) {
|
|
740
|
+
var u = Array.from(d.querySelectorAll("style[".concat(Ye, "]")));
|
|
741
741
|
return u[u.length - 1];
|
|
742
|
-
})(r), i =
|
|
743
|
-
n.setAttribute(
|
|
744
|
-
var s =
|
|
742
|
+
})(r), i = a !== void 0 ? a.nextSibling : null;
|
|
743
|
+
n.setAttribute(Ye, _n), n.setAttribute(In, Ut);
|
|
744
|
+
var s = uo();
|
|
745
745
|
return s && n.setAttribute("nonce", s), r.insertBefore(n, i), n;
|
|
746
|
-
},
|
|
746
|
+
}, mo = (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
|
-
for (var n = document.styleSheets,
|
|
751
|
-
var s = n[
|
|
750
|
+
for (var n = document.styleSheets, a = 0, i = n.length; a < i; a++) {
|
|
751
|
+
var s = n[a];
|
|
752
752
|
if (s.ownerNode === r) return s;
|
|
753
753
|
}
|
|
754
|
-
throw
|
|
754
|
+
throw Re(17);
|
|
755
755
|
})(this.element), this.length = 0;
|
|
756
756
|
}
|
|
757
757
|
return e.prototype.insertRule = function(t, r) {
|
|
@@ -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
|
+
})(), fo = (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
|
+
})(), ho = (function() {
|
|
785
785
|
function e(t) {
|
|
786
786
|
this.rules = [], this.length = 0;
|
|
787
787
|
}
|
|
@@ -792,207 +792,207 @@ 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 =
|
|
795
|
+
})(), en = $t, po = { isServer: !$t, useCSSOMInjection: !Wa }, Mn = (function() {
|
|
796
796
|
function e(t, r, n) {
|
|
797
|
-
t === void 0 && (t =
|
|
798
|
-
var
|
|
799
|
-
this.options =
|
|
797
|
+
t === void 0 && (t = qe), r === void 0 && (r = {});
|
|
798
|
+
var a = this;
|
|
799
|
+
this.options = H(H({}, po), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && $t && en && (en = !1, Jr(this)), xr(this, function() {
|
|
800
800
|
return (function(i) {
|
|
801
|
-
for (var s = i.getTag(), d = s.length, u = "",
|
|
801
|
+
for (var s = i.getTag(), d = s.length, u = "", f = function(T) {
|
|
802
802
|
var w = (function(D) {
|
|
803
|
-
return
|
|
803
|
+
return Dt.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(Ye, ".g").concat(T, '[id="').concat(w, '"]'), G = "";
|
|
809
|
+
E !== void 0 && E.forEach(function(D) {
|
|
810
810
|
D.length > 0 && (G += "".concat(D, ","));
|
|
811
|
-
}), u += "".concat(A).concat($, '{content:"').concat(G, '"}').concat(
|
|
812
|
-
}, p = 0; p < d; p++)
|
|
811
|
+
}), u += "".concat(A).concat($, '{content:"').concat(G, '"}').concat(Tr);
|
|
812
|
+
}, p = 0; p < d; p++) f(p);
|
|
813
813
|
return u;
|
|
814
|
-
})(
|
|
814
|
+
})(a);
|
|
815
815
|
});
|
|
816
816
|
}
|
|
817
817
|
return e.registerId = function(t) {
|
|
818
|
-
return
|
|
818
|
+
return Tt(t);
|
|
819
819
|
}, e.prototype.rehydrate = function() {
|
|
820
|
-
!this.server &&
|
|
820
|
+
!this.server && $t && Jr(this);
|
|
821
821
|
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
822
|
-
return r === void 0 && (r = !0), new e(
|
|
822
|
+
return r === void 0 && (r = !0), new e(H(H({}, this.options), t), this.gs, r && this.names || void 0);
|
|
823
823
|
}, e.prototype.allocateGSInstance = function(t) {
|
|
824
824
|
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
825
825
|
}, e.prototype.getTag = function() {
|
|
826
826
|
return this.tag || (this.tag = (t = (function(r) {
|
|
827
|
-
var n = r.useCSSOMInjection,
|
|
828
|
-
return r.isServer ? new
|
|
829
|
-
})(this.options), new
|
|
827
|
+
var n = r.useCSSOMInjection, a = r.target;
|
|
828
|
+
return r.isServer ? new ho(a) : n ? new mo(a) : new fo(a);
|
|
829
|
+
})(this.options), new ao(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);
|
|
833
833
|
}, e.prototype.registerName = function(t, r) {
|
|
834
|
-
if (
|
|
834
|
+
if (Tt(t), this.names.has(t)) this.names.get(t).add(r);
|
|
835
835
|
else {
|
|
836
836
|
var n = /* @__PURE__ */ new Set();
|
|
837
837
|
n.add(r), this.names.set(t, n);
|
|
838
838
|
}
|
|
839
839
|
}, e.prototype.insertRules = function(t, r, n) {
|
|
840
|
-
this.registerName(t, r), this.getTag().insertRules(
|
|
840
|
+
this.registerName(t, r), this.getTag().insertRules(Tt(t), n);
|
|
841
841
|
}, e.prototype.clearNames = function(t) {
|
|
842
842
|
this.names.has(t) && this.names.get(t).clear();
|
|
843
843
|
}, e.prototype.clearRules = function(t) {
|
|
844
|
-
this.getTag().clearGroup(
|
|
844
|
+
this.getTag().clearGroup(Tt(t)), this.clearNames(t);
|
|
845
845
|
}, e.prototype.clearTag = function() {
|
|
846
846
|
this.tag = void 0;
|
|
847
847
|
}, e;
|
|
848
|
-
})(),
|
|
849
|
-
function
|
|
848
|
+
})(), go = /&/g, bo = /^\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,
|
|
856
|
+
function yo(e) {
|
|
857
|
+
var t, r, n, a = qe, i = a.options, s = i === void 0 ? qe : i, d = a.plugins, u = d === void 0 ? Vt : d, f = 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 ===
|
|
862
|
-
}), s.prefix && p.push(
|
|
863
|
-
var T = function(w,
|
|
864
|
-
|
|
865
|
-
var G = w.replace(
|
|
866
|
-
s.namespace && (D =
|
|
867
|
-
var
|
|
868
|
-
return
|
|
869
|
-
return
|
|
870
|
-
})))),
|
|
861
|
+
w.type === Mt && w.value.includes("&") && (w.props[0] = w.props[0].replace(go, r).replace(n, f));
|
|
862
|
+
}), s.prefix && p.push(Ua), p.push(Fa);
|
|
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(bo, ""), D = La(A || E ? "".concat(A, " ").concat(E, " { ").concat(G, " }") : G);
|
|
866
|
+
s.namespace && (D = Fn(D, s.namespace));
|
|
867
|
+
var P = [];
|
|
868
|
+
return Nt(D, za(p.concat(Ba(function(_) {
|
|
869
|
+
return P.push(_);
|
|
870
|
+
})))), P;
|
|
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 || Re(15), Ue(w, E.name);
|
|
874
|
+
}, kn).toString() : "", T;
|
|
875
875
|
}
|
|
876
|
-
var
|
|
877
|
-
|
|
876
|
+
var vo = new Mn(), gr = yo(), zn = l.createContext({ shouldForwardProp: void 0, styleSheet: vo, stylis: gr });
|
|
877
|
+
zn.Consumer;
|
|
878
878
|
l.createContext(void 0);
|
|
879
879
|
function tn() {
|
|
880
|
-
return
|
|
880
|
+
return va(zn);
|
|
881
881
|
}
|
|
882
|
-
var
|
|
882
|
+
var Eo = (function() {
|
|
883
883
|
function e(t, r) {
|
|
884
884
|
var n = this;
|
|
885
|
-
this.inject = function(
|
|
886
|
-
i === void 0 && (i =
|
|
885
|
+
this.inject = function(a, i) {
|
|
886
|
+
i === void 0 && (i = gr);
|
|
887
887
|
var s = n.name + i.hash;
|
|
888
|
-
|
|
889
|
-
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r,
|
|
890
|
-
throw
|
|
888
|
+
a.hasNameForId(n.id, s) || a.insertRules(n.id, s, i(n.rules, s, "@keyframes"));
|
|
889
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, xr(this, function() {
|
|
890
|
+
throw Re(12, String(n.name));
|
|
891
891
|
});
|
|
892
892
|
}
|
|
893
893
|
return e.prototype.getName = function(t) {
|
|
894
|
-
return t === void 0 && (t =
|
|
894
|
+
return t === void 0 && (t = gr), this.name + t.hash;
|
|
895
895
|
}, e;
|
|
896
|
-
})(),
|
|
896
|
+
})(), So = 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
|
+
So(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
|
-
for (var
|
|
912
|
-
var i = e[
|
|
913
|
-
e.hasOwnProperty(
|
|
911
|
+
for (var a in e) {
|
|
912
|
+
var i = e[a];
|
|
913
|
+
e.hasOwnProperty(a) && !Bn(i) && (Array.isArray(i) && i.isCss || Ie(i) ? n.push("".concat(rn(a), ":"), i, ";") : mt(i) ? n.push.apply(n, Ot(Ot(["".concat(a, " {")], Un(i), !1), ["}"], !1)) : n.push("".concat(rn(a), ": ").concat((t = a, (r = i) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in Va || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
914
914
|
}
|
|
915
915
|
return n;
|
|
916
916
|
};
|
|
917
|
-
function
|
|
918
|
-
if (
|
|
919
|
-
if (
|
|
920
|
-
if (
|
|
921
|
-
if (!
|
|
922
|
-
var
|
|
923
|
-
return
|
|
917
|
+
function _e(e, t, r, n) {
|
|
918
|
+
if (Bn(e)) return [];
|
|
919
|
+
if (wr(e)) return [".".concat(e.styledComponentId)];
|
|
920
|
+
if (Ie(e)) {
|
|
921
|
+
if (!Ie(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
|
|
922
|
+
var a = e(t);
|
|
923
|
+
return _e(a, t, r, n);
|
|
924
924
|
}
|
|
925
925
|
var i;
|
|
926
|
-
return e instanceof
|
|
927
|
-
return
|
|
926
|
+
return e instanceof Eo ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : mt(e) ? Un(e) : Array.isArray(e) ? Array.prototype.concat.apply(Vt, e.map(function(s) {
|
|
927
|
+
return _e(s, t, r, n);
|
|
928
928
|
})) : [e.toString()];
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function To(e) {
|
|
931
931
|
for (var t = 0; t < e.length; t += 1) {
|
|
932
932
|
var r = e[t];
|
|
933
|
-
if (
|
|
933
|
+
if (Ie(r) && !wr(r)) return !1;
|
|
934
934
|
}
|
|
935
935
|
return !0;
|
|
936
936
|
}
|
|
937
|
-
var
|
|
937
|
+
var wo = Pn(Ut), xo = (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) && To(t), this.componentId = r, this.baseHash = Ue(wo, r), this.baseStyle = n, Mn.registerId(r);
|
|
940
940
|
}
|
|
941
941
|
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
942
|
-
var
|
|
943
|
-
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId))
|
|
942
|
+
var a = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
943
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) a = xe(a, this.staticRulesId);
|
|
944
944
|
else {
|
|
945
|
-
var i = Qr(
|
|
945
|
+
var i = Qr(_e(this.rules, t, r, n)), s = hr(Ue(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);
|
|
949
949
|
}
|
|
950
|
-
|
|
950
|
+
a = xe(a, s), this.staticRulesId = s;
|
|
951
951
|
}
|
|
952
952
|
else {
|
|
953
|
-
for (var u =
|
|
953
|
+
for (var u = Ue(this.baseHash, n.hash), f = "", p = 0; p < this.rules.length; p++) {
|
|
954
954
|
var T = this.rules[p];
|
|
955
|
-
if (typeof T == "string")
|
|
955
|
+
if (typeof T == "string") f += T;
|
|
956
956
|
else if (T) {
|
|
957
|
-
var w = Qr(
|
|
958
|
-
u =
|
|
957
|
+
var w = Qr(_e(T, t, r, n));
|
|
958
|
+
u = Ue(u, w + p), f += w;
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
if (
|
|
962
|
-
var
|
|
963
|
-
r.hasNameForId(this.componentId,
|
|
961
|
+
if (f) {
|
|
962
|
+
var E = hr(u >>> 0);
|
|
963
|
+
r.hasNameForId(this.componentId, E) || r.insertRules(this.componentId, E, n(f, ".".concat(E), void 0, this.componentId)), a = xe(a, E);
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
|
-
return
|
|
966
|
+
return a;
|
|
967
967
|
}, e;
|
|
968
|
-
})(),
|
|
969
|
-
|
|
970
|
-
function
|
|
971
|
-
var t = l.useContext(
|
|
972
|
-
return (function(n,
|
|
973
|
-
if (!n) throw
|
|
974
|
-
if (
|
|
975
|
-
var i = n(
|
|
968
|
+
})(), Lt = l.createContext(void 0);
|
|
969
|
+
Lt.Consumer;
|
|
970
|
+
function Co(e) {
|
|
971
|
+
var t = l.useContext(Lt), r = le(function() {
|
|
972
|
+
return (function(n, a) {
|
|
973
|
+
if (!n) throw Re(14);
|
|
974
|
+
if (Ie(n)) {
|
|
975
|
+
var i = n(a);
|
|
976
976
|
return i;
|
|
977
977
|
}
|
|
978
|
-
if (Array.isArray(n) || typeof n != "object") throw
|
|
979
|
-
return
|
|
978
|
+
if (Array.isArray(n) || typeof n != "object") throw Re(8);
|
|
979
|
+
return a ? H(H({}, a), n) : n;
|
|
980
980
|
})(e.theme, t);
|
|
981
981
|
}, [e.theme, t]);
|
|
982
|
-
return e.children ? l.createElement(
|
|
982
|
+
return e.children ? l.createElement(Lt.Provider, { value: r }, e.children) : null;
|
|
983
983
|
}
|
|
984
|
-
var
|
|
985
|
-
function
|
|
986
|
-
var n =
|
|
984
|
+
var ar = {};
|
|
985
|
+
function Ao(e, t, r) {
|
|
986
|
+
var n = wr(e), a = e, i = !nr(e), s = t.attrs, d = s === void 0 ? Vt : s, u = t.componentId, f = u === void 0 ? (function(b, R) {
|
|
987
987
|
var x = typeof b != "string" ? "sc" : Yr(b);
|
|
988
|
-
|
|
989
|
-
var y = "".concat(x, "-").concat(
|
|
988
|
+
ar[x] = (ar[x] || 0) + 1;
|
|
989
|
+
var y = "".concat(x, "-").concat(qa(Ut + x + ar[x]));
|
|
990
990
|
return R ? "".concat(R, "-").concat(y) : y;
|
|
991
991
|
})(t.displayName, t.parentComponentId) : u, p = t.displayName, T = p === void 0 ? (function(b) {
|
|
992
|
-
return
|
|
993
|
-
})(e) : p, w = t.displayName && t.componentId ? "".concat(Yr(t.displayName), "-").concat(t.componentId) : t.componentId ||
|
|
994
|
-
if (n &&
|
|
995
|
-
var $ =
|
|
992
|
+
return nr(b) ? "styled.".concat(b) : "Styled(".concat(Ka(b), ")");
|
|
993
|
+
})(e) : p, w = t.displayName && t.componentId ? "".concat(Yr(t.displayName), "-").concat(t.componentId) : t.componentId || f, E = n && a.attrs ? a.attrs.concat(d).filter(Boolean) : d, A = t.shouldForwardProp;
|
|
994
|
+
if (n && a.shouldForwardProp) {
|
|
995
|
+
var $ = a.shouldForwardProp;
|
|
996
996
|
if (t.shouldForwardProp) {
|
|
997
997
|
var G = t.shouldForwardProp;
|
|
998
998
|
A = function(b, R) {
|
|
@@ -1000,70 +1000,70 @@ function Ea(e, t, r) {
|
|
|
1000
1000
|
};
|
|
1001
1001
|
} else A = $;
|
|
1002
1002
|
}
|
|
1003
|
-
var D = new
|
|
1004
|
-
function
|
|
1005
|
-
return (function(x, y,
|
|
1006
|
-
var
|
|
1007
|
-
for (var
|
|
1008
|
-
var
|
|
1009
|
-
for (var j in
|
|
1003
|
+
var D = new xo(r, w, n ? a.componentStyle : void 0);
|
|
1004
|
+
function P(b, R) {
|
|
1005
|
+
return (function(x, y, ge) {
|
|
1006
|
+
var Pe = x.attrs, Wt = x.componentStyle, U = x.defaultProps, Ze = x.foldedComponentIds, Qe = x.styledComponentId, Je = x.target, Ht = l.useContext(Lt), Gt = tn(), et = x.shouldForwardProp || Gt.shouldForwardProp, tt = Ha(y, Ht, U) || qe, J = (function(I, te, be) {
|
|
1007
|
+
for (var ye, re = H(H({}, te), { className: void 0, theme: be }), Ne = 0; Ne < I.length; Ne += 1) {
|
|
1008
|
+
var Se = Ie(ye = I[Ne]) ? ye(re) : ye;
|
|
1009
|
+
for (var j in Se) re[j] = j === "className" ? xe(re[j], Se[j]) : j === "style" ? H(H({}, re[j]), Se[j]) : Se[j];
|
|
1010
1010
|
}
|
|
1011
|
-
return te.className && (re.className =
|
|
1012
|
-
})(
|
|
1013
|
-
for (var ee in J) J[ee] === void 0 || ee[0] === "$" || ee === "as" || ee === "theme" && J.theme ===
|
|
1011
|
+
return te.className && (re.className = xe(re.className, te.className)), re;
|
|
1012
|
+
})(Pe, y, tt), Ee = J.as || Je, O = {};
|
|
1013
|
+
for (var ee in J) J[ee] === void 0 || ee[0] === "$" || ee === "as" || ee === "theme" && J.theme === tt || (ee === "forwardedAs" ? O.as = J.forwardedAs : et && !et(ee, Ee) || (O[ee] = J[ee]));
|
|
1014
1014
|
var L = (function(I, te) {
|
|
1015
|
-
var
|
|
1016
|
-
return
|
|
1017
|
-
})(Wt, J),
|
|
1018
|
-
return L && (
|
|
1015
|
+
var be = tn(), ye = I.generateAndInjectStyles(te, be.styleSheet, be.stylis);
|
|
1016
|
+
return ye;
|
|
1017
|
+
})(Wt, J), Oe = xe(Ze, Qe);
|
|
1018
|
+
return L && (Oe += " " + L), J.className && (Oe += " " + J.className), O[nr(Ee) && !Rn.has(Ee) ? "class" : "className"] = Oe, ge && (O.ref = ge), ya(Ee, O);
|
|
1019
1019
|
})(_, b, R);
|
|
1020
1020
|
}
|
|
1021
|
-
|
|
1022
|
-
var _ = l.forwardRef(
|
|
1023
|
-
return _.attrs =
|
|
1021
|
+
P.displayName = T;
|
|
1022
|
+
var _ = l.forwardRef(P);
|
|
1023
|
+
return _.attrs = E, _.componentStyle = D, _.displayName = T, _.shouldForwardProp = A, _.foldedComponentIds = n ? xe(a.foldedComponentIds, a.styledComponentId) : "", _.styledComponentId = w, _.target = n ? a.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
|
|
1028
|
+
for (var ge = 0, Pe = x; ge < Pe.length; ge++) pr(R, Pe[ge], !0);
|
|
1029
1029
|
return R;
|
|
1030
|
-
})({},
|
|
1031
|
-
} }),
|
|
1030
|
+
})({}, a.defaultProps, b) : b;
|
|
1031
|
+
} }), xr(_, 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
|
-
for (var r = [e[0]], n = 0,
|
|
1036
|
+
for (var r = [e[0]], n = 0, a = t.length; n < a; n += 1) r.push(t[n], e[n + 1]);
|
|
1037
1037
|
return r;
|
|
1038
1038
|
}
|
|
1039
|
-
var
|
|
1039
|
+
var an = function(e) {
|
|
1040
1040
|
return Object.assign(e, { isCss: !0 });
|
|
1041
1041
|
};
|
|
1042
|
-
function
|
|
1042
|
+
function _o(e) {
|
|
1043
1043
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1044
|
-
if (
|
|
1044
|
+
if (Ie(e) || mt(e)) return an(_e(nn(Vt, Ot([e], t, !0))));
|
|
1045
1045
|
var n = e;
|
|
1046
|
-
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ?
|
|
1046
|
+
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? _e(n) : an(_e(nn(n, t)));
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1049
|
-
if (r === void 0 && (r =
|
|
1050
|
-
var n = function(
|
|
1048
|
+
function br(e, t, r) {
|
|
1049
|
+
if (r === void 0 && (r = qe), !t) throw Re(1, t);
|
|
1050
|
+
var n = function(a) {
|
|
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, _o.apply(void 0, Ot([a], i, !1)));
|
|
1053
1053
|
};
|
|
1054
|
-
return n.attrs = function(
|
|
1055
|
-
return
|
|
1056
|
-
}, n.withConfig = function(
|
|
1057
|
-
return
|
|
1054
|
+
return n.attrs = function(a) {
|
|
1055
|
+
return br(e, t, H(H({}, r), { attrs: Array.prototype.concat(r.attrs, a).filter(Boolean) }));
|
|
1056
|
+
}, n.withConfig = function(a) {
|
|
1057
|
+
return br(e, t, H(H({}, r), a));
|
|
1058
1058
|
}, n;
|
|
1059
1059
|
}
|
|
1060
|
-
var
|
|
1061
|
-
return
|
|
1062
|
-
},
|
|
1063
|
-
|
|
1064
|
-
|
|
1060
|
+
var Vn = function(e) {
|
|
1061
|
+
return br(Ao, e);
|
|
1062
|
+
}, v = Vn;
|
|
1063
|
+
Rn.forEach(function(e) {
|
|
1064
|
+
v[e] = Vn(e);
|
|
1065
1065
|
});
|
|
1066
|
-
const
|
|
1066
|
+
const Ve = {
|
|
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
|
+
}, Io = {
|
|
1123
1123
|
selectedVariant: "primary",
|
|
1124
1124
|
getDefaultVariantOrSelected: () => "primary",
|
|
1125
|
-
...
|
|
1125
|
+
...Ve
|
|
1126
1126
|
}, Wn = l.createContext({
|
|
1127
|
-
...
|
|
1128
|
-
...
|
|
1129
|
-
}),
|
|
1127
|
+
...Ve,
|
|
1128
|
+
...Io
|
|
1129
|
+
}), Ro = v.div`
|
|
1130
1130
|
font-family:
|
|
1131
1131
|
ui-sans-serif,
|
|
1132
1132
|
system-ui,
|
|
@@ -1177,29 +1177,29 @@ const Be = {
|
|
|
1177
1177
|
--depth: ${(e) => e.$theme.depth};
|
|
1178
1178
|
--spacing: ${(e) => e.$theme.spacing};
|
|
1179
1179
|
--all-fields-size: ${(e) => e.$theme.allFieldsSize};
|
|
1180
|
-
`,
|
|
1180
|
+
`, pe = (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 ??
|
|
1182
|
+
return console.log("ThemeProvider_theme", e.theme ?? Ve), l.createElement(Co, {
|
|
1183
|
+
theme: e.theme ?? Ve,
|
|
1184
|
+
children: l.createElement(Ro, {
|
|
1185
|
+
$theme: e.theme ?? Ve,
|
|
1186
1186
|
children: l.createElement(Wn.Provider, {
|
|
1187
1187
|
value: {
|
|
1188
1188
|
selectedVariant: t,
|
|
1189
1189
|
getDefaultVariantOrSelected: () => t,
|
|
1190
|
-
...e.theme ??
|
|
1190
|
+
...e.theme ?? Ve
|
|
1191
1191
|
},
|
|
1192
1192
|
children: e.children
|
|
1193
1193
|
})
|
|
1194
1194
|
})
|
|
1195
1195
|
});
|
|
1196
|
-
}, Hn = () => l.useContext(Wn),
|
|
1196
|
+
}, Hn = () => l.useContext(Wn), ce = (e) => {
|
|
1197
1197
|
const { getDefaultVariantOrSelected: t, ...r } = Hn(), n = t();
|
|
1198
1198
|
return r[e ?? n];
|
|
1199
|
-
},
|
|
1200
|
-
const { getDefaultVariantOrSelected: t, ...r } = Hn(), n = t(),
|
|
1201
|
-
return r[
|
|
1202
|
-
},
|
|
1199
|
+
}, Gn = (e) => {
|
|
1200
|
+
const { getDefaultVariantOrSelected: t, ...r } = Hn(), n = t(), a = e ? `${e}Content` : `${n}Content`;
|
|
1201
|
+
return r[a];
|
|
1202
|
+
}, ko = () => {
|
|
1203
1203
|
const e = "http://localhost:4000/external", t = async (r) => {
|
|
1204
1204
|
const n = await r;
|
|
1205
1205
|
if (!n.ok)
|
|
@@ -1214,17 +1214,17 @@ const Be = {
|
|
|
1214
1214
|
return (await r).json();
|
|
1215
1215
|
};
|
|
1216
1216
|
return {
|
|
1217
|
-
post: async (r, n,
|
|
1217
|
+
post: async (r, n, a) => {
|
|
1218
1218
|
var i;
|
|
1219
1219
|
try {
|
|
1220
1220
|
return t(
|
|
1221
1221
|
fetch(`${e}${r}`, {
|
|
1222
1222
|
method: "POST",
|
|
1223
1223
|
body: JSON.stringify(n),
|
|
1224
|
-
signal: ((i =
|
|
1224
|
+
signal: ((i = a == null ? void 0 : a.abortController) == null ? void 0 : i.signal) ?? null,
|
|
1225
1225
|
headers: {
|
|
1226
1226
|
"Content-Type": "application/json",
|
|
1227
|
-
...(
|
|
1227
|
+
...(a == null ? void 0 : a.headers) ?? {}
|
|
1228
1228
|
}
|
|
1229
1229
|
})
|
|
1230
1230
|
);
|
|
@@ -1233,12 +1233,12 @@ const Be = {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
},
|
|
1235
1235
|
get: async (r, n) => {
|
|
1236
|
-
var
|
|
1236
|
+
var a;
|
|
1237
1237
|
try {
|
|
1238
1238
|
return t(
|
|
1239
1239
|
fetch(`${e}${r}`, {
|
|
1240
1240
|
method: "GET",
|
|
1241
|
-
signal: ((
|
|
1241
|
+
signal: ((a = n == null ? void 0 : n.abortController) == null ? void 0 : a.signal) ?? null,
|
|
1242
1242
|
headers: {
|
|
1243
1243
|
"Content-Type": "application/json",
|
|
1244
1244
|
...(n == null ? void 0 : n.headers) ?? {}
|
|
@@ -1250,7 +1250,7 @@ const Be = {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
1252
|
};
|
|
1253
|
-
},
|
|
1253
|
+
}, on = {
|
|
1254
1254
|
meta: { name: "asd" },
|
|
1255
1255
|
steps: [
|
|
1256
1256
|
{
|
|
@@ -1403,7 +1403,7 @@ const Be = {
|
|
|
1403
1403
|
]
|
|
1404
1404
|
}
|
|
1405
1405
|
]
|
|
1406
|
-
},
|
|
1406
|
+
}, Po = (e, t) => new Promise((r) => {
|
|
1407
1407
|
r({
|
|
1408
1408
|
id: "",
|
|
1409
1409
|
domainId: "",
|
|
@@ -1430,7 +1430,7 @@ const Be = {
|
|
|
1430
1430
|
bottom: -20,
|
|
1431
1431
|
right: 0
|
|
1432
1432
|
},
|
|
1433
|
-
form:
|
|
1433
|
+
form: on
|
|
1434
1434
|
},
|
|
1435
1435
|
inlineForm: {
|
|
1436
1436
|
meta: {
|
|
@@ -1443,19 +1443,19 @@ const Be = {
|
|
|
1443
1443
|
submitButtonText: "Submit",
|
|
1444
1444
|
formTitle: "We are looking forward to hear from you!"
|
|
1445
1445
|
},
|
|
1446
|
-
form:
|
|
1446
|
+
form: on
|
|
1447
1447
|
}
|
|
1448
1448
|
});
|
|
1449
|
-
}),
|
|
1450
|
-
const [t, r] =
|
|
1451
|
-
return
|
|
1449
|
+
}), Oo = (e) => {
|
|
1450
|
+
const [t, r] = We(), [n, a] = We(!0), [i, s] = We(null);
|
|
1451
|
+
return He(() => {
|
|
1452
1452
|
const d = new AbortController();
|
|
1453
|
-
return
|
|
1453
|
+
return a(!0), e(d).then(r).catch(s).finally(() => a(!1)), () => {
|
|
1454
1454
|
d.abort();
|
|
1455
1455
|
};
|
|
1456
1456
|
}, []), { data: t, loading: n, error: i };
|
|
1457
|
-
},
|
|
1458
|
-
const t =
|
|
1457
|
+
}, Ke = v.button((e) => {
|
|
1458
|
+
const t = ce(), r = Gn(), a = !e.$outlined ? t : "#fff", i = e.$outlined ? t : r, s = e.$outlined ? i : a, d = `calc(${e.theme.sizeField} * 10)`;
|
|
1459
1459
|
return {
|
|
1460
1460
|
borderRadius: e.theme.radiusField,
|
|
1461
1461
|
borderColor: e.disabled ? "#cfcfcf" : s,
|
|
@@ -1467,7 +1467,7 @@ const Be = {
|
|
|
1467
1467
|
opacity: e.disabled ? 0.5 : 1,
|
|
1468
1468
|
paddingInline: "1.2rem",
|
|
1469
1469
|
transition: "all 0.2s ease-in-out",
|
|
1470
|
-
background: e.disabled ? "#cfcfcf" :
|
|
1470
|
+
background: e.disabled ? "#cfcfcf" : a,
|
|
1471
1471
|
borderWidth: e.theme.borderWidth,
|
|
1472
1472
|
userSelect: e.disabled ? "none" : void 0,
|
|
1473
1473
|
color: e.disabled ? "#888888" : i,
|
|
@@ -1489,7 +1489,7 @@ const Be = {
|
|
|
1489
1489
|
paddingInline: "0.7rem"
|
|
1490
1490
|
}
|
|
1491
1491
|
};
|
|
1492
|
-
}),
|
|
1492
|
+
}), No = 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(No, {
|
|
1516
1516
|
ref: t,
|
|
1517
1517
|
$height: e.height,
|
|
1518
1518
|
$isVisible: e.isVisible,
|
|
1519
1519
|
children: e.children
|
|
1520
1520
|
});
|
|
1521
|
-
},
|
|
1521
|
+
}, $o = v.ul`
|
|
1522
1522
|
counter-reset: step;
|
|
1523
1523
|
grid-auto-columns: 1fr;
|
|
1524
1524
|
grid-auto-flow: column;
|
|
@@ -1527,12 +1527,12 @@ const Be = {
|
|
|
1527
1527
|
@media (max-width: 900px) {
|
|
1528
1528
|
display: none;
|
|
1529
1529
|
}
|
|
1530
|
-
`,
|
|
1531
|
-
const t =
|
|
1530
|
+
`, Do = v.li((e) => {
|
|
1531
|
+
const t = ce(e.colorVariant), r = Gn(e.colorVariant), n = e.shouldBeFilled ? t : "var(--color-base-300)", a = e.shouldBeFilled ? r : "var(--color-base-content)";
|
|
1532
1532
|
return {
|
|
1533
1533
|
textAlign: "center",
|
|
1534
1534
|
"--step-bg": n,
|
|
1535
|
-
"--step-fg":
|
|
1535
|
+
"--step-fg": a,
|
|
1536
1536
|
gridTemplateRows: "40px 1fr",
|
|
1537
1537
|
gridTemplateColumns: "auto",
|
|
1538
1538
|
gap: ".5rem",
|
|
@@ -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($o, {
|
|
1573
1573
|
children: [
|
|
1574
1574
|
e.steps.map(
|
|
1575
|
-
(t, r) => l.createElement(
|
|
1575
|
+
(t, r) => l.createElement(Do, {
|
|
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
|
+
})), Lo = {
|
|
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
|
+
}, Mo = v.div((e) => ({
|
|
1616
|
+
...Lo[e.$variant ?? "paragraph"],
|
|
1617
1617
|
color: e.theme.baseContent,
|
|
1618
1618
|
...e.$linear ? { margin: "0" } : {}
|
|
1619
|
-
})),
|
|
1619
|
+
})), oe = (e) => l.createElement(Mo, {
|
|
1620
1620
|
$variant: e.variant,
|
|
1621
1621
|
$linear: e.linear,
|
|
1622
1622
|
children: e.children
|
|
1623
|
-
}),
|
|
1623
|
+
}), Fo = (e) => {
|
|
1624
1624
|
switch (e) {
|
|
1625
1625
|
case "textarea":
|
|
1626
1626
|
return "";
|
|
@@ -1639,26 +1639,26 @@ 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,
|
|
1647
1647
|
{
|
|
1648
1648
|
...d,
|
|
1649
|
-
fields: d.fields.map((
|
|
1650
|
-
const p =
|
|
1649
|
+
fields: d.fields.map((f) => {
|
|
1650
|
+
const p = f.meta.fieldKey;
|
|
1651
1651
|
return p ? (s.validationsPerStep[u][p] = {
|
|
1652
|
-
fieldType:
|
|
1653
|
-
validations:
|
|
1652
|
+
fieldType: f.type,
|
|
1653
|
+
validations: f.validations
|
|
1654
1654
|
}, s.state = {
|
|
1655
1655
|
...s.state,
|
|
1656
|
-
[p]:
|
|
1656
|
+
[p]: Fo(f.type)
|
|
1657
1657
|
}, {
|
|
1658
1658
|
dataField: p,
|
|
1659
|
-
...
|
|
1659
|
+
...f
|
|
1660
1660
|
}) : {
|
|
1661
|
-
...
|
|
1661
|
+
...f,
|
|
1662
1662
|
dataField: null
|
|
1663
1663
|
};
|
|
1664
1664
|
})
|
|
@@ -1671,7 +1671,7 @@ const Be = {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
),
|
|
1673
1673
|
[e.form]
|
|
1674
|
-
), [r, n] =
|
|
1674
|
+
), [r, n] = We(t.state), a = Ce(
|
|
1675
1675
|
(s, d) => {
|
|
1676
1676
|
s !== null && n((u) => ({
|
|
1677
1677
|
...u,
|
|
@@ -1679,7 +1679,7 @@ const Be = {
|
|
|
1679
1679
|
}));
|
|
1680
1680
|
},
|
|
1681
1681
|
[n]
|
|
1682
|
-
), i =
|
|
1682
|
+
), i = Ce(
|
|
1683
1683
|
(s) => s ? r[s] : null,
|
|
1684
1684
|
[r]
|
|
1685
1685
|
);
|
|
@@ -1687,25 +1687,25 @@ const Be = {
|
|
|
1687
1687
|
steps: t.steps,
|
|
1688
1688
|
validationsPerStep: t.validationsPerStep,
|
|
1689
1689
|
state: r,
|
|
1690
|
-
setStateByKey:
|
|
1690
|
+
setStateByKey: a,
|
|
1691
1691
|
getStateByKey: i
|
|
1692
1692
|
};
|
|
1693
|
-
},
|
|
1693
|
+
}, zo = ko(), Bo = (e, t) => zo.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: Uo,
|
|
1699
|
+
getPrototypeOf: Vo,
|
|
1700
|
+
getOwnPropertyDescriptor: Wo
|
|
1701
1701
|
} = Object;
|
|
1702
1702
|
let {
|
|
1703
1703
|
freeze: q,
|
|
1704
1704
|
seal: Q,
|
|
1705
|
-
create:
|
|
1705
|
+
create: Xn
|
|
1706
1706
|
} = Object, {
|
|
1707
|
-
apply:
|
|
1708
|
-
construct:
|
|
1707
|
+
apply: yr,
|
|
1708
|
+
construct: vr
|
|
1709
1709
|
} = typeof Reflect < "u" && Reflect;
|
|
1710
1710
|
q || (q = function(t) {
|
|
1711
1711
|
return t;
|
|
@@ -1713,108 +1713,108 @@ q || (q = function(t) {
|
|
|
1713
1713
|
Q || (Q = function(t) {
|
|
1714
1714
|
return t;
|
|
1715
1715
|
});
|
|
1716
|
-
|
|
1717
|
-
for (var n = arguments.length,
|
|
1718
|
-
|
|
1719
|
-
return t.apply(r,
|
|
1716
|
+
yr || (yr = function(t, r) {
|
|
1717
|
+
for (var n = arguments.length, a = new Array(n > 2 ? n - 2 : 0), i = 2; i < n; i++)
|
|
1718
|
+
a[i - 2] = arguments[i];
|
|
1719
|
+
return t.apply(r, a);
|
|
1720
1720
|
});
|
|
1721
|
-
|
|
1722
|
-
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0),
|
|
1723
|
-
n[
|
|
1721
|
+
vr || (vr = function(t) {
|
|
1722
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
1723
|
+
n[a - 1] = arguments[a];
|
|
1724
1724
|
return new t(...n);
|
|
1725
1725
|
});
|
|
1726
|
-
const
|
|
1726
|
+
const wt = K(Array.prototype.forEach), Ho = K(Array.prototype.lastIndexOf), ln = K(Array.prototype.pop), at = K(Array.prototype.push), Go = K(Array.prototype.splice), Pt = K(String.prototype.toLowerCase), or = K(String.prototype.toString), ir = K(String.prototype.match), ot = K(String.prototype.replace), jo = K(String.prototype.indexOf), Yo = K(String.prototype.trim), ne = K(Object.prototype.hasOwnProperty), Y = K(RegExp.prototype.test), it = qo(TypeError);
|
|
1727
1727
|
function K(e) {
|
|
1728
1728
|
return function(t) {
|
|
1729
1729
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
1730
|
-
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0),
|
|
1731
|
-
n[
|
|
1732
|
-
return
|
|
1730
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
1731
|
+
n[a - 1] = arguments[a];
|
|
1732
|
+
return yr(e, t, n);
|
|
1733
1733
|
};
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function qo(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
|
-
return
|
|
1739
|
+
return vr(e, r);
|
|
1740
1740
|
};
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1743
|
-
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
1742
|
+
function S(e, t) {
|
|
1743
|
+
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Pt;
|
|
1744
1744
|
sn && sn(e, null);
|
|
1745
1745
|
let n = t.length;
|
|
1746
1746
|
for (; n--; ) {
|
|
1747
|
-
let
|
|
1748
|
-
if (typeof
|
|
1749
|
-
const i = r(
|
|
1750
|
-
i !==
|
|
1747
|
+
let a = t[n];
|
|
1748
|
+
if (typeof a == "string") {
|
|
1749
|
+
const i = r(a);
|
|
1750
|
+
i !== a && (Uo(t) || (t[n] = i), a = i);
|
|
1751
1751
|
}
|
|
1752
|
-
e[
|
|
1752
|
+
e[a] = !0;
|
|
1753
1753
|
}
|
|
1754
1754
|
return e;
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function Ko(e) {
|
|
1757
1757
|
for (let t = 0; t < e.length; t++)
|
|
1758
1758
|
ne(e, t) || (e[t] = null);
|
|
1759
1759
|
return e;
|
|
1760
1760
|
}
|
|
1761
1761
|
function fe(e) {
|
|
1762
|
-
const t =
|
|
1763
|
-
for (const [r, n] of
|
|
1764
|
-
ne(e, r) && (Array.isArray(n) ? t[r] =
|
|
1762
|
+
const t = Xn(null);
|
|
1763
|
+
for (const [r, n] of Kn(e))
|
|
1764
|
+
ne(e, r) && (Array.isArray(n) ? t[r] = Ko(n) : n && typeof n == "object" && n.constructor === Object ? t[r] = fe(n) : t[r] = n);
|
|
1765
1765
|
return t;
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1767
|
+
function st(e, t) {
|
|
1768
1768
|
for (; e !== null; ) {
|
|
1769
|
-
const n =
|
|
1769
|
+
const n = Wo(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 = Vo(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"]),
|
|
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"]), sr = 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"]), lr = 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"]), Xo = 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"]), cr = 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"]), Zo = 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"]), ur = 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"]), mn = 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"]), xt = q(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Qo = Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Jo = 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), ai = Q(
|
|
1787
1787
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
1788
1788
|
// eslint-disable-line no-control-regex
|
|
1789
|
-
),
|
|
1790
|
-
var
|
|
1789
|
+
), Qn = Q(/^html$/i), oi = Q(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
1790
|
+
var fn = /* @__PURE__ */ Object.freeze({
|
|
1791
1791
|
__proto__: null,
|
|
1792
|
-
ARIA_ATTR:
|
|
1793
|
-
ATTR_WHITESPACE:
|
|
1794
|
-
CUSTOM_ELEMENT:
|
|
1795
|
-
DATA_ATTR:
|
|
1796
|
-
DOCTYPE_NAME:
|
|
1797
|
-
ERB_EXPR:
|
|
1798
|
-
IS_ALLOWED_URI:
|
|
1799
|
-
IS_SCRIPT_OR_DATA:
|
|
1800
|
-
MUSTACHE_EXPR:
|
|
1801
|
-
TMPLIT_EXPR:
|
|
1792
|
+
ARIA_ATTR: ri,
|
|
1793
|
+
ATTR_WHITESPACE: ai,
|
|
1794
|
+
CUSTOM_ELEMENT: oi,
|
|
1795
|
+
DATA_ATTR: ti,
|
|
1796
|
+
DOCTYPE_NAME: Qn,
|
|
1797
|
+
ERB_EXPR: Jo,
|
|
1798
|
+
IS_ALLOWED_URI: Zn,
|
|
1799
|
+
IS_SCRIPT_OR_DATA: ni,
|
|
1800
|
+
MUSTACHE_EXPR: Qo,
|
|
1801
|
+
TMPLIT_EXPR: ei
|
|
1802
1802
|
});
|
|
1803
|
-
const
|
|
1803
|
+
const lt = {
|
|
1804
1804
|
element: 1,
|
|
1805
1805
|
text: 3,
|
|
1806
1806
|
// Deprecated
|
|
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;
|
|
1816
|
-
const
|
|
1817
|
-
r && r.hasAttribute(
|
|
1816
|
+
const a = "data-tt-policy-suffix";
|
|
1817
|
+
r && r.hasAttribute(a) && (n = r.getAttribute(a));
|
|
1818
1818
|
const i = "dompurify" + (n ? "#" + n : "");
|
|
1819
1819
|
try {
|
|
1820
1820
|
return t.createPolicy(i, {
|
|
@@ -1841,25 +1841,25 @@ 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) =>
|
|
1847
|
-
if (t.version = "3.2.7", t.removed = [], !e || !e.document || e.document.nodeType !==
|
|
1844
|
+
function Jn() {
|
|
1845
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ii();
|
|
1846
|
+
const t = (h) => Jn(h);
|
|
1847
|
+
if (t.version = "3.2.7", t.removed = [], !e || !e.document || e.document.nodeType !== lt.document || !e.Element)
|
|
1848
1848
|
return t.isSupported = !1, t;
|
|
1849
1849
|
let {
|
|
1850
1850
|
document: r
|
|
1851
1851
|
} = e;
|
|
1852
|
-
const n = r,
|
|
1852
|
+
const n = r, a = n.currentScript, {
|
|
1853
1853
|
DocumentFragment: i,
|
|
1854
1854
|
HTMLTemplateElement: s,
|
|
1855
1855
|
Node: d,
|
|
1856
1856
|
Element: u,
|
|
1857
|
-
NodeFilter:
|
|
1857
|
+
NodeFilter: f,
|
|
1858
1858
|
NamedNodeMap: p = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
1859
1859
|
HTMLFormElement: T,
|
|
1860
1860
|
DOMParser: w,
|
|
1861
|
-
trustedTypes:
|
|
1862
|
-
} = e, A = u.prototype, $ =
|
|
1861
|
+
trustedTypes: E
|
|
1862
|
+
} = e, A = u.prototype, $ = st(A, "cloneNode"), G = st(A, "remove"), D = st(A, "nextSibling"), P = st(A, "childNodes"), _ = st(A, "parentNode");
|
|
1863
1863
|
if (typeof s == "function") {
|
|
1864
1864
|
const h = r.createElement("template");
|
|
1865
1865
|
h.content && h.content.ownerDocument && (r = h.content.ownerDocument);
|
|
@@ -1868,30 +1868,30 @@ function Qn() {
|
|
|
1868
1868
|
const {
|
|
1869
1869
|
implementation: x,
|
|
1870
1870
|
createNodeIterator: y,
|
|
1871
|
-
createDocumentFragment:
|
|
1872
|
-
getElementsByTagName:
|
|
1871
|
+
createDocumentFragment: ge,
|
|
1872
|
+
getElementsByTagName: Pe
|
|
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
|
-
MUSTACHE_EXPR:
|
|
1880
|
-
ERB_EXPR:
|
|
1881
|
-
TMPLIT_EXPR:
|
|
1879
|
+
MUSTACHE_EXPR: Ze,
|
|
1880
|
+
ERB_EXPR: Qe,
|
|
1881
|
+
TMPLIT_EXPR: Je,
|
|
1882
1882
|
DATA_ATTR: Ht,
|
|
1883
|
-
ARIA_ATTR:
|
|
1884
|
-
IS_SCRIPT_OR_DATA:
|
|
1885
|
-
ATTR_WHITESPACE:
|
|
1883
|
+
ARIA_ATTR: Gt,
|
|
1884
|
+
IS_SCRIPT_OR_DATA: et,
|
|
1885
|
+
ATTR_WHITESPACE: tt,
|
|
1886
1886
|
CUSTOM_ELEMENT: J
|
|
1887
|
-
} =
|
|
1887
|
+
} = fn;
|
|
1888
1888
|
let {
|
|
1889
|
-
IS_ALLOWED_URI:
|
|
1890
|
-
} =
|
|
1891
|
-
const ee =
|
|
1889
|
+
IS_ALLOWED_URI: Ee
|
|
1890
|
+
} = fn, O = null;
|
|
1891
|
+
const ee = S({}, [...cn, ...sr, ...lr, ...cr, ...un]);
|
|
1892
1892
|
let L = null;
|
|
1893
|
-
const
|
|
1894
|
-
let I = Object.seal(
|
|
1893
|
+
const Oe = S({}, [...dn, ...ur, ...mn, ...xt]);
|
|
1894
|
+
let I = Object.seal(Xn(null, {
|
|
1895
1895
|
tagNameCheck: {
|
|
1896
1896
|
writable: !0,
|
|
1897
1897
|
configurable: !1,
|
|
@@ -1910,168 +1910,168 @@ function Qn() {
|
|
|
1910
1910
|
enumerable: !0,
|
|
1911
1911
|
value: !1
|
|
1912
1912
|
}
|
|
1913
|
-
})), te = null,
|
|
1914
|
-
const
|
|
1915
|
-
let
|
|
1916
|
-
const _r =
|
|
1913
|
+
})), te = null, be = null, ye = !0, re = !0, Ne = !1, Se = !0, j = !1, ft = !0, Te = !1, jt = !1, Yt = !1, $e = !1, ht = !1, pt = !1, Cr = !0, Ar = !1;
|
|
1914
|
+
const ua = "user-content-";
|
|
1915
|
+
let qt = !0, rt = !1, De = {}, Le = 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 =
|
|
1919
|
-
let
|
|
1920
|
-
const kr =
|
|
1921
|
-
let
|
|
1922
|
-
const
|
|
1923
|
-
let
|
|
1924
|
-
const
|
|
1925
|
-
let
|
|
1926
|
-
const
|
|
1927
|
-
let z = null,
|
|
1928
|
-
const
|
|
1929
|
-
return
|
|
1930
|
-
},
|
|
1931
|
-
let
|
|
1932
|
-
if (!(
|
|
1933
|
-
if ((!
|
|
1934
|
-
|
|
1935
|
-
if (typeof
|
|
1936
|
-
throw
|
|
1937
|
-
if (typeof
|
|
1938
|
-
throw
|
|
1939
|
-
b =
|
|
1918
|
+
const Rr = S({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
1919
|
+
let Kt = null;
|
|
1920
|
+
const kr = S({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), gt = "http://www.w3.org/1998/Math/MathML", bt = "http://www.w3.org/2000/svg", ue = "http://www.w3.org/1999/xhtml";
|
|
1921
|
+
let Me = ue, Xt = !1, Zt = null;
|
|
1922
|
+
const da = S({}, [gt, bt, ue], or);
|
|
1923
|
+
let yt = S({}, ["mi", "mo", "mn", "ms", "mtext"]), vt = S({}, ["annotation-xml"]);
|
|
1924
|
+
const ma = S({}, ["title", "style", "font", "a", "script"]);
|
|
1925
|
+
let nt = null;
|
|
1926
|
+
const fa = ["application/xhtml+xml", "text/html"], ha = "text/html";
|
|
1927
|
+
let z = null, Fe = null;
|
|
1928
|
+
const pa = r.createElement("form"), Pr = function(o) {
|
|
1929
|
+
return o instanceof RegExp || o instanceof Function;
|
|
1930
|
+
}, Qt = function() {
|
|
1931
|
+
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1932
|
+
if (!(Fe && Fe === o)) {
|
|
1933
|
+
if ((!o || typeof o != "object") && (o = {}), o = fe(o), nt = // eslint-disable-next-line unicorn/prefer-includes
|
|
1934
|
+
fa.indexOf(o.PARSER_MEDIA_TYPE) === -1 ? ha : o.PARSER_MEDIA_TYPE, z = nt === "application/xhtml+xml" ? or : Pt, O = ne(o, "ALLOWED_TAGS") ? S({}, o.ALLOWED_TAGS, z) : ee, L = ne(o, "ALLOWED_ATTR") ? S({}, o.ALLOWED_ATTR, z) : Oe, Zt = ne(o, "ALLOWED_NAMESPACES") ? S({}, o.ALLOWED_NAMESPACES, or) : da, Kt = ne(o, "ADD_URI_SAFE_ATTR") ? S(fe(kr), o.ADD_URI_SAFE_ATTR, z) : kr, Ir = ne(o, "ADD_DATA_URI_TAGS") ? S(fe(Rr), o.ADD_DATA_URI_TAGS, z) : Rr, Le = ne(o, "FORBID_CONTENTS") ? S({}, o.FORBID_CONTENTS, z) : _r, te = ne(o, "FORBID_TAGS") ? S({}, o.FORBID_TAGS, z) : fe({}), be = ne(o, "FORBID_ATTR") ? S({}, o.FORBID_ATTR, z) : fe({}), De = ne(o, "USE_PROFILES") ? o.USE_PROFILES : !1, ye = o.ALLOW_ARIA_ATTR !== !1, re = o.ALLOW_DATA_ATTR !== !1, Ne = o.ALLOW_UNKNOWN_PROTOCOLS || !1, Se = o.ALLOW_SELF_CLOSE_IN_ATTR !== !1, j = o.SAFE_FOR_TEMPLATES || !1, ft = o.SAFE_FOR_XML !== !1, Te = o.WHOLE_DOCUMENT || !1, $e = o.RETURN_DOM || !1, ht = o.RETURN_DOM_FRAGMENT || !1, pt = o.RETURN_TRUSTED_TYPE || !1, Yt = o.FORCE_BODY || !1, Cr = o.SANITIZE_DOM !== !1, Ar = o.SANITIZE_NAMED_PROPS || !1, qt = o.KEEP_CONTENT !== !1, rt = o.IN_PLACE || !1, Ee = o.ALLOWED_URI_REGEXP || Zn, Me = o.NAMESPACE || ue, yt = o.MATHML_TEXT_INTEGRATION_POINTS || yt, vt = o.HTML_INTEGRATION_POINTS || vt, I = o.CUSTOM_ELEMENT_HANDLING || {}, o.CUSTOM_ELEMENT_HANDLING && Pr(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (I.tagNameCheck = o.CUSTOM_ELEMENT_HANDLING.tagNameCheck), o.CUSTOM_ELEMENT_HANDLING && Pr(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (I.attributeNameCheck = o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), o.CUSTOM_ELEMENT_HANDLING && typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), j && (re = !1), ht && ($e = !0), De && (O = S({}, un), L = [], De.html === !0 && (S(O, cn), S(L, dn)), De.svg === !0 && (S(O, sr), S(L, ur), S(L, xt)), De.svgFilters === !0 && (S(O, lr), S(L, ur), S(L, xt)), De.mathMl === !0 && (S(O, cr), S(L, mn), S(L, xt))), o.ADD_TAGS && (O === ee && (O = fe(O)), S(O, o.ADD_TAGS, z)), o.ADD_ATTR && (L === Oe && (L = fe(L)), S(L, o.ADD_ATTR, z)), o.ADD_URI_SAFE_ATTR && S(Kt, o.ADD_URI_SAFE_ATTR, z), o.FORBID_CONTENTS && (Le === _r && (Le = fe(Le)), S(Le, o.FORBID_CONTENTS, z)), qt && (O["#text"] = !0), Te && S(O, ["html", "head", "body"]), O.table && (S(O, ["tbody"]), delete te.tbody), o.TRUSTED_TYPES_POLICY) {
|
|
1935
|
+
if (typeof o.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1936
|
+
throw it('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1937
|
+
if (typeof o.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
1938
|
+
throw it('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
1939
|
+
b = o.TRUSTED_TYPES_POLICY, R = b.createHTML("");
|
|
1940
1940
|
} else
|
|
1941
|
-
b === void 0 && (b =
|
|
1942
|
-
q && q(
|
|
1941
|
+
b === void 0 && (b = si(E, a)), b !== null && typeof R == "string" && (R = b.createHTML(""));
|
|
1942
|
+
q && q(o), Fe = o;
|
|
1943
1943
|
}
|
|
1944
|
-
},
|
|
1945
|
-
let c = _(
|
|
1944
|
+
}, Or = S({}, [...sr, ...lr, ...Xo]), Nr = S({}, [...cr, ...Zo]), ga = function(o) {
|
|
1945
|
+
let c = _(o);
|
|
1946
1946
|
(!c || !c.tagName) && (c = {
|
|
1947
|
-
namespaceURI:
|
|
1947
|
+
namespaceURI: Me,
|
|
1948
1948
|
tagName: "template"
|
|
1949
1949
|
});
|
|
1950
|
-
const
|
|
1951
|
-
return
|
|
1952
|
-
},
|
|
1953
|
-
|
|
1954
|
-
element:
|
|
1950
|
+
const m = Pt(o.tagName), N = Pt(c.tagName);
|
|
1951
|
+
return Zt[o.namespaceURI] ? o.namespaceURI === bt ? c.namespaceURI === ue ? m === "svg" : c.namespaceURI === gt ? m === "svg" && (N === "annotation-xml" || yt[N]) : !!Or[m] : o.namespaceURI === gt ? c.namespaceURI === ue ? m === "math" : c.namespaceURI === bt ? m === "math" && vt[N] : !!Nr[m] : o.namespaceURI === ue ? c.namespaceURI === bt && !vt[N] || c.namespaceURI === gt && !yt[N] ? !1 : !Nr[m] && (ma[m] || !Or[m]) : !!(nt === "application/xhtml+xml" && Zt[o.namespaceURI]) : !1;
|
|
1952
|
+
}, ie = function(o) {
|
|
1953
|
+
at(t.removed, {
|
|
1954
|
+
element: o
|
|
1955
1955
|
});
|
|
1956
1956
|
try {
|
|
1957
|
-
_(
|
|
1957
|
+
_(o).removeChild(o);
|
|
1958
1958
|
} catch {
|
|
1959
|
-
G(
|
|
1959
|
+
G(o);
|
|
1960
1960
|
}
|
|
1961
|
-
},
|
|
1961
|
+
}, we = function(o, c) {
|
|
1962
1962
|
try {
|
|
1963
|
-
|
|
1964
|
-
attribute: c.getAttributeNode(
|
|
1963
|
+
at(t.removed, {
|
|
1964
|
+
attribute: c.getAttributeNode(o),
|
|
1965
1965
|
from: c
|
|
1966
1966
|
});
|
|
1967
1967
|
} catch {
|
|
1968
|
-
|
|
1968
|
+
at(t.removed, {
|
|
1969
1969
|
attribute: null,
|
|
1970
1970
|
from: c
|
|
1971
1971
|
});
|
|
1972
1972
|
}
|
|
1973
|
-
if (c.removeAttribute(
|
|
1974
|
-
if (
|
|
1973
|
+
if (c.removeAttribute(o), o === "is")
|
|
1974
|
+
if ($e || ht)
|
|
1975
1975
|
try {
|
|
1976
|
-
|
|
1976
|
+
ie(c);
|
|
1977
1977
|
} catch {
|
|
1978
1978
|
}
|
|
1979
1979
|
else
|
|
1980
1980
|
try {
|
|
1981
|
-
c.setAttribute(
|
|
1981
|
+
c.setAttribute(o, "");
|
|
1982
1982
|
} catch {
|
|
1983
1983
|
}
|
|
1984
|
-
}, $r = function(
|
|
1985
|
-
let c = null,
|
|
1986
|
-
if (
|
|
1987
|
-
|
|
1984
|
+
}, $r = function(o) {
|
|
1985
|
+
let c = null, m = null;
|
|
1986
|
+
if (Yt)
|
|
1987
|
+
o = "<remove></remove>" + o;
|
|
1988
1988
|
else {
|
|
1989
|
-
const M =
|
|
1990
|
-
|
|
1989
|
+
const M = ir(o, /^[\r\n\t ]+/);
|
|
1990
|
+
m = M && M[0];
|
|
1991
1991
|
}
|
|
1992
|
-
|
|
1993
|
-
const N = b ? b.createHTML(
|
|
1994
|
-
if (
|
|
1992
|
+
nt === "application/xhtml+xml" && Me === ue && (o = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + o + "</body></html>");
|
|
1993
|
+
const N = b ? b.createHTML(o) : o;
|
|
1994
|
+
if (Me === ue)
|
|
1995
1995
|
try {
|
|
1996
|
-
c = new w().parseFromString(N,
|
|
1996
|
+
c = new w().parseFromString(N, nt);
|
|
1997
1997
|
} catch {
|
|
1998
1998
|
}
|
|
1999
1999
|
if (!c || !c.documentElement) {
|
|
2000
|
-
c = x.createDocument(
|
|
2000
|
+
c = x.createDocument(Me, "template", null);
|
|
2001
2001
|
try {
|
|
2002
|
-
c.documentElement.innerHTML =
|
|
2002
|
+
c.documentElement.innerHTML = Xt ? R : N;
|
|
2003
2003
|
} catch {
|
|
2004
2004
|
}
|
|
2005
2005
|
}
|
|
2006
|
-
const
|
|
2007
|
-
return
|
|
2008
|
-
}, Dr = function(
|
|
2006
|
+
const W = c.body || c.documentElement;
|
|
2007
|
+
return o && m && W.insertBefore(r.createTextNode(m), W.childNodes[0] || null), Me === ue ? Pe.call(c, Te ? "html" : "body")[0] : Te ? c.documentElement : W;
|
|
2008
|
+
}, Dr = function(o) {
|
|
2009
2009
|
return y.call(
|
|
2010
|
-
|
|
2011
|
-
|
|
2010
|
+
o.ownerDocument || o,
|
|
2011
|
+
o,
|
|
2012
2012
|
// eslint-disable-next-line no-bitwise
|
|
2013
|
-
|
|
2013
|
+
f.SHOW_ELEMENT | f.SHOW_COMMENT | f.SHOW_TEXT | f.SHOW_PROCESSING_INSTRUCTION | f.SHOW_CDATA_SECTION,
|
|
2014
2014
|
null
|
|
2015
2015
|
);
|
|
2016
|
-
},
|
|
2017
|
-
return
|
|
2018
|
-
}, Lr = function(
|
|
2019
|
-
return typeof d == "function" &&
|
|
2016
|
+
}, Jt = function(o) {
|
|
2017
|
+
return o instanceof T && (typeof o.nodeName != "string" || typeof o.textContent != "string" || typeof o.removeChild != "function" || !(o.attributes instanceof p) || typeof o.removeAttribute != "function" || typeof o.setAttribute != "function" || typeof o.namespaceURI != "string" || typeof o.insertBefore != "function" || typeof o.hasChildNodes != "function");
|
|
2018
|
+
}, Lr = function(o) {
|
|
2019
|
+
return typeof d == "function" && o instanceof d;
|
|
2020
2020
|
};
|
|
2021
|
-
function
|
|
2022
|
-
|
|
2023
|
-
|
|
2021
|
+
function de(h, o, c) {
|
|
2022
|
+
wt(h, (m) => {
|
|
2023
|
+
m.call(t, o, c, Fe);
|
|
2024
2024
|
});
|
|
2025
2025
|
}
|
|
2026
|
-
const Mr = function(
|
|
2026
|
+
const Mr = function(o) {
|
|
2027
2027
|
let c = null;
|
|
2028
|
-
if (
|
|
2029
|
-
return
|
|
2030
|
-
const
|
|
2031
|
-
if (
|
|
2032
|
-
tagName:
|
|
2033
|
-
allowedTags:
|
|
2034
|
-
}), ft &&
|
|
2035
|
-
return
|
|
2036
|
-
if (!
|
|
2037
|
-
if (!te[
|
|
2028
|
+
if (de(U.beforeSanitizeElements, o, null), Jt(o))
|
|
2029
|
+
return ie(o), !0;
|
|
2030
|
+
const m = z(o.nodeName);
|
|
2031
|
+
if (de(U.uponSanitizeElement, o, {
|
|
2032
|
+
tagName: m,
|
|
2033
|
+
allowedTags: O
|
|
2034
|
+
}), ft && o.hasChildNodes() && !Lr(o.firstElementChild) && Y(/<[/\w!]/g, o.innerHTML) && Y(/<[/\w!]/g, o.textContent) || o.nodeType === lt.progressingInstruction || ft && o.nodeType === lt.comment && Y(/<[/\w]/g, o.data))
|
|
2035
|
+
return ie(o), !0;
|
|
2036
|
+
if (!O[m] || te[m]) {
|
|
2037
|
+
if (!te[m] && zr(m) && (I.tagNameCheck instanceof RegExp && Y(I.tagNameCheck, m) || I.tagNameCheck instanceof Function && I.tagNameCheck(m)))
|
|
2038
2038
|
return !1;
|
|
2039
|
-
if (
|
|
2040
|
-
const N = _(
|
|
2041
|
-
if (
|
|
2042
|
-
const M =
|
|
2039
|
+
if (qt && !Le[m]) {
|
|
2040
|
+
const N = _(o) || o.parentNode, W = P(o) || o.childNodes;
|
|
2041
|
+
if (W && N) {
|
|
2042
|
+
const M = W.length;
|
|
2043
2043
|
for (let X = M - 1; X >= 0; --X) {
|
|
2044
|
-
const
|
|
2045
|
-
|
|
2044
|
+
const me = $(W[X], !0);
|
|
2045
|
+
me.__removalCount = (o.__removalCount || 0) + 1, N.insertBefore(me, D(o));
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
|
-
return
|
|
2049
|
+
return ie(o), !0;
|
|
2050
2050
|
}
|
|
2051
|
-
return
|
|
2051
|
+
return o instanceof u && !ga(o) || (m === "noscript" || m === "noembed" || m === "noframes") && Y(/<\/no(script|embed|frames)/i, o.innerHTML) ? (ie(o), !0) : (j && o.nodeType === lt.text && (c = o.textContent, wt([Ze, Qe, Je], (N) => {
|
|
2052
2052
|
c = ot(c, N, " ");
|
|
2053
|
-
}),
|
|
2054
|
-
element:
|
|
2055
|
-
}),
|
|
2056
|
-
}, Fr = function(
|
|
2057
|
-
if (Cr && (c === "id" || c === "name") && (
|
|
2053
|
+
}), o.textContent !== c && (at(t.removed, {
|
|
2054
|
+
element: o.cloneNode()
|
|
2055
|
+
}), o.textContent = c)), de(U.afterSanitizeElements, o, null), !1);
|
|
2056
|
+
}, Fr = function(o, c, m) {
|
|
2057
|
+
if (Cr && (c === "id" || c === "name") && (m in r || m in pa))
|
|
2058
2058
|
return !1;
|
|
2059
|
-
if (!(re && !
|
|
2060
|
-
if (!(
|
|
2061
|
-
if (!L[c] ||
|
|
2059
|
+
if (!(re && !be[c] && Y(Ht, c))) {
|
|
2060
|
+
if (!(ye && Y(Gt, c))) {
|
|
2061
|
+
if (!L[c] || be[c]) {
|
|
2062
2062
|
if (
|
|
2063
2063
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
2064
2064
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2065
2065
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
2066
|
-
!(zr(
|
|
2066
|
+
!(zr(o) && (I.tagNameCheck instanceof RegExp && Y(I.tagNameCheck, o) || I.tagNameCheck instanceof Function && I.tagNameCheck(o)) && (I.attributeNameCheck instanceof RegExp && Y(I.attributeNameCheck, c) || I.attributeNameCheck instanceof Function && I.attributeNameCheck(c, o)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
2067
2067
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2068
|
-
c === "is" && I.allowCustomizedBuiltInElements && (I.tagNameCheck instanceof RegExp && Y(I.tagNameCheck,
|
|
2068
|
+
c === "is" && I.allowCustomizedBuiltInElements && (I.tagNameCheck instanceof RegExp && Y(I.tagNameCheck, m) || I.tagNameCheck instanceof Function && I.tagNameCheck(m)))
|
|
2069
2069
|
) return !1;
|
|
2070
|
-
} else if (!
|
|
2071
|
-
if (!Y(
|
|
2072
|
-
if (!((c === "src" || c === "xlink:href" || c === "href") &&
|
|
2073
|
-
if (!(
|
|
2074
|
-
if (
|
|
2070
|
+
} else if (!Kt[c]) {
|
|
2071
|
+
if (!Y(Ee, ot(m, tt, ""))) {
|
|
2072
|
+
if (!((c === "src" || c === "xlink:href" || c === "href") && o !== "script" && jo(m, "data:") === 0 && Ir[o])) {
|
|
2073
|
+
if (!(Ne && !Y(et, ot(m, tt, "")))) {
|
|
2074
|
+
if (m)
|
|
2075
2075
|
return !1;
|
|
2076
2076
|
}
|
|
2077
2077
|
}
|
|
@@ -2080,16 +2080,16 @@ function Qn() {
|
|
|
2080
2080
|
}
|
|
2081
2081
|
}
|
|
2082
2082
|
return !0;
|
|
2083
|
-
}, zr = function(
|
|
2084
|
-
return
|
|
2085
|
-
}, Br = function(
|
|
2086
|
-
|
|
2083
|
+
}, zr = function(o) {
|
|
2084
|
+
return o !== "annotation-xml" && ir(o, J);
|
|
2085
|
+
}, Br = function(o) {
|
|
2086
|
+
de(U.beforeSanitizeAttributes, o, null);
|
|
2087
2087
|
const {
|
|
2088
2088
|
attributes: c
|
|
2089
|
-
} =
|
|
2090
|
-
if (!c ||
|
|
2089
|
+
} = o;
|
|
2090
|
+
if (!c || Jt(o))
|
|
2091
2091
|
return;
|
|
2092
|
-
const
|
|
2092
|
+
const m = {
|
|
2093
2093
|
attrName: "",
|
|
2094
2094
|
attrValue: "",
|
|
2095
2095
|
keepAttr: !0,
|
|
@@ -2098,123 +2098,123 @@ function Qn() {
|
|
|
2098
2098
|
};
|
|
2099
2099
|
let N = c.length;
|
|
2100
2100
|
for (; N--; ) {
|
|
2101
|
-
const
|
|
2101
|
+
const W = c[N], {
|
|
2102
2102
|
name: M,
|
|
2103
2103
|
namespaceURI: X,
|
|
2104
|
-
value:
|
|
2105
|
-
} =
|
|
2106
|
-
let
|
|
2107
|
-
if (
|
|
2108
|
-
|
|
2104
|
+
value: me
|
|
2105
|
+
} = W, ze = z(M), er = me;
|
|
2106
|
+
let V = M === "value" ? er : Yo(er);
|
|
2107
|
+
if (m.attrName = ze, m.attrValue = V, m.keepAttr = !0, m.forceKeepAttr = void 0, de(U.uponSanitizeAttribute, o, m), V = m.attrValue, Ar && (ze === "id" || ze === "name") && (we(M, o), V = ua + V), ft && Y(/((--!?|])>)|<\/(style|title|textarea)/i, V)) {
|
|
2108
|
+
we(M, o);
|
|
2109
2109
|
continue;
|
|
2110
2110
|
}
|
|
2111
|
-
if (
|
|
2112
|
-
|
|
2111
|
+
if (ze === "attributename" && ir(V, "href")) {
|
|
2112
|
+
we(M, o);
|
|
2113
2113
|
continue;
|
|
2114
2114
|
}
|
|
2115
|
-
if (
|
|
2115
|
+
if (m.forceKeepAttr)
|
|
2116
2116
|
continue;
|
|
2117
|
-
if (!
|
|
2118
|
-
|
|
2117
|
+
if (!m.keepAttr) {
|
|
2118
|
+
we(M, o);
|
|
2119
2119
|
continue;
|
|
2120
2120
|
}
|
|
2121
|
-
if (!
|
|
2122
|
-
|
|
2121
|
+
if (!Se && Y(/\/>/i, V)) {
|
|
2122
|
+
we(M, o);
|
|
2123
2123
|
continue;
|
|
2124
2124
|
}
|
|
2125
|
-
j &&
|
|
2126
|
-
|
|
2125
|
+
j && wt([Ze, Qe, Je], (Vr) => {
|
|
2126
|
+
V = ot(V, Vr, " ");
|
|
2127
2127
|
});
|
|
2128
|
-
const Ur = z(
|
|
2129
|
-
if (!Fr(Ur,
|
|
2130
|
-
|
|
2128
|
+
const Ur = z(o.nodeName);
|
|
2129
|
+
if (!Fr(Ur, ze, V)) {
|
|
2130
|
+
we(M, o);
|
|
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, ze)) {
|
|
2135
2135
|
case "TrustedHTML": {
|
|
2136
|
-
|
|
2136
|
+
V = b.createHTML(V);
|
|
2137
2137
|
break;
|
|
2138
2138
|
}
|
|
2139
2139
|
case "TrustedScriptURL": {
|
|
2140
|
-
|
|
2140
|
+
V = b.createScriptURL(V);
|
|
2141
2141
|
break;
|
|
2142
2142
|
}
|
|
2143
2143
|
}
|
|
2144
|
-
if (
|
|
2144
|
+
if (V !== er)
|
|
2145
2145
|
try {
|
|
2146
|
-
X ?
|
|
2146
|
+
X ? o.setAttributeNS(X, M, V) : o.setAttribute(M, V), Jt(o) ? ie(o) : ln(t.removed);
|
|
2147
2147
|
} catch {
|
|
2148
|
-
|
|
2148
|
+
we(M, o);
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
|
-
|
|
2152
|
-
},
|
|
2151
|
+
de(U.afterSanitizeAttributes, o, null);
|
|
2152
|
+
}, ba = function h(o) {
|
|
2153
2153
|
let c = null;
|
|
2154
|
-
const
|
|
2155
|
-
for (
|
|
2156
|
-
|
|
2157
|
-
|
|
2154
|
+
const m = Dr(o);
|
|
2155
|
+
for (de(U.beforeSanitizeShadowDOM, o, null); c = m.nextNode(); )
|
|
2156
|
+
de(U.uponSanitizeShadowNode, c, null), Mr(c), Br(c), c.content instanceof i && h(c.content);
|
|
2157
|
+
de(U.afterSanitizeShadowDOM, o, null);
|
|
2158
2158
|
};
|
|
2159
2159
|
return t.sanitize = function(h) {
|
|
2160
|
-
let
|
|
2161
|
-
if (
|
|
2160
|
+
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, c = null, m = null, N = null, W = null;
|
|
2161
|
+
if (Xt = !h, Xt && (h = "<!-->"), typeof h != "string" && !Lr(h))
|
|
2162
2162
|
if (typeof h.toString == "function") {
|
|
2163
2163
|
if (h = h.toString(), typeof h != "string")
|
|
2164
|
-
throw
|
|
2164
|
+
throw it("dirty is not a string, aborting");
|
|
2165
2165
|
} else
|
|
2166
|
-
throw
|
|
2166
|
+
throw it("toString is not a function");
|
|
2167
2167
|
if (!t.isSupported)
|
|
2168
2168
|
return h;
|
|
2169
|
-
if (
|
|
2169
|
+
if (jt || Qt(o), t.removed = [], typeof h == "string" && (rt = !1), rt) {
|
|
2170
2170
|
if (h.nodeName) {
|
|
2171
|
-
const
|
|
2172
|
-
if (!
|
|
2173
|
-
throw
|
|
2171
|
+
const me = z(h.nodeName);
|
|
2172
|
+
if (!O[me] || te[me])
|
|
2173
|
+
throw it("root node is forbidden and cannot be sanitized in-place");
|
|
2174
2174
|
}
|
|
2175
2175
|
} else if (h instanceof d)
|
|
2176
|
-
c = $r("<!---->"),
|
|
2176
|
+
c = $r("<!---->"), m = c.ownerDocument.importNode(h, !0), m.nodeType === lt.element && m.nodeName === "BODY" || m.nodeName === "HTML" ? c = m : c.appendChild(m);
|
|
2177
2177
|
else {
|
|
2178
|
-
if (
|
|
2178
|
+
if (!$e && !j && !Te && // eslint-disable-next-line unicorn/prefer-includes
|
|
2179
2179
|
h.indexOf("<") === -1)
|
|
2180
|
-
return b &&
|
|
2180
|
+
return b && pt ? b.createHTML(h) : h;
|
|
2181
2181
|
if (c = $r(h), !c)
|
|
2182
|
-
return
|
|
2182
|
+
return $e ? null : pt ? R : "";
|
|
2183
2183
|
}
|
|
2184
|
-
c &&
|
|
2185
|
-
const M = Dr(
|
|
2184
|
+
c && Yt && ie(c.firstChild);
|
|
2185
|
+
const M = Dr(rt ? h : c);
|
|
2186
2186
|
for (; N = M.nextNode(); )
|
|
2187
|
-
Mr(N), Br(N), N.content instanceof i &&
|
|
2188
|
-
if (
|
|
2187
|
+
Mr(N), Br(N), N.content instanceof i && ba(N.content);
|
|
2188
|
+
if (rt)
|
|
2189
2189
|
return h;
|
|
2190
|
-
if (
|
|
2191
|
-
if (
|
|
2192
|
-
for (
|
|
2193
|
-
|
|
2190
|
+
if ($e) {
|
|
2191
|
+
if (ht)
|
|
2192
|
+
for (W = ge.call(c.ownerDocument); c.firstChild; )
|
|
2193
|
+
W.appendChild(c.firstChild);
|
|
2194
2194
|
else
|
|
2195
|
-
|
|
2196
|
-
return (L.shadowroot || L.shadowrootmode) && (
|
|
2195
|
+
W = c;
|
|
2196
|
+
return (L.shadowroot || L.shadowrootmode) && (W = Wt.call(n, W, !0)), W;
|
|
2197
2197
|
}
|
|
2198
|
-
let X =
|
|
2199
|
-
return
|
|
2200
|
-
` + X), j &&
|
|
2201
|
-
X = ot(X,
|
|
2202
|
-
}), b &&
|
|
2198
|
+
let X = Te ? c.outerHTML : c.innerHTML;
|
|
2199
|
+
return Te && O["!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 && wt([Ze, Qe, Je], (me) => {
|
|
2201
|
+
X = ot(X, me, " ");
|
|
2202
|
+
}), b && pt ? b.createHTML(X) : X;
|
|
2203
2203
|
}, t.setConfig = function() {
|
|
2204
2204
|
let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2205
|
-
|
|
2205
|
+
Qt(h), jt = !0;
|
|
2206
2206
|
}, t.clearConfig = function() {
|
|
2207
|
-
|
|
2208
|
-
}, t.isValidAttribute = function(h,
|
|
2209
|
-
|
|
2210
|
-
const
|
|
2211
|
-
return Fr(
|
|
2212
|
-
}, t.addHook = function(h,
|
|
2213
|
-
typeof
|
|
2214
|
-
}, t.removeHook = function(h,
|
|
2215
|
-
if (
|
|
2216
|
-
const c =
|
|
2217
|
-
return c === -1 ? void 0 :
|
|
2207
|
+
Fe = null, jt = !1;
|
|
2208
|
+
}, t.isValidAttribute = function(h, o, c) {
|
|
2209
|
+
Fe || Qt({});
|
|
2210
|
+
const m = z(h), N = z(o);
|
|
2211
|
+
return Fr(m, N, c);
|
|
2212
|
+
}, t.addHook = function(h, o) {
|
|
2213
|
+
typeof o == "function" && at(U[h], o);
|
|
2214
|
+
}, t.removeHook = function(h, o) {
|
|
2215
|
+
if (o !== void 0) {
|
|
2216
|
+
const c = Ho(U[h], o);
|
|
2217
|
+
return c === -1 ? void 0 : Go(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
|
|
2228
|
-
(
|
|
2229
|
-
const i =
|
|
2226
|
+
var li = Jn();
|
|
2227
|
+
const ci = (e) => e == null, ut = (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
|
+
(a) => {
|
|
2229
|
+
const i = ui(e[a], t[a].validations);
|
|
2230
2230
|
return i ? {
|
|
2231
|
-
field:
|
|
2231
|
+
field: a,
|
|
2232
2232
|
error: i
|
|
2233
2233
|
} : null;
|
|
2234
2234
|
},
|
|
2235
2235
|
{}
|
|
2236
|
-
).filter(
|
|
2237
|
-
const [t, r] =
|
|
2236
|
+
).filter(ut) : [], ea = (e) => {
|
|
2237
|
+
const [t, r] = We(0), [n, a] = We([]), i = Ce(async () => {
|
|
2238
2238
|
try {
|
|
2239
|
-
await
|
|
2239
|
+
await Bo({
|
|
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,
|
|
@@ -2267,17 +2267,17 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2267
2267
|
} catch (u) {
|
|
2268
2268
|
console.log(u);
|
|
2269
2269
|
}
|
|
2270
|
-
}, [e.state, e.formType]), s =
|
|
2270
|
+
}, [e.state, e.formType]), s = Ce(() => {
|
|
2271
2271
|
const u = pn(e.state, e.validationsPerStep[t]);
|
|
2272
|
-
|
|
2273
|
-
}, [e.state, e.validationsPerStep, t, i]), d =
|
|
2274
|
-
t !== 0 && (
|
|
2272
|
+
a(u), u.length || (t < e.stepsCount - 1 ? r((f) => f + 1) : i());
|
|
2273
|
+
}, [e.state, e.validationsPerStep, t, i]), d = Ce(() => {
|
|
2274
|
+
t !== 0 && (a([]), r((u) => u - 1));
|
|
2275
2275
|
}, [t]);
|
|
2276
|
-
return
|
|
2277
|
-
|
|
2276
|
+
return He(() => {
|
|
2277
|
+
a((u) => {
|
|
2278
2278
|
if (u.length) {
|
|
2279
|
-
const
|
|
2280
|
-
if (
|
|
2279
|
+
const f = pn(e.state, e.validationsPerStep[t]);
|
|
2280
|
+
if (f.length !== u.length) return f;
|
|
2281
2281
|
}
|
|
2282
2282
|
return u;
|
|
2283
2283
|
});
|
|
@@ -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
|
+
}), ke = ({ 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
|
+
}, mi = v.input(
|
|
2298
2298
|
({ theme: e, colorVariant: t, selected: r }) => {
|
|
2299
|
-
const n = `calc(${e.sizeSelector} * 6);`,
|
|
2299
|
+
const n = `calc(${e.sizeSelector} * 6);`, a = ce(t);
|
|
2300
2300
|
return {
|
|
2301
2301
|
cursor: "pointer",
|
|
2302
2302
|
appearance: "none",
|
|
@@ -2304,7 +2304,7 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2304
2304
|
verticalAlign: "middle",
|
|
2305
2305
|
color: "var(--color-base-content)",
|
|
2306
2306
|
width: n,
|
|
2307
|
-
border: `1px solid ${
|
|
2307
|
+
border: `1px solid ${a}`,
|
|
2308
2308
|
height: n,
|
|
2309
2309
|
flexShrink: "0",
|
|
2310
2310
|
padding: ".25rem",
|
|
@@ -2318,7 +2318,7 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2318
2318
|
width: "100%",
|
|
2319
2319
|
height: "100%",
|
|
2320
2320
|
boxShadow: "0 3px oklch(100% 0 0/calc(var(--depth)*.1)) inset",
|
|
2321
|
-
backgroundColor: `${
|
|
2321
|
+
backgroundColor: `${a}`,
|
|
2322
2322
|
fontSize: "1rem",
|
|
2323
2323
|
lineHeight: ".75",
|
|
2324
2324
|
transition: "clip-path .3s .1s,opacity .1s .1s,rotate .3s .1s,translate .3s .1s",
|
|
@@ -2331,26 +2331,26 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2331
2331
|
}
|
|
2332
2332
|
};
|
|
2333
2333
|
}
|
|
2334
|
-
),
|
|
2334
|
+
), fi = 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
|
-
), r = (
|
|
2345
|
+
), r = (a) => {
|
|
2346
2346
|
e.onSelect(
|
|
2347
|
-
e.value.includes(
|
|
2347
|
+
e.value.includes(a) ? e.value.filter((i) => i !== a) : [...e.value, a]
|
|
2348
2348
|
);
|
|
2349
2349
|
}, n = e.value.includes(t);
|
|
2350
|
-
return l.createElement(
|
|
2350
|
+
return l.createElement(fi, {
|
|
2351
2351
|
selected: n,
|
|
2352
2352
|
children: [
|
|
2353
|
-
l.createElement(
|
|
2353
|
+
l.createElement(mi, {
|
|
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(oe, {
|
|
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,33 +2372,33 @@ 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 =
|
|
2384
|
-
(
|
|
2382
|
+
`, ta = (e) => {
|
|
2383
|
+
const t = e.label.replace(/\s/g, "-").toLowerCase(), r = e.elementsPerCol || 4, n = le(() => e.options.reduce(
|
|
2384
|
+
(a, i, s) => {
|
|
2385
2385
|
var u;
|
|
2386
|
-
return (s % r === 0 || s === 0) &&
|
|
2386
|
+
return (s % r === 0 || s === 0) && a.push([]), (u = a[a.length - 1]) == null || u.push(i), a;
|
|
2387
2387
|
},
|
|
2388
2388
|
[]
|
|
2389
2389
|
), [r, e.options]);
|
|
2390
2390
|
return l.createElement("div", {
|
|
2391
2391
|
children: [
|
|
2392
|
-
l.createElement(
|
|
2392
|
+
l.createElement(oe, {
|
|
2393
2393
|
children: e.label,
|
|
2394
2394
|
variant: "section"
|
|
2395
2395
|
}),
|
|
2396
|
-
l.createElement(
|
|
2396
|
+
l.createElement(gi, {
|
|
2397
2397
|
children: n.map(
|
|
2398
|
-
(
|
|
2398
|
+
(a, i) => l.createElement(pi, {
|
|
2399
2399
|
key: i,
|
|
2400
|
-
children:
|
|
2401
|
-
(s) => l.createElement(
|
|
2400
|
+
children: a.map(
|
|
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(ke, {
|
|
2414
2414
|
errors: e.errors
|
|
2415
2415
|
})
|
|
2416
2416
|
]
|
|
2417
2417
|
});
|
|
2418
|
-
},
|
|
2418
|
+
}, bi = v(Ke)(() => ({
|
|
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
|
+
})), ra = (e) => l.createElement("div", {
|
|
2461
2461
|
children: [
|
|
2462
|
-
l.createElement(
|
|
2462
|
+
l.createElement(oe, {
|
|
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(ke, {
|
|
2486
2486
|
errors: e.errors
|
|
2487
2487
|
})
|
|
2488
2488
|
]
|
|
2489
|
-
}),
|
|
2490
|
-
const n = `calc(${e.sizeSelector} * 6);`,
|
|
2489
|
+
}), Ei = v.input(({ theme: e, selected: t, colorVariant: r }) => {
|
|
2490
|
+
const n = `calc(${e.sizeSelector} * 6);`, a = ce(r);
|
|
2491
2491
|
return {
|
|
2492
2492
|
width: n,
|
|
2493
2493
|
height: n,
|
|
@@ -2497,7 +2497,7 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2497
2497
|
appearance: "none",
|
|
2498
2498
|
verticalAlign: "middle",
|
|
2499
2499
|
borderRadius: "3.40282e38px",
|
|
2500
|
-
border: `1px solid ${
|
|
2500
|
+
border: `1px solid ${a}`,
|
|
2501
2501
|
flexShrink: "0",
|
|
2502
2502
|
padding: t ? ".25rem" : "0.4rem",
|
|
2503
2503
|
transition: ".2s ease-in-out",
|
|
@@ -2507,31 +2507,31 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
2507
2507
|
"&::before": {
|
|
2508
2508
|
content: '""',
|
|
2509
2509
|
borderRadius: "3.40282e38px",
|
|
2510
|
-
background: t ?
|
|
2510
|
+
background: t ? a : "transparent",
|
|
2511
2511
|
width: "100%",
|
|
2512
2512
|
height: "100%",
|
|
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
|
-
), r = (
|
|
2528
|
-
e.onSelect(
|
|
2527
|
+
), r = (a) => {
|
|
2528
|
+
e.onSelect(a);
|
|
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(oe, {
|
|
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,50 +2553,50 @@ 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 =
|
|
2565
|
-
(n,
|
|
2563
|
+
`, na = (e) => {
|
|
2564
|
+
const t = e.elementsPerCol || 4, r = le(() => e.options.reduce(
|
|
2565
|
+
(n, a, i) => {
|
|
2566
2566
|
var d;
|
|
2567
|
-
return (i % t === 0 || i === 0) && n.push([]), (d = n[n.length - 1]) == null || d.push(
|
|
2567
|
+
return (i % t === 0 || i === 0) && n.push([]), (d = n[n.length - 1]) == null || d.push(a), n;
|
|
2568
2568
|
},
|
|
2569
2569
|
[]
|
|
2570
2570
|
), [t, e.options]);
|
|
2571
2571
|
return l.createElement("div", {
|
|
2572
2572
|
children: [
|
|
2573
|
-
l.createElement(
|
|
2573
|
+
l.createElement(oe, {
|
|
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
|
-
(
|
|
2581
|
+
(a) => l.createElement(Ti, {
|
|
2582
2582
|
colorVariant: e.colorVariant,
|
|
2583
2583
|
onSelect: e.onChange,
|
|
2584
2584
|
value: e.value,
|
|
2585
2585
|
id: e.formClientId,
|
|
2586
|
-
name: `${
|
|
2587
|
-
label:
|
|
2586
|
+
name: `${a.id}-${e.formClientId}`,
|
|
2587
|
+
label: a.label
|
|
2588
2588
|
})
|
|
2589
2589
|
)
|
|
2590
2590
|
})
|
|
2591
2591
|
)
|
|
2592
2592
|
}),
|
|
2593
|
-
l.createElement(
|
|
2593
|
+
l.createElement(ke, {
|
|
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
|
-
`,
|
|
2684
|
-
var
|
|
2683
|
+
`, ki = (e) => {
|
|
2684
|
+
var a;
|
|
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(oe, {
|
|
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,9 +2704,9 @@ 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
|
-
value: ((
|
|
2709
|
+
value: ((a = e.value) == null ? void 0 : a.toString()) ?? "",
|
|
2710
2710
|
max: r,
|
|
2711
2711
|
min: t,
|
|
2712
2712
|
colorVariant: e.colorVariant,
|
|
@@ -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(ke, {
|
|
2718
2718
|
errors: e.errors
|
|
2719
2719
|
})
|
|
2720
2720
|
]
|
|
2721
2721
|
});
|
|
2722
|
-
},
|
|
2723
|
-
heart: encodeURIComponent(
|
|
2724
|
-
star: encodeURIComponent(
|
|
2725
|
-
star2: encodeURIComponent(
|
|
2722
|
+
}, Pi = '<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>', Oi = '<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(Pi),
|
|
2724
|
+
star: encodeURIComponent(Oi),
|
|
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,36 +2750,36 @@ 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
|
+
})), aa = ({ value: e, max: t, errors: r, label: n, onChange: a }) => l.createElement(Li, {
|
|
2757
2757
|
value: 1,
|
|
2758
2758
|
max: 5,
|
|
2759
2759
|
children: [
|
|
2760
|
-
l.createElement(
|
|
2760
|
+
l.createElement(oe, {
|
|
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}`,
|
|
2769
2769
|
onChange: () => {
|
|
2770
|
-
|
|
2770
|
+
a(s + 1);
|
|
2771
2771
|
},
|
|
2772
2772
|
type: "radio"
|
|
2773
2773
|
})
|
|
2774
2774
|
),
|
|
2775
|
-
l.createElement(
|
|
2775
|
+
l.createElement(ke, {
|
|
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,39 +2803,39 @@ 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
|
+
}), oa = (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(oe, {
|
|
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(ke, {
|
|
2821
2821
|
errors: e.errors
|
|
2822
2822
|
})
|
|
2823
2823
|
]
|
|
2824
2824
|
});
|
|
2825
|
-
},
|
|
2825
|
+
}, zi = v.div`
|
|
2826
2826
|
width: 100%;
|
|
2827
|
-
`,
|
|
2827
|
+
`, Ct = (e) => e != null, Bi = (e, t) => ((n) => {
|
|
2828
2828
|
if (!n) return e.default;
|
|
2829
|
-
const
|
|
2829
|
+
const a = n.find((i) => i.conditions.every((s) => {
|
|
2830
2830
|
const d = t(s.fieldName);
|
|
2831
|
-
if (!
|
|
2831
|
+
if (!Ct(d)) return !1;
|
|
2832
2832
|
const u = [];
|
|
2833
|
-
return
|
|
2833
|
+
return Ct(s.eq) ? s.eq === d ? u.push(!0) : u.push(!1) : Ct(s.lessThan) ? s.lessThan > d ? u.push(!0) : u.push(!1) : Ct(s.moreThan) && (s.moreThan < d ? u.push(!0) : u.push(!1)), u.every(Boolean);
|
|
2834
2834
|
}));
|
|
2835
|
-
return (
|
|
2836
|
-
})(e.values),
|
|
2835
|
+
return (a == null ? void 0 : a.value) ?? e.default;
|
|
2836
|
+
})(e.values), ia = (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), a = {
|
|
2839
2839
|
formClientId: e.formClientId,
|
|
2840
2840
|
label: n,
|
|
2841
2841
|
errors: e.errors,
|
|
@@ -2846,73 +2846,73 @@ 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(ra, {
|
|
2850
2850
|
...i,
|
|
2851
|
-
...
|
|
2851
|
+
...a,
|
|
2852
2852
|
max: 10
|
|
2853
2853
|
});
|
|
2854
2854
|
}
|
|
2855
2855
|
case "radio-group": {
|
|
2856
2856
|
const i = e.fieldProps;
|
|
2857
|
-
return l.createElement(
|
|
2857
|
+
return l.createElement(na, {
|
|
2858
2858
|
...i,
|
|
2859
|
-
...
|
|
2859
|
+
...a
|
|
2860
2860
|
});
|
|
2861
2861
|
}
|
|
2862
2862
|
case "checkbox-group": {
|
|
2863
2863
|
const i = e.fieldProps;
|
|
2864
|
-
return l.createElement(
|
|
2864
|
+
return l.createElement(ta, {
|
|
2865
2865
|
...i,
|
|
2866
|
-
...
|
|
2866
|
+
...a
|
|
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
|
+
...a
|
|
2874
2874
|
});
|
|
2875
2875
|
}
|
|
2876
2876
|
case "rating": {
|
|
2877
2877
|
const i = e.fieldProps;
|
|
2878
|
-
return l.createElement(
|
|
2878
|
+
return l.createElement(aa, {
|
|
2879
2879
|
...i,
|
|
2880
|
-
...
|
|
2880
|
+
...a
|
|
2881
2881
|
});
|
|
2882
2882
|
}
|
|
2883
2883
|
case "textarea": {
|
|
2884
2884
|
const i = e.fieldProps;
|
|
2885
|
-
return l.createElement(
|
|
2885
|
+
return l.createElement(oa, {
|
|
2886
2886
|
...i,
|
|
2887
|
-
...
|
|
2887
|
+
...a
|
|
2888
2888
|
});
|
|
2889
2889
|
}
|
|
2890
2890
|
default:
|
|
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
|
+
}), Vi = 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
|
+
`, sa = (e) => {
|
|
2906
|
+
const t = le(
|
|
2907
2907
|
() => Math.random().toString(36).substring(2, 10),
|
|
2908
2908
|
[]
|
|
2909
|
-
), [r, n] = l.useState(null),
|
|
2909
|
+
), [r, n] = l.useState(null), a = (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 = ea({
|
|
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(oe, {
|
|
2926
2926
|
variant: "title",
|
|
2927
2927
|
children: e.inlineForm.config.formTitle
|
|
2928
2928
|
}),
|
|
2929
2929
|
i.steps.map(
|
|
2930
2930
|
(d, u) => {
|
|
2931
|
-
var
|
|
2932
|
-
return l.createElement(
|
|
2933
|
-
key: u + `${(
|
|
2931
|
+
var f;
|
|
2932
|
+
return l.createElement(jn, {
|
|
2933
|
+
key: u + `${(f = d.meta) == null ? void 0 : f.name}`,
|
|
2934
2934
|
height: r,
|
|
2935
|
-
onSetMaxHeight:
|
|
2935
|
+
onSetMaxHeight: a,
|
|
2936
2936
|
isVisible: u === s.step,
|
|
2937
2937
|
children: d.fields.map(
|
|
2938
|
-
(p) => l.createElement(
|
|
2938
|
+
(p) => l.createElement(ia, {
|
|
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(Vi, {
|
|
2953
2953
|
children: [
|
|
2954
|
-
l.createElement(
|
|
2954
|
+
l.createElement(Ke, {
|
|
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(Ke, {
|
|
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
|
-
}, Wi =
|
|
2971
|
+
}, Wi = 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
|
-
})), Hi =
|
|
2994
|
+
})), Hi = v.div(() => ({})), Gi = v.dialog(({ $visible: e }) => ({
|
|
2995
2995
|
pointerEvents: e ? "auto" : "none",
|
|
2996
2996
|
visibility: e ? "visible" : "hidden",
|
|
2997
2997
|
width: "100%",
|
|
@@ -3013,20 +3013,20 @@ 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 = Ce(
|
|
3018
3018
|
(i) => {
|
|
3019
3019
|
i.target === t.current && e.onClose(), i.preventDefault(), i.stopPropagation();
|
|
3020
3020
|
},
|
|
3021
3021
|
[e]
|
|
3022
|
-
),
|
|
3022
|
+
), a = Ce((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]),
|
|
3028
|
-
document.removeEventListener("keyup",
|
|
3029
|
-
}), []), l.createElement(
|
|
3027
|
+
}, [t, e.isOpen]), He(() => (document.addEventListener("keyup", a), () => {
|
|
3028
|
+
document.removeEventListener("keyup", a);
|
|
3029
|
+
}), []), l.createElement(Gi, {
|
|
3030
3030
|
$visible: e.isOpen,
|
|
3031
3031
|
onClick: n,
|
|
3032
3032
|
ref: t,
|
|
@@ -3034,7 +3034,7 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
3034
3034
|
children: l.createElement(Wi, {
|
|
3035
3035
|
$visible: e.isOpen,
|
|
3036
3036
|
children: [
|
|
3037
|
-
l.createElement(
|
|
3037
|
+
l.createElement(oe, {
|
|
3038
3038
|
children: e.heading,
|
|
3039
3039
|
variant: "title"
|
|
3040
3040
|
}),
|
|
@@ -3045,36 +3045,36 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
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(Ke)`
|
|
3054
3054
|
position: fixed;
|
|
3055
3055
|
width: fit-content;
|
|
3056
3056
|
height: fit-content;
|
|
3057
3057
|
transform: rotate(-90deg) translateY(calc(100% - 15px));
|
|
3058
3058
|
padding: 10px 20px 30px 20px;
|
|
3059
3059
|
margin: auto;
|
|
3060
|
-
left: ${(e) =>
|
|
3061
|
-
right: ${(e) =>
|
|
3062
|
-
top: ${(e) =>
|
|
3063
|
-
bottom: ${(e) =>
|
|
3060
|
+
left: ${(e) => ut(e.$left) ? `${e.$left}px` : null};
|
|
3061
|
+
right: ${(e) => ut(e.$right) ? `${e.$right}px` : null};
|
|
3062
|
+
top: ${(e) => ut(e.$top) ? `${e.$top}px` : null};
|
|
3063
|
+
bottom: ${(e) => ut(e.$bottom) ? `${e.$bottom}px` : null};
|
|
3064
3064
|
&:active {
|
|
3065
3065
|
transform: rotate(-90deg) translateY(calc(100% - 18px));
|
|
3066
3066
|
}
|
|
3067
|
-
`,
|
|
3068
|
-
const [t, r] = l.useState(!1), [n,
|
|
3067
|
+
`, la = (e) => {
|
|
3068
|
+
const [t, r] = l.useState(!1), [n, a] = l.useState(null), i = le(
|
|
3069
3069
|
() => Math.random().toString(36).substring(2, 10),
|
|
3070
3070
|
[]
|
|
3071
|
-
), s = (
|
|
3072
|
-
|
|
3073
|
-
}, d =
|
|
3071
|
+
), s = (f) => {
|
|
3072
|
+
a((p) => !p || p < f ? f : p);
|
|
3073
|
+
}, d = qn({
|
|
3074
3074
|
form: e.popupForm.form,
|
|
3075
3075
|
formId: e.formId,
|
|
3076
3076
|
domainId: e.domainId
|
|
3077
|
-
}), u =
|
|
3077
|
+
}), u = ea({
|
|
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(Ea, {
|
|
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,43 +3092,43 @@ 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(Ke, {
|
|
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(Ke, {
|
|
3111
3111
|
children: "Continue",
|
|
3112
3112
|
onClick: u.onContinue
|
|
3113
3113
|
})
|
|
3114
3114
|
]
|
|
3115
3115
|
}),
|
|
3116
3116
|
children: d.steps.map(
|
|
3117
|
-
(
|
|
3117
|
+
(f, p) => {
|
|
3118
3118
|
var T;
|
|
3119
|
-
return l.createElement(
|
|
3120
|
-
key: p + `${(T =
|
|
3119
|
+
return l.createElement(jn, {
|
|
3120
|
+
key: p + `${(T = f.meta) == null ? void 0 : T.name}`,
|
|
3121
3121
|
height: n,
|
|
3122
3122
|
onSetMaxHeight: s,
|
|
3123
3123
|
isVisible: p === u.step,
|
|
3124
|
-
children:
|
|
3125
|
-
(w) => l.createElement(
|
|
3124
|
+
children: f.fields.map(
|
|
3125
|
+
(w) => l.createElement(ia, {
|
|
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,32 +3157,97 @@ const ni = (e) => e == null, ct = (e) => !ni(e), oi = (e, t) => t ? t.required &
|
|
|
3157
3157
|
// ),
|
|
3158
3158
|
]
|
|
3159
3159
|
});
|
|
3160
|
-
},
|
|
3160
|
+
}, ca = (e) => {
|
|
3161
3161
|
e.locale;
|
|
3162
|
-
let { data: t, loading: r, error: n } =
|
|
3163
|
-
() =>
|
|
3162
|
+
let { data: t, loading: r, error: n } = Oo(
|
|
3163
|
+
() => Po({
|
|
3164
3164
|
formId: e.formId
|
|
3165
3165
|
})
|
|
3166
3166
|
);
|
|
3167
|
-
const
|
|
3167
|
+
const a = le(() => t != null && t.inlineForm ? l.createElement(sa, {
|
|
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(la, {
|
|
3174
3174
|
key: `popup-form-${e.formId}`,
|
|
3175
3175
|
formId: e.formId,
|
|
3176
3176
|
domainId: t.domainId,
|
|
3177
3177
|
formTheme: t.attributes.theme,
|
|
3178
3178
|
popupForm: t.popupForm
|
|
3179
3179
|
}) : null, [t == null ? void 0 : t.attributes.theme, t == null ? void 0 : t.domainId, t == null ? void 0 : t.inlineForm, e.formId]);
|
|
3180
|
-
return !t && r ? "Loading..." : !t || n ? n ? n.message : "Unknown error" : l.createElement(
|
|
3180
|
+
return !t && r ? "Loading..." : !t || n ? n ? n.message : "Unknown error" : l.createElement(pe, {
|
|
3181
3181
|
theme: t.attributes.theme,
|
|
3182
3182
|
selectedVariant: t.attributes.variant,
|
|
3183
|
-
children: [
|
|
3183
|
+
children: [a, 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(oe, {
|
|
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(ke, {
|
|
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,59 @@ 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 = wa.createRoot(e.container || document);
|
|
3195
3260
|
typeof window < "u" && t.render(
|
|
3196
|
-
l.createElement(
|
|
3261
|
+
l.createElement(ca, {
|
|
3197
3262
|
formId: e.formId
|
|
3198
3263
|
})
|
|
3199
3264
|
);
|
|
3200
|
-
},
|
|
3265
|
+
}, Zi = (e) => e ? e.formId ? typeof window > "u" ? null : l.createElement(ca, {
|
|
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(pe, {
|
|
3203
3268
|
theme: e.formTheme,
|
|
3204
3269
|
selectedVariant: e.variant,
|
|
3205
|
-
children: [l.createElement(
|
|
3206
|
-
}),
|
|
3270
|
+
children: [l.createElement(sa, e)]
|
|
3271
|
+
}), ns = (e) => l.createElement(pe, {
|
|
3207
3272
|
theme: e.formTheme,
|
|
3208
3273
|
selectedVariant: e.variant,
|
|
3209
|
-
children: [l.createElement(
|
|
3210
|
-
})
|
|
3274
|
+
children: [l.createElement(la, e)]
|
|
3275
|
+
}), as = {
|
|
3276
|
+
Checkbox: (e) => l.createElement(pe, {
|
|
3277
|
+
theme: e.formTheme,
|
|
3278
|
+
selectedVariant: e.formVariant,
|
|
3279
|
+
children: [l.createElement(ta, e.cmpProps)]
|
|
3280
|
+
}),
|
|
3281
|
+
QuestionMatrix: (e) => l.createElement(pe, {
|
|
3282
|
+
theme: e.formTheme,
|
|
3283
|
+
selectedVariant: e.formVariant,
|
|
3284
|
+
children: [l.createElement(ra, e.cmpProps)]
|
|
3285
|
+
}),
|
|
3286
|
+
Radio: (e) => l.createElement(pe, {
|
|
3287
|
+
theme: e.formTheme,
|
|
3288
|
+
selectedVariant: e.formVariant,
|
|
3289
|
+
children: [l.createElement(na, e.cmpProps)]
|
|
3290
|
+
}),
|
|
3291
|
+
Rating: (e) => l.createElement(pe, {
|
|
3292
|
+
theme: e.formTheme,
|
|
3293
|
+
selectedVariant: e.formVariant,
|
|
3294
|
+
children: [l.createElement(aa, e.cmpProps)]
|
|
3295
|
+
}),
|
|
3296
|
+
Select: (e) => l.createElement(pe, {
|
|
3297
|
+
theme: e.formTheme,
|
|
3298
|
+
selectedVariant: e.formVariant,
|
|
3299
|
+
children: [l.createElement(Xi, e.cmpProps)]
|
|
3300
|
+
}),
|
|
3301
|
+
Textarea: (e) => l.createElement(pe, {
|
|
3302
|
+
theme: e.formTheme,
|
|
3303
|
+
selectedVariant: e.formVariant,
|
|
3304
|
+
children: [l.createElement(oa, e.cmpProps)]
|
|
3305
|
+
})
|
|
3306
|
+
};
|
|
3211
3307
|
export {
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3308
|
+
ts as FeedbackModule,
|
|
3309
|
+
rs as PreviewInPlaceForm,
|
|
3310
|
+
ns as PreviewPopupForm,
|
|
3311
|
+
as as SurveyFormComponents,
|
|
3312
|
+
es as initiateFeedbackModule,
|
|
3313
|
+
Zi as renderFeedbackModule
|
|
3217
3314
|
};
|