@wix/form-elements 1.76.0 → 1.78.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 (105) hide show
  1. package/dist/component/{appointment-rac-BQsFMmBg.js → appointment-rac-DWxisWGW.js} +47 -47
  2. package/dist/component/{bookings-address-rac-AJNyTdok.js → bookings-address-rac-BT-VBypp.js} +1 -1
  3. package/dist/component/{bookings-email-rac-BHZ0MFgI.js → bookings-email-rac-CVpK16ZI.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-Bw5FuWNX.js → bookings-first-name-rac-CDe5wve0.js} +1 -1
  5. package/dist/component/{bookings-header-rac-C1M2Pg1f.js → bookings-header-rac-BsMQ2QGm.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DKkPY0CO.js → bookings-last-name-rac-Bpg5n4Dr.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-P6pziSl1.js → bookings-login-bar-rac-DnMB_v13.js} +2 -2
  8. package/dist/component/{bookings-phone-rac-CiOZWKHz.js → bookings-phone-rac-B8FoaVqv.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-D9ZComtY.js → bookings-rich-text-rac-CqD2O9X7.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-4zG3Sf1c.js → checkbox-field-rac-CydYZGle.js} +46 -46
  11. package/dist/component/{checkbox-group-field-headless-DN2aNw9g.js → checkbox-group-field-headless-BdrQjLsc.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-B1qhet83.js → checkbox-group-field-rac-D2mXFpmR.js} +3 -3
  13. package/dist/component/{checkbox-group-rac-DGsE7xGu.js → checkbox-group-rac-CTQRNdXf.js} +1 -1
  14. package/dist/component/{checkbox-rac-CFWQW9_K.js → checkbox-rac-d8u0ahzA.js} +1 -1
  15. package/dist/component/{contacts-address-rac-G5ZH3Odo.js → contacts-address-rac-CJYLD7fU.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-C7TDUfT0.js → contacts-birthdate-rac-BYWcPC9J.js} +1 -1
  17. package/dist/component/{contacts-company-rac-8queUhWT.js → contacts-company-rac-B-hxWRwZ.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CYOs5N_I.js → contacts-email-rac-9M965qjz.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-D8Goc_Ym.js → contacts-first-name-rac-BD6j79WW.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-lBmtuEnr.js → contacts-last-name-rac-DJ3UqnhZ.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-DSUWUNBX.js → contacts-phone-rac-BQo85LSR.js} +1 -1
  22. package/dist/component/{contacts-position-rac-wA-aw5Id.js → contacts-position-rac-D1EEYf-q.js} +1 -1
  23. package/dist/component/contacts-subscribe-rac-D3_UmlB-.js +13 -0
  24. package/dist/component/{contacts-tax-id-rac-BpjVM1Ye.js → contacts-tax-id-rac-BUFbFFLw.js} +1 -1
  25. package/dist/component/{date-availability-CeiMjrtD.js → date-availability-Vtj_pmEf.js} +1 -1
  26. package/dist/component/{date-input-field-rac-CVaajAFM.js → date-input-field-rac-BN7Dec-O.js} +8 -8
  27. package/dist/component/{date-input-rac-DhEzawuM.js → date-input-rac-D0EknjCI.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-1Q6yyNmK.js → date-picker-field-rac-JmIyqlEg.js} +8 -8
  29. package/dist/component/{date-picker-rac-BCGtmXMJ.js → date-picker-rac-CzbmZuUr.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-Dd-HNgKP.js → date-time-input-field-rac-9TAf-9BT.js} +15 -15
  31. package/dist/component/{date-time-input-rac-CsCWEsH5.js → date-time-input-rac-BMC95LdQ.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-CauN5uuV.js → dext-checkbox-group-rac-2IUeY8CX.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-q-g9gDnw.js → dext-checkbox-rac-DC-tLcqg.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CZT3dTLv.js → dext-date-picker-rac-DgQdlofb.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-DVUoZZbX.js → dext-date-time-input-rac-DgU7Nkxk.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-GRltutt5.js → dext-dropdown-rac-BKxqCr4C.js} +1 -1
  37. package/dist/component/{dext-email-rac-74Y8S9GA.js → dext-email-rac-coWG-88b.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-CF9d_GTl.js → dext-number-input-rac--WG5wQFz.js} +1 -1
  39. package/dist/component/{dext-phone-rac-DObx_gOd.js → dext-phone-rac-ikgoCqRF.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-CzU9KX5_.js → dext-radio-group-rac-CSmi7-KP.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-BjRwwgXr.js → dext-rating-input-rac-CrUReQ7k.js} +1 -1
  42. package/dist/component/{dext-tags-rac-Vif4x1yF.js → dext-tags-rac-C0iyj2fA.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-DmZwl_ax.js → dext-text-area-rac-k1bspboS.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-B6FVbjUM.js → dext-text-input-rac-DvapRpAx.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-17Dj3ICM.js → dext-url-input-rac-CAut8IVQ.js} +1 -1
  46. package/dist/component/{donation-rac-bgHep0Xi.js → donation-rac-BOqNDuTc.js} +23 -23
  47. package/dist/component/{dropdown-field-headless-BGfJ1FyZ.js → dropdown-field-headless-CS5wUgQ6.js} +3 -3
  48. package/dist/component/{dropdown-field-rac-DGiysJQY.js → dropdown-field-rac-MRo5oOWE.js} +2 -2
  49. package/dist/component/{dropdown-rac-FHjz8fKp.js → dropdown-rac-BjdsRMD6.js} +1 -1
  50. package/dist/component/{ecom-address-rac-DSbpf4z8.js → ecom-address-rac-DfYVinX3.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-DiZWNwnt.js → ecom-subscription-checkbox-rac-S_Wzz9Jb.js} +3 -3
  52. package/dist/component/{email-input-field-rac-BQKK2O7L.js → email-input-field-rac-Ci2MzEdX.js} +47 -47
  53. package/dist/component/{events-repeater-rac-Dudnyhal.js → events-repeater-rac-DiuDVYBS.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-008H5Ska.js → events-rsvp-rac-Cc27Vkvf.js} +2 -2
  55. package/dist/component/{field-error-headless-C5ZsFUKv.js → field-error-headless-DvmM1k0W.js} +1 -1
  56. package/dist/component/{field-label-headless-CS5OYsiI.js → field-label-headless-DKn04-OM.js} +1 -1
  57. package/dist/component/{file-upload-rac-bQ2QOO8Q.js → file-upload-rac-CB6xdN8j.js} +34 -34
  58. package/dist/component/{fixed-payment-rac-B6FvXoCU.js → fixed-payment-rac-ATi0oywP.js} +4 -4
  59. package/dist/component/{form-BpHElSwH.js → form-_3vjdih8.js} +69 -69
  60. package/dist/component/{form-element-classes-BXNs5k3q.js → form-element-classes-DZiFyihd.js} +37 -33
  61. package/dist/component/form.css +1 -1
  62. package/dist/component/form.js +1 -1
  63. package/dist/component/{header-field-rac-D4UYcmok.js → header-field-rac-pd3cDG5d.js} +3 -3
  64. package/dist/component/{header-rac-KavPiBdn.js → header-rac-fSMu24tQ.js} +1 -1
  65. package/dist/component/{image-choice-rac-BJQqBhBD.js → image-choice-rac-B7kSWlmM.js} +8 -8
  66. package/dist/component/{index-RSEYrQef.js → index-BTVyiZNf.js} +2 -2
  67. package/dist/component/{index-Y8iTxLat.js → index-QsnKRW-J.js} +4 -4
  68. package/dist/component/{isObjectLike-jwHec4Ap.js → isObjectLike-YK6n3FVo.js} +1 -1
  69. package/dist/component/{multiline-address-field-rac-D4Ibno80.js → multiline-address-field-rac-CDKbEU14.js} +37 -37
  70. package/dist/component/{multiline-address-rac-CrTSjzBN.js → multiline-address-rac-DflLsZ5w.js} +1 -1
  71. package/dist/component/{number-input-field-rac-DW1SjB-Z.js → number-input-field-rac-Bc6vH-Nl.js} +7 -7
  72. package/dist/component/{number-input-rac-CdE_hRbA.js → number-input-rac-J3DpYc9U.js} +1 -1
  73. package/dist/component/{password-rac-BCxl5mMQ.js → password-rac-DUsCGTgT.js} +10 -10
  74. package/dist/component/{payment-input-rac-DmO4s4ue.js → payment-input-rac-C7ir9WYG.js} +10 -10
  75. package/dist/component/{phone-input-field-rac-BYAnwk5h.js → phone-input-field-rac-BTCDRtYe.js} +26 -26
  76. package/dist/component/{phone-rac-gS4k9Yn8.js → phone-rac-Dk5FzIxX.js} +1 -1
  77. package/dist/component/{product-list-rac-CO0o3yOg.js → product-list-rac-BnXK6jhc.js} +22 -22
  78. package/dist/component/{quiz-radio-group-rac-Dhk7nkzb.js → quiz-radio-group-rac-BW3Vh-ZF.js} +2 -2
  79. package/dist/component/{radio-group-field-rac-DdlyQ3m6.js → radio-group-field-rac-C7IlBNGI.js} +2 -2
  80. package/dist/component/{radio-group-field-rac.module-emin6sSc.js → radio-group-field-rac.module-BRkiHqU7.js} +3 -3
  81. package/dist/component/{radio-group-rac-B-9q91fJ.js → radio-group-rac-DWJRHfZS.js} +1 -1
  82. package/dist/component/rating-input-field-rac-Bic4P2NB.js +136 -0
  83. package/dist/component/{rating-input-rac-BVO62LmE.js → rating-input-rac-B9M2UXqM.js} +1 -1
  84. package/dist/component/{rich-content-rac.module-CdiaAjxG.js → rich-content-rac.module-CuxZg6ls.js} +1 -1
  85. package/dist/component/{rich-text-field-rac-C4RrbyEX.js → rich-text-field-rac-CLEYP_pZ.js} +3 -3
  86. package/dist/component/{rich-text-rac-BG376ww9.js → rich-text-rac-YRAKNkpJ.js} +1 -1
  87. package/dist/component/{service-dropdown-rac-Dy6-OpVR.js → service-dropdown-rac-Dg4ijvf0.js} +11 -11
  88. package/dist/component/{services-multi-choice-rac-BKW9MP_b.js → services-multi-choice-rac-DcDxYaDU.js} +11 -11
  89. package/dist/component/{signature-rac-Cxgixp4o.js → signature-rac-BDj4xTdv.js} +35 -35
  90. package/dist/component/{submit-button-rac-BqPJ7WPI.js → submit-button-rac-DIigBeH5.js} +2 -2
  91. package/dist/component/{tags-field-rac-wwqpztG7.js → tags-field-rac-CJp9XBhV.js} +15 -15
  92. package/dist/component/{tags-rac-DUxITYxU.js → tags-rac-zlatHQ0n.js} +1 -1
  93. package/dist/component/{text-area-field-rac-Cen6O33S.js → text-area-field-rac-CFm-_Tz9.js} +13 -13
  94. package/dist/component/{text-area-rac-CRlO56GA.js → text-area-rac-BSJfRYEx.js} +1 -1
  95. package/dist/component/{text-input-field-rac-CbnKn03g.js → text-input-field-rac-ZTDIhRqT.js} +2 -2
  96. package/dist/component/{text-input-headless-C_NTJmLe.js → text-input-headless-4hu-GjTm.js} +3 -3
  97. package/dist/component/{text-input-rac-DvwV7Igm.js → text-input-rac-BTx8ELp7.js} +1 -1
  98. package/dist/component/{time-input-rac-TSEXiODs.js → time-input-rac-DmPMNJPn.js} +7 -7
  99. package/dist/component/{url-input-field-rac-Cxgh9T8s.js → url-input-field-rac-BPN4hmYh.js} +14 -14
  100. package/dist/component/{url-input-rac-DNw-Jg1U.js → url-input-rac-CEeg1r2O.js} +1 -1
  101. package/dist/component/{use-element-state-class-name-CC65g9mT.js → use-element-state-class-name-DVT9MJFT.js} +1 -1
  102. package/dist/component/{use-service-options-base-EFrxTpGm.js → use-service-options-base-J4FBFnZH.js} +1 -1
  103. package/package.json +2 -2
  104. package/dist/component/contacts-subscribe-rac-CAbBbFxZ.js +0 -13
  105. package/dist/component/rating-input-field-rac-VDaJKq-n.js +0 -126
@@ -2,19 +2,19 @@ import { RicosViewer as G } from "@wix/ricos/viewer";
2
2
  import C from "classnames";
3
3
  import n, { useMemo as w, createContext as We, useContext as De, useState as ye, useRef as B, useCallback as D, useEffect as Ve } from "react";
4
4
  import { UNSAFE_PortalProvider as _t } from "react-aria";
5
- import { ad as bt, c as ft, a9 as Pt, ab as yt, G as Tt, H as Mt, u as qt, z as V, F as K, as as Me, a2 as at, ai as P, af as T, ak as le, ae as Ct, Q as wt, C as he, a0 as xt, a4 as Bt, ap as kt, aj as $t, ao as Ut, a7 as Wt, Y as Vt, a6 as Kt, al as Yt, j as Ht } from "./form-BpHElSwH.js";
5
+ import { ad as bt, c as ft, a9 as Pt, ab as yt, G as Tt, H as Mt, u as qt, z as V, F as K, as as Me, a2 as at, ai as P, af as T, ak as le, ae as Ct, Q as wt, C as he, a0 as xt, a4 as Bt, ap as kt, aj as $t, ao as Ut, a7 as Wt, Y as Vt, a6 as Kt, al as Yt, j as Ht } from "./form-_3vjdih8.js";
6
6
  import { f as E, a as h } from "./find-child-C60k4CxG.js";
7
7
  import { F as jt, V as Jt } from "./headless-styles-CmcyA_pi.js";
8
8
  import { TextField as Ce, Input as ie, ComboBoxStateContext as It, ComboBox as Re, Popover as Ae, ListBox as _e, ListBoxItem as Pe, Group as Lt, Button as Nt } from "react-aria-components";
9
- import { D as ce, E as de } from "./field-error-headless-C5ZsFUKv.js";
10
- import { L as ue } from "./field-label-headless-CS5OYsiI.js";
11
- import { e as zt, c as Gt, a as Qt, r as Ot } from "./isObjectLike-jwHec4Ap.js";
12
- import { u as Xt } from "./use-invoke-callback-UH73A_J3.js";
9
+ import { D as ce, E as de } from "./field-error-headless-DvmM1k0W.js";
10
+ import { L as ue } from "./field-label-headless-DKn04-OM.js";
11
+ import { e as zt, c as Gt, a as Xt, r as Ot } from "./isObjectLike-YK6n3FVo.js";
12
+ import { u as Qt } from "./use-invoke-callback-UH73A_J3.js";
13
13
  import { C as lt } from "./chevron-down-icon-CcpVm6B-.js";
14
- import { E as Q } from "./error-icon-hZxQ6DEy.js";
14
+ import { E as X } from "./error-icon-hZxQ6DEy.js";
15
15
  import { H as fe } from "./custom-focus-class-_483Pkwp.js";
16
16
  import { s as f } from "./field-rac.module-DjmaTYkc.js";
17
- import { z as X, Q as Z, y as ee, B as ge, p as te, i as ne } from "./form-element-classes-BXNs5k3q.js";
17
+ import { z as Q, P as Z, y as ee, B as ge, p as te, i as ne } from "./form-element-classes-DZiFyihd.js";
18
18
  const Zt = (e, t, o) => {
19
19
  var a, l, i, s;
20
20
  const r = (a = e.steps) == null ? void 0 : a.map((d) => {
@@ -342,7 +342,7 @@ var ke, ut;
342
342
  function In() {
343
343
  if (ut) return ke;
344
344
  ut = 1;
345
- var e = Gt(), t = Qt(), o = "[object Symbol]";
345
+ var e = Gt(), t = Xt(), o = "[object Symbol]";
346
346
  function r(a) {
347
347
  return typeof a == "symbol" || t(a) && e(a) == o;
348
348
  }
@@ -722,7 +722,7 @@ const Dt = ({ readOnly: e, disabled: t } = {}) => {
722
722
  t
723
723
  ]);
724
724
  }, _n = (e, t) => e.find((o) => o.label.toLocaleLowerCase() === t.toLocaleLowerCase().trim()), Rt = ({ options: e, value: t, commit: o, clear: r, onBlur: a }) => {
725
- const [l, i] = ye(null), s = Xt(a), d = w(() => {
725
+ const [l, i] = ye(null), s = Qt(a), d = w(() => {
726
726
  var b;
727
727
  return t ? ((b = e.find((p) => p.value === t)) == null ? void 0 : b.label) ?? "" : "";
728
728
  }, [
@@ -1284,8 +1284,8 @@ const H = ({ children: e }) => {
1284
1284
  }, e);
1285
1285
  Se.Input = Yn;
1286
1286
  Se.Trigger = Hn;
1287
- const Qe = ({ children: e, className: t, ...o }) => {
1288
- const { options: r } = o, a = E(e, Qe.Option);
1287
+ const Xe = ({ children: e, className: t, ...o }) => {
1288
+ const { options: r } = o, a = E(e, Xe.Option);
1289
1289
  return /* @__PURE__ */ n.createElement(Ae, {
1290
1290
  className: t,
1291
1291
  containerPadding: 0,
@@ -1303,18 +1303,18 @@ const Qe = ({ children: e, className: t, ...o }) => {
1303
1303
  textValue: r
1304
1304
  }, r);
1305
1305
  };
1306
- Qe.Option = jn;
1306
+ Xe.Option = jn;
1307
1307
  H.Label = ue;
1308
1308
  H.Control = Se;
1309
- H.Options = Qe;
1309
+ H.Options = Xe;
1310
1310
  H.Description = ce;
1311
1311
  H.Error = de;
1312
- const Jn = () => me("country"), zn = () => me("subdivision"), Gn = () => me("city"), Qn = () => me("addressLine"), Xn = () => me("addressLine2"), Zn = () => me("postalCode"), er = () => me("streetName"), tr = () => me("streetNumber"), nr = () => me("apartment"), rr = {
1312
+ const Jn = () => me("country"), zn = () => me("subdivision"), Gn = () => me("city"), Xn = () => me("addressLine"), Qn = () => me("addressLine2"), Zn = () => me("postalCode"), er = () => me("streetName"), tr = () => me("streetNumber"), nr = () => me("apartment"), rr = {
1313
1313
  [K.MLA_COUNTRY]: Jn,
1314
1314
  [K.MLA_SUBDIVISION]: zn,
1315
1315
  [K.MLA_CITY]: Gn,
1316
- [K.MLA_ADDRESS_LINE]: Qn,
1317
- [K.MLA_ADDRESS_LINE_2]: Xn,
1316
+ [K.MLA_ADDRESS_LINE]: Xn,
1317
+ [K.MLA_ADDRESS_LINE_2]: Qn,
1318
1318
  [K.MLA_POSTAL_CODE]: Zn,
1319
1319
  [K.MLA_STREET_NAME]: er,
1320
1320
  [K.MLA_STREET_NUMBER]: tr,
@@ -1389,10 +1389,10 @@ const Jn = () => me("country"), zn = () => me("subdivision"), Gn = () => me("cit
1389
1389
  const W = s == null ? void 0 : s[0], z = (Te = x == null ? void 0 : x.fields) == null ? void 0 : Te.find((st) => "target" in st && st.target === (W == null ? void 0 : W.errorPath));
1390
1390
  return z == null ? void 0 : z.id;
1391
1391
  });
1392
- const Ee = E(e, c.Country), Oe = E(e, c.Subdivision), Xe = E(e, c.City), Ze = E(e, c.AddressLine), et = E(e, c.AddressLine2), tt = E(e, c.PostalCode), nt = E(e, c.StreetName), rt = E(e, c.StreetNumber), ot = E(e, c.Apartment), At = w(() => ({
1392
+ const Ee = E(e, c.Country), Oe = E(e, c.Subdivision), Qe = E(e, c.City), Ze = E(e, c.AddressLine), et = E(e, c.AddressLine2), tt = E(e, c.PostalCode), nt = E(e, c.StreetName), rt = E(e, c.StreetNumber), ot = E(e, c.Apartment), At = w(() => ({
1393
1393
  country: Ee,
1394
1394
  subdivision: Oe,
1395
- city: Xe,
1395
+ city: Qe,
1396
1396
  addressLine: Ze,
1397
1397
  addressLine2: et,
1398
1398
  postalCode: tt,
@@ -1402,7 +1402,7 @@ const Jn = () => me("country"), zn = () => me("subdivision"), Gn = () => me("cit
1402
1402
  }), [
1403
1403
  Ee,
1404
1404
  Oe,
1405
- Xe,
1405
+ Qe,
1406
1406
  Ze,
1407
1407
  et,
1408
1408
  tt,
@@ -1457,7 +1457,7 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
1457
1457
  comboControl: lr,
1458
1458
  comboTrigger: ir
1459
1459
  }, Fr = () => /* @__PURE__ */ n.createElement(c, null, /* @__PURE__ */ n.createElement(c.Country, null, /* @__PURE__ */ n.createElement(c.Country.Label, {
1460
- className: C(X, f.label)
1460
+ className: C(Q, f.label)
1461
1461
  }, /* @__PURE__ */ n.createElement(c.Country.Label.Required, {
1462
1462
  className: C(Z, f.requiredMark)
1463
1463
  })), /* @__PURE__ */ n.createElement(c.Country.Control, {
@@ -1474,13 +1474,13 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
1474
1474
  className: C(f.selectOption, fe)
1475
1475
  })), /* @__PURE__ */ n.createElement(c.Country.Error, {
1476
1476
  className: C(te, f.error)
1477
- }, /* @__PURE__ */ n.createElement(Q, null), /* @__PURE__ */ n.createElement(c.Country.Error.Text, null)), /* @__PURE__ */ n.createElement(c.Country.Description, {
1477
+ }, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.Country.Error.Text, null)), /* @__PURE__ */ n.createElement(c.Country.Description, {
1478
1478
  className: C(ne, f.description)
1479
1479
  }, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(G, {
1480
1480
  content: e,
1481
1481
  locale: t
1482
1482
  }))), /* @__PURE__ */ n.createElement(c.AddressLine, null, /* @__PURE__ */ n.createElement(c.AddressLine.Label, {
1483
- className: C(X, f.label)
1483
+ className: C(Q, f.label)
1484
1484
  }, /* @__PURE__ */ n.createElement(c.AddressLine.Label.Required, {
1485
1485
  className: C(Z, f.requiredMark)
1486
1486
  })), /* @__PURE__ */ n.createElement(c.AddressLine.Input, {
@@ -1491,39 +1491,39 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
1491
1491
  className: C(f.selectOption, fe)
1492
1492
  })), /* @__PURE__ */ n.createElement(c.AddressLine.Error, {
1493
1493
  className: C(te, f.error)
1494
- }, /* @__PURE__ */ n.createElement(Q, null), /* @__PURE__ */ n.createElement(c.AddressLine.Error.Text, null)), /* @__PURE__ */ n.createElement(c.AddressLine.Description, {
1494
+ }, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.AddressLine.Error.Text, null)), /* @__PURE__ */ n.createElement(c.AddressLine.Description, {
1495
1495
  className: C(ne, f.description)
1496
1496
  }, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(G, {
1497
1497
  content: e,
1498
1498
  locale: t
1499
1499
  }))), /* @__PURE__ */ n.createElement(c.AddressLine2, null, /* @__PURE__ */ n.createElement(c.AddressLine2.Label, {
1500
- className: C(X, f.label)
1500
+ className: C(Q, f.label)
1501
1501
  }, /* @__PURE__ */ n.createElement(c.AddressLine2.Label.Required, {
1502
1502
  className: C(Z, f.requiredMark)
1503
1503
  })), /* @__PURE__ */ n.createElement(c.AddressLine2.Input, {
1504
1504
  className: C(ee, f.input)
1505
1505
  }), /* @__PURE__ */ n.createElement(c.AddressLine2.Error, {
1506
1506
  className: C(te, f.error)
1507
- }, /* @__PURE__ */ n.createElement(Q, null), /* @__PURE__ */ n.createElement(c.AddressLine2.Error.Text, null)), /* @__PURE__ */ n.createElement(c.AddressLine2.Description, {
1507
+ }, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.AddressLine2.Error.Text, null)), /* @__PURE__ */ n.createElement(c.AddressLine2.Description, {
1508
1508
  className: C(ne, f.description)
1509
1509
  }, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(G, {
1510
1510
  content: e,
1511
1511
  locale: t
1512
1512
  }))), /* @__PURE__ */ n.createElement(c.City, null, /* @__PURE__ */ n.createElement(c.City.Label, {
1513
- className: C(X, f.label)
1513
+ className: C(Q, f.label)
1514
1514
  }, /* @__PURE__ */ n.createElement(c.City.Label.Required, {
1515
1515
  className: C(Z, f.requiredMark)
1516
1516
  })), /* @__PURE__ */ n.createElement(c.City.Input, {
1517
1517
  className: C(ee, f.input)
1518
1518
  }), /* @__PURE__ */ n.createElement(c.City.Error, {
1519
1519
  className: C(te, f.error)
1520
- }, /* @__PURE__ */ n.createElement(Q, null), /* @__PURE__ */ n.createElement(c.City.Error.Text, null)), /* @__PURE__ */ n.createElement(c.City.Description, {
1520
+ }, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.City.Error.Text, null)), /* @__PURE__ */ n.createElement(c.City.Description, {
1521
1521
  className: C(ne, f.description)
1522
1522
  }, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(G, {
1523
1523
  content: e,
1524
1524
  locale: t
1525
1525
  }))), /* @__PURE__ */ n.createElement(c.PostalCode, null, /* @__PURE__ */ n.createElement(c.PostalCode.Label, {
1526
- className: C(X, f.label)
1526
+ className: C(Q, f.label)
1527
1527
  }, /* @__PURE__ */ n.createElement(c.PostalCode.Label.Required, {
1528
1528
  className: C(Z, f.requiredMark)
1529
1529
  })), /* @__PURE__ */ n.createElement(c.PostalCode.Control, {
@@ -1536,13 +1536,13 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
1536
1536
  className: C(f.selectOption, fe)
1537
1537
  })), /* @__PURE__ */ n.createElement(c.PostalCode.Error, {
1538
1538
  className: C(te, f.error)
1539
- }, /* @__PURE__ */ n.createElement(Q, null), /* @__PURE__ */ n.createElement(c.PostalCode.Error.Text, null)), /* @__PURE__ */ n.createElement(c.PostalCode.Description, {
1539
+ }, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.PostalCode.Error.Text, null)), /* @__PURE__ */ n.createElement(c.PostalCode.Description, {
1540
1540
  className: C(ne, f.description)
1541
1541
  }, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(G, {
1542
1542
  content: e,
1543
1543
  locale: t
1544
1544
  }))), /* @__PURE__ */ n.createElement(c.Subdivision, null, /* @__PURE__ */ n.createElement(c.Subdivision.Label, {
1545
- className: C(X, f.label)
1545
+ className: C(Q, f.label)
1546
1546
  }, /* @__PURE__ */ n.createElement(c.Subdivision.Label.Required, {
1547
1547
  className: C(Z, f.requiredMark)
1548
1548
  })), /* @__PURE__ */ n.createElement(c.Subdivision.Control, {
@@ -1559,13 +1559,13 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
1559
1559
  className: C(f.selectOption, fe)
1560
1560
  })), /* @__PURE__ */ n.createElement(c.Subdivision.Error, {
1561
1561
  className: C(te, f.error)
1562
- }, /* @__PURE__ */ n.createElement(Q, null), /* @__PURE__ */ n.createElement(c.Subdivision.Error.Text, null)), /* @__PURE__ */ n.createElement(c.Subdivision.Description, {
1562
+ }, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.Subdivision.Error.Text, null)), /* @__PURE__ */ n.createElement(c.Subdivision.Description, {
1563
1563
  className: C(ne, f.description)
1564
1564
  }, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(G, {
1565
1565
  content: e,
1566
1566
  locale: t
1567
1567
  }))), /* @__PURE__ */ n.createElement(c.StreetName, null, /* @__PURE__ */ n.createElement(c.StreetName.Label, {
1568
- className: C(X, f.label)
1568
+ className: C(Q, f.label)
1569
1569
  }, /* @__PURE__ */ n.createElement(c.StreetName.Label.Required, {
1570
1570
  className: C(Z, f.requiredMark)
1571
1571
  })), /* @__PURE__ */ n.createElement(c.StreetName.Input, {
@@ -1576,33 +1576,33 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
1576
1576
  className: C(f.selectOption, fe)
1577
1577
  })), /* @__PURE__ */ n.createElement(c.StreetName.Error, {
1578
1578
  className: C(te, f.error)
1579
- }, /* @__PURE__ */ n.createElement(Q, null), /* @__PURE__ */ n.createElement(c.StreetName.Error.Text, null)), /* @__PURE__ */ n.createElement(c.StreetName.Description, {
1579
+ }, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.StreetName.Error.Text, null)), /* @__PURE__ */ n.createElement(c.StreetName.Description, {
1580
1580
  className: C(ne, f.description)
1581
1581
  }, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(G, {
1582
1582
  content: e,
1583
1583
  locale: t
1584
1584
  }))), /* @__PURE__ */ n.createElement(c.StreetNumber, null, /* @__PURE__ */ n.createElement(c.StreetNumber.Label, {
1585
- className: C(X, f.label)
1585
+ className: C(Q, f.label)
1586
1586
  }, /* @__PURE__ */ n.createElement(c.StreetNumber.Label.Required, {
1587
1587
  className: C(Z, f.requiredMark)
1588
1588
  })), /* @__PURE__ */ n.createElement(c.StreetNumber.Input, {
1589
1589
  className: C(ee, f.input)
1590
1590
  }), /* @__PURE__ */ n.createElement(c.StreetNumber.Error, {
1591
1591
  className: C(te, f.error)
1592
- }, /* @__PURE__ */ n.createElement(Q, null), /* @__PURE__ */ n.createElement(c.StreetNumber.Error.Text, null)), /* @__PURE__ */ n.createElement(c.StreetNumber.Description, {
1592
+ }, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.StreetNumber.Error.Text, null)), /* @__PURE__ */ n.createElement(c.StreetNumber.Description, {
1593
1593
  className: C(ne, f.description)
1594
1594
  }, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(G, {
1595
1595
  content: e,
1596
1596
  locale: t
1597
1597
  }))), /* @__PURE__ */ n.createElement(c.Apartment, null, /* @__PURE__ */ n.createElement(c.Apartment.Label, {
1598
- className: C(X, f.label)
1598
+ className: C(Q, f.label)
1599
1599
  }, /* @__PURE__ */ n.createElement(c.Apartment.Label.Required, {
1600
1600
  className: C(Z, f.requiredMark)
1601
1601
  })), /* @__PURE__ */ n.createElement(c.Apartment.Input, {
1602
1602
  className: C(ee, f.input)
1603
1603
  }), /* @__PURE__ */ n.createElement(c.Apartment.Error, {
1604
1604
  className: C(te, f.error)
1605
- }, /* @__PURE__ */ n.createElement(Q, null), /* @__PURE__ */ n.createElement(c.Apartment.Error.Text, null)), /* @__PURE__ */ n.createElement(c.Apartment.Description, {
1605
+ }, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.Apartment.Error.Text, null)), /* @__PURE__ */ n.createElement(c.Apartment.Description, {
1606
1606
  className: C(ne, f.description)
1607
1607
  }, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(G, {
1608
1608
  content: e,
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { M as t } from "./multiline-address-field-rac-D4Ibno80.js";
2
+ import { M as t } from "./multiline-address-field-rac-CDKbEU14.js";
3
3
  const i = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  i as MultilineAddressRAC
@@ -1,19 +1,19 @@
1
1
  import { RicosViewer as v } from "@wix/ricos/viewer";
2
2
  import m from "classnames";
3
- import r, { useState as Q, useCallback as U, useEffect as z, useRef as $ } from "react";
3
+ import r, { useState as U, useCallback as z, useEffect as Q, useRef as $ } from "react";
4
4
  import { NumberField as j, Input as G } from "react-aria-components";
5
- import { ai as C, af as S, as as H, ak as J } from "./form-BpHElSwH.js";
5
+ import { ai as C, af as S, as as H, ak as J } from "./form-_3vjdih8.js";
6
6
  import { f as d } from "./find-child-C60k4CxG.js";
7
- import { D as K, E as W } from "./field-error-headless-C5ZsFUKv.js";
8
- import { L as X } from "./field-label-headless-CS5OYsiI.js";
7
+ import { D as K, E as W } from "./field-error-headless-DvmM1k0W.js";
8
+ import { L as X } from "./field-label-headless-DKn04-OM.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";
12
12
  import { s as i } from "./field-rac.module-DjmaTYkc.js";
13
- import { z as re, Q as te, y as ne, p as ae, i as se } from "./form-element-classes-BXNs5k3q.js";
13
+ import { z as re, P as te, y as ne, p as ae, i as se } from "./form-element-classes-DZiFyihd.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: y } = S(), F = ((D = t == null ? void 0 : t.number) == null ? void 0 : D.multipleOf) || 1, A = (L = t == null ? void 0 : t.number) == null ? void 0 : L.maximum, M = (R = t == null ? void 0 : t.number) == null ? void 0 : R.minimum, T = _(s), [V, I] = Q(T), g = w(b), h = d(n, e.Label), k = d(n, e.Input), q = d(n, e.Description), x = d(n, e.Error), B = U((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: y } = S(), F = ((D = t == null ? void 0 : t.number) == null ? void 0 : D.multipleOf) || 1, A = (L = t == null ? void 0 : t.number) == null ? void 0 : L.maximum, M = (R = t == null ? void 0 : t.number) == null ? void 0 : R.minimum, T = _(s), [V, I] = U(T), g = w(b), h = d(n, e.Label), k = d(n, e.Input), q = d(n, e.Description), x = d(n, e.Error), B = z((N) => {
17
17
  if (N === void 0 || Number.isNaN(N)) {
18
18
  l(""), I(NaN);
19
19
  return;
@@ -24,7 +24,7 @@ const e = ({ children: n }) => {
24
24
  F,
25
25
  l
26
26
  ]);
27
- return z(() => {
27
+ return Q(() => {
28
28
  I(_(s));
29
29
  }, [
30
30
  s
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { N as r } from "./number-input-field-rac-DW1SjB-Z.js";
2
+ import { N as r } from "./number-input-field-rac-Bc6vH-Nl.js";
3
3
  const n = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  n as NumberInputRAC
@@ -1,15 +1,15 @@
1
1
  import e, { useState as h, useRef as N } from "react";
2
2
  import { RicosViewer as O } from "@wix/ricos/viewer";
3
3
  import d from "classnames";
4
- import { ai as E, af as I, ak as x, as as A } from "./form-BpHElSwH.js";
4
+ import { ai as E, af as I, ak as x, as as A } from "./form-_3vjdih8.js";
5
5
  import { TextField as B, Group as P, Input as V, Button as v } from "react-aria-components";
6
6
  import { f as p, a as g } from "./find-child-C60k4CxG.js";
7
- import { D as M, E as k } from "./field-error-headless-C5ZsFUKv.js";
8
- import { L as q } from "./field-label-headless-CS5OYsiI.js";
7
+ import { D as M, E as k } from "./field-error-headless-DvmM1k0W.js";
8
+ import { L as q } from "./field-label-headless-DKn04-OM.js";
9
9
  import { E as U } from "./error-icon-hZxQ6DEy.js";
10
10
  import { H as j } from "./custom-focus-class-_483Pkwp.js";
11
11
  import { s as u } from "./field-rac.module-DjmaTYkc.js";
12
- import { z as H, Q, y as W, p as Z, i as z } from "./form-element-classes-BXNs5k3q.js";
12
+ import { z as H, P as W, y as Z, p as z, i as G } from "./form-element-classes-DZiFyihd.js";
13
13
  const t = ({ children: r, className: o }) => {
14
14
  const { id: i, value: s, onChange: c, disabled: l, readOnly: m, required: n, hasError: a, onBlur: f, onFocus: _, FieldLayout: y } = E(), { labelId: C } = I(), [F, L] = h(!1), R = p(r, t.Label), D = p(r, t.Control), T = p(r, t.Description), S = p(r, t.Error);
15
15
  return /* @__PURE__ */ e.createElement(y, {
@@ -32,7 +32,7 @@ const t = ({ children: r, className: o }) => {
32
32
  })),
33
33
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, T, S)
34
34
  });
35
- }, G = ({ children: r, className: o, ...i }) => {
35
+ }, Q = ({ children: r, className: o, ...i }) => {
36
36
  const { isVisible: s, onToggleVisibility: c } = i, { disabled: l, hasError: m } = E(), n = p(r, t.Input), a = p(r, t.Toggle);
37
37
  return /* @__PURE__ */ e.createElement(P, {
38
38
  className: o,
@@ -71,7 +71,7 @@ const t = ({ children: r, className: o }) => {
71
71
  }));
72
72
  };
73
73
  t.Label = q;
74
- t.Control = G;
74
+ t.Control = Q;
75
75
  t.Input = $;
76
76
  t.Toggle = J;
77
77
  t.Description = M;
@@ -122,9 +122,9 @@ const K = (r) => /* @__PURE__ */ e.createElement("svg", {
122
122
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
123
123
  className: d(H, u.label)
124
124
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
125
- className: d(Q, u.requiredMark)
125
+ className: d(W, u.requiredMark)
126
126
  })), /* @__PURE__ */ e.createElement(t.Control, {
127
- className: d(W, u.input, b.control)
127
+ className: d(Z, u.input, b.control)
128
128
  }, /* @__PURE__ */ e.createElement(t.Input, {
129
129
  className: d(u.innerInput, j)
130
130
  }), /* @__PURE__ */ e.createElement(t.Toggle, {
@@ -132,9 +132,9 @@ const K = (r) => /* @__PURE__ */ e.createElement("svg", {
132
132
  showPasswordTooltipText: r("forms.widget.modals.show-password-tooltip"),
133
133
  hidePasswordTooltipText: r("forms.widget.modals.hide-password-tooltip")
134
134
  }, ({ isVisible: o }) => o ? /* @__PURE__ */ e.createElement(X, null) : /* @__PURE__ */ e.createElement(K, null))), /* @__PURE__ */ e.createElement(t.Error, {
135
- className: d(Z, u.error)
135
+ className: d(z, u.error)
136
136
  }, /* @__PURE__ */ e.createElement(U, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
137
- className: d(z, u.description)
137
+ className: d(G, u.description)
138
138
  }, te));
139
139
  }, ge = () => /* @__PURE__ */ e.createElement(re, null);
140
140
  export {
@@ -1,17 +1,17 @@
1
- import r, { useCallback as V, useRef as z } from "react";
1
+ import r, { useCallback as V, useRef as Q } from "react";
2
2
  import { RicosViewer as j } from "@wix/ricos/viewer";
3
3
  import i from "classnames";
4
4
  import { TextField as w, Group as J, Input as K } from "react-aria-components";
5
- import { ai as D, af as S, ab as x, as as W, ak as X } from "./form-BpHElSwH.js";
5
+ import { ai as D, af as S, ab as x, as as W, ak as X } from "./form-_3vjdih8.js";
6
6
  import { f as m } from "./find-child-C60k4CxG.js";
7
- import { D as Y, E as Z } from "./field-error-headless-C5ZsFUKv.js";
8
- import { L as ee } from "./field-label-headless-CS5OYsiI.js";
7
+ import { D as Y, E as Z } from "./field-error-headless-DvmM1k0W.js";
8
+ import { L as ee } from "./field-label-headless-DKn04-OM.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";
12
12
  import { H as ae } from "./custom-focus-class-_483Pkwp.js";
13
13
  import { s as u } from "./field-rac.module-DjmaTYkc.js";
14
- import { z as se, Q as oe, y as le, p as ce, i as ie } from "./form-element-classes-BXNs5k3q.js";
14
+ import { z as se, P as oe, y as le, p as ce, i as ie } from "./form-element-classes-DZiFyihd.js";
15
15
  function ue(e, t) {
16
16
  return {
17
17
  productId: e.id,
@@ -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, A, g, P;
30
- const { id: t, value: a, onChange: s, disabled: p, readOnly: d, required: y, hasError: b, onBlur: o, onFocus: E, 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({
29
+ var O, A, P, g;
30
+ const { id: t, value: a, onChange: s, disabled: p, readOnly: d, required: y, hasError: b, onBlur: o, onFocus: E, FieldLayout: M, validation: _ } = D(), { labelId: q, prefixId: G } = S(), { regionalFormat: c } = x(), N = (P = (A = (O = _ == null ? void 0 : _.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : A.products) == null ? void 0 : P[0], C = (g = a == null ? void 0 : a.at(0)) == null ? void 0 : g.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)), z = h(C);
45
+ if (L !== z) {
46
46
  if (L === void 0) {
47
47
  s(null);
48
48
  return;
@@ -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 = z(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 E;
96
96
  (E = o.current) == null || E.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 V, useRef as v, useEffect as w, useCallback as Z, createContext as te, useContext as q } from "react";
4
- import { a2 as Ee, as as P, ab as ne, ar as fe, ai as M, af as oe, ak as he } from "./form-BpHElSwH.js";
3
+ import t, { useMemo as B, useState as V, useRef as P, useEffect as w, useCallback as j, createContext as te, useContext as q } from "react";
4
+ import { a2 as Ee, as as v, ab as ne, ar as fe, ai as M, af as oe, ak as he } from "./form-_3vjdih8.js";
5
5
  import { UNSAFE_PortalProvider as ge } from "react-aria";
6
- import { Dialog as re, OverlayTriggerStateContext as be, ModalOverlay as _e, Modal as Ne, SearchField as Oe, ListBoxItem as Se, Group as j, DialogTrigger as Le, Select as Ie, Input as ae, ListBox as ve, Autocomplete as Pe } from "react-aria-components";
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 Pe, Autocomplete as ve } 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-C5ZsFUKv.js";
9
- import { L as Re } from "./field-label-headless-CS5OYsiI.js";
8
+ import { D as Fe, E as De } from "./field-error-headless-DvmM1k0W.js";
9
+ import { L as Re } from "./field-label-headless-DKn04-OM.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";
@@ -16,7 +16,7 @@ import { C as we } from "./chevron-down-icon-CcpVm6B-.js";
16
16
  import { E as Ue } from "./error-icon-hZxQ6DEy.js";
17
17
  import { H as J } from "./custom-focus-class-_483Pkwp.js";
18
18
  import { s as _ } from "./field-rac.module-DjmaTYkc.js";
19
- import { z as ke, Q as Ve, y as qe, B as ze, p as Ge, i as He } from "./form-element-classes-BXNs5k3q.js";
19
+ import { z as ke, P as Ve, y as qe, B as ze, p as Ge, i as He } from "./form-element-classes-DZiFyihd.js";
20
20
  function X(e) {
21
21
  const n = e ? se(e) : void 0, r = n == null ? void 0 : n.country;
22
22
  if (r)
@@ -42,7 +42,7 @@ function ee(e, n) {
42
42
  return e;
43
43
  }
44
44
  function Ye() {
45
- const { t: e } = P(), { language: n } = ne();
45
+ const { t: e } = v(), { language: n } = ne();
46
46
  return B(() => Object.keys(W).reduce((o, a) => {
47
47
  const c = W[a], l = z(c), u = e(`locale-dataset.countries.${c.toUpperCase()}`);
48
48
  return l && Te(a) && o.push({
@@ -59,15 +59,15 @@ function Ye() {
59
59
  function Ke(e, n) {
60
60
  return e.filter((r) => n && n.length > 0 ? n.includes(r.shortCountryCode) : !0);
61
61
  }
62
- function Qe(e, n) {
62
+ function Ze(e, n) {
63
63
  const { countryName: r, callingCode: o, shortCountryCode: a } = e;
64
64
  return !!(k(r, n) || k(o, n) || k(a, n));
65
65
  }
66
66
  function k(e, n) {
67
67
  return e.toLowerCase().includes(n.toLowerCase());
68
68
  }
69
- function Ze({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
70
- const [a, c] = V(e || ""), l = v(U(e ?? null) ?? ""), [u, i] = V(n);
69
+ function je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
70
+ const [a, c] = V(e || ""), l = P(U(e ?? null) ?? ""), [u, i] = V(n);
71
71
  fe(() => {
72
72
  c(""), l.current = "", i(n), o("");
73
73
  });
@@ -90,7 +90,7 @@ function Ze({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
90
90
  m,
91
91
  n
92
92
  ]);
93
- const C = Z((d) => {
93
+ const C = j((d) => {
94
94
  if (c(d), !d) {
95
95
  l.current = "", o(null);
96
96
  return;
@@ -103,7 +103,7 @@ function Ze({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
103
103
  }, [
104
104
  r,
105
105
  o
106
- ]), p = Z((d) => {
106
+ ]), p = j((d) => {
107
107
  i(d), c((f) => {
108
108
  const y = U(ee(f, d));
109
109
  return l.current = y ?? "", o(y), f;
@@ -149,7 +149,7 @@ const le = /* @__PURE__ */ te(null), N = () => {
149
149
  m
150
150
  ]), d = B(() => p.map((x) => x.shortCountryCode), [
151
151
  p
152
- ]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: O, handleCountryCodeChange: S } = Ze({
152
+ ]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: O, handleCountryCodeChange: S } = je({
153
153
  value: r,
154
154
  defaultCountryCode: c,
155
155
  allowedCountryCodes: d,
@@ -177,7 +177,7 @@ const le = /* @__PURE__ */ te(null), N = () => {
177
177
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, T)
178
178
  }));
179
179
  }, Y = ({ children: e, className: n }) => {
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 && z(p.longCountryCode) || "", f = u("field.phone.country-code.aria-label"), y = p ? `${f}, ${p.countryName}, ${d}` : f;
180
+ const { inputId: r, labelId: o } = oe(), { hasError: a, disabled: c, readOnly: l } = M(), { t: u } = v(), { selectedCountryCode: i, countries: m } = N(), C = `${r}-country`, p = i ? m.find((O) => O.shortCountryCode === i) : void 0, d = p && z(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,
183
183
  id: C,
@@ -186,7 +186,7 @@ const le = /* @__PURE__ */ te(null), N = () => {
186
186
  className: n,
187
187
  "data-invalid": a || void 0
188
188
  }, e);
189
- }, je = ({ className: e }) => {
189
+ }, Qe = ({ className: e }) => {
190
190
  const { selectedCountryCode: n, countries: r } = N(), o = r.find((a) => a.shortCountryCode === n);
191
191
  return o ? /* @__PURE__ */ t.createElement(H, {
192
192
  className: e,
@@ -198,7 +198,7 @@ const le = /* @__PURE__ */ te(null), N = () => {
198
198
  className: n
199
199
  }, e);
200
200
  };
201
- Y.Flag = je;
201
+ Y.Flag = Qe;
202
202
  Y.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);
@@ -237,7 +237,7 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
237
237
  }
238
238
  }, e)))));
239
239
  }, ie = ({ children: e, listBoxProps: n }) => {
240
- const { countries: r } = N(), o = h(e, g.Option), a = h(e, g.Search), c = h(e, g.EmptyState), l = /* @__PURE__ */ t.createElement(ve, {
240
+ const { countries: r } = N(), o = h(e, g.Option), a = h(e, g.Search), c = h(e, g.EmptyState), l = /* @__PURE__ */ t.createElement(Pe, {
241
241
  ...n,
242
242
  renderEmptyState: c ? () => c : void 0
243
243
  }, r.map((u) => {
@@ -250,10 +250,10 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
250
250
  longCountryCode: u.longCountryCode
251
251
  });
252
252
  }));
253
- return a ? /* @__PURE__ */ t.createElement(Pe, {
253
+ return a ? /* @__PURE__ */ t.createElement(ve, {
254
254
  filter: (u, i, m) => {
255
255
  const C = r.find((p) => p.shortCountryCode === m.key);
256
- return !!C && Qe(C, i);
256
+ return !!C && Ze(C, i);
257
257
  }
258
258
  }, a, l) : l;
259
259
  };
@@ -309,7 +309,7 @@ $.Name = de;
309
309
  $.Code = pe;
310
310
  g.Option = $;
311
311
  const tt = ({ className: e }) => {
312
- const { t: n } = P(), { inputId: r, ariaDescribedBy: o } = oe(), { id: a, placeholder: c, disabled: l, readOnly: u, required: i, label: m, hasError: C } = M(), { currentValue: p, handlePhoneChange: d } = N(), f = v(null);
312
+ const { t: n } = v(), { inputId: r, ariaDescribedBy: o } = oe(), { id: a, placeholder: c, disabled: l, readOnly: u, required: i, label: m, hasError: C } = M(), { currentValue: p, handlePhoneChange: d } = N(), f = P(null);
313
313
  return he(() => {
314
314
  var y;
315
315
  (y = f.current) == null || y.focus({
@@ -331,18 +331,18 @@ const tt = ({ className: e }) => {
331
331
  className: e
332
332
  });
333
333
  }, nt = ({ children: e, className: n }) => {
334
- const r = v(null), o = v(null), a = v(!1), { disabled: c, readOnly: l, required: u, hasError: i, showFlag: m, onFocus: C, onBlur: p } = M(), d = Me(p), { t: f } = P(), { selectedCountryCode: y, handleCountryCodeChange: O, countries: S } = N(), A = h(e, s.CountryButton), F = h(e, s.CountryOptions.Modal), T = F ?? h(e, s.CountryOptions.Popover), D = h(e, s.PhoneNumber), R = {
334
+ const r = P(null), o = P(null), a = P(!1), { disabled: c, readOnly: l, required: u, hasError: i, showFlag: m, onFocus: C, onBlur: p } = M(), d = Me(p), { t: f } = v(), { selectedCountryCode: y, handleCountryCodeChange: O, countries: S } = N(), A = h(e, s.CountryButton), F = h(e, s.CountryOptions.Modal), T = F ?? h(e, s.CountryOptions.Popover), D = h(e, s.PhoneNumber), R = {
335
335
  onFocus: () => {
336
336
  a.current || (a.current = !0, C == null || C());
337
337
  },
338
338
  onBlur: (L) => {
339
- var K, Q;
339
+ var K, Z;
340
340
  const x = L.relatedTarget;
341
- !((K = r.current) != null && K.contains(x)) && !((Q = o.current) != null && Q.contains(x)) && (a.current = !1, d());
341
+ !((K = r.current) != null && K.contains(x)) && !((Z = o.current) != null && Z.contains(x)) && (a.current = !1, d());
342
342
  }
343
343
  };
344
344
  if (S.length === 1)
345
- return /* @__PURE__ */ t.createElement(j, {
345
+ return /* @__PURE__ */ t.createElement(Q, {
346
346
  ref: r,
347
347
  className: n,
348
348
  isDisabled: c,
@@ -355,7 +355,7 @@ const tt = ({ className: e }) => {
355
355
  triggerRef: r,
356
356
  optionsRef: o
357
357
  }));
358
- return /* @__PURE__ */ t.createElement(j, {
358
+ return /* @__PURE__ */ t.createElement(Q, {
359
359
  ref: r,
360
360
  className: n,
361
361
  isDisabled: c,
@@ -421,7 +421,7 @@ const ot = (e) => /* @__PURE__ */ t.createElement("svg", {
421
421
  className: E.chevron,
422
422
  "aria-hidden": "true"
423
423
  }, /* @__PURE__ */ t.createElement(we, null)), Vt = () => {
424
- const { t: e } = P(), { isMobile: n, PortalContainer: r } = ne(), o = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
424
+ const { t: e } = v(), { isMobile: n, PortalContainer: r } = ne(), o = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
425
425
  className: E.countrySearchContainer,
426
426
  "aria-label": e("field.phone.country-search-input.aria-label")
427
427
  }, /* @__PURE__ */ t.createElement(rt, {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { P as o } from "./phone-input-field-rac-BYAnwk5h.js";
2
+ import { P as o } from "./phone-input-field-rac-BTCDRtYe.js";
3
3
  const r = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  r as PhoneRAC