@wix/form-elements 1.89.0 → 1.90.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-DG8GUJpn.js → appointment-rac-DtPa-JZ9.js} +6 -6
  2. package/dist/component/{bookings-address-rac-cNBSx-Pr.js → bookings-address-rac-4l8kqoLi.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CYdSoVWP.js → bookings-email-rac-76vUcGtU.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CQB2o8ww.js → bookings-first-name-rac-IS7LUMxg.js} +1 -1
  5. package/dist/component/{bookings-header-rac-CzKvQond.js → bookings-header-rac-2wTzY64_.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-oK1BC5Am.js → bookings-last-name-rac-nxA75igv.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CZNEy748.js → bookings-login-bar-rac-CRi1nntD.js} +21 -21
  8. package/dist/component/{bookings-phone-rac-D_4WfolC.js → bookings-phone-rac-DZjvHly0.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CrEfeL4P.js → bookings-rich-text-rac-CYn1wwYQ.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CGqshW45.js → checkbox-field-rac-DAcFLQNT.js} +49 -49
  11. package/dist/component/{checkbox-group-field-headless-C3_5IR-E.js → checkbox-group-field-headless-BJmS0Ce5.js} +30 -30
  12. package/dist/component/{checkbox-group-field-rac-DIzdgyAw.js → checkbox-group-field-rac-CeFUt2Nr.js} +9 -9
  13. package/dist/component/{checkbox-group-rac-EvWVfusV.js → checkbox-group-rac-eDChVoVP.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-Bb3xB1ve.js → checkbox-indicator-module-classes-mJ7hl_8K.js} +1 -1
  15. package/dist/component/{checkbox-rac-CT_69Jei.js → checkbox-rac-DGmZdPnl.js} +1 -1
  16. package/dist/component/{contacts-address-rac-M8MZd777.js → contacts-address-rac-CGS83PMu.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-BS-8HeRD.js → contacts-birthdate-rac-DkP-7tZ9.js} +1 -1
  18. package/dist/component/{contacts-company-rac-gmgKLvic.js → contacts-company-rac-D_KYvkYe.js} +1 -1
  19. package/dist/component/{contacts-email-rac-QQ6E9VzX.js → contacts-email-rac-4lGD56E8.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-DR7XheRo.js → contacts-first-name-rac-C5L3U9QV.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-CBJgTkj5.js → contacts-last-name-rac-SL3FSAhE.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-CTl25HdK.js → contacts-phone-rac-DkUwJ56_.js} +1 -1
  23. package/dist/component/{contacts-position-rac-DBDOW7QR.js → contacts-position-rac-CeKJ5oJh.js} +1 -1
  24. package/dist/component/{contacts-subscribe-rac-C0-uJ7fU.js → contacts-subscribe-rac-Bjldz7ed.js} +2 -2
  25. package/dist/component/{contacts-tax-id-rac-BtXc0V1S.js → contacts-tax-id-rac-D8QxyDiU.js} +1 -1
  26. package/dist/component/{date-availability-IQtwk-aX.js → date-availability-DdMI-zNj.js} +1 -1
  27. package/dist/component/{date-input-field-rac-2rbZiSgo.js → date-input-field-rac-Da6j7OP2.js} +99 -98
  28. package/dist/component/{date-input-rac-j4--xZ8s.js → date-input-rac-tlmhXr4A.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-Cl7ueVVn.js → date-picker-field-rac-ClNfMoR1.js} +43 -43
  30. package/dist/component/{date-picker-rac-BrObkuYv.js → date-picker-rac-BV3TGjsx.js} +1 -1
  31. package/dist/component/date-time-input-field-rac-5eHyKry0.js +424 -0
  32. package/dist/component/{date-time-input-rac-BShquR72.js → date-time-input-rac-DQk2ylbE.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-DNXYnHDM.js → dext-checkbox-group-rac-CBj9Y7Tp.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-RBMWmgyT.js → dext-checkbox-rac-C1KI5I2J.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-Dph_kV11.js → dext-date-picker-rac-D-8Ss0bx.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-C3_gQkBT.js → dext-date-time-input-rac-CRnwLBSZ.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-D34vhtST.js → dext-dropdown-rac-BVTEMS0W.js} +1 -1
  38. package/dist/component/{dext-email-rac-Yzf4-vSg.js → dext-email-rac-CXeM4iQj.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-D0jZXKaI.js → dext-number-input-rac-DMh08cy5.js} +1 -1
  40. package/dist/component/{dext-phone-rac-bqTpmTa0.js → dext-phone-rac-E1fFjkVW.js} +1 -1
  41. package/dist/component/{dext-radio-group-rac-AYPAzpqZ.js → dext-radio-group-rac-_BhRzFAr.js} +2 -2
  42. package/dist/component/{dext-rating-input-rac-DOSq-xVQ.js → dext-rating-input-rac-BRYVQOYw.js} +1 -1
  43. package/dist/component/{dext-tags-rac-BXtFTlL0.js → dext-tags-rac-C4iwtRcw.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-46wwBQg_.js → dext-text-area-rac-CQ1KAhkU.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-DVj6V1VG.js → dext-text-input-rac-xCoKhEt3.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-B5zu9R5K.js → dext-url-input-rac-DyoEEa_v.js} +1 -1
  47. package/dist/component/{donation-rac-DeBMssGg.js → donation-rac-CSDVxWUj.js} +51 -51
  48. package/dist/component/dropdown-field-headless-BXyP9KYi.js +101 -0
  49. package/dist/component/dropdown-field-rac-D1Z_Jbzd.js +36 -0
  50. package/dist/component/{dropdown-rac-bUNYh49x.js → dropdown-rac-BEi7CMKT.js} +1 -1
  51. package/dist/component/{ecom-address-rac-CtrERV3f.js → ecom-address-rac-DGl7rlwa.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-BrpwOSYM.js → ecom-subscription-checkbox-rac-D5HzzRQk.js} +6 -6
  53. package/dist/component/{email-input-field-rac-4yYxYc1a.js → email-input-field-rac-DHAK2K8E.js} +63 -63
  54. package/dist/component/{events-repeater-rac-B308C1JK.js → events-repeater-rac-N1mGqD4R.js} +35 -35
  55. package/dist/component/{events-rsvp-rac-C4_LJ3Wz.js → events-rsvp-rac-Ds9PnqHG.js} +6 -6
  56. package/dist/component/{field-error-headless-PMBWtb3Z.js → field-error-headless-9MKScovg.js} +12 -12
  57. package/dist/component/{field-label-headless-0racVfdo.js → field-label-headless-BaoLrUWJ.js} +12 -12
  58. package/dist/component/field-rac.module-BUvPquav.js +26 -0
  59. package/dist/component/{file-upload-rac-CZIHV2OL.js → file-upload-rac-CNbLRxUz.js} +116 -116
  60. package/dist/component/{fixed-payment-rac-COhRKeun.js → fixed-payment-rac-BFnvUksR.js} +15 -15
  61. package/dist/component/{form-UCnayEKT.js → form-B3YjGh0T.js} +129 -128
  62. package/dist/component/{form-element-classes--p2vz_Bm.js → form-element-classes-CLZXu-91.js} +79 -69
  63. package/dist/component/form.css +1 -1
  64. package/dist/component/form.js +1 -1
  65. package/dist/component/{header-field-rac-CpXa-NlC.js → header-field-rac-64pYqszP.js} +3 -3
  66. package/dist/component/{header-rac-CCsguMlZ.js → header-rac-BtPQVL59.js} +1 -1
  67. package/dist/component/{image-choice-rac-j2UH4Q4I.js → image-choice-rac-BsojUR1h.js} +20 -20
  68. package/dist/component/{index-Bxa3IDHm.js → index-CtiBRBqZ.js} +4 -4
  69. package/dist/component/{index-jg8dn8po.js → index-f2JBxCTd.js} +2 -2
  70. package/dist/component/{isObjectLike-Zw6J9g91.js → isObjectLike-BgqHLNgn.js} +1 -1
  71. package/dist/component/{multiline-address-field-rac-BeFAYL7V.js → multiline-address-field-rac-CH1hCUTf.js} +575 -574
  72. package/dist/component/{multiline-address-rac-BYr5_DQd.js → multiline-address-rac-CkOPWXfI.js} +1 -1
  73. package/dist/component/{number-input-field-rac-BNdJecUL.js → number-input-field-rac-B7U_08UK.js} +24 -24
  74. package/dist/component/{number-input-rac-Cqkj4JAF.js → number-input-rac-1jcchySg.js} +1 -1
  75. package/dist/component/{password-rac-D4iSs1ds.js → password-rac-CAaV8OrL.js} +21 -21
  76. package/dist/component/{payment-input-rac-BvBP47HP.js → payment-input-rac-B3Knhzrz.js} +25 -25
  77. package/dist/component/{phone-input-field-rac-Cggx8IlY.js → phone-input-field-rac-BGsvxtXz.js} +185 -184
  78. package/dist/component/{phone-rac-BISmYt_n.js → phone-rac-BUAW-44w.js} +1 -1
  79. package/dist/component/{product-list-rac-C1bm-U2G.js → product-list-rac-C7Nq3ZG4.js} +43 -43
  80. package/dist/component/quiz-radio-group-rac-CRa3I_NR.js +13 -0
  81. package/dist/component/{radio-button-module-classes-blfiatlc.js → radio-button-module-classes-BEvf741q.js} +7 -7
  82. package/dist/component/{radio-group-field-rac-BiiPUxbQ.js → radio-group-field-rac-BYTXrpnE.js} +5 -5
  83. package/dist/component/{radio-group-rac-Bn_W-3xz.js → radio-group-rac-138JrIhm.js} +1 -1
  84. package/dist/component/{rating-input-field-rac-CjXIoNMc.js → rating-input-field-rac-D5pOVdFJ.js} +24 -24
  85. package/dist/component/{rating-input-rac-Ci4uPo22.js → rating-input-rac-DuK1q9JB.js} +1 -1
  86. package/dist/component/{rich-content-rac.module-CDZniyrZ.js → rich-content-rac.module-H3hPgDtD.js} +4 -4
  87. package/dist/component/{rich-text-field-rac-BBRE9_Kr.js → rich-text-field-rac-Btwqm4wb.js} +5 -5
  88. package/dist/component/{rich-text-rac-C3MfJK-H.js → rich-text-rac-DIu8StCg.js} +1 -1
  89. package/dist/component/service-dropdown-rac-N8jqoUC_.js +146 -0
  90. package/dist/component/{services-multi-choice-rac-FDHRjDLS.js → services-multi-choice-rac-DlP0tB9d.js} +18 -18
  91. package/dist/component/{signature-rac-DfGPV0Mw.js → signature-rac-DuRzxIkO.js} +53 -53
  92. package/dist/component/{submit-button-rac-DRsqyJcl.js → submit-button-rac-DFmPp4jT.js} +7 -7
  93. package/dist/component/{tags-field-rac-CZ4FBGG9.js → tags-field-rac-DIgyn5P9.js} +56 -56
  94. package/dist/component/{tags-rac-CMHMsiwv.js → tags-rac-C6R6RHl2.js} +1 -1
  95. package/dist/component/text-area-field-rac-opBEx_8s.js +73 -0
  96. package/dist/component/{text-area-rac-BKGDa4E3.js → text-area-rac-D4iKhAqc.js} +1 -1
  97. package/dist/component/{text-input-field-rac-CU8eBRM4.js → text-input-field-rac-Ckp8Ierz.js} +6 -6
  98. package/dist/component/{text-input-headless-C1eFy2gl.js → text-input-headless-D-LXpqS3.js} +6 -6
  99. package/dist/component/{text-input-rac-DO0eI3ty.js → text-input-rac-ChxuJj-q.js} +1 -1
  100. package/dist/component/{time-input-rac-BJ0AL2Be.js → time-input-rac-C5_rEy7W.js} +23 -23
  101. package/dist/component/{url-input-field-rac-BtpAuKfp.js → url-input-field-rac-CBOnhquz.js} +22 -22
  102. package/dist/component/{url-input-rac-CjnPbcHt.js → url-input-rac-BY-BVg6r.js} +1 -1
  103. package/dist/component/use-dropdown-option-class-name-C1iEE28P.js +28 -0
  104. package/dist/component/{use-element-state-class-name-X08kIFhd.js → use-element-state-class-name--YLulmsU.js} +1 -1
  105. package/dist/component/{use-service-options-base-DfHhMveM.js → use-service-options-base-BNLFmnHJ.js} +3 -3
  106. package/dist/component/{use-text-input-class-name-BAuokapo.js → use-text-input-class-name-3Xp-hNDT.js} +4 -4
  107. package/dist/form.d.ts +3 -0
  108. package/package.json +2 -2
  109. package/dist/component/date-time-input-field-rac-mqea6CtW.js +0 -423
  110. package/dist/component/dropdown-field-headless-ShcoDfPa.js +0 -84
  111. package/dist/component/dropdown-field-rac-DruF_YdZ.js +0 -32
  112. package/dist/component/field-rac.module-D06m9T9x.js +0 -24
  113. package/dist/component/quiz-radio-group-rac-BhNhoOSI.js +0 -13
  114. package/dist/component/service-dropdown-rac-DQkk3SlS.js +0 -142
  115. package/dist/component/text-area-field-rac-BnRuG5y8.js +0 -73
@@ -1,107 +1,108 @@
1
1
  import { RicosViewer as X } from "@wix/ricos/viewer";
2
2
  import L from "classnames";
3
- import n, { useMemo as w, createContext as Ue, useContext as Se, useState as fe, useRef as B, useCallback as D, useEffect as We } from "react";
3
+ import n, { useMemo as w, createContext as Ue, useContext as Fe, useState as be, useRef as B, useCallback as D, useEffect as We } from "react";
4
4
  import { UNSAFE_PortalProvider as _t } from "react-aria";
5
- import { ae as bt, c as ft, a9 as Pt, ab as yt, G as Tt, H as qt, u as Mt, z as V, F as K, at as Te, a2 as st, aj as P, ag as T, al as ae, af as Ct, Q as wt, C as ve, a0 as xt, a4 as Bt, aq as kt, ak as $t, ap as Ut, a7 as Wt, Y as Vt, a6 as Kt, am as Yt, j as Ht } from "./form-UCnayEKT.js";
5
+ import { af as bt, c as ft, aa as Pt, ac as yt, H as Tt, J as qt, v as Mt, G as V, F as K, au as Pe, a3 as st, ak as P, ah as T, am as ae, ag as Ct, T as wt, C as Oe, a1 as xt, a5 as Bt, ar as kt, al as $t, aq as Ut, a8 as Wt, Z as Vt, a7 as Kt, an as Yt, j as Ht } from "./form-B3YjGh0T.js";
6
6
  import { f as E, a as h } from "./find-child-C60k4CxG.js";
7
7
  import { F as jt, V as Jt } from "./headless-styles-CmcyA_pi.js";
8
- import { TextField as ye, Input as le, ComboBoxStateContext as It, ComboBox as De, Popover as Re, ListBox as Ae, ListBoxItem as _e, Group as Lt, Button as Nt } from "react-aria-components";
9
- import { D as ie, E as ce } from "./field-error-headless-PMBWtb3Z.js";
10
- import { L as de } from "./field-label-headless-0racVfdo.js";
11
- import { e as Gt, c as Xt, a as zt, r as gt } from "./isObjectLike-Zw6J9g91.js";
8
+ import { TextField as fe, Input as le, ComboBoxStateContext as It, ComboBox as Se, Popover as De, ListBox as Re, ListBoxItem as Ae, Group as Lt, Button as Nt } from "react-aria-components";
9
+ import { D as ie, E as ce } from "./field-error-headless-9MKScovg.js";
10
+ import { L as de } from "./field-label-headless-BaoLrUWJ.js";
11
+ import { e as Gt, c as Xt, a as zt, r as gt } from "./isObjectLike-BgqHLNgn.js";
12
12
  import { u as Qt } from "./use-invoke-callback-UH73A_J3.js";
13
13
  import { C as at } from "./chevron-down-icon-CcpVm6B-.js";
14
14
  import { E as z } from "./error-icon-hZxQ6DEy.js";
15
- import { H as be } from "./custom-focus-class-_483Pkwp.js";
16
- import { s as y } from "./field-rac.module-D06m9T9x.js";
17
- import { y as Q, P as Z, x as lt, B as ge, o as ee, i as te } from "./form-element-classes--p2vz_Bm.js";
18
- import { u as Zt } from "./use-text-input-class-name-BAuokapo.js";
19
- const en = (e, t, r) => {
15
+ import { H as Te } from "./custom-focus-class-_483Pkwp.js";
16
+ import { s as C } from "./field-rac.module-BUvPquav.js";
17
+ import { B as Q, R as Z, z as lt, D as Ne, q as ee, i as te } from "./form-element-classes-CLZXu-91.js";
18
+ import { g as Zt } from "./use-dropdown-option-class-name-C1iEE28P.js";
19
+ import { u as en } from "./use-text-input-class-name-3Xp-hNDT.js";
20
+ const tn = (e, r, o) => {
20
21
  var a, l, i, s;
21
- const o = (a = e.steps) == null ? void 0 : a.map((d) => {
22
- var m, u, C, I, b, p;
22
+ const t = (a = e.steps) == null ? void 0 : a.map((d) => {
23
+ var m, u, y, I, b, p;
23
24
  return {
24
25
  ...d,
25
26
  layout: {
26
27
  ...d.layout,
27
28
  large: {
28
29
  ...(m = d.layout) == null ? void 0 : m.large,
29
- items: ((I = (C = (u = d.layout) == null ? void 0 : u.large) == null ? void 0 : C.items) == null ? void 0 : I.map((f) => ({
30
+ items: ((I = (y = (u = d.layout) == null ? void 0 : u.large) == null ? void 0 : y.items) == null ? void 0 : I.map((f) => ({
30
31
  ...f,
31
- row: r.row <= f.row ? (f.row || 0) + 1 : f.row
32
+ row: o.row <= f.row ? (f.row || 0) + 1 : f.row
32
33
  }))) || ((p = (b = d.layout) == null ? void 0 : b.large) == null ? void 0 : p.items)
33
34
  }
34
35
  }
35
36
  };
36
37
  });
37
- return (s = (i = (l = o == null ? void 0 : o[0].layout) == null ? void 0 : l.large) == null ? void 0 : i.items) == null || s.unshift(r), {
38
+ return (s = (i = (l = t == null ? void 0 : t[0].layout) == null ? void 0 : l.large) == null ? void 0 : i.items) == null || s.unshift(o), {
38
39
  ...e,
39
40
  fields: [
40
- t,
41
+ r,
41
42
  ...e.fields || []
42
43
  ],
43
- steps: o || e.steps
44
+ steps: t || e.steps
44
45
  };
45
46
  };
46
- var Ce = /* @__PURE__ */ (function(e) {
47
+ var ye = /* @__PURE__ */ (function(e) {
47
48
  return e.COUNTRY = "country", e.SUBDIVISION = "subdivision", e.CITY = "city", e.ADDRESS_LINE = "addressLine", e.ADDRESS_LINE_2 = "addressLine2", e.POSTAL_CODE = "postalCode", e.STREET_NAME = "streetName", e.STREET_NUMBER = "streetNumber", e.APARTMENT = "apartment", e;
48
49
  })({});
49
- function tn(e, t, r = !1) {
50
- const { country: o, subdivision: a, city: l, addressLine: i, streetAddress: s, addressLine2: d, postalCode: m } = e, u = {};
51
- return t ? (o && (u.country = o), 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 : r && (s != null && s.formattedAddressLine) && (u.streetName = s == null ? void 0 : s.formattedAddressLine), s != null && s.number && (u.streetNumber = s.number)) : (o && (u.country = o), 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 : r && (s != null && s.formattedAddressLine) && (u.street_name = s == null ? void 0 : s.formattedAddressLine), s != null && s.number && (u.street_number = s.number)), u;
50
+ function nn(e, r, o = !1) {
51
+ const { country: t, subdivision: a, city: l, addressLine: i, streetAddress: s, addressLine2: d, postalCode: m } = e, u = {};
52
+ return r ? (t && (u.country = t), 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)) : (t && (u.country = t), 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;
52
53
  }
53
54
  const Ot = /* @__PURE__ */ Ue({
54
55
  onAddressSelect: () => {
55
56
  }
56
- }), nn = ({ children: e, onAddressSelect: t, autocompleteEnabled: r }) => {
57
- const o = w(() => ({
58
- onAddressSelect: t,
59
- autocompleteEnabled: r
57
+ }), rn = ({ children: e, onAddressSelect: r, autocompleteEnabled: o }) => {
58
+ const t = w(() => ({
59
+ onAddressSelect: r,
60
+ autocompleteEnabled: o
60
61
  }), [
61
- t,
62
- r
62
+ r,
63
+ o
63
64
  ]);
64
65
  return /* @__PURE__ */ n.createElement(Ot.Provider, {
65
- value: o
66
+ value: t
66
67
  }, e);
67
68
  };
68
- function Ie() {
69
- return Se(Ot);
69
+ function Ce() {
70
+ return Fe(Ot);
70
71
  }
71
- const vt = /* @__PURE__ */ Ue(void 0), rn = ({ children: e, countryCode: t }) => {
72
- const r = w(() => ({
73
- countryCode: t
72
+ const vt = /* @__PURE__ */ Ue(void 0), on = ({ children: e, countryCode: r }) => {
73
+ const o = w(() => ({
74
+ countryCode: r
74
75
  }), [
75
- t
76
+ r
76
77
  ]);
77
78
  return /* @__PURE__ */ n.createElement(vt.Provider, {
78
- value: r
79
+ value: o
79
80
  }, e);
80
81
  };
81
- function Le() {
82
- const e = Se(vt);
82
+ function Ie() {
83
+ const e = Fe(vt);
83
84
  return e == null ? void 0 : e.countryCode;
84
85
  }
85
86
  function qe(e) {
86
87
  return e != null;
87
88
  }
88
- function on(e, t, r) {
89
- return !t || !r ? e : {
89
+ function sn(e, r, o) {
90
+ return !r || !o ? e : {
90
91
  ...e,
91
- fields: (e.fields ?? []).map((o) => {
92
- const { show: a, ...l } = t[o.target] || {}, { required: i } = r[o.target] || {};
92
+ fields: (e.fields ?? []).map((t) => {
93
+ const { show: a, ...l } = r[t.target] || {}, { required: i } = o[t.target] || {};
93
94
  return {
94
- ...o,
95
+ ...t,
95
96
  view: {
96
- ...o.view,
97
+ ...t.view,
97
98
  ...l
98
99
  },
99
100
  ...qe(a) && {
100
101
  hidden: !a
101
102
  },
102
- ...qe(i) && qe(o.validation) && {
103
+ ...qe(i) && qe(t.validation) && {
103
104
  validation: {
104
- ...o.validation,
105
+ ...t.validation,
105
106
  required: i
106
107
  }
107
108
  }
@@ -109,63 +110,63 @@ function on(e, t, r) {
109
110
  })
110
111
  };
111
112
  }
112
- const sn = (e, t) => e.map((r) => ({
113
- ...r,
114
- id: ("target" in r ? t[r.target] : void 0) ?? r.id
115
- })), ht = 12, an = (e) => {
116
- const t = e.filter((o) => !o.properties.hidden), r = e.filter((o) => o.properties.hidden);
113
+ const an = (e, r) => e.map((o) => ({
114
+ ...o,
115
+ id: ("target" in o ? r[o.target] : void 0) ?? o.id
116
+ })), ht = 12, ln = (e) => {
117
+ const r = e.filter((t) => !t.properties.hidden), o = e.filter((t) => t.properties.hidden);
117
118
  return {
118
- visibleFields: t,
119
- hiddenFields: r
119
+ visibleFields: r,
120
+ hiddenFields: o
120
121
  };
121
- }, ln = (e) => {
122
- const t = {};
123
- return e.forEach((r) => {
124
- const o = r.layout.row;
125
- t[o] || (t[o] = []), t[o].push(r);
126
- }), t;
127
122
  }, cn = (e) => {
128
- const t = {};
129
- return Object.keys(e).forEach((r) => {
130
- const o = parseInt(r, 10), a = e[o];
131
- a.reduce((i, s) => i + s.layout.width, 0) !== ht && (t[o] = a);
132
- }), t;
133
- }, dn = (e, t) => e.map((r) => {
134
- const o = r.layout.row;
135
- if (t[o] && !r.properties.hidden) {
136
- const a = t[o], l = a.length, i = ht / l, s = a.findIndex((m) => m.id === r.id), d = i * s;
123
+ const r = {};
124
+ return e.forEach((o) => {
125
+ const t = o.layout.row;
126
+ r[t] || (r[t] = []), r[t].push(o);
127
+ }), r;
128
+ }, dn = (e) => {
129
+ const r = {};
130
+ return Object.keys(e).forEach((o) => {
131
+ const t = parseInt(o, 10), a = e[t];
132
+ a.reduce((i, s) => i + s.layout.width, 0) !== ht && (r[t] = a);
133
+ }), r;
134
+ }, un = (e, r) => e.map((o) => {
135
+ const t = o.layout.row;
136
+ if (r[t] && !o.properties.hidden) {
137
+ const a = r[t], l = a.length, i = ht / l, s = a.findIndex((m) => m.id === o.id), d = i * s;
137
138
  return {
138
- ...r,
139
+ ...o,
139
140
  layout: {
140
- ...r.layout,
141
+ ...o.layout,
141
142
  width: i,
142
143
  column: d
143
144
  }
144
145
  };
145
146
  }
146
- return r;
147
- }), un = (e, t, r) => {
148
- const o = Math.max(...t.map((a) => a.layout.row), -1);
147
+ return o;
148
+ }), mn = (e, r, o) => {
149
+ const t = Math.max(...r.map((a) => a.layout.row), -1);
149
150
  return e.map((a) => {
150
151
  if (a.properties.hidden) {
151
- const l = r.findIndex((i) => i.id === a.id);
152
+ const l = o.findIndex((i) => i.id === a.id);
152
153
  return {
153
154
  ...a,
154
155
  layout: {
155
156
  ...a.layout,
156
- row: o + 1 + l
157
+ row: t + 1 + l
157
158
  }
158
159
  };
159
160
  }
160
161
  return a;
161
162
  });
162
- }, mn = (e) => {
163
- const { visibleFields: t, hiddenFields: r } = an(e.fields), o = ln(t), a = cn(o), l = dn(e.fields, a), i = un(l, t, r);
163
+ }, pn = (e) => {
164
+ const { visibleFields: r, hiddenFields: o } = ln(e.fields), t = cn(r), a = dn(t), l = un(e.fields, a), i = mn(l, r, o);
164
165
  return {
165
166
  ...e,
166
167
  fields: i
167
168
  };
168
- }, pn = () => ({
169
+ }, En = () => ({
169
170
  country: V(),
170
171
  subdivision: V(),
171
172
  city: V(),
@@ -175,8 +176,8 @@ const sn = (e, t) => e.map((r) => ({
175
176
  street_name: V(),
176
177
  street_number: V(),
177
178
  apartment: V()
178
- }), En = ({ id: e, target: t, fieldType: r, form: o, country: a, fieldSettings: l, validation: i, required: s }) => {
179
- const [d] = fe(pn), { isExperimentEnabled: m } = bt(), u = m(ft.USE_FIELDS_V2), { getCountryAddressForm: C } = Pt(), { isMobile: I, breakpoint: b } = yt(), p = C(a), f = r === K.MULTILINE_ADDRESS || r === K.BOOKINGS_ADDRESS, N = w(() => {
179
+ }), bn = ({ id: e, target: r, fieldType: o, form: t, country: a, fieldSettings: l, validation: i, required: s }) => {
180
+ const [d] = be(En), { isExperimentEnabled: m } = bt(), u = m(ft.USE_FIELDS_V2), { getCountryAddressForm: y } = Pt(), { isMobile: I, breakpoint: b } = yt(), p = y(a), f = o === K.MULTILINE_ADDRESS || o === K.BOOKINGS_ADDRESS, N = w(() => {
180
181
  var O;
181
182
  return Tt(s, (O = i == null ? void 0 : i.predefined) == null ? void 0 : O.multilineAddressOptions);
182
183
  }, [
@@ -187,33 +188,33 @@ const sn = (e, t) => e.map((r) => ({
187
188
  form: w(() => {
188
189
  var _, g;
189
190
  if (!f || !p)
190
- return o && {
191
- ...o,
192
- fields: sn(o.fields, d)
191
+ return t && {
192
+ ...t,
193
+ fields: an(t.fields, d)
193
194
  };
194
195
  const O = Mt({
195
196
  useFieldsV2: u,
196
- path: t,
197
+ path: r,
197
198
  parentId: e,
198
199
  includeHiddenFields: !0,
199
200
  isMobile: I,
200
201
  breakpoint: b,
201
- form: on(en(p, N, F), l, (g = (_ = i == null ? void 0 : i.predefined) == null ? void 0 : _.multilineAddressOptions) == null ? void 0 : g.fields)
202
+ form: sn(tn(p, N, F), l, (g = (_ = i == null ? void 0 : i.predefined) == null ? void 0 : _.multilineAddressOptions) == null ? void 0 : g.fields)
202
203
  });
203
204
  if (!O.fields.some((v) => v.properties.hidden))
204
205
  return O;
205
- const q = mn(O);
206
+ const q = pn(O);
206
207
  return {
207
208
  ...q,
208
209
  fields: q.fields.filter((v) => !v.properties.hidden)
209
210
  };
210
211
  }, [
211
212
  p,
212
- o,
213
+ t,
213
214
  d,
214
215
  l,
215
216
  i,
216
- t,
217
+ r,
217
218
  N,
218
219
  F,
219
220
  f,
@@ -224,37 +225,37 @@ const sn = (e, t) => e.map((r) => ({
224
225
  ]),
225
226
  isMultilineAddressField: f
226
227
  };
227
- }, Ft = /* @__PURE__ */ Ue(void 0), bn = ({ children: e, fields: t }) => {
228
- const r = w(() => ({
229
- fields: t
228
+ }, Ft = /* @__PURE__ */ Ue(void 0), fn = ({ children: e, fields: r }) => {
229
+ const o = w(() => ({
230
+ fields: r
230
231
  }), [
231
- t
232
+ r
232
233
  ]);
233
234
  return /* @__PURE__ */ n.createElement(Ft.Provider, {
234
- value: r
235
+ value: o
235
236
  }, e);
236
237
  };
237
238
  function ue(e) {
238
- const t = Se(Ft);
239
- if (!t)
239
+ const r = Fe(Ft);
240
+ if (!r)
240
241
  throw new Error("useAddressFields must be used within AddressFieldsProvider");
241
- return t.fields[e];
242
+ return r.fields[e];
242
243
  }
243
244
  function Ee(e) {
244
- const { t } = Te(), r = Le(), o = r && st.getCountryByShortKey(r), l = (o ? o.addressPartDisplayNames : st.getDefaultAddressDisplayNames())[e];
245
- return l ? t(l) : "";
245
+ const { t: r } = Pe(), o = Ie(), t = o && st.getCountryByShortKey(o), l = (t ? t.addressPartDisplayNames : st.getDefaultAddressDisplayNames())[e];
246
+ return l ? r(l) : "";
246
247
  }
247
248
  const ne = ({ children: e }) => {
248
- const { id: t, value: r, onChange: o, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: C } = T(), I = Ee("addressLine2"), b = E(e, ne.Label), p = E(e, ne.Input), f = E(e, ne.Description), N = E(e, ne.Error);
249
+ const { id: r, value: o, onChange: t, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), I = Ee("addressLine2"), b = E(e, ne.Label), p = E(e, ne.Input), f = E(e, ne.Description), N = E(e, ne.Error);
249
250
  return /* @__PURE__ */ n.createElement(u, {
250
- fieldId: t,
251
+ fieldId: r,
251
252
  renderLabel: () => h(b, {
252
253
  label: I
253
254
  }),
254
- renderInput: () => /* @__PURE__ */ n.createElement(ye, {
255
- "aria-labelledby": C,
256
- value: r ?? "",
257
- onChange: o,
255
+ renderInput: () => /* @__PURE__ */ n.createElement(fe, {
256
+ "aria-labelledby": y,
257
+ value: o ?? "",
258
+ onChange: t,
258
259
  isDisabled: a,
259
260
  isReadOnly: l,
260
261
  isRequired: i,
@@ -264,156 +265,156 @@ const ne = ({ children: e }) => {
264
265
  }, p),
265
266
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, N, f)
266
267
  });
267
- }, fn = ({ className: e }) => {
268
- const { id: t, placeholder: r } = P(), { inputId: o, ariaDescribedBy: a } = T(), l = B(null);
268
+ }, yn = ({ className: e }) => {
269
+ const { id: r, placeholder: o } = P(), { inputId: t, ariaDescribedBy: a } = T(), l = B(null);
269
270
  return ae(() => {
270
271
  var i;
271
272
  (i = l.current) == null || i.focus();
272
- }, t), /* @__PURE__ */ n.createElement(le, {
273
+ }, r), /* @__PURE__ */ n.createElement(le, {
273
274
  ref: l,
274
- id: o,
275
+ id: t,
275
276
  "aria-describedby": a,
276
277
  className: e,
277
- placeholder: r
278
+ placeholder: o
278
279
  });
279
280
  };
280
281
  ne.Label = de;
281
- ne.Input = fn;
282
+ ne.Input = yn;
282
283
  ne.Description = ie;
283
284
  ne.Error = ce;
284
285
  const Ve = ({ enabled: e }) => {
285
- const { actions: t } = Ct(), [r, o] = fe(V()), a = D(() => o(V()), []);
286
+ const { actions: r } = Ct(), [o, t] = be(V()), a = D(() => t(V()), []);
286
287
  return w(() => {
287
- const { predict: l, getPlace: i, searchByPostalCode: s } = t ?? {};
288
+ const { predict: l, getPlace: i, searchByPostalCode: s } = r ?? {};
288
289
  if (!(!e || !l || !i || !s))
289
290
  return {
290
291
  predict: (d) => l({
291
292
  ...d,
292
- sessionToken: r
293
+ sessionToken: o
293
294
  }),
294
295
  getPlace: (d) => i({
295
296
  ...d,
296
- sessionToken: r,
297
+ sessionToken: o,
297
298
  refreshSessionToken: a
298
299
  }),
299
300
  searchByPostalCode: (d) => s({
300
301
  ...d,
301
- sessionToken: r
302
+ sessionToken: o
302
303
  })
303
304
  };
304
305
  }, [
305
306
  e,
306
- t,
307
307
  r,
308
+ o,
308
309
  a
309
310
  ]);
310
311
  };
311
312
  var Me, it;
312
- function yn() {
313
+ function Cn() {
313
314
  if (it) return Me;
314
315
  it = 1;
315
- var e = Gt(), t = function() {
316
+ var e = Gt(), r = function() {
316
317
  return e.Date.now();
317
318
  };
318
- return Me = t, Me;
319
+ return Me = r, Me;
319
320
  }
320
321
  var we, ct;
321
- function Cn() {
322
+ function In() {
322
323
  if (ct) return we;
323
324
  ct = 1;
324
325
  var e = /\s/;
325
- function t(r) {
326
- for (var o = r.length; o-- && e.test(r.charAt(o)); )
326
+ function r(o) {
327
+ for (var t = o.length; t-- && e.test(o.charAt(t)); )
327
328
  ;
328
- return o;
329
+ return t;
329
330
  }
330
- return we = t, we;
331
+ return we = r, we;
331
332
  }
332
333
  var xe, dt;
333
- function In() {
334
+ function Ln() {
334
335
  if (dt) return xe;
335
336
  dt = 1;
336
- var e = Cn(), t = /^\s+/;
337
- function r(o) {
338
- return o && o.slice(0, e(o) + 1).replace(t, "");
337
+ var e = In(), r = /^\s+/;
338
+ function o(t) {
339
+ return t && t.slice(0, e(t) + 1).replace(r, "");
339
340
  }
340
- return xe = r, xe;
341
+ return xe = o, xe;
341
342
  }
342
343
  var Be, ut;
343
- function Ln() {
344
+ function Nn() {
344
345
  if (ut) return Be;
345
346
  ut = 1;
346
- var e = Xt(), t = zt(), r = "[object Symbol]";
347
- function o(a) {
348
- return typeof a == "symbol" || t(a) && e(a) == r;
347
+ var e = Xt(), r = zt(), o = "[object Symbol]";
348
+ function t(a) {
349
+ return typeof a == "symbol" || r(a) && e(a) == o;
349
350
  }
350
- return Be = o, Be;
351
+ return Be = t, Be;
351
352
  }
352
353
  var ke, mt;
353
- function Nn() {
354
+ function gn() {
354
355
  if (mt) return ke;
355
356
  mt = 1;
356
- var e = In(), t = gt(), r = Ln(), o = NaN, a = /^[-+]0x[0-9a-f]+$/i, l = /^0b[01]+$/i, i = /^0o[0-7]+$/i, s = parseInt;
357
+ var e = Ln(), r = gt(), o = Nn(), t = NaN, a = /^[-+]0x[0-9a-f]+$/i, l = /^0b[01]+$/i, i = /^0o[0-7]+$/i, s = parseInt;
357
358
  function d(m) {
358
359
  if (typeof m == "number")
359
360
  return m;
360
- if (r(m))
361
- return o;
362
- if (t(m)) {
361
+ if (o(m))
362
+ return t;
363
+ if (r(m)) {
363
364
  var u = typeof m.valueOf == "function" ? m.valueOf() : m;
364
- m = t(u) ? u + "" : u;
365
+ m = r(u) ? u + "" : u;
365
366
  }
366
367
  if (typeof m != "string")
367
368
  return m === 0 ? m : +m;
368
369
  m = e(m);
369
- var C = l.test(m);
370
- return C || i.test(m) ? s(m.slice(2), C ? 2 : 8) : a.test(m) ? o : +m;
370
+ var y = l.test(m);
371
+ return y || i.test(m) ? s(m.slice(2), y ? 2 : 8) : a.test(m) ? t : +m;
371
372
  }
372
373
  return ke = d, ke;
373
374
  }
374
375
  var $e, pt;
375
- function gn() {
376
+ function On() {
376
377
  if (pt) return $e;
377
378
  pt = 1;
378
- var e = gt(), t = yn(), r = Nn(), o = "Expected a function", a = Math.max, l = Math.min;
379
+ var e = gt(), r = Cn(), o = gn(), t = "Expected a function", a = Math.max, l = Math.min;
379
380
  function i(s, d, m) {
380
- var u, C, I, b, p, f, N = 0, F = !1, S = !1, O = !0;
381
+ var u, y, I, b, p, f, N = 0, F = !1, S = !1, O = !0;
381
382
  if (typeof s != "function")
382
- throw new TypeError(o);
383
- d = r(d) || 0, e(m) && (F = !!m.leading, S = "maxWait" in m, I = S ? a(r(m.maxWait) || 0, d) : I, O = "trailing" in m ? !!m.trailing : O);
383
+ throw new TypeError(t);
384
+ d = o(d) || 0, e(m) && (F = !!m.leading, S = "maxWait" in m, I = S ? a(o(m.maxWait) || 0, d) : I, O = "trailing" in m ? !!m.trailing : O);
384
385
  function R(A) {
385
- var J = u, pe = C;
386
- return u = C = void 0, N = A, b = s.apply(pe, J), b;
386
+ var J = u, pe = y;
387
+ return u = y = void 0, N = A, b = s.apply(pe, J), b;
387
388
  }
388
389
  function q(A) {
389
390
  return N = A, p = setTimeout(v, d), F ? R(A) : b;
390
391
  }
391
392
  function _(A) {
392
- var J = A - f, pe = A - N, Ne = d - J;
393
- return S ? l(Ne, I - pe) : Ne;
393
+ var J = A - f, pe = A - N, Le = d - J;
394
+ return S ? l(Le, I - pe) : Le;
394
395
  }
395
396
  function g(A) {
396
397
  var J = A - f, pe = A - N;
397
398
  return f === void 0 || J >= d || J < 0 || S && pe >= I;
398
399
  }
399
400
  function v() {
400
- var A = t();
401
+ var A = r();
401
402
  if (g(A))
402
403
  return me(A);
403
404
  p = setTimeout(v, _(A));
404
405
  }
405
406
  function me(A) {
406
- return p = void 0, O && u ? R(A) : (u = C = void 0, b);
407
+ return p = void 0, O && u ? R(A) : (u = y = void 0, b);
407
408
  }
408
409
  function x() {
409
- p !== void 0 && clearTimeout(p), N = 0, u = f = C = p = void 0;
410
+ p !== void 0 && clearTimeout(p), N = 0, u = f = y = p = void 0;
410
411
  }
411
412
  function M() {
412
- return p === void 0 ? b : me(t());
413
+ return p === void 0 ? b : me(r());
413
414
  }
414
415
  function j() {
415
- var A = t(), J = g(A);
416
- if (u = arguments, C = this, f = A, J) {
416
+ var A = r(), J = g(A);
417
+ if (u = arguments, y = this, f = A, J) {
417
418
  if (p === void 0)
418
419
  return q(f);
419
420
  if (S)
@@ -425,20 +426,20 @@ function gn() {
425
426
  }
426
427
  return $e = i, $e;
427
428
  }
428
- var On = gn();
429
- const vn = /* @__PURE__ */ wt(On), hn = (e, t, r = 200) => {
430
- const o = B(e), a = D(vn((...l) => {
431
- o.current(...l);
432
- }, r), [
433
- r
429
+ var vn = On();
430
+ const hn = /* @__PURE__ */ wt(vn), Fn = (e, r, o = 200) => {
431
+ const t = B(e), a = D(hn((...l) => {
432
+ t.current(...l);
433
+ }, o), [
434
+ o
434
435
  ]);
435
436
  return We(() => {
436
- o.current = e;
437
+ t.current = e;
437
438
  }, [
438
439
  e,
439
- t
440
+ r
440
441
  ]), a;
441
- }, Fn = () => {
442
+ }, Sn = () => {
442
443
  const e = B(!0);
443
444
  return We(() => () => {
444
445
  e.current = !1;
@@ -446,10 +447,10 @@ const vn = /* @__PURE__ */ wt(On), hn = (e, t, r = 200) => {
446
447
  }, Et = {
447
448
  loading: !1,
448
449
  predictions: []
449
- }, St = ({ atlas: e, onError: t }) => {
450
- const [{ loading: o, predictions: a }, l] = fe(Et), i = B(0), s = Fn(), d = D(() => {
450
+ }, St = ({ atlas: e, onError: r }) => {
451
+ const [{ loading: t, predictions: a }, l] = be(Et), i = B(0), s = Sn(), d = D(() => {
451
452
  i.current++, l(Et);
452
- }, []), m = hn(async ({ input: u, countryCodes: C }) => {
453
+ }, []), m = Fn(async ({ input: u, countryCodes: y }) => {
453
454
  if (!e || !s())
454
455
  return;
455
456
  if (!u) {
@@ -465,10 +466,10 @@ const vn = /* @__PURE__ */ wt(On), hn = (e, t, r = 200) => {
465
466
  try {
466
467
  b = await e.predict({
467
468
  input: u,
468
- countryCodes: C
469
+ countryCodes: y
469
470
  });
470
471
  } catch (p) {
471
- t ? t(p) : console.error(p);
472
+ r ? r(p) : console.error(p);
472
473
  } finally {
473
474
  const p = I === i.current;
474
475
  s() && p && l((f) => ({
@@ -479,36 +480,36 @@ const vn = /* @__PURE__ */ wt(On), hn = (e, t, r = 200) => {
479
480
  }
480
481
  }, [
481
482
  e,
482
- t
483
+ r
483
484
  ], 200);
484
485
  return {
485
486
  predictions: a,
486
- loading: o,
487
+ loading: t,
487
488
  updatePredictions: m,
488
489
  clearPredictions: d
489
490
  };
490
491
  }, Ke = ({ optionCount: e }) => {
491
- const t = Se(It), r = B(t);
492
- r.current = t;
493
- const o = B(e);
492
+ const r = Fe(It), o = B(r);
493
+ o.current = r;
494
+ const t = B(e);
494
495
  return We(() => {
495
- const a = e > 0 && o.current === 0;
496
- o.current = e;
497
- const l = r.current;
496
+ const a = e > 0 && t.current === 0;
497
+ t.current = e;
498
+ const l = o.current;
498
499
  a && (l != null && l.isFocused) && !l.isOpen && l.open(null, "manual");
499
500
  }, [
500
501
  e
501
502
  ]), null;
502
503
  }, k = ({ children: e }) => {
503
- const { id: t, value: r, onChange: o, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: C } = P(), { labelId: I } = T(), { autocompleteEnabled: b } = Ie(), p = C || b, f = Ee("addressLine1"), N = E(e, k.Label), F = E(e, k.Input), S = E(e, k.Options), O = E(e, k.Description), R = E(e, k.Error);
504
+ const { id: r, value: o, onChange: t, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), { autocompleteEnabled: b } = Ce(), p = y || b, f = Ee("addressLine1"), N = E(e, k.Label), F = E(e, k.Input), S = E(e, k.Options), O = E(e, k.Description), R = E(e, k.Error);
504
505
  return p ? /* @__PURE__ */ n.createElement(u, {
505
- fieldId: t,
506
+ fieldId: r,
506
507
  renderLabel: () => h(N, {
507
508
  label: f
508
509
  }),
509
- renderInput: () => /* @__PURE__ */ n.createElement(Sn, {
510
- value: r,
511
- onChange: o,
510
+ renderInput: () => /* @__PURE__ */ n.createElement(Dn, {
511
+ value: o,
512
+ onChange: t,
512
513
  disabled: a,
513
514
  readOnly: l,
514
515
  required: i,
@@ -518,14 +519,14 @@ const vn = /* @__PURE__ */ wt(On), hn = (e, t, r = 200) => {
518
519
  }, F, S),
519
520
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, R, O)
520
521
  }) : /* @__PURE__ */ n.createElement(u, {
521
- fieldId: t,
522
+ fieldId: r,
522
523
  renderLabel: () => h(N, {
523
524
  label: f
524
525
  }),
525
- renderInput: () => /* @__PURE__ */ n.createElement(ye, {
526
+ renderInput: () => /* @__PURE__ */ n.createElement(fe, {
526
527
  "aria-labelledby": I,
527
- value: r ?? "",
528
- onChange: o,
528
+ value: o ?? "",
529
+ onChange: t,
529
530
  isDisabled: a,
530
531
  isReadOnly: l,
531
532
  isRequired: i,
@@ -535,8 +536,8 @@ const vn = /* @__PURE__ */ wt(On), hn = (e, t, r = 200) => {
535
536
  }, F),
536
537
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, R, O)
537
538
  });
538
- }, Sn = ({ children: e, value: t, onChange: r, disabled: o, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
539
- const { labelId: m } = T(), { onAddressSelect: u } = Ie(), C = Le(), I = Ve({
539
+ }, Dn = ({ children: e, value: r, onChange: o, disabled: t, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
540
+ const { labelId: m } = T(), { onAddressSelect: u } = Ce(), y = Ie(), I = Ve({
540
541
  enabled: !0
541
542
  }), { predictions: b, updatePredictions: p, clearPredictions: f } = St({
542
543
  atlas: I
@@ -548,14 +549,14 @@ const vn = /* @__PURE__ */ wt(On), hn = (e, t, r = 200) => {
548
549
  ]), F = D((g) => {
549
550
  p({
550
551
  input: g,
551
- countryCodes: C ? [
552
- C
552
+ countryCodes: y ? [
553
+ y
553
554
  ] : void 0
554
- }), r(g);
555
+ }), o(g);
555
556
  }, [
556
- r,
557
+ o,
557
558
  p,
558
- C
559
+ y
559
560
  ]), S = D(async (g) => {
560
561
  if (!g)
561
562
  return;
@@ -578,13 +579,13 @@ const vn = /* @__PURE__ */ wt(On), hn = (e, t, r = 200) => {
578
579
  }, [
579
580
  d
580
581
  ]), q = E(e, k.Input), _ = E(e, k.Options);
581
- return /* @__PURE__ */ n.createElement(De, {
582
+ return /* @__PURE__ */ n.createElement(Se, {
582
583
  "aria-labelledby": m,
583
- inputValue: t ?? "",
584
+ inputValue: r ?? "",
584
585
  onInputChange: F,
585
586
  value: null,
586
587
  onChange: S,
587
- isDisabled: o,
588
+ isDisabled: t,
588
589
  isReadOnly: a,
589
590
  isRequired: l,
590
591
  isInvalid: i,
@@ -600,56 +601,56 @@ const vn = /* @__PURE__ */ wt(On), hn = (e, t, r = 200) => {
600
601
  }), /* @__PURE__ */ n.createElement(Ke, {
601
602
  optionCount: N.length
602
603
  }));
603
- }, Dn = ({ className: e, ...t }) => {
604
- const { id: r, placeholder: o } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = B(null);
604
+ }, Rn = ({ className: e, ...r }) => {
605
+ const { id: o, placeholder: t } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = r, s = B(null);
605
606
  return ae(() => {
606
607
  var d;
607
608
  (d = s.current) == null || d.focus();
608
- }, r), /* @__PURE__ */ n.createElement(le, {
609
+ }, o), /* @__PURE__ */ n.createElement(le, {
609
610
  ref: s,
610
611
  id: a,
611
612
  "aria-describedby": l,
612
613
  className: e,
613
- placeholder: o,
614
+ placeholder: t,
614
615
  onFocus: i
615
616
  });
616
- }, Ye = ({ children: e, className: t }) => {
617
- const r = E(e, Ye.Option);
618
- return /* @__PURE__ */ n.createElement(Re, {
619
- className: t,
617
+ }, Ye = ({ children: e, className: r }) => {
618
+ const o = E(e, Ye.Option);
619
+ return /* @__PURE__ */ n.createElement(De, {
620
+ className: r,
620
621
  containerPadding: 0,
621
622
  offset: 0
622
- }, /* @__PURE__ */ n.createElement(Ae, {
623
+ }, /* @__PURE__ */ n.createElement(Re, {
623
624
  renderEmptyState: () => null
624
- }, (o) => h(r, {
625
- id: o.id,
626
- label: o.label
625
+ }, (t) => h(o, {
626
+ id: t.id,
627
+ label: t.label
627
628
  })));
628
- }, Rn = ({ className: e, ...t }) => {
629
- const { id: r, label: o } = t;
630
- return /* @__PURE__ */ n.createElement(_e, {
629
+ }, An = ({ className: e, ...r }) => {
630
+ const { id: o, label: t } = r;
631
+ return /* @__PURE__ */ n.createElement(Ae, {
631
632
  className: e,
632
- id: r,
633
- textValue: o
634
- }, o);
633
+ id: o,
634
+ textValue: t
635
+ }, t);
635
636
  };
636
- Ye.Option = Rn;
637
+ Ye.Option = An;
637
638
  k.Label = de;
638
- k.Input = Dn;
639
+ k.Input = Rn;
639
640
  k.Options = Ye;
640
641
  k.Description = ie;
641
642
  k.Error = ce;
642
643
  const re = ({ children: e }) => {
643
- const { id: t, value: r, onChange: o, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: C } = T(), { t: I } = Te(), b = I("field.mla-apartment.label"), p = E(e, re.Label), f = E(e, re.Input), N = E(e, re.Description), F = E(e, re.Error);
644
+ const { id: r, value: o, onChange: t, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: I } = Pe(), b = I("field.mla-apartment.label"), p = E(e, re.Label), f = E(e, re.Input), N = E(e, re.Description), F = E(e, re.Error);
644
645
  return /* @__PURE__ */ n.createElement(u, {
645
- fieldId: t,
646
+ fieldId: r,
646
647
  renderLabel: () => h(p, {
647
648
  label: b
648
649
  }),
649
- renderInput: () => /* @__PURE__ */ n.createElement(ye, {
650
- "aria-labelledby": C,
651
- value: r ?? "",
652
- onChange: o,
650
+ renderInput: () => /* @__PURE__ */ n.createElement(fe, {
651
+ "aria-labelledby": y,
652
+ value: o ?? "",
653
+ onChange: t,
653
654
  isDisabled: a,
654
655
  isReadOnly: l,
655
656
  isRequired: i,
@@ -659,34 +660,34 @@ const re = ({ children: e }) => {
659
660
  }, f),
660
661
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, F, N)
661
662
  });
662
- }, An = ({ className: e }) => {
663
- const { id: t, placeholder: r } = P(), { inputId: o, ariaDescribedBy: a } = T(), l = B(null);
663
+ }, _n = ({ className: e }) => {
664
+ const { id: r, placeholder: o } = P(), { inputId: t, ariaDescribedBy: a } = T(), l = B(null);
664
665
  return ae(() => {
665
666
  var i;
666
667
  (i = l.current) == null || i.focus();
667
- }, t), /* @__PURE__ */ n.createElement(le, {
668
+ }, r), /* @__PURE__ */ n.createElement(le, {
668
669
  ref: l,
669
- id: o,
670
+ id: t,
670
671
  "aria-describedby": a,
671
672
  className: e,
672
- placeholder: r
673
+ placeholder: o
673
674
  });
674
675
  };
675
676
  re.Label = de;
676
- re.Input = An;
677
+ re.Input = _n;
677
678
  re.Description = ie;
678
679
  re.Error = ce;
679
680
  const oe = ({ children: e }) => {
680
- const { id: t, value: r, onChange: o, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: C } = T(), I = Ee("city"), b = E(e, oe.Label), p = E(e, oe.Input), f = E(e, oe.Description), N = E(e, oe.Error);
681
+ const { id: r, value: o, onChange: t, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), I = Ee("city"), b = E(e, oe.Label), p = E(e, oe.Input), f = E(e, oe.Description), N = E(e, oe.Error);
681
682
  return /* @__PURE__ */ n.createElement(u, {
682
- fieldId: t,
683
+ fieldId: r,
683
684
  renderLabel: () => h(b, {
684
685
  label: I
685
686
  }),
686
- renderInput: () => /* @__PURE__ */ n.createElement(ye, {
687
- "aria-labelledby": C,
688
- value: r ?? "",
689
- onChange: o,
687
+ renderInput: () => /* @__PURE__ */ n.createElement(fe, {
688
+ "aria-labelledby": y,
689
+ value: o ?? "",
690
+ onChange: t,
690
691
  isDisabled: a,
691
692
  isReadOnly: l,
692
693
  isRequired: i,
@@ -696,100 +697,100 @@ const oe = ({ children: e }) => {
696
697
  }, p),
697
698
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, N, f)
698
699
  });
699
- }, _n = ({ className: e }) => {
700
- const { id: t, placeholder: r } = P(), { inputId: o, ariaDescribedBy: a } = T(), l = B(null);
700
+ }, Pn = ({ className: e }) => {
701
+ const { id: r, placeholder: o } = P(), { inputId: t, ariaDescribedBy: a } = T(), l = B(null);
701
702
  return ae(() => {
702
703
  var i;
703
704
  (i = l.current) == null || i.focus();
704
- }, t), /* @__PURE__ */ n.createElement(le, {
705
+ }, r), /* @__PURE__ */ n.createElement(le, {
705
706
  ref: l,
706
- id: o,
707
+ id: t,
707
708
  "aria-describedby": a,
708
709
  className: e,
709
- placeholder: r
710
+ placeholder: o
710
711
  });
711
712
  };
712
713
  oe.Label = de;
713
- oe.Input = _n;
714
+ oe.Input = Pn;
714
715
  oe.Description = ie;
715
716
  oe.Error = ce;
716
- const Dt = ({ readOnly: e, disabled: t } = {}) => {
717
- const r = Se(It);
717
+ const Dt = ({ readOnly: e, disabled: r } = {}) => {
718
+ const o = Fe(It);
718
719
  return D(() => {
719
- !r || r.isOpen || e || t || r.open(null, "manual");
720
+ !o || o.isOpen || e || r || o.open(null, "manual");
720
721
  }, [
721
- r,
722
+ o,
722
723
  e,
723
- t
724
+ r
724
725
  ]);
725
- }, Pn = (e, t) => e.find((r) => r.label.toLocaleLowerCase() === t.toLocaleLowerCase().trim()), Rt = ({ options: e, value: t, commit: r, clear: o, onBlur: a }) => {
726
- const [l, i] = fe(null), s = Qt(a), d = w(() => {
726
+ }, Tn = (e, r) => e.find((o) => o.label.toLocaleLowerCase() === r.toLocaleLowerCase().trim()), Rt = ({ options: e, value: r, commit: o, clear: t, onBlur: a }) => {
727
+ const [l, i] = be(null), s = Qt(a), d = w(() => {
727
728
  var b;
728
- return t ? ((b = e.find((p) => p.value === t)) == null ? void 0 : b.label) ?? "" : "";
729
+ return r ? ((b = e.find((p) => p.value === r)) == null ? void 0 : b.label) ?? "" : "";
729
730
  }, [
730
- t,
731
+ r,
731
732
  e
732
733
  ]), m = D((b) => {
733
- typeof b != "string" || b === "" || b === t || (i(null), r(b));
734
+ typeof b != "string" || b === "" || b === r || (i(null), o(b));
734
735
  }, [
735
- r,
736
- t
736
+ o,
737
+ r
737
738
  ]), u = D((b) => {
738
739
  if (i(b), b === "")
739
740
  return;
740
- const p = Pn(e, b);
741
- p && p.value !== t && r(p.value);
741
+ const p = Tn(e, b);
742
+ p && p.value !== r && o(p.value);
742
743
  }, [
743
- r,
744
+ o,
744
745
  e,
745
- t
746
- ]), C = D((b) => {
747
- b.key !== "Enter" && b.key !== "Escape" || (i(null), b.key === "Enter" && l === "" && t && o());
746
+ r
747
+ ]), y = D((b) => {
748
+ b.key !== "Enter" && b.key !== "Escape" || (i(null), b.key === "Enter" && l === "" && r && t());
748
749
  }, [
749
750
  l,
750
- t,
751
- o
751
+ r,
752
+ t
752
753
  ]), I = D(() => {
753
- l === "" && t && o(), i(null), s();
754
+ l === "" && r && t(), i(null), s();
754
755
  }, [
755
756
  l,
757
+ r,
756
758
  t,
757
- o,
758
759
  s
759
760
  ]);
760
761
  return {
761
- value: t ?? null,
762
+ value: r ?? null,
762
763
  inputValue: l ?? d,
763
764
  onChange: m,
764
765
  onInputChange: u,
765
766
  onBlur: I,
766
- onInputKeyDown: C
767
+ onInputKeyDown: y
767
768
  };
768
769
  }, Y = ({ children: e }) => {
769
- const { id: t, value: r, onChange: o, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, options: C } = P(), { labelId: I } = T(), { t: b } = Te(), { language: p } = yt(), f = w(() => (C || []).reduce((x, M) => (M.value && ve.hasOwnProperty(M.value) && x.push({
770
+ const { id: r, value: o, onChange: t, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, options: y } = P(), { labelId: I } = T(), { t: b } = Pe(), { language: p } = yt(), f = w(() => (y || []).reduce((x, M) => (M.value && Oe.hasOwnProperty(M.value) && x.push({
770
771
  value: M.value,
771
- label: b(`locale-dataset.countries.${ve[M.value].toUpperCase()}`)
772
+ label: b(`locale-dataset.countries.${Oe[M.value].toUpperCase()}`)
772
773
  }), x), []).sort((x, M) => x.label.localeCompare(M.label, p)), [
773
- C,
774
+ y,
774
775
  b,
775
776
  p
776
- ]), N = D((x) => o(x), [
777
- o
777
+ ]), N = D((x) => t(x), [
778
+ t
778
779
  ]), F = D(() => N(""), [
779
780
  N
780
781
  ]), { onInputKeyDown: S, ...O } = Rt({
781
782
  options: f,
782
- value: r,
783
+ value: o,
783
784
  commit: N,
784
785
  clear: F,
785
786
  onBlur: d
786
787
  }), R = Ee("country"), q = E(e, Y.Label), _ = E(e, Y.Control), g = E(e, Y.Options), v = E(e, Y.Description), me = E(e, Y.Error);
787
788
  return /* @__PURE__ */ n.createElement(u, {
788
- fieldId: t,
789
+ fieldId: r,
789
790
  renderLabel: () => h(q, {
790
791
  label: R
791
792
  }),
792
- renderInput: () => /* @__PURE__ */ n.createElement(De, {
793
+ renderInput: () => /* @__PURE__ */ n.createElement(Se, {
793
794
  "aria-labelledby": I,
794
795
  ...O,
795
796
  isDisabled: a,
@@ -805,109 +806,109 @@ const Dt = ({ readOnly: e, disabled: t } = {}) => {
805
806
  })),
806
807
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, me, v)
807
808
  });
808
- }, he = ({ children: e, className: t, ...r }) => {
809
- const { disabled: o, hasError: a } = P(), { onKeyDown: l } = r, i = E(e, he.Input), s = E(e, he.Trigger);
809
+ }, ve = ({ children: e, className: r, ...o }) => {
810
+ const { disabled: t, hasError: a } = P(), { onKeyDown: l } = o, i = E(e, ve.Input), s = E(e, ve.Trigger);
810
811
  return /* @__PURE__ */ n.createElement(Lt, {
811
- className: t,
812
- isDisabled: o,
812
+ className: r,
813
+ isDisabled: t,
813
814
  isInvalid: a
814
815
  }, h(i, {
815
816
  onKeyDown: l
816
817
  }), s);
817
- }, Tn = ({ className: e, ...t }) => {
818
- const { id: r, placeholder: o, readOnly: a, disabled: l } = P(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = t, m = B(null), u = Dt({
818
+ }, qn = ({ className: e, ...r }) => {
819
+ const { id: o, placeholder: t, readOnly: a, disabled: l } = P(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = r, m = B(null), u = Dt({
819
820
  readOnly: a,
820
821
  disabled: l
821
822
  });
822
823
  return ae(() => {
823
- var C;
824
- (C = m.current) == null || C.focus();
825
- }, r), /* @__PURE__ */ n.createElement(le, {
824
+ var y;
825
+ (y = m.current) == null || y.focus();
826
+ }, o), /* @__PURE__ */ n.createElement(le, {
826
827
  ref: m,
827
828
  id: i,
828
829
  "aria-describedby": s,
829
830
  className: e,
830
- placeholder: o,
831
+ placeholder: t,
831
832
  onClick: u,
832
833
  onKeyDown: d
833
834
  });
834
- }, qn = ({ children: e, className: t }) => /* @__PURE__ */ n.createElement(Nt, {
835
- className: t
835
+ }, Mn = ({ children: e, className: r }) => /* @__PURE__ */ n.createElement(Nt, {
836
+ className: r
836
837
  }, e);
837
- he.Input = Tn;
838
- he.Trigger = qn;
839
- const He = ({ children: e, className: t, ...r }) => {
840
- const { options: o } = r, a = E(e, He.Option);
841
- return /* @__PURE__ */ n.createElement(Re, {
842
- className: t,
838
+ ve.Input = qn;
839
+ ve.Trigger = Mn;
840
+ const He = ({ children: e, className: r, ...o }) => {
841
+ const { options: t } = o, a = E(e, He.Option);
842
+ return /* @__PURE__ */ n.createElement(De, {
843
+ className: r,
843
844
  containerPadding: 0,
844
845
  offset: 0
845
- }, /* @__PURE__ */ n.createElement(Ae, null, o.map((l) => h(a, {
846
+ }, /* @__PURE__ */ n.createElement(Re, null, t.map((l) => h(a, {
846
847
  key: l.value,
847
848
  value: l.value,
848
849
  label: l.label
849
850
  }))));
850
- }, Mn = ({ className: e, ...t }) => {
851
- const { value: r, label: o } = t;
852
- return /* @__PURE__ */ n.createElement(_e, {
851
+ }, wn = ({ className: e, ...r }) => {
852
+ const { value: o, label: t } = r;
853
+ return /* @__PURE__ */ n.createElement(Ae, {
853
854
  className: e,
854
- id: r,
855
- textValue: o
856
- }, o);
855
+ id: o,
856
+ textValue: t
857
+ }, t);
857
858
  };
858
- He.Option = Mn;
859
+ He.Option = wn;
859
860
  Y.Label = de;
860
- Y.Control = he;
861
+ Y.Control = ve;
861
862
  Y.Options = He;
862
863
  Y.Description = ie;
863
864
  Y.Error = ce;
864
- const wn = /(\d{7})|(\d{3}-\d{4})/;
865
- function xn(e) {
866
- var t;
867
- return (t = e.match(wn)) == null ? void 0 : t[0];
865
+ const xn = /(\d{7})|(\d{3}-\d{4})/;
866
+ function Bn(e) {
867
+ var r;
868
+ return (r = e.match(xn)) == null ? void 0 : r[0];
868
869
  }
869
- function Bn({ isAutocompleteEnabled: e }) {
870
- const t = B({
870
+ function kn({ isAutocompleteEnabled: e }) {
871
+ const r = B({
871
872
  hasAddress: !1
872
- }), r = Ve({
873
+ }), o = Ve({
873
874
  enabled: e
874
875
  });
875
876
  return {
876
877
  searchByPostalCode: D(async (a) => {
877
- const l = xn(a);
878
+ const l = Bn(a);
878
879
  if (l) {
879
- if (t.current.postalCode === l && t.current.hasAddress)
880
- return t.current.address;
881
- t.current = {
880
+ if (r.current.postalCode === l && r.current.hasAddress)
881
+ return r.current.address;
882
+ r.current = {
882
883
  postalCode: l,
883
884
  address: void 0,
884
885
  hasAddress: !1
885
886
  };
886
887
  try {
887
- const i = await (r == null ? void 0 : r.searchByPostalCode({
888
+ const i = await (o == null ? void 0 : o.searchByPostalCode({
888
889
  countryCode: "JP",
889
890
  postalCode: l
890
891
  }));
891
- return t.current.hasAddress = !0, t.current.address = void 0, i != null && i.formattedAddress ? (t.current.address = i, i) : void 0;
892
+ return r.current.hasAddress = !0, r.current.address = void 0, i != null && i.formattedAddress ? (r.current.address = i, i) : void 0;
892
893
  } catch (i) {
893
894
  console.error(i);
894
895
  }
895
896
  }
896
897
  }, [
897
- r
898
+ o
898
899
  ])
899
900
  };
900
901
  }
901
902
  const $ = ({ children: e }) => {
902
- const { id: t, value: r, onChange: o, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: C } = P(), { labelId: I } = T(), b = Le(), { autocompleteEnabled: p } = Ie(), f = !!(b && ve[b] === ve.JP), N = (C || p) && f, F = Ee("zipCode"), S = E(e, $.Label), O = E(e, $.Control), R = E(e, $.Options), q = E(e, $.Description), _ = E(e, $.Error);
903
+ const { id: r, value: o, onChange: t, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), b = Ie(), { autocompleteEnabled: p } = Ce(), f = !!(b && Oe[b] === Oe.JP), N = (y || p) && f, F = Ee("zipCode"), S = E(e, $.Label), O = E(e, $.Control), R = E(e, $.Options), q = E(e, $.Description), _ = E(e, $.Error);
903
904
  return N ? /* @__PURE__ */ n.createElement(u, {
904
- fieldId: t,
905
+ fieldId: r,
905
906
  renderLabel: () => h(S, {
906
907
  label: F
907
908
  }),
908
- renderInput: () => /* @__PURE__ */ n.createElement(kn, {
909
- value: r,
910
- onChange: o,
909
+ renderInput: () => /* @__PURE__ */ n.createElement($n, {
910
+ value: o,
911
+ onChange: t,
911
912
  disabled: a,
912
913
  readOnly: l,
913
914
  required: i,
@@ -917,14 +918,14 @@ const $ = ({ children: e }) => {
917
918
  }, O, R),
918
919
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, _, q)
919
920
  }) : /* @__PURE__ */ n.createElement(u, {
920
- fieldId: t,
921
+ fieldId: r,
921
922
  renderLabel: () => h(S, {
922
923
  label: F
923
924
  }),
924
- renderInput: () => /* @__PURE__ */ n.createElement(ye, {
925
+ renderInput: () => /* @__PURE__ */ n.createElement(fe, {
925
926
  "aria-labelledby": I,
926
- value: r ?? "",
927
- onChange: o,
927
+ value: o ?? "",
928
+ onChange: t,
928
929
  isDisabled: a,
929
930
  isReadOnly: l,
930
931
  isRequired: i,
@@ -934,10 +935,10 @@ const $ = ({ children: e }) => {
934
935
  }, O),
935
936
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, _, q)
936
937
  });
937
- }, kn = ({ children: e, value: t, onChange: r, disabled: o, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
938
- const { labelId: m } = T(), { onAddressSelect: u } = Ie(), [C, I] = fe(!1), { searchByPostalCode: b } = Bn({
939
- isAutocompleteEnabled: C
940
- }), [p, f] = fe(), N = w(() => p ? [
938
+ }, $n = ({ children: e, value: r, onChange: o, disabled: t, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
939
+ const { labelId: m } = T(), { onAddressSelect: u } = Ce(), [y, I] = be(!1), { searchByPostalCode: b } = kn({
940
+ isAutocompleteEnabled: y
941
+ }), [p, f] = be(), N = w(() => p ? [
941
942
  {
942
943
  id: V(),
943
944
  label: p.formattedAddress || ""
@@ -945,11 +946,11 @@ const $ = ({ children: e }) => {
945
946
  ] : [], [
946
947
  p
947
948
  ]), F = D(async (g) => {
948
- r(g);
949
+ o(g);
949
950
  const v = await b(g ?? "");
950
951
  f(v);
951
952
  }, [
952
- r,
953
+ o,
953
954
  b
954
955
  ]), S = D(async (g) => {
955
956
  g && (f(void 0), p && u && u(p));
@@ -965,13 +966,13 @@ const $ = ({ children: e }) => {
965
966
  }, [
966
967
  d
967
968
  ]), q = E(e, $.Control), _ = E(e, $.Options);
968
- return /* @__PURE__ */ n.createElement(De, {
969
+ return /* @__PURE__ */ n.createElement(Se, {
969
970
  "aria-labelledby": m,
970
- inputValue: t ?? "",
971
+ inputValue: r ?? "",
971
972
  onInputChange: F,
972
973
  value: null,
973
974
  onChange: S,
974
- isDisabled: o,
975
+ isDisabled: t,
975
976
  isReadOnly: a,
976
977
  isRequired: l,
977
978
  isInvalid: i,
@@ -987,66 +988,66 @@ const $ = ({ children: e }) => {
987
988
  }), /* @__PURE__ */ n.createElement(Ke, {
988
989
  optionCount: N.length
989
990
  }));
990
- }, je = ({ children: e, className: t, ...r }) => {
991
- const { disabled: o, hasError: a } = P(), { onFocus: l } = r, i = Le(), s = E(e, je.Input);
991
+ }, je = ({ children: e, className: r, ...o }) => {
992
+ const { disabled: t, hasError: a } = P(), { onFocus: l } = o, i = Ie(), s = E(e, je.Input);
992
993
  return /* @__PURE__ */ n.createElement("div", {
993
- className: t,
994
+ className: r,
994
995
  "data-country": i || void 0,
995
- "data-disabled": o || void 0,
996
+ "data-disabled": t || void 0,
996
997
  "data-invalid": a || void 0
997
998
  }, h(s, {
998
999
  onFocus: l
999
1000
  }));
1000
- }, $n = ({ className: e, ...t }) => {
1001
- const { id: r, placeholder: o } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = B(null);
1001
+ }, Un = ({ className: e, ...r }) => {
1002
+ const { id: o, placeholder: t } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = r, s = B(null);
1002
1003
  return ae(() => {
1003
1004
  var d;
1004
1005
  (d = s.current) == null || d.focus();
1005
- }, r), /* @__PURE__ */ n.createElement(le, {
1006
+ }, o), /* @__PURE__ */ n.createElement(le, {
1006
1007
  ref: s,
1007
1008
  id: a,
1008
1009
  "aria-describedby": l,
1009
1010
  className: e,
1010
- placeholder: o,
1011
+ placeholder: t,
1011
1012
  onFocus: i
1012
1013
  });
1013
- }, Je = ({ children: e, className: t }) => {
1014
- const r = E(e, Je.Option);
1015
- return /* @__PURE__ */ n.createElement(Re, {
1016
- className: t,
1014
+ }, Je = ({ children: e, className: r }) => {
1015
+ const o = E(e, Je.Option);
1016
+ return /* @__PURE__ */ n.createElement(De, {
1017
+ className: r,
1017
1018
  containerPadding: 0,
1018
1019
  offset: 0
1019
- }, /* @__PURE__ */ n.createElement(Ae, {
1020
+ }, /* @__PURE__ */ n.createElement(Re, {
1020
1021
  renderEmptyState: () => null
1021
- }, (o) => h(r, {
1022
- id: o.id,
1023
- label: o.label
1022
+ }, (t) => h(o, {
1023
+ id: t.id,
1024
+ label: t.label
1024
1025
  })));
1025
- }, Un = ({ className: e, ...t }) => {
1026
- const { id: r, label: o } = t;
1027
- return /* @__PURE__ */ n.createElement(_e, {
1026
+ }, Wn = ({ className: e, ...r }) => {
1027
+ const { id: o, label: t } = r;
1028
+ return /* @__PURE__ */ n.createElement(Ae, {
1028
1029
  className: e,
1029
- id: r,
1030
- textValue: o
1031
- }, o);
1030
+ id: o,
1031
+ textValue: t
1032
+ }, t);
1032
1033
  };
1033
- Je.Option = Un;
1034
- je.Input = $n;
1034
+ Je.Option = Wn;
1035
+ je.Input = Un;
1035
1036
  $.Label = de;
1036
1037
  $.Control = je;
1037
1038
  $.Options = Je;
1038
1039
  $.Description = ie;
1039
1040
  $.Error = ce;
1040
1041
  const U = ({ children: e }) => {
1041
- const { id: t, value: r, onChange: o, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: C } = P(), { labelId: I } = T(), { autocompleteEnabled: b } = Ie(), p = C || b, f = Ee("streetName"), N = E(e, U.Label), F = E(e, U.Input), S = E(e, U.Options), O = E(e, U.Description), R = E(e, U.Error);
1042
+ const { id: r, value: o, onChange: t, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), { autocompleteEnabled: b } = Ce(), p = y || b, f = Ee("streetName"), N = E(e, U.Label), F = E(e, U.Input), S = E(e, U.Options), O = E(e, U.Description), R = E(e, U.Error);
1042
1043
  return p ? /* @__PURE__ */ n.createElement(u, {
1043
- fieldId: t,
1044
+ fieldId: r,
1044
1045
  renderLabel: () => h(N, {
1045
1046
  label: f
1046
1047
  }),
1047
- renderInput: () => /* @__PURE__ */ n.createElement(Wn, {
1048
- value: r,
1049
- onChange: o,
1048
+ renderInput: () => /* @__PURE__ */ n.createElement(Vn, {
1049
+ value: o,
1050
+ onChange: t,
1050
1051
  disabled: a,
1051
1052
  readOnly: l,
1052
1053
  required: i,
@@ -1056,14 +1057,14 @@ const U = ({ children: e }) => {
1056
1057
  }, F, S),
1057
1058
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, R, O)
1058
1059
  }) : /* @__PURE__ */ n.createElement(u, {
1059
- fieldId: t,
1060
+ fieldId: r,
1060
1061
  renderLabel: () => h(N, {
1061
1062
  label: f
1062
1063
  }),
1063
- renderInput: () => /* @__PURE__ */ n.createElement(ye, {
1064
+ renderInput: () => /* @__PURE__ */ n.createElement(fe, {
1064
1065
  "aria-labelledby": I,
1065
- value: r ?? "",
1066
- onChange: o,
1066
+ value: o ?? "",
1067
+ onChange: t,
1067
1068
  isDisabled: a,
1068
1069
  isReadOnly: l,
1069
1070
  isRequired: i,
@@ -1073,8 +1074,8 @@ const U = ({ children: e }) => {
1073
1074
  }, F),
1074
1075
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, R, O)
1075
1076
  });
1076
- }, Wn = ({ children: e, value: t, onChange: r, disabled: o, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
1077
- const { labelId: m } = T(), { onAddressSelect: u } = Ie(), C = Le(), I = Ve({
1077
+ }, Vn = ({ children: e, value: r, onChange: o, disabled: t, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
1078
+ const { labelId: m } = T(), { onAddressSelect: u } = Ce(), y = Ie(), I = Ve({
1078
1079
  enabled: !0
1079
1080
  }), { predictions: b, updatePredictions: p, clearPredictions: f } = St({
1080
1081
  atlas: I
@@ -1086,14 +1087,14 @@ const U = ({ children: e }) => {
1086
1087
  ]), O = D((g) => {
1087
1088
  p({
1088
1089
  input: g,
1089
- countryCodes: C ? [
1090
- C
1090
+ countryCodes: y ? [
1091
+ y
1091
1092
  ] : void 0
1092
- }), r(g);
1093
+ }), o(g);
1093
1094
  }, [
1094
- r,
1095
+ o,
1095
1096
  p,
1096
- C
1097
+ y
1097
1098
  ]), R = D(async (g) => {
1098
1099
  if (f(), !g)
1099
1100
  return;
@@ -1115,13 +1116,13 @@ const U = ({ children: e }) => {
1115
1116
  }, [
1116
1117
  d
1117
1118
  ]);
1118
- return /* @__PURE__ */ n.createElement(De, {
1119
+ return /* @__PURE__ */ n.createElement(Se, {
1119
1120
  "aria-labelledby": m,
1120
- inputValue: t ?? "",
1121
+ inputValue: r ?? "",
1121
1122
  onInputChange: O,
1122
1123
  value: null,
1123
1124
  onChange: R,
1124
- isDisabled: o,
1125
+ isDisabled: t,
1125
1126
  isReadOnly: a,
1126
1127
  isRequired: l,
1127
1128
  isInvalid: i,
@@ -1137,56 +1138,56 @@ const U = ({ children: e }) => {
1137
1138
  }), /* @__PURE__ */ n.createElement(Ke, {
1138
1139
  optionCount: S.length
1139
1140
  }));
1140
- }, Vn = ({ className: e, ...t }) => {
1141
- const { id: r, placeholder: o } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = B(null);
1141
+ }, Kn = ({ className: e, ...r }) => {
1142
+ const { id: o, placeholder: t } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = r, s = B(null);
1142
1143
  return ae(() => {
1143
1144
  var d;
1144
1145
  (d = s.current) == null || d.focus();
1145
- }, r), /* @__PURE__ */ n.createElement(le, {
1146
+ }, o), /* @__PURE__ */ n.createElement(le, {
1146
1147
  ref: s,
1147
1148
  id: a,
1148
1149
  "aria-describedby": l,
1149
1150
  className: e,
1150
- placeholder: o,
1151
+ placeholder: t,
1151
1152
  onFocus: i
1152
1153
  });
1153
- }, Ge = ({ children: e, className: t }) => {
1154
- const r = E(e, Ge.Option);
1155
- return /* @__PURE__ */ n.createElement(Re, {
1156
- className: t,
1154
+ }, Ge = ({ children: e, className: r }) => {
1155
+ const o = E(e, Ge.Option);
1156
+ return /* @__PURE__ */ n.createElement(De, {
1157
+ className: r,
1157
1158
  containerPadding: 0,
1158
1159
  offset: 0
1159
- }, /* @__PURE__ */ n.createElement(Ae, {
1160
+ }, /* @__PURE__ */ n.createElement(Re, {
1160
1161
  renderEmptyState: () => null
1161
- }, (o) => h(r, {
1162
- id: o.id,
1163
- label: o.label
1162
+ }, (t) => h(o, {
1163
+ id: t.id,
1164
+ label: t.label
1164
1165
  })));
1165
- }, Kn = ({ className: e, ...t }) => {
1166
- const { id: r, label: o } = t;
1167
- return /* @__PURE__ */ n.createElement(_e, {
1166
+ }, Yn = ({ className: e, ...r }) => {
1167
+ const { id: o, label: t } = r;
1168
+ return /* @__PURE__ */ n.createElement(Ae, {
1168
1169
  className: e,
1169
- id: r,
1170
- textValue: o
1171
- }, o);
1170
+ id: o,
1171
+ textValue: t
1172
+ }, t);
1172
1173
  };
1173
- Ge.Option = Kn;
1174
+ Ge.Option = Yn;
1174
1175
  U.Label = de;
1175
- U.Input = Vn;
1176
+ U.Input = Kn;
1176
1177
  U.Options = Ge;
1177
1178
  U.Description = ie;
1178
1179
  U.Error = ce;
1179
1180
  const se = ({ children: e }) => {
1180
- const { id: t, value: r, onChange: o, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: C } = T(), I = Ee("streetNumber"), b = E(e, se.Label), p = E(e, se.Input), f = E(e, se.Description), N = E(e, se.Error);
1181
+ const { id: r, value: o, onChange: t, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), I = Ee("streetNumber"), b = E(e, se.Label), p = E(e, se.Input), f = E(e, se.Description), N = E(e, se.Error);
1181
1182
  return /* @__PURE__ */ n.createElement(u, {
1182
- fieldId: t,
1183
+ fieldId: r,
1183
1184
  renderLabel: () => h(b, {
1184
1185
  label: I
1185
1186
  }),
1186
- renderInput: () => /* @__PURE__ */ n.createElement(ye, {
1187
- "aria-labelledby": C,
1188
- value: r ?? "",
1189
- onChange: o,
1187
+ renderInput: () => /* @__PURE__ */ n.createElement(fe, {
1188
+ "aria-labelledby": y,
1189
+ value: o ?? "",
1190
+ onChange: t,
1190
1191
  isDisabled: a,
1191
1192
  isReadOnly: l,
1192
1193
  isRequired: i,
@@ -1196,25 +1197,25 @@ const se = ({ children: e }) => {
1196
1197
  }, p),
1197
1198
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, N, f)
1198
1199
  });
1199
- }, Yn = ({ className: e }) => {
1200
- const { id: t, placeholder: r } = P(), { inputId: o, ariaDescribedBy: a } = T(), l = B(null);
1200
+ }, Hn = ({ className: e }) => {
1201
+ const { id: r, placeholder: o } = P(), { inputId: t, ariaDescribedBy: a } = T(), l = B(null);
1201
1202
  return ae(() => {
1202
1203
  var i;
1203
1204
  (i = l.current) == null || i.focus();
1204
- }, t), /* @__PURE__ */ n.createElement(le, {
1205
+ }, r), /* @__PURE__ */ n.createElement(le, {
1205
1206
  ref: l,
1206
- id: o,
1207
+ id: t,
1207
1208
  "aria-describedby": a,
1208
1209
  className: e,
1209
- placeholder: r
1210
+ placeholder: o
1210
1211
  });
1211
1212
  };
1212
1213
  se.Label = de;
1213
- se.Input = Yn;
1214
+ se.Input = Hn;
1214
1215
  se.Description = ie;
1215
1216
  se.Error = ce;
1216
1217
  const H = ({ children: e }) => {
1217
- const { id: t, value: r, onChange: o, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: C } = T(), { t: I } = Te(), b = Le(), p = b ? ve[b] : void 0, f = b && xt.getCountryByShortKey(b), N = w(() => {
1218
+ const { id: r, value: o, onChange: t, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: I } = Pe(), b = Ie(), p = b ? Oe[b] : void 0, f = b && xt.getCountryByShortKey(b), N = w(() => {
1218
1219
  var M;
1219
1220
  return (Bt(((M = f == null ? void 0 : f.subdivisions) == null ? void 0 : M.list) || [], p) || []).map((j) => ({
1220
1221
  value: j.key,
@@ -1224,22 +1225,22 @@ const H = ({ children: e }) => {
1224
1225
  p,
1225
1226
  I,
1226
1227
  f
1227
- ]), F = D(() => o(""), [
1228
- o
1228
+ ]), F = D(() => t(""), [
1229
+ t
1229
1230
  ]), { onInputKeyDown: S, ...O } = Rt({
1230
1231
  options: N,
1231
- value: r,
1232
- commit: o,
1232
+ value: o,
1233
+ commit: t,
1233
1234
  clear: F,
1234
1235
  onBlur: d
1235
1236
  }), R = Ee("subdivision"), q = E(e, H.Label), _ = E(e, H.Control), g = E(e, H.Options), v = E(e, H.Description), me = E(e, H.Error);
1236
1237
  return /* @__PURE__ */ n.createElement(u, {
1237
- fieldId: t,
1238
+ fieldId: r,
1238
1239
  renderLabel: () => h(q, {
1239
1240
  label: R
1240
1241
  }),
1241
- renderInput: () => /* @__PURE__ */ n.createElement(De, {
1242
- "aria-labelledby": C,
1242
+ renderInput: () => /* @__PURE__ */ n.createElement(Se, {
1243
+ "aria-labelledby": y,
1243
1244
  ...O,
1244
1245
  isDisabled: a,
1245
1246
  isReadOnly: l,
@@ -1254,76 +1255,76 @@ const H = ({ children: e }) => {
1254
1255
  })),
1255
1256
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, me, v)
1256
1257
  });
1257
- }, Fe = ({ children: e, className: t, ...r }) => {
1258
- const { disabled: o, hasError: a } = P(), { onKeyDown: l } = r, i = E(e, Fe.Input), s = E(e, Fe.Trigger);
1258
+ }, he = ({ children: e, className: r, ...o }) => {
1259
+ const { disabled: t, hasError: a } = P(), { onKeyDown: l } = o, i = E(e, he.Input), s = E(e, he.Trigger);
1259
1260
  return /* @__PURE__ */ n.createElement(Lt, {
1260
- className: t,
1261
- isDisabled: o,
1261
+ className: r,
1262
+ isDisabled: t,
1262
1263
  isInvalid: a
1263
1264
  }, h(i, {
1264
1265
  onKeyDown: l
1265
1266
  }), s);
1266
- }, Hn = ({ className: e, ...t }) => {
1267
- const { id: r, placeholder: o, readOnly: a, disabled: l } = P(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = t, m = B(null), u = Dt({
1267
+ }, jn = ({ className: e, ...r }) => {
1268
+ const { id: o, placeholder: t, readOnly: a, disabled: l } = P(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = r, m = B(null), u = Dt({
1268
1269
  readOnly: a,
1269
1270
  disabled: l
1270
1271
  });
1271
1272
  return ae(() => {
1272
- var C;
1273
- (C = m.current) == null || C.focus();
1274
- }, r), /* @__PURE__ */ n.createElement(le, {
1273
+ var y;
1274
+ (y = m.current) == null || y.focus();
1275
+ }, o), /* @__PURE__ */ n.createElement(le, {
1275
1276
  ref: m,
1276
1277
  id: i,
1277
1278
  "aria-describedby": s,
1278
1279
  className: e,
1279
- placeholder: o,
1280
+ placeholder: t,
1280
1281
  onClick: u,
1281
1282
  onKeyDown: d
1282
1283
  });
1283
- }, jn = ({ children: e, className: t }) => /* @__PURE__ */ n.createElement(Nt, {
1284
- className: t
1284
+ }, Jn = ({ children: e, className: r }) => /* @__PURE__ */ n.createElement(Nt, {
1285
+ className: r
1285
1286
  }, e);
1286
- Fe.Input = Hn;
1287
- Fe.Trigger = jn;
1288
- const Xe = ({ children: e, className: t, ...r }) => {
1289
- const { options: o } = r, a = E(e, Xe.Option);
1290
- return /* @__PURE__ */ n.createElement(Re, {
1291
- className: t,
1287
+ he.Input = jn;
1288
+ he.Trigger = Jn;
1289
+ const Xe = ({ children: e, className: r, ...o }) => {
1290
+ const { options: t } = o, a = E(e, Xe.Option);
1291
+ return /* @__PURE__ */ n.createElement(De, {
1292
+ className: r,
1292
1293
  containerPadding: 0,
1293
1294
  offset: 0
1294
- }, /* @__PURE__ */ n.createElement(Ae, null, o.map((l) => h(a, {
1295
+ }, /* @__PURE__ */ n.createElement(Re, null, t.map((l) => h(a, {
1295
1296
  key: l.value,
1296
1297
  value: l.value,
1297
1298
  label: l.label
1298
1299
  }))));
1299
- }, Jn = ({ className: e, ...t }) => {
1300
- const { value: r, label: o } = t;
1301
- return /* @__PURE__ */ n.createElement(_e, {
1300
+ }, Gn = ({ className: e, ...r }) => {
1301
+ const { value: o, label: t } = r;
1302
+ return /* @__PURE__ */ n.createElement(Ae, {
1302
1303
  className: e,
1303
- id: r,
1304
- textValue: o
1305
- }, o);
1304
+ id: o,
1305
+ textValue: t
1306
+ }, t);
1306
1307
  };
1307
- Xe.Option = Jn;
1308
+ Xe.Option = Gn;
1308
1309
  H.Label = de;
1309
- H.Control = Fe;
1310
+ H.Control = he;
1310
1311
  H.Options = Xe;
1311
1312
  H.Description = ie;
1312
1313
  H.Error = ce;
1313
- const Gn = () => ue("country"), Xn = () => ue("subdivision"), zn = () => ue("city"), Qn = () => ue("addressLine"), Zn = () => ue("addressLine2"), er = () => ue("postalCode"), tr = () => ue("streetName"), nr = () => ue("streetNumber"), rr = () => ue("apartment"), or = {
1314
- [K.MLA_COUNTRY]: Gn,
1315
- [K.MLA_SUBDIVISION]: Xn,
1316
- [K.MLA_CITY]: zn,
1317
- [K.MLA_ADDRESS_LINE]: Qn,
1318
- [K.MLA_ADDRESS_LINE_2]: Zn,
1319
- [K.MLA_POSTAL_CODE]: er,
1320
- [K.MLA_STREET_NAME]: tr,
1321
- [K.MLA_STREET_NUMBER]: nr,
1322
- [K.MLA_APARTMENT]: rr
1323
- }, sr = {}, ar = [], c = ({ children: e }) => {
1324
- const { id: t, form: r, value: o, onChange: a, onFieldBlur: l, onFieldFocus: i, errors: s, FieldLayout: d, fieldSettings: m, label: u, validation: C, target: I, autocompleteEnabled: b, required: p, fieldType: f } = P(), [N, F] = fe(null), S = kt(), O = w(() => ({
1314
+ const Xn = () => ue("country"), zn = () => ue("subdivision"), Qn = () => ue("city"), Zn = () => ue("addressLine"), er = () => ue("addressLine2"), tr = () => ue("postalCode"), nr = () => ue("streetName"), rr = () => ue("streetNumber"), or = () => ue("apartment"), sr = {
1315
+ [K.MLA_COUNTRY]: Xn,
1316
+ [K.MLA_SUBDIVISION]: zn,
1317
+ [K.MLA_CITY]: Qn,
1318
+ [K.MLA_ADDRESS_LINE]: Zn,
1319
+ [K.MLA_ADDRESS_LINE_2]: er,
1320
+ [K.MLA_POSTAL_CODE]: tr,
1321
+ [K.MLA_STREET_NAME]: nr,
1322
+ [K.MLA_STREET_NUMBER]: rr,
1323
+ [K.MLA_APARTMENT]: or
1324
+ }, ar = {}, lr = [], c = ({ children: e }) => {
1325
+ const { id: r, form: o, value: t, onChange: a, onFieldBlur: l, onFieldFocus: i, errors: s, FieldLayout: d, fieldSettings: m, label: u, validation: y, target: I, autocompleteEnabled: b, required: p, fieldType: f } = P(), [N, F] = be(null), S = kt(), O = w(() => ({
1325
1326
  ...S,
1326
- ...or
1327
+ ...sr
1327
1328
  }), [
1328
1329
  S
1329
1330
  ]), { isExperimentEnabled: R } = bt(), q = R(ft.STREETLESS_LOCALITY_FALLBACK), { validateFields: _ } = $t(), g = Ut(), v = Ct(), me = w(() => ({
@@ -1336,63 +1337,63 @@ const Gn = () => ue("country"), Xn = () => ue("subdivision"), zn = () => ue("cit
1336
1337
  }
1337
1338
  }), [
1338
1339
  v
1339
- ]), { form: x, isMultilineAddressField: M } = En({
1340
- id: t,
1340
+ ]), { form: x, isMultilineAddressField: M } = bn({
1341
+ id: r,
1341
1342
  target: I,
1342
1343
  fieldType: f,
1343
- form: r,
1344
- country: o == null ? void 0 : o.country,
1344
+ form: o,
1345
+ country: t == null ? void 0 : t.country,
1345
1346
  fieldSettings: m,
1346
- validation: C,
1347
+ validation: y,
1347
1348
  required: p
1348
1349
  }), j = D((W) => {
1349
- if (!o)
1350
+ if (!t)
1350
1351
  return;
1351
- const G = tn(W, M, q), Pe = {
1352
+ const G = nn(W, M, q), _e = {
1352
1353
  ...G,
1353
- [Ce.COUNTRY]: G[Ce.COUNTRY] ?? o[Ce.COUNTRY]
1354
+ [ye.COUNTRY]: G[ye.COUNTRY] ?? t[ye.COUNTRY]
1354
1355
  };
1355
- a == null || a(Pe);
1356
+ a == null || a(_e);
1356
1357
  }, [
1357
1358
  a,
1358
- o,
1359
+ t,
1359
1360
  M,
1360
1361
  q
1361
1362
  ]), A = D((W, G) => {
1362
- if (M && W === Ce.COUNTRY && (o == null ? void 0 : o[W]) !== G) {
1363
+ if (M && W === ye.COUNTRY && (t == null ? void 0 : t[W]) !== G) {
1363
1364
  a == null || a({
1364
- [Ce.COUNTRY]: G
1365
+ [ye.COUNTRY]: G
1365
1366
  });
1366
1367
  return;
1367
1368
  }
1368
1369
  a == null || a({
1369
- ...o,
1370
+ ...t,
1370
1371
  [W]: G
1371
1372
  });
1372
1373
  }, [
1373
1374
  a,
1374
- o,
1375
+ t,
1375
1376
  M
1376
1377
  ]), J = D(async (W) => _(M ? [
1377
1378
  ...W,
1378
1379
  {
1379
- path: `${I}/${Ce.COUNTRY}`,
1380
- value: o == null ? void 0 : o.country
1380
+ path: `${I}/${ye.COUNTRY}`,
1381
+ value: t == null ? void 0 : t.country
1381
1382
  }
1382
1383
  ] : W), [
1383
- o,
1384
+ t,
1384
1385
  I,
1385
1386
  _,
1386
1387
  M
1387
1388
  ]);
1388
- Yt(t, () => {
1389
- var Pe;
1390
- const W = s == null ? void 0 : s[0], G = (Pe = x == null ? void 0 : x.fields) == null ? void 0 : Pe.find((ot) => "target" in ot && ot.target === (W == null ? void 0 : W.errorPath));
1389
+ Yt(r, () => {
1390
+ var _e;
1391
+ const W = s == null ? void 0 : s[0], G = (_e = x == null ? void 0 : x.fields) == null ? void 0 : _e.find((ot) => "target" in ot && ot.target === (W == null ? void 0 : W.errorPath));
1391
1392
  return G == null ? void 0 : G.id;
1392
1393
  });
1393
- const pe = E(e, c.Country), Ne = E(e, c.Subdivision), ze = E(e, c.City), Qe = E(e, c.AddressLine), Ze = E(e, c.AddressLine2), et = E(e, c.PostalCode), tt = E(e, c.StreetName), nt = E(e, c.StreetNumber), rt = E(e, c.Apartment), At = w(() => ({
1394
+ const pe = E(e, c.Country), Le = E(e, c.Subdivision), ze = E(e, c.City), Qe = E(e, c.AddressLine), Ze = E(e, c.AddressLine2), et = E(e, c.PostalCode), tt = E(e, c.StreetName), nt = E(e, c.StreetNumber), rt = E(e, c.Apartment), At = w(() => ({
1394
1395
  country: pe,
1395
- subdivision: Ne,
1396
+ subdivision: Le,
1396
1397
  city: ze,
1397
1398
  addressLine: Qe,
1398
1399
  addressLine2: Ze,
@@ -1402,7 +1403,7 @@ const Gn = () => ue("country"), Xn = () => ue("subdivision"), zn = () => ue("cit
1402
1403
  apartment: rt
1403
1404
  }), [
1404
1405
  pe,
1405
- Ne,
1406
+ Le,
1406
1407
  ze,
1407
1408
  Qe,
1408
1409
  Ze,
@@ -1412,13 +1413,13 @@ const Gn = () => ue("country"), Xn = () => ue("subdivision"), zn = () => ue("cit
1412
1413
  rt
1413
1414
  ]);
1414
1415
  return x ? /* @__PURE__ */ n.createElement(d, {
1415
- fieldId: t
1416
+ fieldId: r
1417
+ }, /* @__PURE__ */ n.createElement(on, {
1418
+ countryCode: t == null ? void 0 : t.country
1416
1419
  }, /* @__PURE__ */ n.createElement(rn, {
1417
- countryCode: o == null ? void 0 : o.country
1418
- }, /* @__PURE__ */ n.createElement(nn, {
1419
1420
  autocompleteEnabled: b,
1420
1421
  onAddressSelect: j
1421
- }, /* @__PURE__ */ n.createElement(bn, {
1422
+ }, /* @__PURE__ */ n.createElement(fn, {
1422
1423
  fields: At
1423
1424
  }, /* @__PURE__ */ n.createElement("div", {
1424
1425
  ref: F,
@@ -1434,11 +1435,11 @@ const Gn = () => ue("country"), Xn = () => ue("subdivision"), zn = () => ue("cit
1434
1435
  }, u), /* @__PURE__ */ n.createElement(Ht, {
1435
1436
  formSchema: g,
1436
1437
  form: x,
1437
- values: o ?? sr,
1438
+ values: t ?? ar,
1438
1439
  onFieldChange: A,
1439
1440
  onBlur: l,
1440
1441
  onFocus: i,
1441
- errors: s ?? ar,
1442
+ errors: s ?? lr,
1442
1443
  validateFields: J,
1443
1444
  fields: O,
1444
1445
  fieldActions: me
@@ -1453,165 +1454,165 @@ c.PostalCode = $;
1453
1454
  c.StreetName = U;
1454
1455
  c.StreetNumber = se;
1455
1456
  c.Apartment = re;
1456
- const lr = "_postalCodeControl_1tire_1", ir = "_comboControl_1tire_5", cr = "_comboTrigger_1tire_19", Oe = {
1457
- postalCodeControl: lr,
1458
- comboControl: ir,
1459
- comboTrigger: cr
1460
- }, Dr = () => {
1461
- const e = Zt();
1457
+ const ir = "_postalCodeControl_1tire_1", cr = "_comboControl_1tire_5", dr = "_comboTrigger_1tire_19", ge = {
1458
+ postalCodeControl: ir,
1459
+ comboControl: cr,
1460
+ comboTrigger: dr
1461
+ }, Ar = () => {
1462
+ const e = en(), r = Zt(Te);
1462
1463
  return /* @__PURE__ */ n.createElement(c, null, /* @__PURE__ */ n.createElement(c.Country, null, /* @__PURE__ */ n.createElement(c.Country.Label, {
1463
- className: L(Q, y.label)
1464
+ className: L(Q, C.label)
1464
1465
  }, /* @__PURE__ */ n.createElement(c.Country.Label.Required, {
1465
- className: L(Z, y.requiredMark)
1466
+ className: L(Z, C.requiredMark)
1466
1467
  })), /* @__PURE__ */ n.createElement(c.Country.Control, {
1467
- className: L(lt, y.input, Oe.comboControl)
1468
+ className: L(lt, C.input, ge.comboControl)
1468
1469
  }, /* @__PURE__ */ n.createElement(c.Country.Control.Input, {
1469
- className: L(y.innerInput, be)
1470
+ className: L(C.innerInput, Te)
1470
1471
  }), /* @__PURE__ */ n.createElement(c.Country.Control.Trigger, {
1471
- className: Oe.comboTrigger
1472
+ className: ge.comboTrigger
1472
1473
  }, /* @__PURE__ */ n.createElement(at, {
1473
- className: y.dropdownIcon
1474
+ className: C.dropdownIcon
1474
1475
  }))), /* @__PURE__ */ n.createElement(c.Country.Options, {
1475
- className: L(ge, y.selectPopover, y.dropdownPopover)
1476
+ className: L(Ne, C.selectPopover, C.dropdownPopover)
1476
1477
  }, /* @__PURE__ */ n.createElement(c.Country.Options.Option, {
1477
- className: L(y.selectOption, be)
1478
+ className: r
1478
1479
  })), /* @__PURE__ */ n.createElement(c.Country.Error, {
1479
- className: L(ee, y.error)
1480
+ className: L(ee, C.error)
1480
1481
  }, /* @__PURE__ */ n.createElement(z, null), /* @__PURE__ */ n.createElement(c.Country.Error.Text, null)), /* @__PURE__ */ n.createElement(c.Country.Description, {
1481
- className: L(te, y.description)
1482
- }, ({ content: t, locale: r }) => /* @__PURE__ */ n.createElement(X, {
1483
- content: t,
1484
- locale: r
1482
+ className: L(te, C.description)
1483
+ }, ({ content: o, locale: t }) => /* @__PURE__ */ n.createElement(X, {
1484
+ content: o,
1485
+ locale: t
1485
1486
  }))), /* @__PURE__ */ n.createElement(c.AddressLine, null, /* @__PURE__ */ n.createElement(c.AddressLine.Label, {
1486
- className: L(Q, y.label)
1487
+ className: L(Q, C.label)
1487
1488
  }, /* @__PURE__ */ n.createElement(c.AddressLine.Label.Required, {
1488
- className: L(Z, y.requiredMark)
1489
+ className: L(Z, C.requiredMark)
1489
1490
  })), /* @__PURE__ */ n.createElement(c.AddressLine.Input, {
1490
1491
  className: e
1491
1492
  }), /* @__PURE__ */ n.createElement(c.AddressLine.Options, {
1492
- className: L(ge, y.selectPopover, y.dropdownPopover)
1493
+ className: L(Ne, C.selectPopover, C.dropdownPopover)
1493
1494
  }, /* @__PURE__ */ n.createElement(c.AddressLine.Options.Option, {
1494
- className: L(y.selectOption, be)
1495
+ className: r
1495
1496
  })), /* @__PURE__ */ n.createElement(c.AddressLine.Error, {
1496
- className: L(ee, y.error)
1497
+ className: L(ee, C.error)
1497
1498
  }, /* @__PURE__ */ n.createElement(z, null), /* @__PURE__ */ n.createElement(c.AddressLine.Error.Text, null)), /* @__PURE__ */ n.createElement(c.AddressLine.Description, {
1498
- className: L(te, y.description)
1499
- }, ({ content: t, locale: r }) => /* @__PURE__ */ n.createElement(X, {
1500
- content: t,
1501
- locale: r
1499
+ className: L(te, C.description)
1500
+ }, ({ content: o, locale: t }) => /* @__PURE__ */ n.createElement(X, {
1501
+ content: o,
1502
+ locale: t
1502
1503
  }))), /* @__PURE__ */ n.createElement(c.AddressLine2, null, /* @__PURE__ */ n.createElement(c.AddressLine2.Label, {
1503
- className: L(Q, y.label)
1504
+ className: L(Q, C.label)
1504
1505
  }, /* @__PURE__ */ n.createElement(c.AddressLine2.Label.Required, {
1505
- className: L(Z, y.requiredMark)
1506
+ className: L(Z, C.requiredMark)
1506
1507
  })), /* @__PURE__ */ n.createElement(c.AddressLine2.Input, {
1507
1508
  className: e
1508
1509
  }), /* @__PURE__ */ n.createElement(c.AddressLine2.Error, {
1509
- className: L(ee, y.error)
1510
+ className: L(ee, C.error)
1510
1511
  }, /* @__PURE__ */ n.createElement(z, null), /* @__PURE__ */ n.createElement(c.AddressLine2.Error.Text, null)), /* @__PURE__ */ n.createElement(c.AddressLine2.Description, {
1511
- className: L(te, y.description)
1512
- }, ({ content: t, locale: r }) => /* @__PURE__ */ n.createElement(X, {
1513
- content: t,
1514
- locale: r
1512
+ className: L(te, C.description)
1513
+ }, ({ content: o, locale: t }) => /* @__PURE__ */ n.createElement(X, {
1514
+ content: o,
1515
+ locale: t
1515
1516
  }))), /* @__PURE__ */ n.createElement(c.City, null, /* @__PURE__ */ n.createElement(c.City.Label, {
1516
- className: L(Q, y.label)
1517
+ className: L(Q, C.label)
1517
1518
  }, /* @__PURE__ */ n.createElement(c.City.Label.Required, {
1518
- className: L(Z, y.requiredMark)
1519
+ className: L(Z, C.requiredMark)
1519
1520
  })), /* @__PURE__ */ n.createElement(c.City.Input, {
1520
1521
  className: e
1521
1522
  }), /* @__PURE__ */ n.createElement(c.City.Error, {
1522
- className: L(ee, y.error)
1523
+ className: L(ee, C.error)
1523
1524
  }, /* @__PURE__ */ n.createElement(z, null), /* @__PURE__ */ n.createElement(c.City.Error.Text, null)), /* @__PURE__ */ n.createElement(c.City.Description, {
1524
- className: L(te, y.description)
1525
- }, ({ content: t, locale: r }) => /* @__PURE__ */ n.createElement(X, {
1526
- content: t,
1527
- locale: r
1525
+ className: L(te, C.description)
1526
+ }, ({ content: o, locale: t }) => /* @__PURE__ */ n.createElement(X, {
1527
+ content: o,
1528
+ locale: t
1528
1529
  }))), /* @__PURE__ */ n.createElement(c.PostalCode, null, /* @__PURE__ */ n.createElement(c.PostalCode.Label, {
1529
- className: L(Q, y.label)
1530
+ className: L(Q, C.label)
1530
1531
  }, /* @__PURE__ */ n.createElement(c.PostalCode.Label.Required, {
1531
- className: L(Z, y.requiredMark)
1532
+ className: L(Z, C.requiredMark)
1532
1533
  })), /* @__PURE__ */ n.createElement(c.PostalCode.Control, {
1533
- className: Oe.postalCodeControl
1534
+ className: ge.postalCodeControl
1534
1535
  }, /* @__PURE__ */ n.createElement(c.PostalCode.Control.Input, {
1535
1536
  className: e
1536
1537
  })), /* @__PURE__ */ n.createElement(c.PostalCode.Options, {
1537
- className: L(ge, y.selectPopover, y.dropdownPopover)
1538
+ className: L(Ne, C.selectPopover, C.dropdownPopover)
1538
1539
  }, /* @__PURE__ */ n.createElement(c.PostalCode.Options.Option, {
1539
- className: L(y.selectOption, be)
1540
+ className: r
1540
1541
  })), /* @__PURE__ */ n.createElement(c.PostalCode.Error, {
1541
- className: L(ee, y.error)
1542
+ className: L(ee, C.error)
1542
1543
  }, /* @__PURE__ */ n.createElement(z, null), /* @__PURE__ */ n.createElement(c.PostalCode.Error.Text, null)), /* @__PURE__ */ n.createElement(c.PostalCode.Description, {
1543
- className: L(te, y.description)
1544
- }, ({ content: t, locale: r }) => /* @__PURE__ */ n.createElement(X, {
1545
- content: t,
1546
- locale: r
1544
+ className: L(te, C.description)
1545
+ }, ({ content: o, locale: t }) => /* @__PURE__ */ n.createElement(X, {
1546
+ content: o,
1547
+ locale: t
1547
1548
  }))), /* @__PURE__ */ n.createElement(c.Subdivision, null, /* @__PURE__ */ n.createElement(c.Subdivision.Label, {
1548
- className: L(Q, y.label)
1549
+ className: L(Q, C.label)
1549
1550
  }, /* @__PURE__ */ n.createElement(c.Subdivision.Label.Required, {
1550
- className: L(Z, y.requiredMark)
1551
+ className: L(Z, C.requiredMark)
1551
1552
  })), /* @__PURE__ */ n.createElement(c.Subdivision.Control, {
1552
- className: L(lt, y.input, Oe.comboControl)
1553
+ className: L(lt, C.input, ge.comboControl)
1553
1554
  }, /* @__PURE__ */ n.createElement(c.Subdivision.Control.Input, {
1554
- className: L(y.innerInput, be)
1555
+ className: L(C.innerInput, Te)
1555
1556
  }), /* @__PURE__ */ n.createElement(c.Subdivision.Control.Trigger, {
1556
- className: Oe.comboTrigger
1557
+ className: ge.comboTrigger
1557
1558
  }, /* @__PURE__ */ n.createElement(at, {
1558
- className: y.dropdownIcon
1559
+ className: C.dropdownIcon
1559
1560
  }))), /* @__PURE__ */ n.createElement(c.Subdivision.Options, {
1560
- className: L(ge, y.selectPopover, y.dropdownPopover)
1561
+ className: L(Ne, C.selectPopover, C.dropdownPopover)
1561
1562
  }, /* @__PURE__ */ n.createElement(c.Subdivision.Options.Option, {
1562
- className: L(y.selectOption, be)
1563
+ className: r
1563
1564
  })), /* @__PURE__ */ n.createElement(c.Subdivision.Error, {
1564
- className: L(ee, y.error)
1565
+ className: L(ee, C.error)
1565
1566
  }, /* @__PURE__ */ n.createElement(z, null), /* @__PURE__ */ n.createElement(c.Subdivision.Error.Text, null)), /* @__PURE__ */ n.createElement(c.Subdivision.Description, {
1566
- className: L(te, y.description)
1567
- }, ({ content: t, locale: r }) => /* @__PURE__ */ n.createElement(X, {
1568
- content: t,
1569
- locale: r
1567
+ className: L(te, C.description)
1568
+ }, ({ content: o, locale: t }) => /* @__PURE__ */ n.createElement(X, {
1569
+ content: o,
1570
+ locale: t
1570
1571
  }))), /* @__PURE__ */ n.createElement(c.StreetName, null, /* @__PURE__ */ n.createElement(c.StreetName.Label, {
1571
- className: L(Q, y.label)
1572
+ className: L(Q, C.label)
1572
1573
  }, /* @__PURE__ */ n.createElement(c.StreetName.Label.Required, {
1573
- className: L(Z, y.requiredMark)
1574
+ className: L(Z, C.requiredMark)
1574
1575
  })), /* @__PURE__ */ n.createElement(c.StreetName.Input, {
1575
1576
  className: e
1576
1577
  }), /* @__PURE__ */ n.createElement(c.StreetName.Options, {
1577
- className: L(ge, y.selectPopover, y.dropdownPopover)
1578
+ className: L(Ne, C.selectPopover, C.dropdownPopover)
1578
1579
  }, /* @__PURE__ */ n.createElement(c.StreetName.Options.Option, {
1579
- className: L(y.selectOption, be)
1580
+ className: r
1580
1581
  })), /* @__PURE__ */ n.createElement(c.StreetName.Error, {
1581
- className: L(ee, y.error)
1582
+ className: L(ee, C.error)
1582
1583
  }, /* @__PURE__ */ n.createElement(z, null), /* @__PURE__ */ n.createElement(c.StreetName.Error.Text, null)), /* @__PURE__ */ n.createElement(c.StreetName.Description, {
1583
- className: L(te, y.description)
1584
- }, ({ content: t, locale: r }) => /* @__PURE__ */ n.createElement(X, {
1585
- content: t,
1586
- locale: r
1584
+ className: L(te, C.description)
1585
+ }, ({ content: o, locale: t }) => /* @__PURE__ */ n.createElement(X, {
1586
+ content: o,
1587
+ locale: t
1587
1588
  }))), /* @__PURE__ */ n.createElement(c.StreetNumber, null, /* @__PURE__ */ n.createElement(c.StreetNumber.Label, {
1588
- className: L(Q, y.label)
1589
+ className: L(Q, C.label)
1589
1590
  }, /* @__PURE__ */ n.createElement(c.StreetNumber.Label.Required, {
1590
- className: L(Z, y.requiredMark)
1591
+ className: L(Z, C.requiredMark)
1591
1592
  })), /* @__PURE__ */ n.createElement(c.StreetNumber.Input, {
1592
1593
  className: e
1593
1594
  }), /* @__PURE__ */ n.createElement(c.StreetNumber.Error, {
1594
- className: L(ee, y.error)
1595
+ className: L(ee, C.error)
1595
1596
  }, /* @__PURE__ */ n.createElement(z, null), /* @__PURE__ */ n.createElement(c.StreetNumber.Error.Text, null)), /* @__PURE__ */ n.createElement(c.StreetNumber.Description, {
1596
- className: L(te, y.description)
1597
- }, ({ content: t, locale: r }) => /* @__PURE__ */ n.createElement(X, {
1598
- content: t,
1599
- locale: r
1597
+ className: L(te, C.description)
1598
+ }, ({ content: o, locale: t }) => /* @__PURE__ */ n.createElement(X, {
1599
+ content: o,
1600
+ locale: t
1600
1601
  }))), /* @__PURE__ */ n.createElement(c.Apartment, null, /* @__PURE__ */ n.createElement(c.Apartment.Label, {
1601
- className: L(Q, y.label)
1602
+ className: L(Q, C.label)
1602
1603
  }, /* @__PURE__ */ n.createElement(c.Apartment.Label.Required, {
1603
- className: L(Z, y.requiredMark)
1604
+ className: L(Z, C.requiredMark)
1604
1605
  })), /* @__PURE__ */ n.createElement(c.Apartment.Input, {
1605
1606
  className: e
1606
1607
  }), /* @__PURE__ */ n.createElement(c.Apartment.Error, {
1607
- className: L(ee, y.error)
1608
+ className: L(ee, C.error)
1608
1609
  }, /* @__PURE__ */ n.createElement(z, null), /* @__PURE__ */ n.createElement(c.Apartment.Error.Text, null)), /* @__PURE__ */ n.createElement(c.Apartment.Description, {
1609
- className: L(te, y.description)
1610
- }, ({ content: t, locale: r }) => /* @__PURE__ */ n.createElement(X, {
1611
- content: t,
1612
- locale: r
1610
+ className: L(te, C.description)
1611
+ }, ({ content: o, locale: t }) => /* @__PURE__ */ n.createElement(X, {
1612
+ content: o,
1613
+ locale: t
1613
1614
  }))));
1614
1615
  };
1615
1616
  export {
1616
- Dr as M
1617
+ Ar as M
1617
1618
  };