@wix/form-elements 1.84.0 → 1.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/component/{appointment-rac-BSy3u0GK.js → appointment-rac-CCaJ6P5r.js} +78 -78
  2. package/dist/component/{bookings-address-rac-CL7Bh1yH.js → bookings-address-rac-DEt9SGPG.js} +1 -1
  3. package/dist/component/{bookings-email-rac-Bw9tj_tv.js → bookings-email-rac-BydOvOUZ.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-BOOu_AXM.js → bookings-first-name-rac-BoQki0Pb.js} +1 -1
  5. package/dist/component/{bookings-header-rac-3kBei7GF.js → bookings-header-rac-DK-EcXrk.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CUKbu22q.js → bookings-last-name-rac-BuGIyd43.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CLrUhdX2.js → bookings-login-bar-rac-Cr500ehb.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-7DViellg.js → bookings-phone-rac-Bq2zdMxo.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CIUZX--G.js → bookings-rich-text-rac-DRmfusX9.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-C_jth3RK.js → checkbox-field-rac-b9mcZlMP.js} +5 -5
  11. package/dist/component/{checkbox-group-field-headless-D-c9Kyj8.js → checkbox-group-field-headless-BSNhdCfs.js} +30 -30
  12. package/dist/component/{checkbox-group-field-rac-MgGUuYII.js → checkbox-group-field-rac-BObfui8r.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-rr1mN2EJ.js → checkbox-group-rac-CBNMgBHU.js} +1 -1
  14. package/dist/component/{checkbox-rac-CRsLQKhN.js → checkbox-rac-DXh-i6Ot.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BFlNbQKh.js → contacts-address-rac-BDQLFakc.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-D7Ww3iAz.js → contacts-birthdate-rac-BUMVVVfb.js} +1 -1
  17. package/dist/component/{contacts-company-rac-DLl4nqH-.js → contacts-company-rac-CidGcaA3.js} +1 -1
  18. package/dist/component/{contacts-email-rac-K8fCs8qS.js → contacts-email-rac-GePAhKDQ.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-BOTxHl3m.js → contacts-first-name-rac-kw5sIBEE.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-bFnG-7Hm.js → contacts-last-name-rac-DzoZKs1n.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-B4teqDIV.js → contacts-phone-rac-CxVW4Zp0.js} +1 -1
  22. package/dist/component/{contacts-position-rac-CnWoXO5h.js → contacts-position-rac-CXFxlSty.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-Bco722BU.js → contacts-subscribe-rac-kpRGeELB.js} +2 -2
  24. package/dist/component/{contacts-tax-id-rac-QQsKhAx3.js → contacts-tax-id-rac-B5qw-rtP.js} +1 -1
  25. package/dist/component/{date-availability-DMbyb1GZ.js → date-availability-BCDMem-_.js} +1 -1
  26. package/dist/component/{date-input-field-rac-CVRjO19U.js → date-input-field-rac-BLDZ4_Mw.js} +43 -43
  27. package/dist/component/{date-input-rac-zi7AQ8Ai.js → date-input-rac-B1WGYKOp.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-5H10gH9D.js → date-picker-field-rac-BNd8aZ0c.js} +20 -20
  29. package/dist/component/{date-picker-rac-CxWNDsyJ.js → date-picker-rac-ItWxSngw.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-CDa-nyf8.js → date-time-input-field-rac-Ch8z0NRT.js} +5 -5
  31. package/dist/component/{date-time-input-rac-DglwFYb0.js → date-time-input-rac-FebIovNN.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BBB652Uy.js → dext-checkbox-group-rac-BXYHMQ3R.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-BVtiGV3w.js → dext-checkbox-rac-C78ScIGY.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Di4x6sI_.js → dext-date-picker-rac-BptT4fhe.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-agWHwUo7.js → dext-date-time-input-rac-RWJ51IjA.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-U3FZTA2-.js → dext-dropdown-rac-DZDOtSIG.js} +1 -1
  37. package/dist/component/{dext-email-rac-CZ9AQw_k.js → dext-email-rac-CJceqZsw.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DFr_9ZX5.js → dext-number-input-rac-buSXk49E.js} +1 -1
  39. package/dist/component/{dext-phone-rac-BYsfNwXn.js → dext-phone-rac-CeHUOWck.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-B_jm5YAT.js → dext-radio-group-rac-CNyNSfeP.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-CNlhMKt-.js → dext-rating-input-rac-mmdh9tYT.js} +1 -1
  42. package/dist/component/{dext-tags-rac-y9x8Fg54.js → dext-tags-rac-CqJ4iv-V.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-BgRxIpn9.js → dext-text-area-rac-P1EzLNDE.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-CdzgUZ38.js → dext-text-input-rac-Dtz4ZLj7.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-Cg1TYyNV.js → dext-url-input-rac-DUVbW2yl.js} +1 -1
  46. package/dist/component/{donation-rac-Deiw7Tl9.js → donation-rac-Nn7z8_to.js} +43 -43
  47. package/dist/component/{dropdown-field-headless-BKj2rdy9.js → dropdown-field-headless-CT4uSCPR.js} +11 -11
  48. package/dist/component/{dropdown-field-rac-CIdC2_O3.js → dropdown-field-rac-CUiyFJi_.js} +5 -5
  49. package/dist/component/{dropdown-rac-CYxaJrXP.js → dropdown-rac-Bs_PVy1q.js} +1 -1
  50. package/dist/component/{ecom-address-rac-Crr3A_iU.js → ecom-address-rac-BTXwDlMM.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-DdXAex4c.js → ecom-subscription-checkbox-rac-CGI84A37.js} +3 -3
  52. package/dist/component/{email-input-field-rac-C516Fm0v.js → email-input-field-rac-DKD7FsQX.js} +54 -54
  53. package/dist/component/{events-repeater-rac-DL49KaIU.js → events-repeater-rac-B7yIRlyt.js} +30 -30
  54. package/dist/component/{events-rsvp-rac-B5EvAP8x.js → events-rsvp-rac-C7FOuFmH.js} +3 -3
  55. package/dist/component/{field-error-headless-D2CJ4Qk7.js → field-error-headless-BHTkMu35.js} +1 -1
  56. package/dist/component/{field-label-headless-D2-WvVKT.js → field-label-headless-D3DwX65k.js} +7 -7
  57. package/dist/component/{file-upload-rac-BG3msdbn.js → file-upload-rac-B3n_LYYK.js} +85 -85
  58. package/dist/component/{fixed-payment-rac-3bI_h_W0.js → fixed-payment-rac-C6jsiS4-.js} +12 -12
  59. package/dist/component/{form-B3KiRFhB.js → form-BkmOXzqo.js} +2510 -2487
  60. package/dist/component/{form-element-classes-Ct1UaxuQ.js → form-element-classes-BsXkFtp2.js} +90 -57
  61. package/dist/component/form.css +1 -1
  62. package/dist/component/form.js +1 -1
  63. package/dist/component/{header-field-rac-Bp7hStrt.js → header-field-rac-FG9EP9--.js} +5 -5
  64. package/dist/component/{header-rac-yVYId2B_.js → header-rac-DZZgqFjW.js} +1 -1
  65. package/dist/component/{image-choice-rac-D1mqJfcn.js → image-choice-rac-CXgE6z_f.js} +42 -42
  66. package/dist/component/{index-LrdDmlej.js → index-CSwTHDCX.js} +2 -2
  67. package/dist/component/{index-B0PANcv8.js → index-DKV2sNhD.js} +4 -4
  68. package/dist/component/{isObjectLike-DH7T0Txd.js → isObjectLike-DYfHbEQ3.js} +1 -1
  69. package/dist/component/{multiline-address-field-rac-C-gtuNCU.js → multiline-address-field-rac-DnCOKW8F.js} +128 -128
  70. package/dist/component/{multiline-address-rac-B3ixmNqi.js → multiline-address-rac-BZRlzLZq.js} +1 -1
  71. package/dist/component/{number-input-field-rac-BNPMYFay.js → number-input-field-rac-BOJNJ50c.js} +30 -30
  72. package/dist/component/{number-input-rac-BaEBt2uf.js → number-input-rac-D8ZcIPwq.js} +1 -1
  73. package/dist/component/{password-rac-B0H_ILkt.js → password-rac-T9PR5j2v.js} +19 -19
  74. package/dist/component/{payment-input-rac-LIk9MP5a.js → payment-input-rac-C9N3LZOZ.js} +17 -17
  75. package/dist/component/{phone-input-field-rac-CUUAacDK.js → phone-input-field-rac-BxUiCV5Z.js} +40 -40
  76. package/dist/component/{phone-rac-BYqYOw60.js → phone-rac-BjKFrr86.js} +1 -1
  77. package/dist/component/{product-list-rac-CvoI6ajr.js → product-list-rac-BG-VK_Hz.js} +41 -41
  78. package/dist/component/{quiz-radio-group-rac-D0IJGSh0.js → quiz-radio-group-rac-B1x7Yatu.js} +2 -2
  79. package/dist/component/{radio-button-module-classes-CWfSY9kQ.js → radio-button-module-classes-BXWANbga.js} +7 -7
  80. package/dist/component/{radio-group-field-rac-DisEhh0b.js → radio-group-field-rac-DmEOydAr.js} +4 -4
  81. package/dist/component/{radio-group-rac-DrwjFNWh.js → radio-group-rac-DAcU_lkj.js} +1 -1
  82. package/dist/component/{rating-input-field-rac-BLMQWT7z.js → rating-input-field-rac-Cazqeqzw.js} +16 -16
  83. package/dist/component/{rating-input-rac-CGJY2HSO.js → rating-input-rac-KJ8FnJTj.js} +1 -1
  84. package/dist/component/{rich-content-rac.module-C9cKdumu.js → rich-content-rac.module-PZgMV2M7.js} +1 -1
  85. package/dist/component/{rich-text-field-rac-DTSRvaTK.js → rich-text-field-rac-DNEeY_m8.js} +3 -3
  86. package/dist/component/{rich-text-rac-Blk3neHN.js → rich-text-rac-g9upYD25.js} +1 -1
  87. package/dist/component/{service-dropdown-rac-C9P5IWrV.js → service-dropdown-rac-CmmWetDa.js} +20 -20
  88. package/dist/component/{services-multi-choice-rac-Cnhwy1a9.js → services-multi-choice-rac-D0PJNlq2.js} +7 -7
  89. package/dist/component/{signature-rac-Benar-ci.js → signature-rac-Q4G3uEhw.js} +41 -41
  90. package/dist/component/submit-button-rac-DdLPGJ6v.js +141 -0
  91. package/dist/component/{tags-field-rac-wA_0ZinI.js → tags-field-rac-PZ8Vfmsn.js} +72 -72
  92. package/dist/component/{tags-rac-BcVGekA6.js → tags-rac-DLjeR5G1.js} +1 -1
  93. package/dist/component/{text-area-field-rac-VpuojNac.js → text-area-field-rac-BNVK0R0Z.js} +25 -25
  94. package/dist/component/{text-area-rac-DDvi8u5M.js → text-area-rac-CNOLe3Vx.js} +1 -1
  95. package/dist/component/{text-input-field-rac-C6LohBtn.js → text-input-field-rac-DjdW6TCf.js} +3 -3
  96. package/dist/component/{text-input-headless-5yKhWpLD.js → text-input-headless-DFWQwZAN.js} +10 -10
  97. package/dist/component/{text-input-rac-C8hsNUp6.js → text-input-rac-GXPtQEjT.js} +1 -1
  98. package/dist/component/{time-input-rac-fOT-pjju.js → time-input-rac-B_g-erqu.js} +19 -19
  99. package/dist/component/{url-input-field-rac-DxR6Hymf.js → url-input-field-rac-CXWYeQLf.js} +19 -19
  100. package/dist/component/{url-input-rac-B928R10o.js → url-input-rac-DX-vjyXj.js} +1 -1
  101. package/dist/component/use-element-state-class-name-lZnP6sE6.js +22 -0
  102. package/dist/component/{use-service-options-base-UyJmT2P6.js → use-service-options-base-BJE86Rzo.js} +5 -5
  103. package/dist/component/{use-text-input-class-name-Qk2v8a6-.js → use-text-input-class-name-B-GYaltW.js} +5 -5
  104. package/dist/form.d.ts +58 -2
  105. package/package.json +5 -3
  106. package/dist/component/submit-button-rac-BDJQsZC3.js +0 -116
  107. package/dist/component/use-element-state-class-name-CBjBYCW5.js +0 -20
@@ -1,20 +1,20 @@
1
1
  import { RicosViewer as ie } from "@wix/ricos/viewer";
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";
2
+ import D 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 { af as fe, as as ge, ad as ve, c as ye, ai as Ee, am as de, ag as be, f as Oe } from "./form-B3KiRFhB.js";
5
+ import { ag as fe, at as ge, ae as ve, c as ye, aj as Ee, an as de, ah as be, f as Se } from "./form-BkmOXzqo.js";
6
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
- import Se from "@babel/runtime/helpers/defineProperty";
9
+ import Oe from "@babel/runtime/helpers/defineProperty";
10
10
  import he from "html-parse-stringify";
11
11
  import Ie from "@babel/runtime/helpers/classCallCheck";
12
12
  import Ne from "@babel/runtime/helpers/createClass";
13
- import { T as U } from "./text-input-headless-5yKhWpLD.js";
13
+ import { T as U } from "./text-input-headless-DFWQwZAN.js";
14
14
  import { E as Ae } from "./error-icon-hZxQ6DEy.js";
15
15
  import { s as H } from "./field-rac.module-D06m9T9x.js";
16
- import { y as Fe, O as ke, o as Te, i as xe, Z as De } from "./form-element-classes-Ct1UaxuQ.js";
17
- import { u as je } from "./use-text-input-class-name-Qk2v8a6-.js";
16
+ import { y as Fe, P as ke, o as Te, i as xe, _ as je } from "./form-element-classes-BsXkFtp2.js";
17
+ import { u as De } from "./use-text-input-class-name-B-GYaltW.js";
18
18
  var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Le = {
19
19
  "&": "&",
20
20
  "&": "&",
@@ -36,10 +36,10 @@ var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
36
36
  "…": "…",
37
37
  "/": "/",
38
38
  "/": "/"
39
- }, Me = function(t) {
40
- return Le[t];
41
39
  }, Pe = function(t) {
42
- return t.replace(Ce, Me);
40
+ return Le[t];
41
+ }, Me = function(t) {
42
+ return t.replace(Ce, Pe);
43
43
  }, _e = {
44
44
  bindI18n: "languageChanged",
45
45
  bindI18nStore: "",
@@ -48,8 +48,8 @@ var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
48
48
  transWrapTextNodes: "",
49
49
  transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
50
50
  useSuspense: !0,
51
- unescape: Pe
52
- }, we, He = Z();
51
+ unescape: Me
52
+ }, we, He = z();
53
53
  function Re() {
54
54
  return _e;
55
55
  }
@@ -103,7 +103,7 @@ function p(e) {
103
103
  for (var t = 1; t < arguments.length; t++) {
104
104
  var a = arguments[t] != null ? arguments[t] : {};
105
105
  t % 2 ? Q(Object(a), !0).forEach(function(o) {
106
- Se(e, o, a[o]);
106
+ Oe(e, o, a[o]);
107
107
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Q(Object(a)).forEach(function(o) {
108
108
  Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(a, o));
109
109
  });
@@ -123,7 +123,7 @@ function qe(e) {
123
123
  return B(t);
124
124
  });
125
125
  }
126
- function M(e) {
126
+ function P(e) {
127
127
  return Array.isArray(e) ? e : [e];
128
128
  }
129
129
  function Ye(e, t) {
@@ -132,7 +132,7 @@ function Ye(e, t) {
132
132
  }
133
133
  function te(e, t) {
134
134
  if (!e) return "";
135
- var a = "", o = M(e), c = t.transSupportBasicHtmlNodes && t.transKeepBasicHtmlNodesFor ? t.transKeepBasicHtmlNodesFor : [];
135
+ var a = "", o = P(e), c = t.transSupportBasicHtmlNodes && t.transKeepBasicHtmlNodesFor ? t.transKeepBasicHtmlNodesFor : [];
136
136
  return o.forEach(function(r, g) {
137
137
  if (typeof r == "string")
138
138
  a += "".concat(r);
@@ -153,10 +153,10 @@ function te(e, t) {
153
153
  } else if (r === null)
154
154
  K("Trans: the passed in value is invalid - seems you passed in a null child.");
155
155
  else if (L(r) === "object") {
156
- var S = r.format, F = ee(r, Ue), A = Object.keys(F);
156
+ var O = r.format, F = ee(r, Ue), A = Object.keys(F);
157
157
  if (A.length === 1) {
158
- var O = S ? "".concat(A[0], ", ").concat(S) : A[0];
159
- a += "{{".concat(O, "}}");
158
+ var S = O ? "".concat(A[0], ", ").concat(O) : A[0];
159
+ a += "{{".concat(S, "}}");
160
160
  } else
161
161
  K("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.", r);
162
162
  } else
@@ -169,15 +169,15 @@ function Ge(e, t, a, o, c, r) {
169
169
  if (!e && !v) return [t];
170
170
  var d = {};
171
171
  function b(y) {
172
- var h = M(y);
172
+ var h = P(y);
173
173
  h.forEach(function(s) {
174
174
  typeof s != "string" && (Y(s) ? b(G(s)) : L(s) === "object" && !B(s) && Object.assign(d, s));
175
175
  });
176
176
  }
177
177
  b(e);
178
- var T = he.parse("<0>".concat(t, "</0>")), S = p(p({}, d), c);
178
+ var T = he.parse("<0>".concat(t, "</0>")), O = p(p({}, d), c);
179
179
  function F(y, h, s) {
180
- var i = G(y), I = O(i, h.children, s);
180
+ var i = G(y), I = S(i, h.children, s);
181
181
  return qe(i) && I.length === 0 ? i : I;
182
182
  }
183
183
  function A(y, h, s, i, I) {
@@ -185,24 +185,24 @@ function Ge(e, t, a, o, c, r) {
185
185
  key: i
186
186
  }), I ? void 0 : h));
187
187
  }
188
- function O(y, h, s) {
189
- var i = M(y), I = M(h);
188
+ function S(y, h, s) {
189
+ var i = P(y), I = P(h);
190
190
  return I.reduce(function(l, n, E) {
191
- var k = n.children && n.children[0] && n.children[0].content && a.services.interpolator.interpolate(n.children[0].content, S, a.language);
191
+ var k = n.children && n.children[0] && n.children[0].content && a.services.interpolator.interpolate(n.children[0].content, O, a.language);
192
192
  if (n.type === "tag") {
193
193
  var N = i[parseInt(n.name, 10)];
194
194
  !N && s.length === 1 && s[0][n.name] && (N = s[0][n.name]), N || (N = {});
195
195
  var m = Object.keys(n.attrs).length !== 0 ? Ye({
196
196
  props: n.attrs
197
- }, N) : N, x = B(m), V = x && Y(n, !0) && !n.voidElement, P = v && L(m) === "object" && m.dummy && !x, _ = L(e) === "object" && e !== null && Object.hasOwnProperty.call(e, n.name);
197
+ }, N) : N, x = B(m), V = x && Y(n, !0) && !n.voidElement, M = v && L(m) === "object" && m.dummy && !x, _ = L(e) === "object" && e !== null && Object.hasOwnProperty.call(e, n.name);
198
198
  if (typeof m == "string") {
199
- var q = a.services.interpolator.interpolate(m, S, a.language);
199
+ var q = a.services.interpolator.interpolate(m, O, a.language);
200
200
  l.push(q);
201
201
  } else if (Y(m) || V) {
202
202
  var ne = F(m, n, s);
203
203
  A(m, ne, l, E);
204
- } else if (P) {
205
- var oe = O(i, n.children, s);
204
+ } else if (M) {
205
+ var oe = S(i, n.children, s);
206
206
  l.push(w(m, p(p({}, m.props), {}, {
207
207
  key: E
208
208
  }), oe));
@@ -216,7 +216,7 @@ function Ge(e, t, a, o, c, r) {
216
216
  key: "".concat(n.name, "-").concat(E)
217
217
  }));
218
218
  else {
219
- var se = O(i, n.children, s);
219
+ var se = S(i, n.children, s);
220
220
  l.push(R(n.name, {
221
221
  key: "".concat(n.name, "-").concat(E)
222
222
  }, se));
@@ -224,7 +224,7 @@ function Ge(e, t, a, o, c, r) {
224
224
  else if (n.voidElement)
225
225
  l.push("<".concat(n.name, " />"));
226
226
  else {
227
- var ce = O(i, n.children, s);
227
+ var ce = S(i, n.children, s);
228
228
  l.push("<".concat(n.name, ">").concat(ce, "</").concat(n.name, ">"));
229
229
  }
230
230
  else if (L(m) === "object" && !x) {
@@ -236,7 +236,7 @@ function Ge(e, t, a, o, c, r) {
236
236
  key: E
237
237
  })));
238
238
  } else if (n.type === "text") {
239
- var W = o.transWrapTextNodes, X = r ? o.unescape(a.services.interpolator.interpolate(n.content, S, a.language)) : a.services.interpolator.interpolate(n.content, S, a.language);
239
+ var W = o.transWrapTextNodes, X = r ? o.unescape(a.services.interpolator.interpolate(n.content, O, a.language)) : a.services.interpolator.interpolate(n.content, O, a.language);
240
240
  W ? l.push(R(W, {
241
241
  key: "".concat(n.name, "-").concat(E)
242
242
  }, X)) : l.push(X);
@@ -244,21 +244,21 @@ function Ge(e, t, a, o, c, r) {
244
244
  return l;
245
245
  }, []);
246
246
  }
247
- var D = O([{
247
+ var j = S([{
248
248
  dummy: !0,
249
249
  children: e || []
250
- }], T, M(e || []));
251
- return G(D[0]);
250
+ }], T, P(e || []));
251
+ return G(j[0]);
252
252
  }
253
253
  function $e(e) {
254
- 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, S = e.ns, F = e.i18n, A = e.t, O = e.shouldUnescape, D = ee(e, Ve), y = z(He) || {}, h = y.i18n, s = y.defaultNS, i = F || h || Ke();
254
+ 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();
255
255
  if (!i)
256
256
  return Be("You will need to pass in an i18next instance by using i18nextReactModule"), t;
257
257
  var I = A || i.t.bind(i) || function(q) {
258
258
  return q;
259
259
  };
260
260
  r && (v.context = r);
261
- var l = p(p({}, Re()), i.options && i.options.react), n = S || I.ns || s || i.options && i.options.defaultNS;
261
+ var l = p(p({}, Re()), i.options && i.options.react), n = O || I.ns || s || i.options && i.options.defaultNS;
262
262
  n = typeof n == "string" ? [n] : n || ["translation"];
263
263
  var E = b || te(t, l) || l.transEmptyNodeValue || c, k = l.hashTransKey, N = c || (k ? k(E) : E), m = d ? v.interpolation : {
264
264
  interpolation: p(p({}, v.interpolation), {}, {
@@ -270,12 +270,12 @@ function $e(e) {
270
270
  }, d), m), {}, {
271
271
  defaultValue: E,
272
272
  ns: n
273
- }), V = N ? I(N, x) : E, P = Ge(T || t, V, i, l, x, O), _ = o !== void 0 ? o : l.defaultTransParent;
274
- return _ ? R(_, D, P) : P;
273
+ }), V = N ? I(N, x) : E, M = Ge(T || t, V, i, l, x, S), _ = o !== void 0 ? o : l.defaultTransParent;
274
+ return _ ? R(_, j, M) : M;
275
275
  }
276
- const We = "email-mistype-suggestion", Xe = "email-mistype-suggestion-link", ae = /* @__PURE__ */ Z(void 0);
276
+ const We = "email-mistype-suggestion", Xe = "email-mistype-suggestion-link", ae = /* @__PURE__ */ z(void 0);
277
277
  function Je() {
278
- const e = z(ae);
278
+ const e = Z(ae);
279
279
  if (e === void 0)
280
280
  throw new Error("useEmailSuggestion must be used inside <EmailInput>");
281
281
  return e;
@@ -285,7 +285,7 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
285
285
  activeSuggestion: e,
286
286
  applySuggestion: t
287
287
  }
288
- }, a), Ze = ({ className: e }) => {
288
+ }, a), ze = ({ className: e }) => {
289
289
  const { suggestionId: t } = fe(), { activeSuggestion: a, applySuggestion: o } = Je(), { t: c, i18n: r } = ge();
290
290
  return /* @__PURE__ */ u.createElement("div", {
291
291
  id: t,
@@ -311,7 +311,7 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
311
311
  })
312
312
  ]
313
313
  }) : null);
314
- }, ze = {
314
+ }, Ze = {
315
315
  "aol.com": [
316
316
  "aaol.com",
317
317
  "aol.con",
@@ -422,7 +422,7 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
422
422
  "comcast.nrt",
423
423
  "comcast.net.net"
424
424
  ]
425
- }, et = new Map(Object.entries(ze).flatMap(([e, t]) => t.map((a) => [
425
+ }, et = new Map(Object.entries(Ze).flatMap(([e, t]) => t.map((a) => [
426
426
  a,
427
427
  e
428
428
  ]))), tt = (e) => {
@@ -450,15 +450,15 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
450
450
  validate: v
451
451
  };
452
452
  }, f = ({ children: e }) => {
453
- const { id: t, value: a, onChange: o, disabled: c, readOnly: r, required: g, hasError: v, onBlur: d, onFocus: b, error: T, description: S, FieldLayout: F } = Ee(), { isMistyped: A, suggestedEmail: O, validate: D } = at({
453
+ 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({
454
454
  email: a,
455
455
  hasError: v
456
- }), { setFocusedFieldId: y } = de(), s = A && (!r && !c) && O ? O : void 0, i = be(t, T, S, s), I = () => {
456
+ }), { setFocusedFieldId: y } = de(), s = A && (!r && !c) && S ? S : void 0, i = be(t, T, O, s), I = () => {
457
457
  o(s), y(t);
458
458
  }, l = () => {
459
- D(), d == null || d();
459
+ j(), d == null || d();
460
460
  }, 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);
461
- return /* @__PURE__ */ u.createElement(Oe.Provider, {
461
+ return /* @__PURE__ */ u.createElement(Se.Provider, {
462
462
  value: i
463
463
  }, /* @__PURE__ */ u.createElement(Qe, {
464
464
  activeSuggestion: s,
@@ -484,26 +484,26 @@ f.Label = U.Label;
484
484
  f.Input = U.Input;
485
485
  f.Description = U.Description;
486
486
  f.Error = U.Error;
487
- f.Suggestion = Ze;
487
+ f.Suggestion = ze;
488
488
  const nt = "_suggestion_di65n_1", ot = {
489
489
  suggestion: nt
490
490
  }, rt = ({ content: e, locale: t }) => /* @__PURE__ */ u.createElement(ie, {
491
491
  content: e,
492
492
  locale: t
493
493
  }), It = () => {
494
- const e = je();
494
+ const e = De();
495
495
  return /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(f.Label, {
496
- className: j(Fe, H.label)
496
+ className: D(Fe, H.label)
497
497
  }, /* @__PURE__ */ u.createElement(f.Label.Required, {
498
- className: j(ke, H.requiredMark)
498
+ className: D(ke, H.requiredMark)
499
499
  })), /* @__PURE__ */ u.createElement(f.Input, {
500
500
  className: e
501
501
  }), /* @__PURE__ */ u.createElement(f.Error, {
502
- className: j(Te, H.error)
502
+ className: D(Te, H.error)
503
503
  }, /* @__PURE__ */ u.createElement(Ae, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
504
- className: j(xe, H.description)
504
+ className: D(xe, H.description)
505
505
  }, rt), /* @__PURE__ */ u.createElement(f.Suggestion, {
506
- className: j(De, ot.suggestion)
506
+ className: D(je, ot.suggestion)
507
507
  }));
508
508
  };
509
509
  export {
@@ -1,20 +1,20 @@
1
- import e, { useState as q, useMemo as v, useCallback as V, useRef as x } from "react";
1
+ import e, { useState as $, useMemo as v, useCallback as V, useRef as x } from "react";
2
2
  import T from "classnames";
3
3
  import { NumberField as z, Input as J, CheckboxField as Q, CheckboxButton as W, Button as w } from "react-aria-components";
4
- import { ao as U, ap as P, ae as H, aj as K, u as Y, ai as D, af as X, ak as j, j as Z } from "./form-B3KiRFhB.js";
4
+ import { ap as U, aq as P, af as H, ak as K, u as Y, aj as D, ag as X, al as j, j as Z } from "./form-BkmOXzqo.js";
5
5
  import { f as b, a as L } from "./find-child-C60k4CxG.js";
6
- import { L as ee } from "./field-label-headless-D2-WvVKT.js";
6
+ import { L as ee } from "./field-label-headless-D3DwX65k.js";
7
7
  import { S as te } from "./selection-indicator-XQ8MYHUQ.js";
8
8
  import { u as se } from "./use-invoke-callback-UH73A_J3.js";
9
9
  import { C as k } from "./chevron-down-icon-CcpVm6B-.js";
10
10
  import { C as ne } from "./checkbox-indicator-module-classes-Bb3xB1ve.js";
11
11
  import { s as B } from "./field-rac.module-D06m9T9x.js";
12
- import { y as oe, x as re, p as ae, r as le, q as ce } from "./form-element-classes-Ct1UaxuQ.js";
13
- import { u as ue } from "./use-element-state-class-name-CBjBYCW5.js";
12
+ import { y as oe, x as re, p as ae, r as le, q as ce } from "./form-element-classes-BsXkFtp2.js";
13
+ import { u as ue } from "./use-element-state-class-name-lZnP6sE6.js";
14
14
  const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, errors: m = me, validation: c }) => {
15
- const [i, E] = q((r == null ? void 0 : r.length) || 0), a = v(() => r ?? [], [
15
+ const [i, E] = $((r == null ? void 0 : r.length) || 0), a = v(() => r ?? [], [
16
16
  r
17
- ]), C = U(), g = P(), d = H(), { validateFields: u } = K(), F = c.predefined.objectArrayOptions.maxItems, _ = v(() => Y({
17
+ ]), C = U(), f = P(), d = H(), { validateFields: u } = K(), F = c.predefined.objectArrayOptions.maxItems, _ = v(() => Y({
18
18
  form: {
19
19
  fields: n,
20
20
  steps: [
@@ -37,7 +37,7 @@ const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, error
37
37
  }), p;
38
38
  }, []), [
39
39
  m
40
- ]), f = V((p) => {
40
+ ]), g = V((p) => {
41
41
  const I = Number.isNaN(p) ? 0 : Math.min(Math.max(p, 0), F);
42
42
  E(I), s == null || s(Array.from({
43
43
  length: I
@@ -49,7 +49,7 @@ const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, error
49
49
  ]), S = V((p) => (I, A) => {
50
50
  const N = Array.from({
51
51
  length: i
52
- }, (h, $) => a[$] ?? {});
52
+ }, (h, q) => a[q] ?? {});
53
53
  N[p] = {
54
54
  ...N[p],
55
55
  [I]: A
@@ -66,14 +66,14 @@ const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, error
66
66
  errorsByIndex: G,
67
67
  formView: _,
68
68
  formSchema: C,
69
- formFields: g,
69
+ formFields: f,
70
70
  fieldActions: d,
71
71
  validateFields: u,
72
- changeGuestCount: f,
72
+ changeGuestCount: g,
73
73
  changeGuestField: S
74
74
  };
75
75
  }, de = [], pe = {}, o = ({ children: t, className: n }) => {
76
- const l = D(), { id: r, FieldLayout: s } = l, { guestLimit: m, guestCount: c, guests: i, errorsByIndex: E, formView: a, changeGuestCount: C, changeGuestField: g } = ie(l), d = b(t, o.Label), u = b(t, o.GuestCount), F = b(t, o.GuestToggle), _ = b(t, o.Guests), G = m > 1;
76
+ const l = D(), { id: r, FieldLayout: s } = l, { guestLimit: m, guestCount: c, guests: i, errorsByIndex: E, formView: a, changeGuestCount: C, changeGuestField: f } = ie(l), d = b(t, o.Label), u = b(t, o.GuestCount), F = b(t, o.GuestToggle), _ = b(t, o.Guests), G = m > 1;
77
77
  return /* @__PURE__ */ e.createElement(s, {
78
78
  fieldId: r,
79
79
  renderLabel: () => G ? d : null,
@@ -91,19 +91,19 @@ const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, error
91
91
  guests: i,
92
92
  errorsByIndex: E,
93
93
  formView: a,
94
- onGuestFieldChange: g
94
+ onGuestFieldChange: f
95
95
  })),
96
96
  renderDescription: () => null
97
97
  });
98
98
  }, Ee = ({ className: t }) => /* @__PURE__ */ e.createElement(ee, {
99
99
  className: t
100
100
  }, null), O = ({ children: t, className: n, groupClassName: l, ...r }) => {
101
- const { guestLimit: s, guestCount: m, onGuestCountChange: c } = r, { id: i, label: E, disabled: a, readOnly: C, onBlur: g, onFocus: d } = D(), { inputId: u, ariaDescribedBy: F } = X(), _ = se(g), G = x(null);
101
+ const { guestLimit: s, guestCount: m, onGuestCountChange: c } = r, { id: i, label: E, disabled: a, readOnly: C, onBlur: f, onFocus: d } = D(), { inputId: u, ariaDescribedBy: F } = X(), _ = se(f), G = x(null);
102
102
  j(() => {
103
103
  var p;
104
104
  (p = G.current) == null || p.focus();
105
105
  }, i);
106
- const f = b(t, O.Decrement), S = b(t, O.Increment);
106
+ const g = b(t, O.Decrement), S = b(t, O.Increment);
107
107
  return /* @__PURE__ */ e.createElement(z, {
108
108
  className: l,
109
109
  "aria-label": E,
@@ -122,27 +122,27 @@ const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, error
122
122
  "aria-describedby": F,
123
123
  className: n,
124
124
  inputMode: "numeric"
125
- }), S, f);
125
+ }), S, g);
126
126
  }, Ce = ({ children: t, className: n }) => /* @__PURE__ */ e.createElement(w, {
127
127
  slot: "decrement",
128
128
  className: n
129
- }, t), fe = ({ children: t, className: n }) => /* @__PURE__ */ e.createElement(w, {
129
+ }, t), ge = ({ children: t, className: n }) => /* @__PURE__ */ e.createElement(w, {
130
130
  slot: "increment",
131
131
  className: n
132
132
  }, t), R = ({ children: t, className: n, ...l }) => {
133
- const { guestCount: r, onGuestCountChange: s } = l, { id: m, label: c, disabled: i, readOnly: E, onBlur: a, onFocus: C } = D(), { inputId: g, ariaDescribedBy: d } = X(), u = x(null);
133
+ const { guestCount: r, onGuestCountChange: s } = l, { id: m, label: c, disabled: i, readOnly: E, onBlur: a, onFocus: C } = D(), { inputId: f, ariaDescribedBy: d } = X(), u = x(null);
134
134
  j(() => {
135
- var f;
136
- (f = u.current) == null || f.focus();
135
+ var g;
136
+ (g = u.current) == null || g.focus();
137
137
  }, m);
138
- const F = b(t, R.Input), _ = b(t, R.Label), G = V((f) => {
139
- s(f ? 1 : 0);
138
+ const F = b(t, R.Input), _ = b(t, R.Label), G = V((g) => {
139
+ s(g ? 1 : 0);
140
140
  }, [
141
141
  s
142
142
  ]);
143
143
  return /* @__PURE__ */ e.createElement(Q, {
144
144
  inputRef: u,
145
- id: g,
145
+ id: f,
146
146
  "aria-describedby": d,
147
147
  isSelected: r > 0,
148
148
  onChange: G,
@@ -152,13 +152,13 @@ const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, error
152
152
  onFocus: C
153
153
  }, /* @__PURE__ */ e.createElement(W, {
154
154
  className: n
155
- }, ({ isSelected: f, isHovered: S }) => /* @__PURE__ */ e.createElement(e.Fragment, null, L(F, {
156
- isSelected: f,
155
+ }, ({ isSelected: g, isHovered: S }) => /* @__PURE__ */ e.createElement(e.Fragment, null, L(F, {
156
+ isSelected: g,
157
157
  isHovered: S
158
158
  }), L(_, {
159
159
  label: c
160
160
  }))));
161
- }, ge = ({ className: t, ...n }) => {
161
+ }, fe = ({ className: t, ...n }) => {
162
162
  const { label: l } = n;
163
163
  return /* @__PURE__ */ e.createElement("span", {
164
164
  className: t
@@ -178,12 +178,12 @@ const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, error
178
178
  c,
179
179
  E,
180
180
  a
181
- ]), g = b(t, M.Guest);
181
+ ]), f = b(t, M.Guest);
182
182
  return r ? /* @__PURE__ */ e.createElement("div", {
183
183
  className: n
184
184
  }, Array.from({
185
185
  length: r
186
- }, (d, u) => L(g, {
186
+ }, (d, u) => L(f, {
187
187
  key: u,
188
188
  index: u,
189
189
  formView: C,
@@ -208,9 +208,9 @@ const me = [], ie = ({ id: t, fields: n, layout: l, value: r, onChange: s, error
208
208
  }));
209
209
  };
210
210
  O.Decrement = Ce;
211
- O.Increment = fe;
211
+ O.Increment = ge;
212
212
  R.Input = te;
213
- R.Label = ge;
213
+ R.Label = fe;
214
214
  M.Guest = Fe;
215
215
  o.Label = Ee;
216
216
  o.GuestCount = O;
@@ -1,11 +1,11 @@
1
1
  import t from "react";
2
2
  import { RicosViewer as m } from "@wix/ricos/viewer";
3
3
  import s from "classnames";
4
- import { a, s as o, R as c } from "./radio-button-module-classes-CWfSY9kQ.js";
4
+ import { a, s as o, R as c } from "./radio-button-module-classes-BXWANbga.js";
5
5
  import { E } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as l } from "./field-rac.module-D06m9T9x.js";
7
- import { y as i, O as p, P as R, Q as _, o as O, i as L, R as S } from "./form-element-classes-Ct1UaxuQ.js";
8
- import { u } from "./use-element-state-class-name-CBjBYCW5.js";
7
+ import { y as i, P as p, Q as R, R as _, o as O, i as L, S } from "./form-element-classes-BsXkFtp2.js";
8
+ import { u } from "./use-element-state-class-name-lZnP6sE6.js";
9
9
  const e = ({ children: r }) => /* @__PURE__ */ t.createElement(a, null, r);
10
10
  e.Label = a.Label;
11
11
  e.Options = a.Options;
@@ -1,5 +1,5 @@
1
1
  import t, { createContext as m, useContext as M } from "react";
2
- import { ai as c, af as i, ab as f, T as x, U as h } from "./form-B3KiRFhB.js";
2
+ import { aj as c, ag as i, ab as f, T as x, U as h } from "./form-BkmOXzqo.js";
3
3
  const b = ({ className: r, children: e }) => {
4
4
  const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = f();
5
5
  return s ? /* @__PURE__ */ t.createElement("div", {
@@ -1,9 +1,9 @@
1
- import { ai as m, R as d, q as p, af as D, as as B } from "./form-B3KiRFhB.js";
1
+ import { aj as m, R as d, q as p, ag as D, at as B } from "./form-BkmOXzqo.js";
2
2
  import l from "react";
3
- import { f as L } from "./find-child-C60k4CxG.js";
4
- import { sdk as R } from "@wix/image-kit";
3
+ import { f as g } from "./find-child-C60k4CxG.js";
4
+ import { sdk as L } from "@wix/image-kit";
5
5
  function N({ id: e, width: t, height: n }, a, r, o = "fill") {
6
- return (o === "fit" ? R.getScaleToFitImageURL : R.getScaleToFillImageURL)(e, t, n, typeof a == "number" ? a : parseInt(a, 10), typeof r == "number" ? r : parseInt(r, 10));
6
+ return (o === "fit" ? L.getScaleToFitImageURL : L.getScaleToFillImageURL)(e, t, n, typeof a == "number" ? a : parseInt(a, 10), typeof r == "number" ? r : parseInt(r, 10));
7
7
  }
8
8
  var u = /* @__PURE__ */ (function(e) {
9
9
  return e.TOP = "top", e.BOTTOM = "bottom", e;
@@ -15,13 +15,13 @@ const S = {
15
15
  margin: 0,
16
16
  padding: 0
17
17
  }, U = "​", i = ({ children: e, className: t, ...n }) => {
18
- const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: T, required: g = !1, hideLabel: q = !1, requiredIndicatorType: F = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media: y, mediaSettings: s } = m(), { labelId: A, inputId: P } = D(), _ = a, f = g && !r ? L(e, i.Required) : null, c = y ? L(e, i.Image) : null, E = (s == null ? void 0 : s.imagePosition) ?? u.TOP, h = F === d.ASTERISK && O === p.BEFORE_FIELD_TITLE, I = (o ?? T) || U, b = /* @__PURE__ */ l.createElement(_, {
18
+ const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: T, required: R = !1, hideLabel: q = !1, requiredIndicatorType: F = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media: y, mediaSettings: s } = m(), { labelId: A, inputId: P } = D(), _ = a, E = R && !r ? g(e, i.Required) : null, c = y ? g(e, i.Image) : null, f = (s == null ? void 0 : s.imagePosition) ?? u.TOP, h = F === d.ASTERISK && O === p.BEFORE_FIELD_TITLE, I = (o ?? T) || U, b = /* @__PURE__ */ l.createElement(_, {
19
19
  id: A,
20
20
  htmlFor: a === "label" ? P : void 0,
21
21
  className: t,
22
22
  style: q ? S : void 0
23
- }, h ? /* @__PURE__ */ l.createElement(l.Fragment, null, f, I) : /* @__PURE__ */ l.createElement(l.Fragment, null, I, f));
24
- return c ? /* @__PURE__ */ l.createElement("div", null, E === u.TOP ? c : null, b, E === u.BOTTOM ? c : null) : b;
23
+ }, h ? /* @__PURE__ */ l.createElement(l.Fragment, null, E, I) : /* @__PURE__ */ l.createElement(l.Fragment, null, I, E));
24
+ return c ? /* @__PURE__ */ l.createElement("div", null, f === u.TOP ? c : null, b, f === u.BOTTOM ? c : null) : b;
25
25
  }, v = ({ className: e }) => {
26
26
  const { t } = B(), { requiredIndicatorType: n } = m();
27
27
  return n === d.TEXT ? /* @__PURE__ */ l.createElement("span", {