@wix/form-elements 1.95.0 → 1.96.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-mhQIjy3A.js → appointment-rac-BKgRKq3j.js} +4 -4
- package/dist/component/{bookings-address-rac-pcZeAN2d.js → bookings-address-rac-C87x19gw.js} +1 -1
- package/dist/component/{bookings-email-rac-BHdvWhcv.js → bookings-email-rac-f4nuC_pb.js} +1 -1
- package/dist/component/{bookings-first-name-rac-mPNuMBGo.js → bookings-first-name-rac-BGmuAmbu.js} +1 -1
- package/dist/component/{bookings-header-rac-CUzR91gM.js → bookings-header-rac-CoyxHljp.js} +1 -1
- package/dist/component/{bookings-last-name-rac-q2bsOPke.js → bookings-last-name-rac-D2mBYwcR.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BpwVjQwz.js → bookings-login-bar-rac-BH2Mi6TR.js} +1 -1
- package/dist/component/{bookings-phone-rac-DWdDpi-n.js → bookings-phone-rac-Dz78ybFV.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CZnGLPwv.js → bookings-rich-text-rac-8_h0cOoy.js} +1 -1
- package/dist/component/{checkbox-field-rac-DRVjITJ_.js → checkbox-field-rac-CJnegjvL.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CKXgbUdv.js → checkbox-group-field-headless-CrA7Gx2Y.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-Dt3yWmua.js → checkbox-group-field-rac-DMg75l5Q.js} +3 -3
- package/dist/component/{checkbox-group-rac-BTFoDjxn.js → checkbox-group-rac-C9XWlO5D.js} +1 -1
- package/dist/component/{checkbox-rac-Crn5HP7E.js → checkbox-rac-CrqhH4z9.js} +1 -1
- package/dist/component/{contacts-address-rac-c1zfBJgx.js → contacts-address-rac-C2mqTiPg.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BaaSPZgO.js → contacts-birthdate-rac-i7_RMona.js} +1 -1
- package/dist/component/{contacts-company-rac-CzuRjr1D.js → contacts-company-rac-7sdIosaG.js} +1 -1
- package/dist/component/{contacts-email-rac-hL98o3x4.js → contacts-email-rac-CrsksJ9G.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BXTnd1aU.js → contacts-first-name-rac-I5xIYxgD.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DYjmWO4_.js → contacts-last-name-rac-DnzJYJh7.js} +1 -1
- package/dist/component/{contacts-phone-rac-KMnorQhu.js → contacts-phone-rac-Cx1jpYmv.js} +1 -1
- package/dist/component/{contacts-position-rac-ylzvuGhD.js → contacts-position-rac-CxddG_cE.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Bi3ZazuW.js → contacts-subscribe-rac-C1nTAhnd.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-C01LkO1D.js → contacts-tax-id-rac-B1lzfrj_.js} +1 -1
- package/dist/component/{date-availability-BXwnYCBt.js → date-availability-LN33GU7O.js} +1 -1
- package/dist/component/{date-input-field-rac-BMdPQoFk.js → date-input-field-rac-zTcw6Mxx.js} +6 -6
- package/dist/component/{date-input-rac-D2mDdJ_4.js → date-input-rac-NfVbrcoO.js} +1 -1
- package/dist/component/{date-picker-field-rac-7gyRMkPp.js → date-picker-field-rac-Cc9hJloJ.js} +5 -5
- package/dist/component/{date-picker-rac-FyNcNbTc.js → date-picker-rac-C5iXyKdf.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BTjqn_g-.js → date-time-input-field-rac-Cp34u7cC.js} +6 -6
- package/dist/component/{date-time-input-rac-C81cN7rJ.js → date-time-input-rac-CfFd56Xf.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DAjQPdi_.js → dext-checkbox-group-rac-BVx7XXwR.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DVt9mAXM.js → dext-checkbox-rac-CmUOLx_w.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BnaExh1i.js → dext-date-picker-rac-XDrLGVTQ.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DPAW4eBA.js → dext-date-time-input-rac-ZLCq_taK.js} +1 -1
- package/dist/component/{dext-dropdown-rac-P9T1vh24.js → dext-dropdown-rac-C74zBq3M.js} +1 -1
- package/dist/component/{dext-email-rac-BfEuFGaV.js → dext-email-rac-CqS9HcdY.js} +1 -1
- package/dist/component/{dext-number-input-rac-B5eN2rLP.js → dext-number-input-rac-DszjJDT-.js} +1 -1
- package/dist/component/{dext-phone-rac-DA-h_tpZ.js → dext-phone-rac-wt7T8hpM.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BjpkApRr.js → dext-radio-group-rac-BvRnaWP0.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DUMRW9uI.js → dext-rating-input-rac-D1Lt9M3c.js} +1 -1
- package/dist/component/{dext-tags-rac-s0WchM4X.js → dext-tags-rac-70YO5CJH.js} +2 -2
- package/dist/component/{dext-text-area-rac-BRMsiGEH.js → dext-text-area-rac-CC5RCvWh.js} +1 -1
- package/dist/component/{dext-text-input-rac-BBZi3D8V.js → dext-text-input-rac-s487DzPW.js} +1 -1
- package/dist/component/{dext-url-input-rac-jKMWbCGB.js → dext-url-input-rac-DEKwUh2a.js} +1 -1
- package/dist/component/{donation-rac-DyeKbodo.js → donation-rac-C2bCFVHP.js} +5 -5
- package/dist/component/{dropdown-field-headless-BK8BN3u4.js → dropdown-field-headless-BMWwkydq.js} +4 -4
- package/dist/component/{dropdown-field-rac-B6yzL_R0.js → dropdown-field-rac-Cw5Cbpg0.js} +2 -2
- package/dist/component/{dropdown-rac-CQaMpex2.js → dropdown-rac-CEmlDY3w.js} +1 -1
- package/dist/component/{ecom-address-rac-DQr3-QeV.js → ecom-address-rac-Dv6asnf_.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CZ-pj21A.js → ecom-subscription-checkbox-rac-DOwH-Ebd.js} +2 -2
- package/dist/component/{email-input-field-rac-Vp0YfQOe.js → email-input-field-rac-CeFXPibq.js} +3 -3
- package/dist/component/events-repeater-rac-BUk5Qc8n.js +267 -0
- package/dist/component/{events-rsvp-rac-u_BDmDJ2.js → events-rsvp-rac-CtFkVzUy.js} +2 -2
- package/dist/component/{field-error-headless-BOlFtckJ.js → field-error-headless-B6x_cVEi.js} +1 -1
- package/dist/component/{field-label-headless-Dx3VrM-U.js → field-label-headless-BibCD8xx.js} +1 -1
- package/dist/component/{file-upload-rac-DaFuvO-g.js → file-upload-rac-BUcktluW.js} +3 -3
- package/dist/component/{fixed-payment-rac-DpBwOtOf.js → fixed-payment-rac-BMSBSo5c.js} +3 -3
- package/dist/component/{form-Wsx4lguO.js → form-9WmwgGNc.js} +1120 -1108
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-C8FlksmH.js → header-field-rac-CxUuHOic.js} +2 -2
- package/dist/component/{header-rac-C2J-pLq-.js → header-rac-DejI69X7.js} +1 -1
- package/dist/component/{image-choice-rac-i4C_OXyb.js → image-choice-rac-BjI5a_co.js} +4 -4
- package/dist/component/{index-CRI82pG6.js → index-Csso-2QH.js} +2 -2
- package/dist/component/{index-C34urqyX.js → index-Dz2hV2_S.js} +4 -4
- package/dist/component/{isObjectLike-D-9JnXmU.js → isObjectLike-BN_BZMhy.js} +1 -1
- package/dist/component/{multiline-address-field-rac-Dkfso46f.js → multiline-address-field-rac-CYfphmfr.js} +7 -7
- package/dist/component/{multiline-address-rac-BjrwDwOk.js → multiline-address-rac-Ccujt2bd.js} +1 -1
- package/dist/component/{number-input-field-rac-CgHi83Q1.js → number-input-field-rac-CfnRCRar.js} +4 -4
- package/dist/component/{number-input-rac-BinBxOCS.js → number-input-rac-DnTO9d8P.js} +1 -1
- package/dist/component/{password-rac-CDGqIRW5.js → password-rac-Be_YSb-Q.js} +4 -4
- package/dist/component/{payment-input-rac-f4uuGeJF.js → payment-input-rac-DXUf5iYb.js} +4 -4
- package/dist/component/{phone-input-field-rac-IdBqjM9Q.js → phone-input-field-rac-DYAwLuvJ.js} +6 -6
- package/dist/component/{phone-rac-VHPMrSpw.js → phone-rac-BlsvDmER.js} +1 -1
- package/dist/component/{product-list-rac-Bk8q5y5L.js → product-list-rac-DdXwRSc2.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-kTWqvAoW.js → quiz-radio-group-rac-B0yiKdbu.js} +1 -1
- package/dist/component/{radio-button-module-classes-D77Nc48M.js → radio-button-module-classes-t1jsWYpT.js} +3 -3
- package/dist/component/{radio-group-field-rac-DC-AYSOH.js → radio-group-field-rac-Cug1TtSq.js} +3 -3
- package/dist/component/{radio-group-rac-BkswH1Py.js → radio-group-rac-_O5T0Pt8.js} +1 -1
- package/dist/component/{rating-input-field-rac-Cqgw6PjV.js → rating-input-field-rac-BSKzQ3fq.js} +4 -4
- package/dist/component/{rating-input-rac-CbZhlK3h.js → rating-input-rac-B71q44YO.js} +1 -1
- package/dist/component/{rich-content-rac.module-j_9YbXMI.js → rich-content-rac.module-BJuoKIOt.js} +1 -1
- package/dist/component/{rich-text-field-rac-Da1EIb3b.js → rich-text-field-rac-CiSR82Fw.js} +2 -2
- package/dist/component/{rich-text-rac-BarNBtgP.js → rich-text-rac-Bo6UBwOg.js} +1 -1
- package/dist/component/{service-dropdown-rac-DLIC_csj.js → service-dropdown-rac-BJ7V-g8M.js} +4 -4
- package/dist/component/{services-multi-choice-rac-vyxtwSM2.js → services-multi-choice-rac-CtBcc9WH.js} +5 -5
- package/dist/component/{signature-rac-DIM2Uwsg.js → signature-rac-yvrHr1he.js} +3 -3
- package/dist/component/{submit-button-rac-DgxjomCu.js → submit-button-rac-s-JdZgq7.js} +1 -1
- package/dist/component/{tags-field-rac-BFlkxifd.js → tags-field-rac-g_W0RMod.js} +5 -5
- package/dist/component/{tags-rac-D4TwrAWc.js → tags-rac-DmvIH6HU.js} +1 -1
- package/dist/component/{text-area-field-rac-Dcz7VUQ5.js → text-area-field-rac-Duja5xOA.js} +4 -4
- package/dist/component/{text-area-rac-DhloXdO2.js → text-area-rac-DzRxgG6u.js} +1 -1
- package/dist/component/{text-input-field-rac-C8e3TMxI.js → text-input-field-rac-C2eXeoBC.js} +2 -2
- package/dist/component/{text-input-headless-fl7qoZzR.js → text-input-headless-d1WK0nqR.js} +3 -3
- package/dist/component/{text-input-rac-CBn6bHtP.js → text-input-rac-DM9MnoQs.js} +1 -1
- package/dist/component/{time-input-rac-Dsm7_vrf.js → time-input-rac-CxVZ3USX.js} +4 -4
- package/dist/component/{url-input-field-rac-9Hfx1xzO.js → url-input-field-rac-4oVJMr1a.js} +4 -4
- package/dist/component/{url-input-rac-CVlE4pcg.js → url-input-rac--T-FnskQ.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-Dsxto42_.js → use-dropdown-option-class-name-BFHRYpVL.js} +1 -1
- package/dist/component/{use-element-state-class-name-BIqDbVvI.js → use-element-state-class-name-De5YnxMK.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-BMPqRDVW.js → use-is-forced-open-dropdown-CWvcd9Ex.js} +1 -1
- package/dist/component/{use-service-options-base-07_rqXcG.js → use-service-options-base-CD1EVWRE.js} +1 -1
- package/dist/component/{use-text-input-class-name-DqFt59gd.js → use-text-input-class-name-BYwXccvO.js} +2 -2
- package/package.json +4 -3
- package/dist/component/events-repeater-rac-BPE4Hn_G.js +0 -256
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import e, { useState as q, useMemo as v, useCallback as V, useRef as w } from "react";
|
|
2
|
-
import T from "classnames";
|
|
3
|
-
import { NumberField as z, Input as J, CheckboxField as Q, CheckboxButton as W, Button as x } from "react-aria-components";
|
|
4
|
-
import { aq as U, ar as P, ag as H, al as K, v as Y, ak as D, ah as X, am as j, j as Z } from "./form-Wsx4lguO.js";
|
|
5
|
-
import { f as b, a as L } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { L as ee } from "./field-label-headless-Dx3VrM-U.js";
|
|
7
|
-
import { S as te } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
|
-
import { u as se } from "./use-invoke-callback-UH73A_J3.js";
|
|
9
|
-
import { C as k } from "./chevron-down-icon-CcpVm6B-.js";
|
|
10
|
-
import { C as ne } from "./checkbox-indicator-module-classes-DhbNznSB.js";
|
|
11
|
-
import { s as B } from "./field-rac.module-DobpyqOd.js";
|
|
12
|
-
import { C as oe, B as re, s as ae, u as le, t as ce } from "./form-element-classes-BtKlobUX.js";
|
|
13
|
-
import { u as ue } from "./use-element-state-class-name-BIqDbVvI.js";
|
|
14
|
-
const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, errors: m = me, validation: c }) => {
|
|
15
|
-
const [i, E] = q((r == null ? void 0 : r.length) || 0), a = v(() => r ?? [], [
|
|
16
|
-
r
|
|
17
|
-
]), C = U(), f = P(), d = H(), { validateFields: u } = K(), F = c.predefined.objectArrayOptions.maxItems, _ = v(() => Y({
|
|
18
|
-
form: {
|
|
19
|
-
fields: n,
|
|
20
|
-
steps: [
|
|
21
|
-
{
|
|
22
|
-
layout: l
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
parentId: t,
|
|
27
|
-
recursive: !1
|
|
28
|
-
}), [
|
|
29
|
-
n,
|
|
30
|
-
l,
|
|
31
|
-
t
|
|
32
|
-
]), G = v(() => m.reduce((p, I) => {
|
|
33
|
-
const [h, N] = I.errorPath.split("/"), A = parseInt(h, 10);
|
|
34
|
-
return p[A] || (p[A] = []), p[A].push({
|
|
35
|
-
...I,
|
|
36
|
-
errorPath: N
|
|
37
|
-
}), p;
|
|
38
|
-
}, []), [
|
|
39
|
-
m
|
|
40
|
-
]), g = V((p) => {
|
|
41
|
-
const I = Number.isNaN(p) ? 0 : Math.min(Math.max(p, 0), F);
|
|
42
|
-
E(I), s == null || s(Array.from({
|
|
43
|
-
length: I
|
|
44
|
-
}, (h, N) => a[N] ?? {}));
|
|
45
|
-
}, [
|
|
46
|
-
F,
|
|
47
|
-
a,
|
|
48
|
-
s
|
|
49
|
-
]), S = V((p) => (I, h) => {
|
|
50
|
-
const N = Array.from({
|
|
51
|
-
length: i
|
|
52
|
-
}, (A, $) => a[$] ?? {});
|
|
53
|
-
N[p] = {
|
|
54
|
-
...N[p],
|
|
55
|
-
[I]: h
|
|
56
|
-
}, s == null || s(N);
|
|
57
|
-
}, [
|
|
58
|
-
i,
|
|
59
|
-
a,
|
|
60
|
-
s
|
|
61
|
-
]);
|
|
62
|
-
return {
|
|
63
|
-
guestLimit: F,
|
|
64
|
-
guestCount: i,
|
|
65
|
-
guests: a,
|
|
66
|
-
errorsByIndex: G,
|
|
67
|
-
formView: _,
|
|
68
|
-
formSchema: C,
|
|
69
|
-
formFields: f,
|
|
70
|
-
fieldActions: d,
|
|
71
|
-
validateFields: u,
|
|
72
|
-
changeGuestCount: g,
|
|
73
|
-
changeGuestField: S
|
|
74
|
-
};
|
|
75
|
-
}, de = [], pe = {}, o = ({ children: t, className: n }) => {
|
|
76
|
-
const l = D(), { id: r, FieldLayout: s } = l, { guestLimit: m, guestCount: c, guests: i, errorsByIndex: E, formView: a, changeGuestCount: C, changeGuestField: f } = ie(l), d = b(t, o.Label), u = b(t, o.GuestCount), F = b(t, o.GuestToggle), _ = b(t, o.Guests), G = m > 1;
|
|
77
|
-
return /* @__PURE__ */ e.createElement(s, {
|
|
78
|
-
fieldId: r,
|
|
79
|
-
renderLabel: () => G ? d : null,
|
|
80
|
-
renderInput: () => /* @__PURE__ */ e.createElement("div", {
|
|
81
|
-
className: n
|
|
82
|
-
}, G ? L(u, {
|
|
83
|
-
guestLimit: m,
|
|
84
|
-
guestCount: c,
|
|
85
|
-
onGuestCountChange: C
|
|
86
|
-
}) : L(F, {
|
|
87
|
-
guestCount: c,
|
|
88
|
-
onGuestCountChange: C
|
|
89
|
-
}), L(_, {
|
|
90
|
-
guestCount: c,
|
|
91
|
-
guests: i,
|
|
92
|
-
errorsByIndex: E,
|
|
93
|
-
formView: a,
|
|
94
|
-
onGuestFieldChange: f
|
|
95
|
-
})),
|
|
96
|
-
renderDescription: () => null
|
|
97
|
-
});
|
|
98
|
-
}, Ee = ({ className: t }) => /* @__PURE__ */ e.createElement(ee, {
|
|
99
|
-
className: t
|
|
100
|
-
}, null), R = ({ children: t, className: n, groupClassName: l, ...r }) => {
|
|
101
|
-
const { guestLimit: s, guestCount: m, onGuestCountChange: c } = r, { id: i, label: E, disabled: a, readOnly: C, onBlur: f, onFocus: d } = D(), { inputId: u, ariaDescribedBy: F } = X(), _ = se(f), G = w(null);
|
|
102
|
-
j(() => {
|
|
103
|
-
var p;
|
|
104
|
-
(p = G.current) == null || p.focus();
|
|
105
|
-
}, i);
|
|
106
|
-
const g = b(t, R.Decrement), S = b(t, R.Increment);
|
|
107
|
-
return /* @__PURE__ */ e.createElement(z, {
|
|
108
|
-
className: l,
|
|
109
|
-
"aria-label": E,
|
|
110
|
-
value: m,
|
|
111
|
-
onChange: c,
|
|
112
|
-
minValue: 0,
|
|
113
|
-
maxValue: s,
|
|
114
|
-
step: 1,
|
|
115
|
-
isDisabled: a,
|
|
116
|
-
isReadOnly: C,
|
|
117
|
-
onBlur: _,
|
|
118
|
-
onFocus: d
|
|
119
|
-
}, /* @__PURE__ */ e.createElement(J, {
|
|
120
|
-
ref: G,
|
|
121
|
-
id: u,
|
|
122
|
-
"aria-describedby": F,
|
|
123
|
-
className: n,
|
|
124
|
-
inputMode: "numeric"
|
|
125
|
-
}), S, g);
|
|
126
|
-
}, Ce = ({ children: t, className: n }) => /* @__PURE__ */ e.createElement(x, {
|
|
127
|
-
slot: "decrement",
|
|
128
|
-
className: n
|
|
129
|
-
}, t), ge = ({ children: t, className: n }) => /* @__PURE__ */ e.createElement(x, {
|
|
130
|
-
slot: "increment",
|
|
131
|
-
className: n
|
|
132
|
-
}, t), y = ({ children: t, className: n, ...l }) => {
|
|
133
|
-
const { guestCount: r, onGuestCountChange: s } = l, { id: m, label: c, disabled: i, readOnly: E, onBlur: a, onFocus: C } = D(), { inputId: f, ariaDescribedBy: d } = X(), u = w(null);
|
|
134
|
-
j(() => {
|
|
135
|
-
var g;
|
|
136
|
-
(g = u.current) == null || g.focus();
|
|
137
|
-
}, m);
|
|
138
|
-
const F = b(t, y.Input), _ = b(t, y.Label), G = V((g) => {
|
|
139
|
-
s(g ? 1 : 0);
|
|
140
|
-
}, [
|
|
141
|
-
s
|
|
142
|
-
]);
|
|
143
|
-
return /* @__PURE__ */ e.createElement(Q, {
|
|
144
|
-
inputRef: u,
|
|
145
|
-
id: f,
|
|
146
|
-
"aria-describedby": d,
|
|
147
|
-
isSelected: r > 0,
|
|
148
|
-
onChange: G,
|
|
149
|
-
isDisabled: i,
|
|
150
|
-
isReadOnly: E,
|
|
151
|
-
onBlur: a,
|
|
152
|
-
onFocus: C
|
|
153
|
-
}, /* @__PURE__ */ e.createElement(W, {
|
|
154
|
-
className: n
|
|
155
|
-
}, ({ isSelected: g, isHovered: S }) => /* @__PURE__ */ e.createElement(e.Fragment, null, L(F, {
|
|
156
|
-
isSelected: g,
|
|
157
|
-
isHovered: S
|
|
158
|
-
}), L(_, {
|
|
159
|
-
label: c
|
|
160
|
-
}))));
|
|
161
|
-
}, fe = ({ className: t, ...n }) => {
|
|
162
|
-
const { label: l } = n;
|
|
163
|
-
return /* @__PURE__ */ e.createElement("span", {
|
|
164
|
-
className: t
|
|
165
|
-
}, l);
|
|
166
|
-
}, M = ({ children: t, className: n, ...l }) => {
|
|
167
|
-
const { guestCount: r, guests: s, errorsByIndex: m, formView: c, onGuestFieldChange: i } = l, { disabled: E, readOnly: a } = D(), C = v(() => ({
|
|
168
|
-
...c,
|
|
169
|
-
fields: c.fields.map((d) => ({
|
|
170
|
-
...d,
|
|
171
|
-
properties: {
|
|
172
|
-
...d.properties,
|
|
173
|
-
disabled: !!(E || d.properties.disabled),
|
|
174
|
-
readOnly: !!(a || d.properties.readOnly)
|
|
175
|
-
}
|
|
176
|
-
}))
|
|
177
|
-
}), [
|
|
178
|
-
c,
|
|
179
|
-
E,
|
|
180
|
-
a
|
|
181
|
-
]), f = b(t, M.Guest);
|
|
182
|
-
return r ? /* @__PURE__ */ e.createElement("div", {
|
|
183
|
-
className: n
|
|
184
|
-
}, Array.from({
|
|
185
|
-
length: r
|
|
186
|
-
}, (d, u) => L(f, {
|
|
187
|
-
key: u,
|
|
188
|
-
index: u,
|
|
189
|
-
formView: C,
|
|
190
|
-
values: s[u] ?? pe,
|
|
191
|
-
errors: m[u] ?? de,
|
|
192
|
-
onFieldChange: i(u)
|
|
193
|
-
}))) : null;
|
|
194
|
-
}, Fe = ({ className: t, ...n }) => {
|
|
195
|
-
const { index: l, formView: r, values: s, errors: m, onFieldChange: c } = n, i = U(), E = P(), a = H(), { validateFields: C } = K();
|
|
196
|
-
return /* @__PURE__ */ e.createElement("div", {
|
|
197
|
-
className: t,
|
|
198
|
-
"data-hook": `guest-${l}`
|
|
199
|
-
}, /* @__PURE__ */ e.createElement(Z, {
|
|
200
|
-
form: r,
|
|
201
|
-
formSchema: i,
|
|
202
|
-
values: s,
|
|
203
|
-
errors: m,
|
|
204
|
-
validateFields: C,
|
|
205
|
-
onFieldChange: c,
|
|
206
|
-
fields: E,
|
|
207
|
-
fieldActions: a
|
|
208
|
-
}));
|
|
209
|
-
};
|
|
210
|
-
R.Decrement = Ce;
|
|
211
|
-
R.Increment = ge;
|
|
212
|
-
y.Input = te;
|
|
213
|
-
y.Label = fe;
|
|
214
|
-
M.Guest = Fe;
|
|
215
|
-
o.Label = Ee;
|
|
216
|
-
o.GuestCount = R;
|
|
217
|
-
o.GuestToggle = y;
|
|
218
|
-
o.Guests = M;
|
|
219
|
-
const Ge = "_container_11veo_1", be = "_countGroup_11veo_8", _e = "_increment_11veo_28", Ie = "_decrement_11veo_29", O = {
|
|
220
|
-
container: Ge,
|
|
221
|
-
countGroup: be,
|
|
222
|
-
increment: _e,
|
|
223
|
-
decrement: Ie
|
|
224
|
-
}, Ne = () => {
|
|
225
|
-
const t = ue({
|
|
226
|
-
globalClasses: ce,
|
|
227
|
-
moduleClasses: ne
|
|
228
|
-
});
|
|
229
|
-
return /* @__PURE__ */ e.createElement(o, {
|
|
230
|
-
className: O.container
|
|
231
|
-
}, /* @__PURE__ */ e.createElement(o.Label, {
|
|
232
|
-
className: T(oe, B.label)
|
|
233
|
-
}), /* @__PURE__ */ e.createElement(o.GuestCount, {
|
|
234
|
-
className: B.innerInput,
|
|
235
|
-
groupClassName: T(re, B.input, O.countGroup)
|
|
236
|
-
}, /* @__PURE__ */ e.createElement(o.GuestCount.Increment, {
|
|
237
|
-
className: O.increment
|
|
238
|
-
}, /* @__PURE__ */ e.createElement(k, {
|
|
239
|
-
style: {
|
|
240
|
-
transform: "rotate(180deg)"
|
|
241
|
-
}
|
|
242
|
-
})), /* @__PURE__ */ e.createElement(o.GuestCount.Decrement, {
|
|
243
|
-
className: O.decrement
|
|
244
|
-
}, /* @__PURE__ */ e.createElement(k, null))), /* @__PURE__ */ e.createElement(o.GuestToggle, {
|
|
245
|
-
className: T(ae, B.checkbox)
|
|
246
|
-
}, /* @__PURE__ */ e.createElement(o.GuestToggle.Input, {
|
|
247
|
-
className: t
|
|
248
|
-
}), /* @__PURE__ */ e.createElement(o.GuestToggle.Label, {
|
|
249
|
-
className: le
|
|
250
|
-
})), /* @__PURE__ */ e.createElement(o.Guests, {
|
|
251
|
-
className: O.container
|
|
252
|
-
}, /* @__PURE__ */ e.createElement(o.Guests.Guest, null)));
|
|
253
|
-
}, ke = () => /* @__PURE__ */ e.createElement(Ne, null);
|
|
254
|
-
export {
|
|
255
|
-
ke as EventsRepeaterRAC
|
|
256
|
-
};
|