@wix/form-elements 1.147.0 → 1.148.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 (112) hide show
  1. package/dist/component/{appointment-rac-BG5-bIZU.js → appointment-rac-BNqXl3dq.js} +93 -89
  2. package/dist/component/{bookings-address-rac-8e8PqKsp.js → bookings-address-rac-DzLf588z.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CtlnU8ws.js → bookings-email-rac-BCNWH7ss.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CrivNlXM.js → bookings-first-name-rac-D36aHUOJ.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DWDAjfqq.js → bookings-header-rac-CNr2y2ES.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-qAthWem2.js → bookings-last-name-rac-yHE6ZIxr.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-BNyUDqlM.js → bookings-login-bar-rac-C3weOc1i.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-Tc39XLr7.js → bookings-phone-rac-CIo_ApRf.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CPNaPtFK.js → bookings-rich-text-rac-rgKnvt57.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-DEa78Tpf.js → checkbox-field-rac-CMaVxLNe.js} +9 -7
  11. package/dist/component/{checkbox-group-field-headless-BxBaMg29.js → checkbox-group-field-headless-XPtqS8Km.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-CRRP03Qk.js → checkbox-group-field-rac-C_58XfQt.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-TOofMGl3.js → checkbox-group-rac-FQrWViSh.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-6173wvuW.js → checkbox-indicator-module-classes-akWZsZNn.js} +1 -1
  15. package/dist/component/{checkbox-rac-CHMHr8Ry.js → checkbox-rac-C5Lj2b1N.js} +1 -1
  16. package/dist/component/{contacts-address-rac-Bc5yDvTL.js → contacts-address-rac-OhpLzD0X.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-Ubtg5ncv.js → contacts-birthdate-rac-Dnqq84ct.js} +1 -1
  18. package/dist/component/{contacts-company-rac-BksH9IoV.js → contacts-company-rac-DMnTF55t.js} +1 -1
  19. package/dist/component/{contacts-email-rac-DDPEtMAm.js → contacts-email-rac-DmZhScW2.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-DUlCvEdx.js → contacts-first-name-rac-B6A4fuzK.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-BikqNgUr.js → contacts-last-name-rac-DVz97lew.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-B4OEgM_8.js → contacts-phone-rac-DV8aO0uS.js} +1 -1
  23. package/dist/component/{contacts-position-rac-BfybzySV.js → contacts-position-rac-BP_yBIE4.js} +1 -1
  24. package/dist/component/{contacts-subscribe-rac-CMHb33v1.js → contacts-subscribe-rac-wmTprtLf.js} +1 -1
  25. package/dist/component/{contacts-tax-id-rac-C-qEqwO5.js → contacts-tax-id-rac-CUEPBQye.js} +1 -1
  26. package/dist/component/{date-availability-DZ3J3LLm.js → date-availability-BK_0gLRv.js} +1 -1
  27. package/dist/component/{date-input-field-rac-DeL5vuE7.js → date-input-field-rac-BfWPvRnd.js} +75 -69
  28. package/dist/component/{date-input-rac-Di6TQvFf.js → date-input-rac-B7vAMRBX.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-BcdpTkjV.js → date-picker-field-rac-CpDY4EkU.js} +10 -8
  30. package/dist/component/{date-picker-rac-Brne65gr.js → date-picker-rac-BCswaZB1.js} +1 -1
  31. package/dist/component/{date-time-input-field-rac-BtQfAxRp.js → date-time-input-field-rac-D9w4eEa0.js} +115 -109
  32. package/dist/component/{date-time-input-rac-DM_HXiqV.js → date-time-input-rac-_im8-JRC.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-WTVwhGG0.js → dext-checkbox-group-rac-Di7B1Wzv.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-BR5YwmLQ.js → dext-checkbox-rac-BPendOsP.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-DvDuRGYi.js → dext-date-picker-rac-_-Ig9Qn6.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-C6RgbaVv.js → dext-date-time-input-rac-dKFW87yu.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-CWjSdcZx.js → dext-dropdown-rac-Cpdpps7P.js} +1 -1
  38. package/dist/component/{dext-email-rac-D-C1gVTq.js → dext-email-rac-D4UmYH5m.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-YKzZS2ZG.js → dext-number-input-rac-DUetGnYJ.js} +1 -1
  40. package/dist/component/{dext-phone-rac-CFZlEH2a.js → dext-phone-rac-Bsz_DAT9.js} +1 -1
  41. package/dist/component/{dext-radio-group-rac-DiH0wIIl.js → dext-radio-group-rac-B_soj2FD.js} +2 -2
  42. package/dist/component/{dext-rating-input-rac-D0s-i0qO.js → dext-rating-input-rac-cm40qt4O.js} +1 -1
  43. package/dist/component/{dext-tags-rac-Br48OQQ5.js → dext-tags-rac-D1ULx6t1.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-6jG8gJ7i.js → dext-text-area-rac-IkL67rHB.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-FAJTCXuf.js → dext-text-input-rac-DsYSTEL2.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-BoMP8sQB.js → dext-url-input-rac-BKvEkpYu.js} +1 -1
  47. package/dist/component/{donation-rac-DNi4p-v5.js → donation-rac-CaCXMa-H.js} +60 -58
  48. package/dist/component/{dropdown-field-headless-7SCC-xOC.js → dropdown-field-headless-DcrQK8mL.js} +29 -27
  49. package/dist/component/{dropdown-field-rac-CMzZh6J6.js → dropdown-field-rac-CuGoz_6I.js} +4 -4
  50. package/dist/component/{dropdown-rac-qeugpHXY.js → dropdown-rac-rIe6ZqaZ.js} +1 -1
  51. package/dist/component/{ecom-address-rac-D8b_L5md.js → ecom-address-rac-DT0rzvvp.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-BnAuR9La.js → ecom-subscription-checkbox-rac-ZfbiME6e.js} +2 -2
  53. package/dist/component/{email-input-field-rac-CunXRyc5.js → email-input-field-rac-8Qn3yskh.js} +4 -4
  54. package/dist/component/{events-repeater-rac-DMjyIOkB.js → events-repeater-rac-DyHrMd3y.js} +12 -8
  55. package/dist/component/{events-rsvp-rac-BsuDPq2K.js → events-rsvp-rac-CoL-euuc.js} +4 -4
  56. package/dist/component/{field-error-headless-E8WjFr_n.js → field-error-headless-RylIeqXr.js} +1 -1
  57. package/dist/component/{field-label-headless-BakLOu5E.js → field-label-headless-d3hZxIEc.js} +1 -1
  58. package/dist/component/field-rac.module-DP0lkkEv.js +25 -0
  59. package/dist/component/{file-upload-rac-Clu_c--0.js → file-upload-rac-rXbabrgc.js} +148 -144
  60. package/dist/component/{fixed-payment-rac-CzAXxsb-.js → fixed-payment-rac-CaR7pXXA.js} +4 -4
  61. package/dist/component/{form-DHAKwnLt.js → form-DhIEC3nB.js} +2251 -2256
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +1 -1
  64. package/dist/component/{header-field-rac-CwmVpz3r.js → header-field-rac-nELbyGjP.js} +2 -2
  65. package/dist/component/{header-rac-ahkGRjSy.js → header-rac-q80EQNmM.js} +1 -1
  66. package/dist/component/{image-choice-rac-BwxkkdUu.js → image-choice-rac-CLMiTQK0.js} +32 -32
  67. package/dist/component/{index-BQf23zZi.js → index-C-jVrv9Y.js} +4 -4
  68. package/dist/component/{index-BFi_n6B7.js → index-DnLJzPM-.js} +2 -2
  69. package/dist/component/{isObjectLike-DHcMRYYH.js → isObjectLike-Bf577MHV.js} +1 -1
  70. package/dist/component/{multiline-address-field-rac-C6xaqNOk.js → multiline-address-field-rac-BVAv1w9F.js} +106 -88
  71. package/dist/component/{multiline-address-rac-DF4TFuDx.js → multiline-address-rac-qMuUHA9U.js} +1 -1
  72. package/dist/component/{number-input-field-rac-uVJ3SBv2.js → number-input-field-rac-B_vnBWFG.js} +16 -14
  73. package/dist/component/{number-input-rac-D6ERhrSM.js → number-input-rac-BPCIW8Fz.js} +1 -1
  74. package/dist/component/{password-rac-CAiC0ZKl.js → password-rac-D72HG72u.js} +13 -11
  75. package/dist/component/{payment-input-rac-Bu25xvby.js → payment-input-rac-DthVgsAi.js} +13 -11
  76. package/dist/component/{phone-input-field-rac-32qUvCsC.js → phone-input-field-rac-XIPkH8Fb.js} +7 -7
  77. package/dist/component/{phone-rac-mNrpj30q.js → phone-rac-U94fCfer.js} +1 -1
  78. package/dist/component/{product-list-rac-zHdM9rHw.js → product-list-rac-BRMGPyhr.js} +49 -49
  79. package/dist/component/{quiz-radio-group-rac-BaSlT8w3.js → quiz-radio-group-rac-DafNzzgX.js} +1 -1
  80. package/dist/component/radio-button-module-classes-DtFlHID_.js +134 -0
  81. package/dist/component/{radio-group-field-rac-DI0UgTBr.js → radio-group-field-rac-BXrYWjew.js} +5 -5
  82. package/dist/component/{radio-group-rac-D2ESG8J4.js → radio-group-rac-BNyFfQYV.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-BYT2XqOK.js → rating-input-field-rac-KbkiVCZ7.js} +5 -5
  84. package/dist/component/{rating-input-rac-D-5CmVAX.js → rating-input-rac-zT4vPkwP.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-Dp9Advo9.js → rich-content-rac.module-C0OQetct.js} +1 -1
  86. package/dist/component/{rich-text-field-rac-COEUwoXQ.js → rich-text-field-rac-T4NoShC0.js} +2 -2
  87. package/dist/component/{rich-text-rac-CQZLjBQ0.js → rich-text-rac-m6VRCRZu.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-BTtJVFv8.js → service-dropdown-rac-BFwKhL1l.js} +5 -5
  89. package/dist/component/{services-multi-choice-rac-hbY3g0Kb.js → services-multi-choice-rac-DjzcuRWv.js} +7 -7
  90. package/dist/component/{signature-rac-CTCNclwL.js → signature-rac-B1LPKnIw.js} +271 -269
  91. package/dist/component/{submit-button-rac-kKGeVgsG.js → submit-button-rac-Cz3PVtW4.js} +2 -2
  92. package/dist/component/{tags-field-rac-CVf7oQr_.js → tags-field-rac-DzSoL__s.js} +75 -75
  93. package/dist/component/{tags-rac-DiX1_nTT.js → tags-rac-DMYJDrm-.js} +1 -1
  94. package/dist/component/{text-area-field-rac-IhBNXiDl.js → text-area-field-rac-SuMzBm-Q.js} +15 -13
  95. package/dist/component/{text-area-rac-DHevCtFF.js → text-area-rac-C-zmnJgt.js} +1 -1
  96. package/dist/component/{text-input-field-rac-Da3_wTdh.js → text-input-field-rac-BmQlXTK9.js} +4 -4
  97. package/dist/component/text-input-headless-BsrjGTK4.js +47 -0
  98. package/dist/component/{text-input-rac-564LIZ1_.js → text-input-rac-DhQFKG4h.js} +1 -1
  99. package/dist/component/{time-input-rac-p-Nnsxp_.js → time-input-rac-CRZZdbTI.js} +29 -27
  100. package/dist/component/{url-input-field-rac-DjrcpRtm.js → url-input-field-rac-D617Pvsf.js} +20 -18
  101. package/dist/component/{url-input-rac-B3brpyop.js → url-input-rac-CLvxaWZz.js} +1 -1
  102. package/dist/component/{use-dropdown-trigger-class-name-BWTT7ltv.js → use-dropdown-trigger-class-name-C4uqTKFP.js} +4 -4
  103. package/dist/component/{use-element-state-class-name-CUZuhFvZ.js → use-element-state-class-name-DJx-T0zf.js} +1 -1
  104. package/dist/component/{use-hoverable-input-class-name-ugX8-g4E.js → use-hoverable-input-class-name-pwVZXwrY.js} +3 -3
  105. package/dist/component/{use-is-forced-open-dropdown-DUZMvWpk.js → use-is-forced-open-dropdown-DBpm1D-o.js} +1 -1
  106. package/dist/component/{use-service-options-base-hqO9Ev38.js → use-service-options-base-xHeVTve3.js} +1 -1
  107. package/dist/component/use-text-input-class-name-CrEjJ2Z8.js +6 -0
  108. package/package.json +2 -2
  109. package/dist/component/field-rac.module-DfEb7pBp.js +0 -25
  110. package/dist/component/radio-button-module-classes-BdWjkBlX.js +0 -132
  111. package/dist/component/text-input-headless-DcZRRXCp.js +0 -45
  112. package/dist/component/use-text-input-class-name-wp9dzpEy.js +0 -6
@@ -1,24 +1,24 @@
1
- import s, { useRef as $, useContext as Ae, useMemo as be, useCallback as _, useState as q, useEffect as le, Children as Fe, isValidElement as Le } from "react";
1
+ import r, { useRef as G, useContext as Ae, useMemo as be, useCallback as _, useState as X, useEffect as le, Children as Fe, isValidElement as Le } from "react";
2
2
  import we from "@wix/editor-react-components/AnimatedIcon";
3
3
  import { RicosViewer as xe } from "@wix/ricos/viewer";
4
4
  import F from "classnames";
5
- import { aS as Ue, bi as Te, au as Be, F as Oe, bk as Pe, bg as Me, bw as ye, E as me, ak as oe, bo as x, bl as W, bq as Ce, by as He, bh as We, S as Ye, a0 as ke, a2 as Ze, v as pe, b as Ve, a7 as Ge, a8 as fe, H as $e, a1 as ze, a5 as Xe, a3 as qe, a6 as je, f as ne, a4 as Je } from "./form-DHAKwnLt.js";
5
+ import { aS as Ue, bi as Te, au as Be, F as Oe, bk as Pe, bg as Me, bw as Ce, E as me, ak as oe, bo as x, bl as W, bq as Ie, by as He, bh as We, S as Ye, a0 as qe, a2 as ke, v as pe, b as Ze, a7 as Ve, a8 as fe, H as Ge, a1 as $e, a5 as ze, a3 as Xe, a6 as je, f as ne, a4 as Je } from "./form-DhIEC3nB.js";
6
6
  import { useHover as Ke, useFocusRing as Qe, mergeProps as et } from "react-aria";
7
- import { RadioGroup as tt, Button as Ie, TextField as nt, DropZone as at, Input as ot, FileTrigger as rt, RadioField as st, RadioButton as lt } from "react-aria-components";
7
+ import { RadioGroup as tt, Button as ye, TextField as nt, DropZone as at, Input as ot, FileTrigger as st, RadioField as rt, RadioButton as lt } from "react-aria-components";
8
8
  import _e from "signature_pad";
9
- import { f as C, a as A } from "./find-child-C60k4CxG.js";
10
- import { D as it, E as ct } from "./field-error-headless-E8WjFr_n.js";
11
- import { L as ut } from "./field-label-headless-BakLOu5E.js";
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-RylIeqXr.js";
11
+ import { L as ut } from "./field-label-headless-d3hZxIEc.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 ae } from "./field-rac.module-DfEb7pBp.js";
15
- import { u as X } from "./use-element-state-class-name-CUZuhFvZ.js";
16
- const pt = typeof s.useId == "function" ? s.useId : () => $(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)), gt = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, ht = (e) => {
14
+ import { s as ae } from "./field-rac.module-DP0lkkEv.js";
15
+ import { u as z } from "./use-element-state-class-name-DJx-T0zf.js";
16
+ const pt = typeof r.useId == "function" ? r.useId : () => G(Ue()).current, ft = ({ properties: e }) => e.uploadEnabled === !0, ht = (e, t) => e.fieldType === Oe.SIGNATURE && !e.properties.hidden && !e.properties.disabled && !e.properties.readOnly && (t !== "upload" || ft(e)), Et = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, gt = (e) => {
17
17
  var o;
18
18
  const t = (o = Te().signatureContainer) == null ? void 0 : o.signatureMode, a = Ae(Be);
19
19
  return be(() => {
20
- var r;
21
- return a && !a.parentId && t ? (r = a.fields.filter((l) => Et(l, t)).sort(gt)[0]) == null ? void 0 : r.id : void 0;
20
+ var s;
21
+ return a && !a.parentId && t ? (s = a.fields.filter((l) => ht(l, t)).sort(Et)[0]) == null ? void 0 : s.id : void 0;
22
22
  }, [
23
23
  a,
24
24
  t
@@ -26,7 +26,7 @@ const pt = typeof s.useId == "function" ? s.useId : () => $(Ue()).current, ft =
26
26
  };
27
27
  var S = /* @__PURE__ */ (function(e) {
28
28
  return e.TEXT = "text/plain", e.POINTS = "points/json", e;
29
- })({}), y = /* @__PURE__ */ (function(e) {
29
+ })({}), C = /* @__PURE__ */ (function(e) {
30
30
  return e.DRAW = "draw", e.TYPE = "type", e.UPLOAD = "upload", e;
31
31
  })({}), N = /* @__PURE__ */ (function(e) {
32
32
  return e.DRAW = "draw", e.TYPE = "type", e.IMAGE = "image", e.UPLOAD = "upload", e;
@@ -36,11 +36,11 @@ const bt = (e) => {
36
36
  return _(async (o) => {
37
37
  if (!n)
38
38
  throw new Error("No uploadFile action");
39
- const r = await n({
39
+ const s = await n({
40
40
  file: o,
41
41
  formId: a,
42
42
  uploadTarget: e
43
- }), { id: l, displayName: i, url: c, isPrivate: u } = r;
43
+ }), { id: l, displayName: i, url: c, isPrivate: u } = s;
44
44
  return {
45
45
  fileId: l,
46
46
  displayName: i || o.name,
@@ -62,26 +62,26 @@ function Lt(e) {
62
62
  const Tt = (e, t) => {
63
63
  const a = Lt(e);
64
64
  return (n, o) => {
65
- const r = (o * t.width + n) * 4;
66
- return t.data[r] * 65536 + t.data[r + 1] * 256 + t.data[r + 2] === a;
65
+ const s = (o * t.width + n) * 4;
66
+ return t.data[s] * 65536 + t.data[s + 1] * 256 + t.data[s + 2] === a;
67
67
  };
68
- }, yt = (e) => (t, a) => {
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
- function se(e, t) {
72
+ function re(e, t) {
73
73
  const a = e.getContext("2d", {
74
74
  willReadFrequently: !0
75
- }), n = e.width, o = e.height, r = a.getImageData(0, 0, n, o), l = t ? Tt(t, r) : yt(r);
75
+ }), n = e.width, o = e.height, s = a.getImageData(0, 0, n, o), l = t ? Tt(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++)
79
79
  l(f, m) || (i > f && (i = f), c < f && (c = f), u > m && (u = m), d < m && (d = m));
80
- const L = c - i, h = d - u;
81
- if (L < 0 || h < 0)
80
+ const L = c - i, g = d - u;
81
+ if (L < 0 || g < 0)
82
82
  return null;
83
- const p = a.getImageData(i, u, L, h), g = document.createElement("canvas"), E = g.getContext("2d");
84
- return g.width = L, g.height = h, t ? (E.fillStyle = t, E.fillRect(0, 0, L, h)) : E.clearRect(0, 0, L, h), E.putImageData(p, 0, 0), g;
83
+ const p = a.getImageData(i, u, L, g), E = document.createElement("canvas"), h = E.getContext("2d");
84
+ return E.width = L, E.height = g, t ? (h.fillStyle = t, h.fillRect(0, 0, L, g)) : h.clearRect(0, 0, L, g), h.putImageData(p, 0, 0), E;
85
85
  }
86
86
  function j(e, t, a) {
87
87
  const n = document.createElement("canvas");
@@ -93,26 +93,26 @@ function j(e, t, a) {
93
93
  }
94
94
  return n;
95
95
  }
96
- function Ct(e, t) {
96
+ function It(e, t) {
97
97
  return new Promise((a, n) => {
98
98
  const o = new Image();
99
99
  o.onload = () => {
100
- const r = j(o.width, o.height), l = r.getContext("2d", {
100
+ const s = j(o.width, o.height), l = s.getContext("2d", {
101
101
  willReadFrequently: !0
102
102
  });
103
- l == null || l.drawImage(o, 0, 0), a(r);
103
+ l == null || l.drawImage(o, 0, 0), a(s);
104
104
  }, o.onerror = n, o.src = e;
105
105
  });
106
106
  }
107
- function Ee(e, t, a, n) {
108
- const o = e.width, r = e.height, l = 1, i = a / r, c = Math.min(i, l), u = o * c, d = r * c, f = j(u, d), m = f.getContext("2d");
109
- return n && m && (m.fillStyle = n, m.fillRect(0, 0, u, d)), m == null || m.drawImage(e, 0, 0, o, r, 0, 0, u, d), f;
107
+ function he(e, t, a, n) {
108
+ const o = e.width, s = e.height, l = 1, i = a / s, c = Math.min(i, l), u = o * c, d = s * c, f = j(u, d), m = f.getContext("2d");
109
+ return n && m && (m.fillStyle = n, m.fillRect(0, 0, u, d)), m == null || m.drawImage(e, 0, 0, o, s, 0, 0, u, d), f;
110
110
  }
111
- function ge(e, t) {
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
- return (e.width !== l || e.height !== i) && a ? (e.width = l, e.height = i, a.scale(r, r), t == null || t.redraw(), !0) : !1;
111
+ function Ee(e, t) {
112
+ const a = e.getContext("2d"), n = e.offsetWidth, o = e.offsetHeight, s = Math.max(window.devicePixelRatio || 1, 1), l = n * s, i = o * s;
113
+ return (e.width !== l || e.height !== i) && a ? (e.width = l, e.height = i, a.scale(s, s), t == null || t.redraw(), !0) : !1;
114
114
  }
115
- const G = 480, It = (e) => Re({
115
+ const V = 480, yt = (e) => Re({
116
116
  data: JSON.stringify(e),
117
117
  mimeType: S.POINTS
118
118
  }), ve = (e) => {
@@ -124,7 +124,7 @@ const G = 480, It = (e) => Re({
124
124
  return null;
125
125
  }
126
126
  return null;
127
- }, he = 0.8, De = "Madefor";
127
+ }, ge = 0.8, De = "Madefor";
128
128
  function Se(e, t) {
129
129
  const { width: a, actualBoundingBoxAscent: n, actualBoundingBoxDescent: o } = t.measureText(e);
130
130
  return {
@@ -134,18 +134,18 @@ function Se(e, t) {
134
134
  };
135
135
  }
136
136
  function _t(e, t) {
137
- const a = t.getContext("2d"), n = t.offsetWidth || t.width, r = (t.offsetHeight || t.height) * he, l = n * he;
138
- a.font = `${r}px ${De}`;
139
- const { width: i, height: c } = Se(e, a), u = r / (i / l), d = r / (c / r);
137
+ const a = t.getContext("2d"), n = t.offsetWidth || t.width, s = (t.offsetHeight || t.height) * ge, l = n * ge;
138
+ a.font = `${s}px ${De}`;
139
+ const { width: i, height: c } = Se(e, a), u = s / (i / l), d = s / (c / s);
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);
144
- r.font = `${l}px ${De}`, r.textBaseline = "top";
145
- const i = e.offsetWidth || e.width, c = e.offsetHeight || e.height, { width: u, height: d, offsetY: f } = Se(t, r);
146
- r.fillStyle = o, r.fillRect(0, 0, i, c), r.fillStyle = a;
143
+ const s = e.getContext("2d"), l = _t(t, e);
144
+ s.font = `${l}px ${De}`, s.textBaseline = "top";
145
+ const i = e.offsetWidth || e.width, c = e.offsetHeight || e.height, { width: u, height: d, offsetY: f } = Se(t, s);
146
+ s.fillStyle = o, s.fillRect(0, 0, i, c), s.fillStyle = a;
147
147
  const m = (i - u) / 2;
148
- r.fillText(t, n ? i - m : m, (c - d) / 2 + f);
148
+ s.fillText(t, n ? i - m : m, (c - d) / 2 + f);
149
149
  }
150
150
  const Ne = /^data:([^;,]+)(?:;([^,]+))?,(.+)$/;
151
151
  function Dt(e) {
@@ -176,10 +176,10 @@ function St(e, t) {
176
176
  const o = new Uint8Array(n);
177
177
  for (; n--; )
178
178
  o[n] = a.data.charCodeAt(n);
179
- const r = a.mimeType.split("/")[1] ?? "txt";
179
+ const s = a.mimeType.split("/")[1] ?? "txt";
180
180
  return new File([
181
181
  o
182
- ], `${t}.${r}`, {
182
+ ], `${t}.${s}`, {
183
183
  type: a.mimeType
184
184
  });
185
185
  }
@@ -198,26 +198,26 @@ async function Nt(e, t) {
198
198
  return e;
199
199
  const n = a.mimeType;
200
200
  if (n === S.TEXT) {
201
- const o = j(G * 20, G, 1);
201
+ const o = j(V * 20, V, 1);
202
202
  vt(o, a.data, "black", t, "white");
203
- const r = se(o, "white");
204
- return (r == null ? void 0 : r.toDataURL("image/jpeg", 0.7)) ?? null;
203
+ const s = re(o, "white");
204
+ return (s == null ? void 0 : s.toDataURL("image/jpeg", 0.7)) ?? null;
205
205
  }
206
206
  if (n === S.POINTS) {
207
207
  const o = ve(e);
208
208
  if (!o)
209
209
  return null;
210
- const r = o.map((d) => ({
210
+ const s = o.map((d) => ({
211
211
  ...d,
212
212
  penColor: "black"
213
- })), l = j(G * 20, G, Math.max(window.devicePixelRatio || 1, 1));
214
- new _e(l).fromData(r);
215
- const c = se(l);
216
- return c ? Ee(c, void 0, G, "white").toDataURL("image/jpeg", 0.7) : null;
213
+ })), l = j(V * 20, V, Math.max(window.devicePixelRatio || 1, 1));
214
+ new _e(l).fromData(s);
215
+ const c = re(l);
216
+ return c ? he(c, void 0, V, "white").toDataURL("image/jpeg", 0.7) : null;
217
217
  }
218
218
  if (n != null && n.startsWith("image/")) {
219
- const o = await Ct(e), r = se(o);
220
- return r ? Ee(r, void 0, G).toDataURL("image/jpeg", 0.7) : null;
219
+ const o = await It(e), s = re(o);
220
+ return s ? he(s, void 0, V).toDataURL("image/jpeg", 0.7) : null;
221
221
  }
222
222
  return e;
223
223
  }
@@ -227,7 +227,7 @@ async function Rt(e, t) {
227
227
  return St(a, "signature");
228
228
  }
229
229
  const At = ({ value: e, onChange: t, target: a }) => {
230
- const [n, o] = q(e), { isRTL: r } = Me(), l = bt(a), { setFormStatus: i } = ye(), c = $();
230
+ const [n, o] = X(e), { isRTL: s } = Me(), l = bt(a), { setFormStatus: i } = Ce(), c = G();
231
231
  le(() => {
232
232
  e === me && o(me);
233
233
  }, [
@@ -235,15 +235,15 @@ const At = ({ value: e, onChange: t, target: a }) => {
235
235
  ]);
236
236
  const u = _(() => {
237
237
  c.current && (clearTimeout(c.current), c.current = null);
238
- }, []), d = n == null ? void 0 : n[0], f = d != null && d.url ? Y(d.url) : void 0, m = _(async (h) => {
238
+ }, []), d = n == null ? void 0 : n[0], f = d != null && d.url ? Y(d.url) : void 0, m = _(async (g) => {
239
239
  try {
240
- const p = (h == null ? void 0 : h.url) ?? "";
240
+ const p = (g == null ? void 0 : g.url) ?? "";
241
241
  if (Dt(p)) {
242
- const g = await Rt(p, r);
243
- if (g) {
244
- const E = await l(g);
242
+ const E = await Rt(p, s);
243
+ if (E) {
244
+ const h = await l(E);
245
245
  t([
246
- E
246
+ h
247
247
  ]);
248
248
  } else
249
249
  o(void 0), t(void 0);
@@ -255,18 +255,18 @@ const At = ({ value: e, onChange: t, target: a }) => {
255
255
  }, [
256
256
  i,
257
257
  a,
258
- r,
258
+ s,
259
259
  l,
260
260
  t
261
261
  ]);
262
262
  return {
263
- handleChange: _((h) => {
264
- const p = (g) => {
265
- c.current = setTimeout(() => m(g), 1500);
263
+ handleChange: _((g) => {
264
+ const p = (E) => {
265
+ c.current = setTimeout(() => m(E), 1500);
266
266
  };
267
- h ? (c.current && (clearTimeout(c.current), c.current = null), o([
268
- h
269
- ]), p(h)) : (t == null || t(null), o(void 0), i(a, oe.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, oe.READY));
270
270
  }, [
271
271
  m,
272
272
  t,
@@ -278,22 +278,22 @@ const At = ({ value: e, onChange: t, target: a }) => {
278
278
  cancelUpload: u
279
279
  };
280
280
  }, Ft = ({ target: e, value: t, onChange: a }) => {
281
- const { handleChange: n, cancelUpload: o, signature: r, decodedValue: l } = At({
281
+ const { handleChange: n, cancelUpload: o, signature: s, decodedValue: l } = At({
282
282
  value: t,
283
283
  onChange: a,
284
284
  target: e
285
- }), [i, c] = q(() => {
286
- if (r == null)
287
- return y.DRAW;
285
+ }), [i, c] = X(() => {
286
+ if (s == null)
287
+ return C.DRAW;
288
288
  switch (l == null ? void 0 : l.mimeType) {
289
289
  case S.POINTS:
290
- return y.DRAW;
290
+ return C.DRAW;
291
291
  case S.TEXT:
292
- return y.TYPE;
292
+ return C.TYPE;
293
293
  default:
294
- return y.UPLOAD;
294
+ return C.UPLOAD;
295
295
  }
296
- }), { setFormStatus: u } = ye(), d = _(() => {
296
+ }), { setFormStatus: u } = Ce(), d = _(() => {
297
297
  o(), u(e, oe.BUSY);
298
298
  }, [
299
299
  o,
@@ -306,34 +306,34 @@ const At = ({ value: e, onChange: t, target: a }) => {
306
306
  n,
307
307
  u,
308
308
  e
309
- ]), m = r != null, L = xt(i, r, l), h = (() => {
309
+ ]), m = s != null, L = xt(i, s, l), g = (() => {
310
310
  switch (i) {
311
- case y.DRAW:
311
+ case C.DRAW:
312
312
  return N.DRAW;
313
- case y.TYPE:
313
+ case C.TYPE:
314
314
  return N.TYPE;
315
- case y.UPLOAD:
315
+ case C.UPLOAD:
316
316
  return L != null ? N.IMAGE : N.UPLOAD;
317
317
  default:
318
318
  return N.DRAW;
319
319
  }
320
320
  })();
321
321
  return {
322
- signature: r,
322
+ signature: s,
323
323
  decodedValue: l,
324
324
  signatureMode: i,
325
325
  clearable: m,
326
326
  signatureValueForView: L,
327
- signatureView: h,
327
+ signatureView: g,
328
328
  handleChange: n,
329
329
  setSignatureMode: c,
330
330
  handleBeforeChange: d,
331
331
  handleClear: f
332
332
  };
333
333
  }, wt = {
334
- [y.DRAW]: (e) => (e == null ? void 0 : e.mimeType) === S.POINTS,
335
- [y.TYPE]: (e) => (e == null ? void 0 : e.mimeType) === S.TEXT,
336
- [y.UPLOAD]: (e) => (e == null ? void 0 : e.mimeType) !== S.POINTS && (e == null ? void 0 : e.mimeType) !== S.TEXT
334
+ [C.DRAW]: (e) => (e == null ? void 0 : e.mimeType) === S.POINTS,
335
+ [C.TYPE]: (e) => (e == null ? void 0 : e.mimeType) === S.TEXT,
336
+ [C.UPLOAD]: (e) => (e == null ? void 0 : e.mimeType) !== S.POINTS && (e == null ? void 0 : e.mimeType) !== S.TEXT
337
337
  };
338
338
  function xt(e, t, a) {
339
339
  return t && wt[e](a) ? t : void 0;
@@ -352,58 +352,58 @@ const Ut = (e) => {
352
352
  "data-focus-visible": o || void 0
353
353
  };
354
354
  }, b = ({ children: e }) => {
355
- const { id: t, FieldLayout: a } = x(), n = C(e, b.Label), o = C(e, b.Input), r = C(e, b.Description), l = C(e, b.Error);
356
- return /* @__PURE__ */ s.createElement(a, {
355
+ const { id: t, FieldLayout: a } = x(), n = I(e, b.Label), o = I(e, b.Input), s = I(e, b.Description), l = I(e, b.Error);
356
+ return /* @__PURE__ */ r.createElement(a, {
357
357
  fieldId: t,
358
358
  renderLabel: () => n,
359
359
  renderInput: () => o,
360
- renderDescription: () => /* @__PURE__ */ s.createElement(s.Fragment, null, l, r)
360
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, l, s)
361
361
  });
362
362
  }, Bt = {
363
- [y.DRAW]: N.DRAW,
364
- [y.TYPE]: N.TYPE,
365
- [y.UPLOAD]: N.UPLOAD
363
+ [C.DRAW]: N.DRAW,
364
+ [C.TYPE]: N.TYPE,
365
+ [C.UPLOAD]: N.UPLOAD
366
366
  }, J = ({ children: e, className: t }) => {
367
- const { id: a, value: n, onChange: o, target: r, readOnly: l } = x(), i = ht(a), { signatureMode: c, setSignatureMode: u, handleClear: d, clearable: f, signatureView: m, signatureValueForView: L, handleChange: h, handleBeforeChange: p } = Ft({
368
- target: r,
367
+ const { id: a, value: n, onChange: o, target: s, readOnly: l } = x(), i = gt(a), { signatureMode: c, setSignatureMode: u, handleClear: d, clearable: f, signatureView: m, signatureValueForView: L, handleChange: g, handleBeforeChange: p } = Ft({
368
+ target: s,
369
369
  value: n,
370
370
  onChange: o
371
- }), g = C(e, J.Header), E = C(e, J.Value), R = {
371
+ }), E = I(e, J.Header), h = I(e, J.Value), R = {
372
372
  signatureMode: i ?? c,
373
373
  setSignatureMode: u,
374
374
  handleClear: d,
375
375
  clearable: f,
376
376
  signatureView: i ? Bt[i] : m,
377
377
  signatureValueForView: i ? void 0 : L,
378
- handleChange: h,
378
+ handleChange: g,
379
379
  handleBeforeChange: p
380
380
  };
381
- return /* @__PURE__ */ s.createElement("div", {
381
+ return /* @__PURE__ */ r.createElement("div", {
382
382
  className: t,
383
383
  "data-hook": "signature-container"
384
- }, !l && A(g, R), A(E, R));
384
+ }, !l && A(E, R), A(h, R));
385
385
  }, K = ({ children: e, className: t, ...a }) => {
386
- const { signatureMode: n, setSignatureMode: o, clearable: r, handleClear: l } = a, { uploadEnabled: i } = x(), c = C(e, K.Tabs), u = C(e, K.Clear);
387
- return /* @__PURE__ */ s.createElement("div", {
386
+ const { signatureMode: n, setSignatureMode: o, clearable: s, handleClear: l } = a, { uploadEnabled: i } = x(), c = I(e, K.Tabs), u = I(e, K.Clear);
387
+ return /* @__PURE__ */ r.createElement("div", {
388
388
  className: t
389
389
  }, A(c, {
390
390
  signatureMode: n,
391
391
  setSignatureMode: o,
392
392
  uploadEnabled: i
393
- }), r && A(u, {
393
+ }), s && A(u, {
394
394
  handleClear: l
395
395
  }));
396
396
  }, M = ({ children: e, className: t, ...a }) => {
397
- const { signatureMode: n, setSignatureMode: o, uploadEnabled: r } = a, { disabled: l } = x(), { labelId: i, inputId: c } = W(), u = _((L) => {
397
+ const { signatureMode: n, setSignatureMode: o, uploadEnabled: s } = a, { disabled: l } = x(), { labelId: i, inputId: c } = W(), u = _((L) => {
398
398
  o(L);
399
399
  }, [
400
400
  o
401
401
  ]), d = {
402
- [y.DRAW]: C(e, M.Draw),
403
- [y.TYPE]: C(e, M.Type),
404
- [y.UPLOAD]: r ? C(e, M.Upload) : null
402
+ [C.DRAW]: I(e, M.Draw),
403
+ [C.TYPE]: I(e, M.Type),
404
+ [C.UPLOAD]: s ? I(e, M.Upload) : null
405
405
  }, f = d[n], m = Ot(f) ? f.props.description : void 0;
406
- return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
406
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement("div", {
407
407
  role: "status",
408
408
  "aria-live": "polite",
409
409
  style: {
@@ -413,7 +413,7 @@ const Ut = (e) => {
413
413
  height: "1px",
414
414
  overflow: "hidden"
415
415
  }
416
- }, m), /* @__PURE__ */ s.createElement(tt, {
416
+ }, m), /* @__PURE__ */ r.createElement(tt, {
417
417
  value: n,
418
418
  onChange: u,
419
419
  isDisabled: l,
@@ -421,35 +421,35 @@ const Ut = (e) => {
421
421
  "aria-controls": c,
422
422
  "data-hook": dt.SIGNATURE_FIELD_MODE_SELECT,
423
423
  className: t
424
- }, d[y.DRAW], d[y.TYPE], d[y.UPLOAD]));
425
- }, Ot = (e) => /* @__PURE__ */ Le(e), ue = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(st, {
424
+ }, d[C.DRAW], d[C.TYPE], d[C.UPLOAD]));
425
+ }, Ot = (e) => /* @__PURE__ */ Le(e), ue = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ r.createElement(rt, {
426
426
  value: e,
427
427
  "aria-label": n
428
- }, /* @__PURE__ */ s.createElement(lt, {
428
+ }, /* @__PURE__ */ r.createElement(lt, {
429
429
  "data-hook": `signature-mode-${e}`,
430
430
  className: a
431
- }, t)), Pt = (e) => /* @__PURE__ */ s.createElement(ue, {
431
+ }, t)), Pt = (e) => /* @__PURE__ */ r.createElement(ue, {
432
432
  ...e,
433
- mode: y.DRAW
434
- }), Mt = (e) => /* @__PURE__ */ s.createElement(ue, {
433
+ mode: C.DRAW
434
+ }), Mt = (e) => /* @__PURE__ */ r.createElement(ue, {
435
435
  ...e,
436
- mode: y.TYPE
437
- }), Ht = (e) => /* @__PURE__ */ s.createElement(ue, {
436
+ mode: C.TYPE
437
+ }), Ht = (e) => /* @__PURE__ */ r.createElement(ue, {
438
438
  ...e,
439
- mode: y.UPLOAD
439
+ mode: C.UPLOAD
440
440
  }), Wt = ({ children: e, className: t, "aria-label": a, ...n }) => {
441
- const { handleClear: o } = n, { disabled: r, target: l } = x(), { inputId: i } = W();
442
- return /* @__PURE__ */ s.createElement(Ie, {
441
+ const { handleClear: o } = n, { disabled: s, target: l } = x(), { inputId: i } = W();
442
+ return /* @__PURE__ */ r.createElement(ye, {
443
443
  onPress: o,
444
- isDisabled: r,
444
+ isDisabled: s,
445
445
  "aria-label": a,
446
446
  "aria-controls": i,
447
447
  "data-hook": `clear-${l}`,
448
448
  className: t
449
449
  }, e);
450
450
  }, H = ({ 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: f } = x(), m = C(e, H.Canvas), L = C(e, H.Type), h = C(e, H.Upload);
452
- return /* @__PURE__ */ s.createElement("div", {
451
+ const { signatureView: n, signatureValueForView: o, handleChange: s, handleBeforeChange: l } = a, { disabled: i, readOnly: c, onBlur: u, onFocus: d, hasError: f } = x(), m = I(e, H.Canvas), L = I(e, H.Type), g = I(e, H.Upload);
452
+ return /* @__PURE__ */ r.createElement("div", {
453
453
  className: t,
454
454
  "data-hook": "signature-input",
455
455
  "data-invalid": f,
@@ -457,7 +457,7 @@ const Ut = (e) => {
457
457
  "data-readonly": c
458
458
  }, n === N.DRAW && A(m, {
459
459
  value: o,
460
- onChange: r,
460
+ onChange: s,
461
461
  onBeforeChange: l,
462
462
  disabled: i,
463
463
  readOnly: c,
@@ -465,15 +465,15 @@ const Ut = (e) => {
465
465
  onFocus: d
466
466
  }), n === N.TYPE && A(L, {
467
467
  value: o,
468
- onChange: r,
468
+ onChange: s,
469
469
  onBeforeChange: l,
470
470
  disabled: i,
471
471
  readOnly: c,
472
472
  onBlur: u,
473
473
  onFocus: d
474
- }), (n === N.UPLOAD || n === N.IMAGE) && A(h, {
474
+ }), (n === N.UPLOAD || n === N.IMAGE) && A(g, {
475
475
  value: o,
476
- onChange: r,
476
+ onChange: s,
477
477
  onBeforeChange: l,
478
478
  disabled: i,
479
479
  readOnly: c,
@@ -481,10 +481,12 @@ 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: f } = x(), { inputId: m, ariaDescribedBy: L } = W(), h = ce(), p = $(), g = $(), E = $(null), R = o == null ? void 0 : o.url, [k, P] = q(!1);
485
- Ce(() => {
486
- var I;
487
- (I = g.current) == null || I.focus();
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(), g = ce(), p = G(), E = G(), h = G(null), R = o == null ? void 0 : o.url, [q, P] = X(!1);
485
+ Ie(() => {
486
+ var y;
487
+ (y = E.current) == null || y.focus({
488
+ preventScroll: !0
489
+ });
488
490
  }, f);
489
491
  const v = be(() => ({
490
492
  throttle: 0,
@@ -496,50 +498,50 @@ const Ut = (e) => {
496
498
  var w, U, B;
497
499
  if ((w = p.current) != null && w.isEmpty())
498
500
  return "";
499
- const I = (U = p.current) == null ? void 0 : U.toData();
500
- return I ? It(I) : ((B = p.current) == null ? void 0 : B.toDataURL()) ?? "";
501
- }, []), z = _(() => {
501
+ const y = (U = p.current) == null ? void 0 : U.toData();
502
+ return y ? yt(y) : ((B = p.current) == null ? void 0 : B.toDataURL()) ?? "";
503
+ }, []), $ = _(() => {
502
504
  var w;
503
- const I = (w = p.current) == null ? void 0 : w.isEmpty();
504
- P(!I), r(ie(ee()));
505
+ const y = (w = p.current) == null ? void 0 : w.isEmpty();
506
+ P(!y), s(ie(ee()));
505
507
  }, [
506
508
  ee,
507
- r
508
- ]), Z = _(() => {
509
+ s
510
+ ]), k = _(() => {
509
511
  l == null || l();
510
512
  }, [
511
513
  l
512
- ]), te = _((I) => {
514
+ ]), te = _((y) => {
513
515
  var U, B, D, O;
514
- if (I != null) {
515
- if (g.current = I, p.current = new _e(I, {
516
+ if (y != null) {
517
+ if (E.current = y, p.current = new _e(y, {
516
518
  ...v,
517
- penColor: getComputedStyle(I).color || void 0
518
- }), ge(g.current, p.current), R) {
519
- const V = ve(R);
520
- V && (p.current.fromData(V), P(!0));
519
+ penColor: getComputedStyle(y).color || void 0
520
+ }), Ee(E.current, p.current), R) {
521
+ const Z = ve(R);
522
+ Z && (p.current.fromData(Z), P(!0));
521
523
  } else
522
524
  p.current.clear(), P(!1);
523
- p.current.addEventListener("beginStroke", Z), p.current.addEventListener("endStroke", z), typeof ResizeObserver < "u" && !E.current && (E.current = new ResizeObserver(() => {
524
- g.current && ge(g.current, p == null ? void 0 : p.current);
525
- })), (U = E.current) == null || U.observe(I);
525
+ p.current.addEventListener("beginStroke", k), p.current.addEventListener("endStroke", $), typeof ResizeObserver < "u" && !h.current && (h.current = new ResizeObserver(() => {
526
+ E.current && Ee(E.current, p == null ? void 0 : p.current);
527
+ })), (U = h.current) == null || U.observe(y);
526
528
  } else
527
- (B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", z), (O = p.current) == null || O.removeEventListener("beginStroke", Z);
529
+ (B = h.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", $), (O = p.current) == null || O.removeEventListener("beginStroke", k);
528
530
  }, [
529
531
  v,
530
532
  R,
531
- Z,
532
- z
533
+ k,
534
+ $
533
535
  ]);
534
536
  return le(() => {
535
537
  p.current && (c || i ? p.current.off() : p.current.on());
536
538
  }, [
537
539
  i,
538
540
  c
539
- ]), /* @__PURE__ */ s.createElement("div", {
541
+ ]), /* @__PURE__ */ r.createElement("div", {
540
542
  className: e,
541
- ...h
542
- }, /* @__PURE__ */ s.createElement("canvas", {
543
+ ...g
544
+ }, /* @__PURE__ */ r.createElement("canvas", {
543
545
  ref: te,
544
546
  id: m,
545
547
  "data-hook": "signature-canvas",
@@ -548,14 +550,14 @@ const Ut = (e) => {
548
550
  onFocus: d,
549
551
  onBlur: u,
550
552
  role: "img",
551
- "aria-label": k ? a : t,
553
+ "aria-label": q ? a : t,
552
554
  "aria-describedby": L
553
555
  }));
554
556
  }, de = ({ 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: f, hasError: m } = x(), { inputId: L, ariaDescribedBy: h, labelId: p } = W(), g = ce(), E = n != null && n.url ? Y(n.url) : void 0, { data: R = "" } = E ?? {
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: g, labelId: p } = W(), E = ce(), h = n != null && n.url ? Y(n.url) : void 0, { data: R = "" } = h ?? {
556
558
  data: ""
557
559
  };
558
- Ce(() => {
560
+ Ie(() => {
559
561
  const v = document.getElementById(L);
560
562
  v == null || v.focus({
561
563
  preventScroll: !0
@@ -569,19 +571,19 @@ const Ut = (e) => {
569
571
  n,
570
572
  L
571
573
  ]);
572
- const k = _((v) => {
573
- r == null || r(), v.trim() ? o(ie(Re({
574
+ const q = _((v) => {
575
+ s == null || s(), v.trim() ? o(ie(Re({
574
576
  data: v,
575
577
  mimeType: S.TEXT
576
578
  }))) : o(null);
577
579
  }, [
578
- r,
580
+ s,
579
581
  o
580
- ]), P = C(e, de.Value);
581
- return /* @__PURE__ */ s.createElement(nt, {
582
+ ]), P = I(e, de.Value);
583
+ return /* @__PURE__ */ r.createElement(nt, {
582
584
  "aria-labelledby": p,
583
585
  value: R,
584
- onChange: k,
586
+ onChange: q,
585
587
  onBlur: c,
586
588
  onFocus: u,
587
589
  isDisabled: l,
@@ -589,16 +591,16 @@ const Ut = (e) => {
589
591
  isRequired: f,
590
592
  isInvalid: m,
591
593
  validationBehavior: "aria"
592
- }, /* @__PURE__ */ s.createElement("div", {
594
+ }, /* @__PURE__ */ r.createElement("div", {
593
595
  className: t,
594
- ...g
596
+ ...E
595
597
  }, A(P, {
596
598
  inputId: L,
597
- ariaDescribedBy: h
599
+ ariaDescribedBy: g
598
600
  })));
599
- }, kt = ({ className: e, placeholder: t, ...a }) => {
601
+ }, qt = ({ className: e, placeholder: t, ...a }) => {
600
602
  const { inputId: n, ariaDescribedBy: o } = a;
601
- return /* @__PURE__ */ s.createElement(ot, {
603
+ return /* @__PURE__ */ r.createElement(ot, {
602
604
  id: n,
603
605
  "data-hook": "signature-text",
604
606
  "aria-describedby": o,
@@ -606,34 +608,34 @@ const Ut = (e) => {
606
608
  className: e
607
609
  });
608
610
  }, Q = ({ children: e, className: t, ...a }) => {
609
- const { value: n, onChange: o, disabled: r, readOnly: l, onBlur: i, onFocus: c } = a, { labelId: u, ariaDescribedBy: d } = W(), f = C(e, Q.Button), m = C(e, Q.Preview), L = _((p) => {
610
- const g = p[0];
611
- if (!g) {
611
+ const { value: n, onChange: o, disabled: s, readOnly: l, onBlur: i, onFocus: c } = a, { labelId: u, ariaDescribedBy: d } = W(), f = I(e, Q.Button), m = I(e, Q.Preview), L = _((p) => {
612
+ const E = p[0];
613
+ if (!E) {
612
614
  o(null);
613
615
  return;
614
616
  }
615
- const E = new FileReader();
616
- E.onload = () => {
617
- o(ie(E.result, g.name));
618
- }, E.readAsDataURL(g);
617
+ const h = new FileReader();
618
+ h.onload = () => {
619
+ o(ie(h.result, E.name));
620
+ }, h.readAsDataURL(E);
619
621
  }, [
620
622
  o
621
623
  ]);
622
624
  return n && Ut(n) ? A(m, {
623
625
  value: n
624
- }) ?? null : /* @__PURE__ */ s.createElement(at, {
626
+ }) ?? null : /* @__PURE__ */ r.createElement(at, {
625
627
  className: t,
626
- isDisabled: r || l,
628
+ isDisabled: s || l,
627
629
  "aria-labelledby": u,
628
630
  "aria-describedby": d,
629
631
  "data-hook": "signature-upload-drop-zone",
630
632
  onDrop: async (p) => {
631
- for (const g of p.items)
632
- if (g.kind === "file" && g.type.startsWith("image/")) {
633
- const E = await g.getFile();
634
- if (E) {
633
+ for (const E of p.items)
634
+ if (E.kind === "file" && E.type.startsWith("image/")) {
635
+ const h = await E.getFile();
636
+ if (h) {
635
637
  L([
636
- E
638
+ h
637
639
  ]);
638
640
  return;
639
641
  }
@@ -641,55 +643,55 @@ const Ut = (e) => {
641
643
  }
642
644
  }, A(f, {
643
645
  onSelectFiles: L,
644
- disabled: r,
646
+ disabled: s,
645
647
  readOnly: l,
646
648
  onBlur: i,
647
649
  onFocus: c
648
650
  }));
649
- }, Zt = ({ className: e, imageAlt: t, ...a }) => {
650
- const { value: n } = a, { inputId: o } = W(), r = ce();
651
- return /* @__PURE__ */ s.createElement("div", {
651
+ }, kt = ({ className: e, imageAlt: t, ...a }) => {
652
+ const { value: n } = a, { inputId: o } = W(), s = ce();
653
+ return /* @__PURE__ */ r.createElement("div", {
652
654
  className: e,
653
655
  "data-has-value": !0,
654
- ...r
655
- }, n.url ? /* @__PURE__ */ s.createElement("img", {
656
+ ...s
657
+ }, n.url ? /* @__PURE__ */ r.createElement("img", {
656
658
  id: o,
657
659
  src: n.url,
658
660
  alt: n.displayName || t,
659
661
  "data-hook": "signature-image"
660
- }) : /* @__PURE__ */ s.createElement("span", {
662
+ }) : /* @__PURE__ */ r.createElement("span", {
661
663
  id: o,
662
664
  "data-hook": "signature-image"
663
665
  }, n.displayName || t));
664
- }, re = ({ children: e, className: t, onHoverStart: a, onHoverEnd: n, onFocusChange: o, ...r }) => {
665
- const { onSelectFiles: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = r, { inputId: f, ariaDescribedBy: m, labelId: L } = W(), h = pt(), g = !!C(e, re.Text) ? Fe.map(e, (E) => /* @__PURE__ */ Le(E) && E.type === re.Text ? A(E, {
666
- textId: h
667
- }) : E) : /* @__PURE__ */ s.createElement("span", {
668
- id: h
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(), g = pt(), E = !!I(e, se.Text) ? Fe.map(e, (h) => /* @__PURE__ */ Le(h) && h.type === se.Text ? A(h, {
668
+ textId: g
669
+ }) : h) : /* @__PURE__ */ r.createElement("span", {
670
+ id: g
669
671
  }, e);
670
- return /* @__PURE__ */ s.createElement(rt, {
672
+ return /* @__PURE__ */ r.createElement(st, {
671
673
  acceptedFileTypes: [
672
674
  "image/*"
673
675
  ],
674
- onSelect: (E) => {
675
- l(E ? Array.from(E) : []);
676
+ onSelect: (h) => {
677
+ l(h ? Array.from(h) : []);
676
678
  }
677
- }, /* @__PURE__ */ s.createElement(Ie, {
679
+ }, /* @__PURE__ */ r.createElement(ye, {
678
680
  id: f,
679
681
  onBlur: u,
680
682
  onFocus: d,
681
683
  isDisabled: i || c,
682
- "aria-labelledby": `${L} ${h}`,
684
+ "aria-labelledby": `${L} ${g}`,
683
685
  "aria-describedby": m,
684
686
  "data-hook": "signature-upload",
685
687
  className: t,
686
688
  onHoverStart: a,
687
689
  onHoverEnd: n,
688
690
  onFocusChange: o
689
- }, g));
690
- }, Vt = ({ children: e, className: t, ...a }) => {
691
+ }, E));
692
+ }, Zt = ({ children: e, className: t, ...a }) => {
691
693
  const { textId: n } = a;
692
- return /* @__PURE__ */ s.createElement("span", {
694
+ return /* @__PURE__ */ r.createElement("span", {
693
695
  id: n,
694
696
  className: t
695
697
  }, e);
@@ -708,11 +710,11 @@ M.Upload = Ht;
708
710
  H.Canvas = Yt;
709
711
  H.Type = de;
710
712
  H.Upload = Q;
711
- de.Value = kt;
712
- Q.Preview = Zt;
713
- Q.Button = re;
714
- re.Text = Vt;
715
- const Gt = () => {
713
+ de.Value = qt;
714
+ Q.Preview = kt;
715
+ Q.Button = se;
716
+ se.Text = Zt;
717
+ const Vt = () => {
716
718
  const { t: e } = He();
717
719
  return {
718
720
  drawLabel: e("field.signature.mode.draw.label"),
@@ -728,47 +730,47 @@ const Gt = () => {
728
730
  imageAlt: e("field.signature.a11y.state.signed"),
729
731
  uploadLabel: e("field.signature.settings.upload-button.label")
730
732
  };
731
- }, $t = (e) => /* @__PURE__ */ s.createElement("svg", {
733
+ }, Gt = (e) => /* @__PURE__ */ r.createElement("svg", {
732
734
  viewBox: "0 0 24 24",
733
735
  width: 24,
734
736
  height: 24,
735
737
  fill: "currentColor",
736
738
  "aria-hidden": "true",
737
739
  ...e
738
- }, /* @__PURE__ */ s.createElement("path", {
740
+ }, /* @__PURE__ */ r.createElement("path", {
739
741
  fillRule: "evenodd",
740
742
  d: "M13.5,3 C14.327,3 15,3.673 15,4.5 L15,4.5 L15,5 L19,5 L19,6 L18,6 L18,17.5 C18,18.879 16.878,20 15.5,20 L15.5,20 L7.5,20 C6.122,20 5,18.879 5,17.5 L5,17.5 L5,6 L4,6 L4,5 L8,5 L8,4.5 C8,3.673 8.673,3 9.5,3 L9.5,3 Z M17,6 L6,6 L6,17.5 C6,18.327 6.673,19 7.5,19 L7.5,19 L15.5,19 C16.327,19 17,18.327 17,17.5 L17,17.5 L17,6 Z M10,9 L10,16 L9,16 L9,9 L10,9 Z M14,9 L14,16 L13,16 L13,9 L14,9 Z M13.5,4 L9.5,4 C9.224,4 9,4.225 9,4.5 L9,4.5 L9,5 L14,5 L14,4.5 C14,4.225 13.776,4 13.5,4 L13.5,4 Z"
741
- })), zt = (e) => /* @__PURE__ */ s.createElement("svg", {
743
+ })), $t = (e) => /* @__PURE__ */ r.createElement("svg", {
742
744
  viewBox: "0 0 24 24",
743
745
  width: 24,
744
746
  height: 24,
745
747
  fill: "currentColor",
746
748
  "aria-hidden": "true",
747
749
  ...e
748
- }, /* @__PURE__ */ s.createElement("path", {
750
+ }, /* @__PURE__ */ r.createElement("path", {
749
751
  fillRule: "evenodd",
750
752
  d: "M4.9937,15.9971 L4.9937,18.4971 C4.9937,18.7721 5.2177,18.9971 5.4937,18.9971 L5.4937,18.9971 L17.4937,18.9971 C17.7697,18.9971 17.9937,18.7721 17.9937,18.4971 L17.9937,18.4971 L17.9937,15.9971 L18.9937,15.9971 L18.9937,18.4971 C18.9937,19.3241 18.3207,19.9971 17.4937,19.9971 L17.4937,19.9971 L5.4937,19.9971 C4.6657,19.9971 3.9937,19.3241 3.9937,18.4971 L3.9937,18.4971 L3.9937,15.9971 L4.9937,15.9971 Z M11.9933,4 L11.9933,14.078 L15.0293,11.043 L15.7363,11.75 L11.4933,15.992 L7.2513,11.75 L7.9583,11.043 L10.9933,14.078 L10.9933,4 L11.9933,4 Z"
751
- })), Xt = (e) => /* @__PURE__ */ s.createElement("svg", {
753
+ })), zt = (e) => /* @__PURE__ */ r.createElement("svg", {
752
754
  viewBox: "0 0 24 24",
753
755
  width: 24,
754
756
  height: 24,
755
757
  fill: "currentColor",
756
758
  "aria-hidden": "true",
757
759
  ...e
758
- }, /* @__PURE__ */ s.createElement("path", {
760
+ }, /* @__PURE__ */ r.createElement("path", {
759
761
  fillRule: "evenodd",
760
762
  d: "M18.8525,7.543 L17.7515,8.644 L15.3565,6.248 L16.4575,5.147 C16.5555,5.05 16.6835,5.001 16.8105,5.001 C16.9385,5.001 17.0665,5.05 17.1645,5.147 L18.8525,6.835 C19.0475,7.03 19.0475,7.348 18.8525,7.543 L18.8525,7.543 Z M8.1895,18.206 C8.1185,18.276 8.0275,18.324 7.9295,18.344 L5.1275,18.873 L5.6575,16.07 C5.6755,15.972 5.7225,15.882 5.7945,15.811 L14.6495,6.955 L17.0445,9.351 L8.1895,18.206 Z M19.5595,6.128 L17.8715,4.44 C17.2865,3.856 16.3355,3.856 15.7505,4.44 L5.0875,15.103 C4.8735,15.317 4.7295,15.588 4.6745,15.886 L4.0085,19.407 C3.9775,19.569 4.0295,19.736 4.1465,19.854 C4.2415,19.948 4.3685,20 4.4995,20 C4.5305,20 4.5615,19.997 4.5925,19.991 L8.1165,19.326 C8.4145,19.269 8.6855,19.125 8.8965,18.912 L19.5595,8.25 C20.1445,7.665 20.1445,6.713 19.5595,6.128 L19.5595,6.128 Z"
761
- })), qt = (e) => /* @__PURE__ */ s.createElement("svg", {
763
+ })), Xt = (e) => /* @__PURE__ */ r.createElement("svg", {
762
764
  viewBox: "0 0 20 20",
763
765
  width: 24,
764
766
  height: 24,
765
767
  fill: "currentColor",
766
768
  "aria-hidden": "true",
767
769
  ...e
768
- }, /* @__PURE__ */ s.createElement("path", {
770
+ }, /* @__PURE__ */ r.createElement("path", {
769
771
  fillRule: "evenodd",
770
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"
771
- })), jt = "_container_adyrc_1", Jt = "_header_adyrc_7", Kt = "_tabs_adyrc_13", Qt = "_tab_adyrc_13", en = "_tabHover_adyrc_43", tn = "_tabSelected_adyrc_48", nn = "_tabIcon_adyrc_78", an = "_uploadButton_adyrc_85", on = "_uploadButtonHover_adyrc_138", rn = "_uploadButtonLabel_adyrc_155", sn = "_clear_adyrc_159", ln = "_value_adyrc_191", cn = "_box_adyrc_196", un = "_uploadBox_adyrc_197", dn = "_dropZone_adyrc_228", mn = "_dropZoneHover_adyrc_244", pn = "_boxHover_adyrc_278", fn = "_typeInput_adyrc_331", T = {
773
+ })), jt = "_container_1qhus_1", Jt = "_header_1qhus_7", Kt = "_tabs_1qhus_13", Qt = "_tab_1qhus_13", en = "_tabHover_1qhus_43", tn = "_tabSelected_1qhus_48", nn = "_tabIcon_1qhus_78", an = "_uploadButton_1qhus_85", on = "_uploadButtonHover_1qhus_138", sn = "_uploadButtonLabel_1qhus_155", rn = "_clear_1qhus_159", ln = "_value_1qhus_191", cn = "_box_1qhus_196", un = "_uploadBox_1qhus_197", dn = "_dropZone_1qhus_228", mn = "_dropZoneHover_1qhus_244", pn = "_boxHover_1qhus_281", fn = "_typeInput_1qhus_341", T = {
772
774
  container: jt,
773
775
  header: Jt,
774
776
  tabs: Kt,
@@ -778,8 +780,8 @@ const Gt = () => {
778
780
  tabIcon: nn,
779
781
  uploadButton: an,
780
782
  uploadButtonHover: on,
781
- uploadButtonLabel: rn,
782
- clear: sn,
783
+ uploadButtonLabel: sn,
784
+ clear: rn,
783
785
  value: ln,
784
786
  box: cn,
785
787
  uploadBox: un,
@@ -787,25 +789,25 @@ const Gt = () => {
787
789
  dropZoneHover: mn,
788
790
  boxHover: pn,
789
791
  typeInput: fn
790
- }, En = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(xe, {
792
+ }, hn = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(xe, {
791
793
  content: e,
792
794
  locale: t
793
- }), gn = () => {
794
- var Z, te, I, w, U, B;
795
- const e = Gt(), { disabled: t, readOnly: a } = x(), n = !t && !a, o = X({
795
+ }), En = () => {
796
+ var k, te, y, w, U, B;
797
+ const e = Vt(), { disabled: t, readOnly: a } = x(), n = !t && !a, o = z({
796
798
  globalClasses: Je,
797
799
  moduleClasses: {
798
800
  base: T.tab,
799
801
  hover: T.tabHover,
800
802
  selected: T.tabSelected
801
803
  }
802
- }), r = ({ isSelected: D, isHovered: O, isFocused: V }) => o({
804
+ }), s = ({ isSelected: D, isHovered: O, isFocused: Z }) => o({
803
805
  isSelected: D,
804
806
  isHovered: O,
805
- isFocused: V,
807
+ isFocused: Z,
806
808
  isInteractive: n
807
- }), i = X({
808
- globalClasses: ze,
809
+ }), i = z({
810
+ globalClasses: $e,
809
811
  moduleClasses: {
810
812
  base: T.box,
811
813
  hover: T.boxHover
@@ -814,8 +816,8 @@ const Gt = () => {
814
816
  isSelected: !1,
815
817
  isHovered: !1,
816
818
  isInteractive: n
817
- }), u = X({
818
- globalClasses: Xe,
819
+ }), u = z({
820
+ globalClasses: ze,
819
821
  moduleClasses: {
820
822
  base: T.box,
821
823
  hover: T.boxHover
@@ -824,78 +826,78 @@ const Gt = () => {
824
826
  isSelected: !1,
825
827
  isHovered: !1,
826
828
  isInteractive: n
827
- }), d = X({
828
- globalClasses: qe,
829
+ }), d = z({
830
+ globalClasses: Xe,
829
831
  moduleClasses: {
830
832
  base: T.dropZone,
831
833
  hover: T.dropZoneHover
832
834
  }
833
- }), f = X({
835
+ }), f = z({
834
836
  globalClasses: je,
835
837
  moduleClasses: {
836
838
  base: T.uploadButton,
837
839
  hover: T.uploadButtonHover
838
840
  }
839
- }), m = (B = (U = (w = (I = (te = (Z = Te().signatureContainer) == null ? void 0 : Z.elementProps) == null ? void 0 : te.signatureDropZone) == null ? void 0 : I.elementProps) == null ? void 0 : w.signatureUploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: h, ...p } = m ?? {}, g = We(ne.SIGNATURE_CONTAINER, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), E = $(null), [R, k] = q(!1), [P, v] = q(!1), ee = _(() => {
841
+ }), m = (B = (U = (w = (y = (te = (k = Te().signatureContainer) == null ? void 0 : k.elementProps) == null ? void 0 : te.signatureDropZone) == null ? void 0 : y.elementProps) == null ? void 0 : w.signatureUploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: g, ...p } = m ?? {}, E = We(ne.SIGNATURE_CONTAINER, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), h = G(null), [R, q] = X(!1), [P, v] = X(!1), ee = _(() => {
840
842
  var D;
841
- k(!0), (D = E.current) == null || D.runAnimationForward();
842
- }, []), z = _(() => {
843
+ q(!0), (D = h.current) == null || D.runAnimationForward();
844
+ }, []), $ = _(() => {
843
845
  var D;
844
- k(!1), (D = E.current) == null || D.runAnimationBackward();
846
+ q(!1), (D = h.current) == null || D.runAnimationBackward();
845
847
  }, []);
846
- return /* @__PURE__ */ s.createElement(b, null, /* @__PURE__ */ s.createElement(b.Label, {
848
+ return /* @__PURE__ */ r.createElement(b, null, /* @__PURE__ */ r.createElement(b.Label, {
847
849
  className: F(Ye, ae.label)
848
- }, /* @__PURE__ */ s.createElement(b.Label.Required, {
849
- className: F(ke, ae.requiredMark)
850
- })), /* @__PURE__ */ s.createElement(b.Input, {
851
- className: F(Ze, T.container)
852
- }, /* @__PURE__ */ s.createElement(b.Input.Header, {
850
+ }, /* @__PURE__ */ r.createElement(b.Label.Required, {
851
+ className: F(qe, ae.requiredMark)
852
+ })), /* @__PURE__ */ r.createElement(b.Input, {
853
+ className: F(ke, T.container)
854
+ }, /* @__PURE__ */ r.createElement(b.Input.Header, {
853
855
  className: T.header
854
- }, /* @__PURE__ */ s.createElement(b.Input.Header.Tabs, {
856
+ }, /* @__PURE__ */ r.createElement(b.Input.Header.Tabs, {
855
857
  className: T.tabs
856
- }, /* @__PURE__ */ s.createElement(b.Input.Header.Tabs.Draw, {
857
- className: r,
858
+ }, /* @__PURE__ */ r.createElement(b.Input.Header.Tabs.Draw, {
859
+ className: s,
858
860
  "aria-label": e.drawLabel,
859
861
  description: e.drawDescription
860
- }, /* @__PURE__ */ s.createElement(Xt, {
862
+ }, /* @__PURE__ */ r.createElement(zt, {
861
863
  className: T.tabIcon
862
- })), /* @__PURE__ */ s.createElement(b.Input.Header.Tabs.Type, {
863
- className: r,
864
+ })), /* @__PURE__ */ r.createElement(b.Input.Header.Tabs.Type, {
865
+ className: s,
864
866
  "aria-label": e.typeLabel,
865
867
  description: e.typeDescription
866
- }, /* @__PURE__ */ s.createElement(qt, {
868
+ }, /* @__PURE__ */ r.createElement(Xt, {
867
869
  className: T.tabIcon
868
- })), /* @__PURE__ */ s.createElement(b.Input.Header.Tabs.Upload, {
869
- className: r,
870
+ })), /* @__PURE__ */ r.createElement(b.Input.Header.Tabs.Upload, {
871
+ className: s,
870
872
  "aria-label": e.uploadModeLabel,
871
873
  description: e.uploadDescription
872
- }, /* @__PURE__ */ s.createElement(zt, {
874
+ }, /* @__PURE__ */ r.createElement($t, {
873
875
  className: T.tabIcon
874
- }))), /* @__PURE__ */ s.createElement(b.Input.Header.Clear, {
876
+ }))), /* @__PURE__ */ r.createElement(b.Input.Header.Clear, {
875
877
  className: F(pe, T.clear),
876
878
  "aria-label": e.clearLabel
877
- }, /* @__PURE__ */ s.createElement($t, null))), /* @__PURE__ */ s.createElement(b.Input.Value, {
879
+ }, /* @__PURE__ */ r.createElement(Gt, null))), /* @__PURE__ */ r.createElement(b.Input.Value, {
878
880
  className: T.value
879
- }, /* @__PURE__ */ s.createElement(b.Input.Value.Canvas, {
881
+ }, /* @__PURE__ */ r.createElement(b.Input.Value.Canvas, {
880
882
  className: i,
881
883
  emptyLabel: e.emptyLabel,
882
884
  signedLabel: e.signedLabel
883
- }), /* @__PURE__ */ s.createElement(b.Input.Value.Type, {
885
+ }), /* @__PURE__ */ r.createElement(b.Input.Value.Type, {
884
886
  className: u
885
- }, /* @__PURE__ */ s.createElement(b.Input.Value.Type.Value, {
887
+ }, /* @__PURE__ */ r.createElement(b.Input.Value.Type.Value, {
886
888
  className: T.typeInput,
887
889
  placeholder: e.placeholder
888
- })), /* @__PURE__ */ s.createElement(b.Input.Value.Upload, {
889
- className: ({ isHovered: D, isFocused: O, isDropTarget: V }) => F(T.uploadBox, d({
890
+ })), /* @__PURE__ */ r.createElement(b.Input.Value.Upload, {
891
+ className: ({ isHovered: D, isFocused: O, isDropTarget: Z }) => F(T.uploadBox, d({
890
892
  isSelected: !1,
891
- isHovered: D || V,
893
+ isHovered: D || Z,
892
894
  isFocused: O,
893
895
  isInteractive: n
894
896
  }))
895
- }, /* @__PURE__ */ s.createElement(b.Input.Value.Upload.Preview, {
897
+ }, /* @__PURE__ */ r.createElement(b.Input.Value.Upload.Preview, {
896
898
  className: F(T.uploadBox, i),
897
899
  imageAlt: e.imageAlt
898
- }), /* @__PURE__ */ s.createElement(b.Input.Value.Upload.Button, {
900
+ }), /* @__PURE__ */ r.createElement(b.Input.Value.Upload.Button, {
899
901
  className: ({ isHovered: D, isFocused: O }) => f({
900
902
  isSelected: !1,
901
903
  isHovered: D,
@@ -903,22 +905,22 @@ const Gt = () => {
903
905
  isInteractive: n
904
906
  }),
905
907
  onHoverStart: ee,
906
- onHoverEnd: z,
908
+ onHoverEnd: $,
907
909
  onFocusChange: v
908
- }, p.svg ? /* @__PURE__ */ s.createElement(we, {
910
+ }, p.svg ? /* @__PURE__ */ r.createElement(we, {
909
911
  ...p,
910
- ref: E,
911
- className: F(Ve, Ge, h)
912
- }) : null, /* @__PURE__ */ s.createElement(b.Input.Value.Upload.Button.Text, {
913
- className: F(fe.base, T.uploadButtonLabel, g, {
912
+ ref: h,
913
+ className: F(Ze, Ve, g)
914
+ }) : null, /* @__PURE__ */ r.createElement(b.Input.Value.Upload.Button.Text, {
915
+ className: F(fe.base, T.uploadButtonLabel, E, {
914
916
  [fe.hover]: n && (R || P)
915
917
  })
916
- }, e.uploadLabel))))), /* @__PURE__ */ s.createElement(b.Error, {
917
- className: F($e, ae.error)
918
- }, /* @__PURE__ */ s.createElement(mt, null), /* @__PURE__ */ s.createElement(b.Error.Text, null)), /* @__PURE__ */ s.createElement(b.Description, {
918
+ }, e.uploadLabel))))), /* @__PURE__ */ r.createElement(b.Error, {
919
+ className: F(Ge, ae.error)
920
+ }, /* @__PURE__ */ r.createElement(mt, null), /* @__PURE__ */ r.createElement(b.Error.Text, null)), /* @__PURE__ */ r.createElement(b.Description, {
919
921
  className: F(pe, ae.description)
920
- }, En));
921
- }, wn = () => /* @__PURE__ */ s.createElement(gn, null);
922
+ }, hn));
923
+ }, wn = () => /* @__PURE__ */ r.createElement(En, null);
922
924
  export {
923
925
  wn as SignatureRAC
924
926
  };