@wix/form-elements 1.241.0 → 1.243.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 (109) hide show
  1. package/dist/component/{appointment-rac-CHG0WqmP.js → appointment-rac-D-dMrhRb.js} +43 -43
  2. package/dist/component/{bookings-address-rac-0gam8j7s.js → bookings-address-rac-B6aQ4P5I.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DZlulUCa.js → bookings-email-rac-Bh849hrc.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-U4MHsWd1.js → bookings-first-name-rac-C69Ind1o.js} +1 -1
  5. package/dist/component/{bookings-header-rac-CDJfljEO.js → bookings-header-rac-DGUzMGRj.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DLInE8pT.js → bookings-last-name-rac-Ch9Bm-sr.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-K3m0pn4a.js → bookings-login-bar-rac-CUhHuZm-.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-CI8wi6GY.js → bookings-phone-rac-BI4PoSu3.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-Bwta9py6.js → bookings-rich-text-rac-B4D2ZCJs.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-Bs_vJ_oq.js → checkbox-field-rac-zE0dzJYu.js} +81 -81
  11. package/dist/component/{checkbox-group-field-headless-CwyrCRLc.js → checkbox-group-field-headless-C2x-la-e.js} +44 -44
  12. package/dist/component/{checkbox-group-field-rac-31RRmAz_.js → checkbox-group-field-rac-iJkQGTiJ.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-Bz98tGbx.js → checkbox-group-rac-DoK5e4c8.js} +1 -1
  14. package/dist/component/{checkbox-rac-DFdDAv50.js → checkbox-rac-8i-6GMze.js} +1 -1
  15. package/dist/component/{contacts-address-rac-Ct5QNUdV.js → contacts-address-rac-CHcRQBjy.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BUHd4cCk.js → contacts-birthdate-rac-CkSsvQ6R.js} +1 -1
  17. package/dist/component/{contacts-company-rac-CI_d3IHw.js → contacts-company-rac-CIsmil8s.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CCbpBKs9.js → contacts-email-rac-AEvRJfWd.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-FBUDLP8v.js → contacts-first-name-rac-CLSJ2cna.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BSNrn4eb.js → contacts-last-name-rac-o59dmvVn.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-CsrFVsq6.js → contacts-phone-rac-jh-YSD-N.js} +1 -1
  22. package/dist/component/{contacts-position-rac-2gwTiIIo.js → contacts-position-rac-Ak4X2gV_.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DucA9CDH.js → contacts-subscribe-rac-By9Bk1YL.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-LcMf98te.js → contacts-tax-id-rac-B1enZgKk.js} +1 -1
  25. package/dist/component/{date-availability-Bt56LTk9.js → date-availability--3J2b6Ur.js} +1 -1
  26. package/dist/component/{date-input-field-rac-DhJqiwKI.js → date-input-field-rac-BFt0DKA9.js} +66 -66
  27. package/dist/component/{date-input-rac-BISvPvDp.js → date-input-rac-D8BA8S1A.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-C4I7QrcQ.js → date-picker-field-rac-cwYdVf60.js} +40 -40
  29. package/dist/component/{date-picker-rac-C3nny4Tu.js → date-picker-rac-B7uR5ZnA.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-njri5kye.js → date-time-input-field-rac-PaKyrMb9.js} +98 -98
  31. package/dist/component/{date-time-input-rac-D9kJRPD-.js → date-time-input-rac-Ck8Edatx.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-D8cqL9dJ.js → dext-checkbox-group-rac-Cru3Lq4c.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-Dd1SbiE4.js → dext-checkbox-rac-wtMsRxly.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-C2r-njE7.js → dext-date-picker-rac-B34DtxLN.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-CAqXDbbj.js → dext-date-time-input-rac-BsdfLty5.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-B2VPep8Y.js → dext-dropdown-rac-DeZYnwo7.js} +1 -1
  37. package/dist/component/{dext-email-rac-24Jk1Mrj.js → dext-email-rac-B4GTK5H8.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-y4ohRhoE.js → dext-number-input-rac-BIyJJ9h0.js} +1 -1
  39. package/dist/component/{dext-phone-rac-CIKnuUWR.js → dext-phone-rac-lf64Ywlp.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-BVcTXiaB.js → dext-radio-group-rac-CGt1_jue.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-CZVnCJ70.js → dext-rating-input-rac-CbaW1lxS.js} +1 -1
  42. package/dist/component/{dext-tags-rac-CnlzoLOp.js → dext-tags-rac-DnHDnzD_.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-Bx5soEnf.js → dext-text-area-rac-C8DVKWKo.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-jm659H89.js → dext-text-input-rac-DVl-1SDY.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-DvdPiREA.js → dext-url-input-rac-CkpAMLF9.js} +1 -1
  46. package/dist/component/{dismiss-icon-CBZq_OBa.js → dismiss-icon-CwZIlL7w.js} +6 -6
  47. package/dist/component/{donation-rac-CE4WS0Lx.js → donation-rac-DCNG5ByO.js} +44 -44
  48. package/dist/component/{dropdown-field-rac-Bhp-OH4C.js → dropdown-field-rac-CVbM-0KX.js} +3 -3
  49. package/dist/component/{dropdown-rac-s7sa3er0.js → dropdown-rac-CE9IjTvE.js} +1 -1
  50. package/dist/component/{ecom-address-rac-CSrBFi_H.js → ecom-address-rac-BD_okFDt.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-BAbbwlHW.js → ecom-subscription-checkbox-rac-C7zdxqra.js} +2 -2
  52. package/dist/component/{email-input-field-rac-3G3Ozglm.js → email-input-field-rac-CY4wE0eP.js} +35 -35
  53. package/dist/component/{events-repeater-rac-BUy91Kxs.js → events-repeater-rac-Bh-TBEQG.js} +26 -26
  54. package/dist/component/{events-rsvp-rac-Gisnded3.js → events-rsvp-rac-BPhzKqUb.js} +3 -3
  55. package/dist/component/{field-error-headless-piKY_H3-.js → field-error-headless-D3lVhOaC.js} +1 -1
  56. package/dist/component/{field-label-headless-BueDpCx1.js → field-label-headless-CrZoTwxs.js} +5 -5
  57. package/dist/component/{file-upload-rac-CSsl-aS9.js → file-upload-rac-DYP83swC.js} +187 -186
  58. package/dist/component/{fixed-payment-rac-ChzdCJU5.js → fixed-payment-rac-DY7hXK7g.js} +11 -11
  59. package/dist/component/{form-DcxKWiG2.js → form-DpFQ9uO1.js} +3059 -2934
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-Cs75yckQ.js → header-field-rac-9wOBV_rW.js} +2 -2
  63. package/dist/component/{header-rac-CtYKxrpl.js → header-rac-gzKNBkq_.js} +1 -1
  64. package/dist/component/{image-choice-rac-Dmgx9mHc.js → image-choice-rac-B6dvv6Jc.js} +25 -25
  65. package/dist/component/{index-B6EvjVlP.js → index-CbCZUvYt.js} +2 -2
  66. package/dist/component/{index-BflhPqlx.js → index-DCl2274b.js} +4 -4
  67. package/dist/component/{isObjectLike-CgoQvRJK.js → isObjectLike-DDBjMXgH.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-Dp0Zf4Kf.js → multiline-address-field-rac-CPkSpMMb.js} +210 -210
  69. package/dist/component/{multiline-address-rac-C_mO6tFy.js → multiline-address-rac-DCnk-LvE.js} +1 -1
  70. package/dist/component/{number-input-field-rac-BqtaqBSU.js → number-input-field-rac-Dt0hM2jA.js} +19 -19
  71. package/dist/component/{number-input-rac-Cuwz2ZQV.js → number-input-rac-pjmjC2-7.js} +1 -1
  72. package/dist/component/{password-rac-_1CzsKwh.js → password-rac-D9Gmp1yw.js} +32 -32
  73. package/dist/component/{payment-input-rac-Im0lWoko.js → payment-input-rac-CI78trIl.js} +33 -33
  74. package/dist/component/{phone-input-field-rac-DWgYXcrE.js → phone-input-field-rac-BCPj6vEP.js} +39 -39
  75. package/dist/component/{phone-rac-B5Qf61W1.js → phone-rac-FAGNDAR-.js} +1 -1
  76. package/dist/component/{product-list-rac-C5EK2laJ.js → product-list-rac-D7n9P2wQ.js} +14 -14
  77. package/dist/component/{quiz-radio-group-rac-CP9zzyH6.js → quiz-radio-group-rac-BO55azn2.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-CkGrAGkr.js → radio-button-module-classes-BIraDyOu.js} +35 -35
  79. package/dist/component/{radio-group-field-rac-C_42Fcne.js → radio-group-field-rac-BvUZ-DmS.js} +4 -4
  80. package/dist/component/{radio-group-rac-CXdbk24Q.js → radio-group-rac-qc0JijX9.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-DCkEh6Aj.js → rating-input-field-rac-D3u_T_la.js} +18 -18
  82. package/dist/component/{rating-input-rac-B9A843l0.js → rating-input-rac-CqlPfSQQ.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-CNC4XD5d.js → rich-content-rac.module-B4TapWZL.js} +9 -9
  84. package/dist/component/{rich-text-field-rac-5rrd72dQ.js → rich-text-field-rac-LgoEQuKS.js} +4 -4
  85. package/dist/component/{rich-text-rac-YrwQXZNA.js → rich-text-rac-1IcHKfEb.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-CQCQPJXB.js → service-dropdown-rac-CMkRaLmg.js} +22 -22
  87. package/dist/component/{services-multi-choice-rac-CUzXOutN.js → services-multi-choice-rac-DzwHkD-j.js} +7 -7
  88. package/dist/component/{signature-rac-CCaJeBKX.js → signature-rac-D3X5-ScB.js} +71 -71
  89. package/dist/component/{submit-button-rac-DGWGdzRU.js → submit-button-rac-BWL76gny.js} +15 -15
  90. package/dist/component/{tags-field-rac-B_YaA_EP.js → tags-field-rac-BwGeFDfH.js} +24 -24
  91. package/dist/component/{tags-rac-CF-h7_KF.js → tags-rac-DU7-Kl1T.js} +1 -1
  92. package/dist/component/{text-area-field-rac-BQ5WJhWG.js → text-area-field-rac-BO_9zG3x.js} +19 -19
  93. package/dist/component/{text-area-rac-BFWz2X0C.js → text-area-rac-CG7vi5-F.js} +1 -1
  94. package/dist/component/{text-input-field-rac-Bxv2pGmX.js → text-input-field-rac-FWkVzsiY.js} +3 -3
  95. package/dist/component/{text-input-headless-B4aiikZS.js → text-input-headless-COFlfx6N.js} +9 -9
  96. package/dist/component/{text-input-rac-DeQ9w2CC.js → text-input-rac-D_7yUDzw.js} +1 -1
  97. package/dist/component/{time-input-rac-tu0cnsa5.js → time-input-rac-0Ggsm6qE.js} +24 -24
  98. package/dist/component/{url-input-field-rac-Cc6cm4so.js → url-input-field-rac-CH7kG_Qf.js} +25 -25
  99. package/dist/component/{url-input-rac-DeKtkN8j.js → url-input-rac-CjBn6ZWh.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-CkOKrSdx.js → use-dropdown-option-class-name-Cy_iJyiA.js} +2 -2
  101. package/dist/component/{use-dropdown-trigger-class-name-BPkfvqu4.js → use-dropdown-trigger-class-name-Ddu4_w_z.js} +26 -26
  102. package/dist/component/{use-element-state-class-name-Cvpi3dBc.js → use-element-state-class-name-DNjpnp27.js} +2 -2
  103. package/dist/component/{use-hoverable-input-class-name-rCSXDYsL.js → use-hoverable-input-class-name-Wy3Ujp2_.js} +2 -2
  104. package/dist/component/{use-is-forced-open-dropdown-CX5XR5lo.js → use-is-forced-open-dropdown-Vu0JjNY7.js} +4 -4
  105. package/dist/component/{use-native-mobile-input-CVBv_Asv.js → use-native-mobile-input-l8hf9N2p.js} +3 -3
  106. package/dist/component/{use-service-options-base-BnjbDbkj.js → use-service-options-base-Di4c__b_.js} +3 -3
  107. package/dist/component/use-text-input-class-name-BBZXre-_.js +6 -0
  108. package/package.json +2 -2
  109. package/dist/component/use-text-input-class-name-wxGkp-sq.js +0 -6
@@ -1,25 +1,25 @@
1
1
  import { RicosViewer as ee } from "@wix/ricos/viewer";
2
2
  import L from "classnames";
3
3
  import n, { useMemo as x, createContext as je, useContext as ye, useState as fe, useRef as B, useCallback as A, useEffect as we } from "react";
4
- import { bI as Je, d as Xe, bD as Wt, bF as gt, bf as Yt, bg as Ht, b8 as jt, be as X, F as z, bY as Me, bv as Et, bN as _, bK as P, bP as G, bW as Ce, bJ as Dt, bk as Jt, C as Se, bt as Xt, bx as Qt, bU as zt, bO as Gt, bT as Zt, bB as en, bA as tn, bp as nn, bz as rn, bQ as on, aP as sn, Y as an, _ as te, am as ne, $ as Oe, M as re, I as oe, Z as bt, a0 as ln, a1 as cn } from "./form-DcxKWiG2.js";
5
- import { mergeProps as ht, UNSAFE_PortalProvider as dn } from "react-aria";
6
- import { f as b, a as h } from "./find-child-C60k4CxG.js";
4
+ import { bJ as Je, d as Xe, bE as Wt, bG as gt, bg as Yt, bh as Ht, b9 as jt, bf as X, F as G, bZ as Me, bw as Et, bO as R, bL as P, bQ as Z, bX as Ce, bK as ht, bl as Jt, C as Se, bu as Xt, by as Qt, bV as Gt, bP as Zt, bU as zt, bC as en, bB as tn, bq as nn, bA as rn, bR as on, aP as sn, Y as an, _ as te, am as ne, $ as Oe, M as re, I as oe, Z as bt, a0 as ln, a1 as cn } from "./form-DpFQ9uO1.js";
5
+ import { mergeProps as Dt, UNSAFE_PortalProvider as dn } from "react-aria";
6
+ import { f as b, a as D } from "./find-child-C60k4CxG.js";
7
7
  import { F as un, V as mn } from "./headless-styles-CmcyA_pi.js";
8
- import { c as pn } from "./use-is-forced-open-dropdown-CX5XR5lo.js";
9
- import { TextField as Ie, Input as de, ComboBoxStateContext as Be, ComboBox as he, Popover as Fe, ListBox as qe, ListBoxItem as Ae, Group as Ft, Button as At } from "react-aria-components";
10
- import { D as ue, E as me } from "./field-error-headless-piKY_H3-.js";
11
- import { L as pe } from "./field-label-headless-BueDpCx1.js";
12
- import { e as En, c as bn, a as fn, r as _t } from "./isObjectLike-CgoQvRJK.js";
13
- import { u as Rt, N as Pt } from "./use-native-mobile-input-CVBv_Asv.js";
8
+ import { c as pn } from "./use-is-forced-open-dropdown-Vu0JjNY7.js";
9
+ import { TextField as Ie, Input as de, ComboBoxStateContext as Be, ComboBox as De, Popover as Fe, ListBox as qe, ListBoxItem as Ae, Group as Ft, Button as At } from "react-aria-components";
10
+ import { D as ue, E as me } from "./field-error-headless-D3lVhOaC.js";
11
+ import { L as pe } from "./field-label-headless-CrZoTwxs.js";
12
+ import { e as En, c as bn, a as fn, r as Rt } from "./isObjectLike-DDBjMXgH.js";
13
+ import { u as _t, N as Pt } from "./use-native-mobile-input-l8hf9N2p.js";
14
14
  import { N as Tt } from "./native-select-BbxBpe3S.js";
15
15
  import { u as wt } from "./use-native-state-class-name-B0m2ghbS.js";
16
- import { V as yn, a as Cn } from "./use-dropdown-option-class-name-CkOKrSdx.js";
16
+ import { V as yn, a as Cn } from "./use-dropdown-option-class-name-Cy_iJyiA.js";
17
17
  import { u as In } from "./use-invoke-callback-UH73A_J3.js";
18
18
  import { C as Pe } from "./chevron-down-icon-CcpVm6B-.js";
19
19
  import { E as se } from "./error-icon-hZxQ6DEy.js";
20
20
  import { H as xe } from "./custom-focus-class-_483Pkwp.js";
21
21
  import { s as I } from "./field-rac.module-D0QzJXUv.js";
22
- import { u as ke } from "./use-hoverable-input-class-name-rCSXDYsL.js";
22
+ import { u as ke } from "./use-hoverable-input-class-name-Wy3Ujp2_.js";
23
23
  const Nn = (e, t, r) => {
24
24
  var s, a, i, l;
25
25
  const o = (s = e.steps) == null ? void 0 : s.map((u) => {
@@ -116,13 +116,13 @@ function Sn(e, t, r) {
116
116
  const gn = (e, t) => e.map((r) => ({
117
117
  ...r,
118
118
  id: ("target" in r ? t[r.target] : void 0) ?? r.id
119
- })), qt = 12, Dn = (e) => {
119
+ })), qt = 12, hn = (e) => {
120
120
  const t = e.filter((o) => !o.properties.hidden), r = e.filter((o) => o.properties.hidden);
121
121
  return {
122
122
  visibleFields: t,
123
123
  hiddenFields: r
124
124
  };
125
- }, hn = (e) => {
125
+ }, Dn = (e) => {
126
126
  const t = {};
127
127
  return e.forEach((r) => {
128
128
  const o = r.layout.row;
@@ -148,7 +148,7 @@ const gn = (e, t) => e.map((r) => ({
148
148
  };
149
149
  }
150
150
  return r;
151
- }), _n = (e, t, r) => {
151
+ }), Rn = (e, t, r) => {
152
152
  const o = Math.max(...t.map((s) => s.layout.row), -1);
153
153
  return e.map((s) => {
154
154
  if (s.properties.hidden) {
@@ -163,8 +163,8 @@ const gn = (e, t) => e.map((r) => ({
163
163
  }
164
164
  return s;
165
165
  });
166
- }, Rn = (e) => {
167
- const { visibleFields: t, hiddenFields: r } = Dn(e.fields), o = hn(t), s = Fn(o), a = An(e.fields, s), i = _n(a, t, r);
166
+ }, _n = (e) => {
167
+ const { visibleFields: t, hiddenFields: r } = hn(e.fields), o = Dn(t), s = Fn(o), a = An(e.fields, s), i = Rn(a, t, r);
168
168
  return {
169
169
  ...e,
170
170
  fields: i
@@ -180,7 +180,7 @@ const gn = (e, t) => e.map((r) => ({
180
180
  street_number: X(),
181
181
  apartment: X()
182
182
  }), Tn = ({ id: e, target: t, fieldType: r, form: o, country: s, fieldSettings: a, validation: i, required: l }) => {
183
- const [u] = fe(Pn), { isExperimentEnabled: d } = Je(), m = d(Xe.USE_FIELDS_V2), { getCountryAddressForm: C } = Wt(), { isMobile: y, breakpoint: p } = gt(), E = C(s), f = r === z.MULTILINE_ADDRESS || r === z.BOOKINGS_ADDRESS, N = x(() => {
183
+ const [u] = fe(Pn), { isExperimentEnabled: d } = Je(), m = d(Xe.USE_FIELDS_V2), { getCountryAddressForm: C } = Wt(), { isMobile: y, breakpoint: p } = gt(), E = C(s), f = r === G.MULTILINE_ADDRESS || r === G.BOOKINGS_ADDRESS, N = x(() => {
184
184
  var O;
185
185
  return Yt(l, (O = i == null ? void 0 : i.predefined) == null ? void 0 : O.multilineAddressOptions);
186
186
  }, [
@@ -206,7 +206,7 @@ const gn = (e, t) => e.map((r) => ({
206
206
  });
207
207
  if (!O.fields.some((F) => F.properties.hidden))
208
208
  return O;
209
- const w = Rn(O);
209
+ const w = _n(O);
210
210
  return {
211
211
  ...w,
212
212
  fields: w.fields.filter((F) => !F.properties.hidden)
@@ -249,10 +249,10 @@ function be(e) {
249
249
  return a ? t(a) : "";
250
250
  }
251
251
  const ae = ({ children: e }) => {
252
- const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m } = _(), { labelId: C } = P(), y = be("addressLine2"), p = b(e, ae.Label), E = b(e, ae.Input), f = b(e, ae.Description), N = b(e, ae.Error);
252
+ const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m } = R(), { labelId: C } = P(), y = be("addressLine2"), p = b(e, ae.Label), E = b(e, ae.Input), f = b(e, ae.Description), N = b(e, ae.Error);
253
253
  return /* @__PURE__ */ n.createElement(m, {
254
254
  fieldId: t,
255
- renderLabel: () => h(p, {
255
+ renderLabel: () => D(p, {
256
256
  label: y
257
257
  }),
258
258
  renderInput: () => /* @__PURE__ */ n.createElement(Ie, {
@@ -269,8 +269,8 @@ const ae = ({ children: e }) => {
269
269
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, N, f)
270
270
  });
271
271
  }, Mn = ({ className: e }) => {
272
- const { id: t, placeholder: r } = _(), { inputId: o, ariaDescribedBy: s } = P(), a = B(null);
273
- return G(() => {
272
+ const { id: t, placeholder: r } = R(), { inputId: o, ariaDescribedBy: s } = P(), a = B(null);
273
+ return Z(() => {
274
274
  var i;
275
275
  (i = a.current) == null || i.focus({
276
276
  preventScroll: !0
@@ -299,7 +299,7 @@ const Bn = "route", qn = (e) => {
299
299
  }, yt = (e) => e.split("-")[0], kn = (e, t) => !e.postalCode || !t.postalCode || yt(e.postalCode) === yt(t.postalCode), Un = (e, t) => {
300
300
  var r, o, s, a, i;
301
301
  return !!((r = e.streetAddress) != null && r.name) && ((s = (o = e.streetAddress) == null ? void 0 : o.name) == null ? void 0 : s.toLowerCase()) === ((i = (a = t.streetAddress) == null ? void 0 : a.name) == null ? void 0 : i.toLowerCase());
302
- }, Kn = (e, t) => t.country === e.country && t.subdivision === e.subdivision && kn(e, t) && Un(e, t), $n = async (e, t, r) => {
302
+ }, Kn = (e, t) => t.country === e.country && t.subdivision === e.subdivision && kn(e, t) && Un(e, t), Vn = async (e, t, r) => {
303
303
  var o, s;
304
304
  try {
305
305
  const a = await r({
@@ -313,7 +313,7 @@ const Bn = "route", qn = (e) => {
313
313
  } catch {
314
314
  return;
315
315
  }
316
- }, Vn = (e, t, r) => {
316
+ }, $n = (e, t, r) => {
317
317
  const o = {
318
318
  ...e.streetAddress,
319
319
  number: t
@@ -338,10 +338,10 @@ const Bn = "route", qn = (e) => {
338
338
  });
339
339
  if (!s || (i = s.streetAddress) != null && i.number || !(t != null && t.description) || !qn(t) || !o)
340
340
  return s;
341
- const a = await $n(t.description, s, o);
342
- return a ? Vn(s, a, (l = t.textStructure) == null ? void 0 : l.mainText) : s;
341
+ const a = await Vn(t.description, s, o);
342
+ return a ? $n(s, a, (l = t.textStructure) == null ? void 0 : l.mainText) : s;
343
343
  }, Qe = ({ enabled: e }) => {
344
- const { actions: t } = Dt(), { isExperimentEnabled: r } = Je(), o = r(Xe.ADDRESS_HOUSE_NUMBER_FALLBACK), [s, a] = fe(X()), i = A(() => a(X()), []), l = B(0);
344
+ const { actions: t } = ht(), { isExperimentEnabled: r } = Je(), o = r(Xe.ADDRESS_HOUSE_NUMBER_FALLBACK), [s, a] = fe(X()), i = A(() => a(X()), []), l = B(0);
345
345
  return x(() => {
346
346
  const { predict: u, getPlace: d, searchByPostalCode: m, searchByQuery: C } = t ?? {};
347
347
  if (!e || !u || !d || !m)
@@ -387,9 +387,9 @@ function Yn() {
387
387
  };
388
388
  return Ke = t, Ke;
389
389
  }
390
- var $e, It;
390
+ var Ve, It;
391
391
  function Hn() {
392
- if (It) return $e;
392
+ if (It) return Ve;
393
393
  It = 1;
394
394
  var e = /\s/;
395
395
  function t(r) {
@@ -397,17 +397,17 @@ function Hn() {
397
397
  ;
398
398
  return o;
399
399
  }
400
- return $e = t, $e;
400
+ return Ve = t, Ve;
401
401
  }
402
- var Ve, Nt;
402
+ var $e, Nt;
403
403
  function jn() {
404
- if (Nt) return Ve;
404
+ if (Nt) return $e;
405
405
  Nt = 1;
406
406
  var e = Hn(), t = /^\s+/;
407
407
  function r(o) {
408
408
  return o && o.slice(0, e(o) + 1).replace(t, "");
409
409
  }
410
- return Ve = r, Ve;
410
+ return $e = r, $e;
411
411
  }
412
412
  var We, Lt;
413
413
  function Jn() {
@@ -423,7 +423,7 @@ var Ye, vt;
423
423
  function Xn() {
424
424
  if (vt) return Ye;
425
425
  vt = 1;
426
- var e = jn(), t = _t(), r = Jn(), o = NaN, s = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, i = /^0o[0-7]+$/i, l = parseInt;
426
+ var e = jn(), t = Rt(), r = Jn(), o = NaN, s = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, i = /^0o[0-7]+$/i, l = parseInt;
427
427
  function u(d) {
428
428
  if (typeof d == "number")
429
429
  return d;
@@ -445,59 +445,59 @@ var He, Ot;
445
445
  function Qn() {
446
446
  if (Ot) return He;
447
447
  Ot = 1;
448
- var e = _t(), t = Yn(), r = Xn(), o = "Expected a function", s = Math.max, a = Math.min;
448
+ var e = Rt(), t = Yn(), r = Xn(), o = "Expected a function", s = Math.max, a = Math.min;
449
449
  function i(l, u, d) {
450
- var m, C, y, p, E, f, N = 0, v = !1, D = !1, O = !0;
450
+ var m, C, y, p, E, f, N = 0, v = !1, h = !1, O = !0;
451
451
  if (typeof l != "function")
452
452
  throw new TypeError(o);
453
- u = r(u) || 0, e(d) && (v = !!d.leading, D = "maxWait" in d, y = D ? s(r(d.maxWait) || 0, u) : y, O = "trailing" in d ? !!d.trailing : O);
454
- function g(R) {
453
+ u = r(u) || 0, e(d) && (v = !!d.leading, h = "maxWait" in d, y = h ? s(r(d.maxWait) || 0, u) : y, O = "trailing" in d ? !!d.trailing : O);
454
+ function g(_) {
455
455
  var k = m, M = C;
456
- return m = C = void 0, N = R, p = l.apply(M, k), p;
456
+ return m = C = void 0, N = _, p = l.apply(M, k), p;
457
457
  }
458
- function w(R) {
459
- return N = R, E = setTimeout(F, u), v ? g(R) : p;
458
+ function w(_) {
459
+ return N = _, E = setTimeout(F, u), v ? g(_) : p;
460
460
  }
461
- function T(R) {
462
- var k = R - f, M = R - N, $ = u - k;
463
- return D ? a($, y - M) : $;
461
+ function T(_) {
462
+ var k = _ - f, M = _ - N, V = u - k;
463
+ return h ? a(V, y - M) : V;
464
464
  }
465
- function S(R) {
466
- var k = R - f, M = R - N;
467
- return f === void 0 || k >= u || k < 0 || D && M >= y;
465
+ function S(_) {
466
+ var k = _ - f, M = _ - N;
467
+ return f === void 0 || k >= u || k < 0 || h && M >= y;
468
468
  }
469
469
  function F() {
470
- var R = t();
471
- if (S(R))
472
- return q(R);
473
- E = setTimeout(F, T(R));
470
+ var _ = t();
471
+ if (S(_))
472
+ return q(_);
473
+ E = setTimeout(F, T(_));
474
474
  }
475
- function q(R) {
476
- return E = void 0, O && m ? g(R) : (m = C = void 0, p);
475
+ function q(_) {
476
+ return E = void 0, O && m ? g(_) : (m = C = void 0, p);
477
477
  }
478
478
  function Q() {
479
479
  E !== void 0 && clearTimeout(E), N = 0, m = f = C = E = void 0;
480
480
  }
481
- function Z() {
481
+ function z() {
482
482
  return E === void 0 ? p : q(t());
483
483
  }
484
484
  function U() {
485
- var R = t(), k = S(R);
486
- if (m = arguments, C = this, f = R, k) {
485
+ var _ = t(), k = S(_);
486
+ if (m = arguments, C = this, f = _, k) {
487
487
  if (E === void 0)
488
488
  return w(f);
489
- if (D)
489
+ if (h)
490
490
  return clearTimeout(E), E = setTimeout(F, u), g(f);
491
491
  }
492
492
  return E === void 0 && (E = setTimeout(F, u)), p;
493
493
  }
494
- return U.cancel = Q, U.flush = Z, U;
494
+ return U.cancel = Q, U.flush = z, U;
495
495
  }
496
496
  return He = i, He;
497
497
  }
498
- var zn = Qn();
499
- const Gn = /* @__PURE__ */ Jt(zn), Zn = (e, t, r = 200) => {
500
- const o = B(e), s = A(Gn((...a) => {
498
+ var Gn = Qn();
499
+ const Zn = /* @__PURE__ */ Jt(Gn), zn = (e, t, r = 200) => {
500
+ const o = B(e), s = A(Zn((...a) => {
501
501
  o.current(...a);
502
502
  }, r), [
503
503
  r
@@ -519,7 +519,7 @@ const Gn = /* @__PURE__ */ Jt(zn), Zn = (e, t, r = 200) => {
519
519
  }, Ut = ({ atlas: e, onError: t }) => {
520
520
  const [{ loading: o, predictions: s }, a] = fe(St), i = B(0), l = er(), u = A(() => {
521
521
  i.current++, a(St);
522
- }, []), d = Zn(async ({ input: m, countryCodes: C }) => {
522
+ }, []), d = zn(async ({ input: m, countryCodes: C }) => {
523
523
  if (!e || !l())
524
524
  return;
525
525
  if (!m) {
@@ -557,7 +557,7 @@ const Gn = /* @__PURE__ */ Jt(zn), Zn = (e, t, r = 200) => {
557
557
  updatePredictions: d,
558
558
  clearPredictions: u
559
559
  };
560
- }, ze = ({ optionCount: e }) => {
560
+ }, Ge = ({ optionCount: e }) => {
561
561
  const t = ye(Be), r = B(t);
562
562
  r.current = t;
563
563
  const o = B(e);
@@ -569,16 +569,16 @@ const Gn = /* @__PURE__ */ Jt(zn), Zn = (e, t, r = 200) => {
569
569
  }, [
570
570
  e
571
571
  ]), null;
572
- }, _e = () => {
572
+ }, Re = () => {
573
573
  const e = ye(Be);
574
574
  return (t) => {
575
575
  t.key === "ArrowDown" && (e != null && e.isOpen) && t.stopPropagation();
576
576
  };
577
577
  }, H = ({ children: e }) => {
578
- const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m, autocomplete: C } = _(), { labelId: y } = P(), { autocompleteEnabled: p } = Le(), E = C || p, f = be("addressLine1"), N = b(e, H.Label), v = b(e, H.Input), D = b(e, H.Options), O = b(e, H.Description), g = b(e, H.Error);
578
+ const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m, autocomplete: C } = R(), { labelId: y } = P(), { autocompleteEnabled: p } = Le(), E = C || p, f = be("addressLine1"), N = b(e, H.Label), v = b(e, H.Input), h = b(e, H.Options), O = b(e, H.Description), g = b(e, H.Error);
579
579
  return E ? /* @__PURE__ */ n.createElement(m, {
580
580
  fieldId: t,
581
- renderLabel: () => h(N, {
581
+ renderLabel: () => D(N, {
582
582
  label: f
583
583
  }),
584
584
  renderInput: () => /* @__PURE__ */ n.createElement(tr, {
@@ -590,11 +590,11 @@ const Gn = /* @__PURE__ */ Jt(zn), Zn = (e, t, r = 200) => {
590
590
  hasError: l,
591
591
  onBlur: u,
592
592
  onFocus: d
593
- }, v, D),
593
+ }, v, h),
594
594
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, g, O)
595
595
  }) : /* @__PURE__ */ n.createElement(m, {
596
596
  fieldId: t,
597
- renderLabel: () => h(N, {
597
+ renderLabel: () => D(N, {
598
598
  label: f
599
599
  }),
600
600
  renderInput: () => /* @__PURE__ */ n.createElement(Ie, {
@@ -631,7 +631,7 @@ const Gn = /* @__PURE__ */ Jt(zn), Zn = (e, t, r = 200) => {
631
631
  r,
632
632
  E,
633
633
  C
634
- ]), D = A(async (S) => {
634
+ ]), h = A(async (S) => {
635
635
  if (!S)
636
636
  return;
637
637
  f();
@@ -655,12 +655,12 @@ const Gn = /* @__PURE__ */ Jt(zn), Zn = (e, t, r = 200) => {
655
655
  }, [
656
656
  u
657
657
  ]), w = b(e, H.Input), T = b(e, H.Options);
658
- return /* @__PURE__ */ n.createElement(he, {
658
+ return /* @__PURE__ */ n.createElement(De, {
659
659
  "aria-labelledby": d,
660
660
  inputValue: t ?? "",
661
661
  onInputChange: v,
662
662
  value: null,
663
- onChange: D,
663
+ onChange: h,
664
664
  isDisabled: o,
665
665
  isReadOnly: s,
666
666
  isRequired: a,
@@ -670,16 +670,16 @@ const Gn = /* @__PURE__ */ Jt(zn), Zn = (e, t, r = 200) => {
670
670
  allowsCustomValue: !0,
671
671
  menuTrigger: "input",
672
672
  items: N
673
- }, h(w, {
673
+ }, D(w, {
674
674
  onFocus: g
675
- }), h(T, {
675
+ }), D(T, {
676
676
  options: N
677
- }), /* @__PURE__ */ n.createElement(ze, {
677
+ }), /* @__PURE__ */ n.createElement(Ge, {
678
678
  optionCount: N.length
679
679
  }));
680
680
  }, nr = ({ className: e, ...t }) => {
681
- const { id: r, placeholder: o } = _(), { inputId: s, ariaDescribedBy: a } = P(), { onFocus: i } = t, l = B(null), u = _e();
682
- return G(() => {
681
+ const { id: r, placeholder: o } = R(), { inputId: s, ariaDescribedBy: a } = P(), { onFocus: i } = t, l = B(null), u = Re();
682
+ return Z(() => {
683
683
  var d;
684
684
  (d = l.current) == null || d.focus({
685
685
  preventScroll: !0
@@ -694,15 +694,15 @@ const Gn = /* @__PURE__ */ Jt(zn), Zn = (e, t, r = 200) => {
694
694
  placeholder: o,
695
695
  onFocus: i
696
696
  });
697
- }, Ge = ({ children: e, className: t }) => {
698
- const r = b(e, Ge.Option);
697
+ }, Ze = ({ children: e, className: t }) => {
698
+ const r = b(e, Ze.Option);
699
699
  return /* @__PURE__ */ n.createElement(Fe, {
700
700
  className: t,
701
701
  containerPadding: 0,
702
702
  offset: 0
703
703
  }, /* @__PURE__ */ n.createElement(qe, {
704
704
  renderEmptyState: () => null
705
- }, (o) => h(r, {
705
+ }, (o) => D(r, {
706
706
  id: o.id,
707
707
  label: o.label
708
708
  })));
@@ -714,17 +714,17 @@ const Gn = /* @__PURE__ */ Jt(zn), Zn = (e, t, r = 200) => {
714
714
  textValue: o
715
715
  }, o);
716
716
  };
717
- Ge.Option = rr;
717
+ Ze.Option = rr;
718
718
  H.Label = pe;
719
719
  H.Input = nr;
720
- H.Options = Ge;
720
+ H.Options = Ze;
721
721
  H.Description = ue;
722
722
  H.Error = me;
723
723
  const le = ({ children: e }) => {
724
- const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m } = _(), { labelId: C } = P(), { t: y } = Me(), p = y("field.mla-apartment.label"), E = b(e, le.Label), f = b(e, le.Input), N = b(e, le.Description), v = b(e, le.Error);
724
+ const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m } = R(), { labelId: C } = P(), { t: y } = Me(), p = y("field.mla-apartment.label"), E = b(e, le.Label), f = b(e, le.Input), N = b(e, le.Description), v = b(e, le.Error);
725
725
  return /* @__PURE__ */ n.createElement(m, {
726
726
  fieldId: t,
727
- renderLabel: () => h(E, {
727
+ renderLabel: () => D(E, {
728
728
  label: p
729
729
  }),
730
730
  renderInput: () => /* @__PURE__ */ n.createElement(Ie, {
@@ -741,8 +741,8 @@ const le = ({ children: e }) => {
741
741
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, v, N)
742
742
  });
743
743
  }, or = ({ className: e }) => {
744
- const { id: t, placeholder: r } = _(), { inputId: o, ariaDescribedBy: s } = P(), a = B(null);
745
- return G(() => {
744
+ const { id: t, placeholder: r } = R(), { inputId: o, ariaDescribedBy: s } = P(), a = B(null);
745
+ return Z(() => {
746
746
  var i;
747
747
  (i = a.current) == null || i.focus({
748
748
  preventScroll: !0
@@ -761,10 +761,10 @@ le.Input = or;
761
761
  le.Description = ue;
762
762
  le.Error = me;
763
763
  const ie = ({ children: e }) => {
764
- const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m } = _(), { labelId: C } = P(), y = be("city"), p = b(e, ie.Label), E = b(e, ie.Input), f = b(e, ie.Description), N = b(e, ie.Error);
764
+ const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m } = R(), { labelId: C } = P(), y = be("city"), p = b(e, ie.Label), E = b(e, ie.Input), f = b(e, ie.Description), N = b(e, ie.Error);
765
765
  return /* @__PURE__ */ n.createElement(m, {
766
766
  fieldId: t,
767
- renderLabel: () => h(p, {
767
+ renderLabel: () => D(p, {
768
768
  label: y
769
769
  }),
770
770
  renderInput: () => /* @__PURE__ */ n.createElement(Ie, {
@@ -781,8 +781,8 @@ const ie = ({ children: e }) => {
781
781
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, N, f)
782
782
  });
783
783
  }, sr = ({ className: e }) => {
784
- const { id: t, placeholder: r } = _(), { inputId: o, ariaDescribedBy: s } = P(), a = B(null);
785
- return G(() => {
784
+ const { id: t, placeholder: r } = R(), { inputId: o, ariaDescribedBy: s } = P(), a = B(null);
785
+ return Z(() => {
786
786
  var i;
787
787
  (i = a.current) == null || i.focus({
788
788
  preventScroll: !0
@@ -817,7 +817,7 @@ const ar = ({ isOpen: e }) => {
817
817
  e,
818
818
  t
819
819
  ]);
820
- }, lr = (e, t) => e.find((r) => r.label.toLocaleLowerCase() === t.toLocaleLowerCase().trim()), $t = ({ options: e, value: t, commit: r, clear: o, onBlur: s }) => {
820
+ }, lr = (e, t) => e.find((r) => r.label.toLocaleLowerCase() === t.toLocaleLowerCase().trim()), Vt = ({ options: e, value: t, commit: r, clear: o, onBlur: s }) => {
821
821
  const [a, i] = fe(null), l = In(s), u = x(() => {
822
822
  var p;
823
823
  return t ? ((p = e.find((E) => E.value === t)) == null ? void 0 : p.label) ?? "" : "";
@@ -861,26 +861,26 @@ const ar = ({ isOpen: e }) => {
861
861
  onInputKeyDown: C
862
862
  };
863
863
  }, W = ({ children: e, ...t }) => {
864
- const { isForcedOpen: r = !1 } = t, { id: o, value: s, onChange: a, disabled: i, readOnly: l, required: u, hasError: d, onBlur: m, onFocus: C, FieldLayout: y, options: p } = _(), { labelId: E } = P(), { t: f } = Me(), { language: N } = gt(), v = x(() => (p || []).reduce((M, $) => ($.value && Se.hasOwnProperty($.value) && M.push({
865
- value: $.value,
866
- label: f(`locale-dataset.countries.${Se[$.value].toUpperCase()}`)
867
- }), M), []).sort((M, $) => M.label.localeCompare($.label, N)), [
864
+ const { isForcedOpen: r = !1 } = t, { id: o, value: s, onChange: a, disabled: i, readOnly: l, required: u, hasError: d, onBlur: m, onFocus: C, FieldLayout: y, options: p } = R(), { labelId: E } = P(), { t: f } = Me(), { language: N } = gt(), v = x(() => (p || []).reduce((M, V) => (V.value && Se.hasOwnProperty(V.value) && M.push({
865
+ value: V.value,
866
+ label: f(`locale-dataset.countries.${Se[V.value].toUpperCase()}`)
867
+ }), M), []).sort((M, V) => M.label.localeCompare(V.label, N)), [
868
868
  p,
869
869
  f,
870
870
  N
871
- ]), D = A((M) => a(M), [
871
+ ]), h = A((M) => a(M), [
872
872
  a
873
- ]), O = A(() => D(""), [
874
- D
875
- ]), { onInputKeyDown: g, ...w } = $t({
873
+ ]), O = A(() => h(""), [
874
+ h
875
+ ]), { onInputKeyDown: g, ...w } = Vt({
876
876
  options: v,
877
877
  value: s,
878
- commit: D,
878
+ commit: h,
879
879
  clear: O,
880
880
  onBlur: m
881
- }), T = be("country"), S = b(e, W.Label), F = b(e, W.Control), q = b(e, W.Options), Q = b(e, W.Description), Z = b(e, W.Error), U = b(e, W.NativeSelect), k = Rt() ? h(U, {
881
+ }), T = be("country"), S = b(e, W.Label), F = b(e, W.Control), q = b(e, W.Options), Q = b(e, W.Description), z = b(e, W.Error), U = b(e, W.NativeSelect), k = _t() ? D(U, {
882
882
  options: v
883
- }) : /* @__PURE__ */ n.createElement(he, {
883
+ }) : /* @__PURE__ */ n.createElement(De, {
884
884
  "aria-labelledby": E,
885
885
  ...w,
886
886
  isDisabled: i,
@@ -889,9 +889,9 @@ const ar = ({ isOpen: e }) => {
889
889
  isInvalid: d,
890
890
  onFocus: C,
891
891
  menuTrigger: "input"
892
- }, h(F, {
892
+ }, D(F, {
893
893
  onKeyDown: g
894
- }), h(q, {
894
+ }), D(q, {
895
895
  options: v,
896
896
  isForcedOpen: r
897
897
  }), /* @__PURE__ */ n.createElement(ar, {
@@ -899,27 +899,27 @@ const ar = ({ isOpen: e }) => {
899
899
  }));
900
900
  return /* @__PURE__ */ n.createElement(y, {
901
901
  fieldId: o,
902
- renderLabel: () => h(S, {
902
+ renderLabel: () => D(S, {
903
903
  label: T
904
904
  }),
905
905
  renderInput: () => k,
906
- renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, Z, Q)
906
+ renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, z, Q)
907
907
  });
908
908
  }, ge = ({ children: e, className: t, ...r }) => {
909
- const { disabled: o, hasError: s } = _(), { onKeyDown: a } = r, i = b(e, ge.Input), l = b(e, ge.Trigger);
909
+ const { disabled: o, hasError: s } = R(), { onKeyDown: a } = r, i = b(e, ge.Input), l = b(e, ge.Trigger);
910
910
  return /* @__PURE__ */ n.createElement(Ft, {
911
911
  className: t,
912
912
  isDisabled: o,
913
913
  isInvalid: s
914
- }, h(i, {
914
+ }, D(i, {
915
915
  onKeyDown: a
916
916
  }), l);
917
917
  }, ir = ({ className: e, ...t }) => {
918
- const { id: r, placeholder: o, readOnly: s, disabled: a } = _(), { inputId: i, ariaDescribedBy: l } = P(), { onKeyDown: u } = t, d = B(null), m = _e(), C = Kt({
918
+ const { id: r, placeholder: o, readOnly: s, disabled: a } = R(), { inputId: i, ariaDescribedBy: l } = P(), { onKeyDown: u } = t, d = B(null), m = Re(), C = Kt({
919
919
  readOnly: s,
920
920
  disabled: a
921
921
  });
922
- return G(() => {
922
+ return Z(() => {
923
923
  var y;
924
924
  (y = d.current) == null || y.focus({
925
925
  preventScroll: !0
@@ -940,15 +940,15 @@ const ar = ({ isOpen: e }) => {
940
940
  }, e);
941
941
  ge.Input = ir;
942
942
  ge.Trigger = cr;
943
- const Ze = ({ children: e, className: t, ...r }) => {
944
- const { options: o, isForcedOpen: s } = r, a = b(e, Ze.Option);
943
+ const ze = ({ children: e, className: t, ...r }) => {
944
+ const { options: o, isForcedOpen: s } = r, a = b(e, ze.Option);
945
945
  return /* @__PURE__ */ n.createElement(Fe, {
946
946
  className: t,
947
947
  containerPadding: 0,
948
948
  offset: 0
949
949
  }, /* @__PURE__ */ n.createElement(yn, {
950
950
  isForcedOpen: s
951
- }, o.map((i) => h(a, {
951
+ }, o.map((i) => D(a, {
952
952
  key: i.value,
953
953
  value: i.value,
954
954
  label: i.label
@@ -961,21 +961,21 @@ const Ze = ({ children: e, className: t, ...r }) => {
961
961
  textValue: o
962
962
  }, o);
963
963
  };
964
- Ze.Option = dr;
964
+ ze.Option = dr;
965
965
  const ur = ({ className: e, children: t, ...r }) => {
966
- const { options: o } = r, { id: s, value: a, onChange: i, disabled: l, readOnly: u, required: d, hasError: m, placeholder: C, onBlur: y, onFocus: p } = _(), { inputId: E, labelId: f, ariaDescribedBy: N } = P(), v = B(null);
967
- G(() => {
966
+ const { options: o } = r, { id: s, value: a, onChange: i, disabled: l, readOnly: u, required: d, hasError: m, placeholder: C, onBlur: y, onFocus: p } = R(), { inputId: E, labelId: f, ariaDescribedBy: N } = P(), v = B(null);
967
+ Z(() => {
968
968
  var g;
969
969
  (g = v.current) == null || g.focus({
970
970
  preventScroll: !0
971
971
  });
972
972
  }, s);
973
- const { className: D, stateProps: O } = wt(e);
973
+ const { className: h, stateProps: O } = wt(e);
974
974
  return /* @__PURE__ */ n.createElement(Pt, null, /* @__PURE__ */ n.createElement(Tt, {
975
975
  ref: v,
976
976
  id: E,
977
- className: D,
978
- ...ht(O, {
977
+ className: h,
978
+ ...Dt(O, {
979
979
  onFocus: p,
980
980
  onBlur: y
981
981
  }),
@@ -995,7 +995,7 @@ const ur = ({ className: e, children: t, ...r }) => {
995
995
  W.Label = pe;
996
996
  W.NativeSelect = ur;
997
997
  W.Control = ge;
998
- W.Options = Ze;
998
+ W.Options = ze;
999
999
  W.Description = ue;
1000
1000
  W.Error = me;
1001
1001
  const mr = /(\d{7})|(\d{3}-\d{4})/;
@@ -1036,10 +1036,10 @@ function Er({ isAutocompleteEnabled: e }) {
1036
1036
  };
1037
1037
  }
1038
1038
  const j = ({ children: e }) => {
1039
- const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m, autocomplete: C } = _(), { labelId: y } = P(), p = ve(), { autocompleteEnabled: E } = Le(), f = !!(p && Se[p] === Se.JP), N = (C || E) && f, v = be("zipCode"), D = b(e, j.Label), O = b(e, j.Control), g = b(e, j.Options), w = b(e, j.Description), T = b(e, j.Error);
1039
+ const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m, autocomplete: C } = R(), { labelId: y } = P(), p = ve(), { autocompleteEnabled: E } = Le(), f = !!(p && Se[p] === Se.JP), N = (C || E) && f, v = be("zipCode"), h = b(e, j.Label), O = b(e, j.Control), g = b(e, j.Options), w = b(e, j.Description), T = b(e, j.Error);
1040
1040
  return N ? /* @__PURE__ */ n.createElement(m, {
1041
1041
  fieldId: t,
1042
- renderLabel: () => h(D, {
1042
+ renderLabel: () => D(h, {
1043
1043
  label: v
1044
1044
  }),
1045
1045
  renderInput: () => /* @__PURE__ */ n.createElement(br, {
@@ -1055,7 +1055,7 @@ const j = ({ children: e }) => {
1055
1055
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, T, w)
1056
1056
  }) : /* @__PURE__ */ n.createElement(m, {
1057
1057
  fieldId: t,
1058
- renderLabel: () => h(D, {
1058
+ renderLabel: () => D(h, {
1059
1059
  label: v
1060
1060
  }),
1061
1061
  renderInput: () => /* @__PURE__ */ n.createElement(Ie, {
@@ -1088,7 +1088,7 @@ const j = ({ children: e }) => {
1088
1088
  }, [
1089
1089
  r,
1090
1090
  p
1091
- ]), D = A(async (S) => {
1091
+ ]), h = A(async (S) => {
1092
1092
  S && (f(void 0), E && m && m(E));
1093
1093
  }, [
1094
1094
  m,
@@ -1102,12 +1102,12 @@ const j = ({ children: e }) => {
1102
1102
  }, [
1103
1103
  u
1104
1104
  ]), w = b(e, j.Control), T = b(e, j.Options);
1105
- return /* @__PURE__ */ n.createElement(he, {
1105
+ return /* @__PURE__ */ n.createElement(De, {
1106
1106
  "aria-labelledby": d,
1107
1107
  inputValue: t ?? "",
1108
1108
  onInputChange: v,
1109
1109
  value: null,
1110
- onChange: D,
1110
+ onChange: h,
1111
1111
  isDisabled: o,
1112
1112
  isReadOnly: s,
1113
1113
  isRequired: a,
@@ -1117,26 +1117,26 @@ const j = ({ children: e }) => {
1117
1117
  allowsCustomValue: !0,
1118
1118
  menuTrigger: "input",
1119
1119
  items: N
1120
- }, h(w, {
1120
+ }, D(w, {
1121
1121
  onFocus: g
1122
- }), h(T, {
1122
+ }), D(T, {
1123
1123
  options: N
1124
- }), /* @__PURE__ */ n.createElement(ze, {
1124
+ }), /* @__PURE__ */ n.createElement(Ge, {
1125
1125
  optionCount: N.length
1126
1126
  }));
1127
1127
  }, et = ({ children: e, className: t, ...r }) => {
1128
- const { disabled: o, hasError: s } = _(), { onFocus: a } = r, i = ve(), l = b(e, et.Input);
1128
+ const { disabled: o, hasError: s } = R(), { onFocus: a } = r, i = ve(), l = b(e, et.Input);
1129
1129
  return /* @__PURE__ */ n.createElement("div", {
1130
1130
  className: t,
1131
1131
  "data-country": i || void 0,
1132
1132
  "data-disabled": o || void 0,
1133
1133
  "data-invalid": s || void 0
1134
- }, h(l, {
1134
+ }, D(l, {
1135
1135
  onFocus: a
1136
1136
  }));
1137
1137
  }, fr = ({ className: e, ...t }) => {
1138
- const { id: r, placeholder: o } = _(), { inputId: s, ariaDescribedBy: a } = P(), { onFocus: i } = t, l = B(null), u = _e();
1139
- return G(() => {
1138
+ const { id: r, placeholder: o } = R(), { inputId: s, ariaDescribedBy: a } = P(), { onFocus: i } = t, l = B(null), u = Re();
1139
+ return Z(() => {
1140
1140
  var d;
1141
1141
  (d = l.current) == null || d.focus({
1142
1142
  preventScroll: !0
@@ -1159,7 +1159,7 @@ const j = ({ children: e }) => {
1159
1159
  offset: 0
1160
1160
  }, /* @__PURE__ */ n.createElement(qe, {
1161
1161
  renderEmptyState: () => null
1162
- }, (o) => h(r, {
1162
+ }, (o) => D(r, {
1163
1163
  id: o.id,
1164
1164
  label: o.label
1165
1165
  })));
@@ -1179,10 +1179,10 @@ j.Options = tt;
1179
1179
  j.Description = ue;
1180
1180
  j.Error = me;
1181
1181
  const J = ({ children: e }) => {
1182
- const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m, autocomplete: C } = _(), { labelId: y } = P(), { autocompleteEnabled: p } = Le(), E = C || p, f = be("streetName"), N = b(e, J.Label), v = b(e, J.Input), D = b(e, J.Options), O = b(e, J.Description), g = b(e, J.Error);
1182
+ const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m, autocomplete: C } = R(), { labelId: y } = P(), { autocompleteEnabled: p } = Le(), E = C || p, f = be("streetName"), N = b(e, J.Label), v = b(e, J.Input), h = b(e, J.Options), O = b(e, J.Description), g = b(e, J.Error);
1183
1183
  return E ? /* @__PURE__ */ n.createElement(m, {
1184
1184
  fieldId: t,
1185
- renderLabel: () => h(N, {
1185
+ renderLabel: () => D(N, {
1186
1186
  label: f
1187
1187
  }),
1188
1188
  renderInput: () => /* @__PURE__ */ n.createElement(Cr, {
@@ -1194,11 +1194,11 @@ const J = ({ children: e }) => {
1194
1194
  hasError: l,
1195
1195
  onBlur: u,
1196
1196
  onFocus: d
1197
- }, v, D),
1197
+ }, v, h),
1198
1198
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, g, O)
1199
1199
  }) : /* @__PURE__ */ n.createElement(m, {
1200
1200
  fieldId: t,
1201
- renderLabel: () => h(N, {
1201
+ renderLabel: () => D(N, {
1202
1202
  label: f
1203
1203
  }),
1204
1204
  renderInput: () => /* @__PURE__ */ n.createElement(Ie, {
@@ -1219,7 +1219,7 @@ const J = ({ children: e }) => {
1219
1219
  enabled: !0
1220
1220
  }), { predictions: p, updatePredictions: E, clearPredictions: f } = Ut({
1221
1221
  atlas: y
1222
- }), N = b(e, J.Input), v = b(e, J.Options), D = x(() => p.reduce((S, F) => (F.searchId && F.description && S.push({
1222
+ }), N = b(e, J.Input), v = b(e, J.Options), h = x(() => p.reduce((S, F) => (F.searchId && F.description && S.push({
1223
1223
  id: F.searchId,
1224
1224
  label: F.description
1225
1225
  }), S), []), [
@@ -1258,7 +1258,7 @@ const J = ({ children: e }) => {
1258
1258
  }, [
1259
1259
  u
1260
1260
  ]);
1261
- return /* @__PURE__ */ n.createElement(he, {
1261
+ return /* @__PURE__ */ n.createElement(De, {
1262
1262
  "aria-labelledby": d,
1263
1263
  inputValue: t ?? "",
1264
1264
  onInputChange: O,
@@ -1272,17 +1272,17 @@ const J = ({ children: e }) => {
1272
1272
  onFocus: T,
1273
1273
  allowsCustomValue: !0,
1274
1274
  menuTrigger: "input",
1275
- items: D
1276
- }, h(N, {
1275
+ items: h
1276
+ }, D(N, {
1277
1277
  onFocus: T
1278
- }), h(v, {
1279
- options: D
1280
- }), /* @__PURE__ */ n.createElement(ze, {
1281
- optionCount: D.length
1278
+ }), D(v, {
1279
+ options: h
1280
+ }), /* @__PURE__ */ n.createElement(Ge, {
1281
+ optionCount: h.length
1282
1282
  }));
1283
1283
  }, Ir = ({ className: e, ...t }) => {
1284
- const { id: r, placeholder: o } = _(), { inputId: s, ariaDescribedBy: a } = P(), { onFocus: i } = t, l = B(null), u = _e();
1285
- return G(() => {
1284
+ const { id: r, placeholder: o } = R(), { inputId: s, ariaDescribedBy: a } = P(), { onFocus: i } = t, l = B(null), u = Re();
1285
+ return Z(() => {
1286
1286
  var d;
1287
1287
  (d = l.current) == null || d.focus({
1288
1288
  preventScroll: !0
@@ -1305,7 +1305,7 @@ const J = ({ children: e }) => {
1305
1305
  offset: 0
1306
1306
  }, /* @__PURE__ */ n.createElement(qe, {
1307
1307
  renderEmptyState: () => null
1308
- }, (o) => h(r, {
1308
+ }, (o) => D(r, {
1309
1309
  id: o.id,
1310
1310
  label: o.label
1311
1311
  })));
@@ -1324,10 +1324,10 @@ J.Options = nt;
1324
1324
  J.Description = ue;
1325
1325
  J.Error = me;
1326
1326
  const ce = ({ children: e }) => {
1327
- const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m } = _(), { labelId: C } = P(), y = be("streetNumber"), p = b(e, ce.Label), E = b(e, ce.Input), f = b(e, ce.Description), N = b(e, ce.Error);
1327
+ const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m } = R(), { labelId: C } = P(), y = be("streetNumber"), p = b(e, ce.Label), E = b(e, ce.Input), f = b(e, ce.Description), N = b(e, ce.Error);
1328
1328
  return /* @__PURE__ */ n.createElement(m, {
1329
1329
  fieldId: t,
1330
- renderLabel: () => h(p, {
1330
+ renderLabel: () => D(p, {
1331
1331
  label: y
1332
1332
  }),
1333
1333
  renderInput: () => /* @__PURE__ */ n.createElement(Ie, {
@@ -1344,8 +1344,8 @@ const ce = ({ children: e }) => {
1344
1344
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, N, f)
1345
1345
  });
1346
1346
  }, Lr = ({ className: e }) => {
1347
- const { id: t, placeholder: r } = _(), { inputId: o, ariaDescribedBy: s } = P(), a = B(null);
1348
- return G(() => {
1347
+ const { id: t, placeholder: r } = R(), { inputId: o, ariaDescribedBy: s } = P(), a = B(null);
1348
+ return Z(() => {
1349
1349
  var i;
1350
1350
  (i = a.current) == null || i.focus({
1351
1351
  preventScroll: !0
@@ -1363,27 +1363,27 @@ ce.Input = Lr;
1363
1363
  ce.Description = ue;
1364
1364
  ce.Error = me;
1365
1365
  const Y = ({ children: e }) => {
1366
- const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m } = _(), { labelId: C } = P(), { t: y } = Me(), p = ve(), E = p ? Se[p] : void 0, f = p && Xt.getCountryByShortKey(p), N = x(() => {
1366
+ const { id: t, value: r, onChange: o, disabled: s, readOnly: a, required: i, hasError: l, onBlur: u, onFocus: d, FieldLayout: m } = R(), { labelId: C } = P(), { t: y } = Me(), p = ve(), E = p ? Se[p] : void 0, f = p && Xt.getCountryByShortKey(p), N = x(() => {
1367
1367
  var k;
1368
1368
  return (Qt(((k = f == null ? void 0 : f.subdivisions) == null ? void 0 : k.list) || [], E) || []).map((M) => ({
1369
1369
  value: M.key,
1370
1370
  label: y(M.displayName)
1371
- })).sort((M, $) => M.label.localeCompare($.label));
1371
+ })).sort((M, V) => M.label.localeCompare(V.label));
1372
1372
  }, [
1373
1373
  E,
1374
1374
  y,
1375
1375
  f
1376
1376
  ]), v = A(() => o(""), [
1377
1377
  o
1378
- ]), { onInputKeyDown: D, ...O } = $t({
1378
+ ]), { onInputKeyDown: h, ...O } = Vt({
1379
1379
  options: N,
1380
1380
  value: r,
1381
1381
  commit: o,
1382
1382
  clear: v,
1383
1383
  onBlur: u
1384
- }), g = be("subdivision"), w = b(e, Y.Label), T = b(e, Y.Control), S = b(e, Y.Options), F = b(e, Y.Description), q = b(e, Y.Error), Q = b(e, Y.NativeSelect), U = Rt() && N.length > 0 ? h(Q, {
1384
+ }), g = be("subdivision"), w = b(e, Y.Label), T = b(e, Y.Control), S = b(e, Y.Options), F = b(e, Y.Description), q = b(e, Y.Error), Q = b(e, Y.NativeSelect), U = _t() && N.length > 0 ? D(Q, {
1385
1385
  options: N
1386
- }) : /* @__PURE__ */ n.createElement(he, {
1386
+ }) : /* @__PURE__ */ n.createElement(De, {
1387
1387
  "aria-labelledby": C,
1388
1388
  ...O,
1389
1389
  isDisabled: s,
@@ -1392,34 +1392,34 @@ const Y = ({ children: e }) => {
1392
1392
  isInvalid: l,
1393
1393
  onFocus: d,
1394
1394
  menuTrigger: "input"
1395
- }, h(T, {
1396
- onKeyDown: D
1397
- }), h(S, {
1395
+ }, D(T, {
1396
+ onKeyDown: h
1397
+ }), D(S, {
1398
1398
  options: N
1399
1399
  }));
1400
1400
  return /* @__PURE__ */ n.createElement(m, {
1401
1401
  fieldId: t,
1402
- renderLabel: () => h(w, {
1402
+ renderLabel: () => D(w, {
1403
1403
  label: g
1404
1404
  }),
1405
1405
  renderInput: () => U,
1406
1406
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, q, F)
1407
1407
  });
1408
- }, De = ({ children: e, className: t, ...r }) => {
1409
- const { disabled: o, hasError: s } = _(), { onKeyDown: a } = r, i = b(e, De.Input), l = b(e, De.Trigger);
1408
+ }, he = ({ children: e, className: t, ...r }) => {
1409
+ const { disabled: o, hasError: s } = R(), { onKeyDown: a } = r, i = b(e, he.Input), l = b(e, he.Trigger);
1410
1410
  return /* @__PURE__ */ n.createElement(Ft, {
1411
1411
  className: t,
1412
1412
  isDisabled: o,
1413
1413
  isInvalid: s
1414
- }, h(i, {
1414
+ }, D(i, {
1415
1415
  onKeyDown: a
1416
1416
  }), l);
1417
1417
  }, vr = ({ className: e, ...t }) => {
1418
- const { id: r, placeholder: o, readOnly: s, disabled: a } = _(), { inputId: i, ariaDescribedBy: l } = P(), { onKeyDown: u } = t, d = B(null), m = _e(), C = Kt({
1418
+ const { id: r, placeholder: o, readOnly: s, disabled: a } = R(), { inputId: i, ariaDescribedBy: l } = P(), { onKeyDown: u } = t, d = B(null), m = Re(), C = Kt({
1419
1419
  readOnly: s,
1420
1420
  disabled: a
1421
1421
  });
1422
- return G(() => {
1422
+ return Z(() => {
1423
1423
  var y;
1424
1424
  (y = d.current) == null || y.focus({
1425
1425
  preventScroll: !0
@@ -1438,15 +1438,15 @@ const Y = ({ children: e }) => {
1438
1438
  }, Or = ({ children: e, className: t }) => /* @__PURE__ */ n.createElement(At, {
1439
1439
  className: t
1440
1440
  }, e);
1441
- De.Input = vr;
1442
- De.Trigger = Or;
1441
+ he.Input = vr;
1442
+ he.Trigger = Or;
1443
1443
  const rt = ({ children: e, className: t, ...r }) => {
1444
1444
  const { options: o } = r, s = b(e, rt.Option);
1445
1445
  return /* @__PURE__ */ n.createElement(Fe, {
1446
1446
  className: t,
1447
1447
  containerPadding: 0,
1448
1448
  offset: 0
1449
- }, /* @__PURE__ */ n.createElement(qe, null, o.map((a) => h(s, {
1449
+ }, /* @__PURE__ */ n.createElement(qe, null, o.map((a) => D(s, {
1450
1450
  key: a.value,
1451
1451
  value: a.value,
1452
1452
  label: a.label
@@ -1461,19 +1461,19 @@ const rt = ({ children: e, className: t, ...r }) => {
1461
1461
  };
1462
1462
  rt.Option = Sr;
1463
1463
  const gr = ({ className: e, children: t, ...r }) => {
1464
- const { options: o } = r, { id: s, value: a, onChange: i, disabled: l, readOnly: u, required: d, hasError: m, placeholder: C, onBlur: y, onFocus: p } = _(), { inputId: E, labelId: f, ariaDescribedBy: N } = P(), v = B(null);
1465
- G(() => {
1464
+ const { options: o } = r, { id: s, value: a, onChange: i, disabled: l, readOnly: u, required: d, hasError: m, placeholder: C, onBlur: y, onFocus: p } = R(), { inputId: E, labelId: f, ariaDescribedBy: N } = P(), v = B(null);
1465
+ Z(() => {
1466
1466
  var g;
1467
1467
  (g = v.current) == null || g.focus({
1468
1468
  preventScroll: !0
1469
1469
  });
1470
1470
  }, s);
1471
- const { className: D, stateProps: O } = wt(e);
1471
+ const { className: h, stateProps: O } = wt(e);
1472
1472
  return /* @__PURE__ */ n.createElement(Pt, null, /* @__PURE__ */ n.createElement(Tt, {
1473
1473
  ref: v,
1474
1474
  id: E,
1475
- className: D,
1476
- ...ht(O, {
1475
+ className: h,
1476
+ ...Dt(O, {
1477
1477
  onFocus: p,
1478
1478
  onBlur: y
1479
1479
  }),
@@ -1492,29 +1492,29 @@ const gr = ({ className: e, children: t, ...r }) => {
1492
1492
  };
1493
1493
  Y.Label = pe;
1494
1494
  Y.NativeSelect = gr;
1495
- Y.Control = De;
1495
+ Y.Control = he;
1496
1496
  Y.Options = rt;
1497
1497
  Y.Description = ue;
1498
1498
  Y.Error = me;
1499
- const Dr = () => Ee("country"), hr = () => Ee("subdivision"), Fr = () => Ee("city"), Ar = () => Ee("addressLine"), _r = () => Ee("addressLine2"), Rr = () => Ee("postalCode"), Pr = () => Ee("streetName"), Tr = () => Ee("streetNumber"), wr = () => Ee("apartment"), Mr = {
1500
- [z.MLA_COUNTRY]: Dr,
1501
- [z.MLA_SUBDIVISION]: hr,
1502
- [z.MLA_CITY]: Fr,
1503
- [z.MLA_ADDRESS_LINE]: Ar,
1504
- [z.MLA_ADDRESS_LINE_2]: _r,
1505
- [z.MLA_POSTAL_CODE]: Rr,
1506
- [z.MLA_STREET_NAME]: Pr,
1507
- [z.MLA_STREET_NUMBER]: Tr,
1508
- [z.MLA_APARTMENT]: wr
1499
+ const hr = () => Ee("country"), Dr = () => Ee("subdivision"), Fr = () => Ee("city"), Ar = () => Ee("addressLine"), Rr = () => Ee("addressLine2"), _r = () => Ee("postalCode"), Pr = () => Ee("streetName"), Tr = () => Ee("streetNumber"), wr = () => Ee("apartment"), Mr = {
1500
+ [G.MLA_COUNTRY]: hr,
1501
+ [G.MLA_SUBDIVISION]: Dr,
1502
+ [G.MLA_CITY]: Fr,
1503
+ [G.MLA_ADDRESS_LINE]: Ar,
1504
+ [G.MLA_ADDRESS_LINE_2]: Rr,
1505
+ [G.MLA_POSTAL_CODE]: _r,
1506
+ [G.MLA_STREET_NAME]: Pr,
1507
+ [G.MLA_STREET_NUMBER]: Tr,
1508
+ [G.MLA_APARTMENT]: wr
1509
1509
  }, Br = {}, qr = [], c = ({ children: e, className: t }) => {
1510
- const { id: r, form: o, value: s, onChange: a, onFieldBlur: i, onFieldFocus: l, errors: u, FieldLayout: d, fieldSettings: m, label: C, validation: y, target: p, autocompleteEnabled: E, required: f, fieldType: N } = _(), [v, D] = fe(null), O = zt(), g = x(() => ({
1510
+ const { id: r, form: o, value: s, onChange: a, onFieldBlur: i, onFieldFocus: l, errors: u, FieldLayout: d, fieldSettings: m, label: C, validation: y, target: p, autocompleteEnabled: E, required: f, fieldType: N } = R(), [v, h] = fe(null), O = Gt(), g = x(() => ({
1511
1511
  ...O,
1512
1512
  ...Mr
1513
1513
  }), [
1514
1514
  O
1515
- ]), { isExperimentEnabled: w } = Je(), T = w(Xe.STREETLESS_LOCALITY_FALLBACK), { validateFields: S } = Gt(), F = Zt(), q = Dt(), Q = x(() => {
1516
- var V;
1517
- const K = !!((V = q.actions) != null && V.getPlace);
1515
+ ]), { isExperimentEnabled: w } = Je(), T = w(Xe.STREETLESS_LOCALITY_FALLBACK), { validateFields: S } = Zt(), F = zt(), q = ht(), Q = x(() => {
1516
+ var $;
1517
+ const K = !!(($ = q.actions) != null && $.getPlace);
1518
1518
  return {
1519
1519
  ...q,
1520
1520
  actions: {
@@ -1529,7 +1529,7 @@ const Dr = () => Ee("country"), hr = () => Ee("subdivision"), Fr = () => Ee("cit
1529
1529
  };
1530
1530
  }, [
1531
1531
  q
1532
- ]), { form: Z, isMultilineAddressField: U } = Tn({
1532
+ ]), { form: z, isMultilineAddressField: U } = Tn({
1533
1533
  id: r,
1534
1534
  target: p,
1535
1535
  fieldType: N,
@@ -1538,29 +1538,29 @@ const Dr = () => Ee("country"), hr = () => Ee("subdivision"), Fr = () => Ee("cit
1538
1538
  fieldSettings: m,
1539
1539
  validation: y,
1540
1540
  required: f
1541
- }), R = A((K) => {
1541
+ }), _ = A((K) => {
1542
1542
  if (!s)
1543
1543
  return;
1544
- const V = Ln(K, U, T), Re = {
1545
- ...V,
1546
- [Ne.COUNTRY]: V[Ne.COUNTRY] ?? s[Ne.COUNTRY]
1544
+ const $ = Ln(K, U, T), _e = {
1545
+ ...$,
1546
+ [Ne.COUNTRY]: $[Ne.COUNTRY] ?? s[Ne.COUNTRY]
1547
1547
  };
1548
- a == null || a(Re);
1548
+ a == null || a(_e);
1549
1549
  }, [
1550
1550
  a,
1551
1551
  s,
1552
1552
  U,
1553
1553
  T
1554
- ]), k = A((K, V) => {
1555
- if (U && K === Ne.COUNTRY && (s == null ? void 0 : s[K]) !== V) {
1554
+ ]), k = A((K, $) => {
1555
+ if (U && K === Ne.COUNTRY && (s == null ? void 0 : s[K]) !== $) {
1556
1556
  a == null || a({
1557
- [Ne.COUNTRY]: V
1557
+ [Ne.COUNTRY]: $
1558
1558
  });
1559
1559
  return;
1560
1560
  }
1561
1561
  a == null || a({
1562
1562
  ...s,
1563
- [K]: V
1563
+ [K]: $
1564
1564
  });
1565
1565
  }, [
1566
1566
  a,
@@ -1579,13 +1579,13 @@ const Dr = () => Ee("country"), hr = () => Ee("subdivision"), Fr = () => Ee("cit
1579
1579
  U
1580
1580
  ]);
1581
1581
  on(r, () => {
1582
- var Re;
1583
- const K = u == null ? void 0 : u[0], V = (Re = Z == null ? void 0 : Z.fields) == null ? void 0 : Re.find((pt) => "target" in pt && pt.target === (K == null ? void 0 : K.errorPath));
1584
- return V == null ? void 0 : V.id;
1582
+ var _e;
1583
+ const K = u == null ? void 0 : u[0], $ = (_e = z == null ? void 0 : z.fields) == null ? void 0 : _e.find((pt) => "target" in pt && pt.target === (K == null ? void 0 : K.errorPath));
1584
+ return $ == null ? void 0 : $.id;
1585
1585
  });
1586
- const $ = pn(r), ot = h(b(e, c.Country), {
1587
- isForcedOpen: $
1588
- }), st = b(e, c.Subdivision), at = b(e, c.City), lt = b(e, c.AddressLine), it = b(e, c.AddressLine2), ct = b(e, c.PostalCode), dt = b(e, c.StreetName), ut = b(e, c.StreetNumber), mt = b(e, c.Apartment), Vt = x(() => ({
1586
+ const V = pn(r), ot = D(b(e, c.Country), {
1587
+ isForcedOpen: V
1588
+ }), st = b(e, c.Subdivision), at = b(e, c.City), lt = b(e, c.AddressLine), it = b(e, c.AddressLine2), ct = b(e, c.PostalCode), dt = b(e, c.StreetName), ut = b(e, c.StreetNumber), mt = b(e, c.Apartment), $t = x(() => ({
1589
1589
  country: ot,
1590
1590
  subdivision: st,
1591
1591
  city: at,
@@ -1606,17 +1606,17 @@ const Dr = () => Ee("country"), hr = () => Ee("subdivision"), Fr = () => Ee("cit
1606
1606
  ut,
1607
1607
  mt
1608
1608
  ]);
1609
- return Z ? /* @__PURE__ */ n.createElement(d, {
1609
+ return z ? /* @__PURE__ */ n.createElement(d, {
1610
1610
  fieldId: r
1611
1611
  }, /* @__PURE__ */ n.createElement(On, {
1612
1612
  countryCode: s == null ? void 0 : s.country
1613
1613
  }, /* @__PURE__ */ n.createElement(vn, {
1614
1614
  autocompleteEnabled: E,
1615
- onAddressSelect: R
1615
+ onAddressSelect: _
1616
1616
  }, /* @__PURE__ */ n.createElement(wn, {
1617
- fields: Vt
1617
+ fields: $t
1618
1618
  }, /* @__PURE__ */ n.createElement("div", {
1619
- ref: D,
1619
+ ref: h,
1620
1620
  style: {
1621
1621
  display: "contents"
1622
1622
  }
@@ -1629,7 +1629,7 @@ const Dr = () => Ee("country"), hr = () => Ee("subdivision"), Fr = () => Ee("cit
1629
1629
  style: mn
1630
1630
  }, C), /* @__PURE__ */ n.createElement(sn, {
1631
1631
  formSchema: F,
1632
- form: Z,
1632
+ form: z,
1633
1633
  values: s ?? Br,
1634
1634
  onFieldChange: k,
1635
1635
  onBlur: i,