@wix/form-elements 1.107.0 → 1.109.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 (115) hide show
  1. package/dist/component/{appointment-rac-D2F4vgf1.js → appointment-rac-C9-XwsPI.js} +295 -296
  2. package/dist/component/{bookings-address-rac-_5S8J8_i.js → bookings-address-rac-jrrCPWjw.js} +1 -1
  3. package/dist/component/{bookings-email-rac-6vmDR9nS.js → bookings-email-rac-J9-RMEbf.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DtTJ4T2K.js → bookings-first-name-rac-CH7-6JmA.js} +1 -1
  5. package/dist/component/{bookings-header-rac-B3dsEwzR.js → bookings-header-rac-C2JV-ciN.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-B3idkbi8.js → bookings-last-name-rac-0a9CwiaV.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CrRBcQwT.js → bookings-login-bar-rac-4Mb7MQYe.js} +21 -22
  8. package/dist/component/{bookings-phone-rac-BE0yWNnj.js → bookings-phone-rac-vYx5r5jn.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CYo1l0-6.js → bookings-rich-text-rac-CWg1FgUp.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-boTtXVEt.js → checkbox-field-rac-Dwx1leKA.js} +27 -28
  11. package/dist/component/{checkbox-group-field-headless-DnkUvDm8.js → checkbox-group-field-headless-AFWgXzx_.js} +41 -41
  12. package/dist/component/{checkbox-group-field-rac-DrDTgHMg.js → checkbox-group-field-rac-CO8kmWJp.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-v3ozUBpo.js → checkbox-group-rac-_79HsFF4.js} +1 -1
  14. package/dist/component/{checkbox-rac-YSLE-RnG.js → checkbox-rac-B_tbMfjo.js} +1 -1
  15. package/dist/component/{contacts-address-rac-C653yaHZ.js → contacts-address-rac-SJ5Tvzd0.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BeAQ6shx.js → contacts-birthdate-rac-BU1L3sbW.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BglKOoTG.js → contacts-company-rac-Y4B8KhDa.js} +1 -1
  18. package/dist/component/{contacts-email-rac-D6m7ynfc.js → contacts-email-rac-CQW84o7C.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-Dgxn0tUJ.js → contacts-first-name-rac-Dtai-wtH.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-1UyIuRKH.js → contacts-last-name-rac--ixuu3ri.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BQ77BlW4.js → contacts-phone-rac-HOHfSvT-.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BUDUv7lv.js → contacts-position-rac-BPMkh6yf.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DdtA0qKW.js → contacts-subscribe-rac-D0_RMwJb.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-WUaKcNl0.js → contacts-tax-id-rac-CZJmMiVf.js} +1 -1
  25. package/dist/component/{date-availability-XjBFq8jt.js → date-availability-C4dDHvuc.js} +1 -1
  26. package/dist/component/{date-input-field-rac-aY2zuuKs.js → date-input-field-rac-8oERZcqh.js} +79 -80
  27. package/dist/component/{date-input-rac-DRiP2_97.js → date-input-rac-CYRojmW6.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CIspU7No.js} +87 -88
  29. package/dist/component/{date-picker-rac-DHHUh8vn.js → date-picker-rac-D0Y0zf2J.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DP_StuLr.js → date-time-input-field-rac-0daWK65I.js} +73 -74
  31. package/dist/component/{date-time-input-rac-B11KIxsf.js → date-time-input-rac-BemKPk1j.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BpFNn56W.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-BIlAqEvV.js → dext-checkbox-rac-DOISgubJ.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CHBXNrZi.js → dext-date-picker-rac-CNGhFg_g.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BYtliKry.js → dext-date-time-input-rac-BuUIvJRr.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-C2VPSFV5.js → dext-dropdown-rac-DtND-Dbo.js} +1 -1
  37. package/dist/component/{dext-email-rac-Fnb0Ggcs.js → dext-email-rac-CmjLFOi8.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DopfSyFi.js → dext-number-input-rac-DHTNg1dh.js} +1 -1
  39. package/dist/component/{dext-phone-rac-Rn4i_2rc.js → dext-phone-rac-BrrU5qH_.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-bNaskJpK.js → dext-radio-group-rac-CD3MGfAM.js} +4 -4
  41. package/dist/component/{dext-rating-input-rac-DL6ZZd7d.js → dext-rating-input-rac-BETGJZmt.js} +1 -1
  42. package/dist/component/{dext-tags-rac-TsUPoImO.js → dext-tags-rac-Coo9jN-T.js} +4 -4
  43. package/dist/component/{dext-text-area-rac-BIuY7LTd.js → dext-text-area-rac-CNWjqhUT.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-CSYPW0Qi.js → dext-text-input-rac-CCWyDexv.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-_g0lqGfW.js → dext-url-input-rac-Dtakkgmk.js} +1 -1
  46. package/dist/component/{donation-rac-BYKFtsyR.js → donation-rac-BboGm_k_.js} +101 -102
  47. package/dist/component/{dropdown-field-headless-CBaqlNZi.js → dropdown-field-headless-BTMJGUwY.js} +16 -16
  48. package/dist/component/{dropdown-field-rac-CCAGSMm3.js → dropdown-field-rac-CDRV8ckB.js} +5 -5
  49. package/dist/component/{dropdown-rac-C_EqUsZ1.js → dropdown-rac-kEuU2pXW.js} +1 -1
  50. package/dist/component/{ecom-address-rac-Bw9eH0iF.js → ecom-address-rac-BgKL9ElH.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-B5PVOO2a.js → ecom-subscription-checkbox-rac-CDhJsNPD.js} +6 -6
  52. package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DdOd86NX.js} +54 -55
  53. package/dist/component/{events-repeater-rac--4OnUxWE.js → events-repeater-rac-_VJ30dpB.js} +62 -63
  54. package/dist/component/{events-rsvp-rac-CczCoo3T.js → events-rsvp-rac-DA-261bq.js} +5 -5
  55. package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-CovyN0GI.js} +8 -8
  56. package/dist/component/{field-label-headless-Du4ckIVy.js → field-label-headless-DVvX2QaH.js} +11 -11
  57. package/dist/component/file-upload-rac-bhEPUJPs.js +561 -0
  58. package/dist/component/fixed-payment-rac-DmI6MeKc.js +61 -0
  59. package/dist/component/{form-DQauhsho.js → form-BTDgyr54.js} +3430 -3244
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +3 -3
  62. package/dist/component/header-field-rac-C0rUjmo0.js +24 -0
  63. package/dist/component/{header-rac-CR9T3Pnu.js → header-rac-DRMO22PV.js} +1 -1
  64. package/dist/component/{image-choice-rac-DJ_8v467.js → image-choice-rac-CQDQ7AlD.js} +32 -33
  65. package/dist/component/{index-CcUTIUWM.js → index-B9QlosT1.js} +12 -12
  66. package/dist/component/{index-BB7d_9Dv.js → index-CNWT9t6j.js} +66 -66
  67. package/dist/component/{isObjectLike-xvPa_08X.js → isObjectLike-c0td2WCR.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-CyaFOloE.js → multiline-address-field-rac-D8bVxRsD.js} +124 -125
  69. package/dist/component/{multiline-address-rac-CaHGUN_f.js → multiline-address-rac-g-6RB7o8.js} +1 -1
  70. package/dist/component/number-input-field-rac-BaOwQ5Ya.js +92 -0
  71. package/dist/component/{number-input-rac-DMKX6nhk.js → number-input-rac-BXv8-Pnj.js} +1 -1
  72. package/dist/component/{password-rac-0RUXPAn6.js → password-rac-BB9XeSSZ.js} +36 -37
  73. package/dist/component/{payment-input-rac-CHSZ3-Lt.js → payment-input-rac-DwnSV9rM.js} +41 -42
  74. package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-CC3C4ToW.js} +56 -57
  75. package/dist/component/{phone-rac-BLRnAPXP.js → phone-rac-DpNhSaE0.js} +1 -1
  76. package/dist/component/{product-list-rac-BkF5tDwt.js → product-list-rac-BAESk3B6.js} +74 -75
  77. package/dist/component/{quiz-radio-group-rac-32cCMTUS.js → quiz-radio-group-rac-PS6AZr63.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-IOulhuSH.js → radio-button-module-classes-CXcn5unY.js} +30 -30
  79. package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-pt8xbDfS.js} +6 -6
  80. package/dist/component/{radio-group-rac-BiW-9Abj.js → radio-group-rac-DkzkM6N_.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-DDHBkR4x.js} +43 -44
  82. package/dist/component/{rating-input-rac-BpwlNvzQ.js → rating-input-rac-CcsDmLus.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-B2vsO6fj.js} +4 -4
  84. package/dist/component/rich-text-field-rac-CvKht2eC.js +21 -0
  85. package/dist/component/{rich-text-rac-VfeZxS27.js → rich-text-rac-CRpSffQB.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-BOpdXNjG.js} +36 -37
  87. package/dist/component/{services-multi-choice-rac-CCqdF_7P.js → services-multi-choice-rac-t0wdSt_T.js} +20 -21
  88. package/dist/component/{signature-rac-DOyMo3u0.js → signature-rac-2LsIYYIX.js} +141 -142
  89. package/dist/component/{submit-button-rac-C2uA5DeE.js → submit-button-rac-BbE8dS35.js} +26 -27
  90. package/dist/component/{tags-field-rac-C_uIw2by.js → tags-field-rac-BnsBxReU.js} +44 -45
  91. package/dist/component/{tags-rac-1pQ-fpe_.js → tags-rac-BFH4RINA.js} +1 -1
  92. package/dist/component/{text-area-field-rac-DqlOkm7e.js → text-area-field-rac-Ag7_gniM.js} +28 -29
  93. package/dist/component/{text-area-rac-DPdkrFcH.js → text-area-rac-ByUX0p2O.js} +1 -1
  94. package/dist/component/{text-input-field-rac-CmXm6r1w.js → text-input-field-rac-D3MZ8teu.js} +3 -3
  95. package/dist/component/{text-input-headless-DD__2DFf.js → text-input-headless-CwONErsY.js} +12 -12
  96. package/dist/component/{text-input-rac-DRHyQEH7.js → text-input-rac-DLXdAhkK.js} +1 -1
  97. package/dist/component/{time-input-rac-BJPIymQY.js → time-input-rac-Bs55lTON.js} +33 -34
  98. package/dist/component/url-input-field-rac-FG-bCh-E.js +74 -0
  99. package/dist/component/{url-input-rac-C0ChQUzq.js → url-input-rac-BOKuCMTe.js} +1 -1
  100. package/dist/component/use-dropdown-option-class-name-DjV7FW5y.js +21 -0
  101. package/dist/component/{use-element-state-class-name-BatTc2bw.js → use-element-state-class-name-DB1AzkvF.js} +1 -1
  102. package/dist/component/{use-is-forced-open-dropdown-B0jiPTmS.js → use-is-forced-open-dropdown-ifUIpuwL.js} +7 -7
  103. package/dist/component/{use-service-options-base-oeE7xszw.js → use-service-options-base-B11cq0HH.js} +7 -7
  104. package/dist/component/use-text-input-class-name-va1PzWFg.js +23 -0
  105. package/dist/form.d.ts +21 -1
  106. package/package.json +2 -2
  107. package/dist/component/file-upload-rac-DbdkUbWM.js +0 -484
  108. package/dist/component/fixed-payment-rac-f9-01iDN.js +0 -62
  109. package/dist/component/form-element-classes-bLFmhsKw.js +0 -137
  110. package/dist/component/header-field-rac-DamDk5BR.js +0 -25
  111. package/dist/component/number-input-field-rac-BuYUzDWV.js +0 -93
  112. package/dist/component/rich-text-field-rac-C_qE7Ykg.js +0 -22
  113. package/dist/component/url-input-field-rac-CFDYkZ6I.js +0 -75
  114. package/dist/component/use-dropdown-option-class-name-3L5ZmNLK.js +0 -21
  115. package/dist/component/use-text-input-class-name-LQ5S-NLh.js +0 -24
@@ -1,28 +1,27 @@
1
- import s, { useRef as W, useCallback as I, useState as Q, useEffect as K, useMemo as De, isValidElement as we } from "react";
2
- import { RicosViewer as Re } from "@wix/ricos/viewer";
1
+ import s, { useRef as W, useCallback as C, useState as K, useEffect as Q, useMemo as De, isValidElement as Re } from "react";
2
+ import { RicosViewer as we } from "@wix/ricos/viewer";
3
3
  import v from "classnames";
4
- import { useHover as ve, useFocusRing as xe, mergeProps as Se } from "react-aria";
5
- import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as _e, RadioField as Pe, RadioButton as Ne } from "react-aria-components";
4
+ import { useHover as ve, useFocusRing as Se, mergeProps as xe } from "react-aria";
5
+ import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as _e, RadioField as Ne, RadioButton as Pe } from "react-aria-components";
6
6
  import he from "signature_pad";
7
- import { G as Ue, ag as Oe, ac as Be, as as ge, E as ce, e as G, ak as A, ah as H, am as Ee, au as Me } from "./form-DQauhsho.js";
8
- import { f as T, a as F } from "./find-child-C60k4CxG.js";
9
- import { D as We, E as He } from "./field-error-headless-D3-1L5sf.js";
10
- import { L as Ye } from "./field-label-headless-Du4ckIVy.js";
11
- import { D as ke } from "./data-hooks-Dkw1pbRj.js";
12
- import { E as $e } from "./error-icon-hZxQ6DEy.js";
7
+ import { aD as Ue, b5 as Oe, b1 as Be, bh as ge, E as ce, a6 as G, b9 as A, b6 as H, bb as Ee, bj as Me, I as ue, U as We, H as B, W as He, v as Ye, p as ke } from "./form-BTDgyr54.js";
8
+ import { f as I, a as F } from "./find-child-C60k4CxG.js";
9
+ import { D as $e, E as Ve } from "./field-error-headless-CovyN0GI.js";
10
+ import { L as ze } from "./field-label-headless-DVvX2QaH.js";
11
+ import { D as Ze } from "./data-hooks-Dkw1pbRj.js";
12
+ import { E as Xe } from "./error-icon-hZxQ6DEy.js";
13
13
  import { s as V } from "./field-rac.module-B4l_0KRU.js";
14
- import { v as ue, J as Ve, u as B, Q as ze, o as Ze, j as Xe } from "./form-element-classes-bLFmhsKw.js";
15
14
  const Ge = typeof s.useId == "function" ? s.useId : () => W(Ue()).current;
16
- var w = /* @__PURE__ */ (function(e) {
15
+ var R = /* @__PURE__ */ (function(e) {
17
16
  return e.TEXT = "text/plain", e.POINTS = "points/json", e;
18
17
  })({}), b = /* @__PURE__ */ (function(e) {
19
18
  return e.DRAW = "draw", e.TYPE = "type", e.UPLOAD = "upload", e;
20
- })({}), S = /* @__PURE__ */ (function(e) {
19
+ })({}), x = /* @__PURE__ */ (function(e) {
21
20
  return e.DRAW = "draw", e.TYPE = "type", e.IMAGE = "image", e.UPLOAD = "upload", e;
22
21
  })({});
23
22
  const qe = (e) => {
24
23
  const { actions: t, formId: a } = Oe(), n = t == null ? void 0 : t.uploadFile;
25
- return I(async (r) => {
24
+ return C(async (r) => {
26
25
  if (!n)
27
26
  throw new Error("No uploadFile action");
28
27
  const o = await n({
@@ -54,14 +53,14 @@ const Je = (e, t) => {
54
53
  const o = (r * t.width + n) * 4;
55
54
  return t.data[o] * 65536 + t.data[o + 1] * 256 + t.data[o + 2] === a;
56
55
  };
57
- }, Qe = (e) => (t, a) => {
56
+ }, Ke = (e) => (t, a) => {
58
57
  const n = (a * e.width + t) * 4;
59
58
  return e.data[n + 3] === 0;
60
59
  };
61
60
  function J(e, t) {
62
61
  const a = e.getContext("2d", {
63
62
  willReadFrequently: !0
64
- }), n = e.width, r = e.height, o = a.getImageData(0, 0, n, r), i = t ? Je(t, o) : Qe(o);
63
+ }), n = e.width, r = e.height, o = a.getImageData(0, 0, n, r), i = t ? Je(t, o) : Ke(o);
65
64
  let l = n + 1, c = -1, d = r + 1, u = -1, f = 0, m = 0;
66
65
  for (m = 0; m < r; m++)
67
66
  for (f = 0; f < n; f++)
@@ -82,7 +81,7 @@ function z(e, t, a) {
82
81
  }
83
82
  return n;
84
83
  }
85
- function Ke(e, t) {
84
+ function Qe(e, t) {
86
85
  return new Promise((a, n) => {
87
86
  const r = new Image();
88
87
  r.onload = () => {
@@ -101,12 +100,12 @@ function me(e, t) {
101
100
  const a = e.getContext("2d"), n = e.offsetWidth, r = e.offsetHeight, o = Math.max(window.devicePixelRatio || 1, 1), i = n * o, l = r * o;
102
101
  return (e.width !== i || e.height !== l) && a ? (e.width = i, e.height = l, a.scale(o, o), t == null || t.redraw(), !0) : !1;
103
102
  }
104
- const M = 480, et = (e) => Ce({
103
+ const M = 480, et = (e) => Te({
105
104
  data: JSON.stringify(e),
106
- mimeType: w.POINTS
105
+ mimeType: R.POINTS
107
106
  }), Le = (e) => {
108
- const t = N(e);
109
- if ((t == null ? void 0 : t.mimeType) === w.POINTS)
107
+ const t = P(e);
108
+ if ((t == null ? void 0 : t.mimeType) === R.POINTS)
110
109
  try {
111
110
  return JSON.parse(t.data);
112
111
  } catch {
@@ -136,14 +135,14 @@ function nt(e, t, a = "black", n = !1, r) {
136
135
  const m = (l - d) / 2;
137
136
  o.fillText(t, n ? l - m : m, (c - u) / 2 + f);
138
137
  }
139
- const Te = /^data:([^;,]+)(?:;([^,]+))?,(.+)$/;
138
+ const Ie = /^data:([^;,]+)(?:;([^,]+))?,(.+)$/;
140
139
  function at(e) {
141
- return Te.test(e);
140
+ return Ie.test(e);
142
141
  }
143
- function N(e) {
142
+ function P(e) {
144
143
  if (!e)
145
144
  return;
146
- const t = e.match(Te);
145
+ const t = e.match(Ie);
147
146
  if (!t)
148
147
  return;
149
148
  const [, a, n, r] = t;
@@ -153,12 +152,12 @@ function N(e) {
153
152
  encoding: n
154
153
  };
155
154
  }
156
- function Ce({ data: e, mimeType: t, encoding: a = "text" }) {
155
+ function Te({ data: e, mimeType: t, encoding: a = "text" }) {
157
156
  const n = a === "base64" ? btoa(e) : encodeURI(e);
158
157
  return `data:${a === "base64" ? `${t};base64` : t},${n}`;
159
158
  }
160
159
  function rt(e, t) {
161
- const a = N(e);
160
+ const a = P(e);
162
161
  if (!a)
163
162
  return;
164
163
  let n = a.data.length;
@@ -173,7 +172,7 @@ function rt(e, t) {
173
172
  });
174
173
  }
175
174
  function ee(e, t = "temp") {
176
- const a = N(e);
175
+ const a = P(e);
177
176
  return {
178
177
  fileId: "temp",
179
178
  displayName: t,
@@ -182,17 +181,17 @@ function ee(e, t = "temp") {
182
181
  };
183
182
  }
184
183
  async function ot(e, t) {
185
- const a = N(e);
184
+ const a = P(e);
186
185
  if (!a)
187
186
  return e;
188
187
  const n = a.mimeType;
189
- if (n === w.TEXT) {
188
+ if (n === R.TEXT) {
190
189
  const r = z(M * 20, M, 1);
191
190
  nt(r, a.data, "black", t, "white");
192
191
  const o = J(r, "white");
193
192
  return (o == null ? void 0 : o.toDataURL("image/jpeg", 0.7)) ?? null;
194
193
  }
195
- if (n === w.POINTS) {
194
+ if (n === R.POINTS) {
196
195
  const r = Le(e);
197
196
  if (!r)
198
197
  return null;
@@ -205,7 +204,7 @@ async function ot(e, t) {
205
204
  return c ? de(c, void 0, M, "white").toDataURL("image/jpeg", 0.7) : null;
206
205
  }
207
206
  if (n != null && n.startsWith("image/")) {
208
- const r = await Ke(e), o = J(r);
207
+ const r = await Qe(e), o = J(r);
209
208
  return o ? de(o, void 0, M).toDataURL("image/jpeg", 0.7) : null;
210
209
  }
211
210
  return e;
@@ -216,15 +215,15 @@ async function st(e, t) {
216
215
  return rt(a, "signature");
217
216
  }
218
217
  const it = ({ value: e, onChange: t, target: a }) => {
219
- const [n, r] = Q(e), { isRTL: o } = Be(), i = qe(a), { setFormStatus: l } = ge(), c = W();
220
- K(() => {
218
+ const [n, r] = K(e), { isRTL: o } = Be(), i = qe(a), { setFormStatus: l } = ge(), c = W();
219
+ Q(() => {
221
220
  e === ce && r(ce);
222
221
  }, [
223
222
  e
224
223
  ]);
225
- const d = I(() => {
224
+ const d = C(() => {
226
225
  c.current && (clearTimeout(c.current), c.current = null);
227
- }, []), u = n == null ? void 0 : n[0], f = u != null && u.url ? N(u.url) : void 0, m = I(async (E) => {
226
+ }, []), u = n == null ? void 0 : n[0], f = u != null && u.url ? P(u.url) : void 0, m = C(async (E) => {
228
227
  try {
229
228
  const p = (E == null ? void 0 : E.url) ?? "";
230
229
  if (at(p)) {
@@ -249,7 +248,7 @@ const it = ({ value: e, onChange: t, target: a }) => {
249
248
  t
250
249
  ]);
251
250
  return {
252
- handleChange: I((E) => {
251
+ handleChange: C((E) => {
253
252
  const p = (L) => {
254
253
  c.current = setTimeout(() => m(L), 1500);
255
254
  };
@@ -271,24 +270,24 @@ const it = ({ value: e, onChange: t, target: a }) => {
271
270
  value: t,
272
271
  onChange: a,
273
272
  target: e
274
- }), [l, c] = Q(() => {
273
+ }), [l, c] = K(() => {
275
274
  if (o == null)
276
275
  return b.DRAW;
277
276
  switch (i == null ? void 0 : i.mimeType) {
278
- case w.POINTS:
277
+ case R.POINTS:
279
278
  return b.DRAW;
280
- case w.TEXT:
279
+ case R.TEXT:
281
280
  return b.TYPE;
282
281
  default:
283
282
  return b.UPLOAD;
284
283
  }
285
- }), { setFormStatus: d } = ge(), u = I(() => {
284
+ }), { setFormStatus: d } = ge(), u = C(() => {
286
285
  r(), d(e, G.BUSY);
287
286
  }, [
288
287
  r,
289
288
  d,
290
289
  e
291
- ]), f = I(() => {
290
+ ]), f = C(() => {
292
291
  r(), n(null), d(e, G.READY);
293
292
  }, [
294
293
  r,
@@ -298,13 +297,13 @@ const it = ({ value: e, onChange: t, target: a }) => {
298
297
  ]), m = o != null, h = ut(l, o, i), E = (() => {
299
298
  switch (l) {
300
299
  case b.DRAW:
301
- return S.DRAW;
300
+ return x.DRAW;
302
301
  case b.TYPE:
303
- return S.TYPE;
302
+ return x.TYPE;
304
303
  case b.UPLOAD:
305
- return h != null ? S.IMAGE : S.UPLOAD;
304
+ return h != null ? x.IMAGE : x.UPLOAD;
306
305
  default:
307
- return S.DRAW;
306
+ return x.DRAW;
308
307
  }
309
308
  })();
310
309
  return {
@@ -320,28 +319,28 @@ const it = ({ value: e, onChange: t, target: a }) => {
320
319
  handleClear: f
321
320
  };
322
321
  }, ct = {
323
- [b.DRAW]: (e) => (e == null ? void 0 : e.mimeType) === w.POINTS,
324
- [b.TYPE]: (e) => (e == null ? void 0 : e.mimeType) === w.TEXT,
325
- [b.UPLOAD]: (e) => (e == null ? void 0 : e.mimeType) !== w.POINTS && (e == null ? void 0 : e.mimeType) !== w.TEXT
322
+ [b.DRAW]: (e) => (e == null ? void 0 : e.mimeType) === R.POINTS,
323
+ [b.TYPE]: (e) => (e == null ? void 0 : e.mimeType) === R.TEXT,
324
+ [b.UPLOAD]: (e) => (e == null ? void 0 : e.mimeType) !== R.POINTS && (e == null ? void 0 : e.mimeType) !== R.TEXT
326
325
  };
327
326
  function ut(e, t, a) {
328
327
  return t && ct[e](a) ? t : void 0;
329
328
  }
330
329
  const dt = (e) => {
331
- const t = e.url ? N(e.url) : void 0;
332
- return t ? t.mimeType !== w.POINTS && t.mimeType !== w.TEXT : !0;
330
+ const t = e.url ? P(e.url) : void 0;
331
+ return t ? t.mimeType !== R.POINTS && t.mimeType !== R.TEXT : !0;
333
332
  }, te = () => {
334
- const { hoverProps: e, isHovered: t } = ve({}), { focusProps: a, isFocused: n, isFocusVisible: r } = xe({
333
+ const { hoverProps: e, isHovered: t } = ve({}), { focusProps: a, isFocused: n, isFocusVisible: r } = Se({
335
334
  within: !0
336
335
  });
337
336
  return {
338
- ...Se(e, a),
337
+ ...xe(e, a),
339
338
  "data-hovered": t || void 0,
340
339
  "data-focus-within": n || void 0,
341
340
  "data-focus-visible": r || void 0
342
341
  };
343
342
  }, g = ({ children: e }) => {
344
- const { id: t, FieldLayout: a } = A(), n = T(e, g.Label), r = T(e, g.Input), o = T(e, g.Description), i = T(e, g.Error);
343
+ const { id: t, FieldLayout: a } = A(), n = I(e, g.Label), r = I(e, g.Input), o = I(e, g.Description), i = I(e, g.Error);
345
344
  return /* @__PURE__ */ s.createElement(a, {
346
345
  fieldId: t,
347
346
  renderLabel: () => n,
@@ -353,7 +352,7 @@ const dt = (e) => {
353
352
  target: n,
354
353
  value: t,
355
354
  onChange: a
356
- }), h = T(e, Z.Header), E = T(e, Z.Value), p = {
355
+ }), h = I(e, Z.Header), E = I(e, Z.Value), p = {
357
356
  signatureMode: o,
358
357
  setSignatureMode: i,
359
358
  handleClear: l,
@@ -365,7 +364,7 @@ const dt = (e) => {
365
364
  };
366
365
  return /* @__PURE__ */ s.createElement(s.Fragment, null, !r && F(h, p), F(E, p));
367
366
  }, X = ({ children: e, className: t, ...a }) => {
368
- const { signatureMode: n, setSignatureMode: r, clearable: o, handleClear: i } = a, { uploadEnabled: l } = A(), c = T(e, X.Tabs), d = T(e, X.Clear);
367
+ const { signatureMode: n, setSignatureMode: r, clearable: o, handleClear: i } = a, { uploadEnabled: l } = A(), c = I(e, X.Tabs), d = I(e, X.Clear);
369
368
  return /* @__PURE__ */ s.createElement("div", {
370
369
  className: t
371
370
  }, F(c, {
@@ -376,14 +375,14 @@ const dt = (e) => {
376
375
  handleClear: i
377
376
  }));
378
377
  }, _ = ({ children: e, className: t, ...a }) => {
379
- const { signatureMode: n, setSignatureMode: r, uploadEnabled: o } = a, { disabled: i } = A(), { labelId: l, inputId: c } = H(), d = I((h) => {
378
+ const { signatureMode: n, setSignatureMode: r, uploadEnabled: o } = a, { disabled: i } = A(), { labelId: l, inputId: c } = H(), d = C((h) => {
380
379
  r(h);
381
380
  }, [
382
381
  r
383
382
  ]), u = {
384
- [b.DRAW]: T(e, _.Draw),
385
- [b.TYPE]: T(e, _.Type),
386
- [b.UPLOAD]: o ? T(e, _.Upload) : null
383
+ [b.DRAW]: I(e, _.Draw),
384
+ [b.TYPE]: I(e, _.Type),
385
+ [b.UPLOAD]: o ? I(e, _.Upload) : null
387
386
  }, f = u[n], m = mt(f) ? f.props.description : void 0;
388
387
  return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
389
388
  role: "status",
@@ -401,13 +400,13 @@ const dt = (e) => {
401
400
  isDisabled: i,
402
401
  "aria-labelledby": l,
403
402
  "aria-controls": c,
404
- "data-hook": ke.SIGNATURE_FIELD_MODE_SELECT,
403
+ "data-hook": Ze.SIGNATURE_FIELD_MODE_SELECT,
405
404
  className: t
406
405
  }, u[b.DRAW], u[b.TYPE], u[b.UPLOAD]));
407
- }, mt = (e) => /* @__PURE__ */ we(e), ne = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(Pe, {
406
+ }, mt = (e) => /* @__PURE__ */ Re(e), ne = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(Ne, {
408
407
  value: e,
409
408
  "aria-label": n
410
- }, /* @__PURE__ */ s.createElement(Ne, {
409
+ }, /* @__PURE__ */ s.createElement(Pe, {
411
410
  "data-hook": `signature-mode-${e}`,
412
411
  className: a
413
412
  }, t)), pt = (e) => /* @__PURE__ */ s.createElement(ne, {
@@ -429,15 +428,15 @@ const dt = (e) => {
429
428
  "data-hook": `clear-${i}`,
430
429
  className: t
431
430
  }, e);
432
- }, P = ({ children: e, className: t, ...a }) => {
433
- const { signatureView: n, signatureValueForView: r, handleChange: o, handleBeforeChange: i } = a, { disabled: l, readOnly: c, onBlur: d, onFocus: u, hasError: f } = A(), m = T(e, P.Canvas), h = T(e, P.Type), E = T(e, P.Upload);
431
+ }, N = ({ children: e, className: t, ...a }) => {
432
+ const { signatureView: n, signatureValueForView: r, handleChange: o, handleBeforeChange: i } = a, { disabled: l, readOnly: c, onBlur: d, onFocus: u, hasError: f } = A(), m = I(e, N.Canvas), h = I(e, N.Type), E = I(e, N.Upload);
434
433
  return /* @__PURE__ */ s.createElement("div", {
435
434
  className: t,
436
435
  "data-hook": "signature-input",
437
436
  "data-invalid": f,
438
437
  "data-disabled": l,
439
438
  "data-readonly": c
440
- }, n === S.DRAW && F(m, {
439
+ }, n === x.DRAW && F(m, {
441
440
  value: r,
442
441
  onChange: o,
443
442
  onBeforeChange: i,
@@ -445,7 +444,7 @@ const dt = (e) => {
445
444
  readOnly: c,
446
445
  onBlur: d,
447
446
  onFocus: u
448
- }), n === S.TYPE && F(h, {
447
+ }), n === x.TYPE && F(h, {
449
448
  value: r,
450
449
  onChange: o,
451
450
  onBeforeChange: i,
@@ -453,7 +452,7 @@ const dt = (e) => {
453
452
  readOnly: c,
454
453
  onBlur: d,
455
454
  onFocus: u
456
- }), (n === S.UPLOAD || n === S.IMAGE) && F(E, {
455
+ }), (n === x.UPLOAD || n === x.IMAGE) && F(E, {
457
456
  value: r,
458
457
  onChange: o,
459
458
  onBeforeChange: i,
@@ -463,42 +462,42 @@ const dt = (e) => {
463
462
  onFocus: u
464
463
  }));
465
464
  }, Et = ({ className: e, emptyLabel: t, signedLabel: a, ...n }) => {
466
- const { value: r, onChange: o, onBeforeChange: i, disabled: l, readOnly: c, onBlur: d, onFocus: u } = n, { id: f } = A(), { inputId: m, ariaDescribedBy: h } = H(), E = te(), p = W(), L = W(), y = W(null), x = r == null ? void 0 : r.url, [U, Y] = Q(!1);
465
+ const { value: r, onChange: o, onBeforeChange: i, disabled: l, readOnly: c, onBlur: d, onFocus: u } = n, { id: f } = A(), { inputId: m, ariaDescribedBy: h } = H(), E = te(), p = W(), L = W(), y = W(null), S = r == null ? void 0 : r.url, [U, Y] = K(!1);
467
466
  Ee(() => {
468
467
  var D;
469
468
  (D = L.current) == null || D.focus();
470
469
  }, f);
471
- const R = De(() => ({
470
+ const w = De(() => ({
472
471
  throttle: 0,
473
472
  dotSize: 2,
474
473
  minWidth: 1,
475
474
  maxWidth: 3,
476
475
  velocityFilterWeight: 0.2
477
- }), []), oe = I(() => {
476
+ }), []), oe = C(() => {
478
477
  var O, k, $;
479
478
  if ((O = p.current) != null && O.isEmpty())
480
479
  return "";
481
480
  const D = (k = p.current) == null ? void 0 : k.toData();
482
481
  return D ? et(D) : (($ = p.current) == null ? void 0 : $.toDataURL()) ?? "";
483
- }, []), q = I(() => {
482
+ }, []), q = C(() => {
484
483
  var O;
485
484
  const D = (O = p.current) == null ? void 0 : O.isEmpty();
486
485
  Y(!D), o(ee(oe()));
487
486
  }, [
488
487
  oe,
489
488
  o
490
- ]), j = I(() => {
489
+ ]), j = C(() => {
491
490
  i == null || i();
492
491
  }, [
493
492
  i
494
- ]), Ie = I((D) => {
493
+ ]), Ce = C((D) => {
495
494
  var k, $, se, ie;
496
495
  if (D != null) {
497
496
  if (L.current = D, p.current = new he(D, {
498
- ...R,
497
+ ...w,
499
498
  penColor: getComputedStyle(D).color || void 0
500
- }), me(L.current, p.current), x) {
501
- const le = Le(x);
499
+ }), me(L.current, p.current), S) {
500
+ const le = Le(S);
502
501
  le && (p.current.fromData(le), Y(!0));
503
502
  } else
504
503
  p.current.clear(), Y(!1);
@@ -508,12 +507,12 @@ const dt = (e) => {
508
507
  } else
509
508
  ($ = y.current) == null || $.disconnect(), (se = p.current) == null || se.removeEventListener("endStroke", q), (ie = p.current) == null || ie.removeEventListener("beginStroke", j);
510
509
  }, [
511
- R,
512
- x,
510
+ w,
511
+ S,
513
512
  j,
514
513
  q
515
514
  ]);
516
- return K(() => {
515
+ return Q(() => {
517
516
  p.current && (c || l ? p.current.off() : p.current.on());
518
517
  }, [
519
518
  l,
@@ -522,11 +521,11 @@ const dt = (e) => {
522
521
  className: e,
523
522
  ...E
524
523
  }, /* @__PURE__ */ s.createElement("canvas", {
525
- ref: Ie,
524
+ ref: Ce,
526
525
  id: m,
527
526
  "data-hook": "signature-canvas",
528
527
  "data-input-id": m,
529
- "data-has-value": !!x,
528
+ "data-has-value": !!S,
530
529
  onFocus: u,
531
530
  onBlur: d,
532
531
  role: "img",
@@ -534,35 +533,35 @@ const dt = (e) => {
534
533
  "aria-describedby": h
535
534
  }));
536
535
  }, ae = ({ children: e, className: t, ...a }) => {
537
- const { value: n, onChange: r, onBeforeChange: o, disabled: i, readOnly: l, onBlur: c, onFocus: d } = a, { id: u, required: f, hasError: m } = A(), { inputId: h, ariaDescribedBy: E, labelId: p } = H(), L = te(), y = n != null && n.url ? N(n.url) : void 0, { data: x = "" } = y ?? {
536
+ const { value: n, onChange: r, onBeforeChange: o, disabled: i, readOnly: l, onBlur: c, onFocus: d } = a, { id: u, required: f, hasError: m } = A(), { inputId: h, ariaDescribedBy: E, labelId: p } = H(), L = te(), y = n != null && n.url ? P(n.url) : void 0, { data: S = "" } = y ?? {
538
537
  data: ""
539
538
  };
540
539
  Ee(() => {
541
- const R = document.getElementById(h);
542
- R == null || R.focus({
540
+ const w = document.getElementById(h);
541
+ w == null || w.focus({
543
542
  preventScroll: !0
544
543
  });
545
- }, u), K(() => {
544
+ }, u), Q(() => {
546
545
  if (!n) {
547
- const R = document.getElementById(h);
548
- R && (R.value = "");
546
+ const w = document.getElementById(h);
547
+ w && (w.value = "");
549
548
  }
550
549
  }, [
551
550
  n,
552
551
  h
553
552
  ]);
554
- const U = I((R) => {
555
- o == null || o(), R.trim() ? r(ee(Ce({
556
- data: R,
557
- mimeType: w.TEXT
553
+ const U = C((w) => {
554
+ o == null || o(), w.trim() ? r(ee(Te({
555
+ data: w,
556
+ mimeType: R.TEXT
558
557
  }))) : r(null);
559
558
  }, [
560
559
  o,
561
560
  r
562
- ]), Y = T(e, ae.Value);
561
+ ]), Y = I(e, ae.Value);
563
562
  return /* @__PURE__ */ s.createElement(Ae, {
564
563
  "aria-labelledby": p,
565
- value: x,
564
+ value: S,
566
565
  onChange: U,
567
566
  onBlur: c,
568
567
  onFocus: d,
@@ -590,16 +589,16 @@ const dt = (e) => {
590
589
  }, bt = {
591
590
  display: "none"
592
591
  }, re = ({ children: e, className: t, imageAlt: a, ...n }) => {
593
- const { value: r, onChange: o, disabled: i, readOnly: l, onBlur: c, onFocus: d } = n, { inputId: u } = H(), f = te(), m = T(e, re.Button), h = W(null), E = I((L) => {
592
+ const { value: r, onChange: o, disabled: i, readOnly: l, onBlur: c, onFocus: d } = n, { inputId: u } = H(), f = te(), m = I(e, re.Button), h = W(null), E = C((L) => {
594
593
  const y = L.target.files;
595
594
  if (!y || y.length === 0) {
596
595
  o(null);
597
596
  return;
598
597
  }
599
- const x = y[0], U = new FileReader();
598
+ const S = y[0], U = new FileReader();
600
599
  U.onload = function() {
601
- o(ee(this.result, x.name));
602
- }, U.readAsDataURL(x);
600
+ o(ee(this.result, S.name));
601
+ }, U.readAsDataURL(S);
603
602
  }, [
604
603
  o
605
604
  ]), p = r && dt(r);
@@ -632,7 +631,7 @@ const dt = (e) => {
632
631
  "data-hook": "signature-image"
633
632
  }, r.displayName || a)));
634
633
  }, yt = ({ children: e, className: t, ...a }) => {
635
- const { fileInputRef: n, disabled: r, readOnly: o, onBlur: i, onFocus: l } = a, { inputId: c, ariaDescribedBy: d, labelId: u } = H(), f = Ge(), m = I(() => {
634
+ const { fileInputRef: n, disabled: r, readOnly: o, onBlur: i, onFocus: l } = a, { inputId: c, ariaDescribedBy: d, labelId: u } = H(), f = Ge(), m = C(() => {
636
635
  var h;
637
636
  (h = n.current) == null || h.click();
638
637
  }, [
@@ -652,23 +651,23 @@ const dt = (e) => {
652
651
  id: f
653
652
  }, e));
654
653
  };
655
- g.Label = Ye;
654
+ g.Label = ze;
656
655
  g.Input = Z;
657
- g.Description = We;
658
- g.Error = He;
656
+ g.Description = $e;
657
+ g.Error = Ve;
659
658
  Z.Header = X;
660
- Z.Value = P;
659
+ Z.Value = N;
661
660
  X.Tabs = _;
662
661
  X.Clear = gt;
663
662
  _.Draw = pt;
664
663
  _.Type = ft;
665
664
  _.Upload = ht;
666
- P.Canvas = Et;
667
- P.Type = ae;
668
- P.Upload = re;
665
+ N.Canvas = Et;
666
+ N.Type = ae;
667
+ N.Upload = re;
669
668
  ae.Value = Lt;
670
669
  re.Button = yt;
671
- const Tt = () => {
670
+ const It = () => {
672
671
  const { t: e } = Me();
673
672
  return {
674
673
  drawLabel: e("field.signature.mode.draw.label"),
@@ -684,7 +683,7 @@ const Tt = () => {
684
683
  imageAlt: e("field.signature.a11y.state.signed"),
685
684
  uploadLabel: e("field.signature.settings.upload-button.label")
686
685
  };
687
- }, Ct = (e) => /* @__PURE__ */ s.createElement("svg", {
686
+ }, Tt = (e) => /* @__PURE__ */ s.createElement("svg", {
688
687
  viewBox: "0 0 24 24",
689
688
  width: 24,
690
689
  height: 24,
@@ -694,7 +693,7 @@ const Tt = () => {
694
693
  }, /* @__PURE__ */ s.createElement("path", {
695
694
  fillRule: "evenodd",
696
695
  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"
697
- })), It = (e) => /* @__PURE__ */ s.createElement("svg", {
696
+ })), Ct = (e) => /* @__PURE__ */ s.createElement("svg", {
698
697
  viewBox: "0 0 24 24",
699
698
  width: 24,
700
699
  height: 24,
@@ -714,7 +713,7 @@ const Tt = () => {
714
713
  }, /* @__PURE__ */ s.createElement("path", {
715
714
  fillRule: "evenodd",
716
715
  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"
717
- })), wt = (e) => /* @__PURE__ */ s.createElement("svg", {
716
+ })), Rt = (e) => /* @__PURE__ */ s.createElement("svg", {
718
717
  viewBox: "0 0 20 20",
719
718
  width: 24,
720
719
  height: 24,
@@ -724,72 +723,72 @@ const Tt = () => {
724
723
  }, /* @__PURE__ */ s.createElement("path", {
725
724
  fillRule: "evenodd",
726
725
  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"
727
- })), Rt = "_header_15ti0_1", vt = "_tabs_15ti0_8", xt = "_tab_15ti0_8", St = "_tabIcon_15ti0_74", Ft = "_clear_15ti0_81", At = "_value_15ti0_113", _t = "_box_15ti0_118", Pt = "_uploadBox_15ti0_119", Nt = "_typeInput_15ti0_230", C = {
728
- header: Rt,
726
+ })), wt = "_header_15ti0_1", vt = "_tabs_15ti0_8", St = "_tab_15ti0_8", xt = "_tabIcon_15ti0_74", Ft = "_clear_15ti0_81", At = "_value_15ti0_113", _t = "_box_15ti0_118", Nt = "_uploadBox_15ti0_119", Pt = "_typeInput_15ti0_230", T = {
727
+ header: wt,
729
728
  tabs: vt,
730
- tab: xt,
731
- tabIcon: St,
729
+ tab: St,
730
+ tabIcon: xt,
732
731
  clear: Ft,
733
732
  value: At,
734
733
  box: _t,
735
- uploadBox: Pt,
736
- typeInput: Nt
737
- }, Ut = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(Re, {
734
+ uploadBox: Nt,
735
+ typeInput: Pt
736
+ }, Ut = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(we, {
738
737
  content: e,
739
738
  locale: t
740
739
  }), Ot = () => {
741
- const e = Tt();
740
+ const e = It();
742
741
  return /* @__PURE__ */ s.createElement(g, null, /* @__PURE__ */ s.createElement(g.Label, {
743
742
  className: v(ue, V.label)
744
743
  }, /* @__PURE__ */ s.createElement(g.Label.Required, {
745
- className: v(Ve, V.requiredMark)
744
+ className: v(We, V.requiredMark)
746
745
  })), /* @__PURE__ */ s.createElement(g.Input, null, /* @__PURE__ */ s.createElement(g.Input.Header, {
747
- className: C.header
746
+ className: T.header
748
747
  }, /* @__PURE__ */ s.createElement(g.Input.Header.Tabs, {
749
- className: C.tabs
748
+ className: T.tabs
750
749
  }, /* @__PURE__ */ s.createElement(g.Input.Header.Tabs.Draw, {
751
- className: v(B, C.tab),
750
+ className: v(B, T.tab),
752
751
  "aria-label": e.drawLabel,
753
752
  description: e.drawDescription
754
753
  }, /* @__PURE__ */ s.createElement(Dt, {
755
- className: C.tabIcon
754
+ className: T.tabIcon
756
755
  })), /* @__PURE__ */ s.createElement(g.Input.Header.Tabs.Type, {
757
- className: v(B, C.tab),
756
+ className: v(B, T.tab),
758
757
  "aria-label": e.typeLabel,
759
758
  description: e.typeDescription
760
- }, /* @__PURE__ */ s.createElement(wt, {
761
- className: C.tabIcon
759
+ }, /* @__PURE__ */ s.createElement(Rt, {
760
+ className: T.tabIcon
762
761
  })), /* @__PURE__ */ s.createElement(g.Input.Header.Tabs.Upload, {
763
- className: v(B, C.tab),
762
+ className: v(B, T.tab),
764
763
  "aria-label": e.uploadModeLabel,
765
764
  description: e.uploadDescription
766
- }, /* @__PURE__ */ s.createElement(It, {
767
- className: C.tabIcon
765
+ }, /* @__PURE__ */ s.createElement(Ct, {
766
+ className: T.tabIcon
768
767
  }))), /* @__PURE__ */ s.createElement(g.Input.Header.Clear, {
769
- className: v(ue, C.clear),
768
+ className: v(ue, T.clear),
770
769
  "aria-label": e.clearLabel
771
- }, /* @__PURE__ */ s.createElement(Ct, null))), /* @__PURE__ */ s.createElement(g.Input.Value, {
772
- className: C.value
770
+ }, /* @__PURE__ */ s.createElement(Tt, null))), /* @__PURE__ */ s.createElement(g.Input.Value, {
771
+ className: T.value
773
772
  }, /* @__PURE__ */ s.createElement(g.Input.Value.Canvas, {
774
- className: v(B, C.box),
773
+ className: v(B, T.box),
775
774
  emptyLabel: e.emptyLabel,
776
775
  signedLabel: e.signedLabel
777
776
  }), /* @__PURE__ */ s.createElement(g.Input.Value.Type, {
778
- className: v(B, C.box)
777
+ className: v(B, T.box)
779
778
  }, /* @__PURE__ */ s.createElement(g.Input.Value.Type.Value, {
780
- className: C.typeInput,
779
+ className: T.typeInput,
781
780
  placeholder: e.placeholder
782
781
  })), /* @__PURE__ */ s.createElement(g.Input.Value.Upload, {
783
- className: v(B, C.uploadBox),
782
+ className: v(B, T.uploadBox),
784
783
  imageAlt: e.imageAlt
785
784
  }, /* @__PURE__ */ s.createElement(g.Input.Value.Upload.Button, {
786
- className: v(ze, V.uploadButton)
785
+ className: v(He, V.uploadButton)
787
786
  }, e.uploadLabel)))), /* @__PURE__ */ s.createElement(g.Error, {
788
- className: v(Ze, V.error)
789
- }, /* @__PURE__ */ s.createElement($e, null), /* @__PURE__ */ s.createElement(g.Error.Text, null)), /* @__PURE__ */ s.createElement(g.Description, {
790
- className: v(Xe, V.description)
787
+ className: v(Ye, V.error)
788
+ }, /* @__PURE__ */ s.createElement(Xe, null), /* @__PURE__ */ s.createElement(g.Error.Text, null)), /* @__PURE__ */ s.createElement(g.Description, {
789
+ className: v(ke, V.description)
791
790
  }, Ut));
792
- }, Jt = () => /* @__PURE__ */ s.createElement(Ot, null);
791
+ }, jt = () => /* @__PURE__ */ s.createElement(Ot, null);
793
792
  export {
794
- Jt as SignatureRAC
793
+ jt as SignatureRAC
795
794
  };