@wix/form-elements 1.135.0 → 1.136.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-DsD7xLmb.js +1010 -0
  2. package/dist/component/{bookings-address-rac-BK-sU26E.js → bookings-address-rac-ByaFu51U.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DZ3HVkyn.js → bookings-email-rac-CxuvkcYw.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-Ci4PHqOr.js → bookings-first-name-rac-JXLJa_7E.js} +1 -1
  5. package/dist/component/{bookings-header-rac-C_MYNrDA.js → bookings-header-rac-CIQTbf9d.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CdNlwyjm.js → bookings-last-name-rac-_2Xt4BPe.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CP2JcaVr.js → bookings-login-bar-rac-BUjys5i9.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-BV8sqxil.js → bookings-phone-rac-DlsdGmOt.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DQtcYRsh.js → bookings-rich-text-rac-BvRdhL7M.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-DPNqHTNc.js → checkbox-field-rac-Be6wicaA.js} +121 -121
  11. package/dist/component/{checkbox-group-field-headless-DhhynlgN.js → checkbox-group-field-headless-BJ0pGvXi.js} +19 -19
  12. package/dist/component/{checkbox-group-field-rac-B3zOW7qr.js → checkbox-group-field-rac-D7xqqVf6.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-Qy03hO31.js → checkbox-group-rac-DtCS-gEH.js} +1 -1
  14. package/dist/component/{checkbox-rac-DYr3RaHj.js → checkbox-rac-ub7MFwY-.js} +1 -1
  15. package/dist/component/{contacts-address-rac-Bi-etpfX.js → contacts-address-rac-Bwsdpg11.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-D2LLjX9P.js → contacts-birthdate-rac-D54hibhb.js} +1 -1
  17. package/dist/component/{contacts-company-rac-C9ImoG_i.js → contacts-company-rac-CKqzgKio.js} +1 -1
  18. package/dist/component/{contacts-email-rac-DeGblC9V.js → contacts-email-rac-Dxm31wuY.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-Xk3m57jK.js → contacts-first-name-rac-CXHsx6Vy.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BKE-1IYB.js → contacts-last-name-rac-B0S268f3.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-CHmtTutD.js → contacts-phone-rac-DEbgIiEj.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BS3TySLG.js → contacts-position-rac-D31uoOlR.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac--fpczJiB.js → contacts-subscribe-rac-DJ8NtoxZ.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-CHkn8vkL.js → contacts-tax-id-rac-DTQffHAo.js} +1 -1
  25. package/dist/component/{date-availability-70Vb-dlb.js → date-availability-DmhJ9apH.js} +1 -1
  26. package/dist/component/{date-input-field-rac-BlkYEYM_.js → date-input-field-rac-BwM_q4FW.js} +52 -52
  27. package/dist/component/{date-input-rac-JdNFk07Q.js → date-input-rac-C93pgocp.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-DHu11mY1.js → date-picker-field-rac-CtZL368W.js} +5 -5
  29. package/dist/component/{date-picker-rac-CZtWhFzM.js → date-picker-rac-4DNe6hOX.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-cHAALqS5.js → date-time-input-field-rac-MlCVy3Oz.js} +58 -58
  31. package/dist/component/{date-time-input-rac-Dz7GfoJO.js → date-time-input-rac-ByyBvFgo.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-ZNKzyWda.js → dext-checkbox-group-rac-BP76Xwiq.js} +4 -4
  33. package/dist/component/{dext-checkbox-rac-DfPFXrKu.js → dext-checkbox-rac-DGaKSh4Z.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-BPbl65qK.js → dext-date-picker-rac-UEXbMSlL.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-D5ywbLtW.js → dext-date-time-input-rac-CsJcGK4I.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-BuVsPZOU.js → dext-dropdown-rac-BzbRzloh.js} +1 -1
  37. package/dist/component/{dext-email-rac-DRjt3lqT.js → dext-email-rac-DufFAnTi.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-Bzrl87fo.js → dext-number-input-rac-D6xXi7B2.js} +1 -1
  39. package/dist/component/{dext-phone-rac-LibvQb8h.js → dext-phone-rac-svy9CDHW.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-BTWnIvwW.js → dext-radio-group-rac-C4p9NuQS.js} +4 -4
  41. package/dist/component/{dext-rating-input-rac-DTlnOcC8.js → dext-rating-input-rac-wJ7-RFFN.js} +1 -1
  42. package/dist/component/{dext-tags-rac-YdeijviH.js → dext-tags-rac-D2myHrSZ.js} +4 -4
  43. package/dist/component/{dext-text-area-rac-CdCzQYey.js → dext-text-area-rac-B4Fw_9mF.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-B28RTezm.js → dext-text-input-rac-DlZanFMT.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-B0ZBPbAb.js → dext-url-input-rac-DYjl3wuk.js} +1 -1
  46. package/dist/component/{donation-rac-_0cwsIAq.js → donation-rac-B6LwJxik.js} +72 -72
  47. package/dist/component/{dropdown-field-headless-DVZnbZAM.js → dropdown-field-headless-BAt2RoAH.js} +8 -8
  48. package/dist/component/{dropdown-field-rac-DWCj_Grt.js → dropdown-field-rac-DFjn3ecV.js} +7 -7
  49. package/dist/component/{dropdown-rac-Bpo-F5sc.js → dropdown-rac-DQ6keNRI.js} +1 -1
  50. package/dist/component/{ecom-address-rac-vJ0ku_Ld.js → ecom-address-rac-j1T2zp0k.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-DgVReM6c.js → ecom-subscription-checkbox-rac-viTaRZsk.js} +2 -2
  52. package/dist/component/{email-input-field-rac-BXJGOBg-.js → email-input-field-rac-5eb-1w7B.js} +46 -46
  53. package/dist/component/{events-repeater-rac-CrXE_ppd.js → events-repeater-rac-BtcoN_Ra.js} +23 -23
  54. package/dist/component/{events-rsvp-rac-BGg3P1CQ.js → events-rsvp-rac-DSzFEmty.js} +10 -10
  55. package/dist/component/{field-error-headless-C3eOy1_l.js → field-error-headless-Bpe041x2.js} +6 -6
  56. package/dist/component/{field-label-headless-BMmR_IeF.js → field-label-headless-BUuK1Ftv.js} +7 -7
  57. package/dist/component/{file-upload-rac-Umix6wXx.js → file-upload-rac-CfU8Ygwq.js} +50 -50
  58. package/dist/component/{fixed-payment-rac-CfIJCBjb.js → fixed-payment-rac-CYp7zNq8.js} +12 -12
  59. package/dist/component/{form-CYPNOMwk.js → form-C6lnbh2O.js} +831 -823
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-oxHUTKYV.js → header-field-rac-B7YfrhId.js} +4 -4
  63. package/dist/component/{header-rac-DTGV923r.js → header-rac-BtJKAKAz.js} +1 -1
  64. package/dist/component/{image-choice-rac-B9JGl_h7.js → image-choice-rac-Bmq7Pyg6.js} +32 -32
  65. package/dist/component/{index-BOKSOnDK.js → index-BjPSeVyh.js} +107 -107
  66. package/dist/component/{index-C_ktc-yO.js → index-CQdUOkIN.js} +5 -5
  67. package/dist/component/{isObjectLike-Di8V7txC.js → isObjectLike-CxNqKfU5.js} +7 -7
  68. package/dist/component/{multiline-address-field-rac-zgmTbXlg.js → multiline-address-field-rac-BeiUJWKd.js} +115 -115
  69. package/dist/component/{multiline-address-rac-Cyb3dvBf.js → multiline-address-rac-B2mocF6M.js} +1 -1
  70. package/dist/component/{number-input-field-rac-DquqqRy_.js → number-input-field-rac-CQX7_S2O.js} +24 -24
  71. package/dist/component/{number-input-rac-G2DdTbk2.js → number-input-rac-BZri-E8P.js} +1 -1
  72. package/dist/component/{password-rac-DJCU0F38.js → password-rac-CdwrtDJU.js} +50 -50
  73. package/dist/component/{payment-input-rac-DlIYza6N.js → payment-input-rac-ClQiqmjm.js} +38 -38
  74. package/dist/component/{phone-input-field-rac-B10TInMa.js → phone-input-field-rac-BtG_Rado.js} +56 -56
  75. package/dist/component/{phone-rac-BuyttJpM.js → phone-rac-CdcAMa5E.js} +1 -1
  76. package/dist/component/{product-list-rac-WrSJwQ_g.js → product-list-rac-Dp_YK6mo.js} +61 -61
  77. package/dist/component/{quiz-radio-group-rac-CHxZ_pK_.js → quiz-radio-group-rac-CorojxKD.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DjJU-8ZB.js → radio-button-module-classes-ZX12Fyj4.js} +3 -3
  79. package/dist/component/{radio-group-field-rac-BImiqcKa.js → radio-group-field-rac-BifCDpE4.js} +10 -10
  80. package/dist/component/{radio-group-rac-CDkJeGpN.js → radio-group-rac-CJ2fzqnY.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-Dsr_S5qN.js → rating-input-field-rac-Dg1T0DZW.js} +28 -28
  82. package/dist/component/{rating-input-rac-BJUW8U93.js → rating-input-rac-Ba4YK13i.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-BfQJqA-x.js → rich-content-rac.module-BehwBL3L.js} +3 -3
  84. package/dist/component/{rich-text-field-rac-DIuZbu_u.js → rich-text-field-rac-DtIWdB-S.js} +7 -7
  85. package/dist/component/{rich-text-rac-C39fpEiP.js → rich-text-rac-BX4eDDFw.js} +1 -1
  86. package/dist/component/service-dropdown-rac-68WLBlsa.js +146 -0
  87. package/dist/component/{services-multi-choice-rac-GVb4qA7g.js → services-multi-choice-rac-8yNdAHfS.js} +7 -7
  88. package/dist/component/{signature-rac-nC5pr6nB.js → signature-rac-DeVOyl5O.js} +73 -73
  89. package/dist/component/{submit-button-rac-eUjgrx9Q.js → submit-button-rac-IOr1g-G-.js} +12 -12
  90. package/dist/component/{tags-field-rac-zv30chSd.js → tags-field-rac-DaiMlAxt.js} +27 -27
  91. package/dist/component/{tags-rac-PnS2SxVP.js → tags-rac-BgrUkY0A.js} +1 -1
  92. package/dist/component/{text-area-field-rac-DLeOMD4g.js → text-area-field-rac-CLPZEY93.js} +16 -16
  93. package/dist/component/{text-area-rac-jZ_mh45C.js → text-area-rac-C8PdPSzX.js} +1 -1
  94. package/dist/component/{text-input-field-rac-DifV7Erd.js → text-input-field-rac-Dm-xU8Rg.js} +5 -5
  95. package/dist/component/{text-input-headless-DhVEjorY.js → text-input-headless-BEmRjL8Z.js} +6 -6
  96. package/dist/component/{text-input-rac-Ce4qKN9M.js → text-input-rac-C-FnaOXT.js} +1 -1
  97. package/dist/component/{time-input-rac-1kW3aDIo.js → time-input-rac-VmTURkiK.js} +46 -46
  98. package/dist/component/{url-input-field-rac-D9xXAQCq.js → url-input-field-rac-CnnS0tVx.js} +23 -23
  99. package/dist/component/{url-input-rac-SaAybDdN.js → url-input-rac-6nd_ccoP.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-C_MO_0JS.js → use-dropdown-option-class-name-CcZl1qrj.js} +2 -2
  101. package/dist/component/{use-dropdown-trigger-class-name-D7EMiD-M.js → use-dropdown-trigger-class-name-BNc0mkdK.js} +4 -4
  102. package/dist/component/{use-element-state-class-name-DZFi3Z42.js → use-element-state-class-name-BU6RXqBy.js} +1 -1
  103. package/dist/component/{use-hoverable-input-class-name-JAZ1mif0.js → use-hoverable-input-class-name-CkXPkbiP.js} +2 -2
  104. package/dist/component/{use-service-options-base-ZX4iaxzr.js → use-service-options-base-B5afDbnr.js} +4 -4
  105. package/dist/component/use-text-input-class-name-BB3V6Q0b.js +6 -0
  106. package/package.json +2 -2
  107. package/dist/component/appointment-rac-CYCddSl9.js +0 -1010
  108. package/dist/component/service-dropdown-rac-Bc9hEpx3.js +0 -146
  109. package/dist/component/use-text-input-class-name-XFjQX8q1.js +0 -6
@@ -1,22 +1,22 @@
1
- import { RicosViewer as G } from "@wix/ricos/viewer";
1
+ import { RicosViewer as X } from "@wix/ricos/viewer";
2
2
  import L from "classnames";
3
- import r, { useMemo as q, createContext as Ve, useContext as Ce, useState as be, useRef as x, useCallback as R, useEffect as _e } from "react";
4
- import { UNSAFE_PortalProvider as _t } from "react-aria";
5
- import { bc as ft, d as yt, b7 as Pt, b9 as Ct, aM as Tt, aN as wt, aF as Mt, aL as W, F as K, br as Pe, b0 as lt, bh as P, be as T, bj as ae, bd as It, aR as qt, C as Oe, a_ as xt, b2 as Bt, bo as kt, bi as $t, bn as Ut, b5 as Vt, aW as Wt, b4 as Kt, bk as Yt, al as Ht, I as z, U as Q, K as ge, v as Z, p as ee } from "./form-CYPNOMwk.js";
3
+ import r, { useMemo as q, createContext as Ue, useContext as Ce, useState as be, useRef as x, useCallback as R, useEffect as Pe } from "react";
4
+ import { UNSAFE_PortalProvider as Pt } from "react-aria";
5
+ import { be as ft, d as yt, b9 as _t, bb as Ct, aO as Tt, aP as wt, aH as Mt, aN as W, F as K, bt as _e, b2 as lt, bj as _, bg as T, bl as ae, bf as It, aT as qt, C as Oe, b0 as xt, b4 as Bt, bq as kt, bk as $t, bp as Vt, b7 as Ut, aY as Wt, b6 as Kt, bm as Yt, an as Ht, M as z, Y as Q, O as ge, G as Z, u as ee } from "./form-C6lnbh2O.js";
6
6
  import { f as E, a as F } from "./find-child-C60k4CxG.js";
7
7
  import { F as jt, V as Jt } from "./headless-styles-CmcyA_pi.js";
8
- import { a as Xt, u as Gt } from "./use-dropdown-trigger-class-name-D7EMiD-M.js";
8
+ import { a as Gt, u as Xt } from "./use-dropdown-trigger-class-name-BNc0mkdK.js";
9
9
  import { TextField as fe, Input as le, ComboBoxStateContext as We, ComboBox as he, Popover as De, ListBox as Te, ListBoxItem as Se, Group as Lt, Button as Nt } from "react-aria-components";
10
- import { D as ie, E as ce } from "./field-error-headless-C3eOy1_l.js";
11
- import { L as de } from "./field-label-headless-BMmR_IeF.js";
12
- import { e as zt, c as Qt, a as Zt, r as gt } from "./isObjectLike-Di8V7txC.js";
13
- import { V as en, u as tn } from "./use-dropdown-option-class-name-C_MO_0JS.js";
10
+ import { D as ie, E as ce } from "./field-error-headless-Bpe041x2.js";
11
+ import { L as de } from "./field-label-headless-BUuK1Ftv.js";
12
+ import { e as zt, c as Qt, a as Zt, r as gt } from "./isObjectLike-CxNqKfU5.js";
13
+ import { V as en, u as tn } from "./use-dropdown-option-class-name-CcZl1qrj.js";
14
14
  import { u as nn } from "./use-invoke-callback-UH73A_J3.js";
15
15
  import { C as it } from "./chevron-down-icon-CcpVm6B-.js";
16
16
  import { E as te } from "./error-icon-hZxQ6DEy.js";
17
17
  import { H as we } from "./custom-focus-class-_483Pkwp.js";
18
18
  import { s as I } from "./field-rac.module-DfEb7pBp.js";
19
- import { u as rn } from "./use-text-input-class-name-XFjQX8q1.js";
19
+ import { u as rn } from "./use-text-input-class-name-BB3V6Q0b.js";
20
20
  const on = (e, t, o) => {
21
21
  var a, l, i, s;
22
22
  const n = (a = e.steps) == null ? void 0 : a.map((d) => {
@@ -51,7 +51,7 @@ function sn(e, t, o = !1) {
51
51
  const { country: n, subdivision: a, city: l, addressLine: i, streetAddress: s, addressLine2: d, postalCode: m } = e, u = {};
52
52
  return t ? (n && (u.country = n), a && (u.subdivision = a), l && (u.city = l), i ? u.addressLine = i : s != null && s.formattedAddressLine && (u.addressLine = s == null ? void 0 : s.formattedAddressLine), d && (u.addressLine = d), m && (u.postalCode = m), s != null && s.apt && (u.apartment = s == null ? void 0 : s.apt), s != null && s.name ? u.streetName = s == null ? void 0 : s.name : o && (s != null && s.formattedAddressLine) && (u.streetName = s == null ? void 0 : s.formattedAddressLine), s != null && s.number && (u.streetNumber = s.number)) : (n && (u.country = n), a && (u.subdivision = a), l && (u.city = l), i ? u.address_line = i : s != null && s.formattedAddressLine && (u.address_line = s == null ? void 0 : s.formattedAddressLine), d && (u.address_line = d), m && (u.postal_code = m), s != null && s.apt && (u.apartment = s == null ? void 0 : s.apt), s != null && s.name ? u.street_name = s == null ? void 0 : s.name : o && (s != null && s.formattedAddressLine) && (u.street_name = s == null ? void 0 : s.formattedAddressLine), s != null && s.number && (u.street_number = s.number)), u;
53
53
  }
54
- const Ot = /* @__PURE__ */ Ve({
54
+ const Ot = /* @__PURE__ */ Ue({
55
55
  onAddressSelect: () => {
56
56
  }
57
57
  }), an = ({ children: e, onAddressSelect: t, autocompleteEnabled: o }) => {
@@ -69,7 +69,7 @@ const Ot = /* @__PURE__ */ Ve({
69
69
  function Ie() {
70
70
  return Ce(Ot);
71
71
  }
72
- const vt = /* @__PURE__ */ Ve(void 0), ln = ({ children: e, countryCode: t }) => {
72
+ const vt = /* @__PURE__ */ Ue(void 0), ln = ({ children: e, countryCode: t }) => {
73
73
  const o = q(() => ({
74
74
  countryCode: t
75
75
  }), [
@@ -177,7 +177,7 @@ const dn = (e, t) => e.map((o) => ({
177
177
  street_number: W(),
178
178
  apartment: W()
179
179
  }), Cn = ({ id: e, target: t, fieldType: o, form: n, country: a, fieldSettings: l, validation: i, required: s }) => {
180
- const [d] = be(yn), { isExperimentEnabled: m } = ft(), u = m(yt.USE_FIELDS_V2), { getCountryAddressForm: y } = Pt(), { isMobile: C, breakpoint: b } = Ct(), p = y(a), f = o === K.MULTILINE_ADDRESS || o === K.BOOKINGS_ADDRESS, N = q(() => {
180
+ const [d] = be(yn), { isExperimentEnabled: m } = ft(), u = m(yt.USE_FIELDS_V2), { getCountryAddressForm: y } = _t(), { isMobile: C, breakpoint: b } = Ct(), p = y(a), f = o === K.MULTILINE_ADDRESS || o === K.BOOKINGS_ADDRESS, N = q(() => {
181
181
  var O;
182
182
  return Tt(s, (O = i == null ? void 0 : i.predefined) == null ? void 0 : O.multilineAddressOptions);
183
183
  }, [
@@ -186,7 +186,7 @@ const dn = (e, t) => e.map((o) => ({
186
186
  ]), S = q(() => wt(), []);
187
187
  return {
188
188
  form: q(() => {
189
- var _, g;
189
+ var P, g;
190
190
  if (!f || !p)
191
191
  return n && {
192
192
  ...n,
@@ -199,7 +199,7 @@ const dn = (e, t) => e.map((o) => ({
199
199
  includeHiddenFields: !0,
200
200
  isMobile: C,
201
201
  breakpoint: b,
202
- form: cn(on(p, N, S), l, (g = (_ = i == null ? void 0 : i.predefined) == null ? void 0 : _.multilineAddressOptions) == null ? void 0 : g.fields)
202
+ form: cn(on(p, N, S), l, (g = (P = i == null ? void 0 : i.predefined) == null ? void 0 : P.multilineAddressOptions) == null ? void 0 : g.fields)
203
203
  });
204
204
  if (!O.fields.some((v) => v.properties.hidden))
205
205
  return O;
@@ -225,7 +225,7 @@ const dn = (e, t) => e.map((o) => ({
225
225
  ]),
226
226
  isMultilineAddressField: f
227
227
  };
228
- }, ht = /* @__PURE__ */ Ve(void 0), In = ({ children: e, fields: t }) => {
228
+ }, ht = /* @__PURE__ */ Ue(void 0), In = ({ children: e, fields: t }) => {
229
229
  const o = q(() => ({
230
230
  fields: t
231
231
  }), [
@@ -242,11 +242,11 @@ function ue(e) {
242
242
  return t.fields[e];
243
243
  }
244
244
  function pe(e) {
245
- const { t } = Pe(), o = Le(), n = o && lt.getCountryByShortKey(o), l = (n ? n.addressPartDisplayNames : lt.getDefaultAddressDisplayNames())[e];
245
+ const { t } = _e(), o = Le(), n = o && lt.getCountryByShortKey(o), l = (n ? n.addressPartDisplayNames : lt.getDefaultAddressDisplayNames())[e];
246
246
  return l ? t(l) : "";
247
247
  }
248
248
  const ne = ({ children: e }) => {
249
- const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), C = pe("addressLine2"), b = E(e, ne.Label), p = E(e, ne.Input), f = E(e, ne.Description), N = E(e, ne.Error);
249
+ const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = _(), { labelId: y } = T(), C = pe("addressLine2"), b = E(e, ne.Label), p = E(e, ne.Input), f = E(e, ne.Description), N = E(e, ne.Error);
250
250
  return /* @__PURE__ */ r.createElement(u, {
251
251
  fieldId: t,
252
252
  renderLabel: () => F(b, {
@@ -266,7 +266,7 @@ const ne = ({ children: e }) => {
266
266
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, N, f)
267
267
  });
268
268
  }, Ln = ({ className: e }) => {
269
- const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
269
+ const { id: t, placeholder: o } = _(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
270
270
  return ae(() => {
271
271
  var i;
272
272
  (i = l.current) == null || i.focus();
@@ -372,9 +372,9 @@ function Fn() {
372
372
  }
373
373
  return $e = d, $e;
374
374
  }
375
- var Ue, Et;
375
+ var Ve, Et;
376
376
  function hn() {
377
- if (Et) return Ue;
377
+ if (Et) return Ve;
378
378
  Et = 1;
379
379
  var e = gt(), t = Nn(), o = Fn(), n = "Expected a function", a = Math.max, l = Math.min;
380
380
  function i(s, d, m) {
@@ -389,7 +389,7 @@ function hn() {
389
389
  function w(D) {
390
390
  return N = D, p = setTimeout(v, d), S ? A(D) : b;
391
391
  }
392
- function _(D) {
392
+ function P(D) {
393
393
  var J = D - f, Ee = D - N, Ne = d - J;
394
394
  return h ? l(Ne, C - Ee) : Ne;
395
395
  }
@@ -401,7 +401,7 @@ function hn() {
401
401
  var D = t();
402
402
  if (g(D))
403
403
  return me(D);
404
- p = setTimeout(v, _(D));
404
+ p = setTimeout(v, P(D));
405
405
  }
406
406
  function me(D) {
407
407
  return p = void 0, O && u ? A(D) : (u = y = void 0, b);
@@ -424,7 +424,7 @@ function hn() {
424
424
  }
425
425
  return M.cancel = j, M.flush = B, M;
426
426
  }
427
- return Ue = i, Ue;
427
+ return Ve = i, Ve;
428
428
  }
429
429
  var Dn = hn();
430
430
  const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
@@ -433,7 +433,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
433
433
  }, o), [
434
434
  o
435
435
  ]);
436
- return _e(() => {
436
+ return Pe(() => {
437
437
  n.current = e;
438
438
  }, [
439
439
  e,
@@ -441,7 +441,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
441
441
  ]), a;
442
442
  }, An = () => {
443
443
  const e = x(!0);
444
- return _e(() => () => {
444
+ return Pe(() => () => {
445
445
  e.current = !1;
446
446
  }, []), () => e.current;
447
447
  }, bt = {
@@ -492,7 +492,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
492
492
  const t = Ce(We), o = x(t);
493
493
  o.current = t;
494
494
  const n = x(e);
495
- return _e(() => {
495
+ return Pe(() => {
496
496
  const a = e > 0 && n.current === 0;
497
497
  n.current = e;
498
498
  const l = o.current;
@@ -501,13 +501,13 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
501
501
  e
502
502
  ]), null;
503
503
  }, k = ({ children: e }) => {
504
- const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: C } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("addressLine1"), N = E(e, k.Label), S = E(e, k.Input), h = E(e, k.Options), O = E(e, k.Description), A = E(e, k.Error);
504
+ const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = _(), { labelId: C } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("addressLine1"), N = E(e, k.Label), S = E(e, k.Input), h = E(e, k.Options), O = E(e, k.Description), A = E(e, k.Error);
505
505
  return p ? /* @__PURE__ */ r.createElement(u, {
506
506
  fieldId: t,
507
507
  renderLabel: () => F(N, {
508
508
  label: f
509
509
  }),
510
- renderInput: () => /* @__PURE__ */ r.createElement(_n, {
510
+ renderInput: () => /* @__PURE__ */ r.createElement(Pn, {
511
511
  value: o,
512
512
  onChange: n,
513
513
  disabled: a,
@@ -536,7 +536,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
536
536
  }, S),
537
537
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
538
538
  });
539
- }, _n = ({ children: e, value: t, onChange: o, disabled: n, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
539
+ }, Pn = ({ children: e, value: t, onChange: o, disabled: n, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
540
540
  const { labelId: m } = T(), { onAddressSelect: u } = Ie(), y = Le(), C = Ke({
541
541
  enabled: !0
542
542
  }), { predictions: b, updatePredictions: p, clearPredictions: f } = Dt({
@@ -578,7 +578,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
578
578
  d == null || d();
579
579
  }, [
580
580
  d
581
- ]), w = E(e, k.Input), _ = E(e, k.Options);
581
+ ]), w = E(e, k.Input), P = E(e, k.Options);
582
582
  return /* @__PURE__ */ r.createElement(he, {
583
583
  "aria-labelledby": m,
584
584
  inputValue: t ?? "",
@@ -596,13 +596,13 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
596
596
  items: N
597
597
  }, F(w, {
598
598
  onFocus: A
599
- }), F(_, {
599
+ }), F(P, {
600
600
  options: N
601
601
  }), /* @__PURE__ */ r.createElement(Ye, {
602
602
  optionCount: N.length
603
603
  }));
604
- }, Pn = ({ className: e, ...t }) => {
605
- const { id: o, placeholder: n } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = x(null);
604
+ }, _n = ({ className: e, ...t }) => {
605
+ const { id: o, placeholder: n } = _(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = x(null);
606
606
  return ae(() => {
607
607
  var d;
608
608
  (d = s.current) == null || d.focus();
@@ -636,12 +636,12 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
636
636
  };
637
637
  He.Option = Tn;
638
638
  k.Label = de;
639
- k.Input = Pn;
639
+ k.Input = _n;
640
640
  k.Options = He;
641
641
  k.Description = ie;
642
642
  k.Error = ce;
643
643
  const re = ({ children: e }) => {
644
- const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: C } = Pe(), b = C("field.mla-apartment.label"), p = E(e, re.Label), f = E(e, re.Input), N = E(e, re.Description), S = E(e, re.Error);
644
+ const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = _(), { labelId: y } = T(), { t: C } = _e(), b = C("field.mla-apartment.label"), p = E(e, re.Label), f = E(e, re.Input), N = E(e, re.Description), S = E(e, re.Error);
645
645
  return /* @__PURE__ */ r.createElement(u, {
646
646
  fieldId: t,
647
647
  renderLabel: () => F(p, {
@@ -661,7 +661,7 @@ const re = ({ children: e }) => {
661
661
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, S, N)
662
662
  });
663
663
  }, wn = ({ className: e }) => {
664
- const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
664
+ const { id: t, placeholder: o } = _(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
665
665
  return ae(() => {
666
666
  var i;
667
667
  (i = l.current) == null || i.focus();
@@ -678,7 +678,7 @@ re.Input = wn;
678
678
  re.Description = ie;
679
679
  re.Error = ce;
680
680
  const oe = ({ children: e }) => {
681
- const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), C = pe("city"), b = E(e, oe.Label), p = E(e, oe.Input), f = E(e, oe.Description), N = E(e, oe.Error);
681
+ const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = _(), { labelId: y } = T(), C = pe("city"), b = E(e, oe.Label), p = E(e, oe.Input), f = E(e, oe.Description), N = E(e, oe.Error);
682
682
  return /* @__PURE__ */ r.createElement(u, {
683
683
  fieldId: t,
684
684
  renderLabel: () => F(b, {
@@ -698,7 +698,7 @@ const oe = ({ children: e }) => {
698
698
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, N, f)
699
699
  });
700
700
  }, Mn = ({ className: e }) => {
701
- const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
701
+ const { id: t, placeholder: o } = _(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
702
702
  return ae(() => {
703
703
  var i;
704
704
  (i = l.current) == null || i.focus();
@@ -716,7 +716,7 @@ oe.Description = ie;
716
716
  oe.Error = ce;
717
717
  const qn = ({ isOpen: e }) => {
718
718
  const t = Ce(We), o = x(!1);
719
- return _e(() => {
719
+ return Pe(() => {
720
720
  e && t && !t.isOpen && t.open(null, "manual"), e && (t == null ? void 0 : t.selectionManager.focusedKey) != null && t.selectionManager.setFocusedKey(null), !e && o.current && (t == null || t.close()), o.current = e;
721
721
  }, [
722
722
  e,
@@ -775,7 +775,7 @@ const qn = ({ isOpen: e }) => {
775
775
  onInputKeyDown: y
776
776
  };
777
777
  }, Y = ({ children: e, ...t }) => {
778
- const { isForcedOpen: o = !1 } = t, { id: n, value: a, onChange: l, disabled: i, readOnly: s, required: d, hasError: m, onBlur: u, onFocus: y, FieldLayout: C, options: b } = P(), { labelId: p } = T(), { t: f } = Pe(), { language: N } = Ct(), S = q(() => (b || []).reduce((M, D) => (D.value && Oe.hasOwnProperty(D.value) && M.push({
778
+ const { isForcedOpen: o = !1 } = t, { id: n, value: a, onChange: l, disabled: i, readOnly: s, required: d, hasError: m, onBlur: u, onFocus: y, FieldLayout: C, options: b } = _(), { labelId: p } = T(), { t: f } = _e(), { language: N } = Ct(), S = q(() => (b || []).reduce((M, D) => (D.value && Oe.hasOwnProperty(D.value) && M.push({
779
779
  value: D.value,
780
780
  label: f(`locale-dataset.countries.${Oe[D.value].toUpperCase()}`)
781
781
  }), M), []).sort((M, D) => M.label.localeCompare(D.label, N)), [
@@ -792,11 +792,11 @@ const qn = ({ isOpen: e }) => {
792
792
  commit: h,
793
793
  clear: O,
794
794
  onBlur: u
795
- }), _ = pe("country"), g = E(e, Y.Label), v = E(e, Y.Control), me = E(e, Y.Options), j = E(e, Y.Description), B = E(e, Y.Error);
795
+ }), P = pe("country"), g = E(e, Y.Label), v = E(e, Y.Control), me = E(e, Y.Options), j = E(e, Y.Description), B = E(e, Y.Error);
796
796
  return /* @__PURE__ */ r.createElement(C, {
797
797
  fieldId: n,
798
798
  renderLabel: () => F(g, {
799
- label: _
799
+ label: P
800
800
  }),
801
801
  renderInput: () => /* @__PURE__ */ r.createElement(he, {
802
802
  "aria-labelledby": p,
@@ -818,7 +818,7 @@ const qn = ({ isOpen: e }) => {
818
818
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, B, j)
819
819
  });
820
820
  }, ve = ({ children: e, className: t, ...o }) => {
821
- const { disabled: n, hasError: a } = P(), { onKeyDown: l } = o, i = E(e, ve.Input), s = E(e, ve.Trigger);
821
+ const { disabled: n, hasError: a } = _(), { onKeyDown: l } = o, i = E(e, ve.Input), s = E(e, ve.Trigger);
822
822
  return /* @__PURE__ */ r.createElement(Lt, {
823
823
  className: t,
824
824
  isDisabled: n,
@@ -827,7 +827,7 @@ const qn = ({ isOpen: e }) => {
827
827
  onKeyDown: l
828
828
  }), s);
829
829
  }, Bn = ({ className: e, ...t }) => {
830
- const { id: o, placeholder: n, readOnly: a, disabled: l } = P(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = t, m = x(null), u = St({
830
+ const { id: o, placeholder: n, readOnly: a, disabled: l } = _(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = t, m = x(null), u = St({
831
831
  readOnly: a,
832
832
  disabled: l
833
833
  });
@@ -875,10 +875,10 @@ Y.Control = ve;
875
875
  Y.Options = je;
876
876
  Y.Description = ie;
877
877
  Y.Error = ce;
878
- const Un = /(\d{7})|(\d{3}-\d{4})/;
879
- function Vn(e) {
878
+ const Vn = /(\d{7})|(\d{3}-\d{4})/;
879
+ function Un(e) {
880
880
  var t;
881
- return (t = e.match(Un)) == null ? void 0 : t[0];
881
+ return (t = e.match(Vn)) == null ? void 0 : t[0];
882
882
  }
883
883
  function Wn({ isAutocompleteEnabled: e }) {
884
884
  const t = x({
@@ -888,7 +888,7 @@ function Wn({ isAutocompleteEnabled: e }) {
888
888
  });
889
889
  return {
890
890
  searchByPostalCode: R(async (a) => {
891
- const l = Vn(a);
891
+ const l = Un(a);
892
892
  if (l) {
893
893
  if (t.current.postalCode === l && t.current.hasAddress)
894
894
  return t.current.address;
@@ -913,7 +913,7 @@ function Wn({ isAutocompleteEnabled: e }) {
913
913
  };
914
914
  }
915
915
  const $ = ({ children: e }) => {
916
- const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: C } = T(), b = Le(), { autocompleteEnabled: p } = Ie(), f = !!(b && Oe[b] === Oe.JP), N = (y || p) && f, S = pe("zipCode"), h = E(e, $.Label), O = E(e, $.Control), A = E(e, $.Options), w = E(e, $.Description), _ = E(e, $.Error);
916
+ const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = _(), { labelId: C } = T(), b = Le(), { autocompleteEnabled: p } = Ie(), f = !!(b && Oe[b] === Oe.JP), N = (y || p) && f, S = pe("zipCode"), h = E(e, $.Label), O = E(e, $.Control), A = E(e, $.Options), w = E(e, $.Description), P = E(e, $.Error);
917
917
  return N ? /* @__PURE__ */ r.createElement(u, {
918
918
  fieldId: t,
919
919
  renderLabel: () => F(h, {
@@ -929,7 +929,7 @@ const $ = ({ children: e }) => {
929
929
  onBlur: d,
930
930
  onFocus: m
931
931
  }, O, A),
932
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, w)
932
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, P, w)
933
933
  }) : /* @__PURE__ */ r.createElement(u, {
934
934
  fieldId: t,
935
935
  renderLabel: () => F(h, {
@@ -946,7 +946,7 @@ const $ = ({ children: e }) => {
946
946
  onBlur: d,
947
947
  onFocus: m
948
948
  }, O),
949
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, w)
949
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, P, w)
950
950
  });
951
951
  }, Kn = ({ children: e, value: t, onChange: o, disabled: n, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
952
952
  const { labelId: m } = T(), { onAddressSelect: u } = Ie(), [y, C] = be(!1), { searchByPostalCode: b } = Wn({
@@ -978,7 +978,7 @@ const $ = ({ children: e }) => {
978
978
  C(!0), d == null || d();
979
979
  }, [
980
980
  d
981
- ]), w = E(e, $.Control), _ = E(e, $.Options);
981
+ ]), w = E(e, $.Control), P = E(e, $.Options);
982
982
  return /* @__PURE__ */ r.createElement(he, {
983
983
  "aria-labelledby": m,
984
984
  inputValue: t ?? "",
@@ -996,13 +996,13 @@ const $ = ({ children: e }) => {
996
996
  items: N
997
997
  }, F(w, {
998
998
  onFocus: A
999
- }), F(_, {
999
+ }), F(P, {
1000
1000
  options: N
1001
1001
  }), /* @__PURE__ */ r.createElement(Ye, {
1002
1002
  optionCount: N.length
1003
1003
  }));
1004
1004
  }, Je = ({ children: e, className: t, ...o }) => {
1005
- const { disabled: n, hasError: a } = P(), { onFocus: l } = o, i = Le(), s = E(e, Je.Input);
1005
+ const { disabled: n, hasError: a } = _(), { onFocus: l } = o, i = Le(), s = E(e, Je.Input);
1006
1006
  return /* @__PURE__ */ r.createElement("div", {
1007
1007
  className: t,
1008
1008
  "data-country": i || void 0,
@@ -1012,7 +1012,7 @@ const $ = ({ children: e }) => {
1012
1012
  onFocus: l
1013
1013
  }));
1014
1014
  }, Yn = ({ className: e, ...t }) => {
1015
- const { id: o, placeholder: n } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = x(null);
1015
+ const { id: o, placeholder: n } = _(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = x(null);
1016
1016
  return ae(() => {
1017
1017
  var d;
1018
1018
  (d = s.current) == null || d.focus();
@@ -1024,8 +1024,8 @@ const $ = ({ children: e }) => {
1024
1024
  placeholder: n,
1025
1025
  onFocus: i
1026
1026
  });
1027
- }, Xe = ({ children: e, className: t }) => {
1028
- const o = E(e, Xe.Option);
1027
+ }, Ge = ({ children: e, className: t }) => {
1028
+ const o = E(e, Ge.Option);
1029
1029
  return /* @__PURE__ */ r.createElement(De, {
1030
1030
  className: t,
1031
1031
  containerPadding: 0,
@@ -1044,15 +1044,15 @@ const $ = ({ children: e }) => {
1044
1044
  textValue: n
1045
1045
  }, n);
1046
1046
  };
1047
- Xe.Option = Hn;
1047
+ Ge.Option = Hn;
1048
1048
  Je.Input = Yn;
1049
1049
  $.Label = de;
1050
1050
  $.Control = Je;
1051
- $.Options = Xe;
1051
+ $.Options = Ge;
1052
1052
  $.Description = ie;
1053
1053
  $.Error = ce;
1054
- const U = ({ children: e }) => {
1055
- const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: C } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("streetName"), N = E(e, U.Label), S = E(e, U.Input), h = E(e, U.Options), O = E(e, U.Description), A = E(e, U.Error);
1054
+ const V = ({ children: e }) => {
1055
+ const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = _(), { labelId: C } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("streetName"), N = E(e, V.Label), S = E(e, V.Input), h = E(e, V.Options), O = E(e, V.Description), A = E(e, V.Error);
1056
1056
  return p ? /* @__PURE__ */ r.createElement(u, {
1057
1057
  fieldId: t,
1058
1058
  renderLabel: () => F(N, {
@@ -1092,7 +1092,7 @@ const U = ({ children: e }) => {
1092
1092
  enabled: !0
1093
1093
  }), { predictions: b, updatePredictions: p, clearPredictions: f } = Dt({
1094
1094
  atlas: C
1095
- }), N = E(e, U.Input), S = E(e, U.Options), h = q(() => b.reduce((g, v) => (v.searchId && v.description && g.push({
1095
+ }), N = E(e, V.Input), S = E(e, V.Options), h = q(() => b.reduce((g, v) => (v.searchId && v.description && g.push({
1096
1096
  id: v.searchId,
1097
1097
  label: v.description
1098
1098
  }), g), []), [
@@ -1124,7 +1124,7 @@ const U = ({ children: e }) => {
1124
1124
  }, [
1125
1125
  s,
1126
1126
  f
1127
- ]), _ = R(() => {
1127
+ ]), P = R(() => {
1128
1128
  d == null || d();
1129
1129
  }, [
1130
1130
  d
@@ -1140,19 +1140,19 @@ const U = ({ children: e }) => {
1140
1140
  isRequired: l,
1141
1141
  isInvalid: i,
1142
1142
  onBlur: w,
1143
- onFocus: _,
1143
+ onFocus: P,
1144
1144
  allowsCustomValue: !0,
1145
1145
  menuTrigger: "input",
1146
1146
  items: h
1147
1147
  }, F(N, {
1148
- onFocus: _
1148
+ onFocus: P
1149
1149
  }), F(S, {
1150
1150
  options: h
1151
1151
  }), /* @__PURE__ */ r.createElement(Ye, {
1152
1152
  optionCount: h.length
1153
1153
  }));
1154
1154
  }, Jn = ({ className: e, ...t }) => {
1155
- const { id: o, placeholder: n } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = x(null);
1155
+ const { id: o, placeholder: n } = _(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = x(null);
1156
1156
  return ae(() => {
1157
1157
  var d;
1158
1158
  (d = s.current) == null || d.focus();
@@ -1164,8 +1164,8 @@ const U = ({ children: e }) => {
1164
1164
  placeholder: n,
1165
1165
  onFocus: i
1166
1166
  });
1167
- }, Ge = ({ children: e, className: t }) => {
1168
- const o = E(e, Ge.Option);
1167
+ }, Xe = ({ children: e, className: t }) => {
1168
+ const o = E(e, Xe.Option);
1169
1169
  return /* @__PURE__ */ r.createElement(De, {
1170
1170
  className: t,
1171
1171
  containerPadding: 0,
@@ -1176,7 +1176,7 @@ const U = ({ children: e }) => {
1176
1176
  id: n.id,
1177
1177
  label: n.label
1178
1178
  })));
1179
- }, Xn = ({ className: e, ...t }) => {
1179
+ }, Gn = ({ className: e, ...t }) => {
1180
1180
  const { id: o, label: n } = t;
1181
1181
  return /* @__PURE__ */ r.createElement(Se, {
1182
1182
  className: e,
@@ -1184,14 +1184,14 @@ const U = ({ children: e }) => {
1184
1184
  textValue: n
1185
1185
  }, n);
1186
1186
  };
1187
- Ge.Option = Xn;
1188
- U.Label = de;
1189
- U.Input = Jn;
1190
- U.Options = Ge;
1191
- U.Description = ie;
1192
- U.Error = ce;
1187
+ Xe.Option = Gn;
1188
+ V.Label = de;
1189
+ V.Input = Jn;
1190
+ V.Options = Xe;
1191
+ V.Description = ie;
1192
+ V.Error = ce;
1193
1193
  const se = ({ children: e }) => {
1194
- const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), C = pe("streetNumber"), b = E(e, se.Label), p = E(e, se.Input), f = E(e, se.Description), N = E(e, se.Error);
1194
+ const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = _(), { labelId: y } = T(), C = pe("streetNumber"), b = E(e, se.Label), p = E(e, se.Input), f = E(e, se.Description), N = E(e, se.Error);
1195
1195
  return /* @__PURE__ */ r.createElement(u, {
1196
1196
  fieldId: t,
1197
1197
  renderLabel: () => F(b, {
@@ -1210,8 +1210,8 @@ const se = ({ children: e }) => {
1210
1210
  }, p),
1211
1211
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, N, f)
1212
1212
  });
1213
- }, Gn = ({ className: e }) => {
1214
- const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
1213
+ }, Xn = ({ className: e }) => {
1214
+ const { id: t, placeholder: o } = _(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
1215
1215
  return ae(() => {
1216
1216
  var i;
1217
1217
  (i = l.current) == null || i.focus();
@@ -1224,11 +1224,11 @@ const se = ({ children: e }) => {
1224
1224
  });
1225
1225
  };
1226
1226
  se.Label = de;
1227
- se.Input = Gn;
1227
+ se.Input = Xn;
1228
1228
  se.Description = ie;
1229
1229
  se.Error = ce;
1230
1230
  const H = ({ children: e }) => {
1231
- const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: C } = Pe(), b = Le(), p = b ? Oe[b] : void 0, f = b && xt.getCountryByShortKey(b), N = q(() => {
1231
+ const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = _(), { labelId: y } = T(), { t: C } = _e(), b = Le(), p = b ? Oe[b] : void 0, f = b && xt.getCountryByShortKey(b), N = q(() => {
1232
1232
  var B;
1233
1233
  return (Bt(((B = f == null ? void 0 : f.subdivisions) == null ? void 0 : B.list) || [], p) || []).map((M) => ({
1234
1234
  value: M.key,
@@ -1246,7 +1246,7 @@ const H = ({ children: e }) => {
1246
1246
  commit: n,
1247
1247
  clear: S,
1248
1248
  onBlur: d
1249
- }), A = pe("subdivision"), w = E(e, H.Label), _ = E(e, H.Control), g = E(e, H.Options), v = E(e, H.Description), me = E(e, H.Error);
1249
+ }), A = pe("subdivision"), w = E(e, H.Label), P = E(e, H.Control), g = E(e, H.Options), v = E(e, H.Description), me = E(e, H.Error);
1250
1250
  return /* @__PURE__ */ r.createElement(u, {
1251
1251
  fieldId: t,
1252
1252
  renderLabel: () => F(w, {
@@ -1261,7 +1261,7 @@ const H = ({ children: e }) => {
1261
1261
  isInvalid: s,
1262
1262
  onFocus: m,
1263
1263
  menuTrigger: "input"
1264
- }, F(_, {
1264
+ }, F(P, {
1265
1265
  onKeyDown: h
1266
1266
  }), F(g, {
1267
1267
  options: N
@@ -1269,7 +1269,7 @@ const H = ({ children: e }) => {
1269
1269
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, me, v)
1270
1270
  });
1271
1271
  }, Fe = ({ children: e, className: t, ...o }) => {
1272
- const { disabled: n, hasError: a } = P(), { onKeyDown: l } = o, i = E(e, Fe.Input), s = E(e, Fe.Trigger);
1272
+ const { disabled: n, hasError: a } = _(), { onKeyDown: l } = o, i = E(e, Fe.Input), s = E(e, Fe.Trigger);
1273
1273
  return /* @__PURE__ */ r.createElement(Lt, {
1274
1274
  className: t,
1275
1275
  isDisabled: n,
@@ -1278,7 +1278,7 @@ const H = ({ children: e }) => {
1278
1278
  onKeyDown: l
1279
1279
  }), s);
1280
1280
  }, zn = ({ className: e, ...t }) => {
1281
- const { id: o, placeholder: n, readOnly: a, disabled: l } = P(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = t, m = x(null), u = St({
1281
+ const { id: o, placeholder: n, readOnly: a, disabled: l } = _(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = t, m = x(null), u = St({
1282
1282
  readOnly: a,
1283
1283
  disabled: l
1284
1284
  });
@@ -1335,17 +1335,17 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
1335
1335
  [K.MLA_STREET_NUMBER]: lr,
1336
1336
  [K.MLA_APARTMENT]: ir
1337
1337
  }, dr = {}, ur = [], c = ({ children: e }) => {
1338
- const { id: t, form: o, value: n, onChange: a, onFieldBlur: l, onFieldFocus: i, errors: s, FieldLayout: d, fieldSettings: m, label: u, validation: y, target: C, autocompleteEnabled: b, required: p, fieldType: f } = P(), [N, S] = be(null), h = kt(), O = q(() => ({
1338
+ const { id: t, form: o, value: n, onChange: a, onFieldBlur: l, onFieldFocus: i, errors: s, FieldLayout: d, fieldSettings: m, label: u, validation: y, target: C, autocompleteEnabled: b, required: p, fieldType: f } = _(), [N, S] = be(null), h = kt(), O = q(() => ({
1339
1339
  ...h,
1340
1340
  ...cr
1341
1341
  }), [
1342
1342
  h
1343
- ]), { isExperimentEnabled: A } = ft(), w = A(yt.STREETLESS_LOCALITY_FALLBACK), { validateFields: _ } = $t(), g = Ut(), v = It(), me = q(() => ({
1343
+ ]), { isExperimentEnabled: A } = ft(), w = A(yt.STREETLESS_LOCALITY_FALLBACK), { validateFields: P } = $t(), g = Vt(), v = It(), me = q(() => ({
1344
1344
  ...v,
1345
1345
  actions: {
1346
1346
  predict: Kt,
1347
1347
  getPlace: Wt,
1348
- searchByPostalCode: Vt,
1348
+ searchByPostalCode: Ut,
1349
1349
  ...v.actions
1350
1350
  }
1351
1351
  }), [
@@ -1359,12 +1359,12 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
1359
1359
  fieldSettings: m,
1360
1360
  validation: y,
1361
1361
  required: p
1362
- }), M = R((V) => {
1362
+ }), M = R((U) => {
1363
1363
  if (!n)
1364
1364
  return;
1365
- const X = sn(V, B, w), Re = {
1366
- ...X,
1367
- [ye.COUNTRY]: X[ye.COUNTRY] ?? n[ye.COUNTRY]
1365
+ const G = sn(U, B, w), Re = {
1366
+ ...G,
1367
+ [ye.COUNTRY]: G[ye.COUNTRY] ?? n[ye.COUNTRY]
1368
1368
  };
1369
1369
  a == null || a(Re);
1370
1370
  }, [
@@ -1372,39 +1372,39 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
1372
1372
  n,
1373
1373
  B,
1374
1374
  w
1375
- ]), D = R((V, X) => {
1376
- if (B && V === ye.COUNTRY && (n == null ? void 0 : n[V]) !== X) {
1375
+ ]), D = R((U, G) => {
1376
+ if (B && U === ye.COUNTRY && (n == null ? void 0 : n[U]) !== G) {
1377
1377
  a == null || a({
1378
- [ye.COUNTRY]: X
1378
+ [ye.COUNTRY]: G
1379
1379
  });
1380
1380
  return;
1381
1381
  }
1382
1382
  a == null || a({
1383
1383
  ...n,
1384
- [V]: X
1384
+ [U]: G
1385
1385
  });
1386
1386
  }, [
1387
1387
  a,
1388
1388
  n,
1389
1389
  B
1390
- ]), J = R(async (V) => _(B ? [
1391
- ...V,
1390
+ ]), J = R(async (U) => P(B ? [
1391
+ ...U,
1392
1392
  {
1393
1393
  path: `${C}/${ye.COUNTRY}`,
1394
1394
  value: n == null ? void 0 : n.country
1395
1395
  }
1396
- ] : V), [
1396
+ ] : U), [
1397
1397
  n,
1398
1398
  C,
1399
- _,
1399
+ P,
1400
1400
  B
1401
1401
  ]);
1402
1402
  Yt(t, () => {
1403
1403
  var Re;
1404
- const V = s == null ? void 0 : s[0], X = (Re = j == null ? void 0 : j.fields) == null ? void 0 : Re.find((at) => "target" in at && at.target === (V == null ? void 0 : V.errorPath));
1405
- return X == null ? void 0 : X.id;
1404
+ const U = s == null ? void 0 : s[0], G = (Re = j == null ? void 0 : j.fields) == null ? void 0 : Re.find((at) => "target" in at && at.target === (U == null ? void 0 : U.errorPath));
1405
+ return G == null ? void 0 : G.id;
1406
1406
  });
1407
- const Ee = Xt(t), Ne = F(E(e, c.Country), {
1407
+ const Ee = Gt(t), Ne = F(E(e, c.Country), {
1408
1408
  isForcedOpen: Ee
1409
1409
  }), Qe = E(e, c.Subdivision), Ze = E(e, c.City), et = E(e, c.AddressLine), tt = E(e, c.AddressLine2), nt = E(e, c.PostalCode), rt = E(e, c.StreetName), ot = E(e, c.StreetNumber), st = E(e, c.Apartment), At = q(() => ({
1410
1410
  country: Ne,
@@ -1441,7 +1441,7 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
1441
1441
  style: {
1442
1442
  display: "contents"
1443
1443
  }
1444
- }), /* @__PURE__ */ r.createElement(_t, {
1444
+ }), /* @__PURE__ */ r.createElement(Pt, {
1445
1445
  getContainer: () => N
1446
1446
  }, /* @__PURE__ */ r.createElement("fieldset", {
1447
1447
  style: jt
@@ -1466,7 +1466,7 @@ c.City = oe;
1466
1466
  c.AddressLine = k;
1467
1467
  c.AddressLine2 = ne;
1468
1468
  c.PostalCode = $;
1469
- c.StreetName = U;
1469
+ c.StreetName = V;
1470
1470
  c.StreetNumber = se;
1471
1471
  c.Apartment = re;
1472
1472
  const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_comboTrigger_1tire_19", Ae = {
@@ -1474,7 +1474,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
1474
1474
  comboControl: pr,
1475
1475
  comboTrigger: Er
1476
1476
  }, wr = () => {
1477
- const e = Gt(Ae.comboControl), t = rn(), o = tn(we);
1477
+ const e = Xt(Ae.comboControl), t = rn(), o = tn(we);
1478
1478
  return /* @__PURE__ */ r.createElement(c, null, /* @__PURE__ */ r.createElement(c.Country, null, /* @__PURE__ */ r.createElement(c.Country.Label, {
1479
1479
  className: L(z, I.label)
1480
1480
  }, /* @__PURE__ */ r.createElement(c.Country.Label.Required, {
@@ -1495,7 +1495,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
1495
1495
  className: L(Z, I.error)
1496
1496
  }, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.Country.Error.Text, null)), /* @__PURE__ */ r.createElement(c.Country.Description, {
1497
1497
  className: L(ee, I.description)
1498
- }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
1498
+ }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(X, {
1499
1499
  content: n,
1500
1500
  locale: a
1501
1501
  }))), /* @__PURE__ */ r.createElement(c.AddressLine, null, /* @__PURE__ */ r.createElement(c.AddressLine.Label, {
@@ -1512,7 +1512,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
1512
1512
  className: L(Z, I.error)
1513
1513
  }, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.AddressLine.Error.Text, null)), /* @__PURE__ */ r.createElement(c.AddressLine.Description, {
1514
1514
  className: L(ee, I.description)
1515
- }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
1515
+ }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(X, {
1516
1516
  content: n,
1517
1517
  locale: a
1518
1518
  }))), /* @__PURE__ */ r.createElement(c.AddressLine2, null, /* @__PURE__ */ r.createElement(c.AddressLine2.Label, {
@@ -1525,7 +1525,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
1525
1525
  className: L(Z, I.error)
1526
1526
  }, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.AddressLine2.Error.Text, null)), /* @__PURE__ */ r.createElement(c.AddressLine2.Description, {
1527
1527
  className: L(ee, I.description)
1528
- }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
1528
+ }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(X, {
1529
1529
  content: n,
1530
1530
  locale: a
1531
1531
  }))), /* @__PURE__ */ r.createElement(c.City, null, /* @__PURE__ */ r.createElement(c.City.Label, {
@@ -1538,7 +1538,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
1538
1538
  className: L(Z, I.error)
1539
1539
  }, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.City.Error.Text, null)), /* @__PURE__ */ r.createElement(c.City.Description, {
1540
1540
  className: L(ee, I.description)
1541
- }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
1541
+ }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(X, {
1542
1542
  content: n,
1543
1543
  locale: a
1544
1544
  }))), /* @__PURE__ */ r.createElement(c.PostalCode, null, /* @__PURE__ */ r.createElement(c.PostalCode.Label, {
@@ -1557,7 +1557,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
1557
1557
  className: L(Z, I.error)
1558
1558
  }, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.PostalCode.Error.Text, null)), /* @__PURE__ */ r.createElement(c.PostalCode.Description, {
1559
1559
  className: L(ee, I.description)
1560
- }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
1560
+ }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(X, {
1561
1561
  content: n,
1562
1562
  locale: a
1563
1563
  }))), /* @__PURE__ */ r.createElement(c.Subdivision, null, /* @__PURE__ */ r.createElement(c.Subdivision.Label, {
@@ -1580,7 +1580,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
1580
1580
  className: L(Z, I.error)
1581
1581
  }, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.Subdivision.Error.Text, null)), /* @__PURE__ */ r.createElement(c.Subdivision.Description, {
1582
1582
  className: L(ee, I.description)
1583
- }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
1583
+ }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(X, {
1584
1584
  content: n,
1585
1585
  locale: a
1586
1586
  }))), /* @__PURE__ */ r.createElement(c.StreetName, null, /* @__PURE__ */ r.createElement(c.StreetName.Label, {
@@ -1597,7 +1597,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
1597
1597
  className: L(Z, I.error)
1598
1598
  }, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.StreetName.Error.Text, null)), /* @__PURE__ */ r.createElement(c.StreetName.Description, {
1599
1599
  className: L(ee, I.description)
1600
- }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
1600
+ }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(X, {
1601
1601
  content: n,
1602
1602
  locale: a
1603
1603
  }))), /* @__PURE__ */ r.createElement(c.StreetNumber, null, /* @__PURE__ */ r.createElement(c.StreetNumber.Label, {
@@ -1610,7 +1610,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
1610
1610
  className: L(Z, I.error)
1611
1611
  }, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.StreetNumber.Error.Text, null)), /* @__PURE__ */ r.createElement(c.StreetNumber.Description, {
1612
1612
  className: L(ee, I.description)
1613
- }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
1613
+ }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(X, {
1614
1614
  content: n,
1615
1615
  locale: a
1616
1616
  }))), /* @__PURE__ */ r.createElement(c.Apartment, null, /* @__PURE__ */ r.createElement(c.Apartment.Label, {
@@ -1623,7 +1623,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
1623
1623
  className: L(Z, I.error)
1624
1624
  }, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.Apartment.Error.Text, null)), /* @__PURE__ */ r.createElement(c.Apartment.Description, {
1625
1625
  className: L(ee, I.description)
1626
- }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(G, {
1626
+ }, ({ content: n, locale: a }) => /* @__PURE__ */ r.createElement(X, {
1627
1627
  content: n,
1628
1628
  locale: a
1629
1629
  }))));