@wix/form-elements 1.158.0 → 1.160.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/component/{appointment-rac-m5-FH9kU.js → appointment-rac-BmHu56e5.js} +63 -63
  2. package/dist/component/{bookings-address-rac-VtG7wH0l.js → bookings-address-rac-DY9l2g0h.js} +1 -1
  3. package/dist/component/{bookings-email-rac-C8T3aTQH.js → bookings-email-rac-B5vNSOsS.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-BlhIWWNj.js → bookings-first-name-rac-CJiefCNz.js} +1 -1
  5. package/dist/component/{bookings-header-rac-adwR7PKJ.js → bookings-header-rac-BFu7Ko5w.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-z5z1GJQL.js → bookings-last-name-rac-DegMM13h.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DMgVxy8J.js → bookings-login-bar-rac-DrA-5tBH.js} +7 -7
  8. package/dist/component/{bookings-phone-rac-DS7ffO6T.js → bookings-phone-rac-DsaeqxCI.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BNWI0o60.js → bookings-rich-text-rac-jRHiwqi8.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CUKZ9NHF.js → checkbox-field-rac-CyoBb6Yf.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-Didam2ZD.js → checkbox-group-field-headless-Bv1gU3oL.js} +54 -54
  12. package/dist/component/{checkbox-group-field-rac-C3WCeVA8.js → checkbox-group-field-rac-DasArcdV.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-Bkq-wm7_.js → checkbox-group-rac-CzmufV1U.js} +1 -1
  14. package/dist/component/{checkbox-rac-66ga9Lph.js → checkbox-rac-6C7XoUoZ.js} +1 -1
  15. package/dist/component/{contacts-address-rac-DSOk97te.js → contacts-address-rac-BZobbFtz.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-1qguKm9O.js → contacts-birthdate-rac-DIzf41DS.js} +1 -1
  17. package/dist/component/{contacts-company-rac-Chefzmw3.js → contacts-company-rac-BiBDO28r.js} +1 -1
  18. package/dist/component/{contacts-email-rac-DG6eAnz2.js → contacts-email-rac-5mqokCSD.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-tSGE0w5w.js → contacts-first-name-rac-BXe3_Nz5.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BjZWfbM5.js → contacts-last-name-rac-Cfqgh7u1.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-jfGNKLoZ.js → contacts-phone-rac-cmLUWnAc.js} +1 -1
  22. package/dist/component/{contacts-position-rac-kv8I-m_Q.js → contacts-position-rac-DTyvklfN.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-BkUG0AMs.js → contacts-subscribe-rac-D-ZEX1A3.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BtFrK_Ci.js → contacts-tax-id-rac-B4NYJwWt.js} +1 -1
  25. package/dist/component/{date-availability-_A9DS6za.js → date-availability-Dach9aRC.js} +1 -1
  26. package/dist/component/date-input-field-rac-B72mHcya.js +309 -0
  27. package/dist/component/{date-input-rac-CpseQkV4.js → date-input-rac-CYix11gT.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-B4gjhxG6.js → date-picker-field-rac-B8pvtPir.js} +86 -86
  29. package/dist/component/{date-picker-rac-DDJfUDCM.js → date-picker-rac-D6cR0zH9.js} +1 -1
  30. package/dist/component/date-time-input-field-rac-B7Y3Yf5l.js +441 -0
  31. package/dist/component/{date-time-input-rac-BkvcyU3H.js → date-time-input-rac-DMN-noQX.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-UWDhIjU-.js → dext-checkbox-group-rac-Kq0GnteP.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-q9UJnqsC.js → dext-checkbox-rac-BY9GZ4n1.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-C164FDSF.js → dext-date-picker-rac-CXArIddp.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BvbnfRYU.js → dext-date-time-input-rac-B39TtxGq.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-z0xU1mRO.js → dext-dropdown-rac-C3y0G8cS.js} +1 -1
  37. package/dist/component/{dext-email-rac-BkiWpfNw.js → dext-email-rac-BIg3cq7Q.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DeQWO-RK.js → dext-number-input-rac-27sHJ7yN.js} +1 -1
  39. package/dist/component/{dext-phone-rac-CGlVpadW.js → dext-phone-rac-CcohoFQp.js} +1 -1
  40. package/dist/component/dext-radio-group-rac-eead3Gve.js +18 -0
  41. package/dist/component/{dext-rating-input-rac-ibIctxU_.js → dext-rating-input-rac-B_E6OcBr.js} +1 -1
  42. package/dist/component/{dext-tags-rac-snCgM6u0.js → dext-tags-rac-Yd9aAtnF.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-BHVs8ixR.js → dext-text-area-rac-CMACri2C.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-DGI747Od.js → dext-text-input-rac-sNjSCfQ-.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-CpO2VDPE.js → dext-url-input-rac-DwhbzJty.js} +1 -1
  46. package/dist/component/{donation-rac-Ck6HkRcW.js → donation-rac-BVAN3kMk.js} +90 -90
  47. package/dist/component/{dropdown-field-rac-e5MjWn5B.js → dropdown-field-rac-DdoGigWx.js} +14 -14
  48. package/dist/component/{dropdown-rac-B2jprC8G.js → dropdown-rac-CRkt5w47.js} +1 -1
  49. package/dist/component/{ecom-address-rac-D0stOqRv.js → ecom-address-rac-C36hFHW0.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-BRzaQKx3.js → ecom-subscription-checkbox-rac-BKfQ348w.js} +2 -2
  51. package/dist/component/{email-input-field-rac-0UIjNipg.js → email-input-field-rac-MOaISYxa.js} +59 -59
  52. package/dist/component/{events-repeater-rac-BBQZzP7U.js → events-repeater-rac-D6p-NgE8.js} +20 -20
  53. package/dist/component/{events-rsvp-rac-Ck7BXGKy.js → events-rsvp-rac-DVpgN8gm.js} +18 -18
  54. package/dist/component/{field-error-headless-vApyo-y9.js → field-error-headless-XNWmDH3E.js} +4 -4
  55. package/dist/component/{field-label-headless-C8-ShLxy.js → field-label-headless-CORRAJGt.js} +4 -4
  56. package/dist/component/{file-upload-rac-BzWJOM6C.js → file-upload-rac-DRMr7E4b.js} +89 -89
  57. package/dist/component/{fixed-payment-rac-C4_xI103.js → fixed-payment-rac-BUXzNex9.js} +18 -18
  58. package/dist/component/{form-D7ulDPh1.js → form-DSpx-AO8.js} +785 -728
  59. package/dist/component/form.css +1 -1
  60. package/dist/component/form.js +1 -1
  61. package/dist/component/{header-field-rac-BnBbhsOZ.js → header-field-rac-CiDXlNsa.js} +6 -6
  62. package/dist/component/{header-rac-CEWayr6b.js → header-rac-B5Rg-h8u.js} +1 -1
  63. package/dist/component/{image-choice-rac-DTZrz6oP.js → image-choice-rac-CtoA_KDp.js} +44 -44
  64. package/dist/component/{index-CKtw7kvn.js → index-Bz7ZhQsF.js} +53 -53
  65. package/dist/component/{index-DBbgIHYT.js → index-CwruESwc.js} +5 -5
  66. package/dist/component/{isObjectLike-BHfPE26c.js → isObjectLike-C5dHxHP0.js} +11 -11
  67. package/dist/component/multiline-address-field-rac-Z-qF366L.js +1664 -0
  68. package/dist/component/{multiline-address-rac-YQj_QROS.js → multiline-address-rac-CJIHTMw5.js} +1 -1
  69. package/dist/component/{number-input-field-rac-A7xM2c6F.js → number-input-field-rac-D4vf6I6N.js} +29 -29
  70. package/dist/component/{number-input-rac-DeDatLY5.js → number-input-rac-B2jW6JUQ.js} +1 -1
  71. package/dist/component/{password-rac-7Si7JHee.js → password-rac-DGRZ17Jl.js} +29 -29
  72. package/dist/component/{payment-input-rac-D4JKZl-5.js → payment-input-rac-BtD-tAKv.js} +27 -27
  73. package/dist/component/phone-input-field-rac-KD4-APhr.js +512 -0
  74. package/dist/component/{phone-rac-Y2mWnseb.js → phone-rac-Cw2yccgg.js} +1 -1
  75. package/dist/component/{product-list-rac-CYUcNqf3.js → product-list-rac-XbzTDdbp.js} +33 -33
  76. package/dist/component/{quiz-radio-group-rac-f3O7fksW.js → quiz-radio-group-rac-BDw_mAw5.js} +1 -1
  77. package/dist/component/{radio-button-module-classes-BgVUqcvD.js → radio-button-module-classes-CFGf0Hzh.js} +23 -23
  78. package/dist/component/{radio-group-field-rac-DrOiyk5C.js → radio-group-field-rac-CXN7tyVu.js} +6 -6
  79. package/dist/component/{radio-group-rac-Btt_bz_K.js → radio-group-rac-COHzqjBh.js} +1 -1
  80. package/dist/component/{rating-input-field-rac-CwN7wyaw.js → rating-input-field-rac-DCXNZgf1.js} +37 -37
  81. package/dist/component/{rating-input-rac-sTy0SV3L.js → rating-input-rac-DwQt9ML7.js} +1 -1
  82. package/dist/component/{rich-content-rac.module-C11w9mXa.js → rich-content-rac.module-B7rPwNns.js} +8 -8
  83. package/dist/component/{rich-text-field-rac-kGwuDtNs.js → rich-text-field-rac-DlER7NRD.js} +4 -4
  84. package/dist/component/{rich-text-rac-T4ic2hrA.js → rich-text-rac-CjicsHA7.js} +1 -1
  85. package/dist/component/service-dropdown-rac-B81LC_6_.js +145 -0
  86. package/dist/component/{services-multi-choice-rac-CLQ4dLxO.js → services-multi-choice-rac-BR6gZeHk.js} +16 -16
  87. package/dist/component/{signature-rac-DLiFeCNL.js → signature-rac-XFj7Ddtp.js} +69 -69
  88. package/dist/component/{submit-button-rac-CccO80E1.js → submit-button-rac-Bz7zs_3W.js} +12 -12
  89. package/dist/component/{tags-field-rac-DaghCGJU.js → tags-field-rac-DWWkNKqc.js} +79 -79
  90. package/dist/component/{tags-rac-3ly5shW2.js → tags-rac-BXyiQ9i1.js} +1 -1
  91. package/dist/component/{text-area-field-rac-2-TYC5Lb.js → text-area-field-rac-DsIRYi0d.js} +21 -21
  92. package/dist/component/{text-area-rac-Bx0pgw80.js → text-area-rac-CF9pDP9d.js} +1 -1
  93. package/dist/component/{text-input-field-rac-Dyur2Wby.js → text-input-field-rac-BwIDZACz.js} +5 -5
  94. package/dist/component/{text-input-headless-DZ-Pjpm4.js → text-input-headless-5kQs2_Xu.js} +14 -14
  95. package/dist/component/{text-input-rac-BuBtJDX_.js → text-input-rac-CRmSuw1k.js} +1 -1
  96. package/dist/component/{time-input-rac-AlDEpfXZ.js → time-input-rac-BRMNpe51.js} +20 -20
  97. package/dist/component/{url-input-field-rac-BzP4-8yP.js → url-input-field-rac-CKLS3QDk.js} +17 -17
  98. package/dist/component/{url-input-rac-DaBXuedf.js → url-input-rac-Dv-kp50D.js} +1 -1
  99. package/dist/component/use-dropdown-option-class-name-BQi_qE_-.js +116 -0
  100. package/dist/component/use-dropdown-trigger-class-name-bAK8aHiG.js +96 -0
  101. package/dist/component/{use-element-state-class-name-DY0UyIQg.js → use-element-state-class-name-rXM_lHug.js} +1 -1
  102. package/dist/component/{use-hoverable-input-class-name-C_Wh4Qfc.js → use-hoverable-input-class-name-BnV_uerV.js} +2 -2
  103. package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +53 -0
  104. package/dist/component/{use-service-options-base-DgSaAuGy.js → use-service-options-base-CLeE9-Tx.js} +10 -10
  105. package/dist/component/use-text-input-class-name-DIKWvfkm.js +6 -0
  106. package/dist/form.d.ts +8 -0
  107. package/package.json +2 -2
  108. package/dist/component/date-input-field-rac-QZUxFX5e.js +0 -303
  109. package/dist/component/date-time-input-field-rac-DcwKQKHf.js +0 -433
  110. package/dist/component/dext-radio-group-rac-D8hMWNIQ.js +0 -18
  111. package/dist/component/dropdown-field-headless-Bv6LrkeA.js +0 -93
  112. package/dist/component/multiline-address-field-rac-jhcWn4wT.js +0 -1659
  113. package/dist/component/phone-input-field-rac-GxcQ_Pyl.js +0 -508
  114. package/dist/component/service-dropdown-rac-BfliE4hs.js +0 -145
  115. package/dist/component/use-dropdown-trigger-class-name-BKOFwNvc.js +0 -117
  116. package/dist/component/use-is-forced-open-dropdown-Bw_IFUKt.js +0 -48
  117. package/dist/component/use-text-input-class-name-DFMQAg_E.js +0 -6
@@ -0,0 +1,145 @@
1
+ import o, { useRef as b, useMemo as _, useCallback as C, useEffect as T } from "react";
2
+ import { RicosViewer as w } from "@wix/ricos/viewer";
3
+ import E from "classnames";
4
+ import { bv as P, bJ as A, F as M, bz as y, br as V, aB as x, V as B, ab as H, I as U, L as W, z as k } from "./form-DSpx-AO8.js";
5
+ import { u as q } from "./use-service-options-base-CLeE9-Tx.js";
6
+ import { D as u, u as z } from "./use-dropdown-trigger-class-name-bAK8aHiG.js";
7
+ import { C as J } from "./chevron-down-icon-CcpVm6B-.js";
8
+ import { E as Q } from "./error-icon-hZxQ6DEy.js";
9
+ import { H as Y } from "./custom-focus-class-_483Pkwp.js";
10
+ import { s as i } from "./field-rac.module-DP0lkkEv.js";
11
+ import { u as j } from "./use-dropdown-option-class-name-BQi_qE_-.js";
12
+ const G = "00000000-0000-0000-0000-000000000000", K = (e) => {
13
+ const { actions: t } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a = b(!0), d = _(() => {
14
+ var s;
15
+ return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
16
+ }, [
17
+ e.options
18
+ ]), O = C((s) => n ? [
19
+ ...s,
20
+ {
21
+ value: c,
22
+ label: c,
23
+ id: G
24
+ }
25
+ ] : s, [
26
+ n,
27
+ c
28
+ ]), { isLoading: f, options: l, isEmpty: h, shouldRender: I, setIsLoading: S, setOptions: L, setIsEmpty: g, processOptions: R } = q({
29
+ fieldType: M.SERVICES_DROPDOWN,
30
+ isEditor: e.isEditor,
31
+ postProcessOptions: O
32
+ }), F = C(async () => {
33
+ if (a.current && (t != null && t.fetchServices) && d.length > 0) {
34
+ a.current = !1, S(!0);
35
+ let s;
36
+ try {
37
+ s = await t.fetchServices({
38
+ serviceIds: d
39
+ });
40
+ } catch (m) {
41
+ console.error(m);
42
+ }
43
+ if (s) {
44
+ const m = R(s);
45
+ g(!n && m.length === 0), L(m);
46
+ } else
47
+ a.current = !0;
48
+ S(!1);
49
+ }
50
+ }, [
51
+ t,
52
+ d,
53
+ R,
54
+ n,
55
+ S,
56
+ L,
57
+ g
58
+ ]);
59
+ T(() => {
60
+ if (!e.isEditor && l.length > 0) {
61
+ const s = n ? l.length - 1 : l.length;
62
+ g(s === 0);
63
+ }
64
+ }, [
65
+ l,
66
+ n,
67
+ g,
68
+ e.isEditor
69
+ ]);
70
+ const v = C(() => {
71
+ e.onFocus && e.onFocus(), a.current && F();
72
+ }, [
73
+ F,
74
+ e.onFocus
75
+ ]), N = C(
76
+ (s) => {
77
+ e.onChange && e.onChange(s), a.current = !0;
78
+ },
79
+ // eslint-disable-next-line react-hooks/exhaustive-deps
80
+ [
81
+ e.onChange
82
+ ]
83
+ );
84
+ return {
85
+ isLoading: f,
86
+ options: l,
87
+ isEmpty: h,
88
+ onFocus: v,
89
+ onChange: N,
90
+ shouldRender: I
91
+ };
92
+ }, r = ({ children: e }) => {
93
+ const t = y(), { addOther: D } = t, n = V(), p = t.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: d, onFocus: O, onChange: f, shouldRender: l } = K({
94
+ ...t,
95
+ isEditor: p
96
+ }), h = _(() => ({
97
+ ...t,
98
+ options: c ? [] : a,
99
+ isLoading: c,
100
+ onFocus: O,
101
+ onChange: f
102
+ }), [
103
+ t,
104
+ a,
105
+ c,
106
+ O,
107
+ f
108
+ ]);
109
+ return !p && d && !D || !l ? null : /* @__PURE__ */ o.createElement(x.Provider, {
110
+ value: {
111
+ v2: h
112
+ }
113
+ }, /* @__PURE__ */ o.createElement(u, null, e));
114
+ };
115
+ r.Label = u.Label;
116
+ r.Trigger = u.Trigger;
117
+ r.Options = u.Options;
118
+ r.Description = u.Description;
119
+ r.Error = u.Error;
120
+ const X = ({ content: e, locale: t }) => /* @__PURE__ */ o.createElement(w, {
121
+ content: e,
122
+ locale: t
123
+ }), Z = () => {
124
+ const e = z(i.dropdownTrigger), t = j(Y);
125
+ return /* @__PURE__ */ o.createElement(r, null, /* @__PURE__ */ o.createElement(r.Label, {
126
+ className: E(B, i.label)
127
+ }, /* @__PURE__ */ o.createElement(r.Label.Required, {
128
+ className: E(H, i.requiredMark)
129
+ })), /* @__PURE__ */ o.createElement(r.Trigger, {
130
+ className: e
131
+ }, /* @__PURE__ */ o.createElement(J, {
132
+ className: i.dropdownIcon
133
+ })), /* @__PURE__ */ o.createElement(r.Options, {
134
+ className: E(U, i.selectPopover, i.dropdownPopover)
135
+ }, /* @__PURE__ */ o.createElement(r.Options.Option, {
136
+ className: t
137
+ })), /* @__PURE__ */ o.createElement(r.Error, {
138
+ className: E(W, i.error)
139
+ }, /* @__PURE__ */ o.createElement(Q, null), /* @__PURE__ */ o.createElement(r.Error.Text, null)), /* @__PURE__ */ o.createElement(r.Description, {
140
+ className: E(k, i.description)
141
+ }, X));
142
+ }, me = () => /* @__PURE__ */ o.createElement(Z, null);
143
+ export {
144
+ me as ServiceDropdownRAC
145
+ };
@@ -1,22 +1,22 @@
1
- import e, { useEffect as I, useMemo as L } from "react";
2
- import { RicosViewer as R } from "@wix/ricos/viewer";
1
+ import e, { useEffect as L, useMemo as I } from "react";
2
+ import { RicosViewer as S } from "@wix/ricos/viewer";
3
3
  import a from "classnames";
4
- import { F as S, bo as d, aq as D, R as F, a0 as N, o as f, q as h, H as b, v as M, p as A } from "./form-D7ulDPh1.js";
5
- import { u as v } from "./use-service-options-base-DgSaAuGy.js";
6
- import { C as i } from "./checkbox-group-field-headless-Didam2ZD.js";
4
+ import { F as R, bz as d, aB as D, V as F, ab as N, o as f, q as b, L as h, z as M, p as A } from "./form-DSpx-AO8.js";
5
+ import { u as v } from "./use-service-options-base-CLeE9-Tx.js";
6
+ import { C as i } from "./checkbox-group-field-headless-Bv1gU3oL.js";
7
7
  import { E as x } from "./error-icon-hZxQ6DEy.js";
8
8
  import { C as P } from "./checkbox-indicator-module-classes-akWZsZNn.js";
9
9
  import { s as n } from "./field-rac.module-DP0lkkEv.js";
10
10
  import { o as _ } from "./options-rac.module-_THNq6Qq.js";
11
- import { u as T } from "./use-element-state-class-name-DY0UyIQg.js";
12
- import { u as k } from "./use-text-input-class-name-DFMQAg_E.js";
13
- const y = (s) => {
11
+ import { u as T } from "./use-element-state-class-name-rXM_lHug.js";
12
+ import { u as B } from "./use-text-input-class-name-DIKWvfkm.js";
13
+ const k = (s) => {
14
14
  var C;
15
15
  const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: p } = v({
16
- fieldType: S.SERVICES_MULTI_CHOICE,
16
+ fieldType: R.SERVICES_MULTI_CHOICE,
17
17
  isEditor: s.isEditor
18
18
  }), u = (C = s.options) == null ? void 0 : C.every((O) => O.label && O.id);
19
- return I(() => {
19
+ return L(() => {
20
20
  if (u && s.options) {
21
21
  c(s.options), m(s.options.length === 0), p(!0);
22
22
  return;
@@ -34,7 +34,7 @@ const y = (s) => {
34
34
  shouldRender: E
35
35
  };
36
36
  }, t = ({ children: s, className: o }) => {
37
- const r = d(), { options: l, isEmpty: E, shouldRender: c } = y(r), m = L(() => ({
37
+ const r = d(), { options: l, isEmpty: E, shouldRender: c } = k(r), m = I(() => ({
38
38
  ...r,
39
39
  options: l
40
40
  }), [
@@ -53,14 +53,14 @@ t.Label = i.Label;
53
53
  t.Options = i.Options;
54
54
  t.Description = i.Description;
55
55
  t.Error = i.Error;
56
- const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(R, {
56
+ const y = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
57
57
  content: s,
58
58
  locale: o
59
59
  }), H = () => {
60
60
  const s = T({
61
61
  globalClasses: A,
62
62
  moduleClasses: P
63
- }), o = k();
63
+ }), o = B();
64
64
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
65
65
  className: a(F, n.label)
66
66
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
@@ -72,14 +72,14 @@ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(R, {
72
72
  }, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
73
73
  className: s
74
74
  }), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
75
- className: a(h, _.optionLabel)
75
+ className: a(b, _.optionLabel)
76
76
  })), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
77
77
  inputClassName: o
78
78
  }))), /* @__PURE__ */ e.createElement(t.Error, {
79
- className: a(b, n.error)
79
+ className: a(h, n.error)
80
80
  }, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
81
81
  className: a(M, n.description)
82
- }, B));
82
+ }, y));
83
83
  }, J = () => /* @__PURE__ */ e.createElement(H, null);
84
84
  export {
85
85
  J as ServicesMultiChoiceRAC
@@ -2,17 +2,17 @@ import r, { useRef as V, useContext as Ne, useMemo as be, useCallback as _, useS
2
2
  import we from "@wix/editor-react-components/AnimatedIcon";
3
3
  import { RicosViewer as xe } from "@wix/ricos/viewer";
4
4
  import F from "classnames";
5
- import { aS as Ue, bi as Te, au as Be, F as Oe, bk as Pe, bg as Me, bw as Ce, E as me, ak as oe, bo as x, bl as W, bq as Ie, by as He, bh as We, R as Ye, a0 as qe, a1 as ke, v as pe, b as Ze, a7 as Ge, a8 as fe, H as Ve, a2 as $e, a5 as ze, a3 as Xe, a6 as je, f as ne, a4 as Je } from "./form-D7ulDPh1.js";
5
+ import { b1 as Ue, bt as Te, aF as Be, F as Oe, bv as Pe, br as Me, bH as Ce, E as me, av as oe, bz as x, bw as W, bB as Ie, bJ as He, bs as We, V as Ye, ab as qe, ac as Ze, z as pe, b as ke, ai as Ge, aj as fe, L as Ve, ad as $e, ag as ze, ae as Xe, ah as je, f as ne, af as Je } from "./form-DSpx-AO8.js";
6
6
  import { useHover as Ke, useFocusRing as Qe, mergeProps as et } from "react-aria";
7
7
  import { RadioGroup as tt, Button as ye, TextField as nt, DropZone as at, Input as ot, FileTrigger as st, RadioField as rt, RadioButton as lt } from "react-aria-components";
8
8
  import _e from "signature_pad";
9
9
  import { f as I, a as N } from "./find-child-C60k4CxG.js";
10
- import { D as it, E as ct } from "./field-error-headless-vApyo-y9.js";
11
- import { L as ut } from "./field-label-headless-C8-ShLxy.js";
10
+ import { D as it, E as ct } from "./field-error-headless-XNWmDH3E.js";
11
+ import { L as ut } from "./field-label-headless-CORRAJGt.js";
12
12
  import { D as dt } from "./data-hooks-Dkw1pbRj.js";
13
13
  import { E as mt } from "./error-icon-hZxQ6DEy.js";
14
14
  import { s as ae } from "./field-rac.module-DP0lkkEv.js";
15
- import { u as z } from "./use-element-state-class-name-DY0UyIQg.js";
15
+ import { u as z } from "./use-element-state-class-name-rXM_lHug.js";
16
16
  const pt = typeof r.useId == "function" ? r.useId : () => V(Ue()).current, ft = ({ properties: e }) => e.uploadEnabled === !0, ht = (e, t) => e.fieldType === Oe.SIGNATURE && !e.properties.hidden && !e.properties.disabled && !e.properties.readOnly && (t !== "upload" || ft(e)), Et = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, gt = (e) => {
17
17
  var o;
18
18
  const t = (o = Te().signature) == null ? void 0 : o.signatureMode, a = Ne(Be);
@@ -24,11 +24,11 @@ const pt = typeof r.useId == "function" ? r.useId : () => V(Ue()).current, ft =
24
24
  t
25
25
  ]) === e ? t : void 0;
26
26
  };
27
- var R = /* @__PURE__ */ (function(e) {
27
+ var A = /* @__PURE__ */ (function(e) {
28
28
  return e.TEXT = "text/plain", e.POINTS = "points/json", e;
29
29
  })({}), C = /* @__PURE__ */ (function(e) {
30
30
  return e.DRAW = "draw", e.TYPE = "type", e.UPLOAD = "upload", e;
31
- })({}), S = /* @__PURE__ */ (function(e) {
31
+ })({}), R = /* @__PURE__ */ (function(e) {
32
32
  return e.DRAW = "draw", e.TYPE = "type", e.IMAGE = "image", e.UPLOAD = "upload", e;
33
33
  })({});
34
34
  const bt = (e) => {
@@ -112,12 +112,12 @@ function Ee(e, t) {
112
112
  const a = e.getContext("2d"), n = e.offsetWidth, o = e.offsetHeight, s = Math.max(window.devicePixelRatio || 1, 1), l = n * s, i = o * s;
113
113
  return (e.width !== l || e.height !== i) && a ? (e.width = l, e.height = i, a.scale(s, s), t == null || t.redraw(), !0) : !1;
114
114
  }
115
- const G = 480, yt = (e) => Ae({
115
+ const G = 480, yt = (e) => Se({
116
116
  data: JSON.stringify(e),
117
- mimeType: R.POINTS
117
+ mimeType: A.POINTS
118
118
  }), ve = (e) => {
119
119
  const t = Y(e);
120
- if ((t == null ? void 0 : t.mimeType) === R.POINTS)
120
+ if ((t == null ? void 0 : t.mimeType) === A.POINTS)
121
121
  try {
122
122
  return JSON.parse(t.data);
123
123
  } catch {
@@ -125,7 +125,7 @@ const G = 480, yt = (e) => Ae({
125
125
  }
126
126
  return null;
127
127
  }, ge = 0.8, De = "Madefor";
128
- function Re(e, t) {
128
+ function Ae(e, t) {
129
129
  const { width: a, actualBoundingBoxAscent: n, actualBoundingBoxDescent: o } = t.measureText(e);
130
130
  return {
131
131
  width: a,
@@ -136,25 +136,25 @@ function Re(e, t) {
136
136
  function _t(e, t) {
137
137
  const a = t.getContext("2d"), n = t.offsetWidth || t.width, s = (t.offsetHeight || t.height) * ge, l = n * ge;
138
138
  a.font = `${s}px ${De}`;
139
- const { width: i, height: c } = Re(e, a), u = s / (i / l), d = s / (c / s);
139
+ const { width: i, height: c } = Ae(e, a), u = s / (i / l), d = s / (c / s);
140
140
  return Math.min(u, d);
141
141
  }
142
142
  function vt(e, t, a = "black", n = !1, o) {
143
143
  const s = e.getContext("2d"), l = _t(t, e);
144
144
  s.font = `${l}px ${De}`, s.textBaseline = "top";
145
- const i = e.offsetWidth || e.width, c = e.offsetHeight || e.height, { width: u, height: d, offsetY: f } = Re(t, s);
145
+ const i = e.offsetWidth || e.width, c = e.offsetHeight || e.height, { width: u, height: d, offsetY: f } = Ae(t, s);
146
146
  s.fillStyle = o, s.fillRect(0, 0, i, c), s.fillStyle = a;
147
147
  const m = (i - u) / 2;
148
148
  s.fillText(t, n ? i - m : m, (c - d) / 2 + f);
149
149
  }
150
- const Se = /^data:([^;,]+)(?:;([^,]+))?,(.+)$/;
150
+ const Re = /^data:([^;,]+)(?:;([^,]+))?,(.+)$/;
151
151
  function Dt(e) {
152
- return Se.test(e);
152
+ return Re.test(e);
153
153
  }
154
154
  function Y(e) {
155
155
  if (!e)
156
156
  return;
157
- const t = e.match(Se);
157
+ const t = e.match(Re);
158
158
  if (!t)
159
159
  return;
160
160
  const [, a, n, o] = t;
@@ -164,11 +164,11 @@ function Y(e) {
164
164
  encoding: n
165
165
  };
166
166
  }
167
- function Ae({ data: e, mimeType: t, encoding: a = "text" }) {
167
+ function Se({ data: e, mimeType: t, encoding: a = "text" }) {
168
168
  const n = a === "base64" ? btoa(e) : encodeURI(e);
169
169
  return `data:${a === "base64" ? `${t};base64` : t},${n}`;
170
170
  }
171
- function Rt(e, t) {
171
+ function At(e, t) {
172
172
  const a = Y(e);
173
173
  if (!a)
174
174
  return;
@@ -192,18 +192,18 @@ function ie(e, t = "temp") {
192
192
  fileType: (a == null ? void 0 : a.mimeType) ?? ""
193
193
  };
194
194
  }
195
- async function St(e, t) {
195
+ async function Rt(e, t) {
196
196
  const a = Y(e);
197
197
  if (!a)
198
198
  return e;
199
199
  const n = a.mimeType;
200
- if (n === R.TEXT) {
200
+ if (n === A.TEXT) {
201
201
  const o = j(G * 20, G, 1);
202
202
  vt(o, a.data, "black", t, "white");
203
203
  const s = re(o, "white");
204
204
  return (s == null ? void 0 : s.toDataURL("image/jpeg", 0.7)) ?? null;
205
205
  }
206
- if (n === R.POINTS) {
206
+ if (n === A.POINTS) {
207
207
  const o = ve(e);
208
208
  if (!o)
209
209
  return null;
@@ -221,10 +221,10 @@ async function St(e, t) {
221
221
  }
222
222
  return e;
223
223
  }
224
- async function At(e, t) {
225
- const a = await St(e, t);
224
+ async function St(e, t) {
225
+ const a = await Rt(e, t);
226
226
  if (a)
227
- return Rt(a, "signature");
227
+ return At(a, "signature");
228
228
  }
229
229
  const Nt = ({ value: e, onChange: t, target: a }) => {
230
230
  const [n, o] = X(e), { isRTL: s } = Me(), l = bt(a), { setFormStatus: i } = Ce(), c = V();
@@ -239,7 +239,7 @@ const Nt = ({ value: e, onChange: t, target: a }) => {
239
239
  try {
240
240
  const p = (g == null ? void 0 : g.url) ?? "";
241
241
  if (Dt(p)) {
242
- const E = await At(p, s);
242
+ const E = await St(p, s);
243
243
  if (E) {
244
244
  const h = await l(E);
245
245
  t([
@@ -286,9 +286,9 @@ const Nt = ({ value: e, onChange: t, target: a }) => {
286
286
  if (s == null)
287
287
  return C.DRAW;
288
288
  switch (l == null ? void 0 : l.mimeType) {
289
- case R.POINTS:
289
+ case A.POINTS:
290
290
  return C.DRAW;
291
- case R.TEXT:
291
+ case A.TEXT:
292
292
  return C.TYPE;
293
293
  default:
294
294
  return C.UPLOAD;
@@ -309,13 +309,13 @@ const Nt = ({ value: e, onChange: t, target: a }) => {
309
309
  ]), m = s != null, L = xt(i, s, l), g = (() => {
310
310
  switch (i) {
311
311
  case C.DRAW:
312
- return S.DRAW;
312
+ return R.DRAW;
313
313
  case C.TYPE:
314
- return S.TYPE;
314
+ return R.TYPE;
315
315
  case C.UPLOAD:
316
- return L != null ? S.IMAGE : S.UPLOAD;
316
+ return L != null ? R.IMAGE : R.UPLOAD;
317
317
  default:
318
- return S.DRAW;
318
+ return R.DRAW;
319
319
  }
320
320
  })();
321
321
  return {
@@ -331,16 +331,16 @@ const Nt = ({ value: e, onChange: t, target: a }) => {
331
331
  handleClear: f
332
332
  };
333
333
  }, wt = {
334
- [C.DRAW]: (e) => (e == null ? void 0 : e.mimeType) === R.POINTS,
335
- [C.TYPE]: (e) => (e == null ? void 0 : e.mimeType) === R.TEXT,
336
- [C.UPLOAD]: (e) => (e == null ? void 0 : e.mimeType) !== R.POINTS && (e == null ? void 0 : e.mimeType) !== R.TEXT
334
+ [C.DRAW]: (e) => (e == null ? void 0 : e.mimeType) === A.POINTS,
335
+ [C.TYPE]: (e) => (e == null ? void 0 : e.mimeType) === A.TEXT,
336
+ [C.UPLOAD]: (e) => (e == null ? void 0 : e.mimeType) !== A.POINTS && (e == null ? void 0 : e.mimeType) !== A.TEXT
337
337
  };
338
338
  function xt(e, t, a) {
339
339
  return t && wt[e](a) ? t : void 0;
340
340
  }
341
341
  const Ut = (e) => {
342
342
  const t = e.url ? Y(e.url) : void 0;
343
- return t ? t.mimeType !== R.POINTS && t.mimeType !== R.TEXT : !0;
343
+ return t ? t.mimeType !== A.POINTS && t.mimeType !== A.TEXT : !0;
344
344
  }, ce = () => {
345
345
  const { hoverProps: e, isHovered: t } = Ke({}), { focusProps: a, isFocused: n, isFocusVisible: o } = Qe({
346
346
  within: !0
@@ -360,15 +360,15 @@ const Ut = (e) => {
360
360
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, l, s)
361
361
  });
362
362
  }, Bt = {
363
- [C.DRAW]: S.DRAW,
364
- [C.TYPE]: S.TYPE,
365
- [C.UPLOAD]: S.UPLOAD
363
+ [C.DRAW]: R.DRAW,
364
+ [C.TYPE]: R.TYPE,
365
+ [C.UPLOAD]: R.UPLOAD
366
366
  }, J = ({ children: e, className: t }) => {
367
367
  const { id: a, value: n, onChange: o, target: s, readOnly: l } = x(), i = gt(a), { signatureMode: c, setSignatureMode: u, handleClear: d, clearable: f, signatureView: m, signatureValueForView: L, handleChange: g, handleBeforeChange: p } = Ft({
368
368
  target: s,
369
369
  value: n,
370
370
  onChange: o
371
- }), E = I(e, J.Header), h = I(e, J.Value), A = {
371
+ }), E = I(e, J.Header), h = I(e, J.Value), S = {
372
372
  signatureMode: i ?? c,
373
373
  setSignatureMode: u,
374
374
  handleClear: d,
@@ -381,7 +381,7 @@ const Ut = (e) => {
381
381
  return /* @__PURE__ */ r.createElement("div", {
382
382
  className: t,
383
383
  "data-hook": "signature-container"
384
- }, !l && N(E, A), N(h, A));
384
+ }, !l && N(E, S), N(h, S));
385
385
  }, K = ({ children: e, className: t, ...a }) => {
386
386
  const { signatureMode: n, setSignatureMode: o, clearable: s, handleClear: l } = a, { uploadEnabled: i } = x(), c = I(e, K.Tabs), u = I(e, K.Clear);
387
387
  return /* @__PURE__ */ r.createElement("div", {
@@ -455,7 +455,7 @@ const Ut = (e) => {
455
455
  "data-invalid": f,
456
456
  "data-disabled": i,
457
457
  "data-readonly": c
458
- }, n === S.DRAW && N(m, {
458
+ }, n === R.DRAW && N(m, {
459
459
  value: o,
460
460
  onChange: s,
461
461
  onBeforeChange: l,
@@ -463,7 +463,7 @@ const Ut = (e) => {
463
463
  readOnly: c,
464
464
  onBlur: u,
465
465
  onFocus: d
466
- }), n === S.TYPE && N(L, {
466
+ }), n === R.TYPE && N(L, {
467
467
  value: o,
468
468
  onChange: s,
469
469
  onBeforeChange: l,
@@ -471,7 +471,7 @@ const Ut = (e) => {
471
471
  readOnly: c,
472
472
  onBlur: u,
473
473
  onFocus: d
474
- }), (n === S.UPLOAD || n === S.IMAGE) && N(g, {
474
+ }), (n === R.UPLOAD || n === R.IMAGE) && N(g, {
475
475
  value: o,
476
476
  onChange: s,
477
477
  onBeforeChange: l,
@@ -481,7 +481,7 @@ const Ut = (e) => {
481
481
  onFocus: d
482
482
  }));
483
483
  }, Yt = ({ className: e, emptyLabel: t, signedLabel: a, ...n }) => {
484
- const { value: o, onChange: s, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: f } = x(), { inputId: m, ariaDescribedBy: L } = W(), g = ce(), p = V(), E = V(), h = V(null), A = o == null ? void 0 : o.url, [q, P] = X(!1);
484
+ const { value: o, onChange: s, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: f } = x(), { inputId: m, ariaDescribedBy: L } = W(), g = ce(), p = V(), E = V(), h = V(null), S = o == null ? void 0 : o.url, [q, P] = X(!1);
485
485
  Ie(() => {
486
486
  var y;
487
487
  (y = E.current) == null || y.focus({
@@ -507,7 +507,7 @@ const Ut = (e) => {
507
507
  }, [
508
508
  ee,
509
509
  s
510
- ]), k = _(() => {
510
+ ]), Z = _(() => {
511
511
  l == null || l();
512
512
  }, [
513
513
  l
@@ -517,20 +517,20 @@ const Ut = (e) => {
517
517
  if (E.current = y, p.current = new _e(y, {
518
518
  ...v,
519
519
  penColor: getComputedStyle(y).color || void 0
520
- }), Ee(E.current, p.current), A) {
521
- const Z = ve(A);
522
- Z && (p.current.fromData(Z), P(!0));
520
+ }), Ee(E.current, p.current), S) {
521
+ const k = ve(S);
522
+ k && (p.current.fromData(k), P(!0));
523
523
  } else
524
524
  p.current.clear(), P(!1);
525
- p.current.addEventListener("beginStroke", k), p.current.addEventListener("endStroke", $), typeof ResizeObserver < "u" && !h.current && (h.current = new ResizeObserver(() => {
525
+ p.current.addEventListener("beginStroke", Z), p.current.addEventListener("endStroke", $), typeof ResizeObserver < "u" && !h.current && (h.current = new ResizeObserver(() => {
526
526
  E.current && Ee(E.current, p == null ? void 0 : p.current);
527
527
  })), (U = h.current) == null || U.observe(y);
528
528
  } else
529
- (B = h.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", $), (O = p.current) == null || O.removeEventListener("beginStroke", k);
529
+ (B = h.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", $), (O = p.current) == null || O.removeEventListener("beginStroke", Z);
530
530
  }, [
531
531
  v,
532
- A,
533
- k,
532
+ S,
533
+ Z,
534
534
  $
535
535
  ]);
536
536
  return le(() => {
@@ -546,7 +546,7 @@ const Ut = (e) => {
546
546
  id: m,
547
547
  "data-hook": "signature-canvas",
548
548
  "data-input-id": m,
549
- "data-has-value": !!A,
549
+ "data-has-value": !!S,
550
550
  onFocus: d,
551
551
  onBlur: u,
552
552
  role: "img",
@@ -554,7 +554,7 @@ const Ut = (e) => {
554
554
  "aria-describedby": L
555
555
  }));
556
556
  }, de = ({ children: e, className: t, ...a }) => {
557
- const { value: n, onChange: o, onBeforeChange: s, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: f, hasError: m } = x(), { inputId: L, ariaDescribedBy: g, labelId: p } = W(), E = ce(), h = n != null && n.url ? Y(n.url) : void 0, { data: A = "" } = h ?? {
557
+ const { value: n, onChange: o, onBeforeChange: s, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: f, hasError: m } = x(), { inputId: L, ariaDescribedBy: g, labelId: p } = W(), E = ce(), h = n != null && n.url ? Y(n.url) : void 0, { data: S = "" } = h ?? {
558
558
  data: ""
559
559
  };
560
560
  Ie(() => {
@@ -572,9 +572,9 @@ const Ut = (e) => {
572
572
  L
573
573
  ]);
574
574
  const q = _((v) => {
575
- s == null || s(), v.trim() ? o(ie(Ae({
575
+ s == null || s(), v.trim() ? o(ie(Se({
576
576
  data: v,
577
- mimeType: R.TEXT
577
+ mimeType: A.TEXT
578
578
  }))) : o(null);
579
579
  }, [
580
580
  s,
@@ -582,7 +582,7 @@ const Ut = (e) => {
582
582
  ]), P = I(e, de.Value);
583
583
  return /* @__PURE__ */ r.createElement(nt, {
584
584
  "aria-labelledby": p,
585
- value: A,
585
+ value: S,
586
586
  onChange: q,
587
587
  onBlur: c,
588
588
  onFocus: u,
@@ -648,7 +648,7 @@ const Ut = (e) => {
648
648
  onBlur: i,
649
649
  onFocus: c
650
650
  }));
651
- }, kt = ({ className: e, imageAlt: t, ...a }) => {
651
+ }, Zt = ({ className: e, imageAlt: t, ...a }) => {
652
652
  const { value: n } = a, { inputId: o } = W(), s = ce();
653
653
  return /* @__PURE__ */ r.createElement("div", {
654
654
  className: e,
@@ -689,7 +689,7 @@ const Ut = (e) => {
689
689
  onHoverEnd: n,
690
690
  onFocusChange: o
691
691
  }, E));
692
- }, Zt = ({ children: e, className: t, ...a }) => {
692
+ }, kt = ({ children: e, className: t, ...a }) => {
693
693
  const { textId: n } = a;
694
694
  return /* @__PURE__ */ r.createElement("span", {
695
695
  id: n,
@@ -711,9 +711,9 @@ H.Canvas = Yt;
711
711
  H.Type = de;
712
712
  H.Upload = Q;
713
713
  de.Value = qt;
714
- Q.Preview = kt;
714
+ Q.Preview = Zt;
715
715
  Q.Button = se;
716
- se.Text = Zt;
716
+ se.Text = kt;
717
717
  const Gt = () => {
718
718
  const { t: e } = He();
719
719
  return {
@@ -793,7 +793,7 @@ const Gt = () => {
793
793
  content: e,
794
794
  locale: t
795
795
  }), En = () => {
796
- var k, te, y, w, U, B;
796
+ var Z, te, y, w, U, B;
797
797
  const e = Gt(), { disabled: t, readOnly: a } = x(), n = !t && !a, o = z({
798
798
  globalClasses: Je,
799
799
  moduleClasses: {
@@ -801,10 +801,10 @@ const Gt = () => {
801
801
  hover: T.tabHover,
802
802
  selected: T.tabSelected
803
803
  }
804
- }), s = ({ isSelected: D, isHovered: O, isFocused: Z }) => o({
804
+ }), s = ({ isSelected: D, isHovered: O, isFocused: k }) => o({
805
805
  isSelected: D,
806
806
  isHovered: O,
807
- isFocused: Z,
807
+ isFocused: k,
808
808
  isInteractive: n
809
809
  }), i = z({
810
810
  globalClasses: $e,
@@ -838,7 +838,7 @@ const Gt = () => {
838
838
  base: T.uploadButton,
839
839
  hover: T.uploadButtonHover
840
840
  }
841
- }), m = (B = (U = (w = (y = (te = (k = Te().signature) == null ? void 0 : k.elementProps) == null ? void 0 : te.dropZone) == null ? void 0 : y.elementProps) == null ? void 0 : w.uploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: g, ...p } = m ?? {}, E = We(ne.SIGNATURE, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), h = V(null), [A, q] = X(!1), [P, v] = X(!1), ee = _(() => {
841
+ }), m = (B = (U = (w = (y = (te = (Z = Te().signature) == null ? void 0 : Z.elementProps) == null ? void 0 : te.dropZone) == null ? void 0 : y.elementProps) == null ? void 0 : w.uploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: g, ...p } = m ?? {}, E = We(ne.SIGNATURE, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), h = V(null), [S, q] = X(!1), [P, v] = X(!1), ee = _(() => {
842
842
  var D;
843
843
  q(!0), (D = h.current) == null || D.runAnimationForward();
844
844
  }, []), $ = _(() => {
@@ -850,7 +850,7 @@ const Gt = () => {
850
850
  }, /* @__PURE__ */ r.createElement(b.Label.Required, {
851
851
  className: F(qe, ae.requiredMark)
852
852
  })), /* @__PURE__ */ r.createElement(b.Input, {
853
- className: F(ke, T.container)
853
+ className: F(Ze, T.container)
854
854
  }, /* @__PURE__ */ r.createElement(b.Input.Header, {
855
855
  className: T.header
856
856
  }, /* @__PURE__ */ r.createElement(b.Input.Header.Tabs, {
@@ -888,9 +888,9 @@ const Gt = () => {
888
888
  className: T.typeInput,
889
889
  placeholder: e.placeholder
890
890
  })), /* @__PURE__ */ r.createElement(b.Input.Value.Upload, {
891
- className: ({ isHovered: D, isFocused: O, isDropTarget: Z }) => F(T.uploadBox, d({
891
+ className: ({ isHovered: D, isFocused: O, isDropTarget: k }) => F(T.uploadBox, d({
892
892
  isSelected: !1,
893
- isHovered: D || Z,
893
+ isHovered: D || k,
894
894
  isFocused: O,
895
895
  isInteractive: n
896
896
  }))
@@ -910,10 +910,10 @@ const Gt = () => {
910
910
  }, p.svg ? /* @__PURE__ */ r.createElement(we, {
911
911
  ...p,
912
912
  ref: h,
913
- className: F(Ze, Ge, g)
913
+ className: F(ke, Ge, g)
914
914
  }) : null, /* @__PURE__ */ r.createElement(b.Input.Value.Upload.Button.Text, {
915
915
  className: F(fe.base, T.uploadButtonLabel, E, {
916
- [fe.hover]: n && (A || P)
916
+ [fe.hover]: n && (S || P)
917
917
  })
918
918
  }, e.uploadLabel))))), /* @__PURE__ */ r.createElement(b.Error, {
919
919
  className: F(Ve, ae.error)