@wix/form-elements 1.151.0 → 1.153.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-D5wp75zN.js → appointment-rac-D2bigw_H.js} +4 -4
  2. package/dist/component/{bookings-address-rac-CWtYXwpn.js → bookings-address-rac-Cf05RpIZ.js} +1 -1
  3. package/dist/component/{bookings-email-rac-BUpRXmbz.js → bookings-email-rac-CT-Kud-p.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CnHSxXFN.js → bookings-first-name-rac-Bs5OyaHY.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BcD45Kgs.js → bookings-header-rac-Ru9_r2xR.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-VaqfK3bu.js → bookings-last-name-rac-DXMPd2Ps.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-Dv2quJRw.js → bookings-login-bar-rac-DnrhCv8K.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-DVOu-9yX.js → bookings-phone-rac-EGAH9Sj5.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-SfsoQKeI.js → bookings-rich-text-rac-wvJv1HLp.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-BHGWuGcT.js → checkbox-field-rac-LA2ynBpW.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-KVBLbjKE.js → checkbox-group-field-headless-Be3rHuBy.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-C-WNRuVW.js → checkbox-group-field-rac-cKVBp2Od.js} +7 -7
  13. package/dist/component/{checkbox-group-rac-BMeqtM9H.js → checkbox-group-rac-DSdh3fge.js} +1 -1
  14. package/dist/component/{checkbox-rac-WDBiwyvs.js → checkbox-rac-DMSneG1p.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CUjhR8Nq.js → contacts-address-rac-BqzNSCJr.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BurJLd1V.js → contacts-birthdate-rac-CNPCgWV_.js} +1 -1
  17. package/dist/component/{contacts-company-rac-y94712hj.js → contacts-company-rac-DNLgFugB.js} +1 -1
  18. package/dist/component/{contacts-email-rac-BYzv5pJt.js → contacts-email-rac-DzYtj6U7.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-AabYYZTr.js → contacts-first-name-rac-_w-NCWhj.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-B6GTnMea.js → contacts-last-name-rac-MO5nwQUf.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BhGEdh5D.js → contacts-phone-rac-vp0CnlDj.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BmbLuomW.js → contacts-position-rac-CNcaPpV5.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-B7SELom1.js → contacts-subscribe-rac-ChNW2GDr.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BewGatKM.js → contacts-tax-id-rac-BpxH95CB.js} +1 -1
  25. package/dist/component/{date-availability-Cpw7i5-L.js → date-availability-ZWzqCMNY.js} +1 -1
  26. package/dist/component/{date-input-field-rac-JbWzxDzZ.js → date-input-field-rac-Dd9a7PaB.js} +6 -6
  27. package/dist/component/{date-input-rac-v4pNWyuY.js → date-input-rac-InYREYth.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-0eLcya58.js → date-picker-field-rac-unQuEVfi.js} +6 -6
  29. package/dist/component/{date-picker-rac-BP4BRWn4.js → date-picker-rac-DlLt-suC.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-Cj0RSJF9.js → date-time-input-field-rac-DN6FmYST.js} +6 -6
  31. package/dist/component/{date-time-input-rac-DyD0SpMV.js → date-time-input-rac-BM90MGg0.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BE9fK7wx.js → dext-checkbox-group-rac-BUMKcxmc.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-CpB-AVP1.js → dext-checkbox-rac-DGanqYnB.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-DkiWY5CE.js → dext-date-picker-rac-Vm5LqGKJ.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-CyGIs4uD.js → dext-date-time-input-rac-DPXuw9dZ.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-C0GiCpWI.js → dext-dropdown-rac-Cofyuyfi.js} +1 -1
  37. package/dist/component/{dext-email-rac-Clngd9Lm.js → dext-email-rac-_y8wS7KV.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-Boshfkc5.js → dext-number-input-rac-ZytCGJrW.js} +1 -1
  39. package/dist/component/{dext-phone-rac-AX8R0fDx.js → dext-phone-rac-C55xMFUD.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-VSwdnWPU.js → dext-radio-group-rac-BBPDyfmw.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-aspmLO_w.js → dext-rating-input-rac-BhdcK-GH.js} +1 -1
  42. package/dist/component/{dext-tags-rac-D4r4j1KZ.js → dext-tags-rac-CI2Xc03w.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-D8vG4QTK.js → dext-text-area-rac-RuSovGlp.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-D19SJhDG.js → dext-text-input-rac-DQd00cll.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BUAWZX7n.js → dext-url-input-rac-Bn2-Qudo.js} +1 -1
  46. package/dist/component/{donation-rac-C4NdOTts.js → donation-rac-XB0arMGx.js} +5 -5
  47. package/dist/component/{dropdown-field-headless-CtppkNv5.js → dropdown-field-headless-D0QHnQvI.js} +5 -5
  48. package/dist/component/{dropdown-field-rac-B6KCsR-j.js → dropdown-field-rac-Bwe73KgJ.js} +5 -5
  49. package/dist/component/{dropdown-rac-CkFLrcRV.js → dropdown-rac-CChdbmVW.js} +1 -1
  50. package/dist/component/{ecom-address-rac-D6asF2b7.js → ecom-address-rac-U0zYzmAk.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-CFzMl_9G.js → ecom-subscription-checkbox-rac-Cd4fKnVJ.js} +2 -2
  52. package/dist/component/{email-input-field-rac-gCsspvxb.js → email-input-field-rac-FRlbfWr0.js} +3 -3
  53. package/dist/component/{events-repeater-rac-DSrjafwK.js → events-repeater-rac-CBjqu0d6.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-CMQtNDqE.js → events-rsvp-rac-Ciezamm0.js} +3 -3
  55. package/dist/component/{field-error-headless-Bt2dslWu.js → field-error-headless-Bkstr7c4.js} +1 -1
  56. package/dist/component/{field-label-headless-ZBAhq8nF.js → field-label-headless-BQdzL3qy.js} +1 -1
  57. package/dist/component/{file-upload-rac-MzPreLKz.js → file-upload-rac-BKE1ducj.js} +30 -30
  58. package/dist/component/{fixed-payment-rac-CPWIOJSH.js → fixed-payment-rac-B01pKLTi.js} +8 -8
  59. package/dist/component/{form-BrXx-2qp.js → form-BBasotzg.js} +291 -294
  60. package/dist/component/form.js +1 -1
  61. package/dist/component/{header-field-rac-5dkUDBLN.js → header-field-rac-CrhHOqXZ.js} +2 -2
  62. package/dist/component/{header-rac-eXnz2eEI.js → header-rac-Dp3WTqgX.js} +1 -1
  63. package/dist/component/{image-choice-rac-BxmirCog.js → image-choice-rac-DJxTewda.js} +4 -4
  64. package/dist/component/{index-CCz5mdOt.js → index-BQvyEQWT.js} +4 -4
  65. package/dist/component/{index-Be6_W-02.js → index-n_nFGyIF.js} +2 -2
  66. package/dist/component/{isObjectLike-DhFZRIZ5.js → isObjectLike-BVuF_W7V.js} +1 -1
  67. package/dist/component/{multiline-address-field-rac-C3Rz-qFR.js → multiline-address-field-rac-D8d0OxHJ.js} +7 -7
  68. package/dist/component/{multiline-address-rac-BFvxiD8l.js → multiline-address-rac-BVfMe6L4.js} +1 -1
  69. package/dist/component/{number-input-field-rac-CAuoAgAm.js → number-input-field-rac-CxEmmXKN.js} +9 -9
  70. package/dist/component/{number-input-rac-ZCBaL_D4.js → number-input-rac-QYnTwzd-.js} +1 -1
  71. package/dist/component/{password-rac-oAAB5Yek.js → password-rac-C-qGzwyr.js} +6 -6
  72. package/dist/component/{payment-input-rac-BkVImcPM.js → payment-input-rac-DmrwVntr.js} +16 -16
  73. package/dist/component/{phone-input-field-rac-LReDQaEl.js → phone-input-field-rac-COIVTDiA.js} +202 -202
  74. package/dist/component/{phone-rac-B4Rv_q9_.js → phone-rac-DKQE4q0-.js} +1 -1
  75. package/dist/component/{product-list-rac-CVoJPZH6.js → product-list-rac-MP1iV-ki.js} +25 -25
  76. package/dist/component/{quiz-radio-group-rac-CHXOBaWQ.js → quiz-radio-group-rac-D5SWxzie.js} +1 -1
  77. package/dist/component/{radio-button-module-classes-G3CPOqV_.js → radio-button-module-classes-DHbL55H_.js} +3 -3
  78. package/dist/component/{radio-group-field-rac-Di8f67l0.js → radio-group-field-rac-BgtFPmlJ.js} +8 -8
  79. package/dist/component/{radio-group-rac-BP4EdSWA.js → radio-group-rac-Ct-3Dxt9.js} +1 -1
  80. package/dist/component/{rating-input-field-rac-D6nHfXat.js → rating-input-field-rac-D2UWtvZ5.js} +15 -15
  81. package/dist/component/{rating-input-rac-BpTVbrOY.js → rating-input-rac-D31uJ5fp.js} +1 -1
  82. package/dist/component/{rich-content-rac.module-DfNKRJQl.js → rich-content-rac.module-CaJq2hem.js} +1 -1
  83. package/dist/component/{rich-text-field-rac-BZx7O1ln.js → rich-text-field-rac-Cozr8cKE.js} +2 -2
  84. package/dist/component/{rich-text-rac-Bie0rehR.js → rich-text-rac-BPDbHGDS.js} +1 -1
  85. package/dist/component/{service-dropdown-rac-DZgYoLs3.js → service-dropdown-rac-BmRx6WJk.js} +11 -11
  86. package/dist/component/{services-multi-choice-rac-os7W4s1g.js → services-multi-choice-rac-BWd7EnKj.js} +8 -8
  87. package/dist/component/{signature-rac-BMRvU0qg.js → signature-rac-GWN393X6.js} +53 -53
  88. package/dist/component/{submit-button-rac-BkXQF3FL.js → submit-button-rac-DkcJAQz4.js} +2 -2
  89. package/dist/component/{tags-field-rac-5GL81x5S.js → tags-field-rac-Crj2KkXI.js} +17 -17
  90. package/dist/component/{tags-rac-BG4eu5vf.js → tags-rac-BqTLqg6-.js} +1 -1
  91. package/dist/component/{text-area-field-rac-CGtt6YXJ.js → text-area-field-rac-DDNzZb6-.js} +12 -12
  92. package/dist/component/{text-area-rac-D6aJxM-f.js → text-area-rac-_GZpfhob.js} +1 -1
  93. package/dist/component/{text-input-field-rac-BUuVi4gl.js → text-input-field-rac-C8Oy01fr.js} +5 -5
  94. package/dist/component/{text-input-headless-DG-jyTVD.js → text-input-headless-CeUccQB2.js} +3 -3
  95. package/dist/component/{text-input-rac-LVE42SOJ.js → text-input-rac-quKzZGuN.js} +1 -1
  96. package/dist/component/{time-input-rac-jZ9v7Azv.js → time-input-rac-Cs6v7FWy.js} +16 -16
  97. package/dist/component/{url-input-field-rac-DQ9JerAM.js → url-input-field-rac-XKB-01MY.js} +7 -7
  98. package/dist/component/{url-input-rac-4k06IpF-.js → url-input-rac-CLy5V0JB.js} +1 -1
  99. package/dist/component/{use-dropdown-trigger-class-name-CgNFe8Eg.js → use-dropdown-trigger-class-name-BnXNxOw5.js} +3 -3
  100. package/dist/component/{use-element-state-class-name-B4a4SKmP.js → use-element-state-class-name-DXp0miT9.js} +1 -1
  101. package/dist/component/{use-hoverable-input-class-name-DZVkGZvs.js → use-hoverable-input-class-name-D2Y08f_R.js} +2 -2
  102. package/dist/component/{use-is-forced-open-dropdown-ClP9MSlU.js → use-is-forced-open-dropdown-BG5bt8En.js} +1 -1
  103. package/dist/component/{use-service-options-base-Ch2bF4mk.js → use-service-options-base--io114bM.js} +1 -1
  104. package/dist/component/use-text-input-class-name-DGOkD9xM.js +6 -0
  105. package/package.json +3 -3
  106. package/dist/component/use-text-input-class-name-BQshbjqt.js +0 -6
@@ -1,79 +1,79 @@
1
- import { RicosViewer as Ce } from "@wix/ricos/viewer";
2
- import h from "classnames";
3
- import t, { useMemo as j, useState as $, useRef as F, useEffect as k, useCallback as W, createContext as ee, useContext as H, useId as de } from "react";
4
- import { b7 as ye, by as D, bg as te, bx as Ee, bo as w, bl as ne, bq as fe, S as ge, a0 as he, R as be, y as Oe, H as _e, v as Ne } from "./form-BrXx-2qp.js";
1
+ import { RicosViewer as de } from "@wix/ricos/viewer";
2
+ import b from "classnames";
3
+ import t, { useMemo as j, useState as $, useRef as F, useEffect as k, useCallback as W, createContext as te, useContext as H, useId as ye } from "react";
4
+ import { b7 as Ee, by as w, bg as ne, bx as fe, bo as D, bl as oe, bq as ge, R as he, a0 as be, y as Oe, H as Ne, v as _e } from "./form-BBasotzg.js";
5
5
  import { UNSAFE_PortalProvider as Se } from "react-aria";
6
- import { Dialog as oe, OverlayTriggerStateContext as Le, ModalOverlay as Ie, Modal as ve, SearchField as Pe, Group as q, ListBoxItem as Fe, DialogTrigger as De, Select as we, Input as re, Autocomplete as Be } from "react-aria-components";
6
+ import { Dialog as re, OverlayTriggerStateContext as Le, ModalOverlay as Ie, Modal as ve, SearchField as Pe, Group as q, ListBoxItem as Fe, DialogTrigger as we, Select as De, Input as ae, Autocomplete as Be } from "react-aria-components";
7
7
  import { f as g, a as I } from "./find-child-C60k4CxG.js";
8
- import { D as Re, E as xe } from "./field-error-headless-Bt2dslWu.js";
9
- import { L as Me } from "./field-label-headless-ZBAhq8nF.js";
8
+ import { D as xe, E as Re } from "./field-error-headless-Bkstr7c4.js";
9
+ import { L as Me } from "./field-label-headless-BQdzL3qy.js";
10
10
  import { N as Te, S as je } from "./non-modal-popover-D-u13tmp.js";
11
11
  import { u as $e } from "./use-invoke-callback-UH73A_J3.js";
12
- import { a as Ae } from "./use-is-forced-open-dropdown-ClP9MSlU.js";
13
- import { V as ke, u as Ue, a as Ve } from "./use-dropdown-trigger-class-name-CgNFe8Eg.js";
14
- import ae, { AsYouType as qe, isValidPhoneNumber as He, isSupportedCountry as Ge } from "libphonenumber-js";
12
+ import { a as Ae } from "./use-is-forced-open-dropdown-BG5bt8En.js";
13
+ import { V as ke, u as Ve, a as Ue } from "./use-dropdown-trigger-class-name-BnXNxOw5.js";
14
+ import se, { AsYouType as qe, isValidPhoneNumber as He, isSupportedCountry as Ge } from "libphonenumber-js";
15
15
  import "libphonenumber-js/metadata.min.json";
16
16
  import { C as Z } from "./calling-country-codes-PyWuOTmF.js";
17
17
  import { C as Ye } from "./chevron-down-icon-CcpVm6B-.js";
18
18
  import { E as ze } from "./error-icon-hZxQ6DEy.js";
19
19
  import { H as Q } from "./custom-focus-class-_483Pkwp.js";
20
20
  import { s as O } from "./field-rac.module-DP0lkkEv.js";
21
- import { u as Ke } from "./use-text-input-class-name-BQshbjqt.js";
22
- function J(e) {
23
- const n = e ? ae(e) : void 0, r = n == null ? void 0 : n.country;
24
- if (r)
25
- return r;
26
- const o = new qe();
27
- return e && o.input(e), o.getCountry();
21
+ import { u as J } from "./use-text-input-class-name-DGOkD9xM.js";
22
+ function X(e) {
23
+ const n = e ? se(e) : void 0, o = n == null ? void 0 : n.country;
24
+ if (o)
25
+ return o;
26
+ const r = new qe();
27
+ return e && r.input(e), r.getCountry();
28
28
  }
29
29
  function G(e) {
30
30
  var n;
31
- return e && ((n = ye.getCountryByKey(e)) == null ? void 0 : n.dialCode);
31
+ return e && ((n = Ee.getCountryByKey(e)) == null ? void 0 : n.dialCode);
32
32
  }
33
- function U(e) {
33
+ function V(e) {
34
34
  return e === null ? null : e.replace(/[^0-9+]/g, "") || e;
35
35
  }
36
- function X(e, n) {
36
+ function ee(e, n) {
37
37
  if (e && n)
38
38
  try {
39
- const r = ae(e, n), o = r == null ? void 0 : r.formatInternational();
40
- if (o && He(o))
41
- return o.replace(/\s+/g, "");
39
+ const o = se(e, n), r = o == null ? void 0 : o.formatInternational();
40
+ if (r && He(r))
41
+ return r.replace(/\s+/g, "");
42
42
  } catch {
43
43
  }
44
44
  return e;
45
45
  }
46
- function We() {
47
- const { t: e } = D(), { language: n } = te();
48
- return j(() => Object.keys(Z).reduce((o, a) => {
46
+ function Ke() {
47
+ const { t: e } = w(), { language: n } = ne();
48
+ return j(() => Object.keys(Z).reduce((r, a) => {
49
49
  const c = Z[a], l = G(c), i = e(`locale-dataset.countries.${c.toUpperCase()}`);
50
- return l && Ge(a) && o.push({
50
+ return l && Ge(a) && r.push({
51
51
  countryName: i,
52
52
  longCountryCode: c,
53
53
  shortCountryCode: a,
54
54
  callingCode: l
55
- }), o;
56
- }, []).sort((o, a) => o.countryName.localeCompare(a.countryName, n)), [
55
+ }), r;
56
+ }, []).sort((r, a) => r.countryName.localeCompare(a.countryName, n)), [
57
57
  e,
58
58
  n
59
59
  ]);
60
60
  }
61
- function Ze(e, n) {
62
- return e.filter((r) => n && n.length > 0 ? n.includes(r.shortCountryCode) : !0);
61
+ function We(e, n) {
62
+ return e.filter((o) => n && n.length > 0 ? n.includes(o.shortCountryCode) : !0);
63
63
  }
64
- function Qe(e, n) {
65
- const { countryName: r, callingCode: o, shortCountryCode: a } = e;
66
- return !!(V(r, n) || V(o, n) || V(a, n));
64
+ function Ze(e, n) {
65
+ const { countryName: o, callingCode: r, shortCountryCode: a } = e;
66
+ return !!(U(o, n) || U(r, n) || U(a, n));
67
67
  }
68
- function V(e, n) {
68
+ function U(e, n) {
69
69
  return e.toLowerCase().includes(n.toLowerCase());
70
70
  }
71
- function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
72
- const [a, c] = $(e || ""), l = F(U(e ?? null) ?? ""), [i, u] = $(n);
73
- Ee(() => {
74
- c(""), l.current = "", u(n), o("");
71
+ function Qe({ value: e, defaultCountryCode: n, allowedCountryCodes: o, onChange: r }) {
72
+ const [a, c] = $(e || ""), l = F(V(e ?? null) ?? ""), [i, u] = $(n);
73
+ fe(() => {
74
+ c(""), l.current = "", u(n), r("");
75
75
  });
76
- const m = j(() => J(a), [
76
+ const m = j(() => X(a), [
77
77
  a
78
78
  ]);
79
79
  k(() => {
@@ -94,24 +94,24 @@ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
94
94
  ]);
95
95
  const C = W((p) => {
96
96
  if (c(p), !p) {
97
- l.current = "", o(null);
97
+ l.current = "", r(null);
98
98
  return;
99
99
  }
100
- const f = J(p);
100
+ const f = X(p);
101
101
  u((y) => {
102
- const L = f || y || ((r == null ? void 0 : r.length) === 1 ? r[0] : void 0), N = U(X(p, L));
103
- return l.current = N ?? "", o(N), f || y;
102
+ const L = f || y || ((o == null ? void 0 : o.length) === 1 ? o[0] : void 0), _ = V(ee(p, L));
103
+ return l.current = _ ?? "", r(_), f || y;
104
104
  });
105
105
  }, [
106
- r,
107
- o
106
+ o,
107
+ r
108
108
  ]), d = W((p) => {
109
109
  u(p), c((f) => {
110
- const y = U(X(f, p));
111
- return l.current = y ?? "", o(y), f;
110
+ const y = V(ee(f, p));
111
+ return l.current = y ?? "", r(y), f;
112
112
  });
113
113
  }, [
114
- o
114
+ r
115
115
  ]);
116
116
  return {
117
117
  currentValue: a,
@@ -120,25 +120,25 @@ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
120
120
  handleCountryCodeChange: d
121
121
  };
122
122
  }
123
- const se = /* @__PURE__ */ ee(null), _ = () => {
124
- const e = H(se);
123
+ const ce = /* @__PURE__ */ te(null), N = () => {
124
+ const e = H(ce);
125
125
  if (!e)
126
126
  throw new Error("Phone input components must be used within PhoneInput component");
127
127
  return e;
128
- }, ce = /* @__PURE__ */ ee(null), Y = () => {
129
- const e = H(ce);
128
+ }, le = /* @__PURE__ */ te(null), Y = () => {
129
+ const e = H(le);
130
130
  if (!e)
131
131
  throw new Error("Option sub-components must be used within Option component");
132
132
  return e;
133
133
  }, z = ({ longCountryCode: e, className: n }) => {
134
- function r(c, l) {
134
+ function o(c, l) {
135
135
  const i = "https://static.parastorage.com/services/linguist-flags/1.1005.0/assets/flags/square/", m = `${c}${l === "2x" ? "_2x" : ""}.png`;
136
136
  return `${i}${m}`;
137
137
  }
138
- const o = r(e, "1x"), a = r(e, "2x");
138
+ const r = o(e, "1x"), a = o(e, "2x");
139
139
  return /* @__PURE__ */ t.createElement("img", {
140
- src: o,
141
- srcSet: `${o} 1x, ${a} 2x`,
140
+ src: r,
141
+ srcSet: `${r} 1x, ${a} 2x`,
142
142
  alt: "",
143
143
  "aria-hidden": "true",
144
144
  loading: "lazy",
@@ -146,26 +146,26 @@ const se = /* @__PURE__ */ ee(null), _ = () => {
146
146
  });
147
147
  }, s = ({ children: e }) => {
148
148
  var S, P;
149
- const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = w(), [i, u] = $(null), m = (P = (S = l == null ? void 0 : l.string) == null ? void 0 : S.phoneOptions) == null ? void 0 : P.allowedCountryCodes, C = We(), d = j(() => Ze(C, m), [
149
+ const { id: n, value: o, onChange: r, FieldLayout: a, defaultCountry: c, validation: l } = D(), [i, u] = $(null), m = (P = (S = l == null ? void 0 : l.string) == null ? void 0 : S.phoneOptions) == null ? void 0 : P.allowedCountryCodes, C = Ke(), d = j(() => We(C, m), [
150
150
  C,
151
151
  m
152
152
  ]), p = j(() => d.map((T) => T.shortCountryCode), [
153
153
  d
154
- ]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: L, handleCountryCodeChange: N } = Je({
155
- value: r,
154
+ ]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: L, handleCountryCodeChange: _ } = Qe({
155
+ value: o,
156
156
  defaultCountryCode: c,
157
157
  allowedCountryCodes: p,
158
- onChange: o
159
- }), B = g(e, s.Label), R = g(e, s.Control), x = g(e, s.Description), M = g(e, s.Error), v = {
158
+ onChange: r
159
+ }), B = g(e, s.Label), x = g(e, s.Control), R = g(e, s.Description), M = g(e, s.Error), v = {
160
160
  currentValue: f,
161
161
  selectedCountryCode: y,
162
162
  handlePhoneChange: L,
163
- handleCountryCodeChange: N,
163
+ handleCountryCodeChange: _,
164
164
  countryCodes: p,
165
165
  countries: d,
166
166
  popoverContainer: i
167
167
  };
168
- return /* @__PURE__ */ t.createElement(se.Provider, {
168
+ return /* @__PURE__ */ t.createElement(ce.Provider, {
169
169
  value: v
170
170
  }, /* @__PURE__ */ t.createElement(a, {
171
171
  fieldId: n,
@@ -175,38 +175,38 @@ const se = /* @__PURE__ */ ee(null), _ = () => {
175
175
  style: {
176
176
  display: "contents"
177
177
  }
178
- }), R),
179
- renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, M, x)
178
+ }), x),
179
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, M, R)
180
180
  }));
181
181
  }, K = ({ children: e, className: n }) => {
182
- const { labelId: r } = ne(), { hasError: o, disabled: a, readOnly: c } = w(), { t: l } = D(), { selectedCountryCode: i, countries: u } = _(), m = de(), C = i ? u.find((y) => y.shortCountryCode === i) : void 0, d = C && G(C.longCountryCode) || "", p = l("field.phone.country-code.aria-label"), f = C ? `${p}, ${C.countryName}, ${d}` : p;
182
+ const { labelId: o } = oe(), { hasError: r, disabled: a, readOnly: c } = D(), { t: l } = w(), { selectedCountryCode: i, countries: u } = N(), m = ye(), C = i ? u.find((y) => y.shortCountryCode === i) : void 0, d = C && G(C.longCountryCode) || "", p = l("field.phone.country-code.aria-label"), f = C ? `${p}, ${C.countryName}, ${d}` : p;
183
183
  return /* @__PURE__ */ t.createElement(je, {
184
184
  isDisabled: a || c,
185
185
  id: m,
186
186
  "aria-label": f,
187
- "aria-labelledby": r ? `${r} ${m}` : void 0,
187
+ "aria-labelledby": o ? `${o} ${m}` : void 0,
188
188
  className: n,
189
- "data-invalid": o || void 0
189
+ "data-invalid": r || void 0
190
190
  }, e);
191
- }, Xe = ({ className: e }) => {
192
- const { selectedCountryCode: n, countries: r } = _(), o = r.find((a) => a.shortCountryCode === n);
193
- return o ? /* @__PURE__ */ t.createElement(z, {
191
+ }, Je = ({ className: e }) => {
192
+ const { selectedCountryCode: n, countries: o } = N(), r = o.find((a) => a.shortCountryCode === n);
193
+ return r ? /* @__PURE__ */ t.createElement(z, {
194
194
  className: e,
195
- longCountryCode: o.longCountryCode
195
+ longCountryCode: r.longCountryCode
196
196
  }) : null;
197
- }, et = ({ children: e, className: n }) => {
198
- const { selectedCountryCode: r, countries: o } = _();
199
- return o.some((c) => c.shortCountryCode === r) ? null : /* @__PURE__ */ t.createElement("span", {
197
+ }, Xe = ({ children: e, className: n }) => {
198
+ const { selectedCountryCode: o, countries: r } = N();
199
+ return r.some((c) => c.shortCountryCode === o) ? null : /* @__PURE__ */ t.createElement("span", {
200
200
  className: n
201
201
  }, e);
202
202
  };
203
- K.Flag = Xe;
204
- K.EmptyState = et;
205
- const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a, ...c }) => {
206
- const { triggerRef: l, optionsRef: i, isForcedOpen: u, isOpen: m } = c, { popoverContainer: C } = _(), d = g(e, b.Search);
203
+ K.Flag = Je;
204
+ K.EmptyState = Xe;
205
+ const h = ({ children: e, className: n, "aria-label": o, placement: r, offset: a, ...c }) => {
206
+ const { triggerRef: l, optionsRef: i, isForcedOpen: u, isOpen: m } = c, { popoverContainer: C } = N(), d = g(e, h.Search);
207
207
  if (!m)
208
208
  return null;
209
- const p = /* @__PURE__ */ t.createElement(le, {
209
+ const p = /* @__PURE__ */ t.createElement(ue, {
210
210
  isForcedOpen: u
211
211
  }, e);
212
212
  return /* @__PURE__ */ t.createElement(Se, {
@@ -215,25 +215,25 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
215
215
  ref: i,
216
216
  triggerRef: l,
217
217
  className: n,
218
- placement: o,
218
+ placement: r,
219
219
  offset: a,
220
220
  containerPadding: 0
221
- }, d && !u ? /* @__PURE__ */ t.createElement(oe, {
222
- "aria-label": r
221
+ }, d && !u ? /* @__PURE__ */ t.createElement(re, {
222
+ "aria-label": o
223
223
  }, p) : p));
224
- }, tt = ({ children: e, className: n, overlayClassName: r, "aria-label": o, portalContainer: a = t.Fragment, ...c }) => {
225
- const { optionsRef: l } = c, { selectedCountryCode: i, handleCountryCodeChange: u } = _(), m = H(Le);
224
+ }, et = ({ children: e, className: n, overlayClassName: o, "aria-label": r, portalContainer: a = t.Fragment, ...c }) => {
225
+ const { optionsRef: l } = c, { selectedCountryCode: i, handleCountryCodeChange: u } = N(), m = H(Le);
226
226
  return /* @__PURE__ */ t.createElement(Ie, {
227
- className: r,
227
+ className: o,
228
228
  isDismissable: !0
229
229
  }, /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(ve, {
230
230
  ref: l,
231
231
  className: n
232
- }, /* @__PURE__ */ t.createElement(oe, {
233
- "aria-label": o
234
- }, /* @__PURE__ */ t.createElement(le, {
232
+ }, /* @__PURE__ */ t.createElement(re, {
233
+ "aria-label": r
234
+ }, /* @__PURE__ */ t.createElement(ue, {
235
235
  listBoxProps: {
236
- "aria-label": o,
236
+ "aria-label": r,
237
237
  selectionMode: "single",
238
238
  selectedKeys: i ? [
239
239
  i
@@ -244,12 +244,12 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
244
244
  }
245
245
  }
246
246
  }, e)))));
247
- }, le = ({ children: e, listBoxProps: n, isForcedOpen: r }) => {
248
- const { countries: o } = _(), a = g(e, b.Option), c = g(e, b.Search), l = g(e, b.EmptyState), i = /* @__PURE__ */ t.createElement(ke, {
249
- isForcedOpen: r === !0,
247
+ }, ue = ({ children: e, listBoxProps: n, isForcedOpen: o }) => {
248
+ const { countries: r } = N(), a = g(e, h.Option), c = g(e, h.Search), l = g(e, h.EmptyState), i = /* @__PURE__ */ t.createElement(ke, {
249
+ isForcedOpen: o === !0,
250
250
  ...n,
251
251
  renderEmptyState: l ? () => l : void 0
252
- }, o.map((u) => {
252
+ }, r.map((u) => {
253
253
  const m = G(u.longCountryCode) || "";
254
254
  return I(a, {
255
255
  key: u.shortCountryCode,
@@ -261,78 +261,78 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
261
261
  }));
262
262
  return c ? /* @__PURE__ */ t.createElement(Be, {
263
263
  filter: (u, m, C) => {
264
- const d = o.find((p) => p.shortCountryCode === C.key);
265
- return !!d && Qe(d, m);
264
+ const d = r.find((p) => p.shortCountryCode === C.key);
265
+ return !!d && Ze(d, m);
266
266
  }
267
- }, r ? I(c, {
267
+ }, o ? I(c, {
268
268
  autoFocus: !1
269
269
  }) : c, i) : i;
270
270
  };
271
- b.Popover = b;
272
- b.Modal = tt;
273
- const ue = ({ className: e, children: n, "aria-label": r, ...o }) => {
274
- const { autoFocus: a = !0 } = o;
271
+ h.Popover = h;
272
+ h.Modal = et;
273
+ const ie = ({ className: e, children: n, "aria-label": o, ...r }) => {
274
+ const { autoFocus: a = !0 } = r;
275
275
  return /* @__PURE__ */ t.createElement(Pe, {
276
- "aria-label": r,
276
+ "aria-label": o,
277
277
  autoFocus: a
278
278
  }, /* @__PURE__ */ t.createElement(q, {
279
279
  className: e
280
280
  }, n));
281
- }, nt = ({ className: e, placeholder: n }) => /* @__PURE__ */ t.createElement(re, {
281
+ }, tt = ({ className: e, placeholder: n }) => /* @__PURE__ */ t.createElement(ae, {
282
282
  className: e,
283
283
  placeholder: n
284
284
  });
285
- ue.Input = nt;
286
- b.Search = ue;
287
- const ot = ({ children: e, className: n }) => /* @__PURE__ */ t.createElement("div", {
285
+ ie.Input = tt;
286
+ h.Search = ie;
287
+ const nt = ({ children: e, className: n }) => /* @__PURE__ */ t.createElement("div", {
288
288
  className: n
289
289
  }, e);
290
- b.EmptyState = ot;
291
- const A = ({ children: e, className: n, ...r }) => {
292
- const { countryCode: o, dialingCode: a, countryName: c, longCountryCode: l } = r, i = {
293
- countryCode: o,
290
+ h.EmptyState = nt;
291
+ const A = ({ children: e, className: n, ...o }) => {
292
+ const { countryCode: r, dialingCode: a, countryName: c, longCountryCode: l } = o, i = {
293
+ countryCode: r,
294
294
  dialingCode: a,
295
295
  countryName: c,
296
296
  longCountryCode: l
297
- }, u = e || /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(ie, null), /* @__PURE__ */ t.createElement(me, null), /* @__PURE__ */ t.createElement(pe, null));
297
+ }, u = e || /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(me, null), /* @__PURE__ */ t.createElement(pe, null), /* @__PURE__ */ t.createElement(Ce, null));
298
298
  return /* @__PURE__ */ t.createElement(Fe, {
299
299
  className: n,
300
- id: o,
300
+ id: r,
301
301
  textValue: `${c} ${a}`
302
- }, /* @__PURE__ */ t.createElement(ce.Provider, {
302
+ }, /* @__PURE__ */ t.createElement(le.Provider, {
303
303
  value: i
304
304
  }, u));
305
- }, ie = ({ className: e }) => {
305
+ }, me = ({ className: e }) => {
306
306
  const { longCountryCode: n } = Y();
307
307
  return /* @__PURE__ */ t.createElement(z, {
308
308
  className: e,
309
309
  longCountryCode: n
310
310
  });
311
- }, me = ({ className: e }) => {
311
+ }, pe = ({ className: e }) => {
312
312
  const { countryName: n } = Y();
313
313
  return /* @__PURE__ */ t.createElement("span", {
314
314
  className: e
315
315
  }, n);
316
- }, pe = ({ className: e }) => {
316
+ }, Ce = ({ className: e }) => {
317
317
  const { dialingCode: n } = Y();
318
318
  return /* @__PURE__ */ t.createElement("span", {
319
319
  className: e
320
320
  }, n);
321
321
  };
322
- A.Flag = ie;
323
- A.Name = me;
324
- A.Code = pe;
325
- b.Option = A;
326
- const rt = ({ className: e }) => {
327
- const { t: n } = D(), { inputId: r, ariaDescribedBy: o } = ne(), { id: a, placeholder: c, disabled: l, readOnly: i, required: u, label: m, hasError: C } = w(), { currentValue: d, handlePhoneChange: p } = _(), f = F(null);
328
- return fe(() => {
322
+ A.Flag = me;
323
+ A.Name = pe;
324
+ A.Code = Ce;
325
+ h.Option = A;
326
+ const ot = ({ className: e }) => {
327
+ const { t: n } = w(), { inputId: o, ariaDescribedBy: r } = oe(), { id: a, placeholder: c, disabled: l, readOnly: i, required: u, label: m, hasError: C } = D(), { currentValue: d, handlePhoneChange: p } = N(), f = F(null);
328
+ return ge(() => {
329
329
  var y;
330
330
  (y = f.current) == null || y.focus({
331
331
  preventScroll: !0
332
332
  });
333
- }, a), /* @__PURE__ */ t.createElement(re, {
333
+ }, a), /* @__PURE__ */ t.createElement(ae, {
334
334
  ref: f,
335
- id: r,
335
+ id: o,
336
336
  type: "tel",
337
337
  autoComplete: "tel",
338
338
  value: d,
@@ -341,14 +341,14 @@ const rt = ({ className: e }) => {
341
341
  readOnly: i,
342
342
  required: u,
343
343
  "aria-label": `${m}. ${n("field.phone.aria-label")}`,
344
- "aria-describedby": o,
344
+ "aria-describedby": r,
345
345
  "aria-invalid": C,
346
346
  placeholder: c,
347
347
  className: e
348
348
  });
349
- }, at = ({ children: e, ...n }) => {
350
- const r = n, { isForcedOpen: o } = r, { disabled: a, readOnly: c, required: l, hasError: i } = w(), [u, m] = $(!1), { t: C } = D(), { selectedCountryCode: d, handleCountryCodeChange: p } = _(), f = o || u && !a && !c;
351
- return /* @__PURE__ */ t.createElement(we, {
349
+ }, rt = ({ children: e, ...n }) => {
350
+ const o = n, { isForcedOpen: r } = o, { disabled: a, readOnly: c, required: l, hasError: i } = D(), [u, m] = $(!1), { t: C } = w(), { selectedCountryCode: d, handleCountryCodeChange: p } = N(), f = r || u && !a && !c;
351
+ return /* @__PURE__ */ t.createElement(De, {
352
352
  "aria-label": C("field.phone.country-code.aria-label"),
353
353
  value: d ?? null,
354
354
  onChange: (y) => p(y),
@@ -358,22 +358,22 @@ const rt = ({ className: e }) => {
358
358
  placeholder: "",
359
359
  isOpen: f,
360
360
  allowsEmptyCollection: !0,
361
- onOpenChange: o ? void 0 : m
361
+ onOpenChange: r ? void 0 : m
362
362
  }, g(e, s.CountryButton), I(g(e, s.CountryOptions.Popover), {
363
- ...r,
363
+ ...o,
364
364
  isOpen: f
365
365
  }));
366
- }, st = ({ children: e, ...n }) => {
367
- const r = n;
368
- return /* @__PURE__ */ t.createElement(De, null, g(e, s.CountryButton), I(g(e, s.CountryOptions.Modal), r));
369
- }, ct = ({ children: e, className: n }) => {
370
- const r = F(null), o = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: m, onBlur: C } = w(), d = $e(C), { countries: p } = _(), f = g(e, s.CountryDrawer), y = g(e, s.CountryPopover), L = g(e, s.PhoneNumber), N = p.length > 1, B = Ae(c) && !!y && N, R = typeof n == "function" ? ({ isHovered: v, isFocusWithin: S }) => n({
371
- hasCountryOptions: N,
366
+ }, at = ({ children: e, ...n }) => {
367
+ const o = n;
368
+ return /* @__PURE__ */ t.createElement(we, null, g(e, s.CountryButton), I(g(e, s.CountryOptions.Modal), o));
369
+ }, st = ({ children: e, className: n }) => {
370
+ const o = F(null), r = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: m, onBlur: C } = D(), d = $e(C), { countries: p } = N(), f = g(e, s.CountryDrawer), y = g(e, s.CountryPopover), L = g(e, s.PhoneNumber), _ = p.length > 1, B = Ae(c) && !!y && _, x = typeof n == "function" ? ({ isHovered: v, isFocusWithin: S }) => n({
371
+ hasCountryOptions: _,
372
372
  isHovered: v,
373
373
  isFocusWithin: S
374
- }) : n, x = {
375
- triggerRef: r,
376
- optionsRef: o,
374
+ }) : n, R = {
375
+ triggerRef: o,
376
+ optionsRef: r,
377
377
  isForcedOpen: B
378
378
  }, M = {
379
379
  onFocus: () => {
@@ -382,35 +382,35 @@ const rt = ({ className: e }) => {
382
382
  onBlur: (v) => {
383
383
  var P, T;
384
384
  const S = v.relatedTarget;
385
- !((P = r.current) != null && P.contains(S)) && !((T = o.current) != null && T.contains(S)) && (a.current = !1, d());
385
+ !((P = o.current) != null && P.contains(S)) && !((T = r.current) != null && T.contains(S)) && (a.current = !1, d());
386
386
  }
387
387
  };
388
388
  return p.length === 1 ? /* @__PURE__ */ t.createElement(q, {
389
- ref: r,
390
- className: R,
389
+ ref: o,
390
+ className: x,
391
391
  isDisabled: l,
392
392
  isInvalid: i,
393
393
  ...M
394
394
  }, u && /* @__PURE__ */ t.createElement(z, {
395
395
  longCountryCode: p[0].longCountryCode
396
396
  }), L) : /* @__PURE__ */ t.createElement(q, {
397
- ref: r,
398
- className: R,
397
+ ref: o,
398
+ className: x,
399
399
  isDisabled: l,
400
400
  isInvalid: i,
401
401
  ...M
402
- }, !B && I(f, x), I(y, x), L);
402
+ }, !B && I(f, R), I(y, R), L);
403
403
  };
404
404
  s.Label = Me;
405
- s.Control = ct;
405
+ s.Control = st;
406
406
  s.CountryButton = K;
407
- s.CountryDrawer = st;
408
- s.CountryPopover = at;
409
- s.CountryOptions = b;
410
- s.PhoneNumber = rt;
411
- s.Description = Re;
412
- s.Error = xe;
413
- const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
407
+ s.CountryDrawer = at;
408
+ s.CountryPopover = rt;
409
+ s.CountryOptions = h;
410
+ s.PhoneNumber = ot;
411
+ s.Description = xe;
412
+ s.Error = Re;
413
+ const ct = (e) => /* @__PURE__ */ t.createElement("svg", {
414
414
  width: 24,
415
415
  height: 24,
416
416
  viewBox: "0 0 24 24",
@@ -420,7 +420,7 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
420
420
  }, /* @__PURE__ */ t.createElement("path", {
421
421
  fillRule: "evenodd",
422
422
  d: "M11.5,19 C11.331,19 11.166,18.985 11,18.975 L11,16.5 C11,16.224 10.776,16 10.5,16 L9.5,16 C9.224,16 9,15.775 9,15.5 L9,12.5 C9,12.366 8.947,12.238 8.852,12.145 L4.804,8.14 C6.04,5.688 8.573,4 11.5,4 C12.76,4 13.946,4.315 14.989,4.866 L15,6.497 C15.001,6.631 14.949,6.757 14.855,6.853 C14.76,6.947 14.634,7 14.5,7 L12.339,7 C12.207,7 12.08,7.053 11.986,7.146 L10.146,8.983 C10.053,9.077 10,9.204 10,9.337 L10,10.5 C10,11.325 10.672,11.999 11.499,12 L15.293,12 L17,13.707 L17,16.582 C15.629,18.064 13.674,19 11.5,19 M4,11.5 C4,10.673 4.14,9.879 4.388,9.135 L8,12.709 L8,15.5 C8,16.327 8.673,17 9.5,17 L10,17 L10,18.849 C6.581,18.152 4,15.122 4,11.5 M19,11.5 C19,12.856 18.632,14.127 18,15.226 L18,13.5 C18,13.367 17.947,13.24 17.854,13.146 L15.854,11.146 C15.76,11.053 15.633,11 15.5,11 L11.5,11 C11.224,11 11,10.775 11,10.5 L11,9.544 L12.546,8 L14.5,8 C14.902,8 15.281,7.843 15.564,7.557 C15.848,7.271 16.003,6.892 16,6.49 L15.993,5.51 C17.814,6.879 19,9.051 19,11.5 M11.5,3 C6.813,3 3,6.813 3,11.5 C3,16.187 6.813,20 11.5,20 C16.187,20 20,16.187 20,11.5 C20,6.813 16.187,3 11.5,3"
423
- })), ut = (e) => /* @__PURE__ */ t.createElement("svg", {
423
+ })), lt = (e) => /* @__PURE__ */ t.createElement("svg", {
424
424
  width: 24,
425
425
  height: 24,
426
426
  viewBox: "0 0 24 24",
@@ -430,43 +430,43 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
430
430
  }, /* @__PURE__ */ t.createElement("path", {
431
431
  fillRule: "evenodd",
432
432
  d: "M6.6108,14.3887 C5.5718,13.3497 4.9998,11.9687 4.9998,10.4997 C4.9998,9.0317 5.5718,7.6507 6.6108,6.6117 C7.6498,5.5727 9.0308,4.9997 10.4998,4.9997 C11.9688,4.9997 13.3498,5.5727 14.3888,6.6117 C15.4278,7.6507 15.9998,9.0317 15.9998,10.4997 C15.9998,11.9687 15.4278,13.3497 14.3888,14.3887 C13.3498,15.4277 11.9688,15.9997 10.4998,15.9997 C9.0308,15.9997 7.6498,15.4277 6.6108,14.3887 L6.6108,14.3887 Z M20.0028,19.2957 L15.4328,14.7247 C16.4438,13.5477 16.9998,12.0687 16.9998,10.4997 C16.9998,8.7637 16.3238,7.1317 15.0958,5.9047 C13.8688,4.6767 12.2358,3.9997 10.4998,3.9997 C8.7638,3.9997 7.1318,4.6767 5.9038,5.9047 C4.6758,7.1317 3.9998,8.7637 3.9998,10.4997 C3.9998,12.2367 4.6758,13.8677 5.9038,15.0957 C7.1318,16.3237 8.7638,16.9997 10.4998,16.9997 C12.0688,16.9997 13.5478,16.4437 14.7258,15.4317 L19.2958,20.0027 L20.0028,19.2957 Z"
433
- })), it = "_control_o9wij_1", mt = "_countryButton_o9wij_9", pt = "_drawerButton_o9wij_25", Ct = "_popoverButton_o9wij_34", dt = "_chevron_o9wij_39", yt = "_globeIcon_o9wij_48", Et = "_searchIcon_o9wij_56", ft = "_flag_o9wij_61", gt = "_option_o9wij_67", ht = "_phoneNumber_o9wij_80", bt = "_countryOptions_o9wij_106", Ot = "_countrySearch_o9wij_123", _t = "_mobileDrawer_o9wij_131", Nt = "_name_o9wij_140", St = "_code_o9wij_144", Lt = "_mobileOverlay_o9wij_161", E = {
434
- control: it,
435
- countryButton: mt,
436
- drawerButton: pt,
437
- popoverButton: Ct,
438
- chevron: dt,
439
- globeIcon: yt,
440
- searchIcon: Et,
441
- flag: ft,
442
- option: gt,
443
- phoneNumber: ht,
444
- countryOptions: bt,
445
- countrySearch: Ot,
446
- mobileDrawer: _t,
433
+ })), ut = "_control_o9wij_1", it = "_countryButton_o9wij_9", mt = "_drawerButton_o9wij_25", pt = "_popoverButton_o9wij_34", Ct = "_chevron_o9wij_39", dt = "_globeIcon_o9wij_48", yt = "_searchIcon_o9wij_56", Et = "_flag_o9wij_61", ft = "_option_o9wij_67", gt = "_phoneNumber_o9wij_80", ht = "_countryOptions_o9wij_106", bt = "_countrySearch_o9wij_123", Ot = "_mobileDrawer_o9wij_131", Nt = "_name_o9wij_140", _t = "_code_o9wij_144", St = "_mobileOverlay_o9wij_161", E = {
434
+ control: ut,
435
+ countryButton: it,
436
+ drawerButton: mt,
437
+ popoverButton: pt,
438
+ chevron: Ct,
439
+ globeIcon: dt,
440
+ searchIcon: yt,
441
+ flag: Et,
442
+ option: ft,
443
+ phoneNumber: gt,
444
+ countryOptions: ht,
445
+ countrySearch: bt,
446
+ mobileDrawer: Ot,
447
447
  name: Nt,
448
- code: St,
449
- mobileOverlay: Lt
450
- }, It = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(Ce, {
448
+ code: _t,
449
+ mobileOverlay: St
450
+ }, Lt = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(de, {
451
451
  content: e,
452
452
  locale: n
453
- }), vt = () => /* @__PURE__ */ t.createElement("span", {
453
+ }), It = () => /* @__PURE__ */ t.createElement("span", {
454
454
  className: E.chevron,
455
455
  "aria-hidden": "true"
456
- }, /* @__PURE__ */ t.createElement(Ye, null)), Wt = () => {
457
- const e = Ue(O.selectOptionWithoutFocusRing, E.option, Q), n = Ve(E.control), r = Ke(E.countrySearch), { t: o } = D(), { PortalContainer: a } = te(), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
456
+ }, /* @__PURE__ */ t.createElement(Ye, null)), Kt = () => {
457
+ const e = Ve(O.selectOptionWithoutFocusRing, E.option, Q), n = Ue(E.control), o = J(E.control), r = J(E.countrySearch), { t: a } = w(), { PortalContainer: c } = ne(), l = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
458
458
  className: r,
459
- "aria-label": o("field.phone.country-search-input.aria-label")
460
- }, /* @__PURE__ */ t.createElement(ut, {
459
+ "aria-label": a("field.phone.country-search-input.aria-label")
460
+ }, /* @__PURE__ */ t.createElement(lt, {
461
461
  className: E.searchIcon
462
462
  }), /* @__PURE__ */ t.createElement(s.CountryOptions.Search.Input, {
463
- className: h(O.innerInput, Q),
464
- placeholder: o("field.phone.country-search-input.placeholder")
465
- })), l = /* @__PURE__ */ t.createElement(s.CountryOptions.EmptyState, null, o("field.phone.country-selector-dropdown.no-result")), i = /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(s.CountryButton.Flag, {
463
+ className: b(O.innerInput, Q),
464
+ placeholder: a("field.phone.country-search-input.placeholder")
465
+ })), i = /* @__PURE__ */ t.createElement(s.CountryOptions.EmptyState, null, a("field.phone.country-selector-dropdown.no-result")), u = /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(s.CountryButton.Flag, {
466
466
  className: E.flag
467
- }), /* @__PURE__ */ t.createElement(s.CountryButton.EmptyState, null, /* @__PURE__ */ t.createElement(lt, {
467
+ }), /* @__PURE__ */ t.createElement(s.CountryButton.EmptyState, null, /* @__PURE__ */ t.createElement(ct, {
468
468
  className: E.globeIcon
469
- })), /* @__PURE__ */ t.createElement(vt, null)), u = /* @__PURE__ */ t.createElement(s.CountryOptions.Option, {
469
+ })), /* @__PURE__ */ t.createElement(It, null)), m = /* @__PURE__ */ t.createElement(s.CountryOptions.Option, {
470
470
  className: e
471
471
  }, /* @__PURE__ */ t.createElement(s.CountryOptions.Option.Flag, {
472
472
  className: E.flag
@@ -476,33 +476,33 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
476
476
  className: E.code
477
477
  }));
478
478
  return /* @__PURE__ */ t.createElement(s, null, /* @__PURE__ */ t.createElement(s.Label, {
479
- className: h(ge, O.label)
479
+ className: b(he, O.label)
480
480
  }, /* @__PURE__ */ t.createElement(s.Label.Required, {
481
- className: h(he, O.requiredMark)
481
+ className: b(be, O.requiredMark)
482
482
  })), /* @__PURE__ */ t.createElement(s.Control, {
483
- className: ({ hasCountryOptions: m, ...C }) => m ? n(C) : h(be, O.input, E.control)
483
+ className: ({ hasCountryOptions: C, ...d }) => C ? n(d) : o(d)
484
484
  }, /* @__PURE__ */ t.createElement(s.CountryDrawer, null, /* @__PURE__ */ t.createElement(s.CountryButton, {
485
- className: h(E.countryButton, E.drawerButton)
486
- }, i), /* @__PURE__ */ t.createElement(s.CountryOptions.Modal, {
487
- className: h(O.selectPopover, E.mobileDrawer),
485
+ className: b(E.countryButton, E.drawerButton)
486
+ }, u), /* @__PURE__ */ t.createElement(s.CountryOptions.Modal, {
487
+ className: b(O.selectPopover, E.mobileDrawer),
488
488
  overlayClassName: E.mobileOverlay,
489
- portalContainer: a,
490
- "aria-label": o("field.phone.country-code.aria-label")
491
- }, c, l, u)), /* @__PURE__ */ t.createElement(s.CountryPopover, null, /* @__PURE__ */ t.createElement(s.CountryButton, {
492
- className: h(E.countryButton, E.popoverButton)
493
- }, i), /* @__PURE__ */ t.createElement(s.CountryOptions.Popover, {
494
- className: h(Oe, O.selectPopover, E.countryOptions),
489
+ portalContainer: c,
490
+ "aria-label": a("field.phone.country-code.aria-label")
491
+ }, l, i, m)), /* @__PURE__ */ t.createElement(s.CountryPopover, null, /* @__PURE__ */ t.createElement(s.CountryButton, {
492
+ className: b(E.countryButton, E.popoverButton)
493
+ }, u), /* @__PURE__ */ t.createElement(s.CountryOptions.Popover, {
494
+ className: b(Oe, O.selectPopover, E.countryOptions),
495
495
  placement: "bottom start",
496
496
  offset: 0,
497
- "aria-label": o("field.phone.country-code.aria-label")
498
- }, c, l, u)), /* @__PURE__ */ t.createElement(s.PhoneNumber, {
499
- className: h(O.innerInput, E.phoneNumber)
497
+ "aria-label": a("field.phone.country-code.aria-label")
498
+ }, l, i, m)), /* @__PURE__ */ t.createElement(s.PhoneNumber, {
499
+ className: b(O.innerInput, E.phoneNumber)
500
500
  })), /* @__PURE__ */ t.createElement(s.Error, {
501
- className: h(_e, O.error)
501
+ className: b(Ne, O.error)
502
502
  }, /* @__PURE__ */ t.createElement(ze, null), /* @__PURE__ */ t.createElement(s.Error.Text, null)), /* @__PURE__ */ t.createElement(s.Description, {
503
- className: h(Ne, O.description)
504
- }, It));
503
+ className: b(_e, O.description)
504
+ }, Lt));
505
505
  };
506
506
  export {
507
- Wt as P
507
+ Kt as P
508
508
  };