@wix/form-elements 1.132.0 → 1.134.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-DMYXIOL3.js → appointment-rac-CZHb5jGz.js} +246 -246
- package/dist/component/{bookings-address-rac-D6Ot6vm7.js → bookings-address-rac-F39MfGmX.js} +1 -1
- package/dist/component/{bookings-email-rac-CkPflUxK.js → bookings-email-rac-D4CurQjr.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BbDv4BQw.js → bookings-first-name-rac-Bz9o1eLl.js} +1 -1
- package/dist/component/{bookings-header-rac-DJodBCf4.js → bookings-header-rac-6mfX0WGf.js} +1 -1
- package/dist/component/{bookings-last-name-rac-C4PRt2XO.js → bookings-last-name-rac-CD1-B7Ao.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-MPcFtzUB.js → bookings-login-bar-rac-2eQkfhBb.js} +17 -17
- package/dist/component/{bookings-phone-rac-BnaiOxWV.js → bookings-phone-rac-X6sSnHiH.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-Cwp6pBC_.js → bookings-rich-text-rac-f2artJnn.js} +1 -1
- package/dist/component/{calendar.module-DnhTT4QT.js → calendar.module-CKCBG_Pg.js} +11 -11
- package/dist/component/{checkbox-field-rac-BA-67OHo.js → checkbox-field-rac-DoZ9bcw3.js} +26 -25
- package/dist/component/{checkbox-group-field-headless-B20gxYEt.js → checkbox-group-field-headless-B-d37T4z.js} +32 -31
- package/dist/component/{checkbox-group-field-rac--uloIFS6.js → checkbox-group-field-rac-0qYHz3g1.js} +6 -6
- package/dist/component/{checkbox-group-rac-CYt86YIr.js → checkbox-group-rac-BqUJdAju.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-Bqo0QILF.js → checkbox-indicator-module-classes-6173wvuW.js} +1 -1
- package/dist/component/{checkbox-rac-4FLDh24V.js → checkbox-rac-BN-qNzpH.js} +1 -1
- package/dist/component/{contacts-address-rac-BU2H0MEF.js → contacts-address-rac-B7vWOTFf.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DXITbTMA.js → contacts-birthdate-rac-Dl0OatzW.js} +1 -1
- package/dist/component/{contacts-company-rac-D_BKjGc8.js → contacts-company-rac-DIeGU0Bf.js} +1 -1
- package/dist/component/{contacts-email-rac-CfYSUKJ3.js → contacts-email-rac-BCH6ogWv.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DYZUgWsB.js → contacts-first-name-rac-Cx-USWmx.js} +1 -1
- package/dist/component/{contacts-last-name-rac-m-zqIpMB.js → contacts-last-name-rac-CUZdJI9J.js} +1 -1
- package/dist/component/{contacts-phone-rac-nJDsO_Y8.js → contacts-phone-rac-hNCW_2UC.js} +1 -1
- package/dist/component/{contacts-position-rac-CAGdJXSW.js → contacts-position-rac-CJfOgxZc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-jwP65ngO.js → contacts-subscribe-rac-69721_c9.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-DUOQlZ3c.js → contacts-tax-id-rac-CXXBqWIm.js} +1 -1
- package/dist/component/{date-availability-EbJKjV1U.js → date-availability-NQGPIrdZ.js} +1 -1
- package/dist/component/{date-input-field-rac-CZRcW-0J.js → date-input-field-rac-C-we-suG.js} +60 -60
- package/dist/component/{date-input-rac-CasoMjfj.js → date-input-rac-Cif7Bqxc.js} +1 -1
- package/dist/component/{date-picker-field-rac-V9MRWrj-.js → date-picker-field-rac-CHDkTXVH.js} +63 -63
- package/dist/component/{date-picker-rac-Cu5wTh1_.js → date-picker-rac-DdhgbY6W.js} +1 -1
- package/dist/component/{date-time-input-field-rac-YGqLIle1.js → date-time-input-field-rac-BjtDbiqE.js} +7 -7
- package/dist/component/{date-time-input-rac-DCEyREJI.js → date-time-input-rac-BDP5SN-i.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DLB5mAwB.js → dext-checkbox-group-rac-CkF41kIR.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DFV7ixAO.js → dext-checkbox-rac-DjYpsxmq.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CEL2X1ID.js → dext-date-picker-rac-BxXZLogr.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-yLdCLDbQ.js → dext-date-time-input-rac-e4y_JjEx.js} +1 -1
- package/dist/component/{dext-dropdown-rac-ti_P0L_X.js → dext-dropdown-rac-DsjB3ZX7.js} +1 -1
- package/dist/component/{dext-email-rac-CnvdVz-J.js → dext-email-rac-ClPp1g4D.js} +1 -1
- package/dist/component/{dext-number-input-rac-CmGt691Y.js → dext-number-input-rac-D2nZNzyN.js} +1 -1
- package/dist/component/{dext-phone-rac-JEZkz4gZ.js → dext-phone-rac-PNiQZ-Lr.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CUk6wUPl.js → dext-radio-group-rac-DUltmMHM.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Q1J5oqhZ.js → dext-rating-input-rac-C_apsfGT.js} +1 -1
- package/dist/component/{dext-tags-rac-DU9FLeGu.js → dext-tags-rac-DkB_CmOD.js} +2 -2
- package/dist/component/{dext-text-area-rac-D1FOCK6O.js → dext-text-area-rac-CfoIK0S7.js} +1 -1
- package/dist/component/{dext-text-input-rac-Dzb5lQjK.js → dext-text-input-rac-CIOXlk6U.js} +1 -1
- package/dist/component/{dext-url-input-rac-cRLFpiNR.js → dext-url-input-rac-UHJAs3ck.js} +1 -1
- package/dist/component/{donation-rac-CV-PnK1D.js → donation-rac-BJfvVi_d.js} +49 -52
- package/dist/component/{dropdown-field-headless-D1e2XbNj.js → dropdown-field-headless-0DB-T-3t.js} +5 -5
- package/dist/component/{dropdown-field-rac-DkeVkP9c.js → dropdown-field-rac-DB-pd2a8.js} +5 -5
- package/dist/component/{dropdown-rac-ChlsWwyp.js → dropdown-rac-4T4zRBVy.js} +1 -1
- package/dist/component/{ecom-address-rac-DvHJ4Ym-.js → ecom-address-rac-BjWD1sRX.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D3LX7FVx.js → ecom-subscription-checkbox-rac-CYCufut6.js} +2 -2
- package/dist/component/{email-input-field-rac-B8OCp4L9.js → email-input-field-rac-DlLoY9jB.js} +4 -4
- package/dist/component/{events-repeater-rac-BO0-VcV3.js → events-repeater-rac-CPHJbWcZ.js} +48 -47
- package/dist/component/{events-rsvp-rac-CnULPDrG.js → events-rsvp-rac-NXf8Fv3A.js} +4 -4
- package/dist/component/{field-error-headless-DwlihJqC.js → field-error-headless-C-wyL0uw.js} +1 -1
- package/dist/component/{field-label-headless-C_cMy8vP.js → field-label-headless-32mvEUId.js} +1 -1
- package/dist/component/field-rac.module-DfEb7pBp.js +25 -0
- package/dist/component/file-upload-rac-BicD_Bhj.js +566 -0
- package/dist/component/{fixed-payment-rac-ameH1syZ.js → fixed-payment-rac-DxHalHUv.js} +4 -4
- package/dist/component/{form-GcotNutn.js → form-B2wZnWX9.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-D2fpKxIz.js → header-field-rac-C47Te_oW.js} +2 -2
- package/dist/component/{header-rac-DdWMo2xZ.js → header-rac-ChDYKTx5.js} +1 -1
- package/dist/component/{image-choice-rac-CBaUQX8m.js → image-choice-rac-CqTBWpcY.js} +56 -59
- package/dist/component/{index-nOv_Pf2O.js → index-BF_Aifc-.js} +4 -4
- package/dist/component/{index-CAktfVsx.js → index-Br8x_xx8.js} +2 -2
- package/dist/component/{isObjectLike-t9SwprFt.js → isObjectLike-D4VXbd0T.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DpMPlfjM.js → multiline-address-field-rac-DYcfzGJb.js} +8 -8
- package/dist/component/{multiline-address-rac-D1XtQuAy.js → multiline-address-rac-DcGDGyL-.js} +1 -1
- package/dist/component/{number-input-field-rac-CFFU1JrK.js → number-input-field-rac-C_Fh8oeD.js} +5 -5
- package/dist/component/{number-input-rac-BDs3ngbf.js → number-input-rac-J2tCaAYx.js} +1 -1
- package/dist/component/{password-rac-jRXGfQn_.js → password-rac-wlfBhft8.js} +5 -5
- package/dist/component/{payment-input-rac-BAkJqSyU.js → payment-input-rac-DKxy3uE0.js} +5 -5
- package/dist/component/{phone-input-field-rac-D_1jDl7O.js → phone-input-field-rac-ClXUOLpB.js} +117 -117
- package/dist/component/{phone-rac-DyinFMYS.js → phone-rac-D0-Poz1e.js} +1 -1
- package/dist/component/{product-list-rac-BkUvhZMi.js → product-list-rac-TF5fgLyc.js} +69 -68
- package/dist/component/{quiz-radio-group-rac-Cha9jkTD.js → quiz-radio-group-rac-BX4V_6wg.js} +1 -1
- package/dist/component/{radio-button-module-classes-WQaDTnal.js → radio-button-module-classes-D8UpzVUK.js} +18 -17
- package/dist/component/{radio-group-field-rac-Cr35UXlg.js → radio-group-field-rac-C0zCVtjj.js} +5 -5
- package/dist/component/{radio-group-rac-BGRYJcwQ.js → radio-group-rac-DrKqgPRT.js} +1 -1
- package/dist/component/{rating-input-field-rac-C_X51vxl.js → rating-input-field-rac-DjxfTgv5.js} +35 -33
- package/dist/component/{rating-input-rac-B-usRVpy.js → rating-input-rac-DO4Bpdj3.js} +1 -1
- package/dist/component/{rich-content-rac.module-Bed3DsK7.js → rich-content-rac.module-DUNKiTkT.js} +1 -1
- package/dist/component/{rich-text-field-rac-SHHiInVy.js → rich-text-field-rac-DIOTzVwj.js} +2 -2
- package/dist/component/{rich-text-rac-CND63R3E.js → rich-text-rac-C_E_vEGz.js} +1 -1
- package/dist/component/{service-dropdown-rac-BdfxJ1Zq.js → service-dropdown-rac-B3gQT9Tj.js} +6 -6
- package/dist/component/{services-multi-choice-rac-D6BdQ2xE.js → services-multi-choice-rac-D40hZhBB.js} +7 -7
- package/dist/component/{signature-rac-xuYTsTUB.js → signature-rac-CKXpb2WN.js} +307 -301
- package/dist/component/{submit-button-rac-7YwnpPtu.js → submit-button-rac-CDS-vtXq.js} +39 -39
- package/dist/component/{tags-field-rac-ChzPiPvQ.js → tags-field-rac-CdQWq8k5.js} +72 -75
- package/dist/component/{tags-rac-BScWp3da.js → tags-rac-BwChqdGx.js} +1 -1
- package/dist/component/{text-area-field-rac-CDEJUPgV.js → text-area-field-rac-VCFJuHx4.js} +5 -5
- package/dist/component/{text-area-rac-CwiF24AW.js → text-area-rac-BICVNsdn.js} +1 -1
- package/dist/component/{text-input-field-rac-vg2b_7it.js → text-input-field-rac-C9gyRhcK.js} +4 -4
- package/dist/component/{text-input-headless-BdD-dAx2.js → text-input-headless-BdkaD-re.js} +3 -3
- package/dist/component/{text-input-rac-yX6rdvri.js → text-input-rac-B7buOGbq.js} +1 -1
- package/dist/component/{time-input-rac-B_kYmOwq.js → time-input-rac-CSFhEYi0.js} +5 -5
- package/dist/component/{url-input-field-rac-NJqyqxLi.js → url-input-field-rac-BIXokgHy.js} +5 -5
- package/dist/component/{url-input-rac-BqIKc9nY.js → url-input-rac-tTN0GaTH.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DFW55r3E.js → use-dropdown-option-class-name-C6zB6TNA.js} +3 -3
- package/dist/component/{use-dropdown-trigger-class-name-Df-nqoeG.js → use-dropdown-trigger-class-name-CEq68SuK.js} +2 -2
- package/dist/component/use-element-state-class-name-BFZzVwqe.js +23 -0
- package/dist/component/use-hoverable-input-class-name-CzZmczhf.js +25 -0
- package/dist/component/{use-service-options-base-B64QpFwc.js → use-service-options-base-DOCVW9ax.js} +1 -1
- package/dist/component/use-text-input-class-name-BNX3qkmh.js +6 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-BIBNQEOK.js +0 -25
- package/dist/component/file-upload-rac-CjBKgUCk.js +0 -561
- package/dist/component/use-element-state-class-name-D008EeZn.js +0 -20
- package/dist/component/use-hoverable-input-class-name-CVtF0FGy.js +0 -23
- package/dist/component/use-text-input-class-name-BSDU7QEO.js +0 -6
package/dist/component/{phone-input-field-rac-D_1jDl7O.js → phone-input-field-rac-ClXUOLpB.js}
RENAMED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { RicosViewer as Ce } from "@wix/ricos/viewer";
|
|
2
2
|
import g from "classnames";
|
|
3
|
-
import t, { useMemo as
|
|
4
|
-
import { b0 as ye, br as
|
|
3
|
+
import t, { useMemo as j, useState as $, useRef as F, useEffect as k, useCallback as Z, createContext as ee, useContext as H, useId as de } from "react";
|
|
4
|
+
import { b0 as ye, br as w, b9 as te, bq as Ee, bh as D, be as ne, bj as fe, I as he, U as ge, H as be, K as Oe, v as _e, p as Ne } from "./form-B2wZnWX9.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
|
|
7
|
-
import { f as h, a as
|
|
8
|
-
import { D as Re, E as
|
|
9
|
-
import { L as
|
|
10
|
-
import { N as
|
|
11
|
-
import { u as
|
|
12
|
-
import { a as
|
|
13
|
-
import { V as Ue, u as Ve } from "./use-dropdown-option-class-name-
|
|
14
|
-
import ae, { AsYouType as
|
|
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 we, Select as De, Input as re, Autocomplete as Be } from "react-aria-components";
|
|
7
|
+
import { f as h, a as I } from "./find-child-C60k4CxG.js";
|
|
8
|
+
import { D as Re, E as xe } from "./field-error-headless-C-wyL0uw.js";
|
|
9
|
+
import { L as Me } from "./field-label-headless-32mvEUId.js";
|
|
10
|
+
import { N as Te, S as je } from "./non-modal-popover-D-u13tmp.js";
|
|
11
|
+
import { u as $e } from "./use-invoke-callback-UH73A_J3.js";
|
|
12
|
+
import { a as Ae, u as ke } from "./use-dropdown-trigger-class-name-CEq68SuK.js";
|
|
13
|
+
import { V as Ue, u as Ve } from "./use-dropdown-option-class-name-C6zB6TNA.js";
|
|
14
|
+
import ae, { 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 Q } from "./calling-country-codes-PyWuOTmF.js";
|
|
17
|
-
import { C as
|
|
18
|
-
import { E as
|
|
17
|
+
import { C as Ke } from "./chevron-down-icon-CcpVm6B-.js";
|
|
18
|
+
import { E as Ye } from "./error-icon-hZxQ6DEy.js";
|
|
19
19
|
import { H as W } from "./custom-focus-class-_483Pkwp.js";
|
|
20
|
-
import { s as O } from "./field-rac.module-
|
|
21
|
-
import { u as ze } from "./use-text-input-class-name-
|
|
20
|
+
import { s as O } from "./field-rac.module-DfEb7pBp.js";
|
|
21
|
+
import { u as ze } from "./use-text-input-class-name-BNX3qkmh.js";
|
|
22
22
|
function J(e) {
|
|
23
23
|
const n = e ? ae(e) : void 0, r = n == null ? void 0 : n.country;
|
|
24
24
|
if (r)
|
|
25
25
|
return r;
|
|
26
|
-
const o = new
|
|
26
|
+
const o = new qe();
|
|
27
27
|
return e && o.input(e), o.getCountry();
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function G(e) {
|
|
30
30
|
var n;
|
|
31
31
|
return e && ((n = ye.getCountryByKey(e)) == null ? void 0 : n.dialCode);
|
|
32
32
|
}
|
|
@@ -37,17 +37,17 @@ function X(e, n) {
|
|
|
37
37
|
if (e && n)
|
|
38
38
|
try {
|
|
39
39
|
const r = ae(e, n), o = r == null ? void 0 : r.formatInternational();
|
|
40
|
-
if (o &&
|
|
40
|
+
if (o && He(o))
|
|
41
41
|
return o.replace(/\s+/g, "");
|
|
42
42
|
} catch {
|
|
43
43
|
}
|
|
44
44
|
return e;
|
|
45
45
|
}
|
|
46
46
|
function Ze() {
|
|
47
|
-
const { t: e } =
|
|
48
|
-
return
|
|
49
|
-
const c = Q[a], l =
|
|
50
|
-
return l &&
|
|
47
|
+
const { t: e } = w(), { language: n } = te();
|
|
48
|
+
return j(() => Object.keys(Q).reduce((o, a) => {
|
|
49
|
+
const c = Q[a], l = G(c), i = e(`locale-dataset.countries.${c.toUpperCase()}`);
|
|
50
|
+
return l && Ge(a) && o.push({
|
|
51
51
|
countryName: i,
|
|
52
52
|
longCountryCode: c,
|
|
53
53
|
shortCountryCode: a,
|
|
@@ -69,11 +69,11 @@ function V(e, n) {
|
|
|
69
69
|
return e.toLowerCase().includes(n.toLowerCase());
|
|
70
70
|
}
|
|
71
71
|
function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
|
|
72
|
-
const [a, c] =
|
|
72
|
+
const [a, c] = $(e || ""), l = F(U(e ?? null) ?? ""), [i, u] = $(n);
|
|
73
73
|
Ee(() => {
|
|
74
74
|
c(""), l.current = "", u(n), o("");
|
|
75
75
|
});
|
|
76
|
-
const m =
|
|
76
|
+
const m = j(() => J(a), [
|
|
77
77
|
a
|
|
78
78
|
]);
|
|
79
79
|
k(() => {
|
|
@@ -98,17 +98,17 @@ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
|
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
100
|
const f = J(p);
|
|
101
|
-
u((
|
|
102
|
-
const
|
|
103
|
-
return l.current = N ?? "", o(N), f ||
|
|
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;
|
|
104
104
|
});
|
|
105
105
|
}, [
|
|
106
106
|
r,
|
|
107
107
|
o
|
|
108
|
-
]),
|
|
108
|
+
]), d = Z((p) => {
|
|
109
109
|
u(p), c((f) => {
|
|
110
|
-
const
|
|
111
|
-
return l.current =
|
|
110
|
+
const y = U(X(f, p));
|
|
111
|
+
return l.current = y ?? "", o(y), f;
|
|
112
112
|
});
|
|
113
113
|
}, [
|
|
114
114
|
o
|
|
@@ -117,20 +117,20 @@ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
|
|
|
117
117
|
currentValue: a,
|
|
118
118
|
selectedCountryCode: i,
|
|
119
119
|
handlePhoneChange: C,
|
|
120
|
-
handleCountryCodeChange:
|
|
120
|
+
handleCountryCodeChange: d
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
const se = /* @__PURE__ */ ee(null), _ = () => {
|
|
124
|
-
const e =
|
|
124
|
+
const e = H(se);
|
|
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),
|
|
129
|
-
const e =
|
|
128
|
+
}, ce = /* @__PURE__ */ ee(null), K = () => {
|
|
129
|
+
const e = H(ce);
|
|
130
130
|
if (!e)
|
|
131
131
|
throw new Error("Option sub-components must be used within Option component");
|
|
132
132
|
return e;
|
|
133
|
-
},
|
|
133
|
+
}, Y = ({ longCountryCode: e, className: n }) => {
|
|
134
134
|
function r(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}`;
|
|
@@ -145,28 +145,28 @@ const se = /* @__PURE__ */ ee(null), _ = () => {
|
|
|
145
145
|
className: n
|
|
146
146
|
});
|
|
147
147
|
}, s = ({ children: e }) => {
|
|
148
|
-
var
|
|
149
|
-
const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = D(), [i, u] =
|
|
148
|
+
var S, P;
|
|
149
|
+
const { id: n, value: r, onChange: o, 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 = Ze(), d = j(() => Qe(C, m), [
|
|
150
150
|
C,
|
|
151
151
|
m
|
|
152
|
-
]), p =
|
|
153
|
-
|
|
154
|
-
]), { currentValue: f, selectedCountryCode:
|
|
152
|
+
]), p = j(() => d.map((T) => T.shortCountryCode), [
|
|
153
|
+
d
|
|
154
|
+
]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: L, handleCountryCodeChange: N } = Je({
|
|
155
155
|
value: r,
|
|
156
156
|
defaultCountryCode: c,
|
|
157
157
|
allowedCountryCodes: p,
|
|
158
158
|
onChange: o
|
|
159
|
-
}), B = h(e, s.Label), R = h(e, s.Control),
|
|
159
|
+
}), B = h(e, s.Label), R = h(e, s.Control), x = h(e, s.Description), M = h(e, s.Error), v = {
|
|
160
160
|
currentValue: f,
|
|
161
|
-
selectedCountryCode:
|
|
162
|
-
handlePhoneChange:
|
|
161
|
+
selectedCountryCode: y,
|
|
162
|
+
handlePhoneChange: L,
|
|
163
163
|
handleCountryCodeChange: N,
|
|
164
164
|
countryCodes: p,
|
|
165
|
-
countries:
|
|
165
|
+
countries: d,
|
|
166
166
|
popoverContainer: i
|
|
167
167
|
};
|
|
168
168
|
return /* @__PURE__ */ t.createElement(se.Provider, {
|
|
169
|
-
value:
|
|
169
|
+
value: v
|
|
170
170
|
}, /* @__PURE__ */ t.createElement(a, {
|
|
171
171
|
fieldId: n,
|
|
172
172
|
renderLabel: () => B,
|
|
@@ -176,11 +176,11 @@ const se = /* @__PURE__ */ ee(null), _ = () => {
|
|
|
176
176
|
display: "contents"
|
|
177
177
|
}
|
|
178
178
|
}), R),
|
|
179
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
179
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, M, x)
|
|
180
180
|
}));
|
|
181
181
|
}, z = ({ children: e, className: n }) => {
|
|
182
|
-
const { labelId: r } = ne(), { hasError: o, disabled: a, readOnly: c } = D(), { t: l } =
|
|
183
|
-
return /* @__PURE__ */ t.createElement(
|
|
182
|
+
const { labelId: r } = ne(), { hasError: o, disabled: a, readOnly: c } = D(), { t: l } = w(), { 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;
|
|
183
|
+
return /* @__PURE__ */ t.createElement(je, {
|
|
184
184
|
isDisabled: a || c,
|
|
185
185
|
id: m,
|
|
186
186
|
"aria-label": f,
|
|
@@ -190,7 +190,7 @@ const se = /* @__PURE__ */ ee(null), _ = () => {
|
|
|
190
190
|
}, e);
|
|
191
191
|
}, Xe = ({ className: e }) => {
|
|
192
192
|
const { selectedCountryCode: n, countries: r } = _(), o = r.find((a) => a.shortCountryCode === n);
|
|
193
|
-
return o ? /* @__PURE__ */ t.createElement(
|
|
193
|
+
return o ? /* @__PURE__ */ t.createElement(Y, {
|
|
194
194
|
className: e,
|
|
195
195
|
longCountryCode: o.longCountryCode
|
|
196
196
|
}) : null;
|
|
@@ -203,7 +203,7 @@ const se = /* @__PURE__ */ ee(null), _ = () => {
|
|
|
203
203
|
z.Flag = Xe;
|
|
204
204
|
z.EmptyState = et;
|
|
205
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 } = _(),
|
|
206
|
+
const { triggerRef: l, optionsRef: i, isForcedOpen: u, isOpen: m } = c, { popoverContainer: C } = _(), d = h(e, b.Search);
|
|
207
207
|
if (!m)
|
|
208
208
|
return null;
|
|
209
209
|
const p = /* @__PURE__ */ t.createElement(le, {
|
|
@@ -211,18 +211,18 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
211
211
|
}, e);
|
|
212
212
|
return /* @__PURE__ */ t.createElement(Se, {
|
|
213
213
|
getContainer: () => C
|
|
214
|
-
}, /* @__PURE__ */ t.createElement(
|
|
214
|
+
}, /* @__PURE__ */ t.createElement(Te, {
|
|
215
215
|
ref: i,
|
|
216
216
|
triggerRef: l,
|
|
217
217
|
className: n,
|
|
218
218
|
placement: o,
|
|
219
219
|
offset: a,
|
|
220
220
|
containerPadding: 0
|
|
221
|
-
},
|
|
221
|
+
}, d && !u ? /* @__PURE__ */ t.createElement(oe, {
|
|
222
222
|
"aria-label": r
|
|
223
223
|
}, p) : p));
|
|
224
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 =
|
|
225
|
+
const { optionsRef: l } = c, { selectedCountryCode: i, handleCountryCodeChange: u } = _(), m = H(Le);
|
|
226
226
|
return /* @__PURE__ */ t.createElement(Ie, {
|
|
227
227
|
className: r,
|
|
228
228
|
isDismissable: !0
|
|
@@ -238,8 +238,9 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
238
238
|
selectedKeys: i ? [
|
|
239
239
|
i
|
|
240
240
|
] : [],
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
onSelectionChange: (C) => {
|
|
242
|
+
const [d] = C === "all" ? [] : C;
|
|
243
|
+
d && u(d), m == null || m.close();
|
|
243
244
|
}
|
|
244
245
|
}
|
|
245
246
|
}, e)))));
|
|
@@ -249,8 +250,8 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
249
250
|
...n,
|
|
250
251
|
renderEmptyState: l ? () => l : void 0
|
|
251
252
|
}, o.map((u) => {
|
|
252
|
-
const m =
|
|
253
|
-
return
|
|
253
|
+
const m = G(u.longCountryCode) || "";
|
|
254
|
+
return I(a, {
|
|
254
255
|
key: u.shortCountryCode,
|
|
255
256
|
countryCode: u.shortCountryCode,
|
|
256
257
|
dialingCode: m,
|
|
@@ -260,10 +261,10 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
260
261
|
}));
|
|
261
262
|
return c ? /* @__PURE__ */ t.createElement(Be, {
|
|
262
263
|
filter: (u, m, C) => {
|
|
263
|
-
const
|
|
264
|
-
return !!
|
|
264
|
+
const d = o.find((p) => p.shortCountryCode === C.key);
|
|
265
|
+
return !!d && We(d, m);
|
|
265
266
|
}
|
|
266
|
-
}, r ?
|
|
267
|
+
}, r ? I(c, {
|
|
267
268
|
autoFocus: !1
|
|
268
269
|
}) : c, i) : i;
|
|
269
270
|
};
|
|
@@ -274,7 +275,7 @@ const ue = ({ className: e, children: n, "aria-label": r, ...o }) => {
|
|
|
274
275
|
return /* @__PURE__ */ t.createElement(Pe, {
|
|
275
276
|
"aria-label": r,
|
|
276
277
|
autoFocus: a
|
|
277
|
-
}, /* @__PURE__ */ t.createElement(
|
|
278
|
+
}, /* @__PURE__ */ t.createElement(q, {
|
|
278
279
|
className: e
|
|
279
280
|
}, n));
|
|
280
281
|
}, nt = ({ className: e, placeholder: n }) => /* @__PURE__ */ t.createElement(re, {
|
|
@@ -287,14 +288,14 @@ const ot = ({ children: e, className: n }) => /* @__PURE__ */ t.createElement("d
|
|
|
287
288
|
className: n
|
|
288
289
|
}, e);
|
|
289
290
|
b.EmptyState = ot;
|
|
290
|
-
const
|
|
291
|
+
const A = ({ children: e, className: n, ...r }) => {
|
|
291
292
|
const { countryCode: o, dialingCode: a, countryName: c, longCountryCode: l } = r, i = {
|
|
292
293
|
countryCode: o,
|
|
293
294
|
dialingCode: a,
|
|
294
295
|
countryName: c,
|
|
295
296
|
longCountryCode: l
|
|
296
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
|
-
return /* @__PURE__ */ t.createElement(
|
|
298
|
+
return /* @__PURE__ */ t.createElement(Fe, {
|
|
298
299
|
className: n,
|
|
299
300
|
id: o,
|
|
300
301
|
textValue: `${c} ${a}`
|
|
@@ -302,39 +303,39 @@ const $ = ({ children: e, className: n, ...r }) => {
|
|
|
302
303
|
value: i
|
|
303
304
|
}, u));
|
|
304
305
|
}, ie = ({ className: e }) => {
|
|
305
|
-
const { longCountryCode: n } =
|
|
306
|
-
return /* @__PURE__ */ t.createElement(
|
|
306
|
+
const { longCountryCode: n } = K();
|
|
307
|
+
return /* @__PURE__ */ t.createElement(Y, {
|
|
307
308
|
className: e,
|
|
308
309
|
longCountryCode: n
|
|
309
310
|
});
|
|
310
311
|
}, me = ({ className: e }) => {
|
|
311
|
-
const { countryName: n } =
|
|
312
|
+
const { countryName: n } = K();
|
|
312
313
|
return /* @__PURE__ */ t.createElement("span", {
|
|
313
314
|
className: e
|
|
314
315
|
}, n);
|
|
315
316
|
}, pe = ({ className: e }) => {
|
|
316
|
-
const { dialingCode: n } =
|
|
317
|
+
const { dialingCode: n } = K();
|
|
317
318
|
return /* @__PURE__ */ t.createElement("span", {
|
|
318
319
|
className: e
|
|
319
320
|
}, n);
|
|
320
321
|
};
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
b.Option =
|
|
322
|
+
A.Flag = ie;
|
|
323
|
+
A.Name = me;
|
|
324
|
+
A.Code = pe;
|
|
325
|
+
b.Option = A;
|
|
325
326
|
const rt = ({ className: e }) => {
|
|
326
|
-
const { t: n } =
|
|
327
|
+
const { t: n } = w(), { inputId: r, ariaDescribedBy: o } = ne(), { id: a, placeholder: c, disabled: l, readOnly: i, required: u, label: m, hasError: C } = D(), { currentValue: d, handlePhoneChange: p } = _(), f = F(null);
|
|
327
328
|
return fe(() => {
|
|
328
|
-
var
|
|
329
|
-
(
|
|
329
|
+
var y;
|
|
330
|
+
(y = f.current) == null || y.focus({
|
|
330
331
|
preventScroll: !0
|
|
331
332
|
});
|
|
332
333
|
}, a), /* @__PURE__ */ t.createElement(re, {
|
|
333
334
|
ref: f,
|
|
334
335
|
id: r,
|
|
335
336
|
type: "tel",
|
|
336
|
-
value:
|
|
337
|
-
onChange: (
|
|
337
|
+
value: d,
|
|
338
|
+
onChange: (y) => p(y.target.value),
|
|
338
339
|
disabled: l,
|
|
339
340
|
readOnly: i,
|
|
340
341
|
required: u,
|
|
@@ -345,11 +346,11 @@ const rt = ({ className: e }) => {
|
|
|
345
346
|
className: e
|
|
346
347
|
});
|
|
347
348
|
}, at = ({ children: e, ...n }) => {
|
|
348
|
-
const r = n, { isForcedOpen: o } = r, { disabled: a, readOnly: c, required: l, hasError: i } = D(), [u, m] =
|
|
349
|
+
const r = n, { isForcedOpen: o } = r, { disabled: a, readOnly: c, required: l, hasError: i } = D(), [u, m] = $(!1), { t: C } = w(), { selectedCountryCode: d, handleCountryCodeChange: p } = _(), f = o || u && !a && !c;
|
|
349
350
|
return /* @__PURE__ */ t.createElement(De, {
|
|
350
351
|
"aria-label": C("field.phone.country-code.aria-label"),
|
|
351
|
-
value:
|
|
352
|
-
onChange: (
|
|
352
|
+
value: d ?? null,
|
|
353
|
+
onChange: (y) => p(y),
|
|
353
354
|
isDisabled: a || c,
|
|
354
355
|
isInvalid: i,
|
|
355
356
|
isRequired: l,
|
|
@@ -357,48 +358,49 @@ const rt = ({ className: e }) => {
|
|
|
357
358
|
isOpen: f,
|
|
358
359
|
allowsEmptyCollection: !0,
|
|
359
360
|
onOpenChange: o ? void 0 : m
|
|
360
|
-
}, h(e, s.CountryButton),
|
|
361
|
+
}, h(e, s.CountryButton), I(h(e, s.CountryOptions.Popover), {
|
|
361
362
|
...r,
|
|
362
363
|
isOpen: f
|
|
363
364
|
}));
|
|
364
365
|
}, st = ({ children: e, ...n }) => {
|
|
365
366
|
const r = n;
|
|
366
|
-
return /* @__PURE__ */ t.createElement(
|
|
367
|
+
return /* @__PURE__ */ t.createElement(we, null, h(e, s.CountryButton), I(h(e, s.CountryOptions.Modal), r));
|
|
367
368
|
}, ct = ({ children: e, className: n }) => {
|
|
368
|
-
const r =
|
|
369
|
+
const r = F(null), o = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: m, onBlur: C } = D(), d = $e(C), { countries: p } = _(), f = h(e, s.CountryDrawer), y = h(e, s.CountryPopover), L = h(e, s.PhoneNumber), N = p.length > 1, B = Ae(c) && !!y && N, R = typeof n == "function" ? ({ isHovered: v, isFocusWithin: S }) => n({
|
|
369
370
|
hasCountryOptions: N,
|
|
370
|
-
isHovered:
|
|
371
|
-
|
|
371
|
+
isHovered: v,
|
|
372
|
+
isFocusWithin: S
|
|
373
|
+
}) : n, x = {
|
|
372
374
|
triggerRef: r,
|
|
373
375
|
optionsRef: o,
|
|
374
376
|
isForcedOpen: B
|
|
375
|
-
},
|
|
377
|
+
}, M = {
|
|
376
378
|
onFocus: () => {
|
|
377
379
|
a.current || (a.current = !0, m == null || m());
|
|
378
380
|
},
|
|
379
|
-
onBlur: (
|
|
380
|
-
var P,
|
|
381
|
-
const
|
|
382
|
-
!((P = r.current) != null && P.contains(
|
|
381
|
+
onBlur: (v) => {
|
|
382
|
+
var P, T;
|
|
383
|
+
const S = v.relatedTarget;
|
|
384
|
+
!((P = r.current) != null && P.contains(S)) && !((T = o.current) != null && T.contains(S)) && (a.current = !1, d());
|
|
383
385
|
}
|
|
384
386
|
};
|
|
385
|
-
return p.length === 1 ? /* @__PURE__ */ t.createElement(
|
|
387
|
+
return p.length === 1 ? /* @__PURE__ */ t.createElement(q, {
|
|
386
388
|
ref: r,
|
|
387
389
|
className: R,
|
|
388
390
|
isDisabled: l,
|
|
389
391
|
isInvalid: i,
|
|
390
|
-
...
|
|
391
|
-
}, u && /* @__PURE__ */ t.createElement(
|
|
392
|
+
...M
|
|
393
|
+
}, u && /* @__PURE__ */ t.createElement(Y, {
|
|
392
394
|
longCountryCode: p[0].longCountryCode
|
|
393
|
-
}),
|
|
395
|
+
}), L) : /* @__PURE__ */ t.createElement(q, {
|
|
394
396
|
ref: r,
|
|
395
397
|
className: R,
|
|
396
398
|
isDisabled: l,
|
|
397
399
|
isInvalid: i,
|
|
398
|
-
...
|
|
399
|
-
}, !B &&
|
|
400
|
+
...M
|
|
401
|
+
}, !B && I(f, x), I(y, x), L);
|
|
400
402
|
};
|
|
401
|
-
s.Label =
|
|
403
|
+
s.Label = Me;
|
|
402
404
|
s.Control = ct;
|
|
403
405
|
s.CountryButton = z;
|
|
404
406
|
s.CountryDrawer = st;
|
|
@@ -406,7 +408,7 @@ s.CountryPopover = at;
|
|
|
406
408
|
s.CountryOptions = b;
|
|
407
409
|
s.PhoneNumber = rt;
|
|
408
410
|
s.Description = Re;
|
|
409
|
-
s.Error =
|
|
411
|
+
s.Error = xe;
|
|
410
412
|
const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
411
413
|
width: 24,
|
|
412
414
|
height: 24,
|
|
@@ -427,7 +429,7 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
427
429
|
}, /* @__PURE__ */ t.createElement("path", {
|
|
428
430
|
fillRule: "evenodd",
|
|
429
431
|
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"
|
|
430
|
-
})), it = "
|
|
432
|
+
})), 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", ht = "_option_o9wij_67", gt = "_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 = {
|
|
431
433
|
control: it,
|
|
432
434
|
countryButton: mt,
|
|
433
435
|
drawerButton: pt,
|
|
@@ -448,57 +450,55 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
448
450
|
content: e,
|
|
449
451
|
locale: n
|
|
450
452
|
}), vt = () => /* @__PURE__ */ t.createElement("span", {
|
|
451
|
-
className:
|
|
453
|
+
className: E.chevron,
|
|
452
454
|
"aria-hidden": "true"
|
|
453
|
-
}, /* @__PURE__ */ t.createElement(
|
|
454
|
-
const e = Ve(O.selectOptionWithoutFocusRing,
|
|
455
|
+
}, /* @__PURE__ */ t.createElement(Ke, null)), Zt = () => {
|
|
456
|
+
const e = Ve(O.selectOptionWithoutFocusRing, E.option, W), n = ke(E.control), r = ze(E.countrySearch), { t: o } = w(), { PortalContainer: a } = te(), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
|
|
455
457
|
className: r,
|
|
456
458
|
"aria-label": o("field.phone.country-search-input.aria-label")
|
|
457
459
|
}, /* @__PURE__ */ t.createElement(ut, {
|
|
458
|
-
className:
|
|
460
|
+
className: E.searchIcon
|
|
459
461
|
}), /* @__PURE__ */ t.createElement(s.CountryOptions.Search.Input, {
|
|
460
462
|
className: g(O.innerInput, W),
|
|
461
463
|
placeholder: o("field.phone.country-search-input.placeholder")
|
|
462
464
|
})), 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:
|
|
465
|
+
className: E.flag
|
|
464
466
|
}), /* @__PURE__ */ t.createElement(s.CountryButton.EmptyState, null, /* @__PURE__ */ t.createElement(lt, {
|
|
465
|
-
className:
|
|
467
|
+
className: E.globeIcon
|
|
466
468
|
})), /* @__PURE__ */ t.createElement(vt, null)), u = /* @__PURE__ */ t.createElement(s.CountryOptions.Option, {
|
|
467
469
|
className: e
|
|
468
470
|
}, /* @__PURE__ */ t.createElement(s.CountryOptions.Option.Flag, {
|
|
469
|
-
className:
|
|
471
|
+
className: E.flag
|
|
470
472
|
}), /* @__PURE__ */ t.createElement(s.CountryOptions.Option.Name, {
|
|
471
|
-
className:
|
|
473
|
+
className: E.name
|
|
472
474
|
}), /* @__PURE__ */ t.createElement(s.CountryOptions.Option.Code, {
|
|
473
|
-
className:
|
|
475
|
+
className: E.code
|
|
474
476
|
}));
|
|
475
477
|
return /* @__PURE__ */ t.createElement(s, null, /* @__PURE__ */ t.createElement(s.Label, {
|
|
476
478
|
className: g(he, O.label)
|
|
477
479
|
}, /* @__PURE__ */ t.createElement(s.Label.Required, {
|
|
478
480
|
className: g(ge, O.requiredMark)
|
|
479
481
|
})), /* @__PURE__ */ t.createElement(s.Control, {
|
|
480
|
-
className: ({ hasCountryOptions: m,
|
|
481
|
-
isHovered: C
|
|
482
|
-
}) : g(be, O.input, y.control)
|
|
482
|
+
className: ({ hasCountryOptions: m, ...C }) => m ? n(C) : g(be, O.input, E.control)
|
|
483
483
|
}, /* @__PURE__ */ t.createElement(s.CountryDrawer, null, /* @__PURE__ */ t.createElement(s.CountryButton, {
|
|
484
|
-
className: g(
|
|
484
|
+
className: g(E.countryButton, E.drawerButton)
|
|
485
485
|
}, i), /* @__PURE__ */ t.createElement(s.CountryOptions.Modal, {
|
|
486
|
-
className: g(O.selectPopover,
|
|
487
|
-
overlayClassName:
|
|
486
|
+
className: g(O.selectPopover, E.mobileDrawer),
|
|
487
|
+
overlayClassName: E.mobileOverlay,
|
|
488
488
|
portalContainer: a,
|
|
489
489
|
"aria-label": o("field.phone.country-code.aria-label")
|
|
490
490
|
}, c, l, u)), /* @__PURE__ */ t.createElement(s.CountryPopover, null, /* @__PURE__ */ t.createElement(s.CountryButton, {
|
|
491
|
-
className: g(
|
|
491
|
+
className: g(E.countryButton, E.popoverButton)
|
|
492
492
|
}, i), /* @__PURE__ */ t.createElement(s.CountryOptions.Popover, {
|
|
493
|
-
className: g(Oe, O.selectPopover,
|
|
493
|
+
className: g(Oe, O.selectPopover, E.countryOptions),
|
|
494
494
|
placement: "bottom start",
|
|
495
495
|
offset: 0,
|
|
496
496
|
"aria-label": o("field.phone.country-code.aria-label")
|
|
497
497
|
}, c, l, u)), /* @__PURE__ */ t.createElement(s.PhoneNumber, {
|
|
498
|
-
className: g(O.innerInput,
|
|
498
|
+
className: g(O.innerInput, E.phoneNumber)
|
|
499
499
|
})), /* @__PURE__ */ t.createElement(s.Error, {
|
|
500
500
|
className: g(_e, O.error)
|
|
501
|
-
}, /* @__PURE__ */ t.createElement(
|
|
501
|
+
}, /* @__PURE__ */ t.createElement(Ye, null), /* @__PURE__ */ t.createElement(s.Error.Text, null)), /* @__PURE__ */ t.createElement(s.Description, {
|
|
502
502
|
className: g(Ne, O.description)
|
|
503
503
|
}, It));
|
|
504
504
|
};
|