@web-site-utilities/feedback 0.0.8 → 0.0.9
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/RangeSlide.d.ts +1 -2
- package/dist/fields/Field/Field.d.ts +1 -9
- package/dist/form/index.d.ts +6 -0
- package/dist/index.cjs.js +17 -17
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +297 -292
- package/dist/index.iife.js +17 -17
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import l, { useMemo as
|
|
2
|
-
import
|
|
1
|
+
import l, { useMemo as ce, createElement as va, useContext as Ea, useState as We, useEffect as He, useRef as vn, useCallback as Ce, Fragment as Sa } from "react";
|
|
2
|
+
import Ta from "react-dom";
|
|
3
3
|
var Et = {}, Wr;
|
|
4
|
-
function
|
|
4
|
+
function wa() {
|
|
5
5
|
if (Wr) return Et;
|
|
6
6
|
Wr = 1;
|
|
7
|
-
var e =
|
|
7
|
+
var e = Ta;
|
|
8
8
|
return Et.createRoot = e.createRoot, Et.hydrateRoot = e.hydrateRoot, Et;
|
|
9
9
|
}
|
|
10
|
-
var
|
|
10
|
+
var xa = wa(), H = function() {
|
|
11
11
|
return H = Object.assign || function(t) {
|
|
12
12
|
for (var r, n = 1, a = arguments.length; n < a; n++) {
|
|
13
13
|
r = arguments[n];
|
|
@@ -21,14 +21,14 @@ function Ot(e, t, r) {
|
|
|
21
21
|
(i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
|
22
22
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
23
23
|
}
|
|
24
|
-
var k = "-ms-", dt = "-moz-", C = "-webkit-", En = "comm", Mt = "rule", Er = "decl",
|
|
25
|
-
function
|
|
24
|
+
var k = "-ms-", dt = "-moz-", C = "-webkit-", En = "comm", Mt = "rule", Er = "decl", Ca = "@import", Sn = "@keyframes", Aa = "@layer", Tn = Math.abs, Sr = String.fromCharCode, dr = Object.assign;
|
|
25
|
+
function _a(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
28
|
function wn(e) {
|
|
29
29
|
return e.trim();
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function pe(e, t) {
|
|
32
32
|
return (e = t.exec(e)) ? e[0] : e;
|
|
33
33
|
}
|
|
34
34
|
function g(e, t, r) {
|
|
@@ -43,7 +43,7 @@ function B(e, t) {
|
|
|
43
43
|
function Ge(e, t, r) {
|
|
44
44
|
return e.slice(t, r);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function le(e) {
|
|
47
47
|
return e.length;
|
|
48
48
|
}
|
|
49
49
|
function xn(e) {
|
|
@@ -52,12 +52,12 @@ function xn(e) {
|
|
|
52
52
|
function ct(e, t) {
|
|
53
53
|
return t.push(e), e;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Ia(e, t) {
|
|
56
56
|
return e.map(t).join("");
|
|
57
57
|
}
|
|
58
58
|
function Hr(e, t) {
|
|
59
59
|
return e.filter(function(r) {
|
|
60
|
-
return !
|
|
60
|
+
return !pe(r, t);
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
var Ft = 1, je = 1, Cn = 0, Z = 0, F = 0, Xe = "";
|
|
@@ -72,10 +72,10 @@ function Be(e) {
|
|
|
72
72
|
e = ve(e.root, { children: [e] });
|
|
73
73
|
ct(e, e.siblings);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Ra() {
|
|
76
76
|
return F;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function ka() {
|
|
79
79
|
return F = Z > 0 ? B(Xe, --Z) : 0, je--, F === 10 && (je = 1, Ft--), F;
|
|
80
80
|
}
|
|
81
81
|
function ae() {
|
|
@@ -128,21 +128,21 @@ function mr(e) {
|
|
|
128
128
|
}
|
|
129
129
|
return 0;
|
|
130
130
|
}
|
|
131
|
-
function ka(e) {
|
|
132
|
-
return Ft = je = 1, Cn = se(Xe = e), Z = 0, [];
|
|
133
|
-
}
|
|
134
131
|
function Pa(e) {
|
|
132
|
+
return Ft = je = 1, Cn = le(Xe = e), Z = 0, [];
|
|
133
|
+
}
|
|
134
|
+
function Oa(e) {
|
|
135
135
|
return Xe = "", e;
|
|
136
136
|
}
|
|
137
137
|
function tr(e) {
|
|
138
138
|
return wn(Bt(Z - 1, fr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Na(e) {
|
|
141
141
|
for (; (F = Ae()) && F < 33; )
|
|
142
142
|
ae();
|
|
143
143
|
return mr(e) > 2 || mr(F) > 3 ? "" : " ";
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function $a(e, t) {
|
|
146
146
|
for (; --t && ae() && !(F < 48 || F > 102 || F > 57 && F < 65 || F > 70 && F < 97); )
|
|
147
147
|
;
|
|
148
148
|
return Bt(e, _t() + (t < 6 && Ae() == 32 && ae() == 32));
|
|
@@ -169,19 +169,19 @@ function fr(e) {
|
|
|
169
169
|
}
|
|
170
170
|
return Z;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Da(e, t) {
|
|
173
173
|
for (; ae() && e + F !== 57; )
|
|
174
174
|
if (e + F === 84 && Ae() === 47)
|
|
175
175
|
break;
|
|
176
176
|
return "/*" + Bt(t, Z - 1) + "*" + Sr(e === 47 ? e : ae());
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function La(e) {
|
|
179
179
|
for (; !mr(Ae()); )
|
|
180
180
|
ae();
|
|
181
181
|
return Bt(e, Z);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
return
|
|
183
|
+
function Ma(e) {
|
|
184
|
+
return Oa(It("", null, null, null, [""], e = Pa(e), 0, [0], e));
|
|
185
185
|
}
|
|
186
186
|
function It(e, t, r, n, a, i, s, d, u) {
|
|
187
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; )
|
|
@@ -203,18 +203,18 @@ function It(e, t, r, n, a, i, s, d, u) {
|
|
|
203
203
|
case 10:
|
|
204
204
|
case 13:
|
|
205
205
|
case 32:
|
|
206
|
-
y +=
|
|
206
|
+
y += Na(A);
|
|
207
207
|
break;
|
|
208
208
|
// \
|
|
209
209
|
case 92:
|
|
210
|
-
y +=
|
|
210
|
+
y += $a(_t() - 1, 7);
|
|
211
211
|
continue;
|
|
212
212
|
// /
|
|
213
213
|
case 47:
|
|
214
214
|
switch (Ae()) {
|
|
215
215
|
case 42:
|
|
216
216
|
case 47:
|
|
217
|
-
ct(
|
|
217
|
+
ct(Fa(Da(ae(), _t()), t, r, u), u);
|
|
218
218
|
break;
|
|
219
219
|
default:
|
|
220
220
|
y += "/";
|
|
@@ -222,7 +222,7 @@ function It(e, t, r, n, a, i, s, d, u) {
|
|
|
222
222
|
break;
|
|
223
223
|
// {
|
|
224
224
|
case 123 * $:
|
|
225
|
-
d[f++] =
|
|
225
|
+
d[f++] = le(y) * D;
|
|
226
226
|
// } ; \0
|
|
227
227
|
case 125 * $:
|
|
228
228
|
case 59:
|
|
@@ -234,7 +234,7 @@ function It(e, t, r, n, a, i, s, d, u) {
|
|
|
234
234
|
G = 0;
|
|
235
235
|
// ;
|
|
236
236
|
case 59 + p:
|
|
237
|
-
D == -1 && (y = g(y, /\f/g, "")), E > 0 &&
|
|
237
|
+
D == -1 && (y = g(y, /\f/g, "")), E > 0 && le(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:
|
|
@@ -261,12 +261,12 @@ function It(e, t, r, n, a, i, s, d, u) {
|
|
|
261
261
|
break;
|
|
262
262
|
// :
|
|
263
263
|
case 58:
|
|
264
|
-
T = 1 +
|
|
264
|
+
T = 1 + le(y), E = A;
|
|
265
265
|
default:
|
|
266
266
|
if ($ < 1) {
|
|
267
267
|
if (P == 123)
|
|
268
268
|
--$;
|
|
269
|
-
else if (P == 125 && $++ == 0 &&
|
|
269
|
+
else if (P == 125 && $++ == 0 && ka() == 125)
|
|
270
270
|
continue;
|
|
271
271
|
}
|
|
272
272
|
switch (y += Sr(P), P * $) {
|
|
@@ -276,15 +276,15 @@ function It(e, t, r, n, a, i, s, d, u) {
|
|
|
276
276
|
break;
|
|
277
277
|
// ,
|
|
278
278
|
case 44:
|
|
279
|
-
d[f++] = (
|
|
279
|
+
d[f++] = (le(y) - 1) * D, D = 1;
|
|
280
280
|
break;
|
|
281
281
|
// @
|
|
282
282
|
case 64:
|
|
283
|
-
Ae() === 45 && (y += tr(ae())), w = Ae(), p = T =
|
|
283
|
+
Ae() === 45 && (y += tr(ae())), w = Ae(), p = T = le(_ = y += La(_t())), P++;
|
|
284
284
|
break;
|
|
285
285
|
// -
|
|
286
286
|
case 45:
|
|
287
|
-
A === 45 &&
|
|
287
|
+
A === 45 && le(y) == 2 && ($ = 0);
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
return i;
|
|
@@ -295,14 +295,14 @@ function Gr(e, t, r, n, a, i, s, d, u, f, p, T) {
|
|
|
295
295
|
(b = wn(G > 0 ? E[P] + " " + _ : g(_, /&\f/g, E[P]))) && (u[D++] = b);
|
|
296
296
|
return zt(e, t, r, a === 0 ? Mt : d, u, f, p, T);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
return zt(e, t, r, En, Sr(
|
|
298
|
+
function Fa(e, t, r, n) {
|
|
299
|
+
return zt(e, t, r, En, Sr(Ra()), Ge(e, 2, -2), 0, n);
|
|
300
300
|
}
|
|
301
301
|
function jr(e, t, r, n, a) {
|
|
302
302
|
return zt(e, t, r, Er, Ge(e, 0, n), Ge(e, n + 1, -1), n, a);
|
|
303
303
|
}
|
|
304
304
|
function An(e, t, r) {
|
|
305
|
-
switch (
|
|
305
|
+
switch (_a(e, t)) {
|
|
306
306
|
// color-adjust
|
|
307
307
|
case 5103:
|
|
308
308
|
return C + "print-" + e + e;
|
|
@@ -372,7 +372,7 @@ function An(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, "") + (pe(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 An(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 (!pe(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:
|
|
@@ -410,13 +410,13 @@ function An(e, t, r) {
|
|
|
410
410
|
case 4384:
|
|
411
411
|
case 3616:
|
|
412
412
|
return r && r.some(function(n, a) {
|
|
413
|
-
return t = a,
|
|
414
|
-
}) ? ~At(e + (r = r[t].value), "span", 0) ? e : k + g(e, "-start", "") + e + k + "grid-row-span:" + (~At(r, "span", 0) ?
|
|
413
|
+
return t = a, pe(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) ? pe(r, /\d+/) : +pe(r, /\d+/) - +pe(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 pe(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 An(e, t, r) {
|
|
|
437
437
|
case 5789:
|
|
438
438
|
case 5021:
|
|
439
439
|
case 4765:
|
|
440
|
-
if (
|
|
440
|
+
if (le(e) - 1 - t > 6)
|
|
441
441
|
switch (B(e, t + 1)) {
|
|
442
442
|
// (m)ax-content, (m)in-content
|
|
443
443
|
case 109:
|
|
@@ -488,11 +488,11 @@ function Nt(e, t) {
|
|
|
488
488
|
r += t(e[n], n, e, t) || "";
|
|
489
489
|
return r;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function za(e, t, r, n) {
|
|
492
492
|
switch (e.type) {
|
|
493
|
-
case
|
|
493
|
+
case Aa:
|
|
494
494
|
if (e.children.length) break;
|
|
495
|
-
case
|
|
495
|
+
case Ca:
|
|
496
496
|
case Er:
|
|
497
497
|
return e.return = e.return || e.value;
|
|
498
498
|
case En:
|
|
@@ -500,11 +500,11 @@ function Fa(e, t, r, n) {
|
|
|
500
500
|
case Sn:
|
|
501
501
|
return e.return = e.value + "{" + Nt(e.children, n) + "}";
|
|
502
502
|
case Mt:
|
|
503
|
-
if (!
|
|
503
|
+
if (!le(e.value = e.props.join(","))) return "";
|
|
504
504
|
}
|
|
505
|
-
return
|
|
505
|
+
return le(r = Nt(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Ba(e) {
|
|
508
508
|
var t = xn(e);
|
|
509
509
|
return function(r, n, a, i) {
|
|
510
510
|
for (var s = "", d = 0; d < t; d++)
|
|
@@ -512,12 +512,12 @@ function za(e) {
|
|
|
512
512
|
return s;
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Ua(e) {
|
|
516
516
|
return function(t) {
|
|
517
517
|
t.root || (t = t.return) && e(t);
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Va(e, t, r, n) {
|
|
521
521
|
if (e.length > -1 && !e.return)
|
|
522
522
|
switch (e.type) {
|
|
523
523
|
case Er:
|
|
@@ -527,8 +527,8 @@ function Ua(e, t, r, n) {
|
|
|
527
527
|
return Nt([ve(e, { value: g(e.value, "@", "@" + C) })], n);
|
|
528
528
|
case Mt:
|
|
529
529
|
if (e.length)
|
|
530
|
-
return
|
|
531
|
-
switch (
|
|
530
|
+
return Ia(r = e.props, function(a) {
|
|
531
|
+
switch (pe(a, n = /(::plac\w+|:read-\w+)/)) {
|
|
532
532
|
// :read-(only|write)
|
|
533
533
|
case ":read-only":
|
|
534
534
|
case ":read-write":
|
|
@@ -543,7 +543,7 @@ function Ua(e, t, r, n) {
|
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
var
|
|
546
|
+
var Wa = {
|
|
547
547
|
animationIterationCount: 1,
|
|
548
548
|
aspectRatio: 1,
|
|
549
549
|
borderImageOutset: 1,
|
|
@@ -592,21 +592,21 @@ var Va = {
|
|
|
592
592
|
strokeOpacity: 1,
|
|
593
593
|
strokeWidth: 1
|
|
594
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",
|
|
596
|
-
function
|
|
595
|
+
`, $t = typeof window < "u" && typeof document < "u", Ha = !!(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 Ga(e, t, r) {
|
|
597
597
|
return r === void 0 && (r = qe), e.theme !== r.theme && e.theme || t || r.theme;
|
|
598
598
|
}
|
|
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"]),
|
|
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"]), ja = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ya = /(^-|-$)/g;
|
|
600
600
|
function Yr(e) {
|
|
601
|
-
return e.replace(
|
|
601
|
+
return e.replace(ja, "-").replace(Ya, "");
|
|
602
602
|
}
|
|
603
|
-
var
|
|
603
|
+
var qa = /(a)(d)/gi, St = 52, qr = function(e) {
|
|
604
604
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
605
605
|
};
|
|
606
606
|
function hr(e) {
|
|
607
607
|
var t, r = "";
|
|
608
608
|
for (t = Math.abs(e); t > St; t = t / St | 0) r = qr(t % St) + r;
|
|
609
|
-
return (qr(t % St) + r).replace(
|
|
609
|
+
return (qr(t % St) + r).replace(qa, "$1-$2");
|
|
610
610
|
}
|
|
611
611
|
var rr, kn = 5381, Ue = function(e, t) {
|
|
612
612
|
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
@@ -614,35 +614,35 @@ var rr, kn = 5381, Ue = function(e, t) {
|
|
|
614
614
|
}, Pn = function(e) {
|
|
615
615
|
return Ue(kn, e);
|
|
616
616
|
};
|
|
617
|
-
function
|
|
617
|
+
function Ka(e) {
|
|
618
618
|
return hr(Pn(e) >>> 0);
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function Xa(e) {
|
|
621
621
|
return e.displayName || e.name || "Component";
|
|
622
622
|
}
|
|
623
623
|
function nr(e) {
|
|
624
624
|
return typeof e == "string" && !0;
|
|
625
625
|
}
|
|
626
|
-
var On = typeof Symbol == "function" && Symbol.for, Nn = On ? Symbol.for("react.memo") : 60115,
|
|
626
|
+
var On = typeof Symbol == "function" && Symbol.for, Nn = On ? Symbol.for("react.memo") : 60115, Za = On ? Symbol.for("react.forward_ref") : 60112, Qa = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Ja = { 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 }, eo = ((rr = {})[Za] = { $$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) === Nn ? $n : "$$typeof" in e ?
|
|
628
|
+
return ("type" in (t = e) && t.type.$$typeof) === Nn ? $n : "$$typeof" in e ? eo[e.$$typeof] : Qa;
|
|
629
629
|
var t;
|
|
630
630
|
}
|
|
631
|
-
var
|
|
631
|
+
var to = Object.defineProperty, ro = Object.getOwnPropertyNames, Xr = Object.getOwnPropertySymbols, no = Object.getOwnPropertyDescriptor, ao = Object.getPrototypeOf, Zr = Object.prototype;
|
|
632
632
|
function Dn(e, t, r) {
|
|
633
633
|
if (typeof t != "string") {
|
|
634
634
|
if (Zr) {
|
|
635
|
-
var n =
|
|
635
|
+
var n = ao(t);
|
|
636
636
|
n && n !== Zr && Dn(e, n, r);
|
|
637
637
|
}
|
|
638
|
-
var a =
|
|
638
|
+
var a = ro(t);
|
|
639
639
|
Xr && (a = a.concat(Xr(t)));
|
|
640
640
|
for (var i = Kr(e), s = Kr(t), d = 0; d < a.length; ++d) {
|
|
641
641
|
var u = a[d];
|
|
642
|
-
if (!(u in
|
|
643
|
-
var f =
|
|
642
|
+
if (!(u in Ja || r && r[u] || s && u in s || i && u in i)) {
|
|
643
|
+
var f = no(t, u);
|
|
644
644
|
try {
|
|
645
|
-
|
|
645
|
+
to(e, u, f);
|
|
646
646
|
} catch {
|
|
647
647
|
}
|
|
648
648
|
}
|
|
@@ -680,7 +680,7 @@ 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 oo = (function() {
|
|
684
684
|
function e(t) {
|
|
685
685
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
686
686
|
}
|
|
@@ -711,28 +711,28 @@ var ao = (function() {
|
|
|
711
711
|
for (; Dt.has(kt); ) kt++;
|
|
712
712
|
var t = kt++;
|
|
713
713
|
return Rt.set(e, t), Dt.set(t, e), t;
|
|
714
|
-
},
|
|
714
|
+
}, io = function(e, t) {
|
|
715
715
|
kt = t + 1, Rt.set(e, t), Dt.set(t, e);
|
|
716
|
-
},
|
|
716
|
+
}, so = "style[".concat(Ye, "][").concat(In, '="').concat(Ut, '"]'), lo = new RegExp("^".concat(Ye, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), co = function(e, t, r) {
|
|
717
717
|
for (var n, a = r.split(","), i = 0, s = a.length; i < s; i++) (n = a[i]) && e.registerName(t, n);
|
|
718
|
-
},
|
|
718
|
+
}, uo = function(e, t) {
|
|
719
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(lo);
|
|
723
723
|
if (u) {
|
|
724
724
|
var f = 0 | parseInt(u[1], 10), p = u[2];
|
|
725
|
-
f !== 0 && (
|
|
725
|
+
f !== 0 && (io(p, f), co(e, p, u[3]), e.getTag().insertRules(f, a)), a.length = 0;
|
|
726
726
|
} else a.push(d);
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
}, Jr = function(e) {
|
|
730
|
-
for (var t = document.querySelectorAll(
|
|
730
|
+
for (var t = document.querySelectorAll(so), r = 0, n = t.length; r < n; r++) {
|
|
731
731
|
var a = t[r];
|
|
732
|
-
a && a.getAttribute(Ye) !== _n && (
|
|
732
|
+
a && a.getAttribute(Ye) !== _n && (uo(e, a), a.parentNode && a.parentNode.removeChild(a));
|
|
733
733
|
}
|
|
734
734
|
};
|
|
735
|
-
function
|
|
735
|
+
function mo() {
|
|
736
736
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
737
737
|
}
|
|
738
738
|
var Ln = function(e) {
|
|
@@ -741,9 +741,9 @@ var Ln = function(e) {
|
|
|
741
741
|
return u[u.length - 1];
|
|
742
742
|
})(r), i = a !== void 0 ? a.nextSibling : null;
|
|
743
743
|
n.setAttribute(Ye, _n), n.setAttribute(In, Ut);
|
|
744
|
-
var s =
|
|
744
|
+
var s = mo();
|
|
745
745
|
return s && n.setAttribute("nonce", s), r.insertBefore(n, i), n;
|
|
746
|
-
},
|
|
746
|
+
}, fo = (function() {
|
|
747
747
|
function e(t) {
|
|
748
748
|
this.element = Ln(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(r) {
|
|
749
749
|
if (r.sheet) return r.sheet;
|
|
@@ -766,7 +766,7 @@ var Ln = function(e) {
|
|
|
766
766
|
var r = this.sheet.cssRules[t];
|
|
767
767
|
return r && r.cssText ? r.cssText : "";
|
|
768
768
|
}, e;
|
|
769
|
-
})(),
|
|
769
|
+
})(), ho = (function() {
|
|
770
770
|
function e(t) {
|
|
771
771
|
this.element = Ln(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
772
772
|
}
|
|
@@ -781,7 +781,7 @@ var Ln = function(e) {
|
|
|
781
781
|
}, e.prototype.getRule = function(t) {
|
|
782
782
|
return t < this.length ? this.nodes[t].textContent : "";
|
|
783
783
|
}, e;
|
|
784
|
-
})(),
|
|
784
|
+
})(), po = (function() {
|
|
785
785
|
function e(t) {
|
|
786
786
|
this.rules = [], this.length = 0;
|
|
787
787
|
}
|
|
@@ -792,11 +792,11 @@ var Ln = function(e) {
|
|
|
792
792
|
}, e.prototype.getRule = function(t) {
|
|
793
793
|
return t < this.length ? this.rules[t] : "";
|
|
794
794
|
}, e;
|
|
795
|
-
})(), en = $t,
|
|
795
|
+
})(), en = $t, go = { isServer: !$t, useCSSOMInjection: !Ha }, Mn = (function() {
|
|
796
796
|
function e(t, r, n) {
|
|
797
797
|
t === void 0 && (t = qe), r === void 0 && (r = {});
|
|
798
798
|
var a = this;
|
|
799
|
-
this.options = H(H({},
|
|
799
|
+
this.options = H(H({}, go), 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
801
|
for (var s = i.getTag(), d = s.length, u = "", f = function(T) {
|
|
802
802
|
var w = (function(D) {
|
|
@@ -825,8 +825,8 @@ var Ln = function(e) {
|
|
|
825
825
|
}, e.prototype.getTag = function() {
|
|
826
826
|
return this.tag || (this.tag = (t = (function(r) {
|
|
827
827
|
var n = r.useCSSOMInjection, a = r.target;
|
|
828
|
-
return r.isServer ? new
|
|
829
|
-
})(this.options), new
|
|
828
|
+
return r.isServer ? new po(a) : n ? new fo(a) : new ho(a);
|
|
829
|
+
})(this.options), new oo(t)));
|
|
830
830
|
var t;
|
|
831
831
|
}, e.prototype.hasNameForId = function(t, r) {
|
|
832
832
|
return this.names.has(t) && this.names.get(t).has(r);
|
|
@@ -845,7 +845,7 @@ var Ln = function(e) {
|
|
|
845
845
|
}, e.prototype.clearTag = function() {
|
|
846
846
|
this.tag = void 0;
|
|
847
847
|
}, e;
|
|
848
|
-
})(),
|
|
848
|
+
})(), bo = /&/g, yo = /^\s*\/\/.*$/gm;
|
|
849
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) {
|
|
@@ -853,19 +853,19 @@ function Fn(e, t) {
|
|
|
853
853
|
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = Fn(r.children, t)), r;
|
|
854
854
|
});
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function vo(e) {
|
|
857
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 === Mt && w.value.includes("&") && (w.props[0] = w.props[0].replace(
|
|
862
|
-
}), s.prefix && p.push(
|
|
861
|
+
w.type === Mt && w.value.includes("&") && (w.props[0] = w.props[0].replace(bo, r).replace(n, f));
|
|
862
|
+
}), s.prefix && p.push(Va), p.push(za);
|
|
863
863
|
var T = function(w, E, A, $) {
|
|
864
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(
|
|
865
|
+
var G = w.replace(yo, ""), D = Ma(A || E ? "".concat(A, " ").concat(E, " { ").concat(G, " }") : G);
|
|
866
866
|
s.namespace && (D = Fn(D, s.namespace));
|
|
867
867
|
var P = [];
|
|
868
|
-
return Nt(D,
|
|
868
|
+
return Nt(D, Ba(p.concat(Ua(function(_) {
|
|
869
869
|
return P.push(_);
|
|
870
870
|
})))), P;
|
|
871
871
|
};
|
|
@@ -873,13 +873,13 @@ function yo(e) {
|
|
|
873
873
|
return E.name || Re(15), Ue(w, E.name);
|
|
874
874
|
}, kn).toString() : "", T;
|
|
875
875
|
}
|
|
876
|
-
var
|
|
876
|
+
var Eo = new Mn(), gr = vo(), zn = l.createContext({ shouldForwardProp: void 0, styleSheet: Eo, stylis: gr });
|
|
877
877
|
zn.Consumer;
|
|
878
878
|
l.createContext(void 0);
|
|
879
879
|
function tn() {
|
|
880
|
-
return
|
|
880
|
+
return Ea(zn);
|
|
881
881
|
}
|
|
882
|
-
var
|
|
882
|
+
var So = (function() {
|
|
883
883
|
function e(t, r) {
|
|
884
884
|
var n = this;
|
|
885
885
|
this.inject = function(a, i) {
|
|
@@ -893,14 +893,14 @@ var Eo = (function() {
|
|
|
893
893
|
return e.prototype.getName = function(t) {
|
|
894
894
|
return t === void 0 && (t = gr), this.name + t.hash;
|
|
895
895
|
}, e;
|
|
896
|
-
})(),
|
|
896
|
+
})(), To = 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
|
+
To(n) ? t += "-" + n.toLowerCase() : t += n;
|
|
904
904
|
}
|
|
905
905
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
906
906
|
}
|
|
@@ -910,7 +910,7 @@ var Bn = function(e) {
|
|
|
910
910
|
var t, r, n = [];
|
|
911
911
|
for (var a in e) {
|
|
912
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
|
|
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 Wa || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
914
914
|
}
|
|
915
915
|
return n;
|
|
916
916
|
};
|
|
@@ -923,20 +923,20 @@ function _e(e, t, r, n) {
|
|
|
923
923
|
return _e(a, t, r, n);
|
|
924
924
|
}
|
|
925
925
|
var i;
|
|
926
|
-
return e instanceof
|
|
926
|
+
return e instanceof So ? 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
927
|
return _e(s, t, r, n);
|
|
928
928
|
})) : [e.toString()];
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function wo(e) {
|
|
931
931
|
for (var t = 0; t < e.length; t += 1) {
|
|
932
932
|
var r = e[t];
|
|
933
933
|
if (Ie(r) && !wr(r)) return !1;
|
|
934
934
|
}
|
|
935
935
|
return !0;
|
|
936
936
|
}
|
|
937
|
-
var
|
|
937
|
+
var xo = Pn(Ut), Co = (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) && wo(t), this.componentId = r, this.baseHash = Ue(xo, r), this.baseStyle = n, Mn.registerId(r);
|
|
940
940
|
}
|
|
941
941
|
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
942
942
|
var a = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
@@ -967,8 +967,8 @@ var wo = Pn(Ut), xo = (function() {
|
|
|
967
967
|
}, e;
|
|
968
968
|
})(), Lt = l.createContext(void 0);
|
|
969
969
|
Lt.Consumer;
|
|
970
|
-
function
|
|
971
|
-
var t = l.useContext(Lt), r =
|
|
970
|
+
function Ao(e) {
|
|
971
|
+
var t = l.useContext(Lt), r = ce(function() {
|
|
972
972
|
return (function(n, a) {
|
|
973
973
|
if (!n) throw Re(14);
|
|
974
974
|
if (Ie(n)) {
|
|
@@ -982,14 +982,14 @@ function Co(e) {
|
|
|
982
982
|
return e.children ? l.createElement(Lt.Provider, { value: r }, e.children) : null;
|
|
983
983
|
}
|
|
984
984
|
var ar = {};
|
|
985
|
-
function
|
|
985
|
+
function _o(e, t, r) {
|
|
986
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
988
|
ar[x] = (ar[x] || 0) + 1;
|
|
989
|
-
var y = "".concat(x, "-").concat(
|
|
989
|
+
var y = "".concat(x, "-").concat(Ka(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 nr(b) ? "styled.".concat(b) : "Styled(".concat(
|
|
992
|
+
return nr(b) ? "styled.".concat(b) : "Styled(".concat(Xa(b), ")");
|
|
993
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
994
|
if (n && a.shouldForwardProp) {
|
|
995
995
|
var $ = a.shouldForwardProp;
|
|
@@ -1000,10 +1000,10 @@ function Ao(e, t, r) {
|
|
|
1000
1000
|
};
|
|
1001
1001
|
} else A = $;
|
|
1002
1002
|
}
|
|
1003
|
-
var D = new
|
|
1003
|
+
var D = new Co(r, w, n ? a.componentStyle : void 0);
|
|
1004
1004
|
function P(b, R) {
|
|
1005
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 =
|
|
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 = Ga(y, Ht, U) || qe, J = (function(I, te, be) {
|
|
1007
1007
|
for (var ye, re = H(H({}, te), { className: void 0, theme: be }), Ne = 0; Ne < I.length; Ne += 1) {
|
|
1008
1008
|
var Se = Ie(ye = I[Ne]) ? ye(re) : ye;
|
|
1009
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];
|
|
@@ -1015,7 +1015,7 @@ function Ao(e, t, r) {
|
|
|
1015
1015
|
var be = tn(), ye = I.generateAndInjectStyles(te, be.styleSheet, be.stylis);
|
|
1016
1016
|
return ye;
|
|
1017
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),
|
|
1018
|
+
return L && (Oe += " " + L), J.className && (Oe += " " + J.className), O[nr(Ee) && !Rn.has(Ee) ? "class" : "className"] = Oe, ge && (O.ref = ge), va(Ee, O);
|
|
1019
1019
|
})(_, b, R);
|
|
1020
1020
|
}
|
|
1021
1021
|
P.displayName = T;
|
|
@@ -1039,7 +1039,7 @@ function nn(e, t) {
|
|
|
1039
1039
|
var an = function(e) {
|
|
1040
1040
|
return Object.assign(e, { isCss: !0 });
|
|
1041
1041
|
};
|
|
1042
|
-
function
|
|
1042
|
+
function Io(e) {
|
|
1043
1043
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1044
1044
|
if (Ie(e) || mt(e)) return an(_e(nn(Vt, Ot([e], t, !0))));
|
|
1045
1045
|
var n = e;
|
|
@@ -1049,7 +1049,7 @@ function br(e, t, r) {
|
|
|
1049
1049
|
if (r === void 0 && (r = qe), !t) throw Re(1, t);
|
|
1050
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, Io.apply(void 0, Ot([a], i, !1)));
|
|
1053
1053
|
};
|
|
1054
1054
|
return n.attrs = function(a) {
|
|
1055
1055
|
return br(e, t, H(H({}, r), { attrs: Array.prototype.concat(r.attrs, a).filter(Boolean) }));
|
|
@@ -1058,7 +1058,7 @@ function br(e, t, r) {
|
|
|
1058
1058
|
}, n;
|
|
1059
1059
|
}
|
|
1060
1060
|
var Vn = function(e) {
|
|
1061
|
-
return br(
|
|
1061
|
+
return br(_o, e);
|
|
1062
1062
|
}, v = Vn;
|
|
1063
1063
|
Rn.forEach(function(e) {
|
|
1064
1064
|
v[e] = Vn(e);
|
|
@@ -1119,14 +1119,14 @@ const Ve = {
|
|
|
1119
1119
|
// radio/checkbox item element width
|
|
1120
1120
|
spacing: ".3rem",
|
|
1121
1121
|
depth: 1
|
|
1122
|
-
},
|
|
1122
|
+
}, Ro = {
|
|
1123
1123
|
selectedVariant: "primary",
|
|
1124
1124
|
getDefaultVariantOrSelected: () => "primary",
|
|
1125
1125
|
...Ve
|
|
1126
1126
|
}, Wn = l.createContext({
|
|
1127
1127
|
...Ve,
|
|
1128
|
-
...
|
|
1129
|
-
}),
|
|
1128
|
+
...Ro
|
|
1129
|
+
}), ko = v.div`
|
|
1130
1130
|
font-family:
|
|
1131
1131
|
ui-sans-serif,
|
|
1132
1132
|
system-ui,
|
|
@@ -1177,11 +1177,11 @@ const Ve = {
|
|
|
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
|
+
`, se = (e) => {
|
|
1181
1181
|
const t = e.selectedVariant ?? "primary";
|
|
1182
|
-
return console.log("ThemeProvider_theme", e.theme ?? Ve), l.createElement(
|
|
1182
|
+
return console.log("ThemeProvider_theme", e.theme ?? Ve), l.createElement(Ao, {
|
|
1183
1183
|
theme: e.theme ?? Ve,
|
|
1184
|
-
children: l.createElement(
|
|
1184
|
+
children: l.createElement(ko, {
|
|
1185
1185
|
$theme: e.theme ?? Ve,
|
|
1186
1186
|
children: l.createElement(Wn.Provider, {
|
|
1187
1187
|
value: {
|
|
@@ -1193,13 +1193,13 @@ const Ve = {
|
|
|
1193
1193
|
})
|
|
1194
1194
|
})
|
|
1195
1195
|
});
|
|
1196
|
-
}, Hn = () => l.useContext(Wn),
|
|
1196
|
+
}, Hn = () => l.useContext(Wn), ue = (e) => {
|
|
1197
1197
|
const { getDefaultVariantOrSelected: t, ...r } = Hn(), n = t();
|
|
1198
1198
|
return r[e ?? n];
|
|
1199
1199
|
}, Gn = (e) => {
|
|
1200
1200
|
const { getDefaultVariantOrSelected: t, ...r } = Hn(), n = t(), a = e ? `${e}Content` : `${n}Content`;
|
|
1201
1201
|
return r[a];
|
|
1202
|
-
},
|
|
1202
|
+
}, Po = () => {
|
|
1203
1203
|
const e = "http://localhost:4000/external", t = async (r) => {
|
|
1204
1204
|
const n = await r;
|
|
1205
1205
|
if (!n.ok)
|
|
@@ -1403,7 +1403,7 @@ const Ve = {
|
|
|
1403
1403
|
]
|
|
1404
1404
|
}
|
|
1405
1405
|
]
|
|
1406
|
-
},
|
|
1406
|
+
}, Oo = (e, t) => new Promise((r) => {
|
|
1407
1407
|
r({
|
|
1408
1408
|
id: "",
|
|
1409
1409
|
domainId: "",
|
|
@@ -1446,7 +1446,7 @@ const Ve = {
|
|
|
1446
1446
|
form: on
|
|
1447
1447
|
}
|
|
1448
1448
|
});
|
|
1449
|
-
}),
|
|
1449
|
+
}), No = (e) => {
|
|
1450
1450
|
const [t, r] = We(), [n, a] = We(!0), [i, s] = We(null);
|
|
1451
1451
|
return He(() => {
|
|
1452
1452
|
const d = new AbortController();
|
|
@@ -1455,7 +1455,7 @@ const Ve = {
|
|
|
1455
1455
|
};
|
|
1456
1456
|
}, []), { data: t, loading: n, error: i };
|
|
1457
1457
|
}, Ke = v.button((e) => {
|
|
1458
|
-
const t =
|
|
1458
|
+
const t = ue(), 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,
|
|
@@ -1489,7 +1489,7 @@ const Ve = {
|
|
|
1489
1489
|
paddingInline: "0.7rem"
|
|
1490
1490
|
}
|
|
1491
1491
|
};
|
|
1492
|
-
}),
|
|
1492
|
+
}), $o = v.div`
|
|
1493
1493
|
visibility: ${(e) => e.$isVisible && e.$height ? "visible" : "hidden"};
|
|
1494
1494
|
opacity: ${(e) => e.$isVisible ? 1 : 0};
|
|
1495
1495
|
display: flex;
|
|
@@ -1512,13 +1512,13 @@ const Ve = {
|
|
|
1512
1512
|
const t = vn(null);
|
|
1513
1513
|
return He(() => {
|
|
1514
1514
|
t.current && e.onSetMaxHeight(t.current.clientHeight);
|
|
1515
|
-
}, [t]), l.createElement(
|
|
1515
|
+
}, [t]), l.createElement($o, {
|
|
1516
1516
|
ref: t,
|
|
1517
1517
|
$height: e.height,
|
|
1518
1518
|
$isVisible: e.isVisible,
|
|
1519
1519
|
children: e.children
|
|
1520
1520
|
});
|
|
1521
|
-
},
|
|
1521
|
+
}, Do = v.ul`
|
|
1522
1522
|
counter-reset: step;
|
|
1523
1523
|
grid-auto-columns: 1fr;
|
|
1524
1524
|
grid-auto-flow: column;
|
|
@@ -1527,8 +1527,8 @@ const Ve = {
|
|
|
1527
1527
|
@media (max-width: 900px) {
|
|
1528
1528
|
display: none;
|
|
1529
1529
|
}
|
|
1530
|
-
`,
|
|
1531
|
-
const t =
|
|
1530
|
+
`, Lo = v.li((e) => {
|
|
1531
|
+
const t = ue(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,
|
|
@@ -1569,10 +1569,10 @@ const Ve = {
|
|
|
1569
1569
|
position: "relative"
|
|
1570
1570
|
}
|
|
1571
1571
|
};
|
|
1572
|
-
}), Yn = (e) => (console.log("props.currentStepIndex", e.currentStepIndex), l.createElement(
|
|
1572
|
+
}), Yn = (e) => (console.log("props.currentStepIndex", e.currentStepIndex), l.createElement(Do, {
|
|
1573
1573
|
children: [
|
|
1574
1574
|
e.steps.map(
|
|
1575
|
-
(t, r) => l.createElement(
|
|
1575
|
+
(t, r) => l.createElement(Lo, {
|
|
1576
1576
|
key: t.title,
|
|
1577
1577
|
colorVariant: e.colorVariant,
|
|
1578
1578
|
shouldBeFilled: e.currentStepIndex >= r,
|
|
@@ -1580,7 +1580,7 @@ const Ve = {
|
|
|
1580
1580
|
})
|
|
1581
1581
|
)
|
|
1582
1582
|
]
|
|
1583
|
-
})),
|
|
1583
|
+
})), Mo = {
|
|
1584
1584
|
title: {
|
|
1585
1585
|
marginTop: "0",
|
|
1586
1586
|
marginBottom: ".888889em",
|
|
@@ -1612,15 +1612,15 @@ const Ve = {
|
|
|
1612
1612
|
marginBottom: "1.25em",
|
|
1613
1613
|
fontSize: "1rem"
|
|
1614
1614
|
}
|
|
1615
|
-
},
|
|
1616
|
-
...
|
|
1615
|
+
}, Fo = v.div((e) => ({
|
|
1616
|
+
...Mo[e.$variant ?? "paragraph"],
|
|
1617
1617
|
color: e.theme.baseContent,
|
|
1618
1618
|
...e.$linear ? { margin: "0" } : {}
|
|
1619
|
-
})), oe = (e) => l.createElement(
|
|
1619
|
+
})), oe = (e) => l.createElement(Fo, {
|
|
1620
1620
|
$variant: e.variant,
|
|
1621
1621
|
$linear: e.linear,
|
|
1622
1622
|
children: e.children
|
|
1623
|
-
}),
|
|
1623
|
+
}), zo = (e) => {
|
|
1624
1624
|
switch (e) {
|
|
1625
1625
|
case "textarea":
|
|
1626
1626
|
return "";
|
|
@@ -1640,7 +1640,7 @@ const Ve = {
|
|
|
1640
1640
|
return null;
|
|
1641
1641
|
}
|
|
1642
1642
|
}, qn = (e) => {
|
|
1643
|
-
const t =
|
|
1643
|
+
const t = ce(
|
|
1644
1644
|
() => e.form.steps.reduce(
|
|
1645
1645
|
(s, d, u) => (s.validationsPerStep[u] = {}, s.steps = [
|
|
1646
1646
|
...s.steps,
|
|
@@ -1653,7 +1653,7 @@ const Ve = {
|
|
|
1653
1653
|
validations: f.validations
|
|
1654
1654
|
}, s.state = {
|
|
1655
1655
|
...s.state,
|
|
1656
|
-
[p]:
|
|
1656
|
+
[p]: zo(f.type)
|
|
1657
1657
|
}, {
|
|
1658
1658
|
dataField: p,
|
|
1659
1659
|
...f
|
|
@@ -1690,14 +1690,14 @@ const Ve = {
|
|
|
1690
1690
|
setStateByKey: a,
|
|
1691
1691
|
getStateByKey: i
|
|
1692
1692
|
};
|
|
1693
|
-
},
|
|
1693
|
+
}, Bo = Po(), Uo = (e, t) => Bo.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
1696
|
entries: Kn,
|
|
1697
1697
|
setPrototypeOf: sn,
|
|
1698
|
-
isFrozen:
|
|
1699
|
-
getPrototypeOf:
|
|
1700
|
-
getOwnPropertyDescriptor:
|
|
1698
|
+
isFrozen: Vo,
|
|
1699
|
+
getPrototypeOf: Wo,
|
|
1700
|
+
getOwnPropertyDescriptor: Ho
|
|
1701
1701
|
} = Object;
|
|
1702
1702
|
let {
|
|
1703
1703
|
freeze: q,
|
|
@@ -1723,7 +1723,7 @@ vr || (vr = function(t) {
|
|
|
1723
1723
|
n[a - 1] = arguments[a];
|
|
1724
1724
|
return new t(...n);
|
|
1725
1725
|
});
|
|
1726
|
-
const wt = K(Array.prototype.forEach),
|
|
1726
|
+
const wt = K(Array.prototype.forEach), Go = K(Array.prototype.lastIndexOf), ln = K(Array.prototype.pop), at = K(Array.prototype.push), jo = K(Array.prototype.splice), Pt = K(String.prototype.toLowerCase), or = K(String.prototype.toString), ir = K(String.prototype.match), ot = K(String.prototype.replace), Yo = K(String.prototype.indexOf), qo = K(String.prototype.trim), ne = K(Object.prototype.hasOwnProperty), Y = K(RegExp.prototype.test), it = Ko(TypeError);
|
|
1727
1727
|
function K(e) {
|
|
1728
1728
|
return function(t) {
|
|
1729
1729
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -1732,7 +1732,7 @@ function K(e) {
|
|
|
1732
1732
|
return yr(e, t, n);
|
|
1733
1733
|
};
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function Ko(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];
|
|
@@ -1747,58 +1747,58 @@ function S(e, t) {
|
|
|
1747
1747
|
let a = t[n];
|
|
1748
1748
|
if (typeof a == "string") {
|
|
1749
1749
|
const i = r(a);
|
|
1750
|
-
i !== a && (
|
|
1750
|
+
i !== a && (Vo(t) || (t[n] = i), a = i);
|
|
1751
1751
|
}
|
|
1752
1752
|
e[a] = !0;
|
|
1753
1753
|
}
|
|
1754
1754
|
return e;
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function Xo(e) {
|
|
1757
1757
|
for (let t = 0; t < e.length; t++)
|
|
1758
1758
|
ne(e, t) || (e[t] = null);
|
|
1759
1759
|
return e;
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1761
|
+
function he(e) {
|
|
1762
1762
|
const t = Xn(null);
|
|
1763
1763
|
for (const [r, n] of Kn(e))
|
|
1764
|
-
ne(e, r) && (Array.isArray(n) ? t[r] =
|
|
1764
|
+
ne(e, r) && (Array.isArray(n) ? t[r] = Xo(n) : n && typeof n == "object" && n.constructor === Object ? t[r] = he(n) : t[r] = n);
|
|
1765
1765
|
return t;
|
|
1766
1766
|
}
|
|
1767
1767
|
function st(e, t) {
|
|
1768
1768
|
for (; e !== null; ) {
|
|
1769
|
-
const n =
|
|
1769
|
+
const n = Ho(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 = Wo(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"]), 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"]),
|
|
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"]), Zo = 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"]), Qo = 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"]), Jo = Q(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ei = Q(/<%[\w\W]*|[\w\W]*%>/gm), ti = Q(/\$\{[\w\W]*/gm), ri = Q(/^data-[\-\w.\u00B7-\uFFFF]+$/), ni = 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
|
+
), ai = Q(/^(?:\w+script|data):/i), oi = Q(
|
|
1787
1787
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
1788
1788
|
// eslint-disable-line no-control-regex
|
|
1789
|
-
), Qn = Q(/^html$/i),
|
|
1789
|
+
), Qn = Q(/^html$/i), ii = Q(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
1790
1790
|
var fn = /* @__PURE__ */ Object.freeze({
|
|
1791
1791
|
__proto__: null,
|
|
1792
|
-
ARIA_ATTR:
|
|
1793
|
-
ATTR_WHITESPACE:
|
|
1794
|
-
CUSTOM_ELEMENT:
|
|
1795
|
-
DATA_ATTR:
|
|
1792
|
+
ARIA_ATTR: ni,
|
|
1793
|
+
ATTR_WHITESPACE: oi,
|
|
1794
|
+
CUSTOM_ELEMENT: ii,
|
|
1795
|
+
DATA_ATTR: ri,
|
|
1796
1796
|
DOCTYPE_NAME: Qn,
|
|
1797
|
-
ERB_EXPR:
|
|
1797
|
+
ERB_EXPR: ei,
|
|
1798
1798
|
IS_ALLOWED_URI: Zn,
|
|
1799
|
-
IS_SCRIPT_OR_DATA:
|
|
1800
|
-
MUSTACHE_EXPR:
|
|
1801
|
-
TMPLIT_EXPR:
|
|
1799
|
+
IS_SCRIPT_OR_DATA: ai,
|
|
1800
|
+
MUSTACHE_EXPR: Jo,
|
|
1801
|
+
TMPLIT_EXPR: ti
|
|
1802
1802
|
});
|
|
1803
1803
|
const lt = {
|
|
1804
1804
|
element: 1,
|
|
@@ -1807,9 +1807,9 @@ const lt = {
|
|
|
1807
1807
|
progressingInstruction: 7,
|
|
1808
1808
|
comment: 8,
|
|
1809
1809
|
document: 9
|
|
1810
|
-
},
|
|
1810
|
+
}, si = function() {
|
|
1811
1811
|
return typeof window > "u" ? null : window;
|
|
1812
|
-
},
|
|
1812
|
+
}, li = function(t, r) {
|
|
1813
1813
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
1814
1814
|
return null;
|
|
1815
1815
|
let n = null;
|
|
@@ -1842,7 +1842,7 @@ const lt = {
|
|
|
1842
1842
|
};
|
|
1843
1843
|
};
|
|
1844
1844
|
function Jn() {
|
|
1845
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
1845
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : si();
|
|
1846
1846
|
const t = (h) => Jn(h);
|
|
1847
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;
|
|
@@ -1911,44 +1911,44 @@ function Jn() {
|
|
|
1911
1911
|
value: !1
|
|
1912
1912
|
}
|
|
1913
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
|
|
1914
|
+
const da = "user-content-";
|
|
1915
1915
|
let qt = !0, rt = !1, De = {}, Le = null;
|
|
1916
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
1918
|
const Rr = S({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
1919
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",
|
|
1921
|
-
let Me =
|
|
1922
|
-
const
|
|
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", de = "http://www.w3.org/1999/xhtml";
|
|
1921
|
+
let Me = de, Xt = !1, Zt = null;
|
|
1922
|
+
const ma = S({}, [gt, bt, de], or);
|
|
1923
1923
|
let yt = S({}, ["mi", "mo", "mn", "ms", "mtext"]), vt = S({}, ["annotation-xml"]);
|
|
1924
|
-
const
|
|
1924
|
+
const fa = S({}, ["title", "style", "font", "a", "script"]);
|
|
1925
1925
|
let nt = null;
|
|
1926
|
-
const
|
|
1926
|
+
const ha = ["application/xhtml+xml", "text/html"], pa = "text/html";
|
|
1927
1927
|
let z = null, Fe = null;
|
|
1928
|
-
const
|
|
1928
|
+
const ga = r.createElement("form"), Pr = function(o) {
|
|
1929
1929
|
return o instanceof RegExp || o instanceof Function;
|
|
1930
1930
|
}, Qt = function() {
|
|
1931
1931
|
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1932
1932
|
if (!(Fe && Fe === o)) {
|
|
1933
|
-
if ((!o || typeof o != "object") && (o = {}), o =
|
|
1934
|
-
|
|
1933
|
+
if ((!o || typeof o != "object") && (o = {}), o = he(o), nt = // eslint-disable-next-line unicorn/prefer-includes
|
|
1934
|
+
ha.indexOf(o.PARSER_MEDIA_TYPE) === -1 ? pa : 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) : ma, Kt = ne(o, "ADD_URI_SAFE_ATTR") ? S(he(kr), o.ADD_URI_SAFE_ATTR, z) : kr, Ir = ne(o, "ADD_DATA_URI_TAGS") ? S(he(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) : he({}), be = ne(o, "FORBID_ATTR") ? S({}, o.FORBID_ATTR, z) : he({}), 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 || de, 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 = he(O)), S(O, o.ADD_TAGS, z)), o.ADD_ATTR && (L === Oe && (L = he(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 = he(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
1935
|
if (typeof o.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1936
1936
|
throw it('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1937
1937
|
if (typeof o.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
1938
1938
|
throw it('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
1939
1939
|
b = o.TRUSTED_TYPES_POLICY, R = b.createHTML("");
|
|
1940
1940
|
} else
|
|
1941
|
-
b === void 0 && (b =
|
|
1941
|
+
b === void 0 && (b = li(E, a)), b !== null && typeof R == "string" && (R = b.createHTML(""));
|
|
1942
1942
|
q && q(o), Fe = o;
|
|
1943
1943
|
}
|
|
1944
|
-
}, Or = S({}, [...sr, ...lr, ...
|
|
1944
|
+
}, Or = S({}, [...sr, ...lr, ...Zo]), Nr = S({}, [...cr, ...Qo]), ba = function(o) {
|
|
1945
1945
|
let c = _(o);
|
|
1946
1946
|
(!c || !c.tagName) && (c = {
|
|
1947
1947
|
namespaceURI: Me,
|
|
1948
1948
|
tagName: "template"
|
|
1949
1949
|
});
|
|
1950
1950
|
const m = Pt(o.tagName), N = Pt(c.tagName);
|
|
1951
|
-
return Zt[o.namespaceURI] ? o.namespaceURI === bt ? c.namespaceURI ===
|
|
1951
|
+
return Zt[o.namespaceURI] ? o.namespaceURI === bt ? c.namespaceURI === de ? m === "svg" : c.namespaceURI === gt ? m === "svg" && (N === "annotation-xml" || yt[N]) : !!Or[m] : o.namespaceURI === gt ? c.namespaceURI === de ? m === "math" : c.namespaceURI === bt ? m === "math" && vt[N] : !!Nr[m] : o.namespaceURI === de ? c.namespaceURI === bt && !vt[N] || c.namespaceURI === gt && !yt[N] ? !1 : !Nr[m] && (fa[m] || !Or[m]) : !!(nt === "application/xhtml+xml" && Zt[o.namespaceURI]) : !1;
|
|
1952
1952
|
}, ie = function(o) {
|
|
1953
1953
|
at(t.removed, {
|
|
1954
1954
|
element: o
|
|
@@ -1989,9 +1989,9 @@ function Jn() {
|
|
|
1989
1989
|
const M = ir(o, /^[\r\n\t ]+/);
|
|
1990
1990
|
m = M && M[0];
|
|
1991
1991
|
}
|
|
1992
|
-
nt === "application/xhtml+xml" && Me ===
|
|
1992
|
+
nt === "application/xhtml+xml" && Me === de && (o = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + o + "</body></html>");
|
|
1993
1993
|
const N = b ? b.createHTML(o) : o;
|
|
1994
|
-
if (Me ===
|
|
1994
|
+
if (Me === de)
|
|
1995
1995
|
try {
|
|
1996
1996
|
c = new w().parseFromString(N, nt);
|
|
1997
1997
|
} catch {
|
|
@@ -2004,7 +2004,7 @@ function Jn() {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
}
|
|
2006
2006
|
const W = c.body || c.documentElement;
|
|
2007
|
-
return o && m && W.insertBefore(r.createTextNode(m), W.childNodes[0] || null), Me ===
|
|
2007
|
+
return o && m && W.insertBefore(r.createTextNode(m), W.childNodes[0] || null), Me === de ? Pe.call(c, Te ? "html" : "body")[0] : Te ? c.documentElement : W;
|
|
2008
2008
|
}, Dr = function(o) {
|
|
2009
2009
|
return y.call(
|
|
2010
2010
|
o.ownerDocument || o,
|
|
@@ -2018,17 +2018,17 @@ function Jn() {
|
|
|
2018
2018
|
}, Lr = function(o) {
|
|
2019
2019
|
return typeof d == "function" && o instanceof d;
|
|
2020
2020
|
};
|
|
2021
|
-
function
|
|
2021
|
+
function me(h, o, c) {
|
|
2022
2022
|
wt(h, (m) => {
|
|
2023
2023
|
m.call(t, o, c, Fe);
|
|
2024
2024
|
});
|
|
2025
2025
|
}
|
|
2026
2026
|
const Mr = function(o) {
|
|
2027
2027
|
let c = null;
|
|
2028
|
-
if (
|
|
2028
|
+
if (me(U.beforeSanitizeElements, o, null), Jt(o))
|
|
2029
2029
|
return ie(o), !0;
|
|
2030
2030
|
const m = z(o.nodeName);
|
|
2031
|
-
if (
|
|
2031
|
+
if (me(U.uponSanitizeElement, o, {
|
|
2032
2032
|
tagName: m,
|
|
2033
2033
|
allowedTags: O
|
|
2034
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))
|
|
@@ -2041,20 +2041,20 @@ function Jn() {
|
|
|
2041
2041
|
if (W && N) {
|
|
2042
2042
|
const M = W.length;
|
|
2043
2043
|
for (let X = M - 1; X >= 0; --X) {
|
|
2044
|
-
const
|
|
2045
|
-
|
|
2044
|
+
const fe = $(W[X], !0);
|
|
2045
|
+
fe.__removalCount = (o.__removalCount || 0) + 1, N.insertBefore(fe, D(o));
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
2049
|
return ie(o), !0;
|
|
2050
2050
|
}
|
|
2051
|
-
return o instanceof u && !
|
|
2051
|
+
return o instanceof u && !ba(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
2053
|
}), o.textContent !== c && (at(t.removed, {
|
|
2054
2054
|
element: o.cloneNode()
|
|
2055
|
-
}), o.textContent = c)),
|
|
2055
|
+
}), o.textContent = c)), me(U.afterSanitizeElements, o, null), !1);
|
|
2056
2056
|
}, Fr = function(o, c, m) {
|
|
2057
|
-
if (Cr && (c === "id" || c === "name") && (m in r || m in
|
|
2057
|
+
if (Cr && (c === "id" || c === "name") && (m in r || m in ga))
|
|
2058
2058
|
return !1;
|
|
2059
2059
|
if (!(re && !be[c] && Y(Ht, c))) {
|
|
2060
2060
|
if (!(ye && Y(Gt, c))) {
|
|
@@ -2069,7 +2069,7 @@ function Jn() {
|
|
|
2069
2069
|
) return !1;
|
|
2070
2070
|
} else if (!Kt[c]) {
|
|
2071
2071
|
if (!Y(Ee, ot(m, tt, ""))) {
|
|
2072
|
-
if (!((c === "src" || c === "xlink:href" || c === "href") && o !== "script" &&
|
|
2072
|
+
if (!((c === "src" || c === "xlink:href" || c === "href") && o !== "script" && Yo(m, "data:") === 0 && Ir[o])) {
|
|
2073
2073
|
if (!(Ne && !Y(et, ot(m, tt, "")))) {
|
|
2074
2074
|
if (m)
|
|
2075
2075
|
return !1;
|
|
@@ -2083,7 +2083,7 @@ function Jn() {
|
|
|
2083
2083
|
}, zr = function(o) {
|
|
2084
2084
|
return o !== "annotation-xml" && ir(o, J);
|
|
2085
2085
|
}, Br = function(o) {
|
|
2086
|
-
|
|
2086
|
+
me(U.beforeSanitizeAttributes, o, null);
|
|
2087
2087
|
const {
|
|
2088
2088
|
attributes: c
|
|
2089
2089
|
} = o;
|
|
@@ -2101,10 +2101,10 @@ function Jn() {
|
|
|
2101
2101
|
const W = c[N], {
|
|
2102
2102
|
name: M,
|
|
2103
2103
|
namespaceURI: X,
|
|
2104
|
-
value:
|
|
2105
|
-
} = W, ze = z(M), er =
|
|
2106
|
-
let V = M === "value" ? er :
|
|
2107
|
-
if (m.attrName = ze, m.attrValue = V, m.keepAttr = !0, m.forceKeepAttr = void 0,
|
|
2104
|
+
value: fe
|
|
2105
|
+
} = W, ze = z(M), er = fe;
|
|
2106
|
+
let V = M === "value" ? er : qo(er);
|
|
2107
|
+
if (m.attrName = ze, m.attrValue = V, m.keepAttr = !0, m.forceKeepAttr = void 0, me(U.uponSanitizeAttribute, o, m), V = m.attrValue, Ar && (ze === "id" || ze === "name") && (we(M, o), V = da + V), ft && Y(/((--!?|])>)|<\/(style|title|textarea)/i, V)) {
|
|
2108
2108
|
we(M, o);
|
|
2109
2109
|
continue;
|
|
2110
2110
|
}
|
|
@@ -2148,13 +2148,13 @@ function Jn() {
|
|
|
2148
2148
|
we(M, o);
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
|
-
|
|
2152
|
-
},
|
|
2151
|
+
me(U.afterSanitizeAttributes, o, null);
|
|
2152
|
+
}, ya = function h(o) {
|
|
2153
2153
|
let c = null;
|
|
2154
2154
|
const m = Dr(o);
|
|
2155
|
-
for (
|
|
2156
|
-
|
|
2157
|
-
|
|
2155
|
+
for (me(U.beforeSanitizeShadowDOM, o, null); c = m.nextNode(); )
|
|
2156
|
+
me(U.uponSanitizeShadowNode, c, null), Mr(c), Br(c), c.content instanceof i && h(c.content);
|
|
2157
|
+
me(U.afterSanitizeShadowDOM, o, null);
|
|
2158
2158
|
};
|
|
2159
2159
|
return t.sanitize = function(h) {
|
|
2160
2160
|
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, c = null, m = null, N = null, W = null;
|
|
@@ -2168,8 +2168,8 @@ function Jn() {
|
|
|
2168
2168
|
return h;
|
|
2169
2169
|
if (jt || Qt(o), t.removed = [], typeof h == "string" && (rt = !1), rt) {
|
|
2170
2170
|
if (h.nodeName) {
|
|
2171
|
-
const
|
|
2172
|
-
if (!O[
|
|
2171
|
+
const fe = z(h.nodeName);
|
|
2172
|
+
if (!O[fe] || te[fe])
|
|
2173
2173
|
throw it("root node is forbidden and cannot be sanitized in-place");
|
|
2174
2174
|
}
|
|
2175
2175
|
} else if (h instanceof d)
|
|
@@ -2184,7 +2184,7 @@ function Jn() {
|
|
|
2184
2184
|
c && Yt && ie(c.firstChild);
|
|
2185
2185
|
const M = Dr(rt ? h : c);
|
|
2186
2186
|
for (; N = M.nextNode(); )
|
|
2187
|
-
Mr(N), Br(N), N.content instanceof i &&
|
|
2187
|
+
Mr(N), Br(N), N.content instanceof i && ya(N.content);
|
|
2188
2188
|
if (rt)
|
|
2189
2189
|
return h;
|
|
2190
2190
|
if ($e) {
|
|
@@ -2197,8 +2197,8 @@ function Jn() {
|
|
|
2197
2197
|
}
|
|
2198
2198
|
let X = Te ? c.outerHTML : c.innerHTML;
|
|
2199
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], (
|
|
2201
|
-
X = ot(X,
|
|
2200
|
+
` + X), j && wt([Ze, Qe, Je], (fe) => {
|
|
2201
|
+
X = ot(X, fe, " ");
|
|
2202
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] : {};
|
|
@@ -2213,8 +2213,8 @@ function Jn() {
|
|
|
2213
2213
|
typeof o == "function" && at(U[h], o);
|
|
2214
2214
|
}, t.removeHook = function(h, o) {
|
|
2215
2215
|
if (o !== void 0) {
|
|
2216
|
-
const c =
|
|
2217
|
-
return c === -1 ? void 0 :
|
|
2216
|
+
const c = Go(U[h], o);
|
|
2217
|
+
return c === -1 ? void 0 : jo(U[h], c, 1)[0];
|
|
2218
2218
|
}
|
|
2219
2219
|
return ln(U[h]);
|
|
2220
2220
|
}, t.removeHooks = function(h) {
|
|
@@ -2223,10 +2223,10 @@ function Jn() {
|
|
|
2223
2223
|
U = hn();
|
|
2224
2224
|
}, t;
|
|
2225
2225
|
}
|
|
2226
|
-
var
|
|
2227
|
-
const
|
|
2226
|
+
var ci = Jn();
|
|
2227
|
+
const ui = (e) => e == null, ut = (e) => !ui(e), di = (e, t) => t ? t.required && (e == null || e === "") ? "Field is required" : t.basicEmailValidation && (e == null || e === "") ? "Field should be email" : null : null, pn = (e, t) => t ? Object.keys(t).map(
|
|
2228
2228
|
(a) => {
|
|
2229
|
-
const i =
|
|
2229
|
+
const i = di(e[a], t[a].validations);
|
|
2230
2230
|
return i ? {
|
|
2231
2231
|
field: a,
|
|
2232
2232
|
error: i
|
|
@@ -2236,10 +2236,10 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2236
2236
|
).filter(ut) : [], ea = (e) => {
|
|
2237
2237
|
const [t, r] = We(0), [n, a] = We([]), i = Ce(async () => {
|
|
2238
2238
|
try {
|
|
2239
|
-
await
|
|
2239
|
+
await Uo({
|
|
2240
2240
|
feedbackFormId: e.formId,
|
|
2241
2241
|
link: window.location.pathname,
|
|
2242
|
-
rawHtml:
|
|
2242
|
+
rawHtml: ci.sanitize(document.getElementsByTagName("html")[0] ?? ""),
|
|
2243
2243
|
domainId: e.domainId,
|
|
2244
2244
|
data: e.state,
|
|
2245
2245
|
formType: e.formType,
|
|
@@ -2287,16 +2287,16 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2287
2287
|
onContinue: s,
|
|
2288
2288
|
onBack: d
|
|
2289
2289
|
};
|
|
2290
|
-
},
|
|
2290
|
+
}, mi = 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(mi, { children: ((t = (e || [])[0]) == null ? void 0 : t.error) ?? null });
|
|
2297
|
+
}, fi = v.input(
|
|
2298
2298
|
({ theme: e, colorVariant: t, selected: r }) => {
|
|
2299
|
-
const n = `calc(${e.sizeSelector} * 6);`, a =
|
|
2299
|
+
const n = `calc(${e.sizeSelector} * 6);`, a = ue(t);
|
|
2300
2300
|
return {
|
|
2301
2301
|
cursor: "pointer",
|
|
2302
2302
|
appearance: "none",
|
|
@@ -2331,15 +2331,15 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2331
2331
|
}
|
|
2332
2332
|
};
|
|
2333
2333
|
}
|
|
2334
|
-
),
|
|
2334
|
+
), hi = 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
|
+
})), pi = (e) => {
|
|
2342
|
+
const t = ce(
|
|
2343
2343
|
() => `${e.id}-${e.label.replace(/\s/g, "-").toLowerCase()}`,
|
|
2344
2344
|
[]
|
|
2345
2345
|
), r = (a) => {
|
|
@@ -2347,10 +2347,10 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2347
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(hi, {
|
|
2351
2351
|
selected: n,
|
|
2352
2352
|
children: [
|
|
2353
|
-
l.createElement(
|
|
2353
|
+
l.createElement(fi, {
|
|
2354
2354
|
id: t,
|
|
2355
2355
|
type: "checkbox",
|
|
2356
2356
|
selected: n,
|
|
@@ -2364,7 +2364,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2364
2364
|
})
|
|
2365
2365
|
]
|
|
2366
2366
|
});
|
|
2367
|
-
},
|
|
2367
|
+
}, gi = v.div`
|
|
2368
2368
|
display: flex;
|
|
2369
2369
|
flex-direction: column;
|
|
2370
2370
|
width: var(--all-fields-size);
|
|
@@ -2372,7 +2372,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2372
2372
|
@media (max-width: 900px) {
|
|
2373
2373
|
width: 100%;
|
|
2374
2374
|
}
|
|
2375
|
-
`,
|
|
2375
|
+
`, bi = v.div`
|
|
2376
2376
|
display: flex;
|
|
2377
2377
|
gap: calc(var(--spacing) * 10);
|
|
2378
2378
|
@media (max-width: 900px) {
|
|
@@ -2380,7 +2380,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2380
2380
|
flex-direction: column;
|
|
2381
2381
|
}
|
|
2382
2382
|
`, ta = (e) => {
|
|
2383
|
-
const t = e.label.replace(/\s/g, "-").toLowerCase(), r = e.elementsPerCol || 4, n =
|
|
2383
|
+
const t = e.label.replace(/\s/g, "-").toLowerCase(), r = e.elementsPerCol || 4, n = ce(() => e.options.reduce(
|
|
2384
2384
|
(a, i, s) => {
|
|
2385
2385
|
var u;
|
|
2386
2386
|
return (s % r === 0 || s === 0) && a.push([]), (u = a[a.length - 1]) == null || u.push(i), a;
|
|
@@ -2393,12 +2393,12 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2393
2393
|
children: e.label,
|
|
2394
2394
|
variant: "section"
|
|
2395
2395
|
}),
|
|
2396
|
-
l.createElement(
|
|
2396
|
+
l.createElement(bi, {
|
|
2397
2397
|
children: n.map(
|
|
2398
|
-
(a, i) => l.createElement(
|
|
2398
|
+
(a, i) => l.createElement(gi, {
|
|
2399
2399
|
key: i,
|
|
2400
2400
|
children: a.map(
|
|
2401
|
-
(s) => l.createElement(
|
|
2401
|
+
(s) => l.createElement(pi, {
|
|
2402
2402
|
onSelect: e.onChange,
|
|
2403
2403
|
colorVariant: e.colorVariant,
|
|
2404
2404
|
value: e.value,
|
|
@@ -2415,7 +2415,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2415
2415
|
})
|
|
2416
2416
|
]
|
|
2417
2417
|
});
|
|
2418
|
-
},
|
|
2418
|
+
}, yi = v(Ke)(() => ({
|
|
2419
2419
|
"&:not(:last-of-type):not(:first-of-type)": {
|
|
2420
2420
|
borderRadius: "0",
|
|
2421
2421
|
marginRight: "-1px",
|
|
@@ -2432,7 +2432,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2432
2432
|
"@media (max-width: 900px)": {
|
|
2433
2433
|
// display: 'none',
|
|
2434
2434
|
}
|
|
2435
|
-
})),
|
|
2435
|
+
})), vi = (e) => l.createElement(yi, {
|
|
2436
2436
|
onClick: e.onChange,
|
|
2437
2437
|
$outlined: !e.selected,
|
|
2438
2438
|
children: e.label
|
|
@@ -2440,7 +2440,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2440
2440
|
min: e,
|
|
2441
2441
|
variant: t
|
|
2442
2442
|
}) => {
|
|
2443
|
-
const r = t ||
|
|
2443
|
+
const r = t || ue();
|
|
2444
2444
|
return {
|
|
2445
2445
|
position: "absolute",
|
|
2446
2446
|
left: e ? "0" : void 0,
|
|
@@ -2452,7 +2452,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2452
2452
|
textTransform: "uppercase",
|
|
2453
2453
|
color: r
|
|
2454
2454
|
};
|
|
2455
|
-
}),
|
|
2455
|
+
}), Ei = v.div((e) => ({
|
|
2456
2456
|
verticalAlign: "middle",
|
|
2457
2457
|
display: "inline-flex",
|
|
2458
2458
|
position: "relative",
|
|
@@ -2463,7 +2463,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2463
2463
|
children: e.label,
|
|
2464
2464
|
variant: "section"
|
|
2465
2465
|
}),
|
|
2466
|
-
l.createElement(
|
|
2466
|
+
l.createElement(Ei, {
|
|
2467
2467
|
withText: e.maxText || e.minText,
|
|
2468
2468
|
children: [
|
|
2469
2469
|
e.maxText ? l.createElement(gn, {
|
|
@@ -2474,7 +2474,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (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(vi, {
|
|
2478
2478
|
onChange: () => e.onChange(r + 1),
|
|
2479
2479
|
selected: r + 1 === e.value,
|
|
2480
2480
|
key: `${r}`,
|
|
@@ -2486,8 +2486,8 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2486
2486
|
errors: e.errors
|
|
2487
2487
|
})
|
|
2488
2488
|
]
|
|
2489
|
-
}),
|
|
2490
|
-
const n = `calc(${e.sizeSelector} * 6);`, a =
|
|
2489
|
+
}), Si = v.input(({ theme: e, selected: t, colorVariant: r }) => {
|
|
2490
|
+
const n = `calc(${e.sizeSelector} * 6);`, a = ue(r);
|
|
2491
2491
|
return {
|
|
2492
2492
|
width: n,
|
|
2493
2493
|
height: n,
|
|
@@ -2513,25 +2513,25 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2513
2513
|
display: "block"
|
|
2514
2514
|
}
|
|
2515
2515
|
};
|
|
2516
|
-
}),
|
|
2516
|
+
}), Ti = 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
|
+
})), wi = (e) => {
|
|
2524
|
+
const t = ce(
|
|
2525
2525
|
() => `${e.id}-${e.label.replace(/\s/g, "-").toLowerCase()}`,
|
|
2526
2526
|
[e.id]
|
|
2527
2527
|
), r = (a) => {
|
|
2528
2528
|
e.onSelect(a);
|
|
2529
2529
|
}, n = e.value === t;
|
|
2530
|
-
return l.createElement(
|
|
2530
|
+
return l.createElement(Ti, {
|
|
2531
2531
|
selected: n,
|
|
2532
2532
|
htmlFor: t,
|
|
2533
2533
|
children: [
|
|
2534
|
-
l.createElement(
|
|
2534
|
+
l.createElement(Si, {
|
|
2535
2535
|
id: t,
|
|
2536
2536
|
type: "radio",
|
|
2537
2537
|
variant: e.colorVariant,
|
|
@@ -2545,7 +2545,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2545
2545
|
})
|
|
2546
2546
|
]
|
|
2547
2547
|
});
|
|
2548
|
-
},
|
|
2548
|
+
}, xi = v.div`
|
|
2549
2549
|
display: flex;
|
|
2550
2550
|
flex-direction: column;
|
|
2551
2551
|
width: var(--all-fields-size);
|
|
@@ -2553,7 +2553,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2553
2553
|
@media (max-width: 900px) {
|
|
2554
2554
|
width: 100%;
|
|
2555
2555
|
}
|
|
2556
|
-
`,
|
|
2556
|
+
`, Ci = v.div`
|
|
2557
2557
|
display: flex;
|
|
2558
2558
|
gap: calc(var(--spacing) * 10);
|
|
2559
2559
|
@media (max-width: 900px) {
|
|
@@ -2561,7 +2561,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2561
2561
|
flex-direction: column;
|
|
2562
2562
|
}
|
|
2563
2563
|
`, na = (e) => {
|
|
2564
|
-
const t = e.elementsPerCol || 4, r =
|
|
2564
|
+
const t = e.elementsPerCol || 4, r = ce(() => e.options.reduce(
|
|
2565
2565
|
(n, a, i) => {
|
|
2566
2566
|
var d;
|
|
2567
2567
|
return (i % t === 0 || i === 0) && n.push([]), (d = n[n.length - 1]) == null || d.push(a), n;
|
|
@@ -2574,11 +2574,11 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2574
2574
|
children: e.label,
|
|
2575
2575
|
variant: "section"
|
|
2576
2576
|
}),
|
|
2577
|
-
l.createElement(
|
|
2577
|
+
l.createElement(Ci, {
|
|
2578
2578
|
children: r.map(
|
|
2579
|
-
(n) => l.createElement(
|
|
2579
|
+
(n) => l.createElement(xi, {
|
|
2580
2580
|
children: n.map(
|
|
2581
|
-
(a) => l.createElement(
|
|
2581
|
+
(a) => l.createElement(wi, {
|
|
2582
2582
|
colorVariant: e.colorVariant,
|
|
2583
2583
|
onSelect: e.onChange,
|
|
2584
2584
|
value: e.value,
|
|
@@ -2595,8 +2595,8 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2595
2595
|
})
|
|
2596
2596
|
]
|
|
2597
2597
|
});
|
|
2598
|
-
},
|
|
2599
|
-
const t =
|
|
2598
|
+
}, Ai = v.input((e) => {
|
|
2599
|
+
const t = ue(e.colorVariant);
|
|
2600
2600
|
return {
|
|
2601
2601
|
cursor: "text",
|
|
2602
2602
|
border: `var(--border-width)solid ${t}`,
|
|
@@ -2622,8 +2622,8 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2622
2622
|
isolation: "isolate"
|
|
2623
2623
|
}
|
|
2624
2624
|
};
|
|
2625
|
-
}),
|
|
2626
|
-
const r =
|
|
2625
|
+
}), _i = v.input((e) => {
|
|
2626
|
+
const r = ue(e.colorVariant);
|
|
2627
2627
|
return {
|
|
2628
2628
|
cursor: "pointer",
|
|
2629
2629
|
flex: "1",
|
|
@@ -2672,15 +2672,15 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2672
2672
|
transform: "translateY(-50%)"
|
|
2673
2673
|
}
|
|
2674
2674
|
};
|
|
2675
|
-
}),
|
|
2675
|
+
}), Ii = v.div`
|
|
2676
2676
|
width: clamp(3rem, 30rem, 100%);
|
|
2677
|
-
`,
|
|
2677
|
+
`, Ri = v(Ai)`
|
|
2678
2678
|
width: calc(var(--size-field) * 15);
|
|
2679
|
-
`,
|
|
2679
|
+
`, ki = v.div`
|
|
2680
2680
|
display: flex;
|
|
2681
2681
|
align-items: center;
|
|
2682
2682
|
gap: calc(var(--spacing) * 2);
|
|
2683
|
-
`,
|
|
2683
|
+
`, aa = (e) => {
|
|
2684
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);
|
|
@@ -2688,15 +2688,15 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2688
2688
|
};
|
|
2689
2689
|
return He(() => {
|
|
2690
2690
|
e.onChange(e.value || e.initialValue || 0);
|
|
2691
|
-
}, []), l.createElement(
|
|
2691
|
+
}, []), l.createElement(Ii, {
|
|
2692
2692
|
children: [
|
|
2693
2693
|
l.createElement(oe, {
|
|
2694
2694
|
children: e.label,
|
|
2695
2695
|
variant: "section"
|
|
2696
2696
|
}),
|
|
2697
|
-
l.createElement(
|
|
2697
|
+
l.createElement(ki, {
|
|
2698
2698
|
children: [
|
|
2699
|
-
l.createElement(
|
|
2699
|
+
l.createElement(_i, {
|
|
2700
2700
|
type: "range",
|
|
2701
2701
|
min: t,
|
|
2702
2702
|
max: r,
|
|
@@ -2704,7 +2704,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2704
2704
|
value: e.value,
|
|
2705
2705
|
onChange: n
|
|
2706
2706
|
}),
|
|
2707
|
-
l.createElement(
|
|
2707
|
+
l.createElement(Ri, {
|
|
2708
2708
|
type: "number",
|
|
2709
2709
|
value: ((a = e.value) == null ? void 0 : a.toString()) ?? "",
|
|
2710
2710
|
max: r,
|
|
@@ -2728,7 +2728,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2728
2728
|
medium: "1.5rem",
|
|
2729
2729
|
large: "2rem"
|
|
2730
2730
|
}, Di = v.input((e) => {
|
|
2731
|
-
const t = $i[e.icon ?? "star2"], r =
|
|
2731
|
+
const t = $i[e.icon ?? "star2"], r = ue(e.colorVariant);
|
|
2732
2732
|
return {
|
|
2733
2733
|
maskImage: `url(data:image/svg+xml,${t})`,
|
|
2734
2734
|
backgroundColor: r,
|
|
@@ -2753,7 +2753,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2753
2753
|
}), Li = v.div(() => ({
|
|
2754
2754
|
verticalAlign: "middle",
|
|
2755
2755
|
position: "relative"
|
|
2756
|
-
})),
|
|
2756
|
+
})), oa = ({ value: e, max: t, errors: r, label: n, onChange: a }) => l.createElement(Li, {
|
|
2757
2757
|
value: 1,
|
|
2758
2758
|
max: 5,
|
|
2759
2759
|
children: [
|
|
@@ -2779,7 +2779,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2779
2779
|
}), Mi = v.div`
|
|
2780
2780
|
width: 100%;
|
|
2781
2781
|
`, Fi = v.textarea((e) => {
|
|
2782
|
-
const t =
|
|
2782
|
+
const t = ue(e.colorVariant);
|
|
2783
2783
|
return {
|
|
2784
2784
|
border: "var(--border-width)solid #0000",
|
|
2785
2785
|
appearance: "none",
|
|
@@ -2803,7 +2803,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2803
2803
|
isolation: "isolate"
|
|
2804
2804
|
}
|
|
2805
2805
|
};
|
|
2806
|
-
}),
|
|
2806
|
+
}), ia = (e) => {
|
|
2807
2807
|
const t = (r) => e.onChange(r.target.value);
|
|
2808
2808
|
return l.createElement(Mi, {
|
|
2809
2809
|
children: [
|
|
@@ -2833,7 +2833,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2833
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
2835
|
return (a == null ? void 0 : a.value) ?? e.default;
|
|
2836
|
-
})(e.values),
|
|
2836
|
+
})(e.values), sa = (e) => {
|
|
2837
2837
|
const t = () => {
|
|
2838
2838
|
const r = (i) => e.setStateByKey(e.dataField, i), n = Bi(e.fieldProps.label, e.getStateByKey), a = {
|
|
2839
2839
|
formClientId: e.formClientId,
|
|
@@ -2868,21 +2868,21 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2868
2868
|
}
|
|
2869
2869
|
case "range-slide": {
|
|
2870
2870
|
const i = e.fieldProps;
|
|
2871
|
-
return l.createElement(
|
|
2871
|
+
return l.createElement(aa, {
|
|
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(oa, {
|
|
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(ia, {
|
|
2886
2886
|
...i,
|
|
2887
2887
|
...a
|
|
2888
2888
|
});
|
|
@@ -2902,8 +2902,8 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2902
2902
|
align-items: center;
|
|
2903
2903
|
justify-content: space-between;
|
|
2904
2904
|
margin-top: calc(var(--spacing) * 10);
|
|
2905
|
-
`,
|
|
2906
|
-
const t =
|
|
2905
|
+
`, la = (e) => {
|
|
2906
|
+
const t = ce(
|
|
2907
2907
|
() => Math.random().toString(36).substring(2, 10),
|
|
2908
2908
|
[]
|
|
2909
2909
|
), [r, n] = l.useState(null), a = (d) => {
|
|
@@ -2935,7 +2935,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
2935
2935
|
onSetMaxHeight: a,
|
|
2936
2936
|
isVisible: u === s.step,
|
|
2937
2937
|
children: d.fields.map(
|
|
2938
|
-
(p) => l.createElement(
|
|
2938
|
+
(p) => l.createElement(sa, {
|
|
2939
2939
|
type: p.type,
|
|
2940
2940
|
fieldProps: p,
|
|
2941
2941
|
dataField: p.dataField,
|
|
@@ -3064,8 +3064,8 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
3064
3064
|
&:active {
|
|
3065
3065
|
transform: rotate(-90deg) translateY(calc(100% - 18px));
|
|
3066
3066
|
}
|
|
3067
|
-
`,
|
|
3068
|
-
const [t, r] = l.useState(!1), [n, a] = l.useState(null), i =
|
|
3067
|
+
`, ca = (e) => {
|
|
3068
|
+
const [t, r] = l.useState(!1), [n, a] = l.useState(null), i = ce(
|
|
3069
3069
|
() => Math.random().toString(36).substring(2, 10),
|
|
3070
3070
|
[]
|
|
3071
3071
|
), s = (f) => {
|
|
@@ -3082,7 +3082,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (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(Sa, {
|
|
3086
3086
|
children: [
|
|
3087
3087
|
l.createElement(qi, {
|
|
3088
3088
|
children: e.popupForm.config.buttonText,
|
|
@@ -3122,7 +3122,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
3122
3122
|
onSetMaxHeight: s,
|
|
3123
3123
|
isVisible: p === u.step,
|
|
3124
3124
|
children: f.fields.map(
|
|
3125
|
-
(w) => l.createElement(
|
|
3125
|
+
(w) => l.createElement(sa, {
|
|
3126
3126
|
type: w.type,
|
|
3127
3127
|
fieldProps: w,
|
|
3128
3128
|
formClientId: i,
|
|
@@ -3157,27 +3157,27 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
3157
3157
|
// ),
|
|
3158
3158
|
]
|
|
3159
3159
|
});
|
|
3160
|
-
},
|
|
3160
|
+
}, ua = (e) => {
|
|
3161
3161
|
e.locale;
|
|
3162
|
-
let { data: t, loading: r, error: n } =
|
|
3163
|
-
() =>
|
|
3162
|
+
let { data: t, loading: r, error: n } = No(
|
|
3163
|
+
() => Oo({
|
|
3164
3164
|
formId: e.formId
|
|
3165
3165
|
})
|
|
3166
3166
|
);
|
|
3167
|
-
const a =
|
|
3167
|
+
const a = ce(() => t != null && t.inlineForm ? l.createElement(la, {
|
|
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 = ce(() => t != null && t.popupForm ? l.createElement(ca, {
|
|
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(se, {
|
|
3181
3181
|
theme: t.attributes.theme,
|
|
3182
3182
|
selectedVariant: t.attributes.variant,
|
|
3183
3183
|
children: [a, i]
|
|
@@ -3191,7 +3191,7 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
3191
3191
|
transitionDuration: ".2s",
|
|
3192
3192
|
transitionTimingFunction: "cubic-bezier(0,0,.2,1)"
|
|
3193
3193
|
})), Ki = v.select((e) => ({
|
|
3194
|
-
border: `var(--border-width)solid ${
|
|
3194
|
+
border: `var(--border-width)solid ${ue(e.colorVariant)}`,
|
|
3195
3195
|
backgroundColor: "var(--color-base-100)",
|
|
3196
3196
|
verticalAlign: "middle",
|
|
3197
3197
|
width: "clamp(3rem,30rem,100%)",
|
|
@@ -3256,52 +3256,57 @@ const ci = (e) => e == null, ut = (e) => !ci(e), ui = (e, t) => t ? t.required &
|
|
|
3256
3256
|
console.error("formId must be provided. Feedback module deactivated");
|
|
3257
3257
|
return;
|
|
3258
3258
|
}
|
|
3259
|
-
const t =
|
|
3259
|
+
const t = xa.createRoot(e.container || document);
|
|
3260
3260
|
typeof window < "u" && t.render(
|
|
3261
|
-
l.createElement(
|
|
3261
|
+
l.createElement(ua, {
|
|
3262
3262
|
formId: e.formId
|
|
3263
3263
|
})
|
|
3264
3264
|
);
|
|
3265
|
-
}, Zi = (e) => e ? e.formId ? typeof window > "u" ? null : l.createElement(
|
|
3265
|
+
}, Zi = (e) => e ? e.formId ? typeof window > "u" ? null : l.createElement(ua, {
|
|
3266
3266
|
formId: e.formId
|
|
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(
|
|
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(se, {
|
|
3268
3268
|
theme: e.formTheme,
|
|
3269
3269
|
selectedVariant: e.variant,
|
|
3270
|
-
children: [l.createElement(
|
|
3271
|
-
}), ns = (e) => l.createElement(
|
|
3270
|
+
children: [l.createElement(la, e)]
|
|
3271
|
+
}), ns = (e) => l.createElement(se, {
|
|
3272
3272
|
theme: e.formTheme,
|
|
3273
3273
|
selectedVariant: e.variant,
|
|
3274
|
-
children: [l.createElement(
|
|
3274
|
+
children: [l.createElement(ca, e)]
|
|
3275
3275
|
}), as = {
|
|
3276
|
-
Checkbox: (e) => l.createElement(
|
|
3276
|
+
Checkbox: (e) => l.createElement(se, {
|
|
3277
3277
|
theme: e.formTheme,
|
|
3278
3278
|
selectedVariant: e.formVariant,
|
|
3279
3279
|
children: [l.createElement(ta, e.cmpProps)]
|
|
3280
3280
|
}),
|
|
3281
|
-
QuestionMatrix: (e) => l.createElement(
|
|
3281
|
+
QuestionMatrix: (e) => l.createElement(se, {
|
|
3282
3282
|
theme: e.formTheme,
|
|
3283
3283
|
selectedVariant: e.formVariant,
|
|
3284
3284
|
children: [l.createElement(ra, e.cmpProps)]
|
|
3285
3285
|
}),
|
|
3286
|
-
Radio: (e) => l.createElement(
|
|
3286
|
+
Radio: (e) => l.createElement(se, {
|
|
3287
3287
|
theme: e.formTheme,
|
|
3288
3288
|
selectedVariant: e.formVariant,
|
|
3289
3289
|
children: [l.createElement(na, e.cmpProps)]
|
|
3290
3290
|
}),
|
|
3291
|
-
Rating: (e) => l.createElement(
|
|
3291
|
+
Rating: (e) => l.createElement(se, {
|
|
3292
3292
|
theme: e.formTheme,
|
|
3293
3293
|
selectedVariant: e.formVariant,
|
|
3294
|
-
children: [l.createElement(
|
|
3294
|
+
children: [l.createElement(oa, e.cmpProps)]
|
|
3295
3295
|
}),
|
|
3296
|
-
Select: (e) => l.createElement(
|
|
3296
|
+
Select: (e) => l.createElement(se, {
|
|
3297
3297
|
theme: e.formTheme,
|
|
3298
3298
|
selectedVariant: e.formVariant,
|
|
3299
3299
|
children: [l.createElement(Xi, e.cmpProps)]
|
|
3300
3300
|
}),
|
|
3301
|
-
Textarea: (e) => l.createElement(
|
|
3301
|
+
Textarea: (e) => l.createElement(se, {
|
|
3302
3302
|
theme: e.formTheme,
|
|
3303
3303
|
selectedVariant: e.formVariant,
|
|
3304
|
-
children: [l.createElement(
|
|
3304
|
+
children: [l.createElement(ia, e.cmpProps)]
|
|
3305
|
+
}),
|
|
3306
|
+
RangeSlide: (e) => l.createElement(se, {
|
|
3307
|
+
theme: e.formTheme,
|
|
3308
|
+
selectedVariant: e.formVariant,
|
|
3309
|
+
children: [l.createElement(aa, e.cmpProps)]
|
|
3305
3310
|
})
|
|
3306
3311
|
};
|
|
3307
3312
|
export {
|