@wix/form-elements 1.160.0 → 1.162.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 (115) hide show
  1. package/dist/component/{appointment-rac-BmHu56e5.js → appointment-rac-3Z1wiBX6.js} +366 -359
  2. package/dist/component/{bookings-address-rac-DY9l2g0h.js → bookings-address-rac-2zV-a8SW.js} +1 -1
  3. package/dist/component/{bookings-email-rac-B5vNSOsS.js → bookings-email-rac-C1WakVnh.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CJiefCNz.js → bookings-first-name-rac-6f18uXA0.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BFu7Ko5w.js → bookings-header-rac-BeaxlPQl.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DegMM13h.js → bookings-last-name-rac-CsLZaKfO.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DrA-5tBH.js → bookings-login-bar-rac-B3TRivWU.js} +5 -5
  8. package/dist/component/{bookings-phone-rac-DsaeqxCI.js → bookings-phone-rac-BnFEknvv.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-jRHiwqi8.js → bookings-rich-text-rac-CFPqDZay.js} +1 -1
  10. package/dist/component/{calendar.module-CKCBG_Pg.js → calendar.module-BMUyMVja.js} +19 -19
  11. package/dist/component/{checkbox-field-rac-CyoBb6Yf.js → checkbox-field-rac-DqGbxAd0.js} +45 -45
  12. package/dist/component/{checkbox-group-field-headless-Bv1gU3oL.js → checkbox-group-field-headless-CiobdaVa.js} +38 -38
  13. package/dist/component/{checkbox-group-field-rac-DasArcdV.js → checkbox-group-field-rac-Dxrc2F4x.js} +14 -14
  14. package/dist/component/{checkbox-group-rac-CzmufV1U.js → checkbox-group-rac-C3tL4YSr.js} +1 -1
  15. package/dist/component/{checkbox-indicator-module-classes-akWZsZNn.js → checkbox-indicator-module-classes-DUTR4mcg.js} +1 -1
  16. package/dist/component/{checkbox-rac-6C7XoUoZ.js → checkbox-rac-DhZsIMuk.js} +1 -1
  17. package/dist/component/{contacts-address-rac-BZobbFtz.js → contacts-address-rac--GiWpa6C.js} +1 -1
  18. package/dist/component/{contacts-birthdate-rac-DIzf41DS.js → contacts-birthdate-rac-CmI2nPpr.js} +1 -1
  19. package/dist/component/{contacts-company-rac-BiBDO28r.js → contacts-company-rac-DcSLvPnR.js} +1 -1
  20. package/dist/component/{contacts-email-rac-5mqokCSD.js → contacts-email-rac-BLOIHGP9.js} +1 -1
  21. package/dist/component/{contacts-first-name-rac-BXe3_Nz5.js → contacts-first-name-rac-DgMCKLeE.js} +1 -1
  22. package/dist/component/{contacts-last-name-rac-Cfqgh7u1.js → contacts-last-name-rac-tcEQP1Db.js} +1 -1
  23. package/dist/component/{contacts-phone-rac-cmLUWnAc.js → contacts-phone-rac-CK664cfW.js} +1 -1
  24. package/dist/component/{contacts-position-rac-DTyvklfN.js → contacts-position-rac-B8skwXy6.js} +1 -1
  25. package/dist/component/{contacts-subscribe-rac-D-ZEX1A3.js → contacts-subscribe-rac-DQZYJjMo.js} +1 -1
  26. package/dist/component/{contacts-tax-id-rac-B4NYJwWt.js → contacts-tax-id-rac-Ci24ixLu.js} +1 -1
  27. package/dist/component/{date-availability-Dach9aRC.js → date-availability-Va6_2NAZ.js} +1 -1
  28. package/dist/component/{date-input-field-rac-B72mHcya.js → date-input-field-rac-lAKyuHOI.js} +98 -98
  29. package/dist/component/{date-input-rac-CYix11gT.js → date-input-rac-ClEesupR.js} +1 -1
  30. package/dist/component/{date-picker-field-rac-B8pvtPir.js → date-picker-field-rac-h45jfoso.js} +72 -72
  31. package/dist/component/{date-picker-rac-D6cR0zH9.js → date-picker-rac-B-pvqBn0.js} +1 -1
  32. package/dist/component/{date-time-input-field-rac-B7Y3Yf5l.js → date-time-input-field-rac-41QpurJp.js} +72 -72
  33. package/dist/component/{date-time-input-rac-DMN-noQX.js → date-time-input-rac-BQOUl7It.js} +1 -1
  34. package/dist/component/{dext-checkbox-group-rac-Kq0GnteP.js → dext-checkbox-group-rac-C4Q6tfBD.js} +2 -2
  35. package/dist/component/{dext-checkbox-rac-BY9GZ4n1.js → dext-checkbox-rac-Yo2PHNDA.js} +1 -1
  36. package/dist/component/{dext-date-picker-rac-CXArIddp.js → dext-date-picker-rac-jM9x8W6a.js} +1 -1
  37. package/dist/component/{dext-date-time-input-rac-B39TtxGq.js → dext-date-time-input-rac-BgW_4WIg.js} +1 -1
  38. package/dist/component/{dext-dropdown-rac-C3y0G8cS.js → dext-dropdown-rac-DCL7D6-G.js} +1 -1
  39. package/dist/component/{dext-email-rac-BIg3cq7Q.js → dext-email-rac-Dz7yBqkd.js} +1 -1
  40. package/dist/component/{dext-number-input-rac-27sHJ7yN.js → dext-number-input-rac-BdMjBpH9.js} +1 -1
  41. package/dist/component/{dext-phone-rac-CcohoFQp.js → dext-phone-rac-D2i9fXL3.js} +1 -1
  42. package/dist/component/{dext-radio-group-rac-eead3Gve.js → dext-radio-group-rac-Br2f1Ahx.js} +2 -2
  43. package/dist/component/{dext-rating-input-rac-B_E6OcBr.js → dext-rating-input-rac-OkfJ7Eb0.js} +1 -1
  44. package/dist/component/{dext-tags-rac-Yd9aAtnF.js → dext-tags-rac-43vDoDdM.js} +2 -2
  45. package/dist/component/{dext-text-area-rac-CMACri2C.js → dext-text-area-rac-C072pWO9.js} +1 -1
  46. package/dist/component/{dext-text-input-rac-sNjSCfQ-.js → dext-text-input-rac-BiHJpJCt.js} +1 -1
  47. package/dist/component/{dext-url-input-rac-DwhbzJty.js → dext-url-input-rac-YOGYMj5C.js} +1 -1
  48. package/dist/component/{donation-rac-BVAN3kMk.js → donation-rac-fCt3mddA.js} +106 -106
  49. package/dist/component/{dropdown-field-rac-DdoGigWx.js → dropdown-field-rac-EQrQJ2-C.js} +4 -4
  50. package/dist/component/{dropdown-rac-CRkt5w47.js → dropdown-rac-MPCcjrFd.js} +1 -1
  51. package/dist/component/{ecom-address-rac-C36hFHW0.js → ecom-address-rac-DSgpHqzV.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-BKfQ348w.js → ecom-subscription-checkbox-rac-Dw6Ke0Fb.js} +2 -2
  53. package/dist/component/{email-input-field-rac-MOaISYxa.js → email-input-field-rac-DVmvH4u4.js} +80 -80
  54. package/dist/component/{events-repeater-rac-D6p-NgE8.js → events-repeater-rac-Uwpo7XF4.js} +25 -25
  55. package/dist/component/{events-rsvp-rac-DVpgN8gm.js → events-rsvp-rac-D2DJAkep.js} +4 -4
  56. package/dist/component/{field-error-headless-XNWmDH3E.js → field-error-headless-DAc8FpKI.js} +7 -7
  57. package/dist/component/{field-label-headless-CORRAJGt.js → field-label-headless-DxxwJtjh.js} +17 -17
  58. package/dist/component/field-rac.module-ts2t4WUO.js +25 -0
  59. package/dist/component/{file-upload-rac-DRMr7E4b.js → file-upload-rac-CBKIeaxX.js} +194 -194
  60. package/dist/component/{fixed-payment-rac-BUXzNex9.js → fixed-payment-rac-BsCDoc1p.js} +20 -20
  61. package/dist/component/{form-DSpx-AO8.js → form-GAuLAdjq.js} +338 -347
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +1 -1
  64. package/dist/component/{header-field-rac-CiDXlNsa.js → header-field-rac-DtZCjzLJ.js} +6 -6
  65. package/dist/component/{header-rac-B5Rg-h8u.js → header-rac-B1hlVDf8.js} +1 -1
  66. package/dist/component/image-choice-rac-DQaCg_Xk.js +155 -0
  67. package/dist/component/{index-CwruESwc.js → index-BaVjVNYj.js} +5 -5
  68. package/dist/component/{index-Bz7ZhQsF.js → index-C1EXd9jU.js} +50 -50
  69. package/dist/component/{isObjectLike-C5dHxHP0.js → isObjectLike-m2dqIREj.js} +3 -3
  70. package/dist/component/{multiline-address-field-rac-Z-qF366L.js → multiline-address-field-rac-CMMdLb-J.js} +41 -41
  71. package/dist/component/{multiline-address-rac-CJIHTMw5.js → multiline-address-rac-VUQNp-Tz.js} +1 -1
  72. package/dist/component/{number-input-field-rac-D4vf6I6N.js → number-input-field-rac-B5bsGDKm.js} +24 -24
  73. package/dist/component/{number-input-rac-B2jW6JUQ.js → number-input-rac-BzzW0p9R.js} +1 -1
  74. package/dist/component/{password-rac-DGRZ17Jl.js → password-rac-2Rr7lvNO.js} +25 -25
  75. package/dist/component/{payment-input-rac-BtD-tAKv.js → payment-input-rac-CEUzIrJA.js} +31 -31
  76. package/dist/component/{phone-input-field-rac-KD4-APhr.js → phone-input-field-rac-BDBaqAzE.js} +59 -59
  77. package/dist/component/{phone-rac-Cw2yccgg.js → phone-rac-BTK8-tkq.js} +1 -1
  78. package/dist/component/{product-list-rac-XbzTDdbp.js → product-list-rac-1QbeT5RH.js} +43 -43
  79. package/dist/component/{quiz-radio-group-rac-BDw_mAw5.js → quiz-radio-group-rac-tn2CzdCu.js} +1 -1
  80. package/dist/component/{radio-button-module-classes-CFGf0Hzh.js → radio-button-module-classes-aK1SQcLG.js} +30 -30
  81. package/dist/component/{radio-group-field-rac-CXN7tyVu.js → radio-group-field-rac-DlMXhW_S.js} +7 -7
  82. package/dist/component/{radio-group-rac-COHzqjBh.js → radio-group-rac-BmU_5tBK.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-DCXNZgf1.js → rating-input-field-rac-DUPJUAX2.js} +27 -27
  84. package/dist/component/{rating-input-rac-DwQt9ML7.js → rating-input-rac-BLhkZdj8.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-B7rPwNns.js → rich-content-rac.module-C9bGXB69.js} +5 -5
  86. package/dist/component/{rich-text-field-rac-DlER7NRD.js → rich-text-field-rac-CVqmsZzZ.js} +6 -6
  87. package/dist/component/{rich-text-rac-CjicsHA7.js → rich-text-rac-D8K6445F.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-B81LC_6_.js → service-dropdown-rac-PR_iLdmo.js} +31 -31
  89. package/dist/component/{services-multi-choice-rac-BR6gZeHk.js → services-multi-choice-rac-BvMadJCf.js} +19 -19
  90. package/dist/component/{signature-rac-XFj7Ddtp.js → signature-rac-Cpjv6kcl.js} +235 -235
  91. package/dist/component/{submit-button-rac-Bz7zs_3W.js → submit-button-rac-DpDk7cMb.js} +7 -7
  92. package/dist/component/{tags-field-rac-DWWkNKqc.js → tags-field-rac-DnyWNHXT.js} +67 -67
  93. package/dist/component/{tags-rac-BXyiQ9i1.js → tags-rac-D5Do7BNm.js} +1 -1
  94. package/dist/component/{text-area-field-rac-DsIRYi0d.js → text-area-field-rac-DLBgla0L.js} +27 -27
  95. package/dist/component/{text-area-rac-CF9pDP9d.js → text-area-rac-Bfsl2gSn.js} +1 -1
  96. package/dist/component/{text-input-field-rac-BwIDZACz.js → text-input-field-rac-hLsUcQNw.js} +4 -4
  97. package/dist/component/{text-input-headless-5kQs2_Xu.js → text-input-headless-Otd7Uy7V.js} +13 -13
  98. package/dist/component/{text-input-rac-CRmSuw1k.js → text-input-rac-jpnc-v91.js} +1 -1
  99. package/dist/component/{time-input-rac-BRMNpe51.js → time-input-rac-DnjrmZZw.js} +26 -26
  100. package/dist/component/url-input-field-rac-C90NYHb8.js +77 -0
  101. package/dist/component/{url-input-rac-Dv-kp50D.js → url-input-rac-C3wfEnqs.js} +1 -1
  102. package/dist/component/{use-dropdown-option-class-name-BQi_qE_-.js → use-dropdown-option-class-name-CYkLlKBs.js} +12 -12
  103. package/dist/component/{use-dropdown-trigger-class-name-bAK8aHiG.js → use-dropdown-trigger-class-name-CTt4Z67m.js} +17 -17
  104. package/dist/component/{use-element-state-class-name-rXM_lHug.js → use-element-state-class-name-ByDw6j7c.js} +1 -1
  105. package/dist/component/{use-hoverable-input-class-name-BnV_uerV.js → use-hoverable-input-class-name-Duhgtn2I.js} +3 -3
  106. package/dist/component/use-is-forced-open-dropdown-B5gNY4Zm.js +53 -0
  107. package/dist/component/{use-service-options-base-CLeE9-Tx.js → use-service-options-base-DE-QaNDw.js} +8 -8
  108. package/dist/component/use-text-input-class-name-CmxSw6bY.js +6 -0
  109. package/dist/form.d.ts +3 -0
  110. package/package.json +2 -2
  111. package/dist/component/field-rac.module-DP0lkkEv.js +0 -25
  112. package/dist/component/image-choice-rac-CtoA_KDp.js +0 -155
  113. package/dist/component/url-input-field-rac-CKLS3QDk.js +0 -77
  114. package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +0 -53
  115. package/dist/component/use-text-input-class-name-DIKWvfkm.js +0 -6
@@ -1,22 +1,22 @@
1
- import { RicosViewer as z } from "@wix/ricos/viewer";
1
+ import { RicosViewer as G } from "@wix/ricos/viewer";
2
2
  import L from "classnames";
3
3
  import n, { useMemo as q, createContext as Ve, useContext as Ce, useState as Ee, useRef as x, useCallback as R, useEffect as Ae } from "react";
4
4
  import { UNSAFE_PortalProvider as Tt } from "react-aria";
5
- import { bu as Ct, d as It, bp as Mt, br as Lt, b2 as wt, b3 as qt, aX as xt, b1 as $, F as K, bJ as Pe, bi as it, bz as P, bw as M, bB as ae, bv as Nt, b7 as Bt, C as Oe, bg as kt, bk as Ut, bG as Wt, bA as Vt, bF as $t, bn as Kt, bc as Yt, bm as Ht, bC as jt, aD as Jt, W as Xt, V as G, ab as Q, I as Ne, L as Z, z as ee, X as zt, Y as Gt } from "./form-DSpx-AO8.js";
5
+ import { bt as Ct, d as It, bo as Mt, bq as Lt, b1 as wt, b2 as qt, aW as xt, b0 as $, F as K, bI as Pe, bh as it, by as P, bv as M, bA as ae, bu as Nt, b6 as Bt, C as Oe, bf as kt, bj as Ut, bF as Wt, bz as Vt, bE as $t, bm as Kt, bb as Yt, bl as Ht, bB as jt, aC as Jt, V as Xt, U as z, aa as Q, H as Ne, K as Z, G as ee, W as Gt, X as zt } from "./form-GAuLAdjq.js";
6
6
  import { f as b, a as v } from "./find-child-C60k4CxG.js";
7
7
  import { F as Qt, V as Zt } from "./headless-styles-CmcyA_pi.js";
8
- import { a as en } from "./use-is-forced-open-dropdown-Bp-5Xpmw.js";
8
+ import { a as en } from "./use-is-forced-open-dropdown-B5gNY4Zm.js";
9
9
  import { TextField as be, Input as le, ComboBoxStateContext as $e, ComboBox as Fe, Popover as Se, ListBox as Te, ListBoxItem as he, Group as Ot, Button as gt } from "react-aria-components";
10
- import { D as ie, E as ce } from "./field-error-headless-XNWmDH3E.js";
11
- import { L as de } from "./field-label-headless-CORRAJGt.js";
12
- import { e as tn, c as nn, a as rn, r as vt } from "./isObjectLike-C5dHxHP0.js";
13
- import { V as on, u as sn } from "./use-dropdown-option-class-name-BQi_qE_-.js";
10
+ import { D as ie, E as ce } from "./field-error-headless-DAc8FpKI.js";
11
+ import { L as de } from "./field-label-headless-DxxwJtjh.js";
12
+ import { e as tn, c as nn, a as rn, r as vt } from "./isObjectLike-m2dqIREj.js";
13
+ import { V as on, u as sn } from "./use-dropdown-option-class-name-CYkLlKBs.js";
14
14
  import { u as an } from "./use-invoke-callback-UH73A_J3.js";
15
15
  import { C as ct } from "./chevron-down-icon-CcpVm6B-.js";
16
16
  import { E as te } from "./error-icon-hZxQ6DEy.js";
17
17
  import { H as Me } from "./custom-focus-class-_483Pkwp.js";
18
- import { s as C } from "./field-rac.module-DP0lkkEv.js";
19
- import { u as dt } from "./use-hoverable-input-class-name-BnV_uerV.js";
18
+ import { s as C } from "./field-rac.module-ts2t4WUO.js";
19
+ import { u as dt } from "./use-hoverable-input-class-name-Duhgtn2I.js";
20
20
  const ln = (e, t, o) => {
21
21
  var s, l, i, a;
22
22
  const r = (s = e.steps) == null ? void 0 : s.map((d) => {
@@ -1076,7 +1076,7 @@ const U = ({ children: e }) => {
1076
1076
  renderLabel: () => v(N, {
1077
1077
  label: f
1078
1078
  }),
1079
- renderInput: () => /* @__PURE__ */ n.createElement(zn, {
1079
+ renderInput: () => /* @__PURE__ */ n.createElement(Gn, {
1080
1080
  value: o,
1081
1081
  onChange: r,
1082
1082
  disabled: s,
@@ -1105,7 +1105,7 @@ const U = ({ children: e }) => {
1105
1105
  }, S),
1106
1106
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, _, g)
1107
1107
  });
1108
- }, zn = ({ children: e, value: t, onChange: o, disabled: r, readOnly: s, required: l, hasError: i, onBlur: a, onFocus: d }) => {
1108
+ }, Gn = ({ children: e, value: t, onChange: o, disabled: r, readOnly: s, required: l, hasError: i, onBlur: a, onFocus: d }) => {
1109
1109
  const { labelId: m } = M(), { onAddressSelect: u } = Ie(), y = Le(), I = Ke({
1110
1110
  enabled: !0
1111
1111
  }), { predictions: p, updatePredictions: E, clearPredictions: f } = Rt({
@@ -1169,7 +1169,7 @@ const U = ({ children: e }) => {
1169
1169
  }), /* @__PURE__ */ n.createElement(Ye, {
1170
1170
  optionCount: h.length
1171
1171
  }));
1172
- }, Gn = ({ className: e, ...t }) => {
1172
+ }, zn = ({ className: e, ...t }) => {
1173
1173
  const { id: o, placeholder: r } = P(), { inputId: s, ariaDescribedBy: l } = M(), { onFocus: i } = t, a = x(null);
1174
1174
  return ae(() => {
1175
1175
  var d;
@@ -1185,8 +1185,8 @@ const U = ({ children: e }) => {
1185
1185
  placeholder: r,
1186
1186
  onFocus: i
1187
1187
  });
1188
- }, ze = ({ children: e, className: t }) => {
1189
- const o = b(e, ze.Option);
1188
+ }, Ge = ({ children: e, className: t }) => {
1189
+ const o = b(e, Ge.Option);
1190
1190
  return /* @__PURE__ */ n.createElement(Se, {
1191
1191
  className: t,
1192
1192
  containerPadding: 0,
@@ -1205,10 +1205,10 @@ const U = ({ children: e }) => {
1205
1205
  textValue: r
1206
1206
  }, r);
1207
1207
  };
1208
- ze.Option = Qn;
1208
+ Ge.Option = Qn;
1209
1209
  U.Label = de;
1210
- U.Input = Gn;
1211
- U.Options = ze;
1210
+ U.Input = zn;
1211
+ U.Options = Ge;
1212
1212
  U.Description = ie;
1213
1213
  U.Error = ce;
1214
1214
  const se = ({ children: e }) => {
@@ -1325,8 +1325,8 @@ const H = ({ children: e }) => {
1325
1325
  }, e);
1326
1326
  ve.Input = er;
1327
1327
  ve.Trigger = tr;
1328
- const Ge = ({ children: e, className: t, ...o }) => {
1329
- const { options: r } = o, s = b(e, Ge.Option);
1328
+ const ze = ({ children: e, className: t, ...o }) => {
1329
+ const { options: r } = o, s = b(e, ze.Option);
1330
1330
  return /* @__PURE__ */ n.createElement(Se, {
1331
1331
  className: t,
1332
1332
  containerPadding: 0,
@@ -1344,10 +1344,10 @@ const Ge = ({ children: e, className: t, ...o }) => {
1344
1344
  textValue: r
1345
1345
  }, r);
1346
1346
  };
1347
- Ge.Option = nr;
1347
+ ze.Option = nr;
1348
1348
  H.Label = de;
1349
1349
  H.Control = ve;
1350
- H.Options = Ge;
1350
+ H.Options = ze;
1351
1351
  H.Description = ie;
1352
1352
  H.Error = ce;
1353
1353
  const rr = () => ue("country"), or = () => ue("subdivision"), sr = () => ue("city"), ar = () => ue("addressLine"), lr = () => ue("addressLine2"), ir = () => ue("postalCode"), cr = () => ue("streetName"), dr = () => ue("streetNumber"), ur = () => ue("apartment"), mr = {
@@ -1501,13 +1501,13 @@ const br = "_postalCodeControl_1tire_1", fr = "_comboControl_1tire_5", yr = "_co
1501
1501
  comboControl: fr,
1502
1502
  comboTrigger: yr
1503
1503
  }, xr = () => {
1504
- const e = dt(zt, [
1504
+ const e = dt(Gt, [
1505
1505
  _e.comboControl
1506
- ]), t = dt(Gt, []), o = sn(Me);
1506
+ ]), t = dt(zt, []), o = sn(Me);
1507
1507
  return /* @__PURE__ */ n.createElement(c, {
1508
1508
  className: Xt
1509
1509
  }, /* @__PURE__ */ n.createElement(c.Country, null, /* @__PURE__ */ n.createElement(c.Country.Label, {
1510
- className: L(G, C.label)
1510
+ className: L(z, C.label)
1511
1511
  }, /* @__PURE__ */ n.createElement(c.Country.Label.Required, {
1512
1512
  className: L(Q, C.requiredMark)
1513
1513
  })), /* @__PURE__ */ n.createElement(c.Country.Control, {
@@ -1526,11 +1526,11 @@ const br = "_postalCodeControl_1tire_1", fr = "_comboControl_1tire_5", yr = "_co
1526
1526
  className: L(Z, C.error)
1527
1527
  }, /* @__PURE__ */ n.createElement(te, null), /* @__PURE__ */ n.createElement(c.Country.Error.Text, null)), /* @__PURE__ */ n.createElement(c.Country.Description, {
1528
1528
  className: L(ee, C.description)
1529
- }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(z, {
1529
+ }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(G, {
1530
1530
  content: r,
1531
1531
  locale: s
1532
1532
  }))), /* @__PURE__ */ n.createElement(c.AddressLine, null, /* @__PURE__ */ n.createElement(c.AddressLine.Label, {
1533
- className: L(G, C.label)
1533
+ className: L(z, C.label)
1534
1534
  }, /* @__PURE__ */ n.createElement(c.AddressLine.Label.Required, {
1535
1535
  className: L(Q, C.requiredMark)
1536
1536
  })), /* @__PURE__ */ n.createElement(c.AddressLine.Input, {
@@ -1543,11 +1543,11 @@ const br = "_postalCodeControl_1tire_1", fr = "_comboControl_1tire_5", yr = "_co
1543
1543
  className: L(Z, C.error)
1544
1544
  }, /* @__PURE__ */ n.createElement(te, null), /* @__PURE__ */ n.createElement(c.AddressLine.Error.Text, null)), /* @__PURE__ */ n.createElement(c.AddressLine.Description, {
1545
1545
  className: L(ee, C.description)
1546
- }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(z, {
1546
+ }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(G, {
1547
1547
  content: r,
1548
1548
  locale: s
1549
1549
  }))), /* @__PURE__ */ n.createElement(c.AddressLine2, null, /* @__PURE__ */ n.createElement(c.AddressLine2.Label, {
1550
- className: L(G, C.label)
1550
+ className: L(z, C.label)
1551
1551
  }, /* @__PURE__ */ n.createElement(c.AddressLine2.Label.Required, {
1552
1552
  className: L(Q, C.requiredMark)
1553
1553
  })), /* @__PURE__ */ n.createElement(c.AddressLine2.Input, {
@@ -1556,11 +1556,11 @@ const br = "_postalCodeControl_1tire_1", fr = "_comboControl_1tire_5", yr = "_co
1556
1556
  className: L(Z, C.error)
1557
1557
  }, /* @__PURE__ */ n.createElement(te, null), /* @__PURE__ */ n.createElement(c.AddressLine2.Error.Text, null)), /* @__PURE__ */ n.createElement(c.AddressLine2.Description, {
1558
1558
  className: L(ee, C.description)
1559
- }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(z, {
1559
+ }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(G, {
1560
1560
  content: r,
1561
1561
  locale: s
1562
1562
  }))), /* @__PURE__ */ n.createElement(c.City, null, /* @__PURE__ */ n.createElement(c.City.Label, {
1563
- className: L(G, C.label)
1563
+ className: L(z, C.label)
1564
1564
  }, /* @__PURE__ */ n.createElement(c.City.Label.Required, {
1565
1565
  className: L(Q, C.requiredMark)
1566
1566
  })), /* @__PURE__ */ n.createElement(c.City.Input, {
@@ -1569,11 +1569,11 @@ const br = "_postalCodeControl_1tire_1", fr = "_comboControl_1tire_5", yr = "_co
1569
1569
  className: L(Z, C.error)
1570
1570
  }, /* @__PURE__ */ n.createElement(te, null), /* @__PURE__ */ n.createElement(c.City.Error.Text, null)), /* @__PURE__ */ n.createElement(c.City.Description, {
1571
1571
  className: L(ee, C.description)
1572
- }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(z, {
1572
+ }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(G, {
1573
1573
  content: r,
1574
1574
  locale: s
1575
1575
  }))), /* @__PURE__ */ n.createElement(c.PostalCode, null, /* @__PURE__ */ n.createElement(c.PostalCode.Label, {
1576
- className: L(G, C.label)
1576
+ className: L(z, C.label)
1577
1577
  }, /* @__PURE__ */ n.createElement(c.PostalCode.Label.Required, {
1578
1578
  className: L(Q, C.requiredMark)
1579
1579
  })), /* @__PURE__ */ n.createElement(c.PostalCode.Control, {
@@ -1588,11 +1588,11 @@ const br = "_postalCodeControl_1tire_1", fr = "_comboControl_1tire_5", yr = "_co
1588
1588
  className: L(Z, C.error)
1589
1589
  }, /* @__PURE__ */ n.createElement(te, null), /* @__PURE__ */ n.createElement(c.PostalCode.Error.Text, null)), /* @__PURE__ */ n.createElement(c.PostalCode.Description, {
1590
1590
  className: L(ee, C.description)
1591
- }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(z, {
1591
+ }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(G, {
1592
1592
  content: r,
1593
1593
  locale: s
1594
1594
  }))), /* @__PURE__ */ n.createElement(c.Subdivision, null, /* @__PURE__ */ n.createElement(c.Subdivision.Label, {
1595
- className: L(G, C.label)
1595
+ className: L(z, C.label)
1596
1596
  }, /* @__PURE__ */ n.createElement(c.Subdivision.Label.Required, {
1597
1597
  className: L(Q, C.requiredMark)
1598
1598
  })), /* @__PURE__ */ n.createElement(c.Subdivision.Control, {
@@ -1611,11 +1611,11 @@ const br = "_postalCodeControl_1tire_1", fr = "_comboControl_1tire_5", yr = "_co
1611
1611
  className: L(Z, C.error)
1612
1612
  }, /* @__PURE__ */ n.createElement(te, null), /* @__PURE__ */ n.createElement(c.Subdivision.Error.Text, null)), /* @__PURE__ */ n.createElement(c.Subdivision.Description, {
1613
1613
  className: L(ee, C.description)
1614
- }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(z, {
1614
+ }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(G, {
1615
1615
  content: r,
1616
1616
  locale: s
1617
1617
  }))), /* @__PURE__ */ n.createElement(c.StreetName, null, /* @__PURE__ */ n.createElement(c.StreetName.Label, {
1618
- className: L(G, C.label)
1618
+ className: L(z, C.label)
1619
1619
  }, /* @__PURE__ */ n.createElement(c.StreetName.Label.Required, {
1620
1620
  className: L(Q, C.requiredMark)
1621
1621
  })), /* @__PURE__ */ n.createElement(c.StreetName.Input, {
@@ -1628,11 +1628,11 @@ const br = "_postalCodeControl_1tire_1", fr = "_comboControl_1tire_5", yr = "_co
1628
1628
  className: L(Z, C.error)
1629
1629
  }, /* @__PURE__ */ n.createElement(te, null), /* @__PURE__ */ n.createElement(c.StreetName.Error.Text, null)), /* @__PURE__ */ n.createElement(c.StreetName.Description, {
1630
1630
  className: L(ee, C.description)
1631
- }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(z, {
1631
+ }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(G, {
1632
1632
  content: r,
1633
1633
  locale: s
1634
1634
  }))), /* @__PURE__ */ n.createElement(c.StreetNumber, null, /* @__PURE__ */ n.createElement(c.StreetNumber.Label, {
1635
- className: L(G, C.label)
1635
+ className: L(z, C.label)
1636
1636
  }, /* @__PURE__ */ n.createElement(c.StreetNumber.Label.Required, {
1637
1637
  className: L(Q, C.requiredMark)
1638
1638
  })), /* @__PURE__ */ n.createElement(c.StreetNumber.Input, {
@@ -1641,11 +1641,11 @@ const br = "_postalCodeControl_1tire_1", fr = "_comboControl_1tire_5", yr = "_co
1641
1641
  className: L(Z, C.error)
1642
1642
  }, /* @__PURE__ */ n.createElement(te, null), /* @__PURE__ */ n.createElement(c.StreetNumber.Error.Text, null)), /* @__PURE__ */ n.createElement(c.StreetNumber.Description, {
1643
1643
  className: L(ee, C.description)
1644
- }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(z, {
1644
+ }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(G, {
1645
1645
  content: r,
1646
1646
  locale: s
1647
1647
  }))), /* @__PURE__ */ n.createElement(c.Apartment, null, /* @__PURE__ */ n.createElement(c.Apartment.Label, {
1648
- className: L(G, C.label)
1648
+ className: L(z, C.label)
1649
1649
  }, /* @__PURE__ */ n.createElement(c.Apartment.Label.Required, {
1650
1650
  className: L(Q, C.requiredMark)
1651
1651
  })), /* @__PURE__ */ n.createElement(c.Apartment.Input, {
@@ -1654,7 +1654,7 @@ const br = "_postalCodeControl_1tire_1", fr = "_comboControl_1tire_5", yr = "_co
1654
1654
  className: L(Z, C.error)
1655
1655
  }, /* @__PURE__ */ n.createElement(te, null), /* @__PURE__ */ n.createElement(c.Apartment.Error.Text, null)), /* @__PURE__ */ n.createElement(c.Apartment.Description, {
1656
1656
  className: L(ee, C.description)
1657
- }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(z, {
1657
+ }, ({ content: r, locale: s }) => /* @__PURE__ */ n.createElement(G, {
1658
1658
  content: r,
1659
1659
  locale: s
1660
1660
  }))));
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { M as t } from "./multiline-address-field-rac-Z-qF366L.js";
2
+ import { M as t } from "./multiline-address-field-rac-CMMdLb-J.js";
3
3
  const i = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  i as MultilineAddressRAC
@@ -1,19 +1,19 @@
1
- import { RicosViewer as z } from "@wix/ricos/viewer";
1
+ import { RicosViewer as P } from "@wix/ricos/viewer";
2
2
  import i from "classnames";
3
- import r, { useState as P, useCallback as J, useEffect as Q, useRef as U } from "react";
3
+ import r, { useState as U, useCallback as G, useEffect as K, useRef as Q } from "react";
4
4
  import { NumberField as $, Input as j } from "react-aria-components";
5
- import { bz as _, bw as S, bJ as w, bB as G, V as H, ab as K, L as W, z as X } from "./form-DSpx-AO8.js";
5
+ import { by as _, bv as S, bI as z, bA as H, U as J, aa as W, K as X, G as Y } from "./form-GAuLAdjq.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as Y, E as Z } from "./field-error-headless-XNWmDH3E.js";
8
- import { L as ee } from "./field-label-headless-CORRAJGt.js";
7
+ import { D as Z, E as w } from "./field-error-headless-DAc8FpKI.js";
8
+ import { L as ee } from "./field-label-headless-DxxwJtjh.js";
9
9
  import { g as re, c as te } from "./numeric-input-utils-CuBMi4-a.js";
10
10
  import { u as ne } from "./use-invoke-callback-UH73A_J3.js";
11
11
  import { E as ae } from "./error-icon-hZxQ6DEy.js";
12
- import { s as p } from "./field-rac.module-DP0lkkEv.js";
13
- import { u as se } from "./use-text-input-class-name-DIKWvfkm.js";
12
+ import { s as p } from "./field-rac.module-ts2t4WUO.js";
13
+ import { u as se } from "./use-text-input-class-name-CmxSw6bY.js";
14
14
  const e = ({ children: t }) => {
15
15
  var F, L, R;
16
- const { id: a, value: s, onChange: l, disabled: d, required: b, readOnly: o, onBlur: E, onFocus: f, FieldLayout: m, hasError: u, validation: n } = _(), { labelId: y } = S(), D = ((F = n == null ? void 0 : n.number) == null ? void 0 : F.multipleOf) || 1, A = (L = n == null ? void 0 : n.number) == null ? void 0 : L.maximum, V = (R = n == null ? void 0 : n.number) == null ? void 0 : R.minimum, g = O(s), [x, I] = P(g), T = ne(E), h = c(t, e.Label), q = c(t, e.Input), B = c(t, e.Description), M = c(t, e.Error), k = J((N) => {
16
+ const { id: a, value: s, onChange: l, disabled: d, required: b, readOnly: o, onBlur: E, onFocus: f, FieldLayout: m, hasError: u, validation: n } = _(), { labelId: y } = S(), D = ((F = n == null ? void 0 : n.number) == null ? void 0 : F.multipleOf) || 1, A = (L = n == null ? void 0 : n.number) == null ? void 0 : L.maximum, g = (R = n == null ? void 0 : n.number) == null ? void 0 : R.minimum, x = O(s), [T, I] = U(x), V = ne(E), h = c(t, e.Label), q = c(t, e.Input), M = c(t, e.Description), k = c(t, e.Error), B = G((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: t }) => {
24
24
  D,
25
25
  l
26
26
  ]);
27
- return Q(() => {
27
+ return K(() => {
28
28
  I(O(s));
29
29
  }, [
30
30
  s
@@ -33,25 +33,25 @@ const e = ({ children: t }) => {
33
33
  renderLabel: () => h,
34
34
  renderInput: () => /* @__PURE__ */ r.createElement($, {
35
35
  "aria-labelledby": y,
36
- value: x,
37
- onChange: k,
36
+ value: T,
37
+ onChange: B,
38
38
  isDisabled: d,
39
39
  isRequired: b,
40
40
  isReadOnly: o,
41
41
  isInvalid: u,
42
- onBlur: T,
42
+ onBlur: V,
43
43
  onFocus: f,
44
- minValue: V ?? void 0,
44
+ minValue: g ?? void 0,
45
45
  maxValue: A ?? void 0
46
46
  }, q),
47
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, M, B)
47
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, k, M)
48
48
  });
49
49
  }, le = ({ className: t }) => {
50
50
  var u;
51
- const { t: a } = w(), { inputId: s, ariaDescribedBy: l } = S(), { id: d, placeholder: b, validation: o, label: E, required: f } = _();
51
+ const { t: a } = z(), { inputId: s, ariaDescribedBy: l } = S(), { id: d, placeholder: b, validation: o, label: E, required: f } = _();
52
52
  (u = o == null ? void 0 : o.number) != null && u.multipleOf;
53
- const m = U(null);
54
- return G(() => {
53
+ const m = Q(null);
54
+ return H(() => {
55
55
  var n;
56
56
  (n = m.current) == null || n.focus({
57
57
  preventScroll: !0
@@ -70,23 +70,23 @@ const e = ({ children: t }) => {
70
70
  };
71
71
  e.Label = ee;
72
72
  e.Input = le;
73
- e.Description = Y;
74
- e.Error = Z;
75
- const O = (t) => te(t) ?? NaN, oe = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(z, {
73
+ e.Description = Z;
74
+ e.Error = w;
75
+ const O = (t) => te(t) ?? NaN, oe = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(P, {
76
76
  content: t,
77
77
  locale: a
78
78
  }), Le = () => {
79
79
  const t = se();
80
80
  return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
81
- className: i(H, p.label)
81
+ className: i(J, p.label)
82
82
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
83
- className: i(K, p.requiredMark)
83
+ className: i(W, p.requiredMark)
84
84
  })), /* @__PURE__ */ r.createElement(e.Input, {
85
85
  className: t
86
86
  }), /* @__PURE__ */ r.createElement(e.Error, {
87
- className: i(W, p.error)
87
+ className: i(X, p.error)
88
88
  }, /* @__PURE__ */ r.createElement(ae, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
89
- className: i(X, p.description)
89
+ className: i(Y, p.description)
90
90
  }, oe));
91
91
  };
92
92
  export {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { N as r } from "./number-input-field-rac-D4vf6I6N.js";
2
+ import { N as r } from "./number-input-field-rac-B5bsGDKm.js";
3
3
  const n = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  n as NumberInputRAC
@@ -1,23 +1,23 @@
1
1
  import e, { useState as N, useRef as x } from "react";
2
2
  import { RicosViewer as O } from "@wix/ricos/viewer";
3
3
  import d from "classnames";
4
- import { bz as E, bw as I, bB as B, bJ as A, V, ab as v, L as P, z as M } from "./form-DSpx-AO8.js";
4
+ import { by as E, bv as I, bA as A, bI as v, U as B, aa as V, K as P, G as M } from "./form-GAuLAdjq.js";
5
5
  import { TextField as k, Group as q, Input as U, Button as j } from "react-aria-components";
6
6
  import { f as u, a as b } from "./find-child-C60k4CxG.js";
7
- import { D as z, E as H } from "./field-error-headless-XNWmDH3E.js";
8
- import { L as W } from "./field-label-headless-CORRAJGt.js";
7
+ import { D as G, E as H } from "./field-error-headless-DAc8FpKI.js";
8
+ import { L as W } from "./field-label-headless-DxxwJtjh.js";
9
9
  import { E as Z } from "./error-icon-hZxQ6DEy.js";
10
- import { H as G } from "./custom-focus-class-_483Pkwp.js";
11
- import { s as p } from "./field-rac.module-DP0lkkEv.js";
12
- import { u as J } from "./use-text-input-class-name-DIKWvfkm.js";
10
+ import { H as K } from "./custom-focus-class-_483Pkwp.js";
11
+ import { s as p } from "./field-rac.module-ts2t4WUO.js";
12
+ import { u as Q } from "./use-text-input-class-name-CmxSw6bY.js";
13
13
  const t = ({ children: o, className: r }) => {
14
- const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, autoComplete: _, FieldLayout: y } = E(), { labelId: L } = I(), [R, D] = N(!1), F = u(o, t.Label), T = u(o, t.Control), w = u(o, t.Description), S = u(o, t.Error);
15
- return /* @__PURE__ */ e.createElement(y, {
14
+ const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, autoComplete: y, FieldLayout: _ } = E(), { labelId: R } = I(), [D, F] = N(!1), L = u(o, t.Label), T = u(o, t.Control), w = u(o, t.Description), S = u(o, t.Error);
15
+ return /* @__PURE__ */ e.createElement(_, {
16
16
  fieldId: l,
17
- renderLabel: () => F,
17
+ renderLabel: () => L,
18
18
  renderInput: () => /* @__PURE__ */ e.createElement(k, {
19
- autoComplete: _,
20
- "aria-labelledby": L,
19
+ autoComplete: y,
20
+ "aria-labelledby": R,
21
21
  value: s ?? "",
22
22
  onChange: c,
23
23
  isDisabled: n,
@@ -28,12 +28,12 @@ const t = ({ children: o, className: r }) => {
28
28
  onFocus: C,
29
29
  className: r
30
30
  }, b(T, {
31
- isVisible: R,
32
- onToggleVisibility: () => D((h) => !h)
31
+ isVisible: D,
32
+ onToggleVisibility: () => F((h) => !h)
33
33
  })),
34
34
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, w, S)
35
35
  });
36
- }, Q = ({ children: o, className: r, ...l }) => {
36
+ }, $ = ({ children: o, className: r, ...l }) => {
37
37
  const { isVisible: s, onToggleVisibility: c } = l, { disabled: n, hasError: m } = E(), a = u(o, t.Input), i = u(o, t.Toggle);
38
38
  return /* @__PURE__ */ e.createElement(q, {
39
39
  className: r,
@@ -45,9 +45,9 @@ const t = ({ children: o, className: r }) => {
45
45
  isVisible: s,
46
46
  onToggleVisibility: c
47
47
  }));
48
- }, $ = ({ className: o, ...r }) => {
48
+ }, z = ({ className: o, ...r }) => {
49
49
  const { isVisible: l } = r, { id: s, placeholder: c } = E(), { inputId: n, ariaDescribedBy: m } = I(), a = x(null);
50
- return B(() => {
50
+ return A(() => {
51
51
  var i;
52
52
  (i = a.current) == null || i.focus({
53
53
  preventScroll: !0
@@ -60,7 +60,7 @@ const t = ({ children: o, className: r }) => {
60
60
  className: o,
61
61
  placeholder: c
62
62
  });
63
- }, K = ({ className: o, showPasswordTooltipText: r, hidePasswordTooltipText: l, children: s, ...c }) => {
63
+ }, J = ({ className: o, showPasswordTooltipText: r, hidePasswordTooltipText: l, children: s, ...c }) => {
64
64
  const { isVisible: n, onToggleVisibility: m } = c, { disabled: a } = E(), i = n ? l : r;
65
65
  return /* @__PURE__ */ e.createElement(j, {
66
66
  type: "button",
@@ -74,10 +74,10 @@ const t = ({ children: o, className: r }) => {
74
74
  }));
75
75
  };
76
76
  t.Label = W;
77
- t.Control = Q;
78
- t.Input = $;
79
- t.Toggle = K;
80
- t.Description = z;
77
+ t.Control = $;
78
+ t.Input = z;
79
+ t.Toggle = J;
80
+ t.Description = G;
81
81
  t.Error = H;
82
82
  const X = (o) => /* @__PURE__ */ e.createElement("svg", {
83
83
  viewBox: "0 0 24 24",
@@ -121,15 +121,15 @@ const X = (o) => /* @__PURE__ */ e.createElement("svg", {
121
121
  content: o,
122
122
  locale: r
123
123
  }), re = () => {
124
- const { t: o } = A(), r = J(g.control);
124
+ const { t: o } = v(), r = Q(g.control);
125
125
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
126
- className: d(V, p.label)
126
+ className: d(B, p.label)
127
127
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
128
- className: d(v, p.requiredMark)
128
+ className: d(V, p.requiredMark)
129
129
  })), /* @__PURE__ */ e.createElement(t.Control, {
130
130
  className: r
131
131
  }, /* @__PURE__ */ e.createElement(t.Input, {
132
- className: d(p.innerInput, G)
132
+ className: d(p.innerInput, K)
133
133
  }), /* @__PURE__ */ e.createElement(t.Toggle, {
134
134
  className: g.toggleButton,
135
135
  showPasswordTooltipText: o("forms.widget.modals.show-password-tooltip"),
@@ -1,17 +1,17 @@
1
- import r, { useCallback as P, useRef as w } from "react";
2
- import { RicosViewer as J } from "@wix/ricos/viewer";
1
+ import r, { useCallback as P, useRef as Q } from "react";
2
+ import { RicosViewer as j } from "@wix/ricos/viewer";
3
3
  import p from "classnames";
4
- import { TextField as Q, Group as j, Input as K } from "react-aria-components";
5
- import { bz as R, bw as D, br as T, bJ as W, bB as X, V as Y, ab as Z, L as ee, z as re } from "./form-DSpx-AO8.js";
4
+ import { TextField as w, Group as z, Input as J } from "react-aria-components";
5
+ import { by as R, bv as D, bq as T, bI as W, bA as X, U as Y, aa as Z, K as ee, G as re } from "./form-GAuLAdjq.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as te, E as ne } from "./field-error-headless-XNWmDH3E.js";
8
- import { L as ae } from "./field-label-headless-CORRAJGt.js";
7
+ import { D as te, E as ne } from "./field-error-headless-DAc8FpKI.js";
8
+ import { L as ae } from "./field-label-headless-DxxwJtjh.js";
9
9
  import { f as N, g as se } from "./payment-field-utils-DobiK5Xh.js";
10
10
  import { u as oe } from "./use-synced-display-value-DcAxdn3M.js";
11
11
  import { E as le } from "./error-icon-hZxQ6DEy.js";
12
12
  import { H as ce } from "./custom-focus-class-_483Pkwp.js";
13
- import { s as d } from "./field-rac.module-DP0lkkEv.js";
14
- import { u as ie } from "./use-text-input-class-name-DIKWvfkm.js";
13
+ import { s as d } from "./field-rac.module-ts2t4WUO.js";
14
+ import { u as ie } from "./use-text-input-class-name-CmxSw6bY.js";
15
15
  function ue(e, t) {
16
16
  return {
17
17
  productId: e.id,
@@ -26,23 +26,23 @@ function h(e) {
26
26
  return Number.isNaN(t) ? void 0 : t;
27
27
  }
28
28
  const n = ({ children: e }) => {
29
- var O, g, V, A;
30
- const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: I, hasError: y, onBlur: o, onFocus: E, FieldLayout: M, validation: C } = R(), { labelId: q, prefixId: G } = D(), { regionalFormat: c } = T(), S = (V = (g = (O = C == null ? void 0 : C.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : g.products) == null ? void 0 : V[0], _ = (A = a == null ? void 0 : a.at(0)) == null ? void 0 : A.price, [F, b] = oe({
29
+ var O, g, A, V;
30
+ const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: b, hasError: y, onBlur: o, onFocus: E, FieldLayout: M, validation: C } = R(), { labelId: q, prefixId: G } = D(), { regionalFormat: c } = T(), S = (A = (g = (O = C == null ? void 0 : C.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : g.products) == null ? void 0 : A[0], _ = (V = a == null ? void 0 : a.at(0)) == null ? void 0 : V.price, [F, I] = oe({
31
31
  sourceValue: _,
32
32
  format: (l) => N(String(l ?? ""), c),
33
33
  regionalFormat: c
34
34
  }), $ = P(() => {
35
35
  const l = N(F, c);
36
- b(l || ""), o == null || o();
36
+ I(l || ""), o == null || o();
37
37
  }, [
38
38
  F,
39
39
  c,
40
40
  o,
41
- b
42
- ]), B = P((l) => {
43
- b(l);
44
- const L = h(N(l, c)), H = h(_);
45
- if (L !== H) {
41
+ I
42
+ ]), v = P((l) => {
43
+ I(l);
44
+ const L = h(N(l, c)), K = h(_);
45
+ if (L !== K) {
46
46
  if (L === void 0) {
47
47
  s(null);
48
48
  return;
@@ -56,27 +56,27 @@ const n = ({ children: e }) => {
56
56
  S,
57
57
  c,
58
58
  _,
59
- b
60
- ]), v = i(e, n.Label), U = i(e, n.Input), k = i(e, n.Description), z = i(e, n.Error);
59
+ I
60
+ ]), U = i(e, n.Label), B = i(e, n.Input), k = i(e, n.Description), H = i(e, n.Error);
61
61
  return /* @__PURE__ */ r.createElement(M, {
62
62
  fieldId: t,
63
- renderLabel: () => v,
64
- renderInput: () => /* @__PURE__ */ r.createElement(Q, {
63
+ renderLabel: () => U,
64
+ renderInput: () => /* @__PURE__ */ r.createElement(w, {
65
65
  "aria-labelledby": `${q} ${G}`,
66
66
  value: a ? F : "",
67
- onChange: B,
67
+ onChange: v,
68
68
  isDisabled: u,
69
69
  isReadOnly: m,
70
- isRequired: I,
70
+ isRequired: b,
71
71
  isInvalid: y,
72
72
  onBlur: $,
73
73
  onFocus: E
74
- }, U),
75
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, z, k)
74
+ }, B),
75
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, H, k)
76
76
  });
77
77
  }, f = ({ children: e, className: t }) => {
78
78
  const { disabled: a, hasError: s } = R(), u = i(e, f.Currency), m = i(e, f.Value);
79
- return /* @__PURE__ */ r.createElement(j, {
79
+ return /* @__PURE__ */ r.createElement(z, {
80
80
  className: t,
81
81
  isDisabled: a,
82
82
  isInvalid: s
@@ -90,19 +90,19 @@ 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 } = R(), { inputId: u, labelId: m, prefixId: I, ariaDescribedBy: y } = D(), o = w(null);
93
+ const { id: t, placeholder: a, label: s } = R(), { inputId: u, labelId: m, prefixId: b, ariaDescribedBy: y } = D(), o = Q(null);
94
94
  return X(() => {
95
95
  var E;
96
96
  (E = o.current) == null || E.focus({
97
97
  preventScroll: !0
98
98
  });
99
- }, t), /* @__PURE__ */ r.createElement(K, {
99
+ }, t), /* @__PURE__ */ r.createElement(J, {
100
100
  ref: o,
101
101
  id: u,
102
102
  className: e,
103
103
  placeholder: a,
104
104
  "aria-label": s,
105
- "aria-labelledby": `${m} ${I}`,
105
+ "aria-labelledby": `${m} ${b}`,
106
106
  "aria-describedby": y,
107
107
  inputMode: "decimal",
108
108
  autoComplete: "off"
@@ -117,10 +117,10 @@ n.Error = ne;
117
117
  const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", x = {
118
118
  inputGroup: de,
119
119
  currency: fe
120
- }, Ee = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(J, {
120
+ }, Ee = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(j, {
121
121
  content: e,
122
122
  locale: t
123
- }), be = () => {
123
+ }), Ie = () => {
124
124
  const e = ie(x.inputGroup);
125
125
  return /* @__PURE__ */ r.createElement(n, null, /* @__PURE__ */ r.createElement(n.Label, {
126
126
  className: p(Y, d.label)
@@ -137,7 +137,7 @@ const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", x = {
137
137
  }, /* @__PURE__ */ r.createElement(le, null), /* @__PURE__ */ r.createElement(n.Error.Text, null)), /* @__PURE__ */ r.createElement(n.Description, {
138
138
  className: p(re, d.description)
139
139
  }, Ee));
140
- }, Pe = () => /* @__PURE__ */ r.createElement(be, null);
140
+ }, Pe = () => /* @__PURE__ */ r.createElement(Ie, null);
141
141
  export {
142
142
  Pe as PaymentInputRAC
143
143
  };