@wix/form-elements 1.74.0 → 1.76.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.
Files changed (116) hide show
  1. package/dist/component/appointment-rac-BQsFMmBg.js +1016 -0
  2. package/dist/component/{bookings-address-rac-BcrkXf63.js → bookings-address-rac-AJNyTdok.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DYq5RxOP.js → bookings-email-rac-BHZ0MFgI.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-ZJ_sQ-01.js → bookings-first-name-rac-Bw5FuWNX.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Cv8kl01f.js → bookings-header-rac-C1M2Pg1f.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-BmnulSZ6.js → bookings-last-name-rac-DKkPY0CO.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-Bdi4xs9y.js → bookings-login-bar-rac-P6pziSl1.js} +2 -2
  8. package/dist/component/{bookings-phone-rac-C8DjSzUY.js → bookings-phone-rac-CiOZWKHz.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DYu011oy.js → bookings-rich-text-rac-D9ZComtY.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-BH3yEE5j.js → checkbox-field-rac-4zG3Sf1c.js} +328 -320
  11. package/dist/component/checkbox-group-field-headless-DN2aNw9g.js +205 -0
  12. package/dist/component/checkbox-group-field-rac-B1qhet83.js +41 -0
  13. package/dist/component/{checkbox-group-rac-CgW0DnhX.js → checkbox-group-rac-DGsE7xGu.js} +1 -1
  14. package/dist/component/checkbox-indicator-module-classes-BcScu147.js +17 -0
  15. package/dist/component/{checkbox-rac-DOAYMMsi.js → checkbox-rac-CFWQW9_K.js} +1 -1
  16. package/dist/component/{contacts-address-rac-DXJa4J_k.js → contacts-address-rac-G5ZH3Odo.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-CVsuRq3B.js → contacts-birthdate-rac-C7TDUfT0.js} +1 -1
  18. package/dist/component/{contacts-company-rac-b2bwHSNC.js → contacts-company-rac-8queUhWT.js} +1 -1
  19. package/dist/component/{contacts-email-rac-DMPcpQ1c.js → contacts-email-rac-CYOs5N_I.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-CL2BsHuJ.js → contacts-first-name-rac-D8Goc_Ym.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-hdBsWaqb.js → contacts-last-name-rac-lBmtuEnr.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-DQF6aV9B.js → contacts-phone-rac-DSUWUNBX.js} +1 -1
  23. package/dist/component/{contacts-position-rac-CVX-WCfx.js → contacts-position-rac-wA-aw5Id.js} +1 -1
  24. package/dist/component/contacts-subscribe-rac-CAbBbFxZ.js +13 -0
  25. package/dist/component/{contacts-tax-id-rac-0KTXvF81.js → contacts-tax-id-rac-BpjVM1Ye.js} +1 -1
  26. package/dist/component/{date-availability-DBljhBgO.js → date-availability-CeiMjrtD.js} +1 -1
  27. package/dist/component/{date-input-field-rac-CfflD2Ar.js → date-input-field-rac-CVaajAFM.js} +30 -30
  28. package/dist/component/{date-input-rac-fQclCKoa.js → date-input-rac-DhEzawuM.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-BSmFOaH-.js → date-picker-field-rac-1Q6yyNmK.js} +35 -35
  30. package/dist/component/{date-picker-rac-D7I3ramu.js → date-picker-rac-BCGtmXMJ.js} +1 -1
  31. package/dist/component/{date-time-input-field-rac-vjZDQ_Fp.js → date-time-input-field-rac-Dd-HNgKP.js} +35 -35
  32. package/dist/component/{date-time-input-rac-CDbS0VZR.js → date-time-input-rac-CsCWEsH5.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-BBiPt6_a.js → dext-checkbox-group-rac-CauN5uuV.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-Cqp--0SO.js → dext-checkbox-rac-q-g9gDnw.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-5Wft0w9m.js → dext-date-picker-rac-CZT3dTLv.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-Bbs7bgtn.js → dext-date-time-input-rac-DVUoZZbX.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-CSvhtqbc.js → dext-dropdown-rac-GRltutt5.js} +1 -1
  38. package/dist/component/{dext-email-rac-BoLeXqyI.js → dext-email-rac-74Y8S9GA.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-DzaJYTSz.js → dext-number-input-rac-CF9d_GTl.js} +1 -1
  40. package/dist/component/{dext-phone-rac-BagPg_CT.js → dext-phone-rac-DObx_gOd.js} +1 -1
  41. package/dist/component/{dext-radio-group-rac-B5HSQt7a.js → dext-radio-group-rac-CzU9KX5_.js} +2 -2
  42. package/dist/component/{dext-rating-input-rac-DrtaAf-E.js → dext-rating-input-rac-BjRwwgXr.js} +1 -1
  43. package/dist/component/{dext-tags-rac-Cg4jJ4jr.js → dext-tags-rac-Vif4x1yF.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-C_t-W7lk.js → dext-text-area-rac-DmZwl_ax.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-ChvV21Jf.js → dext-text-input-rac-B6FVbjUM.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-DclbSYTr.js → dext-url-input-rac-17Dj3ICM.js} +1 -1
  47. package/dist/component/donation-rac-bgHep0Xi.js +307 -0
  48. package/dist/component/{dropdown-field-headless-CTZ-zGqZ.js → dropdown-field-headless-BGfJ1FyZ.js} +3 -3
  49. package/dist/component/{dropdown-field-rac-C1KVtxwv.js → dropdown-field-rac-DGiysJQY.js} +7 -7
  50. package/dist/component/{dropdown-rac-CkkDEDje.js → dropdown-rac-FHjz8fKp.js} +1 -1
  51. package/dist/component/{ecom-address-rac-BOuugSxX.js → ecom-address-rac-DSbpf4z8.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-IZeMlljb.js → ecom-subscription-checkbox-rac-DiZWNwnt.js} +6 -6
  53. package/dist/component/{email-input-field-rac-CNzmm1j7.js → email-input-field-rac-BQKK2O7L.js} +44 -44
  54. package/dist/component/events-repeater-rac-Dudnyhal.js +255 -0
  55. package/dist/component/{events-rsvp-rac-BmjboAco.js → events-rsvp-rac-008H5Ska.js} +3 -3
  56. package/dist/component/{field-error-headless-DQZ5XAdn.js → field-error-headless-C5ZsFUKv.js} +1 -1
  57. package/dist/component/{field-label-headless-DoxfHHaj.js → field-label-headless-CS5OYsiI.js} +1 -1
  58. package/dist/component/field-rac.module-DjmaTYkc.js +23 -0
  59. package/dist/component/{file-upload-rac-YEQ7uXhm.js → file-upload-rac-bQ2QOO8Q.js} +48 -48
  60. package/dist/component/{fixed-payment-rac-DDufIQBT.js → fixed-payment-rac-B6FvXoCU.js} +17 -17
  61. package/dist/component/{form-C6WwBcGP.js → form-BpHElSwH.js} +69 -69
  62. package/dist/component/form-element-classes-BXNs5k3q.js +119 -0
  63. package/dist/component/form.css +1 -1
  64. package/dist/component/form.js +1 -1
  65. package/dist/component/{header-field-rac-DGfjrjQC.js → header-field-rac-D4UYcmok.js} +3 -3
  66. package/dist/component/{header-rac-C_JE2cTg.js → header-rac-KavPiBdn.js} +1 -1
  67. package/dist/component/{image-choice-rac-LDLPQwrN.js → image-choice-rac-BJQqBhBD.js} +35 -36
  68. package/dist/component/{index-CIOoaQ8Z.js → index-RSEYrQef.js} +2 -2
  69. package/dist/component/{index-C2srcuHD.js → index-Y8iTxLat.js} +4 -4
  70. package/dist/component/{isObjectLike-E5QfEa1u.js → isObjectLike-jwHec4Ap.js} +1 -1
  71. package/dist/component/{multiline-address-field-rac-Biyj2tIN.js → multiline-address-field-rac-D4Ibno80.js} +110 -110
  72. package/dist/component/{multiline-address-rac-BCqCvG7a.js → multiline-address-rac-CrTSjzBN.js} +1 -1
  73. package/dist/component/{number-input-field-rac-CwUoIbM8.js → number-input-field-rac-DW1SjB-Z.js} +16 -16
  74. package/dist/component/{number-input-rac-CdYdTDem.js → number-input-rac-CdE_hRbA.js} +1 -1
  75. package/dist/component/{password-rac-D62npVHY.js → password-rac-BCxl5mMQ.js} +20 -20
  76. package/dist/component/{payment-input-rac-D4u-3vcW.js → payment-input-rac-DmO4s4ue.js} +9 -9
  77. package/dist/component/{phone-input-field-rac-uHxR3ozd.js → phone-input-field-rac-BYAnwk5h.js} +25 -25
  78. package/dist/component/{phone-rac-Bf99_BGi.js → phone-rac-gS4k9Yn8.js} +1 -1
  79. package/dist/component/product-list-rac-CO0o3yOg.js +271 -0
  80. package/dist/component/{quiz-radio-group-rac-CPGS0LEb.js → quiz-radio-group-rac-Dhk7nkzb.js} +2 -2
  81. package/dist/component/{radio-group-field-rac-BWpTNAbO.js → radio-group-field-rac-DdlyQ3m6.js} +3 -3
  82. package/dist/component/{radio-group-field-rac.module-WxU5zxvM.js → radio-group-field-rac.module-emin6sSc.js} +3 -3
  83. package/dist/component/{radio-group-rac-dA4WZ1Vj.js → radio-group-rac-B-9q91fJ.js} +1 -1
  84. package/dist/component/{rating-input-field-rac-CJnFsBvH.js → rating-input-field-rac-VDaJKq-n.js} +27 -28
  85. package/dist/component/{rating-input-rac-DXVYozFV.js → rating-input-rac-BVO62LmE.js} +1 -1
  86. package/dist/component/{rich-content-rac.module-DkKwzJS7.js → rich-content-rac.module-CdiaAjxG.js} +1 -1
  87. package/dist/component/{rich-text-field-rac-8FWCRrpb.js → rich-text-field-rac-C4RrbyEX.js} +3 -3
  88. package/dist/component/{rich-text-rac-OeM_mPRy.js → rich-text-rac-BG376ww9.js} +1 -1
  89. package/dist/component/{service-dropdown-rac-mvUMpcS_.js → service-dropdown-rac-Dy6-OpVR.js} +18 -18
  90. package/dist/component/services-multi-choice-rac-BKW9MP_b.js +84 -0
  91. package/dist/component/{signature-rac-D44U9Uyp.js → signature-rac-Cxgixp4o.js} +56 -56
  92. package/dist/component/{submit-button-rac-BqtcgVAn.js → submit-button-rac-BqPJ7WPI.js} +2 -2
  93. package/dist/component/{tags-field-rac-CemsTKWz.js → tags-field-rac-wwqpztG7.js} +36 -37
  94. package/dist/component/{tags-rac-fVjCf6qo.js → tags-rac-DUxITYxU.js} +1 -1
  95. package/dist/component/{text-area-field-rac-BPciZlZb.js → text-area-field-rac-Cen6O33S.js} +16 -16
  96. package/dist/component/{text-area-rac-CRTORdZM.js → text-area-rac-CRlO56GA.js} +1 -1
  97. package/dist/component/{text-input-field-rac-CvFoWlRN.js → text-input-field-rac-CbnKn03g.js} +6 -6
  98. package/dist/component/{text-input-headless-BQ3TWU9G.js → text-input-headless-C_NTJmLe.js} +3 -3
  99. package/dist/component/{text-input-rac-DSFkEmob.js → text-input-rac-DvwV7Igm.js} +1 -1
  100. package/dist/component/{time-input-rac-CGgs7ncp.js → time-input-rac-TSEXiODs.js} +15 -15
  101. package/dist/component/{url-input-field-rac-CqvgTc-F.js → url-input-field-rac-Cxgh9T8s.js} +20 -20
  102. package/dist/component/{url-input-rac-C45KOwnr.js → url-input-rac-DNw-Jg1U.js} +1 -1
  103. package/dist/component/use-element-state-class-name-CC65g9mT.js +15 -0
  104. package/dist/component/{use-service-options-base-D4Zl-iGW.js → use-service-options-base-EFrxTpGm.js} +1 -1
  105. package/package.json +2 -2
  106. package/dist/component/appointment-rac-Bze1s2XD.js +0 -1005
  107. package/dist/component/checkbox-group-field-headless-D_GG5LHM.js +0 -210
  108. package/dist/component/checkbox-group-field-rac-Cj7Erubs.js +0 -41
  109. package/dist/component/contacts-subscribe-rac-Dl1ot9qw.js +0 -13
  110. package/dist/component/donation-rac-FYQIMm5m.js +0 -308
  111. package/dist/component/events-repeater-rac-CMV0Lmwz.js +0 -247
  112. package/dist/component/field-rac.module-Cac83bU5.js +0 -21
  113. package/dist/component/form-element-classes-DDKCTFQj.js +0 -65
  114. package/dist/component/form-element-keys-D0sEdpFo.js +0 -8
  115. package/dist/component/product-list-rac-iRf6Ra7i.js +0 -263
  116. package/dist/component/services-multi-choice-rac-DrgUrn_N.js +0 -76
@@ -0,0 +1,255 @@
1
+ import e, { useState as q, useMemo as v, useCallback as V, useRef as x } from "react";
2
+ import T from "classnames";
3
+ import { NumberField as z, Input as J, CheckboxField as Q, CheckboxButton as W, Button as w } from "react-aria-components";
4
+ import { ao as U, ap as P, ae as H, aj as K, u as Y, ai as D, af as X, ak as j, j as Z } from "./form-BpHElSwH.js";
5
+ import { f as b, a as L } from "./find-child-C60k4CxG.js";
6
+ import { L as ee } from "./field-label-headless-CS5OYsiI.js";
7
+ import { a as te, C as se } from "./checkbox-indicator-module-classes-BcScu147.js";
8
+ import { u as ne } from "./use-invoke-callback-UH73A_J3.js";
9
+ import { C as M } from "./chevron-down-icon-CcpVm6B-.js";
10
+ import { s as B } from "./field-rac.module-DjmaTYkc.js";
11
+ import { z as oe, y as re, q as ae, s as le, r as ce } from "./form-element-classes-BXNs5k3q.js";
12
+ import { u as ue } from "./use-element-state-class-name-CC65g9mT.js";
13
+ const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, errors: m = me, validation: c }) => {
14
+ const [i, E] = q((r == null ? void 0 : r.length) || 0), a = v(() => r ?? [], [
15
+ r
16
+ ]), C = U(), f = P(), d = H(), { validateFields: u } = K(), F = c.predefined.objectArrayOptions.maxItems, _ = v(() => Y({
17
+ form: {
18
+ fields: n,
19
+ steps: [
20
+ {
21
+ layout: l
22
+ }
23
+ ]
24
+ },
25
+ parentId: t,
26
+ recursive: !1
27
+ }), [
28
+ n,
29
+ l,
30
+ t
31
+ ]), G = v(() => m.reduce((p, I) => {
32
+ const [h, N] = I.errorPath.split("/"), A = parseInt(h, 10);
33
+ return p[A] || (p[A] = []), p[A].push({
34
+ ...I,
35
+ errorPath: N
36
+ }), p;
37
+ }, []), [
38
+ m
39
+ ]), g = V((p) => {
40
+ const I = Number.isNaN(p) ? 0 : Math.min(Math.max(p, 0), F);
41
+ E(I), s == null || s(Array.from({
42
+ length: I
43
+ }, (h, N) => a[N] ?? {}));
44
+ }, [
45
+ F,
46
+ a,
47
+ s
48
+ ]), y = V((p) => (I, h) => {
49
+ const N = Array.from({
50
+ length: i
51
+ }, (A, $) => a[$] ?? {});
52
+ N[p] = {
53
+ ...N[p],
54
+ [I]: h
55
+ }, s == null || s(N);
56
+ }, [
57
+ i,
58
+ a,
59
+ s
60
+ ]);
61
+ return {
62
+ guestLimit: F,
63
+ guestCount: i,
64
+ guests: a,
65
+ errorsByIndex: G,
66
+ formView: _,
67
+ formSchema: C,
68
+ formFields: f,
69
+ fieldActions: d,
70
+ validateFields: u,
71
+ changeGuestCount: g,
72
+ changeGuestField: y
73
+ };
74
+ }, de = [], pe = {}, o = ({ children: t, className: n }) => {
75
+ 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;
76
+ return /* @__PURE__ */ e.createElement(s, {
77
+ fieldId: r,
78
+ renderLabel: () => G ? d : null,
79
+ renderInput: () => /* @__PURE__ */ e.createElement("div", {
80
+ className: n
81
+ }, G ? L(u, {
82
+ guestLimit: m,
83
+ guestCount: c,
84
+ onGuestCountChange: C
85
+ }) : L(F, {
86
+ guestCount: c,
87
+ onGuestCountChange: C
88
+ }), L(_, {
89
+ guestCount: c,
90
+ guests: i,
91
+ errorsByIndex: E,
92
+ formView: a,
93
+ onGuestFieldChange: f
94
+ })),
95
+ renderDescription: () => null
96
+ });
97
+ }, Ee = ({ className: t }) => /* @__PURE__ */ e.createElement(ee, {
98
+ className: t
99
+ }, null), R = ({ children: t, className: n, groupClassName: l, ...r }) => {
100
+ 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(), _ = ne(f), G = x(null);
101
+ j(() => {
102
+ var p;
103
+ (p = G.current) == null || p.focus();
104
+ }, i);
105
+ const g = b(t, R.Decrement), y = b(t, R.Increment);
106
+ return /* @__PURE__ */ e.createElement(z, {
107
+ className: l,
108
+ "aria-label": E,
109
+ value: m,
110
+ onChange: c,
111
+ minValue: 0,
112
+ maxValue: s,
113
+ step: 1,
114
+ isDisabled: a,
115
+ isReadOnly: C,
116
+ onBlur: _,
117
+ onFocus: d
118
+ }, /* @__PURE__ */ e.createElement(J, {
119
+ ref: G,
120
+ id: u,
121
+ "aria-describedby": F,
122
+ className: n,
123
+ inputMode: "numeric"
124
+ }), y, g);
125
+ }, Ce = ({ children: t, className: n }) => /* @__PURE__ */ e.createElement(w, {
126
+ slot: "decrement",
127
+ className: n
128
+ }, t), ge = ({ children: t, className: n }) => /* @__PURE__ */ e.createElement(w, {
129
+ slot: "increment",
130
+ className: n
131
+ }, t), S = ({ children: t, className: n, ...l }) => {
132
+ 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 = x(null);
133
+ j(() => {
134
+ var g;
135
+ (g = u.current) == null || g.focus();
136
+ }, m);
137
+ const F = b(t, S.Input), _ = b(t, S.Label), G = V((g) => {
138
+ s(g ? 1 : 0);
139
+ }, [
140
+ s
141
+ ]);
142
+ return /* @__PURE__ */ e.createElement(Q, {
143
+ inputRef: u,
144
+ id: f,
145
+ "aria-describedby": d,
146
+ isSelected: r > 0,
147
+ onChange: G,
148
+ isDisabled: i,
149
+ isReadOnly: E,
150
+ onBlur: a,
151
+ onFocus: C
152
+ }, /* @__PURE__ */ e.createElement(W, {
153
+ className: n
154
+ }, ({ isSelected: g, isHovered: y }) => /* @__PURE__ */ e.createElement(e.Fragment, null, L(F, {
155
+ isSelected: g,
156
+ isHovered: y
157
+ }), L(_, {
158
+ label: c
159
+ }))));
160
+ }, fe = ({ className: t, ...n }) => {
161
+ const { label: l } = n;
162
+ return /* @__PURE__ */ e.createElement("span", {
163
+ className: t
164
+ }, l);
165
+ }, k = ({ children: t, className: n, ...l }) => {
166
+ const { guestCount: r, guests: s, errorsByIndex: m, formView: c, onGuestFieldChange: i } = l, { disabled: E, readOnly: a } = D(), C = v(() => ({
167
+ ...c,
168
+ fields: c.fields.map((d) => ({
169
+ ...d,
170
+ properties: {
171
+ ...d.properties,
172
+ disabled: !!(E || d.properties.disabled),
173
+ readOnly: !!(a || d.properties.readOnly)
174
+ }
175
+ }))
176
+ }), [
177
+ c,
178
+ E,
179
+ a
180
+ ]), f = b(t, k.Guest);
181
+ return r ? /* @__PURE__ */ e.createElement("div", {
182
+ className: n
183
+ }, Array.from({
184
+ length: r
185
+ }, (d, u) => L(f, {
186
+ key: u,
187
+ index: u,
188
+ formView: C,
189
+ values: s[u] ?? pe,
190
+ errors: m[u] ?? de,
191
+ onFieldChange: i(u)
192
+ }))) : null;
193
+ }, Fe = ({ className: t, ...n }) => {
194
+ const { index: l, formView: r, values: s, errors: m, onFieldChange: c } = n, i = U(), E = P(), a = H(), { validateFields: C } = K();
195
+ return /* @__PURE__ */ e.createElement("div", {
196
+ className: t,
197
+ "data-hook": `guest-${l}`
198
+ }, /* @__PURE__ */ e.createElement(Z, {
199
+ form: r,
200
+ formSchema: i,
201
+ values: s,
202
+ errors: m,
203
+ validateFields: C,
204
+ onFieldChange: c,
205
+ fields: E,
206
+ fieldActions: a
207
+ }));
208
+ };
209
+ R.Decrement = Ce;
210
+ R.Increment = ge;
211
+ S.Input = te;
212
+ S.Label = fe;
213
+ k.Guest = Fe;
214
+ o.Label = Ee;
215
+ o.GuestCount = R;
216
+ o.GuestToggle = S;
217
+ o.Guests = k;
218
+ const Ge = "_container_11veo_1", be = "_countGroup_11veo_8", _e = "_increment_11veo_28", Ie = "_decrement_11veo_29", O = {
219
+ container: Ge,
220
+ countGroup: be,
221
+ increment: _e,
222
+ decrement: Ie
223
+ }, Ne = () => {
224
+ const t = ue({
225
+ globalClasses: ce,
226
+ moduleClasses: se
227
+ });
228
+ return /* @__PURE__ */ e.createElement(o, {
229
+ className: O.container
230
+ }, /* @__PURE__ */ e.createElement(o.Label, {
231
+ className: T(oe, B.label)
232
+ }), /* @__PURE__ */ e.createElement(o.GuestCount, {
233
+ className: B.innerInput,
234
+ groupClassName: T(re, B.input, O.countGroup)
235
+ }, /* @__PURE__ */ e.createElement(o.GuestCount.Increment, {
236
+ className: O.increment
237
+ }, /* @__PURE__ */ e.createElement(M, {
238
+ style: {
239
+ transform: "rotate(180deg)"
240
+ }
241
+ })), /* @__PURE__ */ e.createElement(o.GuestCount.Decrement, {
242
+ className: O.decrement
243
+ }, /* @__PURE__ */ e.createElement(M, null))), /* @__PURE__ */ e.createElement(o.GuestToggle, {
244
+ className: T(ae, B.checkbox)
245
+ }, /* @__PURE__ */ e.createElement(o.GuestToggle.Input, {
246
+ className: t
247
+ }), /* @__PURE__ */ e.createElement(o.GuestToggle.Label, {
248
+ className: le
249
+ })), /* @__PURE__ */ e.createElement(o.Guests, {
250
+ className: O.container
251
+ }, /* @__PURE__ */ e.createElement(o.Guests.Guest, null)));
252
+ }, ke = () => /* @__PURE__ */ e.createElement(Ne, null);
253
+ export {
254
+ ke as EventsRepeaterRAC
255
+ };
@@ -1,10 +1,10 @@
1
1
  import t from "react";
2
2
  import { RicosViewer as c } from "@wix/ricos/viewer";
3
3
  import r from "classnames";
4
- import { R as a, s as o } from "./radio-group-field-rac.module-WxU5zxvM.js";
4
+ import { R as a, s as o } from "./radio-group-field-rac.module-emin6sSc.js";
5
5
  import { E as m } from "./error-icon-hZxQ6DEy.js";
6
- import { s } from "./field-rac.module-Cac83bU5.js";
7
- import { z as i, R as E, S as p, U as R, T as _, q as L, j as O } from "./form-element-classes-DDKCTFQj.js";
6
+ import { s } from "./field-rac.module-DjmaTYkc.js";
7
+ import { z as i, Q as E, R as p, T as R, S as _, p as L, i as O } from "./form-element-classes-BXNs5k3q.js";
8
8
  const e = ({ children: n }) => /* @__PURE__ */ t.createElement(a, null, n);
9
9
  e.Label = a.Label;
10
10
  e.Options = a.Options;
@@ -1,5 +1,5 @@
1
1
  import t, { createContext as m, useContext as M } from "react";
2
- import { ai as c, af as i, ab as f, T as x, U as h } from "./form-C6WwBcGP.js";
2
+ import { ai as c, af as i, ab as f, T as x, U as h } from "./form-BpHElSwH.js";
3
3
  const b = ({ className: r, children: e }) => {
4
4
  const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = f();
5
5
  return s ? /* @__PURE__ */ t.createElement("div", {
@@ -1,4 +1,4 @@
1
- import { ai as m, R as d, q as p, af as D, as as B } from "./form-C6WwBcGP.js";
1
+ import { ai as m, R as d, q as p, af as D, as as B } from "./form-BpHElSwH.js";
2
2
  import l from "react";
3
3
  import { f as L } from "./find-child-C60k4CxG.js";
4
4
  import { sdk as R } from "@wix/image-kit";
@@ -0,0 +1,23 @@
1
+ const o = "_label_10aij_1", e = "_requiredMark_10aij_11", t = "_input_10aij_16", n = "_inputGroup_10aij_17", c = "_innerInput_10aij_129", _ = "_dropdownTrigger_10aij_177", r = "_dropdownIcon_10aij_187", i = "_dropdownPopover_10aij_206", p = "_selectPopover_10aij_210", s = "_selectOption_10aij_237", u = "_selectOptionWithoutFocusRing_10aij_261", d = "_description_10aij_267", a = "_error_10aij_283", l = "_checkbox_10aij_302", j = "_checkboxInput_10aij_325", h = "_checkboxInputSelected_10aij_364", b = "_checkboxInputHover_10aij_368", k = "_uploadButton_10aij_418", I = {
2
+ label: o,
3
+ requiredMark: e,
4
+ input: t,
5
+ inputGroup: n,
6
+ innerInput: c,
7
+ dropdownTrigger: _,
8
+ dropdownIcon: r,
9
+ dropdownPopover: i,
10
+ selectPopover: p,
11
+ selectOption: s,
12
+ selectOptionWithoutFocusRing: u,
13
+ description: d,
14
+ error: a,
15
+ checkbox: l,
16
+ checkboxInput: j,
17
+ checkboxInputSelected: h,
18
+ checkboxInputHover: b,
19
+ uploadButton: k
20
+ };
21
+ export {
22
+ I as s
23
+ };
@@ -1,14 +1,14 @@
1
- import t, { useState as Q, useRef as V, useMemo as oe, useEffect as se, useCallback as z, createContext as pe, useContext as fe } from "react";
1
+ import t, { useState as H, useRef as V, useMemo as oe, useEffect as se, useCallback as z, createContext as pe, useContext as fe } from "react";
2
2
  import { RicosViewer as Ee } from "@wix/ricos/viewer";
3
- import T from "classnames";
4
- import { ae as Fe, as as ie, an as ge, i as he, aq as xe, e as re, ar as be, af as ce, ai as q, ak as Ce } from "./form-C6WwBcGP.js";
3
+ import B from "classnames";
4
+ import { ae as Fe, as as ie, an as ge, i as he, aq as xe, e as re, ar as be, af as ce, ai as q, ak as Ce } from "./form-BpHElSwH.js";
5
5
  import { E as Le } from "./error-icon-hZxQ6DEy.js";
6
- import { s as I } from "./field-rac.module-Cac83bU5.js";
7
- import { z as ne, R as De, a3 as Ne, j as ae, q as le } from "./form-element-classes-DDKCTFQj.js";
6
+ import { s as I } from "./field-rac.module-DjmaTYkc.js";
7
+ import { z as ne, Q as De, a4 as Ne, i as ae, p as le } from "./form-element-classes-BXNs5k3q.js";
8
8
  import { f as h, a as P } from "./find-child-C60k4CxG.js";
9
- import { b as ve, a as ye, D as _e, E as Re } from "./field-error-headless-DQZ5XAdn.js";
10
- import { L as Te } from "./field-label-headless-DoxfHHaj.js";
11
- import { DropZone as Be, Text as Se, FileTrigger as Me, Button as de, ProgressBar as Ie } from "react-aria-components";
9
+ import { b as ve, a as ye, D as _e, E as Te } from "./field-error-headless-C5ZsFUKv.js";
10
+ import { L as Be } from "./field-label-headless-CS5OYsiI.js";
11
+ import { DropZone as Re, Text as Se, FileTrigger as Me, Button as de, ProgressBar as Ie } from "react-aria-components";
12
12
  const we = {
13
13
  Video: "video/*",
14
14
  Image: "image/*",
@@ -43,7 +43,7 @@ const we = {
43
43
  };
44
44
  };
45
45
  function Ze({ valueSliderLimit: e, value: r, explanationText: n, target: o, onChange: i, uploadFileFormats: d, onBlur: x, onFilesCleared: D }) {
46
- const [a, s] = Q(ke(r)), [b, m] = Q(r || []), [c, N] = Q(), v = Ae(o), { t: E } = ie(), k = ge().includes(he.BUTTONS_HOVER), { setFormStatus: y } = xe(), S = V(!1), _ = V(i);
46
+ const [a, s] = H(ke(r)), [b, m] = H(r || []), [c, N] = H(), v = Ae(o), { t: E } = ie(), k = ge().includes(he.BUTTONS_HOVER), { setFormStatus: y } = xe(), S = V(!1), _ = V(i);
47
47
  _.current = i;
48
48
  const C = oe(() => a.some((u) => u.state === "uploading"), [
49
49
  a
@@ -102,7 +102,7 @@ function Ze({ valueSliderLimit: e, value: r, explanationText: n, target: o, onCh
102
102
  }));
103
103
  return;
104
104
  }
105
- const p = Array.from(F).reduce((f, L) => (a.some((Y) => Y.file.name === L.name) || f.push({
105
+ const p = Array.from(F).reduce((f, L) => (a.some((W) => W.file.name === L.name) || f.push({
106
106
  file: L,
107
107
  state: "uploading"
108
108
  }), f), []);
@@ -124,10 +124,10 @@ function Ze({ valueSliderLimit: e, value: r, explanationText: n, target: o, onCh
124
124
  }
125
125
  }, $ = () => {
126
126
  c && N(void 0), x();
127
- }, K = d.map((F) => we[F]).join(), W = z(() => {
127
+ }, K = d.map((F) => we[F]).join(), Q = z(() => {
128
128
  s([]), m([]);
129
129
  }, []);
130
- return be(W), {
130
+ return be(Q), {
131
131
  files: a,
132
132
  limitError: c,
133
133
  hover: k,
@@ -163,7 +163,7 @@ function Z() {
163
163
  }
164
164
  const A = ({ children: e, className: r }) => {
165
165
  const { ariaDescribedBy: n } = ce(), { disabled: o, hasError: i } = q(), { handleFileChange: d } = Z(), x = h(e, A.Title), D = h(e, A.Subtitle), a = h(e, A.Button);
166
- return /* @__PURE__ */ t.createElement(Be, {
166
+ return /* @__PURE__ */ t.createElement(Re, {
167
167
  "aria-describedby": n,
168
168
  className: r,
169
169
  "data-invalid": i,
@@ -198,7 +198,7 @@ const A = ({ children: e, className: r }) => {
198
198
  limitReached: n
199
199
  }));
200
200
  }, J = ({ className: e, children: r, "aria-roledescription": n }) => {
201
- const { ariaDescribedBy: o, inputId: i, labelId: d, errorId: x } = ce(), { disabled: D, required: a, onFocus: s, hasError: b, errorMessage: m } = q(), { handleFileChange: c, accept: N, multiple: v, buttonRef: E, handleBlur: B, limitError: k, files: y } = Z(), S = (y == null ? void 0 : y.some((C) => C.errorMessage)) ?? !1, _ = !!(b || m || k || S);
201
+ const { ariaDescribedBy: o, inputId: i, labelId: d, errorId: x } = ce(), { disabled: D, required: a, onFocus: s, hasError: b, errorMessage: m } = q(), { handleFileChange: c, accept: N, multiple: v, buttonRef: E, handleBlur: R, limitError: k, files: y } = Z(), S = (y == null ? void 0 : y.some((C) => C.errorMessage)) ?? !1, _ = !!(b || m || k || S);
202
202
  return /* @__PURE__ */ t.createElement(Me, {
203
203
  acceptedFileTypes: N ? N.split(",") : void 0,
204
204
  allowsMultiple: v,
@@ -225,7 +225,7 @@ const A = ({ children: e, className: r }) => {
225
225
  isDisabled: D,
226
226
  className: e,
227
227
  onFocus: s,
228
- onBlur: B
228
+ onBlur: R
229
229
  }, r));
230
230
  }, ze = ({ className: e }) => {
231
231
  const { buttonText: r } = q();
@@ -237,8 +237,8 @@ J.Text = ze;
237
237
  A.Title = Ue;
238
238
  A.Subtitle = Oe;
239
239
  A.Button = J;
240
- const R = ({ children: e, className: r, ...n }) => {
241
- const { file: o, index: i } = n, d = o.file.name, x = h(e, R.Name), D = h(e, R.Remove), a = h(e, R.Spinner), s = h(e, R.Error);
240
+ const T = ({ children: e, className: r, ...n }) => {
241
+ const { file: o, index: i } = n, d = o.file.name, x = h(e, T.Name), D = h(e, T.Remove), a = h(e, T.Spinner), s = h(e, T.Error);
242
242
  return /* @__PURE__ */ t.createElement("div", {
243
243
  className: r
244
244
  }, P(x, {
@@ -290,10 +290,10 @@ const R = ({ children: e, className: r, ...n }) => {
290
290
  className: e,
291
291
  isIndeterminate: !0
292
292
  }, n);
293
- R.Name = Pe;
294
- R.Remove = Ve;
295
- R.Spinner = qe;
296
- R.Error = ue;
293
+ T.Name = Pe;
294
+ T.Remove = Ve;
295
+ T.Spinner = qe;
296
+ T.Error = ue;
297
297
  ue.Text = ve;
298
298
  const X = ({ children: e, className: r }) => {
299
299
  const { files: n } = Z(), o = h(e, X.File);
@@ -305,12 +305,12 @@ const X = ({ children: e, className: r }) => {
305
305
  index: d
306
306
  })));
307
307
  };
308
- X.File = R;
308
+ X.File = T;
309
309
  const G = (e) => e.file.name, l = ({ children: e }) => {
310
310
  const { id: r, value: n, onChange: o, uploadFileFormats: i, valueSliderLimit: d, target: x, explanationText: D, onBlur: a, hasError: s, errorMessage: b, FieldLayout: m } = q(), c = V(null), N = V({}), v = z(() => {
311
311
  var L;
312
312
  (L = c.current) == null || L.focus();
313
- }, []), { files: E, limitError: B, hover: k, getExplanationText: y, handleBlur: S, handleChange: _, handleDelete: C, accept: U } = Ze({
313
+ }, []), { files: E, limitError: R, hover: k, getExplanationText: y, handleBlur: S, handleChange: _, handleDelete: C, accept: U } = Ze({
314
314
  valueSliderLimit: d,
315
315
  value: n,
316
316
  explanationText: D,
@@ -321,8 +321,8 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
321
321
  onFilesCleared: v
322
322
  }), M = z((L) => {
323
323
  var te;
324
- const ee = E[L], Y = G(ee);
325
- E.length > 1 && ((te = (E.filter((H) => G(H) !== Y).map((H) => N.current[G(H)]).find(Boolean) ?? c).current) == null || te.focus()), C(L);
324
+ const ee = E[L], W = G(ee);
325
+ E.length > 1 && ((te = (E.filter((Y) => G(Y) !== W).map((Y) => N.current[G(Y)]).find(Boolean) ?? c).current) == null || te.focus()), C(L);
326
326
  }, [
327
327
  C,
328
328
  E
@@ -336,7 +336,7 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
336
336
  multiple: O,
337
337
  getExplanationText: y,
338
338
  hover: k,
339
- limitError: B,
339
+ limitError: R,
340
340
  buttonRef: c,
341
341
  fileRemoveButtonRefs: N
342
342
  }), [
@@ -349,8 +349,8 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
349
349
  O,
350
350
  y,
351
351
  k,
352
- B
353
- ]), K = h(e, l.Label), W = h(e, l.DropZone), F = h(e, l.Button), u = h(e, l.Explanation), g = h(e, l.Files), p = h(e, l.Description), f = h(e, l.Error);
352
+ R
353
+ ]), K = h(e, l.Label), Q = h(e, l.DropZone), F = h(e, l.Button), u = h(e, l.Explanation), g = h(e, l.Files), p = h(e, l.Description), f = h(e, l.Error);
354
354
  return Ce(() => {
355
355
  var L;
356
356
  (L = c.current) == null || L.focus();
@@ -359,10 +359,10 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
359
359
  }, /* @__PURE__ */ t.createElement(m, {
360
360
  fieldId: r,
361
361
  renderLabel: () => K,
362
- renderInput: () => W ?? F,
362
+ renderInput: () => Q ?? F,
363
363
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, P(f, {
364
- hasError: !!(s || B),
365
- errorMessage: B ?? b
364
+ hasError: !!(s || R),
365
+ errorMessage: R ?? b
366
366
  }), p, u, g)
367
367
  }));
368
368
  }, je = ({ className: e }) => {
@@ -371,13 +371,13 @@ const G = (e) => e.file.name, l = ({ children: e }) => {
371
371
  className: e
372
372
  }, n) : null;
373
373
  };
374
- l.Label = Te;
374
+ l.Label = Be;
375
375
  l.DropZone = A;
376
376
  l.Button = J;
377
377
  l.Explanation = je;
378
378
  l.Files = X;
379
379
  l.Description = _e;
380
- l.Error = Re;
380
+ l.Error = Te;
381
381
  const $e = (e) => /* @__PURE__ */ t.createElement("svg", {
382
382
  viewBox: "0 0 24 24",
383
383
  width: 24,
@@ -396,7 +396,7 @@ const $e = (e) => /* @__PURE__ */ t.createElement("svg", {
396
396
  ...e
397
397
  }, /* @__PURE__ */ t.createElement("path", {
398
398
  d: "M12,21 C7.02943725,21 3,16.9705627 3,12 C3,7.02943725 7.02943725,3 12,3 C16.9705627,3 21,7.02943725 21,12 C21,16.9705627 16.9705627,21 12,21 Z M12,20 C16.418278,20 20,16.418278 20,12 C20,7.581722 16.418278,4 12,4 C7.581722,4 4,7.581722 4,12 C4,16.418278 7.581722,20 12,20 Z M12.7287834,7.27532214 C12.9203342,7.46687299 13.0199347,7.73174979 13.0020527,8.00205275 L13.0020527,12.0020527 C13.0199347,12.2723557 12.9203342,12.5372325 12.7287834,12.7287834 C12.5372325,12.9203342 12.2723557,13.0199347 12.0020527,13.0020527 C11.7317498,13.0199347 11.466873,12.9203342 11.2753221,12.7287834 C11.0837713,12.5372325 10.9841708,12.2723557 11.0020527,12.0020527 L11.0020527,8.00205275 C10.9841708,7.73174979 11.0837713,7.46687299 11.2753221,7.27532214 C11.466873,7.08377129 11.7317498,6.98417081 12.0020527,7.00205275 C12.2723557,6.98417081 12.5372325,7.08377129 12.7287834,7.27532214 Z M12.7287834,15.2753221 C12.9203342,15.466873 13.0199347,15.7317498 13.0020527,16.0020527 C13.0199347,16.2723557 12.9203342,16.5372325 12.7287834,16.7287834 C12.5372325,16.9203342 12.2723557,17.0199347 12.0020527,17.0020527 C11.7317498,17.0199347 11.466873,16.9203342 11.2753221,16.7287834 C11.0837713,16.5372325 10.9841708,16.2723557 11.0020527,16.0020527 C10.9841708,15.7317498 11.0837713,15.466873 11.2753221,15.2753221 C11.466873,15.0837713 11.7317498,14.9841708 12.0020527,15.0020527 C12.2723557,14.9841708 12.5372325,15.0837713 12.7287834,15.2753221 Z"
399
- })), We = (e) => /* @__PURE__ */ t.createElement("svg", {
399
+ })), Qe = (e) => /* @__PURE__ */ t.createElement("svg", {
400
400
  viewBox: "0 0 24 24",
401
401
  width: 24,
402
402
  height: 24,
@@ -405,7 +405,7 @@ const $e = (e) => /* @__PURE__ */ t.createElement("svg", {
405
405
  ...e
406
406
  }, /* @__PURE__ */ t.createElement("path", {
407
407
  d: "M17,17 C17,18.6568542 15.6568542,20 14,20 L9,20 C7.34314575,20 6,18.6568542 6,17 L6,7 L5,7 L5,6 L18,6 L18,7 L17,7 L17,17 Z M9,9 L10,9 L10,16 L9,16 L9,9 Z M11,9 L12,9 L12,16 L11,16 L11,9 Z M13,9 L14,9 L14,16 L13,16 L13,9 Z M7,17 C7,18.1045695 7.8954305,19 9,19 L14,19 C15.1045695,19 16,18.1045695 16,17 L16,7 L7,7 L7,17 Z M13,6 L13,5 L10,5 L10,6 L9,6 L9,5 C9,4.44771525 9.44771525,4 10,4 L13,4 C13.5522847,4 14,4.44771525 14,5 L14,6 L13,6 Z"
408
- })), Ye = () => {
408
+ })), We = () => {
409
409
  const r = "calc(50% - 2px)";
410
410
  return /* @__PURE__ */ t.createElement("svg", {
411
411
  fill: "none",
@@ -437,9 +437,9 @@ const $e = (e) => /* @__PURE__ */ t.createElement("svg", {
437
437
  values: "0;360",
438
438
  repeatCount: "indefinite"
439
439
  })));
440
- }, He = "_explanation_16me0_1", Qe = "_files_16me0_5", Ge = "_file_16me0_5", Je = "_fileName_16me0_24", Xe = "_removeButton_16me0_32", et = "_spinner_16me0_72", tt = "_fileError_16me0_88", w = {
441
- explanation: He,
442
- files: Qe,
440
+ }, Ye = "_explanation_16me0_1", He = "_files_16me0_5", Ge = "_file_16me0_5", Je = "_fileName_16me0_24", Xe = "_removeButton_16me0_32", et = "_spinner_16me0_72", tt = "_fileError_16me0_88", w = {
441
+ explanation: Ye,
442
+ files: He,
443
443
  file: Ge,
444
444
  fileName: Je,
445
445
  removeButton: Xe,
@@ -451,16 +451,16 @@ const $e = (e) => /* @__PURE__ */ t.createElement("svg", {
451
451
  }), nt = () => {
452
452
  const { t: e } = ie();
453
453
  return /* @__PURE__ */ t.createElement(l, null, /* @__PURE__ */ t.createElement(l.Label, {
454
- className: T(ne, I.label)
454
+ className: B(ne, I.label)
455
455
  }, /* @__PURE__ */ t.createElement(l.Label.Required, {
456
- className: T(De, I.requiredMark)
456
+ className: B(De, I.requiredMark)
457
457
  })), /* @__PURE__ */ t.createElement(l.Button, {
458
- className: T(Ne, I.uploadButton),
458
+ className: B(Ne, I.uploadButton),
459
459
  "aria-roledescription": e("file-upload.aria-roledescription")
460
460
  }, /* @__PURE__ */ t.createElement($e, null), /* @__PURE__ */ t.createElement(l.Button.Text, null)), /* @__PURE__ */ t.createElement(l.Explanation, {
461
- className: T(ae, I.description, w.explanation)
461
+ className: B(ae, I.description, w.explanation)
462
462
  }), /* @__PURE__ */ t.createElement(l.Files, {
463
- className: T(ne, w.files)
463
+ className: B(ne, w.files)
464
464
  }, /* @__PURE__ */ t.createElement(l.Files.File, {
465
465
  className: w.file
466
466
  }, /* @__PURE__ */ t.createElement(l.Files.File.Name, {
@@ -468,15 +468,15 @@ const $e = (e) => /* @__PURE__ */ t.createElement("svg", {
468
468
  }), /* @__PURE__ */ t.createElement(l.Files.File.Spinner, {
469
469
  className: w.spinner,
470
470
  "aria-label": e("file-upload.file.uploading-spinner.aria-label")
471
- }, /* @__PURE__ */ t.createElement(Ye, null)), /* @__PURE__ */ t.createElement(l.Files.File.Remove, {
471
+ }, /* @__PURE__ */ t.createElement(We, null)), /* @__PURE__ */ t.createElement(l.Files.File.Remove, {
472
472
  className: w.removeButton,
473
473
  "aria-label": e("file-upload.delete-file.aria-label")
474
- }, /* @__PURE__ */ t.createElement(We, null)), /* @__PURE__ */ t.createElement(l.Files.File.Error, {
475
- className: T(le, I.error, w.fileError)
474
+ }, /* @__PURE__ */ t.createElement(Qe, null)), /* @__PURE__ */ t.createElement(l.Files.File.Error, {
475
+ className: B(le, I.error, w.fileError)
476
476
  }, /* @__PURE__ */ t.createElement(Ke, null), /* @__PURE__ */ t.createElement(l.Files.File.Error.Text, null)))), /* @__PURE__ */ t.createElement(l.Description, {
477
- className: T(ae, I.description)
477
+ className: B(ae, I.description)
478
478
  }, rt), /* @__PURE__ */ t.createElement(l.Error, {
479
- className: T(le, I.error)
479
+ className: B(le, I.error)
480
480
  }, /* @__PURE__ */ t.createElement(Le, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)));
481
481
  }, Ft = () => /* @__PURE__ */ t.createElement(nt, null);
482
482
  export {
@@ -1,21 +1,21 @@
1
- import t, { useMemo as _ } from "react";
2
- import { RicosViewer as A } from "@wix/ricos/viewer";
1
+ import t, { useMemo as D } from "react";
2
+ import { RicosViewer as _ } from "@wix/ricos/viewer";
3
3
  import u from "classnames";
4
- import { ai as C, ab as I, af as P } from "./form-C6WwBcGP.js";
4
+ import { ai as C, ab as I, af as P } from "./form-BpHElSwH.js";
5
5
  import { f as c, a as O } from "./find-child-C60k4CxG.js";
6
6
  import { f as S } from "./format-currency-BwShJ9vM.js";
7
- import { D as x, E as N } from "./field-error-headless-DQZ5XAdn.js";
8
- import { L as R } from "./field-label-headless-DoxfHHaj.js";
9
- import { s as L } from "./field-rac.module-Cac83bU5.js";
10
- import { z as v, B, j as M } from "./form-element-classes-DDKCTFQj.js";
7
+ import { D as x, E as N } from "./field-error-headless-C5ZsFUKv.js";
8
+ import { L as R } from "./field-label-headless-CS5OYsiI.js";
9
+ import { s as L } from "./field-rac.module-DjmaTYkc.js";
10
+ import { z as v, A as M, i as g } from "./form-element-classes-BXNs5k3q.js";
11
11
  const e = ({ children: r }) => {
12
12
  var p;
13
- const { id: n, validation: a, FieldLayout: l } = C(), { currency: o, regionalFormat: m } = I(), s = _(() => {
13
+ const { id: n, validation: a, FieldLayout: l } = C(), { currency: o, regionalFormat: m } = I(), s = D(() => {
14
14
  var d, f, E;
15
15
  return (E = (f = (d = a == null ? void 0 : a.predefined) == null ? void 0 : d.paymentOptions) == null ? void 0 : f.products) == null ? void 0 : E[0];
16
16
  }, [
17
17
  a
18
- ]), i = (p = s == null ? void 0 : s.fixedPriceOptions) == null ? void 0 : p.price, y = c(r, e.Label), F = c(r, e.Amount), b = c(r, e.Description), D = c(r, e.Error);
18
+ ]), i = (p = s == null ? void 0 : s.fixedPriceOptions) == null ? void 0 : p.price, y = c(r, e.Label), F = c(r, e.Amount), b = c(r, e.Description), A = c(r, e.Error);
19
19
  return /* @__PURE__ */ t.createElement(l, {
20
20
  fieldId: n,
21
21
  renderLabel: () => y,
@@ -24,9 +24,9 @@ const e = ({ children: r }) => {
24
24
  currencyCode: o == null ? void 0 : o.code,
25
25
  locale: m
26
26
  }),
27
- renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, b)
27
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, A, b)
28
28
  });
29
- }, g = ({ className: r, ...n }) => {
29
+ }, B = ({ className: r, ...n }) => {
30
30
  const { price: a, currencyCode: l, locale: o } = n, { inputId: m, ariaDescribedBy: s } = P(), i = S({
31
31
  amount: a,
32
32
  currency: l,
@@ -42,21 +42,21 @@ const e = ({ children: r }) => {
42
42
  className: r
43
43
  }, null);
44
44
  e.Label = T;
45
- e.Amount = g;
45
+ e.Amount = B;
46
46
  e.Description = x;
47
47
  e.Error = N;
48
48
  const V = "_value_19v7w_1", w = {
49
49
  value: V
50
- }, j = ({ content: r, locale: n }) => /* @__PURE__ */ t.createElement(A, {
50
+ }, k = ({ content: r, locale: n }) => /* @__PURE__ */ t.createElement(_, {
51
51
  content: r,
52
52
  locale: n
53
- }), k = () => /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
53
+ }), z = () => /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
54
54
  className: u(v, L.label)
55
55
  }), /* @__PURE__ */ t.createElement(e.Amount, {
56
- className: u(B, w.value)
56
+ className: u(M, w.value)
57
57
  }), /* @__PURE__ */ t.createElement(e.Description, {
58
- className: u(M, L.description)
59
- }, j)), X = () => /* @__PURE__ */ t.createElement(k, null);
58
+ className: u(g, L.description)
59
+ }, k)), X = () => /* @__PURE__ */ t.createElement(z, null);
60
60
  export {
61
61
  X as FixedPaymentRAC
62
62
  };