@wix/form-elements 1.145.0 → 1.147.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-De-uH9rz.js → appointment-rac-BG5-bIZU.js} +98 -98
  2. package/dist/component/{bookings-address-rac-DB6QCMQJ.js → bookings-address-rac-8e8PqKsp.js} +1 -1
  3. package/dist/component/{bookings-email-rac-g6ZdB_BO.js → bookings-email-rac-CtlnU8ws.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DQgL_VHl.js → bookings-first-name-rac-CrivNlXM.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DAnIm-Oq.js → bookings-header-rac-DWDAjfqq.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-D62jNdDb.js → bookings-last-name-rac-qAthWem2.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-5z8HfBhU.js → bookings-login-bar-rac-BNyUDqlM.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-D0gu-_wy.js → bookings-phone-rac-Tc39XLr7.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-b4J1HcdI.js → bookings-rich-text-rac-CPNaPtFK.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CmRRc9Dz.js → checkbox-field-rac-DEa78Tpf.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-CB8yAfMe.js → checkbox-group-field-headless-BxBaMg29.js} +68 -68
  12. package/dist/component/{checkbox-group-field-rac-C5gRZRTd.js → checkbox-group-field-rac-CRRP03Qk.js} +7 -7
  13. package/dist/component/{checkbox-group-rac-DNDF1Irh.js → checkbox-group-rac-TOofMGl3.js} +1 -1
  14. package/dist/component/{checkbox-rac-B9vztGBU.js → checkbox-rac-CHMHr8Ry.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CKZeSncj.js → contacts-address-rac-Bc5yDvTL.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BbpNNQgF.js → contacts-birthdate-rac-Ubtg5ncv.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BX2KT201.js → contacts-company-rac-BksH9IoV.js} +1 -1
  18. package/dist/component/{contacts-email-rac-5Irzx1mA.js → contacts-email-rac-DDPEtMAm.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CxKp8_2u.js → contacts-first-name-rac-DUlCvEdx.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BDCbSv5I.js → contacts-last-name-rac-BikqNgUr.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BM_PV_uH.js → contacts-phone-rac-B4OEgM_8.js} +1 -1
  22. package/dist/component/{contacts-position-rac-1aqthQSi.js → contacts-position-rac-BfybzySV.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CdqXs4kp.js → contacts-subscribe-rac-CMHb33v1.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BKHpcDb6.js → contacts-tax-id-rac-C-qEqwO5.js} +1 -1
  25. package/dist/component/{date-availability-DmFFTX8p.js → date-availability-DZ3J3LLm.js} +1 -1
  26. package/dist/component/date-input-field-rac-DeL5vuE7.js +297 -0
  27. package/dist/component/{date-input-rac-BB6qZ16w.js → date-input-rac-Di6TQvFf.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-Ckwu2vD6.js → date-picker-field-rac-BcdpTkjV.js} +107 -103
  29. package/dist/component/{date-picker-rac-DSqzUAaH.js → date-picker-rac-Brne65gr.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DO-iRdkW.js → date-time-input-field-rac-BtQfAxRp.js} +49 -49
  31. package/dist/component/{date-time-input-rac-smVCCxdY.js → date-time-input-rac-DM_HXiqV.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-B8bx3rT2.js → dext-checkbox-group-rac-WTVwhGG0.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-x8VLGRbc.js → dext-checkbox-rac-BR5YwmLQ.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-D2a9NXap.js → dext-date-picker-rac-DvDuRGYi.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-Cp5XjpGv.js → dext-date-time-input-rac-C6RgbaVv.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-nWgEvyxt.js → dext-dropdown-rac-CWjSdcZx.js} +1 -1
  37. package/dist/component/{dext-email-rac-CkX6ya8p.js → dext-email-rac-D-C1gVTq.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-CKT0MS1x.js → dext-number-input-rac-YKzZS2ZG.js} +1 -1
  39. package/dist/component/{dext-phone-rac-DM2E7zW_.js → dext-phone-rac-CFZlEH2a.js} +1 -1
  40. package/dist/component/dext-radio-group-rac-DiH0wIIl.js +18 -0
  41. package/dist/component/{dext-rating-input-rac-CKWNpFuu.js → dext-rating-input-rac-D0s-i0qO.js} +1 -1
  42. package/dist/component/{dext-tags-rac-6AskGGTp.js → dext-tags-rac-Br48OQQ5.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-ClGLD7sD.js → dext-text-area-rac-6jG8gJ7i.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Blbk53d4.js → dext-text-input-rac-FAJTCXuf.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BuitmJU0.js → dext-url-input-rac-BoMP8sQB.js} +1 -1
  46. package/dist/component/{donation-rac-DOifFCD7.js → donation-rac-DNi4p-v5.js} +69 -69
  47. package/dist/component/{dropdown-field-headless-m2P6s7X5.js → dropdown-field-headless-7SCC-xOC.js} +27 -27
  48. package/dist/component/{dropdown-field-rac-5e6wWJBl.js → dropdown-field-rac-CMzZh6J6.js} +8 -9
  49. package/dist/component/{dropdown-rac-BGxE9pJB.js → dropdown-rac-qeugpHXY.js} +1 -1
  50. package/dist/component/{ecom-address-rac-kbD9qW5Y.js → ecom-address-rac-D8b_L5md.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-CE-Yixnj.js → ecom-subscription-checkbox-rac-BnAuR9La.js} +5 -5
  52. package/dist/component/{email-input-field-rac-CbwcB33o.js → email-input-field-rac-CunXRyc5.js} +64 -62
  53. package/dist/component/{events-repeater-rac-CGhUscBr.js → events-repeater-rac-DMjyIOkB.js} +17 -17
  54. package/dist/component/{events-rsvp-rac-AQ33zPTe.js → events-rsvp-rac-BsuDPq2K.js} +8 -8
  55. package/dist/component/{field-error-headless-ClPQ03Jc.js → field-error-headless-E8WjFr_n.js} +6 -6
  56. package/dist/component/{field-label-headless-DhN8Lkuq.js → field-label-headless-BakLOu5E.js} +15 -15
  57. package/dist/component/{file-upload-rac-yTx1ZRhZ.js → file-upload-rac-Clu_c--0.js} +43 -43
  58. package/dist/component/{fixed-payment-rac-nlyxa9nB.js → fixed-payment-rac-CzAXxsb-.js} +12 -12
  59. package/dist/component/{form-D3iU18lh.js → form-DHAKwnLt.js} +3850 -3872
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +2 -2
  62. package/dist/component/{header-field-rac-DAEzcleV.js → header-field-rac-CwmVpz3r.js} +4 -4
  63. package/dist/component/{header-rac-CJZ4qMFg.js → header-rac-ahkGRjSy.js} +1 -1
  64. package/dist/component/{image-choice-rac-BFAMHwPh.js → image-choice-rac-BwxkkdUu.js} +17 -17
  65. package/dist/component/{index-DQW26cnX.js → index-BFi_n6B7.js} +2 -2
  66. package/dist/component/{index-W7GOFnq8.js → index-BQf23zZi.js} +91 -91
  67. package/dist/component/{isObjectLike-CE8eaxSI.js → isObjectLike-DHcMRYYH.js} +15 -15
  68. package/dist/component/{multiline-address-field-rac-FbJO0HFf.js → multiline-address-field-rac-C6xaqNOk.js} +68 -60
  69. package/dist/component/{multiline-address-rac-CI-vt6Pm.js → multiline-address-rac-DF4TFuDx.js} +1 -1
  70. package/dist/component/{number-input-field-rac-BRVAr7LL.js → number-input-field-rac-uVJ3SBv2.js} +27 -27
  71. package/dist/component/{number-input-rac-C8hCiJiu.js → number-input-rac-D6ERhrSM.js} +1 -1
  72. package/dist/component/{password-rac-Baslr6Ga.js → password-rac-CAiC0ZKl.js} +47 -46
  73. package/dist/component/{payment-input-rac-CfJSKxYz.js → payment-input-rac-Bu25xvby.js} +33 -32
  74. package/dist/component/{phone-input-field-rac-Dqh4CXdC.js → phone-input-field-rac-32qUvCsC.js} +46 -45
  75. package/dist/component/{phone-rac-DaLuGuxd.js → phone-rac-mNrpj30q.js} +1 -1
  76. package/dist/component/{product-list-rac-PNMwRBtL.js → product-list-rac-zHdM9rHw.js} +53 -53
  77. package/dist/component/{quiz-radio-group-rac-DN8vY-oM.js → quiz-radio-group-rac-BaSlT8w3.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DlJi9a2f.js → radio-button-module-classes-BdWjkBlX.js} +9 -9
  79. package/dist/component/{radio-group-field-rac-C0tLXhl5.js → radio-group-field-rac-DI0UgTBr.js} +12 -12
  80. package/dist/component/{radio-group-rac-FAk7PYgP.js → radio-group-rac-D2ESG8J4.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-Cl1kH_uu.js → rating-input-field-rac-BYT2XqOK.js} +26 -26
  82. package/dist/component/{rating-input-rac-D9p-0pkI.js → rating-input-rac-D-5CmVAX.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-Dkr46kPC.js → rich-content-rac.module-Dp9Advo9.js} +8 -8
  84. package/dist/component/{rich-text-field-rac-DthhTvTp.js → rich-text-field-rac-COEUwoXQ.js} +4 -4
  85. package/dist/component/{rich-text-rac-DqZX4NeB.js → rich-text-rac-CQZLjBQ0.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-BMOGLU2Z.js → service-dropdown-rac-BTtJVFv8.js} +44 -45
  87. package/dist/component/{services-multi-choice-rac-DcdUewzJ.js → services-multi-choice-rac-hbY3g0Kb.js} +11 -11
  88. package/dist/component/{signature-rac-BRvN6kUW.js → signature-rac-CTCNclwL.js} +67 -67
  89. package/dist/component/{submit-button-rac-B70UC8eS.js → submit-button-rac-kKGeVgsG.js} +25 -25
  90. package/dist/component/{tags-field-rac-NpYyV8X4.js → tags-field-rac-CVf7oQr_.js} +35 -35
  91. package/dist/component/{tags-rac-BMEbpJ-z.js → tags-rac-DiX1_nTT.js} +1 -1
  92. package/dist/component/{text-area-field-rac-BLSrNwJ6.js → text-area-field-rac-IhBNXiDl.js} +22 -22
  93. package/dist/component/{text-area-rac-Cm7aAfIz.js → text-area-rac-DHevCtFF.js} +1 -1
  94. package/dist/component/{text-input-field-rac-BDqV7s0M.js → text-input-field-rac-Da3_wTdh.js} +5 -5
  95. package/dist/component/text-input-headless-DcZRRXCp.js +45 -0
  96. package/dist/component/{text-input-rac-Cc_SkCCS.js → text-input-rac-564LIZ1_.js} +1 -1
  97. package/dist/component/{time-input-rac-DDCiAFe2.js → time-input-rac-p-Nnsxp_.js} +54 -54
  98. package/dist/component/{url-input-field-rac-jen6pbz7.js → url-input-field-rac-DjrcpRtm.js} +27 -26
  99. package/dist/component/{url-input-rac-BWh6udtS.js → url-input-rac-B3brpyop.js} +1 -1
  100. package/dist/component/use-dropdown-trigger-class-name-BWTT7ltv.js +117 -0
  101. package/dist/component/{use-element-state-class-name-B1r_nXW1.js → use-element-state-class-name-CUZuhFvZ.js} +3 -3
  102. package/dist/component/{use-hoverable-input-class-name-B-FhrcyQ.js → use-hoverable-input-class-name-ugX8-g4E.js} +6 -6
  103. package/dist/component/use-is-forced-open-dropdown-DUZMvWpk.js +48 -0
  104. package/dist/component/{use-service-options-base-CTA_43F3.js → use-service-options-base-hqO9Ev38.js} +6 -6
  105. package/dist/component/use-text-input-class-name-wp9dzpEy.js +6 -0
  106. package/dist/form.d.ts +5 -0
  107. package/package.json +2 -2
  108. package/dist/component/date-input-field-rac-BnlAOn12.js +0 -290
  109. package/dist/component/dext-radio-group-rac-Czr5yY3K.js +0 -18
  110. package/dist/component/text-input-headless-B0jcwDev.js +0 -44
  111. package/dist/component/use-dropdown-option-class-name-OD8brKoy.js +0 -115
  112. package/dist/component/use-dropdown-trigger-class-name-BrkmG0ad.js +0 -40
  113. package/dist/component/use-text-input-class-name-BXuk3TK7.js +0 -6
@@ -1,17 +1,16 @@
1
1
  import t, { useRef as T, useMemo as _, useCallback as C, useEffect as b } from "react";
2
2
  import { RicosViewer as w } from "@wix/ricos/viewer";
3
3
  import E from "classnames";
4
- import { bj as P, bx as A, F as M, bn as y, bf as x, ap as V, R as H, $ as U, x as W, G as k, u as q } from "./form-D3iU18lh.js";
5
- import { u as B } from "./use-service-options-base-CTA_43F3.js";
6
- import { D as u } from "./dropdown-field-headless-m2P6s7X5.js";
7
- import { C as j } from "./chevron-down-icon-CcpVm6B-.js";
8
- import { E as G } from "./error-icon-hZxQ6DEy.js";
9
- import { H as Q } from "./custom-focus-class-_483Pkwp.js";
10
- import { s as a } from "./field-rac.module-DfEb7pBp.js";
11
- import { u as Y } from "./use-dropdown-option-class-name-OD8brKoy.js";
12
- import { u as $ } from "./use-dropdown-trigger-class-name-BrkmG0ad.js";
13
- const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
14
- const { actions: o } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), i = T(!0), d = _(() => {
4
+ import { bk as P, by as A, F as y, bo as M, bg as H, aq as V, S as k, a0 as q, y as x, H as U, v as W } from "./form-DHAKwnLt.js";
5
+ import { u as B } from "./use-service-options-base-hqO9Ev38.js";
6
+ import { D as u } from "./dropdown-field-headless-7SCC-xOC.js";
7
+ import { C as Q } from "./chevron-down-icon-CcpVm6B-.js";
8
+ import { E as Y } from "./error-icon-hZxQ6DEy.js";
9
+ import { H as j } from "./custom-focus-class-_483Pkwp.js";
10
+ import { s as i } from "./field-rac.module-DfEb7pBp.js";
11
+ import { a as z, u as G } from "./use-dropdown-trigger-class-name-BWTT7ltv.js";
12
+ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
13
+ const { actions: o } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a = T(!0), d = _(() => {
15
14
  var s;
16
15
  return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
17
16
  }, [
@@ -21,18 +20,18 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
21
20
  {
22
21
  value: c,
23
22
  label: c,
24
- id: z
23
+ id: J
25
24
  }
26
25
  ] : s, [
27
26
  n,
28
27
  c
29
- ]), { isLoading: f, options: l, isEmpty: h, shouldRender: I, setIsLoading: S, setOptions: R, setIsEmpty: g, processOptions: F } = B({
30
- fieldType: M.SERVICES_DROPDOWN,
28
+ ]), { isLoading: f, options: l, isEmpty: S, shouldRender: I, setIsLoading: h, setOptions: R, setIsEmpty: g, processOptions: F } = B({
29
+ fieldType: y.SERVICES_DROPDOWN,
31
30
  isEditor: e.isEditor,
32
31
  postProcessOptions: O
33
32
  }), L = C(async () => {
34
- if (i.current && (o != null && o.fetchServices) && d.length > 0) {
35
- i.current = !1, S(!0);
33
+ if (a.current && (o != null && o.fetchServices) && d.length > 0) {
34
+ a.current = !1, h(!0);
36
35
  let s;
37
36
  try {
38
37
  s = await o.fetchServices({
@@ -45,15 +44,15 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
45
44
  const m = F(s);
46
45
  g(!n && m.length === 0), R(m);
47
46
  } else
48
- i.current = !0;
49
- S(!1);
47
+ a.current = !0;
48
+ h(!1);
50
49
  }
51
50
  }, [
52
51
  o,
53
52
  d,
54
53
  F,
55
54
  n,
56
- S,
55
+ h,
57
56
  R,
58
57
  g
59
58
  ]);
@@ -68,14 +67,14 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
68
67
  g,
69
68
  e.isEditor
70
69
  ]);
71
- const N = C(() => {
72
- e.onFocus && e.onFocus(), i.current && L();
70
+ const v = C(() => {
71
+ e.onFocus && e.onFocus(), a.current && L();
73
72
  }, [
74
73
  L,
75
74
  e.onFocus
76
- ]), v = C(
75
+ ]), N = C(
77
76
  (s) => {
78
- e.onChange && e.onChange(s), i.current = !0;
77
+ e.onChange && e.onChange(s), a.current = !0;
79
78
  },
80
79
  // eslint-disable-next-line react-hooks/exhaustive-deps
81
80
  [
@@ -85,31 +84,31 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
85
84
  return {
86
85
  isLoading: f,
87
86
  options: l,
88
- isEmpty: h,
89
- onFocus: N,
90
- onChange: v,
87
+ isEmpty: S,
88
+ onFocus: v,
89
+ onChange: N,
91
90
  shouldRender: I
92
91
  };
93
92
  }, r = ({ children: e }) => {
94
- const o = y(), { addOther: D } = o, n = x(), p = o.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: i, isEmpty: d, onFocus: O, onChange: f, shouldRender: l } = J({
93
+ const o = M(), { addOther: D } = o, n = H(), p = o.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: d, onFocus: O, onChange: f, shouldRender: l } = K({
95
94
  ...o,
96
95
  isEditor: p
97
- }), h = _(() => ({
96
+ }), S = _(() => ({
98
97
  ...o,
99
- options: c ? [] : i,
98
+ options: c ? [] : a,
100
99
  isLoading: c,
101
100
  onFocus: O,
102
101
  onChange: f
103
102
  }), [
104
103
  o,
105
- i,
104
+ a,
106
105
  c,
107
106
  O,
108
107
  f
109
108
  ]);
110
109
  return !p && d && !D || !l ? null : /* @__PURE__ */ t.createElement(V.Provider, {
111
110
  value: {
112
- v2: h
111
+ v2: S
113
112
  }
114
113
  }, /* @__PURE__ */ t.createElement(u, null, e));
115
114
  };
@@ -118,29 +117,29 @@ r.Trigger = u.Trigger;
118
117
  r.Options = u.Options;
119
118
  r.Description = u.Description;
120
119
  r.Error = u.Error;
121
- const K = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(w, {
120
+ const X = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(w, {
122
121
  content: e,
123
122
  locale: o
124
- }), X = () => {
125
- const e = $(a.dropdownTrigger), o = Y(Q);
123
+ }), Z = () => {
124
+ const e = z(i.dropdownTrigger), o = G(j);
126
125
  return /* @__PURE__ */ t.createElement(r, null, /* @__PURE__ */ t.createElement(r.Label, {
127
- className: E(H, a.label)
126
+ className: E(k, i.label)
128
127
  }, /* @__PURE__ */ t.createElement(r.Label.Required, {
129
- className: E(U, a.requiredMark)
128
+ className: E(q, i.requiredMark)
130
129
  })), /* @__PURE__ */ t.createElement(r.Trigger, {
131
130
  className: e
132
- }, /* @__PURE__ */ t.createElement(j, {
133
- className: a.dropdownIcon
131
+ }, /* @__PURE__ */ t.createElement(Q, {
132
+ className: i.dropdownIcon
134
133
  })), /* @__PURE__ */ t.createElement(r.Options, {
135
- className: E(W, a.selectPopover, a.dropdownPopover)
134
+ className: E(x, i.selectPopover, i.dropdownPopover)
136
135
  }, /* @__PURE__ */ t.createElement(r.Options.Option, {
137
136
  className: o
138
137
  })), /* @__PURE__ */ t.createElement(r.Error, {
139
- className: E(k, a.error)
140
- }, /* @__PURE__ */ t.createElement(G, null), /* @__PURE__ */ t.createElement(r.Error.Text, null)), /* @__PURE__ */ t.createElement(r.Description, {
141
- className: E(q, a.description)
142
- }, K));
143
- }, ue = () => /* @__PURE__ */ t.createElement(X, null);
138
+ className: E(U, i.error)
139
+ }, /* @__PURE__ */ t.createElement(Y, null), /* @__PURE__ */ t.createElement(r.Error.Text, null)), /* @__PURE__ */ t.createElement(r.Description, {
140
+ className: E(W, i.description)
141
+ }, X));
142
+ }, me = () => /* @__PURE__ */ t.createElement(Z, null);
144
143
  export {
145
- ue as ServiceDropdownRAC
144
+ me as ServiceDropdownRAC
146
145
  };
@@ -1,19 +1,19 @@
1
1
  import e, { useEffect as I, useMemo as L } from "react";
2
- import { RicosViewer as R } from "@wix/ricos/viewer";
2
+ import { RicosViewer as S } from "@wix/ricos/viewer";
3
3
  import a from "classnames";
4
- import { F as S, bn as d, ap as D, R as F, $ as N, o as f, q as h, G as b, u as M, p as A } from "./form-D3iU18lh.js";
5
- import { u as v } from "./use-service-options-base-CTA_43F3.js";
6
- import { C as i } from "./checkbox-group-field-headless-CB8yAfMe.js";
4
+ import { F as R, bo as d, aq as D, S as F, a0 as N, o as f, q as h, H as b, v as M, p as A } from "./form-DHAKwnLt.js";
5
+ import { u as v } from "./use-service-options-base-hqO9Ev38.js";
6
+ import { C as i } from "./checkbox-group-field-headless-BxBaMg29.js";
7
7
  import { E as x } from "./error-icon-hZxQ6DEy.js";
8
8
  import { C as P } from "./checkbox-indicator-module-classes-6173wvuW.js";
9
9
  import { s as n } from "./field-rac.module-DfEb7pBp.js";
10
10
  import { o as _ } from "./options-rac.module-_THNq6Qq.js";
11
- import { u as T } from "./use-element-state-class-name-B1r_nXW1.js";
12
- import { u as k } from "./use-text-input-class-name-BXuk3TK7.js";
11
+ import { u as T } from "./use-element-state-class-name-CUZuhFvZ.js";
12
+ import { u as k } from "./use-text-input-class-name-wp9dzpEy.js";
13
13
  const y = (s) => {
14
14
  var C;
15
15
  const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: p } = v({
16
- fieldType: S.SERVICES_MULTI_CHOICE,
16
+ fieldType: R.SERVICES_MULTI_CHOICE,
17
17
  isEditor: s.isEditor
18
18
  }), u = (C = s.options) == null ? void 0 : C.every((O) => O.label && O.id);
19
19
  return I(() => {
@@ -53,10 +53,10 @@ t.Label = i.Label;
53
53
  t.Options = i.Options;
54
54
  t.Description = i.Description;
55
55
  t.Error = i.Error;
56
- const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(R, {
56
+ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
57
57
  content: s,
58
58
  locale: o
59
- }), G = () => {
59
+ }), H = () => {
60
60
  const s = T({
61
61
  globalClasses: A,
62
62
  moduleClasses: P
@@ -80,7 +80,7 @@ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(R, {
80
80
  }, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
81
81
  className: a(M, n.description)
82
82
  }, B));
83
- }, z = () => /* @__PURE__ */ e.createElement(G, null);
83
+ }, J = () => /* @__PURE__ */ e.createElement(H, null);
84
84
  export {
85
- z as ServicesMultiChoiceRAC
85
+ J as ServicesMultiChoiceRAC
86
86
  };
@@ -2,17 +2,17 @@ import s, { useRef as $, useContext as Ae, useMemo as be, useCallback as _, useS
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 { aR as Ue, bh as Te, at as Be, F as Oe, bj as Pe, bf as Me, bv as ye, E as me, aj as oe, bn as x, bk as W, bp as Ce, bx as He, bg as We, R as Ye, $ as Ze, a1 as ke, u as pe, b as Ge, a6 as Ve, a7 as fe, G as $e, a0 as ze, a4 as Xe, a2 as qe, a5 as je, f as ne, a3 as Je } from "./form-D3iU18lh.js";
5
+ import { aS as Ue, bi as Te, au as Be, F as Oe, bk as Pe, bg as Me, bw as ye, E as me, ak as oe, bo as x, bl as W, bq as Ce, by as He, bh as We, S as Ye, a0 as ke, a2 as Ze, v as pe, b as Ve, a7 as Ge, a8 as fe, H as $e, a1 as ze, a5 as Xe, a3 as qe, a6 as je, f as ne, a4 as Je } from "./form-DHAKwnLt.js";
6
6
  import { useHover as Ke, useFocusRing as Qe, mergeProps as et } from "react-aria";
7
7
  import { RadioGroup as tt, Button as Ie, TextField as nt, DropZone as at, Input as ot, FileTrigger as rt, RadioField as st, RadioButton as lt } from "react-aria-components";
8
8
  import _e from "signature_pad";
9
9
  import { f as C, a as A } from "./find-child-C60k4CxG.js";
10
- import { D as it, E as ct } from "./field-error-headless-ClPQ03Jc.js";
11
- import { L as ut } from "./field-label-headless-DhN8Lkuq.js";
10
+ import { D as it, E as ct } from "./field-error-headless-E8WjFr_n.js";
11
+ import { L as ut } from "./field-label-headless-BakLOu5E.js";
12
12
  import { D as dt } from "./data-hooks-Dkw1pbRj.js";
13
13
  import { E as mt } from "./error-icon-hZxQ6DEy.js";
14
14
  import { s as ae } from "./field-rac.module-DfEb7pBp.js";
15
- import { u as X } from "./use-element-state-class-name-B1r_nXW1.js";
15
+ import { u as X } from "./use-element-state-class-name-CUZuhFvZ.js";
16
16
  const pt = typeof s.useId == "function" ? s.useId : () => $(Ue()).current, ft = ({ properties: e }) => e.uploadEnabled === !0, Et = (e, t) => e.fieldType === Oe.SIGNATURE && !e.properties.hidden && !e.properties.disabled && !e.properties.readOnly && (t !== "upload" || ft(e)), gt = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, ht = (e) => {
17
17
  var o;
18
18
  const t = (o = Te().signatureContainer) == null ? void 0 : o.signatureMode, a = Ae(Be);
@@ -24,7 +24,7 @@ const pt = typeof s.useId == "function" ? s.useId : () => $(Ue()).current, ft =
24
24
  t
25
25
  ]) === e ? t : void 0;
26
26
  };
27
- var R = /* @__PURE__ */ (function(e) {
27
+ var S = /* @__PURE__ */ (function(e) {
28
28
  return e.TEXT = "text/plain", e.POINTS = "points/json", e;
29
29
  })({}), y = /* @__PURE__ */ (function(e) {
30
30
  return e.DRAW = "draw", e.TYPE = "type", e.UPLOAD = "upload", e;
@@ -112,12 +112,12 @@ function ge(e, t) {
112
112
  const a = e.getContext("2d"), n = e.offsetWidth, o = e.offsetHeight, r = Math.max(window.devicePixelRatio || 1, 1), l = n * r, i = o * r;
113
113
  return (e.width !== l || e.height !== i) && a ? (e.width = l, e.height = i, a.scale(r, r), t == null || t.redraw(), !0) : !1;
114
114
  }
115
- const V = 480, It = (e) => Se({
115
+ const G = 480, It = (e) => Re({
116
116
  data: JSON.stringify(e),
117
- mimeType: R.POINTS
117
+ mimeType: S.POINTS
118
118
  }), ve = (e) => {
119
119
  const t = Y(e);
120
- if ((t == null ? void 0 : t.mimeType) === R.POINTS)
120
+ if ((t == null ? void 0 : t.mimeType) === S.POINTS)
121
121
  try {
122
122
  return JSON.parse(t.data);
123
123
  } catch {
@@ -125,7 +125,7 @@ const V = 480, It = (e) => Se({
125
125
  }
126
126
  return null;
127
127
  }, he = 0.8, De = "Madefor";
128
- function Re(e, t) {
128
+ function Se(e, t) {
129
129
  const { width: a, actualBoundingBoxAscent: n, actualBoundingBoxDescent: o } = t.measureText(e);
130
130
  return {
131
131
  width: a,
@@ -136,13 +136,13 @@ function Re(e, t) {
136
136
  function _t(e, t) {
137
137
  const a = t.getContext("2d"), n = t.offsetWidth || t.width, r = (t.offsetHeight || t.height) * he, l = n * he;
138
138
  a.font = `${r}px ${De}`;
139
- const { width: i, height: c } = Re(e, a), u = r / (i / l), d = r / (c / r);
139
+ const { width: i, height: c } = Se(e, a), u = r / (i / l), d = r / (c / r);
140
140
  return Math.min(u, d);
141
141
  }
142
142
  function vt(e, t, a = "black", n = !1, o) {
143
143
  const r = e.getContext("2d"), l = _t(t, e);
144
144
  r.font = `${l}px ${De}`, r.textBaseline = "top";
145
- const i = e.offsetWidth || e.width, c = e.offsetHeight || e.height, { width: u, height: d, offsetY: f } = Re(t, r);
145
+ const i = e.offsetWidth || e.width, c = e.offsetHeight || e.height, { width: u, height: d, offsetY: f } = Se(t, r);
146
146
  r.fillStyle = o, r.fillRect(0, 0, i, c), r.fillStyle = a;
147
147
  const m = (i - u) / 2;
148
148
  r.fillText(t, n ? i - m : m, (c - d) / 2 + f);
@@ -164,11 +164,11 @@ function Y(e) {
164
164
  encoding: n
165
165
  };
166
166
  }
167
- function Se({ data: e, mimeType: t, encoding: a = "text" }) {
167
+ function Re({ data: e, mimeType: t, encoding: a = "text" }) {
168
168
  const n = a === "base64" ? btoa(e) : encodeURI(e);
169
169
  return `data:${a === "base64" ? `${t};base64` : t},${n}`;
170
170
  }
171
- function Rt(e, t) {
171
+ function St(e, t) {
172
172
  const a = Y(e);
173
173
  if (!a)
174
174
  return;
@@ -197,34 +197,34 @@ async function Nt(e, t) {
197
197
  if (!a)
198
198
  return e;
199
199
  const n = a.mimeType;
200
- if (n === R.TEXT) {
201
- const o = j(V * 20, V, 1);
200
+ if (n === S.TEXT) {
201
+ const o = j(G * 20, G, 1);
202
202
  vt(o, a.data, "black", t, "white");
203
203
  const r = se(o, "white");
204
204
  return (r == null ? void 0 : r.toDataURL("image/jpeg", 0.7)) ?? null;
205
205
  }
206
- if (n === R.POINTS) {
206
+ if (n === S.POINTS) {
207
207
  const o = ve(e);
208
208
  if (!o)
209
209
  return null;
210
210
  const r = o.map((d) => ({
211
211
  ...d,
212
212
  penColor: "black"
213
- })), l = j(V * 20, V, Math.max(window.devicePixelRatio || 1, 1));
213
+ })), l = j(G * 20, G, Math.max(window.devicePixelRatio || 1, 1));
214
214
  new _e(l).fromData(r);
215
215
  const c = se(l);
216
- return c ? Ee(c, void 0, V, "white").toDataURL("image/jpeg", 0.7) : null;
216
+ return c ? Ee(c, void 0, G, "white").toDataURL("image/jpeg", 0.7) : null;
217
217
  }
218
218
  if (n != null && n.startsWith("image/")) {
219
219
  const o = await Ct(e), r = se(o);
220
- return r ? Ee(r, void 0, V).toDataURL("image/jpeg", 0.7) : null;
220
+ return r ? Ee(r, void 0, G).toDataURL("image/jpeg", 0.7) : null;
221
221
  }
222
222
  return e;
223
223
  }
224
- async function St(e, t) {
224
+ async function Rt(e, t) {
225
225
  const a = await Nt(e, t);
226
226
  if (a)
227
- return Rt(a, "signature");
227
+ return St(a, "signature");
228
228
  }
229
229
  const At = ({ value: e, onChange: t, target: a }) => {
230
230
  const [n, o] = q(e), { isRTL: r } = Me(), l = bt(a), { setFormStatus: i } = ye(), c = $();
@@ -239,7 +239,7 @@ const At = ({ value: e, onChange: t, target: a }) => {
239
239
  try {
240
240
  const p = (h == null ? void 0 : h.url) ?? "";
241
241
  if (Dt(p)) {
242
- const g = await St(p, r);
242
+ const g = await Rt(p, r);
243
243
  if (g) {
244
244
  const E = await l(g);
245
245
  t([
@@ -286,9 +286,9 @@ const At = ({ value: e, onChange: t, target: a }) => {
286
286
  if (r == null)
287
287
  return y.DRAW;
288
288
  switch (l == null ? void 0 : l.mimeType) {
289
- case R.POINTS:
289
+ case S.POINTS:
290
290
  return y.DRAW;
291
- case R.TEXT:
291
+ case S.TEXT:
292
292
  return y.TYPE;
293
293
  default:
294
294
  return y.UPLOAD;
@@ -331,16 +331,16 @@ const At = ({ value: e, onChange: t, target: a }) => {
331
331
  handleClear: f
332
332
  };
333
333
  }, wt = {
334
- [y.DRAW]: (e) => (e == null ? void 0 : e.mimeType) === R.POINTS,
335
- [y.TYPE]: (e) => (e == null ? void 0 : e.mimeType) === R.TEXT,
336
- [y.UPLOAD]: (e) => (e == null ? void 0 : e.mimeType) !== R.POINTS && (e == null ? void 0 : e.mimeType) !== R.TEXT
334
+ [y.DRAW]: (e) => (e == null ? void 0 : e.mimeType) === S.POINTS,
335
+ [y.TYPE]: (e) => (e == null ? void 0 : e.mimeType) === S.TEXT,
336
+ [y.UPLOAD]: (e) => (e == null ? void 0 : e.mimeType) !== S.POINTS && (e == null ? void 0 : e.mimeType) !== S.TEXT
337
337
  };
338
338
  function xt(e, t, a) {
339
339
  return t && wt[e](a) ? t : void 0;
340
340
  }
341
341
  const Ut = (e) => {
342
342
  const t = e.url ? Y(e.url) : void 0;
343
- return t ? t.mimeType !== R.POINTS && t.mimeType !== R.TEXT : !0;
343
+ return t ? t.mimeType !== S.POINTS && t.mimeType !== S.TEXT : !0;
344
344
  }, ce = () => {
345
345
  const { hoverProps: e, isHovered: t } = Ke({}), { focusProps: a, isFocused: n, isFocusVisible: o } = Qe({
346
346
  within: !0
@@ -368,7 +368,7 @@ const Ut = (e) => {
368
368
  target: r,
369
369
  value: n,
370
370
  onChange: o
371
- }), g = C(e, J.Header), E = C(e, J.Value), S = {
371
+ }), g = C(e, J.Header), E = C(e, J.Value), R = {
372
372
  signatureMode: i ?? c,
373
373
  setSignatureMode: u,
374
374
  handleClear: d,
@@ -381,7 +381,7 @@ const Ut = (e) => {
381
381
  return /* @__PURE__ */ s.createElement("div", {
382
382
  className: t,
383
383
  "data-hook": "signature-container"
384
- }, !l && A(g, S), A(E, S));
384
+ }, !l && A(g, R), A(E, R));
385
385
  }, K = ({ children: e, className: t, ...a }) => {
386
386
  const { signatureMode: n, setSignatureMode: o, clearable: r, handleClear: l } = a, { uploadEnabled: i } = x(), c = C(e, K.Tabs), u = C(e, K.Clear);
387
387
  return /* @__PURE__ */ s.createElement("div", {
@@ -481,7 +481,7 @@ const Ut = (e) => {
481
481
  onFocus: d
482
482
  }));
483
483
  }, Yt = ({ className: e, emptyLabel: t, signedLabel: a, ...n }) => {
484
- const { value: o, onChange: r, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: f } = x(), { inputId: m, ariaDescribedBy: L } = W(), h = ce(), p = $(), g = $(), E = $(null), S = o == null ? void 0 : o.url, [Z, P] = q(!1);
484
+ const { value: o, onChange: r, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: f } = x(), { inputId: m, ariaDescribedBy: L } = W(), h = ce(), p = $(), g = $(), E = $(null), R = o == null ? void 0 : o.url, [k, P] = q(!1);
485
485
  Ce(() => {
486
486
  var I;
487
487
  (I = g.current) == null || I.focus();
@@ -505,7 +505,7 @@ const Ut = (e) => {
505
505
  }, [
506
506
  ee,
507
507
  r
508
- ]), k = _(() => {
508
+ ]), Z = _(() => {
509
509
  l == null || l();
510
510
  }, [
511
511
  l
@@ -515,20 +515,20 @@ const Ut = (e) => {
515
515
  if (g.current = I, p.current = new _e(I, {
516
516
  ...v,
517
517
  penColor: getComputedStyle(I).color || void 0
518
- }), ge(g.current, p.current), S) {
519
- const G = ve(S);
520
- G && (p.current.fromData(G), P(!0));
518
+ }), ge(g.current, p.current), R) {
519
+ const V = ve(R);
520
+ V && (p.current.fromData(V), P(!0));
521
521
  } else
522
522
  p.current.clear(), P(!1);
523
- p.current.addEventListener("beginStroke", k), p.current.addEventListener("endStroke", z), typeof ResizeObserver < "u" && !E.current && (E.current = new ResizeObserver(() => {
523
+ p.current.addEventListener("beginStroke", Z), p.current.addEventListener("endStroke", z), typeof ResizeObserver < "u" && !E.current && (E.current = new ResizeObserver(() => {
524
524
  g.current && ge(g.current, p == null ? void 0 : p.current);
525
525
  })), (U = E.current) == null || U.observe(I);
526
526
  } else
527
- (B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", z), (O = p.current) == null || O.removeEventListener("beginStroke", k);
527
+ (B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", z), (O = p.current) == null || O.removeEventListener("beginStroke", Z);
528
528
  }, [
529
529
  v,
530
- S,
531
- k,
530
+ R,
531
+ Z,
532
532
  z
533
533
  ]);
534
534
  return le(() => {
@@ -544,15 +544,15 @@ const Ut = (e) => {
544
544
  id: m,
545
545
  "data-hook": "signature-canvas",
546
546
  "data-input-id": m,
547
- "data-has-value": !!S,
547
+ "data-has-value": !!R,
548
548
  onFocus: d,
549
549
  onBlur: u,
550
550
  role: "img",
551
- "aria-label": Z ? a : t,
551
+ "aria-label": k ? a : t,
552
552
  "aria-describedby": L
553
553
  }));
554
554
  }, de = ({ children: e, className: t, ...a }) => {
555
- const { value: n, onChange: o, onBeforeChange: r, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: f, hasError: m } = x(), { inputId: L, ariaDescribedBy: h, labelId: p } = W(), g = ce(), E = n != null && n.url ? Y(n.url) : void 0, { data: S = "" } = E ?? {
555
+ const { value: n, onChange: o, onBeforeChange: r, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: f, hasError: m } = x(), { inputId: L, ariaDescribedBy: h, labelId: p } = W(), g = ce(), E = n != null && n.url ? Y(n.url) : void 0, { data: R = "" } = E ?? {
556
556
  data: ""
557
557
  };
558
558
  Ce(() => {
@@ -569,10 +569,10 @@ const Ut = (e) => {
569
569
  n,
570
570
  L
571
571
  ]);
572
- const Z = _((v) => {
573
- r == null || r(), v.trim() ? o(ie(Se({
572
+ const k = _((v) => {
573
+ r == null || r(), v.trim() ? o(ie(Re({
574
574
  data: v,
575
- mimeType: R.TEXT
575
+ mimeType: S.TEXT
576
576
  }))) : o(null);
577
577
  }, [
578
578
  r,
@@ -580,8 +580,8 @@ const Ut = (e) => {
580
580
  ]), P = C(e, de.Value);
581
581
  return /* @__PURE__ */ s.createElement(nt, {
582
582
  "aria-labelledby": p,
583
- value: S,
584
- onChange: Z,
583
+ value: R,
584
+ onChange: k,
585
585
  onBlur: c,
586
586
  onFocus: u,
587
587
  isDisabled: l,
@@ -596,7 +596,7 @@ const Ut = (e) => {
596
596
  inputId: L,
597
597
  ariaDescribedBy: h
598
598
  })));
599
- }, Zt = ({ className: e, placeholder: t, ...a }) => {
599
+ }, kt = ({ className: e, placeholder: t, ...a }) => {
600
600
  const { inputId: n, ariaDescribedBy: o } = a;
601
601
  return /* @__PURE__ */ s.createElement(ot, {
602
602
  id: n,
@@ -646,7 +646,7 @@ const Ut = (e) => {
646
646
  onBlur: i,
647
647
  onFocus: c
648
648
  }));
649
- }, kt = ({ className: e, imageAlt: t, ...a }) => {
649
+ }, Zt = ({ className: e, imageAlt: t, ...a }) => {
650
650
  const { value: n } = a, { inputId: o } = W(), r = ce();
651
651
  return /* @__PURE__ */ s.createElement("div", {
652
652
  className: e,
@@ -687,7 +687,7 @@ const Ut = (e) => {
687
687
  onHoverEnd: n,
688
688
  onFocusChange: o
689
689
  }, g));
690
- }, Gt = ({ children: e, className: t, ...a }) => {
690
+ }, Vt = ({ children: e, className: t, ...a }) => {
691
691
  const { textId: n } = a;
692
692
  return /* @__PURE__ */ s.createElement("span", {
693
693
  id: n,
@@ -708,11 +708,11 @@ M.Upload = Ht;
708
708
  H.Canvas = Yt;
709
709
  H.Type = de;
710
710
  H.Upload = Q;
711
- de.Value = Zt;
712
- Q.Preview = kt;
711
+ de.Value = kt;
712
+ Q.Preview = Zt;
713
713
  Q.Button = re;
714
- re.Text = Gt;
715
- const Vt = () => {
714
+ re.Text = Vt;
715
+ const Gt = () => {
716
716
  const { t: e } = He();
717
717
  return {
718
718
  drawLabel: e("field.signature.mode.draw.label"),
@@ -791,18 +791,18 @@ const Vt = () => {
791
791
  content: e,
792
792
  locale: t
793
793
  }), gn = () => {
794
- var k, te, I, w, U, B;
795
- const e = Vt(), { disabled: t, readOnly: a } = x(), n = !t && !a, o = X({
794
+ var Z, te, I, w, U, B;
795
+ const e = Gt(), { disabled: t, readOnly: a } = x(), n = !t && !a, o = X({
796
796
  globalClasses: Je,
797
797
  moduleClasses: {
798
798
  base: T.tab,
799
799
  hover: T.tabHover,
800
800
  selected: T.tabSelected
801
801
  }
802
- }), r = ({ isSelected: D, isHovered: O, isFocused: G }) => o({
802
+ }), r = ({ isSelected: D, isHovered: O, isFocused: V }) => o({
803
803
  isSelected: D,
804
804
  isHovered: O,
805
- isFocused: G,
805
+ isFocused: V,
806
806
  isInteractive: n
807
807
  }), i = X({
808
808
  globalClasses: ze,
@@ -836,19 +836,19 @@ const Vt = () => {
836
836
  base: T.uploadButton,
837
837
  hover: T.uploadButtonHover
838
838
  }
839
- }), m = (B = (U = (w = (I = (te = (k = Te().signatureContainer) == null ? void 0 : k.elementProps) == null ? void 0 : te.signatureDropZone) == null ? void 0 : I.elementProps) == null ? void 0 : w.signatureUploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: h, ...p } = m ?? {}, g = We(ne.SIGNATURE_CONTAINER, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), E = $(null), [S, Z] = q(!1), [P, v] = q(!1), ee = _(() => {
839
+ }), m = (B = (U = (w = (I = (te = (Z = Te().signatureContainer) == null ? void 0 : Z.elementProps) == null ? void 0 : te.signatureDropZone) == null ? void 0 : I.elementProps) == null ? void 0 : w.signatureUploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: h, ...p } = m ?? {}, g = We(ne.SIGNATURE_CONTAINER, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), E = $(null), [R, k] = q(!1), [P, v] = q(!1), ee = _(() => {
840
840
  var D;
841
- Z(!0), (D = E.current) == null || D.runAnimationForward();
841
+ k(!0), (D = E.current) == null || D.runAnimationForward();
842
842
  }, []), z = _(() => {
843
843
  var D;
844
- Z(!1), (D = E.current) == null || D.runAnimationBackward();
844
+ k(!1), (D = E.current) == null || D.runAnimationBackward();
845
845
  }, []);
846
846
  return /* @__PURE__ */ s.createElement(b, null, /* @__PURE__ */ s.createElement(b.Label, {
847
847
  className: F(Ye, ae.label)
848
848
  }, /* @__PURE__ */ s.createElement(b.Label.Required, {
849
- className: F(Ze, ae.requiredMark)
849
+ className: F(ke, ae.requiredMark)
850
850
  })), /* @__PURE__ */ s.createElement(b.Input, {
851
- className: F(ke, T.container)
851
+ className: F(Ze, T.container)
852
852
  }, /* @__PURE__ */ s.createElement(b.Input.Header, {
853
853
  className: T.header
854
854
  }, /* @__PURE__ */ s.createElement(b.Input.Header.Tabs, {
@@ -886,9 +886,9 @@ const Vt = () => {
886
886
  className: T.typeInput,
887
887
  placeholder: e.placeholder
888
888
  })), /* @__PURE__ */ s.createElement(b.Input.Value.Upload, {
889
- className: ({ isHovered: D, isFocused: O, isDropTarget: G }) => F(T.uploadBox, d({
889
+ className: ({ isHovered: D, isFocused: O, isDropTarget: V }) => F(T.uploadBox, d({
890
890
  isSelected: !1,
891
- isHovered: D || G,
891
+ isHovered: D || V,
892
892
  isFocused: O,
893
893
  isInteractive: n
894
894
  }))
@@ -908,10 +908,10 @@ const Vt = () => {
908
908
  }, p.svg ? /* @__PURE__ */ s.createElement(we, {
909
909
  ...p,
910
910
  ref: E,
911
- className: F(Ge, Ve, h)
911
+ className: F(Ve, Ge, h)
912
912
  }) : null, /* @__PURE__ */ s.createElement(b.Input.Value.Upload.Button.Text, {
913
913
  className: F(fe.base, T.uploadButtonLabel, g, {
914
- [fe.hover]: n && (S || P)
914
+ [fe.hover]: n && (R || P)
915
915
  })
916
916
  }, e.uploadLabel))))), /* @__PURE__ */ s.createElement(b.Error, {
917
917
  className: F($e, ae.error)