@wix/form-elements 1.171.0 → 1.173.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-DZ0SFXmL.js → appointment-rac-DIV9zgmZ.js} +80 -80
- package/dist/component/{bookings-address-rac-BW9grc77.js → bookings-address-rac-C5cT4gkX.js} +1 -1
- package/dist/component/{bookings-email-rac-D8gMaAfB.js → bookings-email-rac-CQEhRS7N.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CAjcs7b6.js → bookings-first-name-rac-BwdasJXd.js} +1 -1
- package/dist/component/{bookings-header-rac-BhKZ1kku.js → bookings-header-rac-CWzKq3yr.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DpsMDuU0.js → bookings-last-name-rac-CoVWqEy5.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BVdWmKS8.js → bookings-login-bar-rac-DwoI-iRQ.js} +4 -4
- package/dist/component/{bookings-phone-rac-DsqNi2mI.js → bookings-phone-rac-WAZU-1kD.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-elM4Ne3f.js → bookings-rich-text-rac-I5Uo-q87.js} +1 -1
- package/dist/component/{checkbox-field-rac-BU4E73fD.js → checkbox-field-rac-CKbKBNcQ.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-6yJdIbP2.js → checkbox-group-field-headless-7PMj-zW6.js} +47 -47
- package/dist/component/{checkbox-group-field-rac-CojbCWSF.js → checkbox-group-field-rac-BZ-YgEYR.js} +4 -4
- package/dist/component/{checkbox-group-rac-3qUVUc-C.js → checkbox-group-rac-CED8h4qI.js} +1 -1
- package/dist/component/{checkbox-rac-DwbTapd_.js → checkbox-rac-CbpEXMBz.js} +1 -1
- package/dist/component/{contacts-address-rac-BL7XDZuP.js → contacts-address-rac-F3Ui7iJu.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DeJYIHAg.js → contacts-birthdate-rac-CcxRV3RQ.js} +1 -1
- package/dist/component/{contacts-company-rac-BeImf5uc.js → contacts-company-rac-mDY20HzW.js} +1 -1
- package/dist/component/{contacts-email-rac-CtacwrZ0.js → contacts-email-rac-CoBPNuCj.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CAdOqOOA.js → contacts-first-name-rac-DzbpBmNm.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Db9mHzCW.js → contacts-last-name-rac-DEmV-MNE.js} +1 -1
- package/dist/component/{contacts-phone-rac-W0OLEbzL.js → contacts-phone-rac-BlEpatWP.js} +1 -1
- package/dist/component/{contacts-position-rac-CV4Ibt4Z.js → contacts-position-rac-DlZahRQc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CQ3Q1pjZ.js → contacts-subscribe-rac-LXCEPvXl.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-Dux-pk6r.js → contacts-tax-id-rac-DS0SDAtC.js} +1 -1
- package/dist/component/{date-availability-RkX-Qw7G.js → date-availability-DTFyrU8J.js} +1 -1
- package/dist/component/{date-input-field-rac-CYCT6qoa.js → date-input-field-rac-D7Pv-hqW.js} +62 -62
- package/dist/component/{date-input-rac-BkYZ7q_o.js → date-input-rac-BEsh54Gz.js} +1 -1
- package/dist/component/{date-picker-field-rac-eMidYtsl.js → date-picker-field-rac-DJirD93a.js} +15 -15
- package/dist/component/{date-picker-rac-D23rxZcF.js → date-picker-rac-B1fUqj_w.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BjIj4dXQ.js → date-time-input-field-rac-CPFaQUXF.js} +38 -38
- package/dist/component/{date-time-input-rac-BSGAdk9L.js → date-time-input-rac-CAozBO0e.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Xmb5IKrb.js → dext-checkbox-group-rac-B0yqJoj8.js} +2 -2
- package/dist/component/{dext-checkbox-rac-2eA7y0ld.js → dext-checkbox-rac-yZaUdHz1.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CmLxVGGT.js → dext-date-picker-rac-AJ7XIW-h.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Cd9nwSjb.js → dext-date-time-input-rac-CPs79sUY.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BKdQ0nGS.js → dext-dropdown-rac-W2QzqPG4.js} +1 -1
- package/dist/component/{dext-email-rac-07zDPxyf.js → dext-email-rac-CCW1Dk1m.js} +1 -1
- package/dist/component/{dext-number-input-rac-DRvGuppY.js → dext-number-input-rac-BAInaxoF.js} +1 -1
- package/dist/component/{dext-phone-rac-CKtTVjFg.js → dext-phone-rac-CYYgZiFW.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BsBmMufq.js → dext-radio-group-rac-Dqvmxoai.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CcFSTAIh.js → dext-rating-input-rac-CWl7X0zW.js} +1 -1
- package/dist/component/{dext-tags-rac-CCTDlCvX.js → dext-tags-rac-BpAfPh55.js} +2 -2
- package/dist/component/{dext-text-area-rac-Cif8po9h.js → dext-text-area-rac-CLTg8XXH.js} +1 -1
- package/dist/component/{dext-text-input-rac-2118X4iF.js → dext-text-input-rac-BV-F-ZsP.js} +1 -1
- package/dist/component/{dext-url-input-rac-DDImGkQe.js → dext-url-input-rac-B9wHRaZr.js} +1 -1
- package/dist/component/{donation-rac-Dnylss1d.js → donation-rac-Be4swKWD.js} +50 -50
- package/dist/component/{dropdown-field-rac-DDI4ZgZH.js → dropdown-field-rac-BFEB_WuX.js} +3 -3
- package/dist/component/{dropdown-rac-DX0Z3R_8.js → dropdown-rac-Dz7QtFVB.js} +1 -1
- package/dist/component/{ecom-address-rac-D9MeEQsk.js → ecom-address-rac-Bu6msDgo.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DKJ9j5dj.js → ecom-subscription-checkbox-rac-BRovQqrM.js} +2 -2
- package/dist/component/{email-input-field-rac-DaKrmlwe.js → email-input-field-rac-EERVxm6G.js} +42 -42
- package/dist/component/{events-repeater-rac-DWrOLT0Y.js → events-repeater-rac-xs0pooBs.js} +49 -49
- package/dist/component/{events-rsvp-rac-YBTR1tR0.js → events-rsvp-rac-CMi-8EqK.js} +3 -3
- package/dist/component/{field-error-headless-jksFrezt.js → field-error-headless-DbFXeaud.js} +8 -8
- package/dist/component/{field-label-headless-BBvJAVxI.js → field-label-headless-CWOYHPsb.js} +11 -11
- package/dist/component/{file-upload-rac-CgdmfUZG.js → file-upload-rac-vbMTIdDc.js} +61 -61
- package/dist/component/{fixed-payment-rac-v6rKwzFs.js → fixed-payment-rac-BRk7ams_.js} +7 -7
- package/dist/component/{form-BsiK682r.js → form-BjeODFzx.js} +238 -237
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BuXybl7K.js → header-field-rac-CQexwZn7.js} +2 -2
- package/dist/component/{header-rac-CDyaLosW.js → header-rac-CYbPDl4_.js} +1 -1
- package/dist/component/{image-choice-rac-BRlMroBw.js → image-choice-rac-DDvlaK6K.js} +15 -15
- package/dist/component/{index-BanOeCAF.js → index-B6wFpWpe.js} +4 -4
- package/dist/component/{index-y9URYGEE.js → index-Bs9ypEe2.js} +6 -6
- package/dist/component/{isObjectLike-BG9nJ-rx.js → isObjectLike-Xcw2hQQ6.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DRAkxI1l.js → multiline-address-field-rac-CYJR-MUz.js} +209 -209
- package/dist/component/{multiline-address-rac-JjTzWsEb.js → multiline-address-rac-DO1j_w6S.js} +1 -1
- package/dist/component/{number-input-field-rac-QrouG7Hv.js → number-input-field-rac-C-qvd8v9.js} +18 -18
- package/dist/component/{number-input-rac-DGmE7cLv.js → number-input-rac-CQSaifZE.js} +1 -1
- package/dist/component/{password-rac-DeyY228m.js → password-rac-CqnbZtR_.js} +28 -28
- package/dist/component/{payment-input-rac-DmIennLi.js → payment-input-rac-CbOcztkp.js} +28 -28
- package/dist/component/{phone-input-field-rac-F7e74TGA.js → phone-input-field-rac-BQ187I2C.js} +55 -55
- package/dist/component/{phone-rac-CQfB2CQD.js → phone-rac-CbA2xqF3.js} +1 -1
- package/dist/component/{product-list-rac--GGG8vvO.js → product-list-rac-MxB9tRiE.js} +103 -103
- package/dist/component/{quiz-radio-group-rac-DF2C2vNq.js → quiz-radio-group-rac-IViaDVRW.js} +1 -1
- package/dist/component/{radio-button-module-classes-DmpNo6F2.js → radio-button-module-classes-jtnooKMO.js} +33 -33
- package/dist/component/{radio-group-field-rac-BGcPYfKO.js → radio-group-field-rac-g3SQGJPp.js} +4 -4
- package/dist/component/{radio-group-rac-CqysUMCE.js → radio-group-rac-D8wmzlbu.js} +1 -1
- package/dist/component/{rating-input-field-rac-D-ei917Y.js → rating-input-field-rac-BqPXKKdi.js} +15 -15
- package/dist/component/{rating-input-rac-a9zJ74fw.js → rating-input-rac-CeZIpOmm.js} +1 -1
- package/dist/component/{rich-content-rac.module-CvyLVlXL.js → rich-content-rac.module-BLgdpRh_.js} +5 -5
- package/dist/component/{rich-text-field-rac-vf19nvyw.js → rich-text-field-rac-BpSVobCQ.js} +6 -6
- package/dist/component/{rich-text-rac-Cx_wpoxC.js → rich-text-rac-DqpaqbFH.js} +1 -1
- package/dist/component/{service-dropdown-rac-DITzKQxd.js → service-dropdown-rac-DKgtga1t.js} +30 -30
- package/dist/component/{services-multi-choice-rac-BtisN0Aq.js → services-multi-choice-rac-CAyB0b4q.js} +9 -9
- package/dist/component/{signature-rac-DUeIoS5O.js → signature-rac-DC20YN4f.js} +97 -97
- package/dist/component/{submit-button-rac-C8h6zeTw.js → submit-button-rac-ClWtqIkR.js} +30 -30
- package/dist/component/{tags-field-rac-CjFuiB0n.js → tags-field-rac-DHM9k8uf.js} +18 -18
- package/dist/component/{tags-rac-BO7rwyLl.js → tags-rac-Clg50jwY.js} +1 -1
- package/dist/component/{text-area-field-rac-CgUx3nQ0.js → text-area-field-rac-B2qJZ6wR.js} +16 -16
- package/dist/component/{text-area-rac-WgXYXIaf.js → text-area-rac-BwsVk7u7.js} +1 -1
- package/dist/component/{text-input-field-rac-DaxWFha-.js → text-input-field-rac-BQbo-3Ly.js} +6 -6
- package/dist/component/{text-input-headless-hjuRJTZN.js → text-input-headless-WICGIHcN.js} +3 -3
- package/dist/component/{text-input-rac-BzumrJBj.js → text-input-rac-D7BRYDZr.js} +1 -1
- package/dist/component/{time-input-rac-2FEkpQ7M.js → time-input-rac-Dnp-0_Js.js} +22 -22
- package/dist/component/{url-input-field-rac-BZ9f8D8I.js → url-input-field-rac-MC13zKST.js} +19 -19
- package/dist/component/{url-input-rac-D-AVlxkD.js → url-input-rac-DfAtTmKv.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DwAAtzgX.js → use-dropdown-option-class-name-CVUEosg4.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-D-6n9YVG.js → use-dropdown-trigger-class-name-BHLG7EB-.js} +25 -25
- package/dist/component/{use-element-state-class-name-C5auxwhj.js → use-element-state-class-name-BVJylHPn.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-Nd2jqfz4.js → use-hoverable-input-class-name-DO9ctJ81.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-CKaHhCqp.js → use-is-forced-open-dropdown-Czuo32Nq.js} +8 -8
- package/dist/component/{use-service-options-base-CvluFheT.js → use-service-options-base-DUuGIm38.js} +1 -1
- package/dist/component/use-text-input-class-name-LEnNGX0a.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-DGTlYJxC.js +0 -6
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import r, { useRef as V, useContext as
|
|
1
|
+
import r, { useRef as V, useContext as Se, useMemo as he, useCallback as y, useState as q, useEffect as le, Children as Ne, isValidElement as be } from "react";
|
|
2
2
|
import Fe from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import { RicosViewer as we } from "@wix/ricos/viewer";
|
|
4
4
|
import F from "classnames";
|
|
5
|
-
import {
|
|
5
|
+
import { bd as xe, bF as Le, aR as Ue, F as Be, bH as Oe, bD as Pe, bT as Te, E as me, aH as oe, bL as x, bI as W, bN as Ie, bV as Me, bE as He, X as We, am as ze, an as Ye, ao as Ze, b as Ge, au as ke, av as pe, M as Ve, I as $e, ap as Xe, as as qe, aq as je, at as Je, f as ne, ar as Ke } from "./form-BjeODFzx.js";
|
|
6
6
|
import { useHover as Qe, useFocusRing as et, mergeProps as tt } from "react-aria";
|
|
7
|
-
import { RadioGroup as nt, Button as
|
|
7
|
+
import { RadioGroup as nt, Button as Ce, TextField as at, DropZone as ot, Input as st, FileTrigger as rt, RadioField as lt, RadioButton as it } from "react-aria-components";
|
|
8
8
|
import _e from "signature_pad";
|
|
9
|
-
import { f as
|
|
10
|
-
import { D as ct, E as ut } from "./field-error-headless-
|
|
11
|
-
import { L as dt } from "./field-label-headless-
|
|
9
|
+
import { f as C, a as N } from "./find-child-C60k4CxG.js";
|
|
10
|
+
import { D as ct, E as ut } from "./field-error-headless-DbFXeaud.js";
|
|
11
|
+
import { L as dt } from "./field-label-headless-CWOYHPsb.js";
|
|
12
12
|
import { D as mt } from "./data-hooks-Dkw1pbRj.js";
|
|
13
13
|
import { E as pt } from "./error-icon-hZxQ6DEy.js";
|
|
14
14
|
import { s as ae } from "./field-rac.module-ts2t4WUO.js";
|
|
15
|
-
import { u as X } from "./use-element-state-class-name-
|
|
15
|
+
import { u as X } from "./use-element-state-class-name-BVJylHPn.js";
|
|
16
16
|
const ft = typeof r.useId == "function" ? r.useId : () => V(xe()).current, Et = ({ properties: e }) => e.uploadEnabled === !0, gt = (e, t) => e.fieldType === Be.SIGNATURE && !e.properties.hidden && !e.properties.disabled && !e.properties.readOnly && (t !== "upload" || Et(e)), ht = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, bt = (e) => {
|
|
17
17
|
var o;
|
|
18
|
-
const t = (o = Le().signature) == null ? void 0 : o.signatureMode, a =
|
|
18
|
+
const t = (o = Le().signature) == null ? void 0 : o.signatureMode, a = Se(Ue);
|
|
19
19
|
return he(() => {
|
|
20
20
|
var s;
|
|
21
21
|
return a && !a.parentId && t ? (s = a.fields.filter((l) => gt(l, t)).sort(ht)[0]) == null ? void 0 : s.id : void 0;
|
|
@@ -24,9 +24,9 @@ const ft = typeof r.useId == "function" ? r.useId : () => V(xe()).current, Et =
|
|
|
24
24
|
t
|
|
25
25
|
]) === e ? t : void 0;
|
|
26
26
|
};
|
|
27
|
-
var
|
|
27
|
+
var R = /* @__PURE__ */ (function(e) {
|
|
28
28
|
return e.TEXT = "text/plain", e.POINTS = "points/json", e;
|
|
29
|
-
})({}),
|
|
29
|
+
})({}), I = /* @__PURE__ */ (function(e) {
|
|
30
30
|
return e.DRAW = "draw", e.TYPE = "type", e.UPLOAD = "upload", e;
|
|
31
31
|
})({}), A = /* @__PURE__ */ (function(e) {
|
|
32
32
|
return e.DRAW = "draw", e.TYPE = "type", e.IMAGE = "image", e.UPLOAD = "upload", e;
|
|
@@ -59,20 +59,20 @@ function Tt(e) {
|
|
|
59
59
|
const n = a.getImageData(0, 0, 1, 1);
|
|
60
60
|
return n.data[0] * 65536 + n.data[1] * 256 + n.data[2];
|
|
61
61
|
}
|
|
62
|
-
const
|
|
62
|
+
const It = (e, t) => {
|
|
63
63
|
const a = Tt(e);
|
|
64
64
|
return (n, o) => {
|
|
65
65
|
const s = (o * t.width + n) * 4;
|
|
66
66
|
return t.data[s] * 65536 + t.data[s + 1] * 256 + t.data[s + 2] === a;
|
|
67
67
|
};
|
|
68
|
-
},
|
|
68
|
+
}, Ct = (e) => (t, a) => {
|
|
69
69
|
const n = (a * e.width + t) * 4;
|
|
70
70
|
return e.data[n + 3] === 0;
|
|
71
71
|
};
|
|
72
72
|
function re(e, t) {
|
|
73
73
|
const a = e.getContext("2d", {
|
|
74
74
|
willReadFrequently: !0
|
|
75
|
-
}), n = e.width, o = e.height, s = a.getImageData(0, 0, n, o), l = t ?
|
|
75
|
+
}), n = e.width, o = e.height, s = a.getImageData(0, 0, n, o), l = t ? It(t, s) : Ct(s);
|
|
76
76
|
let i = n + 1, c = -1, u = o + 1, d = -1, f = 0, m = 0;
|
|
77
77
|
for (m = 0; m < o; m++)
|
|
78
78
|
for (f = 0; f < n; f++)
|
|
@@ -114,10 +114,10 @@ function Ee(e, t) {
|
|
|
114
114
|
}
|
|
115
115
|
const k = 480, yt = (e) => Ae({
|
|
116
116
|
data: JSON.stringify(e),
|
|
117
|
-
mimeType:
|
|
117
|
+
mimeType: R.POINTS
|
|
118
118
|
}), ye = (e) => {
|
|
119
119
|
const t = z(e);
|
|
120
|
-
if ((t == null ? void 0 : t.mimeType) ===
|
|
120
|
+
if ((t == null ? void 0 : t.mimeType) === R.POINTS)
|
|
121
121
|
try {
|
|
122
122
|
return JSON.parse(t.data);
|
|
123
123
|
} catch {
|
|
@@ -147,14 +147,14 @@ function Dt(e, t, a = "black", n = !1, o) {
|
|
|
147
147
|
const m = (i - u) / 2;
|
|
148
148
|
s.fillText(t, n ? i - m : m, (c - d) / 2 + f);
|
|
149
149
|
}
|
|
150
|
-
const
|
|
151
|
-
function
|
|
152
|
-
return
|
|
150
|
+
const Re = /^data:([^;,]+)(?:;([^,]+))?,(.+)$/;
|
|
151
|
+
function Rt(e) {
|
|
152
|
+
return Re.test(e);
|
|
153
153
|
}
|
|
154
154
|
function z(e) {
|
|
155
155
|
if (!e)
|
|
156
156
|
return;
|
|
157
|
-
const t = e.match(
|
|
157
|
+
const t = e.match(Re);
|
|
158
158
|
if (!t)
|
|
159
159
|
return;
|
|
160
160
|
const [, a, n, o] = t;
|
|
@@ -192,18 +192,18 @@ function ie(e, t = "temp") {
|
|
|
192
192
|
fileType: (a == null ? void 0 : a.mimeType) ?? ""
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
|
-
async function
|
|
195
|
+
async function St(e, t) {
|
|
196
196
|
const a = z(e);
|
|
197
197
|
if (!a)
|
|
198
198
|
return e;
|
|
199
199
|
const n = a.mimeType;
|
|
200
|
-
if (n ===
|
|
200
|
+
if (n === R.TEXT) {
|
|
201
201
|
const o = j(k * 20, k, 1);
|
|
202
202
|
Dt(o, a.data, "black", t, "white");
|
|
203
203
|
const s = re(o, "white");
|
|
204
204
|
return (s == null ? void 0 : s.toDataURL("image/jpeg", 0.7)) ?? null;
|
|
205
205
|
}
|
|
206
|
-
if (n ===
|
|
206
|
+
if (n === R.POINTS) {
|
|
207
207
|
const o = ye(e);
|
|
208
208
|
if (!o)
|
|
209
209
|
return null;
|
|
@@ -222,7 +222,7 @@ async function Rt(e, t) {
|
|
|
222
222
|
return e;
|
|
223
223
|
}
|
|
224
224
|
async function Nt(e, t) {
|
|
225
|
-
const a = await
|
|
225
|
+
const a = await St(e, t);
|
|
226
226
|
if (a)
|
|
227
227
|
return At(a, "signature");
|
|
228
228
|
}
|
|
@@ -238,7 +238,7 @@ const Ft = ({ value: e, onChange: t, target: a }) => {
|
|
|
238
238
|
}, []), d = n == null ? void 0 : n[0], f = d != null && d.url ? z(d.url) : void 0, m = y(async (h) => {
|
|
239
239
|
try {
|
|
240
240
|
const p = (h == null ? void 0 : h.url) ?? "";
|
|
241
|
-
if (
|
|
241
|
+
if (Rt(p)) {
|
|
242
242
|
const g = await Nt(p, s);
|
|
243
243
|
if (g) {
|
|
244
244
|
const E = await l(g);
|
|
@@ -284,14 +284,14 @@ const Ft = ({ value: e, onChange: t, target: a }) => {
|
|
|
284
284
|
target: e
|
|
285
285
|
}), [i, c] = q(() => {
|
|
286
286
|
if (s == null)
|
|
287
|
-
return
|
|
287
|
+
return I.DRAW;
|
|
288
288
|
switch (l == null ? void 0 : l.mimeType) {
|
|
289
|
-
case
|
|
290
|
-
return
|
|
291
|
-
case
|
|
292
|
-
return
|
|
289
|
+
case R.POINTS:
|
|
290
|
+
return I.DRAW;
|
|
291
|
+
case R.TEXT:
|
|
292
|
+
return I.TYPE;
|
|
293
293
|
default:
|
|
294
|
-
return
|
|
294
|
+
return I.UPLOAD;
|
|
295
295
|
}
|
|
296
296
|
}), { setFormStatus: u } = Te(), d = y(() => {
|
|
297
297
|
o(), u(e, oe.BUSY);
|
|
@@ -308,11 +308,11 @@ const Ft = ({ value: e, onChange: t, target: a }) => {
|
|
|
308
308
|
e
|
|
309
309
|
]), m = s != null, L = Ut(i, s, l), h = (() => {
|
|
310
310
|
switch (i) {
|
|
311
|
-
case
|
|
311
|
+
case I.DRAW:
|
|
312
312
|
return A.DRAW;
|
|
313
|
-
case
|
|
313
|
+
case I.TYPE:
|
|
314
314
|
return A.TYPE;
|
|
315
|
-
case
|
|
315
|
+
case I.UPLOAD:
|
|
316
316
|
return L != null ? A.IMAGE : A.UPLOAD;
|
|
317
317
|
default:
|
|
318
318
|
return A.DRAW;
|
|
@@ -331,16 +331,16 @@ const Ft = ({ value: e, onChange: t, target: a }) => {
|
|
|
331
331
|
handleClear: f
|
|
332
332
|
};
|
|
333
333
|
}, xt = {
|
|
334
|
-
[
|
|
335
|
-
[
|
|
336
|
-
[
|
|
334
|
+
[I.DRAW]: (e) => (e == null ? void 0 : e.mimeType) === R.POINTS,
|
|
335
|
+
[I.TYPE]: (e) => (e == null ? void 0 : e.mimeType) === R.TEXT,
|
|
336
|
+
[I.UPLOAD]: (e) => (e == null ? void 0 : e.mimeType) !== R.POINTS && (e == null ? void 0 : e.mimeType) !== R.TEXT
|
|
337
337
|
};
|
|
338
338
|
function Ut(e, t, a) {
|
|
339
339
|
return t && xt[e](a) ? t : void 0;
|
|
340
340
|
}
|
|
341
341
|
const Bt = (e) => {
|
|
342
342
|
const t = e.url ? z(e.url) : void 0;
|
|
343
|
-
return t ? t.mimeType !==
|
|
343
|
+
return t ? t.mimeType !== R.POINTS && t.mimeType !== R.TEXT : !0;
|
|
344
344
|
}, ce = () => {
|
|
345
345
|
const { hoverProps: e, isHovered: t } = Qe({}), { focusProps: a, isFocused: n, isFocusVisible: o } = et({
|
|
346
346
|
within: !0
|
|
@@ -352,7 +352,7 @@ const Bt = (e) => {
|
|
|
352
352
|
"data-focus-visible": o || void 0
|
|
353
353
|
};
|
|
354
354
|
}, b = ({ children: e }) => {
|
|
355
|
-
const { id: t, FieldLayout: a } = x(), n =
|
|
355
|
+
const { id: t, FieldLayout: a } = x(), n = C(e, b.Label), o = C(e, b.Input), s = C(e, b.Description), l = C(e, b.Error);
|
|
356
356
|
return /* @__PURE__ */ r.createElement(a, {
|
|
357
357
|
fieldId: t,
|
|
358
358
|
renderLabel: () => n,
|
|
@@ -360,15 +360,15 @@ const Bt = (e) => {
|
|
|
360
360
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, l, s)
|
|
361
361
|
});
|
|
362
362
|
}, Ot = {
|
|
363
|
-
[
|
|
364
|
-
[
|
|
365
|
-
[
|
|
366
|
-
},
|
|
363
|
+
[I.DRAW]: A.DRAW,
|
|
364
|
+
[I.TYPE]: A.TYPE,
|
|
365
|
+
[I.UPLOAD]: A.UPLOAD
|
|
366
|
+
}, J = ({ children: e, className: t }) => {
|
|
367
367
|
const { id: a, value: n, onChange: o, target: s, readOnly: l } = x(), i = bt(a), { signatureMode: c, setSignatureMode: u, handleClear: d, clearable: f, signatureView: m, signatureValueForView: L, handleChange: h, handleBeforeChange: p } = wt({
|
|
368
368
|
target: s,
|
|
369
369
|
value: n,
|
|
370
370
|
onChange: o
|
|
371
|
-
}), g =
|
|
371
|
+
}), g = C(e, J.Header), E = C(e, J.Value), S = {
|
|
372
372
|
signatureMode: i ?? c,
|
|
373
373
|
setSignatureMode: u,
|
|
374
374
|
handleClear: d,
|
|
@@ -381,9 +381,9 @@ const Bt = (e) => {
|
|
|
381
381
|
return /* @__PURE__ */ r.createElement("div", {
|
|
382
382
|
className: t,
|
|
383
383
|
"data-hook": "signature-container"
|
|
384
|
-
}, !l && N(g,
|
|
385
|
-
},
|
|
386
|
-
const { signatureMode: n, setSignatureMode: o, clearable: s, handleClear: l } = a, { uploadEnabled: i } = x(), c =
|
|
384
|
+
}, !l && N(g, S), N(E, S));
|
|
385
|
+
}, K = ({ children: e, className: t, ...a }) => {
|
|
386
|
+
const { signatureMode: n, setSignatureMode: o, clearable: s, handleClear: l } = a, { uploadEnabled: i } = x(), c = C(e, K.Tabs), u = C(e, K.Clear);
|
|
387
387
|
return /* @__PURE__ */ r.createElement("div", {
|
|
388
388
|
className: t
|
|
389
389
|
}, N(c, {
|
|
@@ -399,9 +399,9 @@ const Bt = (e) => {
|
|
|
399
399
|
}, [
|
|
400
400
|
o
|
|
401
401
|
]), d = {
|
|
402
|
-
[
|
|
403
|
-
[
|
|
404
|
-
[
|
|
402
|
+
[I.DRAW]: C(e, M.Draw),
|
|
403
|
+
[I.TYPE]: C(e, M.Type),
|
|
404
|
+
[I.UPLOAD]: s ? C(e, M.Upload) : null
|
|
405
405
|
}, f = d[n], m = Pt(f) ? f.props.description : void 0;
|
|
406
406
|
return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement("div", {
|
|
407
407
|
role: "status",
|
|
@@ -421,7 +421,7 @@ const Bt = (e) => {
|
|
|
421
421
|
"aria-controls": c,
|
|
422
422
|
"data-hook": mt.SIGNATURE_FIELD_MODE_SELECT,
|
|
423
423
|
className: t
|
|
424
|
-
}, d[
|
|
424
|
+
}, d[I.DRAW], d[I.TYPE], d[I.UPLOAD]));
|
|
425
425
|
}, Pt = (e) => /* @__PURE__ */ be(e), ue = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ r.createElement(lt, {
|
|
426
426
|
value: e,
|
|
427
427
|
"aria-label": n
|
|
@@ -430,16 +430,16 @@ const Bt = (e) => {
|
|
|
430
430
|
className: a
|
|
431
431
|
}, t)), Mt = (e) => /* @__PURE__ */ r.createElement(ue, {
|
|
432
432
|
...e,
|
|
433
|
-
mode:
|
|
433
|
+
mode: I.DRAW
|
|
434
434
|
}), Ht = (e) => /* @__PURE__ */ r.createElement(ue, {
|
|
435
435
|
...e,
|
|
436
|
-
mode:
|
|
436
|
+
mode: I.TYPE
|
|
437
437
|
}), Wt = (e) => /* @__PURE__ */ r.createElement(ue, {
|
|
438
438
|
...e,
|
|
439
|
-
mode:
|
|
439
|
+
mode: I.UPLOAD
|
|
440
440
|
}), zt = ({ children: e, className: t, "aria-label": a, ...n }) => {
|
|
441
441
|
const { handleClear: o } = n, { disabled: s, target: l } = x(), { inputId: i } = W();
|
|
442
|
-
return /* @__PURE__ */ r.createElement(
|
|
442
|
+
return /* @__PURE__ */ r.createElement(Ce, {
|
|
443
443
|
onPress: o,
|
|
444
444
|
isDisabled: s,
|
|
445
445
|
"aria-label": a,
|
|
@@ -448,7 +448,7 @@ const Bt = (e) => {
|
|
|
448
448
|
className: t
|
|
449
449
|
}, e);
|
|
450
450
|
}, H = ({ children: e, className: t, ...a }) => {
|
|
451
|
-
const { signatureView: n, signatureValueForView: o, handleChange: s, handleBeforeChange: l } = a, { disabled: i, readOnly: c, onBlur: u, onFocus: d, hasError: f } = x(), m =
|
|
451
|
+
const { signatureView: n, signatureValueForView: o, handleChange: s, handleBeforeChange: l } = a, { disabled: i, readOnly: c, onBlur: u, onFocus: d, hasError: f } = x(), m = C(e, H.Canvas), L = C(e, H.Type), h = C(e, H.Upload);
|
|
452
452
|
return /* @__PURE__ */ r.createElement("div", {
|
|
453
453
|
className: t,
|
|
454
454
|
"data-hook": "signature-input",
|
|
@@ -481,8 +481,8 @@ const Bt = (e) => {
|
|
|
481
481
|
onFocus: d
|
|
482
482
|
}));
|
|
483
483
|
}, Yt = ({ className: e, emptyLabel: t, signedLabel: a, ...n }) => {
|
|
484
|
-
const { value: o, onChange: s, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: f } = x(), { inputId: m, ariaDescribedBy: L } = W(), h = ce(), p = V(), g = V(), E = V(null),
|
|
485
|
-
|
|
484
|
+
const { value: o, onChange: s, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: f } = x(), { inputId: m, ariaDescribedBy: L } = W(), h = ce(), p = V(), g = V(), E = V(null), S = o == null ? void 0 : o.url, [Y, P] = q(!1);
|
|
485
|
+
Ie(() => {
|
|
486
486
|
var _;
|
|
487
487
|
(_ = g.current) == null || _.focus({
|
|
488
488
|
preventScroll: !0
|
|
@@ -507,7 +507,7 @@ const Bt = (e) => {
|
|
|
507
507
|
}, [
|
|
508
508
|
ee,
|
|
509
509
|
s
|
|
510
|
-
]),
|
|
510
|
+
]), Z = y(() => {
|
|
511
511
|
l == null || l();
|
|
512
512
|
}, [
|
|
513
513
|
l
|
|
@@ -517,20 +517,20 @@ const Bt = (e) => {
|
|
|
517
517
|
if (g.current = _, p.current = new _e(_, {
|
|
518
518
|
...v,
|
|
519
519
|
penColor: getComputedStyle(_).color || void 0
|
|
520
|
-
}), Ee(g.current, p.current),
|
|
521
|
-
const
|
|
522
|
-
|
|
520
|
+
}), Ee(g.current, p.current), S) {
|
|
521
|
+
const G = ye(S);
|
|
522
|
+
G && (p.current.fromData(G), P(!0));
|
|
523
523
|
} else
|
|
524
524
|
p.current.clear(), P(!1);
|
|
525
|
-
p.current.addEventListener("beginStroke",
|
|
525
|
+
p.current.addEventListener("beginStroke", Z), p.current.addEventListener("endStroke", $), typeof ResizeObserver < "u" && !E.current && (E.current = new ResizeObserver(() => {
|
|
526
526
|
g.current && Ee(g.current, p == null ? void 0 : p.current);
|
|
527
527
|
})), (U = E.current) == null || U.observe(_);
|
|
528
528
|
} else
|
|
529
|
-
(B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", $), (O = p.current) == null || O.removeEventListener("beginStroke",
|
|
529
|
+
(B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", $), (O = p.current) == null || O.removeEventListener("beginStroke", Z);
|
|
530
530
|
}, [
|
|
531
531
|
v,
|
|
532
|
-
|
|
533
|
-
|
|
532
|
+
S,
|
|
533
|
+
Z,
|
|
534
534
|
$
|
|
535
535
|
]);
|
|
536
536
|
return le(() => {
|
|
@@ -546,7 +546,7 @@ const Bt = (e) => {
|
|
|
546
546
|
id: m,
|
|
547
547
|
"data-hook": "signature-canvas",
|
|
548
548
|
"data-input-id": m,
|
|
549
|
-
"data-has-value": !!
|
|
549
|
+
"data-has-value": !!S,
|
|
550
550
|
onFocus: d,
|
|
551
551
|
onBlur: u,
|
|
552
552
|
role: "img",
|
|
@@ -554,10 +554,10 @@ const Bt = (e) => {
|
|
|
554
554
|
"aria-describedby": L
|
|
555
555
|
}));
|
|
556
556
|
}, de = ({ children: e, className: t, ...a }) => {
|
|
557
|
-
const { value: n, onChange: o, onBeforeChange: s, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: f, hasError: m } = x(), { inputId: L, ariaDescribedBy: h, labelId: p } = W(), g = ce(), E = n != null && n.url ? z(n.url) : void 0, { data:
|
|
557
|
+
const { value: n, onChange: o, onBeforeChange: s, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: f, hasError: m } = x(), { inputId: L, ariaDescribedBy: h, labelId: p } = W(), g = ce(), E = n != null && n.url ? z(n.url) : void 0, { data: S = "" } = E ?? {
|
|
558
558
|
data: ""
|
|
559
559
|
};
|
|
560
|
-
|
|
560
|
+
Ie(() => {
|
|
561
561
|
const v = document.getElementById(L);
|
|
562
562
|
v == null || v.focus({
|
|
563
563
|
preventScroll: !0
|
|
@@ -574,15 +574,15 @@ const Bt = (e) => {
|
|
|
574
574
|
const Y = y((v) => {
|
|
575
575
|
s == null || s(), v.trim() ? o(ie(Ae({
|
|
576
576
|
data: v,
|
|
577
|
-
mimeType:
|
|
577
|
+
mimeType: R.TEXT
|
|
578
578
|
}))) : o(null);
|
|
579
579
|
}, [
|
|
580
580
|
s,
|
|
581
581
|
o
|
|
582
|
-
]), P =
|
|
582
|
+
]), P = C(e, de.Value);
|
|
583
583
|
return /* @__PURE__ */ r.createElement(at, {
|
|
584
584
|
"aria-labelledby": p,
|
|
585
|
-
value:
|
|
585
|
+
value: S,
|
|
586
586
|
onChange: Y,
|
|
587
587
|
onBlur: c,
|
|
588
588
|
onFocus: u,
|
|
@@ -598,7 +598,7 @@ const Bt = (e) => {
|
|
|
598
598
|
inputId: L,
|
|
599
599
|
ariaDescribedBy: h
|
|
600
600
|
})));
|
|
601
|
-
},
|
|
601
|
+
}, Zt = ({ className: e, placeholder: t, ...a }) => {
|
|
602
602
|
const { inputId: n, ariaDescribedBy: o } = a;
|
|
603
603
|
return /* @__PURE__ */ r.createElement(st, {
|
|
604
604
|
id: n,
|
|
@@ -608,7 +608,7 @@ const Bt = (e) => {
|
|
|
608
608
|
className: e
|
|
609
609
|
});
|
|
610
610
|
}, Q = ({ children: e, className: t, ...a }) => {
|
|
611
|
-
const { value: n, onChange: o, disabled: s, readOnly: l, onBlur: i, onFocus: c } = a, { labelId: u, ariaDescribedBy: d } = W(), f =
|
|
611
|
+
const { value: n, onChange: o, disabled: s, readOnly: l, onBlur: i, onFocus: c } = a, { labelId: u, ariaDescribedBy: d } = W(), f = C(e, Q.Button), m = C(e, Q.Preview), L = y((p) => {
|
|
612
612
|
const g = p[0];
|
|
613
613
|
if (!g) {
|
|
614
614
|
o(null);
|
|
@@ -648,7 +648,7 @@ const Bt = (e) => {
|
|
|
648
648
|
onBlur: i,
|
|
649
649
|
onFocus: c
|
|
650
650
|
}));
|
|
651
|
-
},
|
|
651
|
+
}, Gt = ({ className: e, imageAlt: t, ...a }) => {
|
|
652
652
|
const { value: n } = a, { inputId: o } = W(), s = ce();
|
|
653
653
|
return /* @__PURE__ */ r.createElement("div", {
|
|
654
654
|
className: e,
|
|
@@ -664,7 +664,7 @@ const Bt = (e) => {
|
|
|
664
664
|
"data-hook": "signature-image"
|
|
665
665
|
}, n.displayName || t));
|
|
666
666
|
}, se = ({ children: e, className: t, onHoverStart: a, onHoverEnd: n, onFocusChange: o, ...s }) => {
|
|
667
|
-
const { onSelectFiles: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = s, { inputId: f, ariaDescribedBy: m, labelId: L } = W(), h = ft(), g = !!
|
|
667
|
+
const { onSelectFiles: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = s, { inputId: f, ariaDescribedBy: m, labelId: L } = W(), h = ft(), g = !!C(e, se.Text) ? Ne.map(e, (E) => /* @__PURE__ */ be(E) && E.type === se.Text ? N(E, {
|
|
668
668
|
textId: h
|
|
669
669
|
}) : E) : /* @__PURE__ */ r.createElement("span", {
|
|
670
670
|
id: h
|
|
@@ -676,7 +676,7 @@ const Bt = (e) => {
|
|
|
676
676
|
onSelect: (E) => {
|
|
677
677
|
l(E ? Array.from(E) : []);
|
|
678
678
|
}
|
|
679
|
-
}, /* @__PURE__ */ r.createElement(
|
|
679
|
+
}, /* @__PURE__ */ r.createElement(Ce, {
|
|
680
680
|
id: f,
|
|
681
681
|
onBlur: u,
|
|
682
682
|
onFocus: d,
|
|
@@ -697,21 +697,21 @@ const Bt = (e) => {
|
|
|
697
697
|
}, e);
|
|
698
698
|
};
|
|
699
699
|
b.Label = dt;
|
|
700
|
-
b.Input =
|
|
700
|
+
b.Input = J;
|
|
701
701
|
b.Description = ct;
|
|
702
702
|
b.Error = ut;
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
703
|
+
J.Header = K;
|
|
704
|
+
J.Value = H;
|
|
705
|
+
K.Tabs = M;
|
|
706
|
+
K.Clear = zt;
|
|
707
707
|
M.Draw = Mt;
|
|
708
708
|
M.Type = Ht;
|
|
709
709
|
M.Upload = Wt;
|
|
710
710
|
H.Canvas = Yt;
|
|
711
711
|
H.Type = de;
|
|
712
712
|
H.Upload = Q;
|
|
713
|
-
de.Value =
|
|
714
|
-
Q.Preview =
|
|
713
|
+
de.Value = Zt;
|
|
714
|
+
Q.Preview = Gt;
|
|
715
715
|
Q.Button = se;
|
|
716
716
|
se.Text = kt;
|
|
717
717
|
const Vt = () => {
|
|
@@ -770,9 +770,9 @@ const Vt = () => {
|
|
|
770
770
|
}, /* @__PURE__ */ r.createElement("path", {
|
|
771
771
|
fillRule: "evenodd",
|
|
772
772
|
d: "M12,4 L12,5 L8,5 L8,16 L7,16 L7,5 L3,5 L3,4 L12,4 Z M18,8 L18,9 L15,9 L15,16 L14,16 L14,9 L11,9 L11,8 L18,8 Z"
|
|
773
|
-
})),
|
|
774
|
-
container:
|
|
775
|
-
header:
|
|
773
|
+
})), Jt = "_container_63unz_1", Kt = "_header_63unz_7", Qt = "_tabs_63unz_13", en = "_tab_63unz_13", tn = "_tabHover_63unz_43", nn = "_tabSelected_63unz_48", an = "_tabIcon_63unz_78", on = "_uploadButton_63unz_85", sn = "_uploadButtonHover_63unz_138", rn = "_uploadButtonLabel_63unz_155", ln = "_clear_63unz_159", cn = "_value_63unz_191", un = "_box_63unz_196", dn = "_uploadBox_63unz_197", mn = "_dropZone_63unz_228", pn = "_dropZoneHover_63unz_243", fn = "_boxHover_63unz_280", En = "_typeInput_63unz_335", T = {
|
|
774
|
+
container: Jt,
|
|
775
|
+
header: Kt,
|
|
776
776
|
tabs: Qt,
|
|
777
777
|
tab: en,
|
|
778
778
|
tabHover: tn,
|
|
@@ -793,18 +793,18 @@ const Vt = () => {
|
|
|
793
793
|
content: e,
|
|
794
794
|
locale: t
|
|
795
795
|
}), hn = () => {
|
|
796
|
-
var
|
|
796
|
+
var Z, te, _, w, U, B;
|
|
797
797
|
const e = Vt(), { disabled: t, readOnly: a } = x(), n = !t && !a, o = X({
|
|
798
|
-
globalClasses:
|
|
798
|
+
globalClasses: Ke,
|
|
799
799
|
moduleClasses: {
|
|
800
800
|
base: T.tab,
|
|
801
801
|
hover: T.tabHover,
|
|
802
802
|
selected: T.tabSelected
|
|
803
803
|
}
|
|
804
|
-
}), s = ({ isSelected: D, isHovered: O, isFocused:
|
|
804
|
+
}), s = ({ isSelected: D, isHovered: O, isFocused: G }) => o({
|
|
805
805
|
isSelected: D,
|
|
806
806
|
isHovered: O,
|
|
807
|
-
isFocused:
|
|
807
|
+
isFocused: G,
|
|
808
808
|
isInteractive: n
|
|
809
809
|
}), i = X({
|
|
810
810
|
globalClasses: Xe,
|
|
@@ -833,12 +833,12 @@ const Vt = () => {
|
|
|
833
833
|
hover: T.dropZoneHover
|
|
834
834
|
}
|
|
835
835
|
}), f = X({
|
|
836
|
-
globalClasses:
|
|
836
|
+
globalClasses: Je,
|
|
837
837
|
moduleClasses: {
|
|
838
838
|
base: T.uploadButton,
|
|
839
839
|
hover: T.uploadButtonHover
|
|
840
840
|
}
|
|
841
|
-
}), m = (B = (U = (w = (_ = (te = (
|
|
841
|
+
}), m = (B = (U = (w = (_ = (te = (Z = Le().signature) == null ? void 0 : Z.elementProps) == null ? void 0 : te.dropZone) == null ? void 0 : _.elementProps) == null ? void 0 : w.uploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: h, ...p } = m ?? {}, g = He(ne.SIGNATURE, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), E = V(null), [S, Y] = q(!1), [P, v] = q(!1), ee = y(() => {
|
|
842
842
|
var D;
|
|
843
843
|
Y(!0), (D = E.current) == null || D.runAnimationForward();
|
|
844
844
|
}, []), $ = y(() => {
|
|
@@ -874,7 +874,7 @@ const Vt = () => {
|
|
|
874
874
|
}, /* @__PURE__ */ r.createElement(Xt, {
|
|
875
875
|
className: T.tabIcon
|
|
876
876
|
}))), /* @__PURE__ */ r.createElement(b.Input.Header.Clear, {
|
|
877
|
-
className: F(
|
|
877
|
+
className: F(Ze, T.clear),
|
|
878
878
|
"aria-label": e.clearLabel
|
|
879
879
|
}, /* @__PURE__ */ r.createElement($t, null))), /* @__PURE__ */ r.createElement(b.Input.Value, {
|
|
880
880
|
className: T.value
|
|
@@ -888,9 +888,9 @@ const Vt = () => {
|
|
|
888
888
|
className: T.typeInput,
|
|
889
889
|
placeholder: e.placeholder
|
|
890
890
|
})), /* @__PURE__ */ r.createElement(b.Input.Value.Upload, {
|
|
891
|
-
className: ({ isHovered: D, isFocused: O, isDropTarget:
|
|
891
|
+
className: ({ isHovered: D, isFocused: O, isDropTarget: G }) => F(T.uploadBox, d({
|
|
892
892
|
isSelected: !1,
|
|
893
|
-
isHovered: D ||
|
|
893
|
+
isHovered: D || G,
|
|
894
894
|
isFocused: O,
|
|
895
895
|
isInteractive: n
|
|
896
896
|
}))
|
|
@@ -910,10 +910,10 @@ const Vt = () => {
|
|
|
910
910
|
}, p.svg ? /* @__PURE__ */ r.createElement(Fe, {
|
|
911
911
|
...p,
|
|
912
912
|
ref: E,
|
|
913
|
-
className: F(
|
|
913
|
+
className: F(Ge, ke, h)
|
|
914
914
|
}) : null, /* @__PURE__ */ r.createElement(b.Input.Value.Upload.Button.Text, {
|
|
915
915
|
className: F(pe.base, T.uploadButtonLabel, g, {
|
|
916
|
-
[pe.hover]: n && (
|
|
916
|
+
[pe.hover]: n && (S || P)
|
|
917
917
|
})
|
|
918
918
|
}, e.uploadLabel))))), /* @__PURE__ */ r.createElement(b.Error, {
|
|
919
919
|
className: F(Ve, ae.error)
|