@wix/form-elements 1.146.0 → 1.147.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 (111) hide show
  1. package/dist/component/{appointment-rac-scUix9QX.js → appointment-rac-BG5-bIZU.js} +98 -98
  2. package/dist/component/{bookings-address-rac-CKemkJOO.js → bookings-address-rac-8e8PqKsp.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CDqdhPAB.js → bookings-email-rac-CtlnU8ws.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DEy_7Hjb.js → bookings-first-name-rac-CrivNlXM.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Bl4xy9lB.js → bookings-header-rac-DWDAjfqq.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CsL9xQ1W.js → bookings-last-name-rac-qAthWem2.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DkHYQ4No.js → bookings-login-bar-rac-BNyUDqlM.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-BoBiFwbV.js → bookings-phone-rac-Tc39XLr7.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DZZnPKWA.js → bookings-rich-text-rac-CPNaPtFK.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-UgLmJxB-.js → checkbox-field-rac-DEa78Tpf.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-C809nB0Q.js → checkbox-group-field-headless-BxBaMg29.js} +68 -68
  12. package/dist/component/{checkbox-group-field-rac-u4i4wG21.js → checkbox-group-field-rac-CRRP03Qk.js} +7 -7
  13. package/dist/component/{checkbox-group-rac-DBAQhSo3.js → checkbox-group-rac-TOofMGl3.js} +1 -1
  14. package/dist/component/{checkbox-rac-FDQVsI5-.js → checkbox-rac-CHMHr8Ry.js} +1 -1
  15. package/dist/component/{contacts-address-rac-DnArylPa.js → contacts-address-rac-Bc5yDvTL.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-C19jhGEO.js → contacts-birthdate-rac-Ubtg5ncv.js} +1 -1
  17. package/dist/component/{contacts-company-rac-Dxs0hs_i.js → contacts-company-rac-BksH9IoV.js} +1 -1
  18. package/dist/component/{contacts-email-rac-D-H43L8r.js → contacts-email-rac-DDPEtMAm.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DwV5NESk.js → contacts-first-name-rac-DUlCvEdx.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-C5v2xurf.js → contacts-last-name-rac-BikqNgUr.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-D9a5x-xl.js → contacts-phone-rac-B4OEgM_8.js} +1 -1
  22. package/dist/component/{contacts-position-rac-DfsgOv-k.js → contacts-position-rac-BfybzySV.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-B-Hho0Kb.js → contacts-subscribe-rac-CMHb33v1.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-q6TQkB4b.js → contacts-tax-id-rac-C-qEqwO5.js} +1 -1
  25. package/dist/component/{date-availability-CMDvf5VU.js → date-availability-DZ3J3LLm.js} +1 -1
  26. package/dist/component/{date-input-field-rac-C1WLUct3.js → date-input-field-rac-DeL5vuE7.js} +39 -39
  27. package/dist/component/{date-input-rac-cNQ-nr4D.js → date-input-rac-Di6TQvFf.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-mx11z-MO.js → date-picker-field-rac-BcdpTkjV.js} +107 -103
  29. package/dist/component/{date-picker-rac-DeTz17zC.js → date-picker-rac-Brne65gr.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-feQ2E1eU.js → date-time-input-field-rac-BtQfAxRp.js} +49 -49
  31. package/dist/component/{date-time-input-rac-G0s0xP4v.js → date-time-input-rac-DM_HXiqV.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BcTN1nJb.js → dext-checkbox-group-rac-WTVwhGG0.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DX0TOrCO.js → dext-checkbox-rac-BR5YwmLQ.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CpDp11oa.js → dext-date-picker-rac-DvDuRGYi.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BRvO8izU.js → dext-date-time-input-rac-C6RgbaVv.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-DGZ4Yi_X.js → dext-dropdown-rac-CWjSdcZx.js} +1 -1
  37. package/dist/component/{dext-email-rac-B9YCFHB4.js → dext-email-rac-D-C1gVTq.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-D890dBZf.js → dext-number-input-rac-YKzZS2ZG.js} +1 -1
  39. package/dist/component/{dext-phone-rac-BAQftbXo.js → dext-phone-rac-CFZlEH2a.js} +1 -1
  40. package/dist/component/dext-radio-group-rac-DiH0wIIl.js +18 -0
  41. package/dist/component/{dext-rating-input-rac-BqQKVaHo.js → dext-rating-input-rac-D0s-i0qO.js} +1 -1
  42. package/dist/component/{dext-tags-rac-zxxKcNUe.js → dext-tags-rac-Br48OQQ5.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-Ctp9SwPg.js → dext-text-area-rac-6jG8gJ7i.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-c_QMlyjr.js → dext-text-input-rac-FAJTCXuf.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-96pv15aC.js → dext-url-input-rac-BoMP8sQB.js} +1 -1
  46. package/dist/component/{donation-rac-GEWKSLJY.js → donation-rac-DNi4p-v5.js} +69 -69
  47. package/dist/component/{dropdown-field-headless-C3OxMhLE.js → dropdown-field-headless-7SCC-xOC.js} +27 -27
  48. package/dist/component/{dropdown-field-rac-CCXfBmSc.js → dropdown-field-rac-CMzZh6J6.js} +8 -9
  49. package/dist/component/{dropdown-rac-CR7hswXE.js → dropdown-rac-qeugpHXY.js} +1 -1
  50. package/dist/component/{ecom-address-rac-khMuxEFD.js → ecom-address-rac-D8b_L5md.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-CAi_AHpb.js → ecom-subscription-checkbox-rac-BnAuR9La.js} +5 -5
  52. package/dist/component/{email-input-field-rac-B83mY2lg.js → email-input-field-rac-CunXRyc5.js} +62 -62
  53. package/dist/component/{events-repeater-rac-ClEwXgmb.js → events-repeater-rac-DMjyIOkB.js} +17 -17
  54. package/dist/component/{events-rsvp-rac-BJ5q2SVR.js → events-rsvp-rac-BsuDPq2K.js} +8 -8
  55. package/dist/component/{field-error-headless-CsYQCsiT.js → field-error-headless-E8WjFr_n.js} +6 -6
  56. package/dist/component/{field-label-headless-Yg_1PMSg.js → field-label-headless-BakLOu5E.js} +15 -15
  57. package/dist/component/{file-upload-rac-DJsuI_lR.js → file-upload-rac-Clu_c--0.js} +43 -43
  58. package/dist/component/{fixed-payment-rac-BMFe9wxU.js → fixed-payment-rac-CzAXxsb-.js} +12 -12
  59. package/dist/component/{form-Bed4Kfz8.js → form-DHAKwnLt.js} +311 -305
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +2 -2
  62. package/dist/component/{header-field-rac-DPQTrOSZ.js → header-field-rac-CwmVpz3r.js} +4 -4
  63. package/dist/component/{header-rac-CzXsuLmE.js → header-rac-ahkGRjSy.js} +1 -1
  64. package/dist/component/{image-choice-rac-R_4pbOSr.js → image-choice-rac-BwxkkdUu.js} +17 -17
  65. package/dist/component/{index-qSZCe_WC.js → index-BFi_n6B7.js} +2 -2
  66. package/dist/component/{index-DZxHlvzt.js → index-BQf23zZi.js} +91 -91
  67. package/dist/component/{isObjectLike-B-a5uaU-.js → isObjectLike-DHcMRYYH.js} +15 -15
  68. package/dist/component/{multiline-address-field-rac-rv4IZZy_.js → multiline-address-field-rac-C6xaqNOk.js} +60 -60
  69. package/dist/component/{multiline-address-rac-DZ7cYtgn.js → multiline-address-rac-DF4TFuDx.js} +1 -1
  70. package/dist/component/{number-input-field-rac-CL9iXKIf.js → number-input-field-rac-uVJ3SBv2.js} +27 -27
  71. package/dist/component/{number-input-rac-BeGn6qJR.js → number-input-rac-D6ERhrSM.js} +1 -1
  72. package/dist/component/{password-rac-DfvhdsKG.js → password-rac-CAiC0ZKl.js} +23 -23
  73. package/dist/component/{payment-input-rac-BmMfi5rf.js → payment-input-rac-Bu25xvby.js} +26 -26
  74. package/dist/component/{phone-input-field-rac-DW0a1pXs.js → phone-input-field-rac-32qUvCsC.js} +45 -45
  75. package/dist/component/{phone-rac-quZjJ08H.js → phone-rac-mNrpj30q.js} +1 -1
  76. package/dist/component/{product-list-rac-Ci0KB7sN.js → product-list-rac-zHdM9rHw.js} +53 -53
  77. package/dist/component/{quiz-radio-group-rac--UUtGx2t.js → quiz-radio-group-rac-BaSlT8w3.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-CqdBGknT.js → radio-button-module-classes-BdWjkBlX.js} +9 -9
  79. package/dist/component/{radio-group-field-rac-w8fHpFKJ.js → radio-group-field-rac-DI0UgTBr.js} +12 -12
  80. package/dist/component/{radio-group-rac-jO8aghii.js → radio-group-rac-D2ESG8J4.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-BRc2PtqE.js → rating-input-field-rac-BYT2XqOK.js} +26 -26
  82. package/dist/component/{rating-input-rac-D9zs06xR.js → rating-input-rac-D-5CmVAX.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-Cv3ZmD00.js → rich-content-rac.module-Dp9Advo9.js} +8 -8
  84. package/dist/component/{rich-text-field-rac-BmWuIfA8.js → rich-text-field-rac-COEUwoXQ.js} +4 -4
  85. package/dist/component/{rich-text-rac-BnqnrvB1.js → rich-text-rac-CQZLjBQ0.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-Cl81KfJU.js → service-dropdown-rac-BTtJVFv8.js} +44 -45
  87. package/dist/component/{services-multi-choice-rac-sQ1NF9hY.js → services-multi-choice-rac-hbY3g0Kb.js} +11 -11
  88. package/dist/component/{signature-rac-Huairu7V.js → signature-rac-CTCNclwL.js} +67 -67
  89. package/dist/component/{submit-button-rac-Dpg7N0TG.js → submit-button-rac-kKGeVgsG.js} +25 -25
  90. package/dist/component/{tags-field-rac-BQ8TEqXH.js → tags-field-rac-CVf7oQr_.js} +35 -35
  91. package/dist/component/{tags-rac-CFOmyCCc.js → tags-rac-DiX1_nTT.js} +1 -1
  92. package/dist/component/{text-area-field-rac-DNiMa7d3.js → text-area-field-rac-IhBNXiDl.js} +22 -22
  93. package/dist/component/{text-area-rac-kLFe-KbZ.js → text-area-rac-DHevCtFF.js} +1 -1
  94. package/dist/component/{text-input-field-rac-CqENSUUX.js → text-input-field-rac-Da3_wTdh.js} +5 -5
  95. package/dist/component/{text-input-headless-BdPkEeK2.js → text-input-headless-DcZRRXCp.js} +9 -9
  96. package/dist/component/{text-input-rac-uYQEfOtE.js → text-input-rac-564LIZ1_.js} +1 -1
  97. package/dist/component/{time-input-rac-BYoojlJ9.js → time-input-rac-p-Nnsxp_.js} +54 -54
  98. package/dist/component/{url-input-field-rac-BioH7kuz.js → url-input-field-rac-DjrcpRtm.js} +25 -25
  99. package/dist/component/{url-input-rac-D2VSSyqW.js → url-input-rac-B3brpyop.js} +1 -1
  100. package/dist/component/use-dropdown-trigger-class-name-BWTT7ltv.js +117 -0
  101. package/dist/component/{use-element-state-class-name-oiKCauK-.js → use-element-state-class-name-CUZuhFvZ.js} +3 -3
  102. package/dist/component/{use-hoverable-input-class-name-BW3nCyhG.js → use-hoverable-input-class-name-ugX8-g4E.js} +6 -6
  103. package/dist/component/use-is-forced-open-dropdown-DUZMvWpk.js +48 -0
  104. package/dist/component/{use-service-options-base-DXG60hA5.js → use-service-options-base-hqO9Ev38.js} +6 -6
  105. package/dist/component/use-text-input-class-name-wp9dzpEy.js +6 -0
  106. package/dist/form.d.ts +5 -0
  107. package/package.json +2 -2
  108. package/dist/component/dext-radio-group-rac-CtEjnu_X.js +0 -18
  109. package/dist/component/use-dropdown-option-class-name-BEmvU-Gg.js +0 -115
  110. package/dist/component/use-dropdown-trigger-class-name-qj9skLWZ.js +0 -40
  111. package/dist/component/use-text-input-class-name-BhQFcXYH.js +0 -6
@@ -2,17 +2,17 @@ import s, { useRef as $, useContext as Ae, 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 { aR as Ue, bh as Te, at as Be, F as Oe, bj as Pe, bf as Me, bv as ye, E as me, aj as oe, bn as x, bk as W, bp as Ce, bx as He, bg as We, R as Ye, $ as Ze, a1 as ke, u as pe, b as Ge, a6 as Ve, a7 as fe, G as $e, a0 as ze, a4 as Xe, a2 as qe, a5 as je, f as ne, a3 as Je } from "./form-Bed4Kfz8.js";
5
+ import { aS as Ue, bi as Te, au as Be, F as Oe, bk as Pe, bg as Me, bw as ye, E as me, ak as oe, bo as x, bl as W, bq as Ce, by as He, bh as We, S as Ye, a0 as ke, a2 as Ze, v as pe, b as Ve, a7 as Ge, a8 as fe, H as $e, a1 as ze, a5 as Xe, a3 as qe, a6 as je, f as ne, a4 as Je } from "./form-DHAKwnLt.js";
6
6
  import { useHover as Ke, useFocusRing as Qe, mergeProps as et } from "react-aria";
7
7
  import { RadioGroup as tt, Button as Ie, TextField as nt, DropZone as at, Input as ot, FileTrigger as rt, RadioField as st, RadioButton as lt } from "react-aria-components";
8
8
  import _e from "signature_pad";
9
9
  import { f as C, a as A } from "./find-child-C60k4CxG.js";
10
- import { D as it, E as ct } from "./field-error-headless-CsYQCsiT.js";
11
- import { L as ut } from "./field-label-headless-Yg_1PMSg.js";
10
+ import { D as it, E as ct } from "./field-error-headless-E8WjFr_n.js";
11
+ import { L as ut } from "./field-label-headless-BakLOu5E.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-DfEb7pBp.js";
15
- import { u as X } from "./use-element-state-class-name-oiKCauK-.js";
15
+ import { u as X } from "./use-element-state-class-name-CUZuhFvZ.js";
16
16
  const pt = typeof s.useId == "function" ? s.useId : () => $(Ue()).current, ft = ({ properties: e }) => e.uploadEnabled === !0, Et = (e, t) => e.fieldType === Oe.SIGNATURE && !e.properties.hidden && !e.properties.disabled && !e.properties.readOnly && (t !== "upload" || ft(e)), gt = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, ht = (e) => {
17
17
  var o;
18
18
  const t = (o = Te().signatureContainer) == null ? void 0 : o.signatureMode, a = Ae(Be);
@@ -24,7 +24,7 @@ const pt = typeof s.useId == "function" ? s.useId : () => $(Ue()).current, ft =
24
24
  t
25
25
  ]) === e ? t : void 0;
26
26
  };
27
- var R = /* @__PURE__ */ (function(e) {
27
+ var S = /* @__PURE__ */ (function(e) {
28
28
  return e.TEXT = "text/plain", e.POINTS = "points/json", e;
29
29
  })({}), y = /* @__PURE__ */ (function(e) {
30
30
  return e.DRAW = "draw", e.TYPE = "type", e.UPLOAD = "upload", e;
@@ -112,12 +112,12 @@ function ge(e, t) {
112
112
  const a = e.getContext("2d"), n = e.offsetWidth, o = e.offsetHeight, r = Math.max(window.devicePixelRatio || 1, 1), l = n * r, i = o * r;
113
113
  return (e.width !== l || e.height !== i) && a ? (e.width = l, e.height = i, a.scale(r, r), t == null || t.redraw(), !0) : !1;
114
114
  }
115
- const V = 480, It = (e) => Se({
115
+ const G = 480, It = (e) => Re({
116
116
  data: JSON.stringify(e),
117
- mimeType: R.POINTS
117
+ mimeType: S.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) === S.POINTS)
121
121
  try {
122
122
  return JSON.parse(t.data);
123
123
  } catch {
@@ -125,7 +125,7 @@ const V = 480, It = (e) => Se({
125
125
  }
126
126
  return null;
127
127
  }, he = 0.8, De = "Madefor";
128
- function Re(e, t) {
128
+ function Se(e, t) {
129
129
  const { width: a, actualBoundingBoxAscent: n, actualBoundingBoxDescent: o } = t.measureText(e);
130
130
  return {
131
131
  width: a,
@@ -136,13 +136,13 @@ function Re(e, t) {
136
136
  function _t(e, t) {
137
137
  const a = t.getContext("2d"), n = t.offsetWidth || t.width, r = (t.offsetHeight || t.height) * he, l = n * he;
138
138
  a.font = `${r}px ${De}`;
139
- const { width: i, height: c } = Re(e, a), u = r / (i / l), d = r / (c / r);
139
+ const { width: i, height: c } = Se(e, a), u = r / (i / l), d = r / (c / r);
140
140
  return Math.min(u, d);
141
141
  }
142
142
  function vt(e, t, a = "black", n = !1, o) {
143
143
  const r = e.getContext("2d"), l = _t(t, e);
144
144
  r.font = `${l}px ${De}`, r.textBaseline = "top";
145
- const i = e.offsetWidth || e.width, c = e.offsetHeight || e.height, { width: u, height: d, offsetY: f } = Re(t, r);
145
+ const i = e.offsetWidth || e.width, c = e.offsetHeight || e.height, { width: u, height: d, offsetY: f } = Se(t, r);
146
146
  r.fillStyle = o, r.fillRect(0, 0, i, c), r.fillStyle = a;
147
147
  const m = (i - u) / 2;
148
148
  r.fillText(t, n ? i - m : m, (c - d) / 2 + f);
@@ -164,11 +164,11 @@ function Y(e) {
164
164
  encoding: n
165
165
  };
166
166
  }
167
- function Se({ data: e, mimeType: t, encoding: a = "text" }) {
167
+ function Re({ 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 St(e, t) {
172
172
  const a = Y(e);
173
173
  if (!a)
174
174
  return;
@@ -197,34 +197,34 @@ async function Nt(e, t) {
197
197
  if (!a)
198
198
  return e;
199
199
  const n = a.mimeType;
200
- if (n === R.TEXT) {
201
- const o = j(V * 20, V, 1);
200
+ if (n === S.TEXT) {
201
+ const o = j(G * 20, G, 1);
202
202
  vt(o, a.data, "black", t, "white");
203
203
  const r = se(o, "white");
204
204
  return (r == null ? void 0 : r.toDataURL("image/jpeg", 0.7)) ?? null;
205
205
  }
206
- if (n === R.POINTS) {
206
+ if (n === S.POINTS) {
207
207
  const o = ve(e);
208
208
  if (!o)
209
209
  return null;
210
210
  const r = o.map((d) => ({
211
211
  ...d,
212
212
  penColor: "black"
213
- })), l = j(V * 20, V, Math.max(window.devicePixelRatio || 1, 1));
213
+ })), l = j(G * 20, G, Math.max(window.devicePixelRatio || 1, 1));
214
214
  new _e(l).fromData(r);
215
215
  const c = se(l);
216
- return c ? Ee(c, void 0, V, "white").toDataURL("image/jpeg", 0.7) : null;
216
+ return c ? Ee(c, void 0, G, "white").toDataURL("image/jpeg", 0.7) : null;
217
217
  }
218
218
  if (n != null && n.startsWith("image/")) {
219
219
  const o = await Ct(e), r = se(o);
220
- return r ? Ee(r, void 0, V).toDataURL("image/jpeg", 0.7) : null;
220
+ return r ? Ee(r, void 0, G).toDataURL("image/jpeg", 0.7) : null;
221
221
  }
222
222
  return e;
223
223
  }
224
- async function St(e, t) {
224
+ async function Rt(e, t) {
225
225
  const a = await Nt(e, t);
226
226
  if (a)
227
- return Rt(a, "signature");
227
+ return St(a, "signature");
228
228
  }
229
229
  const At = ({ value: e, onChange: t, target: a }) => {
230
230
  const [n, o] = q(e), { isRTL: r } = Me(), l = bt(a), { setFormStatus: i } = ye(), c = $();
@@ -239,7 +239,7 @@ const At = ({ value: e, onChange: t, target: a }) => {
239
239
  try {
240
240
  const p = (h == null ? void 0 : h.url) ?? "";
241
241
  if (Dt(p)) {
242
- const g = await St(p, r);
242
+ const g = await Rt(p, r);
243
243
  if (g) {
244
244
  const E = await l(g);
245
245
  t([
@@ -286,9 +286,9 @@ const At = ({ value: e, onChange: t, target: a }) => {
286
286
  if (r == null)
287
287
  return y.DRAW;
288
288
  switch (l == null ? void 0 : l.mimeType) {
289
- case R.POINTS:
289
+ case S.POINTS:
290
290
  return y.DRAW;
291
- case R.TEXT:
291
+ case S.TEXT:
292
292
  return y.TYPE;
293
293
  default:
294
294
  return y.UPLOAD;
@@ -331,16 +331,16 @@ const At = ({ value: e, onChange: t, target: a }) => {
331
331
  handleClear: f
332
332
  };
333
333
  }, wt = {
334
- [y.DRAW]: (e) => (e == null ? void 0 : e.mimeType) === R.POINTS,
335
- [y.TYPE]: (e) => (e == null ? void 0 : e.mimeType) === R.TEXT,
336
- [y.UPLOAD]: (e) => (e == null ? void 0 : e.mimeType) !== R.POINTS && (e == null ? void 0 : e.mimeType) !== R.TEXT
334
+ [y.DRAW]: (e) => (e == null ? void 0 : e.mimeType) === S.POINTS,
335
+ [y.TYPE]: (e) => (e == null ? void 0 : e.mimeType) === S.TEXT,
336
+ [y.UPLOAD]: (e) => (e == null ? void 0 : e.mimeType) !== S.POINTS && (e == null ? void 0 : e.mimeType) !== S.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 !== S.POINTS && t.mimeType !== S.TEXT : !0;
344
344
  }, ce = () => {
345
345
  const { hoverProps: e, isHovered: t } = Ke({}), { focusProps: a, isFocused: n, isFocusVisible: o } = Qe({
346
346
  within: !0
@@ -368,7 +368,7 @@ const Ut = (e) => {
368
368
  target: r,
369
369
  value: n,
370
370
  onChange: o
371
- }), g = C(e, J.Header), E = C(e, J.Value), S = {
371
+ }), g = C(e, J.Header), E = C(e, J.Value), R = {
372
372
  signatureMode: i ?? c,
373
373
  setSignatureMode: u,
374
374
  handleClear: d,
@@ -381,7 +381,7 @@ const Ut = (e) => {
381
381
  return /* @__PURE__ */ s.createElement("div", {
382
382
  className: t,
383
383
  "data-hook": "signature-container"
384
- }, !l && A(g, S), A(E, S));
384
+ }, !l && A(g, R), A(E, R));
385
385
  }, K = ({ children: e, className: t, ...a }) => {
386
386
  const { signatureMode: n, setSignatureMode: o, clearable: r, handleClear: l } = a, { uploadEnabled: i } = x(), c = C(e, K.Tabs), u = C(e, K.Clear);
387
387
  return /* @__PURE__ */ s.createElement("div", {
@@ -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: r, 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);
484
+ const { value: o, onChange: r, 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), R = o == null ? void 0 : o.url, [k, P] = q(!1);
485
485
  Ce(() => {
486
486
  var I;
487
487
  (I = g.current) == null || I.focus();
@@ -505,7 +505,7 @@ const Ut = (e) => {
505
505
  }, [
506
506
  ee,
507
507
  r
508
- ]), k = _(() => {
508
+ ]), Z = _(() => {
509
509
  l == null || l();
510
510
  }, [
511
511
  l
@@ -515,20 +515,20 @@ const Ut = (e) => {
515
515
  if (g.current = I, p.current = new _e(I, {
516
516
  ...v,
517
517
  penColor: getComputedStyle(I).color || void 0
518
- }), ge(g.current, p.current), S) {
519
- const G = ve(S);
520
- G && (p.current.fromData(G), P(!0));
518
+ }), ge(g.current, p.current), R) {
519
+ const V = ve(R);
520
+ V && (p.current.fromData(V), P(!0));
521
521
  } else
522
522
  p.current.clear(), P(!1);
523
- p.current.addEventListener("beginStroke", k), p.current.addEventListener("endStroke", z), typeof ResizeObserver < "u" && !E.current && (E.current = new ResizeObserver(() => {
523
+ p.current.addEventListener("beginStroke", Z), p.current.addEventListener("endStroke", z), typeof ResizeObserver < "u" && !E.current && (E.current = new ResizeObserver(() => {
524
524
  g.current && ge(g.current, p == null ? void 0 : p.current);
525
525
  })), (U = E.current) == null || U.observe(I);
526
526
  } else
527
- (B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", z), (O = p.current) == null || O.removeEventListener("beginStroke", k);
527
+ (B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", z), (O = p.current) == null || O.removeEventListener("beginStroke", Z);
528
528
  }, [
529
529
  v,
530
- S,
531
- k,
530
+ R,
531
+ Z,
532
532
  z
533
533
  ]);
534
534
  return le(() => {
@@ -544,15 +544,15 @@ const Ut = (e) => {
544
544
  id: m,
545
545
  "data-hook": "signature-canvas",
546
546
  "data-input-id": m,
547
- "data-has-value": !!S,
547
+ "data-has-value": !!R,
548
548
  onFocus: d,
549
549
  onBlur: u,
550
550
  role: "img",
551
- "aria-label": Z ? a : t,
551
+ "aria-label": k ? a : t,
552
552
  "aria-describedby": L
553
553
  }));
554
554
  }, de = ({ children: e, className: t, ...a }) => {
555
- const { value: n, onChange: o, onBeforeChange: r, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: f, hasError: m } = x(), { inputId: L, ariaDescribedBy: h, labelId: p } = W(), g = ce(), E = n != null && n.url ? Y(n.url) : void 0, { data: S = "" } = E ?? {
555
+ const { value: n, onChange: o, onBeforeChange: r, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: f, hasError: m } = x(), { inputId: L, ariaDescribedBy: h, labelId: p } = W(), g = ce(), E = n != null && n.url ? Y(n.url) : void 0, { data: R = "" } = E ?? {
556
556
  data: ""
557
557
  };
558
558
  Ce(() => {
@@ -569,10 +569,10 @@ const Ut = (e) => {
569
569
  n,
570
570
  L
571
571
  ]);
572
- const Z = _((v) => {
573
- r == null || r(), v.trim() ? o(ie(Se({
572
+ const k = _((v) => {
573
+ r == null || r(), v.trim() ? o(ie(Re({
574
574
  data: v,
575
- mimeType: R.TEXT
575
+ mimeType: S.TEXT
576
576
  }))) : o(null);
577
577
  }, [
578
578
  r,
@@ -580,8 +580,8 @@ const Ut = (e) => {
580
580
  ]), P = C(e, de.Value);
581
581
  return /* @__PURE__ */ s.createElement(nt, {
582
582
  "aria-labelledby": p,
583
- value: S,
584
- onChange: Z,
583
+ value: R,
584
+ onChange: k,
585
585
  onBlur: c,
586
586
  onFocus: u,
587
587
  isDisabled: l,
@@ -596,7 +596,7 @@ const Ut = (e) => {
596
596
  inputId: L,
597
597
  ariaDescribedBy: h
598
598
  })));
599
- }, Zt = ({ className: e, placeholder: t, ...a }) => {
599
+ }, kt = ({ className: e, placeholder: t, ...a }) => {
600
600
  const { inputId: n, ariaDescribedBy: o } = a;
601
601
  return /* @__PURE__ */ s.createElement(ot, {
602
602
  id: n,
@@ -646,7 +646,7 @@ const Ut = (e) => {
646
646
  onBlur: i,
647
647
  onFocus: c
648
648
  }));
649
- }, kt = ({ className: e, imageAlt: t, ...a }) => {
649
+ }, Zt = ({ className: e, imageAlt: t, ...a }) => {
650
650
  const { value: n } = a, { inputId: o } = W(), r = ce();
651
651
  return /* @__PURE__ */ s.createElement("div", {
652
652
  className: e,
@@ -687,7 +687,7 @@ const Ut = (e) => {
687
687
  onHoverEnd: n,
688
688
  onFocusChange: o
689
689
  }, g));
690
- }, Gt = ({ children: e, className: t, ...a }) => {
690
+ }, Vt = ({ children: e, className: t, ...a }) => {
691
691
  const { textId: n } = a;
692
692
  return /* @__PURE__ */ s.createElement("span", {
693
693
  id: n,
@@ -708,11 +708,11 @@ M.Upload = Ht;
708
708
  H.Canvas = Yt;
709
709
  H.Type = de;
710
710
  H.Upload = Q;
711
- de.Value = Zt;
712
- Q.Preview = kt;
711
+ de.Value = kt;
712
+ Q.Preview = Zt;
713
713
  Q.Button = re;
714
- re.Text = Gt;
715
- const Vt = () => {
714
+ re.Text = Vt;
715
+ const Gt = () => {
716
716
  const { t: e } = He();
717
717
  return {
718
718
  drawLabel: e("field.signature.mode.draw.label"),
@@ -791,18 +791,18 @@ const Vt = () => {
791
791
  content: e,
792
792
  locale: t
793
793
  }), gn = () => {
794
- var k, te, I, w, U, B;
795
- const e = Vt(), { disabled: t, readOnly: a } = x(), n = !t && !a, o = X({
794
+ var Z, te, I, w, U, B;
795
+ const e = Gt(), { disabled: t, readOnly: a } = x(), n = !t && !a, o = X({
796
796
  globalClasses: Je,
797
797
  moduleClasses: {
798
798
  base: T.tab,
799
799
  hover: T.tabHover,
800
800
  selected: T.tabSelected
801
801
  }
802
- }), r = ({ isSelected: D, isHovered: O, isFocused: G }) => o({
802
+ }), r = ({ isSelected: D, isHovered: O, isFocused: V }) => o({
803
803
  isSelected: D,
804
804
  isHovered: O,
805
- isFocused: G,
805
+ isFocused: V,
806
806
  isInteractive: n
807
807
  }), i = X({
808
808
  globalClasses: ze,
@@ -836,19 +836,19 @@ const Vt = () => {
836
836
  base: T.uploadButton,
837
837
  hover: T.uploadButtonHover
838
838
  }
839
- }), m = (B = (U = (w = (I = (te = (k = Te().signatureContainer) == null ? void 0 : k.elementProps) == null ? void 0 : te.signatureDropZone) == null ? void 0 : I.elementProps) == null ? void 0 : w.signatureUploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: h, ...p } = m ?? {}, g = We(ne.SIGNATURE_CONTAINER, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), E = $(null), [S, Z] = q(!1), [P, v] = q(!1), ee = _(() => {
839
+ }), m = (B = (U = (w = (I = (te = (Z = Te().signatureContainer) == null ? void 0 : Z.elementProps) == null ? void 0 : te.signatureDropZone) == null ? void 0 : I.elementProps) == null ? void 0 : w.signatureUploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: h, ...p } = m ?? {}, g = We(ne.SIGNATURE_CONTAINER, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), E = $(null), [R, k] = q(!1), [P, v] = q(!1), ee = _(() => {
840
840
  var D;
841
- Z(!0), (D = E.current) == null || D.runAnimationForward();
841
+ k(!0), (D = E.current) == null || D.runAnimationForward();
842
842
  }, []), z = _(() => {
843
843
  var D;
844
- Z(!1), (D = E.current) == null || D.runAnimationBackward();
844
+ k(!1), (D = E.current) == null || D.runAnimationBackward();
845
845
  }, []);
846
846
  return /* @__PURE__ */ s.createElement(b, null, /* @__PURE__ */ s.createElement(b.Label, {
847
847
  className: F(Ye, ae.label)
848
848
  }, /* @__PURE__ */ s.createElement(b.Label.Required, {
849
- className: F(Ze, ae.requiredMark)
849
+ className: F(ke, ae.requiredMark)
850
850
  })), /* @__PURE__ */ s.createElement(b.Input, {
851
- className: F(ke, T.container)
851
+ className: F(Ze, T.container)
852
852
  }, /* @__PURE__ */ s.createElement(b.Input.Header, {
853
853
  className: T.header
854
854
  }, /* @__PURE__ */ s.createElement(b.Input.Header.Tabs, {
@@ -886,9 +886,9 @@ const Vt = () => {
886
886
  className: T.typeInput,
887
887
  placeholder: e.placeholder
888
888
  })), /* @__PURE__ */ s.createElement(b.Input.Value.Upload, {
889
- className: ({ isHovered: D, isFocused: O, isDropTarget: G }) => F(T.uploadBox, d({
889
+ className: ({ isHovered: D, isFocused: O, isDropTarget: V }) => F(T.uploadBox, d({
890
890
  isSelected: !1,
891
- isHovered: D || G,
891
+ isHovered: D || V,
892
892
  isFocused: O,
893
893
  isInteractive: n
894
894
  }))
@@ -908,10 +908,10 @@ const Vt = () => {
908
908
  }, p.svg ? /* @__PURE__ */ s.createElement(we, {
909
909
  ...p,
910
910
  ref: E,
911
- className: F(Ge, Ve, h)
911
+ className: F(Ve, Ge, h)
912
912
  }) : null, /* @__PURE__ */ s.createElement(b.Input.Value.Upload.Button.Text, {
913
913
  className: F(fe.base, T.uploadButtonLabel, g, {
914
- [fe.hover]: n && (S || P)
914
+ [fe.hover]: n && (R || P)
915
915
  })
916
916
  }, e.uploadLabel))))), /* @__PURE__ */ s.createElement(b.Error, {
917
917
  className: F($e, ae.error)
@@ -1,10 +1,10 @@
1
1
  import t, { useRef as X, useCallback as y } from "react";
2
2
  import $ from "@wix/editor-react-components/AnimatedIcon";
3
3
  import p from "classnames";
4
- import { bn as b, bh as j, ah as q, ag as z, ae as G, ad as J, am as K, al as Q, af as Y, b as Z, ac as tt, ak as et } from "./form-Bed4Kfz8.js";
4
+ import { bo as b, bi as j, ai as q, ah as z, af as G, ae as J, an as K, am as Q, ag as Y, b as Z, ad as tt, al as et } from "./form-DHAKwnLt.js";
5
5
  import { ProgressBar as nt, Button as R } from "react-aria-components";
6
6
  import { f as l } from "./find-child-C60k4CxG.js";
7
- import { u as x } from "./use-element-state-class-name-oiKCauK-.js";
7
+ import { u as x } from "./use-element-state-class-name-CUZuhFvZ.js";
8
8
  function ot(e) {
9
9
  const s = "calc(50% - 2px)";
10
10
  return /* @__PURE__ */ t.createElement(nt, {
@@ -51,41 +51,41 @@ const r = ({ children: e }) => {
51
51
  className: e
52
52
  }, s, n, a);
53
53
  }, S = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
54
- const { showPreviousButton: a, onPreviousClick: c, previousText: B } = b();
54
+ const { showPreviousButton: a, onPreviousClick: i, previousText: B } = b();
55
55
  if (!a)
56
56
  return null;
57
- const i = l(n, S.Label), m = l(n, S.Icon);
57
+ const c = l(n, S.Label), m = l(n, S.Icon);
58
58
  return /* @__PURE__ */ t.createElement(R, {
59
59
  className: e,
60
60
  "aria-label": B,
61
- onPress: c,
61
+ onPress: i,
62
62
  onHoverStart: o,
63
63
  onHoverEnd: s
64
- }, m, i ?? /* @__PURE__ */ t.createElement(W, null));
64
+ }, m, c ?? /* @__PURE__ */ t.createElement(W, null));
65
65
  }, E = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
66
- const { showNextButton: a, onNextClick: c, nextText: B } = b();
66
+ const { showNextButton: a, onNextClick: i, nextText: B } = b();
67
67
  if (!a)
68
68
  return null;
69
- const i = l(n, E.Label), m = l(n, E.Icon);
69
+ const c = l(n, E.Label), m = l(n, E.Icon);
70
70
  return /* @__PURE__ */ t.createElement(R, {
71
71
  className: e,
72
72
  "aria-label": B,
73
- onPress: c,
73
+ onPress: i,
74
74
  onHoverStart: o,
75
75
  onHoverEnd: s
76
- }, i ?? /* @__PURE__ */ t.createElement(V, null), m);
76
+ }, c ?? /* @__PURE__ */ t.createElement(V, null), m);
77
77
  }, v = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
78
- const { showSubmitButton: a, onSubmitClick: c, submitText: B, isDisabled: i, isInProgress: m, isSubmitting: C } = b();
78
+ const { showSubmitButton: a, onSubmitClick: i, submitText: B, isDisabled: c, isInProgress: m, isSubmitting: C } = b();
79
79
  if (!a)
80
80
  return null;
81
81
  const f = l(n, v.Label), I = l(n, v.Icon), d = l(n, v.Loader), _ = C || m;
82
82
  return /* @__PURE__ */ t.createElement(R, {
83
83
  className: e,
84
84
  "aria-label": B,
85
- onPress: _ ? void 0 : c,
85
+ onPress: _ ? void 0 : i,
86
86
  onHoverStart: o,
87
87
  onHoverEnd: s,
88
- isDisabled: i && !_,
88
+ isDisabled: c && !_,
89
89
  "aria-disabled": _ || void 0,
90
90
  "data-in-progress": m
91
91
  }, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(D, null), I));
@@ -104,27 +104,27 @@ const r = ({ children: e }) => {
104
104
  return /* @__PURE__ */ t.createElement("span", {
105
105
  className: e
106
106
  }, o);
107
- }, h = ({ children: e }) => /* @__PURE__ */ t.createElement(t.Fragment, null, e), st = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
107
+ }, A = ({ children: e }) => /* @__PURE__ */ t.createElement(t.Fragment, null, e), st = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
108
108
  className: e
109
109
  }, /* @__PURE__ */ t.createElement(ot, null));
110
110
  v.Label = D;
111
- v.Icon = h;
111
+ v.Icon = A;
112
112
  v.Loader = st;
113
113
  S.Label = W;
114
- S.Icon = h;
114
+ S.Icon = A;
115
115
  E.Label = V;
116
- E.Icon = h;
116
+ E.Icon = A;
117
117
  g.PreviousButton = S;
118
118
  g.NextButton = E;
119
119
  g.SubmitButton = v;
120
120
  r.SubmitButton = g;
121
- const at = "_navigationContainer_s99vs_1", rt = "_rowSpacing_s99vs_6", ut = "_navigationButton_s99vs_10", lt = "_nextButton_s99vs_33", ct = "_previousButton_s99vs_59", it = "_navigationButtonHover_s99vs_100", mt = "_button_s99vs_116", vt = "_buttonNoSteps_s99vs_164", bt = "_buttonWithSteps_s99vs_168", Bt = "_buttonHover_s99vs_172", St = "_progress_s99vs_196", u = {
121
+ const at = "_navigationContainer_s99vs_1", rt = "_rowSpacing_s99vs_6", ut = "_navigationButton_s99vs_10", lt = "_nextButton_s99vs_33", it = "_previousButton_s99vs_59", ct = "_navigationButtonHover_s99vs_100", mt = "_button_s99vs_116", vt = "_buttonNoSteps_s99vs_164", bt = "_buttonWithSteps_s99vs_168", Bt = "_buttonHover_s99vs_172", St = "_progress_s99vs_196", u = {
122
122
  navigationContainer: at,
123
123
  rowSpacing: rt,
124
124
  navigationButton: ut,
125
125
  nextButton: lt,
126
- previousButton: ct,
127
- navigationButtonHover: it,
126
+ previousButton: it,
127
+ navigationButtonHover: ct,
128
128
  button: mt,
129
129
  buttonNoSteps: vt,
130
130
  buttonWithSteps: bt,
@@ -144,15 +144,15 @@ const at = "_navigationContainer_s99vs_1", rt = "_rowSpacing_s99vs_6", ut = "_na
144
144
  onHoverEnd: s
145
145
  };
146
146
  }, O = ({ icon: e, iconRef: o, iconClassName: s }) => {
147
- const { wix: n, className: a, ...c } = e ?? {};
148
- return c.svg ? /* @__PURE__ */ t.createElement($, {
149
- ...c,
147
+ const { wix: n, className: a, ...i } = e ?? {};
148
+ return i.svg ? /* @__PURE__ */ t.createElement($, {
149
+ ...i,
150
150
  ref: o,
151
151
  className: p(Z, s, a)
152
152
  }) : null;
153
153
  }, Et = () => {
154
- var A, F, U, w, M, k;
155
- const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = b(), B = !s && !(a || n), i = j(), m = (F = (A = i.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : F.icon, C = (w = (U = i.nextButton) == null ? void 0 : U.elementProps) == null ? void 0 : w.icon, f = (k = (M = i.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : k.icon, I = x({
154
+ var h, F, U, w, M, k;
155
+ const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = b(), B = !s && !(a || n), c = j(), m = (F = (h = c.submitButton) == null ? void 0 : h.elementProps) == null ? void 0 : F.icon, C = (w = (U = c.nextButton) == null ? void 0 : U.elementProps) == null ? void 0 : w.icon, f = (k = (M = c.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : k.icon, I = x({
156
156
  globalClasses: Y,
157
157
  moduleClasses: {
158
158
  base: p(u.navigationButton, u.previousButton),