@wix/form-elements 1.107.0 → 1.109.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-D2F4vgf1.js → appointment-rac-C9-XwsPI.js} +295 -296
- package/dist/component/{bookings-address-rac-_5S8J8_i.js → bookings-address-rac-jrrCPWjw.js} +1 -1
- package/dist/component/{bookings-email-rac-6vmDR9nS.js → bookings-email-rac-J9-RMEbf.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DtTJ4T2K.js → bookings-first-name-rac-CH7-6JmA.js} +1 -1
- package/dist/component/{bookings-header-rac-B3dsEwzR.js → bookings-header-rac-C2JV-ciN.js} +1 -1
- package/dist/component/{bookings-last-name-rac-B3idkbi8.js → bookings-last-name-rac-0a9CwiaV.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CrRBcQwT.js → bookings-login-bar-rac-4Mb7MQYe.js} +21 -22
- package/dist/component/{bookings-phone-rac-BE0yWNnj.js → bookings-phone-rac-vYx5r5jn.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CYo1l0-6.js → bookings-rich-text-rac-CWg1FgUp.js} +1 -1
- package/dist/component/{checkbox-field-rac-boTtXVEt.js → checkbox-field-rac-Dwx1leKA.js} +27 -28
- package/dist/component/{checkbox-group-field-headless-DnkUvDm8.js → checkbox-group-field-headless-AFWgXzx_.js} +41 -41
- package/dist/component/{checkbox-group-field-rac-DrDTgHMg.js → checkbox-group-field-rac-CO8kmWJp.js} +6 -6
- package/dist/component/{checkbox-group-rac-v3ozUBpo.js → checkbox-group-rac-_79HsFF4.js} +1 -1
- package/dist/component/{checkbox-rac-YSLE-RnG.js → checkbox-rac-B_tbMfjo.js} +1 -1
- package/dist/component/{contacts-address-rac-C653yaHZ.js → contacts-address-rac-SJ5Tvzd0.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BeAQ6shx.js → contacts-birthdate-rac-BU1L3sbW.js} +1 -1
- package/dist/component/{contacts-company-rac-BglKOoTG.js → contacts-company-rac-Y4B8KhDa.js} +1 -1
- package/dist/component/{contacts-email-rac-D6m7ynfc.js → contacts-email-rac-CQW84o7C.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Dgxn0tUJ.js → contacts-first-name-rac-Dtai-wtH.js} +1 -1
- package/dist/component/{contacts-last-name-rac-1UyIuRKH.js → contacts-last-name-rac--ixuu3ri.js} +1 -1
- package/dist/component/{contacts-phone-rac-BQ77BlW4.js → contacts-phone-rac-HOHfSvT-.js} +1 -1
- package/dist/component/{contacts-position-rac-BUDUv7lv.js → contacts-position-rac-BPMkh6yf.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DdtA0qKW.js → contacts-subscribe-rac-D0_RMwJb.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-WUaKcNl0.js → contacts-tax-id-rac-CZJmMiVf.js} +1 -1
- package/dist/component/{date-availability-XjBFq8jt.js → date-availability-C4dDHvuc.js} +1 -1
- package/dist/component/{date-input-field-rac-aY2zuuKs.js → date-input-field-rac-8oERZcqh.js} +79 -80
- package/dist/component/{date-input-rac-DRiP2_97.js → date-input-rac-CYRojmW6.js} +1 -1
- package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CIspU7No.js} +87 -88
- package/dist/component/{date-picker-rac-DHHUh8vn.js → date-picker-rac-D0Y0zf2J.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DP_StuLr.js → date-time-input-field-rac-0daWK65I.js} +73 -74
- package/dist/component/{date-time-input-rac-B11KIxsf.js → date-time-input-rac-BemKPk1j.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BpFNn56W.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BIlAqEvV.js → dext-checkbox-rac-DOISgubJ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CHBXNrZi.js → dext-date-picker-rac-CNGhFg_g.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BYtliKry.js → dext-date-time-input-rac-BuUIvJRr.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C2VPSFV5.js → dext-dropdown-rac-DtND-Dbo.js} +1 -1
- package/dist/component/{dext-email-rac-Fnb0Ggcs.js → dext-email-rac-CmjLFOi8.js} +1 -1
- package/dist/component/{dext-number-input-rac-DopfSyFi.js → dext-number-input-rac-DHTNg1dh.js} +1 -1
- package/dist/component/{dext-phone-rac-Rn4i_2rc.js → dext-phone-rac-BrrU5qH_.js} +1 -1
- package/dist/component/{dext-radio-group-rac-bNaskJpK.js → dext-radio-group-rac-CD3MGfAM.js} +4 -4
- package/dist/component/{dext-rating-input-rac-DL6ZZd7d.js → dext-rating-input-rac-BETGJZmt.js} +1 -1
- package/dist/component/{dext-tags-rac-TsUPoImO.js → dext-tags-rac-Coo9jN-T.js} +4 -4
- package/dist/component/{dext-text-area-rac-BIuY7LTd.js → dext-text-area-rac-CNWjqhUT.js} +1 -1
- package/dist/component/{dext-text-input-rac-CSYPW0Qi.js → dext-text-input-rac-CCWyDexv.js} +1 -1
- package/dist/component/{dext-url-input-rac-_g0lqGfW.js → dext-url-input-rac-Dtakkgmk.js} +1 -1
- package/dist/component/{donation-rac-BYKFtsyR.js → donation-rac-BboGm_k_.js} +101 -102
- package/dist/component/{dropdown-field-headless-CBaqlNZi.js → dropdown-field-headless-BTMJGUwY.js} +16 -16
- package/dist/component/{dropdown-field-rac-CCAGSMm3.js → dropdown-field-rac-CDRV8ckB.js} +5 -5
- package/dist/component/{dropdown-rac-C_EqUsZ1.js → dropdown-rac-kEuU2pXW.js} +1 -1
- package/dist/component/{ecom-address-rac-Bw9eH0iF.js → ecom-address-rac-BgKL9ElH.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B5PVOO2a.js → ecom-subscription-checkbox-rac-CDhJsNPD.js} +6 -6
- package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DdOd86NX.js} +54 -55
- package/dist/component/{events-repeater-rac--4OnUxWE.js → events-repeater-rac-_VJ30dpB.js} +62 -63
- package/dist/component/{events-rsvp-rac-CczCoo3T.js → events-rsvp-rac-DA-261bq.js} +5 -5
- package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-CovyN0GI.js} +8 -8
- package/dist/component/{field-label-headless-Du4ckIVy.js → field-label-headless-DVvX2QaH.js} +11 -11
- package/dist/component/file-upload-rac-bhEPUJPs.js +561 -0
- package/dist/component/fixed-payment-rac-DmI6MeKc.js +61 -0
- package/dist/component/{form-DQauhsho.js → form-BTDgyr54.js} +3430 -3244
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +3 -3
- package/dist/component/header-field-rac-C0rUjmo0.js +24 -0
- package/dist/component/{header-rac-CR9T3Pnu.js → header-rac-DRMO22PV.js} +1 -1
- package/dist/component/{image-choice-rac-DJ_8v467.js → image-choice-rac-CQDQ7AlD.js} +32 -33
- package/dist/component/{index-CcUTIUWM.js → index-B9QlosT1.js} +12 -12
- package/dist/component/{index-BB7d_9Dv.js → index-CNWT9t6j.js} +66 -66
- package/dist/component/{isObjectLike-xvPa_08X.js → isObjectLike-c0td2WCR.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CyaFOloE.js → multiline-address-field-rac-D8bVxRsD.js} +124 -125
- package/dist/component/{multiline-address-rac-CaHGUN_f.js → multiline-address-rac-g-6RB7o8.js} +1 -1
- package/dist/component/number-input-field-rac-BaOwQ5Ya.js +92 -0
- package/dist/component/{number-input-rac-DMKX6nhk.js → number-input-rac-BXv8-Pnj.js} +1 -1
- package/dist/component/{password-rac-0RUXPAn6.js → password-rac-BB9XeSSZ.js} +36 -37
- package/dist/component/{payment-input-rac-CHSZ3-Lt.js → payment-input-rac-DwnSV9rM.js} +41 -42
- package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-CC3C4ToW.js} +56 -57
- package/dist/component/{phone-rac-BLRnAPXP.js → phone-rac-DpNhSaE0.js} +1 -1
- package/dist/component/{product-list-rac-BkF5tDwt.js → product-list-rac-BAESk3B6.js} +74 -75
- package/dist/component/{quiz-radio-group-rac-32cCMTUS.js → quiz-radio-group-rac-PS6AZr63.js} +1 -1
- package/dist/component/{radio-button-module-classes-IOulhuSH.js → radio-button-module-classes-CXcn5unY.js} +30 -30
- package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-pt8xbDfS.js} +6 -6
- package/dist/component/{radio-group-rac-BiW-9Abj.js → radio-group-rac-DkzkM6N_.js} +1 -1
- package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-DDHBkR4x.js} +43 -44
- package/dist/component/{rating-input-rac-BpwlNvzQ.js → rating-input-rac-CcsDmLus.js} +1 -1
- package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-B2vsO6fj.js} +4 -4
- package/dist/component/rich-text-field-rac-CvKht2eC.js +21 -0
- package/dist/component/{rich-text-rac-VfeZxS27.js → rich-text-rac-CRpSffQB.js} +1 -1
- package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-BOpdXNjG.js} +36 -37
- package/dist/component/{services-multi-choice-rac-CCqdF_7P.js → services-multi-choice-rac-t0wdSt_T.js} +20 -21
- package/dist/component/{signature-rac-DOyMo3u0.js → signature-rac-2LsIYYIX.js} +141 -142
- package/dist/component/{submit-button-rac-C2uA5DeE.js → submit-button-rac-BbE8dS35.js} +26 -27
- package/dist/component/{tags-field-rac-C_uIw2by.js → tags-field-rac-BnsBxReU.js} +44 -45
- package/dist/component/{tags-rac-1pQ-fpe_.js → tags-rac-BFH4RINA.js} +1 -1
- package/dist/component/{text-area-field-rac-DqlOkm7e.js → text-area-field-rac-Ag7_gniM.js} +28 -29
- package/dist/component/{text-area-rac-DPdkrFcH.js → text-area-rac-ByUX0p2O.js} +1 -1
- package/dist/component/{text-input-field-rac-CmXm6r1w.js → text-input-field-rac-D3MZ8teu.js} +3 -3
- package/dist/component/{text-input-headless-DD__2DFf.js → text-input-headless-CwONErsY.js} +12 -12
- package/dist/component/{text-input-rac-DRHyQEH7.js → text-input-rac-DLXdAhkK.js} +1 -1
- package/dist/component/{time-input-rac-BJPIymQY.js → time-input-rac-Bs55lTON.js} +33 -34
- package/dist/component/url-input-field-rac-FG-bCh-E.js +74 -0
- package/dist/component/{url-input-rac-C0ChQUzq.js → url-input-rac-BOKuCMTe.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-DjV7FW5y.js +21 -0
- package/dist/component/{use-element-state-class-name-BatTc2bw.js → use-element-state-class-name-DB1AzkvF.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-B0jiPTmS.js → use-is-forced-open-dropdown-ifUIpuwL.js} +7 -7
- package/dist/component/{use-service-options-base-oeE7xszw.js → use-service-options-base-B11cq0HH.js} +7 -7
- package/dist/component/use-text-input-class-name-va1PzWFg.js +23 -0
- package/dist/form.d.ts +21 -1
- package/package.json +2 -2
- package/dist/component/file-upload-rac-DbdkUbWM.js +0 -484
- package/dist/component/fixed-payment-rac-f9-01iDN.js +0 -62
- package/dist/component/form-element-classes-bLFmhsKw.js +0 -137
- package/dist/component/header-field-rac-DamDk5BR.js +0 -25
- package/dist/component/number-input-field-rac-BuYUzDWV.js +0 -93
- package/dist/component/rich-text-field-rac-C_qE7Ykg.js +0 -22
- package/dist/component/url-input-field-rac-CFDYkZ6I.js +0 -75
- package/dist/component/use-dropdown-option-class-name-3L5ZmNLK.js +0 -21
- package/dist/component/use-text-input-class-name-LQ5S-NLh.js +0 -24
package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-CC3C4ToW.js}
RENAMED
|
@@ -1,33 +1,32 @@
|
|
|
1
1
|
import { RicosViewer as Oe } from "@wix/ricos/viewer";
|
|
2
2
|
import O from "classnames";
|
|
3
|
-
import t, { useMemo as x, useState as B, useRef as v, useEffect as U, useCallback as oe, createContext as le, useContext as
|
|
4
|
-
import {
|
|
5
|
-
import { UNSAFE_PortalProvider as
|
|
6
|
-
import { Dialog as me, OverlayTriggerStateContext as
|
|
3
|
+
import t, { useMemo as x, useState as B, useRef as v, useEffect as U, useCallback as oe, createContext as le, useContext as K } from "react";
|
|
4
|
+
import { aU as _e, bj as P, b1 as ue, bi as Ne, b9 as M, b6 as ie, bb as Se, I as Le, U as Ie, t as Fe, H as ve, K as Pe, v as De, p as Re } from "./form-BTDgyr54.js";
|
|
5
|
+
import { UNSAFE_PortalProvider as xe } from "react-aria";
|
|
6
|
+
import { Dialog as me, OverlayTriggerStateContext as Be, ModalOverlay as Me, Modal as qe, SearchField as Ae, Group as G, ListBoxItem as Te, DialogTrigger as $e, Select as je, Input as Ce, ListBox as we, Autocomplete as Ue } from "react-aria-components";
|
|
7
7
|
import { f as h, a as H } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as
|
|
9
|
-
import { L as
|
|
10
|
-
import { N as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import de, { AsYouType as
|
|
8
|
+
import { D as ke, E as Ve } from "./field-error-headless-CovyN0GI.js";
|
|
9
|
+
import { L as Ge } from "./field-label-headless-DVvX2QaH.js";
|
|
10
|
+
import { N as He, S as Ke } from "./non-modal-popover-DtIMXHbe.js";
|
|
11
|
+
import { u as Ye } from "./use-invoke-callback-UH73A_J3.js";
|
|
12
|
+
import { u as ze } from "./use-is-forced-open-dropdown-ifUIpuwL.js";
|
|
13
|
+
import de, { AsYouType as We, isValidPhoneNumber as Ze, isSupportedCountry as Qe } from "libphonenumber-js";
|
|
14
14
|
import "libphonenumber-js/metadata.min.json";
|
|
15
15
|
import { C as re } from "./calling-country-codes-PyWuOTmF.js";
|
|
16
|
-
import { C as
|
|
17
|
-
import { E as
|
|
16
|
+
import { C as Je } from "./chevron-down-icon-CcpVm6B-.js";
|
|
17
|
+
import { E as Xe } from "./error-icon-hZxQ6DEy.js";
|
|
18
18
|
import { H as ae } from "./custom-focus-class-_483Pkwp.js";
|
|
19
19
|
import { s as b } from "./field-rac.module-B4l_0KRU.js";
|
|
20
|
-
import {
|
|
21
|
-
import { u as
|
|
22
|
-
import { u as tt } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
20
|
+
import { u as et } from "./use-dropdown-option-class-name-DjV7FW5y.js";
|
|
21
|
+
import { u as tt } from "./use-text-input-class-name-va1PzWFg.js";
|
|
23
22
|
function se(e) {
|
|
24
23
|
const n = e ? de(e) : void 0, r = n == null ? void 0 : n.country;
|
|
25
24
|
if (r)
|
|
26
25
|
return r;
|
|
27
|
-
const o = new
|
|
26
|
+
const o = new We();
|
|
28
27
|
return e && o.input(e), o.getCountry();
|
|
29
28
|
}
|
|
30
|
-
function
|
|
29
|
+
function Y(e) {
|
|
31
30
|
var n;
|
|
32
31
|
return e && ((n = _e.getCountryByKey(e)) == null ? void 0 : n.dialCode);
|
|
33
32
|
}
|
|
@@ -38,7 +37,7 @@ function ce(e, n) {
|
|
|
38
37
|
if (e && n)
|
|
39
38
|
try {
|
|
40
39
|
const r = de(e, n), o = r == null ? void 0 : r.formatInternational();
|
|
41
|
-
if (o &&
|
|
40
|
+
if (o && Ze(o))
|
|
42
41
|
return o.replace(/\s+/g, "");
|
|
43
42
|
} catch {
|
|
44
43
|
}
|
|
@@ -47,8 +46,8 @@ function ce(e, n) {
|
|
|
47
46
|
function nt() {
|
|
48
47
|
const { t: e } = P(), { language: n } = ue();
|
|
49
48
|
return x(() => Object.keys(re).reduce((o, a) => {
|
|
50
|
-
const l = re[a], s =
|
|
51
|
-
return s &&
|
|
49
|
+
const l = re[a], s = Y(l), i = e(`locale-dataset.countries.${l.toUpperCase()}`);
|
|
50
|
+
return s && Qe(a) && o.push({
|
|
52
51
|
countryName: i,
|
|
53
52
|
longCountryCode: l,
|
|
54
53
|
shortCountryCode: a,
|
|
@@ -122,12 +121,12 @@ function at({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
|
|
|
122
121
|
};
|
|
123
122
|
}
|
|
124
123
|
const pe = /* @__PURE__ */ le(null), _ = () => {
|
|
125
|
-
const e =
|
|
124
|
+
const e = K(pe);
|
|
126
125
|
if (!e)
|
|
127
126
|
throw new Error("Phone input components must be used within PhoneInput component");
|
|
128
127
|
return e;
|
|
129
|
-
}, ye = /* @__PURE__ */ le(null),
|
|
130
|
-
const e =
|
|
128
|
+
}, ye = /* @__PURE__ */ le(null), z = () => {
|
|
129
|
+
const e = K(ye);
|
|
131
130
|
if (!e)
|
|
132
131
|
throw new Error("Option sub-components must be used within Option component");
|
|
133
132
|
return e;
|
|
@@ -180,8 +179,8 @@ const pe = /* @__PURE__ */ le(null), _ = () => {
|
|
|
180
179
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, $, L)
|
|
181
180
|
}));
|
|
182
181
|
}, Z = ({ children: e, className: n }) => {
|
|
183
|
-
const { inputId: r, labelId: o } = ie(), { hasError: a, disabled: l, readOnly: s } = M(), { t: i } = P(), { selectedCountryCode: u, countries: m } = _(), p = `${r}-country`, C = u ? m.find((N) => N.shortCountryCode === u) : void 0, d = C &&
|
|
184
|
-
return /* @__PURE__ */ t.createElement(
|
|
182
|
+
const { inputId: r, labelId: o } = ie(), { hasError: a, disabled: l, readOnly: s } = M(), { t: i } = P(), { selectedCountryCode: u, countries: m } = _(), p = `${r}-country`, C = u ? m.find((N) => N.shortCountryCode === u) : void 0, d = C && Y(C.longCountryCode) || "", E = i("field.phone.country-code.aria-label"), y = C ? `${E}, ${C.countryName}, ${d}` : E;
|
|
183
|
+
return /* @__PURE__ */ t.createElement(Ke, {
|
|
185
184
|
isDisabled: l || s,
|
|
186
185
|
id: p,
|
|
187
186
|
"aria-label": y,
|
|
@@ -207,9 +206,9 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
207
206
|
const { triggerRef: s, optionsRef: i, isForcedOpen: u } = l, { popoverContainer: m } = _(), p = h(e, g.Search), C = /* @__PURE__ */ t.createElement(Ee, {
|
|
208
207
|
isForcedOpen: u
|
|
209
208
|
}, e);
|
|
210
|
-
return /* @__PURE__ */ t.createElement(
|
|
209
|
+
return /* @__PURE__ */ t.createElement(xe, {
|
|
211
210
|
getContainer: () => m
|
|
212
|
-
}, /* @__PURE__ */ t.createElement(
|
|
211
|
+
}, /* @__PURE__ */ t.createElement(He, {
|
|
213
212
|
ref: i,
|
|
214
213
|
triggerRef: s,
|
|
215
214
|
className: n,
|
|
@@ -220,11 +219,11 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
220
219
|
"aria-label": r
|
|
221
220
|
}, C) : C));
|
|
222
221
|
}, lt = ({ children: e, className: n, overlayClassName: r, "aria-label": o, portalContainer: a = t.Fragment, ...l }) => {
|
|
223
|
-
const { optionsRef: s } = l, { selectedCountryCode: i, handleCountryCodeChange: u } = _(), m =
|
|
224
|
-
return /* @__PURE__ */ t.createElement(
|
|
222
|
+
const { optionsRef: s } = l, { selectedCountryCode: i, handleCountryCodeChange: u } = _(), m = K(Be);
|
|
223
|
+
return /* @__PURE__ */ t.createElement(Me, {
|
|
225
224
|
className: r,
|
|
226
225
|
isDismissable: !0
|
|
227
|
-
}, /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(
|
|
226
|
+
}, /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(qe, {
|
|
228
227
|
ref: s,
|
|
229
228
|
className: n
|
|
230
229
|
}, /* @__PURE__ */ t.createElement(me, {
|
|
@@ -242,11 +241,11 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
242
241
|
}
|
|
243
242
|
}, e)))));
|
|
244
243
|
}, Ee = ({ children: e, listBoxProps: n, isForcedOpen: r }) => {
|
|
245
|
-
const { countries: o } = _(), a = h(e, g.Option), l = h(e, g.Search), s = h(e, g.EmptyState), i = /* @__PURE__ */ t.createElement(
|
|
244
|
+
const { countries: o } = _(), a = h(e, g.Option), l = h(e, g.Search), s = h(e, g.EmptyState), i = /* @__PURE__ */ t.createElement(we, {
|
|
246
245
|
...n,
|
|
247
246
|
renderEmptyState: s ? () => s : void 0
|
|
248
247
|
}, o.map((u) => {
|
|
249
|
-
const m =
|
|
248
|
+
const m = Y(u.longCountryCode) || "";
|
|
250
249
|
return H(a, {
|
|
251
250
|
key: u.shortCountryCode,
|
|
252
251
|
countryCode: u.shortCountryCode,
|
|
@@ -255,7 +254,7 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
255
254
|
longCountryCode: u.longCountryCode
|
|
256
255
|
});
|
|
257
256
|
}));
|
|
258
|
-
return l ? /* @__PURE__ */ t.createElement(
|
|
257
|
+
return l ? /* @__PURE__ */ t.createElement(Ue, {
|
|
259
258
|
filter: (u, m, p) => {
|
|
260
259
|
const C = o.find((d) => d.shortCountryCode === p.key);
|
|
261
260
|
return !!C && rt(C, m);
|
|
@@ -268,7 +267,7 @@ g.Popover = g;
|
|
|
268
267
|
g.Modal = lt;
|
|
269
268
|
const fe = ({ className: e, children: n, "aria-label": r, ...o }) => {
|
|
270
269
|
const { autoFocus: a = !0 } = o;
|
|
271
|
-
return /* @__PURE__ */ t.createElement(
|
|
270
|
+
return /* @__PURE__ */ t.createElement(Ae, {
|
|
272
271
|
"aria-label": r,
|
|
273
272
|
autoFocus: a
|
|
274
273
|
}, /* @__PURE__ */ t.createElement(G, {
|
|
@@ -291,7 +290,7 @@ const q = ({ children: e, className: n, ...r }) => {
|
|
|
291
290
|
countryName: l,
|
|
292
291
|
longCountryCode: s
|
|
293
292
|
}, u = e || /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(he, null), /* @__PURE__ */ t.createElement(ge, null), /* @__PURE__ */ t.createElement(be, null));
|
|
294
|
-
return /* @__PURE__ */ t.createElement(
|
|
293
|
+
return /* @__PURE__ */ t.createElement(Te, {
|
|
295
294
|
className: n,
|
|
296
295
|
id: o,
|
|
297
296
|
textValue: `${l} ${a}`
|
|
@@ -299,18 +298,18 @@ const q = ({ children: e, className: n, ...r }) => {
|
|
|
299
298
|
value: i
|
|
300
299
|
}, u));
|
|
301
300
|
}, he = ({ className: e }) => {
|
|
302
|
-
const { longCountryCode: n } =
|
|
301
|
+
const { longCountryCode: n } = z();
|
|
303
302
|
return /* @__PURE__ */ t.createElement(W, {
|
|
304
303
|
className: e,
|
|
305
304
|
longCountryCode: n
|
|
306
305
|
});
|
|
307
306
|
}, ge = ({ className: e }) => {
|
|
308
|
-
const { countryName: n } =
|
|
307
|
+
const { countryName: n } = z();
|
|
309
308
|
return /* @__PURE__ */ t.createElement("span", {
|
|
310
309
|
className: e
|
|
311
310
|
}, n);
|
|
312
311
|
}, be = ({ className: e }) => {
|
|
313
|
-
const { dialingCode: n } =
|
|
312
|
+
const { dialingCode: n } = z();
|
|
314
313
|
return /* @__PURE__ */ t.createElement("span", {
|
|
315
314
|
className: e
|
|
316
315
|
}, n);
|
|
@@ -342,9 +341,9 @@ const mt = ({ className: e }) => {
|
|
|
342
341
|
className: e
|
|
343
342
|
});
|
|
344
343
|
}, Ct = ({ children: e, className: n }) => {
|
|
345
|
-
const r = v(null), o = v(null), a = v(!1), { id: l, disabled: s, readOnly: i, required: u, hasError: m, showFlag: p, onFocus: C, onBlur: d } = M(), [E, y] = B(!1), N =
|
|
344
|
+
const r = v(null), o = v(null), a = v(!1), { id: l, disabled: s, readOnly: i, required: u, hasError: m, showFlag: p, onFocus: C, onBlur: d } = M(), [E, y] = B(!1), N = Ye(d), { t: S } = P(), { selectedCountryCode: A, handleCountryCodeChange: T, countries: L } = _(), $ = h(e, c.CountryButton), I = h(e, c.CountryOptions.Modal), D = I ?? h(e, c.CountryOptions.Popover), F = h(e, c.PhoneNumber), R = L.length > 1, j = ze(l) && !I && R, Q = typeof n == "function" ? n({
|
|
346
345
|
hasCountryOptions: R
|
|
347
|
-
}) : n,
|
|
346
|
+
}) : n, J = {
|
|
348
347
|
onFocus: () => {
|
|
349
348
|
a.current || (a.current = !0, C == null || C());
|
|
350
349
|
},
|
|
@@ -357,10 +356,10 @@ const mt = ({ className: e }) => {
|
|
|
357
356
|
if (L.length === 1)
|
|
358
357
|
return /* @__PURE__ */ t.createElement(G, {
|
|
359
358
|
ref: r,
|
|
360
|
-
className:
|
|
359
|
+
className: Q,
|
|
361
360
|
isDisabled: s,
|
|
362
361
|
isInvalid: m,
|
|
363
|
-
...
|
|
362
|
+
...J
|
|
364
363
|
}, p && /* @__PURE__ */ t.createElement(W, {
|
|
365
364
|
longCountryCode: L[0].longCountryCode
|
|
366
365
|
}), F);
|
|
@@ -371,11 +370,11 @@ const mt = ({ className: e }) => {
|
|
|
371
370
|
}));
|
|
372
371
|
return /* @__PURE__ */ t.createElement(G, {
|
|
373
372
|
ref: r,
|
|
374
|
-
className:
|
|
373
|
+
className: Q,
|
|
375
374
|
isDisabled: s,
|
|
376
375
|
isInvalid: m,
|
|
377
|
-
...
|
|
378
|
-
}, I ? /* @__PURE__ */ t.createElement(
|
|
376
|
+
...J
|
|
377
|
+
}, I ? /* @__PURE__ */ t.createElement($e, null, X) : /* @__PURE__ */ t.createElement(je, {
|
|
379
378
|
"aria-label": S("field.phone.country-code.aria-label"),
|
|
380
379
|
value: A ?? null,
|
|
381
380
|
onChange: (w) => T(w),
|
|
@@ -387,13 +386,13 @@ const mt = ({ className: e }) => {
|
|
|
387
386
|
onOpenChange: j ? void 0 : y
|
|
388
387
|
}, X), F);
|
|
389
388
|
};
|
|
390
|
-
c.Label =
|
|
389
|
+
c.Label = Ge;
|
|
391
390
|
c.Control = Ct;
|
|
392
391
|
c.CountryButton = Z;
|
|
393
392
|
c.CountryOptions = g;
|
|
394
393
|
c.PhoneNumber = mt;
|
|
395
|
-
c.Description =
|
|
396
|
-
c.Error =
|
|
394
|
+
c.Description = ke;
|
|
395
|
+
c.Error = Ve;
|
|
397
396
|
const dt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
398
397
|
width: 24,
|
|
399
398
|
height: 24,
|
|
@@ -435,7 +434,7 @@ const dt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
435
434
|
}), Dt = () => /* @__PURE__ */ t.createElement("span", {
|
|
436
435
|
className: f.chevron,
|
|
437
436
|
"aria-hidden": "true"
|
|
438
|
-
}, /* @__PURE__ */ t.createElement(
|
|
437
|
+
}, /* @__PURE__ */ t.createElement(Je, null)), Jt = () => {
|
|
439
438
|
const e = et(b.selectOptionWithoutFocusRing, f.option, ae), n = tt(f.countrySearch), { t: r } = P(), { isMobile: o, PortalContainer: a } = ue(), l = /* @__PURE__ */ t.createElement(c.CountryOptions.Search, {
|
|
440
439
|
className: n,
|
|
441
440
|
"aria-label": r("field.phone.country-search-input.aria-label")
|
|
@@ -454,11 +453,11 @@ const dt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
454
453
|
className: f.code
|
|
455
454
|
}));
|
|
456
455
|
return /* @__PURE__ */ t.createElement(c, null, /* @__PURE__ */ t.createElement(c.Label, {
|
|
457
|
-
className: O(
|
|
456
|
+
className: O(Le, b.label)
|
|
458
457
|
}, /* @__PURE__ */ t.createElement(c.Label.Required, {
|
|
459
|
-
className: O(
|
|
458
|
+
className: O(Ie, b.requiredMark)
|
|
460
459
|
})), /* @__PURE__ */ t.createElement(c.Control, {
|
|
461
|
-
className: ({ hasCountryOptions: u }) => O(u ?
|
|
460
|
+
className: ({ hasCountryOptions: u }) => O(u ? Fe : ve, b.input, f.control)
|
|
462
461
|
}, /* @__PURE__ */ t.createElement(c.CountryButton, {
|
|
463
462
|
className: f.countryButton
|
|
464
463
|
}, /* @__PURE__ */ t.createElement(c.CountryButton.Flag, {
|
|
@@ -473,16 +472,16 @@ const dt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
473
472
|
portalContainer: a,
|
|
474
473
|
"aria-label": r("field.phone.country-code.aria-label")
|
|
475
474
|
}, l, s, i) : /* @__PURE__ */ t.createElement(c.CountryOptions.Popover, {
|
|
476
|
-
className: O(
|
|
475
|
+
className: O(Pe, b.selectPopover, f.countryOptions),
|
|
477
476
|
placement: "bottom start",
|
|
478
477
|
offset: 0,
|
|
479
478
|
"aria-label": r("field.phone.country-code.aria-label")
|
|
480
479
|
}, l, s, i)), /* @__PURE__ */ t.createElement(c.Error, {
|
|
481
|
-
className: O(
|
|
482
|
-
}, /* @__PURE__ */ t.createElement(
|
|
483
|
-
className: O(
|
|
480
|
+
className: O(De, b.error)
|
|
481
|
+
}, /* @__PURE__ */ t.createElement(Xe, null), /* @__PURE__ */ t.createElement(c.Error.Text, null)), /* @__PURE__ */ t.createElement(c.Description, {
|
|
482
|
+
className: O(Re, b.description)
|
|
484
483
|
}, Pt));
|
|
485
484
|
};
|
|
486
485
|
export {
|
|
487
|
-
|
|
486
|
+
Jt as P
|
|
488
487
|
};
|
|
@@ -1,57 +1,56 @@
|
|
|
1
|
-
import t, { useMemo as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import t, { useMemo as $, useCallback as M, useRef as B } from "react";
|
|
2
|
+
import { RicosViewer as z } from "@wix/ricos/viewer";
|
|
3
3
|
import _ from "classnames";
|
|
4
|
-
import { CheckboxField as G, CheckboxButton as j, NumberField as
|
|
5
|
-
import {
|
|
6
|
-
import { f as
|
|
7
|
-
import { L as
|
|
8
|
-
import { f as
|
|
9
|
-
import { D as
|
|
10
|
-
import { F as
|
|
11
|
-
import { g as
|
|
12
|
-
import { S as
|
|
13
|
-
import { E as
|
|
14
|
-
import { C as
|
|
4
|
+
import { CheckboxField as G, CheckboxButton as j, NumberField as X, Group as J, Button as U, Input as W } from "react-aria-components";
|
|
5
|
+
import { b9 as k, b6 as Y, b1 as w, bj as Z, bb as ee, I as te, U as ne, L as ae, O as oe, N as re, H as le, v as se, p as ie, M as ce } from "./form-BTDgyr54.js";
|
|
6
|
+
import { f as I, a as f } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { L as ue, g as me } from "./field-label-headless-DVvX2QaH.js";
|
|
8
|
+
import { f as pe } from "./format-currency-BwShJ9vM.js";
|
|
9
|
+
import { D as de, E as Ee } from "./field-error-headless-CovyN0GI.js";
|
|
10
|
+
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
11
|
+
import { g as be } from "./payment-field-utils-DobiK5Xh.js";
|
|
12
|
+
import { S as _e } from "./selection-indicator-XQ8MYHUQ.js";
|
|
13
|
+
import { E as fe } from "./error-icon-hZxQ6DEy.js";
|
|
14
|
+
import { C as Ie } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
|
|
15
15
|
import { s as T } from "./field-rac.module-B4l_0KRU.js";
|
|
16
|
-
import { v as me, J as pe, y as de, C as Ee, B as ye, u as fe, o as _e, j as Ie, z as Oe } from "./form-element-classes-bLFmhsKw.js";
|
|
17
16
|
import { o as Q } from "./options-rac.module-CTDdATiz.js";
|
|
18
|
-
import { u as
|
|
17
|
+
import { u as Oe } from "./use-element-state-class-name-DB1AzkvF.js";
|
|
19
18
|
var Le = /* @__PURE__ */ (function(e) {
|
|
20
19
|
return e.crop = "CROP", e.fit = "FIT", e;
|
|
21
|
-
})({}),
|
|
20
|
+
})({}), x = /* @__PURE__ */ (function(e) {
|
|
22
21
|
return e.oneByOne = "one-by-one", e.onlyOne = "only-one", e.many = "many", e;
|
|
23
22
|
})({});
|
|
24
23
|
function Ce({ maxItems: e, products: a } = {}) {
|
|
25
|
-
return e === 1 ?
|
|
24
|
+
return e === 1 ? x.onlyOne : a != null && a.length && a.every((l) => {
|
|
26
25
|
var n;
|
|
27
26
|
return typeof ((n = l.quantityLimit) == null ? void 0 : n.maximum) > "u";
|
|
28
|
-
}) ?
|
|
27
|
+
}) ? x.many : x.oneByOne;
|
|
29
28
|
}
|
|
30
29
|
const o = ({ children: e }) => {
|
|
31
30
|
var D;
|
|
32
|
-
const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: y, onBlur:
|
|
31
|
+
const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: y, onBlur: O, onFocus: s, hasError: u, validation: m, FieldLayout: p } = k(), { inputId: q, labelId: N, ariaDescribedBy: h } = Y(), b = I(e, o.Label), g = I(e, o.Options), v = I(e, o.Description), L = I(e, o.Error), i = $(() => l || [], [
|
|
33
32
|
l
|
|
34
|
-
]), A = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) ===
|
|
35
|
-
const d = i.filter((
|
|
33
|
+
]), A = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === x.many, F = M((S, R) => {
|
|
34
|
+
const d = i.filter((K) => K.productId !== S.productId), H = R ? [
|
|
36
35
|
...d,
|
|
37
36
|
S
|
|
38
37
|
] : d;
|
|
39
|
-
n == null || n(
|
|
38
|
+
n == null || n(H);
|
|
40
39
|
}, [
|
|
41
40
|
i,
|
|
42
41
|
n
|
|
43
42
|
]);
|
|
44
43
|
return /* @__PURE__ */ t.createElement(p, {
|
|
45
44
|
fieldId: a,
|
|
46
|
-
renderLabel: () =>
|
|
47
|
-
renderInput: () => /* @__PURE__ */ t.createElement(
|
|
45
|
+
renderLabel: () => b,
|
|
46
|
+
renderInput: () => /* @__PURE__ */ t.createElement(ye, {
|
|
48
47
|
id: q,
|
|
49
48
|
ariaLabelledBy: N,
|
|
50
49
|
ariaDescribedBy: h,
|
|
51
50
|
required: y,
|
|
52
|
-
onBlur:
|
|
51
|
+
onBlur: O,
|
|
53
52
|
onFocus: s
|
|
54
|
-
}, g ?
|
|
53
|
+
}, g ? f(g, {
|
|
55
54
|
allowMany: A,
|
|
56
55
|
productValues: i,
|
|
57
56
|
onProductChange: F,
|
|
@@ -62,22 +61,22 @@ const o = ({ children: e }) => {
|
|
|
62
61
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, v)
|
|
63
62
|
});
|
|
64
63
|
}, V = ({ children: e, className: a, ...l }) => {
|
|
65
|
-
const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly:
|
|
64
|
+
const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly: O, hasError: s } = l, { options: u, validation: m, imageResize: p } = k(), { currency: q } = w(), { t: N } = Z(), h = I(e, o.Option);
|
|
66
65
|
return /* @__PURE__ */ t.createElement("div", {
|
|
67
66
|
className: a
|
|
68
|
-
}, u == null ? void 0 : u.map((
|
|
67
|
+
}, u == null ? void 0 : u.map((b, g) => {
|
|
69
68
|
var C, A, F, D, S;
|
|
70
|
-
const v = ((S = (D = (F = (A = (C = m == null ? void 0 : m.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : A.products) == null ? void 0 : F.find((R) => R.id ===
|
|
71
|
-
return
|
|
72
|
-
key:
|
|
73
|
-
option:
|
|
69
|
+
const v = ((S = (D = (F = (A = (C = m == null ? void 0 : m.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : A.products) == null ? void 0 : F.find((R) => R.id === b.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0", L = be(N, q), i = r.find((R) => R.productId === b.value);
|
|
70
|
+
return f(h, {
|
|
71
|
+
key: b.id || b.value || b.label,
|
|
72
|
+
option: b,
|
|
74
73
|
price: v,
|
|
75
74
|
quantity: i == null ? void 0 : i.quantity,
|
|
76
75
|
isSelected: !!i,
|
|
77
76
|
allowMany: n,
|
|
78
77
|
onProductChange: c,
|
|
79
78
|
disabled: y,
|
|
80
|
-
readOnly:
|
|
79
|
+
readOnly: O,
|
|
81
80
|
hasError: s,
|
|
82
81
|
currencyAriaLabel: L,
|
|
83
82
|
imageResize: p,
|
|
@@ -85,14 +84,14 @@ const o = ({ children: e }) => {
|
|
|
85
84
|
});
|
|
86
85
|
}));
|
|
87
86
|
}, E = ({ children: e, className: a, ...l }) => {
|
|
88
|
-
const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany:
|
|
87
|
+
const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: O, onProductChange: s, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: q, imageResize: N, isFirst: h } = l, { id: b } = k(), g = B(null), v = B(null), L = I(e, E.Image), i = I(e, E.Label), C = I(e, E.Price), A = I(e, E.Input), F = I(e, E.Quantity);
|
|
89
88
|
ee(() => {
|
|
90
89
|
var d;
|
|
91
90
|
h && ((d = g.current ?? v.current) == null || d.focus({
|
|
92
91
|
preventScroll: !0
|
|
93
92
|
}));
|
|
94
|
-
},
|
|
95
|
-
const D =
|
|
93
|
+
}, b);
|
|
94
|
+
const D = M((d) => {
|
|
96
95
|
s({
|
|
97
96
|
productId: n.value,
|
|
98
97
|
price: r,
|
|
@@ -102,7 +101,7 @@ const o = ({ children: e }) => {
|
|
|
102
101
|
s,
|
|
103
102
|
n.value,
|
|
104
103
|
r
|
|
105
|
-
]), S =
|
|
104
|
+
]), S = M((d) => {
|
|
106
105
|
s({
|
|
107
106
|
productId: n.value,
|
|
108
107
|
price: r,
|
|
@@ -113,17 +112,17 @@ const o = ({ children: e }) => {
|
|
|
113
112
|
n.value,
|
|
114
113
|
r
|
|
115
114
|
]), R = `${n.label} ${q} ${r}`;
|
|
116
|
-
return
|
|
115
|
+
return O ? /* @__PURE__ */ t.createElement("div", {
|
|
117
116
|
className: a,
|
|
118
117
|
"data-hook": "product"
|
|
119
|
-
}, L ?
|
|
118
|
+
}, L ? f(L, {
|
|
120
119
|
option: n,
|
|
121
120
|
imageResize: N
|
|
122
|
-
}) : null, i ?
|
|
121
|
+
}) : null, i ? f(i, {
|
|
123
122
|
label: n.label
|
|
124
|
-
}) : null, C ?
|
|
123
|
+
}) : null, C ? f(C, {
|
|
125
124
|
price: r
|
|
126
|
-
}) : null, F ?
|
|
125
|
+
}) : null, F ? f(F, {
|
|
127
126
|
quantity: c,
|
|
128
127
|
onQuantityChange: S,
|
|
129
128
|
disabled: u,
|
|
@@ -142,14 +141,14 @@ const o = ({ children: e }) => {
|
|
|
142
141
|
ref: g,
|
|
143
142
|
className: a,
|
|
144
143
|
"data-hook": "product"
|
|
145
|
-
}, ({ isHovered: d }) => /* @__PURE__ */ t.createElement(t.Fragment, null, L ?
|
|
144
|
+
}, ({ isHovered: d }) => /* @__PURE__ */ t.createElement(t.Fragment, null, L ? f(L, {
|
|
146
145
|
option: n,
|
|
147
146
|
imageResize: N
|
|
148
|
-
}) : null, i ?
|
|
147
|
+
}) : null, i ? f(i, {
|
|
149
148
|
label: n.label
|
|
150
|
-
}) : null, C ?
|
|
149
|
+
}) : null, C ? f(C, {
|
|
151
150
|
price: r
|
|
152
|
-
}) : null,
|
|
151
|
+
}) : null, f(A, {
|
|
153
152
|
isSelected: y,
|
|
154
153
|
isHovered: d
|
|
155
154
|
}))));
|
|
@@ -158,14 +157,14 @@ const o = ({ children: e }) => {
|
|
|
158
157
|
const { option: l, imageResize: n } = a, r = (s = l.media) == null ? void 0 : s.image;
|
|
159
158
|
if (!r)
|
|
160
159
|
return null;
|
|
161
|
-
const c = n === Le.fit, y =
|
|
160
|
+
const c = n === Le.fit, y = me(r, 96, 96, c ? "fit" : "fill");
|
|
162
161
|
if (!y)
|
|
163
162
|
return null;
|
|
164
|
-
const
|
|
163
|
+
const O = r.altText || l.label || "";
|
|
165
164
|
return /* @__PURE__ */ t.createElement("img", {
|
|
166
165
|
className: e,
|
|
167
166
|
src: y,
|
|
168
|
-
alt:
|
|
167
|
+
alt: O,
|
|
169
168
|
"data-fit": c ? "contain" : "cover",
|
|
170
169
|
"data-hook": "product-image"
|
|
171
170
|
});
|
|
@@ -176,7 +175,7 @@ const o = ({ children: e }) => {
|
|
|
176
175
|
"data-hook": "product-label"
|
|
177
176
|
}, l || "");
|
|
178
177
|
}, Fe = ({ className: e, ...a }) => {
|
|
179
|
-
const { price: l } = a, { currency: n, regionalFormat: r } = w(), c =
|
|
178
|
+
const { price: l } = a, { currency: n, regionalFormat: r } = w(), c = pe({
|
|
180
179
|
amount: l,
|
|
181
180
|
currency: n == null ? void 0 : n.code,
|
|
182
181
|
locale: r
|
|
@@ -186,16 +185,16 @@ const o = ({ children: e }) => {
|
|
|
186
185
|
"data-hook": "product-price"
|
|
187
186
|
}, c);
|
|
188
187
|
}, De = ({ className: e, ...a }) => {
|
|
189
|
-
const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError: y, ariaLabel:
|
|
188
|
+
const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError: y, ariaLabel: O, inputRef: s } = a, u = M((p) => {
|
|
190
189
|
n(p < 0 ? 0 : p);
|
|
191
190
|
}, [
|
|
192
191
|
n
|
|
193
|
-
]), m =
|
|
192
|
+
]), m = M((p) => {
|
|
194
193
|
p.key === "Home" && (p.preventDefault(), u(0));
|
|
195
194
|
}, [
|
|
196
195
|
u
|
|
197
196
|
]);
|
|
198
|
-
return /* @__PURE__ */ t.createElement(
|
|
197
|
+
return /* @__PURE__ */ t.createElement(X, {
|
|
199
198
|
value: l,
|
|
200
199
|
onChange: u,
|
|
201
200
|
minValue: 0,
|
|
@@ -203,10 +202,10 @@ const o = ({ children: e }) => {
|
|
|
203
202
|
isDisabled: r,
|
|
204
203
|
isReadOnly: c,
|
|
205
204
|
isInvalid: y,
|
|
206
|
-
"aria-label":
|
|
205
|
+
"aria-label": O,
|
|
207
206
|
className: e,
|
|
208
207
|
"data-hook": "product-quantity"
|
|
209
|
-
}, /* @__PURE__ */ t.createElement(
|
|
208
|
+
}, /* @__PURE__ */ t.createElement(J, {
|
|
210
209
|
onKeyDown: m
|
|
211
210
|
}, /* @__PURE__ */ t.createElement(U, {
|
|
212
211
|
slot: "decrement"
|
|
@@ -219,14 +218,14 @@ const o = ({ children: e }) => {
|
|
|
219
218
|
E.Image = Re;
|
|
220
219
|
E.Label = ge;
|
|
221
220
|
E.Price = Fe;
|
|
222
|
-
E.Input =
|
|
221
|
+
E.Input = _e;
|
|
223
222
|
E.Quantity = De;
|
|
224
223
|
V.Option = E;
|
|
225
|
-
o.Label =
|
|
224
|
+
o.Label = ue;
|
|
226
225
|
o.Options = V;
|
|
227
226
|
o.Option = E;
|
|
228
|
-
o.Description =
|
|
229
|
-
o.Error =
|
|
227
|
+
o.Description = de;
|
|
228
|
+
o.Error = Ee;
|
|
230
229
|
const Se = "_options_11x4v_1", Pe = "_option_11x4v_1", Ne = "_optionInput_11x4v_21", he = "_optionImage_11x4v_32", ve = "_optionLabel_11x4v_66", Ae = "_optionPrice_11x4v_73", Te = "_quantity_11x4v_87", P = {
|
|
231
230
|
options: Se,
|
|
232
231
|
option: Pe,
|
|
@@ -235,38 +234,38 @@ const Se = "_options_11x4v_1", Pe = "_option_11x4v_1", Ne = "_optionInput_11x4v_
|
|
|
235
234
|
optionLabel: ve,
|
|
236
235
|
optionPrice: Ae,
|
|
237
236
|
quantity: Te
|
|
238
|
-
}, qe = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(
|
|
237
|
+
}, qe = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(z, {
|
|
239
238
|
content: e,
|
|
240
239
|
locale: a
|
|
241
|
-
}),
|
|
242
|
-
const e =
|
|
243
|
-
globalClasses:
|
|
244
|
-
moduleClasses:
|
|
240
|
+
}), Me = () => {
|
|
241
|
+
const e = Oe({
|
|
242
|
+
globalClasses: ce,
|
|
243
|
+
moduleClasses: Ie
|
|
245
244
|
});
|
|
246
245
|
return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
247
|
-
className: _(
|
|
246
|
+
className: _(te, T.label)
|
|
248
247
|
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
249
|
-
className: _(
|
|
248
|
+
className: _(ne, T.requiredMark)
|
|
250
249
|
})), /* @__PURE__ */ t.createElement(o.Options, {
|
|
251
|
-
className: _(
|
|
250
|
+
className: _(ae, Q.options, P.options)
|
|
252
251
|
}, /* @__PURE__ */ t.createElement(o.Option, {
|
|
253
252
|
className: _(T.checkbox, P.option)
|
|
254
253
|
}, /* @__PURE__ */ t.createElement(o.Option.Image, {
|
|
255
254
|
className: P.optionImage
|
|
256
255
|
}), /* @__PURE__ */ t.createElement(o.Option.Label, {
|
|
257
|
-
className: _(
|
|
256
|
+
className: _(oe, Q.optionLabel, P.optionLabel)
|
|
258
257
|
}), /* @__PURE__ */ t.createElement(o.Option.Price, {
|
|
259
|
-
className: _(
|
|
258
|
+
className: _(re, P.optionPrice)
|
|
260
259
|
}), /* @__PURE__ */ t.createElement(o.Option.Input, {
|
|
261
260
|
className: (a) => _(e(a), P.optionInput)
|
|
262
261
|
}), /* @__PURE__ */ t.createElement(o.Option.Quantity, {
|
|
263
|
-
className: _(
|
|
262
|
+
className: _(le, T.inputGroup, P.quantity)
|
|
264
263
|
}))), /* @__PURE__ */ t.createElement(o.Error, {
|
|
265
|
-
className: _(
|
|
266
|
-
}, /* @__PURE__ */ t.createElement(
|
|
267
|
-
className: _(
|
|
264
|
+
className: _(se, T.error)
|
|
265
|
+
}, /* @__PURE__ */ t.createElement(fe, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
266
|
+
className: _(ie, T.description)
|
|
268
267
|
}, qe));
|
|
269
|
-
},
|
|
268
|
+
}, Ze = () => /* @__PURE__ */ t.createElement(Me, null);
|
|
270
269
|
export {
|
|
271
|
-
|
|
270
|
+
Ze as ProductListRAC
|
|
272
271
|
};
|