@wix/form-elements 1.132.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.
Files changed (110) hide show
  1. package/dist/component/{appointment-rac-DMYXIOL3.js → appointment-rac-D0mwr3TL.js} +5 -5
  2. package/dist/component/{bookings-address-rac-D6Ot6vm7.js → bookings-address-rac-BEnmwXax.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CkPflUxK.js → bookings-email-rac-D56j9PXc.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-BbDv4BQw.js → bookings-first-name-rac-xu3S-ih_.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DJodBCf4.js → bookings-header-rac-hfBabv7v.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-C4PRt2XO.js → bookings-last-name-rac-6bMvN0Cm.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-MPcFtzUB.js → bookings-login-bar-rac-DE70Omwf.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-BnaiOxWV.js → bookings-phone-rac-D_EHRAiU.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-Cwp6pBC_.js → bookings-rich-text-rac-BxgI9Zt6.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-BA-67OHo.js → checkbox-field-rac-BLDUOAXM.js} +6 -6
  11. package/dist/component/{checkbox-group-field-headless-B20gxYEt.js → checkbox-group-field-headless-CugSJIBp.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac--uloIFS6.js → checkbox-group-field-rac-D4m9SmRX.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-CYt86YIr.js → checkbox-group-rac-BYqEsCwa.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-Bqo0QILF.js → checkbox-indicator-module-classes-zXKP5rD4.js} +1 -1
  15. package/dist/component/{checkbox-rac-4FLDh24V.js → checkbox-rac-DkIBUAN7.js} +1 -1
  16. package/dist/component/{contacts-address-rac-BU2H0MEF.js → contacts-address-rac-D1tzbiTM.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-DXITbTMA.js → contacts-birthdate-rac-DO-1xG0u.js} +1 -1
  18. package/dist/component/{contacts-company-rac-D_BKjGc8.js → contacts-company-rac-CzJK3YIo.js} +1 -1
  19. package/dist/component/{contacts-email-rac-CfYSUKJ3.js → contacts-email-rac-DLvMErBI.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-DYZUgWsB.js → contacts-first-name-rac-3RcSXL0h.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-m-zqIpMB.js → contacts-last-name-rac-BYoSi_QX.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-nJDsO_Y8.js → contacts-phone-rac-DMYn0orB.js} +1 -1
  23. package/dist/component/{contacts-position-rac-CAGdJXSW.js → contacts-position-rac-K1R6ihXo.js} +1 -1
  24. package/dist/component/{contacts-subscribe-rac-jwP65ngO.js → contacts-subscribe-rac-DsWNSH6t.js} +1 -1
  25. package/dist/component/{contacts-tax-id-rac-DUOQlZ3c.js → contacts-tax-id-rac-D7NjPiRf.js} +1 -1
  26. package/dist/component/{date-availability-EbJKjV1U.js → date-availability-D3n6-g3h.js} +1 -1
  27. package/dist/component/{date-input-field-rac-CZRcW-0J.js → date-input-field-rac-SyAmInlu.js} +7 -7
  28. package/dist/component/{date-input-rac-CasoMjfj.js → date-input-rac-BQNOsWz1.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-V9MRWrj-.js → date-picker-field-rac-DO1epod7.js} +6 -6
  30. package/dist/component/{date-picker-rac-Cu5wTh1_.js → date-picker-rac-DQElftUu.js} +1 -1
  31. package/dist/component/{date-time-input-field-rac-YGqLIle1.js → date-time-input-field-rac-CV5wZSXO.js} +7 -7
  32. package/dist/component/{date-time-input-rac-DCEyREJI.js → date-time-input-rac-DvHwpjnk.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-DLB5mAwB.js → dext-checkbox-group-rac-BfcKoslb.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-DFV7ixAO.js → dext-checkbox-rac-DhadtXb5.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-CEL2X1ID.js → dext-date-picker-rac-0Dmo3mrG.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-yLdCLDbQ.js → dext-date-time-input-rac-Cnh7Aqiq.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-ti_P0L_X.js → dext-dropdown-rac-CajXcYsB.js} +1 -1
  38. package/dist/component/{dext-email-rac-CnvdVz-J.js → dext-email-rac-DynJaiZt.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-CmGt691Y.js → dext-number-input-rac-LmTKwb80.js} +1 -1
  40. package/dist/component/{dext-phone-rac-JEZkz4gZ.js → dext-phone-rac-Cw2roq1_.js} +1 -1
  41. package/dist/component/{dext-radio-group-rac-CUk6wUPl.js → dext-radio-group-rac-CaNZJrkc.js} +2 -2
  42. package/dist/component/{dext-rating-input-rac-Q1J5oqhZ.js → dext-rating-input-rac-CAL1jb0q.js} +1 -1
  43. package/dist/component/{dext-tags-rac-DU9FLeGu.js → dext-tags-rac-BOp_amVK.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-D1FOCK6O.js → dext-text-area-rac-6DYTHIeh.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-Dzb5lQjK.js → dext-text-input-rac-CDWthvV3.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-cRLFpiNR.js → dext-url-input-rac-CsS4NPYO.js} +1 -1
  47. package/dist/component/{donation-rac-CV-PnK1D.js → donation-rac-B7lFkotu.js} +48 -48
  48. package/dist/component/{dropdown-field-headless-D1e2XbNj.js → dropdown-field-headless-ajQghLaj.js} +5 -5
  49. package/dist/component/{dropdown-field-rac-DkeVkP9c.js → dropdown-field-rac-Bf5LQqSL.js} +5 -5
  50. package/dist/component/{dropdown-rac-ChlsWwyp.js → dropdown-rac-CJmA_ePl.js} +1 -1
  51. package/dist/component/{ecom-address-rac-DvHJ4Ym-.js → ecom-address-rac-B49ZP2qc.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-D3LX7FVx.js → ecom-subscription-checkbox-rac-C8qImtxo.js} +2 -2
  53. package/dist/component/{email-input-field-rac-B8OCp4L9.js → email-input-field-rac-B_bEWp5N.js} +4 -4
  54. package/dist/component/{events-repeater-rac-BO0-VcV3.js → events-repeater-rac-DXxqmIBX.js} +6 -6
  55. package/dist/component/{events-rsvp-rac-CnULPDrG.js → events-rsvp-rac-BaJQLSv3.js} +4 -4
  56. package/dist/component/{field-error-headless-DwlihJqC.js → field-error-headless-BxEFPwKI.js} +1 -1
  57. package/dist/component/{field-label-headless-C_cMy8vP.js → field-label-headless-5mewgrhq.js} +1 -1
  58. package/dist/component/field-rac.module-BGN-O8tV.js +25 -0
  59. package/dist/component/{file-upload-rac-CjBKgUCk.js → file-upload-rac-D9Z1Cumr.js} +172 -171
  60. package/dist/component/{fixed-payment-rac-ameH1syZ.js → fixed-payment-rac-S68bqvbB.js} +4 -4
  61. package/dist/component/{form-GcotNutn.js → form-CPY-PtxT.js} +69 -69
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +1 -1
  64. package/dist/component/{header-field-rac-D2fpKxIz.js → header-field-rac-r6dYbnvA.js} +2 -2
  65. package/dist/component/{header-rac-DdWMo2xZ.js → header-rac-C9gaKsaE.js} +1 -1
  66. package/dist/component/{image-choice-rac-CBaUQX8m.js → image-choice-rac-BbES5dAK.js} +27 -27
  67. package/dist/component/{index-CAktfVsx.js → index-C6zuIVeJ.js} +2 -2
  68. package/dist/component/{index-nOv_Pf2O.js → index-o-TpCHqo.js} +4 -4
  69. package/dist/component/{isObjectLike-t9SwprFt.js → isObjectLike-BSRiBVs9.js} +1 -1
  70. package/dist/component/{multiline-address-field-rac-DpMPlfjM.js → multiline-address-field-rac-BfVIiFyM.js} +8 -8
  71. package/dist/component/{multiline-address-rac-D1XtQuAy.js → multiline-address-rac-BOKBExhi.js} +1 -1
  72. package/dist/component/{number-input-field-rac-CFFU1JrK.js → number-input-field-rac-BRKFm8aA.js} +5 -5
  73. package/dist/component/{number-input-rac-BDs3ngbf.js → number-input-rac-BNbCCb-g.js} +1 -1
  74. package/dist/component/{password-rac-jRXGfQn_.js → password-rac-BygVJf7f.js} +5 -5
  75. package/dist/component/{payment-input-rac-BAkJqSyU.js → payment-input-rac-CoMbHcHG.js} +5 -5
  76. package/dist/component/{phone-input-field-rac-D_1jDl7O.js → phone-input-field-rac-dFjxptEr.js} +106 -105
  77. package/dist/component/{phone-rac-DyinFMYS.js → phone-rac-Dup3AP9J.js} +1 -1
  78. package/dist/component/{product-list-rac-BkUvhZMi.js → product-list-rac-B62mNB_W.js} +6 -6
  79. package/dist/component/{quiz-radio-group-rac-Cha9jkTD.js → quiz-radio-group-rac-DPMhDtr7.js} +1 -1
  80. package/dist/component/{radio-button-module-classes-WQaDTnal.js → radio-button-module-classes-BMvPai_6.js} +3 -3
  81. package/dist/component/{radio-group-field-rac-Cr35UXlg.js → radio-group-field-rac-DPt2Zl4G.js} +5 -5
  82. package/dist/component/{radio-group-rac-BGRYJcwQ.js → radio-group-rac-BZyGqFzr.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-C_X51vxl.js → rating-input-field-rac-C3E0KzV-.js} +5 -5
  84. package/dist/component/{rating-input-rac-B-usRVpy.js → rating-input-rac-BKLz4l_D.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-Bed3DsK7.js → rich-content-rac.module-CQ1qa_zz.js} +1 -1
  86. package/dist/component/{rich-text-field-rac-SHHiInVy.js → rich-text-field-rac-BfdA5KNz.js} +2 -2
  87. package/dist/component/{rich-text-rac-CND63R3E.js → rich-text-rac-BFbhfFuF.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-BdfxJ1Zq.js → service-dropdown-rac-VulpHBki.js} +6 -6
  89. package/dist/component/{services-multi-choice-rac-D6BdQ2xE.js → services-multi-choice-rac-CIx5UpfD.js} +7 -7
  90. package/dist/component/{signature-rac-xuYTsTUB.js → signature-rac-BdxMBfl9.js} +133 -132
  91. package/dist/component/{submit-button-rac-7YwnpPtu.js → submit-button-rac-CkuWGEyL.js} +39 -39
  92. package/dist/component/{tags-field-rac-ChzPiPvQ.js → tags-field-rac-DKo_Yb5i.js} +45 -45
  93. package/dist/component/{tags-rac-BScWp3da.js → tags-rac-BimVd3ym.js} +1 -1
  94. package/dist/component/{text-area-field-rac-CDEJUPgV.js → text-area-field-rac-DEiLtCnb.js} +5 -5
  95. package/dist/component/{text-area-rac-CwiF24AW.js → text-area-rac-CHZtsq0f.js} +1 -1
  96. package/dist/component/{text-input-field-rac-vg2b_7it.js → text-input-field-rac-CSHvUtRG.js} +4 -4
  97. package/dist/component/{text-input-headless-BdD-dAx2.js → text-input-headless-BYcExFPS.js} +3 -3
  98. package/dist/component/{text-input-rac-yX6rdvri.js → text-input-rac-D-R9btYo.js} +1 -1
  99. package/dist/component/{time-input-rac-B_kYmOwq.js → time-input-rac-wkHemVzj.js} +5 -5
  100. package/dist/component/{url-input-field-rac-NJqyqxLi.js → url-input-field-rac-KJEcLyFk.js} +5 -5
  101. package/dist/component/{url-input-rac-BqIKc9nY.js → url-input-rac-JFfEH389.js} +1 -1
  102. package/dist/component/{use-dropdown-option-class-name-DFW55r3E.js → use-dropdown-option-class-name-BetaTWbW.js} +3 -3
  103. package/dist/component/{use-dropdown-trigger-class-name-Df-nqoeG.js → use-dropdown-trigger-class-name-C0ffAjFn.js} +2 -2
  104. package/dist/component/{use-element-state-class-name-D008EeZn.js → use-element-state-class-name-BOks3she.js} +1 -1
  105. package/dist/component/{use-hoverable-input-class-name-CVtF0FGy.js → use-hoverable-input-class-name-jxtCw16L.js} +3 -3
  106. package/dist/component/{use-service-options-base-B64QpFwc.js → use-service-options-base-q0JTA7UI.js} +1 -1
  107. package/dist/component/use-text-input-class-name-CTa0bC4T.js +6 -0
  108. package/package.json +2 -2
  109. package/dist/component/field-rac.module-BIBNQEOK.js +0 -25
  110. package/dist/component/use-text-input-class-name-BSDU7QEO.js +0 -6
@@ -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-GcotNutn.js";
5
- import { u as W } from "./use-service-options-base-B64QpFwc.js";
6
- import { D as u } from "./dropdown-field-headless-D1e2XbNj.js";
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-BIBNQEOK.js";
11
- import { u as Y } from "./use-dropdown-option-class-name-DFW55r3E.js";
12
- import { u as z } from "./use-dropdown-trigger-class-name-Df-nqoeG.js";
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-GcotNutn.js";
5
- import { u as v } from "./use-service-options-base-B64QpFwc.js";
6
- import { C as i } from "./checkbox-group-field-headless-B20gxYEt.js";
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-Bqo0QILF.js";
9
- import { s as n } from "./field-rac.module-BIBNQEOK.js";
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-D008EeZn.js";
12
- import { u as k } from "./use-text-input-class-name-BSDU7QEO.js";
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 be, useCallback as v, useState as ne, useEffect as oe, Children as we, isValidElement as Le } from "react";
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 Oe, F as Pe, bd as Be, 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-GcotNutn.js";
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 ye, TextField as nt, DropZone as at, Input as ot, FileTrigger as rt, RadioField as st, RadioButton as lt } from "react-aria-components";
8
- import _e from "signature_pad";
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-DwlihJqC.js";
11
- import { L as ut } from "./field-label-headless-C_cMy8vP.js";
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-BIBNQEOK.js";
15
- import { u as $ } from "./use-element-state-class-name-D008EeZn.js";
16
- const pt = typeof s.useId == "function" ? s.useId : () => V(Ue()).current, ft = ({ properties: e }) => e.uploadEnabled === !0, Et = (e, t) => e.fieldType === Pe.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, gt = (e) => {
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(Oe);
19
- return be(() => {
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 bt = (e) => {
35
- const { actions: t, formId: a } = Be(), n = t == null ? void 0 : t.uploadFile;
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, b = d - u;
81
- if (h < 0 || b < 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, b), f = document.createElement("canvas"), L = f.getContext("2d");
84
- return f.width = h, f.height = b, t ? (L.fillStyle = t, L.fillRect(0, 0, h, b)) : L.clearRect(0, 0, h, b), L.putImageData(p, 0, 0), f;
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, yt = (e) => Re({
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
- }, ge = 0.8, De = "Madefor";
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 _t(e, t) {
137
- const a = t.getContext("2d"), n = t.offsetWidth || t.width, r = (t.offsetHeight || t.height) * ge, l = n * ge;
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 = _t(t, e);
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 _e(l).fromData(r);
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 = bt(a), { setFormStatus: i } = Ce(), c = V();
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 (b) => {
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 = (b == null ? void 0 : b.url) ?? "";
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((b) => {
263
+ handleChange: v((g) => {
264
264
  const p = (f) => {
265
265
  c.current = setTimeout(() => m(f), 1500);
266
266
  };
267
- b ? (c.current && (clearTimeout(c.current), c.current = null), o([
268
- b
269
- ]), p(b)) : (t == null || t(null), o(void 0), i(a, ee.READY));
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), b = (() => {
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: b,
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
- }, g = ({ children: e }) => {
355
- const { id: t, FieldLayout: a } = U(), n = I(e, g.Label), o = I(e, g.Input), r = I(e, g.Description), l = I(e, g.Error);
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
- }, Ot = {
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 = gt(a), { signatureMode: c, setSignatureMode: u, handleClear: d, clearable: E, signatureView: m, signatureValueForView: h, handleChange: b, handleBeforeChange: p } = wt({
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 ? Ot[i] : m,
376
+ signatureView: i ? Bt[i] : m,
377
377
  signatureValueForView: i ? void 0 : h,
378
- handleChange: b,
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
- }, P = ({ children: e, className: t, ...a }) => {
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, P.Draw),
403
- [C.TYPE]: I(e, P.Type),
404
- [C.UPLOAD]: r ? I(e, P.Upload) : null
405
- }, E = d[n], m = Pt(E) ? E.props.description : void 0;
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
- }, Pt = (e) => /* @__PURE__ */ Le(e), le = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(st, {
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)), Bt = (e) => /* @__PURE__ */ s.createElement(le, {
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(ye, {
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
- }, B = ({ 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, B.Canvas), h = I(e, B.Type), b = I(e, B.Upload);
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(b, {
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(), b = se(), p = V(), f = V(), L = V(null), R = o == null ? void 0 : o.url, [W, O] = ne(!1);
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
- (_ = f.current) == null || _.focus();
486
+ var y;
487
+ (y = f.current) == null || y.focus();
488
488
  }, E);
489
- const D = be(() => ({
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, y, x;
496
+ var F, _, x;
497
497
  if ((F = p.current) != null && F.isEmpty())
498
498
  return "";
499
- const _ = (y = p.current) == null ? void 0 : y.toData();
500
- return _ ? yt(_) : ((x = p.current) == null ? void 0 : x.toDataURL()) ?? "";
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 _ = (F = p.current) == null ? void 0 : F.isEmpty();
504
- O(!_), r(re(G()));
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 y, x, ce, ue;
514
- if (_ != null) {
515
- if (f.current = _, p.current = new _e(_, {
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(_).color || void 0
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), O(!0));
520
+ de && (p.current.fromData(de), B(!0));
521
521
  } else
522
- p.current.clear(), O(!1);
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
- })), (y = L.current) == null || y.observe(_);
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
- ...b
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: b, labelId: p } = M(), f = se(), L = n != null && n.url ? H(n.url) : void 0, { data: R = "" } = L ?? {
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
- ]), O = I(e, ie.Value);
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(O, {
595
+ }, A(B, {
596
596
  inputId: h,
597
- ariaDescribedBy: b
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(ye, {
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
- g.Label = ut;
697
- g.Input = X;
698
- g.Description = it;
699
- g.Error = ct;
696
+ b.Label = ut;
697
+ b.Input = X;
698
+ b.Description = it;
699
+ b.Error = ct;
700
700
  X.Header = q;
701
- X.Value = B;
702
- q.Tabs = P;
701
+ X.Value = P;
702
+ q.Tabs = O;
703
703
  q.Clear = Wt;
704
- P.Draw = Bt;
705
- P.Type = Mt;
706
- P.Upload = Ht;
707
- B.Canvas = Yt;
708
- B.Type = ie;
709
- B.Upload = j;
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 = "_container_10dir_1", Jt = "_header_10dir_7", Kt = "_tabs_10dir_13", Qt = "_tab_10dir_13", en = "_tabHover_10dir_46", tn = "_tabSelected_10dir_51", nn = "_tabIcon_10dir_81", an = "_uploadButton_10dir_88", on = "_uploadButtonHover_10dir_138", rn = "_clear_10dir_155", sn = "_value_10dir_187", ln = "_box_10dir_192", cn = "_uploadBox_10dir_193", un = "_dropZone_10dir_225", dn = "_dropZoneHover_10dir_244", mn = "_boxHover_10dir_278", pn = "_typeInput_10dir_331", T = {
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
- clear: rn,
781
- value: sn,
782
- box: ln,
783
- uploadBox: cn,
784
- dropZone: un,
785
- dropZoneHover: dn,
786
- boxHover: mn,
787
- typeInput: pn
788
- }, fn = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(xe, {
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
- }), En = () => {
792
- var G, Y, Z, J, _, F;
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: y, isHovered: x }) => o({
801
- isSelected: y,
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 = (_ = (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 : _.elementProps) == null ? void 0 : F.icon, { wix: h, className: b, ...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), O = v(() => {
837
- var y;
838
- W(!0), (y = L.current) == null || y.runAnimationForward();
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 y;
841
- W(!1), (y = L.current) == null || y.runAnimationBackward();
841
+ var _;
842
+ W(!1), (_ = L.current) == null || _.runAnimationBackward();
842
843
  }, []);
843
- return /* @__PURE__ */ s.createElement(g, null, /* @__PURE__ */ s.createElement(g.Label, {
844
+ return /* @__PURE__ */ s.createElement(b, null, /* @__PURE__ */ s.createElement(b.Label, {
844
845
  className: w(Ye, Q.label)
845
- }, /* @__PURE__ */ s.createElement(g.Label.Required, {
846
+ }, /* @__PURE__ */ s.createElement(b.Label.Required, {
846
847
  className: w(Ze, Q.requiredMark)
847
- })), /* @__PURE__ */ s.createElement(g.Input, {
848
+ })), /* @__PURE__ */ s.createElement(b.Input, {
848
849
  className: w(ke, T.container)
849
- }, /* @__PURE__ */ s.createElement(g.Input.Header, {
850
+ }, /* @__PURE__ */ s.createElement(b.Input.Header, {
850
851
  className: T.header
851
- }, /* @__PURE__ */ s.createElement(g.Input.Header.Tabs, {
852
+ }, /* @__PURE__ */ s.createElement(b.Input.Header.Tabs, {
852
853
  className: T.tabs
853
- }, /* @__PURE__ */ s.createElement(g.Input.Header.Tabs.Draw, {
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(g.Input.Header.Tabs.Type, {
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(g.Input.Header.Tabs.Upload, {
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(g.Input.Header.Clear, {
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(g.Input.Value, {
875
+ }, /* @__PURE__ */ s.createElement($t, null))), /* @__PURE__ */ s.createElement(b.Input.Value, {
875
876
  className: T.value
876
- }, /* @__PURE__ */ s.createElement(g.Input.Value.Canvas, {
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(g.Input.Value.Type, {
881
+ }), /* @__PURE__ */ s.createElement(b.Input.Value.Type, {
881
882
  className: u
882
- }, /* @__PURE__ */ s.createElement(g.Input.Value.Type.Value, {
883
+ }, /* @__PURE__ */ s.createElement(b.Input.Value.Type.Value, {
883
884
  className: T.typeInput,
884
885
  placeholder: e.placeholder
885
- })), /* @__PURE__ */ s.createElement(g.Input.Value.Upload, {
886
- className: ({ isHovered: y, isDropTarget: x }) => w(T.uploadBox, d({
886
+ })), /* @__PURE__ */ s.createElement(b.Input.Value.Upload, {
887
+ className: ({ isHovered: _, isDropTarget: x }) => w(T.uploadBox, d({
887
888
  isSelected: !1,
888
- isHovered: y || x,
889
+ isHovered: _ || x,
889
890
  isInteractive: n
890
891
  }))
891
- }, /* @__PURE__ */ s.createElement(g.Input.Value.Upload.Preview, {
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(g.Input.Value.Upload.Button, {
895
- className: ({ isHovered: y }) => E({
895
+ }), /* @__PURE__ */ s.createElement(b.Input.Value.Upload.Button, {
896
+ className: ({ isHovered: _ }) => E({
896
897
  isSelected: !1,
897
- isHovered: y,
898
+ isHovered: _,
898
899
  isInteractive: n
899
900
  }),
900
- onHoverStart: O,
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, b)
906
- }) : null, /* @__PURE__ */ s.createElement(g.Input.Value.Upload.Button.Text, {
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(g.Error, {
911
+ }, e.uploadLabel))))), /* @__PURE__ */ s.createElement(b.Error, {
911
912
  className: w($e, Q.error)
912
- }, /* @__PURE__ */ s.createElement(mt, null), /* @__PURE__ */ s.createElement(g.Error.Text, null)), /* @__PURE__ */ s.createElement(g.Description, {
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
- }, fn));
915
- }, wn = () => /* @__PURE__ */ s.createElement(En, null);
915
+ }, En));
916
+ }, Fn = () => /* @__PURE__ */ s.createElement(hn, null);
916
917
  export {
917
- wn as SignatureRAC
918
+ Fn as SignatureRAC
918
919
  };