@wix/form-elements 1.165.0 → 1.167.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 (109) hide show
  1. package/dist/component/{appointment-rac-Cskf9hxi.js → appointment-rac-BbXyKTd7.js} +72 -72
  2. package/dist/component/{bookings-address-rac-C18tuPai.js → bookings-address-rac-VJkR_U9L.js} +1 -1
  3. package/dist/component/{bookings-email-rac-C2GL3cJg.js → bookings-email-rac-_EupwXpQ.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-IEklnchg.js → bookings-first-name-rac-DTZixHYj.js} +1 -1
  5. package/dist/component/{bookings-header-rac-iwcrj5Kj.js → bookings-header-rac-BKbKTv5g.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CXZfq3Rw.js → bookings-last-name-rac-BDy860-C.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DP0MBFTm.js → bookings-login-bar-rac-DgNP-YNZ.js} +5 -5
  8. package/dist/component/{bookings-phone-rac-uJGk_tzr.js → bookings-phone-rac-B_I6n96b.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BerRAnFy.js → bookings-rich-text-rac-prYPbIiz.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-BBftIi_U.js → checkbox-field-rac-C-4PXuxG.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-BiQ4coe6.js → checkbox-group-field-headless-D16bAcaq.js} +35 -35
  12. package/dist/component/{checkbox-group-field-rac-moHc5Cyu.js → checkbox-group-field-rac-GUQ5dO_s.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-iuPzxN7i.js → checkbox-group-rac-Bl6xL5-H.js} +1 -1
  14. package/dist/component/{checkbox-rac-BwfHAeFo.js → checkbox-rac-Blg0KVyP.js} +1 -1
  15. package/dist/component/{contacts-address-rac-DuyEL5YR.js → contacts-address-rac-BfOhCAj8.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-Mkoplu3x.js → contacts-birthdate-rac-DYBvDh62.js} +1 -1
  17. package/dist/component/{contacts-company-rac-B-3QghQg.js → contacts-company-rac-DIJr7zjA.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CqooKQl8.js → contacts-email-rac-DjmqELhC.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CAOu0GIH.js → contacts-first-name-rac-DGNll7gw.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-Cd-wCTC3.js → contacts-last-name-rac-BJ8AZYQN.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-OGE6eaJc.js → contacts-phone-rac-BC-QtpEN.js} +1 -1
  22. package/dist/component/{contacts-position-rac-eSsV63RC.js → contacts-position-rac-BQia__74.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-19d4uPR-.js → contacts-subscribe-rac-CTFptz01.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-TtyrAftZ.js → contacts-tax-id-rac-Cy72Jouc.js} +1 -1
  25. package/dist/component/{date-availability-CudIaav_.js → date-availability-BC6updcS.js} +1 -1
  26. package/dist/component/{date-input-field-rac-DzMiQLxS.js → date-input-field-rac-b_T1yf8D.js} +38 -38
  27. package/dist/component/{date-input-rac-BWfmwcmK.js → date-input-rac-KkRyWRP_.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-w4Wf-m0I.js → date-picker-field-rac-BLWVJbTJ.js} +6 -6
  29. package/dist/component/{date-picker-rac-Bejo7tOm.js → date-picker-rac-DKCQza7v.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-D6JPrbGb.js → date-time-input-field-rac-CZxZW6fz.js} +45 -45
  31. package/dist/component/{date-time-input-rac-CAK5NgC4.js → date-time-input-rac-DQ-iBwmr.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BqoHMQwI.js → dext-checkbox-group-rac-kp1Jbwt-.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-BEis8bxo.js → dext-checkbox-rac-CBm9cRUz.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-DDQTy3BG.js → dext-date-picker-rac-DsVKWsRy.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-Dp3UEXEu.js → dext-date-time-input-rac-CO26-8Qo.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-DisXIXNb.js → dext-dropdown-rac-eRzu2C-y.js} +1 -1
  37. package/dist/component/{dext-email-rac-CBv4umUC.js → dext-email-rac-DDrZzE_G.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-0UNC_1Ac.js → dext-number-input-rac-Dj7sInLk.js} +1 -1
  39. package/dist/component/{dext-phone-rac-CQVzz499.js → dext-phone-rac-g8M77F7m.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-3lhx-xxX.js → dext-radio-group-rac-BjhygC0R.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-2fwxV3iY.js → dext-rating-input-rac-BraNjvyA.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DCL78ClS.js → dext-tags-rac-B5mAIuDi.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-WTCWYySB.js → dext-text-area-rac-D_YBnaWi.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-DMCzSYAI.js → dext-text-input-rac-BzeWH1jv.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-Bzvt5zTa.js → dext-url-input-rac-Cn0h_vx3.js} +1 -1
  46. package/dist/component/{donation-rac-B3YHu0bl.js → donation-rac-CQRdHxWh.js} +46 -46
  47. package/dist/component/{dropdown-field-rac-y4GPpf0W.js → dropdown-field-rac-C7LL0W5Z.js} +3 -3
  48. package/dist/component/{dropdown-rac-Dj7OnxJL.js → dropdown-rac-Nb2VyJ0x.js} +1 -1
  49. package/dist/component/{ecom-address-rac-Bnc60jDw.js → ecom-address-rac-_c2YIIwg.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-CesTpjav.js → ecom-subscription-checkbox-rac-Bma7TAVj.js} +2 -2
  51. package/dist/component/{email-input-field-rac-BT2FrAEM.js → email-input-field-rac-2E2tEaS5.js} +47 -47
  52. package/dist/component/events-repeater-rac-COWHYBFD.js +280 -0
  53. package/dist/component/{events-rsvp-rac-wVpVt7-p.js → events-rsvp-rac-CXp8j19Y.js} +3 -3
  54. package/dist/component/{field-error-headless-CX95bMbk.js → field-error-headless-S-ugOQQX.js} +7 -7
  55. package/dist/component/{field-label-headless-niuFY6Mw.js → field-label-headless-_n4I0_tX.js} +14 -14
  56. package/dist/component/{file-upload-rac-ByO8l8lE.js → file-upload-rac-DCH_iwDg.js} +79 -79
  57. package/dist/component/{fixed-payment-rac-BNDAdNeQ.js → fixed-payment-rac-CYkKJUfM.js} +14 -14
  58. package/dist/component/{form-CCQN_rPn.js → form-jK8ezTss.js} +1110 -1109
  59. package/dist/component/form.css +1 -1
  60. package/dist/component/form.js +1 -1
  61. package/dist/component/{header-field-rac-C1RySfYy.js → header-field-rac-DnbjI6W5.js} +6 -6
  62. package/dist/component/{header-rac-BaFPV0vy.js → header-rac-DKUICrni.js} +1 -1
  63. package/dist/component/{image-choice-rac-BShUj92P.js → image-choice-rac-B_9ponST.js} +4 -4
  64. package/dist/component/{index-DHLfweXD.js → index-BxdMzOvN.js} +68 -68
  65. package/dist/component/{index-0_YjLphg.js → index-ZYnsxY-a.js} +2 -2
  66. package/dist/component/{isObjectLike-D7tbAd6O.js → isObjectLike-BW-9QEQl.js} +9 -9
  67. package/dist/component/{multiline-address-field-rac-CFJKE5vA.js → multiline-address-field-rac-k-P0ijWG.js} +40 -40
  68. package/dist/component/{multiline-address-rac-BlzCkwEH.js → multiline-address-rac-Bbn9mNDa.js} +1 -1
  69. package/dist/component/{number-input-field-rac-XqxdqTRV.js → number-input-field-rac--lom-B_X.js} +7 -7
  70. package/dist/component/{number-input-rac-CQTg0QSm.js → number-input-rac-Bhbd6T9S.js} +1 -1
  71. package/dist/component/{password-rac-DPE-U2xs.js → password-rac-BV_uTHb3.js} +14 -14
  72. package/dist/component/{payment-input-rac-oOh04431.js → payment-input-rac-cawyGN_t.js} +28 -28
  73. package/dist/component/{phone-input-field-rac-DW2vQhjC.js → phone-input-field-rac-CsElHRto.js} +67 -67
  74. package/dist/component/{phone-rac-BB9B-Hpl.js → phone-rac-XrHN5Nko.js} +1 -1
  75. package/dist/component/{product-list-rac-K53VvPJV.js → product-list-rac-cxv_xz7K.js} +30 -30
  76. package/dist/component/{quiz-radio-group-rac-gikcMV2I.js → quiz-radio-group-rac-DGaxOPE1.js} +1 -1
  77. package/dist/component/{radio-button-module-classes-CY883yGO.js → radio-button-module-classes-Xv2Jn01x.js} +21 -21
  78. package/dist/component/{radio-group-field-rac-BOEWcfT9.js → radio-group-field-rac-DgGqgTql.js} +4 -4
  79. package/dist/component/{radio-group-rac-gKhmLMm3.js → radio-group-rac-Bh0E-oe1.js} +1 -1
  80. package/dist/component/{rating-input-field-rac-83FXIVpy.js → rating-input-field-rac-C3YLV971.js} +10 -10
  81. package/dist/component/{rating-input-rac-XDwakrtR.js → rating-input-rac-CfcC5EUh.js} +1 -1
  82. package/dist/component/{rich-content-rac.module-Bdx8hK3J.js → rich-content-rac.module-DUjzLGtX.js} +5 -5
  83. package/dist/component/{rich-text-field-rac-ksEKBaYG.js → rich-text-field-rac-BmguoJhk.js} +5 -5
  84. package/dist/component/{rich-text-rac-XEFBeQrz.js → rich-text-rac-BWhHcq25.js} +1 -1
  85. package/dist/component/{service-dropdown-rac-CjFiqV1n.js → service-dropdown-rac-C5oX-ql7.js} +30 -30
  86. package/dist/component/{services-multi-choice-rac-DNut4K3I.js → services-multi-choice-rac-C1fem9NB.js} +12 -12
  87. package/dist/component/{signature-rac-BhWPZpwu.js → signature-rac-BtHqiWj1.js} +62 -62
  88. package/dist/component/{submit-button-rac-CWmz_JCl.js → submit-button-rac-OYeKJFF8.js} +60 -60
  89. package/dist/component/{tags-field-rac-D9P1jVrz.js → tags-field-rac-kA2RSijL.js} +37 -37
  90. package/dist/component/{tags-rac-0zEd-xYa.js → tags-rac-B_2qCZGu.js} +1 -1
  91. package/dist/component/{text-area-field-rac-D_55oi2b.js → text-area-field-rac-DeO609Mv.js} +17 -17
  92. package/dist/component/{text-area-rac-CpkFyXCH.js → text-area-rac-BAQFBOZd.js} +1 -1
  93. package/dist/component/{text-input-field-rac-b7RXb4Ob.js → text-input-field-rac-CCcKwuLZ.js} +3 -3
  94. package/dist/component/{text-input-headless-b1TEpdit.js → text-input-headless-D8-jkaYm.js} +8 -8
  95. package/dist/component/{text-input-rac-CoVcg1S0.js → text-input-rac-BVcgjj8g.js} +1 -1
  96. package/dist/component/{time-input-rac-DE7OyzgQ.js → time-input-rac-BYctyHgU.js} +11 -11
  97. package/dist/component/{url-input-field-rac-_yxWlb3a.js → url-input-field-rac-COC9qgcs.js} +23 -23
  98. package/dist/component/{url-input-rac-wguMUqug.js → url-input-rac-BZXLh0Ej.js} +1 -1
  99. package/dist/component/{use-dropdown-option-class-name-DdQ0sFRF.js → use-dropdown-option-class-name-BTltqRl1.js} +2 -2
  100. package/dist/component/use-dropdown-trigger-class-name-BjJZfl3i.js +98 -0
  101. package/dist/component/{use-element-state-class-name-C2tQgxUX.js → use-element-state-class-name-CkT6Ga8t.js} +3 -3
  102. package/dist/component/{use-hoverable-input-class-name-C8iuzofb.js → use-hoverable-input-class-name-BkoSr6tr.js} +2 -2
  103. package/dist/component/{use-is-forced-open-dropdown-DkIrJPsK.js → use-is-forced-open-dropdown-fo_NCnSk.js} +1 -1
  104. package/dist/component/{use-service-options-base-B-xAR-tx.js → use-service-options-base-Wp8RZ4Z8.js} +1 -1
  105. package/dist/component/use-text-input-class-name-DS7i03Gk.js +6 -0
  106. package/package.json +2 -2
  107. package/dist/component/events-repeater-rac-CA2yjEEk.js +0 -271
  108. package/dist/component/use-dropdown-trigger-class-name-hB8KYv-I.js +0 -96
  109. package/dist/component/use-text-input-class-name-CK4rZeSM.js +0 -6
@@ -1,13 +1,13 @@
1
1
  import { RicosViewer as m } from "@wix/ricos/viewer";
2
2
  import a from "classnames";
3
3
  import e from "react";
4
- import { u as n, D as r } from "./use-dropdown-trigger-class-name-hB8KYv-I.js";
4
+ import { u as n, D as r } from "./use-dropdown-trigger-class-name-BjJZfl3i.js";
5
5
  import { C as l } from "./chevron-down-icon-CcpVm6B-.js";
6
6
  import { E as c } from "./error-icon-hZxQ6DEy.js";
7
7
  import { H as i } from "./custom-focus-class-_483Pkwp.js";
8
8
  import { s as o } from "./field-rac.module-ts2t4WUO.js";
9
- import { U as p, aa as E, H as D, K as _, G as O } from "./form-CCQN_rPn.js";
10
- import { u as R } from "./use-dropdown-option-class-name-DdQ0sFRF.js";
9
+ import { U as p, af as E, H as D, K as _, G as O } from "./form-jK8ezTss.js";
10
+ import { u as R } from "./use-dropdown-option-class-name-BTltqRl1.js";
11
11
  const C = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(m, {
12
12
  content: t,
13
13
  locale: s
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { D as r } from "./dropdown-field-rac-y4GPpf0W.js";
2
+ import { D as r } from "./dropdown-field-rac-C7LL0W5Z.js";
3
3
  const n = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  n as DropdownRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { M as r } from "./multiline-address-field-rac-CFJKE5vA.js";
2
+ import { M as r } from "./multiline-address-field-rac-k-P0ijWG.js";
3
3
  const l = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  l as EcomAddressRAC
@@ -1,6 +1,6 @@
1
1
  import o, { useMemo as n } from "react";
2
- import { by as a, bI as c, aA as i } from "./form-CCQN_rPn.js";
3
- import { C as l } from "./checkbox-field-rac-BBftIi_U.js";
2
+ import { bD as a, bN as c, aF as i } from "./form-jK8ezTss.js";
3
+ import { C as l } from "./checkbox-field-rac-C-4PXuxG.js";
4
4
  const p = (e) => ({
5
5
  nodes: [
6
6
  {
@@ -1,20 +1,20 @@
1
1
  import { RicosViewer as ie } from "@wix/ricos/viewer";
2
- import C from "classnames";
3
- import u, { createContext as z, useContext as Z, createElement as R, isValidElement as U, cloneElement as w, useState as le, useCallback as me, useEffect as ue } from "react";
2
+ import j from "classnames";
3
+ import u, { createContext as z, useContext as Z, createElement as R, isValidElement as B, cloneElement as w, useState as le, useCallback as me, useEffect as ue } from "react";
4
4
  import { TextField as pe } from "react-aria-components";
5
- import { bv as fe, bI as ge, bt as ve, d as ye, by as Ee, bC as de, bw as be, ay as Se, U as Oe, aa as he, K as Ie, G as Ne, aj as Ae } from "./form-CCQN_rPn.js";
6
- import { f as D } from "./find-child-C60k4CxG.js";
5
+ import { bA as fe, bN as ge, by as ve, d as ye, bD as Ee, bH as de, bB as be, aD as Se, U as Oe, af as he, K as Ie, G as Ne, ao as Ae } from "./form-jK8ezTss.js";
6
+ import { f as C } from "./find-child-C60k4CxG.js";
7
7
  import ee from "@babel/runtime/helpers/objectWithoutProperties";
8
8
  import L from "@babel/runtime/helpers/typeof";
9
9
  import Fe from "@babel/runtime/helpers/defineProperty";
10
10
  import ke from "html-parse-stringify";
11
- import Te from "@babel/runtime/helpers/classCallCheck";
12
- import xe from "@babel/runtime/helpers/createClass";
13
- import { T as B } from "./text-input-headless-b1TEpdit.js";
14
- import { E as je } from "./error-icon-hZxQ6DEy.js";
11
+ import De from "@babel/runtime/helpers/classCallCheck";
12
+ import Te from "@babel/runtime/helpers/createClass";
13
+ import { T as U } from "./text-input-headless-D8-jkaYm.js";
14
+ import { E as xe } from "./error-icon-hZxQ6DEy.js";
15
15
  import { s as H } from "./field-rac.module-ts2t4WUO.js";
16
- import { u as Ce } from "./use-text-input-class-name-CK4rZeSM.js";
17
- var De = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Le = {
16
+ import { u as je } from "./use-text-input-class-name-DS7i03Gk.js";
17
+ var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Le = {
18
18
  "&": "&",
19
19
  "&": "&",
20
20
  "&lt;": "<",
@@ -38,7 +38,7 @@ var De = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
38
38
  }, Me = function(t) {
39
39
  return Le[t];
40
40
  }, Pe = function(t) {
41
- return t.replace(De, Me);
41
+ return t.replace(Ce, Me);
42
42
  }, _e = {
43
43
  bindI18n: "languageChanged",
44
44
  bindI18nStore: "",
@@ -54,9 +54,9 @@ function Re() {
54
54
  }
55
55
  (function() {
56
56
  function e() {
57
- Te(this, e), this.usedNamespaces = {};
57
+ De(this, e), this.usedNamespaces = {};
58
58
  }
59
- return xe(e, [{
59
+ return Te(e, [{
60
60
  key: "addUsedNamespaces",
61
61
  value: function(a) {
62
62
  var o = this;
@@ -82,12 +82,12 @@ function K() {
82
82
  }
83
83
  }
84
84
  var J = {};
85
- function Ue() {
85
+ function Be() {
86
86
  for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
87
87
  t[a] = arguments[a];
88
88
  typeof t[0] == "string" && J[t[0]] || (typeof t[0] == "string" && (J[t[0]] = /* @__PURE__ */ new Date()), K.apply(void 0, t));
89
89
  }
90
- var Be = ["format"], Ve = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
90
+ var Ue = ["format"], Ve = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
91
91
  function Q(e, t) {
92
92
  var a = Object.keys(e);
93
93
  if (Object.getOwnPropertySymbols) {
@@ -119,7 +119,7 @@ function Y(e) {
119
119
  }
120
120
  function qe(e) {
121
121
  return Object.prototype.toString.call(e) !== "[object Array]" ? !1 : e.every(function(t) {
122
- return U(t);
122
+ return B(t);
123
123
  });
124
124
  }
125
125
  function M(e) {
@@ -135,7 +135,7 @@ function te(e, t) {
135
135
  return o.forEach(function(r, g) {
136
136
  if (typeof r == "string")
137
137
  a += "".concat(r);
138
- else if (U(r)) {
138
+ else if (B(r)) {
139
139
  var v = Object.keys(r.props).length, d = c.indexOf(r.type) > -1, b = r.props.children;
140
140
  if (!b && d && v === 0)
141
141
  a += "<".concat(r.type, "/>");
@@ -146,13 +146,13 @@ function te(e, t) {
146
146
  else if (d && v === 1 && typeof b == "string")
147
147
  a += "<".concat(r.type, ">").concat(b, "</").concat(r.type, ">");
148
148
  else {
149
- var T = te(b, t);
150
- a += "<".concat(g, ">").concat(T, "</").concat(g, ">");
149
+ var D = te(b, t);
150
+ a += "<".concat(g, ">").concat(D, "</").concat(g, ">");
151
151
  }
152
152
  } else if (r === null)
153
153
  K("Trans: the passed in value is invalid - seems you passed in a null child.");
154
154
  else if (L(r) === "object") {
155
- var O = r.format, F = ee(r, Be), A = Object.keys(F);
155
+ var O = r.format, F = ee(r, Ue), A = Object.keys(F);
156
156
  if (A.length === 1) {
157
157
  var S = O ? "".concat(A[0], ", ").concat(O) : A[0];
158
158
  a += "{{".concat(S, "}}");
@@ -170,11 +170,11 @@ function Ye(e, t, a, o, c, r) {
170
170
  function b(y) {
171
171
  var h = M(y);
172
172
  h.forEach(function(s) {
173
- typeof s != "string" && (G(s) ? b(Y(s)) : L(s) === "object" && !U(s) && Object.assign(d, s));
173
+ typeof s != "string" && (G(s) ? b(Y(s)) : L(s) === "object" && !B(s) && Object.assign(d, s));
174
174
  });
175
175
  }
176
176
  b(e);
177
- var T = ke.parse("<0>".concat(t, "</0>")), O = p(p({}, d), c);
177
+ var D = ke.parse("<0>".concat(t, "</0>")), O = p(p({}, d), c);
178
178
  function F(y, h, s) {
179
179
  var i = Y(y), I = S(i, h.children, s);
180
180
  return qe(i) && I.length === 0 ? i : I;
@@ -193,7 +193,7 @@ function Ye(e, t, a, o, c, r) {
193
193
  !N && s.length === 1 && s[0][n.name] && (N = s[0][n.name]), N || (N = {});
194
194
  var m = Object.keys(n.attrs).length !== 0 ? Ge({
195
195
  props: n.attrs
196
- }, N) : N, x = U(m), V = x && G(n, !0) && !n.voidElement, P = v && L(m) === "object" && m.dummy && !x, _ = L(e) === "object" && e !== null && Object.hasOwnProperty.call(e, n.name);
196
+ }, N) : N, T = B(m), V = T && G(n, !0) && !n.voidElement, P = v && L(m) === "object" && m.dummy && !T, _ = L(e) === "object" && e !== null && Object.hasOwnProperty.call(e, n.name);
197
197
  if (typeof m == "string") {
198
198
  var q = a.services.interpolator.interpolate(m, O, a.language);
199
199
  l.push(q);
@@ -226,7 +226,7 @@ function Ye(e, t, a, o, c, r) {
226
226
  var ce = S(i, n.children, s);
227
227
  l.push("<".concat(n.name, ">").concat(ce, "</").concat(n.name, ">"));
228
228
  }
229
- else if (L(m) === "object" && !x) {
229
+ else if (L(m) === "object" && !T) {
230
230
  var $ = n.children[0] ? k : null;
231
231
  $ && l.push($);
232
232
  } else n.children.length === 1 && k ? l.push(w(m, p(p({}, m.props), {}, {
@@ -243,16 +243,16 @@ function Ye(e, t, a, o, c, r) {
243
243
  return l;
244
244
  }, []);
245
245
  }
246
- var j = S([{
246
+ var x = S([{
247
247
  dummy: !0,
248
248
  children: e || []
249
- }], T, M(e || []));
250
- return Y(j[0]);
249
+ }], D, M(e || []));
250
+ return Y(x[0]);
251
251
  }
252
252
  function $e(e) {
253
- var t = e.children, a = e.count, o = e.parent, c = e.i18nKey, r = e.context, g = e.tOptions, v = g === void 0 ? {} : g, d = e.values, b = e.defaults, T = e.components, O = e.ns, F = e.i18n, A = e.t, S = e.shouldUnescape, j = ee(e, Ve), y = Z(He) || {}, h = y.i18n, s = y.defaultNS, i = F || h || Ke();
253
+ var t = e.children, a = e.count, o = e.parent, c = e.i18nKey, r = e.context, g = e.tOptions, v = g === void 0 ? {} : g, d = e.values, b = e.defaults, D = e.components, O = e.ns, F = e.i18n, A = e.t, S = e.shouldUnescape, x = ee(e, Ve), y = Z(He) || {}, h = y.i18n, s = y.defaultNS, i = F || h || Ke();
254
254
  if (!i)
255
- return Ue("You will need to pass in an i18next instance by using i18nextReactModule"), t;
255
+ return Be("You will need to pass in an i18next instance by using i18nextReactModule"), t;
256
256
  var I = A || i.t.bind(i) || function(q) {
257
257
  return q;
258
258
  };
@@ -264,13 +264,13 @@ function $e(e) {
264
264
  prefix: "#$?",
265
265
  suffix: "?$#"
266
266
  })
267
- }, x = p(p(p(p({}, v), {}, {
267
+ }, T = p(p(p(p({}, v), {}, {
268
268
  count: a
269
269
  }, d), m), {}, {
270
270
  defaultValue: E,
271
271
  ns: n
272
- }), V = N ? I(N, x) : E, P = Ye(T || t, V, i, l, x, S), _ = o !== void 0 ? o : l.defaultTransParent;
273
- return _ ? R(_, j, P) : P;
272
+ }), V = N ? I(N, T) : E, P = Ye(D || t, V, i, l, T, S), _ = o !== void 0 ? o : l.defaultTransParent;
273
+ return _ ? R(_, x, P) : P;
274
274
  }
275
275
  const We = "email-mistype-suggestion", Xe = "email-mistype-suggestion-link", ae = /* @__PURE__ */ z(void 0);
276
276
  function Je() {
@@ -449,14 +449,14 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
449
449
  validate: v
450
450
  };
451
451
  }, f = ({ children: e }) => {
452
- const { id: t, value: a, onChange: o, disabled: c, readOnly: r, required: g, hasError: v, onBlur: d, onFocus: b, error: T, description: O, FieldLayout: F } = Ee(), { isMistyped: A, suggestedEmail: S, validate: j } = at({
452
+ const { id: t, value: a, onChange: o, disabled: c, readOnly: r, required: g, hasError: v, onBlur: d, onFocus: b, error: D, description: O, FieldLayout: F } = Ee(), { isMistyped: A, suggestedEmail: S, validate: x } = at({
453
453
  email: a,
454
454
  hasError: v
455
- }), { setFocusedFieldId: y } = de(), s = A && (!r && !c) && S ? S : void 0, i = be(t, T, O, s), I = () => {
455
+ }), { setFocusedFieldId: y } = de(), s = A && (!r && !c) && S ? S : void 0, i = be(t, D, O, s), I = () => {
456
456
  o(s), y(t);
457
457
  }, l = () => {
458
- j(), d == null || d();
459
- }, n = D(e, f.Label), E = D(e, f.Input), k = D(e, f.Description), N = D(e, f.Error), m = D(e, f.Suggestion);
458
+ x(), d == null || d();
459
+ }, n = C(e, f.Label), E = C(e, f.Input), k = C(e, f.Description), N = C(e, f.Error), m = C(e, f.Suggestion);
460
460
  return /* @__PURE__ */ u.createElement(Se.Provider, {
461
461
  value: i
462
462
  }, /* @__PURE__ */ u.createElement(Qe, {
@@ -481,10 +481,10 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
481
481
  renderDescription: () => /* @__PURE__ */ u.createElement(u.Fragment, null, N, m, k)
482
482
  })));
483
483
  };
484
- f.Label = B.Label;
485
- f.Input = B.Input;
486
- f.Description = B.Description;
487
- f.Error = B.Error;
484
+ f.Label = U.Label;
485
+ f.Input = U.Input;
486
+ f.Description = U.Description;
487
+ f.Error = U.Error;
488
488
  f.Suggestion = ze;
489
489
  const nt = "_suggestion_lysve_1", ot = {
490
490
  suggestion: nt
@@ -492,19 +492,19 @@ const nt = "_suggestion_lysve_1", ot = {
492
492
  content: e,
493
493
  locale: t
494
494
  }), ht = () => {
495
- const e = Ce();
495
+ const e = je();
496
496
  return /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(f.Label, {
497
- className: C(Oe, H.label)
497
+ className: j(Oe, H.label)
498
498
  }, /* @__PURE__ */ u.createElement(f.Label.Required, {
499
- className: C(he, H.requiredMark)
499
+ className: j(he, H.requiredMark)
500
500
  })), /* @__PURE__ */ u.createElement(f.Input, {
501
501
  className: e
502
502
  }), /* @__PURE__ */ u.createElement(f.Error, {
503
- className: C(Ie, H.error)
504
- }, /* @__PURE__ */ u.createElement(je, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
505
- className: C(Ne, H.description)
503
+ className: j(Ie, H.error)
504
+ }, /* @__PURE__ */ u.createElement(xe, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
505
+ className: j(Ne, H.description)
506
506
  }, rt), /* @__PURE__ */ u.createElement(f.Suggestion, {
507
- className: C(Ae, ot.suggestion)
507
+ className: j(Ae, ot.suggestion)
508
508
  }));
509
509
  };
510
510
  export {
@@ -0,0 +1,280 @@
1
+ import t, { useState as X, useMemo as T, useCallback as x, useRef as k } from "react";
2
+ import v from "classnames";
3
+ import { NumberField as q, CheckboxField as Q, CheckboxButton as W, Group as Y, Input as Z, Button as w } from "react-aria-components";
4
+ import { bJ as P, bK as j, bz as U, bE as H, a$ as ee, bD as O, bA as $, bF as K, aH as te, aa as se, ac as ne, ae as oe, ab as re, ad as ae } from "./form-jK8ezTss.js";
5
+ import { f as C, a as R } from "./find-child-C60k4CxG.js";
6
+ import { L as le } from "./field-label-headless-_n4I0_tX.js";
7
+ import { S as ce } from "./selection-indicator-XQ8MYHUQ.js";
8
+ import { u as ue } from "./use-invoke-callback-UH73A_J3.js";
9
+ import { C as M } from "./chevron-down-icon-CcpVm6B-.js";
10
+ import { C as me } from "./checkbox-indicator-module-classes-DUTR4mcg.js";
11
+ import { s as B } from "./field-rac.module-ts2t4WUO.js";
12
+ import { u as ie } from "./use-element-state-class-name-CkT6Ga8t.js";
13
+ import { u as de } from "./use-hoverable-input-class-name-BkoSr6tr.js";
14
+ const Ee = [], pe = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = Ee, validation: c }) => {
15
+ const [i, E] = X((o == null ? void 0 : o.length) || 0), u = T(() => o ?? [], [
16
+ o
17
+ ]), p = P(), G = j(), d = U(), { validateFields: m } = H(), F = c.predefined.objectArrayOptions.maxItems, y = T(() => ee({
18
+ form: {
19
+ fields: s,
20
+ steps: [
21
+ {
22
+ layout: a
23
+ }
24
+ ]
25
+ },
26
+ parentId: e,
27
+ recursive: !1
28
+ }), [
29
+ s,
30
+ a,
31
+ e
32
+ ]), I = T(() => l.reduce((b, L) => {
33
+ const [S, N] = L.errorPath.split("/"), D = parseInt(S, 10);
34
+ return b[D] || (b[D] = []), b[D].push({
35
+ ...L,
36
+ errorPath: N
37
+ }), b;
38
+ }, []), [
39
+ l
40
+ ]), _ = x((b) => {
41
+ const L = Number.isNaN(b) ? 0 : Math.min(Math.max(b, 0), F);
42
+ E(L), n == null || n(Array.from({
43
+ length: L
44
+ }, (S, N) => u[N] ?? {}));
45
+ }, [
46
+ F,
47
+ u,
48
+ n
49
+ ]), h = x((b) => (L, S) => {
50
+ const N = Array.from({
51
+ length: i
52
+ }, (D, J) => u[J] ?? {});
53
+ N[b] = {
54
+ ...N[b],
55
+ [L]: S
56
+ }, n == null || n(N);
57
+ }, [
58
+ i,
59
+ u,
60
+ n
61
+ ]);
62
+ return {
63
+ guestLimit: F,
64
+ guestCount: i,
65
+ guests: u,
66
+ errorsByIndex: I,
67
+ formView: y,
68
+ formSchema: p,
69
+ formFields: G,
70
+ fieldActions: d,
71
+ validateFields: m,
72
+ changeGuestCount: _,
73
+ changeGuestField: h
74
+ };
75
+ }, be = [], Ce = {}, r = ({ children: e, className: s }) => {
76
+ const a = O(), { id: o, FieldLayout: n } = a, { guestLimit: l, guestCount: c, guests: i, errorsByIndex: E, formView: u, changeGuestCount: p, changeGuestField: G } = pe(a), d = C(e, r.Label), m = C(e, r.GuestCount), F = C(e, r.GuestToggle), y = C(e, r.Guests), I = l > 1;
77
+ return /* @__PURE__ */ t.createElement(n, {
78
+ fieldId: o,
79
+ renderLabel: () => I ? d : null,
80
+ renderInput: () => /* @__PURE__ */ t.createElement("div", {
81
+ className: s
82
+ }, I ? R(m, {
83
+ guestLimit: l,
84
+ guestCount: c,
85
+ onGuestCountChange: p
86
+ }) : R(F, {
87
+ guestCount: c,
88
+ onGuestCountChange: p
89
+ }), R(y, {
90
+ guestCount: c,
91
+ guests: i,
92
+ errorsByIndex: E,
93
+ formView: u,
94
+ onGuestFieldChange: G
95
+ })),
96
+ renderDescription: () => null
97
+ });
98
+ }, z = ({ className: e }) => /* @__PURE__ */ t.createElement(le, {
99
+ className: e
100
+ }, null), g = ({ children: e, className: s, ...a }) => {
101
+ const { guestLimit: o, guestCount: n, onGuestCountChange: l } = a, { label: c, disabled: i, readOnly: E, onBlur: u, onFocus: p } = O(), G = ue(u), d = C(e, g.Label), m = C(e, g.Control);
102
+ return /* @__PURE__ */ t.createElement(q, {
103
+ className: s,
104
+ "aria-label": c,
105
+ value: n,
106
+ onChange: l,
107
+ minValue: 0,
108
+ maxValue: o,
109
+ step: 1,
110
+ isDisabled: i,
111
+ isReadOnly: E,
112
+ onBlur: G,
113
+ onFocus: p
114
+ }, d, m);
115
+ }, ge = ({ children: e, className: s }) => {
116
+ const { disabled: a, readOnly: o } = O(), n = C(e, g.Input), l = C(e, g.Decrement), c = C(e, g.Increment);
117
+ return /* @__PURE__ */ t.createElement(Y, {
118
+ className: s,
119
+ isDisabled: a,
120
+ isReadOnly: o
121
+ }, n, c, l);
122
+ }, Ge = ({ className: e }) => {
123
+ const { id: s } = O(), { inputId: a, ariaDescribedBy: o } = $(), n = k(null);
124
+ return K(() => {
125
+ var l;
126
+ (l = n.current) == null || l.focus({
127
+ preventScroll: !0
128
+ });
129
+ }, s), /* @__PURE__ */ t.createElement(Z, {
130
+ ref: n,
131
+ id: a,
132
+ "aria-describedby": o,
133
+ className: e,
134
+ inputMode: "numeric"
135
+ });
136
+ }, _e = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(w, {
137
+ slot: "decrement",
138
+ className: s
139
+ }, e), fe = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(w, {
140
+ slot: "increment",
141
+ className: s
142
+ }, e), A = ({ children: e, className: s, ...a }) => {
143
+ const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: i, readOnly: E, onBlur: u, onFocus: p } = O(), { inputId: G, ariaDescribedBy: d } = $(), m = k(null);
144
+ K(() => {
145
+ var _;
146
+ (_ = m.current) == null || _.focus({
147
+ preventScroll: !0
148
+ });
149
+ }, l);
150
+ const F = C(e, A.Input), y = C(e, A.Label), I = x((_) => {
151
+ n(_ ? 1 : 0);
152
+ }, [
153
+ n
154
+ ]);
155
+ return /* @__PURE__ */ t.createElement(Q, {
156
+ inputRef: m,
157
+ id: G,
158
+ "aria-describedby": d,
159
+ isSelected: o > 0,
160
+ onChange: I,
161
+ isDisabled: i,
162
+ isReadOnly: E,
163
+ onBlur: u,
164
+ onFocus: p
165
+ }, /* @__PURE__ */ t.createElement(W, {
166
+ className: s
167
+ }, ({ isSelected: _, isHovered: h, isFocused: b }) => /* @__PURE__ */ t.createElement(t.Fragment, null, R(F, {
168
+ isSelected: _,
169
+ isHovered: h,
170
+ isFocused: b
171
+ }), R(y, {
172
+ label: c
173
+ }))));
174
+ }, Fe = ({ className: e, ...s }) => {
175
+ const { label: a } = s;
176
+ return /* @__PURE__ */ t.createElement("span", {
177
+ className: e
178
+ }, a);
179
+ }, V = ({ children: e, className: s, ...a }) => {
180
+ const { guestCount: o, guests: n, errorsByIndex: l, formView: c, onGuestFieldChange: i } = a, { disabled: E, readOnly: u } = O(), p = T(() => ({
181
+ ...c,
182
+ fields: c.fields.map((d) => ({
183
+ ...d,
184
+ properties: {
185
+ ...d.properties,
186
+ disabled: !!(E || d.properties.disabled),
187
+ readOnly: !!(u || d.properties.readOnly)
188
+ }
189
+ }))
190
+ }), [
191
+ c,
192
+ E,
193
+ u
194
+ ]), G = C(e, V.Guest);
195
+ return o ? /* @__PURE__ */ t.createElement("div", {
196
+ className: s
197
+ }, Array.from({
198
+ length: o
199
+ }, (d, m) => R(G, {
200
+ key: m,
201
+ index: m,
202
+ formView: p,
203
+ values: n[m] ?? Ce,
204
+ errors: l[m] ?? be,
205
+ onFieldChange: i(m)
206
+ }))) : null;
207
+ }, Le = ({ className: e, ...s }) => {
208
+ const { index: a, formView: o, values: n, errors: l, onFieldChange: c } = s, i = P(), E = j(), u = U(), { validateFields: p } = H();
209
+ return /* @__PURE__ */ t.createElement("div", {
210
+ className: e,
211
+ "data-hook": `guest-${a}`
212
+ }, /* @__PURE__ */ t.createElement(te, {
213
+ form: o,
214
+ formSchema: i,
215
+ values: n,
216
+ errors: l,
217
+ validateFields: p,
218
+ onFieldChange: c,
219
+ fields: E,
220
+ fieldActions: u
221
+ }));
222
+ };
223
+ g.Label = z;
224
+ g.Control = ge;
225
+ g.Input = Ge;
226
+ g.Decrement = _e;
227
+ g.Increment = fe;
228
+ A.Input = ce;
229
+ A.Label = Fe;
230
+ V.Guest = Le;
231
+ r.Label = z;
232
+ r.GuestCount = g;
233
+ r.GuestToggle = A;
234
+ r.Guests = V;
235
+ const Ne = "_container_xcjm5_1", Ie = "_count_xcjm5_8", Re = "_toggle_xcjm5_14", Oe = "_countLabel_xcjm5_18", ye = "_countGroup_xcjm5_22", Ae = "_increment_xcjm5_32", Se = "_decrement_xcjm5_33", f = {
236
+ container: Ne,
237
+ count: Ie,
238
+ toggle: Re,
239
+ countLabel: Oe,
240
+ countGroup: ye,
241
+ increment: Ae,
242
+ decrement: Se
243
+ }, De = () => {
244
+ const e = de(re, [
245
+ f.countGroup
246
+ ]), s = ie({
247
+ globalClasses: ae,
248
+ moduleClasses: me
249
+ });
250
+ return /* @__PURE__ */ t.createElement(r, {
251
+ className: v(se, f.container)
252
+ }, /* @__PURE__ */ t.createElement(r.GuestCount, {
253
+ className: f.count
254
+ }, /* @__PURE__ */ t.createElement(r.GuestCount.Label, {
255
+ className: v(ne, B.label, f.countLabel)
256
+ }), /* @__PURE__ */ t.createElement(r.GuestCount.Control, {
257
+ className: e
258
+ }, /* @__PURE__ */ t.createElement(r.GuestCount.Input, {
259
+ className: B.innerInput
260
+ }), /* @__PURE__ */ t.createElement(r.GuestCount.Increment, {
261
+ className: f.increment
262
+ }, /* @__PURE__ */ t.createElement(M, {
263
+ style: {
264
+ transform: "rotate(180deg)"
265
+ }
266
+ })), /* @__PURE__ */ t.createElement(r.GuestCount.Decrement, {
267
+ className: f.decrement
268
+ }, /* @__PURE__ */ t.createElement(M, null)))), /* @__PURE__ */ t.createElement(r.GuestToggle, {
269
+ className: v(B.checkbox, f.toggle)
270
+ }, /* @__PURE__ */ t.createElement(r.GuestToggle.Input, {
271
+ className: s
272
+ }), /* @__PURE__ */ t.createElement(r.GuestToggle.Label, {
273
+ className: oe
274
+ })), /* @__PURE__ */ t.createElement(r.Guests, {
275
+ className: f.container
276
+ }, /* @__PURE__ */ t.createElement(r.Guests.Guest, null)));
277
+ }, $e = () => /* @__PURE__ */ t.createElement(De, null);
278
+ export {
279
+ $e as EventsRepeaterRAC
280
+ };
@@ -1,12 +1,12 @@
1
1
  import t from "react";
2
2
  import { RicosViewer as m } from "@wix/ricos/viewer";
3
3
  import a from "classnames";
4
- import { a as s, s as n, R as c } from "./radio-button-module-classes-CY883yGO.js";
4
+ import { a as s, s as n, R as c } from "./radio-button-module-classes-Xv2Jn01x.js";
5
5
  import { E as i } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as o } from "./field-rac.module-ts2t4WUO.js";
7
- import { U as E, aa as p, a5 as R, a6 as O, K as _, G as L, a7 as D } from "./form-CCQN_rPn.js";
7
+ import { U as E, af as p, a5 as R, a6 as O, K as _, G as L, a7 as D } from "./form-jK8ezTss.js";
8
8
  import { o as I } from "./options-rac.module-_THNq6Qq.js";
9
- import { u as S } from "./use-element-state-class-name-C2tQgxUX.js";
9
+ import { u as S } from "./use-element-state-class-name-CkT6Ga8t.js";
10
10
  const e = ({ children: r, className: l }) => /* @__PURE__ */ t.createElement(s, {
11
11
  className: l
12
12
  }, r);
@@ -1,5 +1,5 @@
1
1
  import t, { createContext as m, useContext as M } from "react";
2
- import { by as c, bv as i, bq as b, b7 as f, b8 as v } from "./form-CCQN_rPn.js";
2
+ import { bD as c, bA as i, bv as b, bc as f, bd as v } from "./form-jK8ezTss.js";
3
3
  const H = ({ className: r, children: e }) => {
4
4
  const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = b();
5
5
  return s ? /* @__PURE__ */ t.createElement("div", {
@@ -10,13 +10,13 @@ const H = ({ className: r, children: e }) => {
10
10
  content: s,
11
11
  locale: n
12
12
  })) : null;
13
- }, l = /* @__PURE__ */ m(void 0), x = l.Provider, h = ({ className: r }) => {
13
+ }, l = /* @__PURE__ */ m(void 0), x = l.Provider, D = ({ className: r }) => {
14
14
  const e = M(l);
15
15
  return /* @__PURE__ */ t.createElement("span", {
16
16
  className: r
17
17
  }, e ?? "");
18
- }, D = ({ className: r, children: e, ...s }) => {
19
- const { hasError: o, errorMessage: a } = s, { target: n, hasError: E, errorMessage: d } = c(), { errorId: g } = i(), u = o ?? E, p = a ?? d;
18
+ }, h = ({ className: r, children: e, ...s }) => {
19
+ const { hasError: o, errorMessage: a } = s, { target: n, hasError: d, errorMessage: E } = c(), { errorId: g } = i(), u = o ?? d, p = a ?? E;
20
20
  return u ? /* @__PURE__ */ t.createElement(x, {
21
21
  value: p
22
22
  }, /* @__PURE__ */ t.createElement("div", {
@@ -25,10 +25,10 @@ const H = ({ className: r, children: e }) => {
25
25
  className: r
26
26
  }, e)) : null;
27
27
  };
28
- D.Text = h;
28
+ h.Text = D;
29
29
  export {
30
30
  H as D,
31
- D as E,
31
+ h as E,
32
32
  x as a,
33
- h as b
33
+ D as b
34
34
  };