@wix/form-elements 1.146.0 → 1.148.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 (118) hide show
  1. package/dist/component/{appointment-rac-scUix9QX.js → appointment-rac-BNqXl3dq.js} +168 -164
  2. package/dist/component/{bookings-address-rac-CKemkJOO.js → bookings-address-rac-DzLf588z.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CDqdhPAB.js → bookings-email-rac-BCNWH7ss.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DEy_7Hjb.js → bookings-first-name-rac-D36aHUOJ.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Bl4xy9lB.js → bookings-header-rac-CNr2y2ES.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CsL9xQ1W.js → bookings-last-name-rac-yHE6ZIxr.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DkHYQ4No.js → bookings-login-bar-rac-C3weOc1i.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-BoBiFwbV.js → bookings-phone-rac-CIo_ApRf.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DZZnPKWA.js → bookings-rich-text-rac-rgKnvt57.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-UgLmJxB-.js → checkbox-field-rac-CMaVxLNe.js} +9 -7
  11. package/dist/component/{checkbox-group-field-headless-C809nB0Q.js → checkbox-group-field-headless-XPtqS8Km.js} +68 -68
  12. package/dist/component/{checkbox-group-field-rac-u4i4wG21.js → checkbox-group-field-rac-C_58XfQt.js} +9 -9
  13. package/dist/component/{checkbox-group-rac-DBAQhSo3.js → checkbox-group-rac-FQrWViSh.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-6173wvuW.js → checkbox-indicator-module-classes-akWZsZNn.js} +1 -1
  15. package/dist/component/{checkbox-rac-FDQVsI5-.js → checkbox-rac-C5Lj2b1N.js} +1 -1
  16. package/dist/component/{contacts-address-rac-DnArylPa.js → contacts-address-rac-OhpLzD0X.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-C19jhGEO.js → contacts-birthdate-rac-Dnqq84ct.js} +1 -1
  18. package/dist/component/{contacts-company-rac-Dxs0hs_i.js → contacts-company-rac-DMnTF55t.js} +1 -1
  19. package/dist/component/{contacts-email-rac-D-H43L8r.js → contacts-email-rac-DmZhScW2.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-DwV5NESk.js → contacts-first-name-rac-B6A4fuzK.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-C5v2xurf.js → contacts-last-name-rac-DVz97lew.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-D9a5x-xl.js → contacts-phone-rac-DV8aO0uS.js} +1 -1
  23. package/dist/component/{contacts-position-rac-DfsgOv-k.js → contacts-position-rac-BP_yBIE4.js} +1 -1
  24. package/dist/component/{contacts-subscribe-rac-B-Hho0Kb.js → contacts-subscribe-rac-wmTprtLf.js} +1 -1
  25. package/dist/component/{contacts-tax-id-rac-q6TQkB4b.js → contacts-tax-id-rac-CUEPBQye.js} +1 -1
  26. package/dist/component/{date-availability-CMDvf5VU.js → date-availability-BK_0gLRv.js} +1 -1
  27. package/dist/component/{date-input-field-rac-C1WLUct3.js → date-input-field-rac-BfWPvRnd.js} +84 -78
  28. package/dist/component/{date-input-rac-cNQ-nr4D.js → date-input-rac-B7vAMRBX.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-mx11z-MO.js → date-picker-field-rac-CpDY4EkU.js} +111 -105
  30. package/dist/component/{date-picker-rac-DeTz17zC.js → date-picker-rac-BCswaZB1.js} +1 -1
  31. package/dist/component/{date-time-input-field-rac-feQ2E1eU.js → date-time-input-field-rac-D9w4eEa0.js} +135 -129
  32. package/dist/component/{date-time-input-rac-G0s0xP4v.js → date-time-input-rac-_im8-JRC.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-BcTN1nJb.js → dext-checkbox-group-rac-Di7B1Wzv.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-DX0TOrCO.js → dext-checkbox-rac-BPendOsP.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-CpDp11oa.js → dext-date-picker-rac-_-Ig9Qn6.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-BRvO8izU.js → dext-date-time-input-rac-dKFW87yu.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-DGZ4Yi_X.js → dext-dropdown-rac-Cpdpps7P.js} +1 -1
  38. package/dist/component/{dext-email-rac-B9YCFHB4.js → dext-email-rac-D4UmYH5m.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-D890dBZf.js → dext-number-input-rac-DUetGnYJ.js} +1 -1
  40. package/dist/component/{dext-phone-rac-BAQftbXo.js → dext-phone-rac-Bsz_DAT9.js} +1 -1
  41. package/dist/component/dext-radio-group-rac-B_soj2FD.js +18 -0
  42. package/dist/component/{dext-rating-input-rac-BqQKVaHo.js → dext-rating-input-rac-cm40qt4O.js} +1 -1
  43. package/dist/component/{dext-tags-rac-zxxKcNUe.js → dext-tags-rac-D1ULx6t1.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-Ctp9SwPg.js → dext-text-area-rac-IkL67rHB.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-c_QMlyjr.js → dext-text-input-rac-DsYSTEL2.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-96pv15aC.js → dext-url-input-rac-BKvEkpYu.js} +1 -1
  47. package/dist/component/{donation-rac-GEWKSLJY.js → donation-rac-CaCXMa-H.js} +87 -85
  48. package/dist/component/{dropdown-field-headless-C3OxMhLE.js → dropdown-field-headless-DcrQK8mL.js} +36 -34
  49. package/dist/component/{dropdown-field-rac-CCXfBmSc.js → dropdown-field-rac-CuGoz_6I.js} +9 -10
  50. package/dist/component/{dropdown-rac-CR7hswXE.js → dropdown-rac-rIe6ZqaZ.js} +1 -1
  51. package/dist/component/{ecom-address-rac-khMuxEFD.js → ecom-address-rac-DT0rzvvp.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-CAi_AHpb.js → ecom-subscription-checkbox-rac-ZfbiME6e.js} +5 -5
  53. package/dist/component/{email-input-field-rac-B83mY2lg.js → email-input-field-rac-8Qn3yskh.js} +62 -62
  54. package/dist/component/{events-repeater-rac-ClEwXgmb.js → events-repeater-rac-DyHrMd3y.js} +25 -21
  55. package/dist/component/{events-rsvp-rac-BJ5q2SVR.js → events-rsvp-rac-CoL-euuc.js} +9 -9
  56. package/dist/component/{field-error-headless-CsYQCsiT.js → field-error-headless-RylIeqXr.js} +6 -6
  57. package/dist/component/{field-label-headless-Yg_1PMSg.js → field-label-headless-d3hZxIEc.js} +15 -15
  58. package/dist/component/field-rac.module-DP0lkkEv.js +25 -0
  59. package/dist/component/{file-upload-rac-DJsuI_lR.js → file-upload-rac-rXbabrgc.js} +172 -168
  60. package/dist/component/{fixed-payment-rac-BMFe9wxU.js → fixed-payment-rac-CaR7pXXA.js} +13 -13
  61. package/dist/component/{form-Bed4Kfz8.js → form-DhIEC3nB.js} +2309 -2308
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +2 -2
  64. package/dist/component/{header-field-rac-DPQTrOSZ.js → header-field-rac-nELbyGjP.js} +4 -4
  65. package/dist/component/{header-rac-CzXsuLmE.js → header-rac-q80EQNmM.js} +1 -1
  66. package/dist/component/{image-choice-rac-R_4pbOSr.js → image-choice-rac-CLMiTQK0.js} +42 -42
  67. package/dist/component/{index-DZxHlvzt.js → index-C-jVrv9Y.js} +91 -91
  68. package/dist/component/{index-qSZCe_WC.js → index-DnLJzPM-.js} +2 -2
  69. package/dist/component/{isObjectLike-B-a5uaU-.js → isObjectLike-Bf577MHV.js} +15 -15
  70. package/dist/component/{multiline-address-field-rac-rv4IZZy_.js → multiline-address-field-rac-BVAv1w9F.js} +155 -137
  71. package/dist/component/{multiline-address-rac-DZ7cYtgn.js → multiline-address-rac-qMuUHA9U.js} +1 -1
  72. package/dist/component/{number-input-field-rac-CL9iXKIf.js → number-input-field-rac-B_vnBWFG.js} +24 -22
  73. package/dist/component/{number-input-rac-BeGn6qJR.js → number-input-rac-BPCIW8Fz.js} +1 -1
  74. package/dist/component/{password-rac-DfvhdsKG.js → password-rac-D72HG72u.js} +28 -26
  75. package/dist/component/{payment-input-rac-BmMfi5rf.js → payment-input-rac-DthVgsAi.js} +32 -30
  76. package/dist/component/{phone-input-field-rac-DW0a1pXs.js → phone-input-field-rac-XIPkH8Fb.js} +46 -46
  77. package/dist/component/{phone-rac-quZjJ08H.js → phone-rac-U94fCfer.js} +1 -1
  78. package/dist/component/{product-list-rac-Ci0KB7sN.js → product-list-rac-BRMGPyhr.js} +78 -78
  79. package/dist/component/{quiz-radio-group-rac--UUtGx2t.js → quiz-radio-group-rac-DafNzzgX.js} +1 -1
  80. package/dist/component/radio-button-module-classes-DtFlHID_.js +134 -0
  81. package/dist/component/{radio-group-field-rac-w8fHpFKJ.js → radio-group-field-rac-BXrYWjew.js} +13 -13
  82. package/dist/component/{radio-group-rac-jO8aghii.js → radio-group-rac-BNyFfQYV.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-BRc2PtqE.js → rating-input-field-rac-KbkiVCZ7.js} +27 -27
  84. package/dist/component/{rating-input-rac-D9zs06xR.js → rating-input-rac-zT4vPkwP.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-Cv3ZmD00.js → rich-content-rac.module-C0OQetct.js} +8 -8
  86. package/dist/component/{rich-text-field-rac-BmWuIfA8.js → rich-text-field-rac-T4NoShC0.js} +4 -4
  87. package/dist/component/{rich-text-rac-BnqnrvB1.js → rich-text-rac-m6VRCRZu.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-Cl81KfJU.js → service-dropdown-rac-BFwKhL1l.js} +44 -45
  89. package/dist/component/{services-multi-choice-rac-sQ1NF9hY.js → services-multi-choice-rac-DjzcuRWv.js} +13 -13
  90. package/dist/component/{signature-rac-Huairu7V.js → signature-rac-B1LPKnIw.js} +281 -279
  91. package/dist/component/{submit-button-rac-Dpg7N0TG.js → submit-button-rac-Cz3PVtW4.js} +25 -25
  92. package/dist/component/{tags-field-rac-BQ8TEqXH.js → tags-field-rac-DzSoL__s.js} +82 -82
  93. package/dist/component/{tags-rac-CFOmyCCc.js → tags-rac-DMYJDrm-.js} +1 -1
  94. package/dist/component/{text-area-field-rac-DNiMa7d3.js → text-area-field-rac-SuMzBm-Q.js} +30 -28
  95. package/dist/component/{text-area-rac-kLFe-KbZ.js → text-area-rac-C-zmnJgt.js} +1 -1
  96. package/dist/component/{text-input-field-rac-CqENSUUX.js → text-input-field-rac-BmQlXTK9.js} +6 -6
  97. package/dist/component/text-input-headless-BsrjGTK4.js +47 -0
  98. package/dist/component/{text-input-rac-uYQEfOtE.js → text-input-rac-DhQFKG4h.js} +1 -1
  99. package/dist/component/time-input-rac-CRZZdbTI.js +161 -0
  100. package/dist/component/{url-input-field-rac-BioH7kuz.js → url-input-field-rac-D617Pvsf.js} +30 -28
  101. package/dist/component/{url-input-rac-D2VSSyqW.js → url-input-rac-CLvxaWZz.js} +1 -1
  102. package/dist/component/use-dropdown-trigger-class-name-C4uqTKFP.js +117 -0
  103. package/dist/component/{use-element-state-class-name-oiKCauK-.js → use-element-state-class-name-DJx-T0zf.js} +3 -3
  104. package/dist/component/use-hoverable-input-class-name-pwVZXwrY.js +25 -0
  105. package/dist/component/use-is-forced-open-dropdown-DBpm1D-o.js +48 -0
  106. package/dist/component/{use-service-options-base-DXG60hA5.js → use-service-options-base-xHeVTve3.js} +6 -6
  107. package/dist/component/use-text-input-class-name-CrEjJ2Z8.js +6 -0
  108. package/dist/form.d.ts +5 -0
  109. package/package.json +2 -2
  110. package/dist/component/dext-radio-group-rac-CtEjnu_X.js +0 -18
  111. package/dist/component/field-rac.module-DfEb7pBp.js +0 -25
  112. package/dist/component/radio-button-module-classes-CqdBGknT.js +0 -132
  113. package/dist/component/text-input-headless-BdPkEeK2.js +0 -45
  114. package/dist/component/time-input-rac-BYoojlJ9.js +0 -159
  115. package/dist/component/use-dropdown-option-class-name-BEmvU-Gg.js +0 -115
  116. package/dist/component/use-dropdown-trigger-class-name-qj9skLWZ.js +0 -40
  117. package/dist/component/use-hoverable-input-class-name-BW3nCyhG.js +0 -25
  118. package/dist/component/use-text-input-class-name-BhQFcXYH.js +0 -6
@@ -1,22 +1,22 @@
1
1
  import { RicosViewer as G } from "@wix/ricos/viewer";
2
2
  import L from "classnames";
3
- import r, { useMemo as q, createContext as We, useContext as Ce, useState as be, useRef as x, useCallback as R, useEffect as _e } from "react";
3
+ import r, { useMemo as q, createContext as Ve, useContext as Ce, useState as be, useRef as x, useCallback as R, useEffect as _e } from "react";
4
4
  import { UNSAFE_PortalProvider as _t } from "react-aria";
5
- import { bi as ft, d as yt, bd as Pt, bf as Ct, aS as Tt, aT as wt, aL as Mt, aR as U, F as K, bx as Pe, b6 as lt, bn as P, bk as T, bp as ae, bj as It, aX as qt, C as Oe, b4 as xt, b8 as Bt, bu as kt, bo as $t, bt as Vt, bb as Wt, b0 as Ut, ba as Kt, bq as Yt, ar as Ht, R as z, $ as Q, x as ge, G as Z, u as ee } from "./form-Bed4Kfz8.js";
5
+ import { bj as ft, d as yt, be as Pt, bg as Ct, aT as Tt, aU as wt, aM as Mt, aS as W, F as K, by as Pe, b7 as lt, bo as P, bl as T, bq as ae, bk as It, aY as qt, C as Oe, b5 as xt, b9 as Bt, bv as kt, bp as $t, bu as Ut, bc as Vt, b1 as Wt, bb as Kt, br as Yt, as as Ht, S as z, a0 as Q, y as ge, H as Z, v as ee } from "./form-DhIEC3nB.js";
6
6
  import { f as E, a as F } from "./find-child-C60k4CxG.js";
7
7
  import { F as jt, V as Jt } from "./headless-styles-CmcyA_pi.js";
8
- import { a as Xt, u as Gt } from "./use-dropdown-trigger-class-name-qj9skLWZ.js";
9
- import { TextField as fe, Input as le, ComboBoxStateContext as Ue, ComboBox as he, Popover as De, ListBox as Te, ListBoxItem as Se, Group as Lt, Button as Nt } from "react-aria-components";
10
- import { D as ie, E as ce } from "./field-error-headless-CsYQCsiT.js";
11
- import { L as de } from "./field-label-headless-Yg_1PMSg.js";
12
- import { e as zt, c as Qt, a as Zt, r as gt } from "./isObjectLike-B-a5uaU-.js";
13
- import { V as en, u as tn } from "./use-dropdown-option-class-name-BEmvU-Gg.js";
8
+ import { a as Xt } from "./use-is-forced-open-dropdown-DBpm1D-o.js";
9
+ import { TextField as fe, Input as le, ComboBoxStateContext as We, ComboBox as he, Popover as Se, ListBox as Te, ListBoxItem as De, Group as Lt, Button as Nt } from "react-aria-components";
10
+ import { D as ie, E as ce } from "./field-error-headless-RylIeqXr.js";
11
+ import { L as de } from "./field-label-headless-d3hZxIEc.js";
12
+ import { e as Gt, c as zt, a as Qt, r as gt } from "./isObjectLike-Bf577MHV.js";
13
+ import { V as Zt, a as en, u as tn } from "./use-dropdown-trigger-class-name-C4uqTKFP.js";
14
14
  import { u as nn } from "./use-invoke-callback-UH73A_J3.js";
15
15
  import { C as it } from "./chevron-down-icon-CcpVm6B-.js";
16
16
  import { E as te } from "./error-icon-hZxQ6DEy.js";
17
17
  import { H as we } from "./custom-focus-class-_483Pkwp.js";
18
- import { s as I } from "./field-rac.module-DfEb7pBp.js";
19
- import { u as rn } from "./use-text-input-class-name-BhQFcXYH.js";
18
+ import { s as I } from "./field-rac.module-DP0lkkEv.js";
19
+ import { u as rn } from "./use-text-input-class-name-CrEjJ2Z8.js";
20
20
  const on = (e, t, o) => {
21
21
  var a, l, i, s;
22
22
  const n = (a = e.steps) == null ? void 0 : a.map((d) => {
@@ -51,7 +51,7 @@ function sn(e, t, o = !1) {
51
51
  const { country: n, subdivision: a, city: l, addressLine: i, streetAddress: s, addressLine2: d, postalCode: m } = e, u = {};
52
52
  return t ? (n && (u.country = n), a && (u.subdivision = a), l && (u.city = l), i ? u.addressLine = i : s != null && s.formattedAddressLine && (u.addressLine = s == null ? void 0 : s.formattedAddressLine), d && (u.addressLine = d), m && (u.postalCode = m), s != null && s.apt && (u.apartment = s == null ? void 0 : s.apt), s != null && s.name ? u.streetName = s == null ? void 0 : s.name : o && (s != null && s.formattedAddressLine) && (u.streetName = s == null ? void 0 : s.formattedAddressLine), s != null && s.number && (u.streetNumber = s.number)) : (n && (u.country = n), a && (u.subdivision = a), l && (u.city = l), i ? u.address_line = i : s != null && s.formattedAddressLine && (u.address_line = s == null ? void 0 : s.formattedAddressLine), d && (u.address_line = d), m && (u.postal_code = m), s != null && s.apt && (u.apartment = s == null ? void 0 : s.apt), s != null && s.name ? u.street_name = s == null ? void 0 : s.name : o && (s != null && s.formattedAddressLine) && (u.street_name = s == null ? void 0 : s.formattedAddressLine), s != null && s.number && (u.street_number = s.number)), u;
53
53
  }
54
- const Ot = /* @__PURE__ */ We({
54
+ const Ot = /* @__PURE__ */ Ve({
55
55
  onAddressSelect: () => {
56
56
  }
57
57
  }), an = ({ children: e, onAddressSelect: t, autocompleteEnabled: o }) => {
@@ -69,7 +69,7 @@ const Ot = /* @__PURE__ */ We({
69
69
  function Ie() {
70
70
  return Ce(Ot);
71
71
  }
72
- const vt = /* @__PURE__ */ We(void 0), ln = ({ children: e, countryCode: t }) => {
72
+ const vt = /* @__PURE__ */ Ve(void 0), ln = ({ children: e, countryCode: t }) => {
73
73
  const o = q(() => ({
74
74
  countryCode: t
75
75
  }), [
@@ -167,15 +167,15 @@ const dn = (e, t) => e.map((o) => ({
167
167
  fields: i
168
168
  };
169
169
  }, yn = () => ({
170
- country: U(),
171
- subdivision: U(),
172
- city: U(),
173
- address_line: U(),
174
- address_line_2: U(),
175
- postal_code: U(),
176
- street_name: U(),
177
- street_number: U(),
178
- apartment: U()
170
+ country: W(),
171
+ subdivision: W(),
172
+ city: W(),
173
+ address_line: W(),
174
+ address_line_2: W(),
175
+ postal_code: W(),
176
+ street_name: W(),
177
+ street_number: W(),
178
+ apartment: W()
179
179
  }), Cn = ({ id: e, target: t, fieldType: o, form: n, country: a, fieldSettings: l, validation: i, required: s }) => {
180
180
  const [d] = be(yn), { isExperimentEnabled: m } = ft(), u = m(yt.USE_FIELDS_V2), { getCountryAddressForm: y } = Pt(), { isMobile: C, breakpoint: b } = Ct(), p = y(a), f = o === K.MULTILINE_ADDRESS || o === K.BOOKINGS_ADDRESS, N = q(() => {
181
181
  var O;
@@ -183,7 +183,7 @@ const dn = (e, t) => e.map((o) => ({
183
183
  }, [
184
184
  i,
185
185
  s
186
- ]), S = q(() => wt(), []);
186
+ ]), D = q(() => wt(), []);
187
187
  return {
188
188
  form: q(() => {
189
189
  var _, g;
@@ -199,7 +199,7 @@ const dn = (e, t) => e.map((o) => ({
199
199
  includeHiddenFields: !0,
200
200
  isMobile: C,
201
201
  breakpoint: b,
202
- form: cn(on(p, N, S), l, (g = (_ = i == null ? void 0 : i.predefined) == null ? void 0 : _.multilineAddressOptions) == null ? void 0 : g.fields)
202
+ form: cn(on(p, N, D), l, (g = (_ = i == null ? void 0 : i.predefined) == null ? void 0 : _.multilineAddressOptions) == null ? void 0 : g.fields)
203
203
  });
204
204
  if (!O.fields.some((v) => v.properties.hidden))
205
205
  return O;
@@ -216,7 +216,7 @@ const dn = (e, t) => e.map((o) => ({
216
216
  i,
217
217
  t,
218
218
  N,
219
- S,
219
+ D,
220
220
  f,
221
221
  u,
222
222
  e,
@@ -225,7 +225,7 @@ const dn = (e, t) => e.map((o) => ({
225
225
  ]),
226
226
  isMultilineAddressField: f
227
227
  };
228
- }, ht = /* @__PURE__ */ We(void 0), In = ({ children: e, fields: t }) => {
228
+ }, ht = /* @__PURE__ */ Ve(void 0), In = ({ children: e, fields: t }) => {
229
229
  const o = q(() => ({
230
230
  fields: t
231
231
  }), [
@@ -269,7 +269,9 @@ const ne = ({ children: e }) => {
269
269
  const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
270
270
  return ae(() => {
271
271
  var i;
272
- (i = l.current) == null || i.focus();
272
+ (i = l.current) == null || i.focus({
273
+ preventScroll: !0
274
+ });
273
275
  }, t), /* @__PURE__ */ r.createElement(le, {
274
276
  ref: l,
275
277
  id: n,
@@ -284,7 +286,7 @@ ne.Input = Ln;
284
286
  ne.Description = ie;
285
287
  ne.Error = ce;
286
288
  const Ke = ({ enabled: e }) => {
287
- const { actions: t } = It(), [o, n] = be(U()), a = R(() => n(U()), []);
289
+ const { actions: t } = It(), [o, n] = be(W()), a = R(() => n(W()), []);
288
290
  return q(() => {
289
291
  const { predict: l, getPlace: i, searchByPostalCode: s } = t ?? {};
290
292
  if (!(!e || !l || !i || !s))
@@ -314,7 +316,7 @@ var qe, ct;
314
316
  function Nn() {
315
317
  if (ct) return qe;
316
318
  ct = 1;
317
- var e = zt(), t = function() {
319
+ var e = Gt(), t = function() {
318
320
  return e.Date.now();
319
321
  };
320
322
  return qe = t, qe;
@@ -345,7 +347,7 @@ var ke, mt;
345
347
  function vn() {
346
348
  if (mt) return ke;
347
349
  mt = 1;
348
- var e = Qt(), t = Zt(), o = "[object Symbol]";
350
+ var e = zt(), t = Qt(), o = "[object Symbol]";
349
351
  function n(a) {
350
352
  return typeof a == "symbol" || t(a) && e(a) == o;
351
353
  }
@@ -373,39 +375,39 @@ function Fn() {
373
375
  }
374
376
  return $e = d, $e;
375
377
  }
376
- var Ve, Et;
378
+ var Ue, Et;
377
379
  function hn() {
378
- if (Et) return Ve;
380
+ if (Et) return Ue;
379
381
  Et = 1;
380
382
  var e = gt(), t = Nn(), o = Fn(), n = "Expected a function", a = Math.max, l = Math.min;
381
383
  function i(s, d, m) {
382
- var u, y, C, b, p, f, N = 0, S = !1, h = !1, O = !0;
384
+ var u, y, C, b, p, f, N = 0, D = !1, h = !1, O = !0;
383
385
  if (typeof s != "function")
384
386
  throw new TypeError(n);
385
- d = o(d) || 0, e(m) && (S = !!m.leading, h = "maxWait" in m, C = h ? a(o(m.maxWait) || 0, d) : C, O = "trailing" in m ? !!m.trailing : O);
386
- function A(D) {
387
+ d = o(d) || 0, e(m) && (D = !!m.leading, h = "maxWait" in m, C = h ? a(o(m.maxWait) || 0, d) : C, O = "trailing" in m ? !!m.trailing : O);
388
+ function A(S) {
387
389
  var J = u, Ee = y;
388
- return u = y = void 0, N = D, b = s.apply(Ee, J), b;
390
+ return u = y = void 0, N = S, b = s.apply(Ee, J), b;
389
391
  }
390
- function w(D) {
391
- return N = D, p = setTimeout(v, d), S ? A(D) : b;
392
+ function w(S) {
393
+ return N = S, p = setTimeout(v, d), D ? A(S) : b;
392
394
  }
393
- function _(D) {
394
- var J = D - f, Ee = D - N, Ne = d - J;
395
+ function _(S) {
396
+ var J = S - f, Ee = S - N, Ne = d - J;
395
397
  return h ? l(Ne, C - Ee) : Ne;
396
398
  }
397
- function g(D) {
398
- var J = D - f, Ee = D - N;
399
+ function g(S) {
400
+ var J = S - f, Ee = S - N;
399
401
  return f === void 0 || J >= d || J < 0 || h && Ee >= C;
400
402
  }
401
403
  function v() {
402
- var D = t();
403
- if (g(D))
404
- return me(D);
405
- p = setTimeout(v, _(D));
404
+ var S = t();
405
+ if (g(S))
406
+ return me(S);
407
+ p = setTimeout(v, _(S));
406
408
  }
407
- function me(D) {
408
- return p = void 0, O && u ? A(D) : (u = y = void 0, b);
409
+ function me(S) {
410
+ return p = void 0, O && u ? A(S) : (u = y = void 0, b);
409
411
  }
410
412
  function j() {
411
413
  p !== void 0 && clearTimeout(p), N = 0, u = f = y = p = void 0;
@@ -414,8 +416,8 @@ function hn() {
414
416
  return p === void 0 ? b : me(t());
415
417
  }
416
418
  function M() {
417
- var D = t(), J = g(D);
418
- if (u = arguments, y = this, f = D, J) {
419
+ var S = t(), J = g(S);
420
+ if (u = arguments, y = this, f = S, J) {
419
421
  if (p === void 0)
420
422
  return w(f);
421
423
  if (h)
@@ -425,11 +427,11 @@ function hn() {
425
427
  }
426
428
  return M.cancel = j, M.flush = B, M;
427
429
  }
428
- return Ve = i, Ve;
430
+ return Ue = i, Ue;
429
431
  }
430
- var Dn = hn();
431
- const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
432
- const n = x(e), a = R(Sn((...l) => {
432
+ var Sn = hn();
433
+ const Dn = /* @__PURE__ */ qt(Sn), Rn = (e, t, o = 200) => {
434
+ const n = x(e), a = R(Dn((...l) => {
433
435
  n.current(...l);
434
436
  }, o), [
435
437
  o
@@ -448,7 +450,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
448
450
  }, bt = {
449
451
  loading: !1,
450
452
  predictions: []
451
- }, Dt = ({ atlas: e, onError: t }) => {
453
+ }, St = ({ atlas: e, onError: t }) => {
452
454
  const [{ loading: n, predictions: a }, l] = be(bt), i = x(0), s = An(), d = R(() => {
453
455
  i.current++, l(bt);
454
456
  }, []), m = Rn(async ({ input: u, countryCodes: y }) => {
@@ -490,7 +492,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
490
492
  clearPredictions: d
491
493
  };
492
494
  }, Ye = ({ optionCount: e }) => {
493
- const t = Ce(Ue), o = x(t);
495
+ const t = Ce(We), o = x(t);
494
496
  o.current = t;
495
497
  const n = x(e);
496
498
  return _e(() => {
@@ -502,7 +504,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
502
504
  e
503
505
  ]), null;
504
506
  }, k = ({ children: e }) => {
505
- const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: C } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("addressLine1"), N = E(e, k.Label), S = E(e, k.Input), h = E(e, k.Options), O = E(e, k.Description), A = E(e, k.Error);
507
+ const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: C } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("addressLine1"), N = E(e, k.Label), D = E(e, k.Input), h = E(e, k.Options), O = E(e, k.Description), A = E(e, k.Error);
506
508
  return p ? /* @__PURE__ */ r.createElement(u, {
507
509
  fieldId: t,
508
510
  renderLabel: () => F(N, {
@@ -517,7 +519,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
517
519
  hasError: s,
518
520
  onBlur: d,
519
521
  onFocus: m
520
- }, S, h),
522
+ }, D, h),
521
523
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
522
524
  }) : /* @__PURE__ */ r.createElement(u, {
523
525
  fieldId: t,
@@ -534,20 +536,20 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
534
536
  isInvalid: s,
535
537
  onBlur: d,
536
538
  onFocus: m
537
- }, S),
539
+ }, D),
538
540
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
539
541
  });
540
542
  }, _n = ({ children: e, value: t, onChange: o, disabled: n, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
541
543
  const { labelId: m } = T(), { onAddressSelect: u } = Ie(), y = Le(), C = Ke({
542
544
  enabled: !0
543
- }), { predictions: b, updatePredictions: p, clearPredictions: f } = Dt({
545
+ }), { predictions: b, updatePredictions: p, clearPredictions: f } = St({
544
546
  atlas: C
545
547
  }), N = q(() => b.map((g) => ({
546
548
  id: g.searchId || "",
547
549
  label: g.description || ""
548
550
  })), [
549
551
  b
550
- ]), S = R((g) => {
552
+ ]), D = R((g) => {
551
553
  p({
552
554
  input: g,
553
555
  countryCodes: y ? [
@@ -583,7 +585,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
583
585
  return /* @__PURE__ */ r.createElement(he, {
584
586
  "aria-labelledby": m,
585
587
  inputValue: t ?? "",
586
- onInputChange: S,
588
+ onInputChange: D,
587
589
  value: null,
588
590
  onChange: h,
589
591
  isDisabled: n,
@@ -606,7 +608,9 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
606
608
  const { id: o, placeholder: n } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = x(null);
607
609
  return ae(() => {
608
610
  var d;
609
- (d = s.current) == null || d.focus();
611
+ (d = s.current) == null || d.focus({
612
+ preventScroll: !0
613
+ });
610
614
  }, o), /* @__PURE__ */ r.createElement(le, {
611
615
  ref: s,
612
616
  id: a,
@@ -618,7 +622,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
618
622
  });
619
623
  }, He = ({ children: e, className: t }) => {
620
624
  const o = E(e, He.Option);
621
- return /* @__PURE__ */ r.createElement(De, {
625
+ return /* @__PURE__ */ r.createElement(Se, {
622
626
  className: t,
623
627
  containerPadding: 0,
624
628
  offset: 0
@@ -630,7 +634,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
630
634
  })));
631
635
  }, Tn = ({ className: e, ...t }) => {
632
636
  const { id: o, label: n } = t;
633
- return /* @__PURE__ */ r.createElement(Se, {
637
+ return /* @__PURE__ */ r.createElement(De, {
634
638
  className: e,
635
639
  id: o,
636
640
  textValue: n
@@ -643,7 +647,7 @@ k.Options = He;
643
647
  k.Description = ie;
644
648
  k.Error = ce;
645
649
  const re = ({ children: e }) => {
646
- const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: C } = Pe(), b = C("field.mla-apartment.label"), p = E(e, re.Label), f = E(e, re.Input), N = E(e, re.Description), S = E(e, re.Error);
650
+ const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: C } = Pe(), b = C("field.mla-apartment.label"), p = E(e, re.Label), f = E(e, re.Input), N = E(e, re.Description), D = E(e, re.Error);
647
651
  return /* @__PURE__ */ r.createElement(u, {
648
652
  fieldId: t,
649
653
  renderLabel: () => F(p, {
@@ -660,13 +664,15 @@ const re = ({ children: e }) => {
660
664
  onBlur: d,
661
665
  onFocus: m
662
666
  }, f),
663
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, S, N)
667
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, D, N)
664
668
  });
665
669
  }, wn = ({ className: e }) => {
666
670
  const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
667
671
  return ae(() => {
668
672
  var i;
669
- (i = l.current) == null || i.focus();
673
+ (i = l.current) == null || i.focus({
674
+ preventScroll: !0
675
+ });
670
676
  }, t), /* @__PURE__ */ r.createElement(le, {
671
677
  ref: l,
672
678
  id: n,
@@ -704,7 +710,9 @@ const oe = ({ children: e }) => {
704
710
  const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
705
711
  return ae(() => {
706
712
  var i;
707
- (i = l.current) == null || i.focus();
713
+ (i = l.current) == null || i.focus({
714
+ preventScroll: !0
715
+ });
708
716
  }, t), /* @__PURE__ */ r.createElement(le, {
709
717
  ref: l,
710
718
  id: n,
@@ -719,15 +727,15 @@ oe.Input = Mn;
719
727
  oe.Description = ie;
720
728
  oe.Error = ce;
721
729
  const qn = ({ isOpen: e }) => {
722
- const t = Ce(Ue), o = x(!1);
730
+ const t = Ce(We), o = x(!1);
723
731
  return _e(() => {
724
732
  e && t && !t.isOpen && t.open(null, "manual"), e && (t == null ? void 0 : t.selectionManager.focusedKey) != null && t.selectionManager.setFocusedKey(null), !e && o.current && (t == null || t.close()), o.current = e;
725
733
  }, [
726
734
  e,
727
735
  t
728
736
  ]), null;
729
- }, St = ({ readOnly: e, disabled: t } = {}) => {
730
- const o = Ce(Ue);
737
+ }, Dt = ({ readOnly: e, disabled: t } = {}) => {
738
+ const o = Ce(We);
731
739
  return R(() => {
732
740
  !o || o.isOpen || e || t || o.open(null, "manual");
733
741
  }, [
@@ -779,10 +787,10 @@ const qn = ({ isOpen: e }) => {
779
787
  onInputKeyDown: y
780
788
  };
781
789
  }, Y = ({ children: e, ...t }) => {
782
- const { isForcedOpen: o = !1 } = t, { id: n, value: a, onChange: l, disabled: i, readOnly: s, required: d, hasError: m, onBlur: u, onFocus: y, FieldLayout: C, options: b } = P(), { labelId: p } = T(), { t: f } = Pe(), { language: N } = Ct(), S = q(() => (b || []).reduce((M, D) => (D.value && Oe.hasOwnProperty(D.value) && M.push({
783
- value: D.value,
784
- label: f(`locale-dataset.countries.${Oe[D.value].toUpperCase()}`)
785
- }), M), []).sort((M, D) => M.label.localeCompare(D.label, N)), [
790
+ const { isForcedOpen: o = !1 } = t, { id: n, value: a, onChange: l, disabled: i, readOnly: s, required: d, hasError: m, onBlur: u, onFocus: y, FieldLayout: C, options: b } = P(), { labelId: p } = T(), { t: f } = Pe(), { language: N } = Ct(), D = q(() => (b || []).reduce((M, S) => (S.value && Oe.hasOwnProperty(S.value) && M.push({
791
+ value: S.value,
792
+ label: f(`locale-dataset.countries.${Oe[S.value].toUpperCase()}`)
793
+ }), M), []).sort((M, S) => M.label.localeCompare(S.label, N)), [
786
794
  b,
787
795
  f,
788
796
  N
@@ -791,7 +799,7 @@ const qn = ({ isOpen: e }) => {
791
799
  ]), O = R(() => h(""), [
792
800
  h
793
801
  ]), { onInputKeyDown: A, ...w } = Rt({
794
- options: S,
802
+ options: D,
795
803
  value: a,
796
804
  commit: h,
797
805
  clear: O,
@@ -814,7 +822,7 @@ const qn = ({ isOpen: e }) => {
814
822
  }, F(v, {
815
823
  onKeyDown: A
816
824
  }), F(me, {
817
- options: S,
825
+ options: D,
818
826
  isForcedOpen: o
819
827
  }), /* @__PURE__ */ r.createElement(qn, {
820
828
  isOpen: o
@@ -831,13 +839,15 @@ const qn = ({ isOpen: e }) => {
831
839
  onKeyDown: l
832
840
  }), s);
833
841
  }, Bn = ({ className: e, ...t }) => {
834
- const { id: o, placeholder: n, readOnly: a, disabled: l } = P(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = t, m = x(null), u = St({
842
+ const { id: o, placeholder: n, readOnly: a, disabled: l } = P(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = t, m = x(null), u = Dt({
835
843
  readOnly: a,
836
844
  disabled: l
837
845
  });
838
846
  return ae(() => {
839
847
  var y;
840
- (y = m.current) == null || y.focus();
848
+ (y = m.current) == null || y.focus({
849
+ preventScroll: !0
850
+ });
841
851
  }, o), /* @__PURE__ */ r.createElement(le, {
842
852
  ref: m,
843
853
  id: i,
@@ -855,11 +865,11 @@ ve.Input = Bn;
855
865
  ve.Trigger = kn;
856
866
  const je = ({ children: e, className: t, ...o }) => {
857
867
  const { options: n, isForcedOpen: a } = o, l = E(e, je.Option);
858
- return /* @__PURE__ */ r.createElement(De, {
868
+ return /* @__PURE__ */ r.createElement(Se, {
859
869
  className: t,
860
870
  containerPadding: 0,
861
871
  offset: 0
862
- }, /* @__PURE__ */ r.createElement(en, {
872
+ }, /* @__PURE__ */ r.createElement(Zt, {
863
873
  isForcedOpen: a
864
874
  }, n.map((i) => F(l, {
865
875
  key: i.value,
@@ -868,7 +878,7 @@ const je = ({ children: e, className: t, ...o }) => {
868
878
  }))));
869
879
  }, $n = ({ className: e, ...t }) => {
870
880
  const { value: o, label: n } = t;
871
- return /* @__PURE__ */ r.createElement(Se, {
881
+ return /* @__PURE__ */ r.createElement(De, {
872
882
  className: e,
873
883
  id: o,
874
884
  textValue: n
@@ -880,12 +890,12 @@ Y.Control = ve;
880
890
  Y.Options = je;
881
891
  Y.Description = ie;
882
892
  Y.Error = ce;
883
- const Vn = /(\d{7})|(\d{3}-\d{4})/;
884
- function Wn(e) {
893
+ const Un = /(\d{7})|(\d{3}-\d{4})/;
894
+ function Vn(e) {
885
895
  var t;
886
- return (t = e.match(Vn)) == null ? void 0 : t[0];
896
+ return (t = e.match(Un)) == null ? void 0 : t[0];
887
897
  }
888
- function Un({ isAutocompleteEnabled: e }) {
898
+ function Wn({ isAutocompleteEnabled: e }) {
889
899
  const t = x({
890
900
  hasAddress: !1
891
901
  }), o = Ke({
@@ -893,7 +903,7 @@ function Un({ isAutocompleteEnabled: e }) {
893
903
  });
894
904
  return {
895
905
  searchByPostalCode: R(async (a) => {
896
- const l = Wn(a);
906
+ const l = Vn(a);
897
907
  if (l) {
898
908
  if (t.current.postalCode === l && t.current.hasAddress)
899
909
  return t.current.address;
@@ -918,11 +928,11 @@ function Un({ isAutocompleteEnabled: e }) {
918
928
  };
919
929
  }
920
930
  const $ = ({ children: e }) => {
921
- const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: C } = T(), b = Le(), { autocompleteEnabled: p } = Ie(), f = !!(b && Oe[b] === Oe.JP), N = (y || p) && f, S = pe("zipCode"), h = E(e, $.Label), O = E(e, $.Control), A = E(e, $.Options), w = E(e, $.Description), _ = E(e, $.Error);
931
+ const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: C } = T(), b = Le(), { autocompleteEnabled: p } = Ie(), f = !!(b && Oe[b] === Oe.JP), N = (y || p) && f, D = pe("zipCode"), h = E(e, $.Label), O = E(e, $.Control), A = E(e, $.Options), w = E(e, $.Description), _ = E(e, $.Error);
922
932
  return N ? /* @__PURE__ */ r.createElement(u, {
923
933
  fieldId: t,
924
934
  renderLabel: () => F(h, {
925
- label: S
935
+ label: D
926
936
  }),
927
937
  renderInput: () => /* @__PURE__ */ r.createElement(Kn, {
928
938
  value: o,
@@ -938,7 +948,7 @@ const $ = ({ children: e }) => {
938
948
  }) : /* @__PURE__ */ r.createElement(u, {
939
949
  fieldId: t,
940
950
  renderLabel: () => F(h, {
941
- label: S
951
+ label: D
942
952
  }),
943
953
  renderInput: () => /* @__PURE__ */ r.createElement(fe, {
944
954
  "aria-labelledby": C,
@@ -954,16 +964,16 @@ const $ = ({ children: e }) => {
954
964
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, w)
955
965
  });
956
966
  }, Kn = ({ children: e, value: t, onChange: o, disabled: n, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
957
- const { labelId: m } = T(), { onAddressSelect: u } = Ie(), [y, C] = be(!1), { searchByPostalCode: b } = Un({
967
+ const { labelId: m } = T(), { onAddressSelect: u } = Ie(), [y, C] = be(!1), { searchByPostalCode: b } = Wn({
958
968
  isAutocompleteEnabled: y
959
969
  }), [p, f] = be(), N = q(() => p ? [
960
970
  {
961
- id: U(),
971
+ id: W(),
962
972
  label: p.formattedAddress || ""
963
973
  }
964
974
  ] : [], [
965
975
  p
966
- ]), S = R(async (g) => {
976
+ ]), D = R(async (g) => {
967
977
  o(g);
968
978
  const v = await b(g ?? "");
969
979
  f(v);
@@ -987,7 +997,7 @@ const $ = ({ children: e }) => {
987
997
  return /* @__PURE__ */ r.createElement(he, {
988
998
  "aria-labelledby": m,
989
999
  inputValue: t ?? "",
990
- onInputChange: S,
1000
+ onInputChange: D,
991
1001
  value: null,
992
1002
  onChange: h,
993
1003
  isDisabled: n,
@@ -1020,7 +1030,9 @@ const $ = ({ children: e }) => {
1020
1030
  const { id: o, placeholder: n } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = x(null);
1021
1031
  return ae(() => {
1022
1032
  var d;
1023
- (d = s.current) == null || d.focus();
1033
+ (d = s.current) == null || d.focus({
1034
+ preventScroll: !0
1035
+ });
1024
1036
  }, o), /* @__PURE__ */ r.createElement(le, {
1025
1037
  ref: s,
1026
1038
  id: a,
@@ -1032,7 +1044,7 @@ const $ = ({ children: e }) => {
1032
1044
  });
1033
1045
  }, Xe = ({ children: e, className: t }) => {
1034
1046
  const o = E(e, Xe.Option);
1035
- return /* @__PURE__ */ r.createElement(De, {
1047
+ return /* @__PURE__ */ r.createElement(Se, {
1036
1048
  className: t,
1037
1049
  containerPadding: 0,
1038
1050
  offset: 0
@@ -1044,7 +1056,7 @@ const $ = ({ children: e }) => {
1044
1056
  })));
1045
1057
  }, Hn = ({ className: e, ...t }) => {
1046
1058
  const { id: o, label: n } = t;
1047
- return /* @__PURE__ */ r.createElement(Se, {
1059
+ return /* @__PURE__ */ r.createElement(De, {
1048
1060
  className: e,
1049
1061
  id: o,
1050
1062
  textValue: n
@@ -1057,8 +1069,8 @@ $.Control = Je;
1057
1069
  $.Options = Xe;
1058
1070
  $.Description = ie;
1059
1071
  $.Error = ce;
1060
- const V = ({ children: e }) => {
1061
- const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: C } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("streetName"), N = E(e, V.Label), S = E(e, V.Input), h = E(e, V.Options), O = E(e, V.Description), A = E(e, V.Error);
1072
+ const U = ({ children: e }) => {
1073
+ const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: C } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("streetName"), N = E(e, U.Label), D = E(e, U.Input), h = E(e, U.Options), O = E(e, U.Description), A = E(e, U.Error);
1062
1074
  return p ? /* @__PURE__ */ r.createElement(u, {
1063
1075
  fieldId: t,
1064
1076
  renderLabel: () => F(N, {
@@ -1073,7 +1085,7 @@ const V = ({ children: e }) => {
1073
1085
  hasError: s,
1074
1086
  onBlur: d,
1075
1087
  onFocus: m
1076
- }, S, h),
1088
+ }, D, h),
1077
1089
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
1078
1090
  }) : /* @__PURE__ */ r.createElement(u, {
1079
1091
  fieldId: t,
@@ -1090,15 +1102,15 @@ const V = ({ children: e }) => {
1090
1102
  isInvalid: s,
1091
1103
  onBlur: d,
1092
1104
  onFocus: m
1093
- }, S),
1105
+ }, D),
1094
1106
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
1095
1107
  });
1096
1108
  }, jn = ({ children: e, value: t, onChange: o, disabled: n, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
1097
1109
  const { labelId: m } = T(), { onAddressSelect: u } = Ie(), y = Le(), C = Ke({
1098
1110
  enabled: !0
1099
- }), { predictions: b, updatePredictions: p, clearPredictions: f } = Dt({
1111
+ }), { predictions: b, updatePredictions: p, clearPredictions: f } = St({
1100
1112
  atlas: C
1101
- }), N = E(e, V.Input), S = E(e, V.Options), h = q(() => b.reduce((g, v) => (v.searchId && v.description && g.push({
1113
+ }), N = E(e, U.Input), D = E(e, U.Options), h = q(() => b.reduce((g, v) => (v.searchId && v.description && g.push({
1102
1114
  id: v.searchId,
1103
1115
  label: v.description
1104
1116
  }), g), []), [
@@ -1152,7 +1164,7 @@ const V = ({ children: e }) => {
1152
1164
  items: h
1153
1165
  }, F(N, {
1154
1166
  onFocus: _
1155
- }), F(S, {
1167
+ }), F(D, {
1156
1168
  options: h
1157
1169
  }), /* @__PURE__ */ r.createElement(Ye, {
1158
1170
  optionCount: h.length
@@ -1161,7 +1173,9 @@ const V = ({ children: e }) => {
1161
1173
  const { id: o, placeholder: n } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = x(null);
1162
1174
  return ae(() => {
1163
1175
  var d;
1164
- (d = s.current) == null || d.focus();
1176
+ (d = s.current) == null || d.focus({
1177
+ preventScroll: !0
1178
+ });
1165
1179
  }, o), /* @__PURE__ */ r.createElement(le, {
1166
1180
  ref: s,
1167
1181
  id: a,
@@ -1173,7 +1187,7 @@ const V = ({ children: e }) => {
1173
1187
  });
1174
1188
  }, Ge = ({ children: e, className: t }) => {
1175
1189
  const o = E(e, Ge.Option);
1176
- return /* @__PURE__ */ r.createElement(De, {
1190
+ return /* @__PURE__ */ r.createElement(Se, {
1177
1191
  className: t,
1178
1192
  containerPadding: 0,
1179
1193
  offset: 0
@@ -1185,18 +1199,18 @@ const V = ({ children: e }) => {
1185
1199
  })));
1186
1200
  }, Xn = ({ className: e, ...t }) => {
1187
1201
  const { id: o, label: n } = t;
1188
- return /* @__PURE__ */ r.createElement(Se, {
1202
+ return /* @__PURE__ */ r.createElement(De, {
1189
1203
  className: e,
1190
1204
  id: o,
1191
1205
  textValue: n
1192
1206
  }, n);
1193
1207
  };
1194
1208
  Ge.Option = Xn;
1195
- V.Label = de;
1196
- V.Input = Jn;
1197
- V.Options = Ge;
1198
- V.Description = ie;
1199
- V.Error = ce;
1209
+ U.Label = de;
1210
+ U.Input = Jn;
1211
+ U.Options = Ge;
1212
+ U.Description = ie;
1213
+ U.Error = ce;
1200
1214
  const se = ({ children: e }) => {
1201
1215
  const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), C = pe("streetNumber"), b = E(e, se.Label), p = E(e, se.Input), f = E(e, se.Description), N = E(e, se.Error);
1202
1216
  return /* @__PURE__ */ r.createElement(u, {
@@ -1221,7 +1235,9 @@ const se = ({ children: e }) => {
1221
1235
  const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
1222
1236
  return ae(() => {
1223
1237
  var i;
1224
- (i = l.current) == null || i.focus();
1238
+ (i = l.current) == null || i.focus({
1239
+ preventScroll: !0
1240
+ });
1225
1241
  }, t), /* @__PURE__ */ r.createElement(le, {
1226
1242
  ref: l,
1227
1243
  id: n,
@@ -1240,18 +1256,18 @@ const H = ({ children: e }) => {
1240
1256
  return (Bt(((B = f == null ? void 0 : f.subdivisions) == null ? void 0 : B.list) || [], p) || []).map((M) => ({
1241
1257
  value: M.key,
1242
1258
  label: C(M.displayName)
1243
- })).sort((M, D) => M.label.localeCompare(D.label));
1259
+ })).sort((M, S) => M.label.localeCompare(S.label));
1244
1260
  }, [
1245
1261
  p,
1246
1262
  C,
1247
1263
  f
1248
- ]), S = R(() => n(""), [
1264
+ ]), D = R(() => n(""), [
1249
1265
  n
1250
1266
  ]), { onInputKeyDown: h, ...O } = Rt({
1251
1267
  options: N,
1252
1268
  value: o,
1253
1269
  commit: n,
1254
- clear: S,
1270
+ clear: D,
1255
1271
  onBlur: d
1256
1272
  }), A = pe("subdivision"), w = E(e, H.Label), _ = E(e, H.Control), g = E(e, H.Options), v = E(e, H.Description), me = E(e, H.Error);
1257
1273
  return /* @__PURE__ */ r.createElement(u, {
@@ -1285,13 +1301,15 @@ const H = ({ children: e }) => {
1285
1301
  onKeyDown: l
1286
1302
  }), s);
1287
1303
  }, zn = ({ className: e, ...t }) => {
1288
- const { id: o, placeholder: n, readOnly: a, disabled: l } = P(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = t, m = x(null), u = St({
1304
+ const { id: o, placeholder: n, readOnly: a, disabled: l } = P(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = t, m = x(null), u = Dt({
1289
1305
  readOnly: a,
1290
1306
  disabled: l
1291
1307
  });
1292
1308
  return ae(() => {
1293
1309
  var y;
1294
- (y = m.current) == null || y.focus();
1310
+ (y = m.current) == null || y.focus({
1311
+ preventScroll: !0
1312
+ });
1295
1313
  }, o), /* @__PURE__ */ r.createElement(le, {
1296
1314
  ref: m,
1297
1315
  id: i,
@@ -1309,7 +1327,7 @@ Fe.Input = zn;
1309
1327
  Fe.Trigger = Qn;
1310
1328
  const ze = ({ children: e, className: t, ...o }) => {
1311
1329
  const { options: n } = o, a = E(e, ze.Option);
1312
- return /* @__PURE__ */ r.createElement(De, {
1330
+ return /* @__PURE__ */ r.createElement(Se, {
1313
1331
  className: t,
1314
1332
  containerPadding: 0,
1315
1333
  offset: 0
@@ -1320,7 +1338,7 @@ const ze = ({ children: e, className: t, ...o }) => {
1320
1338
  }))));
1321
1339
  }, Zn = ({ className: e, ...t }) => {
1322
1340
  const { value: o, label: n } = t;
1323
- return /* @__PURE__ */ r.createElement(Se, {
1341
+ return /* @__PURE__ */ r.createElement(De, {
1324
1342
  className: e,
1325
1343
  id: o,
1326
1344
  textValue: n
@@ -1343,17 +1361,17 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
1343
1361
  [K.MLA_STREET_NUMBER]: lr,
1344
1362
  [K.MLA_APARTMENT]: ir
1345
1363
  }, dr = {}, ur = [], c = ({ children: e }) => {
1346
- const { id: t, form: o, value: n, onChange: a, onFieldBlur: l, onFieldFocus: i, errors: s, FieldLayout: d, fieldSettings: m, label: u, validation: y, target: C, autocompleteEnabled: b, required: p, fieldType: f } = P(), [N, S] = be(null), h = kt(), O = q(() => ({
1364
+ const { id: t, form: o, value: n, onChange: a, onFieldBlur: l, onFieldFocus: i, errors: s, FieldLayout: d, fieldSettings: m, label: u, validation: y, target: C, autocompleteEnabled: b, required: p, fieldType: f } = P(), [N, D] = be(null), h = kt(), O = q(() => ({
1347
1365
  ...h,
1348
1366
  ...cr
1349
1367
  }), [
1350
1368
  h
1351
- ]), { isExperimentEnabled: A } = ft(), w = A(yt.STREETLESS_LOCALITY_FALLBACK), { validateFields: _ } = $t(), g = Vt(), v = It(), me = q(() => ({
1369
+ ]), { isExperimentEnabled: A } = ft(), w = A(yt.STREETLESS_LOCALITY_FALLBACK), { validateFields: _ } = $t(), g = Ut(), v = It(), me = q(() => ({
1352
1370
  ...v,
1353
1371
  actions: {
1354
1372
  predict: Kt,
1355
- getPlace: Ut,
1356
- searchByPostalCode: Wt,
1373
+ getPlace: Wt,
1374
+ searchByPostalCode: Vt,
1357
1375
  ...v.actions
1358
1376
  }
1359
1377
  }), [
@@ -1367,10 +1385,10 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
1367
1385
  fieldSettings: m,
1368
1386
  validation: y,
1369
1387
  required: p
1370
- }), M = R((W) => {
1388
+ }), M = R((V) => {
1371
1389
  if (!n)
1372
1390
  return;
1373
- const X = sn(W, B, w), Re = {
1391
+ const X = sn(V, B, w), Re = {
1374
1392
  ...X,
1375
1393
  [ye.COUNTRY]: X[ye.COUNTRY] ?? n[ye.COUNTRY]
1376
1394
  };
@@ -1380,8 +1398,8 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
1380
1398
  n,
1381
1399
  B,
1382
1400
  w
1383
- ]), D = R((W, X) => {
1384
- if (B && W === ye.COUNTRY && (n == null ? void 0 : n[W]) !== X) {
1401
+ ]), S = R((V, X) => {
1402
+ if (B && V === ye.COUNTRY && (n == null ? void 0 : n[V]) !== X) {
1385
1403
  a == null || a({
1386
1404
  [ye.COUNTRY]: X
1387
1405
  });
@@ -1389,19 +1407,19 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
1389
1407
  }
1390
1408
  a == null || a({
1391
1409
  ...n,
1392
- [W]: X
1410
+ [V]: X
1393
1411
  });
1394
1412
  }, [
1395
1413
  a,
1396
1414
  n,
1397
1415
  B
1398
- ]), J = R(async (W) => _(B ? [
1399
- ...W,
1416
+ ]), J = R(async (V) => _(B ? [
1417
+ ...V,
1400
1418
  {
1401
1419
  path: `${C}/${ye.COUNTRY}`,
1402
1420
  value: n == null ? void 0 : n.country
1403
1421
  }
1404
- ] : W), [
1422
+ ] : V), [
1405
1423
  n,
1406
1424
  C,
1407
1425
  _,
@@ -1409,7 +1427,7 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
1409
1427
  ]);
1410
1428
  Yt(t, () => {
1411
1429
  var Re;
1412
- const W = s == null ? void 0 : s[0], X = (Re = j == null ? void 0 : j.fields) == null ? void 0 : Re.find((at) => "target" in at && at.target === (W == null ? void 0 : W.errorPath));
1430
+ const V = s == null ? void 0 : s[0], X = (Re = j == null ? void 0 : j.fields) == null ? void 0 : Re.find((at) => "target" in at && at.target === (V == null ? void 0 : V.errorPath));
1413
1431
  return X == null ? void 0 : X.id;
1414
1432
  });
1415
1433
  const Ee = Xt(t), Ne = F(E(e, c.Country), {
@@ -1445,7 +1463,7 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
1445
1463
  }, /* @__PURE__ */ r.createElement(In, {
1446
1464
  fields: At
1447
1465
  }, /* @__PURE__ */ r.createElement("div", {
1448
- ref: S,
1466
+ ref: D,
1449
1467
  style: {
1450
1468
  display: "contents"
1451
1469
  }
@@ -1459,7 +1477,7 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
1459
1477
  formSchema: g,
1460
1478
  form: j,
1461
1479
  values: n ?? dr,
1462
- onFieldChange: D,
1480
+ onFieldChange: S,
1463
1481
  onBlur: l,
1464
1482
  onFocus: i,
1465
1483
  errors: s ?? ur,
@@ -1474,7 +1492,7 @@ c.City = oe;
1474
1492
  c.AddressLine = k;
1475
1493
  c.AddressLine2 = ne;
1476
1494
  c.PostalCode = $;
1477
- c.StreetName = V;
1495
+ c.StreetName = U;
1478
1496
  c.StreetNumber = se;
1479
1497
  c.Apartment = re;
1480
1498
  const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_comboTrigger_1tire_19", Ae = {
@@ -1482,7 +1500,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
1482
1500
  comboControl: pr,
1483
1501
  comboTrigger: Er
1484
1502
  }, wr = () => {
1485
- const e = Gt(Ae.comboControl), t = rn(), o = tn(we);
1503
+ const e = en(Ae.comboControl), t = rn(), o = tn(we);
1486
1504
  return /* @__PURE__ */ r.createElement(c, null, /* @__PURE__ */ r.createElement(c.Country, null, /* @__PURE__ */ r.createElement(c.Country.Label, {
1487
1505
  className: L(z, I.label)
1488
1506
  }, /* @__PURE__ */ r.createElement(c.Country.Label.Required, {