@wix/form-elements 1.217.0 → 1.219.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-BwV-BiuM.js → appointment-rac-BHOy_R7-.js} +4 -4
  2. package/dist/component/{bookings-address-rac-60s8mINA.js → bookings-address-rac-BCrQv66p.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CD180ofz.js → bookings-email-rac-DmRfdxfb.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DPj9TLDZ.js → bookings-first-name-rac-BXO3f2gd.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DWAqHAC3.js → bookings-header-rac-CO6AOevd.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-C-0GchtO.js → bookings-last-name-rac-BJBEASFi.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DpVUsgYV.js → bookings-login-bar-rac-BIAIfq4E.js} +5 -5
  8. package/dist/component/{bookings-phone-rac-DSw3Wpi6.js → bookings-phone-rac-Ccj4N7sU.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BcfuuhqF.js → bookings-rich-text-rac-B3HZ904h.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CxN4DXcm.js → checkbox-field-rac-CMLQboNZ.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-Cxytn3cY.js → checkbox-group-field-headless-BoPu_anP.js} +41 -41
  12. package/dist/component/{checkbox-group-field-rac-COySLANT.js → checkbox-group-field-rac-DDkB4mAS.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-C36q50g-.js → checkbox-group-rac-CYRjp2pd.js} +1 -1
  14. package/dist/component/{checkbox-rac-CPRna7wo.js → checkbox-rac-CZtOcpN3.js} +1 -1
  15. package/dist/component/{contacts-address-rac-C9WfyF_C.js → contacts-address-rac-CTcU_s2X.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DI_n6KW2.js → contacts-birthdate-rac-CfoYd88-.js} +1 -1
  17. package/dist/component/{contacts-company-rac-C2L3jLDV.js → contacts-company-rac-BFa1_U3K.js} +1 -1
  18. package/dist/component/{contacts-email-rac-BXxC1EQz.js → contacts-email-rac-DnAo-YRv.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DDNYc6DW.js → contacts-first-name-rac-CXaZzVt1.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-C8kg5uC1.js → contacts-last-name-rac-DfpXadTk.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-GBwlIMQi.js → contacts-phone-rac-CCwC37Ud.js} +1 -1
  22. package/dist/component/{contacts-position-rac-sI-eyBLH.js → contacts-position-rac-CvMNYTKL.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DI3nlzX4.js → contacts-subscribe-rac-vL2jR6hR.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-CRq4rhb6.js → contacts-tax-id-rac-CrFhrlkk.js} +1 -1
  25. package/dist/component/{date-availability-17HTB6Bn.js → date-availability-5zvsa_GI.js} +1 -1
  26. package/dist/component/{date-input-field-rac-BLO1qQSi.js → date-input-field-rac-BQuCwFBz.js} +43 -43
  27. package/dist/component/{date-input-rac-Zryc6o9F.js → date-input-rac-DKzwySbG.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-COGESH_j.js → date-picker-field-rac-D-B3bNeU.js} +35 -35
  29. package/dist/component/{date-picker-rac-BR5X3Gg4.js → date-picker-rac-DjYsBhgo.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-CKbGhDKq.js → date-time-input-field-rac-BECpkgB2.js} +30 -30
  31. package/dist/component/{date-time-input-rac-DnP-sVbv.js → date-time-input-rac-FbqGdzfB.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-O9bQHdjz.js → dext-checkbox-group-rac-BtSRkEFa.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-3Eqa1NNz.js → dext-checkbox-rac-BnC_NNyy.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-BYjvDil-.js → dext-date-picker-rac-okrwxNz9.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BLX3xG9x.js → dext-date-time-input-rac-DHKRYBUe.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-BwpbF2-Z.js → dext-dropdown-rac-1T_Ufw_J.js} +1 -1
  37. package/dist/component/{dext-email-rac-DUNmxVKy.js → dext-email-rac-BY3bKE0q.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-D2rZrzXe.js → dext-number-input-rac-CFnKXD1l.js} +1 -1
  39. package/dist/component/{dext-phone-rac-C9dvhFCl.js → dext-phone-rac-LT9InJXw.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-D8mUfv1Y.js → dext-radio-group-rac-BUebk1mz.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-BY8MRBDl.js → dext-rating-input-rac-Drk4nKuW.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DBKnRkUI.js → dext-tags-rac-BcW2-hht.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-BYVMZ7HH.js → dext-text-area-rac-ew2HEDVz.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-B6Ga232R.js → dext-text-input-rac-BhhGEp-y.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-Cgu1URth.js → dext-url-input-rac-DKPl-POV.js} +1 -1
  46. package/dist/component/{donation-rac-DL1TnDAO.js → donation-rac-B9w7zHLs.js} +50 -50
  47. package/dist/component/{dropdown-field-rac-KYozl4DF.js → dropdown-field-rac-CyIgQ8Wg.js} +3 -3
  48. package/dist/component/{dropdown-rac-DiqI7QHS.js → dropdown-rac-D4zhCab8.js} +1 -1
  49. package/dist/component/{ecom-address-rac-Cmb0daDG.js → ecom-address-rac-Cgc5vi9N.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-B7AuYQA2.js → ecom-subscription-checkbox-rac-Ci19HUzq.js} +2 -2
  51. package/dist/component/{email-input-field-rac-DocV1aB9.js → email-input-field-rac-DX-z3AgN.js} +29 -29
  52. package/dist/component/{events-repeater-rac-B0Qqfo8D.js → events-repeater-rac-XGxIXTW0.js} +29 -29
  53. package/dist/component/{events-rsvp-rac-fv3hIzAL.js → events-rsvp-rac-CMEcer8W.js} +3 -3
  54. package/dist/component/{field-error-headless-Dfvu9FuO.js → field-error-headless-fX6PeZaI.js} +1 -1
  55. package/dist/component/{field-label-headless-Cxyl3wGC.js → field-label-headless-CoLjciGG.js} +5 -5
  56. package/dist/component/{file-upload-rac-Je_--JfX.js → file-upload-rac-N6_i0ky0.js} +88 -88
  57. package/dist/component/{fixed-payment-rac-BnXYEIDe.js → fixed-payment-rac-DB6BtjkX.js} +7 -7
  58. package/dist/component/{form-a7SUDn8q.js → form-cgY_BDTU.js} +1444 -1426
  59. package/dist/component/form.js +1 -1
  60. package/dist/component/{header-field-rac-D6gL7ZE_.js → header-field-rac-CwNoeHks.js} +2 -2
  61. package/dist/component/{header-rac-DEkEGPwy.js → header-rac-DefKb4Vd.js} +1 -1
  62. package/dist/component/{image-choice-rac-Br7ZpUIc.js → image-choice-rac-CZFYVSzP.js} +25 -25
  63. package/dist/component/{index-nfuicG4V.js → index-D1ybDmS5.js} +2 -2
  64. package/dist/component/{index-CCtGcc8K.js → index-DUVXPUGc.js} +4 -4
  65. package/dist/component/{isObjectLike-zLoHjg3a.js → isObjectLike-93vxyYs1.js} +1 -1
  66. package/dist/component/multiline-address-field-rac-BN_Tnrno.js +1738 -0
  67. package/dist/component/{multiline-address-rac-CyM0O2ZV.js → multiline-address-rac-CoF0BwJI.js} +1 -1
  68. package/dist/component/{number-input-field-rac-orHx_sCp.js → number-input-field-rac-BVdfzTwW.js} +21 -21
  69. package/dist/component/{number-input-rac-CF5v19rL.js → number-input-rac-D-A2ybtN.js} +1 -1
  70. package/dist/component/{password-rac-BSWihZvF.js → password-rac-CbUBNreW.js} +26 -26
  71. package/dist/component/{payment-input-rac-CeAz10YA.js → payment-input-rac-BXdDXgXp.js} +46 -46
  72. package/dist/component/{phone-input-field-rac-BefHQnSh.js → phone-input-field-rac-CjmpG7p9.js} +57 -57
  73. package/dist/component/{phone-rac-C5jSEw_g.js → phone-rac-D3g5Pi2p.js} +1 -1
  74. package/dist/component/{product-list-rac-C0UIu3qw.js → product-list-rac-gJvJaUnQ.js} +35 -35
  75. package/dist/component/{quiz-radio-group-rac-Bya6uEoi.js → quiz-radio-group-rac-YCKwAv5G.js} +1 -1
  76. package/dist/component/{radio-button-module-classes-YEfiQQtW.js → radio-button-module-classes-2nfcqSJp.js} +15 -15
  77. package/dist/component/{radio-group-field-rac-DZWxn-QY.js → radio-group-field-rac-BBYaCpeZ.js} +4 -4
  78. package/dist/component/{radio-group-rac-DsL2Ttyk.js → radio-group-rac-fYuYtO48.js} +1 -1
  79. package/dist/component/{rating-input-field-rac-BioYAy-_.js → rating-input-field-rac-sPYk1nWc.js} +20 -20
  80. package/dist/component/{rating-input-rac-DahZMbKa.js → rating-input-rac-CiWqxkPO.js} +1 -1
  81. package/dist/component/{rich-content-rac.module-pvsjrr7Y.js → rich-content-rac.module-BjcbV5CK.js} +5 -5
  82. package/dist/component/{rich-text-field-rac-H-mxitKA.js → rich-text-field-rac-DY0vRG7M.js} +4 -4
  83. package/dist/component/{rich-text-rac-CPfXGilA.js → rich-text-rac-BngE_MAC.js} +1 -1
  84. package/dist/component/{service-dropdown-rac-C2qfLOFr.js → service-dropdown-rac-Db53P8Fm.js} +13 -13
  85. package/dist/component/{services-multi-choice-rac-D7-sJi_t.js → services-multi-choice-rac-Cr791rTd.js} +9 -9
  86. package/dist/component/{signature-rac-DuQuR2U3.js → signature-rac-BCNYIwad.js} +41 -41
  87. package/dist/component/{submit-button-rac-DrUDtzCX.js → submit-button-rac-CyyEQGsz.js} +10 -10
  88. package/dist/component/{tags-field-rac-D8gyv5Kk.js → tags-field-rac-k3HHiR5C.js} +24 -24
  89. package/dist/component/{tags-rac-Be588VqA.js → tags-rac-nOXYrsHv.js} +1 -1
  90. package/dist/component/{text-area-field-rac-hezqhMgQ.js → text-area-field-rac-CwpxShM0.js} +22 -22
  91. package/dist/component/{text-area-rac-B_KUlOes.js → text-area-rac-CkKcWyW5.js} +1 -1
  92. package/dist/component/{text-input-field-rac-BWRz4111.js → text-input-field-rac-DvIwNwn3.js} +3 -3
  93. package/dist/component/{text-input-headless-BUNQFfZw.js → text-input-headless-vfGxjFpa.js} +9 -9
  94. package/dist/component/{text-input-rac-DdfHXZ8B.js → text-input-rac-DoVI2HNp.js} +1 -1
  95. package/dist/component/{time-input-rac-CUTavG2g.js → time-input-rac-DPbbdnl3.js} +16 -16
  96. package/dist/component/{url-input-field-rac-CG5yrtux.js → url-input-field-rac-CiZi4oVe.js} +20 -20
  97. package/dist/component/{url-input-rac-DMw4tPKk.js → url-input-rac-C-IvLpA8.js} +1 -1
  98. package/dist/component/{use-dropdown-option-class-name-CHW3T4PQ.js → use-dropdown-option-class-name-CMgoymWE.js} +2 -2
  99. package/dist/component/{use-dropdown-trigger-class-name-6UsjW0rS.js → use-dropdown-trigger-class-name-BH0PyTH_.js} +24 -24
  100. package/dist/component/{use-element-state-class-name-YRDhi6Zr.js → use-element-state-class-name-DiZjY9WE.js} +1 -1
  101. package/dist/component/{use-hoverable-input-class-name-arCOozPK.js → use-hoverable-input-class-name-QpNEvrdn.js} +2 -2
  102. package/dist/component/{use-is-forced-open-dropdown-NJIAuz_W.js → use-is-forced-open-dropdown-CHh9nGJz.js} +4 -4
  103. package/dist/component/{use-service-options-base-nhf-7Ope.js → use-service-options-base-BGB82e2d.js} +4 -4
  104. package/dist/component/use-text-input-class-name-_CjB7lhB.js +6 -0
  105. package/package.json +2 -2
  106. package/dist/component/multiline-address-field-rac-Bgfked1m.js +0 -1664
  107. package/dist/component/use-text-input-class-name-C9496S5f.js +0 -6
@@ -1,16 +1,16 @@
1
- import t, { useState as q, useMemo as T, useCallback as B, useRef as P } from "react";
1
+ import t, { useState as q, useMemo as T, useCallback as B, useRef as M } from "react";
2
2
  import D from "classnames";
3
3
  import { NumberField as z, CheckboxField as Q, CheckboxButton as W, Group as Y, Input as Z, Button as k } from "react-aria-components";
4
- import { bS as j, bT as w, bI as U, bN as $, b8 as ee, bM as O, bJ as H, bO as J, a$ as te, aP as se, ah as ne, aj as oe, al as re, ai as ae, ak as le } from "./form-a7SUDn8q.js";
4
+ import { bT as j, bU as w, bJ as U, bO as $, b8 as ee, bN as O, bK as H, bP as K, a$ as te, aP as se, ah as ne, aj as oe, al as re, ai as ae, ak as le } from "./form-cgY_BDTU.js";
5
5
  import { f as C, a as R } from "./find-child-C60k4CxG.js";
6
- import { L as ce } from "./field-label-headless-Cxyl3wGC.js";
6
+ import { L as ce } from "./field-label-headless-CoLjciGG.js";
7
7
  import { S as ue } from "./selection-indicator-XQ8MYHUQ.js";
8
8
  import { u as me } from "./use-invoke-callback-UH73A_J3.js";
9
- import { C as M } from "./chevron-down-icon-CcpVm6B-.js";
9
+ import { C as P } from "./chevron-down-icon-CcpVm6B-.js";
10
10
  import { C as ie } from "./checkbox-indicator-module-classes-DOxE4UQg.js";
11
11
  import { s as x } from "./field-rac.module-DcyJyi2B.js";
12
- import { u as de } from "./use-element-state-class-name-YRDhi6Zr.js";
13
- import { u as Ee } from "./use-hoverable-input-class-name-arCOozPK.js";
12
+ import { u as de } from "./use-element-state-class-name-DiZjY9WE.js";
13
+ import { u as Ee } from "./use-hoverable-input-class-name-QpNEvrdn.js";
14
14
  const pe = [], be = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = pe, validation: c }) => {
15
15
  const [i, E] = q((o == null ? void 0 : o.length) || 0), u = T(() => o ?? [], [
16
16
  o
@@ -30,7 +30,7 @@ const pe = [], be = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
30
30
  a,
31
31
  e
32
32
  ]), I = T(() => l.reduce((b, L) => {
33
- const [A, N] = L.errorPath.split("/"), h = parseInt(A, 10);
33
+ const [S, N] = L.errorPath.split("/"), h = parseInt(S, 10);
34
34
  return b[h] || (b[h] = []), b[h].push({
35
35
  ...L,
36
36
  errorPath: N
@@ -41,18 +41,18 @@ const pe = [], be = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
41
41
  const L = Number.isNaN(b) ? 0 : Math.min(Math.max(b, 0), F);
42
42
  E(L), n == null || n(Array.from({
43
43
  length: L
44
- }, (A, N) => u[N] ?? {}));
44
+ }, (S, N) => u[N] ?? {}));
45
45
  }, [
46
46
  F,
47
47
  u,
48
48
  n
49
- ]), v = B((b) => (L, A) => {
49
+ ]), v = B((b) => (L, S) => {
50
50
  const N = Array.from({
51
51
  length: i
52
52
  }, (h, X) => u[X] ?? {});
53
53
  N[b] = {
54
54
  ...N[b],
55
- [L]: A
55
+ [L]: S
56
56
  }, n == null || n(N);
57
57
  }, [
58
58
  i,
@@ -95,7 +95,7 @@ const pe = [], be = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
95
95
  })),
96
96
  renderDescription: () => null
97
97
  });
98
- }, K = ({ className: e }) => /* @__PURE__ */ t.createElement(ce, {
98
+ }, J = ({ className: e }) => /* @__PURE__ */ t.createElement(ce, {
99
99
  className: e
100
100
  }, null), g = ({ children: e, className: s, ...a }) => {
101
101
  const { guestLimit: o, guestCount: n, onGuestCountChange: l } = a, { label: c, disabled: i, readOnly: E, onBlur: u, onFocus: p } = O(), G = me(u), d = C(e, g.Label), m = C(e, g.Control);
@@ -120,8 +120,8 @@ const pe = [], be = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
120
120
  isReadOnly: o
121
121
  }, n, c, l);
122
122
  }, _e = ({ className: e }) => {
123
- const { id: s } = O(), { inputId: a, ariaDescribedBy: o } = H(), n = P(null);
124
- return J(() => {
123
+ const { id: s } = O(), { inputId: a, ariaDescribedBy: o } = H(), n = M(null);
124
+ return K(() => {
125
125
  var l;
126
126
  (l = n.current) == null || l.focus({
127
127
  preventScroll: !0
@@ -139,15 +139,15 @@ const pe = [], be = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
139
139
  }, e), Fe = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(k, {
140
140
  slot: "increment",
141
141
  className: s
142
- }, e), S = ({ children: e, className: s, ...a }) => {
143
- const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: i, readOnly: E, onBlur: u, onFocus: p } = O(), { inputId: G, ariaDescribedBy: d } = H(), m = P(null);
144
- J(() => {
142
+ }, e), A = ({ children: e, className: s, ...a }) => {
143
+ const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: i, readOnly: E, onBlur: u, onFocus: p } = O(), { inputId: G, ariaDescribedBy: d } = H(), m = M(null);
144
+ K(() => {
145
145
  var _;
146
146
  (_ = m.current) == null || _.focus({
147
147
  preventScroll: !0
148
148
  });
149
149
  }, l);
150
- const F = C(e, S.Input), y = C(e, S.Label), I = B((_) => {
150
+ const F = C(e, A.Input), y = C(e, A.Label), I = B((_) => {
151
151
  n(_ ? 1 : 0);
152
152
  }, [
153
153
  n
@@ -222,25 +222,25 @@ const pe = [], be = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
222
222
  fieldActions: u
223
223
  })));
224
224
  };
225
- g.Label = K;
225
+ g.Label = J;
226
226
  g.Control = Ge;
227
227
  g.Input = _e;
228
228
  g.Decrement = fe;
229
229
  g.Increment = Fe;
230
- S.Input = ue;
231
- S.Label = Le;
230
+ A.Input = ue;
231
+ A.Label = Le;
232
232
  V.Guest = Ne;
233
- r.Label = K;
233
+ r.Label = J;
234
234
  r.GuestCount = g;
235
- r.GuestToggle = S;
235
+ r.GuestToggle = A;
236
236
  r.Guests = V;
237
- const Ie = "_container_xcjm5_1", Re = "_count_xcjm5_8", Oe = "_toggle_xcjm5_14", ye = "_countLabel_xcjm5_18", Se = "_countGroup_xcjm5_22", Ae = "_increment_xcjm5_32", he = "_decrement_xcjm5_33", f = {
237
+ const Ie = "_container_xcjm5_1", Re = "_count_xcjm5_8", Oe = "_toggle_xcjm5_14", ye = "_countLabel_xcjm5_18", Ae = "_countGroup_xcjm5_22", Se = "_increment_xcjm5_32", he = "_decrement_xcjm5_33", f = {
238
238
  container: Ie,
239
239
  count: Re,
240
240
  toggle: Oe,
241
241
  countLabel: ye,
242
- countGroup: Se,
243
- increment: Ae,
242
+ countGroup: Ae,
243
+ increment: Se,
244
244
  decrement: he
245
245
  }, Te = () => {
246
246
  const e = Ee(ae, [
@@ -261,13 +261,13 @@ const Ie = "_container_xcjm5_1", Re = "_count_xcjm5_8", Oe = "_toggle_xcjm5_14",
261
261
  className: x.innerInput
262
262
  }), /* @__PURE__ */ t.createElement(r.GuestCount.Increment, {
263
263
  className: f.increment
264
- }, /* @__PURE__ */ t.createElement(M, {
264
+ }, /* @__PURE__ */ t.createElement(P, {
265
265
  style: {
266
266
  transform: "rotate(180deg)"
267
267
  }
268
268
  })), /* @__PURE__ */ t.createElement(r.GuestCount.Decrement, {
269
269
  className: f.decrement
270
- }, /* @__PURE__ */ t.createElement(M, null)))), /* @__PURE__ */ t.createElement(r.GuestToggle, {
270
+ }, /* @__PURE__ */ t.createElement(P, null)))), /* @__PURE__ */ t.createElement(r.GuestToggle, {
271
271
  className: D(x.checkbox, f.toggle)
272
272
  }, /* @__PURE__ */ t.createElement(r.GuestToggle.Input, {
273
273
  className: s
@@ -276,7 +276,7 @@ const Ie = "_container_xcjm5_1", Re = "_count_xcjm5_8", Oe = "_toggle_xcjm5_14",
276
276
  })), /* @__PURE__ */ t.createElement(r.Guests, {
277
277
  className: f.container
278
278
  }, /* @__PURE__ */ t.createElement(r.Guests.Guest, null)));
279
- }, Je = () => /* @__PURE__ */ t.createElement(Te, null);
279
+ }, Ke = () => /* @__PURE__ */ t.createElement(Te, null);
280
280
  export {
281
- Je as EventsRepeaterRAC
281
+ Ke as EventsRepeaterRAC
282
282
  };
@@ -1,12 +1,12 @@
1
1
  import t from "react";
2
2
  import { RicosViewer as m } from "@wix/ricos/viewer";
3
3
  import a from "classnames";
4
- import { a as s, s as n, R as c } from "./radio-button-module-classes-YEfiQQtW.js";
4
+ import { a as s, s as n, R as c } from "./radio-button-module-classes-2nfcqSJp.js";
5
5
  import { E as i } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as o } from "./field-rac.module-DcyJyi2B.js";
7
- import { X as E, am as p, ac as R, ad as O, M as _, I as L, ae as I } from "./form-a7SUDn8q.js";
7
+ import { X as E, am as p, ac as R, ad as O, M as _, I as L, ae as I } from "./form-cgY_BDTU.js";
8
8
  import { o as D } from "./options-rac.module-_THNq6Qq.js";
9
- import { u as S } from "./use-element-state-class-name-YRDhi6Zr.js";
9
+ import { u as S } from "./use-element-state-class-name-DiZjY9WE.js";
10
10
  const e = ({ children: r, className: l }) => /* @__PURE__ */ t.createElement(s, {
11
11
  className: l
12
12
  }, r);
@@ -1,5 +1,5 @@
1
1
  import t, { createContext as m, useContext as M } from "react";
2
- import { bM as c, bJ as i, bE as b, bl as f, bm as x } from "./form-a7SUDn8q.js";
2
+ import { bN as c, bK as i, bF as b, bl as f, bm as x } from "./form-cgY_BDTU.js";
3
3
  const H = ({ className: r, children: e }) => {
4
4
  const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = b();
5
5
  return s ? /* @__PURE__ */ t.createElement("div", {
@@ -1,8 +1,8 @@
1
- import { bM as m, b1 as d, b2 as p, bJ as D, bX as B } from "./form-a7SUDn8q.js";
1
+ import { bN as m, b1 as d, b2 as p, bK as D, bY as N } from "./form-cgY_BDTU.js";
2
2
  import l from "react";
3
3
  import { f as L } from "./find-child-C60k4CxG.js";
4
4
  import { sdk as g } from "@wix/image-kit";
5
- function N({ id: e, width: t, height: n }, a, r, o = "fill") {
5
+ function B({ id: e, width: t, height: n }, a, r, o = "fill") {
6
6
  return (o === "fit" ? g.getScaleToFitImageURL : g.getScaleToFillImageURL)(e, t, n, typeof a == "number" ? a : parseInt(a, 10), typeof r == "number" ? r : parseInt(r, 10));
7
7
  }
8
8
  var u = /* @__PURE__ */ (function(e) {
@@ -23,7 +23,7 @@ const S = {
23
23
  }, h ? /* @__PURE__ */ l.createElement(l.Fragment, null, T, f) : /* @__PURE__ */ l.createElement(l.Fragment, null, f, T));
24
24
  return c ? /* @__PURE__ */ l.createElement("div", null, E === u.TOP ? c : null, I, E === u.BOTTOM ? c : null) : I;
25
25
  }, v = ({ className: e }) => {
26
- const { t } = B(), { requiredIndicatorType: n } = m();
26
+ const { t } = N(), { requiredIndicatorType: n } = m();
27
27
  return n === d.TEXT ? /* @__PURE__ */ l.createElement("span", {
28
28
  className: e,
29
29
  "aria-hidden": "true"
@@ -35,7 +35,7 @@ const S = {
35
35
  const { media: t, mediaSettings: n } = m();
36
36
  if (!t)
37
37
  return null;
38
- const a = N(t, t.width, t.height);
38
+ const a = B(t, t.width, t.height);
39
39
  return a ? /* @__PURE__ */ l.createElement("img", {
40
40
  className: e,
41
41
  src: a,
@@ -48,5 +48,5 @@ i.Required = v;
48
48
  i.Image = x;
49
49
  export {
50
50
  i as L,
51
- N as g
51
+ B as g
52
52
  };
@@ -1,23 +1,23 @@
1
- import t, { useState as W, 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 $, 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
- import R from "classnames";
5
- import { bI as Ce, bX as re, bR as xe, aO as ve, bU as Ne, aH as ie, bW as De, bJ as fe, bM as V, bO as ye, bG as Se, bF as Te, X as Be, am as Ie, b as we, P as Re, Q as ce, R as Ae, N as ue, M as de, I as Me, O as Ze, f as te } from "./form-a7SUDn8q.js";
4
+ import A from "classnames";
5
+ import { bJ as Ce, bY as re, bS as xe, aO as Ne, bV as ve, aH as ie, bX as De, bK as fe, bN as V, bP as ye, bH as Se, bG 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-cgY_BDTU.js";
6
6
  import { E as Oe } from "./error-icon-hZxQ6DEy.js";
7
- import { s as $ } from "./field-rac.module-DcyJyi2B.js";
8
- import { u as me } from "./use-element-state-class-name-YRDhi6Zr.js";
7
+ import { s as Y } from "./field-rac.module-DcyJyi2B.js";
8
+ import { u as me } from "./use-element-state-class-name-DiZjY9WE.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 Y } from "./find-child-C60k4CxG.js";
11
- import { b as Ve, a as je, D as qe, E as Ke } from "./field-error-headless-Dfvu9FuO.js";
12
- import { L as $e } from "./field-label-headless-Cxyl3wGC.js";
13
- const We = {
10
+ import { f as h, a as Q } from "./find-child-C60k4CxG.js";
11
+ import { b as Ve, a as Ke, D as je, E as qe } from "./field-error-headless-fX6PeZaI.js";
12
+ import { L as Ye } from "./field-label-headless-CoLjciGG.js";
13
+ const $e = {
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
- }, Ye = (e) => {
20
+ }, Qe = (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,40 +43,40 @@ const We = {
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] = W(Xe(n)), [x, m] = W(n || []), [p, c] = W(), y = Ye(l), { t: v } = re(), g = xe().includes(ve.BUTTONS_HOVER), { setFormStatus: T } = Ne(), 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] = $(Xe(n)), [x, m] = $(n || []), [p, c] = $(), y = Qe(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
- const N = pe(() => o.some((f) => f.state === "uploading"), [
49
+ const v = pe(() => o.some((f) => f.state === "uploading"), [
50
50
  o
51
51
  ]);
52
52
  ne(() => {
53
- I.current !== N && (I.current = N, T(l, N ? ie.BUSY : ie.READY));
53
+ I.current !== v && (I.current = v, T(l, v ? ie.BUSY : ie.READY));
54
54
  }, [
55
- N,
55
+ v,
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;
63
63
  if (_) {
64
64
  const f = o.filter((F) => F.state === "uploaded" && F.file.size > 0).length, L = f / (f + _);
65
- return v("form.file-upload.uploading", {
65
+ return N("form.file-upload.uploading", {
66
66
  count: Math.round(L * 100)
67
67
  });
68
68
  }
69
- return v("form.file-upload.explanation-text", {
69
+ return N("form.file-upload.explanation-text", {
70
70
  count: o.length
71
71
  });
72
72
  }, [
73
73
  o,
74
- v
75
- ]), w = M(() => o.length ? o.some((f) => f.state === "uploading") ? u() : r || u() : r, [
74
+ N
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,
@@ -92,16 +92,16 @@ function Qe({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
92
92
  i((F) => F.map((b) => b.file === L ? {
93
93
  file: L,
94
94
  state: "error",
95
- errorMessage: v("form.file-upload.error.upload-failed")
95
+ errorMessage: N("form.file-upload.error.upload-failed")
96
96
  } : b));
97
97
  });
98
98
  }, [
99
99
  y,
100
- v
101
- ]), q = async (_) => {
100
+ N
101
+ ]), j = async (_) => {
102
102
  if (p && c(void 0), _) {
103
103
  if (o.length + _.length > e) {
104
- c(v("form.file-upload.error.upload-limit", {
104
+ c(N("form.file-upload.error.upload-limit", {
105
105
  limit: e
106
106
  }));
107
107
  return;
@@ -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
- }, K = () => {
129
+ }, q = () => {
130
130
  p && c(void 0), E();
131
- }, Q = d.map((_) => We[_]).join(), J = M(() => {
131
+ }, W = d.map((_) => $e[_]).join(), J = Z(() => {
132
132
  i([]), m([]);
133
133
  }, []);
134
134
  return De(J), {
@@ -137,10 +137,10 @@ 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: q,
140
+ handleChange: j,
141
141
  handleDelete: O,
142
- accept: Q,
143
- handleBlur: K
142
+ accept: W,
143
+ handleBlur: q
144
144
  };
145
145
  }
146
146
  function Xe(e = []) {
@@ -160,14 +160,14 @@ function Xe(e = []) {
160
160
  return [];
161
161
  }
162
162
  const Fe = /* @__PURE__ */ ge(void 0);
163
- function j() {
163
+ function K() {
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 } = j();
170
+ const { ariaDescribedBy: r } = fe(), { disabled: l, hasError: s } = V(), { handleFileChange: d, limitReached: E } = K();
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);
@@ -192,28 +192,28 @@ const z = ({ children: e, className: n }) => {
192
192
  slot: "label"
193
193
  }, C, o), i);
194
194
  }, Ge = ({ className: e, children: n }) => {
195
- const { limitReached: r } = j();
195
+ const { limitReached: r } = K();
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 } = j(), { explanationText: l } = V();
202
+ const { limitReached: r } = K(), { 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: v, accept: Z, multiple: g, buttonRef: T, handleBlur: I, limitError: B, files: N } = j(), u = (N == null ? void 0 : N.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 } = K(), 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 q = Array.from(S), O = new DataTransfer();
216
- q.forEach((K) => O.items.add(K)), v(O.files);
215
+ const j = Array.from(S), O = new DataTransfer();
216
+ j.forEach((q) => O.items.add(q)), N(O.files);
217
217
  }
218
218
  }
219
219
  }, /* @__PURE__ */ t.createElement(Ee, {
@@ -248,16 +248,16 @@ oe.Text = et;
248
248
  z.Title = Ge;
249
249
  z.Subtitle = Je;
250
250
  z.Button = oe;
251
- const A = ({ children: e, className: n, ...r }) => {
252
- const { file: l, index: s } = r, d = l.file.name, E = h(e, A.Name), C = h(e, A.Remove), o = h(e, A.Spinner), i = h(e, A.Error);
251
+ const R = ({ children: e, className: n, ...r }) => {
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
- }, Y(E, {
255
+ }, Q(E, {
256
256
  fileName: d
257
- }), l.state === "uploading" ? o : Y(C, {
257
+ }), l.state === "uploading" ? o : Q(C, {
258
258
  index: s,
259
259
  fileName: d
260
- }), l.errorMessage && Y(i, {
260
+ }), l.errorMessage && Q(i, {
261
261
  errorMessage: l.errorMessage
262
262
  }));
263
263
  }, tt = ({ className: e, ...n }) => {
@@ -266,7 +266,7 @@ const A = ({ 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 } = j(), i = H(null);
269
+ const { fileName: s, index: d } = l, { disabled: E } = V(), { handleDelete: C, fileRemoveButtonRefs: o } = K(), 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 A = ({ 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(je, {
293
+ return l ? /* @__PURE__ */ t.createElement(Ke, {
294
294
  value: l
295
295
  }, /* @__PURE__ */ t.createElement("div", {
296
296
  className: e,
@@ -301,26 +301,26 @@ const A = ({ children: e, className: n, ...r }) => {
301
301
  className: e,
302
302
  isIndeterminate: !0
303
303
  }, r);
304
- A.Name = tt;
305
- A.Remove = nt;
306
- A.Spinner = rt;
307
- A.Error = be;
304
+ R.Name = tt;
305
+ R.Remove = nt;
306
+ R.Spinner = rt;
307
+ R.Error = be;
308
308
  be.Text = Ve;
309
309
  const le = ({ children: e, className: n }) => {
310
- const { files: r } = j(), l = h(e, le.File);
310
+ const { files: r } = K(), 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) => Y(l, {
313
+ }, r.map((s, d) => Q(l, {
314
314
  key: s.file.name || d,
315
315
  file: s,
316
316
  index: d
317
317
  })));
318
318
  };
319
- le.File = A;
319
+ le.File = R;
320
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({}), v = H(!1), Z = M(() => {
322
- c.current ? c.current.focus() : v.current = !0;
323
- }, []), { files: g, limitError: T, hover: I, getExplanationText: B, getStatusText: N, handleBlur: u, handleChange: w, handleDelete: S, accept: q } = Qe({
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
+ 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 } = We({
324
324
  valueSliderLimit: E,
325
325
  value: l,
326
326
  explanationText: o,
@@ -328,8 +328,8 @@ const G = (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
334
  const X = g[k], P = G(X);
335
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);
@@ -338,20 +338,20 @@ const G = (e) => e.file.name, a = ({ children: e }) => {
338
338
  g
339
339
  ]);
340
340
  ne(() => {
341
- v.current && c.current && (v.current = !1, c.current.focus());
341
+ N.current && c.current && (N.current = !1, c.current.focus());
342
342
  }, [
343
343
  g
344
344
  ]);
345
- const K = E > 1, Q = g.length >= E, J = pe(() => ({
345
+ const q = 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: q,
351
- limitReached: Q,
352
- multiple: K,
350
+ accept: j,
351
+ limitReached: W,
352
+ multiple: q,
353
353
  getExplanationText: B,
354
- getStatusText: N,
354
+ getStatusText: v,
355
355
  hover: I,
356
356
  limitError: T,
357
357
  buttonRef: c,
@@ -361,11 +361,11 @@ const G = (e) => e.file.name, a = ({ children: e }) => {
361
361
  u,
362
362
  O,
363
363
  g,
364
+ j,
365
+ W,
364
366
  q,
365
- Q,
366
- K,
367
367
  B,
368
- N,
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);
@@ -386,7 +386,7 @@ const G = (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, Y(ae, {
389
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, Q(ae, {
390
390
  hasError: !!(x || T),
391
391
  errorMessage: T ?? m
392
392
  }), /* @__PURE__ */ t.createElement(ze, {
@@ -398,18 +398,18 @@ const G = (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 } = j(), d = n ? s() : l();
401
+ const { files: r, getExplanationText: l, getStatusText: s } = K(), d = n ? s() : l();
402
402
  return r.length === 1 || !d ? null : /* @__PURE__ */ t.createElement("p", {
403
403
  className: e
404
404
  }, d);
405
405
  };
406
- a.Label = $e;
406
+ a.Label = Ye;
407
407
  a.DropZone = z;
408
408
  a.Button = oe;
409
409
  a.Explanation = ot;
410
410
  a.Files = le;
411
- a.Description = qe;
412
- a.Error = Ke;
411
+ a.Description = je;
412
+ a.Error = qe;
413
413
  const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
414
414
  viewBox: "0 0 24 24",
415
415
  width: 24,
@@ -487,8 +487,8 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
487
487
  }, xt = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(he, {
488
488
  content: e,
489
489
  locale: n
490
- }), vt = () => {
491
- var T, I, B, N;
490
+ }), Nt = () => {
491
+ var T, I, B, v;
492
492
  const { t: e } = re(), { disabled: n, readOnly: r } = V(), l = !n && !r, s = me({
493
493
  globalClasses: ue,
494
494
  moduleClasses: {
@@ -496,22 +496,22 @@ 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 = (N = (B = (I = (T = Se().fileUpload) == null ? void 0 : T.elementProps) == null ? void 0 : I.uploadButton) == null ? void 0 : B.elementProps) == null ? void 0 : N.icon, { wix: C, className: o, ...i } = E ?? {}, x = Te(te.FILE_UPLOAD, te.UPLOAD_BUTTON, te.UPLOAD_BUTTON_LABEL), m = H(null), [p, c] = W(!1), [y, v] = W(!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] = $(!1), [y, N] = $(!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
  }, []);
511
511
  return /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.Label, {
512
- className: R(Be, $.label)
512
+ className: A(Be, Y.label)
513
513
  }, /* @__PURE__ */ t.createElement(a.Label.Required, {
514
- className: R(Ie, $.requiredMark)
514
+ className: A(Ie, Y.requiredMark)
515
515
  })), /* @__PURE__ */ t.createElement(a.DropZone, {
516
516
  className: ({ isHovered: u, isFocused: w, isDropTarget: S }) => s({
517
517
  isSelected: !1,
@@ -531,24 +531,24 @@ 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
- onFocusChange: v
536
+ onFocusChange: N
537
537
  }, i.svg ? /* @__PURE__ */ t.createElement(Le, {
538
538
  ...i,
539
539
  ref: m,
540
- className: R(we, Re, o)
540
+ className: A(we, Ae, o)
541
541
  }) : E ? null : /* @__PURE__ */ t.createElement(lt, null), /* @__PURE__ */ t.createElement(a.DropZone.Button.Text, {
542
- className: R(ce.base, D.buttonLabel, x, {
542
+ className: A(ce.base, D.buttonLabel, x, {
543
543
  [ce.hover]: l && (p || y)
544
544
  })
545
545
  }))), /* @__PURE__ */ t.createElement(a.Explanation, {
546
- className: R(Ae, $.description, D.explanation),
546
+ className: A(Re, Y.description, D.explanation),
547
547
  showUploadStatusOnly: !0
548
548
  }), /* @__PURE__ */ t.createElement(a.Files, {
549
549
  className: D.files
550
550
  }, /* @__PURE__ */ t.createElement(a.Files.File, {
551
- className: R(ue.base, D.file)
551
+ className: A(ue.base, D.file)
552
552
  }, /* @__PURE__ */ t.createElement(a.Files.File.Name, {
553
553
  className: D.fileName
554
554
  }), /* @__PURE__ */ t.createElement(a.Files.File.Spinner, {
@@ -558,13 +558,13 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
558
558
  className: D.removeButton,
559
559
  "aria-label": e("file-upload.delete-file.aria-label")
560
560
  }, /* @__PURE__ */ t.createElement(st, null)), /* @__PURE__ */ t.createElement(a.Files.File.Error, {
561
- className: R(de, $.error, D.fileError)
561
+ className: A(de, Y.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: R(Me, $.description)
563
+ className: A(Ze, Y.description)
564
564
  }, xt), /* @__PURE__ */ t.createElement(a.Error, {
565
- className: R(de, $.error)
565
+ className: A(de, Y.error)
566
566
  }, /* @__PURE__ */ t.createElement(Oe, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)));
567
- }, Ut = () => /* @__PURE__ */ t.createElement(vt, null);
567
+ }, Ut = () => /* @__PURE__ */ t.createElement(Nt, null);
568
568
  export {
569
569
  Ut as FileUploadRAC
570
570
  };