@wix/form-elements 1.62.0 → 1.63.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 (104) hide show
  1. package/dist/component/{appointment-rac-Dqib2upI.js → appointment-rac-B1VVk_Ui.js} +3 -3
  2. package/dist/component/{bookings-address-rac-E-qq4-KG.js → bookings-address-rac-IQeHFdHT.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DA_Hwn2j.js → bookings-email-rac-z26A790r.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-o1n3lnRo.js → bookings-first-name-rac-Djf0GPP4.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DQ0YvhxZ.js → bookings-header-rac-CXOzAOpz.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-BqL_84Sg.js → bookings-last-name-rac-CbB8alM9.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CAN7roRc.js → bookings-login-bar-rac-CXrLx7Pn.js} +16 -16
  8. package/dist/component/{bookings-phone-rac-CCJVdvkd.js → bookings-phone-rac-DGYx7h5g.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CCklquEC.js → bookings-rich-text-rac-viJG57XF.js} +1 -1
  10. package/dist/component/checkbox-field-rac-e-RAmupX.js +1312 -0
  11. package/dist/component/{checkbox-group-field-headless-EGVW3vG0.js → checkbox-group-field-headless-Cvia4lL6.js} +30 -30
  12. package/dist/component/{checkbox-group-field-rac-DUDWNOwV.js → checkbox-group-field-rac-BXxk90dk.js} +1 -1
  13. package/dist/component/{checkbox-group-rac-DWPClKpf.js → checkbox-group-rac-CDfDTWqz.js} +1 -1
  14. package/dist/component/{checkbox-rac-CvbOws2U.js → checkbox-rac-BRBKYD_5.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CWFHC5LT.js → contacts-address-rac-BtWWQi77.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DPmJPp8M.js → contacts-birthdate-rac-DaEUXJTf.js} +1 -1
  17. package/dist/component/{contacts-company-rac-UWP9uDqI.js → contacts-company-rac-IgRyjtcM.js} +1 -1
  18. package/dist/component/{contacts-email-rac-BCkkWYhr.js → contacts-email-rac-BS1MDrMk.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-KNRf92yT.js → contacts-first-name-rac-BAvXypDF.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-C_EotEpo.js → contacts-last-name-rac-C289RYPl.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-DJGEWLsl.js → contacts-phone-rac-DIpyskam.js} +1 -1
  22. package/dist/component/{contacts-position-rac-s1pZ662O.js → contacts-position-rac-nPeh3lKU.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-D_2wIX9p.js → contacts-subscribe-rac-Ci5OLk68.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-3MUvKEqW.js → contacts-tax-id-rac-C4WB-SR0.js} +1 -1
  25. package/dist/component/{date-availability-CRsSX5_d.js → date-availability-HHjPx4Uv.js} +1 -1
  26. package/dist/component/{date-input-field-rac-DPo7waqI.js → date-input-field-rac-GFgFcpX2.js} +17 -17
  27. package/dist/component/{date-input-rac-DsY8ehb1.js → date-input-rac-B9BUEIA-.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BtzlxVDB.js → date-picker-field-rac-BfjYIIuY.js} +4 -4
  29. package/dist/component/{date-picker-rac-C-Aw6W87.js → date-picker-rac-Bd2UN0ZF.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-zre1vJ2m.js → date-time-input-field-rac-CAXnxLQP.js} +78 -78
  31. package/dist/component/{date-time-input-rac-CUvTUzbT.js → date-time-input-rac-BuJ3Awlh.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-D4mhJU8E.js → dext-checkbox-group-rac-DKp4cBVa.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-BeYmKpAZ.js → dext-checkbox-rac-BMu_k06A.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Mr0M3sNQ.js → dext-date-picker-rac-L3sdldhT.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-dgxfrHUw.js → dext-date-time-input-rac-UmabFzDN.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-CdZOoA5M.js → dext-dropdown-rac-DbjgYaG-.js} +1 -1
  37. package/dist/component/{dext-email-rac-TBiHlKjv.js → dext-email-rac-rNudrOOK.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-S78swyZ9.js → dext-number-input-rac-hw1FTrJL.js} +1 -1
  39. package/dist/component/{dext-phone-rac-BhIaSHez.js → dext-phone-rac-DrZ_Vwv2.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-B4xG4N8A.js → dext-radio-group-rac-DAt2ax-I.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-Bp2Pi5cP.js → dext-rating-input-rac-BW2Ike11.js} +1 -1
  42. package/dist/component/{dext-tags-rac-Bnjgmyk-.js → dext-tags-rac-DDzwlKrR.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-f1nJTM_n.js → dext-text-area-rac-D0xf4z3z.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-B9m6oI-e.js → dext-text-input-rac-Da04OLmq.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-CfEUdRdY.js → dext-url-input-rac-B-g4xTqh.js} +1 -1
  46. package/dist/component/{donation-rac-BqKbQD_H.js → donation-rac-gKeq72jg.js} +10 -10
  47. package/dist/component/{dropdown-field-headless-CzoD076g.js → dropdown-field-headless-Js5TxdU4.js} +14 -14
  48. package/dist/component/{dropdown-field-rac-5kD98Ubc.js → dropdown-field-rac-BDxcvX00.js} +1 -1
  49. package/dist/component/{dropdown-rac-C9NpsRYi.js → dropdown-rac-B5UHNzV-.js} +1 -1
  50. package/dist/component/{ecom-address-rac-DdvJEnAO.js → ecom-address-rac-0zm4bX37.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-D7Lf1ETL.js → ecom-subscription-checkbox-rac-DCXoI33l.js} +2 -2
  52. package/dist/component/{email-input-field-rac-DUordV5X.js → email-input-field-rac-svf6hUHF.js} +2 -2
  53. package/dist/component/{events-repeater-rac-B1yDrnvJ.js → events-repeater-rac-DMIqzuVK.js} +29 -29
  54. package/dist/component/{events-rsvp-rac-B65NtAMH.js → events-rsvp-rac-B_YD4ckO.js} +1 -1
  55. package/dist/component/{field-error-headless-DP4WSQU3.js → field-error-headless-DTKnr5Zx.js} +6 -6
  56. package/dist/component/{field-label-headless-BKmi7Fjg.js → field-label-headless-DV4aNd5Y.js} +5 -5
  57. package/dist/component/{file-upload-rac-DAg_G0_l.js → file-upload-rac-lGKJjG3m.js} +49 -49
  58. package/dist/component/{fixed-payment-rac-yO1w1gE2.js → fixed-payment-rac-BVS6glii.js} +13 -13
  59. package/dist/component/{form-D6A2hUbV.js → form-DzjdnO7t.js} +2262 -2259
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-D3Bi6tTS.js → header-field-rac-tzBH-8Yh.js} +5 -5
  63. package/dist/component/{header-rac-Blv89pdS.js → header-rac-6thQAvVF.js} +1 -1
  64. package/dist/component/{image-choice-rac-BLUZRNm0.js → image-choice-rac-Dx1b-saW.js} +23 -23
  65. package/dist/component/{index-BiYk1mJi.js → index-DIP7KB8P.js} +2 -2
  66. package/dist/component/{index-Cv3_acT1.js → index-Lnx0829a.js} +4 -4
  67. package/dist/component/isObjectLike-B_1KizZV.js +86 -0
  68. package/dist/component/multiline-address-field-rac-BY2SUp2d.js +1613 -0
  69. package/dist/component/{multiline-address-rac-B9yHNebZ.js → multiline-address-rac-BL8Yp4F0.js} +1 -1
  70. package/dist/component/{number-input-field-rac-SaC7jFUi.js → number-input-field-rac-x0yFmXbe.js} +14 -14
  71. package/dist/component/{number-input-rac-KYcJJPrs.js → number-input-rac-pJXc2YsD.js} +1 -1
  72. package/dist/component/{password-rac-CD5bSL2g.js → password-rac-B4XCP64b.js} +19 -19
  73. package/dist/component/{payment-input-rac-BlAscmFz.js → payment-input-rac-CZdOAjK4.js} +12 -12
  74. package/dist/component/{phone-input-field-rac-D-AosrgV.js → phone-input-field-rac-DO_V5Z_T.js} +19 -19
  75. package/dist/component/{phone-rac-DXLYlz5G.js → phone-rac-D16nLDjP.js} +1 -1
  76. package/dist/component/{product-list-rac-CGt4Gnj4.js → product-list-rac-DER8gVqy.js} +44 -44
  77. package/dist/component/{quiz-radio-group-rac-DaStzNZZ.js → quiz-radio-group-rac-BgTmHHi4.js} +1 -1
  78. package/dist/component/{radio-group-field-rac-D8NS7qDq.js → radio-group-field-rac-Dt2pU0VV.js} +1 -1
  79. package/dist/component/{radio-group-field-rac.module-wK26tCZq.js → radio-group-field-rac.module--sO0VqCA.js} +12 -12
  80. package/dist/component/{radio-group-rac-HalDjwk1.js → radio-group-rac-CqCmtkNQ.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-BBhMkSyL.js → rating-input-field-rac-xDrHHcL2.js} +10 -10
  82. package/dist/component/{rating-input-rac-BpgFnNoD.js → rating-input-rac-Bo5E9N87.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-BgJ2fteu.js → rich-content-rac.module-CJXbNca9.js} +4 -4
  84. package/dist/component/{rich-text-field-rac-BZfCgvHc.js → rich-text-field-rac-CkV0Z9F-.js} +5 -5
  85. package/dist/component/{rich-text-rac-CG3V04Gr.js → rich-text-rac-59DbKpXz.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-Bc_y-R5O.js → service-dropdown-rac-BLnflnUr.js} +25 -25
  87. package/dist/component/{services-multi-choice-rac-BeBdZpRV.js → services-multi-choice-rac-C-bFjwx8.js} +6 -6
  88. package/dist/component/{signature-rac-DNdpHxFp.js → signature-rac-Bb5IaS28.js} +15 -15
  89. package/dist/component/{submit-button-rac-Bogk1xYc.js → submit-button-rac-Bjyi8sUA.js} +12 -12
  90. package/dist/component/{tags-field-rac-COJG3T_9.js → tags-field-rac-C_VO3_69.js} +12 -12
  91. package/dist/component/{tags-rac-DsaUqJ4w.js → tags-rac-CKiutCWe.js} +1 -1
  92. package/dist/component/{text-area-field-rac-BVq5p83p.js → text-area-field-rac-Cg-vIhFe.js} +12 -12
  93. package/dist/component/{text-area-rac-D-uiOy62.js → text-area-rac-tMFx38UD.js} +1 -1
  94. package/dist/component/{text-input-field-rac-wYvY_eBR.js → text-input-field-rac-CgN_2hOD.js} +1 -1
  95. package/dist/component/{text-input-headless-BsL6OYhp.js → text-input-headless-CkhvKrFp.js} +6 -6
  96. package/dist/component/{text-input-rac-Bu8kXhrN.js → text-input-rac-BsyBgd3b.js} +1 -1
  97. package/dist/component/{time-input-rac-PWXUi1qL.js → time-input-rac-BxRVJtHE.js} +12 -12
  98. package/dist/component/{url-input-field-rac-B4qgrssx.js → url-input-field-rac-B_1yVniS.js} +12 -12
  99. package/dist/component/{url-input-rac-Bo51kTsG.js → url-input-rac-D8VrKYVe.js} +1 -1
  100. package/dist/component/{use-service-options-base-Du6B6AP9.js → use-service-options-base-Ci9gIluo.js} +7 -7
  101. package/package.json +2 -14
  102. package/dist/component/checkbox-field-rac-DhAEMdL9.js +0 -625
  103. package/dist/component/isObject-BAwJJxQ3.js +0 -34
  104. package/dist/component/multiline-address-field-rac-_Sb56AEM.js +0 -1574
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { M as t } from "./multiline-address-field-rac-_Sb56AEM.js";
2
+ import { M as t } from "./multiline-address-field-rac-BY2SUp2d.js";
3
3
  const i = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  i as MultilineAddressRAC
@@ -1,11 +1,11 @@
1
1
  import { RicosViewer as v } from "@wix/ricos/viewer";
2
2
  import m from "classnames";
3
- import r, { useState as U, useCallback as H, useEffect as Q, useRef as $ } from "react";
4
- import { NumberField as j, Input as z } from "react-aria-components";
5
- import { ag as C, ad as S, aq as G, ai as J } from "./form-D6A2hUbV.js";
3
+ import r, { useState as U, useCallback as j, useEffect as H, useRef as Q } from "react";
4
+ import { NumberField as $, Input as z } from "react-aria-components";
5
+ import { ah as C, ae as S, ar as G, aj as J } from "./form-DzjdnO7t.js";
6
6
  import { f as d } from "./find-child-C60k4CxG.js";
7
- import { D as K, E as W } from "./field-error-headless-DP4WSQU3.js";
8
- import { L as X } from "./field-label-headless-BKmi7Fjg.js";
7
+ import { D as K, E as W } from "./field-error-headless-DTKnr5Zx.js";
8
+ import { L as X } from "./field-label-headless-DV4aNd5Y.js";
9
9
  import { g as Y, c as Z } from "./numeric-input-utils-CuBMi4-a.js";
10
10
  import { u as w } from "./use-invoke-callback-UH73A_J3.js";
11
11
  import { E as ee } from "./error-icon-hZxQ6DEy.js";
@@ -13,7 +13,7 @@ import { s as i } from "./field-rac.module-DtugsLiL.js";
13
13
  import { r as re, H as te, q as ne, l as ae, h as se } from "./form-element-classes-Bi-nNM8q.js";
14
14
  const e = ({ children: n }) => {
15
15
  var D, L, R;
16
- const { id: a, value: s, onChange: l, disabled: p, required: E, readOnly: o, onBlur: b, onFocus: f, FieldLayout: u, hasError: c, validation: t } = C(), { labelId: A } = S(), F = ((D = t == null ? void 0 : t.number) == null ? void 0 : D.multipleOf) || 1, q = (L = t == null ? void 0 : t.number) == null ? void 0 : L.maximum, y = (R = t == null ? void 0 : t.number) == null ? void 0 : R.minimum, g = _(s), [h, I] = U(g), M = w(b), T = d(n, e.Label), V = d(n, e.Input), x = d(n, e.Description), k = d(n, e.Error), B = H((N) => {
16
+ const { id: a, value: s, onChange: l, disabled: p, required: E, readOnly: o, onBlur: b, onFocus: f, FieldLayout: u, hasError: c, validation: t } = C(), { labelId: A } = S(), F = ((D = t == null ? void 0 : t.number) == null ? void 0 : D.multipleOf) || 1, h = (L = t == null ? void 0 : t.number) == null ? void 0 : L.maximum, y = (R = t == null ? void 0 : t.number) == null ? void 0 : R.minimum, q = _(s), [M, I] = U(q), T = w(b), V = d(n, e.Label), g = d(n, e.Input), x = d(n, e.Description), k = d(n, e.Error), B = j((N) => {
17
17
  if (N === void 0 || Number.isNaN(N)) {
18
18
  l(""), I(NaN);
19
19
  return;
@@ -24,33 +24,33 @@ const e = ({ children: n }) => {
24
24
  F,
25
25
  l
26
26
  ]);
27
- return Q(() => {
27
+ return H(() => {
28
28
  I(_(s));
29
29
  }, [
30
30
  s
31
31
  ]), /* @__PURE__ */ r.createElement(u, {
32
32
  fieldId: a,
33
- renderLabel: () => T,
34
- renderInput: () => /* @__PURE__ */ r.createElement(j, {
33
+ renderLabel: () => V,
34
+ renderInput: () => /* @__PURE__ */ r.createElement($, {
35
35
  "aria-labelledby": A,
36
- value: h,
36
+ value: M,
37
37
  onChange: B,
38
38
  isDisabled: p,
39
39
  isRequired: E,
40
40
  isReadOnly: o,
41
41
  isInvalid: c,
42
- onBlur: M,
42
+ onBlur: T,
43
43
  onFocus: f,
44
44
  minValue: y ?? void 0,
45
- maxValue: q ?? void 0
46
- }, V),
45
+ maxValue: h ?? void 0
46
+ }, g),
47
47
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, k, x)
48
48
  });
49
49
  }, le = ({ className: n }) => {
50
50
  var c;
51
51
  const { t: a } = G(), { inputId: s, ariaDescribedBy: l } = S(), { id: p, placeholder: E, validation: o, label: b, required: f } = C();
52
52
  (c = o == null ? void 0 : o.number) != null && c.multipleOf;
53
- const u = $(null);
53
+ const u = Q(null);
54
54
  return J(() => {
55
55
  var t;
56
56
  (t = u.current) == null || t.focus();
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { N as r } from "./number-input-field-rac-SaC7jFUi.js";
2
+ import { N as r } from "./number-input-field-rac-x0yFmXbe.js";
3
3
  const n = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  n as NumberInputRAC
@@ -1,21 +1,21 @@
1
1
  import e, { useState as w, useRef as N } from "react";
2
2
  import { RicosViewer as O } from "@wix/ricos/viewer";
3
3
  import d from "classnames";
4
- import { TextField as x, Group as A, Input as B, Button as P } from "react-aria-components";
5
- import { ag as p, ad as I, ai as V, aq as v } from "./form-D6A2hUbV.js";
4
+ import { ah as p, ae as I, aj as x, ar as A } from "./form-DzjdnO7t.js";
5
+ import { TextField as B, Group as P, Input as V, Button as v } from "react-aria-components";
6
6
  import { f as E, a as g } from "./find-child-C60k4CxG.js";
7
- import { D as M, E as q } from "./field-error-headless-DP4WSQU3.js";
8
- import { L as k } from "./field-label-headless-BKmi7Fjg.js";
7
+ import { D as M, E as k } from "./field-error-headless-DTKnr5Zx.js";
8
+ import { L as q } from "./field-label-headless-DV4aNd5Y.js";
9
9
  import { E as U } from "./error-icon-hZxQ6DEy.js";
10
- import { H } from "./custom-focus-class-_483Pkwp.js";
10
+ import { H as j } from "./custom-focus-class-_483Pkwp.js";
11
11
  import { s as u } from "./field-rac.module-DtugsLiL.js";
12
- import { r as j, H as W, q as Z, l as G, h as Q } from "./form-element-classes-Bi-nNM8q.js";
12
+ import { r as H, H as W, q as Z, l as G, h as Q } from "./form-element-classes-Bi-nNM8q.js";
13
13
  const t = ({ children: r, className: o }) => {
14
- const { id: i, value: s, onChange: c, disabled: l, readOnly: m, required: n, hasError: a, onBlur: f, onFocus: _, FieldLayout: y } = p(), { labelId: C } = I(), [F, L] = w(!1), R = E(r, t.Label), D = E(r, t.Control), T = E(r, t.Description), S = E(r, t.Error);
14
+ const { id: i, value: s, onChange: c, disabled: l, readOnly: m, required: n, hasError: a, onBlur: f, onFocus: _, FieldLayout: y } = p(), { labelId: C } = I(), [F, L] = w(!1), R = E(r, t.Label), D = E(r, t.Control), T = E(r, t.Description), h = E(r, t.Error);
15
15
  return /* @__PURE__ */ e.createElement(y, {
16
16
  fieldId: i,
17
17
  renderLabel: () => R,
18
- renderInput: () => /* @__PURE__ */ e.createElement(x, {
18
+ renderInput: () => /* @__PURE__ */ e.createElement(B, {
19
19
  "aria-labelledby": C,
20
20
  value: s ?? "",
21
21
  onChange: c,
@@ -28,13 +28,13 @@ const t = ({ children: r, className: o }) => {
28
28
  className: o
29
29
  }, g(D, {
30
30
  isVisible: F,
31
- onToggleVisibility: () => L((h) => !h)
31
+ onToggleVisibility: () => L((S) => !S)
32
32
  })),
33
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, T, S)
33
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, T, h)
34
34
  });
35
35
  }, $ = ({ children: r, className: o, ...i }) => {
36
36
  const { isVisible: s, onToggleVisibility: c } = i, { disabled: l, hasError: m } = p(), n = E(r, t.Input), a = E(r, t.Toggle);
37
- return /* @__PURE__ */ e.createElement(A, {
37
+ return /* @__PURE__ */ e.createElement(P, {
38
38
  className: o,
39
39
  isDisabled: l,
40
40
  isInvalid: m
@@ -46,10 +46,10 @@ const t = ({ children: r, className: o }) => {
46
46
  }));
47
47
  }, z = ({ className: r, ...o }) => {
48
48
  const { isVisible: i } = o, { id: s, placeholder: c } = p(), { inputId: l, ariaDescribedBy: m } = I(), n = N(null);
49
- return V(() => {
49
+ return x(() => {
50
50
  var a;
51
51
  (a = n.current) == null || a.focus();
52
- }, s), /* @__PURE__ */ e.createElement(B, {
52
+ }, s), /* @__PURE__ */ e.createElement(V, {
53
53
  ref: n,
54
54
  id: l,
55
55
  type: i ? "text" : "password",
@@ -59,7 +59,7 @@ const t = ({ children: r, className: o }) => {
59
59
  });
60
60
  }, J = ({ className: r, showPasswordTooltipText: o, hidePasswordTooltipText: i, children: s, ...c }) => {
61
61
  const { isVisible: l, onToggleVisibility: m } = c, { disabled: n } = p(), a = l ? i : o;
62
- return /* @__PURE__ */ e.createElement(P, {
62
+ return /* @__PURE__ */ e.createElement(v, {
63
63
  type: "button",
64
64
  isDisabled: n,
65
65
  onPress: m,
@@ -70,12 +70,12 @@ const t = ({ children: r, className: o }) => {
70
70
  isVisible: l
71
71
  }));
72
72
  };
73
- t.Label = k;
73
+ t.Label = q;
74
74
  t.Control = $;
75
75
  t.Input = z;
76
76
  t.Toggle = J;
77
77
  t.Description = M;
78
- t.Error = q;
78
+ t.Error = k;
79
79
  const K = (r) => /* @__PURE__ */ e.createElement("svg", {
80
80
  viewBox: "0 0 24 24",
81
81
  width: "20",
@@ -118,15 +118,15 @@ const K = (r) => /* @__PURE__ */ e.createElement("svg", {
118
118
  content: r,
119
119
  locale: o
120
120
  }), re = () => {
121
- const { t: r } = v();
121
+ const { t: r } = A();
122
122
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
123
- className: d(j, u.label)
123
+ className: d(H, u.label)
124
124
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
125
125
  className: d(W, u.requiredMark)
126
126
  })), /* @__PURE__ */ e.createElement(t.Control, {
127
127
  className: d(Z, u.input, b.control)
128
128
  }, /* @__PURE__ */ e.createElement(t.Input, {
129
- className: d(u.innerInput, H)
129
+ className: d(u.innerInput, j)
130
130
  }), /* @__PURE__ */ e.createElement(t.Toggle, {
131
131
  className: b.toggleButton,
132
132
  showPasswordTooltipText: r("forms.widget.modals.show-password-tooltip"),
@@ -1,11 +1,11 @@
1
- import r, { useCallback as V, useRef as j } from "react";
1
+ import r, { useCallback as V, useRef as Q } from "react";
2
2
  import { RicosViewer as w } from "@wix/ricos/viewer";
3
3
  import i from "classnames";
4
4
  import { TextField as z, Group as J, Input as K } from "react-aria-components";
5
- import { ag as D, ad as S, aa as q, aq as W, ai as X } from "./form-D6A2hUbV.js";
5
+ import { ah as D, ae as S, ab as x, ar as W, aj as X } from "./form-DzjdnO7t.js";
6
6
  import { f as m } from "./find-child-C60k4CxG.js";
7
- import { D as Y, E as Z } from "./field-error-headless-DP4WSQU3.js";
8
- import { L as ee } from "./field-label-headless-BKmi7Fjg.js";
7
+ import { D as Y, E as Z } from "./field-error-headless-DTKnr5Zx.js";
8
+ import { L as ee } from "./field-label-headless-DV4aNd5Y.js";
9
9
  import { f as R, g as re } from "./payment-field-utils-DobiK5Xh.js";
10
10
  import { u as te } from "./use-synced-display-value-DcAxdn3M.js";
11
11
  import { E as ne } from "./error-icon-hZxQ6DEy.js";
@@ -26,8 +26,8 @@ function h(e) {
26
26
  return Number.isNaN(t) ? void 0 : t;
27
27
  }
28
28
  const n = ({ children: e }) => {
29
- var O, g, A, P;
30
- const { id: t, value: a, onChange: s, disabled: p, readOnly: d, required: y, hasError: b, onBlur: o, onFocus: f, FieldLayout: x, validation: _ } = D(), { labelId: M, prefixId: G } = S(), { regionalFormat: c } = q(), N = (A = (g = (O = _ == null ? void 0 : _.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : g.products) == null ? void 0 : A[0], C = (P = a == null ? void 0 : a.at(0)) == null ? void 0 : P.price, [F, I] = te({
29
+ var O, A, g, P;
30
+ const { id: t, value: a, onChange: s, disabled: p, readOnly: d, required: y, hasError: b, onBlur: o, onFocus: f, FieldLayout: M, validation: _ } = D(), { labelId: q, prefixId: G } = S(), { regionalFormat: c } = x(), N = (g = (A = (O = _ == null ? void 0 : _.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : A.products) == null ? void 0 : g[0], C = (P = a == null ? void 0 : a.at(0)) == null ? void 0 : P.price, [F, I] = te({
31
31
  sourceValue: C,
32
32
  format: (l) => R(String(l ?? ""), c),
33
33
  regionalFormat: c
@@ -41,8 +41,8 @@ const n = ({ children: e }) => {
41
41
  I
42
42
  ]), U = V((l) => {
43
43
  I(l);
44
- const L = h(R(l, c)), Q = h(C);
45
- if (L !== Q) {
44
+ const L = h(R(l, c)), j = h(C);
45
+ if (L !== j) {
46
46
  if (L === void 0) {
47
47
  s(null);
48
48
  return;
@@ -58,11 +58,11 @@ const n = ({ children: e }) => {
58
58
  C,
59
59
  I
60
60
  ]), B = m(e, n.Label), H = m(e, n.Input), k = m(e, n.Description), v = m(e, n.Error);
61
- return /* @__PURE__ */ r.createElement(x, {
61
+ return /* @__PURE__ */ r.createElement(M, {
62
62
  fieldId: t,
63
63
  renderLabel: () => B,
64
64
  renderInput: () => /* @__PURE__ */ r.createElement(z, {
65
- "aria-labelledby": `${M} ${G}`,
65
+ "aria-labelledby": `${q} ${G}`,
66
66
  value: a ? F : "",
67
67
  onChange: U,
68
68
  isDisabled: p,
@@ -82,7 +82,7 @@ const n = ({ children: e }) => {
82
82
  isInvalid: s
83
83
  }, p, d);
84
84
  }, me = ({ className: e }) => {
85
- const { currency: t } = q(), { t: a } = W(), { prefixId: s } = S();
85
+ const { currency: t } = x(), { t: a } = W(), { prefixId: s } = S();
86
86
  return t ? /* @__PURE__ */ r.createElement("span", {
87
87
  id: s,
88
88
  "aria-hidden": !1,
@@ -90,7 +90,7 @@ const n = ({ children: e }) => {
90
90
  className: e
91
91
  }, t.sign || t.code) : null;
92
92
  }, pe = ({ className: e }) => {
93
- const { id: t, placeholder: a, label: s } = D(), { inputId: p, labelId: d, prefixId: y, ariaDescribedBy: b } = S(), o = j(null);
93
+ const { id: t, placeholder: a, label: s } = D(), { inputId: p, labelId: d, prefixId: y, ariaDescribedBy: b } = S(), o = Q(null);
94
94
  return X(() => {
95
95
  var f;
96
96
  (f = o.current) == null || f.focus();
@@ -1,12 +1,12 @@
1
1
  import { RicosViewer as ye } from "@wix/ricos/viewer";
2
2
  import b from "classnames";
3
- import t, { useMemo as B, useState as k, useRef as v, useEffect as w, useCallback as j, createContext as te, useContext as V } from "react";
4
- import { a1 as Ee, aq as P, aa as ne, ap as fe, ag as M, ad as oe, ai as he } from "./form-D6A2hUbV.js";
3
+ import t, { useMemo as B, useState as k, useRef as v, useEffect as w, useCallback as Z, createContext as te, useContext as V } from "react";
4
+ import { a2 as Ee, ar as P, ab as ne, aq as fe, ah as M, ae as oe, aj as he } from "./form-DzjdnO7t.js";
5
5
  import { UNSAFE_PortalProvider as ge } from "react-aria";
6
6
  import { Dialog as re, OverlayTriggerStateContext as be, ModalOverlay as _e, Modal as Ne, SearchField as Oe, ListBoxItem as Se, Group as Q, DialogTrigger as Le, Select as Ie, Input as ae, ListBox as ve, Autocomplete as Pe } from "react-aria-components";
7
7
  import { f as h, a as ce } from "./find-child-C60k4CxG.js";
8
- import { D as Fe, E as De } from "./field-error-headless-DP4WSQU3.js";
9
- import { L as Re } from "./field-label-headless-BKmi7Fjg.js";
8
+ import { D as Fe, E as De } from "./field-error-headless-DTKnr5Zx.js";
9
+ import { L as Re } from "./field-label-headless-DV4aNd5Y.js";
10
10
  import { N as xe, S as Be } from "./non-modal-popover-DtIMXHbe.js";
11
11
  import { u as Me } from "./use-invoke-callback-UH73A_J3.js";
12
12
  import se, { AsYouType as $e, isValidPhoneNumber as Ae, isSupportedCountry as Te } from "libphonenumber-js";
@@ -41,7 +41,7 @@ function ee(e, n) {
41
41
  }
42
42
  return e;
43
43
  }
44
- function ze() {
44
+ function je() {
45
45
  const { t: e } = P(), { language: n } = ne();
46
46
  return B(() => Object.keys(W).reduce((o, a) => {
47
47
  const c = W[a], l = H(c), u = e(`locale-dataset.countries.${c.toUpperCase()}`);
@@ -56,17 +56,17 @@ function ze() {
56
56
  n
57
57
  ]);
58
58
  }
59
- function Ke(e, n) {
59
+ function ze(e, n) {
60
60
  return e.filter((r) => n && n.length > 0 ? n.includes(r.shortCountryCode) : !0);
61
61
  }
62
- function Ze(e, n) {
62
+ function Ke(e, n) {
63
63
  const { countryName: r, callingCode: o, shortCountryCode: a } = e;
64
64
  return !!(q(r, n) || q(o, n) || q(a, n));
65
65
  }
66
66
  function q(e, n) {
67
67
  return e.toLowerCase().includes(n.toLowerCase());
68
68
  }
69
- function je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
69
+ function Ze({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
70
70
  const [a, c] = k(e || ""), l = v(U(e ?? null) ?? ""), [u, i] = k(n);
71
71
  fe(() => {
72
72
  c(""), l.current = "", i(n), o("");
@@ -90,7 +90,7 @@ function je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
90
90
  m,
91
91
  n
92
92
  ]);
93
- const C = j((d) => {
93
+ const C = Z((d) => {
94
94
  if (c(d), !d) {
95
95
  l.current = "", o(null);
96
96
  return;
@@ -103,7 +103,7 @@ function je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
103
103
  }, [
104
104
  r,
105
105
  o
106
- ]), p = j((d) => {
106
+ ]), p = Z((d) => {
107
107
  i(d), c((f) => {
108
108
  const y = U(ee(f, d));
109
109
  return l.current = y ?? "", o(y), f;
@@ -144,12 +144,12 @@ const le = /* @__PURE__ */ te(null), N = () => {
144
144
  });
145
145
  }, s = ({ children: e }) => {
146
146
  var I, L;
147
- const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = M(), [u, i] = k(null), m = (L = (I = l == null ? void 0 : l.string) == null ? void 0 : I.phoneOptions) == null ? void 0 : L.allowedCountryCodes, C = ze(), p = B(() => Ke(C, m), [
147
+ const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = M(), [u, i] = k(null), m = (L = (I = l == null ? void 0 : l.string) == null ? void 0 : I.phoneOptions) == null ? void 0 : L.allowedCountryCodes, C = je(), p = B(() => ze(C, m), [
148
148
  C,
149
149
  m
150
150
  ]), d = B(() => p.map((x) => x.shortCountryCode), [
151
151
  p
152
- ]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: O, handleCountryCodeChange: S } = je({
152
+ ]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: O, handleCountryCodeChange: S } = Ze({
153
153
  value: r,
154
154
  defaultCountryCode: c,
155
155
  allowedCountryCodes: d,
@@ -176,7 +176,7 @@ const le = /* @__PURE__ */ te(null), N = () => {
176
176
  }), F),
177
177
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, T)
178
178
  }));
179
- }, z = ({ children: e, className: n }) => {
179
+ }, j = ({ children: e, className: n }) => {
180
180
  const { inputId: r, labelId: o } = oe(), { hasError: a, disabled: c, readOnly: l } = M(), { t: u } = P(), { selectedCountryCode: i, countries: m } = N(), C = `${r}-country`, p = i ? m.find((O) => O.shortCountryCode === i) : void 0, d = p && H(p.longCountryCode) || "", f = u("field.phone.country-code.aria-label"), y = p ? `${f}, ${p.countryName}, ${d}` : f;
181
181
  return /* @__PURE__ */ t.createElement(Be, {
182
182
  isDisabled: c || l,
@@ -198,8 +198,8 @@ const le = /* @__PURE__ */ te(null), N = () => {
198
198
  className: n
199
199
  }, e);
200
200
  };
201
- z.Flag = Qe;
202
- z.EmptyState = We;
201
+ j.Flag = Qe;
202
+ j.EmptyState = We;
203
203
  const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a, ...c }) => {
204
204
  const { triggerRef: l, optionsRef: u } = c, { popoverContainer: i } = N(), m = h(e, g.Search), C = /* @__PURE__ */ t.createElement(ie, null, e);
205
205
  return /* @__PURE__ */ t.createElement(ge, {
@@ -253,7 +253,7 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
253
253
  return a ? /* @__PURE__ */ t.createElement(Pe, {
254
254
  filter: (u, i, m) => {
255
255
  const C = r.find((p) => p.shortCountryCode === m.key);
256
- return !!C && Ze(C, i);
256
+ return !!C && Ke(C, i);
257
257
  }
258
258
  }, a, l) : l;
259
259
  };
@@ -336,9 +336,9 @@ const tt = ({ className: e }) => {
336
336
  a.current || (a.current = !0, C == null || C());
337
337
  },
338
338
  onBlur: (L) => {
339
- var K, Z;
339
+ var z, K;
340
340
  const x = L.relatedTarget;
341
- !((K = r.current) != null && K.contains(x)) && !((Z = o.current) != null && Z.contains(x)) && (a.current = !1, d());
341
+ !((z = r.current) != null && z.contains(x)) && !((K = o.current) != null && K.contains(x)) && (a.current = !1, d());
342
342
  }
343
343
  };
344
344
  if (S.length === 1)
@@ -373,7 +373,7 @@ const tt = ({ className: e }) => {
373
373
  };
374
374
  s.Label = Re;
375
375
  s.Control = nt;
376
- s.CountryButton = z;
376
+ s.CountryButton = j;
377
377
  s.CountryOptions = g;
378
378
  s.PhoneNumber = tt;
379
379
  s.Description = Fe;
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { P as o } from "./phone-input-field-rac-D-AosrgV.js";
2
+ import { P as o } from "./phone-input-field-rac-DO_V5Z_T.js";
3
3
  const r = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  r as PhoneRAC
@@ -2,23 +2,23 @@ import t, { useMemo as z, useCallback as T, useRef as B } from "react";
2
2
  import { RicosViewer as G } from "@wix/ricos/viewer";
3
3
  import f from "classnames";
4
4
  import { CheckboxField as K, CheckboxButton as j, NumberField as J, Group as W, Button as U, Input as X } from "react-aria-components";
5
- import { ag as M, ad as Y, aa as Q, aq as Z, ai as ee } from "./form-D6A2hUbV.js";
6
- import { f as I, a as L } from "./find-child-C60k4CxG.js";
7
- import { L as te, g as ne } from "./field-label-headless-BKmi7Fjg.js";
5
+ import { ah as M, ae as Y, ab as Q, ar as Z, aj as ee } from "./form-DzjdnO7t.js";
6
+ import { f as b, a as L } from "./find-child-C60k4CxG.js";
7
+ import { L as te, g as ne } from "./field-label-headless-DV4aNd5Y.js";
8
8
  import { f as ae } from "./format-currency-BwShJ9vM.js";
9
- import { D as oe, E as re } from "./field-error-headless-DP4WSQU3.js";
9
+ import { D as oe, E as re } from "./field-error-headless-DTKnr5Zx.js";
10
10
  import { F as le } from "./fieldset-headless-CD3fds9J.js";
11
11
  import { g as ie } from "./payment-field-utils-DobiK5Xh.js";
12
12
  import { E as se } from "./error-icon-hZxQ6DEy.js";
13
- import { s as h } from "./field-rac.module-DtugsLiL.js";
13
+ import { s as P } from "./field-rac.module-DtugsLiL.js";
14
14
  import { r as ce, H as ue, v as me, y as pe, x as de, w as Ee, q as ye, l as _e, h as fe } from "./form-element-classes-Bi-nNM8q.js";
15
15
  import { o as w } from "./options-rac.module-KM-VT_KY.js";
16
- var Ie = /* @__PURE__ */ (function(e) {
16
+ var be = /* @__PURE__ */ (function(e) {
17
17
  return e.crop = "CROP", e.fit = "FIT", e;
18
18
  })({}), k = /* @__PURE__ */ (function(e) {
19
19
  return e.oneByOne = "one-by-one", e.onlyOne = "only-one", e.many = "many", e;
20
20
  })({});
21
- function be({ maxItems: e, products: o } = {}) {
21
+ function Ie({ maxItems: e, products: o } = {}) {
22
22
  return e === 1 ? k.onlyOne : o != null && o.length && o.every((l) => {
23
23
  var n;
24
24
  return typeof ((n = l.quantityLimit) == null ? void 0 : n.maximum) > "u";
@@ -26,12 +26,12 @@ function be({ maxItems: e, products: o } = {}) {
26
26
  }
27
27
  const a = ({ children: e }) => {
28
28
  var D;
29
- const { id: o, value: l, onChange: n, disabled: r, readOnly: c, required: E, onBlur: b, onFocus: i, hasError: u, validation: m, FieldLayout: p } = M(), { inputId: x, labelId: v, ariaDescribedBy: N } = Y(), y = I(e, a.Label), g = I(e, a.Options), q = I(e, a.Description), O = I(e, a.Error), s = z(() => l || [], [
29
+ const { id: o, value: l, onChange: n, disabled: r, readOnly: c, required: E, onBlur: I, onFocus: i, hasError: u, validation: m, FieldLayout: p } = M(), { inputId: x, labelId: v, ariaDescribedBy: N } = Y(), y = b(e, a.Label), g = b(e, a.Options), A = b(e, a.Description), O = b(e, a.Error), s = z(() => l || [], [
30
30
  l
31
- ]), A = be((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = T((P, C) => {
32
- const _ = s.filter(($) => $.productId !== P.productId), H = C ? [
31
+ ]), q = Ie((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = T((h, C) => {
32
+ const _ = s.filter(($) => $.productId !== h.productId), H = C ? [
33
33
  ..._,
34
- P
34
+ h
35
35
  ] : _;
36
36
  n == null || n(H);
37
37
  }, [
@@ -46,35 +46,35 @@ const a = ({ children: e }) => {
46
46
  ariaLabelledBy: v,
47
47
  ariaDescribedBy: N,
48
48
  required: E,
49
- onBlur: b,
49
+ onBlur: I,
50
50
  onFocus: i
51
51
  }, g ? L(g, {
52
- allowMany: A,
52
+ allowMany: q,
53
53
  productValues: s,
54
54
  onProductChange: F,
55
55
  disabled: r,
56
56
  readOnly: c,
57
57
  hasError: u
58
58
  }) : null),
59
- renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, O, q)
59
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, O, A)
60
60
  });
61
61
  }, V = ({ children: e, className: o, ...l }) => {
62
- const { allowMany: n, productValues: r, onProductChange: c, disabled: E, readOnly: b, hasError: i } = l, { options: u, validation: m, imageResize: p } = M(), { currency: x } = Q(), { t: v } = Z(), N = I(e, a.Option);
62
+ const { allowMany: n, productValues: r, onProductChange: c, disabled: E, readOnly: I, hasError: i } = l, { options: u, validation: m, imageResize: p } = M(), { currency: x } = Q(), { t: v } = Z(), N = b(e, a.Option);
63
63
  return /* @__PURE__ */ t.createElement("div", {
64
64
  className: o
65
65
  }, u == null ? void 0 : u.map((y, g) => {
66
- var R, A, F, D, P;
67
- const q = ((P = (D = (F = (A = (R = m == null ? void 0 : m.predefined) == null ? void 0 : R.paymentOptions) == null ? void 0 : A.products) == null ? void 0 : F.find((C) => C.id === y.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : P.price) || "0", O = ie(v, x), s = r.find((C) => C.productId === y.value);
66
+ var R, q, F, D, h;
67
+ const A = ((h = (D = (F = (q = (R = m == null ? void 0 : m.predefined) == null ? void 0 : R.paymentOptions) == null ? void 0 : q.products) == null ? void 0 : F.find((C) => C.id === y.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : h.price) || "0", O = ie(v, x), s = r.find((C) => C.productId === y.value);
68
68
  return L(N, {
69
69
  key: y.id || y.value || y.label,
70
70
  option: y,
71
- price: q,
71
+ price: A,
72
72
  quantity: s == null ? void 0 : s.quantity,
73
73
  isSelected: !!s,
74
74
  allowMany: n,
75
75
  onProductChange: c,
76
76
  disabled: E,
77
- readOnly: b,
77
+ readOnly: I,
78
78
  hasError: i,
79
79
  currencyAriaLabel: O,
80
80
  imageResize: p,
@@ -82,10 +82,10 @@ const a = ({ children: e }) => {
82
82
  });
83
83
  }));
84
84
  }, d = ({ children: e, className: o, ...l }) => {
85
- const { option: n, price: r, quantity: c = 0, isSelected: E, allowMany: b, onProductChange: i, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: x, imageResize: v, isFirst: N } = l, { id: y } = M(), g = B(null), q = B(null), O = I(e, d.Image), s = I(e, d.Label), R = I(e, d.Price), A = I(e, d.Input), F = I(e, d.Quantity);
85
+ const { option: n, price: r, quantity: c = 0, isSelected: E, allowMany: I, onProductChange: i, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: x, imageResize: v, isFirst: N } = l, { id: y } = M(), g = B(null), A = B(null), O = b(e, d.Image), s = b(e, d.Label), R = b(e, d.Price), q = b(e, d.Input), F = b(e, d.Quantity);
86
86
  ee(() => {
87
87
  var _;
88
- N && ((_ = g.current ?? q.current) == null || _.focus({
88
+ N && ((_ = g.current ?? A.current) == null || _.focus({
89
89
  preventScroll: !0
90
90
  }));
91
91
  }, y);
@@ -99,7 +99,7 @@ const a = ({ children: e }) => {
99
99
  i,
100
100
  n.value,
101
101
  r
102
- ]), P = T((_) => {
102
+ ]), h = T((_) => {
103
103
  i({
104
104
  productId: n.value,
105
105
  price: r,
@@ -110,7 +110,7 @@ const a = ({ children: e }) => {
110
110
  n.value,
111
111
  r
112
112
  ]), C = `${n.label} ${x} ${r}`;
113
- return b ? /* @__PURE__ */ t.createElement("div", {
113
+ return I ? /* @__PURE__ */ t.createElement("div", {
114
114
  className: o,
115
115
  "data-hook": "product"
116
116
  }, O ? L(O, {
@@ -122,12 +122,12 @@ const a = ({ children: e }) => {
122
122
  price: r
123
123
  }) : null, F ? L(F, {
124
124
  quantity: c,
125
- onQuantityChange: P,
125
+ onQuantityChange: h,
126
126
  disabled: u,
127
127
  readOnly: m,
128
128
  hasError: p,
129
129
  ariaLabel: C,
130
- inputRef: N ? q : void 0
130
+ inputRef: N ? A : void 0
131
131
  }) : null) : /* @__PURE__ */ t.createElement(K, {
132
132
  isSelected: E,
133
133
  onChange: D,
@@ -146,20 +146,20 @@ const a = ({ children: e }) => {
146
146
  label: n.label
147
147
  }) : null, R ? L(R, {
148
148
  price: r
149
- }) : null, A));
149
+ }) : null, q));
150
150
  }, Le = ({ className: e, ...o }) => {
151
151
  var i;
152
152
  const { option: l, imageResize: n } = o, r = (i = l.media) == null ? void 0 : i.image;
153
153
  if (!r)
154
154
  return null;
155
- const c = n === Ie.fit, E = ne(r, 96, 96, c ? "fit" : "fill");
155
+ const c = n === be.fit, E = ne(r, 96, 96, c ? "fit" : "fill");
156
156
  if (!E)
157
157
  return null;
158
- const b = r.altText || l.label || "";
158
+ const I = r.altText || l.label || "";
159
159
  return /* @__PURE__ */ t.createElement("img", {
160
160
  className: e,
161
161
  src: E,
162
- alt: b,
162
+ alt: I,
163
163
  "data-fit": c ? "contain" : "cover",
164
164
  "data-hook": "product-image"
165
165
  });
@@ -183,7 +183,7 @@ const a = ({ children: e }) => {
183
183
  "aria-hidden": "true",
184
184
  className: e
185
185
  }), ge = ({ className: e, ...o }) => {
186
- const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError: E, ariaLabel: b, inputRef: i } = o, u = T((p) => {
186
+ const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError: E, ariaLabel: I, inputRef: i } = o, u = T((p) => {
187
187
  n(p < 0 ? 0 : p);
188
188
  }, [
189
189
  n
@@ -200,7 +200,7 @@ const a = ({ children: e }) => {
200
200
  isDisabled: r,
201
201
  isReadOnly: c,
202
202
  isInvalid: E,
203
- "aria-label": b,
203
+ "aria-label": I,
204
204
  className: e,
205
205
  "data-hook": "product-quantity"
206
206
  }, /* @__PURE__ */ t.createElement(W, {
@@ -224,25 +224,25 @@ a.Options = V;
224
224
  a.Option = d;
225
225
  a.Description = oe;
226
226
  a.Error = re;
227
- const Fe = "_options_11x4v_1", De = "_option_11x4v_1", Pe = "_optionInput_11x4v_21", he = "_optionImage_11x4v_32", Se = "_optionLabel_11x4v_66", ve = "_optionPrice_11x4v_73", Ne = "_quantity_11x4v_87", S = {
227
+ const Fe = "_options_11x4v_1", De = "_option_11x4v_1", he = "_optionInput_11x4v_21", Pe = "_optionImage_11x4v_32", Se = "_optionLabel_11x4v_66", ve = "_optionPrice_11x4v_73", Ne = "_quantity_11x4v_87", S = {
228
228
  options: Fe,
229
229
  option: De,
230
- optionInput: Pe,
231
- optionImage: he,
230
+ optionInput: he,
231
+ optionImage: Pe,
232
232
  optionLabel: Se,
233
233
  optionPrice: ve,
234
234
  quantity: Ne
235
- }, qe = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(G, {
235
+ }, Ae = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(G, {
236
236
  content: e,
237
237
  locale: o
238
- }), Ae = () => /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.Label, {
239
- className: f(ce, h.label)
238
+ }), qe = () => /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.Label, {
239
+ className: f(ce, P.label)
240
240
  }, /* @__PURE__ */ t.createElement(a.Label.Required, {
241
- className: f(ue, h.requiredMark)
241
+ className: f(ue, P.requiredMark)
242
242
  })), /* @__PURE__ */ t.createElement(a.Options, {
243
243
  className: f(me, w.options, S.options)
244
244
  }, /* @__PURE__ */ t.createElement(a.Option, {
245
- className: f(h.checkbox, S.option)
245
+ className: f(P.checkbox, S.option)
246
246
  }, /* @__PURE__ */ t.createElement(a.Option.Image, {
247
247
  className: S.optionImage
248
248
  }), /* @__PURE__ */ t.createElement(a.Option.Label, {
@@ -250,14 +250,14 @@ const Fe = "_options_11x4v_1", De = "_option_11x4v_1", Pe = "_optionInput_11x4v_
250
250
  }), /* @__PURE__ */ t.createElement(a.Option.Price, {
251
251
  className: f(de, S.optionPrice)
252
252
  }), /* @__PURE__ */ t.createElement(a.Option.Input, {
253
- className: f(Ee, h.checkboxInput, S.optionInput)
253
+ className: f(Ee, P.checkboxInput, S.optionInput)
254
254
  }), /* @__PURE__ */ t.createElement(a.Option.Quantity, {
255
- className: f(ye, h.inputGroup, S.quantity)
255
+ className: f(ye, P.inputGroup, S.quantity)
256
256
  }))), /* @__PURE__ */ t.createElement(a.Error, {
257
- className: f(_e, h.error)
257
+ className: f(_e, P.error)
258
258
  }, /* @__PURE__ */ t.createElement(se, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)), /* @__PURE__ */ t.createElement(a.Description, {
259
- className: f(fe, h.description)
260
- }, qe)), Je = () => /* @__PURE__ */ t.createElement(Ae, null);
259
+ className: f(fe, P.description)
260
+ }, Ae)), Je = () => /* @__PURE__ */ t.createElement(qe, null);
261
261
  export {
262
262
  Je as ProductListRAC
263
263
  };
@@ -1,5 +1,5 @@
1
1
  import _ from "react";
2
- import { R } from "./radio-group-field-rac-D8NS7qDq.js";
2
+ import { R } from "./radio-group-field-rac-Dt2pU0VV.js";
3
3
  import { B as o, A as r, z as O } from "./form-element-classes-Bi-nNM8q.js";
4
4
  const A = () => /* @__PURE__ */ _.createElement(R, {
5
5
  classes: {
@@ -1,7 +1,7 @@
1
1
  import { RicosViewer as s } from "@wix/ricos/viewer";
2
2
  import a from "classnames";
3
3
  import e from "react";
4
- import { R as t, s as r } from "./radio-group-field-rac.module-wK26tCZq.js";
4
+ import { R as t, s as r } from "./radio-group-field-rac.module--sO0VqCA.js";
5
5
  import { E as m } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as l } from "./field-rac.module-DtugsLiL.js";
7
7
  import { r as c, H as i, E, D as _, C as R, q as p, l as O, h as I } from "./form-element-classes-Bi-nNM8q.js";