@wix/form-elements 1.108.0 → 1.110.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 (107) hide show
  1. package/dist/component/{appointment-rac-ZAp8oWbK.js → appointment-rac-CfPs6AsU.js} +60 -60
  2. package/dist/component/{bookings-address-rac-x-Az7vHf.js → bookings-address-rac-XkgsBu8i.js} +1 -1
  3. package/dist/component/{bookings-email-rac-MoF_CaqB.js → bookings-email-rac-CyESeQLD.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CWh3Rb0M.js → bookings-first-name-rac-CFY5Qwk9.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BVTiXUWk.js → bookings-header-rac-lRsebspV.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-kXRRlyHl.js → bookings-last-name-rac-B7J2K4oK.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-C4Zr6kXE.js → bookings-login-bar-rac-BD97U76_.js} +3 -3
  8. package/dist/component/{bookings-phone-rac-2rz1m_xi.js → bookings-phone-rac-CpgDCLTp.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BEjGypQw.js → bookings-rich-text-rac-DQUQMN3s.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-DwEQLIaz.js → checkbox-field-rac-CcOW4yol.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-BsOww_QB.js → checkbox-group-field-headless-DiBxnwOj.js} +8 -8
  12. package/dist/component/{checkbox-group-field-rac-DTcZcVS6.js → checkbox-group-field-rac-BCzS44NM.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-DQsML-pW.js → checkbox-group-rac-C2oHVikX.js} +1 -1
  14. package/dist/component/{checkbox-rac-irEBBOxP.js → checkbox-rac-DPhswfJ9.js} +1 -1
  15. package/dist/component/{contacts-address-rac-B5bSAYrm.js → contacts-address-rac-Cjqot4Vo.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DyScj8f4.js → contacts-birthdate-rac-C3uYlFa3.js} +1 -1
  17. package/dist/component/{contacts-company-rac-C5X9-jXa.js → contacts-company-rac-BDmDrlJm.js} +1 -1
  18. package/dist/component/{contacts-email-rac-B0vkfmrS.js → contacts-email-rac-9NI8430K.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-Cfil3U_e.js → contacts-first-name-rac-PNgDNwXZ.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-CtPLE-7-.js → contacts-last-name-rac-Dkf8oYRe.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-YkzsAoBZ.js → contacts-phone-rac-BefG0umR.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BS4j8QC-.js → contacts-position-rac-8ZWMa74Q.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-z_9VsEZL.js → contacts-subscribe-rac-Dj0k_O2C.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-WFkmKyZv.js → contacts-tax-id-rac-Dbz0SEH9.js} +1 -1
  25. package/dist/component/{date-availability-NN3rxosk.js → date-availability-CpZYBX1d.js} +1 -1
  26. package/dist/component/{date-input-field-rac-mdhEC3oq.js → date-input-field-rac-8CkusNEQ.js} +64 -64
  27. package/dist/component/{date-input-rac-CGciuoTx.js → date-input-rac-CH1ke9-c.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-CRZVODfF.js → date-picker-field-rac-pZQhHvZc.js} +31 -31
  29. package/dist/component/{date-picker-rac-Bfbvjy8W.js → date-picker-rac-BOdzNgu6.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-TDWBXZ44.js → date-time-input-field-rac-DDUZvi8G.js} +70 -70
  31. package/dist/component/{date-time-input-rac-DY0qdSix.js → date-time-input-rac-DkjW7KId.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BFGM7SOt.js → dext-checkbox-group-rac-Cjx062TO.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DPZvTeUZ.js → dext-checkbox-rac-CIqsZ8Cf.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Xd5kojsQ.js → dext-date-picker-rac-BYQN00yy.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-C0RIdxJW.js → dext-date-time-input-rac-Bh-HYZ_X.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-D1m8vJvm.js → dext-dropdown-rac-rnkUqsSx.js} +1 -1
  37. package/dist/component/{dext-email-rac-BC81RFYY.js → dext-email-rac-DtW_DadC.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-Z_ih9FfX.js → dext-number-input-rac-DTfdLXFG.js} +1 -1
  39. package/dist/component/{dext-phone-rac-s3BOnXuI.js → dext-phone-rac-D3anV8iB.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-CL3jcezs.js → dext-radio-group-rac-CIO_2H7F.js} +4 -4
  41. package/dist/component/{dext-rating-input-rac-wz1EyP5b.js → dext-rating-input-rac-Bdtbwo1W.js} +1 -1
  42. package/dist/component/{dext-tags-rac-BY4Rf2BP.js → dext-tags-rac-DT4_lRM0.js} +4 -4
  43. package/dist/component/{dext-text-area-rac-DRJzlsq8.js → dext-text-area-rac-BgMlIgik.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-BGcRNNAi.js → dext-text-input-rac-DDc6-lsN.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-CRAIm8yp.js → dext-url-input-rac-CrOT7XQf.js} +1 -1
  46. package/dist/component/{donation-rac-BlTfOIlE.js → donation-rac-CORUAfww.js} +74 -74
  47. package/dist/component/{dropdown-field-headless-DhzRAMcM.js → dropdown-field-headless-B-82vlHV.js} +10 -10
  48. package/dist/component/{dropdown-field-rac-DXyY5we-.js → dropdown-field-rac-AYGyhYSH.js} +3 -3
  49. package/dist/component/{dropdown-rac-C6YM6qxm.js → dropdown-rac-g-zqV-y4.js} +1 -1
  50. package/dist/component/{ecom-address-rac-CAdr7wya.js → ecom-address-rac-BQqh4QrW.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-Z2VMuCbt.js → ecom-subscription-checkbox-rac-Cf7Ou6Om.js} +2 -2
  52. package/dist/component/{email-input-field-rac-DpkfunVK.js → email-input-field-rac-BFrfF6TW.js} +47 -47
  53. package/dist/component/{events-repeater-rac-CuJkdrPo.js → events-repeater-rac-CNifjThM.js} +8 -8
  54. package/dist/component/{events-rsvp-rac-BKWlSeQ9.js → events-rsvp-rac-CnW7CNdo.js} +10 -10
  55. package/dist/component/{field-error-headless-tsg9FQ-_.js → field-error-headless-BLgaEh1d.js} +11 -11
  56. package/dist/component/{field-label-headless-CB8dEat8.js → field-label-headless-C8NbnF9M.js} +4 -4
  57. package/dist/component/file-upload-rac-Yk44koqY.js +561 -0
  58. package/dist/component/{fixed-payment-rac-CuIQEeHh.js → fixed-payment-rac-r_OUP_KD.js} +15 -15
  59. package/dist/component/{form-0jt4L5xo.js → form-DC8xFBa_.js} +6178 -5729
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +3 -3
  62. package/dist/component/{header-field-rac-CWVGzxKb.js → header-field-rac-6NOymbBc.js} +4 -4
  63. package/dist/component/{header-rac-D6KsV-ko.js → header-rac-DzK8Cg5s.js} +1 -1
  64. package/dist/component/{image-choice-rac-CUCyVS8c.js → image-choice-rac-CcCInqrr.js} +9 -9
  65. package/dist/component/{index-iOqQidgV.js → index-B_72TOzS.js} +2 -2
  66. package/dist/component/{index-TJSnVtCO.js → index-CGbawBGb.js} +43 -43
  67. package/dist/component/{isObjectLike-DQbx8r1c.js → isObjectLike-BziKAUTi.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-DtZ1NTfD.js → multiline-address-field-rac-CJw6HvHY.js} +78 -78
  69. package/dist/component/{multiline-address-rac-ub-_XzHU.js → multiline-address-rac-B_GR1nkJ.js} +1 -1
  70. package/dist/component/{number-input-field-rac-DLItn4DK.js → number-input-field-rac-CXFmpNWL.js} +13 -13
  71. package/dist/component/{number-input-rac-UuxJzqEx.js → number-input-rac-sr4Dhnxa.js} +1 -1
  72. package/dist/component/{password-rac-Di6q96Rn.js → password-rac-BwBEPYo3.js} +15 -15
  73. package/dist/component/{payment-input-rac-CG6c4-Ge.js → payment-input-rac-BcLSkgtK.js} +44 -44
  74. package/dist/component/{phone-input-field-rac-D4JphCuT.js → phone-input-field-rac-4kp5xRJZ.js} +50 -50
  75. package/dist/component/{phone-rac-_vDw2usa.js → phone-rac-B_QYTg28.js} +1 -1
  76. package/dist/component/{product-list-rac-CgxRlj1f.js → product-list-rac-C7YDHPj_.js} +50 -50
  77. package/dist/component/{quiz-radio-group-rac-bi26aGxN.js → quiz-radio-group-rac-Be1v1PyS.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DDJq2ESf.js → radio-button-module-classes-k9DhZ1Fd.js} +14 -14
  79. package/dist/component/{radio-group-field-rac-D1aMVO6l.js → radio-group-field-rac-BDEAYQH5.js} +6 -6
  80. package/dist/component/{radio-group-rac-HKC85M6t.js → radio-group-rac-DcmSrcGy.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-CpRehxFB.js → rating-input-field-rac-CcO3-3O3.js} +20 -20
  82. package/dist/component/{rating-input-rac-BMuCZ3oj.js → rating-input-rac-wl8G35Xv.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-mZ6xoAOd.js → rich-content-rac.module-CzZ6x_Yf.js} +1 -1
  84. package/dist/component/{rich-text-field-rac-CUK8V8Kf.js → rich-text-field-rac-B4l_YgG7.js} +4 -4
  85. package/dist/component/{rich-text-rac-B-7sR2FJ.js → rich-text-rac-BlW4v4gg.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-1DDNT5bn.js → service-dropdown-rac-CJTrm0iL.js} +33 -33
  87. package/dist/component/{services-multi-choice-rac-CB-6dwxz.js → services-multi-choice-rac-BkiL2Pct.js} +13 -13
  88. package/dist/component/{signature-rac-7XBci6P2.js → signature-rac-_fTng53p.js} +133 -133
  89. package/dist/component/{submit-button-rac-B1-Mk8Gg.js → submit-button-rac-EmqyRMuE.js} +17 -17
  90. package/dist/component/{tags-field-rac-CQ9Y7mq-.js → tags-field-rac-CTlZZLdv.js} +32 -32
  91. package/dist/component/{tags-rac-Visic-Ml.js → tags-rac-xd-CpByf.js} +1 -1
  92. package/dist/component/{text-area-field-rac-C8fP1g-w.js → text-area-field-rac-Dap_aF4j.js} +14 -14
  93. package/dist/component/{text-area-rac-B6yZxzxm.js → text-area-rac-rKSZi3gu.js} +1 -1
  94. package/dist/component/{text-input-field-rac-CNjbOxD1.js → text-input-field-rac-GBsaUY0A.js} +5 -5
  95. package/dist/component/{text-input-headless-Bm8PJGep.js → text-input-headless-SHtvSa6y.js} +3 -3
  96. package/dist/component/{text-input-rac-BEPC1Z-4.js → text-input-rac-v4R17Vxm.js} +1 -1
  97. package/dist/component/{time-input-rac-3m6C_Jp5.js → time-input-rac-DgnhZSjV.js} +27 -27
  98. package/dist/component/{url-input-field-rac-CIk_6Lf6.js → url-input-field-rac-BuTadRMy.js} +19 -19
  99. package/dist/component/{url-input-rac-DyVoygXH.js → url-input-rac-BpVSwqpz.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-McG3ayOT.js → use-dropdown-option-class-name-Cwfh_4oi.js} +2 -2
  101. package/dist/component/{use-element-state-class-name-B9MBWX44.js → use-element-state-class-name-BF7I_Ju7.js} +1 -1
  102. package/dist/component/{use-is-forced-open-dropdown-r5G_sZsO.js → use-is-forced-open-dropdown-BMuhxge2.js} +8 -8
  103. package/dist/component/{use-service-options-base-hcbkvhpw.js → use-service-options-base-DfyQZjmw.js} +1 -1
  104. package/dist/component/{use-text-input-class-name-SnurFqAr.js → use-text-input-class-name-ixt7gTGg.js} +2 -2
  105. package/dist/form.d.ts +18 -0
  106. package/package.json +3 -3
  107. package/dist/component/file-upload-rac-ZdgYt646.js +0 -483
@@ -1,27 +1,27 @@
1
- import s, { useRef as W, useCallback as I, useState as K, useEffect as Q, 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 { az as Ue, b1 as Oe, aZ as Be, bd as ge, E as ce, a2 as G, b5 as A, b2 as H, b7 as Ee, bf as Me, H as ue, T as We, G as B, _ as He, u as Ye, p as ke } from "./form-0jt4L5xo.js";
8
- import { f as T, a as F } from "./find-child-C60k4CxG.js";
9
- import { D as $e, E as ze } from "./field-error-headless-tsg9FQ-_.js";
10
- import { L as Ve } from "./field-label-headless-CB8dEat8.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-DC8xFBa_.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-BLgaEh1d.js";
10
+ import { L as ze } from "./field-label-headless-C8NbnF9M.js";
11
11
  import { D as Ze } from "./data-hooks-Dkw1pbRj.js";
12
12
  import { E as Xe } from "./error-icon-hZxQ6DEy.js";
13
- import { s as z } from "./field-rac.module-B4l_0KRU.js";
13
+ import { s as V } from "./field-rac.module-B4l_0KRU.js";
14
14
  const Ge = typeof s.useId == "function" ? s.useId : () => W(Ue()).current;
15
- var w = /* @__PURE__ */ (function(e) {
15
+ var R = /* @__PURE__ */ (function(e) {
16
16
  return e.TEXT = "text/plain", e.POINTS = "points/json", e;
17
17
  })({}), b = /* @__PURE__ */ (function(e) {
18
18
  return e.DRAW = "draw", e.TYPE = "type", e.UPLOAD = "upload", e;
19
- })({}), S = /* @__PURE__ */ (function(e) {
19
+ })({}), x = /* @__PURE__ */ (function(e) {
20
20
  return e.DRAW = "draw", e.TYPE = "type", e.IMAGE = "image", e.UPLOAD = "upload", e;
21
21
  })({});
22
22
  const qe = (e) => {
23
23
  const { actions: t, formId: a } = Oe(), n = t == null ? void 0 : t.uploadFile;
24
- return I(async (r) => {
24
+ return C(async (r) => {
25
25
  if (!n)
26
26
  throw new Error("No uploadFile action");
27
27
  const o = await n({
@@ -42,7 +42,7 @@ const qe = (e) => {
42
42
  ]);
43
43
  };
44
44
  function je(e) {
45
- const a = V(1, 1).getContext("2d");
45
+ const a = z(1, 1).getContext("2d");
46
46
  a.fillStyle = e, a.fillRect(0, 0, 1, 1);
47
47
  const n = a.getImageData(0, 0, 1, 1);
48
48
  return n.data[0] * 65536 + n.data[1] * 256 + n.data[2];
@@ -71,7 +71,7 @@ function J(e, t) {
71
71
  const p = a.getImageData(l, d, h, E), L = document.createElement("canvas"), y = L.getContext("2d");
72
72
  return L.width = h, L.height = E, t ? (y.fillStyle = t, y.fillRect(0, 0, h, E)) : y.clearRect(0, 0, h, E), y.putImageData(p, 0, 0), L;
73
73
  }
74
- function V(e, t, a) {
74
+ function z(e, t, a) {
75
75
  const n = document.createElement("canvas");
76
76
  if (n.width = e, n.height = t, a) {
77
77
  const r = n.getContext("2d", {
@@ -85,7 +85,7 @@ function Qe(e, t) {
85
85
  return new Promise((a, n) => {
86
86
  const r = new Image();
87
87
  r.onload = () => {
88
- const o = V(r.width, r.height), i = o.getContext("2d", {
88
+ const o = z(r.width, r.height), i = o.getContext("2d", {
89
89
  willReadFrequently: !0
90
90
  });
91
91
  i == null || i.drawImage(r, 0, 0), a(o);
@@ -93,19 +93,19 @@ function Qe(e, t) {
93
93
  });
94
94
  }
95
95
  function de(e, t, a, n) {
96
- const r = e.width, o = e.height, i = 1, l = a / o, c = Math.min(l, i), d = r * c, u = o * c, f = V(d, u), m = f.getContext("2d");
96
+ const r = e.width, o = e.height, i = 1, l = a / o, c = Math.min(l, i), d = r * c, u = o * c, f = z(d, u), m = f.getContext("2d");
97
97
  return n && m && (m.fillStyle = n, m.fillRect(0, 0, d, u)), m == null || m.drawImage(e, 0, 0, r, o, 0, 0, d, u), f;
98
98
  }
99
99
  function me(e, t) {
100
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;
101
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;
102
102
  }
103
- const M = 480, et = (e) => Ce({
103
+ const M = 480, et = (e) => Te({
104
104
  data: JSON.stringify(e),
105
- mimeType: w.POINTS
105
+ mimeType: R.POINTS
106
106
  }), Le = (e) => {
107
- const t = N(e);
108
- if ((t == null ? void 0 : t.mimeType) === w.POINTS)
107
+ const t = P(e);
108
+ if ((t == null ? void 0 : t.mimeType) === R.POINTS)
109
109
  try {
110
110
  return JSON.parse(t.data);
111
111
  } catch {
@@ -135,14 +135,14 @@ function nt(e, t, a = "black", n = !1, r) {
135
135
  const m = (l - d) / 2;
136
136
  o.fillText(t, n ? l - m : m, (c - u) / 2 + f);
137
137
  }
138
- const Te = /^data:([^;,]+)(?:;([^,]+))?,(.+)$/;
138
+ const Ie = /^data:([^;,]+)(?:;([^,]+))?,(.+)$/;
139
139
  function at(e) {
140
- return Te.test(e);
140
+ return Ie.test(e);
141
141
  }
142
- function N(e) {
142
+ function P(e) {
143
143
  if (!e)
144
144
  return;
145
- const t = e.match(Te);
145
+ const t = e.match(Ie);
146
146
  if (!t)
147
147
  return;
148
148
  const [, a, n, r] = t;
@@ -152,12 +152,12 @@ function N(e) {
152
152
  encoding: n
153
153
  };
154
154
  }
155
- function Ce({ data: e, mimeType: t, encoding: a = "text" }) {
155
+ function Te({ data: e, mimeType: t, encoding: a = "text" }) {
156
156
  const n = a === "base64" ? btoa(e) : encodeURI(e);
157
157
  return `data:${a === "base64" ? `${t};base64` : t},${n}`;
158
158
  }
159
159
  function rt(e, t) {
160
- const a = N(e);
160
+ const a = P(e);
161
161
  if (!a)
162
162
  return;
163
163
  let n = a.data.length;
@@ -172,7 +172,7 @@ function rt(e, t) {
172
172
  });
173
173
  }
174
174
  function ee(e, t = "temp") {
175
- const a = N(e);
175
+ const a = P(e);
176
176
  return {
177
177
  fileId: "temp",
178
178
  displayName: t,
@@ -181,24 +181,24 @@ function ee(e, t = "temp") {
181
181
  };
182
182
  }
183
183
  async function ot(e, t) {
184
- const a = N(e);
184
+ const a = P(e);
185
185
  if (!a)
186
186
  return e;
187
187
  const n = a.mimeType;
188
- if (n === w.TEXT) {
189
- const r = V(M * 20, M, 1);
188
+ if (n === R.TEXT) {
189
+ const r = z(M * 20, M, 1);
190
190
  nt(r, a.data, "black", t, "white");
191
191
  const o = J(r, "white");
192
192
  return (o == null ? void 0 : o.toDataURL("image/jpeg", 0.7)) ?? null;
193
193
  }
194
- if (n === w.POINTS) {
194
+ if (n === R.POINTS) {
195
195
  const r = Le(e);
196
196
  if (!r)
197
197
  return null;
198
198
  const o = r.map((u) => ({
199
199
  ...u,
200
200
  penColor: "black"
201
- })), i = V(M * 20, M, Math.max(window.devicePixelRatio || 1, 1));
201
+ })), i = z(M * 20, M, Math.max(window.devicePixelRatio || 1, 1));
202
202
  new he(i).fromData(o);
203
203
  const c = J(i);
204
204
  return c ? de(c, void 0, M, "white").toDataURL("image/jpeg", 0.7) : null;
@@ -221,9 +221,9 @@ const it = ({ value: e, onChange: t, target: a }) => {
221
221
  }, [
222
222
  e
223
223
  ]);
224
- const d = I(() => {
224
+ const d = C(() => {
225
225
  c.current && (clearTimeout(c.current), c.current = null);
226
- }, []), 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) => {
227
227
  try {
228
228
  const p = (E == null ? void 0 : E.url) ?? "";
229
229
  if (at(p)) {
@@ -248,7 +248,7 @@ const it = ({ value: e, onChange: t, target: a }) => {
248
248
  t
249
249
  ]);
250
250
  return {
251
- handleChange: I((E) => {
251
+ handleChange: C((E) => {
252
252
  const p = (L) => {
253
253
  c.current = setTimeout(() => m(L), 1500);
254
254
  };
@@ -274,20 +274,20 @@ const it = ({ value: e, onChange: t, target: a }) => {
274
274
  if (o == null)
275
275
  return b.DRAW;
276
276
  switch (i == null ? void 0 : i.mimeType) {
277
- case w.POINTS:
277
+ case R.POINTS:
278
278
  return b.DRAW;
279
- case w.TEXT:
279
+ case R.TEXT:
280
280
  return b.TYPE;
281
281
  default:
282
282
  return b.UPLOAD;
283
283
  }
284
- }), { setFormStatus: d } = ge(), u = I(() => {
284
+ }), { setFormStatus: d } = ge(), u = C(() => {
285
285
  r(), d(e, G.BUSY);
286
286
  }, [
287
287
  r,
288
288
  d,
289
289
  e
290
- ]), f = I(() => {
290
+ ]), f = C(() => {
291
291
  r(), n(null), d(e, G.READY);
292
292
  }, [
293
293
  r,
@@ -297,13 +297,13 @@ const it = ({ value: e, onChange: t, target: a }) => {
297
297
  ]), m = o != null, h = ut(l, o, i), E = (() => {
298
298
  switch (l) {
299
299
  case b.DRAW:
300
- return S.DRAW;
300
+ return x.DRAW;
301
301
  case b.TYPE:
302
- return S.TYPE;
302
+ return x.TYPE;
303
303
  case b.UPLOAD:
304
- return h != null ? S.IMAGE : S.UPLOAD;
304
+ return h != null ? x.IMAGE : x.UPLOAD;
305
305
  default:
306
- return S.DRAW;
306
+ return x.DRAW;
307
307
  }
308
308
  })();
309
309
  return {
@@ -319,28 +319,28 @@ const it = ({ value: e, onChange: t, target: a }) => {
319
319
  handleClear: f
320
320
  };
321
321
  }, ct = {
322
- [b.DRAW]: (e) => (e == null ? void 0 : e.mimeType) === w.POINTS,
323
- [b.TYPE]: (e) => (e == null ? void 0 : e.mimeType) === w.TEXT,
324
- [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
325
325
  };
326
326
  function ut(e, t, a) {
327
327
  return t && ct[e](a) ? t : void 0;
328
328
  }
329
329
  const dt = (e) => {
330
- const t = e.url ? N(e.url) : void 0;
331
- 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;
332
332
  }, te = () => {
333
- 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({
334
334
  within: !0
335
335
  });
336
336
  return {
337
- ...Se(e, a),
337
+ ...xe(e, a),
338
338
  "data-hovered": t || void 0,
339
339
  "data-focus-within": n || void 0,
340
340
  "data-focus-visible": r || void 0
341
341
  };
342
342
  }, g = ({ children: e }) => {
343
- 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);
344
344
  return /* @__PURE__ */ s.createElement(a, {
345
345
  fieldId: t,
346
346
  renderLabel: () => n,
@@ -352,7 +352,7 @@ const dt = (e) => {
352
352
  target: n,
353
353
  value: t,
354
354
  onChange: a
355
- }), h = T(e, Z.Header), E = T(e, Z.Value), p = {
355
+ }), h = I(e, Z.Header), E = I(e, Z.Value), p = {
356
356
  signatureMode: o,
357
357
  setSignatureMode: i,
358
358
  handleClear: l,
@@ -364,7 +364,7 @@ const dt = (e) => {
364
364
  };
365
365
  return /* @__PURE__ */ s.createElement(s.Fragment, null, !r && F(h, p), F(E, p));
366
366
  }, X = ({ children: e, className: t, ...a }) => {
367
- 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);
368
368
  return /* @__PURE__ */ s.createElement("div", {
369
369
  className: t
370
370
  }, F(c, {
@@ -375,14 +375,14 @@ const dt = (e) => {
375
375
  handleClear: i
376
376
  }));
377
377
  }, _ = ({ children: e, className: t, ...a }) => {
378
- 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) => {
379
379
  r(h);
380
380
  }, [
381
381
  r
382
382
  ]), u = {
383
- [b.DRAW]: T(e, _.Draw),
384
- [b.TYPE]: T(e, _.Type),
385
- [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
386
386
  }, f = u[n], m = mt(f) ? f.props.description : void 0;
387
387
  return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
388
388
  role: "status",
@@ -403,10 +403,10 @@ const dt = (e) => {
403
403
  "data-hook": Ze.SIGNATURE_FIELD_MODE_SELECT,
404
404
  className: t
405
405
  }, u[b.DRAW], u[b.TYPE], u[b.UPLOAD]));
406
- }, 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, {
407
407
  value: e,
408
408
  "aria-label": n
409
- }, /* @__PURE__ */ s.createElement(Ne, {
409
+ }, /* @__PURE__ */ s.createElement(Pe, {
410
410
  "data-hook": `signature-mode-${e}`,
411
411
  className: a
412
412
  }, t)), pt = (e) => /* @__PURE__ */ s.createElement(ne, {
@@ -428,15 +428,15 @@ const dt = (e) => {
428
428
  "data-hook": `clear-${i}`,
429
429
  className: t
430
430
  }, e);
431
- }, P = ({ 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 = 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);
433
433
  return /* @__PURE__ */ s.createElement("div", {
434
434
  className: t,
435
435
  "data-hook": "signature-input",
436
436
  "data-invalid": f,
437
437
  "data-disabled": l,
438
438
  "data-readonly": c
439
- }, n === S.DRAW && F(m, {
439
+ }, n === x.DRAW && F(m, {
440
440
  value: r,
441
441
  onChange: o,
442
442
  onBeforeChange: i,
@@ -444,7 +444,7 @@ const dt = (e) => {
444
444
  readOnly: c,
445
445
  onBlur: d,
446
446
  onFocus: u
447
- }), n === S.TYPE && F(h, {
447
+ }), n === x.TYPE && F(h, {
448
448
  value: r,
449
449
  onChange: o,
450
450
  onBeforeChange: i,
@@ -452,7 +452,7 @@ const dt = (e) => {
452
452
  readOnly: c,
453
453
  onBlur: d,
454
454
  onFocus: u
455
- }), (n === S.UPLOAD || n === S.IMAGE) && F(E, {
455
+ }), (n === x.UPLOAD || n === x.IMAGE) && F(E, {
456
456
  value: r,
457
457
  onChange: o,
458
458
  onBeforeChange: i,
@@ -462,42 +462,42 @@ const dt = (e) => {
462
462
  onFocus: u
463
463
  }));
464
464
  }, Et = ({ className: e, emptyLabel: t, signedLabel: a, ...n }) => {
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), x = r == null ? void 0 : r.url, [U, Y] = K(!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);
466
466
  Ee(() => {
467
467
  var D;
468
468
  (D = L.current) == null || D.focus();
469
469
  }, f);
470
- const R = De(() => ({
470
+ const w = De(() => ({
471
471
  throttle: 0,
472
472
  dotSize: 2,
473
473
  minWidth: 1,
474
474
  maxWidth: 3,
475
475
  velocityFilterWeight: 0.2
476
- }), []), oe = I(() => {
476
+ }), []), oe = C(() => {
477
477
  var O, k, $;
478
478
  if ((O = p.current) != null && O.isEmpty())
479
479
  return "";
480
480
  const D = (k = p.current) == null ? void 0 : k.toData();
481
481
  return D ? et(D) : (($ = p.current) == null ? void 0 : $.toDataURL()) ?? "";
482
- }, []), q = I(() => {
482
+ }, []), q = C(() => {
483
483
  var O;
484
484
  const D = (O = p.current) == null ? void 0 : O.isEmpty();
485
485
  Y(!D), o(ee(oe()));
486
486
  }, [
487
487
  oe,
488
488
  o
489
- ]), j = I(() => {
489
+ ]), j = C(() => {
490
490
  i == null || i();
491
491
  }, [
492
492
  i
493
- ]), Ie = I((D) => {
493
+ ]), Ce = C((D) => {
494
494
  var k, $, se, ie;
495
495
  if (D != null) {
496
496
  if (L.current = D, p.current = new he(D, {
497
- ...R,
497
+ ...w,
498
498
  penColor: getComputedStyle(D).color || void 0
499
- }), me(L.current, p.current), x) {
500
- const le = Le(x);
499
+ }), me(L.current, p.current), S) {
500
+ const le = Le(S);
501
501
  le && (p.current.fromData(le), Y(!0));
502
502
  } else
503
503
  p.current.clear(), Y(!1);
@@ -507,8 +507,8 @@ const dt = (e) => {
507
507
  } else
508
508
  ($ = y.current) == null || $.disconnect(), (se = p.current) == null || se.removeEventListener("endStroke", q), (ie = p.current) == null || ie.removeEventListener("beginStroke", j);
509
509
  }, [
510
- R,
511
- x,
510
+ w,
511
+ S,
512
512
  j,
513
513
  q
514
514
  ]);
@@ -521,11 +521,11 @@ const dt = (e) => {
521
521
  className: e,
522
522
  ...E
523
523
  }, /* @__PURE__ */ s.createElement("canvas", {
524
- ref: Ie,
524
+ ref: Ce,
525
525
  id: m,
526
526
  "data-hook": "signature-canvas",
527
527
  "data-input-id": m,
528
- "data-has-value": !!x,
528
+ "data-has-value": !!S,
529
529
  onFocus: u,
530
530
  onBlur: d,
531
531
  role: "img",
@@ -533,35 +533,35 @@ const dt = (e) => {
533
533
  "aria-describedby": h
534
534
  }));
535
535
  }, ae = ({ children: e, className: t, ...a }) => {
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 ? 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 ?? {
537
537
  data: ""
538
538
  };
539
539
  Ee(() => {
540
- const R = document.getElementById(h);
541
- R == null || R.focus({
540
+ const w = document.getElementById(h);
541
+ w == null || w.focus({
542
542
  preventScroll: !0
543
543
  });
544
544
  }, u), Q(() => {
545
545
  if (!n) {
546
- const R = document.getElementById(h);
547
- R && (R.value = "");
546
+ const w = document.getElementById(h);
547
+ w && (w.value = "");
548
548
  }
549
549
  }, [
550
550
  n,
551
551
  h
552
552
  ]);
553
- const U = I((R) => {
554
- o == null || o(), R.trim() ? r(ee(Ce({
555
- data: R,
556
- mimeType: w.TEXT
553
+ const U = C((w) => {
554
+ o == null || o(), w.trim() ? r(ee(Te({
555
+ data: w,
556
+ mimeType: R.TEXT
557
557
  }))) : r(null);
558
558
  }, [
559
559
  o,
560
560
  r
561
- ]), Y = T(e, ae.Value);
561
+ ]), Y = I(e, ae.Value);
562
562
  return /* @__PURE__ */ s.createElement(Ae, {
563
563
  "aria-labelledby": p,
564
- value: x,
564
+ value: S,
565
565
  onChange: U,
566
566
  onBlur: c,
567
567
  onFocus: d,
@@ -589,16 +589,16 @@ const dt = (e) => {
589
589
  }, bt = {
590
590
  display: "none"
591
591
  }, re = ({ children: e, className: t, imageAlt: a, ...n }) => {
592
- 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) => {
593
593
  const y = L.target.files;
594
594
  if (!y || y.length === 0) {
595
595
  o(null);
596
596
  return;
597
597
  }
598
- const x = y[0], U = new FileReader();
598
+ const S = y[0], U = new FileReader();
599
599
  U.onload = function() {
600
- o(ee(this.result, x.name));
601
- }, U.readAsDataURL(x);
600
+ o(ee(this.result, S.name));
601
+ }, U.readAsDataURL(S);
602
602
  }, [
603
603
  o
604
604
  ]), p = r && dt(r);
@@ -631,7 +631,7 @@ const dt = (e) => {
631
631
  "data-hook": "signature-image"
632
632
  }, r.displayName || a)));
633
633
  }, yt = ({ children: e, className: t, ...a }) => {
634
- 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(() => {
635
635
  var h;
636
636
  (h = n.current) == null || h.click();
637
637
  }, [
@@ -651,23 +651,23 @@ const dt = (e) => {
651
651
  id: f
652
652
  }, e));
653
653
  };
654
- g.Label = Ve;
654
+ g.Label = ze;
655
655
  g.Input = Z;
656
656
  g.Description = $e;
657
- g.Error = ze;
657
+ g.Error = Ve;
658
658
  Z.Header = X;
659
- Z.Value = P;
659
+ Z.Value = N;
660
660
  X.Tabs = _;
661
661
  X.Clear = gt;
662
662
  _.Draw = pt;
663
663
  _.Type = ft;
664
664
  _.Upload = ht;
665
- P.Canvas = Et;
666
- P.Type = ae;
667
- P.Upload = re;
665
+ N.Canvas = Et;
666
+ N.Type = ae;
667
+ N.Upload = re;
668
668
  ae.Value = Lt;
669
669
  re.Button = yt;
670
- const Tt = () => {
670
+ const It = () => {
671
671
  const { t: e } = Me();
672
672
  return {
673
673
  drawLabel: e("field.signature.mode.draw.label"),
@@ -683,7 +683,7 @@ const Tt = () => {
683
683
  imageAlt: e("field.signature.a11y.state.signed"),
684
684
  uploadLabel: e("field.signature.settings.upload-button.label")
685
685
  };
686
- }, Ct = (e) => /* @__PURE__ */ s.createElement("svg", {
686
+ }, Tt = (e) => /* @__PURE__ */ s.createElement("svg", {
687
687
  viewBox: "0 0 24 24",
688
688
  width: 24,
689
689
  height: 24,
@@ -693,7 +693,7 @@ const Tt = () => {
693
693
  }, /* @__PURE__ */ s.createElement("path", {
694
694
  fillRule: "evenodd",
695
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"
696
- })), It = (e) => /* @__PURE__ */ s.createElement("svg", {
696
+ })), Ct = (e) => /* @__PURE__ */ s.createElement("svg", {
697
697
  viewBox: "0 0 24 24",
698
698
  width: 24,
699
699
  height: 24,
@@ -713,7 +713,7 @@ const Tt = () => {
713
713
  }, /* @__PURE__ */ s.createElement("path", {
714
714
  fillRule: "evenodd",
715
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"
716
- })), wt = (e) => /* @__PURE__ */ s.createElement("svg", {
716
+ })), Rt = (e) => /* @__PURE__ */ s.createElement("svg", {
717
717
  viewBox: "0 0 20 20",
718
718
  width: 24,
719
719
  height: 24,
@@ -723,70 +723,70 @@ const Tt = () => {
723
723
  }, /* @__PURE__ */ s.createElement("path", {
724
724
  fillRule: "evenodd",
725
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"
726
- })), 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 = {
727
- 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,
728
728
  tabs: vt,
729
- tab: xt,
730
- tabIcon: St,
729
+ tab: St,
730
+ tabIcon: xt,
731
731
  clear: Ft,
732
732
  value: At,
733
733
  box: _t,
734
- uploadBox: Pt,
735
- typeInput: Nt
736
- }, 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, {
737
737
  content: e,
738
738
  locale: t
739
739
  }), Ot = () => {
740
- const e = Tt();
740
+ const e = It();
741
741
  return /* @__PURE__ */ s.createElement(g, null, /* @__PURE__ */ s.createElement(g.Label, {
742
- className: v(ue, z.label)
742
+ className: v(ue, V.label)
743
743
  }, /* @__PURE__ */ s.createElement(g.Label.Required, {
744
- className: v(We, z.requiredMark)
744
+ className: v(We, V.requiredMark)
745
745
  })), /* @__PURE__ */ s.createElement(g.Input, null, /* @__PURE__ */ s.createElement(g.Input.Header, {
746
- className: C.header
746
+ className: T.header
747
747
  }, /* @__PURE__ */ s.createElement(g.Input.Header.Tabs, {
748
- className: C.tabs
748
+ className: T.tabs
749
749
  }, /* @__PURE__ */ s.createElement(g.Input.Header.Tabs.Draw, {
750
- className: v(B, C.tab),
750
+ className: v(B, T.tab),
751
751
  "aria-label": e.drawLabel,
752
752
  description: e.drawDescription
753
753
  }, /* @__PURE__ */ s.createElement(Dt, {
754
- className: C.tabIcon
754
+ className: T.tabIcon
755
755
  })), /* @__PURE__ */ s.createElement(g.Input.Header.Tabs.Type, {
756
- className: v(B, C.tab),
756
+ className: v(B, T.tab),
757
757
  "aria-label": e.typeLabel,
758
758
  description: e.typeDescription
759
- }, /* @__PURE__ */ s.createElement(wt, {
760
- className: C.tabIcon
759
+ }, /* @__PURE__ */ s.createElement(Rt, {
760
+ className: T.tabIcon
761
761
  })), /* @__PURE__ */ s.createElement(g.Input.Header.Tabs.Upload, {
762
- className: v(B, C.tab),
762
+ className: v(B, T.tab),
763
763
  "aria-label": e.uploadModeLabel,
764
764
  description: e.uploadDescription
765
- }, /* @__PURE__ */ s.createElement(It, {
766
- className: C.tabIcon
765
+ }, /* @__PURE__ */ s.createElement(Ct, {
766
+ className: T.tabIcon
767
767
  }))), /* @__PURE__ */ s.createElement(g.Input.Header.Clear, {
768
- className: v(ue, C.clear),
768
+ className: v(ue, T.clear),
769
769
  "aria-label": e.clearLabel
770
- }, /* @__PURE__ */ s.createElement(Ct, null))), /* @__PURE__ */ s.createElement(g.Input.Value, {
771
- className: C.value
770
+ }, /* @__PURE__ */ s.createElement(Tt, null))), /* @__PURE__ */ s.createElement(g.Input.Value, {
771
+ className: T.value
772
772
  }, /* @__PURE__ */ s.createElement(g.Input.Value.Canvas, {
773
- className: v(B, C.box),
773
+ className: v(B, T.box),
774
774
  emptyLabel: e.emptyLabel,
775
775
  signedLabel: e.signedLabel
776
776
  }), /* @__PURE__ */ s.createElement(g.Input.Value.Type, {
777
- className: v(B, C.box)
777
+ className: v(B, T.box)
778
778
  }, /* @__PURE__ */ s.createElement(g.Input.Value.Type.Value, {
779
- className: C.typeInput,
779
+ className: T.typeInput,
780
780
  placeholder: e.placeholder
781
781
  })), /* @__PURE__ */ s.createElement(g.Input.Value.Upload, {
782
- className: v(B, C.uploadBox),
782
+ className: v(B, T.uploadBox),
783
783
  imageAlt: e.imageAlt
784
784
  }, /* @__PURE__ */ s.createElement(g.Input.Value.Upload.Button, {
785
- className: v(He, z.uploadButton)
785
+ className: v(He, V.uploadButton)
786
786
  }, e.uploadLabel)))), /* @__PURE__ */ s.createElement(g.Error, {
787
- className: v(Ye, z.error)
787
+ className: v(Ye, V.error)
788
788
  }, /* @__PURE__ */ s.createElement(Xe, null), /* @__PURE__ */ s.createElement(g.Error.Text, null)), /* @__PURE__ */ s.createElement(g.Description, {
789
- className: v(ke, z.description)
789
+ className: v(ke, V.description)
790
790
  }, Ut));
791
791
  }, jt = () => /* @__PURE__ */ s.createElement(Ot, null);
792
792
  export {