@wix/form-elements 1.158.0 → 1.160.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.
- package/dist/component/{appointment-rac-m5-FH9kU.js → appointment-rac-BmHu56e5.js} +63 -63
- package/dist/component/{bookings-address-rac-VtG7wH0l.js → bookings-address-rac-DY9l2g0h.js} +1 -1
- package/dist/component/{bookings-email-rac-C8T3aTQH.js → bookings-email-rac-B5vNSOsS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BlhIWWNj.js → bookings-first-name-rac-CJiefCNz.js} +1 -1
- package/dist/component/{bookings-header-rac-adwR7PKJ.js → bookings-header-rac-BFu7Ko5w.js} +1 -1
- package/dist/component/{bookings-last-name-rac-z5z1GJQL.js → bookings-last-name-rac-DegMM13h.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DMgVxy8J.js → bookings-login-bar-rac-DrA-5tBH.js} +7 -7
- package/dist/component/{bookings-phone-rac-DS7ffO6T.js → bookings-phone-rac-DsaeqxCI.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BNWI0o60.js → bookings-rich-text-rac-jRHiwqi8.js} +1 -1
- package/dist/component/{checkbox-field-rac-CUKZ9NHF.js → checkbox-field-rac-CyoBb6Yf.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-Didam2ZD.js → checkbox-group-field-headless-Bv1gU3oL.js} +54 -54
- package/dist/component/{checkbox-group-field-rac-C3WCeVA8.js → checkbox-group-field-rac-DasArcdV.js} +6 -6
- package/dist/component/{checkbox-group-rac-Bkq-wm7_.js → checkbox-group-rac-CzmufV1U.js} +1 -1
- package/dist/component/{checkbox-rac-66ga9Lph.js → checkbox-rac-6C7XoUoZ.js} +1 -1
- package/dist/component/{contacts-address-rac-DSOk97te.js → contacts-address-rac-BZobbFtz.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-1qguKm9O.js → contacts-birthdate-rac-DIzf41DS.js} +1 -1
- package/dist/component/{contacts-company-rac-Chefzmw3.js → contacts-company-rac-BiBDO28r.js} +1 -1
- package/dist/component/{contacts-email-rac-DG6eAnz2.js → contacts-email-rac-5mqokCSD.js} +1 -1
- package/dist/component/{contacts-first-name-rac-tSGE0w5w.js → contacts-first-name-rac-BXe3_Nz5.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BjZWfbM5.js → contacts-last-name-rac-Cfqgh7u1.js} +1 -1
- package/dist/component/{contacts-phone-rac-jfGNKLoZ.js → contacts-phone-rac-cmLUWnAc.js} +1 -1
- package/dist/component/{contacts-position-rac-kv8I-m_Q.js → contacts-position-rac-DTyvklfN.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-BkUG0AMs.js → contacts-subscribe-rac-D-ZEX1A3.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BtFrK_Ci.js → contacts-tax-id-rac-B4NYJwWt.js} +1 -1
- package/dist/component/{date-availability-_A9DS6za.js → date-availability-Dach9aRC.js} +1 -1
- package/dist/component/date-input-field-rac-B72mHcya.js +309 -0
- package/dist/component/{date-input-rac-CpseQkV4.js → date-input-rac-CYix11gT.js} +1 -1
- package/dist/component/{date-picker-field-rac-B4gjhxG6.js → date-picker-field-rac-B8pvtPir.js} +86 -86
- package/dist/component/{date-picker-rac-DDJfUDCM.js → date-picker-rac-D6cR0zH9.js} +1 -1
- package/dist/component/date-time-input-field-rac-B7Y3Yf5l.js +441 -0
- package/dist/component/{date-time-input-rac-BkvcyU3H.js → date-time-input-rac-DMN-noQX.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-UWDhIjU-.js → dext-checkbox-group-rac-Kq0GnteP.js} +2 -2
- package/dist/component/{dext-checkbox-rac-q9UJnqsC.js → dext-checkbox-rac-BY9GZ4n1.js} +1 -1
- package/dist/component/{dext-date-picker-rac-C164FDSF.js → dext-date-picker-rac-CXArIddp.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BvbnfRYU.js → dext-date-time-input-rac-B39TtxGq.js} +1 -1
- package/dist/component/{dext-dropdown-rac-z0xU1mRO.js → dext-dropdown-rac-C3y0G8cS.js} +1 -1
- package/dist/component/{dext-email-rac-BkiWpfNw.js → dext-email-rac-BIg3cq7Q.js} +1 -1
- package/dist/component/{dext-number-input-rac-DeQWO-RK.js → dext-number-input-rac-27sHJ7yN.js} +1 -1
- package/dist/component/{dext-phone-rac-CGlVpadW.js → dext-phone-rac-CcohoFQp.js} +1 -1
- package/dist/component/dext-radio-group-rac-eead3Gve.js +18 -0
- package/dist/component/{dext-rating-input-rac-ibIctxU_.js → dext-rating-input-rac-B_E6OcBr.js} +1 -1
- package/dist/component/{dext-tags-rac-snCgM6u0.js → dext-tags-rac-Yd9aAtnF.js} +2 -2
- package/dist/component/{dext-text-area-rac-BHVs8ixR.js → dext-text-area-rac-CMACri2C.js} +1 -1
- package/dist/component/{dext-text-input-rac-DGI747Od.js → dext-text-input-rac-sNjSCfQ-.js} +1 -1
- package/dist/component/{dext-url-input-rac-CpO2VDPE.js → dext-url-input-rac-DwhbzJty.js} +1 -1
- package/dist/component/{donation-rac-Ck6HkRcW.js → donation-rac-BVAN3kMk.js} +90 -90
- package/dist/component/{dropdown-field-rac-e5MjWn5B.js → dropdown-field-rac-DdoGigWx.js} +14 -14
- package/dist/component/{dropdown-rac-B2jprC8G.js → dropdown-rac-CRkt5w47.js} +1 -1
- package/dist/component/{ecom-address-rac-D0stOqRv.js → ecom-address-rac-C36hFHW0.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BRzaQKx3.js → ecom-subscription-checkbox-rac-BKfQ348w.js} +2 -2
- package/dist/component/{email-input-field-rac-0UIjNipg.js → email-input-field-rac-MOaISYxa.js} +59 -59
- package/dist/component/{events-repeater-rac-BBQZzP7U.js → events-repeater-rac-D6p-NgE8.js} +20 -20
- package/dist/component/{events-rsvp-rac-Ck7BXGKy.js → events-rsvp-rac-DVpgN8gm.js} +18 -18
- package/dist/component/{field-error-headless-vApyo-y9.js → field-error-headless-XNWmDH3E.js} +4 -4
- package/dist/component/{field-label-headless-C8-ShLxy.js → field-label-headless-CORRAJGt.js} +4 -4
- package/dist/component/{file-upload-rac-BzWJOM6C.js → file-upload-rac-DRMr7E4b.js} +89 -89
- package/dist/component/{fixed-payment-rac-C4_xI103.js → fixed-payment-rac-BUXzNex9.js} +18 -18
- package/dist/component/{form-D7ulDPh1.js → form-DSpx-AO8.js} +785 -728
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BnBbhsOZ.js → header-field-rac-CiDXlNsa.js} +6 -6
- package/dist/component/{header-rac-CEWayr6b.js → header-rac-B5Rg-h8u.js} +1 -1
- package/dist/component/{image-choice-rac-DTZrz6oP.js → image-choice-rac-CtoA_KDp.js} +44 -44
- package/dist/component/{index-CKtw7kvn.js → index-Bz7ZhQsF.js} +53 -53
- package/dist/component/{index-DBbgIHYT.js → index-CwruESwc.js} +5 -5
- package/dist/component/{isObjectLike-BHfPE26c.js → isObjectLike-C5dHxHP0.js} +11 -11
- package/dist/component/multiline-address-field-rac-Z-qF366L.js +1664 -0
- package/dist/component/{multiline-address-rac-YQj_QROS.js → multiline-address-rac-CJIHTMw5.js} +1 -1
- package/dist/component/{number-input-field-rac-A7xM2c6F.js → number-input-field-rac-D4vf6I6N.js} +29 -29
- package/dist/component/{number-input-rac-DeDatLY5.js → number-input-rac-B2jW6JUQ.js} +1 -1
- package/dist/component/{password-rac-7Si7JHee.js → password-rac-DGRZ17Jl.js} +29 -29
- package/dist/component/{payment-input-rac-D4JKZl-5.js → payment-input-rac-BtD-tAKv.js} +27 -27
- package/dist/component/phone-input-field-rac-KD4-APhr.js +512 -0
- package/dist/component/{phone-rac-Y2mWnseb.js → phone-rac-Cw2yccgg.js} +1 -1
- package/dist/component/{product-list-rac-CYUcNqf3.js → product-list-rac-XbzTDdbp.js} +33 -33
- package/dist/component/{quiz-radio-group-rac-f3O7fksW.js → quiz-radio-group-rac-BDw_mAw5.js} +1 -1
- package/dist/component/{radio-button-module-classes-BgVUqcvD.js → radio-button-module-classes-CFGf0Hzh.js} +23 -23
- package/dist/component/{radio-group-field-rac-DrOiyk5C.js → radio-group-field-rac-CXN7tyVu.js} +6 -6
- package/dist/component/{radio-group-rac-Btt_bz_K.js → radio-group-rac-COHzqjBh.js} +1 -1
- package/dist/component/{rating-input-field-rac-CwN7wyaw.js → rating-input-field-rac-DCXNZgf1.js} +37 -37
- package/dist/component/{rating-input-rac-sTy0SV3L.js → rating-input-rac-DwQt9ML7.js} +1 -1
- package/dist/component/{rich-content-rac.module-C11w9mXa.js → rich-content-rac.module-B7rPwNns.js} +8 -8
- package/dist/component/{rich-text-field-rac-kGwuDtNs.js → rich-text-field-rac-DlER7NRD.js} +4 -4
- package/dist/component/{rich-text-rac-T4ic2hrA.js → rich-text-rac-CjicsHA7.js} +1 -1
- package/dist/component/service-dropdown-rac-B81LC_6_.js +145 -0
- package/dist/component/{services-multi-choice-rac-CLQ4dLxO.js → services-multi-choice-rac-BR6gZeHk.js} +16 -16
- package/dist/component/{signature-rac-DLiFeCNL.js → signature-rac-XFj7Ddtp.js} +69 -69
- package/dist/component/{submit-button-rac-CccO80E1.js → submit-button-rac-Bz7zs_3W.js} +12 -12
- package/dist/component/{tags-field-rac-DaghCGJU.js → tags-field-rac-DWWkNKqc.js} +79 -79
- package/dist/component/{tags-rac-3ly5shW2.js → tags-rac-BXyiQ9i1.js} +1 -1
- package/dist/component/{text-area-field-rac-2-TYC5Lb.js → text-area-field-rac-DsIRYi0d.js} +21 -21
- package/dist/component/{text-area-rac-Bx0pgw80.js → text-area-rac-CF9pDP9d.js} +1 -1
- package/dist/component/{text-input-field-rac-Dyur2Wby.js → text-input-field-rac-BwIDZACz.js} +5 -5
- package/dist/component/{text-input-headless-DZ-Pjpm4.js → text-input-headless-5kQs2_Xu.js} +14 -14
- package/dist/component/{text-input-rac-BuBtJDX_.js → text-input-rac-CRmSuw1k.js} +1 -1
- package/dist/component/{time-input-rac-AlDEpfXZ.js → time-input-rac-BRMNpe51.js} +20 -20
- package/dist/component/{url-input-field-rac-BzP4-8yP.js → url-input-field-rac-CKLS3QDk.js} +17 -17
- package/dist/component/{url-input-rac-DaBXuedf.js → url-input-rac-Dv-kp50D.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-BQi_qE_-.js +116 -0
- package/dist/component/use-dropdown-trigger-class-name-bAK8aHiG.js +96 -0
- package/dist/component/{use-element-state-class-name-DY0UyIQg.js → use-element-state-class-name-rXM_lHug.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-C_Wh4Qfc.js → use-hoverable-input-class-name-BnV_uerV.js} +2 -2
- package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +53 -0
- package/dist/component/{use-service-options-base-DgSaAuGy.js → use-service-options-base-CLeE9-Tx.js} +10 -10
- package/dist/component/use-text-input-class-name-DIKWvfkm.js +6 -0
- package/dist/form.d.ts +8 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-QZUxFX5e.js +0 -303
- package/dist/component/date-time-input-field-rac-DcwKQKHf.js +0 -433
- package/dist/component/dext-radio-group-rac-D8hMWNIQ.js +0 -18
- package/dist/component/dropdown-field-headless-Bv6LrkeA.js +0 -93
- package/dist/component/multiline-address-field-rac-jhcWn4wT.js +0 -1659
- package/dist/component/phone-input-field-rac-GxcQ_Pyl.js +0 -508
- package/dist/component/service-dropdown-rac-BfliE4hs.js +0 -145
- package/dist/component/use-dropdown-trigger-class-name-BKOFwNvc.js +0 -117
- package/dist/component/use-is-forced-open-dropdown-Bw_IFUKt.js +0 -48
- package/dist/component/use-text-input-class-name-DFMQAg_E.js +0 -6
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
import { RicosViewer as de } from "@wix/ricos/viewer";
|
|
2
|
+
import b from "classnames";
|
|
3
|
+
import t, { useMemo as j, useState as A, useRef as F, useEffect as V, useCallback as K, createContext as te, useContext as q, useId as ye } from "react";
|
|
4
|
+
import { bi as Ee, bJ as w, br as ne, bI as fe, bz as D, bw as oe, bB as he, V as ge, ab as be, _ as Oe, L as _e, z as Ne, a0 as Le, $ as Se, Z as Ie } from "./form-DSpx-AO8.js";
|
|
5
|
+
import { UNSAFE_PortalProvider as Pe } from "react-aria";
|
|
6
|
+
import { Dialog as re, OverlayTriggerStateContext as ve, ModalOverlay as Fe, Modal as we, SearchField as De, Group as U, ListBoxItem as Be, DialogTrigger as Re, Select as xe, Input as ae, Autocomplete as Me } from "react-aria-components";
|
|
7
|
+
import { f as h, a as I } from "./find-child-C60k4CxG.js";
|
|
8
|
+
import { D as $e, E as je } from "./field-error-headless-XNWmDH3E.js";
|
|
9
|
+
import { L as Ae } from "./field-label-headless-CORRAJGt.js";
|
|
10
|
+
import { N as Te, S as Ve } from "./non-modal-popover-D-u13tmp.js";
|
|
11
|
+
import { u as ke } from "./use-invoke-callback-UH73A_J3.js";
|
|
12
|
+
import { b as He } from "./use-is-forced-open-dropdown-Bp-5Xpmw.js";
|
|
13
|
+
import { V as Ue, a as qe } from "./use-dropdown-option-class-name-BQi_qE_-.js";
|
|
14
|
+
import se, { AsYouType as ze, isValidPhoneNumber as Ge, isSupportedCountry as Ye } from "libphonenumber-js";
|
|
15
|
+
import "libphonenumber-js/metadata.min.json";
|
|
16
|
+
import { C as J } from "./calling-country-codes-PyWuOTmF.js";
|
|
17
|
+
import { C as Ze } from "./chevron-down-icon-CcpVm6B-.js";
|
|
18
|
+
import { E as Ke } from "./error-icon-hZxQ6DEy.js";
|
|
19
|
+
import { H as Q } from "./custom-focus-class-_483Pkwp.js";
|
|
20
|
+
import { s as O } from "./field-rac.module-DP0lkkEv.js";
|
|
21
|
+
import { u as W } from "./use-hoverable-input-class-name-BnV_uerV.js";
|
|
22
|
+
function X(e) {
|
|
23
|
+
const n = e ? se(e) : void 0, r = n == null ? void 0 : n.country;
|
|
24
|
+
if (r)
|
|
25
|
+
return r;
|
|
26
|
+
const o = new ze();
|
|
27
|
+
return e && o.input(e), o.getCountry();
|
|
28
|
+
}
|
|
29
|
+
function z(e) {
|
|
30
|
+
var n;
|
|
31
|
+
return e && ((n = Ee.getCountryByKey(e)) == null ? void 0 : n.dialCode);
|
|
32
|
+
}
|
|
33
|
+
function k(e) {
|
|
34
|
+
return e === null ? null : e.replace(/[^0-9+]/g, "") || e;
|
|
35
|
+
}
|
|
36
|
+
function ee(e, n) {
|
|
37
|
+
if (e && n)
|
|
38
|
+
try {
|
|
39
|
+
const r = se(e, n), o = r == null ? void 0 : r.formatInternational();
|
|
40
|
+
if (o && Ge(o))
|
|
41
|
+
return o.replace(/\s+/g, "");
|
|
42
|
+
} catch {
|
|
43
|
+
}
|
|
44
|
+
return e;
|
|
45
|
+
}
|
|
46
|
+
function Je() {
|
|
47
|
+
const { t: e } = w(), { language: n } = ne();
|
|
48
|
+
return j(() => Object.keys(J).reduce((o, a) => {
|
|
49
|
+
const c = J[a], l = z(c), i = e(`locale-dataset.countries.${c.toUpperCase()}`);
|
|
50
|
+
return l && Ye(a) && o.push({
|
|
51
|
+
countryName: i,
|
|
52
|
+
longCountryCode: c,
|
|
53
|
+
shortCountryCode: a,
|
|
54
|
+
callingCode: l
|
|
55
|
+
}), o;
|
|
56
|
+
}, []).sort((o, a) => o.countryName.localeCompare(a.countryName, n)), [
|
|
57
|
+
e,
|
|
58
|
+
n
|
|
59
|
+
]);
|
|
60
|
+
}
|
|
61
|
+
function Qe(e, n) {
|
|
62
|
+
return e.filter((r) => n && n.length > 0 ? n.includes(r.shortCountryCode) : !0);
|
|
63
|
+
}
|
|
64
|
+
function We(e, n) {
|
|
65
|
+
const { countryName: r, callingCode: o, shortCountryCode: a } = e;
|
|
66
|
+
return !!(H(r, n) || H(o, n) || H(a, n));
|
|
67
|
+
}
|
|
68
|
+
function H(e, n) {
|
|
69
|
+
return e.toLowerCase().includes(n.toLowerCase());
|
|
70
|
+
}
|
|
71
|
+
function Xe({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
|
|
72
|
+
const [a, c] = A(e || ""), l = F(k(e ?? null) ?? ""), [i, u] = A(n);
|
|
73
|
+
fe(() => {
|
|
74
|
+
c(""), l.current = "", u(n), o("");
|
|
75
|
+
});
|
|
76
|
+
const p = j(() => X(a), [
|
|
77
|
+
a
|
|
78
|
+
]);
|
|
79
|
+
V(() => {
|
|
80
|
+
const m = e ?? "";
|
|
81
|
+
m !== l.current && (c(m), l.current = m);
|
|
82
|
+
}, [
|
|
83
|
+
e
|
|
84
|
+
]), V(() => {
|
|
85
|
+
n && !i && u(n);
|
|
86
|
+
}, [
|
|
87
|
+
n,
|
|
88
|
+
i
|
|
89
|
+
]), V(() => {
|
|
90
|
+
u(n ?? p);
|
|
91
|
+
}, [
|
|
92
|
+
p,
|
|
93
|
+
n
|
|
94
|
+
]);
|
|
95
|
+
const C = K((m) => {
|
|
96
|
+
if (c(m), !m) {
|
|
97
|
+
l.current = "", o(null);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const f = X(m);
|
|
101
|
+
u((y) => {
|
|
102
|
+
const S = f || y || ((r == null ? void 0 : r.length) === 1 ? r[0] : void 0), N = k(ee(m, S));
|
|
103
|
+
return l.current = N ?? "", o(N), f || y;
|
|
104
|
+
});
|
|
105
|
+
}, [
|
|
106
|
+
r,
|
|
107
|
+
o
|
|
108
|
+
]), d = K((m) => {
|
|
109
|
+
u(m), c((f) => {
|
|
110
|
+
const y = k(ee(f, m));
|
|
111
|
+
return l.current = y ?? "", o(y), f;
|
|
112
|
+
});
|
|
113
|
+
}, [
|
|
114
|
+
o
|
|
115
|
+
]);
|
|
116
|
+
return {
|
|
117
|
+
currentValue: a,
|
|
118
|
+
selectedCountryCode: i,
|
|
119
|
+
handlePhoneChange: C,
|
|
120
|
+
handleCountryCodeChange: d
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
const ce = /* @__PURE__ */ te(null), _ = () => {
|
|
124
|
+
const e = q(ce);
|
|
125
|
+
if (!e)
|
|
126
|
+
throw new Error("Phone input components must be used within PhoneInput component");
|
|
127
|
+
return e;
|
|
128
|
+
}, le = /* @__PURE__ */ te(null), G = () => {
|
|
129
|
+
const e = q(le);
|
|
130
|
+
if (!e)
|
|
131
|
+
throw new Error("Option sub-components must be used within Option component");
|
|
132
|
+
return e;
|
|
133
|
+
}, Y = ({ longCountryCode: e, className: n }) => {
|
|
134
|
+
function r(c, l) {
|
|
135
|
+
const i = "https://static.parastorage.com/services/linguist-flags/1.1005.0/assets/flags/square/", p = `${c}${l === "2x" ? "_2x" : ""}.png`;
|
|
136
|
+
return `${i}${p}`;
|
|
137
|
+
}
|
|
138
|
+
const o = r(e, "1x"), a = r(e, "2x");
|
|
139
|
+
return /* @__PURE__ */ t.createElement("img", {
|
|
140
|
+
src: o,
|
|
141
|
+
srcSet: `${o} 1x, ${a} 2x`,
|
|
142
|
+
alt: "",
|
|
143
|
+
"aria-hidden": "true",
|
|
144
|
+
loading: "lazy",
|
|
145
|
+
className: n
|
|
146
|
+
});
|
|
147
|
+
}, s = ({ children: e }) => {
|
|
148
|
+
var L, v;
|
|
149
|
+
const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = D(), [i, u] = A(null), p = (v = (L = l == null ? void 0 : l.string) == null ? void 0 : L.phoneOptions) == null ? void 0 : v.allowedCountryCodes, C = Je(), d = j(() => Qe(C, p), [
|
|
150
|
+
C,
|
|
151
|
+
p
|
|
152
|
+
]), m = j(() => d.map(($) => $.shortCountryCode), [
|
|
153
|
+
d
|
|
154
|
+
]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: S, handleCountryCodeChange: N } = Xe({
|
|
155
|
+
value: r,
|
|
156
|
+
defaultCountryCode: c,
|
|
157
|
+
allowedCountryCodes: m,
|
|
158
|
+
onChange: o
|
|
159
|
+
}), B = h(e, s.Label), R = h(e, s.Control), x = h(e, s.Description), M = h(e, s.Error), P = {
|
|
160
|
+
currentValue: f,
|
|
161
|
+
selectedCountryCode: y,
|
|
162
|
+
handlePhoneChange: S,
|
|
163
|
+
handleCountryCodeChange: N,
|
|
164
|
+
countryCodes: m,
|
|
165
|
+
countries: d,
|
|
166
|
+
popoverContainer: i
|
|
167
|
+
};
|
|
168
|
+
return /* @__PURE__ */ t.createElement(ce.Provider, {
|
|
169
|
+
value: P
|
|
170
|
+
}, /* @__PURE__ */ t.createElement(a, {
|
|
171
|
+
fieldId: n,
|
|
172
|
+
renderLabel: () => B,
|
|
173
|
+
renderInput: () => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", {
|
|
174
|
+
ref: u,
|
|
175
|
+
style: {
|
|
176
|
+
display: "contents"
|
|
177
|
+
}
|
|
178
|
+
}), R),
|
|
179
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, M, x)
|
|
180
|
+
}));
|
|
181
|
+
}, Z = ({ children: e, className: n }) => {
|
|
182
|
+
const { labelId: r } = oe(), { hasError: o, disabled: a, readOnly: c } = D(), { t: l } = w(), { selectedCountryCode: i, countries: u } = _(), p = ye(), C = i ? u.find((y) => y.shortCountryCode === i) : void 0, d = C && z(C.longCountryCode) || "", m = l("field.phone.country-code.aria-label"), f = C ? `${m}, ${C.countryName}, ${d}` : m;
|
|
183
|
+
return /* @__PURE__ */ t.createElement(Ve, {
|
|
184
|
+
isDisabled: a || c,
|
|
185
|
+
id: p,
|
|
186
|
+
"aria-label": f,
|
|
187
|
+
"aria-labelledby": r ? `${r} ${p}` : void 0,
|
|
188
|
+
className: n,
|
|
189
|
+
"data-invalid": o || void 0
|
|
190
|
+
}, e);
|
|
191
|
+
}, et = ({ className: e }) => {
|
|
192
|
+
const { selectedCountryCode: n, countries: r } = _(), o = r.find((a) => a.shortCountryCode === n);
|
|
193
|
+
return o ? /* @__PURE__ */ t.createElement(Y, {
|
|
194
|
+
className: e,
|
|
195
|
+
longCountryCode: o.longCountryCode
|
|
196
|
+
}) : null;
|
|
197
|
+
}, tt = ({ children: e, className: n }) => {
|
|
198
|
+
const { selectedCountryCode: r, countries: o } = _();
|
|
199
|
+
return o.some((c) => c.shortCountryCode === r) ? null : /* @__PURE__ */ t.createElement("span", {
|
|
200
|
+
className: n
|
|
201
|
+
}, e);
|
|
202
|
+
};
|
|
203
|
+
Z.Flag = et;
|
|
204
|
+
Z.EmptyState = tt;
|
|
205
|
+
const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a, ...c }) => {
|
|
206
|
+
const { triggerRef: l, optionsRef: i, isForcedOpen: u, isOpen: p } = c, { popoverContainer: C } = _(), d = h(e, g.Search);
|
|
207
|
+
if (!p)
|
|
208
|
+
return null;
|
|
209
|
+
const m = /* @__PURE__ */ t.createElement(ue, {
|
|
210
|
+
isForcedOpen: u
|
|
211
|
+
}, e);
|
|
212
|
+
return /* @__PURE__ */ t.createElement(Pe, {
|
|
213
|
+
getContainer: () => C
|
|
214
|
+
}, /* @__PURE__ */ t.createElement(Te, {
|
|
215
|
+
ref: i,
|
|
216
|
+
triggerRef: l,
|
|
217
|
+
className: n,
|
|
218
|
+
placement: o,
|
|
219
|
+
offset: a,
|
|
220
|
+
containerPadding: 0
|
|
221
|
+
}, d && !u ? /* @__PURE__ */ t.createElement(re, {
|
|
222
|
+
"aria-label": r
|
|
223
|
+
}, m) : m));
|
|
224
|
+
}, nt = ({ children: e, className: n, overlayClassName: r, "aria-label": o, portalContainer: a = t.Fragment, ...c }) => {
|
|
225
|
+
const { optionsRef: l } = c, { selectedCountryCode: i, handleCountryCodeChange: u } = _(), p = q(ve);
|
|
226
|
+
return /* @__PURE__ */ t.createElement(Fe, {
|
|
227
|
+
className: r,
|
|
228
|
+
isDismissable: !0
|
|
229
|
+
}, /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(we, {
|
|
230
|
+
ref: l,
|
|
231
|
+
className: n
|
|
232
|
+
}, /* @__PURE__ */ t.createElement(re, {
|
|
233
|
+
"aria-label": o
|
|
234
|
+
}, /* @__PURE__ */ t.createElement(ue, {
|
|
235
|
+
listBoxProps: {
|
|
236
|
+
"aria-label": o,
|
|
237
|
+
selectionMode: "single",
|
|
238
|
+
selectedKeys: i ? [
|
|
239
|
+
i
|
|
240
|
+
] : [],
|
|
241
|
+
onSelectionChange: (C) => {
|
|
242
|
+
const [d] = C === "all" ? [] : C;
|
|
243
|
+
d && u(d), p == null || p.close();
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}, e)))));
|
|
247
|
+
}, ue = ({ children: e, listBoxProps: n, isForcedOpen: r }) => {
|
|
248
|
+
const { countries: o } = _(), a = h(e, g.Option), c = h(e, g.Search), l = h(e, g.EmptyState), i = /* @__PURE__ */ t.createElement(Ue, {
|
|
249
|
+
isForcedOpen: r === !0,
|
|
250
|
+
...n,
|
|
251
|
+
renderEmptyState: l ? () => l : void 0
|
|
252
|
+
}, o.map((u) => {
|
|
253
|
+
const p = z(u.longCountryCode) || "";
|
|
254
|
+
return I(a, {
|
|
255
|
+
key: u.shortCountryCode,
|
|
256
|
+
countryCode: u.shortCountryCode,
|
|
257
|
+
dialingCode: p,
|
|
258
|
+
countryName: u.countryName,
|
|
259
|
+
longCountryCode: u.longCountryCode
|
|
260
|
+
});
|
|
261
|
+
}));
|
|
262
|
+
return c ? /* @__PURE__ */ t.createElement(Me, {
|
|
263
|
+
filter: (u, p, C) => {
|
|
264
|
+
const d = o.find((m) => m.shortCountryCode === C.key);
|
|
265
|
+
return !!d && We(d, p);
|
|
266
|
+
}
|
|
267
|
+
}, r ? I(c, {
|
|
268
|
+
autoFocus: !1
|
|
269
|
+
}) : c, i) : i;
|
|
270
|
+
};
|
|
271
|
+
g.Popover = g;
|
|
272
|
+
g.Modal = nt;
|
|
273
|
+
const ie = ({ className: e, children: n, "aria-label": r, ...o }) => {
|
|
274
|
+
const { autoFocus: a = !0 } = o;
|
|
275
|
+
return /* @__PURE__ */ t.createElement(De, {
|
|
276
|
+
"aria-label": r,
|
|
277
|
+
autoFocus: a
|
|
278
|
+
}, /* @__PURE__ */ t.createElement(U, {
|
|
279
|
+
className: e
|
|
280
|
+
}, n));
|
|
281
|
+
}, ot = ({ className: e, placeholder: n }) => /* @__PURE__ */ t.createElement(ae, {
|
|
282
|
+
className: e,
|
|
283
|
+
placeholder: n
|
|
284
|
+
});
|
|
285
|
+
ie.Input = ot;
|
|
286
|
+
g.Search = ie;
|
|
287
|
+
const rt = ({ children: e, className: n }) => /* @__PURE__ */ t.createElement("div", {
|
|
288
|
+
className: n
|
|
289
|
+
}, e);
|
|
290
|
+
g.EmptyState = rt;
|
|
291
|
+
const T = ({ children: e, className: n, ...r }) => {
|
|
292
|
+
const { countryCode: o, dialingCode: a, countryName: c, longCountryCode: l } = r, i = {
|
|
293
|
+
countryCode: o,
|
|
294
|
+
dialingCode: a,
|
|
295
|
+
countryName: c,
|
|
296
|
+
longCountryCode: l
|
|
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
|
+
return /* @__PURE__ */ t.createElement(Be, {
|
|
299
|
+
className: n,
|
|
300
|
+
id: o,
|
|
301
|
+
textValue: `${c} ${a}`
|
|
302
|
+
}, /* @__PURE__ */ t.createElement(le.Provider, {
|
|
303
|
+
value: i
|
|
304
|
+
}, u));
|
|
305
|
+
}, me = ({ className: e }) => {
|
|
306
|
+
const { longCountryCode: n } = G();
|
|
307
|
+
return /* @__PURE__ */ t.createElement(Y, {
|
|
308
|
+
className: e,
|
|
309
|
+
longCountryCode: n
|
|
310
|
+
});
|
|
311
|
+
}, pe = ({ className: e }) => {
|
|
312
|
+
const { countryName: n } = G();
|
|
313
|
+
return /* @__PURE__ */ t.createElement("span", {
|
|
314
|
+
className: e
|
|
315
|
+
}, n);
|
|
316
|
+
}, Ce = ({ className: e }) => {
|
|
317
|
+
const { dialingCode: n } = G();
|
|
318
|
+
return /* @__PURE__ */ t.createElement("span", {
|
|
319
|
+
className: e
|
|
320
|
+
}, n);
|
|
321
|
+
};
|
|
322
|
+
T.Flag = me;
|
|
323
|
+
T.Name = pe;
|
|
324
|
+
T.Code = Ce;
|
|
325
|
+
g.Option = T;
|
|
326
|
+
const at = ({ className: e }) => {
|
|
327
|
+
const { t: n } = w(), { inputId: r, ariaDescribedBy: o } = oe(), { id: a, placeholder: c, disabled: l, readOnly: i, required: u, label: p, hasError: C } = D(), { currentValue: d, handlePhoneChange: m } = _(), f = F(null);
|
|
328
|
+
return he(() => {
|
|
329
|
+
var y;
|
|
330
|
+
(y = f.current) == null || y.focus({
|
|
331
|
+
preventScroll: !0
|
|
332
|
+
});
|
|
333
|
+
}, a), /* @__PURE__ */ t.createElement(ae, {
|
|
334
|
+
ref: f,
|
|
335
|
+
id: r,
|
|
336
|
+
type: "tel",
|
|
337
|
+
autoComplete: "tel",
|
|
338
|
+
value: d,
|
|
339
|
+
onChange: (y) => m(y.target.value),
|
|
340
|
+
disabled: l,
|
|
341
|
+
readOnly: i,
|
|
342
|
+
required: u,
|
|
343
|
+
"aria-label": `${p}. ${n("field.phone.aria-label")}`,
|
|
344
|
+
"aria-describedby": o,
|
|
345
|
+
"aria-invalid": C,
|
|
346
|
+
placeholder: c,
|
|
347
|
+
className: e
|
|
348
|
+
});
|
|
349
|
+
}, st = ({ children: e, ...n }) => {
|
|
350
|
+
const r = n, { isForcedOpen: o } = r, { disabled: a, readOnly: c, required: l, hasError: i } = D(), [u, p] = A(!1), { t: C } = w(), { selectedCountryCode: d, handleCountryCodeChange: m } = _(), f = o || u && !a && !c;
|
|
351
|
+
return /* @__PURE__ */ t.createElement(xe, {
|
|
352
|
+
"aria-label": C("field.phone.country-code.aria-label"),
|
|
353
|
+
value: d ?? null,
|
|
354
|
+
onChange: (y) => m(y),
|
|
355
|
+
isDisabled: a || c,
|
|
356
|
+
isInvalid: i,
|
|
357
|
+
isRequired: l,
|
|
358
|
+
placeholder: "",
|
|
359
|
+
isOpen: f,
|
|
360
|
+
allowsEmptyCollection: !0,
|
|
361
|
+
onOpenChange: o ? void 0 : p
|
|
362
|
+
}, h(e, s.CountryButton), I(h(e, s.CountryOptions.Popover), {
|
|
363
|
+
...r,
|
|
364
|
+
isOpen: f
|
|
365
|
+
}));
|
|
366
|
+
}, ct = ({ children: e, ...n }) => {
|
|
367
|
+
const r = n;
|
|
368
|
+
return /* @__PURE__ */ t.createElement(Re, null, h(e, s.CountryButton), I(h(e, s.CountryOptions.Modal), r));
|
|
369
|
+
}, lt = ({ children: e, className: n }) => {
|
|
370
|
+
const r = F(null), o = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: p, onBlur: C } = D(), d = ke(C), { countries: m } = _(), f = h(e, s.CountryDrawer), y = h(e, s.CountryPopover), S = h(e, s.PhoneNumber), N = m.length > 1, B = He(c) && !!y && N, R = typeof n == "function" ? ({ isHovered: P, isFocusWithin: L }) => n({
|
|
371
|
+
hasCountryOptions: N,
|
|
372
|
+
isHovered: P,
|
|
373
|
+
isFocusWithin: L
|
|
374
|
+
}) : n, x = {
|
|
375
|
+
triggerRef: r,
|
|
376
|
+
optionsRef: o,
|
|
377
|
+
isForcedOpen: B
|
|
378
|
+
}, M = {
|
|
379
|
+
onFocus: () => {
|
|
380
|
+
a.current || (a.current = !0, p == null || p());
|
|
381
|
+
},
|
|
382
|
+
onBlur: (P) => {
|
|
383
|
+
var v, $;
|
|
384
|
+
const L = P.relatedTarget;
|
|
385
|
+
!((v = r.current) != null && v.contains(L)) && !(($ = o.current) != null && $.contains(L)) && (a.current = !1, d());
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
return m.length === 1 ? /* @__PURE__ */ t.createElement(U, {
|
|
389
|
+
ref: r,
|
|
390
|
+
className: R,
|
|
391
|
+
isDisabled: l,
|
|
392
|
+
isInvalid: i,
|
|
393
|
+
...M
|
|
394
|
+
}, u && /* @__PURE__ */ t.createElement(Y, {
|
|
395
|
+
longCountryCode: m[0].longCountryCode
|
|
396
|
+
}), S) : /* @__PURE__ */ t.createElement(U, {
|
|
397
|
+
ref: r,
|
|
398
|
+
className: R,
|
|
399
|
+
isDisabled: l,
|
|
400
|
+
isInvalid: i,
|
|
401
|
+
...M
|
|
402
|
+
}, !B && I(f, x), I(y, x), S);
|
|
403
|
+
};
|
|
404
|
+
s.Label = Ae;
|
|
405
|
+
s.Control = lt;
|
|
406
|
+
s.CountryButton = Z;
|
|
407
|
+
s.CountryDrawer = ct;
|
|
408
|
+
s.CountryPopover = st;
|
|
409
|
+
s.CountryOptions = g;
|
|
410
|
+
s.PhoneNumber = at;
|
|
411
|
+
s.Description = $e;
|
|
412
|
+
s.Error = je;
|
|
413
|
+
const ut = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
414
|
+
width: 24,
|
|
415
|
+
height: 24,
|
|
416
|
+
viewBox: "0 0 24 24",
|
|
417
|
+
fill: "currentColor",
|
|
418
|
+
"aria-hidden": "true",
|
|
419
|
+
...e
|
|
420
|
+
}, /* @__PURE__ */ t.createElement("path", {
|
|
421
|
+
fillRule: "evenodd",
|
|
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
|
+
})), it = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
424
|
+
width: 24,
|
|
425
|
+
height: 24,
|
|
426
|
+
viewBox: "0 0 24 24",
|
|
427
|
+
fill: "currentColor",
|
|
428
|
+
"aria-hidden": "true",
|
|
429
|
+
...e
|
|
430
|
+
}, /* @__PURE__ */ t.createElement("path", {
|
|
431
|
+
fillRule: "evenodd",
|
|
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
|
+
})), mt = "_control_o9wij_1", pt = "_countryButton_o9wij_9", Ct = "_drawerButton_o9wij_25", dt = "_popoverButton_o9wij_34", yt = "_chevron_o9wij_39", Et = "_globeIcon_o9wij_48", ft = "_searchIcon_o9wij_56", ht = "_flag_o9wij_61", gt = "_option_o9wij_67", bt = "_phoneNumber_o9wij_80", Ot = "_countryOptions_o9wij_106", _t = "_countrySearch_o9wij_123", Nt = "_mobileDrawer_o9wij_131", Lt = "_name_o9wij_140", St = "_code_o9wij_144", It = "_mobileOverlay_o9wij_161", E = {
|
|
434
|
+
control: mt,
|
|
435
|
+
countryButton: pt,
|
|
436
|
+
drawerButton: Ct,
|
|
437
|
+
popoverButton: dt,
|
|
438
|
+
chevron: yt,
|
|
439
|
+
globeIcon: Et,
|
|
440
|
+
searchIcon: ft,
|
|
441
|
+
flag: ht,
|
|
442
|
+
option: gt,
|
|
443
|
+
phoneNumber: bt,
|
|
444
|
+
countryOptions: Ot,
|
|
445
|
+
countrySearch: _t,
|
|
446
|
+
mobileDrawer: Nt,
|
|
447
|
+
name: Lt,
|
|
448
|
+
code: St,
|
|
449
|
+
mobileOverlay: It
|
|
450
|
+
}, Pt = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(de, {
|
|
451
|
+
content: e,
|
|
452
|
+
locale: n
|
|
453
|
+
}), vt = () => /* @__PURE__ */ t.createElement("span", {
|
|
454
|
+
className: E.chevron,
|
|
455
|
+
"aria-hidden": "true"
|
|
456
|
+
}, /* @__PURE__ */ t.createElement(Ze, null)), Jt = () => {
|
|
457
|
+
const e = qe(Se, O.selectOptionWithoutFocusRing, E.option, Q), n = W(Ie, [
|
|
458
|
+
E.control
|
|
459
|
+
]), r = W(Le, [
|
|
460
|
+
E.countrySearch
|
|
461
|
+
]), { t: o } = w(), { PortalContainer: a } = ne(), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
|
|
462
|
+
className: r,
|
|
463
|
+
"aria-label": o("field.phone.country-search-input.aria-label")
|
|
464
|
+
}, /* @__PURE__ */ t.createElement(it, {
|
|
465
|
+
className: E.searchIcon
|
|
466
|
+
}), /* @__PURE__ */ t.createElement(s.CountryOptions.Search.Input, {
|
|
467
|
+
className: b(O.innerInput, Q),
|
|
468
|
+
placeholder: o("field.phone.country-search-input.placeholder")
|
|
469
|
+
})), 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, {
|
|
470
|
+
className: E.flag
|
|
471
|
+
}), /* @__PURE__ */ t.createElement(s.CountryButton.EmptyState, null, /* @__PURE__ */ t.createElement(ut, {
|
|
472
|
+
className: E.globeIcon
|
|
473
|
+
})), /* @__PURE__ */ t.createElement(vt, null)), u = /* @__PURE__ */ t.createElement(s.CountryOptions.Option, {
|
|
474
|
+
className: e
|
|
475
|
+
}, /* @__PURE__ */ t.createElement(s.CountryOptions.Option.Flag, {
|
|
476
|
+
className: E.flag
|
|
477
|
+
}), /* @__PURE__ */ t.createElement(s.CountryOptions.Option.Name, {
|
|
478
|
+
className: E.name
|
|
479
|
+
}), /* @__PURE__ */ t.createElement(s.CountryOptions.Option.Code, {
|
|
480
|
+
className: E.code
|
|
481
|
+
}));
|
|
482
|
+
return /* @__PURE__ */ t.createElement(s, null, /* @__PURE__ */ t.createElement(s.Label, {
|
|
483
|
+
className: b(ge, O.label)
|
|
484
|
+
}, /* @__PURE__ */ t.createElement(s.Label.Required, {
|
|
485
|
+
className: b(be, O.requiredMark)
|
|
486
|
+
})), /* @__PURE__ */ t.createElement(s.Control, {
|
|
487
|
+
className: ({ hasCountryOptions: p, ...C }) => n(C)
|
|
488
|
+
}, /* @__PURE__ */ t.createElement(s.CountryDrawer, null, /* @__PURE__ */ t.createElement(s.CountryButton, {
|
|
489
|
+
className: b(E.countryButton, E.drawerButton)
|
|
490
|
+
}, i), /* @__PURE__ */ t.createElement(s.CountryOptions.Modal, {
|
|
491
|
+
className: b(O.selectPopover, E.mobileDrawer),
|
|
492
|
+
overlayClassName: E.mobileOverlay,
|
|
493
|
+
portalContainer: a,
|
|
494
|
+
"aria-label": o("field.phone.country-code.aria-label")
|
|
495
|
+
}, c, l, u)), /* @__PURE__ */ t.createElement(s.CountryPopover, null, /* @__PURE__ */ t.createElement(s.CountryButton, {
|
|
496
|
+
className: b(E.countryButton, E.popoverButton)
|
|
497
|
+
}, i), /* @__PURE__ */ t.createElement(s.CountryOptions.Popover, {
|
|
498
|
+
className: b(Oe, O.selectPopover, E.countryOptions),
|
|
499
|
+
placement: "bottom start",
|
|
500
|
+
offset: 0,
|
|
501
|
+
"aria-label": o("field.phone.country-code.aria-label")
|
|
502
|
+
}, c, l, u)), /* @__PURE__ */ t.createElement(s.PhoneNumber, {
|
|
503
|
+
className: b(O.innerInput, E.phoneNumber)
|
|
504
|
+
})), /* @__PURE__ */ t.createElement(s.Error, {
|
|
505
|
+
className: b(_e, O.error)
|
|
506
|
+
}, /* @__PURE__ */ t.createElement(Ke, null), /* @__PURE__ */ t.createElement(s.Error.Text, null)), /* @__PURE__ */ t.createElement(s.Description, {
|
|
507
|
+
className: b(Ne, O.description)
|
|
508
|
+
}, Pt));
|
|
509
|
+
};
|
|
510
|
+
export {
|
|
511
|
+
Jt as P
|
|
512
|
+
};
|