@wix/form-elements 1.151.0 → 1.152.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-D5wp75zN.js → appointment-rac-CjDsESxp.js} +4 -4
- package/dist/component/{bookings-address-rac-CWtYXwpn.js → bookings-address-rac-BWDAieZC.js} +1 -1
- package/dist/component/{bookings-email-rac-BUpRXmbz.js → bookings-email-rac-DoMJ0Cq2.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CnHSxXFN.js → bookings-first-name-rac-Bb0TrNKq.js} +1 -1
- package/dist/component/{bookings-header-rac-BcD45Kgs.js → bookings-header-rac-DvXXEmRp.js} +1 -1
- package/dist/component/{bookings-last-name-rac-VaqfK3bu.js → bookings-last-name-rac-q_zzV8ZS.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Dv2quJRw.js → bookings-login-bar-rac-USocDYyR.js} +1 -1
- package/dist/component/{bookings-phone-rac-DVOu-9yX.js → bookings-phone-rac-D4JHCrYc.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-SfsoQKeI.js → bookings-rich-text-rac-D5ScrRTy.js} +1 -1
- package/dist/component/{checkbox-field-rac-BHGWuGcT.js → checkbox-field-rac-g9tefDjj.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-KVBLbjKE.js → checkbox-group-field-headless-KeJlwm_s.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-C-WNRuVW.js → checkbox-group-field-rac-C10zjFrB.js} +7 -7
- package/dist/component/{checkbox-group-rac-BMeqtM9H.js → checkbox-group-rac-xrqoPwH0.js} +1 -1
- package/dist/component/{checkbox-rac-WDBiwyvs.js → checkbox-rac-DnUqY4X0.js} +1 -1
- package/dist/component/{contacts-address-rac-CUjhR8Nq.js → contacts-address-rac-CrJJt8Lm.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BurJLd1V.js → contacts-birthdate-rac-Dj0Z5Dq4.js} +1 -1
- package/dist/component/{contacts-company-rac-y94712hj.js → contacts-company-rac-CfAzWpsO.js} +1 -1
- package/dist/component/{contacts-email-rac-BYzv5pJt.js → contacts-email-rac-DEt_W-OY.js} +1 -1
- package/dist/component/{contacts-first-name-rac-AabYYZTr.js → contacts-first-name-rac-5cge4OTl.js} +1 -1
- package/dist/component/{contacts-last-name-rac-B6GTnMea.js → contacts-last-name-rac-WCJRmxoK.js} +1 -1
- package/dist/component/{contacts-phone-rac-BhGEdh5D.js → contacts-phone-rac-9cJ-XZYq.js} +1 -1
- package/dist/component/{contacts-position-rac-BmbLuomW.js → contacts-position-rac-CFoAC1v-.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-B7SELom1.js → contacts-subscribe-rac-CbqxvKnO.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BewGatKM.js → contacts-tax-id-rac-Cpy8M_0G.js} +1 -1
- package/dist/component/{date-availability-Cpw7i5-L.js → date-availability-DpP0-dxh.js} +1 -1
- package/dist/component/{date-input-field-rac-JbWzxDzZ.js → date-input-field-rac-DNP0Db4K.js} +6 -6
- package/dist/component/{date-input-rac-v4pNWyuY.js → date-input-rac-5H7z1Sjy.js} +1 -1
- package/dist/component/{date-picker-field-rac-0eLcya58.js → date-picker-field-rac-DviFddKc.js} +6 -6
- package/dist/component/{date-picker-rac-BP4BRWn4.js → date-picker-rac-CxXpSPGD.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Cj0RSJF9.js → date-time-input-field-rac-CRapaca2.js} +6 -6
- package/dist/component/{date-time-input-rac-DyD0SpMV.js → date-time-input-rac-DOMqIa4d.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BE9fK7wx.js → dext-checkbox-group-rac-CQPyapQG.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CpB-AVP1.js → dext-checkbox-rac-CW4wF36k.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DkiWY5CE.js → dext-date-picker-rac-DFcrP0ZR.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CyGIs4uD.js → dext-date-time-input-rac-Cs1Df2AX.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C0GiCpWI.js → dext-dropdown-rac-D0ujCY8A.js} +1 -1
- package/dist/component/{dext-email-rac-Clngd9Lm.js → dext-email-rac-Bh86O-fJ.js} +1 -1
- package/dist/component/{dext-number-input-rac-Boshfkc5.js → dext-number-input-rac-CkPDXgxl.js} +1 -1
- package/dist/component/{dext-phone-rac-AX8R0fDx.js → dext-phone-rac-CGHDBW0d.js} +1 -1
- package/dist/component/{dext-radio-group-rac-VSwdnWPU.js → dext-radio-group-rac-qhuKzhbR.js} +2 -2
- package/dist/component/{dext-rating-input-rac-aspmLO_w.js → dext-rating-input-rac-05wft4wI.js} +1 -1
- package/dist/component/{dext-tags-rac-D4r4j1KZ.js → dext-tags-rac-Ch28_kSN.js} +2 -2
- package/dist/component/{dext-text-area-rac-D8vG4QTK.js → dext-text-area-rac-BpPh9q1K.js} +1 -1
- package/dist/component/{dext-text-input-rac-D19SJhDG.js → dext-text-input-rac-v7pE3sIs.js} +1 -1
- package/dist/component/{dext-url-input-rac-BUAWZX7n.js → dext-url-input-rac-BUyNTatI.js} +1 -1
- package/dist/component/{donation-rac-C4NdOTts.js → donation-rac-lw-dkvAY.js} +5 -5
- package/dist/component/{dropdown-field-headless-CtppkNv5.js → dropdown-field-headless-ttDyqdqW.js} +5 -5
- package/dist/component/{dropdown-field-rac-B6KCsR-j.js → dropdown-field-rac-D4Fvsn8C.js} +5 -5
- package/dist/component/{dropdown-rac-CkFLrcRV.js → dropdown-rac-BvNeMUaH.js} +1 -1
- package/dist/component/{ecom-address-rac-D6asF2b7.js → ecom-address-rac-CeBuZKF4.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CFzMl_9G.js → ecom-subscription-checkbox-rac-DvLt1LmK.js} +2 -2
- package/dist/component/{email-input-field-rac-gCsspvxb.js → email-input-field-rac-Dl_USWLL.js} +3 -3
- package/dist/component/{events-repeater-rac-DSrjafwK.js → events-repeater-rac-QJ04thEZ.js} +4 -4
- package/dist/component/{events-rsvp-rac-CMQtNDqE.js → events-rsvp-rac-Ch4lfvZv.js} +3 -3
- package/dist/component/{field-error-headless-Bt2dslWu.js → field-error-headless-CgZAs65K.js} +1 -1
- package/dist/component/{field-label-headless-ZBAhq8nF.js → field-label-headless-CRYxe-vx.js} +1 -1
- package/dist/component/{file-upload-rac-MzPreLKz.js → file-upload-rac-BvjGAd5T.js} +30 -30
- package/dist/component/{fixed-payment-rac-CPWIOJSH.js → fixed-payment-rac-DWNNpt-4.js} +8 -8
- package/dist/component/{form-BrXx-2qp.js → form-DnpFCulG.js} +118 -118
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-5dkUDBLN.js → header-field-rac-WSnI3a0s.js} +2 -2
- package/dist/component/{header-rac-eXnz2eEI.js → header-rac-BLEwF0wr.js} +1 -1
- package/dist/component/{image-choice-rac-BxmirCog.js → image-choice-rac-CH_bPal9.js} +4 -4
- package/dist/component/{index-Be6_W-02.js → index-YBIt9TAJ.js} +2 -2
- package/dist/component/{index-CCz5mdOt.js → index-euOuJTY1.js} +4 -4
- package/dist/component/{isObjectLike-DhFZRIZ5.js → isObjectLike-YcoeiSLm.js} +1 -1
- package/dist/component/{multiline-address-field-rac-C3Rz-qFR.js → multiline-address-field-rac-CpmwYA8Q.js} +7 -7
- package/dist/component/{multiline-address-rac-BFvxiD8l.js → multiline-address-rac-dp2LSRyG.js} +1 -1
- package/dist/component/{number-input-field-rac-CAuoAgAm.js → number-input-field-rac-CfurrJkz.js} +9 -9
- package/dist/component/{number-input-rac-ZCBaL_D4.js → number-input-rac-BFMTZwmv.js} +1 -1
- package/dist/component/{password-rac-oAAB5Yek.js → password-rac-Wqs-85Q8.js} +6 -6
- package/dist/component/{payment-input-rac-BkVImcPM.js → payment-input-rac-DyY_Wj8U.js} +16 -16
- package/dist/component/{phone-input-field-rac-LReDQaEl.js → phone-input-field-rac-C7KFjyig.js} +202 -202
- package/dist/component/{phone-rac-B4Rv_q9_.js → phone-rac-Bhl7AZcj.js} +1 -1
- package/dist/component/{product-list-rac-CVoJPZH6.js → product-list-rac-B4oybHWH.js} +25 -25
- package/dist/component/{quiz-radio-group-rac-CHXOBaWQ.js → quiz-radio-group-rac-oDweLSYP.js} +1 -1
- package/dist/component/{radio-button-module-classes-G3CPOqV_.js → radio-button-module-classes-CUkou54P.js} +3 -3
- package/dist/component/{radio-group-field-rac-Di8f67l0.js → radio-group-field-rac-BmR0H0UO.js} +8 -8
- package/dist/component/{radio-group-rac-BP4EdSWA.js → radio-group-rac-DY2mnw30.js} +1 -1
- package/dist/component/{rating-input-field-rac-D6nHfXat.js → rating-input-field-rac-DRbFC_V7.js} +15 -15
- package/dist/component/{rating-input-rac-BpTVbrOY.js → rating-input-rac-MtNlX53V.js} +1 -1
- package/dist/component/{rich-content-rac.module-DfNKRJQl.js → rich-content-rac.module-B4fFSQ6R.js} +1 -1
- package/dist/component/{rich-text-field-rac-BZx7O1ln.js → rich-text-field-rac-Dew-awSN.js} +2 -2
- package/dist/component/{rich-text-rac-Bie0rehR.js → rich-text-rac-4G6WBtds.js} +1 -1
- package/dist/component/{service-dropdown-rac-DZgYoLs3.js → service-dropdown-rac-DrKwsL6p.js} +11 -11
- package/dist/component/{services-multi-choice-rac-os7W4s1g.js → services-multi-choice-rac-C5pN_Zck.js} +8 -8
- package/dist/component/{signature-rac-BMRvU0qg.js → signature-rac-8wj8b_im.js} +53 -53
- package/dist/component/{submit-button-rac-BkXQF3FL.js → submit-button-rac-C9tR2MGH.js} +2 -2
- package/dist/component/{tags-field-rac-5GL81x5S.js → tags-field-rac-CEKtxEMx.js} +17 -17
- package/dist/component/{tags-rac-BG4eu5vf.js → tags-rac-fGDFocqq.js} +1 -1
- package/dist/component/{text-area-field-rac-CGtt6YXJ.js → text-area-field-rac-dRdFY5LY.js} +12 -12
- package/dist/component/{text-area-rac-D6aJxM-f.js → text-area-rac-uv8JLQ3Z.js} +1 -1
- package/dist/component/{text-input-field-rac-BUuVi4gl.js → text-input-field-rac--VebbXxr.js} +5 -5
- package/dist/component/{text-input-headless-DG-jyTVD.js → text-input-headless-CtdPYLHv.js} +3 -3
- package/dist/component/{text-input-rac-LVE42SOJ.js → text-input-rac-Wa1Ou8a5.js} +1 -1
- package/dist/component/{time-input-rac-jZ9v7Azv.js → time-input-rac-KYSuxO5P.js} +16 -16
- package/dist/component/{url-input-field-rac-DQ9JerAM.js → url-input-field-rac-Bn6cCoo4.js} +7 -7
- package/dist/component/{url-input-rac-4k06IpF-.js → url-input-rac-BPtRMinM.js} +1 -1
- package/dist/component/{use-dropdown-trigger-class-name-CgNFe8Eg.js → use-dropdown-trigger-class-name-0AI0_olG.js} +3 -3
- package/dist/component/{use-element-state-class-name-B4a4SKmP.js → use-element-state-class-name-nqBrsuxl.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-DZVkGZvs.js → use-hoverable-input-class-name-KQp9yOph.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-ClP9MSlU.js → use-is-forced-open-dropdown-xB31vrZi.js} +1 -1
- package/dist/component/{use-service-options-base-Ch2bF4mk.js → use-service-options-base-SETfl9JT.js} +1 -1
- package/dist/component/use-text-input-class-name-BwCLUlxr.js +6 -0
- package/package.json +3 -3
- package/dist/component/use-text-input-class-name-BQshbjqt.js +0 -6
package/dist/component/{phone-input-field-rac-LReDQaEl.js → phone-input-field-rac-C7KFjyig.js}
RENAMED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
2
|
-
import
|
|
3
|
-
import t, { useMemo as j, useState as $, useRef as F, useEffect as k, useCallback as W, createContext as
|
|
4
|
-
import { b7 as
|
|
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-DnpFCulG.js";
|
|
5
5
|
import { UNSAFE_PortalProvider as Se } from "react-aria";
|
|
6
|
-
import { Dialog as
|
|
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
|
|
9
|
-
import { L as Me } from "./field-label-headless-
|
|
8
|
+
import { D as xe, E as Re } from "./field-error-headless-CgZAs65K.js";
|
|
9
|
+
import { L as Me } from "./field-label-headless-CRYxe-vx.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-
|
|
13
|
-
import { V as ke, u as
|
|
14
|
-
import
|
|
12
|
+
import { a as Ae } from "./use-is-forced-open-dropdown-xB31vrZi.js";
|
|
13
|
+
import { V as ke, u as Ve, a as Ue } from "./use-dropdown-trigger-class-name-0AI0_olG.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
|
|
22
|
-
function
|
|
23
|
-
const n = e ?
|
|
24
|
-
if (
|
|
25
|
-
return
|
|
26
|
-
const
|
|
27
|
-
return e &&
|
|
21
|
+
import { u as J } from "./use-text-input-class-name-BwCLUlxr.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 =
|
|
31
|
+
return e && ((n = Ee.getCountryByKey(e)) == null ? void 0 : n.dialCode);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function V(e) {
|
|
34
34
|
return e === null ? null : e.replace(/[^0-9+]/g, "") || e;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function ee(e, n) {
|
|
37
37
|
if (e && n)
|
|
38
38
|
try {
|
|
39
|
-
const
|
|
40
|
-
if (
|
|
41
|
-
return
|
|
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
|
|
47
|
-
const { t: e } =
|
|
48
|
-
return j(() => Object.keys(Z).reduce((
|
|
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) &&
|
|
50
|
+
return l && Ge(a) && r.push({
|
|
51
51
|
countryName: i,
|
|
52
52
|
longCountryCode: c,
|
|
53
53
|
shortCountryCode: a,
|
|
54
54
|
callingCode: l
|
|
55
|
-
}),
|
|
56
|
-
}, []).sort((
|
|
55
|
+
}), r;
|
|
56
|
+
}, []).sort((r, a) => r.countryName.localeCompare(a.countryName, n)), [
|
|
57
57
|
e,
|
|
58
58
|
n
|
|
59
59
|
]);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
return e.filter((
|
|
61
|
+
function We(e, n) {
|
|
62
|
+
return e.filter((o) => n && n.length > 0 ? n.includes(o.shortCountryCode) : !0);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
const { countryName:
|
|
66
|
-
return !!(
|
|
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
|
|
68
|
+
function U(e, n) {
|
|
69
69
|
return e.toLowerCase().includes(n.toLowerCase());
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
const [a, c] = $(e || ""), l = F(
|
|
73
|
-
|
|
74
|
-
c(""), l.current = "", u(n),
|
|
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(() =>
|
|
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 = "",
|
|
97
|
+
l.current = "", r(null);
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
|
-
const f =
|
|
100
|
+
const f = X(p);
|
|
101
101
|
u((y) => {
|
|
102
|
-
const L = f || y || ((
|
|
103
|
-
return l.current =
|
|
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
|
-
|
|
107
|
-
|
|
106
|
+
o,
|
|
107
|
+
r
|
|
108
108
|
]), d = W((p) => {
|
|
109
109
|
u(p), c((f) => {
|
|
110
|
-
const y =
|
|
111
|
-
return l.current = y ?? "",
|
|
110
|
+
const y = V(ee(f, p));
|
|
111
|
+
return l.current = y ?? "", r(y), f;
|
|
112
112
|
});
|
|
113
113
|
}, [
|
|
114
|
-
|
|
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
|
|
124
|
-
const e = H(
|
|
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
|
-
},
|
|
129
|
-
const e = H(
|
|
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
|
|
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
|
|
138
|
+
const r = o(e, "1x"), a = o(e, "2x");
|
|
139
139
|
return /* @__PURE__ */ t.createElement("img", {
|
|
140
|
-
src:
|
|
141
|
-
srcSet: `${
|
|
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:
|
|
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:
|
|
155
|
-
value:
|
|
154
|
+
]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: L, handleCountryCodeChange: _ } = Qe({
|
|
155
|
+
value: o,
|
|
156
156
|
defaultCountryCode: c,
|
|
157
157
|
allowedCountryCodes: p,
|
|
158
|
-
onChange:
|
|
159
|
-
}), B = g(e, s.Label),
|
|
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:
|
|
163
|
+
handleCountryCodeChange: _,
|
|
164
164
|
countryCodes: p,
|
|
165
165
|
countries: d,
|
|
166
166
|
popoverContainer: i
|
|
167
167
|
};
|
|
168
|
-
return /* @__PURE__ */ t.createElement(
|
|
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
|
-
}),
|
|
179
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, M,
|
|
178
|
+
}), x),
|
|
179
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, M, R)
|
|
180
180
|
}));
|
|
181
181
|
}, K = ({ children: e, className: n }) => {
|
|
182
|
-
const { labelId:
|
|
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":
|
|
187
|
+
"aria-labelledby": o ? `${o} ${m}` : void 0,
|
|
188
188
|
className: n,
|
|
189
|
-
"data-invalid":
|
|
189
|
+
"data-invalid": r || void 0
|
|
190
190
|
}, e);
|
|
191
|
-
},
|
|
192
|
-
const { selectedCountryCode: n, countries:
|
|
193
|
-
return
|
|
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:
|
|
195
|
+
longCountryCode: r.longCountryCode
|
|
196
196
|
}) : null;
|
|
197
|
-
},
|
|
198
|
-
const { selectedCountryCode:
|
|
199
|
-
return
|
|
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 =
|
|
204
|
-
K.EmptyState =
|
|
205
|
-
const
|
|
206
|
-
const { triggerRef: l, optionsRef: i, isForcedOpen: u, isOpen: m } = c, { popoverContainer: C } =
|
|
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(
|
|
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:
|
|
218
|
+
placement: r,
|
|
219
219
|
offset: a,
|
|
220
220
|
containerPadding: 0
|
|
221
|
-
}, d && !u ? /* @__PURE__ */ t.createElement(
|
|
222
|
-
"aria-label":
|
|
221
|
+
}, d && !u ? /* @__PURE__ */ t.createElement(re, {
|
|
222
|
+
"aria-label": o
|
|
223
223
|
}, p) : p));
|
|
224
|
-
},
|
|
225
|
-
const { optionsRef: l } = c, { selectedCountryCode: i, handleCountryCodeChange: u } =
|
|
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:
|
|
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(
|
|
233
|
-
"aria-label":
|
|
234
|
-
}, /* @__PURE__ */ t.createElement(
|
|
232
|
+
}, /* @__PURE__ */ t.createElement(re, {
|
|
233
|
+
"aria-label": r
|
|
234
|
+
}, /* @__PURE__ */ t.createElement(ue, {
|
|
235
235
|
listBoxProps: {
|
|
236
|
-
"aria-label":
|
|
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
|
-
},
|
|
248
|
-
const { countries:
|
|
249
|
-
isForcedOpen:
|
|
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
|
-
},
|
|
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 =
|
|
265
|
-
return !!d &&
|
|
264
|
+
const d = r.find((p) => p.shortCountryCode === C.key);
|
|
265
|
+
return !!d && Ze(d, m);
|
|
266
266
|
}
|
|
267
|
-
},
|
|
267
|
+
}, o ? I(c, {
|
|
268
268
|
autoFocus: !1
|
|
269
269
|
}) : c, i) : i;
|
|
270
270
|
};
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
const
|
|
274
|
-
const { autoFocus: a = !0 } =
|
|
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":
|
|
276
|
+
"aria-label": o,
|
|
277
277
|
autoFocus: a
|
|
278
278
|
}, /* @__PURE__ */ t.createElement(q, {
|
|
279
279
|
className: e
|
|
280
280
|
}, n));
|
|
281
|
-
},
|
|
281
|
+
}, tt = ({ className: e, placeholder: n }) => /* @__PURE__ */ t.createElement(ae, {
|
|
282
282
|
className: e,
|
|
283
283
|
placeholder: n
|
|
284
284
|
});
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
const
|
|
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
|
-
|
|
291
|
-
const A = ({ children: e, className: n, ...
|
|
292
|
-
const { countryCode:
|
|
293
|
-
countryCode:
|
|
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(
|
|
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:
|
|
300
|
+
id: r,
|
|
301
301
|
textValue: `${c} ${a}`
|
|
302
|
-
}, /* @__PURE__ */ t.createElement(
|
|
302
|
+
}, /* @__PURE__ */ t.createElement(le.Provider, {
|
|
303
303
|
value: i
|
|
304
304
|
}, u));
|
|
305
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
323
|
-
A.Name =
|
|
324
|
-
A.Code =
|
|
325
|
-
|
|
326
|
-
const
|
|
327
|
-
const { t: n } =
|
|
328
|
-
return
|
|
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(
|
|
333
|
+
}, a), /* @__PURE__ */ t.createElement(ae, {
|
|
334
334
|
ref: f,
|
|
335
|
-
id:
|
|
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":
|
|
344
|
+
"aria-describedby": r,
|
|
345
345
|
"aria-invalid": C,
|
|
346
346
|
placeholder: c,
|
|
347
347
|
className: e
|
|
348
348
|
});
|
|
349
|
-
},
|
|
350
|
-
const
|
|
351
|
-
return /* @__PURE__ */ t.createElement(
|
|
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:
|
|
361
|
+
onOpenChange: r ? void 0 : m
|
|
362
362
|
}, g(e, s.CountryButton), I(g(e, s.CountryOptions.Popover), {
|
|
363
|
-
...
|
|
363
|
+
...o,
|
|
364
364
|
isOpen: f
|
|
365
365
|
}));
|
|
366
|
-
},
|
|
367
|
-
const
|
|
368
|
-
return /* @__PURE__ */ t.createElement(
|
|
369
|
-
},
|
|
370
|
-
const
|
|
371
|
-
hasCountryOptions:
|
|
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,
|
|
375
|
-
triggerRef:
|
|
376
|
-
optionsRef:
|
|
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 =
|
|
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:
|
|
390
|
-
className:
|
|
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:
|
|
398
|
-
className:
|
|
397
|
+
ref: o,
|
|
398
|
+
className: x,
|
|
399
399
|
isDisabled: l,
|
|
400
400
|
isInvalid: i,
|
|
401
401
|
...M
|
|
402
|
-
}, !B && I(f,
|
|
402
|
+
}, !B && I(f, R), I(y, R), L);
|
|
403
403
|
};
|
|
404
404
|
s.Label = Me;
|
|
405
|
-
s.Control =
|
|
405
|
+
s.Control = st;
|
|
406
406
|
s.CountryButton = K;
|
|
407
|
-
s.CountryDrawer =
|
|
408
|
-
s.CountryPopover =
|
|
409
|
-
s.CountryOptions =
|
|
410
|
-
s.PhoneNumber =
|
|
411
|
-
s.Description =
|
|
412
|
-
s.Error =
|
|
413
|
-
const
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
434
|
-
control:
|
|
435
|
-
countryButton:
|
|
436
|
-
drawerButton:
|
|
437
|
-
popoverButton:
|
|
438
|
-
chevron:
|
|
439
|
-
globeIcon:
|
|
440
|
-
searchIcon:
|
|
441
|
-
flag:
|
|
442
|
-
option:
|
|
443
|
-
phoneNumber:
|
|
444
|
-
countryOptions:
|
|
445
|
-
countrySearch:
|
|
446
|
-
mobileDrawer:
|
|
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:
|
|
449
|
-
mobileOverlay:
|
|
450
|
-
},
|
|
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
|
-
}),
|
|
453
|
+
}), It = () => /* @__PURE__ */ t.createElement("span", {
|
|
454
454
|
className: E.chevron,
|
|
455
455
|
"aria-hidden": "true"
|
|
456
|
-
}, /* @__PURE__ */ t.createElement(Ye, null)),
|
|
457
|
-
const e =
|
|
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":
|
|
460
|
-
}, /* @__PURE__ */ t.createElement(
|
|
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:
|
|
464
|
-
placeholder:
|
|
465
|
-
})),
|
|
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(
|
|
467
|
+
}), /* @__PURE__ */ t.createElement(s.CountryButton.EmptyState, null, /* @__PURE__ */ t.createElement(ct, {
|
|
468
468
|
className: E.globeIcon
|
|
469
|
-
})), /* @__PURE__ */ t.createElement(
|
|
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:
|
|
479
|
+
className: b(he, O.label)
|
|
480
480
|
}, /* @__PURE__ */ t.createElement(s.Label.Required, {
|
|
481
|
-
className:
|
|
481
|
+
className: b(be, O.requiredMark)
|
|
482
482
|
})), /* @__PURE__ */ t.createElement(s.Control, {
|
|
483
|
-
className: ({ hasCountryOptions:
|
|
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:
|
|
486
|
-
},
|
|
487
|
-
className:
|
|
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:
|
|
490
|
-
"aria-label":
|
|
491
|
-
},
|
|
492
|
-
className:
|
|
493
|
-
},
|
|
494
|
-
className:
|
|
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":
|
|
498
|
-
},
|
|
499
|
-
className:
|
|
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:
|
|
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:
|
|
504
|
-
},
|
|
503
|
+
className: b(_e, O.description)
|
|
504
|
+
}, Lt));
|
|
505
505
|
};
|
|
506
506
|
export {
|
|
507
|
-
|
|
507
|
+
Kt as P
|
|
508
508
|
};
|