@wix/form-elements 1.187.0 → 1.189.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-DiGTD4hn.js → appointment-rac-Biwj0bKe.js} +78 -78
- package/dist/component/{bookings-address-rac-Bczo07PP.js → bookings-address-rac-B_o25LOI.js} +1 -1
- package/dist/component/{bookings-email-rac-D0cw7HFH.js → bookings-email-rac-BBcusxbS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DqxVpKqV.js → bookings-first-name-rac-CNTGannm.js} +1 -1
- package/dist/component/{bookings-header-rac-BxlD5Wje.js → bookings-header-rac-BTvG2vnk.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CraNB_ut.js → bookings-last-name-rac-BQumGsz9.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BMGnVYXE.js → bookings-login-bar-rac-Cl_rwWhO.js} +8 -8
- package/dist/component/{bookings-phone-rac-CnSlSyLi.js → bookings-phone-rac-B_gXe9Fa.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CWWvRRRi.js → bookings-rich-text-rac-CbMuPVCB.js} +1 -1
- package/dist/component/{checkbox-field-rac-C2LLGbbS.js → checkbox-field-rac-QwFSqEgs.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-B2hKVuJD.js → checkbox-group-field-headless-CTDMO0TM.js} +38 -38
- package/dist/component/{checkbox-group-field-rac-Bqo7LRpI.js → checkbox-group-field-rac-DFUST9Th.js} +4 -4
- package/dist/component/{checkbox-group-rac-CHAnQW7L.js → checkbox-group-rac-CBAE-o1Q.js} +1 -1
- package/dist/component/{checkbox-rac-D09xnf-F.js → checkbox-rac-DkYPhGTU.js} +1 -1
- package/dist/component/{contacts-address-rac-CY_ff8gq.js → contacts-address-rac-DKf42iJk.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BkPpyiCP.js → contacts-birthdate-rac-ffPSb2YW.js} +1 -1
- package/dist/component/{contacts-company-rac-2I05yC97.js → contacts-company-rac-DLVdNbYz.js} +1 -1
- package/dist/component/{contacts-email-rac-B5vwkBUk.js → contacts-email-rac-CW8SdcYX.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CVxn7EaP.js → contacts-first-name-rac-CGdzgpkw.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DIu7T_QU.js → contacts-last-name-rac-DNQj7UcW.js} +1 -1
- package/dist/component/{contacts-phone-rac-B_9KO997.js → contacts-phone-rac-zAMIceti.js} +1 -1
- package/dist/component/{contacts-position-rac-Dll7FDN5.js → contacts-position-rac-DLwn9B2T.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DvZ0S_7T.js → contacts-subscribe-rac-Cy5rxTkC.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BmYWQGbm.js → contacts-tax-id-rac-CEfU6N6C.js} +1 -1
- package/dist/component/{date-availability-C2IYlnG_.js → date-availability-C9EOQUiy.js} +1 -1
- package/dist/component/{date-input-field-rac-TwaBKY7l.js → date-input-field-rac-F4QQeEtO.js} +57 -57
- package/dist/component/{date-input-rac-CusCOLnm.js → date-input-rac-CJeOgyF5.js} +1 -1
- package/dist/component/{date-picker-field-rac-ufxxlmpA.js → date-picker-field-rac-33ARKAxQ.js} +35 -35
- package/dist/component/{date-picker-rac-IGr_hLjg.js → date-picker-rac-Beaqh84V.js} +1 -1
- package/dist/component/{date-time-input-field-rac-B6ZQo4Tk.js → date-time-input-field-rac-CB8FfYUM.js} +44 -44
- package/dist/component/{date-time-input-rac-X1GCfhSl.js → date-time-input-rac-DQ9P6IVp.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-D9UmRqnt.js → dext-checkbox-group-rac-Cho-hueW.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DrMbQCX3.js → dext-checkbox-rac-BIwIwy-y.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Barwg8La.js → dext-date-picker-rac-C03HJdvX.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-ChIUfDk4.js → dext-date-time-input-rac-Bo4XfnRA.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BCrEGvfc.js → dext-dropdown-rac-CadT1tMH.js} +1 -1
- package/dist/component/{dext-email-rac-D7l9fah1.js → dext-email-rac-DbiEws8H.js} +1 -1
- package/dist/component/{dext-number-input-rac-CrI6ChK9.js → dext-number-input-rac-XoW8CLvX.js} +1 -1
- package/dist/component/{dext-phone-rac-B_ObVduc.js → dext-phone-rac-9rFyUD8e.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DOBaXXjq.js → dext-radio-group-rac-U6BNL7IT.js} +2 -2
- package/dist/component/{dext-rating-input-rac-D4LxflR7.js → dext-rating-input-rac-BDGUv8jU.js} +1 -1
- package/dist/component/{dext-tags-rac-nTSiW-H7.js → dext-tags-rac-CAFGVcIi.js} +2 -2
- package/dist/component/{dext-text-area-rac-DYV_gO7a.js → dext-text-area-rac-DXyzm9oe.js} +1 -1
- package/dist/component/{dext-text-input-rac-Zjq6PsXg.js → dext-text-input-rac-C27gdfyG.js} +1 -1
- package/dist/component/{dext-url-input-rac-BM7jm0Tn.js → dext-url-input-rac-DovYH3_G.js} +1 -1
- package/dist/component/{donation-rac-CGjEtI7s.js → donation-rac-DV2aRsDt.js} +60 -60
- package/dist/component/{dropdown-field-rac-c-Owb2hL.js → dropdown-field-rac-D58C7YZG.js} +3 -3
- package/dist/component/{dropdown-rac-Bp9hWnJS.js → dropdown-rac-57yZf_yZ.js} +1 -1
- package/dist/component/{ecom-address-rac-C1YRffNH.js → ecom-address-rac-Co3WhA7m.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B5uCvEqP.js → ecom-subscription-checkbox-rac-CYjsuRA9.js} +2 -2
- package/dist/component/{email-input-field-rac-BDQYfj6b.js → email-input-field-rac-C5G3pVkR.js} +14 -14
- package/dist/component/{events-repeater-rac-DoZBb6e0.js → events-repeater-rac-D5PXSDIH.js} +72 -70
- package/dist/component/{events-rsvp-rac-OyYogsL5.js → events-rsvp-rac-BfyQNZh6.js} +3 -3
- package/dist/component/{field-error-headless-B41KJxbD.js → field-error-headless-RTyrenpC.js} +8 -8
- package/dist/component/{field-label-headless-DHt_Wm_S.js → field-label-headless-Bd00Hl2z.js} +4 -4
- package/dist/component/{file-upload-rac-Bed5vOYu.js → file-upload-rac-D5pTnsHO.js} +61 -61
- package/dist/component/{fixed-payment-rac-_HtF4gSw.js → fixed-payment-rac-ByxSjPu5.js} +9 -9
- package/dist/component/{form-DAUDnpk6.js → form-BG5UjjLA.js} +3276 -3217
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BwlXDMt4.js → header-field-rac-Bql6VoAi.js} +2 -2
- package/dist/component/{header-rac-CdFpA8bi.js → header-rac-DWAIn4eY.js} +1 -1
- package/dist/component/{image-choice-rac-Bfs7ixsZ.js → image-choice-rac-D5dSQ4Xd.js} +11 -11
- package/dist/component/{index-B5HfcvO_.js → index-37eV-JEp.js} +5 -5
- package/dist/component/{index-BQctPc9k.js → index-DlcCtz4h.js} +4 -4
- package/dist/component/{isObjectLike-CKRIZUUL.js → isObjectLike-ClPDcTiq.js} +1 -1
- package/dist/component/{multiline-address-field-rac-Gs6BGlnz.js → multiline-address-field-rac-CpvwzmpC.js} +345 -345
- package/dist/component/{multiline-address-rac-6tsDZK20.js → multiline-address-rac-ENim2Bn6.js} +1 -1
- package/dist/component/{number-input-field-rac-D2vzcEDT.js → number-input-field-rac-DTRnmRDk.js} +21 -21
- package/dist/component/{number-input-rac-DJA2sjJ2.js → number-input-rac-QROlEpkx.js} +1 -1
- package/dist/component/{password-rac-DS9j5AEn.js → password-rac-jMoyzIP2.js} +47 -47
- package/dist/component/{payment-input-rac-t15HwuyR.js → payment-input-rac-DOOV4P4b.js} +31 -31
- package/dist/component/{phone-input-field-rac-DCEMaJjP.js → phone-input-field-rac-BA_mTcND.js} +47 -47
- package/dist/component/{phone-rac-R2KIpq9Y.js → phone-rac-DXcbIqHK.js} +1 -1
- package/dist/component/{product-list-rac-BCaz8EbJ.js → product-list-rac-CsxR7Ut6.js} +63 -63
- package/dist/component/{quiz-radio-group-rac-Czjt8SZW.js → quiz-radio-group-rac-IQgqvqjs.js} +1 -1
- package/dist/component/{radio-button-module-classes-B2cY0daS.js → radio-button-module-classes-DIFYfYiH.js} +36 -36
- package/dist/component/{radio-group-field-rac-BdCqn6Uq.js → radio-group-field-rac-Ca2RlxOl.js} +4 -4
- package/dist/component/{radio-group-rac-CdKWOA6d.js → radio-group-rac-DDervEEb.js} +1 -1
- package/dist/component/{rating-input-field-rac-qllcIC5u.js → rating-input-field-rac-0kyPo9cU.js} +12 -12
- package/dist/component/{rating-input-rac-Cno0IibX.js → rating-input-rac-DqPsqUKR.js} +1 -1
- package/dist/component/{rich-content-rac.module-Bj8zO5BD.js → rich-content-rac.module-2T_-7jvb.js} +5 -5
- package/dist/component/{rich-text-field-rac-CJOPMgvk.js → rich-text-field-rac-W-eKzhuC.js} +4 -4
- package/dist/component/{rich-text-rac-qJLSQUfk.js → rich-text-rac-CzJfbAyx.js} +1 -1
- package/dist/component/{service-dropdown-rac-CrrqMt0I.js → service-dropdown-rac-BMJy2pZ5.js} +25 -25
- package/dist/component/{services-multi-choice-rac-DHpIgQT8.js → services-multi-choice-rac-BBAWlI7U.js} +7 -7
- package/dist/component/{signature-rac-vHDz7aO9.js → signature-rac-Y1GLswrp.js} +22 -22
- package/dist/component/{submit-button-rac-CdSXP5MY.js → submit-button-rac-CSKbrgQ3.js} +17 -17
- package/dist/component/{tags-field-rac-BE5q3Yzp.js → tags-field-rac-D3zOYcC5.js} +19 -19
- package/dist/component/{tags-rac-DPH9Jekq.js → tags-rac-Cs77Abgs.js} +1 -1
- package/dist/component/text-area-field-rac-DZZW7rAX.js +74 -0
- package/dist/component/{text-area-rac-BWI_FwJ_.js → text-area-rac-BRPp0HnX.js} +1 -1
- package/dist/component/{text-input-field-rac-SljlZsKs.js → text-input-field-rac-tPDZmLdU.js} +3 -3
- package/dist/component/text-input-headless-tkwEZWs7.js +47 -0
- package/dist/component/{text-input-rac-OP8CxA5d.js → text-input-rac-DnHt4vkM.js} +1 -1
- package/dist/component/{time-input-rac-Dc0pojpK.js → time-input-rac-Dbg4Nqb5.js} +18 -18
- package/dist/component/url-input-field-rac-3ODFXFRP.js +77 -0
- package/dist/component/{url-input-rac-DW245AQ3.js → url-input-rac-CPb5o8Of.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CohYBaie.js → use-dropdown-option-class-name-Dd4ncVaY.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-CcyW9dW5.js → use-dropdown-trigger-class-name-zVniRqM7.js} +29 -29
- package/dist/component/{use-element-state-class-name-ByWbyT81.js → use-element-state-class-name-C8jFeDrq.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-CmYpz2Os.js → use-hoverable-input-class-name-B9diy0Mr.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-D4-XPkUN.js → use-is-forced-open-dropdown-BR1U1l5w.js} +6 -6
- package/dist/component/{use-service-options-base-DGHhZKVh.js → use-service-options-base-yM4rJlq1.js} +3 -3
- package/dist/component/use-text-input-class-name-D6AnBbJx.js +6 -0
- package/package.json +2 -2
- package/dist/component/text-area-field-rac-CUSpvF_P.js +0 -74
- package/dist/component/text-input-headless-BWFcuwI4.js +0 -47
- package/dist/component/url-input-field-rac-CcUeuaJX.js +0 -77
- package/dist/component/use-text-input-class-name-VJ-nzeqS.js +0 -6
package/dist/component/{phone-input-field-rac-DCEMaJjP.js → phone-input-field-rac-BA_mTcND.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { RicosViewer as ye } from "@wix/ricos/viewer";
|
|
2
2
|
import O from "classnames";
|
|
3
|
-
import t, { useMemo as $, useState as A, useRef as F, useEffect as
|
|
4
|
-
import {
|
|
3
|
+
import t, { useMemo as $, useState as A, useRef as F, useEffect as k, useCallback as W, createContext as ne, useContext as q, useId as Ee } from "react";
|
|
4
|
+
import { bv as fe, bX as D, bE as oe, bW as he, bM as w, bJ as re, bO as ge, X as Oe, am as be, a3 as X, M as _e, I as Ne, a5 as Le, a4 as Se, a2 as Ie } from "./form-BG5UjjLA.js";
|
|
5
5
|
import { UNSAFE_PortalProvider as Pe } from "react-aria";
|
|
6
|
-
import { Dialog as ae, OverlayTriggerStateContext as ve, ModalOverlay as Fe, Modal as De, SearchField as we, Group as
|
|
6
|
+
import { Dialog as ae, OverlayTriggerStateContext as ve, ModalOverlay as Fe, Modal as De, SearchField as we, Group as U, ListBoxItem as Be, DialogTrigger as Re, Select as xe, Input as se, Autocomplete as Me } from "react-aria-components";
|
|
7
7
|
import { f as h, a as I } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as je, E as $e } from "./field-error-headless-
|
|
9
|
-
import { L as Ae } from "./field-label-headless-
|
|
10
|
-
import { N as Te, S as
|
|
11
|
-
import { u as
|
|
12
|
-
import { d as
|
|
13
|
-
import { V as
|
|
8
|
+
import { D as je, E as $e } from "./field-error-headless-RTyrenpC.js";
|
|
9
|
+
import { L as Ae } from "./field-label-headless-Bd00Hl2z.js";
|
|
10
|
+
import { N as Te, S as ke } from "./non-modal-popover-D-u13tmp.js";
|
|
11
|
+
import { u as Ve } from "./use-invoke-callback-UH73A_J3.js";
|
|
12
|
+
import { d as He } from "./use-is-forced-open-dropdown-BR1U1l5w.js";
|
|
13
|
+
import { V as Ue, a as qe } from "./use-dropdown-option-class-name-Dd4ncVaY.js";
|
|
14
14
|
import ce, { AsYouType as Ge, isValidPhoneNumber as Ye, isSupportedCountry as ze } from "libphonenumber-js";
|
|
15
15
|
import "libphonenumber-js/metadata.min.json";
|
|
16
|
-
import { C as
|
|
16
|
+
import { C as Z } from "./calling-country-codes-PyWuOTmF.js";
|
|
17
17
|
import { C as Ke } from "./chevron-down-icon-CcpVm6B-.js";
|
|
18
|
-
import { E as
|
|
19
|
-
import { H as
|
|
18
|
+
import { E as We } from "./error-icon-hZxQ6DEy.js";
|
|
19
|
+
import { H as J } from "./custom-focus-class-_483Pkwp.js";
|
|
20
20
|
import { s as b } from "./field-rac.module-DcyJyi2B.js";
|
|
21
|
-
import { u as
|
|
21
|
+
import { u as Q } from "./use-hoverable-input-class-name-B9diy0Mr.js";
|
|
22
22
|
function ee(e) {
|
|
23
23
|
const n = e ? ce(e) : void 0, r = n == null ? void 0 : n.country;
|
|
24
24
|
if (r)
|
|
@@ -30,7 +30,7 @@ function G(e) {
|
|
|
30
30
|
var n;
|
|
31
31
|
return e && ((n = fe.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
36
|
function te(e, n) {
|
|
@@ -43,10 +43,10 @@ function te(e, n) {
|
|
|
43
43
|
}
|
|
44
44
|
return e;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Xe() {
|
|
47
47
|
const { t: e } = D(), { language: n } = oe();
|
|
48
|
-
return $(() => Object.keys(
|
|
49
|
-
const c =
|
|
48
|
+
return $(() => Object.keys(Z).reduce((o, a) => {
|
|
49
|
+
const c = Z[a], l = G(c), i = e(`locale-dataset.countries.${c.toUpperCase()}`);
|
|
50
50
|
return l && ze(a) && o.push({
|
|
51
51
|
countryName: i,
|
|
52
52
|
longCountryCode: c,
|
|
@@ -58,56 +58,56 @@ function Qe() {
|
|
|
58
58
|
n
|
|
59
59
|
]);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Ze(e, n) {
|
|
62
62
|
return e.filter((r) => n && n.length > 0 ? n.includes(r.shortCountryCode) : !0);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Je(e, n) {
|
|
65
65
|
const { countryName: r, callingCode: o, shortCountryCode: a } = e;
|
|
66
|
-
return !!(
|
|
66
|
+
return !!(H(r, n) || H(o, n) || H(a, n));
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function H(e, n) {
|
|
69
69
|
return e.toLowerCase().includes(n.toLowerCase());
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
const [a, c] = A(e || ""), l = F(
|
|
71
|
+
function Qe({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
|
|
72
|
+
const [a, c] = A(e || ""), l = F(V(e ?? null) ?? ""), [i, u] = A(n);
|
|
73
73
|
he(() => {
|
|
74
74
|
c(""), l.current = "", u(n), o("");
|
|
75
75
|
});
|
|
76
76
|
const p = $(() => ee(a), [
|
|
77
77
|
a
|
|
78
78
|
]);
|
|
79
|
-
|
|
79
|
+
k(() => {
|
|
80
80
|
const m = e ?? "";
|
|
81
81
|
m !== l.current && (c(m), l.current = m);
|
|
82
82
|
}, [
|
|
83
83
|
e
|
|
84
|
-
]),
|
|
84
|
+
]), k(() => {
|
|
85
85
|
n && !i && u(n);
|
|
86
86
|
}, [
|
|
87
87
|
n,
|
|
88
88
|
i
|
|
89
|
-
]),
|
|
89
|
+
]), k(() => {
|
|
90
90
|
u(n ?? p);
|
|
91
91
|
}, [
|
|
92
92
|
p,
|
|
93
93
|
n
|
|
94
94
|
]);
|
|
95
|
-
const C =
|
|
95
|
+
const C = W((m) => {
|
|
96
96
|
if (c(m), !m) {
|
|
97
97
|
l.current = "", o(null);
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
100
|
const f = ee(m);
|
|
101
101
|
u((y) => {
|
|
102
|
-
const S = f || y || ((r == null ? void 0 : r.length) === 1 ? r[0] : void 0), N =
|
|
102
|
+
const S = f || y || ((r == null ? void 0 : r.length) === 1 ? r[0] : void 0), N = V(te(m, S));
|
|
103
103
|
return l.current = N ?? "", o(N), f || y;
|
|
104
104
|
});
|
|
105
105
|
}, [
|
|
106
106
|
r,
|
|
107
107
|
o
|
|
108
|
-
]), d =
|
|
108
|
+
]), d = W((m) => {
|
|
109
109
|
u(m), c((f) => {
|
|
110
|
-
const y =
|
|
110
|
+
const y = V(te(f, m));
|
|
111
111
|
return l.current = y ?? "", o(y), f;
|
|
112
112
|
});
|
|
113
113
|
}, [
|
|
@@ -146,12 +146,12 @@ const le = /* @__PURE__ */ ne(null), _ = () => {
|
|
|
146
146
|
});
|
|
147
147
|
}, s = ({ children: e }) => {
|
|
148
148
|
var L, v;
|
|
149
|
-
const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = w(), [i, u] = A(null), p = (v = (L = l == null ? void 0 : l.string) == null ? void 0 : L.phoneOptions) == null ? void 0 : v.allowedCountryCodes, C =
|
|
149
|
+
const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = w(), [i, u] = A(null), p = (v = (L = l == null ? void 0 : l.string) == null ? void 0 : L.phoneOptions) == null ? void 0 : v.allowedCountryCodes, C = Xe(), d = $(() => Ze(C, p), [
|
|
150
150
|
C,
|
|
151
151
|
p
|
|
152
152
|
]), m = $(() => d.map((j) => j.shortCountryCode), [
|
|
153
153
|
d
|
|
154
|
-
]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: S, handleCountryCodeChange: N } =
|
|
154
|
+
]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: S, handleCountryCodeChange: N } = Qe({
|
|
155
155
|
value: r,
|
|
156
156
|
defaultCountryCode: c,
|
|
157
157
|
allowedCountryCodes: m,
|
|
@@ -180,7 +180,7 @@ const le = /* @__PURE__ */ ne(null), _ = () => {
|
|
|
180
180
|
}));
|
|
181
181
|
}, K = ({ children: e, className: n }) => {
|
|
182
182
|
const { labelId: r } = re(), { hasError: o, disabled: a, readOnly: c } = w(), { t: l } = D(), { selectedCountryCode: i, countries: u } = _(), p = Ee(), C = i ? u.find((y) => y.shortCountryCode === i) : void 0, d = C && G(C.longCountryCode) || "", m = l("field.phone.country-code.aria-label"), f = C ? `${m}, ${C.countryName}, ${d}` : m;
|
|
183
|
-
return /* @__PURE__ */ t.createElement(
|
|
183
|
+
return /* @__PURE__ */ t.createElement(ke, {
|
|
184
184
|
isDisabled: a || c,
|
|
185
185
|
id: p,
|
|
186
186
|
"aria-label": f,
|
|
@@ -245,7 +245,7 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
245
245
|
}
|
|
246
246
|
}, e)))));
|
|
247
247
|
}, ie = ({ 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(
|
|
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
249
|
isForcedOpen: r === !0,
|
|
250
250
|
...n,
|
|
251
251
|
renderEmptyState: l ? () => l : void 0
|
|
@@ -262,7 +262,7 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
262
262
|
return c ? /* @__PURE__ */ t.createElement(Me, {
|
|
263
263
|
filter: (u, p, C) => {
|
|
264
264
|
const d = o.find((m) => m.shortCountryCode === C.key);
|
|
265
|
-
return !!d &&
|
|
265
|
+
return !!d && Je(d, p);
|
|
266
266
|
}
|
|
267
267
|
}, r ? I(c, {
|
|
268
268
|
autoFocus: !1
|
|
@@ -275,7 +275,7 @@ const me = ({ className: e, children: n, "aria-label": r, ...o }) => {
|
|
|
275
275
|
return /* @__PURE__ */ t.createElement(we, {
|
|
276
276
|
"aria-label": r,
|
|
277
277
|
autoFocus: a
|
|
278
|
-
}, /* @__PURE__ */ t.createElement(
|
|
278
|
+
}, /* @__PURE__ */ t.createElement(U, {
|
|
279
279
|
className: e
|
|
280
280
|
}, n));
|
|
281
281
|
}, ot = ({ className: e, placeholder: n }) => /* @__PURE__ */ t.createElement(se, {
|
|
@@ -367,7 +367,7 @@ const at = ({ className: e }) => {
|
|
|
367
367
|
const r = n;
|
|
368
368
|
return /* @__PURE__ */ t.createElement(Re, null, h(e, s.CountryButton), I(h(e, s.CountryOptions.Modal), r));
|
|
369
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 } = w(), d =
|
|
370
|
+
const r = F(null), o = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: p, onBlur: C } = w(), d = Ve(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
371
|
hasCountryOptions: N,
|
|
372
372
|
isHovered: P,
|
|
373
373
|
isFocusWithin: L
|
|
@@ -385,7 +385,7 @@ const at = ({ className: e }) => {
|
|
|
385
385
|
!((v = r.current) != null && v.contains(L)) && !((j = o.current) != null && j.contains(L)) && (a.current = !1, d());
|
|
386
386
|
}
|
|
387
387
|
};
|
|
388
|
-
return m.length === 1 ? /* @__PURE__ */ t.createElement(
|
|
388
|
+
return m.length === 1 ? /* @__PURE__ */ t.createElement(U, {
|
|
389
389
|
ref: r,
|
|
390
390
|
className: R,
|
|
391
391
|
isDisabled: l,
|
|
@@ -393,7 +393,7 @@ const at = ({ className: e }) => {
|
|
|
393
393
|
...M
|
|
394
394
|
}, u && /* @__PURE__ */ t.createElement(z, {
|
|
395
395
|
longCountryCode: m[0].longCountryCode
|
|
396
|
-
}), S) : /* @__PURE__ */ t.createElement(
|
|
396
|
+
}), S) : /* @__PURE__ */ t.createElement(U, {
|
|
397
397
|
ref: r,
|
|
398
398
|
className: R,
|
|
399
399
|
isDisabled: l,
|
|
@@ -453,10 +453,10 @@ const ut = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
453
453
|
}), vt = () => /* @__PURE__ */ t.createElement("span", {
|
|
454
454
|
className: E.chevron,
|
|
455
455
|
"aria-hidden": "true"
|
|
456
|
-
}, /* @__PURE__ */ t.createElement(Ke, null)),
|
|
457
|
-
const e = qe(Se, b.selectOptionWithoutFocusRing, E.option,
|
|
456
|
+
}, /* @__PURE__ */ t.createElement(Ke, null)), Xt = () => {
|
|
457
|
+
const e = qe(Se, b.selectOptionWithoutFocusRing, E.option, J), n = Q(Ie, [
|
|
458
458
|
E.control
|
|
459
|
-
]), r =
|
|
459
|
+
]), r = Q(Le, [
|
|
460
460
|
E.countrySearch
|
|
461
461
|
]), { t: o } = D(), { PortalContainer: a } = oe(), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
|
|
462
462
|
className: r,
|
|
@@ -464,7 +464,7 @@ const ut = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
464
464
|
}, /* @__PURE__ */ t.createElement(it, {
|
|
465
465
|
className: E.searchIcon
|
|
466
466
|
}), /* @__PURE__ */ t.createElement(s.CountryOptions.Search.Input, {
|
|
467
|
-
className: O(b.innerInput,
|
|
467
|
+
className: O(b.innerInput, J),
|
|
468
468
|
placeholder: o("field.phone.country-search-input.placeholder")
|
|
469
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
470
|
className: E.flag
|
|
@@ -488,14 +488,14 @@ const ut = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
488
488
|
}, /* @__PURE__ */ t.createElement(s.CountryDrawer, null, /* @__PURE__ */ t.createElement(s.CountryButton, {
|
|
489
489
|
className: O(E.countryButton, E.drawerButton)
|
|
490
490
|
}, i), /* @__PURE__ */ t.createElement(s.CountryOptions.Modal, {
|
|
491
|
-
className: O(
|
|
491
|
+
className: O(X, b.selectPopover, E.mobileDrawer),
|
|
492
492
|
overlayClassName: E.mobileOverlay,
|
|
493
493
|
portalContainer: a,
|
|
494
494
|
"aria-label": o("field.phone.country-code.aria-label")
|
|
495
495
|
}, c, l, u)), /* @__PURE__ */ t.createElement(s.CountryPopover, null, /* @__PURE__ */ t.createElement(s.CountryButton, {
|
|
496
496
|
className: O(E.countryButton, E.popoverButton)
|
|
497
497
|
}, i), /* @__PURE__ */ t.createElement(s.CountryOptions.Popover, {
|
|
498
|
-
className: O(
|
|
498
|
+
className: O(X, b.selectPopover, E.countryOptions),
|
|
499
499
|
placement: "bottom start",
|
|
500
500
|
offset: 0,
|
|
501
501
|
"aria-label": o("field.phone.country-code.aria-label")
|
|
@@ -503,10 +503,10 @@ const ut = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
503
503
|
className: O(b.innerInput, E.phoneNumber)
|
|
504
504
|
})), /* @__PURE__ */ t.createElement(s.Error, {
|
|
505
505
|
className: O(_e, b.error)
|
|
506
|
-
}, /* @__PURE__ */ t.createElement(
|
|
506
|
+
}, /* @__PURE__ */ t.createElement(We, null), /* @__PURE__ */ t.createElement(s.Error.Text, null)), /* @__PURE__ */ t.createElement(s.Description, {
|
|
507
507
|
className: O(Ne, b.description)
|
|
508
508
|
}, Pt));
|
|
509
509
|
};
|
|
510
510
|
export {
|
|
511
|
-
|
|
511
|
+
Xt as P
|
|
512
512
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import t, { useMemo as K, useCallback as v, useRef as x } from "react";
|
|
2
|
-
import { RicosViewer as
|
|
3
|
-
import
|
|
4
|
-
import { CheckboxField as
|
|
5
|
-
import {
|
|
2
|
+
import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
3
|
+
import y from "classnames";
|
|
4
|
+
import { CheckboxField as $, CheckboxButton as z, NumberField as J, Group as Y, Button as Q, Input as j } from "react-aria-components";
|
|
5
|
+
import { bM as U, bJ as W, bE as V, bX as Z, bO as ee, X as te, am as ne, a6 as ae, a7 as oe, aa as re, a9 as le, ab as se, M as ie, I as ce, a8 as ue } from "./form-BG5UjjLA.js";
|
|
6
6
|
import { f, a as b } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as me, g as pe } from "./field-label-headless-
|
|
7
|
+
import { L as me, g as pe } from "./field-label-headless-Bd00Hl2z.js";
|
|
8
8
|
import { f as de } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as Ee, E as _e } from "./field-error-headless-
|
|
10
|
-
import { F as
|
|
11
|
-
import { g as
|
|
9
|
+
import { D as Ee, E as _e } from "./field-error-headless-RTyrenpC.js";
|
|
10
|
+
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
11
|
+
import { g as Ie } from "./payment-field-utils-DobiK5Xh.js";
|
|
12
12
|
import { S as be } from "./selection-indicator-XQ8MYHUQ.js";
|
|
13
13
|
import { E as fe } from "./error-icon-hZxQ6DEy.js";
|
|
14
|
-
import { C as
|
|
14
|
+
import { C as Oe } from "./checkbox-indicator-module-classes-DOxE4UQg.js";
|
|
15
15
|
import { s as A } from "./field-rac.module-DcyJyi2B.js";
|
|
16
|
-
import { o as
|
|
17
|
-
import { u as
|
|
16
|
+
import { o as w } from "./options-rac.module-_THNq6Qq.js";
|
|
17
|
+
import { u as Le } from "./use-element-state-class-name-C8jFeDrq.js";
|
|
18
18
|
var Ce = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.crop = "CROP", e.fit = "FIT", e;
|
|
20
20
|
})({}), k = /* @__PURE__ */ (function(e) {
|
|
@@ -27,10 +27,10 @@ function Re({ maxItems: e, products: a } = {}) {
|
|
|
27
27
|
}) ? k.many : k.oneByOne;
|
|
28
28
|
}
|
|
29
29
|
const o = ({ children: e }) => {
|
|
30
|
-
var
|
|
31
|
-
const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: _, onBlur:
|
|
30
|
+
var D;
|
|
31
|
+
const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: _, onBlur: O, onFocus: s, hasError: u, validation: m, FieldLayout: p } = U(), { inputId: M, labelId: N, ariaDescribedBy: h } = W(), I = f(e, o.Label), g = f(e, o.Options), q = f(e, o.Description), L = f(e, o.Error), i = K(() => l || [], [
|
|
32
32
|
l
|
|
33
|
-
]), T = Re((
|
|
33
|
+
]), T = Re((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = v((S, R) => {
|
|
34
34
|
const d = i.filter((H) => H.productId !== S.productId), B = R ? [
|
|
35
35
|
...d,
|
|
36
36
|
S
|
|
@@ -42,56 +42,56 @@ const o = ({ children: e }) => {
|
|
|
42
42
|
]);
|
|
43
43
|
return /* @__PURE__ */ t.createElement(p, {
|
|
44
44
|
fieldId: a,
|
|
45
|
-
renderLabel: () =>
|
|
46
|
-
renderInput: () => /* @__PURE__ */ t.createElement(
|
|
45
|
+
renderLabel: () => I,
|
|
46
|
+
renderInput: () => /* @__PURE__ */ t.createElement(ye, {
|
|
47
47
|
id: M,
|
|
48
48
|
ariaLabelledBy: N,
|
|
49
49
|
ariaDescribedBy: h,
|
|
50
50
|
required: _,
|
|
51
|
-
onBlur:
|
|
51
|
+
onBlur: O,
|
|
52
52
|
onFocus: s
|
|
53
53
|
}, g ? b(g, {
|
|
54
54
|
allowMany: T,
|
|
55
55
|
productValues: i,
|
|
56
|
-
onProductChange:
|
|
56
|
+
onProductChange: F,
|
|
57
57
|
disabled: r,
|
|
58
58
|
readOnly: c,
|
|
59
59
|
hasError: u
|
|
60
60
|
}) : null),
|
|
61
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
61
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, q)
|
|
62
62
|
});
|
|
63
63
|
}, G = ({ children: e, className: a, ...l }) => {
|
|
64
|
-
const { allowMany: n, productValues: r, onProductChange: c, disabled: _, readOnly:
|
|
64
|
+
const { allowMany: n, productValues: r, onProductChange: c, disabled: _, readOnly: O, hasError: s } = l, { options: u, validation: m, imageResize: p } = U(), { currency: M } = V(), { t: N } = Z(), h = f(e, o.Option);
|
|
65
65
|
return /* @__PURE__ */ t.createElement("div", {
|
|
66
66
|
className: a
|
|
67
|
-
}, u == null ? void 0 : u.map((
|
|
68
|
-
var C, T,
|
|
69
|
-
const q = ((S = (
|
|
67
|
+
}, u == null ? void 0 : u.map((I, g) => {
|
|
68
|
+
var C, T, F, D, S;
|
|
69
|
+
const q = ((S = (D = (F = (T = (C = m == null ? void 0 : m.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : T.products) == null ? void 0 : F.find((R) => R.id === I.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0", L = Ie(N, M), i = r.find((R) => R.productId === I.value);
|
|
70
70
|
return b(h, {
|
|
71
|
-
key:
|
|
72
|
-
option:
|
|
71
|
+
key: I.id || I.value || I.label,
|
|
72
|
+
option: I,
|
|
73
73
|
price: q,
|
|
74
74
|
quantity: i == null ? void 0 : i.quantity,
|
|
75
75
|
isSelected: !!i,
|
|
76
76
|
allowMany: n,
|
|
77
77
|
onProductChange: c,
|
|
78
78
|
disabled: _,
|
|
79
|
-
readOnly:
|
|
79
|
+
readOnly: O,
|
|
80
80
|
hasError: s,
|
|
81
|
-
currencyAriaLabel:
|
|
81
|
+
currencyAriaLabel: L,
|
|
82
82
|
imageResize: p,
|
|
83
83
|
isFirst: g === 0
|
|
84
84
|
});
|
|
85
85
|
}));
|
|
86
86
|
}, E = ({ children: e, className: a, ...l }) => {
|
|
87
|
-
const { option: n, price: r, quantity: c = 0, isSelected: _, allowMany:
|
|
87
|
+
const { option: n, price: r, quantity: c = 0, isSelected: _, allowMany: O, onProductChange: s, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: M, imageResize: N, isFirst: h } = l, { id: I } = U(), g = x(null), q = x(null), L = f(e, E.Image), i = f(e, E.Label), C = f(e, E.Price), T = f(e, E.Input), F = f(e, E.Quantity);
|
|
88
88
|
ee(() => {
|
|
89
89
|
var d;
|
|
90
90
|
h && ((d = g.current ?? q.current) == null || d.focus({
|
|
91
91
|
preventScroll: !0
|
|
92
92
|
}));
|
|
93
|
-
},
|
|
94
|
-
const
|
|
93
|
+
}, I);
|
|
94
|
+
const D = v((d) => {
|
|
95
95
|
s({
|
|
96
96
|
productId: n.value,
|
|
97
97
|
price: r,
|
|
@@ -112,17 +112,17 @@ const o = ({ children: e }) => {
|
|
|
112
112
|
n.value,
|
|
113
113
|
r
|
|
114
114
|
]), R = `${n.label} ${M} ${r}`;
|
|
115
|
-
return
|
|
115
|
+
return O ? /* @__PURE__ */ t.createElement("div", {
|
|
116
116
|
className: a,
|
|
117
117
|
"data-hook": "product"
|
|
118
|
-
},
|
|
118
|
+
}, L ? b(L, {
|
|
119
119
|
option: n,
|
|
120
120
|
imageResize: N
|
|
121
121
|
}) : null, i ? b(i, {
|
|
122
122
|
label: n.label
|
|
123
123
|
}) : null, C ? b(C, {
|
|
124
124
|
price: r
|
|
125
|
-
}) : null,
|
|
125
|
+
}) : null, F ? b(F, {
|
|
126
126
|
quantity: c,
|
|
127
127
|
onQuantityChange: S,
|
|
128
128
|
disabled: u,
|
|
@@ -130,18 +130,18 @@ const o = ({ children: e }) => {
|
|
|
130
130
|
hasError: p,
|
|
131
131
|
ariaLabel: R,
|
|
132
132
|
inputRef: h ? q : void 0
|
|
133
|
-
}) : null) : /* @__PURE__ */ t.createElement(
|
|
133
|
+
}) : null) : /* @__PURE__ */ t.createElement($, {
|
|
134
134
|
isSelected: _,
|
|
135
|
-
onChange:
|
|
135
|
+
onChange: D,
|
|
136
136
|
isDisabled: u,
|
|
137
137
|
isReadOnly: m,
|
|
138
138
|
isInvalid: p,
|
|
139
139
|
"aria-label": R
|
|
140
|
-
}, /* @__PURE__ */ t.createElement(
|
|
140
|
+
}, /* @__PURE__ */ t.createElement(z, {
|
|
141
141
|
ref: g,
|
|
142
142
|
className: a,
|
|
143
143
|
"data-hook": "product"
|
|
144
|
-
}, ({ isHovered: d, isFocused: B }) => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
144
|
+
}, ({ isHovered: d, isFocused: B }) => /* @__PURE__ */ t.createElement(t.Fragment, null, L ? b(L, {
|
|
145
145
|
option: n,
|
|
146
146
|
imageResize: N
|
|
147
147
|
}) : null, i ? b(i, {
|
|
@@ -161,22 +161,22 @@ const o = ({ children: e }) => {
|
|
|
161
161
|
const c = n === Ce.fit, _ = pe(r, 96, 96, c ? "fit" : "fill");
|
|
162
162
|
if (!_)
|
|
163
163
|
return null;
|
|
164
|
-
const
|
|
164
|
+
const O = r.altText || l.label || "";
|
|
165
165
|
return /* @__PURE__ */ t.createElement("img", {
|
|
166
166
|
className: e,
|
|
167
167
|
src: _,
|
|
168
|
-
alt:
|
|
168
|
+
alt: O,
|
|
169
169
|
"data-fit": c ? "contain" : "cover",
|
|
170
170
|
"data-hook": "product-image"
|
|
171
171
|
});
|
|
172
|
-
},
|
|
172
|
+
}, Fe = ({ className: e, ...a }) => {
|
|
173
173
|
const { label: l } = a;
|
|
174
174
|
return /* @__PURE__ */ t.createElement("span", {
|
|
175
175
|
className: e,
|
|
176
176
|
"data-hook": "product-label"
|
|
177
177
|
}, l || "");
|
|
178
|
-
},
|
|
179
|
-
const { price: l } = a, { currency: n, regionalFormat: r } =
|
|
178
|
+
}, De = ({ className: e, ...a }) => {
|
|
179
|
+
const { price: l } = a, { currency: n, regionalFormat: r } = V(), c = de({
|
|
180
180
|
amount: l,
|
|
181
181
|
currency: n == null ? void 0 : n.code,
|
|
182
182
|
locale: r
|
|
@@ -186,7 +186,7 @@ const o = ({ children: e }) => {
|
|
|
186
186
|
"data-hook": "product-price"
|
|
187
187
|
}, c);
|
|
188
188
|
}, Se = ({ className: e, ...a }) => {
|
|
189
|
-
const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError: _, ariaLabel:
|
|
189
|
+
const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError: _, ariaLabel: O, inputRef: s } = a, u = v((p) => {
|
|
190
190
|
n(p < 0 ? 0 : p);
|
|
191
191
|
}, [
|
|
192
192
|
n
|
|
@@ -195,7 +195,7 @@ const o = ({ children: e }) => {
|
|
|
195
195
|
}, [
|
|
196
196
|
u
|
|
197
197
|
]);
|
|
198
|
-
return /* @__PURE__ */ t.createElement(
|
|
198
|
+
return /* @__PURE__ */ t.createElement(J, {
|
|
199
199
|
value: l,
|
|
200
200
|
onChange: u,
|
|
201
201
|
minValue: 0,
|
|
@@ -203,22 +203,22 @@ const o = ({ children: e }) => {
|
|
|
203
203
|
isDisabled: r,
|
|
204
204
|
isReadOnly: c,
|
|
205
205
|
isInvalid: _,
|
|
206
|
-
"aria-label":
|
|
206
|
+
"aria-label": O,
|
|
207
207
|
className: e,
|
|
208
208
|
"data-hook": "product-quantity"
|
|
209
|
-
}, /* @__PURE__ */ t.createElement(
|
|
209
|
+
}, /* @__PURE__ */ t.createElement(Y, {
|
|
210
210
|
onKeyDown: m
|
|
211
211
|
}, /* @__PURE__ */ t.createElement(Q, {
|
|
212
212
|
slot: "decrement"
|
|
213
|
-
}, "-"), /* @__PURE__ */ t.createElement(
|
|
213
|
+
}, "-"), /* @__PURE__ */ t.createElement(j, {
|
|
214
214
|
ref: s
|
|
215
215
|
}), /* @__PURE__ */ t.createElement(Q, {
|
|
216
216
|
slot: "increment"
|
|
217
217
|
}, "+")));
|
|
218
218
|
};
|
|
219
219
|
E.Image = ge;
|
|
220
|
-
E.Label =
|
|
221
|
-
E.Price =
|
|
220
|
+
E.Label = Fe;
|
|
221
|
+
E.Price = De;
|
|
222
222
|
E.Input = be;
|
|
223
223
|
E.Quantity = Se;
|
|
224
224
|
G.Option = E;
|
|
@@ -235,36 +235,36 @@ const Pe = "_options_110dq_1", Ne = "_option_110dq_1", he = "_optionInput_110dq_
|
|
|
235
235
|
optionLabel: Te,
|
|
236
236
|
optionPrice: Ae,
|
|
237
237
|
quantity: Me
|
|
238
|
-
}, ve = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(
|
|
238
|
+
}, ve = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(X, {
|
|
239
239
|
content: e,
|
|
240
240
|
locale: a
|
|
241
241
|
}), ke = () => {
|
|
242
|
-
const e =
|
|
242
|
+
const e = Le({
|
|
243
243
|
globalClasses: ue,
|
|
244
|
-
moduleClasses:
|
|
244
|
+
moduleClasses: Oe
|
|
245
245
|
});
|
|
246
246
|
return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
247
|
-
className:
|
|
247
|
+
className: y(te, A.label)
|
|
248
248
|
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
249
|
-
className:
|
|
249
|
+
className: y(ne, A.requiredMark)
|
|
250
250
|
})), /* @__PURE__ */ t.createElement(o.Options, {
|
|
251
|
-
className:
|
|
251
|
+
className: y(ae, w.options, P.options)
|
|
252
252
|
}, /* @__PURE__ */ t.createElement(o.Option, {
|
|
253
|
-
className:
|
|
253
|
+
className: y(A.checkbox, P.option)
|
|
254
254
|
}, /* @__PURE__ */ t.createElement(o.Option.Image, {
|
|
255
|
-
className:
|
|
255
|
+
className: y(oe, P.optionImage)
|
|
256
256
|
}), /* @__PURE__ */ t.createElement(o.Option.Label, {
|
|
257
|
-
className:
|
|
257
|
+
className: y(re, w.optionLabel, P.optionLabel)
|
|
258
258
|
}), /* @__PURE__ */ t.createElement(o.Option.Price, {
|
|
259
|
-
className:
|
|
259
|
+
className: y(le, P.optionPrice)
|
|
260
260
|
}), /* @__PURE__ */ t.createElement(o.Option.Input, {
|
|
261
|
-
className: (a) =>
|
|
261
|
+
className: (a) => y(e(a), P.optionInput)
|
|
262
262
|
}), /* @__PURE__ */ t.createElement(o.Option.Quantity, {
|
|
263
|
-
className:
|
|
263
|
+
className: y(se, A.inputGroup, P.quantity)
|
|
264
264
|
}))), /* @__PURE__ */ t.createElement(o.Error, {
|
|
265
|
-
className:
|
|
265
|
+
className: y(ie, A.error)
|
|
266
266
|
}, /* @__PURE__ */ t.createElement(fe, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
267
|
-
className:
|
|
267
|
+
className: y(ce, A.description)
|
|
268
268
|
}, ve));
|
|
269
269
|
}, et = () => /* @__PURE__ */ t.createElement(ke, null);
|
|
270
270
|
export {
|