@wix/form-elements 1.126.0 → 1.128.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-CYB_k6uF.js → appointment-rac-S9z3s23G.js} +5 -5
  2. package/dist/component/{bookings-address-rac-yJjV3u5m.js → bookings-address-rac-B7wL2TjQ.js} +1 -1
  3. package/dist/component/{bookings-email-rac-WkFgaEv5.js → bookings-email-rac-T2lFRGpg.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CJ1cBR5Z.js → bookings-first-name-rac-BBrENRBf.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DiC19ttR.js → bookings-header-rac-CWGMiMQz.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-Dx0Nt5Z_.js → bookings-last-name-rac-BQWvH_gm.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CcW2nUYQ.js → bookings-login-bar-rac-tFs0Vioz.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-BMLrrTf6.js → bookings-phone-rac-BV_BTfAh.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DIbRjzxZ.js → bookings-rich-text-rac-8cD6QJBZ.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-3a6NYcNf.js → checkbox-field-rac-YmG26i31.js} +45 -45
  11. package/dist/component/{checkbox-group-field-headless-CM-2wLJv.js → checkbox-group-field-headless-CE8sEjZj.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-CNWwJ_No.js → checkbox-group-field-rac-CSuJRyk1.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-F08XYJSA.js → checkbox-group-rac-VDezm9js.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-DOAYUQ_Q.js → checkbox-indicator-module-classes-Bqo0QILF.js} +1 -1
  15. package/dist/component/{checkbox-rac-z98USBLu.js → checkbox-rac-DoC1ZqAq.js} +1 -1
  16. package/dist/component/{contacts-address-rac-DuodyS7l.js → contacts-address-rac-10AZNzhI.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-BY7L9nWm.js → contacts-birthdate-rac-C7YDiyg2.js} +1 -1
  18. package/dist/component/{contacts-company-rac-iPNPKhx2.js → contacts-company-rac-xQEtJ_-m.js} +1 -1
  19. package/dist/component/{contacts-email-rac-C7kBUzQH.js → contacts-email-rac-Bryw_aCU.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-DvDNRs2q.js → contacts-first-name-rac-BXmuuhfG.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-Cls5_7W0.js → contacts-last-name-rac-CVWVZO8I.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-DMy2lBJl.js → contacts-phone-rac-C-KSwisV.js} +1 -1
  23. package/dist/component/{contacts-position-rac-Bn21lF_i.js → contacts-position-rac-od-5Gie5.js} +1 -1
  24. package/dist/component/{contacts-subscribe-rac-QSC_n_T_.js → contacts-subscribe-rac-CCh9JcQx.js} +1 -1
  25. package/dist/component/{contacts-tax-id-rac-BvqoePCN.js → contacts-tax-id-rac-DOM7TPQz.js} +1 -1
  26. package/dist/component/{date-availability-SErYnVtm.js → date-availability-G5IwqtRi.js} +1 -1
  27. package/dist/component/{date-input-field-rac-H81WktJT.js → date-input-field-rac-BpBqS7LG.js} +42 -42
  28. package/dist/component/{date-input-rac-C6ZeK0zQ.js → date-input-rac-CQyqRqZK.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-BwSKny80.js → date-picker-field-rac-BsR_0eAW.js} +15 -15
  30. package/dist/component/{date-picker-rac-BB5zswk4.js → date-picker-rac-Bl2k363u.js} +1 -1
  31. package/dist/component/{date-time-input-field-rac-C4srGo4X.js → date-time-input-field-rac-C5TC2nsm.js} +64 -64
  32. package/dist/component/{date-time-input-rac-6PXunNeR.js → date-time-input-rac-CInfYWxN.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-B1GOhxW8.js → dext-checkbox-group-rac-E36LjEfn.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-DVels76t.js → dext-checkbox-rac-DkMAv7aY.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-kKH7Nu_c.js → dext-date-picker-rac-BNkJPlYo.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-C2xk0pv1.js → dext-date-time-input-rac-BH3Q0pwI.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-bd3XpA-l.js → dext-dropdown-rac-DkF_DD08.js} +1 -1
  38. package/dist/component/{dext-email-rac-BtEeJsrT.js → dext-email-rac-0x_DN0_O.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-BLPAbm2q.js → dext-number-input-rac-UiIENkK3.js} +1 -1
  40. package/dist/component/{dext-phone-rac-ByEP8XRg.js → dext-phone-rac-BZFK4Uq7.js} +1 -1
  41. package/dist/component/{dext-radio-group-rac-AY271KFi.js → dext-radio-group-rac-CBAdO7kt.js} +4 -4
  42. package/dist/component/{dext-rating-input-rac-Dp9N8OWT.js → dext-rating-input-rac-fqR1sriq.js} +1 -1
  43. package/dist/component/{dext-tags-rac-PgZGGDwj.js → dext-tags-rac-mDuiUs9L.js} +4 -4
  44. package/dist/component/{dext-text-area-rac-BN99TM9O.js → dext-text-area-rac-C-8jKWpK.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-C5TaQVi8.js → dext-text-input-rac-CCBAM9YO.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-BvMh_jc6.js → dext-url-input-rac-C4_8Yk0p.js} +1 -1
  47. package/dist/component/{donation-rac-BSCyAZPx.js → donation-rac-BwDHypVJ.js} +36 -36
  48. package/dist/component/{dropdown-field-headless-DzDE-6ha.js → dropdown-field-headless-CspX2zV_.js} +16 -16
  49. package/dist/component/{dropdown-field-rac-mbYavQtS.js → dropdown-field-rac-DduQJ9rO.js} +5 -5
  50. package/dist/component/{dropdown-rac-BUJag5ow.js → dropdown-rac-BhhECLoH.js} +1 -1
  51. package/dist/component/{ecom-address-rac-B7_RYjoj.js → ecom-address-rac-BJ1nnEVL.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-BCDyH7x-.js → ecom-subscription-checkbox-rac-4m1XMTDY.js} +2 -2
  53. package/dist/component/{email-input-field-rac-CUi08-gD.js → email-input-field-rac-bPEcgidt.js} +19 -19
  54. package/dist/component/{events-repeater-rac-CkHq7ADr.js → events-repeater-rac-CujTGEHx.js} +11 -11
  55. package/dist/component/{events-rsvp-rac-DBwLvDeR.js → events-rsvp-rac-BPqr_aY9.js} +4 -4
  56. package/dist/component/{field-error-headless-Ct41F8cQ.js → field-error-headless-Bu_4Huhb.js} +6 -6
  57. package/dist/component/{field-label-headless-DUqBV42_.js → field-label-headless-DkDmQPFG.js} +1 -1
  58. package/dist/component/field-rac.module-BIBNQEOK.js +25 -0
  59. package/dist/component/{file-upload-rac-CkbjhtAl.js → file-upload-rac-DmOQrGe8.js} +68 -68
  60. package/dist/component/{fixed-payment-rac-Dgnhsx3e.js → fixed-payment-rac-CDsddKrV.js} +9 -9
  61. package/dist/component/{form-Dx1bK3Fi.js → form-BpJ4Lqbe.js} +668 -617
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +3 -3
  64. package/dist/component/{header-field-rac-BuUxOZO1.js → header-field-rac-Cr1FVQdq.js} +6 -6
  65. package/dist/component/{header-rac-CIvWVvYs.js → header-rac-CvAZsqDL.js} +1 -1
  66. package/dist/component/{image-choice-rac-BBo0PiW4.js → image-choice-rac-D_EKrD73.js} +12 -12
  67. package/dist/component/{index-BmMiwDw9.js → index-DxsHfkik.js} +44 -44
  68. package/dist/component/{index-BDSs3l4d.js → index-Tnke1N8m.js} +15 -15
  69. package/dist/component/{isObjectLike-xZCFQW_t.js → isObjectLike-CMWsWjX8.js} +7 -7
  70. package/dist/component/{multiline-address-field-rac-C6mRorOw.js → multiline-address-field-rac-BMeMP7J6.js} +8 -8
  71. package/dist/component/{multiline-address-rac-BOjsVo4R.js → multiline-address-rac-CFprfFXm.js} +1 -1
  72. package/dist/component/{number-input-field-rac-C89M-zOh.js → number-input-field-rac-CaHySxYH.js} +9 -9
  73. package/dist/component/{number-input-rac-DttY0Ll3.js → number-input-rac-BezfoU8h.js} +1 -1
  74. package/dist/component/{password-rac-C2KTrH40.js → password-rac-_wwZFd67.js} +32 -32
  75. package/dist/component/{payment-input-rac-BhyBxeu1.js → payment-input-rac-CWrSvBDp.js} +15 -15
  76. package/dist/component/{phone-input-field-rac-BT-Fe6WZ.js → phone-input-field-rac-R3LYdPIs.js} +39 -39
  77. package/dist/component/{phone-rac-B26qwlDN.js → phone-rac-D6uILVRw.js} +1 -1
  78. package/dist/component/{product-list-rac-CF4gkfTK.js → product-list-rac-D3WTfC9k.js} +28 -28
  79. package/dist/component/{quiz-radio-group-rac-Bf2HeDDw.js → quiz-radio-group-rac-B6T7eedk.js} +1 -1
  80. package/dist/component/{radio-button-module-classes-DtmmP89u.js → radio-button-module-classes-D8Jm-Q6u.js} +3 -3
  81. package/dist/component/{radio-group-field-rac-BY2OIFFr.js → radio-group-field-rac-R5onZzJd.js} +5 -5
  82. package/dist/component/{radio-group-rac-BuxVel2l.js → radio-group-rac-DUPHR4tK.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-CbLzvwyk.js → rating-input-field-rac-C9GpwuRO.js} +10 -10
  84. package/dist/component/{rating-input-rac-B8QxNYHU.js → rating-input-rac-Iv_2PVqP.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-wu4JPlkg.js → rich-content-rac.module-Det3BKrI.js} +1 -1
  86. package/dist/component/{rich-text-field-rac-CTrEe0SQ.js → rich-text-field-rac-DnBtp2d_.js} +9 -9
  87. package/dist/component/{rich-text-rac-kmzPTMKb.js → rich-text-rac-CXzxap1G.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-C8nTy49F.js → service-dropdown-rac-CVyd2HYC.js} +14 -14
  89. package/dist/component/{services-multi-choice-rac-rDkpN2fs.js → services-multi-choice-rac-BY-W0xIt.js} +7 -7
  90. package/dist/component/signature-rac-BojdPJhg.js +918 -0
  91. package/dist/component/{submit-button-rac-BFywt2Fn.js → submit-button-rac-Q7KKQbiL.js} +15 -15
  92. package/dist/component/{tags-field-rac-rpzvIn_0.js → tags-field-rac-CbmR6gi4.js} +17 -17
  93. package/dist/component/{tags-rac-DVLGSSvh.js → tags-rac-hJo0tMVR.js} +1 -1
  94. package/dist/component/{text-area-field-rac-BfVrtvl8.js → text-area-field-rac-DHQqkqtu.js} +15 -15
  95. package/dist/component/{text-area-rac-VP-yXdJ6.js → text-area-rac-BTXxfWyK.js} +1 -1
  96. package/dist/component/{text-input-field-rac-BlaXiXoF.js → text-input-field-rac-BVTBYjMM.js} +4 -4
  97. package/dist/component/{text-input-headless-ChCTtqUX.js → text-input-headless-Dk_0y9U-.js} +8 -8
  98. package/dist/component/{text-input-rac-CG-Oo3nZ.js → text-input-rac-DIwGn0WI.js} +1 -1
  99. package/dist/component/{time-input-rac-CzUGIr2X.js → time-input-rac-ClyPOKOH.js} +10 -10
  100. package/dist/component/{url-input-field-rac-BHF6gZlT.js → url-input-field-rac-BhPzHWTI.js} +10 -10
  101. package/dist/component/{url-input-rac-DouQt3DF.js → url-input-rac-COD7T5wo.js} +1 -1
  102. package/dist/component/{use-dropdown-option-class-name-AklIMCCI.js → use-dropdown-option-class-name-CTDQ4YIC.js} +3 -3
  103. package/dist/component/{use-dropdown-trigger-class-name-COJhxT4T.js → use-dropdown-trigger-class-name-DapDPNX0.js} +10 -10
  104. package/dist/component/use-element-state-class-name-BU86oHkX.js +20 -0
  105. package/dist/component/{use-hoverable-input-class-name-CtHJHqiV.js → use-hoverable-input-class-name-DWkmQfPd.js} +3 -3
  106. package/dist/component/{use-service-options-base-2u1I6l-t.js → use-service-options-base-jkecu8jY.js} +4 -4
  107. package/dist/component/use-text-input-class-name-CNTXVb7N.js +6 -0
  108. package/dist/form.d.ts +10 -0
  109. package/package.json +2 -2
  110. package/dist/component/field-rac.module-DQxyEwK7.js +0 -26
  111. package/dist/component/signature-rac-6r_gWBD2.js +0 -794
  112. package/dist/component/use-element-state-class-name-CCe7Cvsu.js +0 -22
  113. package/dist/component/use-text-input-class-name-Bnfv7ZsJ.js +0 -6
@@ -1,17 +1,17 @@
1
1
  import e, { useState as N, useRef as S } from "react";
2
2
  import { RicosViewer as x } from "@wix/ricos/viewer";
3
3
  import d from "classnames";
4
- import { b9 as E, b6 as I, bb as O, bj as A, I as B, U as v, v as V, p as P } from "./form-Dx1bK3Fi.js";
4
+ import { bh as E, be as I, bj as O, br as A, I as B, U as v, v as V, p as P } from "./form-BpJ4Lqbe.js";
5
5
  import { TextField as M, Group as k, Input as q, Button as U } from "react-aria-components";
6
6
  import { f as u, a as b } from "./find-child-C60k4CxG.js";
7
- import { D as j, E as H } from "./field-error-headless-Ct41F8cQ.js";
8
- import { L as W } from "./field-label-headless-DUqBV42_.js";
7
+ import { D as j, E as H } from "./field-error-headless-Bu_4Huhb.js";
8
+ import { L as W } from "./field-label-headless-DkDmQPFG.js";
9
9
  import { E as Z } from "./error-icon-hZxQ6DEy.js";
10
10
  import { H as G } from "./custom-focus-class-_483Pkwp.js";
11
- import { s as p } from "./field-rac.module-DQxyEwK7.js";
12
- import { u as Q } from "./use-text-input-class-name-Bnfv7ZsJ.js";
13
- const t = ({ children: o, className: r }) => {
14
- const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, FieldLayout: _ } = E(), { labelId: y } = I(), [R, D] = N(!1), F = u(o, t.Label), L = u(o, t.Control), T = u(o, t.Description), w = u(o, t.Error);
11
+ import { s as p } from "./field-rac.module-BIBNQEOK.js";
12
+ import { u as Q } from "./use-text-input-class-name-CNTXVb7N.js";
13
+ const t = ({ children: r, className: o }) => {
14
+ const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, FieldLayout: _ } = E(), { labelId: y } = I(), [R, D] = N(!1), F = u(r, t.Label), L = u(r, t.Control), T = u(r, t.Description), h = u(r, t.Error);
15
15
  return /* @__PURE__ */ e.createElement(_, {
16
16
  fieldId: l,
17
17
  renderLabel: () => F,
@@ -25,17 +25,17 @@ const t = ({ children: o, className: r }) => {
25
25
  isInvalid: i,
26
26
  onBlur: f,
27
27
  onFocus: C,
28
- className: r
28
+ className: o
29
29
  }, b(L, {
30
30
  isVisible: R,
31
- onToggleVisibility: () => D((h) => !h)
31
+ onToggleVisibility: () => D((w) => !w)
32
32
  })),
33
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, T, w)
33
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, T, h)
34
34
  });
35
- }, $ = ({ children: o, className: r, ...l }) => {
36
- const { isVisible: s, onToggleVisibility: c } = l, { disabled: n, hasError: m } = E(), a = u(o, t.Input), i = u(o, t.Toggle);
35
+ }, $ = ({ children: r, className: o, ...l }) => {
36
+ const { isVisible: s, onToggleVisibility: c } = l, { disabled: n, hasError: m } = E(), a = u(r, t.Input), i = u(r, t.Toggle);
37
37
  return /* @__PURE__ */ e.createElement(k, {
38
- className: r,
38
+ className: o,
39
39
  isDisabled: n,
40
40
  isInvalid: m
41
41
  }, b(a, {
@@ -44,8 +44,8 @@ const t = ({ children: o, className: r }) => {
44
44
  isVisible: s,
45
45
  onToggleVisibility: c
46
46
  }));
47
- }, z = ({ className: o, ...r }) => {
48
- const { isVisible: l } = r, { id: s, placeholder: c } = E(), { inputId: n, ariaDescribedBy: m } = I(), a = S(null);
47
+ }, z = ({ className: r, ...o }) => {
48
+ const { isVisible: l } = o, { id: s, placeholder: c } = E(), { inputId: n, ariaDescribedBy: m } = I(), a = S(null);
49
49
  return O(() => {
50
50
  var i;
51
51
  (i = a.current) == null || i.focus();
@@ -54,18 +54,18 @@ const t = ({ children: o, className: r }) => {
54
54
  id: n,
55
55
  type: l ? "text" : "password",
56
56
  "aria-describedby": m,
57
- className: o,
57
+ className: r,
58
58
  placeholder: c
59
59
  });
60
- }, J = ({ className: o, showPasswordTooltipText: r, hidePasswordTooltipText: l, children: s, ...c }) => {
61
- const { isVisible: n, onToggleVisibility: m } = c, { disabled: a } = E(), i = n ? l : r;
60
+ }, J = ({ className: r, showPasswordTooltipText: o, hidePasswordTooltipText: l, children: s, ...c }) => {
61
+ const { isVisible: n, onToggleVisibility: m } = c, { disabled: a } = E(), i = n ? l : o;
62
62
  return /* @__PURE__ */ e.createElement(U, {
63
63
  type: "button",
64
64
  isDisabled: a,
65
65
  onPress: m,
66
66
  "aria-label": i,
67
67
  "aria-pressed": n,
68
- className: o
68
+ className: r
69
69
  }, s == null ? void 0 : s({
70
70
  isVisible: n
71
71
  }));
@@ -76,7 +76,7 @@ t.Input = z;
76
76
  t.Toggle = J;
77
77
  t.Description = j;
78
78
  t.Error = H;
79
- const K = (o) => /* @__PURE__ */ e.createElement("svg", {
79
+ const K = (r) => /* @__PURE__ */ e.createElement("svg", {
80
80
  viewBox: "0 0 24 24",
81
81
  width: "20",
82
82
  height: "20",
@@ -84,14 +84,14 @@ const K = (o) => /* @__PURE__ */ e.createElement("svg", {
84
84
  stroke: "currentColor",
85
85
  strokeWidth: "1.5",
86
86
  "aria-hidden": "true",
87
- ...o
87
+ ...r
88
88
  }, /* @__PURE__ */ e.createElement("path", {
89
89
  d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"
90
90
  }), /* @__PURE__ */ e.createElement("circle", {
91
91
  cx: "12",
92
92
  cy: "12",
93
93
  r: "3"
94
- })), X = (o) => /* @__PURE__ */ e.createElement("svg", {
94
+ })), X = (r) => /* @__PURE__ */ e.createElement("svg", {
95
95
  viewBox: "0 0 24 24",
96
96
  width: "20",
97
97
  height: "20",
@@ -99,7 +99,7 @@ const K = (o) => /* @__PURE__ */ e.createElement("svg", {
99
99
  stroke: "currentColor",
100
100
  strokeWidth: "1.5",
101
101
  "aria-hidden": "true",
102
- ...o
102
+ ...r
103
103
  }, /* @__PURE__ */ e.createElement("path", {
104
104
  d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z"
105
105
  }), /* @__PURE__ */ e.createElement("circle", {
@@ -114,29 +114,29 @@ const K = (o) => /* @__PURE__ */ e.createElement("svg", {
114
114
  })), Y = "_control_1malj_1", ee = "_toggleButton_1malj_15", g = {
115
115
  control: Y,
116
116
  toggleButton: ee
117
- }, te = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(x, {
118
- content: o,
119
- locale: r
120
- }), oe = () => {
121
- const { t: o } = A(), r = Q(g.control);
117
+ }, te = ({ content: r, locale: o }) => /* @__PURE__ */ e.createElement(x, {
118
+ content: r,
119
+ locale: o
120
+ }), re = () => {
121
+ const { t: r } = A(), o = Q(g.control);
122
122
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
123
123
  className: d(B, p.label)
124
124
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
125
125
  className: d(v, p.requiredMark)
126
126
  })), /* @__PURE__ */ e.createElement(t.Control, {
127
- className: r
127
+ className: o
128
128
  }, /* @__PURE__ */ e.createElement(t.Input, {
129
129
  className: d(p.innerInput, G)
130
130
  }), /* @__PURE__ */ e.createElement(t.Toggle, {
131
131
  className: g.toggleButton,
132
- showPasswordTooltipText: o("forms.widget.modals.show-password-tooltip"),
133
- hidePasswordTooltipText: o("forms.widget.modals.hide-password-tooltip")
132
+ showPasswordTooltipText: r("forms.widget.modals.show-password-tooltip"),
133
+ hidePasswordTooltipText: r("forms.widget.modals.hide-password-tooltip")
134
134
  }, ({ isVisible: l }) => l ? /* @__PURE__ */ e.createElement(X, null) : /* @__PURE__ */ e.createElement(K, null))), /* @__PURE__ */ e.createElement(t.Error, {
135
135
  className: d(V, p.error)
136
136
  }, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
137
137
  className: d(P, p.description)
138
138
  }, te));
139
- }, be = () => /* @__PURE__ */ e.createElement(oe, null);
139
+ }, be = () => /* @__PURE__ */ e.createElement(re, null);
140
140
  export {
141
141
  be as PasswordRAC
142
142
  };
@@ -2,16 +2,16 @@ import r, { useCallback as P, useRef as Q } from "react";
2
2
  import { RicosViewer as w } from "@wix/ricos/viewer";
3
3
  import p from "classnames";
4
4
  import { TextField as z, Group as J, Input as K } from "react-aria-components";
5
- import { b9 as R, b6 as D, b1 as T, bj as W, bb as X, I as Y, U as Z, v as ee, p as re } from "./form-Dx1bK3Fi.js";
5
+ import { bh as R, be as D, b9 as T, br as W, bj as X, I as Y, U as Z, v as ee, p as re } from "./form-BpJ4Lqbe.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as te, E as ne } from "./field-error-headless-Ct41F8cQ.js";
8
- import { L as ae } from "./field-label-headless-DUqBV42_.js";
7
+ import { D as te, E as ne } from "./field-error-headless-Bu_4Huhb.js";
8
+ import { L as ae } from "./field-label-headless-DkDmQPFG.js";
9
9
  import { f as N, g as se } from "./payment-field-utils-DobiK5Xh.js";
10
10
  import { u as oe } from "./use-synced-display-value-DcAxdn3M.js";
11
11
  import { E as le } from "./error-icon-hZxQ6DEy.js";
12
12
  import { H as ce } from "./custom-focus-class-_483Pkwp.js";
13
- import { s as d } from "./field-rac.module-DQxyEwK7.js";
14
- import { u as ie } from "./use-text-input-class-name-Bnfv7ZsJ.js";
13
+ import { s as d } from "./field-rac.module-BIBNQEOK.js";
14
+ import { u as ie } from "./use-text-input-class-name-CNTXVb7N.js";
15
15
  function ue(e, t) {
16
16
  return {
17
17
  productId: e.id,
@@ -27,20 +27,20 @@ function h(e) {
27
27
  }
28
28
  const n = ({ children: e }) => {
29
29
  var O, g, A, V;
30
- const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: I, hasError: y, onBlur: o, onFocus: E, FieldLayout: M, validation: C } = R(), { labelId: q, prefixId: G } = D(), { regionalFormat: c } = T(), S = (A = (g = (O = C == null ? void 0 : C.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : g.products) == null ? void 0 : A[0], _ = (V = a == null ? void 0 : a.at(0)) == null ? void 0 : V.price, [F, b] = oe({
30
+ const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: b, hasError: y, onBlur: o, onFocus: E, FieldLayout: M, validation: C } = R(), { labelId: q, prefixId: G } = D(), { regionalFormat: c } = T(), S = (A = (g = (O = C == null ? void 0 : C.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : g.products) == null ? void 0 : A[0], _ = (V = a == null ? void 0 : a.at(0)) == null ? void 0 : V.price, [F, I] = oe({
31
31
  sourceValue: _,
32
32
  format: (l) => N(String(l ?? ""), c),
33
33
  regionalFormat: c
34
34
  }), $ = P(() => {
35
35
  const l = N(F, c);
36
- b(l || ""), o == null || o();
36
+ I(l || ""), o == null || o();
37
37
  }, [
38
38
  F,
39
39
  c,
40
40
  o,
41
- b
41
+ I
42
42
  ]), U = P((l) => {
43
- b(l);
43
+ I(l);
44
44
  const L = h(N(l, c)), j = h(_);
45
45
  if (L !== j) {
46
46
  if (L === void 0) {
@@ -56,7 +56,7 @@ const n = ({ children: e }) => {
56
56
  S,
57
57
  c,
58
58
  _,
59
- b
59
+ I
60
60
  ]), v = i(e, n.Label), B = i(e, n.Input), k = i(e, n.Description), H = i(e, n.Error);
61
61
  return /* @__PURE__ */ r.createElement(M, {
62
62
  fieldId: t,
@@ -67,7 +67,7 @@ const n = ({ children: e }) => {
67
67
  onChange: U,
68
68
  isDisabled: u,
69
69
  isReadOnly: m,
70
- isRequired: I,
70
+ isRequired: b,
71
71
  isInvalid: y,
72
72
  onBlur: $,
73
73
  onFocus: E
@@ -90,7 +90,7 @@ const n = ({ children: e }) => {
90
90
  className: e
91
91
  }, t.sign || t.code) : null;
92
92
  }, pe = ({ className: e }) => {
93
- const { id: t, placeholder: a, label: s } = R(), { inputId: u, labelId: m, prefixId: I, ariaDescribedBy: y } = D(), o = Q(null);
93
+ const { id: t, placeholder: a, label: s } = R(), { inputId: u, labelId: m, prefixId: b, ariaDescribedBy: y } = D(), o = Q(null);
94
94
  return X(() => {
95
95
  var E;
96
96
  (E = o.current) == null || E.focus();
@@ -100,7 +100,7 @@ const n = ({ children: e }) => {
100
100
  className: e,
101
101
  placeholder: a,
102
102
  "aria-label": s,
103
- "aria-labelledby": `${m} ${I}`,
103
+ "aria-labelledby": `${m} ${b}`,
104
104
  "aria-describedby": y,
105
105
  autoComplete: "off"
106
106
  });
@@ -117,7 +117,7 @@ const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", x = {
117
117
  }, Ee = ({ content: e, locale: t }) => /* @__PURE__ */ r.createElement(w, {
118
118
  content: e,
119
119
  locale: t
120
- }), be = () => {
120
+ }), Ie = () => {
121
121
  const e = ie(x.inputGroup);
122
122
  return /* @__PURE__ */ r.createElement(n, null, /* @__PURE__ */ r.createElement(n.Label, {
123
123
  className: p(Y, d.label)
@@ -134,7 +134,7 @@ const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", x = {
134
134
  }, /* @__PURE__ */ r.createElement(le, null), /* @__PURE__ */ r.createElement(n.Error.Text, null)), /* @__PURE__ */ r.createElement(n.Description, {
135
135
  className: p(re, d.description)
136
136
  }, Ee));
137
- }, Pe = () => /* @__PURE__ */ r.createElement(be, null);
137
+ }, Pe = () => /* @__PURE__ */ r.createElement(Ie, null);
138
138
  export {
139
139
  Pe as PaymentInputRAC
140
140
  };
@@ -1,24 +1,24 @@
1
1
  import { RicosViewer as Ce } from "@wix/ricos/viewer";
2
- import h from "classnames";
3
- import t, { useMemo as A, useState as $, useRef as F, useEffect as k, useCallback as Z, createContext as ee, useContext as G, useId as de } from "react";
4
- import { aU as ye, bj as D, b1 as te, bi as Ee, b9 as B, b6 as ne, bb as fe, I as ge, U as he, H as be, K as Oe, v as _e, p as Ne } from "./form-Dx1bK3Fi.js";
2
+ import g from "classnames";
3
+ import t, { useMemo as A, useState as $, useRef as F, useEffect as U, useCallback as Z, createContext as ee, useContext as G, useId as de } from "react";
4
+ import { b0 as ye, br as D, b9 as te, bq as Ee, bh as B, be as ne, bj as fe, I as he, U as ge, H as be, K as Oe, v as _e, p as Ne } from "./form-BpJ4Lqbe.js";
5
5
  import { UNSAFE_PortalProvider as Se } from "react-aria";
6
6
  import { Dialog as oe, OverlayTriggerStateContext as Le, ModalOverlay as Ie, Modal as ve, SearchField as Pe, Group as H, ListBoxItem as Fe, DialogTrigger as De, Select as Be, Input as re, Autocomplete as Re } from "react-aria-components";
7
- import { f as g, a as L } from "./find-child-C60k4CxG.js";
8
- import { D as xe, E as we } from "./field-error-headless-Ct41F8cQ.js";
9
- import { L as Me } from "./field-label-headless-DUqBV42_.js";
7
+ import { f as h, a as L } from "./find-child-C60k4CxG.js";
8
+ import { D as xe, E as we } from "./field-error-headless-Bu_4Huhb.js";
9
+ import { L as Me } from "./field-label-headless-DkDmQPFG.js";
10
10
  import { N as Te, S as Ae } from "./non-modal-popover-DtIMXHbe.js";
11
11
  import { u as $e } from "./use-invoke-callback-UH73A_J3.js";
12
- import { a as Ue, u as ke } from "./use-dropdown-trigger-class-name-COJhxT4T.js";
13
- import { V as Ve, u as qe } from "./use-dropdown-option-class-name-AklIMCCI.js";
12
+ import { a as ke, u as Ue } from "./use-dropdown-trigger-class-name-DapDPNX0.js";
13
+ import { V as Ve, u as qe } from "./use-dropdown-option-class-name-CTDQ4YIC.js";
14
14
  import ae, { AsYouType as He, isValidPhoneNumber as Ge, isSupportedCountry as Ke } from "libphonenumber-js";
15
15
  import "libphonenumber-js/metadata.min.json";
16
16
  import { C as Q } from "./calling-country-codes-PyWuOTmF.js";
17
17
  import { C as Ye } from "./chevron-down-icon-CcpVm6B-.js";
18
18
  import { E as je } from "./error-icon-hZxQ6DEy.js";
19
19
  import { H as W } from "./custom-focus-class-_483Pkwp.js";
20
- import { s as O } from "./field-rac.module-DQxyEwK7.js";
21
- import { u as ze } from "./use-text-input-class-name-Bnfv7ZsJ.js";
20
+ import { s as O } from "./field-rac.module-BIBNQEOK.js";
21
+ import { u as ze } from "./use-text-input-class-name-CNTXVb7N.js";
22
22
  function J(e) {
23
23
  const n = e ? ae(e) : void 0, r = n == null ? void 0 : n.country;
24
24
  if (r)
@@ -76,17 +76,17 @@ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
76
76
  const m = A(() => J(a), [
77
77
  a
78
78
  ]);
79
- k(() => {
79
+ U(() => {
80
80
  const p = e ?? "";
81
81
  p !== l.current && (c(p), l.current = p);
82
82
  }, [
83
83
  e
84
- ]), k(() => {
84
+ ]), U(() => {
85
85
  n && !i && u(n);
86
86
  }, [
87
87
  n,
88
88
  i
89
- ]), k(() => {
89
+ ]), U(() => {
90
90
  u(n ?? m);
91
91
  }, [
92
92
  m,
@@ -156,7 +156,7 @@ const se = /* @__PURE__ */ ee(null), _ = () => {
156
156
  defaultCountryCode: c,
157
157
  allowedCountryCodes: p,
158
158
  onChange: o
159
- }), R = g(e, s.Label), x = g(e, s.Control), w = g(e, s.Description), M = g(e, s.Error), I = {
159
+ }), R = h(e, s.Label), x = h(e, s.Control), w = h(e, s.Description), M = h(e, s.Error), I = {
160
160
  currentValue: f,
161
161
  selectedCountryCode: d,
162
162
  handlePhoneChange: S,
@@ -203,7 +203,7 @@ const se = /* @__PURE__ */ ee(null), _ = () => {
203
203
  z.Flag = Xe;
204
204
  z.EmptyState = et;
205
205
  const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a, ...c }) => {
206
- const { triggerRef: l, optionsRef: i, isForcedOpen: u, isOpen: m } = c, { popoverContainer: C } = _(), E = g(e, b.Search);
206
+ const { triggerRef: l, optionsRef: i, isForcedOpen: u, isOpen: m } = c, { popoverContainer: C } = _(), E = h(e, b.Search);
207
207
  if (!m)
208
208
  return null;
209
209
  const p = /* @__PURE__ */ t.createElement(le, {
@@ -244,7 +244,7 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
244
244
  }
245
245
  }, e)))));
246
246
  }, le = ({ children: e, listBoxProps: n, isForcedOpen: r }) => {
247
- const { countries: o } = _(), a = g(e, b.Option), c = g(e, b.Search), l = g(e, b.EmptyState), i = /* @__PURE__ */ t.createElement(Ve, {
247
+ const { countries: o } = _(), a = h(e, b.Option), c = h(e, b.Search), l = h(e, b.EmptyState), i = /* @__PURE__ */ t.createElement(Ve, {
248
248
  isForcedOpen: r === !0,
249
249
  ...n,
250
250
  renderEmptyState: l ? () => l : void 0
@@ -287,7 +287,7 @@ const ot = ({ children: e, className: n }) => /* @__PURE__ */ t.createElement("d
287
287
  className: n
288
288
  }, e);
289
289
  b.EmptyState = ot;
290
- const U = ({ children: e, className: n, ...r }) => {
290
+ const k = ({ children: e, className: n, ...r }) => {
291
291
  const { countryCode: o, dialingCode: a, countryName: c, longCountryCode: l } = r, i = {
292
292
  countryCode: o,
293
293
  dialingCode: a,
@@ -318,10 +318,10 @@ const U = ({ children: e, className: n, ...r }) => {
318
318
  className: e
319
319
  }, n);
320
320
  };
321
- U.Flag = ie;
322
- U.Name = me;
323
- U.Code = pe;
324
- b.Option = U;
321
+ k.Flag = ie;
322
+ k.Name = me;
323
+ k.Code = pe;
324
+ b.Option = k;
325
325
  const rt = ({ className: e }) => {
326
326
  const { t: n } = D(), { inputId: r, ariaDescribedBy: o } = ne(), { id: a, placeholder: c, disabled: l, readOnly: i, required: u, label: m, hasError: C } = B(), { currentValue: E, handlePhoneChange: p } = _(), f = F(null);
327
327
  return fe(() => {
@@ -357,15 +357,15 @@ const rt = ({ className: e }) => {
357
357
  isOpen: f,
358
358
  allowsEmptyCollection: !0,
359
359
  onOpenChange: o ? void 0 : m
360
- }, g(e, s.CountryButton), L(g(e, s.CountryOptions.Popover), {
360
+ }, h(e, s.CountryButton), L(h(e, s.CountryOptions.Popover), {
361
361
  ...r,
362
362
  isOpen: f
363
363
  }));
364
364
  }, st = ({ children: e, ...n }) => {
365
365
  const r = n;
366
- return /* @__PURE__ */ t.createElement(De, null, g(e, s.CountryButton), L(g(e, s.CountryOptions.Modal), r));
366
+ return /* @__PURE__ */ t.createElement(De, null, h(e, s.CountryButton), L(h(e, s.CountryOptions.Modal), r));
367
367
  }, ct = ({ children: e, className: n }) => {
368
- const r = F(null), o = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: m, onBlur: C } = B(), E = $e(C), { countries: p } = _(), f = g(e, s.CountryDrawer), d = g(e, s.CountryPopover), S = g(e, s.PhoneNumber), N = p.length > 1, R = Ue(c) && !!d && N, x = typeof n == "function" ? ({ isHovered: I }) => n({
368
+ const r = F(null), o = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: m, onBlur: C } = B(), E = $e(C), { countries: p } = _(), f = h(e, s.CountryDrawer), d = h(e, s.CountryPopover), S = h(e, s.PhoneNumber), N = p.length > 1, R = ke(c) && !!d && N, x = typeof n == "function" ? ({ isHovered: I }) => n({
369
369
  hasCountryOptions: N,
370
370
  isHovered: I
371
371
  }) : n, w = {
@@ -427,7 +427,7 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
427
427
  }, /* @__PURE__ */ t.createElement("path", {
428
428
  fillRule: "evenodd",
429
429
  d: "M6.6108,14.3887 C5.5718,13.3497 4.9998,11.9687 4.9998,10.4997 C4.9998,9.0317 5.5718,7.6507 6.6108,6.6117 C7.6498,5.5727 9.0308,4.9997 10.4998,4.9997 C11.9688,4.9997 13.3498,5.5727 14.3888,6.6117 C15.4278,7.6507 15.9998,9.0317 15.9998,10.4997 C15.9998,11.9687 15.4278,13.3497 14.3888,14.3887 C13.3498,15.4277 11.9688,15.9997 10.4998,15.9997 C9.0308,15.9997 7.6498,15.4277 6.6108,14.3887 L6.6108,14.3887 Z M20.0028,19.2957 L15.4328,14.7247 C16.4438,13.5477 16.9998,12.0687 16.9998,10.4997 C16.9998,8.7637 16.3238,7.1317 15.0958,5.9047 C13.8688,4.6767 12.2358,3.9997 10.4998,3.9997 C8.7638,3.9997 7.1318,4.6767 5.9038,5.9047 C4.6758,7.1317 3.9998,8.7637 3.9998,10.4997 C3.9998,12.2367 4.6758,13.8677 5.9038,15.0957 C7.1318,16.3237 8.7638,16.9997 10.4998,16.9997 C12.0688,16.9997 13.5478,16.4437 14.7258,15.4317 L19.2958,20.0027 L20.0028,19.2957 Z"
430
- })), it = "_control_rc3mn_1", mt = "_countryButton_rc3mn_9", pt = "_drawerButton_rc3mn_25", Ct = "_popoverButton_rc3mn_34", dt = "_chevron_rc3mn_39", yt = "_globeIcon_rc3mn_48", Et = "_searchIcon_rc3mn_49", ft = "_flag_rc3mn_58", gt = "_phoneNumber_rc3mn_73", ht = "_countryOptions_rc3mn_99", bt = "_option_rc3mn_107", Ot = "_countrySearch_rc3mn_116", _t = "_mobileDrawer_rc3mn_124", Nt = "_name_rc3mn_133", St = "_code_rc3mn_137", Lt = "_mobileOverlay_rc3mn_154", y = {
430
+ })), it = "_control_rc3mn_1", mt = "_countryButton_rc3mn_9", pt = "_drawerButton_rc3mn_25", Ct = "_popoverButton_rc3mn_34", dt = "_chevron_rc3mn_39", yt = "_globeIcon_rc3mn_48", Et = "_searchIcon_rc3mn_49", ft = "_flag_rc3mn_58", ht = "_phoneNumber_rc3mn_73", gt = "_countryOptions_rc3mn_99", bt = "_option_rc3mn_107", Ot = "_countrySearch_rc3mn_116", _t = "_mobileDrawer_rc3mn_124", Nt = "_name_rc3mn_133", St = "_code_rc3mn_137", Lt = "_mobileOverlay_rc3mn_154", y = {
431
431
  control: it,
432
432
  countryButton: mt,
433
433
  drawerButton: pt,
@@ -436,8 +436,8 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
436
436
  globeIcon: yt,
437
437
  searchIcon: Et,
438
438
  flag: ft,
439
- phoneNumber: gt,
440
- countryOptions: ht,
439
+ phoneNumber: ht,
440
+ countryOptions: gt,
441
441
  option: bt,
442
442
  countrySearch: Ot,
443
443
  mobileDrawer: _t,
@@ -451,13 +451,13 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
451
451
  className: y.chevron,
452
452
  "aria-hidden": "true"
453
453
  }, /* @__PURE__ */ t.createElement(Ye, null)), Zt = () => {
454
- const e = qe(O.selectOptionWithoutFocusRing, y.option, W), n = ke(y.control), r = ze(y.countrySearch), { t: o } = D(), { PortalContainer: a } = te(), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
454
+ const e = qe(O.selectOptionWithoutFocusRing, y.option, W), n = Ue(y.control), r = ze(y.countrySearch), { t: o } = D(), { PortalContainer: a } = te(), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
455
455
  className: r,
456
456
  "aria-label": o("field.phone.country-search-input.aria-label")
457
457
  }, /* @__PURE__ */ t.createElement(ut, {
458
458
  className: y.searchIcon
459
459
  }), /* @__PURE__ */ t.createElement(s.CountryOptions.Search.Input, {
460
- className: h(O.innerInput, W),
460
+ className: g(O.innerInput, W),
461
461
  placeholder: o("field.phone.country-search-input.placeholder")
462
462
  })), l = /* @__PURE__ */ t.createElement(s.CountryOptions.EmptyState, null, o("field.phone.country-selector-dropdown.no-result")), i = /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(s.CountryButton.Flag, {
463
463
  className: y.flag
@@ -473,33 +473,33 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
473
473
  className: y.code
474
474
  }));
475
475
  return /* @__PURE__ */ t.createElement(s, null, /* @__PURE__ */ t.createElement(s.Label, {
476
- className: h(ge, O.label)
476
+ className: g(he, O.label)
477
477
  }, /* @__PURE__ */ t.createElement(s.Label.Required, {
478
- className: h(he, O.requiredMark)
478
+ className: g(ge, O.requiredMark)
479
479
  })), /* @__PURE__ */ t.createElement(s.Control, {
480
480
  className: ({ hasCountryOptions: m, isHovered: C }) => m ? n({
481
481
  isHovered: C
482
- }) : h(be, O.input, y.control)
482
+ }) : g(be, O.input, y.control)
483
483
  }, /* @__PURE__ */ t.createElement(s.CountryDrawer, null, /* @__PURE__ */ t.createElement(s.CountryButton, {
484
- className: h(y.countryButton, y.drawerButton)
484
+ className: g(y.countryButton, y.drawerButton)
485
485
  }, i), /* @__PURE__ */ t.createElement(s.CountryOptions.Modal, {
486
- className: h(O.selectPopover, y.mobileDrawer),
486
+ className: g(O.selectPopover, y.mobileDrawer),
487
487
  overlayClassName: y.mobileOverlay,
488
488
  portalContainer: a,
489
489
  "aria-label": o("field.phone.country-code.aria-label")
490
490
  }, c, l, u)), /* @__PURE__ */ t.createElement(s.CountryPopover, null, /* @__PURE__ */ t.createElement(s.CountryButton, {
491
- className: h(y.countryButton, y.popoverButton)
491
+ className: g(y.countryButton, y.popoverButton)
492
492
  }, i), /* @__PURE__ */ t.createElement(s.CountryOptions.Popover, {
493
- className: h(Oe, O.selectPopover, y.countryOptions),
493
+ className: g(Oe, O.selectPopover, y.countryOptions),
494
494
  placement: "bottom start",
495
495
  offset: 0,
496
496
  "aria-label": o("field.phone.country-code.aria-label")
497
497
  }, c, l, u)), /* @__PURE__ */ t.createElement(s.PhoneNumber, {
498
- className: h(O.innerInput, y.phoneNumber)
498
+ className: g(O.innerInput, y.phoneNumber)
499
499
  })), /* @__PURE__ */ t.createElement(s.Error, {
500
- className: h(_e, O.error)
500
+ className: g(_e, O.error)
501
501
  }, /* @__PURE__ */ t.createElement(je, null), /* @__PURE__ */ t.createElement(s.Error.Text, null)), /* @__PURE__ */ t.createElement(s.Description, {
502
- className: h(Ne, O.description)
502
+ className: g(Ne, O.description)
503
503
  }, It));
504
504
  };
505
505
  export {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { P as o } from "./phone-input-field-rac-BT-Fe6WZ.js";
2
+ import { P as o } from "./phone-input-field-rac-R3LYdPIs.js";
3
3
  const r = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  r as PhoneRAC
@@ -1,20 +1,20 @@
1
1
  import t, { useMemo as $, useCallback as M, useRef as B } from "react";
2
2
  import { RicosViewer as z } from "@wix/ricos/viewer";
3
- import _ from "classnames";
3
+ import b from "classnames";
4
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-Dx1bK3Fi.js";
5
+ import { bh as k, be as Y, b9 as w, br as Z, bj 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-BpJ4Lqbe.js";
6
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-DUqBV42_.js";
7
+ import { L as ue, g as me } from "./field-label-headless-DkDmQPFG.js";
8
8
  import { f as pe } from "./format-currency-BwShJ9vM.js";
9
- import { D as de, E as Ee } from "./field-error-headless-Ct41F8cQ.js";
9
+ import { D as de, E as Ee } from "./field-error-headless-Bu_4Huhb.js";
10
10
  import { F as ye } from "./fieldset-headless-CD3fds9J.js";
11
- import { g as be } from "./payment-field-utils-DobiK5Xh.js";
12
- import { S as _e } from "./selection-indicator-XQ8MYHUQ.js";
11
+ import { g as _e } from "./payment-field-utils-DobiK5Xh.js";
12
+ import { S as be } from "./selection-indicator-XQ8MYHUQ.js";
13
13
  import { E as fe } from "./error-icon-hZxQ6DEy.js";
14
- import { C as Ie } from "./checkbox-indicator-module-classes-DOAYUQ_Q.js";
15
- import { s as T } from "./field-rac.module-DQxyEwK7.js";
14
+ import { C as Ie } from "./checkbox-indicator-module-classes-Bqo0QILF.js";
15
+ import { s as T } from "./field-rac.module-BIBNQEOK.js";
16
16
  import { o as Q } from "./options-rac.module-_THNq6Qq.js";
17
- import { u as Oe } from "./use-element-state-class-name-CCe7Cvsu.js";
17
+ import { u as Oe } from "./use-element-state-class-name-BU86oHkX.js";
18
18
  var Le = /* @__PURE__ */ (function(e) {
19
19
  return e.crop = "CROP", e.fit = "FIT", e;
20
20
  })({}), x = /* @__PURE__ */ (function(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: 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 || [], [
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(), _ = 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,7 +42,7 @@ const o = ({ children: e }) => {
42
42
  ]);
43
43
  return /* @__PURE__ */ t.createElement(p, {
44
44
  fieldId: a,
45
- renderLabel: () => b,
45
+ renderLabel: () => _,
46
46
  renderInput: () => /* @__PURE__ */ t.createElement(ye, {
47
47
  id: q,
48
48
  ariaLabelledBy: N,
@@ -64,12 +64,12 @@ const o = ({ children: e }) => {
64
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((b, g) => {
67
+ }, u == null ? void 0 : u.map((_, 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 === 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);
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 === _.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0", L = _e(N, q), i = r.find((R) => R.productId === _.value);
70
70
  return f(h, {
71
- key: b.id || b.value || b.label,
72
- option: b,
71
+ key: _.id || _.value || _.label,
72
+ option: _,
73
73
  price: v,
74
74
  quantity: i == null ? void 0 : i.quantity,
75
75
  isSelected: !!i,
@@ -84,13 +84,13 @@ const o = ({ children: e }) => {
84
84
  });
85
85
  }));
86
86
  }, E = ({ children: e, className: a, ...l }) => {
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);
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: _ } = 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
- }, b);
93
+ }, _);
94
94
  const D = M((d) => {
95
95
  s({
96
96
  productId: n.value,
@@ -218,7 +218,7 @@ const o = ({ children: e }) => {
218
218
  E.Image = Re;
219
219
  E.Label = ge;
220
220
  E.Price = Fe;
221
- E.Input = _e;
221
+ E.Input = be;
222
222
  E.Quantity = De;
223
223
  V.Option = E;
224
224
  o.Label = ue;
@@ -243,27 +243,27 @@ const Se = "_options_11x4v_1", Pe = "_option_11x4v_1", Ne = "_optionInput_11x4v_
243
243
  moduleClasses: Ie
244
244
  });
245
245
  return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
246
- className: _(te, T.label)
246
+ className: b(te, T.label)
247
247
  }, /* @__PURE__ */ t.createElement(o.Label.Required, {
248
- className: _(ne, T.requiredMark)
248
+ className: b(ne, T.requiredMark)
249
249
  })), /* @__PURE__ */ t.createElement(o.Options, {
250
- className: _(ae, Q.options, P.options)
250
+ className: b(ae, Q.options, P.options)
251
251
  }, /* @__PURE__ */ t.createElement(o.Option, {
252
- className: _(T.checkbox, P.option)
252
+ className: b(T.checkbox, P.option)
253
253
  }, /* @__PURE__ */ t.createElement(o.Option.Image, {
254
254
  className: P.optionImage
255
255
  }), /* @__PURE__ */ t.createElement(o.Option.Label, {
256
- className: _(oe, Q.optionLabel, P.optionLabel)
256
+ className: b(oe, Q.optionLabel, P.optionLabel)
257
257
  }), /* @__PURE__ */ t.createElement(o.Option.Price, {
258
- className: _(re, P.optionPrice)
258
+ className: b(re, P.optionPrice)
259
259
  }), /* @__PURE__ */ t.createElement(o.Option.Input, {
260
- className: (a) => _(e(a), P.optionInput)
260
+ className: (a) => b(e(a), P.optionInput)
261
261
  }), /* @__PURE__ */ t.createElement(o.Option.Quantity, {
262
- className: _(le, T.inputGroup, P.quantity)
262
+ className: b(le, T.inputGroup, P.quantity)
263
263
  }))), /* @__PURE__ */ t.createElement(o.Error, {
264
- className: _(se, T.error)
264
+ className: b(se, T.error)
265
265
  }, /* @__PURE__ */ t.createElement(fe, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
266
- className: _(ie, T.description)
266
+ className: b(ie, T.description)
267
267
  }, qe));
268
268
  }, Ze = () => /* @__PURE__ */ t.createElement(Me, null);
269
269
  export {
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-BY2OIFFr.js";
2
+ import { R as r } from "./radio-group-field-rac-R5onZzJd.js";
3
3
  const i = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  i as QuizRadioGroupRAC
@@ -1,9 +1,9 @@
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 { b9 as g, b6 as $, bj as F, bb as x } from "./form-Dx1bK3Fi.js";
3
+ import { bh as g, be as $, br as F, bj as x } from "./form-BpJ4Lqbe.js";
4
4
  import { f as d, a as v } from "./find-child-C60k4CxG.js";
5
- import { D as U, E as j } from "./field-error-headless-Ct41F8cQ.js";
6
- import { L as M } from "./field-label-headless-DUqBV42_.js";
5
+ import { D as U, E as j } from "./field-error-headless-Bu_4Huhb.js";
6
+ import { L as M } from "./field-label-headless-DkDmQPFG.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;
@@ -1,13 +1,13 @@
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-DtmmP89u.js";
4
+ import { a, s, R as n } from "./radio-button-module-classes-D8Jm-Q6u.js";
5
5
  import { E as c } from "./error-icon-hZxQ6DEy.js";
6
- import { s as r } from "./field-rac.module-DQxyEwK7.js";
7
- import { I as i, U as E, P as p, Q as R, v as O, p as _, R as I } from "./form-Dx1bK3Fi.js";
6
+ import { s as r } from "./field-rac.module-BIBNQEOK.js";
7
+ import { I as i, U as E, P as p, Q as R, v as O, p as _, R as I } from "./form-BpJ4Lqbe.js";
8
8
  import { o as L } from "./options-rac.module-_THNq6Qq.js";
9
- import { u as N } from "./use-element-state-class-name-CCe7Cvsu.js";
10
- import { u } from "./use-text-input-class-name-Bnfv7ZsJ.js";
9
+ import { u as N } from "./use-element-state-class-name-BU86oHkX.js";
10
+ import { u } from "./use-text-input-class-name-CNTXVb7N.js";
11
11
  const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
12
12
  content: o,
13
13
  locale: l