@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,21 +1,21 @@
1
- import t, { useMemo as G, useCallback as M, useRef as B } from "react";
2
- import { RicosViewer as $ } from "@wix/ricos/viewer";
1
+ import t, { useMemo as $, useCallback as M, useRef as B } from "react";
2
+ import { RicosViewer as z } from "@wix/ricos/viewer";
3
3
  import _ from "classnames";
4
- import { CheckboxField as z, CheckboxButton as X, NumberField as Z, Group as j, Button as U, Input as J } from "react-aria-components";
5
- import { b5 as k, b2 as W, aZ as w, bf as Y, b7 as ee, H as te, T as ne, K as ae, N as oe, M as re, G as le, u as se, p as ie, L as ce } from "./form-0jt4L5xo.js";
6
- import { f as I, a as b } from "./find-child-C60k4CxG.js";
7
- import { L as ue, g as me } from "./field-label-headless-CB8dEat8.js";
4
+ import { CheckboxField as G, CheckboxButton as j, NumberField as X, Group as J, Button as U, Input as W } from "react-aria-components";
5
+ import { b9 as k, b6 as Y, b1 as w, bj as Z, bb as ee, I as te, U as ne, L as ae, O as oe, N as re, H as le, v as se, p as ie, M as ce } from "./form-DC8xFBa_.js";
6
+ import { f as I, a as f } from "./find-child-C60k4CxG.js";
7
+ import { L as ue, g as me } from "./field-label-headless-C8NbnF9M.js";
8
8
  import { f as pe } from "./format-currency-BwShJ9vM.js";
9
- import { D as de, E as Ee } from "./field-error-headless-tsg9FQ-_.js";
9
+ import { D as de, E as Ee } from "./field-error-headless-BLgaEh1d.js";
10
10
  import { F as ye } from "./fieldset-headless-CD3fds9J.js";
11
- import { g as fe } from "./payment-field-utils-DobiK5Xh.js";
11
+ import { g as be } from "./payment-field-utils-DobiK5Xh.js";
12
12
  import { S as _e } from "./selection-indicator-XQ8MYHUQ.js";
13
- import { E as be } from "./error-icon-hZxQ6DEy.js";
13
+ import { E as fe } from "./error-icon-hZxQ6DEy.js";
14
14
  import { C as Ie } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
15
15
  import { s as T } from "./field-rac.module-B4l_0KRU.js";
16
16
  import { o as Q } from "./options-rac.module-CTDdATiz.js";
17
- import { u as Le } from "./use-element-state-class-name-B9MBWX44.js";
18
- var Oe = /* @__PURE__ */ (function(e) {
17
+ import { u as Oe } from "./use-element-state-class-name-BF7I_Ju7.js";
18
+ var Le = /* @__PURE__ */ (function(e) {
19
19
  return e.crop = "CROP", e.fit = "FIT", e;
20
20
  })({}), x = /* @__PURE__ */ (function(e) {
21
21
  return e.oneByOne = "one-by-one", e.onlyOne = "only-one", e.many = "many", e;
@@ -28,7 +28,7 @@ function Ce({ maxItems: e, products: a } = {}) {
28
28
  }
29
29
  const o = ({ children: e }) => {
30
30
  var D;
31
- const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: y, onBlur: L, onFocus: s, hasError: u, validation: m, FieldLayout: p } = k(), { inputId: q, labelId: N, ariaDescribedBy: h } = W(), f = I(e, o.Label), g = I(e, o.Options), v = I(e, o.Description), O = I(e, o.Error), i = G(() => l || [], [
31
+ const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: y, onBlur: O, onFocus: s, hasError: u, validation: m, FieldLayout: p } = k(), { inputId: q, labelId: N, ariaDescribedBy: h } = Y(), b = I(e, o.Label), g = I(e, o.Options), v = I(e, o.Description), L = I(e, o.Error), i = $(() => l || [], [
32
32
  l
33
33
  ]), A = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === x.many, F = M((S, R) => {
34
34
  const d = i.filter((K) => K.productId !== S.productId), H = R ? [
@@ -42,15 +42,15 @@ const o = ({ children: e }) => {
42
42
  ]);
43
43
  return /* @__PURE__ */ t.createElement(p, {
44
44
  fieldId: a,
45
- renderLabel: () => f,
45
+ renderLabel: () => b,
46
46
  renderInput: () => /* @__PURE__ */ t.createElement(ye, {
47
47
  id: q,
48
48
  ariaLabelledBy: N,
49
49
  ariaDescribedBy: h,
50
50
  required: y,
51
- onBlur: L,
51
+ onBlur: O,
52
52
  onFocus: s
53
- }, g ? b(g, {
53
+ }, g ? f(g, {
54
54
  allowMany: A,
55
55
  productValues: i,
56
56
  onProductChange: F,
@@ -58,39 +58,39 @@ const o = ({ children: e }) => {
58
58
  readOnly: c,
59
59
  hasError: u
60
60
  }) : null),
61
- renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, O, v)
61
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, v)
62
62
  });
63
63
  }, V = ({ children: e, className: a, ...l }) => {
64
- const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly: L, hasError: s } = l, { options: u, validation: m, imageResize: p } = k(), { currency: q } = w(), { t: N } = Y(), h = I(e, o.Option);
64
+ const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly: O, hasError: s } = l, { options: u, validation: m, imageResize: p } = k(), { currency: q } = w(), { t: N } = Z(), h = I(e, o.Option);
65
65
  return /* @__PURE__ */ t.createElement("div", {
66
66
  className: a
67
- }, u == null ? void 0 : u.map((f, g) => {
67
+ }, u == null ? void 0 : u.map((b, g) => {
68
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", O = fe(N, q), i = r.find((R) => R.productId === f.value);
70
- return b(h, {
71
- key: f.id || f.value || f.label,
72
- option: f,
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 === b.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0", L = be(N, q), i = r.find((R) => R.productId === b.value);
70
+ return f(h, {
71
+ key: b.id || b.value || b.label,
72
+ option: b,
73
73
  price: v,
74
74
  quantity: i == null ? void 0 : i.quantity,
75
75
  isSelected: !!i,
76
76
  allowMany: n,
77
77
  onProductChange: c,
78
78
  disabled: y,
79
- readOnly: L,
79
+ readOnly: O,
80
80
  hasError: s,
81
- currencyAriaLabel: O,
81
+ currencyAriaLabel: L,
82
82
  imageResize: p,
83
83
  isFirst: g === 0
84
84
  });
85
85
  }));
86
86
  }, E = ({ children: e, className: a, ...l }) => {
87
- const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: L, onProductChange: s, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: q, imageResize: N, isFirst: h } = l, { id: f } = k(), g = B(null), v = B(null), O = I(e, E.Image), i = I(e, E.Label), C = I(e, E.Price), A = I(e, E.Input), F = I(e, E.Quantity);
87
+ const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: O, onProductChange: s, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: q, imageResize: N, isFirst: h } = l, { id: b } = k(), g = B(null), v = B(null), L = I(e, E.Image), i = I(e, E.Label), C = I(e, E.Price), A = I(e, E.Input), F = I(e, E.Quantity);
88
88
  ee(() => {
89
89
  var d;
90
90
  h && ((d = g.current ?? v.current) == null || d.focus({
91
91
  preventScroll: !0
92
92
  }));
93
- }, f);
93
+ }, b);
94
94
  const D = M((d) => {
95
95
  s({
96
96
  productId: n.value,
@@ -112,17 +112,17 @@ const o = ({ children: e }) => {
112
112
  n.value,
113
113
  r
114
114
  ]), R = `${n.label} ${q} ${r}`;
115
- return L ? /* @__PURE__ */ t.createElement("div", {
115
+ return O ? /* @__PURE__ */ t.createElement("div", {
116
116
  className: a,
117
117
  "data-hook": "product"
118
- }, O ? b(O, {
118
+ }, L ? f(L, {
119
119
  option: n,
120
120
  imageResize: N
121
- }) : null, i ? b(i, {
121
+ }) : null, i ? f(i, {
122
122
  label: n.label
123
- }) : null, C ? b(C, {
123
+ }) : null, C ? f(C, {
124
124
  price: r
125
- }) : null, F ? b(F, {
125
+ }) : null, F ? f(F, {
126
126
  quantity: c,
127
127
  onQuantityChange: S,
128
128
  disabled: u,
@@ -130,25 +130,25 @@ const o = ({ children: e }) => {
130
130
  hasError: p,
131
131
  ariaLabel: R,
132
132
  inputRef: h ? v : void 0
133
- }) : null) : /* @__PURE__ */ t.createElement(z, {
133
+ }) : null) : /* @__PURE__ */ t.createElement(G, {
134
134
  isSelected: y,
135
135
  onChange: D,
136
136
  isDisabled: u,
137
137
  isReadOnly: m,
138
138
  isInvalid: p,
139
139
  "aria-label": R
140
- }, /* @__PURE__ */ t.createElement(X, {
140
+ }, /* @__PURE__ */ t.createElement(j, {
141
141
  ref: g,
142
142
  className: a,
143
143
  "data-hook": "product"
144
- }, ({ isHovered: d }) => /* @__PURE__ */ t.createElement(t.Fragment, null, O ? b(O, {
144
+ }, ({ isHovered: d }) => /* @__PURE__ */ t.createElement(t.Fragment, null, L ? f(L, {
145
145
  option: n,
146
146
  imageResize: N
147
- }) : null, i ? b(i, {
147
+ }) : null, i ? f(i, {
148
148
  label: n.label
149
- }) : null, C ? b(C, {
149
+ }) : null, C ? f(C, {
150
150
  price: r
151
- }) : null, b(A, {
151
+ }) : null, f(A, {
152
152
  isSelected: y,
153
153
  isHovered: d
154
154
  }))));
@@ -157,14 +157,14 @@ const o = ({ children: e }) => {
157
157
  const { option: l, imageResize: n } = a, r = (s = l.media) == null ? void 0 : s.image;
158
158
  if (!r)
159
159
  return null;
160
- const c = n === Oe.fit, y = me(r, 96, 96, c ? "fit" : "fill");
160
+ const c = n === Le.fit, y = me(r, 96, 96, c ? "fit" : "fill");
161
161
  if (!y)
162
162
  return null;
163
- const L = r.altText || l.label || "";
163
+ const O = r.altText || l.label || "";
164
164
  return /* @__PURE__ */ t.createElement("img", {
165
165
  className: e,
166
166
  src: y,
167
- alt: L,
167
+ alt: O,
168
168
  "data-fit": c ? "contain" : "cover",
169
169
  "data-hook": "product-image"
170
170
  });
@@ -185,7 +185,7 @@ const o = ({ children: e }) => {
185
185
  "data-hook": "product-price"
186
186
  }, c);
187
187
  }, De = ({ className: e, ...a }) => {
188
- const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError: y, ariaLabel: L, inputRef: s } = a, u = M((p) => {
188
+ const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError: y, ariaLabel: O, inputRef: s } = a, u = M((p) => {
189
189
  n(p < 0 ? 0 : p);
190
190
  }, [
191
191
  n
@@ -194,7 +194,7 @@ const o = ({ children: e }) => {
194
194
  }, [
195
195
  u
196
196
  ]);
197
- return /* @__PURE__ */ t.createElement(Z, {
197
+ return /* @__PURE__ */ t.createElement(X, {
198
198
  value: l,
199
199
  onChange: u,
200
200
  minValue: 0,
@@ -202,14 +202,14 @@ const o = ({ children: e }) => {
202
202
  isDisabled: r,
203
203
  isReadOnly: c,
204
204
  isInvalid: y,
205
- "aria-label": L,
205
+ "aria-label": O,
206
206
  className: e,
207
207
  "data-hook": "product-quantity"
208
- }, /* @__PURE__ */ t.createElement(j, {
208
+ }, /* @__PURE__ */ t.createElement(J, {
209
209
  onKeyDown: m
210
210
  }, /* @__PURE__ */ t.createElement(U, {
211
211
  slot: "decrement"
212
- }, "-"), /* @__PURE__ */ t.createElement(J, {
212
+ }, "-"), /* @__PURE__ */ t.createElement(W, {
213
213
  ref: s
214
214
  }), /* @__PURE__ */ t.createElement(U, {
215
215
  slot: "increment"
@@ -234,11 +234,11 @@ const Se = "_options_11x4v_1", Pe = "_option_11x4v_1", Ne = "_optionInput_11x4v_
234
234
  optionLabel: ve,
235
235
  optionPrice: Ae,
236
236
  quantity: Te
237
- }, qe = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement($, {
237
+ }, qe = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(z, {
238
238
  content: e,
239
239
  locale: a
240
240
  }), Me = () => {
241
- const e = Le({
241
+ const e = Oe({
242
242
  globalClasses: ce,
243
243
  moduleClasses: Ie
244
244
  });
@@ -262,10 +262,10 @@ const Se = "_options_11x4v_1", Pe = "_option_11x4v_1", Ne = "_optionInput_11x4v_
262
262
  className: _(le, T.inputGroup, P.quantity)
263
263
  }))), /* @__PURE__ */ t.createElement(o.Error, {
264
264
  className: _(se, T.error)
265
- }, /* @__PURE__ */ t.createElement(be, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
265
+ }, /* @__PURE__ */ t.createElement(fe, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
266
266
  className: _(ie, T.description)
267
267
  }, qe));
268
- }, Ye = () => /* @__PURE__ */ t.createElement(Me, null);
268
+ }, Ze = () => /* @__PURE__ */ t.createElement(Me, null);
269
269
  export {
270
- Ye as ProductListRAC
270
+ Ze as ProductListRAC
271
271
  };
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-D1aMVO6l.js";
2
+ import { R as r } from "./radio-group-field-rac-BDEAYQH5.js";
3
3
  const i = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  i as QuizRadioGroupRAC
@@ -1,15 +1,15 @@
1
1
  import a, { useRef as S, useState as V, useEffect as T, useCallback as B } from "react";
2
2
  import { RadioGroup as H, RadioField as k, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
3
- import { b5 as v, b2 as $, bf as F, b7 as x } from "./form-0jt4L5xo.js";
3
+ import { b9 as v, b6 as $, bj as F, bb as x } from "./form-DC8xFBa_.js";
4
4
  import { f as u, a as g } from "./find-child-C60k4CxG.js";
5
- import { D as U, E as M } from "./field-error-headless-tsg9FQ-_.js";
6
- import { L as j } from "./field-label-headless-CB8dEat8.js";
5
+ import { D as U, E as j } from "./field-error-headless-BLgaEh1d.js";
6
+ import { L as M } from "./field-label-headless-C8NbnF9M.js";
7
7
  import { S as w } from "./selection-indicator-XQ8MYHUQ.js";
8
8
  const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), y = (e, t) => !!t && !z(e, t), J = (e, t) => {
9
9
  const l = t ? t.length + 2 : 0;
10
10
  return e.slice(l);
11
11
  }, i = ({ children: e, className: t }) => {
12
- const { id: n, value: l, onChange: O, disabled: d, readOnly: f, required: m, onBlur: _, onFocus: b, hasError: r, FieldLayout: c, options: o } = v(), { inputId: h, labelId: C, ariaDescribedBy: I } = $(), s = u(e, i.Label), E = u(e, i.Options), q = u(e, i.Description), D = u(e, i.Error), N = y(o, l) ? L : l || null;
12
+ const { id: n, value: l, onChange: O, disabled: d, readOnly: _, required: m, onBlur: f, onFocus: b, hasError: r, FieldLayout: c, options: o } = v(), { inputId: h, labelId: C, ariaDescribedBy: I } = $(), s = u(e, i.Label), E = u(e, i.Options), q = u(e, i.Description), D = u(e, i.Error), N = y(o, l) ? L : l || null;
13
13
  return /* @__PURE__ */ a.createElement(c, {
14
14
  fieldId: n,
15
15
  renderLabel: () => g(s, {
@@ -23,22 +23,22 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
23
23
  value: N,
24
24
  onChange: O,
25
25
  isDisabled: d,
26
- isReadOnly: f,
26
+ isReadOnly: _,
27
27
  isRequired: m,
28
28
  isInvalid: r,
29
- onBlur: _,
29
+ onBlur: f,
30
30
  onFocus: b
31
31
  }, E),
32
32
  renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, D, q)
33
33
  });
34
34
  }, K = ({ children: e, className: t }) => {
35
- const { options: n, addOther: l, addOtherLabel: O, id: d, numberOfColumns: f, hasError: m } = v(), { t: _ } = F(), b = u(e, i.Option), r = S(null), c = O || _("add-other.default-other-option-label") || L;
35
+ const { options: n, addOther: l, addOtherLabel: O, id: d, numberOfColumns: _, hasError: m } = v(), { t: f } = F(), b = u(e, i.Option), r = S(null), c = O || f("add-other.default-other-option-label") || L;
36
36
  return x(() => {
37
37
  var o;
38
38
  (o = r.current) == null || o.focus();
39
39
  }, d), /* @__PURE__ */ a.createElement("div", {
40
40
  className: t,
41
- "data-columns": f,
41
+ "data-columns": _,
42
42
  "data-invalid": m
43
43
  }, n.map((o, h) => g(b, {
44
44
  key: o.value ?? o.label,
@@ -54,13 +54,13 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
54
54
  }));
55
55
  }, p = ({ children: e, className: t, ...n }) => {
56
56
  var I;
57
- const { value: l, label: O, isOther: d = !1, radioRef: f } = n, { value: m, options: _ } = v(), b = u(e, p.Label), r = u(e, p.Input), c = u(e, p.Control), o = u(e, p.OtherInput), h = d ? y(_, m) : m === l, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
57
+ const { value: l, label: O, isOther: d = !1, radioRef: _ } = n, { value: m, options: f } = v(), b = u(e, p.Label), r = u(e, p.Input), c = u(e, p.Control), o = u(e, p.OtherInput), h = d ? y(f, m) : m === l, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
58
58
  return /* @__PURE__ */ a.createElement("div", {
59
59
  className: t
60
60
  }, /* @__PURE__ */ a.createElement(k, {
61
61
  value: l
62
62
  }, /* @__PURE__ */ a.createElement(A, {
63
- ref: f,
63
+ ref: _,
64
64
  className: C
65
65
  }, ({ isSelected: s, isHovered: E }) => /* @__PURE__ */ a.createElement(a.Fragment, null, g(c, {
66
66
  isSelected: s,
@@ -74,7 +74,7 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
74
74
  className: e
75
75
  }, n);
76
76
  }, W = (e) => null, X = ({ className: e }) => {
77
- const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: O, otherInputCharacterLimit: d, disabled: f, readOnly: m, options: _ } = v(), { t: b } = F(), r = S(null), c = y(_, t), o = l || b("add-other.default-other-option-label") || L, [h, C] = V(c && t ? J(t, l) : "");
77
+ const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: O, otherInputCharacterLimit: d, disabled: _, readOnly: m, options: f } = v(), { t: b } = F(), r = S(null), c = y(f, t), o = l || b("add-other.default-other-option-label") || L, [h, C] = V(c && t ? J(t, l) : "");
78
78
  T(() => {
79
79
  var s;
80
80
  c && r.current && ((s = r.current) == null || s.focus());
@@ -93,7 +93,7 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
93
93
  "aria-label": o,
94
94
  value: h,
95
95
  onChange: I,
96
- isDisabled: f,
96
+ isDisabled: _,
97
97
  isReadOnly: m
98
98
  }, /* @__PURE__ */ a.createElement(P, {
99
99
  ref: r,
@@ -106,11 +106,11 @@ p.Label = Q;
106
106
  p.Input = W;
107
107
  p.Control = w;
108
108
  p.OtherInput = X;
109
- i.Label = j;
109
+ i.Label = M;
110
110
  i.Options = K;
111
111
  i.Option = p;
112
112
  i.Description = U;
113
- i.Error = M;
113
+ i.Error = j;
114
114
  const Y = "_labelImage_t7q71_1", Z = "_group_t7q71_26", ee = "_options_t7q71_30", te = "_option_t7q71_30", oe = "_optionInput_t7q71_57", ne = "_optionControl_t7q71_75", le = "_optionControlHover_t7q71_97", ae = "_optionControlSelected_t7q71_115", re = "_optionLabel_t7q71_150", R = {
115
115
  labelImage: Y,
116
116
  group: Z,
@@ -1,12 +1,12 @@
1
1
  import { RicosViewer as m } from "@wix/ricos/viewer";
2
2
  import t from "classnames";
3
3
  import e from "react";
4
- import { a, s, R as n } from "./radio-button-module-classes-DDJq2ESf.js";
4
+ import { a, s, R as n } from "./radio-button-module-classes-k9DhZ1Fd.js";
5
5
  import { E as c } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as r } from "./field-rac.module-B4l_0KRU.js";
7
- import { H as E, T as i, O as p, P as O, u as R, p as _, Q as I } from "./form-0jt4L5xo.js";
8
- import { u as L } from "./use-element-state-class-name-B9MBWX44.js";
9
- import { u as N } from "./use-text-input-class-name-SnurFqAr.js";
7
+ import { I as E, U as i, P as p, Q as R, v as O, p as _, R as I } from "./form-DC8xFBa_.js";
8
+ import { u as L } from "./use-element-state-class-name-BF7I_Ju7.js";
9
+ import { u as N } from "./use-text-input-class-name-ixt7gTGg.js";
10
10
  const u = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
11
11
  content: o,
12
12
  locale: l
@@ -32,11 +32,11 @@ const u = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
32
32
  }), /* @__PURE__ */ e.createElement(a.Option.Control, {
33
33
  className: o
34
34
  }), /* @__PURE__ */ e.createElement(a.Option.Label, {
35
- className: t(O, s.optionLabel)
35
+ className: t(R, s.optionLabel)
36
36
  }), /* @__PURE__ */ e.createElement(a.Option.OtherInput, {
37
37
  className: l
38
38
  }))), /* @__PURE__ */ e.createElement(a.Error, {
39
- className: t(R, r.error)
39
+ className: t(O, r.error)
40
40
  }, /* @__PURE__ */ e.createElement(c, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
41
41
  className: t(_, r.description)
42
42
  }, u));
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-D1aMVO6l.js";
2
+ import { R as r } from "./radio-group-field-rac-BDEAYQH5.js";
3
3
  const R = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  R as RadioGroupRAC
@@ -1,21 +1,21 @@
1
1
  import { RicosViewer as y } from "@wix/ricos/viewer";
2
2
  import m from "classnames";
3
3
  import e, { useCallback as N, useState as O, useRef as A } from "react";
4
- import { b5 as I, b2 as v, bf as T, H, T as M, R as w, u as B, p as P, S as q } from "./form-0jt4L5xo.js";
4
+ import { b9 as I, b6 as v, bj as T, I as H, U as M, S as w, v as B, p as P, T as q } from "./form-DC8xFBa_.js";
5
5
  import { RadioGroup as G, RadioField as k, RadioButton as x } from "react-aria-components";
6
6
  import { f as u, a as U } from "./find-child-C60k4CxG.js";
7
- import { D as z, E as Q } from "./field-error-headless-tsg9FQ-_.js";
8
- import { L as Z } from "./field-label-headless-CB8dEat8.js";
9
- import { E as j } from "./error-icon-hZxQ6DEy.js";
7
+ import { D as j, E as z } from "./field-error-headless-BLgaEh1d.js";
8
+ import { L as Q } from "./field-label-headless-C8NbnF9M.js";
9
+ import { E as Z } from "./error-icon-hZxQ6DEy.js";
10
10
  import { s as g } from "./field-rac.module-B4l_0KRU.js";
11
- import { u as J } from "./use-element-state-class-name-B9MBWX44.js";
11
+ import { u as J } from "./use-element-state-class-name-BF7I_Ju7.js";
12
12
  const t = ({ children: a }) => {
13
- const { id: n, value: r, onChange: o, disabled: l, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: R, FieldLayout: C } = I(), { labelId: _ } = v(), L = N((D) => o(Number(D)), [
13
+ const { id: n, value: r, onChange: o, disabled: l, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = N((D) => o(Number(D)), [
14
14
  o
15
- ]), f = u(a, t.Label), s = u(a, t.Ratings), S = u(a, t.Description), h = u(a, t.Error);
16
- return /* @__PURE__ */ e.createElement(C, {
15
+ ]), S = u(a, t.Label), s = u(a, t.Ratings), f = u(a, t.Description), h = u(a, t.Error);
16
+ return /* @__PURE__ */ e.createElement(R, {
17
17
  fieldId: n,
18
- renderLabel: () => f,
18
+ renderLabel: () => S,
19
19
  renderInput: () => /* @__PURE__ */ e.createElement(G, {
20
20
  "aria-labelledby": _,
21
21
  value: r ? String(r) : void 0,
@@ -25,21 +25,21 @@ const t = ({ children: a }) => {
25
25
  isRequired: c,
26
26
  isInvalid: i,
27
27
  onBlur: E,
28
- onFocus: R,
28
+ onFocus: C,
29
29
  orientation: "horizontal"
30
30
  }, s),
31
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, S)
31
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, f)
32
32
  });
33
33
  }, b = ({ children: a, className: n, getReactionLabel: r }) => {
34
- const { value: o, readOnly: l, hasError: d } = I(), { inputId: c, ariaDescribedBy: i } = v(), [E, R] = O(), C = A(null), _ = u(a, b.Rating), L = [
34
+ const { value: o, readOnly: l, hasError: d } = I(), { inputId: c, ariaDescribedBy: i } = v(), [E, C] = O(), R = A(null), _ = u(a, b.Rating), L = [
35
35
  "1",
36
36
  "2",
37
37
  "3",
38
38
  "4",
39
39
  "5"
40
- ], f = (s) => E && !l ? E >= s : !!o && o >= Number(s);
40
+ ], S = (s) => E && !l ? E >= s : !!o && o >= Number(s);
41
41
  return /* @__PURE__ */ e.createElement("div", {
42
- ref: C,
42
+ ref: R,
43
43
  id: c,
44
44
  "aria-describedby": i,
45
45
  className: n,
@@ -48,8 +48,8 @@ const t = ({ children: a }) => {
48
48
  }, L.map((s) => U(_, {
49
49
  key: s,
50
50
  value: s,
51
- isSelected: f(s),
52
- onHoverChange: (S) => R(S ? s : void 0),
51
+ isSelected: S(s),
52
+ onHoverChange: (f) => C(f ? s : void 0),
53
53
  label: r == null ? void 0 : r(Number(s))
54
54
  })));
55
55
  }, K = {
@@ -81,11 +81,11 @@ const t = ({ children: a }) => {
81
81
  }, c) : null)));
82
82
  };
83
83
  b.Rating = F;
84
- t.Label = Z;
84
+ t.Label = Q;
85
85
  t.Ratings = b;
86
86
  t.Rating = F;
87
- t.Description = z;
88
- t.Error = Q;
87
+ t.Description = j;
88
+ t.Error = z;
89
89
  const W = (a) => /* @__PURE__ */ e.createElement("svg", {
90
90
  viewBox: "0 0 32 32",
91
91
  width: 32,
@@ -126,7 +126,7 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
126
126
  className: n
127
127
  }, /* @__PURE__ */ e.createElement(W, null))), /* @__PURE__ */ e.createElement(t.Error, {
128
128
  className: m(B, g.error)
129
- }, /* @__PURE__ */ e.createElement(j, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
129
+ }, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
130
130
  className: m(P, g.description)
131
131
  }, ee));
132
132
  };
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-CpRehxFB.js";
2
+ import { R as e } from "./rating-input-field-rac-CcO3-3O3.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 { b5 as a, aZ as i, bf as T } from "./form-0jt4L5xo.js";
2
+ import { b9 as a, b1 as i, bj as T } from "./form-DC8xFBa_.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,11 +1,11 @@
1
1
  import l from "classnames";
2
2
  import e from "react";
3
- import { b5 as m, aj as i, a1 as u, aI as R, aL as T } from "./form-0jt4L5xo.js";
4
- import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-mZ6xoAOd.js";
3
+ import { b9 as m, an as i, a5 as u, aM as R, aP as T } from "./form-DC8xFBa_.js";
4
+ import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-CzZ6x_Yf.js";
5
5
  const h = {
6
6
  colorPalette: T(),
7
7
  customStyles: R()
8
- }, P = ({ truncate: t = !0 } = {}) => {
8
+ }, f = ({ truncate: t = !0 } = {}) => {
9
9
  const { content: a, maxShownParagraphs: s } = m(), { displayedContent: n, isTruncated: o, isTruncateButtonShown: r, toggleTruncate: c } = C(a, t ? s : void 0);
10
10
  return /* @__PURE__ */ e.createElement(d, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, {
11
11
  className: l(u, g.richContent),
@@ -17,5 +17,5 @@ const h = {
17
17
  })));
18
18
  };
19
19
  export {
20
- P as R
20
+ f as R
21
21
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { R as t } from "./rich-text-field-rac-CUK8V8Kf.js";
2
+ import { R as t } from "./rich-text-field-rac-B4l_YgG7.js";
3
3
  const R = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  R as RichTextRAC
@@ -1,18 +1,18 @@
1
- import t, { useRef as T, useMemo as g, useCallback as D, useEffect as P } from "react";
2
- import { RicosViewer as b } from "@wix/ricos/viewer";
3
- import m from "classnames";
4
- import { b1 as w, bf as A, F as M, b5 as y, aZ as H, a8 as V, H as x, T as U, t as W, J as k, u as q, p as B } from "./form-0jt4L5xo.js";
5
- import { u as G } from "./use-service-options-base-hcbkvhpw.js";
6
- import { D as d } from "./dropdown-field-headless-DhzRAMcM.js";
7
- import { C as J } from "./chevron-down-icon-CcpVm6B-.js";
8
- import { E as Q } from "./error-icon-hZxQ6DEy.js";
9
- import { H as Y } from "./custom-focus-class-_483Pkwp.js";
1
+ import t, { useRef as b, useMemo as g, useCallback as D, useEffect as P } from "react";
2
+ import { RicosViewer as T } from "@wix/ricos/viewer";
3
+ import u from "classnames";
4
+ import { b5 as w, bj as A, F as M, b9 as y, b1 as U, ac as V, I as x, U as H, t as W, K as k, v as q, p as B } from "./form-DC8xFBa_.js";
5
+ import { u as G } from "./use-service-options-base-DfyQZjmw.js";
6
+ import { D as d } from "./dropdown-field-headless-B-82vlHV.js";
7
+ import { C as j } from "./chevron-down-icon-CcpVm6B-.js";
8
+ import { E as K } from "./error-icon-hZxQ6DEy.js";
9
+ import { H as Q } from "./custom-focus-class-_483Pkwp.js";
10
10
  import { s as i } from "./field-rac.module-B4l_0KRU.js";
11
- import { u as Z } from "./use-dropdown-option-class-name-McG3ayOT.js";
12
- const j = "00000000-0000-0000-0000-000000000000", z = (e) => {
13
- const { actions: r } = w(), { t: h } = A(), { addOther: n, addOtherLabel: p } = e, c = p || h("add-other.default-other-option-label"), a = T(!0), E = g(() => {
11
+ import { u as Y } from "./use-dropdown-option-class-name-Cwfh_4oi.js";
12
+ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
13
+ const { actions: r } = w(), { t: h } = A(), { addOther: n, addOtherLabel: p } = e, c = p || h("add-other.default-other-option-label"), a = b(!0), E = g(() => {
14
14
  var s;
15
- return ((s = e.options) == null ? void 0 : s.map((u) => u.id ?? "")) ?? [];
15
+ return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
16
16
  }, [
17
17
  e.options
18
18
  ]), O = D((s) => n ? [
@@ -20,7 +20,7 @@ const j = "00000000-0000-0000-0000-000000000000", z = (e) => {
20
20
  {
21
21
  value: c,
22
22
  label: c,
23
- id: j
23
+ id: z
24
24
  }
25
25
  ] : s, [
26
26
  n,
@@ -37,12 +37,12 @@ const j = "00000000-0000-0000-0000-000000000000", z = (e) => {
37
37
  s = await r.fetchServices({
38
38
  serviceIds: E
39
39
  });
40
- } catch (u) {
41
- console.error(u);
40
+ } catch (m) {
41
+ console.error(m);
42
42
  }
43
43
  if (s) {
44
- const u = F(s);
45
- S(!n && u.length === 0), _(u);
44
+ const m = F(s);
45
+ S(!n && m.length === 0), _(m);
46
46
  } else
47
47
  a.current = !0;
48
48
  R(!1);
@@ -90,7 +90,7 @@ const j = "00000000-0000-0000-0000-000000000000", z = (e) => {
90
90
  shouldRender: I
91
91
  };
92
92
  }, o = ({ children: e }) => {
93
- const r = y(), { addOther: h } = r, n = H(), p = r.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = z({
93
+ const r = y(), { addOther: h } = r, n = U(), p = r.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = J({
94
94
  ...r,
95
95
  isEditor: p
96
96
  }), C = g(() => ({
@@ -117,29 +117,29 @@ o.Trigger = d.Trigger;
117
117
  o.Options = d.Options;
118
118
  o.Description = d.Description;
119
119
  o.Error = d.Error;
120
- const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(b, {
120
+ const X = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(T, {
121
121
  content: e,
122
122
  locale: r
123
- }), X = () => {
124
- const e = Z(Y);
123
+ }), Z = () => {
124
+ const e = Y(Q);
125
125
  return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
126
- className: m(x, i.label)
126
+ className: u(x, i.label)
127
127
  }, /* @__PURE__ */ t.createElement(o.Label.Required, {
128
- className: m(U, i.requiredMark)
128
+ className: u(H, i.requiredMark)
129
129
  })), /* @__PURE__ */ t.createElement(o.Trigger, {
130
- className: m(W, i.input, i.dropdownTrigger)
131
- }, /* @__PURE__ */ t.createElement(J, {
130
+ className: u(W, i.input, i.dropdownTrigger)
131
+ }, /* @__PURE__ */ t.createElement(j, {
132
132
  className: i.dropdownIcon
133
133
  })), /* @__PURE__ */ t.createElement(o.Options, {
134
- className: m(k, i.selectPopover, i.dropdownPopover)
134
+ className: u(k, i.selectPopover, i.dropdownPopover)
135
135
  }, /* @__PURE__ */ t.createElement(o.Options.Option, {
136
136
  className: e
137
137
  })), /* @__PURE__ */ t.createElement(o.Error, {
138
- className: m(q, i.error)
139
- }, /* @__PURE__ */ t.createElement(Q, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
140
- className: m(B, i.description)
141
- }, K));
142
- }, ue = () => /* @__PURE__ */ t.createElement(X, null);
138
+ className: u(q, i.error)
139
+ }, /* @__PURE__ */ t.createElement(K, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
140
+ className: u(B, i.description)
141
+ }, X));
142
+ }, me = () => /* @__PURE__ */ t.createElement(Z, null);
143
143
  export {
144
- ue as ServiceDropdownRAC
144
+ me as ServiceDropdownRAC
145
145
  };