@wix/form-elements 1.118.0 → 1.120.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 (106) hide show
  1. package/dist/component/{appointment-rac-DOX_XA8U.js → appointment-rac-BmwzUTfZ.js} +4 -4
  2. package/dist/component/{bookings-address-rac-D6F3YmWd.js → bookings-address-rac-CDpBaBGi.js} +1 -1
  3. package/dist/component/{bookings-email-rac-D3fVHUXL.js → bookings-email-rac-8AonBAEP.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-BSsIcog-.js → bookings-first-name-rac-BAF3OLyL.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Cv0Z9j_F.js → bookings-header-rac-DIXxOHe1.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-Cj2lIAjK.js → bookings-last-name-rac-Cm-58BWq.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DBvDJu_E.js → bookings-login-bar-rac-DvaiFVqg.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-D-9o627J.js → bookings-phone-rac-znrjfRwm.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-Cf-IPS0I.js → bookings-rich-text-rac-DFPeWcrH.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-6Udo3s6p.js → checkbox-field-rac-COvxqyF7.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-CDK-eDUl.js → checkbox-group-field-headless-DT1HX61N.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-tCFCFYGV.js → checkbox-group-field-rac-Db1w6Vzm.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-DPh0zkBi.js → checkbox-group-rac-BCgFQJ4P.js} +1 -1
  14. package/dist/component/{checkbox-rac-BkWlb25s.js → checkbox-rac-C1dKq2AT.js} +1 -1
  15. package/dist/component/{contacts-address-rac-Kbkylw5w.js → contacts-address-rac-BoZ2LExb.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-D69wSEFU.js → contacts-birthdate-rac-CX-oJkwP.js} +1 -1
  17. package/dist/component/{contacts-company-rac-B3YJjFvh.js → contacts-company-rac-ByY9oaOX.js} +1 -1
  18. package/dist/component/{contacts-email-rac-C5Duwxh1.js → contacts-email-rac-DBnTEm82.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CoLLOnGW.js → contacts-first-name-rac-Jn-ubMoS.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-0Z7X9SUh.js → contacts-last-name-rac-Wea7_JU-.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BQKx39UA.js → contacts-phone-rac-POYGTwBr.js} +1 -1
  22. package/dist/component/{contacts-position-rac-DAPmVCNi.js → contacts-position-rac-DjDHNTfL.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-ON47-g2O.js → contacts-subscribe-rac-C7vOLrLV.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-Db7VL880.js → contacts-tax-id-rac-C-CVis0b.js} +1 -1
  25. package/dist/component/{date-availability-Cyych3R5.js → date-availability-B3unFx4z.js} +1 -1
  26. package/dist/component/{date-input-field-rac-DsfxwpA-.js → date-input-field-rac-BW0c1-Kl.js} +53 -52
  27. package/dist/component/{date-input-rac-Dpx6hbK8.js → date-input-rac-BW_WuabB.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-l8CuNLev.js → date-picker-field-rac-DgBfvDRc.js} +5 -5
  29. package/dist/component/{date-picker-rac-CoyfVxOX.js → date-picker-rac-B2v-E9tZ.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-BAhjfIcJ.js → date-time-input-field-rac-DNxauQLv.js} +108 -107
  31. package/dist/component/{date-time-input-rac-BGFakUbz.js → date-time-input-rac-DZMQuMlD.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-B876yIKn.js → dext-checkbox-group-rac-B0u3i1v1.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-Ci14Mfa1.js → dext-checkbox-rac-BngAFLbm.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CUsowZYX.js → dext-date-picker-rac-CyPtZQQp.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-DG14fGJr.js → dext-date-time-input-rac-DBm_ZVMr.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-BaJegaba.js → dext-dropdown-rac-DBDOigJS.js} +1 -1
  37. package/dist/component/{dext-email-rac-C49ceNke.js → dext-email-rac-Cj-eerfr.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-CxIJpFXl.js → dext-number-input-rac-WdUIM6bV.js} +1 -1
  39. package/dist/component/{dext-phone-rac-DneuzL2U.js → dext-phone-rac-CH-UDDKr.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-yRrF0Zu7.js → dext-radio-group-rac-umexCSNY.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-Bp1SEpJ-.js → dext-rating-input-rac-ukMPDLxU.js} +1 -1
  42. package/dist/component/{dext-tags-rac-CnXMe-Kt.js → dext-tags-rac-BE8aqyRm.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-DLiYTHQf.js → dext-text-area-rac-GtNDPetb.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-DUkhZFqN.js → dext-text-input-rac-DQhaKaoe.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BcTNeWpI.js → dext-url-input-rac-DogsntOO.js} +1 -1
  46. package/dist/component/{donation-rac-BfhuRU5h.js → donation-rac-C1Se3wmU.js} +5 -5
  47. package/dist/component/dropdown-field-headless-5vi45azS.js +91 -0
  48. package/dist/component/{dropdown-field-rac-DYCQacRr.js → dropdown-field-rac-B0PeCuG6.js} +3 -3
  49. package/dist/component/{dropdown-rac-DXeZuaZ7.js → dropdown-rac--ZgcFbpH.js} +1 -1
  50. package/dist/component/{ecom-address-rac-BGLRC130.js → ecom-address-rac-C1p-fN1j.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-C7qp-tpL.js → ecom-subscription-checkbox-rac-uplYmDWZ.js} +2 -2
  52. package/dist/component/{email-input-field-rac-BqXze1u_.js → email-input-field-rac-C6nqydVv.js} +3 -3
  53. package/dist/component/{events-repeater-rac-Bvet0Fqq.js → events-repeater-rac-CqKFo75H.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-B661R2PY.js → events-rsvp-rac-BBQwW-Jk.js} +3 -3
  55. package/dist/component/{field-error-headless-Tx25j-Iy.js → field-error-headless-COObBNJG.js} +1 -1
  56. package/dist/component/{field-label-headless-D3fAmFRO.js → field-label-headless-DhXceghb.js} +1 -1
  57. package/dist/component/{file-upload-rac-DCBEIiOZ.js → file-upload-rac-B5CnpgIo.js} +4 -4
  58. package/dist/component/{fixed-payment-rac-BqCVDK1W.js → fixed-payment-rac-B8yKRpQV.js} +3 -3
  59. package/dist/component/{form-CJlXWndz.js → form-CimhBiBc.js} +69 -69
  60. package/dist/component/form.js +1 -1
  61. package/dist/component/{header-field-rac-C1SCqCGi.js → header-field-rac-BHgFF-LG.js} +2 -2
  62. package/dist/component/{header-rac-31u5nkR9.js → header-rac-DJttTbow.js} +1 -1
  63. package/dist/component/{image-choice-rac-BAmDUdu_.js → image-choice-rac-C-qj1WBS.js} +4 -4
  64. package/dist/component/{index-B7Ed5GmZ.js → index-9nfSsqJo.js} +4 -4
  65. package/dist/component/{index-BWTxklLR.js → index-Qe91Dgi2.js} +2 -2
  66. package/dist/component/{isObjectLike-CL_ZXuU5.js → isObjectLike-VICRth8V.js} +1 -1
  67. package/dist/component/{multiline-address-field-rac-DgmmawQq.js → multiline-address-field-rac-DMg6V-0L.js} +353 -350
  68. package/dist/component/{multiline-address-rac-T5pfy6VT.js → multiline-address-rac-DpvB5bX9.js} +1 -1
  69. package/dist/component/{number-input-field-rac-C4vBmxka.js → number-input-field-rac-DQERdWaA.js} +4 -4
  70. package/dist/component/{number-input-rac-FXy8C6OS.js → number-input-rac-DY9uyE-k.js} +1 -1
  71. package/dist/component/{password-rac-BLVM1iY1.js → password-rac-cSWH1LPy.js} +4 -4
  72. package/dist/component/{payment-input-rac-BCjR13AI.js → payment-input-rac-BiUNnsQx.js} +4 -4
  73. package/dist/component/{phone-input-field-rac-Dcn7NY2J.js → phone-input-field-rac-CtPGbnw_.js} +27 -26
  74. package/dist/component/{phone-rac-CZysHw73.js → phone-rac-CFeNcp2U.js} +1 -1
  75. package/dist/component/{product-list-rac-CQ5dtVQ7.js → product-list-rac-DzhnEmL_.js} +4 -4
  76. package/dist/component/{quiz-radio-group-rac-DYt0ayX-.js → quiz-radio-group-rac-BpsPgebu.js} +1 -1
  77. package/dist/component/{radio-button-module-classes-z_fzw3Xa.js → radio-button-module-classes-NBKHsJH7.js} +3 -3
  78. package/dist/component/{radio-group-field-rac-DRatTDFh.js → radio-group-field-rac-C2oTt1mT.js} +4 -4
  79. package/dist/component/{radio-group-rac-BBtqYnNc.js → radio-group-rac-oINHZ5yY.js} +1 -1
  80. package/dist/component/{rating-input-field-rac-CmhwF5vm.js → rating-input-field-rac-fnv2RdUA.js} +4 -4
  81. package/dist/component/{rating-input-rac-COXzdcQ2.js → rating-input-rac-BFofFzSX.js} +1 -1
  82. package/dist/component/{rich-content-rac.module--2mwLD8u.js → rich-content-rac.module-BplXvCt6.js} +1 -1
  83. package/dist/component/{rich-text-field-rac-XxbjaZ7E.js → rich-text-field-rac-Csi4_gCV.js} +2 -2
  84. package/dist/component/{rich-text-rac-DRLWz1SC.js → rich-text-rac-Btu1y3LR.js} +1 -1
  85. package/dist/component/{service-dropdown-rac-DDrq6eWp.js → service-dropdown-rac-CzZW7Bp1.js} +4 -4
  86. package/dist/component/{services-multi-choice-rac-Dbc_AWQt.js → services-multi-choice-rac-B2rAg7VN.js} +5 -5
  87. package/dist/component/{signature-rac-BL_38fV-.js → signature-rac-tznFgZ4j.js} +3 -3
  88. package/dist/component/{submit-button-rac-7jEdBomF.js → submit-button-rac-DnHWbtTC.js} +1 -1
  89. package/dist/component/{tags-field-rac-D0IkpR9t.js → tags-field-rac-DFm9o85s.js} +5 -5
  90. package/dist/component/{tags-rac-B-2Uj1av.js → tags-rac-CJFccYp5.js} +1 -1
  91. package/dist/component/{text-area-field-rac-viHeHjEN.js → text-area-field-rac-C4UEZOjz.js} +4 -4
  92. package/dist/component/{text-area-rac-BAERMJFz.js → text-area-rac-Dhsq1l8f.js} +1 -1
  93. package/dist/component/{text-input-field-rac-C5DpFoUx.js → text-input-field-rac-DiW0Sqj_.js} +3 -3
  94. package/dist/component/{text-input-headless-VO6IlfBC.js → text-input-headless-u1_aFnZ1.js} +3 -3
  95. package/dist/component/{text-input-rac-B2W3Z2v6.js → text-input-rac-COy-c4N_.js} +1 -1
  96. package/dist/component/{time-input-rac-CPbkv18u.js → time-input-rac-DipZQTZN.js} +4 -4
  97. package/dist/component/{url-input-field-rac-BeJpz4ul.js → url-input-field-rac-DhBCGvKd.js} +4 -4
  98. package/dist/component/{url-input-rac-BD6Opv2A.js → url-input-rac-kw4gCDbc.js} +1 -1
  99. package/dist/component/use-dropdown-option-class-name-Bes6rpX4.js +115 -0
  100. package/dist/component/{use-element-state-class-name-BNSdoQqN.js → use-element-state-class-name-_GWfwpEf.js} +1 -1
  101. package/dist/component/{use-is-forced-open-dropdown-BiTXTz0Y.js → use-is-forced-open-dropdown-RE1Ml2A3.js} +1 -1
  102. package/dist/component/{use-service-options-base-C2JFwqLm.js → use-service-options-base-4yrjmSWU.js} +1 -1
  103. package/dist/component/{use-text-input-class-name-y4KCMeRh.js → use-text-input-class-name-uMLXv54u.js} +2 -2
  104. package/package.json +2 -2
  105. package/dist/component/dropdown-field-headless-D_Yo2BrI.js +0 -89
  106. package/dist/component/use-dropdown-option-class-name-DHYzKeNV.js +0 -21
@@ -1,25 +1,25 @@
1
1
  import { RicosViewer as X } from "@wix/ricos/viewer";
2
2
  import L from "classnames";
3
- import r, { useMemo as q, createContext as We, useContext as Ce, useState as be, useRef as x, useCallback as R, useEffect as Pe } from "react";
3
+ import r, { useMemo as q, createContext as We, useContext as Ce, useState as be, useRef as x, useCallback as R, useEffect as _e } from "react";
4
4
  import { UNSAFE_PortalProvider as Pt } from "react-aria";
5
- import { b4 as yt, d as Ct, a$ as Tt, b1 as It, aE as Mt, aF as wt, ay as qt, aD as V, F as K, bj as Te, aU as lt, b9 as P, b6 as T, bb as ae, b5 as Lt, aJ as xt, C as ve, aS as Bt, aW as kt, bg as $t, ba as Ut, bf as Wt, aZ as Vt, aO as Kt, aY as Yt, bc as Ht, ae as jt, I as z, U as Q, t as it, K as ge, v as Z, p as ee } from "./form-CJlXWndz.js";
5
+ import { b4 as yt, d as Ct, a$ as Tt, b1 as It, aE as Mt, aF as wt, ay as qt, aD as V, F as K, bj as Pe, aU as lt, b9 as P, b6 as T, bb as ae, b5 as Lt, aJ as xt, C as ve, aS as Bt, aW as kt, bg as $t, ba as Ut, bf as Wt, aZ as Vt, aO as Kt, aY as Yt, bc as Ht, ae as jt, I as z, U as Q, t as it, K as Oe, v as Z, p as ee } from "./form-CimhBiBc.js";
6
6
  import { f as E, a as F } from "./find-child-C60k4CxG.js";
7
7
  import { F as Jt, V as Gt } from "./headless-styles-CmcyA_pi.js";
8
- import { u as Xt } from "./use-is-forced-open-dropdown-BiTXTz0Y.js";
9
- import { TextField as fe, Input as le, ComboBoxStateContext as Ve, ComboBox as De, Popover as Se, ListBox as Re, ListBoxItem as Ae, Group as Nt, Button as gt } from "react-aria-components";
10
- import { D as ie, E as ce } from "./field-error-headless-Tx25j-Iy.js";
11
- import { L as de } from "./field-label-headless-D3fAmFRO.js";
12
- import { e as zt, c as Qt, a as Zt, r as Ot } from "./isObjectLike-CL_ZXuU5.js";
13
- import { u as en } from "./use-invoke-callback-UH73A_J3.js";
8
+ import { u as Xt } from "./use-is-forced-open-dropdown-RE1Ml2A3.js";
9
+ import { TextField as fe, Input as le, ComboBoxStateContext as Ve, ComboBox as De, Popover as Se, ListBox as Te, ListBoxItem as Re, Group as Nt, Button as Ot } from "react-aria-components";
10
+ import { D as ie, E as ce } from "./field-error-headless-COObBNJG.js";
11
+ import { L as de } from "./field-label-headless-DhXceghb.js";
12
+ import { e as zt, c as Qt, a as Zt, r as gt } from "./isObjectLike-VICRth8V.js";
13
+ import { V as en, u as tn } from "./use-dropdown-option-class-name-Bes6rpX4.js";
14
+ import { u as nn } from "./use-invoke-callback-UH73A_J3.js";
14
15
  import { C as ct } from "./chevron-down-icon-CcpVm6B-.js";
15
16
  import { E as te } from "./error-icon-hZxQ6DEy.js";
16
17
  import { H as Me } from "./custom-focus-class-_483Pkwp.js";
17
18
  import { s as C } from "./field-rac.module-B4l_0KRU.js";
18
- import { u as tn } from "./use-dropdown-option-class-name-DHYzKeNV.js";
19
- import { u as nn } from "./use-text-input-class-name-y4KCMeRh.js";
20
- const rn = (e, t, o) => {
21
- var l, a, i, s;
22
- const n = (l = e.steps) == null ? void 0 : l.map((d) => {
19
+ import { u as rn } from "./use-text-input-class-name-uMLXv54u.js";
20
+ const on = (e, t, o) => {
21
+ var a, l, i, s;
22
+ const n = (a = e.steps) == null ? void 0 : a.map((d) => {
23
23
  var m, u, y, I, b, p;
24
24
  return {
25
25
  ...d,
@@ -35,7 +35,7 @@ const rn = (e, t, o) => {
35
35
  }
36
36
  };
37
37
  });
38
- return (s = (i = (a = n == null ? void 0 : n[0].layout) == null ? void 0 : a.large) == null ? void 0 : i.items) == null || s.unshift(o), {
38
+ return (s = (i = (l = n == null ? void 0 : n[0].layout) == null ? void 0 : l.large) == null ? void 0 : i.items) == null || s.unshift(o), {
39
39
  ...e,
40
40
  fields: [
41
41
  t,
@@ -47,14 +47,14 @@ const rn = (e, t, o) => {
47
47
  var ye = /* @__PURE__ */ (function(e) {
48
48
  return e.COUNTRY = "country", e.SUBDIVISION = "subdivision", e.CITY = "city", e.ADDRESS_LINE = "addressLine", e.ADDRESS_LINE_2 = "addressLine2", e.POSTAL_CODE = "postalCode", e.STREET_NAME = "streetName", e.STREET_NUMBER = "streetNumber", e.APARTMENT = "apartment", e;
49
49
  })({});
50
- function on(e, t, o = !1) {
51
- const { country: n, subdivision: l, city: a, addressLine: i, streetAddress: s, addressLine2: d, postalCode: m } = e, u = {};
52
- return t ? (n && (u.country = n), l && (u.subdivision = l), a && (u.city = a), 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), l && (u.subdivision = l), a && (u.city = a), 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;
50
+ function sn(e, t, o = !1) {
51
+ const { country: n, subdivision: a, city: l, addressLine: i, streetAddress: s, addressLine2: d, postalCode: m } = e, u = {};
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
54
  const vt = /* @__PURE__ */ We({
55
55
  onAddressSelect: () => {
56
56
  }
57
- }), sn = ({ children: e, onAddressSelect: t, autocompleteEnabled: o }) => {
57
+ }), an = ({ children: e, onAddressSelect: t, autocompleteEnabled: o }) => {
58
58
  const n = q(() => ({
59
59
  onAddressSelect: t,
60
60
  autocompleteEnabled: o
@@ -69,7 +69,7 @@ const vt = /* @__PURE__ */ We({
69
69
  function Ie() {
70
70
  return Ce(vt);
71
71
  }
72
- const Ft = /* @__PURE__ */ We(void 0), an = ({ children: e, countryCode: t }) => {
72
+ const Ft = /* @__PURE__ */ We(void 0), ln = ({ children: e, countryCode: t }) => {
73
73
  const o = q(() => ({
74
74
  countryCode: t
75
75
  }), [
@@ -86,19 +86,19 @@ function Le() {
86
86
  function we(e) {
87
87
  return e != null;
88
88
  }
89
- function ln(e, t, o) {
89
+ function cn(e, t, o) {
90
90
  return !t || !o ? e : {
91
91
  ...e,
92
92
  fields: (e.fields ?? []).map((n) => {
93
- const { show: l, ...a } = t[n.target] || {}, { required: i } = o[n.target] || {};
93
+ const { show: a, ...l } = t[n.target] || {}, { required: i } = o[n.target] || {};
94
94
  return {
95
95
  ...n,
96
96
  view: {
97
97
  ...n.view,
98
- ...a
98
+ ...l
99
99
  },
100
- ...we(l) && {
101
- hidden: !l
100
+ ...we(a) && {
101
+ hidden: !a
102
102
  },
103
103
  ...we(i) && we(n.validation) && {
104
104
  validation: {
@@ -110,31 +110,31 @@ function ln(e, t, o) {
110
110
  })
111
111
  };
112
112
  }
113
- const cn = (e, t) => e.map((o) => ({
113
+ const dn = (e, t) => e.map((o) => ({
114
114
  ...o,
115
115
  id: ("target" in o ? t[o.target] : void 0) ?? o.id
116
- })), ht = 12, dn = (e) => {
116
+ })), ht = 12, un = (e) => {
117
117
  const t = e.filter((n) => !n.properties.hidden), o = e.filter((n) => n.properties.hidden);
118
118
  return {
119
119
  visibleFields: t,
120
120
  hiddenFields: o
121
121
  };
122
- }, un = (e) => {
122
+ }, mn = (e) => {
123
123
  const t = {};
124
124
  return e.forEach((o) => {
125
125
  const n = o.layout.row;
126
126
  t[n] || (t[n] = []), t[n].push(o);
127
127
  }), t;
128
- }, mn = (e) => {
128
+ }, pn = (e) => {
129
129
  const t = {};
130
130
  return Object.keys(e).forEach((o) => {
131
- const n = parseInt(o, 10), l = e[n];
132
- l.reduce((i, s) => i + s.layout.width, 0) !== ht && (t[n] = l);
131
+ const n = parseInt(o, 10), a = e[n];
132
+ a.reduce((i, s) => i + s.layout.width, 0) !== ht && (t[n] = a);
133
133
  }), t;
134
- }, pn = (e, t) => e.map((o) => {
134
+ }, En = (e, t) => e.map((o) => {
135
135
  const n = o.layout.row;
136
136
  if (t[n] && !o.properties.hidden) {
137
- const l = t[n], a = l.length, i = ht / a, s = l.findIndex((m) => m.id === o.id), d = i * s;
137
+ const a = t[n], l = a.length, i = ht / l, s = a.findIndex((m) => m.id === o.id), d = i * s;
138
138
  return {
139
139
  ...o,
140
140
  layout: {
@@ -145,28 +145,28 @@ const cn = (e, t) => e.map((o) => ({
145
145
  };
146
146
  }
147
147
  return o;
148
- }), En = (e, t, o) => {
149
- const n = Math.max(...t.map((l) => l.layout.row), -1);
150
- return e.map((l) => {
151
- if (l.properties.hidden) {
152
- const a = o.findIndex((i) => i.id === l.id);
148
+ }), bn = (e, t, o) => {
149
+ const n = Math.max(...t.map((a) => a.layout.row), -1);
150
+ return e.map((a) => {
151
+ if (a.properties.hidden) {
152
+ const l = o.findIndex((i) => i.id === a.id);
153
153
  return {
154
- ...l,
154
+ ...a,
155
155
  layout: {
156
- ...l.layout,
157
- row: n + 1 + a
156
+ ...a.layout,
157
+ row: n + 1 + l
158
158
  }
159
159
  };
160
160
  }
161
- return l;
161
+ return a;
162
162
  });
163
- }, bn = (e) => {
164
- const { visibleFields: t, hiddenFields: o } = dn(e.fields), n = un(t), l = mn(n), a = pn(e.fields, l), i = En(a, t, o);
163
+ }, fn = (e) => {
164
+ const { visibleFields: t, hiddenFields: o } = un(e.fields), n = mn(t), a = pn(n), l = En(e.fields, a), i = bn(l, t, o);
165
165
  return {
166
166
  ...e,
167
167
  fields: i
168
168
  };
169
- }, fn = () => ({
169
+ }, yn = () => ({
170
170
  country: V(),
171
171
  subdivision: V(),
172
172
  city: V(),
@@ -176,34 +176,34 @@ const cn = (e, t) => e.map((o) => ({
176
176
  street_name: V(),
177
177
  street_number: V(),
178
178
  apartment: V()
179
- }), yn = ({ id: e, target: t, fieldType: o, form: n, country: l, fieldSettings: a, validation: i, required: s }) => {
180
- const [d] = be(fn), { isExperimentEnabled: m } = yt(), u = m(Ct.USE_FIELDS_V2), { getCountryAddressForm: y } = Tt(), { isMobile: I, breakpoint: b } = It(), p = y(l), f = o === K.MULTILINE_ADDRESS || o === K.BOOKINGS_ADDRESS, N = q(() => {
181
- var O;
182
- return Mt(s, (O = i == null ? void 0 : i.predefined) == null ? void 0 : O.multilineAddressOptions);
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 } = yt(), u = m(Ct.USE_FIELDS_V2), { getCountryAddressForm: y } = Tt(), { isMobile: I, breakpoint: b } = It(), p = y(a), f = o === K.MULTILINE_ADDRESS || o === K.BOOKINGS_ADDRESS, N = q(() => {
181
+ var g;
182
+ return Mt(s, (g = i == null ? void 0 : i.predefined) == null ? void 0 : g.multilineAddressOptions);
183
183
  }, [
184
184
  i,
185
185
  s
186
186
  ]), S = q(() => wt(), []);
187
187
  return {
188
188
  form: q(() => {
189
- var _, g;
189
+ var _, O;
190
190
  if (!f || !p)
191
191
  return n && {
192
192
  ...n,
193
- fields: cn(n.fields, d)
193
+ fields: dn(n.fields, d)
194
194
  };
195
- const O = qt({
195
+ const g = qt({
196
196
  useFieldsV2: u,
197
197
  path: t,
198
198
  parentId: e,
199
199
  includeHiddenFields: !0,
200
200
  isMobile: I,
201
201
  breakpoint: b,
202
- form: ln(rn(p, N, S), a, (g = (_ = i == null ? void 0 : i.predefined) == null ? void 0 : _.multilineAddressOptions) == null ? void 0 : g.fields)
202
+ form: cn(on(p, N, S), l, (O = (_ = i == null ? void 0 : i.predefined) == null ? void 0 : _.multilineAddressOptions) == null ? void 0 : O.fields)
203
203
  });
204
- if (!O.fields.some((v) => v.properties.hidden))
205
- return O;
206
- const M = bn(O);
204
+ if (!g.fields.some((v) => v.properties.hidden))
205
+ return g;
206
+ const M = fn(g);
207
207
  return {
208
208
  ...M,
209
209
  fields: M.fields.filter((v) => !v.properties.hidden)
@@ -212,7 +212,7 @@ const cn = (e, t) => e.map((o) => ({
212
212
  p,
213
213
  n,
214
214
  d,
215
- a,
215
+ l,
216
216
  i,
217
217
  t,
218
218
  N,
@@ -225,7 +225,7 @@ const cn = (e, t) => e.map((o) => ({
225
225
  ]),
226
226
  isMultilineAddressField: f
227
227
  };
228
- }, Dt = /* @__PURE__ */ We(void 0), Cn = ({ children: e, fields: t }) => {
228
+ }, Dt = /* @__PURE__ */ We(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 } = Te(), o = Le(), n = o && lt.getCountryByShortKey(o), a = (n ? n.addressPartDisplayNames : lt.getDefaultAddressDisplayNames())[e];
246
- return a ? t(a) : "";
245
+ const { t } = Pe(), o = Le(), n = o && lt.getCountryByShortKey(o), l = (n ? n.addressPartDisplayNames : lt.getDefaultAddressDisplayNames())[e];
246
+ return l ? t(l) : "";
247
247
  }
248
248
  const ne = ({ children: e }) => {
249
- const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), I = 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 } = P(), { labelId: y } = T(), I = 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, {
@@ -256,8 +256,8 @@ const ne = ({ children: e }) => {
256
256
  "aria-labelledby": y,
257
257
  value: o ?? "",
258
258
  onChange: n,
259
- isDisabled: l,
260
- isReadOnly: a,
259
+ isDisabled: a,
260
+ isReadOnly: l,
261
261
  isRequired: i,
262
262
  isInvalid: s,
263
263
  onBlur: d,
@@ -265,37 +265,37 @@ const ne = ({ children: e }) => {
265
265
  }, p),
266
266
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, N, f)
267
267
  });
268
- }, In = ({ className: e }) => {
269
- const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: l } = T(), a = x(null);
268
+ }, Ln = ({ className: e }) => {
269
+ const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
270
270
  return ae(() => {
271
271
  var i;
272
- (i = a.current) == null || i.focus();
272
+ (i = l.current) == null || i.focus();
273
273
  }, t), /* @__PURE__ */ r.createElement(le, {
274
- ref: a,
274
+ ref: l,
275
275
  id: n,
276
- "aria-describedby": l,
276
+ "aria-describedby": a,
277
277
  className: e,
278
278
  placeholder: o
279
279
  });
280
280
  };
281
281
  ne.Label = de;
282
- ne.Input = In;
282
+ ne.Input = Ln;
283
283
  ne.Description = ie;
284
284
  ne.Error = ce;
285
285
  const Ke = ({ enabled: e }) => {
286
- const { actions: t } = Lt(), [o, n] = be(V()), l = R(() => n(V()), []);
286
+ const { actions: t } = Lt(), [o, n] = be(V()), a = R(() => n(V()), []);
287
287
  return q(() => {
288
- const { predict: a, getPlace: i, searchByPostalCode: s } = t ?? {};
289
- if (!(!e || !a || !i || !s))
288
+ const { predict: l, getPlace: i, searchByPostalCode: s } = t ?? {};
289
+ if (!(!e || !l || !i || !s))
290
290
  return {
291
- predict: (d) => a({
291
+ predict: (d) => l({
292
292
  ...d,
293
293
  sessionToken: o
294
294
  }),
295
295
  getPlace: (d) => i({
296
296
  ...d,
297
297
  sessionToken: o,
298
- refreshSessionToken: l
298
+ refreshSessionToken: a
299
299
  }),
300
300
  searchByPostalCode: (d) => s({
301
301
  ...d,
@@ -306,11 +306,11 @@ const Ke = ({ enabled: e }) => {
306
306
  e,
307
307
  t,
308
308
  o,
309
- l
309
+ a
310
310
  ]);
311
311
  };
312
312
  var qe, dt;
313
- function Ln() {
313
+ function Nn() {
314
314
  if (dt) return qe;
315
315
  dt = 1;
316
316
  var e = zt(), t = function() {
@@ -319,7 +319,7 @@ function Ln() {
319
319
  return qe = t, qe;
320
320
  }
321
321
  var xe, ut;
322
- function Nn() {
322
+ function On() {
323
323
  if (ut) return xe;
324
324
  ut = 1;
325
325
  var e = /\s/;
@@ -334,27 +334,27 @@ var Be, mt;
334
334
  function gn() {
335
335
  if (mt) return Be;
336
336
  mt = 1;
337
- var e = Nn(), t = /^\s+/;
337
+ var e = On(), t = /^\s+/;
338
338
  function o(n) {
339
339
  return n && n.slice(0, e(n) + 1).replace(t, "");
340
340
  }
341
341
  return Be = o, Be;
342
342
  }
343
343
  var ke, pt;
344
- function On() {
344
+ function vn() {
345
345
  if (pt) return ke;
346
346
  pt = 1;
347
347
  var e = Qt(), t = Zt(), o = "[object Symbol]";
348
- function n(l) {
349
- return typeof l == "symbol" || t(l) && e(l) == o;
348
+ function n(a) {
349
+ return typeof a == "symbol" || t(a) && e(a) == o;
350
350
  }
351
351
  return ke = n, ke;
352
352
  }
353
353
  var $e, Et;
354
- function vn() {
354
+ function Fn() {
355
355
  if (Et) return $e;
356
356
  Et = 1;
357
- var e = gn(), t = Ot(), o = On(), n = NaN, l = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, i = /^0o[0-7]+$/i, s = parseInt;
357
+ var e = gn(), t = gt(), o = vn(), n = NaN, a = /^[-+]0x[0-9a-f]+$/i, l = /^0b[01]+$/i, i = /^0o[0-7]+$/i, s = parseInt;
358
358
  function d(m) {
359
359
  if (typeof m == "number")
360
360
  return m;
@@ -367,21 +367,21 @@ function vn() {
367
367
  if (typeof m != "string")
368
368
  return m === 0 ? m : +m;
369
369
  m = e(m);
370
- var y = a.test(m);
371
- return y || i.test(m) ? s(m.slice(2), y ? 2 : 8) : l.test(m) ? n : +m;
370
+ var y = l.test(m);
371
+ return y || i.test(m) ? s(m.slice(2), y ? 2 : 8) : a.test(m) ? n : +m;
372
372
  }
373
373
  return $e = d, $e;
374
374
  }
375
375
  var Ue, bt;
376
- function Fn() {
376
+ function hn() {
377
377
  if (bt) return Ue;
378
378
  bt = 1;
379
- var e = Ot(), t = Ln(), o = vn(), n = "Expected a function", l = Math.max, a = Math.min;
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) {
381
- var u, y, I, b, p, f, N = 0, S = !1, h = !1, O = !0;
381
+ var u, y, I, b, p, f, N = 0, S = !1, h = !1, g = !0;
382
382
  if (typeof s != "function")
383
383
  throw new TypeError(n);
384
- d = o(d) || 0, e(m) && (S = !!m.leading, h = "maxWait" in m, I = h ? l(o(m.maxWait) || 0, d) : I, O = "trailing" in m ? !!m.trailing : O);
384
+ d = o(d) || 0, e(m) && (S = !!m.leading, h = "maxWait" in m, I = h ? a(o(m.maxWait) || 0, d) : I, g = "trailing" in m ? !!m.trailing : g);
385
385
  function A(D) {
386
386
  var J = u, Ee = y;
387
387
  return u = y = void 0, N = D, b = s.apply(Ee, J), b;
@@ -391,20 +391,20 @@ function Fn() {
391
391
  }
392
392
  function _(D) {
393
393
  var J = D - f, Ee = D - N, Ne = d - J;
394
- return h ? a(Ne, I - Ee) : Ne;
394
+ return h ? l(Ne, I - Ee) : Ne;
395
395
  }
396
- function g(D) {
396
+ function O(D) {
397
397
  var J = D - f, Ee = D - N;
398
398
  return f === void 0 || J >= d || J < 0 || h && Ee >= I;
399
399
  }
400
400
  function v() {
401
401
  var D = t();
402
- if (g(D))
402
+ if (O(D))
403
403
  return me(D);
404
404
  p = setTimeout(v, _(D));
405
405
  }
406
406
  function me(D) {
407
- return p = void 0, O && u ? A(D) : (u = y = void 0, b);
407
+ return p = void 0, g && u ? A(D) : (u = y = void 0, b);
408
408
  }
409
409
  function j() {
410
410
  p !== void 0 && clearTimeout(p), N = 0, u = f = y = p = void 0;
@@ -413,7 +413,7 @@ function Fn() {
413
413
  return p === void 0 ? b : me(t());
414
414
  }
415
415
  function w() {
416
- var D = t(), J = g(D);
416
+ var D = t(), J = O(D);
417
417
  if (u = arguments, y = this, f = D, J) {
418
418
  if (p === void 0)
419
419
  return M(f);
@@ -426,31 +426,31 @@ function Fn() {
426
426
  }
427
427
  return Ue = i, Ue;
428
428
  }
429
- var hn = Fn();
430
- const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
431
- const n = x(e), l = R(Dn((...a) => {
432
- n.current(...a);
429
+ var Dn = hn();
430
+ const Sn = /* @__PURE__ */ xt(Dn), Rn = (e, t, o = 200) => {
431
+ const n = x(e), a = R(Sn((...l) => {
432
+ n.current(...l);
433
433
  }, o), [
434
434
  o
435
435
  ]);
436
- return Pe(() => {
436
+ return _e(() => {
437
437
  n.current = e;
438
438
  }, [
439
439
  e,
440
440
  t
441
- ]), l;
442
- }, Rn = () => {
441
+ ]), a;
442
+ }, An = () => {
443
443
  const e = x(!0);
444
- return Pe(() => () => {
444
+ return _e(() => () => {
445
445
  e.current = !1;
446
446
  }, []), () => e.current;
447
447
  }, ft = {
448
448
  loading: !1,
449
449
  predictions: []
450
450
  }, St = ({ atlas: e, onError: t }) => {
451
- const [{ loading: n, predictions: l }, a] = be(ft), i = x(0), s = Rn(), d = R(() => {
452
- i.current++, a(ft);
453
- }, []), m = Sn(async ({ input: u, countryCodes: y }) => {
451
+ const [{ loading: n, predictions: a }, l] = be(ft), i = x(0), s = An(), d = R(() => {
452
+ i.current++, l(ft);
453
+ }, []), m = Rn(async ({ input: u, countryCodes: y }) => {
454
454
  if (!e || !s())
455
455
  return;
456
456
  if (!u) {
@@ -458,7 +458,7 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
458
458
  return;
459
459
  }
460
460
  const I = ++i.current;
461
- a((p) => ({
461
+ l((p) => ({
462
462
  ...p,
463
463
  loading: !0
464
464
  }));
@@ -472,7 +472,7 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
472
472
  t ? t(p) : console.error(p);
473
473
  } finally {
474
474
  const p = I === i.current;
475
- s() && p && a((f) => ({
475
+ s() && p && l((f) => ({
476
476
  loading: !1,
477
477
  // set new predictions if fetched properly, else keep current predictions
478
478
  predictions: b || f.predictions
@@ -483,7 +483,7 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
483
483
  t
484
484
  ], 200);
485
485
  return {
486
- predictions: l,
486
+ predictions: a,
487
487
  loading: n,
488
488
  updatePredictions: m,
489
489
  clearPredictions: d
@@ -492,32 +492,32 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
492
492
  const t = Ce(Ve), o = x(t);
493
493
  o.current = t;
494
494
  const n = x(e);
495
- return Pe(() => {
496
- const l = e > 0 && n.current === 0;
495
+ return _e(() => {
496
+ const a = e > 0 && n.current === 0;
497
497
  n.current = e;
498
- const a = o.current;
499
- l && (a != null && a.isFocused) && !a.isOpen && a.open(null, "manual");
498
+ const l = o.current;
499
+ a && (l != null && l.isFocused) && !l.isOpen && l.open(null, "manual");
500
500
  }, [
501
501
  e
502
502
  ]), null;
503
503
  }, k = ({ children: e }) => {
504
- const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = 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 } = P(), { labelId: I } = 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), g = 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(An, {
510
+ renderInput: () => /* @__PURE__ */ r.createElement(_n, {
511
511
  value: o,
512
512
  onChange: n,
513
- disabled: l,
514
- readOnly: a,
513
+ disabled: a,
514
+ readOnly: l,
515
515
  required: i,
516
516
  hasError: s,
517
517
  onBlur: d,
518
518
  onFocus: m
519
519
  }, S, h),
520
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
520
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, g)
521
521
  }) : /* @__PURE__ */ r.createElement(u, {
522
522
  fieldId: t,
523
523
  renderLabel: () => F(N, {
@@ -527,49 +527,49 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
527
527
  "aria-labelledby": I,
528
528
  value: o ?? "",
529
529
  onChange: n,
530
- isDisabled: l,
531
- isReadOnly: a,
530
+ isDisabled: a,
531
+ isReadOnly: l,
532
532
  isRequired: i,
533
533
  isInvalid: s,
534
534
  onBlur: d,
535
535
  onFocus: m
536
536
  }, S),
537
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
537
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, g)
538
538
  });
539
- }, An = ({ children: e, value: t, onChange: o, disabled: n, readOnly: l, required: a, hasError: i, onBlur: s, onFocus: d }) => {
539
+ }, _n = ({ 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(), I = Ke({
541
541
  enabled: !0
542
542
  }), { predictions: b, updatePredictions: p, clearPredictions: f } = St({
543
543
  atlas: I
544
- }), N = q(() => b.map((g) => ({
545
- id: g.searchId || "",
546
- label: g.description || ""
544
+ }), N = q(() => b.map((O) => ({
545
+ id: O.searchId || "",
546
+ label: O.description || ""
547
547
  })), [
548
548
  b
549
- ]), S = R((g) => {
549
+ ]), S = R((O) => {
550
550
  p({
551
- input: g,
551
+ input: O,
552
552
  countryCodes: y ? [
553
553
  y
554
554
  ] : void 0
555
- }), o(g);
555
+ }), o(O);
556
556
  }, [
557
557
  o,
558
558
  p,
559
559
  y
560
- ]), h = R(async (g) => {
561
- if (!g)
560
+ ]), h = R(async (O) => {
561
+ if (!O)
562
562
  return;
563
563
  f();
564
564
  const v = await (I == null ? void 0 : I.getPlace({
565
- searchId: String(g)
565
+ searchId: String(O)
566
566
  }));
567
567
  v && u && u(v);
568
568
  }, [
569
569
  u,
570
570
  f,
571
571
  I
572
- ]), O = R(() => {
572
+ ]), g = R(() => {
573
573
  f(), s == null || s();
574
574
  }, [
575
575
  s,
@@ -586,10 +586,10 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
586
586
  value: null,
587
587
  onChange: h,
588
588
  isDisabled: n,
589
- isReadOnly: l,
590
- isRequired: a,
589
+ isReadOnly: a,
590
+ isRequired: l,
591
591
  isInvalid: i,
592
- onBlur: O,
592
+ onBlur: g,
593
593
  onFocus: A,
594
594
  allowsCustomValue: !0,
595
595
  menuTrigger: "input",
@@ -601,15 +601,15 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
601
601
  }), /* @__PURE__ */ r.createElement(Ye, {
602
602
  optionCount: N.length
603
603
  }));
604
- }, _n = ({ className: e, ...t }) => {
605
- const { id: o, placeholder: n } = P(), { inputId: l, ariaDescribedBy: a } = T(), { onFocus: i } = t, s = x(null);
604
+ }, Pn = ({ className: e, ...t }) => {
605
+ const { id: o, placeholder: n } = P(), { 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();
609
609
  }, o), /* @__PURE__ */ r.createElement(le, {
610
610
  ref: s,
611
- id: l,
612
- "aria-describedby": a,
611
+ id: a,
612
+ "aria-describedby": l,
613
613
  className: e,
614
614
  placeholder: n,
615
615
  onFocus: i
@@ -620,28 +620,28 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
620
620
  className: t,
621
621
  containerPadding: 0,
622
622
  offset: 0
623
- }, /* @__PURE__ */ r.createElement(Re, {
623
+ }, /* @__PURE__ */ r.createElement(Te, {
624
624
  renderEmptyState: () => null
625
625
  }, (n) => F(o, {
626
626
  id: n.id,
627
627
  label: n.label
628
628
  })));
629
- }, Pn = ({ className: e, ...t }) => {
629
+ }, Tn = ({ className: e, ...t }) => {
630
630
  const { id: o, label: n } = t;
631
- return /* @__PURE__ */ r.createElement(Ae, {
631
+ return /* @__PURE__ */ r.createElement(Re, {
632
632
  className: e,
633
633
  id: o,
634
634
  textValue: n
635
635
  }, n);
636
636
  };
637
- He.Option = Pn;
637
+ He.Option = Tn;
638
638
  k.Label = de;
639
- k.Input = _n;
639
+ k.Input = Pn;
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: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: I } = Te(), b = I("field.mla-apartment.label"), p = E(e, re.Label), f = E(e, re.Input), N = E(e, re.Description), 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 } = P(), { labelId: y } = T(), { t: I } = Pe(), b = I("field.mla-apartment.label"), p = E(e, re.Label), f = E(e, re.Input), N = E(e, re.Description), S = E(e, re.Error);
645
645
  return /* @__PURE__ */ r.createElement(u, {
646
646
  fieldId: t,
647
647
  renderLabel: () => F(p, {
@@ -651,8 +651,8 @@ const re = ({ children: e }) => {
651
651
  "aria-labelledby": y,
652
652
  value: o ?? "",
653
653
  onChange: n,
654
- isDisabled: l,
655
- isReadOnly: a,
654
+ isDisabled: a,
655
+ isReadOnly: l,
656
656
  isRequired: i,
657
657
  isInvalid: s,
658
658
  onBlur: d,
@@ -660,25 +660,25 @@ const re = ({ children: e }) => {
660
660
  }, f),
661
661
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, S, N)
662
662
  });
663
- }, Tn = ({ className: e }) => {
664
- const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: l } = T(), a = x(null);
663
+ }, Mn = ({ className: e }) => {
664
+ const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
665
665
  return ae(() => {
666
666
  var i;
667
- (i = a.current) == null || i.focus();
667
+ (i = l.current) == null || i.focus();
668
668
  }, t), /* @__PURE__ */ r.createElement(le, {
669
- ref: a,
669
+ ref: l,
670
670
  id: n,
671
- "aria-describedby": l,
671
+ "aria-describedby": a,
672
672
  className: e,
673
673
  placeholder: o
674
674
  });
675
675
  };
676
676
  re.Label = de;
677
- re.Input = Tn;
677
+ re.Input = Mn;
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: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), I = 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 } = P(), { labelId: y } = T(), I = 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, {
@@ -688,8 +688,8 @@ const oe = ({ children: e }) => {
688
688
  "aria-labelledby": y,
689
689
  value: o ?? "",
690
690
  onChange: n,
691
- isDisabled: l,
692
- isReadOnly: a,
691
+ isDisabled: a,
692
+ isReadOnly: l,
693
693
  isRequired: i,
694
694
  isInvalid: s,
695
695
  onBlur: d,
@@ -697,26 +697,26 @@ const oe = ({ children: e }) => {
697
697
  }, p),
698
698
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, N, f)
699
699
  });
700
- }, Mn = ({ className: e }) => {
701
- const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: l } = T(), a = x(null);
700
+ }, wn = ({ className: e }) => {
701
+ const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
702
702
  return ae(() => {
703
703
  var i;
704
- (i = a.current) == null || i.focus();
704
+ (i = l.current) == null || i.focus();
705
705
  }, t), /* @__PURE__ */ r.createElement(le, {
706
- ref: a,
706
+ ref: l,
707
707
  id: n,
708
- "aria-describedby": l,
708
+ "aria-describedby": a,
709
709
  className: e,
710
710
  placeholder: o
711
711
  });
712
712
  };
713
713
  oe.Label = de;
714
- oe.Input = Mn;
714
+ oe.Input = wn;
715
715
  oe.Description = ie;
716
716
  oe.Error = ce;
717
- const wn = ({ isOpen: e }) => {
717
+ const qn = ({ isOpen: e }) => {
718
718
  const t = Ce(Ve), o = x(!1);
719
- return Pe(() => {
719
+ return _e(() => {
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,
@@ -731,8 +731,8 @@ const wn = ({ isOpen: e }) => {
731
731
  e,
732
732
  t
733
733
  ]);
734
- }, qn = (e, t) => e.find((o) => o.label.toLocaleLowerCase() === t.toLocaleLowerCase().trim()), At = ({ options: e, value: t, commit: o, clear: n, onBlur: l }) => {
735
- const [a, i] = be(null), s = en(l), d = q(() => {
734
+ }, xn = (e, t) => e.find((o) => o.label.toLocaleLowerCase() === t.toLocaleLowerCase().trim()), At = ({ options: e, value: t, commit: o, clear: n, onBlur: a }) => {
735
+ const [l, i] = be(null), s = nn(a), d = q(() => {
736
736
  var b;
737
737
  return t ? ((b = e.find((p) => p.value === t)) == null ? void 0 : b.label) ?? "" : "";
738
738
  }, [
@@ -746,56 +746,56 @@ const wn = ({ isOpen: e }) => {
746
746
  ]), u = R((b) => {
747
747
  if (i(b), b === "")
748
748
  return;
749
- const p = qn(e, b);
749
+ const p = xn(e, b);
750
750
  p && p.value !== t && o(p.value);
751
751
  }, [
752
752
  o,
753
753
  e,
754
754
  t
755
755
  ]), y = R((b) => {
756
- b.key !== "Enter" && b.key !== "Escape" || (i(null), b.key === "Enter" && a === "" && t && n());
756
+ b.key !== "Enter" && b.key !== "Escape" || (i(null), b.key === "Enter" && l === "" && t && n());
757
757
  }, [
758
- a,
758
+ l,
759
759
  t,
760
760
  n
761
761
  ]), I = R(() => {
762
- a === "" && t && n(), i(null), s();
762
+ l === "" && t && n(), i(null), s();
763
763
  }, [
764
- a,
764
+ l,
765
765
  t,
766
766
  n,
767
767
  s
768
768
  ]);
769
769
  return {
770
770
  value: t ?? null,
771
- inputValue: a ?? d,
771
+ inputValue: l ?? d,
772
772
  onChange: m,
773
773
  onInputChange: u,
774
774
  onBlur: I,
775
775
  onInputKeyDown: y
776
776
  };
777
777
  }, Y = ({ children: e, ...t }) => {
778
- const { isForcedOpen: o = !1 } = t, { id: n, value: l, onChange: a, disabled: i, readOnly: s, required: d, hasError: m, onBlur: u, onFocus: y, FieldLayout: I, options: b } = P(), { labelId: p } = T(), { t: f } = Te(), { language: N } = It(), S = q(() => (b || []).reduce((w, D) => (D.value && ve.hasOwnProperty(D.value) && w.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: I, options: b } = P(), { labelId: p } = T(), { t: f } = Pe(), { language: N } = It(), S = q(() => (b || []).reduce((w, D) => (D.value && ve.hasOwnProperty(D.value) && w.push({
779
779
  value: D.value,
780
780
  label: f(`locale-dataset.countries.${ve[D.value].toUpperCase()}`)
781
781
  }), w), []).sort((w, D) => w.label.localeCompare(D.label, N)), [
782
782
  b,
783
783
  f,
784
784
  N
785
- ]), h = R((w) => a(w), [
786
- a
787
- ]), O = R(() => h(""), [
785
+ ]), h = R((w) => l(w), [
786
+ l
787
+ ]), g = R(() => h(""), [
788
788
  h
789
789
  ]), { onInputKeyDown: A, ...M } = At({
790
790
  options: S,
791
- value: l,
791
+ value: a,
792
792
  commit: h,
793
- clear: O,
793
+ clear: g,
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
+ }), _ = pe("country"), O = 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(I, {
797
797
  fieldId: n,
798
- renderLabel: () => F(g, {
798
+ renderLabel: () => F(O, {
799
799
  label: _
800
800
  }),
801
801
  renderInput: () => /* @__PURE__ */ r.createElement(De, {
@@ -810,25 +810,26 @@ const wn = ({ isOpen: e }) => {
810
810
  }, F(v, {
811
811
  onKeyDown: A
812
812
  }), F(me, {
813
- options: S
814
- }), /* @__PURE__ */ r.createElement(wn, {
813
+ options: S,
814
+ isForcedOpen: o
815
+ }), /* @__PURE__ */ r.createElement(qn, {
815
816
  isOpen: o
816
817
  })),
817
818
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, B, j)
818
819
  });
819
820
  }, Fe = ({ children: e, className: t, ...o }) => {
820
- const { disabled: n, hasError: l } = P(), { onKeyDown: a } = o, i = E(e, Fe.Input), s = E(e, Fe.Trigger);
821
+ const { disabled: n, hasError: a } = P(), { onKeyDown: l } = o, i = E(e, Fe.Input), s = E(e, Fe.Trigger);
821
822
  return /* @__PURE__ */ r.createElement(Nt, {
822
823
  className: t,
823
824
  isDisabled: n,
824
- isInvalid: l
825
+ isInvalid: a
825
826
  }, F(i, {
826
- onKeyDown: a
827
+ onKeyDown: l
827
828
  }), s);
828
- }, xn = ({ className: e, ...t }) => {
829
- const { id: o, placeholder: n, readOnly: l, disabled: a } = P(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = t, m = x(null), u = Rt({
830
- readOnly: l,
831
- disabled: a
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 = Rt({
831
+ readOnly: a,
832
+ disabled: l
832
833
  });
833
834
  return ae(() => {
834
835
  var y;
@@ -842,62 +843,64 @@ const wn = ({ isOpen: e }) => {
842
843
  onClick: u,
843
844
  onKeyDown: d
844
845
  });
845
- }, Bn = ({ children: e, className: t }) => /* @__PURE__ */ r.createElement(gt, {
846
+ }, kn = ({ children: e, className: t }) => /* @__PURE__ */ r.createElement(Ot, {
846
847
  className: t
847
848
  }, e);
848
- Fe.Input = xn;
849
- Fe.Trigger = Bn;
849
+ Fe.Input = Bn;
850
+ Fe.Trigger = kn;
850
851
  const je = ({ children: e, className: t, ...o }) => {
851
- const { options: n } = o, l = E(e, je.Option);
852
+ const { options: n, isForcedOpen: a } = o, l = E(e, je.Option);
852
853
  return /* @__PURE__ */ r.createElement(Se, {
853
854
  className: t,
854
855
  containerPadding: 0,
855
856
  offset: 0
856
- }, /* @__PURE__ */ r.createElement(Re, null, n.map((a) => F(l, {
857
- key: a.value,
858
- value: a.value,
859
- label: a.label
857
+ }, /* @__PURE__ */ r.createElement(en, {
858
+ isForcedOpen: a
859
+ }, n.map((i) => F(l, {
860
+ key: i.value,
861
+ value: i.value,
862
+ label: i.label
860
863
  }))));
861
- }, kn = ({ className: e, ...t }) => {
864
+ }, $n = ({ className: e, ...t }) => {
862
865
  const { value: o, label: n } = t;
863
- return /* @__PURE__ */ r.createElement(Ae, {
866
+ return /* @__PURE__ */ r.createElement(Re, {
864
867
  className: e,
865
868
  id: o,
866
869
  textValue: n
867
870
  }, n);
868
871
  };
869
- je.Option = kn;
872
+ je.Option = $n;
870
873
  Y.Label = de;
871
874
  Y.Control = Fe;
872
875
  Y.Options = je;
873
876
  Y.Description = ie;
874
877
  Y.Error = ce;
875
- const $n = /(\d{7})|(\d{3}-\d{4})/;
876
- function Un(e) {
878
+ const Un = /(\d{7})|(\d{3}-\d{4})/;
879
+ function Wn(e) {
877
880
  var t;
878
- return (t = e.match($n)) == null ? void 0 : t[0];
881
+ return (t = e.match(Un)) == null ? void 0 : t[0];
879
882
  }
880
- function Wn({ isAutocompleteEnabled: e }) {
883
+ function Vn({ isAutocompleteEnabled: e }) {
881
884
  const t = x({
882
885
  hasAddress: !1
883
886
  }), o = Ke({
884
887
  enabled: e
885
888
  });
886
889
  return {
887
- searchByPostalCode: R(async (l) => {
888
- const a = Un(l);
889
- if (a) {
890
- if (t.current.postalCode === a && t.current.hasAddress)
890
+ searchByPostalCode: R(async (a) => {
891
+ const l = Wn(a);
892
+ if (l) {
893
+ if (t.current.postalCode === l && t.current.hasAddress)
891
894
  return t.current.address;
892
895
  t.current = {
893
- postalCode: a,
896
+ postalCode: l,
894
897
  address: void 0,
895
898
  hasAddress: !1
896
899
  };
897
900
  try {
898
901
  const i = await (o == null ? void 0 : o.searchByPostalCode({
899
902
  countryCode: "JP",
900
- postalCode: a
903
+ postalCode: l
901
904
  }));
902
905
  return t.current.hasAddress = !0, t.current.address = void 0, i != null && i.formattedAddress ? (t.current.address = i, i) : void 0;
903
906
  } catch (i) {
@@ -910,22 +913,22 @@ function Wn({ isAutocompleteEnabled: e }) {
910
913
  };
911
914
  }
912
915
  const $ = ({ children: e }) => {
913
- const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), b = Le(), { autocompleteEnabled: p } = Ie(), f = !!(b && ve[b] === ve.JP), N = (y || p) && f, S = pe("zipCode"), h = E(e, $.Label), O = E(e, $.Control), A = E(e, $.Options), M = 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 } = P(), { labelId: I } = T(), b = Le(), { autocompleteEnabled: p } = Ie(), f = !!(b && ve[b] === ve.JP), N = (y || p) && f, S = pe("zipCode"), h = E(e, $.Label), g = E(e, $.Control), A = E(e, $.Options), M = E(e, $.Description), _ = E(e, $.Error);
914
917
  return N ? /* @__PURE__ */ r.createElement(u, {
915
918
  fieldId: t,
916
919
  renderLabel: () => F(h, {
917
920
  label: S
918
921
  }),
919
- renderInput: () => /* @__PURE__ */ r.createElement(Vn, {
922
+ renderInput: () => /* @__PURE__ */ r.createElement(Kn, {
920
923
  value: o,
921
924
  onChange: n,
922
- disabled: l,
923
- readOnly: a,
925
+ disabled: a,
926
+ readOnly: l,
924
927
  required: i,
925
928
  hasError: s,
926
929
  onBlur: d,
927
930
  onFocus: m
928
- }, O, A),
931
+ }, g, A),
929
932
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, M)
930
933
  }) : /* @__PURE__ */ r.createElement(u, {
931
934
  fieldId: t,
@@ -936,17 +939,17 @@ const $ = ({ children: e }) => {
936
939
  "aria-labelledby": I,
937
940
  value: o ?? "",
938
941
  onChange: n,
939
- isDisabled: l,
940
- isReadOnly: a,
942
+ isDisabled: a,
943
+ isReadOnly: l,
941
944
  isRequired: i,
942
945
  isInvalid: s,
943
946
  onBlur: d,
944
947
  onFocus: m
945
- }, O),
948
+ }, g),
946
949
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, M)
947
950
  });
948
- }, Vn = ({ children: e, value: t, onChange: o, disabled: n, readOnly: l, required: a, hasError: i, onBlur: s, onFocus: d }) => {
949
- const { labelId: m } = T(), { onAddressSelect: u } = Ie(), [y, I] = be(!1), { searchByPostalCode: b } = Wn({
951
+ }, Kn = ({ children: e, value: t, onChange: o, disabled: n, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
952
+ const { labelId: m } = T(), { onAddressSelect: u } = Ie(), [y, I] = be(!1), { searchByPostalCode: b } = Vn({
950
953
  isAutocompleteEnabled: y
951
954
  }), [p, f] = be(), N = q(() => p ? [
952
955
  {
@@ -955,19 +958,19 @@ const $ = ({ children: e }) => {
955
958
  }
956
959
  ] : [], [
957
960
  p
958
- ]), S = R(async (g) => {
959
- o(g);
960
- const v = await b(g ?? "");
961
+ ]), S = R(async (O) => {
962
+ o(O);
963
+ const v = await b(O ?? "");
961
964
  f(v);
962
965
  }, [
963
966
  o,
964
967
  b
965
- ]), h = R(async (g) => {
966
- g && (f(void 0), p && u && u(p));
968
+ ]), h = R(async (O) => {
969
+ O && (f(void 0), p && u && u(p));
967
970
  }, [
968
971
  u,
969
972
  p
970
- ]), O = R(() => {
973
+ ]), g = R(() => {
971
974
  f(void 0), s == null || s();
972
975
  }, [
973
976
  s
@@ -983,10 +986,10 @@ const $ = ({ children: e }) => {
983
986
  value: null,
984
987
  onChange: h,
985
988
  isDisabled: n,
986
- isReadOnly: l,
987
- isRequired: a,
989
+ isReadOnly: a,
990
+ isRequired: l,
988
991
  isInvalid: i,
989
- onBlur: O,
992
+ onBlur: g,
990
993
  onFocus: A,
991
994
  allowsCustomValue: !0,
992
995
  menuTrigger: "input",
@@ -999,24 +1002,24 @@ const $ = ({ children: e }) => {
999
1002
  optionCount: N.length
1000
1003
  }));
1001
1004
  }, Je = ({ children: e, className: t, ...o }) => {
1002
- const { disabled: n, hasError: l } = P(), { onFocus: a } = o, i = Le(), s = E(e, Je.Input);
1005
+ const { disabled: n, hasError: a } = P(), { onFocus: l } = o, i = Le(), s = E(e, Je.Input);
1003
1006
  return /* @__PURE__ */ r.createElement("div", {
1004
1007
  className: t,
1005
1008
  "data-country": i || void 0,
1006
1009
  "data-disabled": n || void 0,
1007
- "data-invalid": l || void 0
1010
+ "data-invalid": a || void 0
1008
1011
  }, F(s, {
1009
- onFocus: a
1012
+ onFocus: l
1010
1013
  }));
1011
- }, Kn = ({ className: e, ...t }) => {
1012
- const { id: o, placeholder: n } = P(), { inputId: l, ariaDescribedBy: a } = T(), { onFocus: i } = t, s = x(null);
1014
+ }, Yn = ({ className: e, ...t }) => {
1015
+ const { id: o, placeholder: n } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = x(null);
1013
1016
  return ae(() => {
1014
1017
  var d;
1015
1018
  (d = s.current) == null || d.focus();
1016
1019
  }, o), /* @__PURE__ */ r.createElement(le, {
1017
1020
  ref: s,
1018
- id: l,
1019
- "aria-describedby": a,
1021
+ id: a,
1022
+ "aria-describedby": l,
1020
1023
  className: e,
1021
1024
  placeholder: n,
1022
1025
  onFocus: i
@@ -1027,45 +1030,45 @@ const $ = ({ children: e }) => {
1027
1030
  className: t,
1028
1031
  containerPadding: 0,
1029
1032
  offset: 0
1030
- }, /* @__PURE__ */ r.createElement(Re, {
1033
+ }, /* @__PURE__ */ r.createElement(Te, {
1031
1034
  renderEmptyState: () => null
1032
1035
  }, (n) => F(o, {
1033
1036
  id: n.id,
1034
1037
  label: n.label
1035
1038
  })));
1036
- }, Yn = ({ className: e, ...t }) => {
1039
+ }, Hn = ({ className: e, ...t }) => {
1037
1040
  const { id: o, label: n } = t;
1038
- return /* @__PURE__ */ r.createElement(Ae, {
1041
+ return /* @__PURE__ */ r.createElement(Re, {
1039
1042
  className: e,
1040
1043
  id: o,
1041
1044
  textValue: n
1042
1045
  }, n);
1043
1046
  };
1044
- Ge.Option = Yn;
1045
- Je.Input = Kn;
1047
+ Ge.Option = Hn;
1048
+ Je.Input = Yn;
1046
1049
  $.Label = de;
1047
1050
  $.Control = Je;
1048
1051
  $.Options = Ge;
1049
1052
  $.Description = ie;
1050
1053
  $.Error = ce;
1051
1054
  const U = ({ children: e }) => {
1052
- const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = 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);
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: I } = 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), g = E(e, U.Description), A = E(e, U.Error);
1053
1056
  return p ? /* @__PURE__ */ r.createElement(u, {
1054
1057
  fieldId: t,
1055
1058
  renderLabel: () => F(N, {
1056
1059
  label: f
1057
1060
  }),
1058
- renderInput: () => /* @__PURE__ */ r.createElement(Hn, {
1061
+ renderInput: () => /* @__PURE__ */ r.createElement(jn, {
1059
1062
  value: o,
1060
1063
  onChange: n,
1061
- disabled: l,
1062
- readOnly: a,
1064
+ disabled: a,
1065
+ readOnly: l,
1063
1066
  required: i,
1064
1067
  hasError: s,
1065
1068
  onBlur: d,
1066
1069
  onFocus: m
1067
1070
  }, S, h),
1068
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
1071
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, g)
1069
1072
  }) : /* @__PURE__ */ r.createElement(u, {
1070
1073
  fieldId: t,
1071
1074
  renderLabel: () => F(N, {
@@ -1075,41 +1078,41 @@ const U = ({ children: e }) => {
1075
1078
  "aria-labelledby": I,
1076
1079
  value: o ?? "",
1077
1080
  onChange: n,
1078
- isDisabled: l,
1079
- isReadOnly: a,
1081
+ isDisabled: a,
1082
+ isReadOnly: l,
1080
1083
  isRequired: i,
1081
1084
  isInvalid: s,
1082
1085
  onBlur: d,
1083
1086
  onFocus: m
1084
1087
  }, S),
1085
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
1088
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, g)
1086
1089
  });
1087
- }, Hn = ({ children: e, value: t, onChange: o, disabled: n, readOnly: l, required: a, hasError: i, onBlur: s, onFocus: d }) => {
1090
+ }, jn = ({ children: e, value: t, onChange: o, disabled: n, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
1088
1091
  const { labelId: m } = T(), { onAddressSelect: u } = Ie(), y = Le(), I = Ke({
1089
1092
  enabled: !0
1090
1093
  }), { predictions: b, updatePredictions: p, clearPredictions: f } = St({
1091
1094
  atlas: I
1092
- }), 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, U.Input), S = E(e, U.Options), h = q(() => b.reduce((O, v) => (v.searchId && v.description && O.push({
1093
1096
  id: v.searchId,
1094
1097
  label: v.description
1095
- }), g), []), [
1098
+ }), O), []), [
1096
1099
  b
1097
- ]), O = R((g) => {
1100
+ ]), g = R((O) => {
1098
1101
  p({
1099
- input: g,
1102
+ input: O,
1100
1103
  countryCodes: y ? [
1101
1104
  y
1102
1105
  ] : void 0
1103
- }), o(g);
1106
+ }), o(O);
1104
1107
  }, [
1105
1108
  o,
1106
1109
  p,
1107
1110
  y
1108
- ]), A = R(async (g) => {
1109
- if (f(), !g)
1111
+ ]), A = R(async (O) => {
1112
+ if (f(), !O)
1110
1113
  return;
1111
1114
  const v = await (I == null ? void 0 : I.getPlace({
1112
- searchId: String(g)
1115
+ searchId: String(O)
1113
1116
  }));
1114
1117
  v && u && u(v);
1115
1118
  }, [
@@ -1129,12 +1132,12 @@ const U = ({ children: e }) => {
1129
1132
  return /* @__PURE__ */ r.createElement(De, {
1130
1133
  "aria-labelledby": m,
1131
1134
  inputValue: t ?? "",
1132
- onInputChange: O,
1135
+ onInputChange: g,
1133
1136
  value: null,
1134
1137
  onChange: A,
1135
1138
  isDisabled: n,
1136
- isReadOnly: l,
1137
- isRequired: a,
1139
+ isReadOnly: a,
1140
+ isRequired: l,
1138
1141
  isInvalid: i,
1139
1142
  onBlur: M,
1140
1143
  onFocus: _,
@@ -1148,15 +1151,15 @@ const U = ({ children: e }) => {
1148
1151
  }), /* @__PURE__ */ r.createElement(Ye, {
1149
1152
  optionCount: h.length
1150
1153
  }));
1151
- }, jn = ({ className: e, ...t }) => {
1152
- const { id: o, placeholder: n } = P(), { inputId: l, ariaDescribedBy: a } = T(), { onFocus: i } = t, s = x(null);
1154
+ }, Jn = ({ className: e, ...t }) => {
1155
+ const { id: o, placeholder: n } = P(), { inputId: a, ariaDescribedBy: l } = T(), { onFocus: i } = t, s = x(null);
1153
1156
  return ae(() => {
1154
1157
  var d;
1155
1158
  (d = s.current) == null || d.focus();
1156
1159
  }, o), /* @__PURE__ */ r.createElement(le, {
1157
1160
  ref: s,
1158
- id: l,
1159
- "aria-describedby": a,
1161
+ id: a,
1162
+ "aria-describedby": l,
1160
1163
  className: e,
1161
1164
  placeholder: n,
1162
1165
  onFocus: i
@@ -1167,28 +1170,28 @@ const U = ({ children: e }) => {
1167
1170
  className: t,
1168
1171
  containerPadding: 0,
1169
1172
  offset: 0
1170
- }, /* @__PURE__ */ r.createElement(Re, {
1173
+ }, /* @__PURE__ */ r.createElement(Te, {
1171
1174
  renderEmptyState: () => null
1172
1175
  }, (n) => F(o, {
1173
1176
  id: n.id,
1174
1177
  label: n.label
1175
1178
  })));
1176
- }, Jn = ({ className: e, ...t }) => {
1179
+ }, Gn = ({ className: e, ...t }) => {
1177
1180
  const { id: o, label: n } = t;
1178
- return /* @__PURE__ */ r.createElement(Ae, {
1181
+ return /* @__PURE__ */ r.createElement(Re, {
1179
1182
  className: e,
1180
1183
  id: o,
1181
1184
  textValue: n
1182
1185
  }, n);
1183
1186
  };
1184
- Xe.Option = Jn;
1187
+ Xe.Option = Gn;
1185
1188
  U.Label = de;
1186
- U.Input = jn;
1189
+ U.Input = Jn;
1187
1190
  U.Options = Xe;
1188
1191
  U.Description = ie;
1189
1192
  U.Error = ce;
1190
1193
  const se = ({ children: e }) => {
1191
- const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), I = 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 } = P(), { labelId: y } = T(), I = pe("streetNumber"), b = E(e, se.Label), p = E(e, se.Input), f = E(e, se.Description), N = E(e, se.Error);
1192
1195
  return /* @__PURE__ */ r.createElement(u, {
1193
1196
  fieldId: t,
1194
1197
  renderLabel: () => F(b, {
@@ -1198,8 +1201,8 @@ const se = ({ children: e }) => {
1198
1201
  "aria-labelledby": y,
1199
1202
  value: o ?? "",
1200
1203
  onChange: n,
1201
- isDisabled: l,
1202
- isReadOnly: a,
1204
+ isDisabled: a,
1205
+ isReadOnly: l,
1203
1206
  isRequired: i,
1204
1207
  isInvalid: s,
1205
1208
  onBlur: d,
@@ -1207,25 +1210,25 @@ const se = ({ children: e }) => {
1207
1210
  }, p),
1208
1211
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, N, f)
1209
1212
  });
1210
- }, Gn = ({ className: e }) => {
1211
- const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: l } = T(), a = x(null);
1213
+ }, Xn = ({ className: e }) => {
1214
+ const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: a } = T(), l = x(null);
1212
1215
  return ae(() => {
1213
1216
  var i;
1214
- (i = a.current) == null || i.focus();
1217
+ (i = l.current) == null || i.focus();
1215
1218
  }, t), /* @__PURE__ */ r.createElement(le, {
1216
- ref: a,
1219
+ ref: l,
1217
1220
  id: n,
1218
- "aria-describedby": l,
1221
+ "aria-describedby": a,
1219
1222
  className: e,
1220
1223
  placeholder: o
1221
1224
  });
1222
1225
  };
1223
1226
  se.Label = de;
1224
- se.Input = Gn;
1227
+ se.Input = Xn;
1225
1228
  se.Description = ie;
1226
1229
  se.Error = ce;
1227
1230
  const H = ({ children: e }) => {
1228
- const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: I } = Te(), b = Le(), p = b ? ve[b] : void 0, f = b && Bt.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 } = P(), { labelId: y } = T(), { t: I } = Pe(), b = Le(), p = b ? ve[b] : void 0, f = b && Bt.getCountryByShortKey(b), N = q(() => {
1229
1232
  var B;
1230
1233
  return (kt(((B = f == null ? void 0 : f.subdivisions) == null ? void 0 : B.list) || [], p) || []).map((w) => ({
1231
1234
  value: w.key,
@@ -1237,13 +1240,13 @@ const H = ({ children: e }) => {
1237
1240
  f
1238
1241
  ]), S = R(() => n(""), [
1239
1242
  n
1240
- ]), { onInputKeyDown: h, ...O } = At({
1243
+ ]), { onInputKeyDown: h, ...g } = At({
1241
1244
  options: N,
1242
1245
  value: o,
1243
1246
  commit: n,
1244
1247
  clear: S,
1245
1248
  onBlur: d
1246
- }), A = pe("subdivision"), M = 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"), M = E(e, H.Label), _ = E(e, H.Control), O = E(e, H.Options), v = E(e, H.Description), me = E(e, H.Error);
1247
1250
  return /* @__PURE__ */ r.createElement(u, {
1248
1251
  fieldId: t,
1249
1252
  renderLabel: () => F(M, {
@@ -1251,33 +1254,33 @@ const H = ({ children: e }) => {
1251
1254
  }),
1252
1255
  renderInput: () => /* @__PURE__ */ r.createElement(De, {
1253
1256
  "aria-labelledby": y,
1254
- ...O,
1255
- isDisabled: l,
1256
- isReadOnly: a,
1257
+ ...g,
1258
+ isDisabled: a,
1259
+ isReadOnly: l,
1257
1260
  isRequired: i,
1258
1261
  isInvalid: s,
1259
1262
  onFocus: m,
1260
1263
  menuTrigger: "input"
1261
1264
  }, F(_, {
1262
1265
  onKeyDown: h
1263
- }), F(g, {
1266
+ }), F(O, {
1264
1267
  options: N
1265
1268
  })),
1266
1269
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, me, v)
1267
1270
  });
1268
1271
  }, he = ({ children: e, className: t, ...o }) => {
1269
- const { disabled: n, hasError: l } = P(), { onKeyDown: a } = o, i = E(e, he.Input), s = E(e, he.Trigger);
1272
+ const { disabled: n, hasError: a } = P(), { onKeyDown: l } = o, i = E(e, he.Input), s = E(e, he.Trigger);
1270
1273
  return /* @__PURE__ */ r.createElement(Nt, {
1271
1274
  className: t,
1272
1275
  isDisabled: n,
1273
- isInvalid: l
1276
+ isInvalid: a
1274
1277
  }, F(i, {
1275
- onKeyDown: a
1278
+ onKeyDown: l
1276
1279
  }), s);
1277
- }, Xn = ({ className: e, ...t }) => {
1278
- const { id: o, placeholder: n, readOnly: l, disabled: a } = P(), { inputId: i, ariaDescribedBy: s } = T(), { onKeyDown: d } = t, m = x(null), u = Rt({
1279
- readOnly: l,
1280
- disabled: a
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 = Rt({
1282
+ readOnly: a,
1283
+ disabled: l
1281
1284
  });
1282
1285
  return ae(() => {
1283
1286
  var y;
@@ -1291,53 +1294,53 @@ const H = ({ children: e }) => {
1291
1294
  onClick: u,
1292
1295
  onKeyDown: d
1293
1296
  });
1294
- }, zn = ({ children: e, className: t }) => /* @__PURE__ */ r.createElement(gt, {
1297
+ }, Qn = ({ children: e, className: t }) => /* @__PURE__ */ r.createElement(Ot, {
1295
1298
  className: t
1296
1299
  }, e);
1297
- he.Input = Xn;
1298
- he.Trigger = zn;
1300
+ he.Input = zn;
1301
+ he.Trigger = Qn;
1299
1302
  const ze = ({ children: e, className: t, ...o }) => {
1300
- const { options: n } = o, l = E(e, ze.Option);
1303
+ const { options: n } = o, a = E(e, ze.Option);
1301
1304
  return /* @__PURE__ */ r.createElement(Se, {
1302
1305
  className: t,
1303
1306
  containerPadding: 0,
1304
1307
  offset: 0
1305
- }, /* @__PURE__ */ r.createElement(Re, null, n.map((a) => F(l, {
1306
- key: a.value,
1307
- value: a.value,
1308
- label: a.label
1308
+ }, /* @__PURE__ */ r.createElement(Te, null, n.map((l) => F(a, {
1309
+ key: l.value,
1310
+ value: l.value,
1311
+ label: l.label
1309
1312
  }))));
1310
- }, Qn = ({ className: e, ...t }) => {
1313
+ }, Zn = ({ className: e, ...t }) => {
1311
1314
  const { value: o, label: n } = t;
1312
- return /* @__PURE__ */ r.createElement(Ae, {
1315
+ return /* @__PURE__ */ r.createElement(Re, {
1313
1316
  className: e,
1314
1317
  id: o,
1315
1318
  textValue: n
1316
1319
  }, n);
1317
1320
  };
1318
- ze.Option = Qn;
1321
+ ze.Option = Zn;
1319
1322
  H.Label = de;
1320
1323
  H.Control = he;
1321
1324
  H.Options = ze;
1322
1325
  H.Description = ie;
1323
1326
  H.Error = ce;
1324
- const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("city"), nr = () => ue("addressLine"), rr = () => ue("addressLine2"), or = () => ue("postalCode"), sr = () => ue("streetName"), ar = () => ue("streetNumber"), lr = () => ue("apartment"), ir = {
1325
- [K.MLA_COUNTRY]: Zn,
1326
- [K.MLA_SUBDIVISION]: er,
1327
- [K.MLA_CITY]: tr,
1328
- [K.MLA_ADDRESS_LINE]: nr,
1329
- [K.MLA_ADDRESS_LINE_2]: rr,
1330
- [K.MLA_POSTAL_CODE]: or,
1331
- [K.MLA_STREET_NAME]: sr,
1332
- [K.MLA_STREET_NUMBER]: ar,
1333
- [K.MLA_APARTMENT]: lr
1334
- }, cr = {}, dr = [], c = ({ children: e }) => {
1335
- const { id: t, form: o, value: n, onChange: l, onFieldBlur: a, onFieldFocus: i, errors: s, FieldLayout: d, fieldSettings: m, label: u, validation: y, target: I, autocompleteEnabled: b, required: p, fieldType: f } = P(), [N, S] = be(null), h = $t(), O = q(() => ({
1327
+ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("city"), rr = () => ue("addressLine"), or = () => ue("addressLine2"), sr = () => ue("postalCode"), ar = () => ue("streetName"), lr = () => ue("streetNumber"), ir = () => ue("apartment"), cr = {
1328
+ [K.MLA_COUNTRY]: er,
1329
+ [K.MLA_SUBDIVISION]: tr,
1330
+ [K.MLA_CITY]: nr,
1331
+ [K.MLA_ADDRESS_LINE]: rr,
1332
+ [K.MLA_ADDRESS_LINE_2]: or,
1333
+ [K.MLA_POSTAL_CODE]: sr,
1334
+ [K.MLA_STREET_NAME]: ar,
1335
+ [K.MLA_STREET_NUMBER]: lr,
1336
+ [K.MLA_APARTMENT]: ir
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: I, autocompleteEnabled: b, required: p, fieldType: f } = P(), [N, S] = be(null), h = $t(), g = q(() => ({
1336
1339
  ...h,
1337
- ...ir
1340
+ ...cr
1338
1341
  }), [
1339
1342
  h
1340
- ]), { isExperimentEnabled: A } = yt(), M = A(Ct.STREETLESS_LOCALITY_FALLBACK), { validateFields: _ } = Ut(), g = Wt(), v = Lt(), me = q(() => ({
1343
+ ]), { isExperimentEnabled: A } = yt(), M = A(Ct.STREETLESS_LOCALITY_FALLBACK), { validateFields: _ } = Ut(), O = Wt(), v = Lt(), me = q(() => ({
1341
1344
  ...v,
1342
1345
  actions: {
1343
1346
  predict: Yt,
@@ -1347,7 +1350,7 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
1347
1350
  }
1348
1351
  }), [
1349
1352
  v
1350
- ]), { form: j, isMultilineAddressField: B } = yn({
1353
+ ]), { form: j, isMultilineAddressField: B } = Cn({
1351
1354
  id: t,
1352
1355
  target: I,
1353
1356
  fieldType: f,
@@ -1359,29 +1362,29 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
1359
1362
  }), w = R((W) => {
1360
1363
  if (!n)
1361
1364
  return;
1362
- const G = on(W, B, M), _e = {
1365
+ const G = sn(W, B, M), Ae = {
1363
1366
  ...G,
1364
1367
  [ye.COUNTRY]: G[ye.COUNTRY] ?? n[ye.COUNTRY]
1365
1368
  };
1366
- l == null || l(_e);
1369
+ a == null || a(Ae);
1367
1370
  }, [
1368
- l,
1371
+ a,
1369
1372
  n,
1370
1373
  B,
1371
1374
  M
1372
1375
  ]), D = R((W, G) => {
1373
1376
  if (B && W === ye.COUNTRY && (n == null ? void 0 : n[W]) !== G) {
1374
- l == null || l({
1377
+ a == null || a({
1375
1378
  [ye.COUNTRY]: G
1376
1379
  });
1377
1380
  return;
1378
1381
  }
1379
- l == null || l({
1382
+ a == null || a({
1380
1383
  ...n,
1381
1384
  [W]: G
1382
1385
  });
1383
1386
  }, [
1384
- l,
1387
+ a,
1385
1388
  n,
1386
1389
  B
1387
1390
  ]), J = R(async (W) => _(B ? [
@@ -1397,8 +1400,8 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
1397
1400
  B
1398
1401
  ]);
1399
1402
  Ht(t, () => {
1400
- var _e;
1401
- const W = s == null ? void 0 : s[0], G = (_e = j == null ? void 0 : j.fields) == null ? void 0 : _e.find((at) => "target" in at && at.target === (W == null ? void 0 : W.errorPath));
1403
+ var Ae;
1404
+ const W = s == null ? void 0 : s[0], G = (Ae = j == null ? void 0 : j.fields) == null ? void 0 : Ae.find((at) => "target" in at && at.target === (W == null ? void 0 : W.errorPath));
1402
1405
  return G == null ? void 0 : G.id;
1403
1406
  });
1404
1407
  const Ee = Xt(t), Ne = F(E(e, c.Country), {
@@ -1426,12 +1429,12 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
1426
1429
  ]);
1427
1430
  return j ? /* @__PURE__ */ r.createElement(d, {
1428
1431
  fieldId: t
1429
- }, /* @__PURE__ */ r.createElement(an, {
1432
+ }, /* @__PURE__ */ r.createElement(ln, {
1430
1433
  countryCode: n == null ? void 0 : n.country
1431
- }, /* @__PURE__ */ r.createElement(sn, {
1434
+ }, /* @__PURE__ */ r.createElement(an, {
1432
1435
  autocompleteEnabled: b,
1433
1436
  onAddressSelect: w
1434
- }, /* @__PURE__ */ r.createElement(Cn, {
1437
+ }, /* @__PURE__ */ r.createElement(In, {
1435
1438
  fields: _t
1436
1439
  }, /* @__PURE__ */ r.createElement("div", {
1437
1440
  ref: S,
@@ -1445,15 +1448,15 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
1445
1448
  }, /* @__PURE__ */ r.createElement("legend", {
1446
1449
  style: Gt
1447
1450
  }, u), /* @__PURE__ */ r.createElement(jt, {
1448
- formSchema: g,
1451
+ formSchema: O,
1449
1452
  form: j,
1450
- values: n ?? cr,
1453
+ values: n ?? dr,
1451
1454
  onFieldChange: D,
1452
- onBlur: a,
1455
+ onBlur: l,
1453
1456
  onFocus: i,
1454
- errors: s ?? dr,
1457
+ errors: s ?? ur,
1455
1458
  validateFields: J,
1456
- fields: O,
1459
+ fields: g,
1457
1460
  fieldActions: me
1458
1461
  }))))))) : null;
1459
1462
  };
@@ -1466,26 +1469,26 @@ c.PostalCode = $;
1466
1469
  c.StreetName = U;
1467
1470
  c.StreetNumber = se;
1468
1471
  c.Apartment = re;
1469
- const ur = "_postalCodeControl_1tire_1", mr = "_comboControl_1tire_5", pr = "_comboTrigger_1tire_19", Oe = {
1470
- postalCodeControl: ur,
1471
- comboControl: mr,
1472
- comboTrigger: pr
1473
- }, Tr = () => {
1474
- const e = nn(), t = tn(Me);
1472
+ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_comboTrigger_1tire_19", ge = {
1473
+ postalCodeControl: mr,
1474
+ comboControl: pr,
1475
+ comboTrigger: Er
1476
+ }, Mr = () => {
1477
+ const e = rn(), t = tn(Me);
1475
1478
  return /* @__PURE__ */ r.createElement(c, null, /* @__PURE__ */ r.createElement(c.Country, null, /* @__PURE__ */ r.createElement(c.Country.Label, {
1476
1479
  className: L(z, C.label)
1477
1480
  }, /* @__PURE__ */ r.createElement(c.Country.Label.Required, {
1478
1481
  className: L(Q, C.requiredMark)
1479
1482
  })), /* @__PURE__ */ r.createElement(c.Country.Control, {
1480
- className: L(it, C.input, Oe.comboControl)
1483
+ className: L(it, C.input, ge.comboControl)
1481
1484
  }, /* @__PURE__ */ r.createElement(c.Country.Control.Input, {
1482
1485
  className: L(C.innerInput, Me)
1483
1486
  }), /* @__PURE__ */ r.createElement(c.Country.Control.Trigger, {
1484
- className: Oe.comboTrigger
1487
+ className: ge.comboTrigger
1485
1488
  }, /* @__PURE__ */ r.createElement(ct, {
1486
1489
  className: C.dropdownIcon
1487
1490
  }))), /* @__PURE__ */ r.createElement(c.Country.Options, {
1488
- className: L(ge, C.selectPopover, C.dropdownPopover)
1491
+ className: L(Oe, C.selectPopover, C.dropdownPopover)
1489
1492
  }, /* @__PURE__ */ r.createElement(c.Country.Options.Option, {
1490
1493
  className: t
1491
1494
  })), /* @__PURE__ */ r.createElement(c.Country.Error, {
@@ -1502,7 +1505,7 @@ const ur = "_postalCodeControl_1tire_1", mr = "_comboControl_1tire_5", pr = "_co
1502
1505
  })), /* @__PURE__ */ r.createElement(c.AddressLine.Input, {
1503
1506
  className: e
1504
1507
  }), /* @__PURE__ */ r.createElement(c.AddressLine.Options, {
1505
- className: L(ge, C.selectPopover, C.dropdownPopover)
1508
+ className: L(Oe, C.selectPopover, C.dropdownPopover)
1506
1509
  }, /* @__PURE__ */ r.createElement(c.AddressLine.Options.Option, {
1507
1510
  className: t
1508
1511
  })), /* @__PURE__ */ r.createElement(c.AddressLine.Error, {
@@ -1543,11 +1546,11 @@ const ur = "_postalCodeControl_1tire_1", mr = "_comboControl_1tire_5", pr = "_co
1543
1546
  }, /* @__PURE__ */ r.createElement(c.PostalCode.Label.Required, {
1544
1547
  className: L(Q, C.requiredMark)
1545
1548
  })), /* @__PURE__ */ r.createElement(c.PostalCode.Control, {
1546
- className: Oe.postalCodeControl
1549
+ className: ge.postalCodeControl
1547
1550
  }, /* @__PURE__ */ r.createElement(c.PostalCode.Control.Input, {
1548
1551
  className: e
1549
1552
  })), /* @__PURE__ */ r.createElement(c.PostalCode.Options, {
1550
- className: L(ge, C.selectPopover, C.dropdownPopover)
1553
+ className: L(Oe, C.selectPopover, C.dropdownPopover)
1551
1554
  }, /* @__PURE__ */ r.createElement(c.PostalCode.Options.Option, {
1552
1555
  className: t
1553
1556
  })), /* @__PURE__ */ r.createElement(c.PostalCode.Error, {
@@ -1562,15 +1565,15 @@ const ur = "_postalCodeControl_1tire_1", mr = "_comboControl_1tire_5", pr = "_co
1562
1565
  }, /* @__PURE__ */ r.createElement(c.Subdivision.Label.Required, {
1563
1566
  className: L(Q, C.requiredMark)
1564
1567
  })), /* @__PURE__ */ r.createElement(c.Subdivision.Control, {
1565
- className: L(it, C.input, Oe.comboControl)
1568
+ className: L(it, C.input, ge.comboControl)
1566
1569
  }, /* @__PURE__ */ r.createElement(c.Subdivision.Control.Input, {
1567
1570
  className: L(C.innerInput, Me)
1568
1571
  }), /* @__PURE__ */ r.createElement(c.Subdivision.Control.Trigger, {
1569
- className: Oe.comboTrigger
1572
+ className: ge.comboTrigger
1570
1573
  }, /* @__PURE__ */ r.createElement(ct, {
1571
1574
  className: C.dropdownIcon
1572
1575
  }))), /* @__PURE__ */ r.createElement(c.Subdivision.Options, {
1573
- className: L(ge, C.selectPopover, C.dropdownPopover)
1576
+ className: L(Oe, C.selectPopover, C.dropdownPopover)
1574
1577
  }, /* @__PURE__ */ r.createElement(c.Subdivision.Options.Option, {
1575
1578
  className: t
1576
1579
  })), /* @__PURE__ */ r.createElement(c.Subdivision.Error, {
@@ -1587,7 +1590,7 @@ const ur = "_postalCodeControl_1tire_1", mr = "_comboControl_1tire_5", pr = "_co
1587
1590
  })), /* @__PURE__ */ r.createElement(c.StreetName.Input, {
1588
1591
  className: e
1589
1592
  }), /* @__PURE__ */ r.createElement(c.StreetName.Options, {
1590
- className: L(ge, C.selectPopover, C.dropdownPopover)
1593
+ className: L(Oe, C.selectPopover, C.dropdownPopover)
1591
1594
  }, /* @__PURE__ */ r.createElement(c.StreetName.Options.Option, {
1592
1595
  className: t
1593
1596
  })), /* @__PURE__ */ r.createElement(c.StreetName.Error, {
@@ -1626,5 +1629,5 @@ const ur = "_postalCodeControl_1tire_1", mr = "_comboControl_1tire_5", pr = "_co
1626
1629
  }))));
1627
1630
  };
1628
1631
  export {
1629
- Tr as M
1632
+ Mr as M
1630
1633
  };