@wix/form-elements 1.166.0 → 1.167.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-BXpWILhi.js → appointment-rac-BbXyKTd7.js} +72 -72
- package/dist/component/{bookings-address-rac-Cf--TgsR.js → bookings-address-rac-VJkR_U9L.js} +1 -1
- package/dist/component/{bookings-email-rac-BtB8owOl.js → bookings-email-rac-_EupwXpQ.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CBFDjB_k.js → bookings-first-name-rac-DTZixHYj.js} +1 -1
- package/dist/component/{bookings-header-rac-CrJORcuL.js → bookings-header-rac-BKbKTv5g.js} +1 -1
- package/dist/component/{bookings-last-name-rac-erG4ldFt.js → bookings-last-name-rac-BDy860-C.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Di4qLQUH.js → bookings-login-bar-rac-DgNP-YNZ.js} +5 -5
- package/dist/component/{bookings-phone-rac-DdM48Obh.js → bookings-phone-rac-B_I6n96b.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-Cl8zOiU1.js → bookings-rich-text-rac-prYPbIiz.js} +1 -1
- package/dist/component/{checkbox-field-rac-CzIDF6aj.js → checkbox-field-rac-C-4PXuxG.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-B8tsQCwV.js → checkbox-group-field-headless-D16bAcaq.js} +35 -35
- package/dist/component/{checkbox-group-field-rac-h02K8CPA.js → checkbox-group-field-rac-GUQ5dO_s.js} +4 -4
- package/dist/component/{checkbox-group-rac-GfebLnuS.js → checkbox-group-rac-Bl6xL5-H.js} +1 -1
- package/dist/component/{checkbox-rac-Dn24U4oG.js → checkbox-rac-Blg0KVyP.js} +1 -1
- package/dist/component/{contacts-address-rac-CtVtIwOV.js → contacts-address-rac-BfOhCAj8.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CK2odpbJ.js → contacts-birthdate-rac-DYBvDh62.js} +1 -1
- package/dist/component/{contacts-company-rac-ue8vAn9A.js → contacts-company-rac-DIJr7zjA.js} +1 -1
- package/dist/component/{contacts-email-rac-lleErjYl.js → contacts-email-rac-DjmqELhC.js} +1 -1
- package/dist/component/{contacts-first-name-rac-D5wtz4Z1.js → contacts-first-name-rac-DGNll7gw.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Cj9GKWBY.js → contacts-last-name-rac-BJ8AZYQN.js} +1 -1
- package/dist/component/{contacts-phone-rac-BP6unckw.js → contacts-phone-rac-BC-QtpEN.js} +1 -1
- package/dist/component/{contacts-position-rac-XjUdZglr.js → contacts-position-rac-BQia__74.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Dnpbgw5C.js → contacts-subscribe-rac-CTFptz01.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-pNFMOZl6.js → contacts-tax-id-rac-Cy72Jouc.js} +1 -1
- package/dist/component/{date-availability-BRA7k6ep.js → date-availability-BC6updcS.js} +1 -1
- package/dist/component/{date-input-field-rac-B15XH-D_.js → date-input-field-rac-b_T1yf8D.js} +38 -38
- package/dist/component/{date-input-rac-B7XvsFeB.js → date-input-rac-KkRyWRP_.js} +1 -1
- package/dist/component/{date-picker-field-rac-BNgKcgVi.js → date-picker-field-rac-BLWVJbTJ.js} +6 -6
- package/dist/component/{date-picker-rac-P54cHP86.js → date-picker-rac-DKCQza7v.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Dt-jUznP.js → date-time-input-field-rac-CZxZW6fz.js} +45 -45
- package/dist/component/{date-time-input-rac-DHmOLCvg.js → date-time-input-rac-DQ-iBwmr.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Bo2ZRcJc.js → dext-checkbox-group-rac-kp1Jbwt-.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BdA2i9PR.js → dext-checkbox-rac-CBm9cRUz.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BME9ZDFy.js → dext-date-picker-rac-DsVKWsRy.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-owEU8r5-.js → dext-date-time-input-rac-CO26-8Qo.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BAeN43fo.js → dext-dropdown-rac-eRzu2C-y.js} +1 -1
- package/dist/component/{dext-email-rac-D7HBfCis.js → dext-email-rac-DDrZzE_G.js} +1 -1
- package/dist/component/{dext-number-input-rac-DEB2ji5S.js → dext-number-input-rac-Dj7sInLk.js} +1 -1
- package/dist/component/{dext-phone-rac-TOfFCmhD.js → dext-phone-rac-g8M77F7m.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DGsQLres.js → dext-radio-group-rac-BjhygC0R.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CFcRQeE7.js → dext-rating-input-rac-BraNjvyA.js} +1 -1
- package/dist/component/{dext-tags-rac-CGsaKVfb.js → dext-tags-rac-B5mAIuDi.js} +2 -2
- package/dist/component/{dext-text-area-rac-BqbLXOdt.js → dext-text-area-rac-D_YBnaWi.js} +1 -1
- package/dist/component/{dext-text-input-rac-CpXfQV53.js → dext-text-input-rac-BzeWH1jv.js} +1 -1
- package/dist/component/{dext-url-input-rac-Bbm3_OG9.js → dext-url-input-rac-Cn0h_vx3.js} +1 -1
- package/dist/component/{donation-rac-DvBAOz6H.js → donation-rac-CQRdHxWh.js} +46 -46
- package/dist/component/{dropdown-field-rac-BW0UDoBO.js → dropdown-field-rac-C7LL0W5Z.js} +3 -3
- package/dist/component/{dropdown-rac-B6ZD6Qgb.js → dropdown-rac-Nb2VyJ0x.js} +1 -1
- package/dist/component/{ecom-address-rac-Dnv9Yswd.js → ecom-address-rac-_c2YIIwg.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BVqvUwn4.js → ecom-subscription-checkbox-rac-Bma7TAVj.js} +2 -2
- package/dist/component/{email-input-field-rac-CuaMcfZR.js → email-input-field-rac-2E2tEaS5.js} +47 -47
- package/dist/component/events-repeater-rac-COWHYBFD.js +280 -0
- package/dist/component/{events-rsvp-rac-D4hSrIsE.js → events-rsvp-rac-CXp8j19Y.js} +3 -3
- package/dist/component/{field-error-headless-NGaTm3dF.js → field-error-headless-S-ugOQQX.js} +7 -7
- package/dist/component/{field-label-headless-Bx1UjEcp.js → field-label-headless-_n4I0_tX.js} +14 -14
- package/dist/component/{file-upload-rac-oOnemmUg.js → file-upload-rac-DCH_iwDg.js} +79 -79
- package/dist/component/{fixed-payment-rac-C9YkIvQO.js → fixed-payment-rac-CYkKJUfM.js} +14 -14
- package/dist/component/{form-sH9m0ReT.js → form-jK8ezTss.js} +1110 -1109
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-N5Oclne_.js → header-field-rac-DnbjI6W5.js} +6 -6
- package/dist/component/{header-rac-CTmSJdoY.js → header-rac-DKUICrni.js} +1 -1
- package/dist/component/{image-choice-rac-BYZ61yof.js → image-choice-rac-B_9ponST.js} +4 -4
- package/dist/component/{index-B56GTN_5.js → index-BxdMzOvN.js} +68 -68
- package/dist/component/{index-SHZx7XzS.js → index-ZYnsxY-a.js} +2 -2
- package/dist/component/{isObjectLike-BFpR7Q-o.js → isObjectLike-BW-9QEQl.js} +9 -9
- package/dist/component/{multiline-address-field-rac-DvMyN2gF.js → multiline-address-field-rac-k-P0ijWG.js} +40 -40
- package/dist/component/{multiline-address-rac-Cfv0QzzV.js → multiline-address-rac-Bbn9mNDa.js} +1 -1
- package/dist/component/{number-input-field-rac-CWQw7p2k.js → number-input-field-rac--lom-B_X.js} +7 -7
- package/dist/component/{number-input-rac-DJ2Nh9Vm.js → number-input-rac-Bhbd6T9S.js} +1 -1
- package/dist/component/{password-rac-ayoa5FQV.js → password-rac-BV_uTHb3.js} +14 -14
- package/dist/component/{payment-input-rac-CBjP_xjz.js → payment-input-rac-cawyGN_t.js} +28 -28
- package/dist/component/{phone-input-field-rac-BWOEiUK7.js → phone-input-field-rac-CsElHRto.js} +67 -67
- package/dist/component/{phone-rac-Dp7FouV3.js → phone-rac-XrHN5Nko.js} +1 -1
- package/dist/component/{product-list-rac-D_EoPXl-.js → product-list-rac-cxv_xz7K.js} +30 -30
- package/dist/component/{quiz-radio-group-rac-RWM0riuU.js → quiz-radio-group-rac-DGaxOPE1.js} +1 -1
- package/dist/component/{radio-button-module-classes-nK-xhmxh.js → radio-button-module-classes-Xv2Jn01x.js} +21 -21
- package/dist/component/{radio-group-field-rac-Cc-pvwZn.js → radio-group-field-rac-DgGqgTql.js} +4 -4
- package/dist/component/{radio-group-rac-xvesuLSn.js → radio-group-rac-Bh0E-oe1.js} +1 -1
- package/dist/component/{rating-input-field-rac-BgMRUXQy.js → rating-input-field-rac-C3YLV971.js} +10 -10
- package/dist/component/{rating-input-rac-CeZtJR2S.js → rating-input-rac-CfcC5EUh.js} +1 -1
- package/dist/component/{rich-content-rac.module-Cv7PIbmM.js → rich-content-rac.module-DUjzLGtX.js} +5 -5
- package/dist/component/{rich-text-field-rac-CmbNBe2u.js → rich-text-field-rac-BmguoJhk.js} +5 -5
- package/dist/component/{rich-text-rac-9hwPCQXl.js → rich-text-rac-BWhHcq25.js} +1 -1
- package/dist/component/{service-dropdown-rac-2Wjgmo75.js → service-dropdown-rac-C5oX-ql7.js} +30 -30
- package/dist/component/{services-multi-choice-rac-cZ7elBhc.js → services-multi-choice-rac-C1fem9NB.js} +12 -12
- package/dist/component/{signature-rac-BfE2328G.js → signature-rac-BtHqiWj1.js} +62 -62
- package/dist/component/{submit-button-rac-oYO7pska.js → submit-button-rac-OYeKJFF8.js} +39 -39
- package/dist/component/{tags-field-rac-B-_LzCFU.js → tags-field-rac-kA2RSijL.js} +37 -37
- package/dist/component/{tags-rac-D5bRM462.js → tags-rac-B_2qCZGu.js} +1 -1
- package/dist/component/{text-area-field-rac-fwtICvjX.js → text-area-field-rac-DeO609Mv.js} +17 -17
- package/dist/component/{text-area-rac-C4EkhfB5.js → text-area-rac-BAQFBOZd.js} +1 -1
- package/dist/component/{text-input-field-rac-CxZYUtxX.js → text-input-field-rac-CCcKwuLZ.js} +3 -3
- package/dist/component/{text-input-headless-DK5wBGBb.js → text-input-headless-D8-jkaYm.js} +8 -8
- package/dist/component/{text-input-rac-FS49SxCK.js → text-input-rac-BVcgjj8g.js} +1 -1
- package/dist/component/{time-input-rac-CDUVS7kp.js → time-input-rac-BYctyHgU.js} +11 -11
- package/dist/component/{url-input-field-rac-B2ypvh7T.js → url-input-field-rac-COC9qgcs.js} +23 -23
- package/dist/component/{url-input-rac-DbJx2T1R.js → url-input-rac-BZXLh0Ej.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-0ZlT4g7h.js → use-dropdown-option-class-name-BTltqRl1.js} +2 -2
- package/dist/component/use-dropdown-trigger-class-name-BjJZfl3i.js +98 -0
- package/dist/component/{use-element-state-class-name-DCAoZgWT.js → use-element-state-class-name-CkT6Ga8t.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-BvP8fzTQ.js → use-hoverable-input-class-name-BkoSr6tr.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-B-eR29aQ.js → use-is-forced-open-dropdown-fo_NCnSk.js} +1 -1
- package/dist/component/{use-service-options-base-BF_peAsS.js → use-service-options-base-Wp8RZ4Z8.js} +1 -1
- package/dist/component/use-text-input-class-name-DS7i03Gk.js +6 -0
- package/package.json +2 -2
- package/dist/component/events-repeater-rac-CNsh8NRh.js +0 -271
- package/dist/component/use-dropdown-trigger-class-name-PItHRYWo.js +0 -96
- package/dist/component/use-text-input-class-name-CQf8yep5.js +0 -6
package/dist/component/{field-label-headless-Bx1UjEcp.js → field-label-headless-_n4I0_tX.js}
RENAMED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bD as m, aU as d, aV as p, bA as D, bN as N } from "./form-jK8ezTss.js";
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
4
4
|
import { sdk as g } from "@wix/image-kit";
|
|
5
|
-
function
|
|
5
|
+
function U({ id: e, width: t, height: n }, a, r, o = "fill") {
|
|
6
6
|
return (o === "fit" ? g.getScaleToFitImageURL : g.getScaleToFillImageURL)(e, t, n, typeof a == "number" ? a : parseInt(a, 10), typeof r == "number" ? r : parseInt(r, 10));
|
|
7
7
|
}
|
|
8
8
|
var u = /* @__PURE__ */ (function(e) {
|
|
9
9
|
return e.TOP = "top", e.BOTTOM = "bottom", e;
|
|
10
10
|
})({});
|
|
11
|
-
const
|
|
11
|
+
const B = {
|
|
12
12
|
visibility: "hidden",
|
|
13
13
|
display: "block",
|
|
14
14
|
height: 0,
|
|
15
15
|
margin: 0,
|
|
16
16
|
padding: 0
|
|
17
17
|
}, S = "", i = ({ children: e, className: t, ...n }) => {
|
|
18
|
-
const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: T, required: R = !1, hideLabel: F = !1, requiredIndicatorType: q = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media:
|
|
19
|
-
id:
|
|
20
|
-
htmlFor: a === "label" ?
|
|
18
|
+
const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: T, required: R = !1, hideLabel: F = !1, requiredIndicatorType: q = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media: A, mediaSettings: s } = m(), { labelId: y, inputId: P } = D(), _ = a, b = R && !r ? L(e, i.Required) : null, c = A ? L(e, i.Image) : null, E = (s == null ? void 0 : s.imagePosition) ?? u.TOP, h = q === d.ASTERISK && O === p.BEFORE_FIELD_TITLE, f = (o ?? T) || S, I = /* @__PURE__ */ l.createElement(_, {
|
|
19
|
+
id: y,
|
|
20
|
+
htmlFor: a === "label" ? P : void 0,
|
|
21
21
|
className: t,
|
|
22
|
-
style: F ?
|
|
23
|
-
}, h ? /* @__PURE__ */ l.createElement(l.Fragment, null, b,
|
|
24
|
-
return c ? /* @__PURE__ */ l.createElement("div", null, E === u.TOP ? c : null,
|
|
25
|
-
},
|
|
26
|
-
const { t } =
|
|
22
|
+
style: F ? B : void 0
|
|
23
|
+
}, h ? /* @__PURE__ */ l.createElement(l.Fragment, null, b, f) : /* @__PURE__ */ l.createElement(l.Fragment, null, f, b));
|
|
24
|
+
return c ? /* @__PURE__ */ l.createElement("div", null, E === u.TOP ? c : null, I, E === u.BOTTOM ? c : null) : I;
|
|
25
|
+
}, v = ({ className: e }) => {
|
|
26
|
+
const { t } = N(), { requiredIndicatorType: n } = m();
|
|
27
27
|
return n === d.TEXT ? /* @__PURE__ */ l.createElement("span", {
|
|
28
28
|
className: e,
|
|
29
29
|
"aria-hidden": "true"
|
|
@@ -35,7 +35,7 @@ const N = {
|
|
|
35
35
|
const { media: t, mediaSettings: n } = m();
|
|
36
36
|
if (!t)
|
|
37
37
|
return null;
|
|
38
|
-
const a =
|
|
38
|
+
const a = U(t, t.width, t.height);
|
|
39
39
|
return a ? /* @__PURE__ */ l.createElement("img", {
|
|
40
40
|
className: e,
|
|
41
41
|
src: a,
|
|
@@ -44,9 +44,9 @@ const N = {
|
|
|
44
44
|
"data-alignment": n == null ? void 0 : n.imageAlignment
|
|
45
45
|
}) : null;
|
|
46
46
|
};
|
|
47
|
-
i.Required =
|
|
47
|
+
i.Required = v;
|
|
48
48
|
i.Image = x;
|
|
49
49
|
export {
|
|
50
50
|
i as L,
|
|
51
|
-
|
|
51
|
+
U as g
|
|
52
52
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import t, { useState as Y, useRef as
|
|
2
|
-
import
|
|
3
|
-
import { RicosViewer as
|
|
1
|
+
import t, { useState as Y, useRef as H, useMemo as fe, useEffect as ne, useCallback as Z, createContext as he, useContext as Le } from "react";
|
|
2
|
+
import _e from "@wix/editor-react-components/AnimatedIcon";
|
|
3
|
+
import { RicosViewer as xe } from "@wix/ricos/viewer";
|
|
4
4
|
import A from "classnames";
|
|
5
|
-
import {
|
|
5
|
+
import { bz as Ce, bN as re, bI as Ne, aG as ve, bL as De, az as ie, bM as ye, bA as Ee, bD as V, bF as Te, bx as Se, bw as Be, U as we, af as Ie, b as Ae, N as Re, O as ce, G as ue, L as de, K as me, M as Ze, f as te } from "./form-jK8ezTss.js";
|
|
6
6
|
import { E as Me } from "./error-icon-hZxQ6DEy.js";
|
|
7
7
|
import { s as $ } from "./field-rac.module-ts2t4WUO.js";
|
|
8
|
-
import { u as pe } from "./use-element-state-class-name-
|
|
9
|
-
import { DropZone as Oe, Text as Ue, FileTrigger as ke, Button as Fe, ProgressBar as
|
|
10
|
-
import { f as
|
|
11
|
-
import { b as ze, a as Ve, D as Ke, E as je } from "./field-error-headless-
|
|
12
|
-
import { L as qe } from "./field-label-headless-
|
|
8
|
+
import { u as pe } from "./use-element-state-class-name-CkT6Ga8t.js";
|
|
9
|
+
import { DropZone as Oe, Text as Ue, FileTrigger as ke, Button as Fe, ProgressBar as Pe, VisuallyHidden as He } from "react-aria-components";
|
|
10
|
+
import { f as _, a as G } from "./find-child-C60k4CxG.js";
|
|
11
|
+
import { b as ze, a as Ve, D as Ke, E as je } from "./field-error-headless-S-ugOQQX.js";
|
|
12
|
+
import { L as qe } from "./field-label-headless-_n4I0_tX.js";
|
|
13
13
|
const $e = {
|
|
14
14
|
Video: "video/*",
|
|
15
15
|
Image: "image/*",
|
|
@@ -18,7 +18,7 @@ const $e = {
|
|
|
18
18
|
Archive: ".zip, .rar, .tar, .tar.gz, .gz, .gzip, .jar, .7z, .fgz, .webarchive",
|
|
19
19
|
Model3D: ".gltf, .glb"
|
|
20
20
|
}, Ye = (e) => {
|
|
21
|
-
const { actions: n, formId: r } =
|
|
21
|
+
const { actions: n, formId: r } = Ce();
|
|
22
22
|
return async (l, s, d) => {
|
|
23
23
|
if (!(n != null && n.uploadFile) || !l.length)
|
|
24
24
|
return n != null && n.uploadFile || console.error("No uploadFile action"), l.length || console.error("No files to upload"), [];
|
|
@@ -27,8 +27,8 @@ const $e = {
|
|
|
27
27
|
formId: r,
|
|
28
28
|
uploadTarget: e
|
|
29
29
|
}).then((i) => {
|
|
30
|
-
const { id:
|
|
31
|
-
fileId:
|
|
30
|
+
const { id: C, displayName: m, url: p, isPrivate: c } = i, y = {
|
|
31
|
+
fileId: C,
|
|
32
32
|
displayName: m || o.name,
|
|
33
33
|
url: c ? void 0 : p,
|
|
34
34
|
fileType: o.type || "application/octet-stream"
|
|
@@ -43,16 +43,16 @@ const $e = {
|
|
|
43
43
|
return (await Promise.all(E)).filter((o) => o !== void 0);
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
|
-
function Ge({ valueSliderLimit: e, value: n, explanationText: r, target: l, onChange: s, uploadFileFormats: d, onBlur: E, onFilesCleared:
|
|
47
|
-
const [o, i] = Y(We(n)), [
|
|
46
|
+
function Ge({ valueSliderLimit: e, value: n, explanationText: r, target: l, onChange: s, uploadFileFormats: d, onBlur: E, onFilesCleared: x }) {
|
|
47
|
+
const [o, i] = Y(We(n)), [C, m] = Y(n || []), [p, c] = Y(), y = Ye(l), { t: N } = re(), g = Ne().includes(ve.BUTTONS_HOVER), { setFormStatus: S } = De(), w = H(!1), B = H(s);
|
|
48
48
|
B.current = s;
|
|
49
|
-
const
|
|
49
|
+
const v = fe(() => o.some((f) => f.state === "uploading"), [
|
|
50
50
|
o
|
|
51
51
|
]);
|
|
52
52
|
ne(() => {
|
|
53
|
-
w.current !==
|
|
53
|
+
w.current !== v && (w.current = v, S(l, v ? ie.BUSY : ie.READY));
|
|
54
54
|
}, [
|
|
55
|
-
|
|
55
|
+
v,
|
|
56
56
|
S,
|
|
57
57
|
l
|
|
58
58
|
]);
|
|
@@ -61,23 +61,23 @@ function Ge({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
|
|
|
61
61
|
return;
|
|
62
62
|
const h = o.filter((f) => f.state === "uploading").length;
|
|
63
63
|
if (h) {
|
|
64
|
-
const f = o.filter((F) => F.state === "uploaded" && F.file.size > 0).length,
|
|
65
|
-
return
|
|
66
|
-
count: Math.round(
|
|
64
|
+
const f = o.filter((F) => F.state === "uploaded" && F.file.size > 0).length, L = f / (f + h);
|
|
65
|
+
return N("form.file-upload.uploading", {
|
|
66
|
+
count: Math.round(L * 100)
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
return
|
|
69
|
+
return N("form.file-upload.explanation-text", {
|
|
70
70
|
count: o.length
|
|
71
71
|
});
|
|
72
72
|
}, [
|
|
73
73
|
o,
|
|
74
|
-
|
|
74
|
+
N
|
|
75
75
|
]), I = Z(() => o.length ? o.some((f) => f.state === "uploading") ? u() : r || u() : r, [
|
|
76
76
|
o,
|
|
77
77
|
r,
|
|
78
78
|
u
|
|
79
79
|
]), T = Z(async (h) => {
|
|
80
|
-
await y(h, ({ file: f, uploadedFile:
|
|
80
|
+
await y(h, ({ file: f, uploadedFile: L }) => {
|
|
81
81
|
i((F) => F.map((b) => b.file === f ? {
|
|
82
82
|
file: f,
|
|
83
83
|
state: "uploaded"
|
|
@@ -85,23 +85,23 @@ function Ge({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
|
|
|
85
85
|
var U;
|
|
86
86
|
const b = [
|
|
87
87
|
...F
|
|
88
|
-
].concat(
|
|
88
|
+
].concat(L);
|
|
89
89
|
return (U = B.current) == null || U.call(B, b), b;
|
|
90
90
|
});
|
|
91
|
-
}, (f,
|
|
92
|
-
i((F) => F.map((b) => b.file ===
|
|
93
|
-
file:
|
|
91
|
+
}, (f, L) => {
|
|
92
|
+
i((F) => F.map((b) => b.file === L ? {
|
|
93
|
+
file: L,
|
|
94
94
|
state: "error",
|
|
95
|
-
errorMessage:
|
|
95
|
+
errorMessage: N("form.file-upload.error.upload-failed")
|
|
96
96
|
} : b));
|
|
97
97
|
});
|
|
98
98
|
}, [
|
|
99
99
|
y,
|
|
100
|
-
|
|
100
|
+
N
|
|
101
101
|
]), j = async (h) => {
|
|
102
102
|
if (p && c(void 0), h) {
|
|
103
103
|
if (o.length + h.length > e) {
|
|
104
|
-
c(
|
|
104
|
+
c(N("form.file-upload.error.upload-limit", {
|
|
105
105
|
limit: e
|
|
106
106
|
}));
|
|
107
107
|
return;
|
|
@@ -117,14 +117,14 @@ function Ge({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
|
|
|
117
117
|
}
|
|
118
118
|
}, O = (h) => {
|
|
119
119
|
const f = o[h];
|
|
120
|
-
if (
|
|
121
|
-
const
|
|
122
|
-
s(
|
|
120
|
+
if (C && s && f.state !== "error") {
|
|
121
|
+
const L = C.filter((b) => b.displayName !== f.file.name);
|
|
122
|
+
s(L), m(L);
|
|
123
123
|
const F = o.filter((b) => b.file.name !== f.file.name);
|
|
124
|
-
i(F), F.length === 0 &&
|
|
124
|
+
i(F), F.length === 0 && x();
|
|
125
125
|
} else {
|
|
126
|
-
const
|
|
127
|
-
i(
|
|
126
|
+
const L = o.filter((F) => F !== f);
|
|
127
|
+
i(L), L.length === 0 && x();
|
|
128
128
|
}
|
|
129
129
|
}, q = () => {
|
|
130
130
|
p && c(void 0), E();
|
|
@@ -161,7 +161,7 @@ function We(e = []) {
|
|
|
161
161
|
}
|
|
162
162
|
const be = /* @__PURE__ */ he(void 0);
|
|
163
163
|
function K() {
|
|
164
|
-
const e =
|
|
164
|
+
const e = Le(be);
|
|
165
165
|
if (typeof e > "u")
|
|
166
166
|
throw new Error("FileUpload components must be used within FileUpload");
|
|
167
167
|
return e;
|
|
@@ -170,15 +170,15 @@ const z = ({ children: e, className: n }) => {
|
|
|
170
170
|
const { ariaDescribedBy: r } = Ee(), { disabled: l, hasError: s } = V(), { handleFileChange: d, limitReached: E } = K();
|
|
171
171
|
if (E)
|
|
172
172
|
return null;
|
|
173
|
-
const
|
|
173
|
+
const x = _(e, z.Title), o = _(e, z.Subtitle), i = _(e, z.Button);
|
|
174
174
|
return /* @__PURE__ */ t.createElement(Oe, {
|
|
175
175
|
"aria-describedby": r,
|
|
176
176
|
className: n,
|
|
177
177
|
"data-invalid": s,
|
|
178
178
|
isDisabled: l,
|
|
179
|
-
onDrop: async (
|
|
179
|
+
onDrop: async (C) => {
|
|
180
180
|
const m = [];
|
|
181
|
-
for (const p of
|
|
181
|
+
for (const p of C.items)
|
|
182
182
|
if (p.kind === "file") {
|
|
183
183
|
const c = await p.getFile();
|
|
184
184
|
c && m.push(c);
|
|
@@ -190,7 +190,7 @@ const z = ({ children: e, className: n }) => {
|
|
|
190
190
|
}
|
|
191
191
|
}, /* @__PURE__ */ t.createElement(Ue, {
|
|
192
192
|
slot: "label"
|
|
193
|
-
},
|
|
193
|
+
}, x, o), i);
|
|
194
194
|
}, Qe = ({ className: e, children: n }) => {
|
|
195
195
|
const { limitReached: r } = K();
|
|
196
196
|
return /* @__PURE__ */ t.createElement("p", {
|
|
@@ -206,19 +206,19 @@ const z = ({ children: e, className: n }) => {
|
|
|
206
206
|
limitReached: r
|
|
207
207
|
}));
|
|
208
208
|
}, oe = ({ className: e, children: n, "aria-roledescription": r, onHoverStart: l, onHoverEnd: s, onFocusChange: d }) => {
|
|
209
|
-
const { ariaDescribedBy: E, inputId:
|
|
209
|
+
const { ariaDescribedBy: E, inputId: x, labelId: o, errorId: i } = Ee(), { disabled: C, required: m, onFocus: p, hasError: c, errorMessage: y } = V(), { handleFileChange: N, accept: M, multiple: g, buttonRef: S, handleBlur: w, limitError: B, files: v } = K(), u = (v == null ? void 0 : v.some((T) => T.errorMessage)) ?? !1, I = !!(c || y || B || u);
|
|
210
210
|
return /* @__PURE__ */ t.createElement(ke, {
|
|
211
211
|
acceptedFileTypes: M ? M.split(",") : void 0,
|
|
212
212
|
allowsMultiple: g,
|
|
213
213
|
onSelect: (T) => {
|
|
214
214
|
if (T) {
|
|
215
215
|
const j = Array.from(T), O = new DataTransfer();
|
|
216
|
-
j.forEach((q) => O.items.add(q)),
|
|
216
|
+
j.forEach((q) => O.items.add(q)), N(O.files);
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
}, /* @__PURE__ */ t.createElement(Fe, {
|
|
220
220
|
ref: S,
|
|
221
|
-
id:
|
|
221
|
+
id: x,
|
|
222
222
|
"aria-labelledby": o,
|
|
223
223
|
"aria-describedby": [
|
|
224
224
|
E,
|
|
@@ -230,7 +230,7 @@ const z = ({ children: e, className: n }) => {
|
|
|
230
230
|
"aria-invalid": I || void 0,
|
|
231
231
|
"aria-required": m
|
|
232
232
|
}),
|
|
233
|
-
isDisabled:
|
|
233
|
+
isDisabled: C,
|
|
234
234
|
className: e,
|
|
235
235
|
onFocus: p,
|
|
236
236
|
onBlur: w,
|
|
@@ -249,12 +249,12 @@ z.Title = Qe;
|
|
|
249
249
|
z.Subtitle = Je;
|
|
250
250
|
z.Button = oe;
|
|
251
251
|
const R = ({ children: e, className: n, ...r }) => {
|
|
252
|
-
const { file: l, index: s } = r, d = l.file.name, E =
|
|
252
|
+
const { file: l, index: s } = r, d = l.file.name, E = _(e, R.Name), x = _(e, R.Remove), o = _(e, R.Spinner), i = _(e, R.Error);
|
|
253
253
|
return /* @__PURE__ */ t.createElement("div", {
|
|
254
254
|
className: n
|
|
255
255
|
}, G(E, {
|
|
256
256
|
fileName: d
|
|
257
|
-
}), l.state === "uploading" ? o : G(
|
|
257
|
+
}), l.state === "uploading" ? o : G(x, {
|
|
258
258
|
index: s,
|
|
259
259
|
fileName: d
|
|
260
260
|
}), l.errorMessage && G(i, {
|
|
@@ -266,7 +266,7 @@ const R = ({ children: e, className: n, ...r }) => {
|
|
|
266
266
|
className: e
|
|
267
267
|
}, r);
|
|
268
268
|
}, tt = ({ className: e, "aria-label": n, children: r, ...l }) => {
|
|
269
|
-
const { fileName: s, index: d } = l, { disabled: E } = V(), { handleDelete:
|
|
269
|
+
const { fileName: s, index: d } = l, { disabled: E } = V(), { handleDelete: x, fileRemoveButtonRefs: o } = K(), i = H(null);
|
|
270
270
|
ne(() => {
|
|
271
271
|
const m = o.current, p = s;
|
|
272
272
|
return m[p] = i, () => {
|
|
@@ -276,15 +276,15 @@ const R = ({ children: e, className: n, ...r }) => {
|
|
|
276
276
|
s,
|
|
277
277
|
o
|
|
278
278
|
]);
|
|
279
|
-
const
|
|
280
|
-
|
|
279
|
+
const C = () => {
|
|
280
|
+
x(d);
|
|
281
281
|
};
|
|
282
282
|
return /* @__PURE__ */ t.createElement(Fe, {
|
|
283
283
|
ref: i,
|
|
284
284
|
"aria-disabled": E,
|
|
285
285
|
"aria-label": n,
|
|
286
286
|
"aria-description": s,
|
|
287
|
-
onClick:
|
|
287
|
+
onClick: C,
|
|
288
288
|
className: e,
|
|
289
289
|
isDisabled: E
|
|
290
290
|
}, r);
|
|
@@ -296,7 +296,7 @@ const R = ({ children: e, className: n, ...r }) => {
|
|
|
296
296
|
className: e,
|
|
297
297
|
role: "alert"
|
|
298
298
|
}, n)) : null;
|
|
299
|
-
}, nt = ({ className: e, "aria-label": n, children: r }) => /* @__PURE__ */ t.createElement(
|
|
299
|
+
}, nt = ({ className: e, "aria-label": n, children: r }) => /* @__PURE__ */ t.createElement(Pe, {
|
|
300
300
|
"aria-label": n,
|
|
301
301
|
className: e,
|
|
302
302
|
isIndeterminate: !0
|
|
@@ -307,7 +307,7 @@ R.Spinner = nt;
|
|
|
307
307
|
R.Error = ge;
|
|
308
308
|
ge.Text = ze;
|
|
309
309
|
const le = ({ children: e, className: n }) => {
|
|
310
|
-
const { files: r } = K(), l =
|
|
310
|
+
const { files: r } = K(), l = _(e, le.File);
|
|
311
311
|
return !r || r.length === 0 ? null : /* @__PURE__ */ t.createElement("div", {
|
|
312
312
|
className: n
|
|
313
313
|
}, r.map((s, d) => G(l, {
|
|
@@ -318,27 +318,27 @@ const le = ({ children: e, className: n }) => {
|
|
|
318
318
|
};
|
|
319
319
|
le.File = R;
|
|
320
320
|
const J = (e) => e.file.name, a = ({ children: e }) => {
|
|
321
|
-
const { t: n } = re(), { id: r, value: l, onChange: s, uploadFileFormats: d, valueSliderLimit: E, target:
|
|
322
|
-
c.current ? c.current.focus() :
|
|
323
|
-
}, []), { files: g, limitError: S, hover: w, getExplanationText: B, getStatusText:
|
|
321
|
+
const { t: n } = re(), { id: r, value: l, onChange: s, uploadFileFormats: d, valueSliderLimit: E, target: x, explanationText: o, onBlur: i, hasError: C, errorMessage: m, FieldLayout: p } = V(), c = H(null), y = H({}), N = H(!1), M = Z(() => {
|
|
322
|
+
c.current ? c.current.focus() : N.current = !0;
|
|
323
|
+
}, []), { files: g, limitError: S, hover: w, getExplanationText: B, getStatusText: v, handleBlur: u, handleChange: I, handleDelete: T, accept: j } = Ge({
|
|
324
324
|
valueSliderLimit: E,
|
|
325
325
|
value: l,
|
|
326
326
|
explanationText: o,
|
|
327
|
-
target:
|
|
327
|
+
target: x,
|
|
328
328
|
onChange: s,
|
|
329
329
|
uploadFileFormats: d,
|
|
330
330
|
onBlur: i,
|
|
331
331
|
onFilesCleared: M
|
|
332
332
|
}), O = Z((k) => {
|
|
333
333
|
var se;
|
|
334
|
-
const Q = g[k],
|
|
335
|
-
g.length > 1 && ((se = (g.filter((ee) => J(ee) !==
|
|
334
|
+
const Q = g[k], P = J(Q);
|
|
335
|
+
g.length > 1 && ((se = (g.filter((ee) => J(ee) !== P).map((ee) => y.current[J(ee)]).find(Boolean) ?? c).current) == null || se.focus()), T(k);
|
|
336
336
|
}, [
|
|
337
337
|
T,
|
|
338
338
|
g
|
|
339
339
|
]);
|
|
340
340
|
ne(() => {
|
|
341
|
-
|
|
341
|
+
N.current && c.current && (N.current = !1, c.current.focus());
|
|
342
342
|
}, [
|
|
343
343
|
g
|
|
344
344
|
]);
|
|
@@ -351,7 +351,7 @@ const J = (e) => e.file.name, a = ({ children: e }) => {
|
|
|
351
351
|
limitReached: W,
|
|
352
352
|
multiple: q,
|
|
353
353
|
getExplanationText: B,
|
|
354
|
-
getStatusText:
|
|
354
|
+
getStatusText: v,
|
|
355
355
|
hover: w,
|
|
356
356
|
limitError: S,
|
|
357
357
|
buttonRef: c,
|
|
@@ -365,10 +365,10 @@ const J = (e) => e.file.name, a = ({ children: e }) => {
|
|
|
365
365
|
W,
|
|
366
366
|
q,
|
|
367
367
|
B,
|
|
368
|
-
|
|
368
|
+
v,
|
|
369
369
|
w,
|
|
370
370
|
S
|
|
371
|
-
]), h =
|
|
371
|
+
]), h = _(e, a.Label), f = _(e, a.DropZone), L = _(e, a.Button), F = _(e, a.Explanation), b = _(e, a.Files), U = _(e, a.Description), ae = _(e, a.Error);
|
|
372
372
|
return Te(() => {
|
|
373
373
|
var k, Q;
|
|
374
374
|
if (c.current) {
|
|
@@ -377,7 +377,7 @@ const J = (e) => e.file.name, a = ({ children: e }) => {
|
|
|
377
377
|
});
|
|
378
378
|
return;
|
|
379
379
|
}
|
|
380
|
-
(Q = (k = g.map((
|
|
380
|
+
(Q = (k = g.map((P) => y.current[J(P)]).find((P) => P == null ? void 0 : P.current)) == null ? void 0 : k.current) == null || Q.focus({
|
|
381
381
|
preventScroll: !0
|
|
382
382
|
});
|
|
383
383
|
}, r), /* @__PURE__ */ t.createElement(be.Provider, {
|
|
@@ -385,11 +385,11 @@ const J = (e) => e.file.name, a = ({ children: e }) => {
|
|
|
385
385
|
}, /* @__PURE__ */ t.createElement(p, {
|
|
386
386
|
fieldId: r,
|
|
387
387
|
renderLabel: () => h,
|
|
388
|
-
renderInput: () => f ??
|
|
388
|
+
renderInput: () => f ?? L,
|
|
389
389
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, G(ae, {
|
|
390
|
-
hasError: !!(
|
|
390
|
+
hasError: !!(C || S),
|
|
391
391
|
errorMessage: S ?? m
|
|
392
|
-
}), /* @__PURE__ */ t.createElement(
|
|
392
|
+
}), /* @__PURE__ */ t.createElement(He, {
|
|
393
393
|
role: "status",
|
|
394
394
|
"aria-live": "polite",
|
|
395
395
|
"aria-atomic": "true"
|
|
@@ -469,7 +469,7 @@ const ot = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
469
469
|
values: "0;360",
|
|
470
470
|
repeatCount: "indefinite"
|
|
471
471
|
})));
|
|
472
|
-
}, it = "_dropZone_1rkyw_1", ct = "_dropZoneHover_1rkyw_26", ut = "_dropZoneTitle_1rkyw_63", dt = "_dropZoneSubtitle_1rkyw_68", mt = "_button_1rkyw_72", pt = "_buttonHover_1rkyw_125", ft = "_explanation_1rkyw_142", Et = "_files_1rkyw_146", Ft = "_file_1rkyw_146", bt = "_fileName_1rkyw_195", gt = "_buttonLabel_1rkyw_203", ht = "_removeButton_1rkyw_207",
|
|
472
|
+
}, it = "_dropZone_1rkyw_1", ct = "_dropZoneHover_1rkyw_26", ut = "_dropZoneTitle_1rkyw_63", dt = "_dropZoneSubtitle_1rkyw_68", mt = "_button_1rkyw_72", pt = "_buttonHover_1rkyw_125", ft = "_explanation_1rkyw_142", Et = "_files_1rkyw_146", Ft = "_file_1rkyw_146", bt = "_fileName_1rkyw_195", gt = "_buttonLabel_1rkyw_203", ht = "_removeButton_1rkyw_207", Lt = "_spinner_1rkyw_254", _t = "_fileError_1rkyw_270", D = {
|
|
473
473
|
dropZone: it,
|
|
474
474
|
dropZoneHover: ct,
|
|
475
475
|
dropZoneTitle: ut,
|
|
@@ -482,13 +482,13 @@ const ot = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
482
482
|
fileName: bt,
|
|
483
483
|
buttonLabel: gt,
|
|
484
484
|
removeButton: ht,
|
|
485
|
-
spinner:
|
|
486
|
-
fileError:
|
|
487
|
-
},
|
|
485
|
+
spinner: Lt,
|
|
486
|
+
fileError: _t
|
|
487
|
+
}, xt = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(xe, {
|
|
488
488
|
content: e,
|
|
489
489
|
locale: n
|
|
490
|
-
}),
|
|
491
|
-
var S, w, B,
|
|
490
|
+
}), Ct = () => {
|
|
491
|
+
var S, w, B, v;
|
|
492
492
|
const { t: e } = re(), { disabled: n, readOnly: r } = V(), l = !n && !r, s = pe({
|
|
493
493
|
globalClasses: de,
|
|
494
494
|
moduleClasses: {
|
|
@@ -501,7 +501,7 @@ const ot = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
501
501
|
base: D.button,
|
|
502
502
|
hover: D.buttonHover
|
|
503
503
|
}
|
|
504
|
-
}), E = (
|
|
504
|
+
}), E = (v = (B = (w = (S = Se().fileUpload) == null ? void 0 : S.elementProps) == null ? void 0 : w.uploadButton) == null ? void 0 : B.elementProps) == null ? void 0 : v.icon, { wix: x, className: o, ...i } = E ?? {}, C = Be(te.FILE_UPLOAD, te.UPLOAD_BUTTON, te.UPLOAD_BUTTON_LABEL), m = H(null), [p, c] = Y(!1), [y, N] = Y(!1), M = Z(() => {
|
|
505
505
|
var u;
|
|
506
506
|
c(!0), (u = m.current) == null || u.runAnimationForward();
|
|
507
507
|
}, []), g = Z(() => {
|
|
@@ -533,13 +533,13 @@ const ot = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
533
533
|
"aria-roledescription": e("file-upload.aria-roledescription"),
|
|
534
534
|
onHoverStart: M,
|
|
535
535
|
onHoverEnd: g,
|
|
536
|
-
onFocusChange:
|
|
537
|
-
}, i.svg ? /* @__PURE__ */ t.createElement(
|
|
536
|
+
onFocusChange: N
|
|
537
|
+
}, i.svg ? /* @__PURE__ */ t.createElement(_e, {
|
|
538
538
|
...i,
|
|
539
539
|
ref: m,
|
|
540
540
|
className: A(Ae, Re, o)
|
|
541
541
|
}) : E ? null : /* @__PURE__ */ t.createElement(ot, null), /* @__PURE__ */ t.createElement(a.DropZone.Button.Text, {
|
|
542
|
-
className: A(ce.base, D.buttonLabel,
|
|
542
|
+
className: A(ce.base, D.buttonLabel, C, {
|
|
543
543
|
[ce.hover]: l && (p || y)
|
|
544
544
|
})
|
|
545
545
|
}))), /* @__PURE__ */ t.createElement(a.Explanation, {
|
|
@@ -561,10 +561,10 @@ const ot = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
561
561
|
className: A(me, $.error, D.fileError)
|
|
562
562
|
}, /* @__PURE__ */ t.createElement(lt, null), /* @__PURE__ */ t.createElement(a.Files.File.Error.Text, null)))), /* @__PURE__ */ t.createElement(a.Description, {
|
|
563
563
|
className: A(ue, $.description)
|
|
564
|
-
},
|
|
564
|
+
}, xt), /* @__PURE__ */ t.createElement(a.Error, {
|
|
565
565
|
className: A(me, $.error)
|
|
566
566
|
}, /* @__PURE__ */ t.createElement(Me, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)));
|
|
567
|
-
}, Ot = () => /* @__PURE__ */ t.createElement(
|
|
567
|
+
}, Ot = () => /* @__PURE__ */ t.createElement(Ct, null);
|
|
568
568
|
export {
|
|
569
569
|
Ot as FileUploadRAC
|
|
570
570
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import t, { useMemo as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import t, { useMemo as A } from "react";
|
|
2
|
+
import { RicosViewer as _ } from "@wix/ricos/viewer";
|
|
3
3
|
import u from "classnames";
|
|
4
|
-
import {
|
|
4
|
+
import { bD as C, bv as P, bA as I, U as S, P as x, G as N } from "./form-jK8ezTss.js";
|
|
5
5
|
import { f as c, a as R } from "./find-child-C60k4CxG.js";
|
|
6
6
|
import { f as O } from "./format-currency-BwShJ9vM.js";
|
|
7
|
-
import { D as v, E as M } from "./field-error-headless-
|
|
8
|
-
import { L as g } from "./field-label-headless-
|
|
9
|
-
import { s as
|
|
7
|
+
import { D as v, E as M } from "./field-error-headless-S-ugOQQX.js";
|
|
8
|
+
import { L as g } from "./field-label-headless-_n4I0_tX.js";
|
|
9
|
+
import { s as F } from "./field-rac.module-ts2t4WUO.js";
|
|
10
10
|
const e = ({ children: r }) => {
|
|
11
11
|
var p;
|
|
12
|
-
const { id: a, validation: n, FieldLayout: l } = C(), { currency: o, regionalFormat: m } = P(), s =
|
|
12
|
+
const { id: a, validation: n, FieldLayout: l } = C(), { currency: o, regionalFormat: m } = P(), s = A(() => {
|
|
13
13
|
var d, E, f;
|
|
14
14
|
return (f = (E = (d = n == null ? void 0 : n.predefined) == null ? void 0 : d.paymentOptions) == null ? void 0 : E.products) == null ? void 0 : f[0];
|
|
15
15
|
}, [
|
|
16
16
|
n
|
|
17
|
-
]), i = (p = s == null ? void 0 : s.fixedPriceOptions) == null ? void 0 : p.price,
|
|
17
|
+
]), i = (p = s == null ? void 0 : s.fixedPriceOptions) == null ? void 0 : p.price, y = c(r, e.Label), L = c(r, e.Amount), b = c(r, e.Description), D = c(r, e.Error);
|
|
18
18
|
return /* @__PURE__ */ t.createElement(l, {
|
|
19
19
|
fieldId: a,
|
|
20
|
-
renderLabel: () =>
|
|
20
|
+
renderLabel: () => y,
|
|
21
21
|
renderInput: () => R(L, {
|
|
22
22
|
price: i,
|
|
23
23
|
currencyCode: o == null ? void 0 : o.code,
|
|
@@ -46,16 +46,16 @@ e.Description = v;
|
|
|
46
46
|
e.Error = M;
|
|
47
47
|
const B = "_value_c7203_1", k = {
|
|
48
48
|
value: B
|
|
49
|
-
},
|
|
49
|
+
}, w = ({ content: r, locale: a }) => /* @__PURE__ */ t.createElement(_, {
|
|
50
50
|
content: r,
|
|
51
51
|
locale: a
|
|
52
|
-
}),
|
|
53
|
-
className: u(S,
|
|
52
|
+
}), G = () => /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
|
|
53
|
+
className: u(S, F.label)
|
|
54
54
|
}), /* @__PURE__ */ t.createElement(e.Amount, {
|
|
55
55
|
className: u(x, k.value)
|
|
56
56
|
}), /* @__PURE__ */ t.createElement(e.Description, {
|
|
57
|
-
className: u(N,
|
|
58
|
-
},
|
|
57
|
+
className: u(N, F.description)
|
|
58
|
+
}, w)), K = () => /* @__PURE__ */ t.createElement(G, null);
|
|
59
59
|
export {
|
|
60
60
|
K as FixedPaymentRAC
|
|
61
61
|
};
|