@wix/form-elements 1.76.0 → 1.78.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 (105) hide show
  1. package/dist/component/{appointment-rac-BQsFMmBg.js → appointment-rac-DWxisWGW.js} +47 -47
  2. package/dist/component/{bookings-address-rac-AJNyTdok.js → bookings-address-rac-BT-VBypp.js} +1 -1
  3. package/dist/component/{bookings-email-rac-BHZ0MFgI.js → bookings-email-rac-CVpK16ZI.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-Bw5FuWNX.js → bookings-first-name-rac-CDe5wve0.js} +1 -1
  5. package/dist/component/{bookings-header-rac-C1M2Pg1f.js → bookings-header-rac-BsMQ2QGm.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DKkPY0CO.js → bookings-last-name-rac-Bpg5n4Dr.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-P6pziSl1.js → bookings-login-bar-rac-DnMB_v13.js} +2 -2
  8. package/dist/component/{bookings-phone-rac-CiOZWKHz.js → bookings-phone-rac-B8FoaVqv.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-D9ZComtY.js → bookings-rich-text-rac-CqD2O9X7.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-4zG3Sf1c.js → checkbox-field-rac-CydYZGle.js} +46 -46
  11. package/dist/component/{checkbox-group-field-headless-DN2aNw9g.js → checkbox-group-field-headless-BdrQjLsc.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-B1qhet83.js → checkbox-group-field-rac-D2mXFpmR.js} +3 -3
  13. package/dist/component/{checkbox-group-rac-DGsE7xGu.js → checkbox-group-rac-CTQRNdXf.js} +1 -1
  14. package/dist/component/{checkbox-rac-CFWQW9_K.js → checkbox-rac-d8u0ahzA.js} +1 -1
  15. package/dist/component/{contacts-address-rac-G5ZH3Odo.js → contacts-address-rac-CJYLD7fU.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-C7TDUfT0.js → contacts-birthdate-rac-BYWcPC9J.js} +1 -1
  17. package/dist/component/{contacts-company-rac-8queUhWT.js → contacts-company-rac-B-hxWRwZ.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CYOs5N_I.js → contacts-email-rac-9M965qjz.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-D8Goc_Ym.js → contacts-first-name-rac-BD6j79WW.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-lBmtuEnr.js → contacts-last-name-rac-DJ3UqnhZ.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-DSUWUNBX.js → contacts-phone-rac-BQo85LSR.js} +1 -1
  22. package/dist/component/{contacts-position-rac-wA-aw5Id.js → contacts-position-rac-D1EEYf-q.js} +1 -1
  23. package/dist/component/contacts-subscribe-rac-D3_UmlB-.js +13 -0
  24. package/dist/component/{contacts-tax-id-rac-BpjVM1Ye.js → contacts-tax-id-rac-BUFbFFLw.js} +1 -1
  25. package/dist/component/{date-availability-CeiMjrtD.js → date-availability-Vtj_pmEf.js} +1 -1
  26. package/dist/component/{date-input-field-rac-CVaajAFM.js → date-input-field-rac-BN7Dec-O.js} +8 -8
  27. package/dist/component/{date-input-rac-DhEzawuM.js → date-input-rac-D0EknjCI.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-1Q6yyNmK.js → date-picker-field-rac-JmIyqlEg.js} +8 -8
  29. package/dist/component/{date-picker-rac-BCGtmXMJ.js → date-picker-rac-CzbmZuUr.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-Dd-HNgKP.js → date-time-input-field-rac-9TAf-9BT.js} +15 -15
  31. package/dist/component/{date-time-input-rac-CsCWEsH5.js → date-time-input-rac-BMC95LdQ.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-CauN5uuV.js → dext-checkbox-group-rac-2IUeY8CX.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-q-g9gDnw.js → dext-checkbox-rac-DC-tLcqg.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CZT3dTLv.js → dext-date-picker-rac-DgQdlofb.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-DVUoZZbX.js → dext-date-time-input-rac-DgU7Nkxk.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-GRltutt5.js → dext-dropdown-rac-BKxqCr4C.js} +1 -1
  37. package/dist/component/{dext-email-rac-74Y8S9GA.js → dext-email-rac-coWG-88b.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-CF9d_GTl.js → dext-number-input-rac--WG5wQFz.js} +1 -1
  39. package/dist/component/{dext-phone-rac-DObx_gOd.js → dext-phone-rac-ikgoCqRF.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-CzU9KX5_.js → dext-radio-group-rac-CSmi7-KP.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-BjRwwgXr.js → dext-rating-input-rac-CrUReQ7k.js} +1 -1
  42. package/dist/component/{dext-tags-rac-Vif4x1yF.js → dext-tags-rac-C0iyj2fA.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-DmZwl_ax.js → dext-text-area-rac-k1bspboS.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-B6FVbjUM.js → dext-text-input-rac-DvapRpAx.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-17Dj3ICM.js → dext-url-input-rac-CAut8IVQ.js} +1 -1
  46. package/dist/component/{donation-rac-bgHep0Xi.js → donation-rac-BOqNDuTc.js} +23 -23
  47. package/dist/component/{dropdown-field-headless-BGfJ1FyZ.js → dropdown-field-headless-CS5wUgQ6.js} +3 -3
  48. package/dist/component/{dropdown-field-rac-DGiysJQY.js → dropdown-field-rac-MRo5oOWE.js} +2 -2
  49. package/dist/component/{dropdown-rac-FHjz8fKp.js → dropdown-rac-BjdsRMD6.js} +1 -1
  50. package/dist/component/{ecom-address-rac-DSbpf4z8.js → ecom-address-rac-DfYVinX3.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-DiZWNwnt.js → ecom-subscription-checkbox-rac-S_Wzz9Jb.js} +3 -3
  52. package/dist/component/{email-input-field-rac-BQKK2O7L.js → email-input-field-rac-Ci2MzEdX.js} +47 -47
  53. package/dist/component/{events-repeater-rac-Dudnyhal.js → events-repeater-rac-DiuDVYBS.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-008H5Ska.js → events-rsvp-rac-Cc27Vkvf.js} +2 -2
  55. package/dist/component/{field-error-headless-C5ZsFUKv.js → field-error-headless-DvmM1k0W.js} +1 -1
  56. package/dist/component/{field-label-headless-CS5OYsiI.js → field-label-headless-DKn04-OM.js} +1 -1
  57. package/dist/component/{file-upload-rac-bQ2QOO8Q.js → file-upload-rac-CB6xdN8j.js} +34 -34
  58. package/dist/component/{fixed-payment-rac-B6FvXoCU.js → fixed-payment-rac-ATi0oywP.js} +4 -4
  59. package/dist/component/{form-BpHElSwH.js → form-_3vjdih8.js} +69 -69
  60. package/dist/component/{form-element-classes-BXNs5k3q.js → form-element-classes-DZiFyihd.js} +37 -33
  61. package/dist/component/form.css +1 -1
  62. package/dist/component/form.js +1 -1
  63. package/dist/component/{header-field-rac-D4UYcmok.js → header-field-rac-pd3cDG5d.js} +3 -3
  64. package/dist/component/{header-rac-KavPiBdn.js → header-rac-fSMu24tQ.js} +1 -1
  65. package/dist/component/{image-choice-rac-BJQqBhBD.js → image-choice-rac-B7kSWlmM.js} +8 -8
  66. package/dist/component/{index-RSEYrQef.js → index-BTVyiZNf.js} +2 -2
  67. package/dist/component/{index-Y8iTxLat.js → index-QsnKRW-J.js} +4 -4
  68. package/dist/component/{isObjectLike-jwHec4Ap.js → isObjectLike-YK6n3FVo.js} +1 -1
  69. package/dist/component/{multiline-address-field-rac-D4Ibno80.js → multiline-address-field-rac-CDKbEU14.js} +37 -37
  70. package/dist/component/{multiline-address-rac-CrTSjzBN.js → multiline-address-rac-DflLsZ5w.js} +1 -1
  71. package/dist/component/{number-input-field-rac-DW1SjB-Z.js → number-input-field-rac-Bc6vH-Nl.js} +7 -7
  72. package/dist/component/{number-input-rac-CdE_hRbA.js → number-input-rac-J3DpYc9U.js} +1 -1
  73. package/dist/component/{password-rac-BCxl5mMQ.js → password-rac-DUsCGTgT.js} +10 -10
  74. package/dist/component/{payment-input-rac-DmO4s4ue.js → payment-input-rac-C7ir9WYG.js} +10 -10
  75. package/dist/component/{phone-input-field-rac-BYAnwk5h.js → phone-input-field-rac-BTCDRtYe.js} +26 -26
  76. package/dist/component/{phone-rac-gS4k9Yn8.js → phone-rac-Dk5FzIxX.js} +1 -1
  77. package/dist/component/{product-list-rac-CO0o3yOg.js → product-list-rac-BnXK6jhc.js} +22 -22
  78. package/dist/component/{quiz-radio-group-rac-Dhk7nkzb.js → quiz-radio-group-rac-BW3Vh-ZF.js} +2 -2
  79. package/dist/component/{radio-group-field-rac-DdlyQ3m6.js → radio-group-field-rac-C7IlBNGI.js} +2 -2
  80. package/dist/component/{radio-group-field-rac.module-emin6sSc.js → radio-group-field-rac.module-BRkiHqU7.js} +3 -3
  81. package/dist/component/{radio-group-rac-B-9q91fJ.js → radio-group-rac-DWJRHfZS.js} +1 -1
  82. package/dist/component/rating-input-field-rac-Bic4P2NB.js +136 -0
  83. package/dist/component/{rating-input-rac-BVO62LmE.js → rating-input-rac-B9M2UXqM.js} +1 -1
  84. package/dist/component/{rich-content-rac.module-CdiaAjxG.js → rich-content-rac.module-CuxZg6ls.js} +1 -1
  85. package/dist/component/{rich-text-field-rac-C4RrbyEX.js → rich-text-field-rac-CLEYP_pZ.js} +3 -3
  86. package/dist/component/{rich-text-rac-BG376ww9.js → rich-text-rac-YRAKNkpJ.js} +1 -1
  87. package/dist/component/{service-dropdown-rac-Dy6-OpVR.js → service-dropdown-rac-Dg4ijvf0.js} +11 -11
  88. package/dist/component/{services-multi-choice-rac-BKW9MP_b.js → services-multi-choice-rac-DcDxYaDU.js} +11 -11
  89. package/dist/component/{signature-rac-Cxgixp4o.js → signature-rac-BDj4xTdv.js} +35 -35
  90. package/dist/component/{submit-button-rac-BqPJ7WPI.js → submit-button-rac-DIigBeH5.js} +2 -2
  91. package/dist/component/{tags-field-rac-wwqpztG7.js → tags-field-rac-CJp9XBhV.js} +15 -15
  92. package/dist/component/{tags-rac-DUxITYxU.js → tags-rac-zlatHQ0n.js} +1 -1
  93. package/dist/component/{text-area-field-rac-Cen6O33S.js → text-area-field-rac-CFm-_Tz9.js} +13 -13
  94. package/dist/component/{text-area-rac-CRlO56GA.js → text-area-rac-BSJfRYEx.js} +1 -1
  95. package/dist/component/{text-input-field-rac-CbnKn03g.js → text-input-field-rac-ZTDIhRqT.js} +2 -2
  96. package/dist/component/{text-input-headless-C_NTJmLe.js → text-input-headless-4hu-GjTm.js} +3 -3
  97. package/dist/component/{text-input-rac-DvwV7Igm.js → text-input-rac-BTx8ELp7.js} +1 -1
  98. package/dist/component/{time-input-rac-TSEXiODs.js → time-input-rac-DmPMNJPn.js} +7 -7
  99. package/dist/component/{url-input-field-rac-Cxgh9T8s.js → url-input-field-rac-BPN4hmYh.js} +14 -14
  100. package/dist/component/{url-input-rac-DNw-Jg1U.js → url-input-rac-CEeg1r2O.js} +1 -1
  101. package/dist/component/{use-element-state-class-name-CC65g9mT.js → use-element-state-class-name-DVT9MJFT.js} +1 -1
  102. package/dist/component/{use-service-options-base-EFrxTpGm.js → use-service-options-base-J4FBFnZH.js} +1 -1
  103. package/package.json +2 -2
  104. package/dist/component/contacts-subscribe-rac-CAbBbFxZ.js +0 -13
  105. package/dist/component/rating-input-field-rac-VDaJKq-n.js +0 -126
@@ -2,19 +2,19 @@ import t, { useMemo as H, useCallback as x, useRef as B } from "react";
2
2
  import { RicosViewer as K } from "@wix/ricos/viewer";
3
3
  import _ from "classnames";
4
4
  import { CheckboxField as $, CheckboxButton as X, NumberField as j, Group as J, Button as U, Input as W } from "react-aria-components";
5
- import { ai as M, af as Y, ab as w, as as Z, ak as ee } from "./form-BpHElSwH.js";
5
+ import { ai as M, af as Y, ab as w, as as Z, ak as ee } from "./form-_3vjdih8.js";
6
6
  import { f as b, a as I } from "./find-child-C60k4CxG.js";
7
- import { L as te, g as ne } from "./field-label-headless-CS5OYsiI.js";
7
+ import { L as te, g as ne } from "./field-label-headless-DKn04-OM.js";
8
8
  import { f as ae } from "./format-currency-BwShJ9vM.js";
9
- import { D as oe, E as re } from "./field-error-headless-C5ZsFUKv.js";
9
+ import { D as oe, E as re } from "./field-error-headless-DvmM1k0W.js";
10
10
  import { F as le } from "./fieldset-headless-CD3fds9J.js";
11
11
  import { a as se, C as ie } from "./checkbox-indicator-module-classes-BcScu147.js";
12
12
  import { g as ce } from "./payment-field-utils-DobiK5Xh.js";
13
13
  import { E as ue } from "./error-icon-hZxQ6DEy.js";
14
14
  import { s as T } from "./field-rac.module-DjmaTYkc.js";
15
- import { z as me, Q as pe, C as de, G as Ee, E as ye, y as fe, p as _e, i as Ie, D as be } from "./form-element-classes-BXNs5k3q.js";
15
+ import { z as me, P as pe, C as de, G as Ee, E as ye, y as fe, p as _e, i as Ie, D as be } from "./form-element-classes-DZiFyihd.js";
16
16
  import { o as Q } from "./options-rac.module-KM-VT_KY.js";
17
- import { u as Oe } from "./use-element-state-class-name-CC65g9mT.js";
17
+ import { u as Oe } from "./use-element-state-class-name-DVT9MJFT.js";
18
18
  var Le = /* @__PURE__ */ (function(e) {
19
19
  return e.crop = "CROP", e.fit = "FIT", e;
20
20
  })({}), k = /* @__PURE__ */ (function(e) {
@@ -30,10 +30,10 @@ const o = ({ children: e }) => {
30
30
  var D;
31
31
  const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: y, onBlur: O, onFocus: s, hasError: u, validation: m, FieldLayout: p } = M(), { inputId: q, labelId: N, ariaDescribedBy: h } = Y(), f = b(e, o.Label), g = b(e, o.Options), v = b(e, o.Description), L = b(e, o.Error), i = H(() => l || [], [
32
32
  l
33
- ]), A = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = x((S, R) => {
34
- const d = i.filter((G) => G.productId !== S.productId), z = R ? [
33
+ ]), A = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = x((P, R) => {
34
+ const d = i.filter((G) => G.productId !== P.productId), z = R ? [
35
35
  ...d,
36
- S
36
+ P
37
37
  ] : d;
38
38
  n == null || n(z);
39
39
  }, [
@@ -65,8 +65,8 @@ const o = ({ children: e }) => {
65
65
  return /* @__PURE__ */ t.createElement("div", {
66
66
  className: a
67
67
  }, u == null ? void 0 : u.map((f, g) => {
68
- var C, A, F, D, S;
69
- const v = ((S = (D = (F = (A = (C = m == null ? void 0 : m.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : A.products) == null ? void 0 : F.find((R) => R.id === f.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0", L = ce(N, q), i = r.find((R) => R.productId === f.value);
68
+ var C, A, F, D, P;
69
+ const v = ((P = (D = (F = (A = (C = m == null ? void 0 : m.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : A.products) == null ? void 0 : F.find((R) => R.id === f.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : P.price) || "0", L = ce(N, q), i = r.find((R) => R.productId === f.value);
70
70
  return I(h, {
71
71
  key: f.id || f.value || f.label,
72
72
  option: f,
@@ -101,7 +101,7 @@ const o = ({ children: e }) => {
101
101
  s,
102
102
  n.value,
103
103
  r
104
- ]), S = x((d) => {
104
+ ]), P = x((d) => {
105
105
  s({
106
106
  productId: n.value,
107
107
  price: r,
@@ -124,7 +124,7 @@ const o = ({ children: e }) => {
124
124
  price: r
125
125
  }) : null, F ? I(F, {
126
126
  quantity: c,
127
- onQuantityChange: S,
127
+ onQuantityChange: P,
128
128
  disabled: u,
129
129
  readOnly: m,
130
130
  hasError: p,
@@ -226,9 +226,9 @@ o.Options = V;
226
226
  o.Option = E;
227
227
  o.Description = oe;
228
228
  o.Error = re;
229
- const Se = "_options_11x4v_1", Pe = "_option_11x4v_1", Ne = "_optionInput_11x4v_21", he = "_optionImage_11x4v_32", ve = "_optionLabel_11x4v_66", Ae = "_optionPrice_11x4v_73", Te = "_quantity_11x4v_87", P = {
230
- options: Se,
231
- option: Pe,
229
+ const Pe = "_options_11x4v_1", Se = "_option_11x4v_1", Ne = "_optionInput_11x4v_21", he = "_optionImage_11x4v_32", ve = "_optionLabel_11x4v_66", Ae = "_optionPrice_11x4v_73", Te = "_quantity_11x4v_87", S = {
230
+ options: Pe,
231
+ option: Se,
232
232
  optionInput: Ne,
233
233
  optionImage: he,
234
234
  optionLabel: ve,
@@ -247,19 +247,19 @@ const Se = "_options_11x4v_1", Pe = "_option_11x4v_1", Ne = "_optionInput_11x4v_
247
247
  }, /* @__PURE__ */ t.createElement(o.Label.Required, {
248
248
  className: _(pe, T.requiredMark)
249
249
  })), /* @__PURE__ */ t.createElement(o.Options, {
250
- className: _(de, Q.options, P.options)
250
+ className: _(de, Q.options, S.options)
251
251
  }, /* @__PURE__ */ t.createElement(o.Option, {
252
- className: _(T.checkbox, P.option)
252
+ className: _(T.checkbox, S.option)
253
253
  }, /* @__PURE__ */ t.createElement(o.Option.Image, {
254
- className: P.optionImage
254
+ className: S.optionImage
255
255
  }), /* @__PURE__ */ t.createElement(o.Option.Label, {
256
- className: _(Ee, Q.optionLabel, P.optionLabel)
256
+ className: _(Ee, Q.optionLabel, S.optionLabel)
257
257
  }), /* @__PURE__ */ t.createElement(o.Option.Price, {
258
- className: _(ye, P.optionPrice)
258
+ className: _(ye, S.optionPrice)
259
259
  }), /* @__PURE__ */ t.createElement(o.Option.Input, {
260
- className: (a) => _(e(a), P.optionInput)
260
+ className: (a) => _(e(a), S.optionInput)
261
261
  }), /* @__PURE__ */ t.createElement(o.Option.Quantity, {
262
- className: _(fe, T.inputGroup, P.quantity)
262
+ className: _(fe, T.inputGroup, S.quantity)
263
263
  }))), /* @__PURE__ */ t.createElement(o.Error, {
264
264
  className: _(_e, T.error)
265
265
  }, /* @__PURE__ */ t.createElement(ue, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
@@ -1,6 +1,6 @@
1
1
  import _ from "react";
2
- import { R } from "./radio-group-field-rac-DdlyQ3m6.js";
3
- import { J as o, I as r, H as O } from "./form-element-classes-BXNs5k3q.js";
2
+ import { R } from "./radio-group-field-rac-C7IlBNGI.js";
3
+ import { J as o, I as r, H as O } from "./form-element-classes-DZiFyihd.js";
4
4
  const t = () => /* @__PURE__ */ _.createElement(R, {
5
5
  classes: {
6
6
  container: O,
@@ -1,10 +1,10 @@
1
1
  import { RicosViewer as s } from "@wix/ricos/viewer";
2
2
  import a from "classnames";
3
3
  import e from "react";
4
- import { R as t, s as r } from "./radio-group-field-rac.module-emin6sSc.js";
4
+ import { R as t, s as r } from "./radio-group-field-rac.module-BRkiHqU7.js";
5
5
  import { E as m } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as l } from "./field-rac.module-DjmaTYkc.js";
7
- import { z as c, Q as i, M as E, L as _, K as R, y as p, p as O, i as L } from "./form-element-classes-BXNs5k3q.js";
7
+ import { z as c, P as i, M as E, L as _, K as R, y as p, p as O, i as L } from "./form-element-classes-DZiFyihd.js";
8
8
  const I = ({ content: o, locale: n }) => /* @__PURE__ */ e.createElement(s, {
9
9
  content: o,
10
10
  locale: n
@@ -1,9 +1,9 @@
1
1
  import s, { useRef as y, useState as V, useEffect as S, useCallback as B } from "react";
2
2
  import { RadioGroup as T, RadioField as k, RadioButton as G, TextField as M, Input as P } from "react-aria-components";
3
- import { ai as C, af as $, as as F, ab as q, ak as x } from "./form-BpHElSwH.js";
3
+ import { ai as C, af as $, as as F, ab as q, ak as x } from "./form-_3vjdih8.js";
4
4
  import { f as d, a as g } from "./find-child-C60k4CxG.js";
5
- import { D as U, E as A } from "./field-error-headless-C5ZsFUKv.js";
6
- import { L as H } from "./field-label-headless-CS5OYsiI.js";
5
+ import { D as U, E as A } from "./field-error-headless-DvmM1k0W.js";
6
+ import { L as H } from "./field-label-headless-DKn04-OM.js";
7
7
  import { N as j } from "./options-layout-constants-DEfIEJWD.js";
8
8
  const L = "Other", w = (e, t) => e == null ? void 0 : e.find((o) => (o.value ?? o.label) === t), R = (e, t) => !!t && !w(e, t), z = (e, t) => {
9
9
  const a = t ? t.length + 2 : 0;
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-DdlyQ3m6.js";
2
+ import { R as r } from "./radio-group-field-rac-C7IlBNGI.js";
3
3
  const R = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  R as RadioGroupRAC
@@ -0,0 +1,136 @@
1
+ import { RicosViewer as N } from "@wix/ricos/viewer";
2
+ import m from "classnames";
3
+ import e, { useCallback as y, useState as O, useRef as A } from "react";
4
+ import { ai as b, af as v, as as T } from "./form-_3vjdih8.js";
5
+ import { RadioGroup as H, RadioField as M, RadioButton as w } from "react-aria-components";
6
+ import { f as u, a as P } from "./find-child-C60k4CxG.js";
7
+ import { D as B, E as q } from "./field-error-headless-DvmM1k0W.js";
8
+ import { L as G } from "./field-label-headless-DKn04-OM.js";
9
+ import { E as k } from "./error-icon-hZxQ6DEy.js";
10
+ import { s as g } from "./field-rac.module-DjmaTYkc.js";
11
+ import { z as x, P as z, N as U, p as Q, i as Z, O as j } from "./form-element-classes-DZiFyihd.js";
12
+ import { u as J } from "./use-element-state-class-name-DVT9MJFT.js";
13
+ const t = ({ children: a }) => {
14
+ const { id: n, value: r, onChange: l, disabled: o, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = b(), { labelId: _ } = v(), L = y((D) => l(Number(D)), [
15
+ l
16
+ ]), f = u(a, t.Label), s = u(a, t.Ratings), S = u(a, t.Description), h = u(a, t.Error);
17
+ return /* @__PURE__ */ e.createElement(R, {
18
+ fieldId: n,
19
+ renderLabel: () => f,
20
+ renderInput: () => /* @__PURE__ */ e.createElement(H, {
21
+ "aria-labelledby": _,
22
+ value: r ? String(r) : void 0,
23
+ onChange: L,
24
+ isDisabled: o,
25
+ isReadOnly: d,
26
+ isRequired: c,
27
+ isInvalid: i,
28
+ onBlur: E,
29
+ onFocus: C,
30
+ orientation: "horizontal"
31
+ }, s),
32
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, S)
33
+ });
34
+ }, I = ({ children: a, className: n, getReactionLabel: r }) => {
35
+ const { value: l, readOnly: o, hasError: d } = b(), { inputId: c, ariaDescribedBy: i } = v(), [E, C] = O(), R = A(null), _ = u(a, I.Rating), L = [
36
+ "1",
37
+ "2",
38
+ "3",
39
+ "4",
40
+ "5"
41
+ ], f = (s) => E && !o ? E >= s : !!l && l >= Number(s);
42
+ return /* @__PURE__ */ e.createElement("div", {
43
+ ref: R,
44
+ id: c,
45
+ "aria-describedby": i,
46
+ className: n,
47
+ "data-invalid": d,
48
+ "data-readonly": o
49
+ }, L.map((s) => P(_, {
50
+ key: s,
51
+ value: s,
52
+ isSelected: f(s),
53
+ onHoverChange: (S) => C(S ? s : void 0),
54
+ label: r == null ? void 0 : r(Number(s))
55
+ })));
56
+ }, K = {
57
+ border: 0,
58
+ clipPath: "inset(50%)",
59
+ height: 1,
60
+ margin: -1,
61
+ overflow: "hidden",
62
+ padding: 0,
63
+ position: "absolute",
64
+ width: 1,
65
+ whiteSpace: "nowrap"
66
+ }, F = ({ className: a, children: n, ...r }) => {
67
+ const { value: l, isSelected: o, onHoverChange: d, label: c } = r;
68
+ return /* @__PURE__ */ e.createElement(M, {
69
+ value: l
70
+ }, /* @__PURE__ */ e.createElement(w, {
71
+ className: ({ isHovered: i }) => typeof a == "function" ? a({
72
+ isSelected: o,
73
+ isHovered: i
74
+ }) : a ?? "",
75
+ "data-active": o || void 0,
76
+ onHoverChange: d
77
+ }, ({ isHovered: i }) => /* @__PURE__ */ e.createElement(e.Fragment, null, typeof n == "function" ? n({
78
+ isSelected: o,
79
+ isHovered: i
80
+ }) : n, c ? /* @__PURE__ */ e.createElement("span", {
81
+ style: K
82
+ }, c) : null)));
83
+ };
84
+ I.Rating = F;
85
+ t.Label = G;
86
+ t.Ratings = I;
87
+ t.Rating = F;
88
+ t.Description = B;
89
+ t.Error = q;
90
+ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
91
+ viewBox: "0 0 32 32",
92
+ width: 32,
93
+ height: 32,
94
+ fill: "currentColor",
95
+ "aria-hidden": "true",
96
+ ...a
97
+ }, /* @__PURE__ */ e.createElement("path", {
98
+ fillRule: "evenodd",
99
+ d: "M28.6265,13.6325 C28.9655,13.3015 29.0845,12.8175 28.9385,12.3665 C28.7925,11.9165 28.4105,11.5945 27.9415,11.5265 L20.5785,10.4565 C20.5015,10.4445 20.4345,10.3965 20.4005,10.3275 L17.1075,3.6545 L17.1075,3.6535 C16.8975,3.2295 16.4735,2.9655 16.0005,2.9655 L15.9995,2.9655 C15.5255,2.9655 15.1025,3.2295 14.8925,3.6545 L11.5985,10.3275 C11.5645,10.3965 11.4985,10.4445 11.4225,10.4565 L4.0575,11.5265 C3.5895,11.5945 3.2075,11.9165 3.0615,12.3665 C2.9155,12.8175 3.0345,13.3015 3.3735,13.6325 L8.7025,18.8265 C8.7575,18.8805 8.7835,18.9585 8.7705,19.0345 L7.5125,26.3695 C7.4325,26.8355 7.6205,27.2985 8.0035,27.5765 C8.2195,27.7345 8.4735,27.8145 8.7285,27.8145 C8.9245,27.8145 9.1215,27.7665 9.3045,27.6705 L15.8895,24.2085 C15.9595,24.1725 16.0415,24.1725 16.1085,24.2075 L22.6955,27.6705 C23.1155,27.8915 23.6135,27.8555 23.9965,27.5765 C24.3795,27.2985 24.5675,26.8355 24.4875,26.3695 L23.2305,19.0355 C23.2165,18.9585 23.2425,18.8805 23.2975,18.8265 L28.6265,13.6325 Z"
100
+ })), X = "_ratings_a5lgi_1", Y = "_rating_a5lgi_1", $ = "_ratingSelected_a5lgi_37", V = "_ratingHover_a5lgi_44", p = {
101
+ ratings: X,
102
+ rating: Y,
103
+ ratingSelected: $,
104
+ ratingHover: V
105
+ }, ee = ({ content: a, locale: n }) => /* @__PURE__ */ e.createElement(N, {
106
+ content: a,
107
+ locale: n
108
+ }), te = {
109
+ base: p.rating,
110
+ selected: p.ratingSelected,
111
+ hover: p.ratingHover
112
+ }, ge = () => {
113
+ const { t: a } = T(), n = J({
114
+ globalClasses: j,
115
+ moduleClasses: te
116
+ });
117
+ return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
118
+ className: m(x, g.label)
119
+ }, /* @__PURE__ */ e.createElement(t.Label.Required, {
120
+ className: m(z, g.requiredMark)
121
+ })), /* @__PURE__ */ e.createElement(t.Ratings, {
122
+ className: m(U, p.ratings),
123
+ getReactionLabel: (r) => a("rating-input.a11y.reaction-label", {
124
+ count: r
125
+ })
126
+ }, /* @__PURE__ */ e.createElement(t.Rating, {
127
+ className: n
128
+ }, /* @__PURE__ */ e.createElement(W, null))), /* @__PURE__ */ e.createElement(t.Error, {
129
+ className: m(Q, g.error)
130
+ }, /* @__PURE__ */ e.createElement(k, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
131
+ className: m(Z, g.description)
132
+ }, ee));
133
+ };
134
+ export {
135
+ ge as R
136
+ };
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-VDaJKq-n.js";
2
+ import { R as e } from "./rating-input-field-rac-Bic4P2NB.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as RatingInputRAC
@@ -1,5 +1,5 @@
1
1
  import c, { useState as u } from "react";
2
- import { ai as a, ab as i, as as T } from "./form-BpHElSwH.js";
2
+ import { ai as a, ab as i, as as T } from "./form-_3vjdih8.js";
3
3
  import { Button as d } from "react-aria-components";
4
4
  import { D as r } from "./data-hooks-Dkw1pbRj.js";
5
5
  import { truncateRichContent as _ } from "@wix/ricos/content";
@@ -1,8 +1,8 @@
1
1
  import l from "classnames";
2
2
  import e from "react";
3
- import { ai as m, L as i, W as u, Z as R } from "./form-BpHElSwH.js";
4
- import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-CdiaAjxG.js";
5
- import { a7 as g } from "./form-element-classes-BXNs5k3q.js";
3
+ import { ai as m, L as i, W as u, Z as R } from "./form-_3vjdih8.js";
4
+ import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-CuxZg6ls.js";
5
+ import { a6 as g } from "./form-element-classes-DZiFyihd.js";
6
6
  const h = {
7
7
  colorPalette: R(),
8
8
  customStyles: u()
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { R as t } from "./rich-text-field-rac-C4RrbyEX.js";
2
+ import { R as t } from "./rich-text-field-rac-CLEYP_pZ.js";
3
3
  const R = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  R as RichTextRAC
@@ -1,16 +1,16 @@
1
- import t, { useRef as P, useMemo as g, useCallback as h, useEffect as T } from "react";
1
+ import t, { useRef as N, useMemo as g, useCallback as h, useEffect as T } from "react";
2
2
  import { RicosViewer as A } from "@wix/ricos/viewer";
3
3
  import m from "classnames";
4
- import { ae as w, as as b, F as M, ai as y, ab as U, h as V } from "./form-BpHElSwH.js";
5
- import { u as x } from "./use-service-options-base-EFrxTpGm.js";
6
- import { D as d } from "./dropdown-field-headless-BGfJ1FyZ.js";
4
+ import { ae as w, as as b, F as M, ai as y, ab as U, h as V } from "./form-_3vjdih8.js";
5
+ import { u as x } from "./use-service-options-base-J4FBFnZH.js";
6
+ import { D as d } from "./dropdown-field-headless-CS5wUgQ6.js";
7
7
  import { C as B } from "./chevron-down-icon-CcpVm6B-.js";
8
8
  import { E as H } from "./error-icon-hZxQ6DEy.js";
9
9
  import { H as k } from "./custom-focus-class-_483Pkwp.js";
10
10
  import { s as n } from "./field-rac.module-DjmaTYkc.js";
11
- import { z as q, Q, y as W, B as z, p as Y, i as j } from "./form-element-classes-BXNs5k3q.js";
11
+ import { z as q, P as W, y as z, B as Q, p as Y, i as j } from "./form-element-classes-DZiFyihd.js";
12
12
  const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
13
- const { actions: r } = w(), { t: C } = b(), { addOther: i, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = P(!0), E = g(() => {
13
+ const { actions: r } = w(), { t: C } = b(), { addOther: i, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = N(!0), E = g(() => {
14
14
  var s;
15
15
  return ((s = e.options) == null ? void 0 : s.map((u) => u.id ?? "")) ?? [];
16
16
  }, [
@@ -72,7 +72,7 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
72
72
  }, [
73
73
  R,
74
74
  e.onFocus
75
- ]), N = h(
75
+ ]), P = h(
76
76
  (s) => {
77
77
  e.onChange && e.onChange(s), a.current = !0;
78
78
  },
@@ -86,7 +86,7 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
86
86
  options: l,
87
87
  isEmpty: D,
88
88
  onFocus: v,
89
- onChange: N,
89
+ onChange: P,
90
90
  shouldRender: I
91
91
  };
92
92
  }, o = ({ children: e }) => {
@@ -123,13 +123,13 @@ const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(A, {
123
123
  }), X = () => /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
124
124
  className: m(q, n.label)
125
125
  }, /* @__PURE__ */ t.createElement(o.Label.Required, {
126
- className: m(Q, n.requiredMark)
126
+ className: m(W, n.requiredMark)
127
127
  })), /* @__PURE__ */ t.createElement(o.Trigger, {
128
- className: m(W, n.input, n.dropdownTrigger)
128
+ className: m(z, n.input, n.dropdownTrigger)
129
129
  }, /* @__PURE__ */ t.createElement(B, {
130
130
  className: n.dropdownIcon
131
131
  })), /* @__PURE__ */ t.createElement(o.Options, {
132
- className: m(z, n.selectPopover, n.dropdownPopover)
132
+ className: m(Q, n.selectPopover, n.dropdownPopover)
133
133
  }, /* @__PURE__ */ t.createElement(o.Options.Option, {
134
134
  className: m(n.selectOption, k)
135
135
  })), /* @__PURE__ */ t.createElement(o.Error, {
@@ -1,15 +1,15 @@
1
1
  import e, { useEffect as _, useMemo as I } from "react";
2
2
  import { RicosViewer as L } from "@wix/ricos/viewer";
3
3
  import r from "classnames";
4
- import { F as R, ai as d, h as D } from "./form-BpHElSwH.js";
5
- import { u as F } from "./use-service-options-base-EFrxTpGm.js";
6
- import { C as a } from "./checkbox-group-field-headless-DN2aNw9g.js";
4
+ import { F as R, ai as d, h as D } from "./form-_3vjdih8.js";
5
+ import { u as F } from "./use-service-options-base-J4FBFnZH.js";
6
+ import { C as a } from "./checkbox-group-field-headless-BdrQjLsc.js";
7
7
  import { E as f } from "./error-icon-hZxQ6DEy.js";
8
8
  import { C as N } from "./checkbox-indicator-module-classes-BcScu147.js";
9
9
  import { s as i } from "./field-rac.module-DjmaTYkc.js";
10
- import { z as h, Q as M, U as b, W as A, y as v, p as T, i as x, V as y } from "./form-element-classes-BXNs5k3q.js";
10
+ import { z as h, P as M, T as b, V as A, y as T, p as v, i as x, U as P } from "./form-element-classes-DZiFyihd.js";
11
11
  import { o as O } from "./options-rac.module-KM-VT_KY.js";
12
- import { u as P } from "./use-element-state-class-name-CC65g9mT.js";
12
+ import { u as y } from "./use-element-state-class-name-DVT9MJFT.js";
13
13
  const k = (s) => {
14
14
  var C;
15
15
  const { isLoading: o, options: n, isEmpty: c, shouldRender: m, setOptions: l, setIsEmpty: E, setHasInitialDataLoaded: p } = F({
@@ -55,8 +55,8 @@ const V = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(L, {
55
55
  content: s,
56
56
  locale: o
57
57
  }), U = () => {
58
- const s = P({
59
- globalClasses: y,
58
+ const s = y({
59
+ globalClasses: P,
60
60
  moduleClasses: N
61
61
  });
62
62
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
@@ -72,13 +72,13 @@ const V = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(L, {
72
72
  }), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
73
73
  className: r(A, O.optionLabel)
74
74
  })), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
75
- inputClassName: r(v, i.input)
75
+ inputClassName: r(T, i.input)
76
76
  }))), /* @__PURE__ */ e.createElement(t.Error, {
77
- className: r(T, i.error)
77
+ className: r(v, i.error)
78
78
  }, /* @__PURE__ */ e.createElement(f, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
79
79
  className: r(x, i.description)
80
80
  }, V));
81
- }, j = () => /* @__PURE__ */ e.createElement(U, null);
81
+ }, J = () => /* @__PURE__ */ e.createElement(U, null);
82
82
  export {
83
- j as ServicesMultiChoiceRAC
83
+ J as ServicesMultiChoiceRAC
84
84
  };
@@ -1,17 +1,17 @@
1
- import s, { useRef as W, useCallback as I, useState as Q, useEffect as K, useMemo as De, isValidElement as we } from "react";
1
+ import s, { useRef as W, useCallback as I, useState as K, useEffect as Q, useMemo as De, isValidElement as we } from "react";
2
2
  import { RicosViewer as Re } from "@wix/ricos/viewer";
3
3
  import v from "classnames";
4
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";
5
+ import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as Pe, RadioField as _e, RadioButton as Ne } from "react-aria-components";
6
6
  import he from "signature_pad";
7
- import { z as Ue, ae as Oe, ab as Be, aq as ge, E as ce, e as G, ai as A, af as H, ak as Ee, as as Me } from "./form-BpHElSwH.js";
7
+ import { z as Ue, ae as Oe, ab as Be, aq as ge, E as ce, e as G, ai as A, af as H, ak as Ee, as as Me } from "./form-_3vjdih8.js";
8
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-C5ZsFUKv.js";
10
- import { L as Ye } from "./field-label-headless-CS5OYsiI.js";
9
+ import { D as We, E as He } from "./field-error-headless-DvmM1k0W.js";
10
+ import { L as Ye } from "./field-label-headless-DKn04-OM.js";
11
11
  import { D as ke } from "./data-hooks-Dkw1pbRj.js";
12
12
  import { E as $e } from "./error-icon-hZxQ6DEy.js";
13
13
  import { s as z } from "./field-rac.module-DjmaTYkc.js";
14
- import { z as ue, Q as ze, y as B, a4 as Ve, p as Ze, i as Xe } from "./form-element-classes-BXNs5k3q.js";
14
+ import { z as ue, P as ze, y as B, a3 as Ve, p as Ze, i as Xe } from "./form-element-classes-DZiFyihd.js";
15
15
  const Ge = typeof s.useId == "function" ? s.useId : () => W(Ue()).current;
16
16
  var w = /* @__PURE__ */ (function(e) {
17
17
  return e.TEXT = "text/plain", e.POINTS = "points/json", e;
@@ -54,14 +54,14 @@ const Je = (e, t) => {
54
54
  const o = (r * t.width + n) * 4;
55
55
  return t.data[o] * 65536 + t.data[o + 1] * 256 + t.data[o + 2] === a;
56
56
  };
57
- }, Qe = (e) => (t, a) => {
57
+ }, Ke = (e) => (t, a) => {
58
58
  const n = (a * e.width + t) * 4;
59
59
  return e.data[n + 3] === 0;
60
60
  };
61
61
  function J(e, t) {
62
62
  const a = e.getContext("2d", {
63
63
  willReadFrequently: !0
64
- }), n = e.width, r = e.height, o = a.getImageData(0, 0, n, r), i = t ? Je(t, o) : Qe(o);
64
+ }), n = e.width, r = e.height, o = a.getImageData(0, 0, n, r), i = t ? Je(t, o) : Ke(o);
65
65
  let l = n + 1, c = -1, d = r + 1, u = -1, f = 0, m = 0;
66
66
  for (m = 0; m < r; m++)
67
67
  for (f = 0; f < n; f++)
@@ -82,7 +82,7 @@ function V(e, t, a) {
82
82
  }
83
83
  return n;
84
84
  }
85
- function Ke(e, t) {
85
+ function Qe(e, t) {
86
86
  return new Promise((a, n) => {
87
87
  const r = new Image();
88
88
  r.onload = () => {
@@ -205,7 +205,7 @@ async function ot(e, t) {
205
205
  return c ? de(c, void 0, M, "white").toDataURL("image/jpeg", 0.7) : null;
206
206
  }
207
207
  if (n != null && n.startsWith("image/")) {
208
- const r = await Ke(e), o = J(r);
208
+ const r = await Qe(e), o = J(r);
209
209
  return o ? de(o, void 0, M).toDataURL("image/jpeg", 0.7) : null;
210
210
  }
211
211
  return e;
@@ -216,8 +216,8 @@ async function st(e, t) {
216
216
  return rt(a, "signature");
217
217
  }
218
218
  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(() => {
219
+ const [n, r] = K(e), { isRTL: o } = Be(), i = qe(a), { setFormStatus: l } = ge(), c = W();
220
+ Q(() => {
221
221
  e === ce && r(ce);
222
222
  }, [
223
223
  e
@@ -271,7 +271,7 @@ const it = ({ value: e, onChange: t, target: a }) => {
271
271
  value: t,
272
272
  onChange: a,
273
273
  target: e
274
- }), [l, c] = Q(() => {
274
+ }), [l, c] = K(() => {
275
275
  if (o == null)
276
276
  return b.DRAW;
277
277
  switch (i == null ? void 0 : i.mimeType) {
@@ -375,15 +375,15 @@ const dt = (e) => {
375
375
  }), o && F(d, {
376
376
  handleClear: i
377
377
  }));
378
- }, _ = ({ children: e, className: t, ...a }) => {
378
+ }, P = ({ children: e, className: t, ...a }) => {
379
379
  const { signatureMode: n, setSignatureMode: r, uploadEnabled: o } = a, { disabled: i } = A(), { labelId: l, inputId: c } = H(), d = I((h) => {
380
380
  r(h);
381
381
  }, [
382
382
  r
383
383
  ]), u = {
384
- [b.DRAW]: T(e, _.Draw),
385
- [b.TYPE]: T(e, _.Type),
386
- [b.UPLOAD]: o ? T(e, _.Upload) : null
384
+ [b.DRAW]: T(e, P.Draw),
385
+ [b.TYPE]: T(e, P.Type),
386
+ [b.UPLOAD]: o ? T(e, P.Upload) : null
387
387
  }, f = u[n], m = mt(f) ? f.props.description : void 0;
388
388
  return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
389
389
  role: "status",
@@ -404,7 +404,7 @@ const dt = (e) => {
404
404
  "data-hook": ke.SIGNATURE_FIELD_MODE_SELECT,
405
405
  className: t
406
406
  }, 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, {
407
+ }, mt = (e) => /* @__PURE__ */ we(e), ne = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(_e, {
408
408
  value: e,
409
409
  "aria-label": n
410
410
  }, /* @__PURE__ */ s.createElement(Ne, {
@@ -429,8 +429,8 @@ const dt = (e) => {
429
429
  "data-hook": `clear-${i}`,
430
430
  className: t
431
431
  }, 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);
432
+ }, _ = ({ 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, _.Canvas), h = T(e, _.Type), E = T(e, _.Upload);
434
434
  return /* @__PURE__ */ s.createElement("div", {
435
435
  className: t,
436
436
  "data-hook": "signature-input",
@@ -463,7 +463,7 @@ const dt = (e) => {
463
463
  onFocus: u
464
464
  }));
465
465
  }, 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);
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] = K(!1);
467
467
  Ee(() => {
468
468
  var D;
469
469
  (D = L.current) == null || D.focus();
@@ -513,7 +513,7 @@ const dt = (e) => {
513
513
  j,
514
514
  q
515
515
  ]);
516
- return K(() => {
516
+ return Q(() => {
517
517
  p.current && (c || l ? p.current.off() : p.current.on());
518
518
  }, [
519
519
  l,
@@ -542,7 +542,7 @@ const dt = (e) => {
542
542
  R == null || R.focus({
543
543
  preventScroll: !0
544
544
  });
545
- }, u), K(() => {
545
+ }, u), Q(() => {
546
546
  if (!n) {
547
547
  const R = document.getElementById(h);
548
548
  R && (R.value = "");
@@ -580,7 +580,7 @@ const dt = (e) => {
580
580
  })));
581
581
  }, Lt = ({ className: e, placeholder: t, ...a }) => {
582
582
  const { inputId: n, ariaDescribedBy: r } = a;
583
- return /* @__PURE__ */ s.createElement(_e, {
583
+ return /* @__PURE__ */ s.createElement(Pe, {
584
584
  id: n,
585
585
  "data-hook": "signature-text",
586
586
  "aria-describedby": r,
@@ -657,15 +657,15 @@ g.Input = Z;
657
657
  g.Description = We;
658
658
  g.Error = He;
659
659
  Z.Header = X;
660
- Z.Value = P;
661
- X.Tabs = _;
660
+ Z.Value = _;
661
+ X.Tabs = P;
662
662
  X.Clear = gt;
663
- _.Draw = pt;
664
- _.Type = ft;
665
- _.Upload = ht;
666
- P.Canvas = Et;
667
- P.Type = ae;
668
- P.Upload = re;
663
+ P.Draw = pt;
664
+ P.Type = ft;
665
+ P.Upload = ht;
666
+ _.Canvas = Et;
667
+ _.Type = ae;
668
+ _.Upload = re;
669
669
  ae.Value = Lt;
670
670
  re.Button = yt;
671
671
  const Tt = () => {
@@ -724,15 +724,15 @@ const Tt = () => {
724
724
  }, /* @__PURE__ */ s.createElement("path", {
725
725
  fillRule: "evenodd",
726
726
  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 = {
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", Pt = "_box_15ti0_118", _t = "_uploadBox_15ti0_119", Nt = "_typeInput_15ti0_230", C = {
728
728
  header: Rt,
729
729
  tabs: vt,
730
730
  tab: xt,
731
731
  tabIcon: St,
732
732
  clear: Ft,
733
733
  value: At,
734
- box: _t,
735
- uploadBox: Pt,
734
+ box: Pt,
735
+ uploadBox: _t,
736
736
  typeInput: Nt
737
737
  }, Ut = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(Re, {
738
738
  content: e,
@@ -1,9 +1,9 @@
1
1
  import t from "react";
2
2
  import l from "classnames";
3
- import { ai as c } from "./form-BpHElSwH.js";
3
+ import { ai as c } from "./form-_3vjdih8.js";
4
4
  import { ProgressBar as g, Button as b } from "react-aria-components";
5
5
  import { f as i } from "./find-child-C60k4CxG.js";
6
- import { a6 as v, a5 as N, a8 as f } from "./form-element-classes-BXNs5k3q.js";
6
+ import { a5 as v, a4 as N, a7 as f } from "./form-element-classes-DZiFyihd.js";
7
7
  function C(e) {
8
8
  const s = "calc(50% - 2px)";
9
9
  return /* @__PURE__ */ t.createElement(g, {