@wix/form-elements 1.131.0 → 1.133.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-BpZGi0ra.js → appointment-rac-D0mwr3TL.js} +5 -5
- package/dist/component/{bookings-address-rac-IU28SJy5.js → bookings-address-rac-BEnmwXax.js} +1 -1
- package/dist/component/{bookings-email-rac-BkhnLFKC.js → bookings-email-rac-D56j9PXc.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CwMmkICM.js → bookings-first-name-rac-xu3S-ih_.js} +1 -1
- package/dist/component/{bookings-header-rac-BtGNPfsP.js → bookings-header-rac-hfBabv7v.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BmloqxX9.js → bookings-last-name-rac-6bMvN0Cm.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-QHUQz0Do.js → bookings-login-bar-rac-DE70Omwf.js} +1 -1
- package/dist/component/{bookings-phone-rac-CBKcGM_o.js → bookings-phone-rac-D_EHRAiU.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DnazNxHe.js → bookings-rich-text-rac-BxgI9Zt6.js} +1 -1
- package/dist/component/{checkbox-field-rac-BSiNWGvO.js → checkbox-field-rac-BLDUOAXM.js} +6 -6
- package/dist/component/{checkbox-group-field-headless-Bl_gIm5X.js → checkbox-group-field-headless-CugSJIBp.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-_cpM6zrw.js → checkbox-group-field-rac-D4m9SmRX.js} +6 -6
- package/dist/component/{checkbox-group-rac-mZwI2tQ7.js → checkbox-group-rac-BYqEsCwa.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-Bqo0QILF.js → checkbox-indicator-module-classes-zXKP5rD4.js} +1 -1
- package/dist/component/{checkbox-rac-rfO8Kefs.js → checkbox-rac-DkIBUAN7.js} +1 -1
- package/dist/component/{contacts-address-rac-CHthblox.js → contacts-address-rac-D1tzbiTM.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CuvwylkU.js → contacts-birthdate-rac-DO-1xG0u.js} +1 -1
- package/dist/component/{contacts-company-rac-D546Lq1s.js → contacts-company-rac-CzJK3YIo.js} +1 -1
- package/dist/component/{contacts-email-rac-DwXQ_wWS.js → contacts-email-rac-DLvMErBI.js} +1 -1
- package/dist/component/{contacts-first-name-rac-C7bQDK9N.js → contacts-first-name-rac-3RcSXL0h.js} +1 -1
- package/dist/component/{contacts-last-name-rac-CQTkOyHY.js → contacts-last-name-rac-BYoSi_QX.js} +1 -1
- package/dist/component/{contacts-phone-rac-5_KC_NgQ.js → contacts-phone-rac-DMYn0orB.js} +1 -1
- package/dist/component/{contacts-position-rac-Y467YbGC.js → contacts-position-rac-K1R6ihXo.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-By3IlB_r.js → contacts-subscribe-rac-DsWNSH6t.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-Cz7LLBFg.js → contacts-tax-id-rac-D7NjPiRf.js} +1 -1
- package/dist/component/{date-availability-2VUtbyz1.js → date-availability-D3n6-g3h.js} +1 -1
- package/dist/component/{date-input-field-rac-C0YZZ7d1.js → date-input-field-rac-SyAmInlu.js} +7 -7
- package/dist/component/{date-input-rac-BIlIrfkK.js → date-input-rac-BQNOsWz1.js} +1 -1
- package/dist/component/{date-picker-field-rac-D96wqSQ2.js → date-picker-field-rac-DO1epod7.js} +6 -6
- package/dist/component/{date-picker-rac-CgVftEAJ.js → date-picker-rac-DQElftUu.js} +1 -1
- package/dist/component/{date-time-input-field-rac-C4uP9wLp.js → date-time-input-field-rac-CV5wZSXO.js} +7 -7
- package/dist/component/{date-time-input-rac-BgHUANTP.js → date-time-input-rac-DvHwpjnk.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DjiWZ293.js → dext-checkbox-group-rac-BfcKoslb.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BmUjJHD_.js → dext-checkbox-rac-DhadtXb5.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BlrV70R7.js → dext-date-picker-rac-0Dmo3mrG.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-JkFxwGgu.js → dext-date-time-input-rac-Cnh7Aqiq.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Xbczi-Z0.js → dext-dropdown-rac-CajXcYsB.js} +1 -1
- package/dist/component/{dext-email-rac-DkMdn4ps.js → dext-email-rac-DynJaiZt.js} +1 -1
- package/dist/component/{dext-number-input-rac-CNMiNuNi.js → dext-number-input-rac-LmTKwb80.js} +1 -1
- package/dist/component/{dext-phone-rac-C8c-RKQv.js → dext-phone-rac-Cw2roq1_.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BAJJSIKu.js → dext-radio-group-rac-CaNZJrkc.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BdnfHwl1.js → dext-rating-input-rac-CAL1jb0q.js} +1 -1
- package/dist/component/{dext-tags-rac-BjsYYa9X.js → dext-tags-rac-BOp_amVK.js} +2 -2
- package/dist/component/{dext-text-area-rac-Aatrs0NK.js → dext-text-area-rac-6DYTHIeh.js} +1 -1
- package/dist/component/{dext-text-input-rac-DgUfidRi.js → dext-text-input-rac-CDWthvV3.js} +1 -1
- package/dist/component/{dext-url-input-rac-DQbUHNX7.js → dext-url-input-rac-CsS4NPYO.js} +1 -1
- package/dist/component/{donation-rac-BEbw90qi.js → donation-rac-B7lFkotu.js} +48 -48
- package/dist/component/{dropdown-field-headless-Cg-_dZP4.js → dropdown-field-headless-ajQghLaj.js} +5 -5
- package/dist/component/{dropdown-field-rac-EjA-abC8.js → dropdown-field-rac-Bf5LQqSL.js} +5 -5
- package/dist/component/{dropdown-rac-zDidZ7dx.js → dropdown-rac-CJmA_ePl.js} +1 -1
- package/dist/component/{ecom-address-rac-Df9TvxEv.js → ecom-address-rac-B49ZP2qc.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B6ztLCEK.js → ecom-subscription-checkbox-rac-C8qImtxo.js} +2 -2
- package/dist/component/{email-input-field-rac-CpPKmeC5.js → email-input-field-rac-B_bEWp5N.js} +4 -4
- package/dist/component/{events-repeater-rac-C5VWlWG-.js → events-repeater-rac-DXxqmIBX.js} +6 -6
- package/dist/component/{events-rsvp-rac-CLTyr98o.js → events-rsvp-rac-BaJQLSv3.js} +4 -4
- package/dist/component/{field-error-headless-Dgx4BHo5.js → field-error-headless-BxEFPwKI.js} +1 -1
- package/dist/component/{field-label-headless-CsqtNbNm.js → field-label-headless-5mewgrhq.js} +1 -1
- package/dist/component/field-rac.module-BGN-O8tV.js +25 -0
- package/dist/component/{file-upload-rac-1SX9-51k.js → file-upload-rac-D9Z1Cumr.js} +172 -171
- package/dist/component/{fixed-payment-rac-C_zIu17t.js → fixed-payment-rac-S68bqvbB.js} +4 -4
- package/dist/component/{form-BoHpaLjl.js → form-CPY-PtxT.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-DBw1TpEG.js → header-field-rac-r6dYbnvA.js} +2 -2
- package/dist/component/{header-rac-DAnTKW4z.js → header-rac-C9gaKsaE.js} +1 -1
- package/dist/component/{image-choice-rac-CqnAnKbc.js → image-choice-rac-BbES5dAK.js} +27 -27
- package/dist/component/{index-Rqkz8Lrx.js → index-C6zuIVeJ.js} +2 -2
- package/dist/component/{index-g0wVTJHp.js → index-o-TpCHqo.js} +4 -4
- package/dist/component/{isObjectLike-Dt08IFKQ.js → isObjectLike-BSRiBVs9.js} +1 -1
- package/dist/component/{multiline-address-field-rac-1zdTMnWs.js → multiline-address-field-rac-BfVIiFyM.js} +8 -8
- package/dist/component/{multiline-address-rac-DI_2qWao.js → multiline-address-rac-BOKBExhi.js} +1 -1
- package/dist/component/{number-input-field-rac-1EfxOkZP.js → number-input-field-rac-BRKFm8aA.js} +5 -5
- package/dist/component/{number-input-rac-AG8ecaT6.js → number-input-rac-BNbCCb-g.js} +1 -1
- package/dist/component/{password-rac-CGu6cCp2.js → password-rac-BygVJf7f.js} +5 -5
- package/dist/component/{payment-input-rac-CRMqRcWZ.js → payment-input-rac-CoMbHcHG.js} +5 -5
- package/dist/component/{phone-input-field-rac-Bpk1kirr.js → phone-input-field-rac-dFjxptEr.js} +116 -115
- package/dist/component/{phone-rac-w7Kiv6ru.js → phone-rac-Dup3AP9J.js} +1 -1
- package/dist/component/{product-list-rac-WIshqJ3F.js → product-list-rac-B62mNB_W.js} +6 -6
- package/dist/component/{quiz-radio-group-rac-BkB4fikl.js → quiz-radio-group-rac-DPMhDtr7.js} +1 -1
- package/dist/component/{radio-button-module-classes-D78goUwl.js → radio-button-module-classes-BMvPai_6.js} +3 -3
- package/dist/component/{radio-group-field-rac-Cx2nvCDW.js → radio-group-field-rac-DPt2Zl4G.js} +5 -5
- package/dist/component/{radio-group-rac-46JW3dAH.js → radio-group-rac-BZyGqFzr.js} +1 -1
- package/dist/component/{rating-input-field-rac-D05VBUGw.js → rating-input-field-rac-C3E0KzV-.js} +5 -5
- package/dist/component/{rating-input-rac-DtnpPnnU.js → rating-input-rac-BKLz4l_D.js} +1 -1
- package/dist/component/{rich-content-rac.module-W8U6Eupl.js → rich-content-rac.module-CQ1qa_zz.js} +1 -1
- package/dist/component/{rich-text-field-rac-BKMs8NOQ.js → rich-text-field-rac-BfdA5KNz.js} +2 -2
- package/dist/component/{rich-text-rac-BJ4Jii81.js → rich-text-rac-BFbhfFuF.js} +1 -1
- package/dist/component/{service-dropdown-rac-CEDqWqhg.js → service-dropdown-rac-VulpHBki.js} +6 -6
- package/dist/component/{services-multi-choice-rac-9qwSAT5T.js → services-multi-choice-rac-CIx5UpfD.js} +7 -7
- package/dist/component/{signature-rac-D6BMpTFh.js → signature-rac-BdxMBfl9.js} +133 -132
- package/dist/component/{submit-button-rac-Bj3iEONs.js → submit-button-rac-CkuWGEyL.js} +39 -39
- package/dist/component/{tags-field-rac-DMD53JR4.js → tags-field-rac-DKo_Yb5i.js} +45 -45
- package/dist/component/{tags-rac-BNL4fHg-.js → tags-rac-BimVd3ym.js} +1 -1
- package/dist/component/{text-area-field-rac-CHJzdEBE.js → text-area-field-rac-DEiLtCnb.js} +5 -5
- package/dist/component/{text-area-rac-CgoEe9Qh.js → text-area-rac-CHZtsq0f.js} +1 -1
- package/dist/component/{text-input-field-rac-DewYQNfK.js → text-input-field-rac-CSHvUtRG.js} +4 -4
- package/dist/component/{text-input-headless-OayaIOMS.js → text-input-headless-BYcExFPS.js} +3 -3
- package/dist/component/{text-input-rac-4SxpOILY.js → text-input-rac-D-R9btYo.js} +1 -1
- package/dist/component/{time-input-rac-CivcOPuU.js → time-input-rac-wkHemVzj.js} +5 -5
- package/dist/component/{url-input-field-rac-BK3WIP-A.js → url-input-field-rac-KJEcLyFk.js} +5 -5
- package/dist/component/{url-input-rac-Dgn9n6w1.js → url-input-rac-JFfEH389.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-BZu-Fese.js → use-dropdown-option-class-name-BetaTWbW.js} +3 -3
- package/dist/component/{use-dropdown-trigger-class-name-Dpk8_xn2.js → use-dropdown-trigger-class-name-C0ffAjFn.js} +2 -2
- package/dist/component/{use-element-state-class-name-Cby7DA2T.js → use-element-state-class-name-BOks3she.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-CKBvA8Gx.js → use-hoverable-input-class-name-jxtCw16L.js} +3 -3
- package/dist/component/{use-service-options-base-Px-Ey93X.js → use-service-options-base-q0JTA7UI.js} +1 -1
- package/dist/component/use-text-input-class-name-CTa0bC4T.js +6 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-BIBNQEOK.js +0 -25
- package/dist/component/use-text-input-class-name-D30YesHa.js +0 -6
package/dist/component/{rich-content-rac.module-W8U6Eupl.js → rich-content-rac.module-CQ1qa_zz.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import { bh as a, b9 as i, br as T } from "./form-
|
|
2
|
+
import { bh as a, b9 as i, br as T } from "./form-CPY-PtxT.js";
|
|
3
3
|
import { Button as d } from "react-aria-components";
|
|
4
4
|
import { D as r } from "./data-hooks-Dkw1pbRj.js";
|
|
5
5
|
import { truncateRichContent as _ } from "@wix/ricos/content";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { bh as m, au as u, ac as i, aU as R, aX as T } from "./form-
|
|
4
|
-
import { u as C, R as d, s as g, T as h } from "./rich-content-rac.module-
|
|
3
|
+
import { bh as m, au as u, ac as i, aU as R, aX as T } from "./form-CPY-PtxT.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as h } from "./rich-content-rac.module-CQ1qa_zz.js";
|
|
5
5
|
const p = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
package/dist/component/{service-dropdown-rac-CEDqWqhg.js → service-dropdown-rac-VulpHBki.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import t, { useRef as T, useMemo as _, useCallback as h, useEffect as b } from "react";
|
|
2
2
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
3
|
import E from "classnames";
|
|
4
|
-
import { bd as P, br as A, F as M, bh as y, b9 as U, aj as V, I as x, U as H, K as k, v as q, p as B } from "./form-
|
|
5
|
-
import { u as W } from "./use-service-options-base-
|
|
6
|
-
import { D as u } from "./dropdown-field-headless-
|
|
4
|
+
import { bd as P, br as A, F as M, bh as y, b9 as U, aj as V, I as x, U as H, K as k, v as q, p as B } from "./form-CPY-PtxT.js";
|
|
5
|
+
import { u as W } from "./use-service-options-base-q0JTA7UI.js";
|
|
6
|
+
import { D as u } from "./dropdown-field-headless-ajQghLaj.js";
|
|
7
7
|
import { C as j } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
8
|
import { E as K } from "./error-icon-hZxQ6DEy.js";
|
|
9
9
|
import { H as Q } from "./custom-focus-class-_483Pkwp.js";
|
|
10
|
-
import { s as a } from "./field-rac.module-
|
|
11
|
-
import { u as Y } from "./use-dropdown-option-class-name-
|
|
12
|
-
import { u as z } from "./use-dropdown-trigger-class-name-
|
|
10
|
+
import { s as a } from "./field-rac.module-BGN-O8tV.js";
|
|
11
|
+
import { u as Y } from "./use-dropdown-option-class-name-BetaTWbW.js";
|
|
12
|
+
import { u as z } from "./use-dropdown-trigger-class-name-C0ffAjFn.js";
|
|
13
13
|
const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
14
14
|
const { actions: o } = P(), { t: C } = A(), { addOther: n, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), i = T(!0), d = _(() => {
|
|
15
15
|
var s;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useEffect as I, useMemo as L } from "react";
|
|
2
2
|
import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
3
3
|
import a from "classnames";
|
|
4
|
-
import { F as R, bh as d, aj as D, I as F, U as N, i as f, k as h, v as b, p as M, j as A } from "./form-
|
|
5
|
-
import { u as v } from "./use-service-options-base-
|
|
6
|
-
import { C as i } from "./checkbox-group-field-headless-
|
|
4
|
+
import { F as R, bh as d, aj as D, I as F, U as N, i as f, k as h, v as b, p as M, j as A } from "./form-CPY-PtxT.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-q0JTA7UI.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-CugSJIBp.js";
|
|
7
7
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
8
|
-
import { C as P } from "./checkbox-indicator-module-classes-
|
|
9
|
-
import { s as n } from "./field-rac.module-
|
|
8
|
+
import { C as P } from "./checkbox-indicator-module-classes-zXKP5rD4.js";
|
|
9
|
+
import { s as n } from "./field-rac.module-BGN-O8tV.js";
|
|
10
10
|
import { o as _ } from "./options-rac.module-_THNq6Qq.js";
|
|
11
|
-
import { u as T } from "./use-element-state-class-name-
|
|
12
|
-
import { u as k } from "./use-text-input-class-name-
|
|
11
|
+
import { u as T } from "./use-element-state-class-name-BOks3she.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-CTa0bC4T.js";
|
|
13
13
|
const y = (s) => {
|
|
14
14
|
var C;
|
|
15
15
|
const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: p } = v({
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import s, { useRef as V, useContext as Ae, useMemo as
|
|
1
|
+
import s, { useRef as V, useContext as Ae, useMemo as ge, useCallback as v, useState as ne, useEffect as oe, Children as we, isValidElement as Le } from "react";
|
|
2
2
|
import Fe from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import { RicosViewer as xe } from "@wix/ricos/viewer";
|
|
4
4
|
import w from "classnames";
|
|
5
|
-
import { aL as Ue, bb as Te, an as
|
|
5
|
+
import { aL as Ue, bb as Te, an as Be, F as Oe, bd as Pe, b9 as Me, bp as Ce, E as me, ad as ee, bh as U, be as M, bj as Ie, br as He, ba as We, I as Ye, U as Ze, X as ke, p as pe, b as Ve, a0 as Ge, a1 as fe, v as $e, W as ze, _ as Xe, Y as qe, $ as je, f as K, Z as Je } from "./form-CPY-PtxT.js";
|
|
6
6
|
import { useHover as Ke, useFocusRing as Qe, mergeProps as et } from "react-aria";
|
|
7
|
-
import { RadioGroup as tt, Button as
|
|
8
|
-
import
|
|
7
|
+
import { RadioGroup as tt, Button as _e, TextField as nt, DropZone as at, Input as ot, FileTrigger as rt, RadioField as st, RadioButton as lt } from "react-aria-components";
|
|
8
|
+
import ye from "signature_pad";
|
|
9
9
|
import { f as I, a as A } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as it, E as ct } from "./field-error-headless-
|
|
11
|
-
import { L as ut } from "./field-label-headless-
|
|
10
|
+
import { D as it, E as ct } from "./field-error-headless-BxEFPwKI.js";
|
|
11
|
+
import { L as ut } from "./field-label-headless-5mewgrhq.js";
|
|
12
12
|
import { D as dt } from "./data-hooks-Dkw1pbRj.js";
|
|
13
13
|
import { E as mt } from "./error-icon-hZxQ6DEy.js";
|
|
14
|
-
import { s as Q } from "./field-rac.module-
|
|
15
|
-
import { u as $ } from "./use-element-state-class-name-
|
|
16
|
-
const pt = typeof s.useId == "function" ? s.useId : () => V(Ue()).current, ft = ({ properties: e }) => e.uploadEnabled === !0, Et = (e, t) => e.fieldType ===
|
|
14
|
+
import { s as Q } from "./field-rac.module-BGN-O8tV.js";
|
|
15
|
+
import { u as $ } from "./use-element-state-class-name-BOks3she.js";
|
|
16
|
+
const pt = typeof s.useId == "function" ? s.useId : () => V(Ue()).current, ft = ({ properties: e }) => e.uploadEnabled === !0, Et = (e, t) => e.fieldType === Oe.SIGNATURE && !e.properties.hidden && !e.properties.disabled && !e.properties.readOnly && (t !== "upload" || ft(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 = Te().signatureContainer) == null ? void 0 : o.signatureMode, a = Ae(
|
|
19
|
-
return
|
|
18
|
+
const t = (o = Te().signatureContainer) == null ? void 0 : o.signatureMode, a = Ae(Be);
|
|
19
|
+
return ge(() => {
|
|
20
20
|
var r;
|
|
21
21
|
return a && !a.parentId && t ? (r = a.fields.filter((l) => Et(l, t)).sort(ht)[0]) == null ? void 0 : r.id : void 0;
|
|
22
22
|
}, [
|
|
@@ -31,8 +31,8 @@ var N = /* @__PURE__ */ (function(e) {
|
|
|
31
31
|
})({}), S = /* @__PURE__ */ (function(e) {
|
|
32
32
|
return e.DRAW = "draw", e.TYPE = "type", e.IMAGE = "image", e.UPLOAD = "upload", e;
|
|
33
33
|
})({});
|
|
34
|
-
const
|
|
35
|
-
const { actions: t, formId: a } =
|
|
34
|
+
const gt = (e) => {
|
|
35
|
+
const { actions: t, formId: a } = Pe(), n = t == null ? void 0 : t.uploadFile;
|
|
36
36
|
return v(async (o) => {
|
|
37
37
|
if (!n)
|
|
38
38
|
throw new Error("No uploadFile action");
|
|
@@ -77,11 +77,11 @@ function ae(e, t) {
|
|
|
77
77
|
for (m = 0; m < o; m++)
|
|
78
78
|
for (E = 0; E < n; E++)
|
|
79
79
|
l(E, m) || (i > E && (i = E), c < E && (c = E), u > m && (u = m), d < m && (d = m));
|
|
80
|
-
const h = c - i,
|
|
81
|
-
if (h < 0 ||
|
|
80
|
+
const h = c - i, g = d - u;
|
|
81
|
+
if (h < 0 || g < 0)
|
|
82
82
|
return null;
|
|
83
|
-
const p = a.getImageData(i, u, h,
|
|
84
|
-
return f.width = h, f.height =
|
|
83
|
+
const p = a.getImageData(i, u, h, g), f = document.createElement("canvas"), L = f.getContext("2d");
|
|
84
|
+
return f.width = h, f.height = g, t ? (L.fillStyle = t, L.fillRect(0, 0, h, g)) : L.clearRect(0, 0, h, g), L.putImageData(p, 0, 0), f;
|
|
85
85
|
}
|
|
86
86
|
function z(e, t, a) {
|
|
87
87
|
const n = document.createElement("canvas");
|
|
@@ -112,7 +112,7 @@ function he(e, t) {
|
|
|
112
112
|
const a = e.getContext("2d"), n = e.offsetWidth, o = e.offsetHeight, r = Math.max(window.devicePixelRatio || 1, 1), l = n * r, i = o * r;
|
|
113
113
|
return (e.width !== l || e.height !== i) && a ? (e.width = l, e.height = i, a.scale(r, r), t == null || t.redraw(), !0) : !1;
|
|
114
114
|
}
|
|
115
|
-
const k = 480,
|
|
115
|
+
const k = 480, _t = (e) => Re({
|
|
116
116
|
data: JSON.stringify(e),
|
|
117
117
|
mimeType: N.POINTS
|
|
118
118
|
}), ve = (e) => {
|
|
@@ -124,7 +124,7 @@ const k = 480, yt = (e) => Re({
|
|
|
124
124
|
return null;
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
|
-
},
|
|
127
|
+
}, be = 0.8, De = "Madefor";
|
|
128
128
|
function Ne(e, t) {
|
|
129
129
|
const { width: a, actualBoundingBoxAscent: n, actualBoundingBoxDescent: o } = t.measureText(e);
|
|
130
130
|
return {
|
|
@@ -133,14 +133,14 @@ function Ne(e, t) {
|
|
|
133
133
|
offsetY: n
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
const a = t.getContext("2d"), n = t.offsetWidth || t.width, r = (t.offsetHeight || t.height) *
|
|
136
|
+
function yt(e, t) {
|
|
137
|
+
const a = t.getContext("2d"), n = t.offsetWidth || t.width, r = (t.offsetHeight || t.height) * be, l = n * be;
|
|
138
138
|
a.font = `${r}px ${De}`;
|
|
139
139
|
const { width: i, height: c } = Ne(e, a), u = r / (i / l), d = r / (c / r);
|
|
140
140
|
return Math.min(u, d);
|
|
141
141
|
}
|
|
142
142
|
function vt(e, t, a = "black", n = !1, o) {
|
|
143
|
-
const r = e.getContext("2d"), l =
|
|
143
|
+
const r = e.getContext("2d"), l = yt(t, e);
|
|
144
144
|
r.font = `${l}px ${De}`, r.textBaseline = "top";
|
|
145
145
|
const i = e.offsetWidth || e.width, c = e.offsetHeight || e.height, { width: u, height: d, offsetY: E } = Ne(t, r);
|
|
146
146
|
r.fillStyle = o, r.fillRect(0, 0, i, c), r.fillStyle = a;
|
|
@@ -211,7 +211,7 @@ async function St(e, t) {
|
|
|
211
211
|
...d,
|
|
212
212
|
penColor: "black"
|
|
213
213
|
})), l = z(k * 20, k, Math.max(window.devicePixelRatio || 1, 1));
|
|
214
|
-
new
|
|
214
|
+
new ye(l).fromData(r);
|
|
215
215
|
const c = ae(l);
|
|
216
216
|
return c ? Ee(c, void 0, k, "white").toDataURL("image/jpeg", 0.7) : null;
|
|
217
217
|
}
|
|
@@ -227,7 +227,7 @@ async function Rt(e, t) {
|
|
|
227
227
|
return Nt(a, "signature");
|
|
228
228
|
}
|
|
229
229
|
const At = ({ value: e, onChange: t, target: a }) => {
|
|
230
|
-
const [n, o] = ne(e), { isRTL: r } = Me(), l =
|
|
230
|
+
const [n, o] = ne(e), { isRTL: r } = Me(), l = gt(a), { setFormStatus: i } = Ce(), c = V();
|
|
231
231
|
oe(() => {
|
|
232
232
|
e === me && o(me);
|
|
233
233
|
}, [
|
|
@@ -235,9 +235,9 @@ const At = ({ value: e, onChange: t, target: a }) => {
|
|
|
235
235
|
]);
|
|
236
236
|
const u = v(() => {
|
|
237
237
|
c.current && (clearTimeout(c.current), c.current = null);
|
|
238
|
-
}, []), d = n == null ? void 0 : n[0], E = d != null && d.url ? H(d.url) : void 0, m = v(async (
|
|
238
|
+
}, []), d = n == null ? void 0 : n[0], E = d != null && d.url ? H(d.url) : void 0, m = v(async (g) => {
|
|
239
239
|
try {
|
|
240
|
-
const p = (
|
|
240
|
+
const p = (g == null ? void 0 : g.url) ?? "";
|
|
241
241
|
if (Dt(p)) {
|
|
242
242
|
const f = await Rt(p, r);
|
|
243
243
|
if (f) {
|
|
@@ -260,13 +260,13 @@ const At = ({ value: e, onChange: t, target: a }) => {
|
|
|
260
260
|
t
|
|
261
261
|
]);
|
|
262
262
|
return {
|
|
263
|
-
handleChange: v((
|
|
263
|
+
handleChange: v((g) => {
|
|
264
264
|
const p = (f) => {
|
|
265
265
|
c.current = setTimeout(() => m(f), 1500);
|
|
266
266
|
};
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
]), p(
|
|
267
|
+
g ? (c.current && (clearTimeout(c.current), c.current = null), o([
|
|
268
|
+
g
|
|
269
|
+
]), p(g)) : (t == null || t(null), o(void 0), i(a, ee.READY));
|
|
270
270
|
}, [
|
|
271
271
|
m,
|
|
272
272
|
t,
|
|
@@ -306,7 +306,7 @@ const At = ({ value: e, onChange: t, target: a }) => {
|
|
|
306
306
|
n,
|
|
307
307
|
u,
|
|
308
308
|
e
|
|
309
|
-
]), m = r != null, h = xt(i, r, l),
|
|
309
|
+
]), m = r != null, h = xt(i, r, l), g = (() => {
|
|
310
310
|
switch (i) {
|
|
311
311
|
case C.DRAW:
|
|
312
312
|
return S.DRAW;
|
|
@@ -324,7 +324,7 @@ const At = ({ value: e, onChange: t, target: a }) => {
|
|
|
324
324
|
signatureMode: i,
|
|
325
325
|
clearable: m,
|
|
326
326
|
signatureValueForView: h,
|
|
327
|
-
signatureView:
|
|
327
|
+
signatureView: g,
|
|
328
328
|
handleChange: n,
|
|
329
329
|
setSignatureMode: c,
|
|
330
330
|
handleBeforeChange: d,
|
|
@@ -351,20 +351,20 @@ const Ut = (e) => {
|
|
|
351
351
|
"data-focus-within": n || void 0,
|
|
352
352
|
"data-focus-visible": o || void 0
|
|
353
353
|
};
|
|
354
|
-
},
|
|
355
|
-
const { id: t, FieldLayout: a } = U(), n = I(e,
|
|
354
|
+
}, b = ({ children: e }) => {
|
|
355
|
+
const { id: t, FieldLayout: a } = U(), n = I(e, b.Label), o = I(e, b.Input), r = I(e, b.Description), l = I(e, b.Error);
|
|
356
356
|
return /* @__PURE__ */ s.createElement(a, {
|
|
357
357
|
fieldId: t,
|
|
358
358
|
renderLabel: () => n,
|
|
359
359
|
renderInput: () => o,
|
|
360
360
|
renderDescription: () => /* @__PURE__ */ s.createElement(s.Fragment, null, l, r)
|
|
361
361
|
});
|
|
362
|
-
},
|
|
362
|
+
}, Bt = {
|
|
363
363
|
[C.DRAW]: S.DRAW,
|
|
364
364
|
[C.TYPE]: S.TYPE,
|
|
365
365
|
[C.UPLOAD]: S.UPLOAD
|
|
366
366
|
}, X = ({ children: e, className: t }) => {
|
|
367
|
-
const { id: a, value: n, onChange: o, target: r, readOnly: l } = U(), i =
|
|
367
|
+
const { id: a, value: n, onChange: o, target: r, readOnly: l } = U(), i = bt(a), { signatureMode: c, setSignatureMode: u, handleClear: d, clearable: E, signatureView: m, signatureValueForView: h, handleChange: g, handleBeforeChange: p } = wt({
|
|
368
368
|
target: r,
|
|
369
369
|
value: n,
|
|
370
370
|
onChange: o
|
|
@@ -373,9 +373,9 @@ const Ut = (e) => {
|
|
|
373
373
|
setSignatureMode: u,
|
|
374
374
|
handleClear: d,
|
|
375
375
|
clearable: E,
|
|
376
|
-
signatureView: i ?
|
|
376
|
+
signatureView: i ? Bt[i] : m,
|
|
377
377
|
signatureValueForView: i ? void 0 : h,
|
|
378
|
-
handleChange:
|
|
378
|
+
handleChange: g,
|
|
379
379
|
handleBeforeChange: p
|
|
380
380
|
};
|
|
381
381
|
return /* @__PURE__ */ s.createElement("div", {
|
|
@@ -393,16 +393,16 @@ const Ut = (e) => {
|
|
|
393
393
|
}), r && A(u, {
|
|
394
394
|
handleClear: l
|
|
395
395
|
}));
|
|
396
|
-
},
|
|
396
|
+
}, O = ({ children: e, className: t, ...a }) => {
|
|
397
397
|
const { signatureMode: n, setSignatureMode: o, uploadEnabled: r } = a, { disabled: l } = U(), { labelId: i, inputId: c } = M(), u = v((h) => {
|
|
398
398
|
o(h);
|
|
399
399
|
}, [
|
|
400
400
|
o
|
|
401
401
|
]), d = {
|
|
402
|
-
[C.DRAW]: I(e,
|
|
403
|
-
[C.TYPE]: I(e,
|
|
404
|
-
[C.UPLOAD]: r ? I(e,
|
|
405
|
-
}, E = d[n], m =
|
|
402
|
+
[C.DRAW]: I(e, O.Draw),
|
|
403
|
+
[C.TYPE]: I(e, O.Type),
|
|
404
|
+
[C.UPLOAD]: r ? I(e, O.Upload) : null
|
|
405
|
+
}, E = d[n], m = Ot(E) ? E.props.description : void 0;
|
|
406
406
|
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
|
|
407
407
|
role: "status",
|
|
408
408
|
"aria-live": "polite",
|
|
@@ -422,13 +422,13 @@ const Ut = (e) => {
|
|
|
422
422
|
"data-hook": dt.SIGNATURE_FIELD_MODE_SELECT,
|
|
423
423
|
className: t
|
|
424
424
|
}, d[C.DRAW], d[C.TYPE], d[C.UPLOAD]));
|
|
425
|
-
},
|
|
425
|
+
}, Ot = (e) => /* @__PURE__ */ Le(e), le = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(st, {
|
|
426
426
|
value: e,
|
|
427
427
|
"aria-label": n
|
|
428
428
|
}, /* @__PURE__ */ s.createElement(lt, {
|
|
429
429
|
"data-hook": `signature-mode-${e}`,
|
|
430
430
|
className: a
|
|
431
|
-
}, t)),
|
|
431
|
+
}, t)), Pt = (e) => /* @__PURE__ */ s.createElement(le, {
|
|
432
432
|
...e,
|
|
433
433
|
mode: C.DRAW
|
|
434
434
|
}), Mt = (e) => /* @__PURE__ */ s.createElement(le, {
|
|
@@ -439,7 +439,7 @@ const Ut = (e) => {
|
|
|
439
439
|
mode: C.UPLOAD
|
|
440
440
|
}), Wt = ({ children: e, className: t, "aria-label": a, ...n }) => {
|
|
441
441
|
const { handleClear: o } = n, { disabled: r, target: l } = U(), { inputId: i } = M();
|
|
442
|
-
return /* @__PURE__ */ s.createElement(
|
|
442
|
+
return /* @__PURE__ */ s.createElement(_e, {
|
|
443
443
|
onPress: o,
|
|
444
444
|
isDisabled: r,
|
|
445
445
|
"aria-label": a,
|
|
@@ -447,8 +447,8 @@ const Ut = (e) => {
|
|
|
447
447
|
"data-hook": `clear-${l}`,
|
|
448
448
|
className: t
|
|
449
449
|
}, e);
|
|
450
|
-
},
|
|
451
|
-
const { signatureView: n, signatureValueForView: o, handleChange: r, handleBeforeChange: l } = a, { disabled: i, readOnly: c, onBlur: u, onFocus: d, hasError: E } = U(), m = I(e,
|
|
450
|
+
}, P = ({ children: e, className: t, ...a }) => {
|
|
451
|
+
const { signatureView: n, signatureValueForView: o, handleChange: r, handleBeforeChange: l } = a, { disabled: i, readOnly: c, onBlur: u, onFocus: d, hasError: E } = U(), m = I(e, P.Canvas), h = I(e, P.Type), g = I(e, P.Upload);
|
|
452
452
|
return /* @__PURE__ */ s.createElement("div", {
|
|
453
453
|
className: t,
|
|
454
454
|
"data-hook": "signature-input",
|
|
@@ -471,7 +471,7 @@ const Ut = (e) => {
|
|
|
471
471
|
readOnly: c,
|
|
472
472
|
onBlur: u,
|
|
473
473
|
onFocus: d
|
|
474
|
-
}), (n === S.UPLOAD || n === S.IMAGE) && A(
|
|
474
|
+
}), (n === S.UPLOAD || n === S.IMAGE) && A(g, {
|
|
475
475
|
value: o,
|
|
476
476
|
onChange: r,
|
|
477
477
|
onBeforeChange: l,
|
|
@@ -481,27 +481,27 @@ const Ut = (e) => {
|
|
|
481
481
|
onFocus: d
|
|
482
482
|
}));
|
|
483
483
|
}, Yt = ({ className: e, emptyLabel: t, signedLabel: a, ...n }) => {
|
|
484
|
-
const { value: o, onChange: r, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: E } = U(), { inputId: m, ariaDescribedBy: h } = M(),
|
|
484
|
+
const { value: o, onChange: r, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: E } = U(), { inputId: m, ariaDescribedBy: h } = M(), g = se(), p = V(), f = V(), L = V(null), R = o == null ? void 0 : o.url, [W, B] = ne(!1);
|
|
485
485
|
Ie(() => {
|
|
486
|
-
var
|
|
487
|
-
(
|
|
486
|
+
var y;
|
|
487
|
+
(y = f.current) == null || y.focus();
|
|
488
488
|
}, E);
|
|
489
|
-
const D =
|
|
489
|
+
const D = ge(() => ({
|
|
490
490
|
throttle: 0,
|
|
491
491
|
dotSize: 2,
|
|
492
492
|
minWidth: 1,
|
|
493
493
|
maxWidth: 3,
|
|
494
494
|
velocityFilterWeight: 0.2
|
|
495
495
|
}), []), G = v(() => {
|
|
496
|
-
var F,
|
|
496
|
+
var F, _, x;
|
|
497
497
|
if ((F = p.current) != null && F.isEmpty())
|
|
498
498
|
return "";
|
|
499
|
-
const
|
|
500
|
-
return
|
|
499
|
+
const y = (_ = p.current) == null ? void 0 : _.toData();
|
|
500
|
+
return y ? _t(y) : ((x = p.current) == null ? void 0 : x.toDataURL()) ?? "";
|
|
501
501
|
}, []), Y = v(() => {
|
|
502
502
|
var F;
|
|
503
|
-
const
|
|
504
|
-
|
|
503
|
+
const y = (F = p.current) == null ? void 0 : F.isEmpty();
|
|
504
|
+
B(!y), r(re(G()));
|
|
505
505
|
}, [
|
|
506
506
|
G,
|
|
507
507
|
r
|
|
@@ -509,20 +509,20 @@ const Ut = (e) => {
|
|
|
509
509
|
l == null || l();
|
|
510
510
|
}, [
|
|
511
511
|
l
|
|
512
|
-
]), J = v((
|
|
513
|
-
var
|
|
514
|
-
if (
|
|
515
|
-
if (f.current =
|
|
512
|
+
]), J = v((y) => {
|
|
513
|
+
var _, x, ce, ue;
|
|
514
|
+
if (y != null) {
|
|
515
|
+
if (f.current = y, p.current = new ye(y, {
|
|
516
516
|
...D,
|
|
517
|
-
penColor: getComputedStyle(
|
|
517
|
+
penColor: getComputedStyle(y).color || void 0
|
|
518
518
|
}), he(f.current, p.current), R) {
|
|
519
519
|
const de = ve(R);
|
|
520
|
-
de && (p.current.fromData(de),
|
|
520
|
+
de && (p.current.fromData(de), B(!0));
|
|
521
521
|
} else
|
|
522
|
-
p.current.clear(),
|
|
522
|
+
p.current.clear(), B(!1);
|
|
523
523
|
p.current.addEventListener("beginStroke", Z), p.current.addEventListener("endStroke", Y), typeof ResizeObserver < "u" && !L.current && (L.current = new ResizeObserver(() => {
|
|
524
524
|
f.current && he(f.current, p == null ? void 0 : p.current);
|
|
525
|
-
})), (
|
|
525
|
+
})), (_ = L.current) == null || _.observe(y);
|
|
526
526
|
} else
|
|
527
527
|
(x = L.current) == null || x.disconnect(), (ce = p.current) == null || ce.removeEventListener("endStroke", Y), (ue = p.current) == null || ue.removeEventListener("beginStroke", Z);
|
|
528
528
|
}, [
|
|
@@ -538,7 +538,7 @@ const Ut = (e) => {
|
|
|
538
538
|
c
|
|
539
539
|
]), /* @__PURE__ */ s.createElement("div", {
|
|
540
540
|
className: e,
|
|
541
|
-
...
|
|
541
|
+
...g
|
|
542
542
|
}, /* @__PURE__ */ s.createElement("canvas", {
|
|
543
543
|
ref: J,
|
|
544
544
|
id: m,
|
|
@@ -552,7 +552,7 @@ const Ut = (e) => {
|
|
|
552
552
|
"aria-describedby": h
|
|
553
553
|
}));
|
|
554
554
|
}, ie = ({ children: e, className: t, ...a }) => {
|
|
555
|
-
const { value: n, onChange: o, onBeforeChange: r, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: E, hasError: m } = U(), { inputId: h, ariaDescribedBy:
|
|
555
|
+
const { value: n, onChange: o, onBeforeChange: r, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: E, hasError: m } = U(), { inputId: h, ariaDescribedBy: g, labelId: p } = M(), f = se(), L = n != null && n.url ? H(n.url) : void 0, { data: R = "" } = L ?? {
|
|
556
556
|
data: ""
|
|
557
557
|
};
|
|
558
558
|
Ie(() => {
|
|
@@ -577,7 +577,7 @@ const Ut = (e) => {
|
|
|
577
577
|
}, [
|
|
578
578
|
r,
|
|
579
579
|
o
|
|
580
|
-
]),
|
|
580
|
+
]), B = I(e, ie.Value);
|
|
581
581
|
return /* @__PURE__ */ s.createElement(nt, {
|
|
582
582
|
"aria-labelledby": p,
|
|
583
583
|
value: R,
|
|
@@ -592,9 +592,9 @@ const Ut = (e) => {
|
|
|
592
592
|
}, /* @__PURE__ */ s.createElement("div", {
|
|
593
593
|
className: t,
|
|
594
594
|
...f
|
|
595
|
-
}, A(
|
|
595
|
+
}, A(B, {
|
|
596
596
|
inputId: h,
|
|
597
|
-
ariaDescribedBy:
|
|
597
|
+
ariaDescribedBy: g
|
|
598
598
|
})));
|
|
599
599
|
}, Zt = ({ className: e, placeholder: t, ...a }) => {
|
|
600
600
|
const { inputId: n, ariaDescribedBy: o } = a;
|
|
@@ -674,7 +674,7 @@ const Ut = (e) => {
|
|
|
674
674
|
onSelect: (f) => {
|
|
675
675
|
r(f ? Array.from(f) : []);
|
|
676
676
|
}
|
|
677
|
-
}, /* @__PURE__ */ s.createElement(
|
|
677
|
+
}, /* @__PURE__ */ s.createElement(_e, {
|
|
678
678
|
id: d,
|
|
679
679
|
onBlur: c,
|
|
680
680
|
onFocus: u,
|
|
@@ -693,20 +693,20 @@ const Ut = (e) => {
|
|
|
693
693
|
className: t
|
|
694
694
|
}, e);
|
|
695
695
|
};
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
696
|
+
b.Label = ut;
|
|
697
|
+
b.Input = X;
|
|
698
|
+
b.Description = it;
|
|
699
|
+
b.Error = ct;
|
|
700
700
|
X.Header = q;
|
|
701
|
-
X.Value =
|
|
702
|
-
q.Tabs =
|
|
701
|
+
X.Value = P;
|
|
702
|
+
q.Tabs = O;
|
|
703
703
|
q.Clear = Wt;
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
704
|
+
O.Draw = Pt;
|
|
705
|
+
O.Type = Mt;
|
|
706
|
+
O.Upload = Ht;
|
|
707
|
+
P.Canvas = Yt;
|
|
708
|
+
P.Type = ie;
|
|
709
|
+
P.Upload = j;
|
|
710
710
|
ie.Value = Zt;
|
|
711
711
|
j.Preview = kt;
|
|
712
712
|
j.Button = te;
|
|
@@ -767,7 +767,7 @@ const Gt = () => {
|
|
|
767
767
|
}, /* @__PURE__ */ s.createElement("path", {
|
|
768
768
|
fillRule: "evenodd",
|
|
769
769
|
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"
|
|
770
|
-
})), jt = "
|
|
770
|
+
})), jt = "_container_t1rtn_1", Jt = "_header_t1rtn_7", Kt = "_tabs_t1rtn_13", Qt = "_tab_t1rtn_13", en = "_tabHover_t1rtn_42", tn = "_tabSelected_t1rtn_47", nn = "_tabIcon_t1rtn_77", an = "_uploadButton_t1rtn_84", on = "_uploadButtonHover_t1rtn_137", rn = "_uploadButtonLabel_t1rtn_154", sn = "_clear_t1rtn_158", ln = "_value_t1rtn_190", cn = "_box_t1rtn_195", un = "_uploadBox_t1rtn_196", dn = "_dropZone_t1rtn_227", mn = "_dropZoneHover_t1rtn_243", pn = "_boxHover_t1rtn_277", fn = "_typeInput_t1rtn_330", T = {
|
|
771
771
|
container: jt,
|
|
772
772
|
header: Jt,
|
|
773
773
|
tabs: Kt,
|
|
@@ -777,19 +777,20 @@ const Gt = () => {
|
|
|
777
777
|
tabIcon: nn,
|
|
778
778
|
uploadButton: an,
|
|
779
779
|
uploadButtonHover: on,
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
780
|
+
uploadButtonLabel: rn,
|
|
781
|
+
clear: sn,
|
|
782
|
+
value: ln,
|
|
783
|
+
box: cn,
|
|
784
|
+
uploadBox: un,
|
|
785
|
+
dropZone: dn,
|
|
786
|
+
dropZoneHover: mn,
|
|
787
|
+
boxHover: pn,
|
|
788
|
+
typeInput: fn
|
|
789
|
+
}, En = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(xe, {
|
|
789
790
|
content: e,
|
|
790
791
|
locale: t
|
|
791
|
-
}),
|
|
792
|
-
var G, Y, Z, J,
|
|
792
|
+
}), hn = () => {
|
|
793
|
+
var G, Y, Z, J, y, F;
|
|
793
794
|
const e = Gt(), { disabled: t, readOnly: a } = U(), n = !t && !a, o = $({
|
|
794
795
|
globalClasses: Je,
|
|
795
796
|
moduleClasses: {
|
|
@@ -797,8 +798,8 @@ const Gt = () => {
|
|
|
797
798
|
hover: T.tabHover,
|
|
798
799
|
selected: T.tabSelected
|
|
799
800
|
}
|
|
800
|
-
}), r = ({ isSelected:
|
|
801
|
-
isSelected:
|
|
801
|
+
}), r = ({ isSelected: _, isHovered: x }) => o({
|
|
802
|
+
isSelected: _,
|
|
802
803
|
isHovered: x,
|
|
803
804
|
isInteractive: n
|
|
804
805
|
}), i = $({
|
|
@@ -833,86 +834,86 @@ const Gt = () => {
|
|
|
833
834
|
base: T.uploadButton,
|
|
834
835
|
hover: T.uploadButtonHover
|
|
835
836
|
}
|
|
836
|
-
}), m = (F = (
|
|
837
|
-
var
|
|
838
|
-
W(!0), (
|
|
837
|
+
}), m = (F = (y = (J = (Z = (Y = (G = Te().signatureContainer) == null ? void 0 : G.elementProps) == null ? void 0 : Y.signatureDropZone) == null ? void 0 : Z.elementProps) == null ? void 0 : J.signatureUploadButton) == null ? void 0 : y.elementProps) == null ? void 0 : F.icon, { wix: h, className: g, ...p } = m ?? {}, f = We(K.SIGNATURE_CONTAINER, K.SIGNATURE_DROP_ZONE, K.SIGNATURE_UPLOAD_BUTTON, K.UPLOAD_BUTTON_LABEL), L = V(null), [R, W] = ne(!1), B = v(() => {
|
|
838
|
+
var _;
|
|
839
|
+
W(!0), (_ = L.current) == null || _.runAnimationForward();
|
|
839
840
|
}, []), D = v(() => {
|
|
840
|
-
var
|
|
841
|
-
W(!1), (
|
|
841
|
+
var _;
|
|
842
|
+
W(!1), (_ = L.current) == null || _.runAnimationBackward();
|
|
842
843
|
}, []);
|
|
843
|
-
return /* @__PURE__ */ s.createElement(
|
|
844
|
+
return /* @__PURE__ */ s.createElement(b, null, /* @__PURE__ */ s.createElement(b.Label, {
|
|
844
845
|
className: w(Ye, Q.label)
|
|
845
|
-
}, /* @__PURE__ */ s.createElement(
|
|
846
|
+
}, /* @__PURE__ */ s.createElement(b.Label.Required, {
|
|
846
847
|
className: w(Ze, Q.requiredMark)
|
|
847
|
-
})), /* @__PURE__ */ s.createElement(
|
|
848
|
+
})), /* @__PURE__ */ s.createElement(b.Input, {
|
|
848
849
|
className: w(ke, T.container)
|
|
849
|
-
}, /* @__PURE__ */ s.createElement(
|
|
850
|
+
}, /* @__PURE__ */ s.createElement(b.Input.Header, {
|
|
850
851
|
className: T.header
|
|
851
|
-
}, /* @__PURE__ */ s.createElement(
|
|
852
|
+
}, /* @__PURE__ */ s.createElement(b.Input.Header.Tabs, {
|
|
852
853
|
className: T.tabs
|
|
853
|
-
}, /* @__PURE__ */ s.createElement(
|
|
854
|
+
}, /* @__PURE__ */ s.createElement(b.Input.Header.Tabs.Draw, {
|
|
854
855
|
className: r,
|
|
855
856
|
"aria-label": e.drawLabel,
|
|
856
857
|
description: e.drawDescription
|
|
857
858
|
}, /* @__PURE__ */ s.createElement(Xt, {
|
|
858
859
|
className: T.tabIcon
|
|
859
|
-
})), /* @__PURE__ */ s.createElement(
|
|
860
|
+
})), /* @__PURE__ */ s.createElement(b.Input.Header.Tabs.Type, {
|
|
860
861
|
className: r,
|
|
861
862
|
"aria-label": e.typeLabel,
|
|
862
863
|
description: e.typeDescription
|
|
863
864
|
}, /* @__PURE__ */ s.createElement(qt, {
|
|
864
865
|
className: T.tabIcon
|
|
865
|
-
})), /* @__PURE__ */ s.createElement(
|
|
866
|
+
})), /* @__PURE__ */ s.createElement(b.Input.Header.Tabs.Upload, {
|
|
866
867
|
className: r,
|
|
867
868
|
"aria-label": e.uploadModeLabel,
|
|
868
869
|
description: e.uploadDescription
|
|
869
870
|
}, /* @__PURE__ */ s.createElement(zt, {
|
|
870
871
|
className: T.tabIcon
|
|
871
|
-
}))), /* @__PURE__ */ s.createElement(
|
|
872
|
+
}))), /* @__PURE__ */ s.createElement(b.Input.Header.Clear, {
|
|
872
873
|
className: w(pe, T.clear),
|
|
873
874
|
"aria-label": e.clearLabel
|
|
874
|
-
}, /* @__PURE__ */ s.createElement($t, null))), /* @__PURE__ */ s.createElement(
|
|
875
|
+
}, /* @__PURE__ */ s.createElement($t, null))), /* @__PURE__ */ s.createElement(b.Input.Value, {
|
|
875
876
|
className: T.value
|
|
876
|
-
}, /* @__PURE__ */ s.createElement(
|
|
877
|
+
}, /* @__PURE__ */ s.createElement(b.Input.Value.Canvas, {
|
|
877
878
|
className: i,
|
|
878
879
|
emptyLabel: e.emptyLabel,
|
|
879
880
|
signedLabel: e.signedLabel
|
|
880
|
-
}), /* @__PURE__ */ s.createElement(
|
|
881
|
+
}), /* @__PURE__ */ s.createElement(b.Input.Value.Type, {
|
|
881
882
|
className: u
|
|
882
|
-
}, /* @__PURE__ */ s.createElement(
|
|
883
|
+
}, /* @__PURE__ */ s.createElement(b.Input.Value.Type.Value, {
|
|
883
884
|
className: T.typeInput,
|
|
884
885
|
placeholder: e.placeholder
|
|
885
|
-
})), /* @__PURE__ */ s.createElement(
|
|
886
|
-
className: ({ isHovered:
|
|
886
|
+
})), /* @__PURE__ */ s.createElement(b.Input.Value.Upload, {
|
|
887
|
+
className: ({ isHovered: _, isDropTarget: x }) => w(T.uploadBox, d({
|
|
887
888
|
isSelected: !1,
|
|
888
|
-
isHovered:
|
|
889
|
+
isHovered: _ || x,
|
|
889
890
|
isInteractive: n
|
|
890
891
|
}))
|
|
891
|
-
}, /* @__PURE__ */ s.createElement(
|
|
892
|
+
}, /* @__PURE__ */ s.createElement(b.Input.Value.Upload.Preview, {
|
|
892
893
|
className: w(T.uploadBox, i),
|
|
893
894
|
imageAlt: e.imageAlt
|
|
894
|
-
}), /* @__PURE__ */ s.createElement(
|
|
895
|
-
className: ({ isHovered:
|
|
895
|
+
}), /* @__PURE__ */ s.createElement(b.Input.Value.Upload.Button, {
|
|
896
|
+
className: ({ isHovered: _ }) => E({
|
|
896
897
|
isSelected: !1,
|
|
897
|
-
isHovered:
|
|
898
|
+
isHovered: _,
|
|
898
899
|
isInteractive: n
|
|
899
900
|
}),
|
|
900
|
-
onHoverStart:
|
|
901
|
+
onHoverStart: B,
|
|
901
902
|
onHoverEnd: D
|
|
902
903
|
}, p.svg ? /* @__PURE__ */ s.createElement(Fe, {
|
|
903
904
|
...p,
|
|
904
905
|
ref: L,
|
|
905
|
-
className: w(Ve, Ge,
|
|
906
|
-
}) : null, /* @__PURE__ */ s.createElement(
|
|
907
|
-
className: w(fe.base, f, {
|
|
906
|
+
className: w(Ve, Ge, g)
|
|
907
|
+
}) : null, /* @__PURE__ */ s.createElement(b.Input.Value.Upload.Button.Text, {
|
|
908
|
+
className: w(fe.base, T.uploadButtonLabel, f, {
|
|
908
909
|
[fe.hover]: n && R
|
|
909
910
|
})
|
|
910
|
-
}, e.uploadLabel))))), /* @__PURE__ */ s.createElement(
|
|
911
|
+
}, e.uploadLabel))))), /* @__PURE__ */ s.createElement(b.Error, {
|
|
911
912
|
className: w($e, Q.error)
|
|
912
|
-
}, /* @__PURE__ */ s.createElement(mt, null), /* @__PURE__ */ s.createElement(
|
|
913
|
+
}, /* @__PURE__ */ s.createElement(mt, null), /* @__PURE__ */ s.createElement(b.Error.Text, null)), /* @__PURE__ */ s.createElement(b.Description, {
|
|
913
914
|
className: w(pe, Q.description)
|
|
914
|
-
},
|
|
915
|
-
},
|
|
915
|
+
}, En));
|
|
916
|
+
}, Fn = () => /* @__PURE__ */ s.createElement(hn, null);
|
|
916
917
|
export {
|
|
917
|
-
|
|
918
|
+
Fn as SignatureRAC
|
|
918
919
|
};
|