@wix/form-elements 1.187.0 → 1.188.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 (109) hide show
  1. package/dist/component/{appointment-rac-DiGTD4hn.js → appointment-rac-Biwj0bKe.js} +78 -78
  2. package/dist/component/{bookings-address-rac-Bczo07PP.js → bookings-address-rac-B_o25LOI.js} +1 -1
  3. package/dist/component/{bookings-email-rac-D0cw7HFH.js → bookings-email-rac-BBcusxbS.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DqxVpKqV.js → bookings-first-name-rac-CNTGannm.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BxlD5Wje.js → bookings-header-rac-BTvG2vnk.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CraNB_ut.js → bookings-last-name-rac-BQumGsz9.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-BMGnVYXE.js → bookings-login-bar-rac-Cl_rwWhO.js} +8 -8
  8. package/dist/component/{bookings-phone-rac-CnSlSyLi.js → bookings-phone-rac-B_gXe9Fa.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CWWvRRRi.js → bookings-rich-text-rac-CbMuPVCB.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-C2LLGbbS.js → checkbox-field-rac-QwFSqEgs.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-B2hKVuJD.js → checkbox-group-field-headless-CTDMO0TM.js} +38 -38
  12. package/dist/component/{checkbox-group-field-rac-Bqo7LRpI.js → checkbox-group-field-rac-DFUST9Th.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-CHAnQW7L.js → checkbox-group-rac-CBAE-o1Q.js} +1 -1
  14. package/dist/component/{checkbox-rac-D09xnf-F.js → checkbox-rac-DkYPhGTU.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CY_ff8gq.js → contacts-address-rac-DKf42iJk.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BkPpyiCP.js → contacts-birthdate-rac-ffPSb2YW.js} +1 -1
  17. package/dist/component/{contacts-company-rac-2I05yC97.js → contacts-company-rac-DLVdNbYz.js} +1 -1
  18. package/dist/component/{contacts-email-rac-B5vwkBUk.js → contacts-email-rac-CW8SdcYX.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CVxn7EaP.js → contacts-first-name-rac-CGdzgpkw.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-DIu7T_QU.js → contacts-last-name-rac-DNQj7UcW.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-B_9KO997.js → contacts-phone-rac-zAMIceti.js} +1 -1
  22. package/dist/component/{contacts-position-rac-Dll7FDN5.js → contacts-position-rac-DLwn9B2T.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DvZ0S_7T.js → contacts-subscribe-rac-Cy5rxTkC.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BmYWQGbm.js → contacts-tax-id-rac-CEfU6N6C.js} +1 -1
  25. package/dist/component/{date-availability-C2IYlnG_.js → date-availability-C9EOQUiy.js} +1 -1
  26. package/dist/component/{date-input-field-rac-TwaBKY7l.js → date-input-field-rac-F4QQeEtO.js} +57 -57
  27. package/dist/component/{date-input-rac-CusCOLnm.js → date-input-rac-CJeOgyF5.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-ufxxlmpA.js → date-picker-field-rac-33ARKAxQ.js} +35 -35
  29. package/dist/component/{date-picker-rac-IGr_hLjg.js → date-picker-rac-Beaqh84V.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-B6ZQo4Tk.js → date-time-input-field-rac-CB8FfYUM.js} +44 -44
  31. package/dist/component/{date-time-input-rac-X1GCfhSl.js → date-time-input-rac-DQ9P6IVp.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-D9UmRqnt.js → dext-checkbox-group-rac-Cho-hueW.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DrMbQCX3.js → dext-checkbox-rac-BIwIwy-y.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Barwg8La.js → dext-date-picker-rac-C03HJdvX.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-ChIUfDk4.js → dext-date-time-input-rac-Bo4XfnRA.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-BCrEGvfc.js → dext-dropdown-rac-CadT1tMH.js} +1 -1
  37. package/dist/component/{dext-email-rac-D7l9fah1.js → dext-email-rac-DbiEws8H.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-CrI6ChK9.js → dext-number-input-rac-XoW8CLvX.js} +1 -1
  39. package/dist/component/{dext-phone-rac-B_ObVduc.js → dext-phone-rac-9rFyUD8e.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-DOBaXXjq.js → dext-radio-group-rac-U6BNL7IT.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-D4LxflR7.js → dext-rating-input-rac-BDGUv8jU.js} +1 -1
  42. package/dist/component/{dext-tags-rac-nTSiW-H7.js → dext-tags-rac-CAFGVcIi.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-DYV_gO7a.js → dext-text-area-rac-DXyzm9oe.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Zjq6PsXg.js → dext-text-input-rac-C27gdfyG.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BM7jm0Tn.js → dext-url-input-rac-DovYH3_G.js} +1 -1
  46. package/dist/component/{donation-rac-CGjEtI7s.js → donation-rac-DV2aRsDt.js} +60 -60
  47. package/dist/component/{dropdown-field-rac-c-Owb2hL.js → dropdown-field-rac-D58C7YZG.js} +3 -3
  48. package/dist/component/{dropdown-rac-Bp9hWnJS.js → dropdown-rac-57yZf_yZ.js} +1 -1
  49. package/dist/component/{ecom-address-rac-C1YRffNH.js → ecom-address-rac-Co3WhA7m.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-B5uCvEqP.js → ecom-subscription-checkbox-rac-CYjsuRA9.js} +2 -2
  51. package/dist/component/{email-input-field-rac-BDQYfj6b.js → email-input-field-rac-C5G3pVkR.js} +14 -14
  52. package/dist/component/{events-repeater-rac-DoZBb6e0.js → events-repeater-rac-D5PXSDIH.js} +72 -70
  53. package/dist/component/{events-rsvp-rac-OyYogsL5.js → events-rsvp-rac-BfyQNZh6.js} +3 -3
  54. package/dist/component/{field-error-headless-B41KJxbD.js → field-error-headless-RTyrenpC.js} +8 -8
  55. package/dist/component/{field-label-headless-DHt_Wm_S.js → field-label-headless-Bd00Hl2z.js} +4 -4
  56. package/dist/component/{file-upload-rac-Bed5vOYu.js → file-upload-rac-D5pTnsHO.js} +61 -61
  57. package/dist/component/{fixed-payment-rac-_HtF4gSw.js → fixed-payment-rac-ByxSjPu5.js} +9 -9
  58. package/dist/component/{form-DAUDnpk6.js → form-BG5UjjLA.js} +3276 -3217
  59. package/dist/component/form.js +1 -1
  60. package/dist/component/{header-field-rac-BwlXDMt4.js → header-field-rac-Bql6VoAi.js} +2 -2
  61. package/dist/component/{header-rac-CdFpA8bi.js → header-rac-DWAIn4eY.js} +1 -1
  62. package/dist/component/{image-choice-rac-Bfs7ixsZ.js → image-choice-rac-D5dSQ4Xd.js} +11 -11
  63. package/dist/component/{index-B5HfcvO_.js → index-37eV-JEp.js} +5 -5
  64. package/dist/component/{index-BQctPc9k.js → index-DlcCtz4h.js} +4 -4
  65. package/dist/component/{isObjectLike-CKRIZUUL.js → isObjectLike-ClPDcTiq.js} +1 -1
  66. package/dist/component/{multiline-address-field-rac-Gs6BGlnz.js → multiline-address-field-rac-CpvwzmpC.js} +345 -345
  67. package/dist/component/{multiline-address-rac-6tsDZK20.js → multiline-address-rac-ENim2Bn6.js} +1 -1
  68. package/dist/component/{number-input-field-rac-D2vzcEDT.js → number-input-field-rac-DTRnmRDk.js} +21 -21
  69. package/dist/component/{number-input-rac-DJA2sjJ2.js → number-input-rac-QROlEpkx.js} +1 -1
  70. package/dist/component/{password-rac-DS9j5AEn.js → password-rac-jMoyzIP2.js} +47 -47
  71. package/dist/component/{payment-input-rac-t15HwuyR.js → payment-input-rac-DOOV4P4b.js} +31 -31
  72. package/dist/component/{phone-input-field-rac-DCEMaJjP.js → phone-input-field-rac-BA_mTcND.js} +47 -47
  73. package/dist/component/{phone-rac-R2KIpq9Y.js → phone-rac-DXcbIqHK.js} +1 -1
  74. package/dist/component/{product-list-rac-BCaz8EbJ.js → product-list-rac-CsxR7Ut6.js} +63 -63
  75. package/dist/component/{quiz-radio-group-rac-Czjt8SZW.js → quiz-radio-group-rac-IQgqvqjs.js} +1 -1
  76. package/dist/component/{radio-button-module-classes-B2cY0daS.js → radio-button-module-classes-DIFYfYiH.js} +36 -36
  77. package/dist/component/{radio-group-field-rac-BdCqn6Uq.js → radio-group-field-rac-Ca2RlxOl.js} +4 -4
  78. package/dist/component/{radio-group-rac-CdKWOA6d.js → radio-group-rac-DDervEEb.js} +1 -1
  79. package/dist/component/{rating-input-field-rac-qllcIC5u.js → rating-input-field-rac-0kyPo9cU.js} +12 -12
  80. package/dist/component/{rating-input-rac-Cno0IibX.js → rating-input-rac-DqPsqUKR.js} +1 -1
  81. package/dist/component/{rich-content-rac.module-Bj8zO5BD.js → rich-content-rac.module-2T_-7jvb.js} +5 -5
  82. package/dist/component/{rich-text-field-rac-CJOPMgvk.js → rich-text-field-rac-W-eKzhuC.js} +4 -4
  83. package/dist/component/{rich-text-rac-qJLSQUfk.js → rich-text-rac-CzJfbAyx.js} +1 -1
  84. package/dist/component/{service-dropdown-rac-CrrqMt0I.js → service-dropdown-rac-BMJy2pZ5.js} +25 -25
  85. package/dist/component/{services-multi-choice-rac-DHpIgQT8.js → services-multi-choice-rac-BBAWlI7U.js} +7 -7
  86. package/dist/component/{signature-rac-vHDz7aO9.js → signature-rac-Y1GLswrp.js} +22 -22
  87. package/dist/component/{submit-button-rac-CdSXP5MY.js → submit-button-rac-CSKbrgQ3.js} +17 -17
  88. package/dist/component/{tags-field-rac-BE5q3Yzp.js → tags-field-rac-D3zOYcC5.js} +19 -19
  89. package/dist/component/{tags-rac-DPH9Jekq.js → tags-rac-Cs77Abgs.js} +1 -1
  90. package/dist/component/text-area-field-rac-DZZW7rAX.js +74 -0
  91. package/dist/component/{text-area-rac-BWI_FwJ_.js → text-area-rac-BRPp0HnX.js} +1 -1
  92. package/dist/component/{text-input-field-rac-SljlZsKs.js → text-input-field-rac-tPDZmLdU.js} +3 -3
  93. package/dist/component/text-input-headless-tkwEZWs7.js +47 -0
  94. package/dist/component/{text-input-rac-OP8CxA5d.js → text-input-rac-DnHt4vkM.js} +1 -1
  95. package/dist/component/{time-input-rac-Dc0pojpK.js → time-input-rac-Dbg4Nqb5.js} +18 -18
  96. package/dist/component/url-input-field-rac-3ODFXFRP.js +77 -0
  97. package/dist/component/{url-input-rac-DW245AQ3.js → url-input-rac-CPb5o8Of.js} +1 -1
  98. package/dist/component/{use-dropdown-option-class-name-CohYBaie.js → use-dropdown-option-class-name-Dd4ncVaY.js} +2 -2
  99. package/dist/component/{use-dropdown-trigger-class-name-CcyW9dW5.js → use-dropdown-trigger-class-name-zVniRqM7.js} +29 -29
  100. package/dist/component/{use-element-state-class-name-ByWbyT81.js → use-element-state-class-name-C8jFeDrq.js} +3 -3
  101. package/dist/component/{use-hoverable-input-class-name-CmYpz2Os.js → use-hoverable-input-class-name-B9diy0Mr.js} +2 -2
  102. package/dist/component/{use-is-forced-open-dropdown-D4-XPkUN.js → use-is-forced-open-dropdown-BR1U1l5w.js} +6 -6
  103. package/dist/component/{use-service-options-base-DGHhZKVh.js → use-service-options-base-yM4rJlq1.js} +3 -3
  104. package/dist/component/use-text-input-class-name-D6AnBbJx.js +6 -0
  105. package/package.json +2 -2
  106. package/dist/component/text-area-field-rac-CUSpvF_P.js +0 -74
  107. package/dist/component/text-input-headless-BWFcuwI4.js +0 -47
  108. package/dist/component/url-input-field-rac-CcUeuaJX.js +0 -77
  109. package/dist/component/use-text-input-class-name-VJ-nzeqS.js +0 -6
@@ -1,25 +1,25 @@
1
1
  import a, { useRef as F, useState as T, useEffect as B, useCallback as H } from "react";
2
2
  import { RadioGroup as k, RadioField as A, RadioButton as G, TextField as P, Input as $ } from "react-aria-components";
3
- import { bL as g, bI as q, bV as D, bN as x } from "./form-DAUDnpk6.js";
4
- import { f as u, a as v } from "./find-child-C60k4CxG.js";
5
- import { D as U, E as M } from "./field-error-headless-B41KJxbD.js";
6
- import { L as j } from "./field-label-headless-DHt_Wm_S.js";
7
- import { S as w } from "./selection-indicator-XQ8MYHUQ.js";
8
- const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), y = (e, t) => !!t && !z(e, t), J = (e, t) => {
3
+ import { bM as g, bJ as q, bX as D, bO as x } from "./form-BG5UjjLA.js";
4
+ import { f as u, a as L } from "./find-child-C60k4CxG.js";
5
+ import { D as M, E as U } from "./field-error-headless-RTyrenpC.js";
6
+ import { L as J } from "./field-label-headless-Bd00Hl2z.js";
7
+ import { S as X } from "./selection-indicator-XQ8MYHUQ.js";
8
+ const v = "Other", j = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), y = (e, t) => !!t && !j(e, t), w = (e, t) => {
9
9
  const l = t ? t.length + 2 : 0;
10
10
  return e.slice(l);
11
11
  }, i = ({ children: e, className: t }) => {
12
- const { id: n, value: l, onChange: h, disabled: p, readOnly: O, required: m, onBlur: E, onFocus: b, hasError: r, FieldLayout: c, options: o } = g(), { inputId: f, labelId: C, ariaDescribedBy: _ } = q(), s = u(e, i.Label), I = u(e, i.Options), R = u(e, i.Description), N = u(e, i.Error), V = y(o, l) ? L : l || null;
12
+ const { id: n, value: l, onChange: h, disabled: p, readOnly: O, required: m, onBlur: E, onFocus: b, hasError: r, FieldLayout: c, options: o } = g(), { inputId: f, labelId: C, ariaDescribedBy: I } = q(), s = u(e, i.Label), _ = u(e, i.Options), R = u(e, i.Description), N = u(e, i.Error), V = y(o, l) ? v : l || null;
13
13
  return /* @__PURE__ */ a.createElement(c, {
14
14
  fieldId: n,
15
- renderLabel: () => v(s, {
15
+ renderLabel: () => L(s, {
16
16
  as: "div"
17
17
  }),
18
18
  renderInput: () => /* @__PURE__ */ a.createElement(k, {
19
19
  id: f,
20
20
  className: t,
21
21
  "aria-labelledby": C,
22
- "aria-describedby": _,
22
+ "aria-describedby": I,
23
23
  value: V,
24
24
  onChange: h,
25
25
  isDisabled: p,
@@ -28,11 +28,11 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
28
28
  isInvalid: r,
29
29
  onBlur: E,
30
30
  onFocus: b
31
- }, I),
31
+ }, _),
32
32
  renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, N, R)
33
33
  });
34
- }, K = ({ children: e, className: t }) => {
35
- const { options: n, addOther: l, addOtherLabel: h, id: p, numberOfColumns: O, hasError: m } = g(), { t: E } = D(), b = u(e, i.Option), r = F(null), c = h || E("add-other.default-other-option-label") || L;
34
+ }, z = ({ children: e, className: t }) => {
35
+ const { options: n, addOther: l, addOtherLabel: h, id: p, numberOfColumns: O, hasError: m } = g(), { t: E } = D(), b = u(e, i.Option), r = F(null), c = h || E("add-other.default-other-option-label") || v;
36
36
  return x(() => {
37
37
  var o;
38
38
  (o = r.current) == null || o.focus({
@@ -42,21 +42,21 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
42
42
  className: t,
43
43
  "data-columns": O,
44
44
  "data-invalid": m
45
- }, n.map((o, f) => v(b, {
45
+ }, n.map((o, f) => L(b, {
46
46
  key: o.value ?? o.label,
47
47
  value: o.value ?? o.label,
48
48
  label: o.label,
49
49
  index: f,
50
50
  radioRef: f === 0 ? r : void 0
51
- })), l && v(b, {
52
- key: L,
53
- value: L,
51
+ })), l && L(b, {
52
+ key: v,
53
+ value: v,
54
54
  label: c,
55
55
  isOther: !0
56
56
  }));
57
57
  }, d = ({ children: e, className: t, ...n }) => {
58
- var _;
59
- const { value: l, label: h, isOther: p = !1, radioRef: O } = n, { value: m, options: E } = g(), b = u(e, d.Label), r = u(e, d.Input), c = u(e, d.Control), o = u(e, d.OtherInput), f = p ? y(E, m) : m === l, C = (_ = r == null ? void 0 : r.props) == null ? void 0 : _.className;
58
+ var I;
59
+ const { value: l, label: h, isOther: p = !1, radioRef: O } = n, { value: m, options: E } = g(), b = u(e, d.Label), r = u(e, d.Input), c = u(e, d.Control), o = u(e, d.OtherInput), f = p ? y(E, m) : m === l, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
60
60
  return /* @__PURE__ */ a.createElement("div", {
61
61
  className: t
62
62
  }, /* @__PURE__ */ a.createElement(A, {
@@ -64,29 +64,29 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
64
64
  }, /* @__PURE__ */ a.createElement(G, {
65
65
  ref: O,
66
66
  className: C
67
- }, ({ isSelected: s, isHovered: I, isFocused: R }) => /* @__PURE__ */ a.createElement(a.Fragment, null, v(c, {
67
+ }, ({ isSelected: s, isHovered: _, isFocused: R }) => /* @__PURE__ */ a.createElement(a.Fragment, null, L(c, {
68
68
  isSelected: s,
69
- isHovered: I,
69
+ isHovered: _,
70
70
  isFocused: R
71
- }), v(b, {
71
+ }), L(b, {
72
72
  label: h
73
73
  })))), p && f && o);
74
- }, Q = ({ className: e, ...t }) => {
74
+ }, K = ({ className: e, ...t }) => {
75
75
  const { label: n } = t;
76
76
  return /* @__PURE__ */ a.createElement("span", {
77
77
  className: e
78
78
  }, n);
79
- }, W = (e) => null, X = ({ className: e }) => {
80
- const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: h, otherInputCharacterLimit: p, disabled: O, readOnly: m, options: E } = g(), { t: b } = D(), r = F(null), c = y(E, t), o = l || b("add-other.default-other-option-label") || L, [f, C] = T(c && t ? J(t, l) : "");
79
+ }, Q = (e) => null, W = ({ className: e }) => {
80
+ const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: h, otherInputCharacterLimit: p, disabled: O, readOnly: m, options: E } = g(), { t: b } = D(), r = F(null), c = y(E, t), o = l || b("add-other.default-other-option-label") || v, [f, C] = T(c && t ? w(t, l) : "");
81
81
  B(() => {
82
82
  var s;
83
83
  c && r.current && ((s = r.current) == null || s.focus());
84
84
  }, [
85
85
  c
86
86
  ]);
87
- const _ = H((s) => {
88
- let I;
89
- s ? I = `${l}: ${s}` : I = o, n(I), C(s);
87
+ const I = H((s) => {
88
+ let _;
89
+ s ? _ = `${l}: ${s}` : _ = o, n(_), C(s);
90
90
  }, [
91
91
  n,
92
92
  l,
@@ -95,7 +95,7 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
95
95
  return /* @__PURE__ */ a.createElement(P, {
96
96
  "aria-label": o,
97
97
  value: f,
98
- onChange: _,
98
+ onChange: I,
99
99
  isDisabled: O,
100
100
  isReadOnly: m
101
101
  }, /* @__PURE__ */ a.createElement($, {
@@ -105,15 +105,15 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
105
105
  maxLength: p
106
106
  }));
107
107
  };
108
- d.Label = Q;
109
- d.Input = W;
110
- d.Control = w;
111
- d.OtherInput = X;
112
- i.Label = j;
113
- i.Options = K;
108
+ d.Label = K;
109
+ d.Input = Q;
110
+ d.Control = X;
111
+ d.OtherInput = W;
112
+ i.Label = J;
113
+ i.Options = z;
114
114
  i.Option = d;
115
- i.Description = U;
116
- i.Error = M;
115
+ i.Description = M;
116
+ i.Error = U;
117
117
  const Y = "_labelImage_1u9f2_1", Z = "_option_1u9f2_26", ee = "_optionInput_1u9f2_32", te = "_optionControl_1u9f2_50", oe = "_optionControlHover_1u9f2_72", ne = "_optionControlSelected_1u9f2_90", le = "_optionLabel_1u9f2_137", S = {
118
118
  labelImage: Y,
119
119
  option: Z,
@@ -1,13 +1,13 @@
1
1
  import { RicosViewer as m } from "@wix/ricos/viewer";
2
2
  import t from "classnames";
3
3
  import e from "react";
4
- import { a, s, R as n } from "./radio-button-module-classes-B2cY0daS.js";
4
+ import { a, s, R as n } from "./radio-button-module-classes-DIFYfYiH.js";
5
5
  import { E as c } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as r } from "./field-rac.module-DcyJyi2B.js";
7
- import { X as i, am as E, ac as p, ad as O, M as R, I as _, ae as I } from "./form-DAUDnpk6.js";
7
+ import { X as i, am as E, ac as p, ad as O, M as R, I as _, ae as I } from "./form-BG5UjjLA.js";
8
8
  import { o as L } from "./options-rac.module-_THNq6Qq.js";
9
- import { u as N } from "./use-element-state-class-name-ByWbyT81.js";
10
- import { u } from "./use-text-input-class-name-VJ-nzeqS.js";
9
+ import { u as N } from "./use-element-state-class-name-C8jFeDrq.js";
10
+ import { u } from "./use-text-input-class-name-D6AnBbJx.js";
11
11
  const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
12
12
  content: o,
13
13
  locale: l
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-BdCqn6Uq.js";
2
+ import { R as r } from "./radio-group-field-rac-Ca2RlxOl.js";
3
3
  const R = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  R as RadioGroupRAC
@@ -1,14 +1,14 @@
1
1
  import { RicosViewer as y } from "@wix/ricos/viewer";
2
2
  import u from "classnames";
3
3
  import e, { useCallback as N, useState as O, useRef as A } from "react";
4
- import { bL as I, bI as v, bV as M, X as T, am as H, af as w, M as B, I as P, ag as q } from "./form-DAUDnpk6.js";
4
+ import { bM as I, bJ as v, bX as M, X as T, am as H, af as w, M as B, I as P, ag as q } from "./form-BG5UjjLA.js";
5
5
  import { RadioGroup as G, RadioField as k, RadioButton as x } from "react-aria-components";
6
6
  import { f as E, a as U } from "./find-child-C60k4CxG.js";
7
- import { D as z, E as Q } from "./field-error-headless-B41KJxbD.js";
8
- import { L as X } from "./field-label-headless-DHt_Wm_S.js";
9
- import { E as Z } from "./error-icon-hZxQ6DEy.js";
7
+ import { D as X, E as z } from "./field-error-headless-RTyrenpC.js";
8
+ import { L as J } from "./field-label-headless-Bd00Hl2z.js";
9
+ import { E as Q } from "./error-icon-hZxQ6DEy.js";
10
10
  import { s as g } from "./field-rac.module-DcyJyi2B.js";
11
- import { u as j } from "./use-element-state-class-name-ByWbyT81.js";
11
+ import { u as Z } from "./use-element-state-class-name-C8jFeDrq.js";
12
12
  const t = ({ children: a }) => {
13
13
  const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: c, onBlur: o, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = N((D) => i(Number(D)), [
14
14
  i
@@ -52,7 +52,7 @@ const t = ({ children: a }) => {
52
52
  onHoverChange: (S) => C(S ? s : void 0),
53
53
  label: r == null ? void 0 : r(Number(s))
54
54
  })));
55
- }, J = {
55
+ }, j = {
56
56
  border: 0,
57
57
  clipPath: "inset(50%)",
58
58
  height: 1,
@@ -79,15 +79,15 @@ const t = ({ children: a }) => {
79
79
  isHovered: c,
80
80
  isFocused: o
81
81
  }) : n, d ? /* @__PURE__ */ e.createElement("span", {
82
- style: J
82
+ style: j
83
83
  }, d) : null)));
84
84
  };
85
85
  b.Rating = F;
86
- t.Label = X;
86
+ t.Label = J;
87
87
  t.Ratings = b;
88
88
  t.Rating = F;
89
- t.Description = z;
90
- t.Error = Q;
89
+ t.Description = X;
90
+ t.Error = z;
91
91
  const K = (a) => /* @__PURE__ */ e.createElement("svg", {
92
92
  viewBox: "0 0 32 32",
93
93
  width: 32,
@@ -111,7 +111,7 @@ const K = (a) => /* @__PURE__ */ e.createElement("svg", {
111
111
  selected: p.ratingSelected,
112
112
  hover: p.ratingHover
113
113
  }, Ee = () => {
114
- const { t: a } = M(), n = j({
114
+ const { t: a } = M(), n = Z({
115
115
  globalClasses: q,
116
116
  moduleClasses: te
117
117
  });
@@ -128,7 +128,7 @@ const K = (a) => /* @__PURE__ */ e.createElement("svg", {
128
128
  className: n
129
129
  }, /* @__PURE__ */ e.createElement(K, null))), /* @__PURE__ */ e.createElement(t.Error, {
130
130
  className: u(B, g.error)
131
- }, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
131
+ }, /* @__PURE__ */ e.createElement(Q, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
132
132
  className: u(P, g.description)
133
133
  }, ee));
134
134
  };
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-qllcIC5u.js";
2
+ import { R as e } from "./rating-input-field-rac-0kyPo9cU.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as RatingInputRAC
@@ -1,5 +1,5 @@
1
1
  import c, { useState as u } from "react";
2
- import { bL as a, bD as i, bV as T } from "./form-DAUDnpk6.js";
2
+ import { bM as a, bE as i, bX as T } from "./form-BG5UjjLA.js";
3
3
  import { Button as d } from "react-aria-components";
4
4
  import { D as r } from "./data-hooks-Dkw1pbRj.js";
5
5
  import { truncateRichContent as _ } from "@wix/ricos/content";
@@ -24,7 +24,7 @@ const O = ({ children: e }) => {
24
24
  "data-hook": s
25
25
  }, o);
26
26
  };
27
- function D(e, t) {
27
+ function B(e, t) {
28
28
  const [n, o] = u(!0);
29
29
  function s() {
30
30
  o((l) => !l);
@@ -38,12 +38,12 @@ function D(e, t) {
38
38
  toggleTruncate: s
39
39
  };
40
40
  }
41
- const C = "_richContent_1galb_1", L = {
41
+ const C = "_richContent_1galb_1", D = {
42
42
  richContent: C
43
43
  };
44
44
  export {
45
45
  O as R,
46
46
  p as T,
47
- L as s,
48
- D as u
47
+ D as s,
48
+ B as u
49
49
  };
@@ -1,17 +1,17 @@
1
1
  import l from "classnames";
2
2
  import e from "react";
3
- import { bL as m, aY as i, aG as u, bm as R, bp as T } from "./form-DAUDnpk6.js";
4
- import { u as C, R as d, s as p, T as g } from "./rich-content-rac.module-Bj8zO5BD.js";
3
+ import { bM as m, aY as i, aG as u, bn as R, bq as T } from "./form-BG5UjjLA.js";
4
+ import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-2T_-7jvb.js";
5
5
  const h = {
6
6
  colorPalette: T(),
7
7
  customStyles: R()
8
8
  }, P = ({ truncate: t = !0 } = {}) => {
9
9
  const { content: a, maxShownParagraphs: s } = m(), { displayedContent: n, isTruncated: o, isTruncateButtonShown: r, toggleTruncate: c } = C(a, t ? s : void 0);
10
10
  return /* @__PURE__ */ e.createElement(d, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, {
11
- className: l(u, p.richContent),
11
+ className: l(u, g.richContent),
12
12
  content: n,
13
13
  customTheme: h
14
- }), r && /* @__PURE__ */ e.createElement(g, {
14
+ }), r && /* @__PURE__ */ e.createElement(p, {
15
15
  isTruncated: o,
16
16
  onClick: c
17
17
  })));
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { R as t } from "./rich-text-field-rac-CJOPMgvk.js";
2
+ import { R as t } from "./rich-text-field-rac-W-eKzhuC.js";
3
3
  const R = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  R as RichTextRAC
@@ -1,21 +1,21 @@
1
- import o, { useRef as T, useMemo as _, useCallback as D, useEffect as b } from "react";
1
+ import o, { useRef as T, useMemo as _, useCallback as C, useEffect as b } from "react";
2
2
  import { RicosViewer as w } from "@wix/ricos/viewer";
3
3
  import E from "classnames";
4
- import { bH as P, bV as A, F as M, bL as y, bD as V, aN as H, X as x, am as U, J as W, M as k, I as q } from "./form-DAUDnpk6.js";
5
- import { u as B } from "./use-service-options-base-DGHhZKVh.js";
6
- import { D as u, u as J } from "./use-dropdown-trigger-class-name-CcyW9dW5.js";
7
- import { C as Q } from "./chevron-down-icon-CcpVm6B-.js";
8
- import { E as X } from "./error-icon-hZxQ6DEy.js";
4
+ import { bI as P, bX as A, F as M, bM as y, bE as V, aN as x, X as H, am as U, J as W, M as k, I as q } from "./form-BG5UjjLA.js";
5
+ import { u as B } from "./use-service-options-base-yM4rJlq1.js";
6
+ import { D as u, u as X } from "./use-dropdown-trigger-class-name-zVniRqM7.js";
7
+ import { C as J } from "./chevron-down-icon-CcpVm6B-.js";
8
+ import { E as Q } from "./error-icon-hZxQ6DEy.js";
9
9
  import { H as Y } from "./custom-focus-class-_483Pkwp.js";
10
10
  import { s as i } from "./field-rac.module-DcyJyi2B.js";
11
- import { u as j } from "./use-dropdown-option-class-name-CohYBaie.js";
11
+ import { u as j } from "./use-dropdown-option-class-name-Dd4ncVaY.js";
12
12
  const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
13
- const { actions: t } = P(), { t: C } = A(), { addOther: n, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = T(!0), d = _(() => {
13
+ const { actions: t } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a = T(!0), d = _(() => {
14
14
  var s;
15
15
  return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
16
16
  }, [
17
17
  e.options
18
- ]), O = D((s) => n ? [
18
+ ]), O = C((s) => n ? [
19
19
  ...s,
20
20
  {
21
21
  value: c,
@@ -25,11 +25,11 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
25
25
  ] : s, [
26
26
  n,
27
27
  c
28
- ]), { isLoading: f, options: l, isEmpty: h, shouldRender: I, setIsLoading: S, setOptions: L, setIsEmpty: g, processOptions: R } = B({
28
+ ]), { isLoading: f, options: l, isEmpty: h, shouldRender: I, setIsLoading: S, setOptions: R, setIsEmpty: g, processOptions: F } = B({
29
29
  fieldType: M.SERVICES_DROPDOWN,
30
30
  isEditor: e.isEditor,
31
31
  postProcessOptions: O
32
- }), F = D(async () => {
32
+ }), L = C(async () => {
33
33
  if (a.current && (t != null && t.fetchServices) && d.length > 0) {
34
34
  a.current = !1, S(!0);
35
35
  let s;
@@ -41,8 +41,8 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
41
41
  console.error(m);
42
42
  }
43
43
  if (s) {
44
- const m = R(s);
45
- g(!n && m.length === 0), L(m);
44
+ const m = F(s);
45
+ g(!n && m.length === 0), R(m);
46
46
  } else
47
47
  a.current = !0;
48
48
  S(!1);
@@ -50,10 +50,10 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
50
50
  }, [
51
51
  t,
52
52
  d,
53
- R,
53
+ F,
54
54
  n,
55
55
  S,
56
- L,
56
+ R,
57
57
  g
58
58
  ]);
59
59
  b(() => {
@@ -67,12 +67,12 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
67
67
  g,
68
68
  e.isEditor
69
69
  ]);
70
- const N = D(() => {
71
- e.onFocus && e.onFocus(), a.current && F();
70
+ const N = C(() => {
71
+ e.onFocus && e.onFocus(), a.current && L();
72
72
  }, [
73
- F,
73
+ L,
74
74
  e.onFocus
75
- ]), v = D(
75
+ ]), v = C(
76
76
  (s) => {
77
77
  e.onChange && e.onChange(s), a.current = !0;
78
78
  },
@@ -90,7 +90,7 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
90
90
  shouldRender: I
91
91
  };
92
92
  }, r = ({ children: e }) => {
93
- const t = y(), { addOther: C } = t, n = V(), p = t.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: d, onFocus: O, onChange: f, shouldRender: l } = G({
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 } = G({
94
94
  ...t,
95
95
  isEditor: p
96
96
  }), h = _(() => ({
@@ -106,7 +106,7 @@ const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
106
106
  O,
107
107
  f
108
108
  ]);
109
- return !p && d && !C || !l ? null : /* @__PURE__ */ o.createElement(H.Provider, {
109
+ return !p && d && !D || !l ? null : /* @__PURE__ */ o.createElement(x.Provider, {
110
110
  value: {
111
111
  v2: h
112
112
  }
@@ -121,14 +121,14 @@ const K = ({ content: e, locale: t }) => /* @__PURE__ */ o.createElement(w, {
121
121
  content: e,
122
122
  locale: t
123
123
  }), Z = () => {
124
- const e = J(i.dropdownTrigger), t = j(Y);
124
+ const e = X(i.dropdownTrigger), t = j(Y);
125
125
  return /* @__PURE__ */ o.createElement(r, null, /* @__PURE__ */ o.createElement(r.Label, {
126
- className: E(x, i.label)
126
+ className: E(H, i.label)
127
127
  }, /* @__PURE__ */ o.createElement(r.Label.Required, {
128
128
  className: E(U, i.requiredMark)
129
129
  })), /* @__PURE__ */ o.createElement(r.Trigger, {
130
130
  className: e
131
- }, /* @__PURE__ */ o.createElement(Q, {
131
+ }, /* @__PURE__ */ o.createElement(J, {
132
132
  className: i.dropdownIcon
133
133
  })), /* @__PURE__ */ o.createElement(r.Options, {
134
134
  className: E(W, i.selectPopover, i.dropdownPopover)
@@ -136,7 +136,7 @@ const K = ({ content: e, locale: t }) => /* @__PURE__ */ o.createElement(w, {
136
136
  className: t
137
137
  })), /* @__PURE__ */ o.createElement(r.Error, {
138
138
  className: E(k, i.error)
139
- }, /* @__PURE__ */ o.createElement(X, null), /* @__PURE__ */ o.createElement(r.Error.Text, null)), /* @__PURE__ */ o.createElement(r.Description, {
139
+ }, /* @__PURE__ */ o.createElement(Q, null), /* @__PURE__ */ o.createElement(r.Error.Text, null)), /* @__PURE__ */ o.createElement(r.Description, {
140
140
  className: E(q, i.description)
141
141
  }, K));
142
142
  }, me = () => /* @__PURE__ */ o.createElement(Z, null);
@@ -1,15 +1,15 @@
1
1
  import e, { useEffect as I, useMemo as L } from "react";
2
2
  import { RicosViewer as S } from "@wix/ricos/viewer";
3
3
  import a from "classnames";
4
- import { F as R, bL as d, aN as D, X as N, am as F, p as f, r as h, M as b, I as M, q as A } from "./form-DAUDnpk6.js";
5
- import { u as v } from "./use-service-options-base-DGHhZKVh.js";
6
- import { C as i } from "./checkbox-group-field-headless-B2hKVuJD.js";
4
+ import { F as R, bM as d, aN as D, X as N, am as F, p as f, r as h, M, I as b, q as A } from "./form-BG5UjjLA.js";
5
+ import { u as v } from "./use-service-options-base-yM4rJlq1.js";
6
+ import { C as i } from "./checkbox-group-field-headless-CTDMO0TM.js";
7
7
  import { E as x } from "./error-icon-hZxQ6DEy.js";
8
8
  import { C as P } from "./checkbox-indicator-module-classes-DOxE4UQg.js";
9
9
  import { s as n } from "./field-rac.module-DcyJyi2B.js";
10
10
  import { o as _ } from "./options-rac.module-_THNq6Qq.js";
11
- import { u as T } from "./use-element-state-class-name-ByWbyT81.js";
12
- import { u as k } from "./use-text-input-class-name-VJ-nzeqS.js";
11
+ import { u as T } from "./use-element-state-class-name-C8jFeDrq.js";
12
+ import { u as k } from "./use-text-input-class-name-D6AnBbJx.js";
13
13
  const y = (s) => {
14
14
  var C;
15
15
  const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: p } = v({
@@ -76,9 +76,9 @@ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
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(M, n.error)
80
80
  }, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
81
- className: a(M, n.description)
81
+ className: a(b, n.description)
82
82
  }, B));
83
83
  }, J = () => /* @__PURE__ */ e.createElement(H, null);
84
84
  export {
@@ -2,17 +2,17 @@ import r, { useRef as $, useContext as Se, useMemo as he, useCallback as y, useS
2
2
  import Fe from "@wix/editor-react-components/AnimatedIcon";
3
3
  import { RicosViewer as we } from "@wix/ricos/viewer";
4
4
  import F from "classnames";
5
- import { bd as xe, bF as Le, aR as Ue, F as Be, bH as Oe, bD as Pe, bT as Te, E as me, aH as oe, bL as x, bI as W, bN as Ie, bV as Me, bE as He, X as We, am as Ye, an as Ze, ao as Ge, b as ke, au as Ve, av as pe, M as $e, I as ze, ap as Xe, as as qe, aq as je, at as Je, f as ne, ar as Ke } from "./form-DAUDnpk6.js";
5
+ import { be as xe, bG as Le, aR as Ue, F as Be, bI as Oe, bE as Pe, bU as Te, E as me, aH as oe, bM as x, bJ as W, bO as Ie, bX as Me, bF as He, X as We, am as Ye, an as Ge, ao as Ze, b as ke, au as Ve, av as pe, M as $e, I as ze, ap as Xe, as as qe, aq as je, at as Je, f as ne, ar as Ke } from "./form-BG5UjjLA.js";
6
6
  import { useHover as Qe, useFocusRing as et, mergeProps as tt } from "react-aria";
7
7
  import { RadioGroup as nt, Button as Ce, TextField as at, DropZone as ot, Input as st, FileTrigger as rt, RadioField as lt, RadioButton as it } from "react-aria-components";
8
8
  import _e from "signature_pad";
9
9
  import { f as C, a as N } from "./find-child-C60k4CxG.js";
10
- import { D as ct, E as ut } from "./field-error-headless-B41KJxbD.js";
11
- import { L as dt } from "./field-label-headless-DHt_Wm_S.js";
10
+ import { D as ct, E as ut } from "./field-error-headless-RTyrenpC.js";
11
+ import { L as dt } from "./field-label-headless-Bd00Hl2z.js";
12
12
  import { D as mt } from "./data-hooks-Dkw1pbRj.js";
13
13
  import { E as pt } from "./error-icon-hZxQ6DEy.js";
14
14
  import { s as ae } from "./field-rac.module-DcyJyi2B.js";
15
- import { u as X } from "./use-element-state-class-name-ByWbyT81.js";
15
+ import { u as X } from "./use-element-state-class-name-C8jFeDrq.js";
16
16
  const ft = typeof r.useId == "function" ? r.useId : () => $(xe()).current, Et = ({ properties: e }) => e.uploadEnabled === !0, gt = (e, t) => e.fieldType === Be.SIGNATURE && !e.properties.hidden && !e.properties.disabled && !e.properties.readOnly && (t !== "upload" || Et(e)), ht = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, bt = (e) => {
17
17
  var o;
18
18
  const t = (o = Le().signature) == null ? void 0 : o.signatureMode, a = Se(Ue);
@@ -480,8 +480,8 @@ const Bt = (e) => {
480
480
  onBlur: u,
481
481
  onFocus: d
482
482
  }));
483
- }, Zt = ({ 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(), h = ce(), p = $(), g = $(), E = $(null), S = o == null ? void 0 : o.url, [Z, P] = q(!1);
483
+ }, Gt = ({ 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(), h = ce(), p = $(), g = $(), E = $(null), S = o == null ? void 0 : o.url, [G, P] = q(!1);
485
485
  Ie(() => {
486
486
  var _;
487
487
  (_ = g.current) == null || _.focus({
@@ -507,7 +507,7 @@ const Bt = (e) => {
507
507
  }, [
508
508
  ee,
509
509
  s
510
- ]), G = y(() => {
510
+ ]), Z = y(() => {
511
511
  l == null || l();
512
512
  }, [
513
513
  l
@@ -522,15 +522,15 @@ const Bt = (e) => {
522
522
  k && (p.current.fromData(k), P(!0));
523
523
  } else
524
524
  p.current.clear(), P(!1);
525
- p.current.addEventListener("beginStroke", G), p.current.addEventListener("endStroke", z), typeof ResizeObserver < "u" && !E.current && (E.current = new ResizeObserver(() => {
525
+ p.current.addEventListener("beginStroke", Z), p.current.addEventListener("endStroke", z), typeof ResizeObserver < "u" && !E.current && (E.current = new ResizeObserver(() => {
526
526
  g.current && Ee(g.current, p == null ? void 0 : p.current);
527
527
  })), (U = E.current) == null || U.observe(_);
528
528
  } else
529
- (B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", z), (O = p.current) == null || O.removeEventListener("beginStroke", G);
529
+ (B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", z), (O = p.current) == null || O.removeEventListener("beginStroke", Z);
530
530
  }, [
531
531
  v,
532
532
  S,
533
- G,
533
+ Z,
534
534
  z
535
535
  ]);
536
536
  return le(() => {
@@ -550,7 +550,7 @@ const Bt = (e) => {
550
550
  onFocus: d,
551
551
  onBlur: u,
552
552
  role: "img",
553
- "aria-label": Z ? a : t,
553
+ "aria-label": G ? a : t,
554
554
  "aria-describedby": L
555
555
  }));
556
556
  }, de = ({ children: e, className: t, ...a }) => {
@@ -571,7 +571,7 @@ const Bt = (e) => {
571
571
  n,
572
572
  L
573
573
  ]);
574
- const Z = y((v) => {
574
+ const G = y((v) => {
575
575
  s == null || s(), v.trim() ? o(ie(Ae({
576
576
  data: v,
577
577
  mimeType: R.TEXT
@@ -583,7 +583,7 @@ const Bt = (e) => {
583
583
  return /* @__PURE__ */ r.createElement(at, {
584
584
  "aria-labelledby": p,
585
585
  value: S,
586
- onChange: Z,
586
+ onChange: G,
587
587
  onBlur: c,
588
588
  onFocus: u,
589
589
  isDisabled: l,
@@ -598,7 +598,7 @@ const Bt = (e) => {
598
598
  inputId: L,
599
599
  ariaDescribedBy: h
600
600
  })));
601
- }, Gt = ({ className: e, placeholder: t, ...a }) => {
601
+ }, Zt = ({ className: e, placeholder: t, ...a }) => {
602
602
  const { inputId: n, ariaDescribedBy: o } = a;
603
603
  return /* @__PURE__ */ r.createElement(st, {
604
604
  id: n,
@@ -707,10 +707,10 @@ K.Clear = Yt;
707
707
  M.Draw = Mt;
708
708
  M.Type = Ht;
709
709
  M.Upload = Wt;
710
- H.Canvas = Zt;
710
+ H.Canvas = Gt;
711
711
  H.Type = de;
712
712
  H.Upload = Q;
713
- de.Value = Gt;
713
+ de.Value = Zt;
714
714
  Q.Preview = kt;
715
715
  Q.Button = se;
716
716
  se.Text = Vt;
@@ -793,7 +793,7 @@ const $t = () => {
793
793
  content: e,
794
794
  locale: t
795
795
  }), hn = () => {
796
- var G, te, _, w, U, B;
796
+ var Z, te, _, w, U, B;
797
797
  const e = $t(), { disabled: t, readOnly: a } = x(), n = !t && !a, o = X({
798
798
  globalClasses: Ke,
799
799
  moduleClasses: {
@@ -838,19 +838,19 @@ const $t = () => {
838
838
  base: T.uploadButton,
839
839
  hover: T.uploadButtonHover
840
840
  }
841
- }), m = (B = (U = (w = (_ = (te = (G = Le().signature) == null ? void 0 : G.elementProps) == null ? void 0 : te.dropZone) == null ? void 0 : _.elementProps) == null ? void 0 : w.uploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: h, ...p } = m ?? {}, g = He(ne.SIGNATURE, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), E = $(null), [S, Z] = q(!1), [P, v] = q(!1), ee = y(() => {
841
+ }), m = (B = (U = (w = (_ = (te = (Z = Le().signature) == null ? void 0 : Z.elementProps) == null ? void 0 : te.dropZone) == null ? void 0 : _.elementProps) == null ? void 0 : w.uploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: h, ...p } = m ?? {}, g = He(ne.SIGNATURE, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), E = $(null), [S, G] = q(!1), [P, v] = q(!1), ee = y(() => {
842
842
  var D;
843
- Z(!0), (D = E.current) == null || D.runAnimationForward();
843
+ G(!0), (D = E.current) == null || D.runAnimationForward();
844
844
  }, []), z = y(() => {
845
845
  var D;
846
- Z(!1), (D = E.current) == null || D.runAnimationBackward();
846
+ G(!1), (D = E.current) == null || D.runAnimationBackward();
847
847
  }, []);
848
848
  return /* @__PURE__ */ r.createElement(b, null, /* @__PURE__ */ r.createElement(b.Label, {
849
849
  className: F(We, ae.label)
850
850
  }, /* @__PURE__ */ r.createElement(b.Label.Required, {
851
851
  className: F(Ye, ae.requiredMark)
852
852
  })), /* @__PURE__ */ r.createElement(b.Input, {
853
- className: F(Ze, T.container)
853
+ className: F(Ge, T.container)
854
854
  }, /* @__PURE__ */ r.createElement(b.Input.Header, {
855
855
  className: T.header
856
856
  }, /* @__PURE__ */ r.createElement(b.Input.Header.Tabs, {
@@ -874,7 +874,7 @@ const $t = () => {
874
874
  }, /* @__PURE__ */ r.createElement(Xt, {
875
875
  className: T.tabIcon
876
876
  }))), /* @__PURE__ */ r.createElement(b.Input.Header.Clear, {
877
- className: F(Ge, T.clear),
877
+ className: F(Ze, T.clear),
878
878
  "aria-label": e.clearLabel
879
879
  }, /* @__PURE__ */ r.createElement(zt, null))), /* @__PURE__ */ r.createElement(b.Input.Value, {
880
880
  className: T.value