@wix/form-elements 1.161.0 → 1.163.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 (113) hide show
  1. package/dist/component/{appointment-rac-BubC8I9X.js → appointment-rac-Cskf9hxi.js} +123 -123
  2. package/dist/component/{bookings-address-rac-BbwvVs86.js → bookings-address-rac-C18tuPai.js} +1 -1
  3. package/dist/component/{bookings-email-rac-C2HCkcfa.js → bookings-email-rac-C2GL3cJg.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-Uy7c5EBs.js → bookings-first-name-rac-IEklnchg.js} +1 -1
  5. package/dist/component/{bookings-header-rac-nmwsWRjS.js → bookings-header-rac-iwcrj5Kj.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-BAioQLCg.js → bookings-last-name-rac-CXZfq3Rw.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CO6vOBjG.js → bookings-login-bar-rac-DP0MBFTm.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-Cr16h-_R.js → bookings-phone-rac-uJGk_tzr.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CHLH3jd7.js → bookings-rich-text-rac-BerRAnFy.js} +1 -1
  10. package/dist/component/{calendar.module-CKCBG_Pg.js → calendar.module-BMUyMVja.js} +19 -19
  11. package/dist/component/{checkbox-field-rac-CMwmwFMD.js → checkbox-field-rac-BBftIi_U.js} +6 -6
  12. package/dist/component/{checkbox-group-field-headless-BNs_S-nT.js → checkbox-group-field-headless-BiQ4coe6.js} +27 -27
  13. package/dist/component/{checkbox-group-field-rac-BA60EPAN.js → checkbox-group-field-rac-moHc5Cyu.js} +6 -6
  14. package/dist/component/{checkbox-group-rac-BJZ4Oer9.js → checkbox-group-rac-iuPzxN7i.js} +1 -1
  15. package/dist/component/{checkbox-indicator-module-classes-akWZsZNn.js → checkbox-indicator-module-classes-DUTR4mcg.js} +1 -1
  16. package/dist/component/{checkbox-rac-KsVlI6_V.js → checkbox-rac-BwfHAeFo.js} +1 -1
  17. package/dist/component/{contacts-address-rac-CRYkz87z.js → contacts-address-rac-DuyEL5YR.js} +1 -1
  18. package/dist/component/{contacts-birthdate-rac-BIz-1-ZX.js → contacts-birthdate-rac-Mkoplu3x.js} +1 -1
  19. package/dist/component/{contacts-company-rac-B8G__j6I.js → contacts-company-rac-B-3QghQg.js} +1 -1
  20. package/dist/component/{contacts-email-rac-Dztkvp5i.js → contacts-email-rac-CqooKQl8.js} +1 -1
  21. package/dist/component/{contacts-first-name-rac-CVSEWpLU.js → contacts-first-name-rac-CAOu0GIH.js} +1 -1
  22. package/dist/component/{contacts-last-name-rac-Blz4M5bk.js → contacts-last-name-rac-Cd-wCTC3.js} +1 -1
  23. package/dist/component/{contacts-phone-rac-CPCE5soY.js → contacts-phone-rac-OGE6eaJc.js} +1 -1
  24. package/dist/component/{contacts-position-rac-Dd_kBjqG.js → contacts-position-rac-eSsV63RC.js} +1 -1
  25. package/dist/component/{contacts-subscribe-rac-C6AlsP10.js → contacts-subscribe-rac-19d4uPR-.js} +1 -1
  26. package/dist/component/{contacts-tax-id-rac-CQ1n29zI.js → contacts-tax-id-rac-TtyrAftZ.js} +1 -1
  27. package/dist/component/{date-availability-DDj1j0z5.js → date-availability-CudIaav_.js} +1 -1
  28. package/dist/component/{date-input-field-rac-D5r1n_ah.js → date-input-field-rac-DzMiQLxS.js} +89 -89
  29. package/dist/component/{date-input-rac-Cyi5mU_P.js → date-input-rac-BWfmwcmK.js} +1 -1
  30. package/dist/component/{date-picker-field-rac-CeG391Zo.js → date-picker-field-rac-w4Wf-m0I.js} +54 -54
  31. package/dist/component/{date-picker-rac-Ci9aHgav.js → date-picker-rac-Bejo7tOm.js} +1 -1
  32. package/dist/component/{date-time-input-field-rac-CrbYEbJJ.js → date-time-input-field-rac-D6JPrbGb.js} +80 -80
  33. package/dist/component/{date-time-input-rac-DDJLkqs0.js → date-time-input-rac-CAK5NgC4.js} +1 -1
  34. package/dist/component/{dext-checkbox-group-rac-C3ftVHBA.js → dext-checkbox-group-rac-BqoHMQwI.js} +4 -4
  35. package/dist/component/{dext-checkbox-rac-BGLYWn68.js → dext-checkbox-rac-BEis8bxo.js} +1 -1
  36. package/dist/component/{dext-date-picker-rac-Cy9RlDlt.js → dext-date-picker-rac-DDQTy3BG.js} +1 -1
  37. package/dist/component/{dext-date-time-input-rac-88ZoTd5e.js → dext-date-time-input-rac-Dp3UEXEu.js} +1 -1
  38. package/dist/component/{dext-dropdown-rac-CPxDUuk9.js → dext-dropdown-rac-DisXIXNb.js} +1 -1
  39. package/dist/component/{dext-email-rac-BAvQwDPA.js → dext-email-rac-CBv4umUC.js} +1 -1
  40. package/dist/component/{dext-number-input-rac-D7HYQVKq.js → dext-number-input-rac-0UNC_1Ac.js} +1 -1
  41. package/dist/component/{dext-phone-rac--FhcplSI.js → dext-phone-rac-CQVzz499.js} +1 -1
  42. package/dist/component/{dext-radio-group-rac-DBz8iCKW.js → dext-radio-group-rac-3lhx-xxX.js} +2 -2
  43. package/dist/component/{dext-rating-input-rac-Cv7nThfe.js → dext-rating-input-rac-2fwxV3iY.js} +1 -1
  44. package/dist/component/{dext-tags-rac-CRUUc5dr.js → dext-tags-rac-DCL78ClS.js} +2 -2
  45. package/dist/component/{dext-text-area-rac-DQBQXV1L.js → dext-text-area-rac-WTCWYySB.js} +1 -1
  46. package/dist/component/{dext-text-input-rac-4CpM581y.js → dext-text-input-rac-DMCzSYAI.js} +1 -1
  47. package/dist/component/{dext-url-input-rac-0C1jTEr9.js → dext-url-input-rac-Bzvt5zTa.js} +1 -1
  48. package/dist/component/{donation-rac-Cgt0ZE50.js → donation-rac-B3YHu0bl.js} +98 -98
  49. package/dist/component/{dropdown-field-rac-DlGKR7pZ.js → dropdown-field-rac-y4GPpf0W.js} +4 -4
  50. package/dist/component/{dropdown-rac-CYFW_3x_.js → dropdown-rac-Dj7OnxJL.js} +1 -1
  51. package/dist/component/{ecom-address-rac-CQfQHpXC.js → ecom-address-rac-Bnc60jDw.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-D2v2Upvz.js → ecom-subscription-checkbox-rac-CesTpjav.js} +2 -2
  53. package/dist/component/{email-input-field-rac-CVw25yRo.js → email-input-field-rac-BT2FrAEM.js} +48 -48
  54. package/dist/component/{events-repeater-rac-BCVUcmFj.js → events-repeater-rac-CA2yjEEk.js} +24 -24
  55. package/dist/component/{events-rsvp-rac-DwbqEr8z.js → events-rsvp-rac-wVpVt7-p.js} +4 -4
  56. package/dist/component/{field-error-headless-XnVcMmsL.js → field-error-headless-CX95bMbk.js} +8 -8
  57. package/dist/component/{field-label-headless-BRTLT2Yt.js → field-label-headless-niuFY6Mw.js} +17 -17
  58. package/dist/component/field-rac.module-ts2t4WUO.js +25 -0
  59. package/dist/component/{file-upload-rac-Dkwg9Jk4.js → file-upload-rac-ByO8l8lE.js} +142 -142
  60. package/dist/component/{fixed-payment-rac-ST98xAa2.js → fixed-payment-rac-BNDAdNeQ.js} +18 -18
  61. package/dist/component/{form-BUqSKOvc.js → form-CCQN_rPn.js} +326 -336
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +1 -1
  64. package/dist/component/{header-field-rac-CzNTGYWq.js → header-field-rac-C1RySfYy.js} +6 -6
  65. package/dist/component/{header-rac-DUt6AIAE.js → header-rac-BaFPV0vy.js} +1 -1
  66. package/dist/component/image-choice-rac-BShUj92P.js +155 -0
  67. package/dist/component/{index-cZZeAuuu.js → index-0_YjLphg.js} +2 -2
  68. package/dist/component/{index-CDO22hht.js → index-DHLfweXD.js} +69 -69
  69. package/dist/component/{isObjectLike-cs4bARpC.js → isObjectLike-D7tbAd6O.js} +3 -3
  70. package/dist/component/{multiline-address-field-rac-vcEWhUCV.js → multiline-address-field-rac-CFJKE5vA.js} +41 -41
  71. package/dist/component/{multiline-address-rac-WQaI2eUX.js → multiline-address-rac-BlzCkwEH.js} +1 -1
  72. package/dist/component/{number-input-field-rac-CBUMqATk.js → number-input-field-rac-XqxdqTRV.js} +24 -24
  73. package/dist/component/{number-input-rac-B4j5hyzS.js → number-input-rac-CQTg0QSm.js} +1 -1
  74. package/dist/component/{password-rac-DwLyf45N.js → password-rac-DPE-U2xs.js} +17 -17
  75. package/dist/component/{payment-input-rac-D0Od---y.js → payment-input-rac-oOh04431.js} +32 -32
  76. package/dist/component/{phone-input-field-rac-COlu9IeC.js → phone-input-field-rac-DW2vQhjC.js} +48 -48
  77. package/dist/component/{phone-rac-Dh4RacOF.js → phone-rac-BB9B-Hpl.js} +1 -1
  78. package/dist/component/{product-list-rac-D7zHDE2D.js → product-list-rac-K53VvPJV.js} +26 -26
  79. package/dist/component/{quiz-radio-group-rac-1AaKphJt.js → quiz-radio-group-rac-gikcMV2I.js} +1 -1
  80. package/dist/component/{radio-button-module-classes-VqaP6vpA.js → radio-button-module-classes-CY883yGO.js} +34 -34
  81. package/dist/component/{radio-group-field-rac-Cp3LRN3C.js → radio-group-field-rac-BOEWcfT9.js} +5 -5
  82. package/dist/component/{radio-group-rac-KhmhzYGf.js → radio-group-rac-gKhmLMm3.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-10n6ciCr.js → rating-input-field-rac-83FXIVpy.js} +30 -30
  84. package/dist/component/{rating-input-rac-XZjjY2Gp.js → rating-input-rac-XDwakrtR.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-kMwDoLBa.js → rich-content-rac.module-Bdx8hK3J.js} +5 -5
  86. package/dist/component/{rich-text-field-rac-H5bd8fAt.js → rich-text-field-rac-ksEKBaYG.js} +4 -4
  87. package/dist/component/{rich-text-rac-88GSQR62.js → rich-text-rac-XEFBeQrz.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-B1_Xr_X3.js → service-dropdown-rac-CjFiqV1n.js} +26 -26
  89. package/dist/component/{services-multi-choice-rac-DWp_Llbi.js → services-multi-choice-rac-DNut4K3I.js} +15 -15
  90. package/dist/component/{signature-rac-zN_6KRDp.js → signature-rac-BhWPZpwu.js} +108 -108
  91. package/dist/component/{submit-button-rac-Dv6UarYX.js → submit-button-rac-CWmz_JCl.js} +7 -7
  92. package/dist/component/{tags-field-rac-sVN6MHfJ.js → tags-field-rac-D9P1jVrz.js} +75 -75
  93. package/dist/component/{tags-rac-DhTHs_XN.js → tags-rac-0zEd-xYa.js} +1 -1
  94. package/dist/component/{text-area-field-rac-DrWkww7W.js → text-area-field-rac-D_55oi2b.js} +19 -19
  95. package/dist/component/{text-area-rac-CXXh-ZdY.js → text-area-rac-CpkFyXCH.js} +1 -1
  96. package/dist/component/{text-input-field-rac-C2YiMr-g.js → text-input-field-rac-b7RXb4Ob.js} +4 -4
  97. package/dist/component/{text-input-headless-BJMNbsMY.js → text-input-headless-b1TEpdit.js} +11 -11
  98. package/dist/component/{text-input-rac-CpsPh7FH.js → text-input-rac-CoVcg1S0.js} +1 -1
  99. package/dist/component/{time-input-rac-DG_1KxS4.js → time-input-rac-DE7OyzgQ.js} +20 -20
  100. package/dist/component/url-input-field-rac-_yxWlb3a.js +77 -0
  101. package/dist/component/{url-input-rac-BTStO0NP.js → url-input-rac-wguMUqug.js} +1 -1
  102. package/dist/component/{use-dropdown-option-class-name-DbMMg1ws.js → use-dropdown-option-class-name-DdQ0sFRF.js} +12 -12
  103. package/dist/component/{use-dropdown-trigger-class-name-Yes4kC_0.js → use-dropdown-trigger-class-name-hB8KYv-I.js} +19 -19
  104. package/dist/component/{use-element-state-class-name-DlncY4hk.js → use-element-state-class-name-C2tQgxUX.js} +1 -1
  105. package/dist/component/{use-hoverable-input-class-name-C__zqP5j.js → use-hoverable-input-class-name-C8iuzofb.js} +3 -3
  106. package/dist/component/{use-is-forced-open-dropdown-DnK_MQRO.js → use-is-forced-open-dropdown-DkIrJPsK.js} +4 -4
  107. package/dist/component/{use-service-options-base-DKJe52Vk.js → use-service-options-base-B-xAR-tx.js} +3 -3
  108. package/dist/component/use-text-input-class-name-CK4rZeSM.js +6 -0
  109. package/package.json +2 -2
  110. package/dist/component/field-rac.module-DP0lkkEv.js +0 -25
  111. package/dist/component/image-choice-rac-DuBgrSt2.js +0 -155
  112. package/dist/component/url-input-field-rac-twxRREnl.js +0 -77
  113. package/dist/component/use-text-input-class-name-D9tJTR-b.js +0 -6
@@ -1,24 +1,24 @@
1
- import r, { useRef as V, useContext as Ne, useMemo as be, useCallback as _, useState as X, useEffect as le, Children as Fe, isValidElement as Le } from "react";
1
+ import r, { useRef as V, useContext as Ne, useMemo as be, useCallback as _, useState as q, 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 { b2 as Ue, bu as Te, aG as Be, F as Oe, bw as Pe, bs as Me, bI as Ce, E as me, aw as oe, bA as x, bx as W, bC as Ie, bK as He, bt as We, W as Ye, ac as qe, ad as Ge, G as pe, b as Ze, aj as ke, ak as fe, M as Ve, ae as $e, ah as ze, af as Xe, ai as je, f as ne, ag as Ke } from "./form-BUqSKOvc.js";
5
+ import { b0 as Ue, bs as Te, aE as Be, F as Oe, bu as Pe, bq as Me, bG as Ce, E as me, au as oe, by as x, bv as W, bA as Ie, bI as He, br as We, U as ze, aa as Ye, ab as Ge, G as pe, b as Ze, ah as ke, ai as fe, K as Ve, ac as $e, af as Xe, ad as qe, ag as je, f as ne, ae as Ke } from "./form-CCQN_rPn.js";
6
6
  import { useHover as Je, useFocusRing as Qe, mergeProps as et } from "react-aria";
7
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
9
  import { f as I, a as N } from "./find-child-C60k4CxG.js";
10
- import { D as it, E as ct } from "./field-error-headless-XnVcMmsL.js";
11
- import { L as ut } from "./field-label-headless-BRTLT2Yt.js";
10
+ import { D as it, E as ct } from "./field-error-headless-CX95bMbk.js";
11
+ import { L as ut } from "./field-label-headless-niuFY6Mw.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-DP0lkkEv.js";
15
- import { u as z } from "./use-element-state-class-name-DlncY4hk.js";
16
- const pt = typeof r.useId == "function" ? r.useId : () => V(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) => {
14
+ import { s as ae } from "./field-rac.module-ts2t4WUO.js";
15
+ import { u as X } from "./use-element-state-class-name-C2tQgxUX.js";
16
+ const pt = typeof r.useId == "function" ? r.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)), gt = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, ht = (e) => {
17
17
  var o;
18
18
  const t = (o = Te().signature) == null ? void 0 : o.signatureMode, a = Ne(Be);
19
19
  return be(() => {
20
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;
21
+ return a && !a.parentId && t ? (s = a.fields.filter((l) => Et(l, t)).sort(gt)[0]) == null ? void 0 : s.id : void 0;
22
22
  }, [
23
23
  a,
24
24
  t
@@ -77,11 +77,11 @@ function re(e, t) {
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, g = d - u;
81
- if (L < 0 || g < 0)
80
+ const L = c - i, h = d - u;
81
+ if (L < 0 || h < 0)
82
82
  return null;
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;
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;
85
85
  }
86
86
  function j(e, t, a) {
87
87
  const n = document.createElement("canvas");
@@ -104,11 +104,11 @@ function It(e, t) {
104
104
  }, o.onerror = n, o.src = e;
105
105
  });
106
106
  }
107
- function he(e, t, a, n) {
107
+ function Ee(e, t, a, n) {
108
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
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 Ee(e, t) {
111
+ function ge(e, t) {
112
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
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
  }
@@ -116,7 +116,7 @@ const k = 480, yt = (e) => Se({
116
116
  data: JSON.stringify(e),
117
117
  mimeType: A.POINTS
118
118
  }), ve = (e) => {
119
- const t = Y(e);
119
+ const t = z(e);
120
120
  if ((t == null ? void 0 : t.mimeType) === A.POINTS)
121
121
  try {
122
122
  return JSON.parse(t.data);
@@ -124,7 +124,7 @@ const k = 480, yt = (e) => Se({
124
124
  return null;
125
125
  }
126
126
  return null;
127
- }, ge = 0.8, De = "Madefor";
127
+ }, he = 0.8, De = "Madefor";
128
128
  function Ae(e, t) {
129
129
  const { width: a, actualBoundingBoxAscent: n, actualBoundingBoxDescent: o } = t.measureText(e);
130
130
  return {
@@ -134,7 +134,7 @@ function Ae(e, t) {
134
134
  };
135
135
  }
136
136
  function _t(e, t) {
137
- const a = t.getContext("2d"), n = t.offsetWidth || t.width, s = (t.offsetHeight || t.height) * ge, l = n * ge;
137
+ const a = t.getContext("2d"), n = t.offsetWidth || t.width, s = (t.offsetHeight || t.height) * he, l = n * he;
138
138
  a.font = `${s}px ${De}`;
139
139
  const { width: i, height: c } = Ae(e, a), u = s / (i / l), d = s / (c / s);
140
140
  return Math.min(u, d);
@@ -151,7 +151,7 @@ const Re = /^data:([^;,]+)(?:;([^,]+))?,(.+)$/;
151
151
  function Dt(e) {
152
152
  return Re.test(e);
153
153
  }
154
- function Y(e) {
154
+ function z(e) {
155
155
  if (!e)
156
156
  return;
157
157
  const t = e.match(Re);
@@ -169,7 +169,7 @@ function Se({ data: e, mimeType: t, encoding: a = "text" }) {
169
169
  return `data:${a === "base64" ? `${t};base64` : t},${n}`;
170
170
  }
171
171
  function At(e, t) {
172
- const a = Y(e);
172
+ const a = z(e);
173
173
  if (!a)
174
174
  return;
175
175
  let n = a.data.length;
@@ -184,7 +184,7 @@ function At(e, t) {
184
184
  });
185
185
  }
186
186
  function ie(e, t = "temp") {
187
- const a = Y(e);
187
+ const a = z(e);
188
188
  return {
189
189
  fileId: "temp",
190
190
  displayName: t,
@@ -193,7 +193,7 @@ function ie(e, t = "temp") {
193
193
  };
194
194
  }
195
195
  async function Rt(e, t) {
196
- const a = Y(e);
196
+ const a = z(e);
197
197
  if (!a)
198
198
  return e;
199
199
  const n = a.mimeType;
@@ -213,11 +213,11 @@ async function Rt(e, t) {
213
213
  })), l = j(k * 20, k, Math.max(window.devicePixelRatio || 1, 1));
214
214
  new _e(l).fromData(s);
215
215
  const c = re(l);
216
- return c ? he(c, void 0, k, "white").toDataURL("image/jpeg", 0.7) : null;
216
+ return c ? Ee(c, void 0, k, "white").toDataURL("image/jpeg", 0.7) : null;
217
217
  }
218
218
  if (n != null && n.startsWith("image/")) {
219
219
  const o = await It(e), s = re(o);
220
- return s ? he(s, void 0, k).toDataURL("image/jpeg", 0.7) : null;
220
+ return s ? Ee(s, void 0, k).toDataURL("image/jpeg", 0.7) : null;
221
221
  }
222
222
  return e;
223
223
  }
@@ -227,7 +227,7 @@ async function St(e, t) {
227
227
  return At(a, "signature");
228
228
  }
229
229
  const Nt = ({ value: e, onChange: t, target: a }) => {
230
- const [n, o] = X(e), { isRTL: s } = Me(), l = bt(a), { setFormStatus: i } = Ce(), c = V();
230
+ const [n, o] = q(e), { isRTL: s } = Me(), l = bt(a), { setFormStatus: i } = Ce(), c = V();
231
231
  le(() => {
232
232
  e === me && o(me);
233
233
  }, [
@@ -235,15 +235,15 @@ const Nt = ({ 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 (g) => {
238
+ }, []), d = n == null ? void 0 : n[0], f = d != null && d.url ? z(d.url) : void 0, m = _(async (h) => {
239
239
  try {
240
- const p = (g == null ? void 0 : g.url) ?? "";
240
+ const p = (h == null ? void 0 : h.url) ?? "";
241
241
  if (Dt(p)) {
242
- const E = await St(p, s);
243
- if (E) {
244
- const h = await l(E);
242
+ const g = await St(p, s);
243
+ if (g) {
244
+ const E = await l(g);
245
245
  t([
246
- h
246
+ E
247
247
  ]);
248
248
  } else
249
249
  o(void 0), t(void 0);
@@ -260,13 +260,13 @@ const Nt = ({ value: e, onChange: t, target: a }) => {
260
260
  t
261
261
  ]);
262
262
  return {
263
- handleChange: _((g) => {
264
- const p = (E) => {
265
- c.current = setTimeout(() => m(E), 1500);
263
+ handleChange: _((h) => {
264
+ const p = (g) => {
265
+ c.current = setTimeout(() => m(g), 1500);
266
266
  };
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));
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));
270
270
  }, [
271
271
  m,
272
272
  t,
@@ -282,7 +282,7 @@ const Nt = ({ value: e, onChange: t, target: a }) => {
282
282
  value: t,
283
283
  onChange: a,
284
284
  target: e
285
- }), [i, c] = X(() => {
285
+ }), [i, c] = q(() => {
286
286
  if (s == null)
287
287
  return C.DRAW;
288
288
  switch (l == null ? void 0 : l.mimeType) {
@@ -306,7 +306,7 @@ const Nt = ({ value: e, onChange: t, target: a }) => {
306
306
  n,
307
307
  u,
308
308
  e
309
- ]), m = s != null, L = xt(i, s, l), g = (() => {
309
+ ]), m = s != null, L = xt(i, s, l), h = (() => {
310
310
  switch (i) {
311
311
  case C.DRAW:
312
312
  return R.DRAW;
@@ -324,7 +324,7 @@ const Nt = ({ value: e, onChange: t, target: a }) => {
324
324
  signatureMode: i,
325
325
  clearable: m,
326
326
  signatureValueForView: L,
327
- signatureView: g,
327
+ signatureView: h,
328
328
  handleChange: n,
329
329
  setSignatureMode: c,
330
330
  handleBeforeChange: d,
@@ -339,7 +339,7 @@ function xt(e, t, a) {
339
339
  return t && wt[e](a) ? t : void 0;
340
340
  }
341
341
  const Ut = (e) => {
342
- const t = e.url ? Y(e.url) : void 0;
342
+ const t = e.url ? z(e.url) : void 0;
343
343
  return t ? t.mimeType !== A.POINTS && t.mimeType !== A.TEXT : !0;
344
344
  }, ce = () => {
345
345
  const { hoverProps: e, isHovered: t } = Je({}), { focusProps: a, isFocused: n, isFocusVisible: o } = Qe({
@@ -364,24 +364,24 @@ const Ut = (e) => {
364
364
  [C.TYPE]: R.TYPE,
365
365
  [C.UPLOAD]: R.UPLOAD
366
366
  }, K = ({ children: e, className: t }) => {
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({
367
+ const { id: a, value: n, onChange: o, target: s, readOnly: l } = x(), i = ht(a), { signatureMode: c, setSignatureMode: u, handleClear: d, clearable: f, signatureView: m, signatureValueForView: L, handleChange: h, handleBeforeChange: p } = Ft({
368
368
  target: s,
369
369
  value: n,
370
370
  onChange: o
371
- }), E = I(e, K.Header), h = I(e, K.Value), S = {
371
+ }), g = I(e, K.Header), E = I(e, K.Value), S = {
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: g,
378
+ handleChange: h,
379
379
  handleBeforeChange: p
380
380
  };
381
381
  return /* @__PURE__ */ r.createElement("div", {
382
382
  className: t,
383
383
  "data-hook": "signature-container"
384
- }, !l && N(E, S), N(h, S));
384
+ }, !l && N(g, S), N(E, S));
385
385
  }, J = ({ children: e, className: t, ...a }) => {
386
386
  const { signatureMode: n, setSignatureMode: o, clearable: s, handleClear: l } = a, { uploadEnabled: i } = x(), c = I(e, J.Tabs), u = I(e, J.Clear);
387
387
  return /* @__PURE__ */ r.createElement("div", {
@@ -448,7 +448,7 @@ const Ut = (e) => {
448
448
  className: t
449
449
  }, e);
450
450
  }, H = ({ children: e, className: t, ...a }) => {
451
- const { signatureView: n, signatureValueForView: o, handleChange: s, handleBeforeChange: l } = a, { disabled: i, readOnly: c, onBlur: u, onFocus: d, hasError: f } = x(), m = I(e, H.Canvas), L = I(e, H.Type), g = I(e, H.Upload);
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), h = I(e, H.Upload);
452
452
  return /* @__PURE__ */ r.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 === R.UPLOAD || n === R.IMAGE) && N(g, {
474
+ }), (n === R.UPLOAD || n === R.IMAGE) && N(h, {
475
475
  value: o,
476
476
  onChange: s,
477
477
  onBeforeChange: l,
@@ -480,11 +480,11 @@ const Ut = (e) => {
480
480
  onBlur: u,
481
481
  onFocus: d
482
482
  }));
483
- }, Yt = ({ className: e, emptyLabel: t, signedLabel: a, ...n }) => {
484
- const { value: o, onChange: s, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: f } = x(), { inputId: m, ariaDescribedBy: L } = W(), g = ce(), p = V(), E = V(), h = V(null), S = o == null ? void 0 : o.url, [q, P] = X(!1);
483
+ }, zt = ({ className: e, emptyLabel: t, signedLabel: a, ...n }) => {
484
+ const { value: o, onChange: s, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: f } = x(), { inputId: m, ariaDescribedBy: L } = W(), h = ce(), p = V(), g = V(), E = V(null), S = o == null ? void 0 : o.url, [Y, P] = q(!1);
485
485
  Ie(() => {
486
486
  var y;
487
- (y = E.current) == null || y.focus({
487
+ (y = g.current) == null || y.focus({
488
488
  preventScroll: !0
489
489
  });
490
490
  }, f);
@@ -514,19 +514,19 @@ const Ut = (e) => {
514
514
  ]), te = _((y) => {
515
515
  var U, B, D, O;
516
516
  if (y != null) {
517
- if (E.current = y, p.current = new _e(y, {
517
+ if (g.current = y, p.current = new _e(y, {
518
518
  ...v,
519
519
  penColor: getComputedStyle(y).color || void 0
520
- }), Ee(E.current, p.current), S) {
520
+ }), ge(g.current, p.current), S) {
521
521
  const Z = ve(S);
522
522
  Z && (p.current.fromData(Z), P(!0));
523
523
  } else
524
524
  p.current.clear(), P(!1);
525
- p.current.addEventListener("beginStroke", G), 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);
525
+ p.current.addEventListener("beginStroke", G), p.current.addEventListener("endStroke", $), typeof ResizeObserver < "u" && !E.current && (E.current = new ResizeObserver(() => {
526
+ g.current && ge(g.current, p == null ? void 0 : p.current);
527
+ })), (U = E.current) == null || U.observe(y);
528
528
  } else
529
- (B = h.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", $), (O = p.current) == null || O.removeEventListener("beginStroke", G);
529
+ (B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", $), (O = p.current) == null || O.removeEventListener("beginStroke", G);
530
530
  }, [
531
531
  v,
532
532
  S,
@@ -540,7 +540,7 @@ const Ut = (e) => {
540
540
  c
541
541
  ]), /* @__PURE__ */ r.createElement("div", {
542
542
  className: e,
543
- ...g
543
+ ...h
544
544
  }, /* @__PURE__ */ r.createElement("canvas", {
545
545
  ref: te,
546
546
  id: m,
@@ -550,11 +550,11 @@ const Ut = (e) => {
550
550
  onFocus: d,
551
551
  onBlur: u,
552
552
  role: "img",
553
- "aria-label": q ? a : t,
553
+ "aria-label": Y ? a : t,
554
554
  "aria-describedby": L
555
555
  }));
556
556
  }, de = ({ children: e, className: t, ...a }) => {
557
- const { value: n, onChange: o, onBeforeChange: s, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: f, hasError: m } = x(), { inputId: L, ariaDescribedBy: g, labelId: p } = W(), E = ce(), h = n != null && n.url ? Y(n.url) : void 0, { data: S = "" } = h ?? {
557
+ const { value: n, onChange: o, onBeforeChange: s, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: f, hasError: m } = x(), { inputId: L, ariaDescribedBy: h, labelId: p } = W(), g = ce(), E = n != null && n.url ? z(n.url) : void 0, { data: S = "" } = E ?? {
558
558
  data: ""
559
559
  };
560
560
  Ie(() => {
@@ -571,7 +571,7 @@ const Ut = (e) => {
571
571
  n,
572
572
  L
573
573
  ]);
574
- const q = _((v) => {
574
+ const Y = _((v) => {
575
575
  s == null || s(), v.trim() ? o(ie(Se({
576
576
  data: v,
577
577
  mimeType: A.TEXT
@@ -583,7 +583,7 @@ const Ut = (e) => {
583
583
  return /* @__PURE__ */ r.createElement(nt, {
584
584
  "aria-labelledby": p,
585
585
  value: S,
586
- onChange: q,
586
+ onChange: Y,
587
587
  onBlur: c,
588
588
  onFocus: u,
589
589
  isDisabled: l,
@@ -593,12 +593,12 @@ const Ut = (e) => {
593
593
  validationBehavior: "aria"
594
594
  }, /* @__PURE__ */ r.createElement("div", {
595
595
  className: t,
596
- ...E
596
+ ...g
597
597
  }, N(P, {
598
598
  inputId: L,
599
- ariaDescribedBy: g
599
+ ariaDescribedBy: h
600
600
  })));
601
- }, qt = ({ className: e, placeholder: t, ...a }) => {
601
+ }, Yt = ({ className: e, placeholder: t, ...a }) => {
602
602
  const { inputId: n, ariaDescribedBy: o } = a;
603
603
  return /* @__PURE__ */ r.createElement(ot, {
604
604
  id: n,
@@ -609,15 +609,15 @@ const Ut = (e) => {
609
609
  });
610
610
  }, Q = ({ children: e, className: t, ...a }) => {
611
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
+ const g = p[0];
613
+ if (!g) {
614
614
  o(null);
615
615
  return;
616
616
  }
617
- const h = new FileReader();
618
- h.onload = () => {
619
- o(ie(h.result, E.name));
620
- }, h.readAsDataURL(E);
617
+ const E = new FileReader();
618
+ E.onload = () => {
619
+ o(ie(E.result, g.name));
620
+ }, E.readAsDataURL(g);
621
621
  }, [
622
622
  o
623
623
  ]);
@@ -630,12 +630,12 @@ const Ut = (e) => {
630
630
  "aria-describedby": d,
631
631
  "data-hook": "signature-upload-drop-zone",
632
632
  onDrop: async (p) => {
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) {
633
+ for (const g of p.items)
634
+ if (g.kind === "file" && g.type.startsWith("image/")) {
635
+ const E = await g.getFile();
636
+ if (E) {
637
637
  L([
638
- h
638
+ E
639
639
  ]);
640
640
  return;
641
641
  }
@@ -664,31 +664,31 @@ const Ut = (e) => {
664
664
  "data-hook": "signature-image"
665
665
  }, n.displayName || t));
666
666
  }, se = ({ children: e, className: t, onHoverStart: a, onHoverEnd: n, onFocusChange: o, ...s }) => {
667
- const { onSelectFiles: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = s, { inputId: f, ariaDescribedBy: m, labelId: L } = W(), g = pt(), E = !!I(e, se.Text) ? Fe.map(e, (h) => /* @__PURE__ */ Le(h) && h.type === se.Text ? N(h, {
668
- textId: g
669
- }) : h) : /* @__PURE__ */ r.createElement("span", {
670
- id: g
667
+ const { onSelectFiles: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = s, { inputId: f, ariaDescribedBy: m, labelId: L } = W(), h = pt(), g = !!I(e, se.Text) ? Fe.map(e, (E) => /* @__PURE__ */ Le(E) && E.type === se.Text ? N(E, {
668
+ textId: h
669
+ }) : E) : /* @__PURE__ */ r.createElement("span", {
670
+ id: h
671
671
  }, e);
672
672
  return /* @__PURE__ */ r.createElement(st, {
673
673
  acceptedFileTypes: [
674
674
  "image/*"
675
675
  ],
676
- onSelect: (h) => {
677
- l(h ? Array.from(h) : []);
676
+ onSelect: (E) => {
677
+ l(E ? Array.from(E) : []);
678
678
  }
679
679
  }, /* @__PURE__ */ r.createElement(ye, {
680
680
  id: f,
681
681
  onBlur: u,
682
682
  onFocus: d,
683
683
  isDisabled: i || c,
684
- "aria-labelledby": `${L} ${g}`,
684
+ "aria-labelledby": `${L} ${h}`,
685
685
  "aria-describedby": m,
686
686
  "data-hook": "signature-upload",
687
687
  className: t,
688
688
  onHoverStart: a,
689
689
  onHoverEnd: n,
690
690
  onFocusChange: o
691
- }, E));
691
+ }, g));
692
692
  }, Zt = ({ children: e, className: t, ...a }) => {
693
693
  const { textId: n } = a;
694
694
  return /* @__PURE__ */ r.createElement("span", {
@@ -707,10 +707,10 @@ J.Clear = Wt;
707
707
  M.Draw = Pt;
708
708
  M.Type = Mt;
709
709
  M.Upload = Ht;
710
- H.Canvas = Yt;
710
+ H.Canvas = zt;
711
711
  H.Type = de;
712
712
  H.Upload = Q;
713
- de.Value = qt;
713
+ de.Value = Yt;
714
714
  Q.Preview = Gt;
715
715
  Q.Button = se;
716
716
  se.Text = Zt;
@@ -750,7 +750,7 @@ const kt = () => {
750
750
  }, /* @__PURE__ */ r.createElement("path", {
751
751
  fillRule: "evenodd",
752
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"
753
- })), zt = (e) => /* @__PURE__ */ r.createElement("svg", {
753
+ })), Xt = (e) => /* @__PURE__ */ r.createElement("svg", {
754
754
  viewBox: "0 0 24 24",
755
755
  width: 24,
756
756
  height: 24,
@@ -760,7 +760,7 @@ const kt = () => {
760
760
  }, /* @__PURE__ */ r.createElement("path", {
761
761
  fillRule: "evenodd",
762
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"
763
- })), Xt = (e) => /* @__PURE__ */ r.createElement("svg", {
763
+ })), qt = (e) => /* @__PURE__ */ r.createElement("svg", {
764
764
  viewBox: "0 0 20 20",
765
765
  width: 24,
766
766
  height: 24,
@@ -770,7 +770,7 @@ const kt = () => {
770
770
  }, /* @__PURE__ */ r.createElement("path", {
771
771
  fillRule: "evenodd",
772
772
  d: "M12,4 L12,5 L8,5 L8,16 L7,16 L7,5 L3,5 L3,4 L12,4 Z M18,8 L18,9 L15,9 L15,16 L14,16 L14,9 L11,9 L11,8 L18,8 Z"
773
- })), jt = "_container_1qhus_1", Kt = "_header_1qhus_7", Jt = "_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 = {
773
+ })), jt = "_container_63unz_1", Kt = "_header_63unz_7", Jt = "_tabs_63unz_13", Qt = "_tab_63unz_13", en = "_tabHover_63unz_43", tn = "_tabSelected_63unz_48", nn = "_tabIcon_63unz_78", an = "_uploadButton_63unz_85", on = "_uploadButtonHover_63unz_138", sn = "_uploadButtonLabel_63unz_155", rn = "_clear_63unz_159", ln = "_value_63unz_191", cn = "_box_63unz_196", un = "_uploadBox_63unz_197", dn = "_dropZone_63unz_228", mn = "_dropZoneHover_63unz_243", pn = "_boxHover_63unz_280", fn = "_typeInput_63unz_335", T = {
774
774
  container: jt,
775
775
  header: Kt,
776
776
  tabs: Jt,
@@ -789,12 +789,12 @@ const kt = () => {
789
789
  dropZoneHover: mn,
790
790
  boxHover: pn,
791
791
  typeInput: fn
792
- }, hn = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(xe, {
792
+ }, En = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(xe, {
793
793
  content: e,
794
794
  locale: t
795
- }), En = () => {
795
+ }), gn = () => {
796
796
  var G, te, y, w, U, B;
797
- const e = kt(), { disabled: t, readOnly: a } = x(), n = !t && !a, o = z({
797
+ const e = kt(), { disabled: t, readOnly: a } = x(), n = !t && !a, o = X({
798
798
  globalClasses: Ke,
799
799
  moduleClasses: {
800
800
  base: T.tab,
@@ -806,7 +806,7 @@ const kt = () => {
806
806
  isHovered: O,
807
807
  isFocused: Z,
808
808
  isInteractive: n
809
- }), i = z({
809
+ }), i = X({
810
810
  globalClasses: $e,
811
811
  moduleClasses: {
812
812
  base: T.box,
@@ -816,8 +816,8 @@ const kt = () => {
816
816
  isSelected: !1,
817
817
  isHovered: !1,
818
818
  isInteractive: n
819
- }), u = z({
820
- globalClasses: ze,
819
+ }), u = X({
820
+ globalClasses: Xe,
821
821
  moduleClasses: {
822
822
  base: T.box,
823
823
  hover: T.boxHover
@@ -826,29 +826,29 @@ const kt = () => {
826
826
  isSelected: !1,
827
827
  isHovered: !1,
828
828
  isInteractive: n
829
- }), d = z({
830
- globalClasses: Xe,
829
+ }), d = X({
830
+ globalClasses: qe,
831
831
  moduleClasses: {
832
832
  base: T.dropZone,
833
833
  hover: T.dropZoneHover
834
834
  }
835
- }), f = z({
835
+ }), f = X({
836
836
  globalClasses: je,
837
837
  moduleClasses: {
838
838
  base: T.uploadButton,
839
839
  hover: T.uploadButtonHover
840
840
  }
841
- }), m = (B = (U = (w = (y = (te = (G = Te().signature) == null ? void 0 : G.elementProps) == null ? void 0 : te.dropZone) == null ? void 0 : y.elementProps) == null ? void 0 : w.uploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: g, ...p } = m ?? {}, E = We(ne.SIGNATURE, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), h = V(null), [S, q] = X(!1), [P, v] = X(!1), ee = _(() => {
841
+ }), m = (B = (U = (w = (y = (te = (G = Te().signature) == null ? void 0 : G.elementProps) == null ? void 0 : te.dropZone) == null ? void 0 : y.elementProps) == null ? void 0 : w.uploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: h, ...p } = m ?? {}, g = We(ne.SIGNATURE, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), E = V(null), [S, Y] = q(!1), [P, v] = q(!1), ee = _(() => {
842
842
  var D;
843
- q(!0), (D = h.current) == null || D.runAnimationForward();
843
+ Y(!0), (D = E.current) == null || D.runAnimationForward();
844
844
  }, []), $ = _(() => {
845
845
  var D;
846
- q(!1), (D = h.current) == null || D.runAnimationBackward();
846
+ Y(!1), (D = E.current) == null || D.runAnimationBackward();
847
847
  }, []);
848
848
  return /* @__PURE__ */ r.createElement(b, null, /* @__PURE__ */ r.createElement(b.Label, {
849
- className: F(Ye, ae.label)
849
+ className: F(ze, ae.label)
850
850
  }, /* @__PURE__ */ r.createElement(b.Label.Required, {
851
- className: F(qe, ae.requiredMark)
851
+ className: F(Ye, ae.requiredMark)
852
852
  })), /* @__PURE__ */ r.createElement(b.Input, {
853
853
  className: F(Ge, T.container)
854
854
  }, /* @__PURE__ */ r.createElement(b.Input.Header, {
@@ -859,13 +859,13 @@ const kt = () => {
859
859
  className: s,
860
860
  "aria-label": e.drawLabel,
861
861
  description: e.drawDescription
862
- }, /* @__PURE__ */ r.createElement(zt, {
862
+ }, /* @__PURE__ */ r.createElement(Xt, {
863
863
  className: T.tabIcon
864
864
  })), /* @__PURE__ */ r.createElement(b.Input.Header.Tabs.Type, {
865
865
  className: s,
866
866
  "aria-label": e.typeLabel,
867
867
  description: e.typeDescription
868
- }, /* @__PURE__ */ r.createElement(Xt, {
868
+ }, /* @__PURE__ */ r.createElement(qt, {
869
869
  className: T.tabIcon
870
870
  })), /* @__PURE__ */ r.createElement(b.Input.Header.Tabs.Upload, {
871
871
  className: s,
@@ -909,18 +909,18 @@ const kt = () => {
909
909
  onFocusChange: v
910
910
  }, p.svg ? /* @__PURE__ */ r.createElement(we, {
911
911
  ...p,
912
- ref: h,
913
- className: F(Ze, ke, g)
912
+ ref: E,
913
+ className: F(Ze, ke, h)
914
914
  }) : null, /* @__PURE__ */ r.createElement(b.Input.Value.Upload.Button.Text, {
915
- className: F(fe.base, T.uploadButtonLabel, E, {
915
+ className: F(fe.base, T.uploadButtonLabel, g, {
916
916
  [fe.hover]: n && (S || P)
917
917
  })
918
918
  }, e.uploadLabel))))), /* @__PURE__ */ r.createElement(b.Error, {
919
919
  className: F(Ve, ae.error)
920
920
  }, /* @__PURE__ */ r.createElement(mt, null), /* @__PURE__ */ r.createElement(b.Error.Text, null)), /* @__PURE__ */ r.createElement(b.Description, {
921
921
  className: F(pe, ae.description)
922
- }, hn));
923
- }, wn = () => /* @__PURE__ */ r.createElement(En, null);
922
+ }, En));
923
+ }, wn = () => /* @__PURE__ */ r.createElement(gn, null);
924
924
  export {
925
925
  wn as SignatureRAC
926
926
  };
@@ -1,10 +1,10 @@
1
- import t, { useRef as V, useCallback as y } from "react";
1
+ import t, { useRef as V, useCallback as z } from "react";
2
2
  import X from "@wix/editor-react-components/AnimatedIcon";
3
3
  import p from "classnames";
4
- import { bA as B, bu as q, au as $, at as j, ar as G, aq as J, az as K, ay as Q, as as Y, b as Z, ap as tt, ax as et } from "./form-BUqSKOvc.js";
4
+ import { by as B, bs as q, as as $, ar as j, ap as G, ao as J, ax as K, aw as Q, aq as Y, b as Z, an as tt, av as et } from "./form-CCQN_rPn.js";
5
5
  import { ProgressBar as nt, Button as w } from "react-aria-components";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { u as x } from "./use-element-state-class-name-DlncY4hk.js";
7
+ import { u as x } from "./use-element-state-class-name-C2tQgxUX.js";
8
8
  function ot(e) {
9
9
  const s = "calc(50% - 2px)";
10
10
  return /* @__PURE__ */ t.createElement(nt, {
@@ -131,10 +131,10 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
131
131
  buttonHover: vt,
132
132
  progress: St
133
133
  }, P = () => {
134
- const e = V(null), o = y(() => {
134
+ const e = V(null), o = z(() => {
135
135
  var n;
136
136
  return (n = e.current) == null ? void 0 : n.runAnimationForward();
137
- }, []), s = y(() => {
137
+ }, []), s = z(() => {
138
138
  var n;
139
139
  return (n = e.current) == null ? void 0 : n.runAnimationBackward();
140
140
  }, []);
@@ -151,8 +151,8 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
151
151
  className: p(Z, s, a)
152
152
  }) : null;
153
153
  }, Et = () => {
154
- var A, F, h, U, M, z;
155
- const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = B(), v = !s && !(a || n), c = q(), m = (F = (A = c.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : F.icon, C = (U = (h = c.nextButton) == null ? void 0 : h.elementProps) == null ? void 0 : U.icon, f = (z = (M = c.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : z.icon, I = x({
154
+ var A, F, h, U, M, y;
155
+ const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = B(), v = !s && !(a || n), c = q(), m = (F = (A = c.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : F.icon, C = (U = (h = c.nextButton) == null ? void 0 : h.elementProps) == null ? void 0 : U.icon, f = (y = (M = c.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : y.icon, I = x({
156
156
  globalClasses: Y,
157
157
  moduleClasses: {
158
158
  base: p(u.navigationButton, u.previousButton),