@wix/form-elements 1.172.0 → 1.173.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 (107) hide show
  1. package/dist/component/{appointment-rac-DZ0SFXmL.js → appointment-rac-DIV9zgmZ.js} +80 -80
  2. package/dist/component/{bookings-address-rac-BW9grc77.js → bookings-address-rac-C5cT4gkX.js} +1 -1
  3. package/dist/component/{bookings-email-rac-D8gMaAfB.js → bookings-email-rac-CQEhRS7N.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CAjcs7b6.js → bookings-first-name-rac-BwdasJXd.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BhKZ1kku.js → bookings-header-rac-CWzKq3yr.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DpsMDuU0.js → bookings-last-name-rac-CoVWqEy5.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-BVdWmKS8.js → bookings-login-bar-rac-DwoI-iRQ.js} +4 -4
  8. package/dist/component/{bookings-phone-rac-DsqNi2mI.js → bookings-phone-rac-WAZU-1kD.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-elM4Ne3f.js → bookings-rich-text-rac-I5Uo-q87.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-BU4E73fD.js → checkbox-field-rac-CKbKBNcQ.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-6yJdIbP2.js → checkbox-group-field-headless-7PMj-zW6.js} +47 -47
  12. package/dist/component/{checkbox-group-field-rac-CojbCWSF.js → checkbox-group-field-rac-BZ-YgEYR.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-3qUVUc-C.js → checkbox-group-rac-CED8h4qI.js} +1 -1
  14. package/dist/component/{checkbox-rac-DwbTapd_.js → checkbox-rac-CbpEXMBz.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BL7XDZuP.js → contacts-address-rac-F3Ui7iJu.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DeJYIHAg.js → contacts-birthdate-rac-CcxRV3RQ.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BeImf5uc.js → contacts-company-rac-mDY20HzW.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CtacwrZ0.js → contacts-email-rac-CoBPNuCj.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CAdOqOOA.js → contacts-first-name-rac-DzbpBmNm.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-Db9mHzCW.js → contacts-last-name-rac-DEmV-MNE.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-W0OLEbzL.js → contacts-phone-rac-BlEpatWP.js} +1 -1
  22. package/dist/component/{contacts-position-rac-CV4Ibt4Z.js → contacts-position-rac-DlZahRQc.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CQ3Q1pjZ.js → contacts-subscribe-rac-LXCEPvXl.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-Dux-pk6r.js → contacts-tax-id-rac-DS0SDAtC.js} +1 -1
  25. package/dist/component/{date-availability-RkX-Qw7G.js → date-availability-DTFyrU8J.js} +1 -1
  26. package/dist/component/{date-input-field-rac-CYCT6qoa.js → date-input-field-rac-D7Pv-hqW.js} +62 -62
  27. package/dist/component/{date-input-rac-BkYZ7q_o.js → date-input-rac-BEsh54Gz.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-eMidYtsl.js → date-picker-field-rac-DJirD93a.js} +15 -15
  29. package/dist/component/{date-picker-rac-D23rxZcF.js → date-picker-rac-B1fUqj_w.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-BjIj4dXQ.js → date-time-input-field-rac-CPFaQUXF.js} +38 -38
  31. package/dist/component/{date-time-input-rac-BSGAdk9L.js → date-time-input-rac-CAozBO0e.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-Xmb5IKrb.js → dext-checkbox-group-rac-B0yqJoj8.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-2eA7y0ld.js → dext-checkbox-rac-yZaUdHz1.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CmLxVGGT.js → dext-date-picker-rac-AJ7XIW-h.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-Cd9nwSjb.js → dext-date-time-input-rac-CPs79sUY.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-BKdQ0nGS.js → dext-dropdown-rac-W2QzqPG4.js} +1 -1
  37. package/dist/component/{dext-email-rac-07zDPxyf.js → dext-email-rac-CCW1Dk1m.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DRvGuppY.js → dext-number-input-rac-BAInaxoF.js} +1 -1
  39. package/dist/component/{dext-phone-rac-CKtTVjFg.js → dext-phone-rac-CYYgZiFW.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-BsBmMufq.js → dext-radio-group-rac-Dqvmxoai.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-CcFSTAIh.js → dext-rating-input-rac-CWl7X0zW.js} +1 -1
  42. package/dist/component/{dext-tags-rac-CCTDlCvX.js → dext-tags-rac-BpAfPh55.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-Cif8po9h.js → dext-text-area-rac-CLTg8XXH.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-2118X4iF.js → dext-text-input-rac-BV-F-ZsP.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-DDImGkQe.js → dext-url-input-rac-B9wHRaZr.js} +1 -1
  46. package/dist/component/{donation-rac-Dnylss1d.js → donation-rac-Be4swKWD.js} +50 -50
  47. package/dist/component/{dropdown-field-rac-DDI4ZgZH.js → dropdown-field-rac-BFEB_WuX.js} +3 -3
  48. package/dist/component/{dropdown-rac-DX0Z3R_8.js → dropdown-rac-Dz7QtFVB.js} +1 -1
  49. package/dist/component/{ecom-address-rac-D9MeEQsk.js → ecom-address-rac-Bu6msDgo.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-DKJ9j5dj.js → ecom-subscription-checkbox-rac-BRovQqrM.js} +2 -2
  51. package/dist/component/{email-input-field-rac-DaKrmlwe.js → email-input-field-rac-EERVxm6G.js} +42 -42
  52. package/dist/component/{events-repeater-rac-DWrOLT0Y.js → events-repeater-rac-xs0pooBs.js} +49 -49
  53. package/dist/component/{events-rsvp-rac-YBTR1tR0.js → events-rsvp-rac-CMi-8EqK.js} +3 -3
  54. package/dist/component/{field-error-headless-jksFrezt.js → field-error-headless-DbFXeaud.js} +8 -8
  55. package/dist/component/{field-label-headless-BBvJAVxI.js → field-label-headless-CWOYHPsb.js} +11 -11
  56. package/dist/component/{file-upload-rac-CgdmfUZG.js → file-upload-rac-vbMTIdDc.js} +61 -61
  57. package/dist/component/{fixed-payment-rac-v6rKwzFs.js → fixed-payment-rac-BRk7ams_.js} +7 -7
  58. package/dist/component/{form-BsiK682r.js → form-BjeODFzx.js} +238 -237
  59. package/dist/component/form.css +1 -1
  60. package/dist/component/form.js +1 -1
  61. package/dist/component/{header-field-rac-BuXybl7K.js → header-field-rac-CQexwZn7.js} +2 -2
  62. package/dist/component/{header-rac-CDyaLosW.js → header-rac-CYbPDl4_.js} +1 -1
  63. package/dist/component/{image-choice-rac-BRlMroBw.js → image-choice-rac-DDvlaK6K.js} +15 -15
  64. package/dist/component/{index-BanOeCAF.js → index-B6wFpWpe.js} +4 -4
  65. package/dist/component/{index-y9URYGEE.js → index-Bs9ypEe2.js} +6 -6
  66. package/dist/component/{isObjectLike-BG9nJ-rx.js → isObjectLike-Xcw2hQQ6.js} +1 -1
  67. package/dist/component/{multiline-address-field-rac-DRAkxI1l.js → multiline-address-field-rac-CYJR-MUz.js} +209 -209
  68. package/dist/component/{multiline-address-rac-JjTzWsEb.js → multiline-address-rac-DO1j_w6S.js} +1 -1
  69. package/dist/component/{number-input-field-rac-QrouG7Hv.js → number-input-field-rac-C-qvd8v9.js} +18 -18
  70. package/dist/component/{number-input-rac-DGmE7cLv.js → number-input-rac-CQSaifZE.js} +1 -1
  71. package/dist/component/{password-rac-DeyY228m.js → password-rac-CqnbZtR_.js} +28 -28
  72. package/dist/component/{payment-input-rac-DmIennLi.js → payment-input-rac-CbOcztkp.js} +28 -28
  73. package/dist/component/{phone-input-field-rac-F7e74TGA.js → phone-input-field-rac-BQ187I2C.js} +55 -55
  74. package/dist/component/{phone-rac-CQfB2CQD.js → phone-rac-CbA2xqF3.js} +1 -1
  75. package/dist/component/{product-list-rac--GGG8vvO.js → product-list-rac-MxB9tRiE.js} +103 -103
  76. package/dist/component/{quiz-radio-group-rac-DF2C2vNq.js → quiz-radio-group-rac-IViaDVRW.js} +1 -1
  77. package/dist/component/{radio-button-module-classes-DmpNo6F2.js → radio-button-module-classes-jtnooKMO.js} +33 -33
  78. package/dist/component/{radio-group-field-rac-BGcPYfKO.js → radio-group-field-rac-g3SQGJPp.js} +4 -4
  79. package/dist/component/{radio-group-rac-CqysUMCE.js → radio-group-rac-D8wmzlbu.js} +1 -1
  80. package/dist/component/{rating-input-field-rac-D-ei917Y.js → rating-input-field-rac-BqPXKKdi.js} +15 -15
  81. package/dist/component/{rating-input-rac-a9zJ74fw.js → rating-input-rac-CeZIpOmm.js} +1 -1
  82. package/dist/component/{rich-content-rac.module-CvyLVlXL.js → rich-content-rac.module-BLgdpRh_.js} +5 -5
  83. package/dist/component/{rich-text-field-rac-vf19nvyw.js → rich-text-field-rac-BpSVobCQ.js} +6 -6
  84. package/dist/component/{rich-text-rac-Cx_wpoxC.js → rich-text-rac-DqpaqbFH.js} +1 -1
  85. package/dist/component/{service-dropdown-rac-DITzKQxd.js → service-dropdown-rac-DKgtga1t.js} +30 -30
  86. package/dist/component/{services-multi-choice-rac-BtisN0Aq.js → services-multi-choice-rac-CAyB0b4q.js} +9 -9
  87. package/dist/component/{signature-rac-DUeIoS5O.js → signature-rac-DC20YN4f.js} +97 -97
  88. package/dist/component/{submit-button-rac-C8h6zeTw.js → submit-button-rac-ClWtqIkR.js} +30 -30
  89. package/dist/component/{tags-field-rac-CjFuiB0n.js → tags-field-rac-DHM9k8uf.js} +18 -18
  90. package/dist/component/{tags-rac-BO7rwyLl.js → tags-rac-Clg50jwY.js} +1 -1
  91. package/dist/component/{text-area-field-rac-CgUx3nQ0.js → text-area-field-rac-B2qJZ6wR.js} +16 -16
  92. package/dist/component/{text-area-rac-WgXYXIaf.js → text-area-rac-BwsVk7u7.js} +1 -1
  93. package/dist/component/{text-input-field-rac-DaxWFha-.js → text-input-field-rac-BQbo-3Ly.js} +6 -6
  94. package/dist/component/{text-input-headless-hjuRJTZN.js → text-input-headless-WICGIHcN.js} +3 -3
  95. package/dist/component/{text-input-rac-BzumrJBj.js → text-input-rac-D7BRYDZr.js} +1 -1
  96. package/dist/component/{time-input-rac-2FEkpQ7M.js → time-input-rac-Dnp-0_Js.js} +22 -22
  97. package/dist/component/{url-input-field-rac-BZ9f8D8I.js → url-input-field-rac-MC13zKST.js} +19 -19
  98. package/dist/component/{url-input-rac-D-AVlxkD.js → url-input-rac-DfAtTmKv.js} +1 -1
  99. package/dist/component/{use-dropdown-option-class-name-DwAAtzgX.js → use-dropdown-option-class-name-CVUEosg4.js} +2 -2
  100. package/dist/component/{use-dropdown-trigger-class-name-D-6n9YVG.js → use-dropdown-trigger-class-name-BHLG7EB-.js} +25 -25
  101. package/dist/component/{use-element-state-class-name-C5auxwhj.js → use-element-state-class-name-BVJylHPn.js} +3 -3
  102. package/dist/component/{use-hoverable-input-class-name-Nd2jqfz4.js → use-hoverable-input-class-name-DO9ctJ81.js} +2 -2
  103. package/dist/component/{use-is-forced-open-dropdown-CKaHhCqp.js → use-is-forced-open-dropdown-Czuo32Nq.js} +8 -8
  104. package/dist/component/{use-service-options-base-CvluFheT.js → use-service-options-base-DUuGIm38.js} +1 -1
  105. package/dist/component/use-text-input-class-name-LEnNGX0a.js +6 -0
  106. package/package.json +2 -2
  107. package/dist/component/use-text-input-class-name-DGTlYJxC.js +0 -6
@@ -1,23 +1,23 @@
1
- import t, { useState as Y, useRef as H, useMemo as pe, useEffect as ne, useCallback as M, createContext as ge, useContext as _e } from "react";
1
+ import t, { useState as Q, useRef as H, useMemo as pe, useEffect as ne, useCallback as Z, createContext as ge, useContext as _e } from "react";
2
2
  import Le from "@wix/editor-react-components/AnimatedIcon";
3
3
  import { RicosViewer as he } from "@wix/ricos/viewer";
4
4
  import A from "classnames";
5
- import { bG as Ce, bU as re, bP as xe, aN as Ne, bS as ve, aG as ie, bT as De, bH as fe, bK as V, bM as ye, bE as Se, bD as Te, X as Be, al as Ie, b as we, P as Ae, Q as ce, R as Re, N as ue, M as de, I as Me, O as Ze, f as te } from "./form-BsiK682r.js";
5
+ import { bH as Ce, bV as re, bQ as xe, aO as Ne, bT as ve, aH as ie, bU as De, bI as fe, bL as V, bN as ye, bF as Se, bE as Te, X as Be, am as Ie, b as we, P as Ae, Q as ce, R as Re, N as ue, M as de, I as Ze, O as Me, f as te } from "./form-BjeODFzx.js";
6
6
  import { E as Oe } from "./error-icon-hZxQ6DEy.js";
7
7
  import { s as $ } from "./field-rac.module-ts2t4WUO.js";
8
- import { u as me } from "./use-element-state-class-name-C5auxwhj.js";
8
+ import { u as me } from "./use-element-state-class-name-BVJylHPn.js";
9
9
  import { DropZone as Ue, Text as ke, FileTrigger as Pe, Button as Ee, ProgressBar as He, VisuallyHidden as ze } from "react-aria-components";
10
- import { f as h, a as G } from "./find-child-C60k4CxG.js";
11
- import { b as Ve, a as Ke, D as je, E as qe } from "./field-error-headless-jksFrezt.js";
12
- import { L as $e } from "./field-label-headless-BBvJAVxI.js";
13
- const Ye = {
10
+ import { f as h, a as Y } from "./find-child-C60k4CxG.js";
11
+ import { b as Ve, a as je, D as qe, E as Ke } from "./field-error-headless-DbFXeaud.js";
12
+ import { L as $e } from "./field-label-headless-CWOYHPsb.js";
13
+ const Qe = {
14
14
  Video: "video/*",
15
15
  Image: "image/*",
16
16
  Audio: "audio/*",
17
17
  Document: ".ai, .cdr, .csv, .doc, .docb, .docx, .dot, .dotx, .dwg, .eps, .epub, .fla, .gpx, .ical, .icalendar, .ics, .ifb, .indd, .ipynb, .key, .kml, .kmz, .mobi, .mtf, .mtx, .numbers, .odg, .odp, .ods, .odt, .otp, .ots, .ott, .oxps, .pages, .pdf, .pdn, .pkg, .pot, .potx, .pps, .ppsx, .ppt, .pptx, .psd, .pub, .rtf, .sldx, .txt, .json, .vcf, .xcf, .xls, .xlsx, .xlt, .xltx, .xlw, .xps,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel",
18
18
  Archive: ".zip, .rar, .tar, .tar.gz, .gz, .gzip, .jar, .7z, .fgz, .webarchive",
19
19
  Model3D: ".gltf, .glb"
20
- }, Ge = (e) => {
20
+ }, Ye = (e) => {
21
21
  const { actions: n, formId: r } = Ce();
22
22
  return async (l, s, d) => {
23
23
  if (!(n != null && n.uploadFile) || !l.length)
@@ -43,8 +43,8 @@ const Ye = {
43
43
  return (await Promise.all(E)).filter((o) => o !== void 0);
44
44
  };
45
45
  };
46
- function Qe({ valueSliderLimit: e, value: n, explanationText: r, target: l, onChange: s, uploadFileFormats: d, onBlur: E, onFilesCleared: C }) {
47
- const [o, i] = Y(We(n)), [x, m] = Y(n || []), [p, c] = Y(), y = Ge(l), { t: N } = re(), g = xe().includes(Ne.BUTTONS_HOVER), { setFormStatus: T } = ve(), I = H(!1), B = H(s);
46
+ function We({ valueSliderLimit: e, value: n, explanationText: r, target: l, onChange: s, uploadFileFormats: d, onBlur: E, onFilesCleared: C }) {
47
+ const [o, i] = Q(Xe(n)), [x, m] = Q(n || []), [p, c] = Q(), y = Ye(l), { t: N } = re(), g = xe().includes(Ne.BUTTONS_HOVER), { setFormStatus: T } = ve(), I = H(!1), B = H(s);
48
48
  B.current = s;
49
49
  const v = pe(() => o.some((f) => f.state === "uploading"), [
50
50
  o
@@ -56,7 +56,7 @@ function Qe({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
56
56
  T,
57
57
  l
58
58
  ]);
59
- const u = M(() => {
59
+ const u = Z(() => {
60
60
  if (!o.length)
61
61
  return;
62
62
  const _ = o.filter((f) => f.state === "uploading").length;
@@ -72,11 +72,11 @@ function Qe({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
72
72
  }, [
73
73
  o,
74
74
  N
75
- ]), w = M(() => o.length ? o.some((f) => f.state === "uploading") ? u() : r || u() : r, [
75
+ ]), w = Z(() => o.length ? o.some((f) => f.state === "uploading") ? u() : r || u() : r, [
76
76
  o,
77
77
  r,
78
78
  u
79
- ]), S = M(async (_) => {
79
+ ]), S = Z(async (_) => {
80
80
  await y(_, ({ file: f, uploadedFile: L }) => {
81
81
  i((F) => F.map((b) => b.file === f ? {
82
82
  file: f,
@@ -98,7 +98,7 @@ function Qe({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
98
98
  }, [
99
99
  y,
100
100
  N
101
- ]), j = async (_) => {
101
+ ]), q = async (_) => {
102
102
  if (p && c(void 0), _) {
103
103
  if (o.length + _.length > e) {
104
104
  c(N("form.file-upload.error.upload-limit", {
@@ -126,9 +126,9 @@ function Qe({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
126
126
  const L = o.filter((F) => F !== f);
127
127
  i(L), L.length === 0 && C();
128
128
  }
129
- }, q = () => {
129
+ }, K = () => {
130
130
  p && c(void 0), E();
131
- }, Q = d.map((_) => Ye[_]).join(), J = M(() => {
131
+ }, W = d.map((_) => Qe[_]).join(), J = Z(() => {
132
132
  i([]), m([]);
133
133
  }, []);
134
134
  return De(J), {
@@ -137,13 +137,13 @@ function Qe({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
137
137
  hover: g,
138
138
  getExplanationText: w,
139
139
  getStatusText: u,
140
- handleChange: j,
140
+ handleChange: q,
141
141
  handleDelete: O,
142
- accept: Q,
143
- handleBlur: q
142
+ accept: W,
143
+ handleBlur: K
144
144
  };
145
145
  }
146
- function We(e = []) {
146
+ function Xe(e = []) {
147
147
  const n = e || [];
148
148
  try {
149
149
  return n.map((r) => ({
@@ -160,14 +160,14 @@ function We(e = []) {
160
160
  return [];
161
161
  }
162
162
  const Fe = /* @__PURE__ */ ge(void 0);
163
- function K() {
163
+ function j() {
164
164
  const e = _e(Fe);
165
165
  if (typeof e > "u")
166
166
  throw new Error("FileUpload components must be used within FileUpload");
167
167
  return e;
168
168
  }
169
169
  const z = ({ children: e, className: n }) => {
170
- const { ariaDescribedBy: r } = fe(), { disabled: l, hasError: s } = V(), { handleFileChange: d, limitReached: E } = K();
170
+ const { ariaDescribedBy: r } = fe(), { disabled: l, hasError: s } = V(), { handleFileChange: d, limitReached: E } = j();
171
171
  if (E)
172
172
  return null;
173
173
  const C = h(e, z.Title), o = h(e, z.Subtitle), i = h(e, z.Button);
@@ -191,29 +191,29 @@ const z = ({ children: e, className: n }) => {
191
191
  }, /* @__PURE__ */ t.createElement(ke, {
192
192
  slot: "label"
193
193
  }, C, o), i);
194
- }, Xe = ({ className: e, children: n }) => {
195
- const { limitReached: r } = K();
194
+ }, Ge = ({ className: e, children: n }) => {
195
+ const { limitReached: r } = j();
196
196
  return /* @__PURE__ */ t.createElement("p", {
197
197
  className: e
198
198
  }, n({
199
199
  limitReached: r
200
200
  }));
201
201
  }, Je = ({ className: e, children: n }) => {
202
- const { limitReached: r } = K(), { explanationText: l } = V();
202
+ const { limitReached: r } = j(), { explanationText: l } = V();
203
203
  return /* @__PURE__ */ t.createElement("p", {
204
204
  className: e
205
205
  }, l || n({
206
206
  limitReached: r
207
207
  }));
208
208
  }, oe = ({ className: e, children: n, "aria-roledescription": r, onHoverStart: l, onHoverEnd: s, onFocusChange: d }) => {
209
- const { ariaDescribedBy: E, inputId: C, labelId: o, errorId: i } = fe(), { disabled: x, required: m, onFocus: p, hasError: c, errorMessage: y } = V(), { handleFileChange: N, accept: Z, multiple: g, buttonRef: T, handleBlur: I, limitError: B, files: v } = K(), u = (v == null ? void 0 : v.some((S) => S.errorMessage)) ?? !1, w = !!(c || y || B || u);
209
+ const { ariaDescribedBy: E, inputId: C, labelId: o, errorId: i } = fe(), { disabled: x, required: m, onFocus: p, hasError: c, errorMessage: y } = V(), { handleFileChange: N, accept: M, multiple: g, buttonRef: T, handleBlur: I, limitError: B, files: v } = j(), u = (v == null ? void 0 : v.some((S) => S.errorMessage)) ?? !1, w = !!(c || y || B || u);
210
210
  return /* @__PURE__ */ t.createElement(Pe, {
211
- acceptedFileTypes: Z ? Z.split(",") : void 0,
211
+ acceptedFileTypes: M ? M.split(",") : void 0,
212
212
  allowsMultiple: g,
213
213
  onSelect: (S) => {
214
214
  if (S) {
215
- const j = Array.from(S), O = new DataTransfer();
216
- j.forEach((q) => O.items.add(q)), N(O.files);
215
+ const q = Array.from(S), O = new DataTransfer();
216
+ q.forEach((K) => O.items.add(K)), N(O.files);
217
217
  }
218
218
  }
219
219
  }, /* @__PURE__ */ t.createElement(Ee, {
@@ -245,19 +245,19 @@ const z = ({ children: e, className: n }) => {
245
245
  }, n);
246
246
  };
247
247
  oe.Text = et;
248
- z.Title = Xe;
248
+ z.Title = Ge;
249
249
  z.Subtitle = Je;
250
250
  z.Button = oe;
251
251
  const R = ({ children: e, className: n, ...r }) => {
252
252
  const { file: l, index: s } = r, d = l.file.name, E = h(e, R.Name), C = h(e, R.Remove), o = h(e, R.Spinner), i = h(e, R.Error);
253
253
  return /* @__PURE__ */ t.createElement("div", {
254
254
  className: n
255
- }, G(E, {
255
+ }, Y(E, {
256
256
  fileName: d
257
- }), l.state === "uploading" ? o : G(C, {
257
+ }), l.state === "uploading" ? o : Y(C, {
258
258
  index: s,
259
259
  fileName: d
260
- }), l.errorMessage && G(i, {
260
+ }), l.errorMessage && Y(i, {
261
261
  errorMessage: l.errorMessage
262
262
  }));
263
263
  }, tt = ({ className: e, ...n }) => {
@@ -266,7 +266,7 @@ const R = ({ children: e, className: n, ...r }) => {
266
266
  className: e
267
267
  }, r);
268
268
  }, nt = ({ className: e, "aria-label": n, children: r, ...l }) => {
269
- const { fileName: s, index: d } = l, { disabled: E } = V(), { handleDelete: C, fileRemoveButtonRefs: o } = K(), i = H(null);
269
+ const { fileName: s, index: d } = l, { disabled: E } = V(), { handleDelete: C, fileRemoveButtonRefs: o } = j(), i = H(null);
270
270
  ne(() => {
271
271
  const m = o.current, p = s;
272
272
  return m[p] = i, () => {
@@ -290,7 +290,7 @@ const R = ({ children: e, className: n, ...r }) => {
290
290
  }, r);
291
291
  }, be = ({ className: e, children: n, ...r }) => {
292
292
  const { errorMessage: l } = r;
293
- return l ? /* @__PURE__ */ t.createElement(Ke, {
293
+ return l ? /* @__PURE__ */ t.createElement(je, {
294
294
  value: l
295
295
  }, /* @__PURE__ */ t.createElement("div", {
296
296
  className: e,
@@ -307,20 +307,20 @@ R.Spinner = rt;
307
307
  R.Error = be;
308
308
  be.Text = Ve;
309
309
  const le = ({ children: e, className: n }) => {
310
- const { files: r } = K(), l = h(e, le.File);
310
+ const { files: r } = j(), l = h(e, le.File);
311
311
  return !r || r.length === 0 ? null : /* @__PURE__ */ t.createElement("div", {
312
312
  className: n
313
- }, r.map((s, d) => G(l, {
313
+ }, r.map((s, d) => Y(l, {
314
314
  key: s.file.name || d,
315
315
  file: s,
316
316
  index: d
317
317
  })));
318
318
  };
319
319
  le.File = R;
320
- const X = (e) => e.file.name, a = ({ children: e }) => {
321
- const { t: n } = re(), { id: r, value: l, onChange: s, uploadFileFormats: d, valueSliderLimit: E, target: C, explanationText: o, onBlur: i, hasError: x, errorMessage: m, FieldLayout: p } = V(), c = H(null), y = H({}), N = H(!1), Z = M(() => {
320
+ const G = (e) => e.file.name, a = ({ children: e }) => {
321
+ const { t: n } = re(), { id: r, value: l, onChange: s, uploadFileFormats: d, valueSliderLimit: E, target: C, explanationText: o, onBlur: i, hasError: x, errorMessage: m, FieldLayout: p } = V(), c = H(null), y = H({}), N = H(!1), M = Z(() => {
322
322
  c.current ? c.current.focus() : N.current = !0;
323
- }, []), { files: g, limitError: T, hover: I, getExplanationText: B, getStatusText: v, handleBlur: u, handleChange: w, handleDelete: S, accept: j } = Qe({
323
+ }, []), { files: g, limitError: T, hover: I, getExplanationText: B, getStatusText: v, handleBlur: u, handleChange: w, handleDelete: S, accept: q } = We({
324
324
  valueSliderLimit: E,
325
325
  value: l,
326
326
  explanationText: o,
@@ -328,11 +328,11 @@ const X = (e) => e.file.name, a = ({ children: e }) => {
328
328
  onChange: s,
329
329
  uploadFileFormats: d,
330
330
  onBlur: i,
331
- onFilesCleared: Z
332
- }), O = M((k) => {
331
+ onFilesCleared: M
332
+ }), O = Z((k) => {
333
333
  var se;
334
- const W = g[k], P = X(W);
335
- g.length > 1 && ((se = (g.filter((ee) => X(ee) !== P).map((ee) => y.current[X(ee)]).find(Boolean) ?? c).current) == null || se.focus()), S(k);
334
+ const X = g[k], P = G(X);
335
+ g.length > 1 && ((se = (g.filter((ee) => G(ee) !== P).map((ee) => y.current[G(ee)]).find(Boolean) ?? c).current) == null || se.focus()), S(k);
336
336
  }, [
337
337
  S,
338
338
  g
@@ -342,14 +342,14 @@ const X = (e) => e.file.name, a = ({ children: e }) => {
342
342
  }, [
343
343
  g
344
344
  ]);
345
- const q = E > 1, Q = g.length >= E, J = pe(() => ({
345
+ const K = E > 1, W = g.length >= E, J = pe(() => ({
346
346
  handleFileChange: w,
347
347
  handleBlur: u,
348
348
  handleDelete: O,
349
349
  files: g,
350
- accept: j,
351
- limitReached: Q,
352
- multiple: q,
350
+ accept: q,
351
+ limitReached: W,
352
+ multiple: K,
353
353
  getExplanationText: B,
354
354
  getStatusText: v,
355
355
  hover: I,
@@ -361,23 +361,23 @@ const X = (e) => e.file.name, a = ({ children: e }) => {
361
361
  u,
362
362
  O,
363
363
  g,
364
- j,
365
- Q,
366
364
  q,
365
+ W,
366
+ K,
367
367
  B,
368
368
  v,
369
369
  I,
370
370
  T
371
371
  ]), _ = h(e, a.Label), f = h(e, a.DropZone), L = h(e, a.Button), F = h(e, a.Explanation), b = h(e, a.Files), U = h(e, a.Description), ae = h(e, a.Error);
372
372
  return ye(() => {
373
- var k, W;
373
+ var k, X;
374
374
  if (c.current) {
375
375
  c.current.focus({
376
376
  preventScroll: !0
377
377
  });
378
378
  return;
379
379
  }
380
- (W = (k = g.map((P) => y.current[X(P)]).find((P) => P == null ? void 0 : P.current)) == null ? void 0 : k.current) == null || W.focus({
380
+ (X = (k = g.map((P) => y.current[G(P)]).find((P) => P == null ? void 0 : P.current)) == null ? void 0 : k.current) == null || X.focus({
381
381
  preventScroll: !0
382
382
  });
383
383
  }, r), /* @__PURE__ */ t.createElement(Fe.Provider, {
@@ -386,7 +386,7 @@ const X = (e) => e.file.name, a = ({ children: e }) => {
386
386
  fieldId: r,
387
387
  renderLabel: () => _,
388
388
  renderInput: () => f ?? L,
389
- renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, G(ae, {
389
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, Y(ae, {
390
390
  hasError: !!(x || T),
391
391
  errorMessage: T ?? m
392
392
  }), /* @__PURE__ */ t.createElement(ze, {
@@ -398,7 +398,7 @@ const X = (e) => e.file.name, a = ({ children: e }) => {
398
398
  })), F, b, U)
399
399
  }));
400
400
  }, ot = ({ className: e, showUploadStatusOnly: n }) => {
401
- const { files: r, getExplanationText: l, getStatusText: s } = K(), d = n ? s() : l();
401
+ const { files: r, getExplanationText: l, getStatusText: s } = j(), d = n ? s() : l();
402
402
  return r.length === 1 || !d ? null : /* @__PURE__ */ t.createElement("p", {
403
403
  className: e
404
404
  }, d);
@@ -408,8 +408,8 @@ a.DropZone = z;
408
408
  a.Button = oe;
409
409
  a.Explanation = ot;
410
410
  a.Files = le;
411
- a.Description = je;
412
- a.Error = qe;
411
+ a.Description = qe;
412
+ a.Error = Ke;
413
413
  const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
414
414
  viewBox: "0 0 24 24",
415
415
  width: 24,
@@ -496,15 +496,15 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
496
496
  hover: D.dropZoneHover
497
497
  }
498
498
  }), d = me({
499
- globalClasses: Ze,
499
+ globalClasses: Me,
500
500
  moduleClasses: {
501
501
  base: D.button,
502
502
  hover: D.buttonHover
503
503
  }
504
- }), E = (v = (B = (I = (T = Se().fileUpload) == null ? void 0 : T.elementProps) == null ? void 0 : I.uploadButton) == null ? void 0 : B.elementProps) == null ? void 0 : v.icon, { wix: C, className: o, ...i } = E ?? {}, x = Te(te.FILE_UPLOAD, te.UPLOAD_BUTTON, te.UPLOAD_BUTTON_LABEL), m = H(null), [p, c] = Y(!1), [y, N] = Y(!1), Z = M(() => {
504
+ }), E = (v = (B = (I = (T = Se().fileUpload) == null ? void 0 : T.elementProps) == null ? void 0 : I.uploadButton) == null ? void 0 : B.elementProps) == null ? void 0 : v.icon, { wix: C, className: o, ...i } = E ?? {}, x = Te(te.FILE_UPLOAD, te.UPLOAD_BUTTON, te.UPLOAD_BUTTON_LABEL), m = H(null), [p, c] = Q(!1), [y, N] = Q(!1), M = Z(() => {
505
505
  var u;
506
506
  c(!0), (u = m.current) == null || u.runAnimationForward();
507
- }, []), g = M(() => {
507
+ }, []), g = Z(() => {
508
508
  var u;
509
509
  c(!1), (u = m.current) == null || u.runAnimationBackward();
510
510
  }, []);
@@ -531,7 +531,7 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
531
531
  isInteractive: l
532
532
  }),
533
533
  "aria-roledescription": e("file-upload.aria-roledescription"),
534
- onHoverStart: Z,
534
+ onHoverStart: M,
535
535
  onHoverEnd: g,
536
536
  onFocusChange: N
537
537
  }, i.svg ? /* @__PURE__ */ t.createElement(Le, {
@@ -560,7 +560,7 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
560
560
  }, /* @__PURE__ */ t.createElement(st, null)), /* @__PURE__ */ t.createElement(a.Files.File.Error, {
561
561
  className: A(de, $.error, D.fileError)
562
562
  }, /* @__PURE__ */ t.createElement(at, null), /* @__PURE__ */ t.createElement(a.Files.File.Error.Text, null)))), /* @__PURE__ */ t.createElement(a.Description, {
563
- className: A(Me, $.description)
563
+ className: A(Ze, $.description)
564
564
  }, xt), /* @__PURE__ */ t.createElement(a.Error, {
565
565
  className: A(de, $.error)
566
566
  }, /* @__PURE__ */ t.createElement(Oe, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)));
@@ -1,24 +1,24 @@
1
1
  import t, { useMemo as _ } from "react";
2
2
  import { RicosViewer as A } from "@wix/ricos/viewer";
3
3
  import u from "classnames";
4
- import { bK as C, bC as I, bH as P, X as S, S as x, I as N } from "./form-BsiK682r.js";
4
+ import { bL as I, bD as C, bI as P, X as S, S as x, I as N } from "./form-BjeODFzx.js";
5
5
  import { f as c, a as R } from "./find-child-C60k4CxG.js";
6
6
  import { f as O } from "./format-currency-BwShJ9vM.js";
7
- import { D as v, E as M } from "./field-error-headless-jksFrezt.js";
8
- import { L as g } from "./field-label-headless-BBvJAVxI.js";
7
+ import { D as v, E as M } from "./field-error-headless-DbFXeaud.js";
8
+ import { L as g } from "./field-label-headless-CWOYHPsb.js";
9
9
  import { s as F } from "./field-rac.module-ts2t4WUO.js";
10
10
  const e = ({ children: r }) => {
11
11
  var p;
12
- const { id: a, validation: n, FieldLayout: l } = C(), { currency: o, regionalFormat: m } = I(), s = _(() => {
12
+ const { id: a, validation: n, FieldLayout: l } = I(), { currency: o, regionalFormat: m } = C(), s = _(() => {
13
13
  var d, E, f;
14
14
  return (f = (E = (d = n == null ? void 0 : n.predefined) == null ? void 0 : d.paymentOptions) == null ? void 0 : E.products) == null ? void 0 : f[0];
15
15
  }, [
16
16
  n
17
- ]), i = (p = s == null ? void 0 : s.fixedPriceOptions) == null ? void 0 : p.price, y = c(r, e.Label), L = c(r, e.Amount), b = c(r, e.Description), D = c(r, e.Error);
17
+ ]), i = (p = s == null ? void 0 : s.fixedPriceOptions) == null ? void 0 : p.price, L = c(r, e.Label), y = c(r, e.Amount), b = c(r, e.Description), D = c(r, e.Error);
18
18
  return /* @__PURE__ */ t.createElement(l, {
19
19
  fieldId: a,
20
- renderLabel: () => y,
21
- renderInput: () => R(L, {
20
+ renderLabel: () => L,
21
+ renderInput: () => R(y, {
22
22
  price: i,
23
23
  currencyCode: o == null ? void 0 : o.code,
24
24
  locale: m