@wix/form-elements 1.107.0 → 1.108.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-D2F4vgf1.js → appointment-rac-ZAp8oWbK.js} +289 -290
  2. package/dist/component/{bookings-address-rac-_5S8J8_i.js → bookings-address-rac-x-Az7vHf.js} +1 -1
  3. package/dist/component/{bookings-email-rac-6vmDR9nS.js → bookings-email-rac-MoF_CaqB.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DtTJ4T2K.js → bookings-first-name-rac-CWh3Rb0M.js} +1 -1
  5. package/dist/component/{bookings-header-rac-B3dsEwzR.js → bookings-header-rac-BVTiXUWk.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-B3idkbi8.js → bookings-last-name-rac-kXRRlyHl.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CrRBcQwT.js → bookings-login-bar-rac-C4Zr6kXE.js} +23 -24
  8. package/dist/component/{bookings-phone-rac-BE0yWNnj.js → bookings-phone-rac-2rz1m_xi.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CYo1l0-6.js → bookings-rich-text-rac-BEjGypQw.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-boTtXVEt.js → checkbox-field-rac-DwEQLIaz.js} +66 -67
  11. package/dist/component/{checkbox-group-field-headless-DnkUvDm8.js → checkbox-group-field-headless-BsOww_QB.js} +37 -37
  12. package/dist/component/{checkbox-group-field-rac-DrDTgHMg.js → checkbox-group-field-rac-DTcZcVS6.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-v3ozUBpo.js → checkbox-group-rac-DQsML-pW.js} +1 -1
  14. package/dist/component/{checkbox-rac-YSLE-RnG.js → checkbox-rac-irEBBOxP.js} +1 -1
  15. package/dist/component/{contacts-address-rac-C653yaHZ.js → contacts-address-rac-B5bSAYrm.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BeAQ6shx.js → contacts-birthdate-rac-DyScj8f4.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BglKOoTG.js → contacts-company-rac-C5X9-jXa.js} +1 -1
  18. package/dist/component/{contacts-email-rac-D6m7ynfc.js → contacts-email-rac-B0vkfmrS.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-Dgxn0tUJ.js → contacts-first-name-rac-Cfil3U_e.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-1UyIuRKH.js → contacts-last-name-rac-CtPLE-7-.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BQ77BlW4.js → contacts-phone-rac-YkzsAoBZ.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BUDUv7lv.js → contacts-position-rac-BS4j8QC-.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DdtA0qKW.js → contacts-subscribe-rac-z_9VsEZL.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-WUaKcNl0.js → contacts-tax-id-rac-WFkmKyZv.js} +1 -1
  25. package/dist/component/{date-availability-XjBFq8jt.js → date-availability-NN3rxosk.js} +1 -1
  26. package/dist/component/{date-input-field-rac-aY2zuuKs.js → date-input-field-rac-mdhEC3oq.js} +88 -89
  27. package/dist/component/{date-input-rac-DRiP2_97.js → date-input-rac-CGciuoTx.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CRZVODfF.js} +90 -91
  29. package/dist/component/{date-picker-rac-DHHUh8vn.js → date-picker-rac-Bfbvjy8W.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DP_StuLr.js → date-time-input-field-rac-TDWBXZ44.js} +76 -77
  31. package/dist/component/{date-time-input-rac-B11KIxsf.js → date-time-input-rac-DY0qdSix.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BFGM7SOt.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-BIlAqEvV.js → dext-checkbox-rac-DPZvTeUZ.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CHBXNrZi.js → dext-date-picker-rac-Xd5kojsQ.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BYtliKry.js → dext-date-time-input-rac-C0RIdxJW.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-C2VPSFV5.js → dext-dropdown-rac-D1m8vJvm.js} +1 -1
  37. package/dist/component/{dext-email-rac-Fnb0Ggcs.js → dext-email-rac-BC81RFYY.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DopfSyFi.js → dext-number-input-rac-Z_ih9FfX.js} +1 -1
  39. package/dist/component/{dext-phone-rac-Rn4i_2rc.js → dext-phone-rac-s3BOnXuI.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-bNaskJpK.js → dext-radio-group-rac-CL3jcezs.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-DL6ZZd7d.js → dext-rating-input-rac-wz1EyP5b.js} +1 -1
  42. package/dist/component/{dext-tags-rac-TsUPoImO.js → dext-tags-rac-BY4Rf2BP.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-BIuY7LTd.js → dext-text-area-rac-DRJzlsq8.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-CSYPW0Qi.js → dext-text-input-rac-BGcRNNAi.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-_g0lqGfW.js → dext-url-input-rac-CRAIm8yp.js} +1 -1
  46. package/dist/component/{donation-rac-BYKFtsyR.js → donation-rac-BlTfOIlE.js} +83 -84
  47. package/dist/component/{dropdown-field-headless-CBaqlNZi.js → dropdown-field-headless-DhzRAMcM.js} +12 -12
  48. package/dist/component/{dropdown-field-rac-CCAGSMm3.js → dropdown-field-rac-DXyY5we-.js} +5 -5
  49. package/dist/component/{dropdown-rac-C_EqUsZ1.js → dropdown-rac-C6YM6qxm.js} +1 -1
  50. package/dist/component/{ecom-address-rac-Bw9eH0iF.js → ecom-address-rac-CAdr7wya.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-B5PVOO2a.js → ecom-subscription-checkbox-rac-Z2VMuCbt.js} +6 -6
  52. package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DpkfunVK.js} +53 -54
  53. package/dist/component/{events-repeater-rac--4OnUxWE.js → events-repeater-rac-CuJkdrPo.js} +61 -62
  54. package/dist/component/{events-rsvp-rac-CczCoo3T.js → events-rsvp-rac-BKWlSeQ9.js} +8 -8
  55. package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-tsg9FQ-_.js} +12 -12
  56. package/dist/component/{field-label-headless-Du4ckIVy.js → field-label-headless-CB8dEat8.js} +11 -11
  57. package/dist/component/{file-upload-rac-DbdkUbWM.js → file-upload-rac-ZdgYt646.js} +67 -68
  58. package/dist/component/{fixed-payment-rac-f9-01iDN.js → fixed-payment-rac-CuIQEeHh.js} +20 -21
  59. package/dist/component/{form-DQauhsho.js → form-0jt4L5xo.js} +3045 -2896
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/header-field-rac-CWVGzxKb.js +24 -0
  63. package/dist/component/{header-rac-CR9T3Pnu.js → header-rac-D6KsV-ko.js} +1 -1
  64. package/dist/component/{image-choice-rac-DJ_8v467.js → image-choice-rac-CUCyVS8c.js} +29 -30
  65. package/dist/component/{index-BB7d_9Dv.js → index-TJSnVtCO.js} +72 -72
  66. package/dist/component/{index-CcUTIUWM.js → index-iOqQidgV.js} +12 -12
  67. package/dist/component/{isObjectLike-xvPa_08X.js → isObjectLike-DQbx8r1c.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-CyaFOloE.js → multiline-address-field-rac-DtZ1NTfD.js} +186 -187
  69. package/dist/component/{multiline-address-rac-CaHGUN_f.js → multiline-address-rac-ub-_XzHU.js} +1 -1
  70. package/dist/component/number-input-field-rac-DLItn4DK.js +92 -0
  71. package/dist/component/{number-input-rac-DMKX6nhk.js → number-input-rac-UuxJzqEx.js} +1 -1
  72. package/dist/component/{password-rac-0RUXPAn6.js → password-rac-Di6q96Rn.js} +37 -38
  73. package/dist/component/{payment-input-rac-CHSZ3-Lt.js → payment-input-rac-CG6c4-Ge.js} +52 -53
  74. package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-D4JphCuT.js} +75 -76
  75. package/dist/component/{phone-rac-BLRnAPXP.js → phone-rac-_vDw2usa.js} +1 -1
  76. package/dist/component/{product-list-rac-BkF5tDwt.js → product-list-rac-CgxRlj1f.js} +73 -74
  77. package/dist/component/{quiz-radio-group-rac-32cCMTUS.js → quiz-radio-group-rac-bi26aGxN.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-IOulhuSH.js → radio-button-module-classes-DDJq2ESf.js} +33 -33
  79. package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-D1aMVO6l.js} +4 -4
  80. package/dist/component/{radio-group-rac-BiW-9Abj.js → radio-group-rac-HKC85M6t.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-CpRehxFB.js} +42 -43
  82. package/dist/component/{rating-input-rac-BpwlNvzQ.js → rating-input-rac-BMuCZ3oj.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-mZ6xoAOd.js} +4 -4
  84. package/dist/component/rich-text-field-rac-CUK8V8Kf.js +21 -0
  85. package/dist/component/{rich-text-rac-VfeZxS27.js → rich-text-rac-B-7sR2FJ.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-1DDNT5bn.js} +43 -44
  87. package/dist/component/{services-multi-choice-rac-CCqdF_7P.js → services-multi-choice-rac-CB-6dwxz.js} +21 -22
  88. package/dist/component/{signature-rac-DOyMo3u0.js → signature-rac-7XBci6P2.js} +35 -36
  89. package/dist/component/{submit-button-rac-C2uA5DeE.js → submit-button-rac-B1-Mk8Gg.js} +21 -22
  90. package/dist/component/{tags-field-rac-C_uIw2by.js → tags-field-rac-CQ9Y7mq-.js} +49 -50
  91. package/dist/component/{tags-rac-1pQ-fpe_.js → tags-rac-Visic-Ml.js} +1 -1
  92. package/dist/component/{text-area-field-rac-DqlOkm7e.js → text-area-field-rac-C8fP1g-w.js} +31 -32
  93. package/dist/component/{text-area-rac-DPdkrFcH.js → text-area-rac-B6yZxzxm.js} +1 -1
  94. package/dist/component/{text-input-field-rac-CmXm6r1w.js → text-input-field-rac-CNjbOxD1.js} +5 -5
  95. package/dist/component/{text-input-headless-DD__2DFf.js → text-input-headless-Bm8PJGep.js} +12 -12
  96. package/dist/component/{text-input-rac-DRHyQEH7.js → text-input-rac-BEPC1Z-4.js} +1 -1
  97. package/dist/component/{time-input-rac-BJPIymQY.js → time-input-rac-3m6C_Jp5.js} +41 -42
  98. package/dist/component/url-input-field-rac-CIk_6Lf6.js +74 -0
  99. package/dist/component/{url-input-rac-C0ChQUzq.js → url-input-rac-DyVoygXH.js} +1 -1
  100. package/dist/component/use-dropdown-option-class-name-McG3ayOT.js +21 -0
  101. package/dist/component/{use-element-state-class-name-BatTc2bw.js → use-element-state-class-name-B9MBWX44.js} +1 -1
  102. package/dist/component/{use-is-forced-open-dropdown-B0jiPTmS.js → use-is-forced-open-dropdown-r5G_sZsO.js} +7 -7
  103. package/dist/component/{use-service-options-base-oeE7xszw.js → use-service-options-base-hcbkvhpw.js} +7 -7
  104. package/dist/component/use-text-input-class-name-SnurFqAr.js +23 -0
  105. package/dist/form.d.ts +3 -1
  106. package/package.json +2 -2
  107. package/dist/component/form-element-classes-bLFmhsKw.js +0 -137
  108. package/dist/component/header-field-rac-DamDk5BR.js +0 -25
  109. package/dist/component/number-input-field-rac-BuYUzDWV.js +0 -93
  110. package/dist/component/rich-text-field-rac-C_qE7Ykg.js +0 -22
  111. package/dist/component/url-input-field-rac-CFDYkZ6I.js +0 -75
  112. package/dist/component/use-dropdown-option-class-name-3L5ZmNLK.js +0 -21
  113. package/dist/component/use-text-input-class-name-LQ5S-NLh.js +0 -24
@@ -1,42 +1,41 @@
1
- import t, { useMemo as K, useCallback as x, useRef as B } from "react";
1
+ import t, { useMemo as G, useCallback as M, useRef as B } from "react";
2
2
  import { RicosViewer as $ } from "@wix/ricos/viewer";
3
3
  import _ from "classnames";
4
- import { CheckboxField as G, CheckboxButton as j, NumberField as J, Group as X, Button as U, Input as W } from "react-aria-components";
5
- import { ak as k, ah as Y, ac as w, au as Z, am as ee } from "./form-DQauhsho.js";
6
- import { f as O, a as I } from "./find-child-C60k4CxG.js";
7
- import { L as te, g as ne } from "./field-label-headless-Du4ckIVy.js";
8
- import { f as ae } from "./format-currency-BwShJ9vM.js";
9
- import { D as oe, E as re } from "./field-error-headless-D3-1L5sf.js";
10
- import { F as le } from "./fieldset-headless-CD3fds9J.js";
11
- import { g as se } from "./payment-field-utils-DobiK5Xh.js";
12
- import { S as ie } from "./selection-indicator-XQ8MYHUQ.js";
13
- import { E as ce } from "./error-icon-hZxQ6DEy.js";
14
- import { C as ue } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
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";
8
+ import { f as pe } from "./format-currency-BwShJ9vM.js";
9
+ import { D as de, E as Ee } from "./field-error-headless-tsg9FQ-_.js";
10
+ import { F as ye } from "./fieldset-headless-CD3fds9J.js";
11
+ import { g as fe } from "./payment-field-utils-DobiK5Xh.js";
12
+ import { S as _e } from "./selection-indicator-XQ8MYHUQ.js";
13
+ import { E as be } from "./error-icon-hZxQ6DEy.js";
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
- import { v as me, J as pe, y as de, C as Ee, B as ye, u as fe, o as _e, j as Ie, z as Oe } from "./form-element-classes-bLFmhsKw.js";
17
16
  import { o as Q } from "./options-rac.module-CTDdATiz.js";
18
- import { u as be } from "./use-element-state-class-name-BatTc2bw.js";
19
- var Le = /* @__PURE__ */ (function(e) {
17
+ import { u as Le } from "./use-element-state-class-name-B9MBWX44.js";
18
+ var Oe = /* @__PURE__ */ (function(e) {
20
19
  return e.crop = "CROP", e.fit = "FIT", e;
21
- })({}), M = /* @__PURE__ */ (function(e) {
20
+ })({}), x = /* @__PURE__ */ (function(e) {
22
21
  return e.oneByOne = "one-by-one", e.onlyOne = "only-one", e.many = "many", e;
23
22
  })({});
24
23
  function Ce({ maxItems: e, products: a } = {}) {
25
- return e === 1 ? M.onlyOne : a != null && a.length && a.every((l) => {
24
+ return e === 1 ? x.onlyOne : a != null && a.length && a.every((l) => {
26
25
  var n;
27
26
  return typeof ((n = l.quantityLimit) == null ? void 0 : n.maximum) > "u";
28
- }) ? M.many : M.oneByOne;
27
+ }) ? x.many : x.oneByOne;
29
28
  }
30
29
  const o = ({ children: e }) => {
31
30
  var D;
32
- const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: y, onBlur: b, onFocus: s, hasError: u, validation: m, FieldLayout: p } = k(), { inputId: q, labelId: N, ariaDescribedBy: h } = Y(), f = O(e, o.Label), g = O(e, o.Options), v = O(e, o.Description), L = O(e, o.Error), i = K(() => l || [], [
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 || [], [
33
32
  l
34
- ]), A = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === M.many, F = x((S, R) => {
35
- const d = i.filter((H) => H.productId !== S.productId), z = R ? [
33
+ ]), A = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === x.many, F = M((S, R) => {
34
+ const d = i.filter((K) => K.productId !== S.productId), H = R ? [
36
35
  ...d,
37
36
  S
38
37
  ] : d;
39
- n == null || n(z);
38
+ n == null || n(H);
40
39
  }, [
41
40
  i,
42
41
  n
@@ -44,14 +43,14 @@ const o = ({ children: e }) => {
44
43
  return /* @__PURE__ */ t.createElement(p, {
45
44
  fieldId: a,
46
45
  renderLabel: () => f,
47
- renderInput: () => /* @__PURE__ */ t.createElement(le, {
46
+ renderInput: () => /* @__PURE__ */ t.createElement(ye, {
48
47
  id: q,
49
48
  ariaLabelledBy: N,
50
49
  ariaDescribedBy: h,
51
50
  required: y,
52
- onBlur: b,
51
+ onBlur: L,
53
52
  onFocus: s
54
- }, g ? I(g, {
53
+ }, g ? b(g, {
55
54
  allowMany: A,
56
55
  productValues: i,
57
56
  onProductChange: F,
@@ -59,16 +58,16 @@ const o = ({ children: e }) => {
59
58
  readOnly: c,
60
59
  hasError: u
61
60
  }) : null),
62
- renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, v)
61
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, O, v)
63
62
  });
64
63
  }, V = ({ children: e, className: a, ...l }) => {
65
- const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly: b, hasError: s } = l, { options: u, validation: m, imageResize: p } = k(), { currency: q } = w(), { t: N } = Z(), h = O(e, o.Option);
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);
66
65
  return /* @__PURE__ */ t.createElement("div", {
67
66
  className: a
68
67
  }, u == null ? void 0 : u.map((f, g) => {
69
68
  var C, A, F, D, S;
70
- 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 = se(N, q), i = r.find((R) => R.productId === f.value);
71
- return I(h, {
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, {
72
71
  key: f.id || f.value || f.label,
73
72
  option: f,
74
73
  price: v,
@@ -77,22 +76,22 @@ const o = ({ children: e }) => {
77
76
  allowMany: n,
78
77
  onProductChange: c,
79
78
  disabled: y,
80
- readOnly: b,
79
+ readOnly: L,
81
80
  hasError: s,
82
- currencyAriaLabel: L,
81
+ currencyAriaLabel: O,
83
82
  imageResize: p,
84
83
  isFirst: g === 0
85
84
  });
86
85
  }));
87
86
  }, E = ({ children: e, className: a, ...l }) => {
88
- const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: b, onProductChange: s, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: q, imageResize: N, isFirst: h } = l, { id: f } = k(), g = B(null), v = B(null), L = O(e, E.Image), i = O(e, E.Label), C = O(e, E.Price), A = O(e, E.Input), F = O(e, E.Quantity);
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);
89
88
  ee(() => {
90
89
  var d;
91
90
  h && ((d = g.current ?? v.current) == null || d.focus({
92
91
  preventScroll: !0
93
92
  }));
94
93
  }, f);
95
- const D = x((d) => {
94
+ const D = M((d) => {
96
95
  s({
97
96
  productId: n.value,
98
97
  price: r,
@@ -102,7 +101,7 @@ const o = ({ children: e }) => {
102
101
  s,
103
102
  n.value,
104
103
  r
105
- ]), S = x((d) => {
104
+ ]), S = M((d) => {
106
105
  s({
107
106
  productId: n.value,
108
107
  price: r,
@@ -113,17 +112,17 @@ const o = ({ children: e }) => {
113
112
  n.value,
114
113
  r
115
114
  ]), R = `${n.label} ${q} ${r}`;
116
- return b ? /* @__PURE__ */ t.createElement("div", {
115
+ return L ? /* @__PURE__ */ t.createElement("div", {
117
116
  className: a,
118
117
  "data-hook": "product"
119
- }, L ? I(L, {
118
+ }, O ? b(O, {
120
119
  option: n,
121
120
  imageResize: N
122
- }) : null, i ? I(i, {
121
+ }) : null, i ? b(i, {
123
122
  label: n.label
124
- }) : null, C ? I(C, {
123
+ }) : null, C ? b(C, {
125
124
  price: r
126
- }) : null, F ? I(F, {
125
+ }) : null, F ? b(F, {
127
126
  quantity: c,
128
127
  onQuantityChange: S,
129
128
  disabled: u,
@@ -131,25 +130,25 @@ const o = ({ children: e }) => {
131
130
  hasError: p,
132
131
  ariaLabel: R,
133
132
  inputRef: h ? v : void 0
134
- }) : null) : /* @__PURE__ */ t.createElement(G, {
133
+ }) : null) : /* @__PURE__ */ t.createElement(z, {
135
134
  isSelected: y,
136
135
  onChange: D,
137
136
  isDisabled: u,
138
137
  isReadOnly: m,
139
138
  isInvalid: p,
140
139
  "aria-label": R
141
- }, /* @__PURE__ */ t.createElement(j, {
140
+ }, /* @__PURE__ */ t.createElement(X, {
142
141
  ref: g,
143
142
  className: a,
144
143
  "data-hook": "product"
145
- }, ({ isHovered: d }) => /* @__PURE__ */ t.createElement(t.Fragment, null, L ? I(L, {
144
+ }, ({ isHovered: d }) => /* @__PURE__ */ t.createElement(t.Fragment, null, O ? b(O, {
146
145
  option: n,
147
146
  imageResize: N
148
- }) : null, i ? I(i, {
147
+ }) : null, i ? b(i, {
149
148
  label: n.label
150
- }) : null, C ? I(C, {
149
+ }) : null, C ? b(C, {
151
150
  price: r
152
- }) : null, I(A, {
151
+ }) : null, b(A, {
153
152
  isSelected: y,
154
153
  isHovered: d
155
154
  }))));
@@ -158,14 +157,14 @@ const o = ({ children: e }) => {
158
157
  const { option: l, imageResize: n } = a, r = (s = l.media) == null ? void 0 : s.image;
159
158
  if (!r)
160
159
  return null;
161
- const c = n === Le.fit, y = ne(r, 96, 96, c ? "fit" : "fill");
160
+ const c = n === Oe.fit, y = me(r, 96, 96, c ? "fit" : "fill");
162
161
  if (!y)
163
162
  return null;
164
- const b = r.altText || l.label || "";
163
+ const L = r.altText || l.label || "";
165
164
  return /* @__PURE__ */ t.createElement("img", {
166
165
  className: e,
167
166
  src: y,
168
- alt: b,
167
+ alt: L,
169
168
  "data-fit": c ? "contain" : "cover",
170
169
  "data-hook": "product-image"
171
170
  });
@@ -176,7 +175,7 @@ const o = ({ children: e }) => {
176
175
  "data-hook": "product-label"
177
176
  }, l || "");
178
177
  }, Fe = ({ className: e, ...a }) => {
179
- const { price: l } = a, { currency: n, regionalFormat: r } = w(), c = ae({
178
+ const { price: l } = a, { currency: n, regionalFormat: r } = w(), c = pe({
180
179
  amount: l,
181
180
  currency: n == null ? void 0 : n.code,
182
181
  locale: r
@@ -186,16 +185,16 @@ const o = ({ children: e }) => {
186
185
  "data-hook": "product-price"
187
186
  }, c);
188
187
  }, De = ({ className: e, ...a }) => {
189
- const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError: y, ariaLabel: b, inputRef: s } = a, u = x((p) => {
188
+ const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError: y, ariaLabel: L, inputRef: s } = a, u = M((p) => {
190
189
  n(p < 0 ? 0 : p);
191
190
  }, [
192
191
  n
193
- ]), m = x((p) => {
192
+ ]), m = M((p) => {
194
193
  p.key === "Home" && (p.preventDefault(), u(0));
195
194
  }, [
196
195
  u
197
196
  ]);
198
- return /* @__PURE__ */ t.createElement(J, {
197
+ return /* @__PURE__ */ t.createElement(Z, {
199
198
  value: l,
200
199
  onChange: u,
201
200
  minValue: 0,
@@ -203,14 +202,14 @@ const o = ({ children: e }) => {
203
202
  isDisabled: r,
204
203
  isReadOnly: c,
205
204
  isInvalid: y,
206
- "aria-label": b,
205
+ "aria-label": L,
207
206
  className: e,
208
207
  "data-hook": "product-quantity"
209
- }, /* @__PURE__ */ t.createElement(X, {
208
+ }, /* @__PURE__ */ t.createElement(j, {
210
209
  onKeyDown: m
211
210
  }, /* @__PURE__ */ t.createElement(U, {
212
211
  slot: "decrement"
213
- }, "-"), /* @__PURE__ */ t.createElement(W, {
212
+ }, "-"), /* @__PURE__ */ t.createElement(J, {
214
213
  ref: s
215
214
  }), /* @__PURE__ */ t.createElement(U, {
216
215
  slot: "increment"
@@ -219,14 +218,14 @@ const o = ({ children: e }) => {
219
218
  E.Image = Re;
220
219
  E.Label = ge;
221
220
  E.Price = Fe;
222
- E.Input = ie;
221
+ E.Input = _e;
223
222
  E.Quantity = De;
224
223
  V.Option = E;
225
- o.Label = te;
224
+ o.Label = ue;
226
225
  o.Options = V;
227
226
  o.Option = E;
228
- o.Description = oe;
229
- o.Error = re;
227
+ o.Description = de;
228
+ o.Error = Ee;
230
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 = {
231
230
  options: Se,
232
231
  option: Pe,
@@ -238,35 +237,35 @@ const Se = "_options_11x4v_1", Pe = "_option_11x4v_1", Ne = "_optionInput_11x4v_
238
237
  }, qe = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement($, {
239
238
  content: e,
240
239
  locale: a
241
- }), xe = () => {
242
- const e = be({
243
- globalClasses: Oe,
244
- moduleClasses: ue
240
+ }), Me = () => {
241
+ const e = Le({
242
+ globalClasses: ce,
243
+ moduleClasses: Ie
245
244
  });
246
245
  return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
247
- className: _(me, T.label)
246
+ className: _(te, T.label)
248
247
  }, /* @__PURE__ */ t.createElement(o.Label.Required, {
249
- className: _(pe, T.requiredMark)
248
+ className: _(ne, T.requiredMark)
250
249
  })), /* @__PURE__ */ t.createElement(o.Options, {
251
- className: _(de, Q.options, P.options)
250
+ className: _(ae, Q.options, P.options)
252
251
  }, /* @__PURE__ */ t.createElement(o.Option, {
253
252
  className: _(T.checkbox, P.option)
254
253
  }, /* @__PURE__ */ t.createElement(o.Option.Image, {
255
254
  className: P.optionImage
256
255
  }), /* @__PURE__ */ t.createElement(o.Option.Label, {
257
- className: _(Ee, Q.optionLabel, P.optionLabel)
256
+ className: _(oe, Q.optionLabel, P.optionLabel)
258
257
  }), /* @__PURE__ */ t.createElement(o.Option.Price, {
259
- className: _(ye, P.optionPrice)
258
+ className: _(re, P.optionPrice)
260
259
  }), /* @__PURE__ */ t.createElement(o.Option.Input, {
261
260
  className: (a) => _(e(a), P.optionInput)
262
261
  }), /* @__PURE__ */ t.createElement(o.Option.Quantity, {
263
- className: _(fe, T.inputGroup, P.quantity)
262
+ className: _(le, T.inputGroup, P.quantity)
264
263
  }))), /* @__PURE__ */ t.createElement(o.Error, {
265
- className: _(_e, T.error)
266
- }, /* @__PURE__ */ t.createElement(ce, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
267
- className: _(Ie, T.description)
264
+ className: _(se, T.error)
265
+ }, /* @__PURE__ */ t.createElement(be, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
266
+ className: _(ie, T.description)
268
267
  }, qe));
269
- }, et = () => /* @__PURE__ */ t.createElement(xe, null);
268
+ }, Ye = () => /* @__PURE__ */ t.createElement(Me, null);
270
269
  export {
271
- et as ProductListRAC
270
+ Ye as ProductListRAC
272
271
  };
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-CJwku6e0.js";
2
+ import { R as r } from "./radio-group-field-rac-D1aMVO6l.js";
3
3
  const i = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  i as QuizRadioGroupRAC
@@ -1,21 +1,21 @@
1
- import l, { useRef as S, useState as V, useEffect as T, useCallback as B } from "react";
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 { ak as v, ah as $, au as F, am as x } from "./form-DQauhsho.js";
3
+ import { b5 as v, b2 as $, bf as F, b7 as x } from "./form-0jt4L5xo.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-D3-1L5sf.js";
6
- import { L as j } from "./field-label-headless-Du4ckIVy.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";
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
- const a = t ? t.length + 2 : 0;
10
- return e.slice(a);
9
+ const l = t ? t.length + 2 : 0;
10
+ return e.slice(l);
11
11
  }, i = ({ children: e, className: t }) => {
12
- const { id: n, value: a, 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, a) ? L : a || null;
13
- return /* @__PURE__ */ l.createElement(c, {
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;
13
+ return /* @__PURE__ */ a.createElement(c, {
14
14
  fieldId: n,
15
15
  renderLabel: () => g(s, {
16
16
  as: "div"
17
17
  }),
18
- renderInput: () => /* @__PURE__ */ l.createElement(H, {
18
+ renderInput: () => /* @__PURE__ */ a.createElement(H, {
19
19
  id: h,
20
20
  className: t,
21
21
  "aria-labelledby": C,
@@ -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: _,
26
+ isReadOnly: f,
27
27
  isRequired: m,
28
28
  isInvalid: r,
29
- onBlur: f,
29
+ onBlur: _,
30
30
  onFocus: b
31
31
  }, E),
32
- renderDescription: () => /* @__PURE__ */ l.createElement(l.Fragment, null, D, q)
32
+ renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, D, q)
33
33
  });
34
34
  }, K = ({ children: e, className: t }) => {
35
- const { options: n, addOther: a, 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;
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;
36
36
  return x(() => {
37
37
  var o;
38
38
  (o = r.current) == null || o.focus();
39
- }, d), /* @__PURE__ */ l.createElement("div", {
39
+ }, d), /* @__PURE__ */ a.createElement("div", {
40
40
  className: t,
41
- "data-columns": _,
41
+ "data-columns": f,
42
42
  "data-invalid": m
43
43
  }, n.map((o, h) => g(b, {
44
44
  key: o.value ?? o.label,
@@ -46,7 +46,7 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
46
46
  label: o.label,
47
47
  index: h,
48
48
  radioRef: h === 0 ? r : void 0
49
- })), a && g(b, {
49
+ })), l && g(b, {
50
50
  key: L,
51
51
  value: L,
52
52
  label: c,
@@ -54,15 +54,15 @@ 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: a, 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 === a, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
58
- return /* @__PURE__ */ l.createElement("div", {
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;
58
+ return /* @__PURE__ */ a.createElement("div", {
59
59
  className: t
60
- }, /* @__PURE__ */ l.createElement(k, {
61
- value: a
62
- }, /* @__PURE__ */ l.createElement(A, {
63
- ref: _,
60
+ }, /* @__PURE__ */ a.createElement(k, {
61
+ value: l
62
+ }, /* @__PURE__ */ a.createElement(A, {
63
+ ref: f,
64
64
  className: C
65
- }, ({ isSelected: s, isHovered: E }) => /* @__PURE__ */ l.createElement(l.Fragment, null, g(c, {
65
+ }, ({ isSelected: s, isHovered: E }) => /* @__PURE__ */ a.createElement(a.Fragment, null, g(c, {
66
66
  isSelected: s,
67
67
  isHovered: E
68
68
  }), g(b, {
@@ -70,11 +70,11 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
70
70
  })))), d && h && o);
71
71
  }, Q = ({ className: e, ...t }) => {
72
72
  const { label: n } = t;
73
- return /* @__PURE__ */ l.createElement("span", {
73
+ return /* @__PURE__ */ a.createElement("span", {
74
74
  className: e
75
75
  }, n);
76
76
  }, W = (e) => null, X = ({ className: e }) => {
77
- const { value: t, onChange: n, addOtherLabel: a, addOtherPlaceholder: O, otherInputCharacterLimit: d, disabled: _, readOnly: m, options: f } = v(), { t: b } = F(), r = S(null), c = y(f, t), o = a || b("add-other.default-other-option-label") || L, [h, C] = V(c && t ? J(t, a) : "");
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) : "");
78
78
  T(() => {
79
79
  var s;
80
80
  c && r.current && ((s = r.current) == null || s.focus());
@@ -83,19 +83,19 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
83
83
  ]);
84
84
  const I = B((s) => {
85
85
  let E;
86
- s ? E = `${a}: ${s}` : E = o, n(E), C(s);
86
+ s ? E = `${l}: ${s}` : E = o, n(E), C(s);
87
87
  }, [
88
88
  n,
89
- a,
89
+ l,
90
90
  o
91
91
  ]);
92
- return /* @__PURE__ */ l.createElement(G, {
92
+ return /* @__PURE__ */ a.createElement(G, {
93
93
  "aria-label": o,
94
94
  value: h,
95
95
  onChange: I,
96
- isDisabled: _,
96
+ isDisabled: f,
97
97
  isReadOnly: m
98
- }, /* @__PURE__ */ l.createElement(P, {
98
+ }, /* @__PURE__ */ a.createElement(P, {
99
99
  ref: r,
100
100
  className: e,
101
101
  placeholder: O,
@@ -111,15 +111,15 @@ i.Options = K;
111
111
  i.Option = p;
112
112
  i.Description = U;
113
113
  i.Error = M;
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", ae = "_optionControlHover_t7q71_97", le = "_optionControlSelected_t7q71_115", re = "_optionLabel_t7q71_150", R = {
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,
117
117
  options: ee,
118
118
  option: te,
119
119
  optionInput: oe,
120
120
  optionControl: ne,
121
- optionControlHover: ae,
122
- optionControlSelected: le,
121
+ optionControlHover: le,
122
+ optionControlSelected: ae,
123
123
  optionLabel: re
124
124
  }, be = {
125
125
  base: R.optionControl,
@@ -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-IOulhuSH.js";
4
+ import { a, s, R as n } from "./radio-button-module-classes-DDJq2ESf.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 { v as E, J as i, D as p, E as O, o as R, j as _, G as I } from "./form-element-classes-bLFmhsKw.js";
8
- import { u as L } from "./use-element-state-class-name-BatTc2bw.js";
9
- import { u as N } from "./use-text-input-class-name-LQ5S-NLh.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";
10
10
  const u = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
11
11
  content: o,
12
12
  locale: l
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-CJwku6e0.js";
2
+ import { R as r } from "./radio-group-field-rac-D1aMVO6l.js";
3
3
  const R = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  R as RadioGroupRAC