@wix/form-elements 1.142.0 → 1.144.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 (110) hide show
  1. package/dist/component/{appointment-rac-BAwonF75.js → appointment-rac-BxrHjvGM.js} +93 -93
  2. package/dist/component/{bookings-address-rac-xhj2n7jK.js → bookings-address-rac-CLWQa4ND.js} +1 -1
  3. package/dist/component/{bookings-email-rac-BGjeAwgm.js → bookings-email-rac-DZemUnFy.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-l392yYAU.js → bookings-first-name-rac-DyGMqRWi.js} +1 -1
  5. package/dist/component/{bookings-header-rac-JwIo7hsJ.js → bookings-header-rac-DmUeRhWl.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CJp81BPl.js → bookings-last-name-rac-DOuCYe0Q.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-BiPklGE_.js → bookings-login-bar-rac-BnmS1sak.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-mQfDJGkK.js → bookings-phone-rac-F5YJaXHy.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BOfHn2EU.js → bookings-rich-text-rac-DAuqLM8j.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CA6SeM0c.js → checkbox-field-rac-DsQrwgzd.js} +83 -83
  11. package/dist/component/{checkbox-group-field-headless-ChLT0zKA.js → checkbox-group-field-headless-oPw2miey.js} +61 -61
  12. package/dist/component/{checkbox-group-field-rac-_Fkre79S.js → checkbox-group-field-rac-hPscGPkW.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-esBLJZ6Y.js → checkbox-group-rac-DuIn-RKl.js} +1 -1
  14. package/dist/component/{checkbox-rac-C3vXtbJh.js → checkbox-rac-C_-b9_8s.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BuBBBt19.js → contacts-address-rac-CbIN1ubI.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BMBJeVOK.js → contacts-birthdate-rac-B-ek4Puf.js} +1 -1
  17. package/dist/component/{contacts-company-rac-CZl168-E.js → contacts-company-rac-D2xGgOC0.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CJgVzCns.js → contacts-email-rac-CpbAyHUl.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-9ZNYKQeb.js → contacts-first-name-rac-DM0Uki6x.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-KgylQwHW.js → contacts-last-name-rac-DV9wrigX.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-DYr30FLP.js → contacts-phone-rac-mIYYC0y2.js} +1 -1
  22. package/dist/component/{contacts-position-rac-B9BZZ3K9.js → contacts-position-rac-fYTx4IXC.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DOQb2GLm.js → contacts-subscribe-rac-nm5CFJHt.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-cYE1ehXN.js → contacts-tax-id-rac-D4RFJf-S.js} +1 -1
  25. package/dist/component/{date-availability-BOKvA8w-.js → date-availability-DKQ4Swlg.js} +1 -1
  26. package/dist/component/{date-input-field-rac-BwY53gNr.js → date-input-field-rac-DKZ-7UN1.js} +45 -45
  27. package/dist/component/{date-input-rac-Cgg4QJbB.js → date-input-rac-BbpWo9w0.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-0Ue6uiCM.js → date-picker-field-rac-Bza70SYg.js} +11 -11
  29. package/dist/component/{date-picker-rac-CgICj33f.js → date-picker-rac-Ck7bd17y.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-ChRCMk7_.js → date-time-input-field-rac-DpAx183s.js} +21 -21
  31. package/dist/component/{date-time-input-rac-B8tRZrri.js → date-time-input-rac-CAL-qDqR.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-B_qjx1QD.js → dext-checkbox-group-rac-DLk1zE8Z.js} +4 -4
  33. package/dist/component/{dext-checkbox-rac-Bw9SyhHA.js → dext-checkbox-rac-K0JY8ypt.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Bzn28zNq.js → dext-date-picker-rac-BIkqhNQ0.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-7Cuk3PoA.js → dext-date-time-input-rac-heYLj9qT.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-Md1VI5pc.js → dext-dropdown-rac-CE-hsE0g.js} +1 -1
  37. package/dist/component/{dext-email-rac-DbHwHGKz.js → dext-email-rac-Djui3aGr.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DIVk3zXL.js → dext-number-input-rac-Up-zsZwY.js} +1 -1
  39. package/dist/component/{dext-phone-rac-ZIya63UJ.js → dext-phone-rac-BnBq1KKf.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-DV1xHkOD.js → dext-radio-group-rac-D8EsvhLV.js} +4 -4
  41. package/dist/component/{dext-rating-input-rac-YRIYgeT4.js → dext-rating-input-rac-BW6NPU1S.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DTJ6Pz_x.js → dext-tags-rac--c_tiq-o.js} +4 -4
  43. package/dist/component/{dext-text-area-rac-V-d9i95A.js → dext-text-area-rac-CKFhfgDq.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-ccrundX-.js → dext-text-input-rac-CEcBfKSe.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-Bd5SZ2U4.js → dext-url-input-rac-C4tT1NeS.js} +1 -1
  46. package/dist/component/{donation-rac-BFmpW-3b.js → donation-rac-Bqo7AUci.js} +52 -52
  47. package/dist/component/{dropdown-field-headless-C2qgeReH.js → dropdown-field-headless-DMQSalL1.js} +22 -22
  48. package/dist/component/{dropdown-field-rac-Bj1YSgpT.js → dropdown-field-rac-C31YjVhV.js} +4 -4
  49. package/dist/component/{dropdown-rac-DfdvX5I5.js → dropdown-rac-B6AZlzZ8.js} +1 -1
  50. package/dist/component/{ecom-address-rac-DOWNQhhX.js → ecom-address-rac-3pW-jse0.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-2ELdC1ql.js → ecom-subscription-checkbox-rac-Ms4JDivZ.js} +5 -5
  52. package/dist/component/{email-input-field-rac-CY0U6vEM.js → email-input-field-rac-UJOSd8si.js} +46 -46
  53. package/dist/component/{events-repeater-rac-C2oo_RZt.js → events-repeater-rac-fs9cQREp.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-BrimIo0r.js → events-rsvp-rac-DRLspNfK.js} +3 -3
  55. package/dist/component/{field-error-headless-r0fX50xw.js → field-error-headless-CyoNrDMA.js} +9 -9
  56. package/dist/component/field-label-headless-vs578Vt6.js +52 -0
  57. package/dist/component/{file-upload-rac-Beb2BcFK.js → file-upload-rac-DDAMgm1b.js} +53 -53
  58. package/dist/component/{fixed-payment-rac-DGFWYMZG.js → fixed-payment-rac-DRs5yPZ8.js} +12 -12
  59. package/dist/component/{form-DtzwuBIo.js → form-D-pcluMZ.js} +373 -341
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +2 -2
  62. package/dist/component/{header-field-rac-CVmGSa0E.js → header-field-rac-BtLFBccj.js} +4 -4
  63. package/dist/component/{header-rac-C3AEJmYN.js → header-rac-CNx4qpAR.js} +1 -1
  64. package/dist/component/{image-choice-rac-Ch-mxLgP.js → image-choice-rac-D-PsWyfU.js} +10 -10
  65. package/dist/component/{index-CmqLlW8X.js → index-B7rRv0cm.js} +43 -43
  66. package/dist/component/{index-CTn6AQ3A.js → index-D4Jdw7jg.js} +2 -2
  67. package/dist/component/{isObjectLike-iyypwAQL.js → isObjectLike-DyNk-Hsj.js} +7 -7
  68. package/dist/component/{multiline-address-field-rac-DJXcb6NG.js → multiline-address-field-rac-CowUg4Dk.js} +94 -94
  69. package/dist/component/{multiline-address-rac-DcZgTx1c.js → multiline-address-rac-CHLN9iqR.js} +1 -1
  70. package/dist/component/{number-input-field-rac-W3TqQGhC.js → number-input-field-rac-Clow9sWB.js} +21 -21
  71. package/dist/component/{number-input-rac-CdXigsba.js → number-input-rac-CeUW4WGL.js} +1 -1
  72. package/dist/component/{password-rac-Dph6984u.js → password-rac-_FBw3XON.js} +7 -7
  73. package/dist/component/{payment-input-rac-D5ARk1lF.js → payment-input-rac-CmeiCGKm.js} +17 -17
  74. package/dist/component/{phone-input-field-rac-BUfe-B2i.js → phone-input-field-rac-PIpEcS6h.js} +24 -24
  75. package/dist/component/{phone-rac-DTiWT1uy.js → phone-rac-D-RF_Dc1.js} +1 -1
  76. package/dist/component/{product-list-rac-1_Q2JYwH.js → product-list-rac-CveI0FCQ.js} +31 -31
  77. package/dist/component/{quiz-radio-group-rac-iyBhi0wJ.js → quiz-radio-group-rac-DmL5sv4m.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DwfobXBe.js → radio-button-module-classes-D6eJdPov.js} +11 -11
  79. package/dist/component/{radio-group-field-rac-BkKNVwMi.js → radio-group-field-rac-CuTxslBP.js} +4 -4
  80. package/dist/component/{radio-group-rac-CH0nkJ8V.js → radio-group-rac-D1N9mKdI.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-CUUUlgZi.js → rating-input-field-rac-tPHYwerw.js} +12 -12
  82. package/dist/component/{rating-input-rac-8yEiqBR5.js → rating-input-rac-BoYlGaYG.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-DeKU0pwh.js → rich-content-rac.module-BEpM1wGw.js} +3 -3
  84. package/dist/component/{rich-text-field-rac-Cwd-RWTi.js → rich-text-field-rac-DIBDp9fN.js} +4 -4
  85. package/dist/component/{rich-text-rac-C5-jPNYP.js → rich-text-rac-QNvqlXOl.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-DBGAnsut.js → service-dropdown-rac-BUka_sF2.js} +30 -30
  87. package/dist/component/{services-multi-choice-rac-CqEoGsuw.js → services-multi-choice-rac-Dsy5tWby.js} +5 -5
  88. package/dist/component/{signature-rac-Cq3y66Cr.js → signature-rac-K1d_jHlU.js} +37 -37
  89. package/dist/component/submit-button-rac-BRJtuej2.js +228 -0
  90. package/dist/component/{tags-field-rac-CpJ0O9f_.js → tags-field-rac-BaBbtHcw.js} +16 -16
  91. package/dist/component/{tags-rac-BPjw67Po.js → tags-rac-DDg6W18e.js} +1 -1
  92. package/dist/component/{text-area-field-rac-BG6MJuIW.js → text-area-field-rac-CB97Y6o1.js} +9 -9
  93. package/dist/component/{text-area-rac-BAS4F4VC.js → text-area-rac-E091fvmB.js} +1 -1
  94. package/dist/component/{text-input-field-rac-BhMktcEd.js → text-input-field-rac-BiSQ4pDp.js} +3 -3
  95. package/dist/component/{text-input-headless-Bpjd70nh.js → text-input-headless-BKxooAsH.js} +7 -7
  96. package/dist/component/{text-input-rac-Bj21XKGA.js → text-input-rac-N2D8bqU4.js} +1 -1
  97. package/dist/component/{time-input-rac-DBpRHdnX.js → time-input-rac-CMVYeoxi.js} +33 -33
  98. package/dist/component/{url-input-field-rac-B_EMXVWh.js → url-input-field-rac-BWpn4TfK.js} +24 -24
  99. package/dist/component/{url-input-rac-D0Ck-9KV.js → url-input-rac-U19lGKwd.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-CkpHwC6t.js → use-dropdown-option-class-name-DK1HCEOC.js} +2 -2
  101. package/dist/component/{use-dropdown-trigger-class-name-DmDwpAVn.js → use-dropdown-trigger-class-name-XS469pt3.js} +4 -4
  102. package/dist/component/{use-element-state-class-name-BrgdwHYP.js → use-element-state-class-name-BdjEjAk1.js} +3 -3
  103. package/dist/component/{use-hoverable-input-class-name-qVo45l-t.js → use-hoverable-input-class-name-7nSuBlNd.js} +6 -6
  104. package/dist/component/{use-service-options-base-Dlqs4p0Z.js → use-service-options-base-Bxw3_pyC.js} +1 -1
  105. package/dist/component/use-text-input-class-name-BB5fT5S6.js +6 -0
  106. package/dist/form.d.ts +36 -0
  107. package/package.json +2 -2
  108. package/dist/component/field-label-headless-D-kCfg8j.js +0 -52
  109. package/dist/component/submit-button-rac-CKM7yUL4.js +0 -172
  110. package/dist/component/use-text-input-class-name-CP2VJOso.js +0 -6
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { D as r } from "./dropdown-field-rac-Bj1YSgpT.js";
2
+ import { D as r } from "./dropdown-field-rac-C31YjVhV.js";
3
3
  const n = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  n as DextDropdownRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { E as e } from "./email-input-field-rac-CY0U6vEM.js";
2
+ import { E as e } from "./email-input-field-rac-UJOSd8si.js";
3
3
  const l = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  l as DextEmailRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { N as t } from "./number-input-field-rac-W3TqQGhC.js";
2
+ import { N as t } from "./number-input-field-rac-Clow9sWB.js";
3
3
  const n = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  n as DextNumberInputRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { P as t } from "./phone-input-field-rac-BUfe-B2i.js";
2
+ import { P as t } from "./phone-input-field-rac-PIpEcS6h.js";
3
3
  const r = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  r as DextPhoneRAC
@@ -1,8 +1,8 @@
1
1
  import r from "react";
2
- import { bj as e, al as t } from "./form-DtzwuBIo.js";
3
- import { R as p } from "./radio-group-field-rac-BkKNVwMi.js";
2
+ import { bn as e, ap as t } from "./form-D-pcluMZ.js";
3
+ import { R as p } from "./radio-group-field-rac-CuTxslBP.js";
4
4
  import { a } from "./default-limits-D7qVv_Hv.js";
5
- const R = () => {
5
+ const l = () => {
6
6
  const o = {
7
7
  ...e(),
8
8
  otherInputCharacterLimit: a
@@ -14,5 +14,5 @@ const R = () => {
14
14
  }, /* @__PURE__ */ r.createElement(p, null));
15
15
  };
16
16
  export {
17
- R as DextRadioGroupRAC
17
+ l as DextRadioGroupRAC
18
18
  };
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-CUUUlgZi.js";
2
+ import { R as e } from "./rating-input-field-rac-tPHYwerw.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DextRatingInputRAC
@@ -1,8 +1,8 @@
1
1
  import r from "react";
2
- import { bj as e, al as o } from "./form-DtzwuBIo.js";
3
- import { T as s } from "./tags-field-rac-CpJ0O9f_.js";
2
+ import { bn as e, ap as o } from "./form-D-pcluMZ.js";
3
+ import { T as s } from "./tags-field-rac-BaBbtHcw.js";
4
4
  import { b as a } from "./default-limits-D7qVv_Hv.js";
5
- const T = () => {
5
+ const l = () => {
6
6
  const t = {
7
7
  ...e(),
8
8
  otherInputCharacterLimit: a
@@ -14,5 +14,5 @@ const T = () => {
14
14
  }, /* @__PURE__ */ r.createElement(s, null));
15
15
  };
16
16
  export {
17
- T as DextTagsRAC
17
+ l as DextTagsRAC
18
18
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as t } from "./text-area-field-rac-BG6MJuIW.js";
2
+ import { T as t } from "./text-area-field-rac-CB97Y6o1.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  a as DextTextAreaRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-BhMktcEd.js";
2
+ import { T as e } from "./text-input-field-rac-BiSQ4pDp.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DextTextInputRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { U as r } from "./url-input-field-rac-B_EMXVWh.js";
2
+ import { U as r } from "./url-input-field-rac-BWpn4TfK.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(r, null);
4
4
  export {
5
5
  n as DextUrlInputRAC
@@ -3,20 +3,20 @@ import { RicosViewer as ne } from "@wix/ricos/viewer";
3
3
  import L from "classnames";
4
4
  import { ToggleButtonGroup as oe, TextField as re, Group as se, ToggleButton as ae, Input as le } from "react-aria-components";
5
5
  import { debounce as ce } from "ts-debounce";
6
- import { az as j, bj as T, bg as P, bt as ie, bb as x, bl as ue, R as me, $ as pe, v as de, G as Ie, u as Ce, w as Ee } from "./form-DtzwuBIo.js";
7
- import { f as O, a as F } from "./find-child-C60k4CxG.js";
8
- import { a as z } from "./format-currency-BwShJ9vM.js";
9
- import { D as fe, E as Oe } from "./field-error-headless-r0fX50xw.js";
10
- import { L as be } from "./field-label-headless-D-kCfg8j.js";
6
+ import { aD as K, bn as T, bk as P, bx as ie, bf as x, bp as ue, R as me, $ as pe, v as de, G as Ie, u as Ce, w as Ee } from "./form-D-pcluMZ.js";
7
+ import { f as O, a as D } from "./find-child-C60k4CxG.js";
8
+ import { a as Q } from "./format-currency-BwShJ9vM.js";
9
+ import { D as fe, E as Oe } from "./field-error-headless-CyoNrDMA.js";
10
+ import { L as be } from "./field-label-headless-vs578Vt6.js";
11
11
  import { F as ye } from "./fieldset-headless-CD3fds9J.js";
12
12
  import { a as _e, b as he } from "./numeric-input-utils-CuBMi4-a.js";
13
13
  import { g as Ne } from "./payment-field-utils-DobiK5Xh.js";
14
14
  import { u as ge } from "./use-synced-display-value-DcAxdn3M.js";
15
- import { E as Fe } from "./error-icon-hZxQ6DEy.js";
15
+ import { E as De } from "./error-icon-hZxQ6DEy.js";
16
16
  import { s as v } from "./field-rac.module-DfEb7pBp.js";
17
- import { o as De } from "./options-rac.module-_THNq6Qq.js";
18
- import { u as Se } from "./use-element-state-class-name-BrgdwHYP.js";
19
- import { u as Le } from "./use-text-input-class-name-CP2VJOso.js";
17
+ import { o as Fe } from "./options-rac.module-_THNq6Qq.js";
18
+ import { u as Se } from "./use-element-state-class-name-BdjEjAk1.js";
19
+ import { u as Le } from "./use-text-input-class-name-BB5fT5S6.js";
20
20
  function ve(e, t) {
21
21
  return e.reduce((o, r) => (o[r[t]] = r, o), {});
22
22
  }
@@ -32,29 +32,29 @@ function Y(e, t) {
32
32
  const o = Number(t || "0");
33
33
  return {
34
34
  productId: e.id,
35
- price: e.priceType === j.DYNAMIC_PRICE ? o : String(o),
35
+ price: e.priceType === K.DYNAMIC_PRICE ? o : String(o),
36
36
  quantity: 1
37
37
  };
38
38
  }
39
39
  function Pe(e) {
40
- return e.find((t) => t.priceType === j.DYNAMIC_PRICE);
40
+ return e.find((t) => t.priceType === K.DYNAMIC_PRICE);
41
41
  }
42
42
  function Be(e, t) {
43
43
  return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
44
44
  }
45
45
  const s = ({ children: e }) => {
46
- const { id: t, value: o, onChange: r, required: l, onBlur: i, onFocus: C, validation: u, addOther: E, addOtherPlaceholder: p, FieldLayout: f } = T(), { inputId: c, labelId: d, ariaDescribedBy: y } = P(), { t: m } = ie(), { currency: g, regionalFormat: _ } = x(), b = o == null ? void 0 : o[0], D = q(() => {
46
+ const { id: t, value: o, onChange: r, required: l, onBlur: i, onFocus: C, validation: u, addOther: E, addOtherPlaceholder: p, FieldLayout: f } = T(), { inputId: c, labelId: d, ariaDescribedBy: y } = P(), { t: m } = ie(), { currency: g, regionalFormat: _ } = x(), b = o == null ? void 0 : o[0], F = q(() => {
47
47
  var I, h;
48
48
  return ((h = (I = u == null ? void 0 : u.predefined) == null ? void 0 : I.paymentOptions) == null ? void 0 : h.products) || [];
49
49
  }, [
50
50
  u
51
- ]), B = q(() => Re(D), [
52
- D
53
- ]), a = q(() => E ? Pe(D) : void 0, [
54
- D,
51
+ ]), B = q(() => Re(F), [
52
+ F
53
+ ]), a = q(() => E ? Pe(F) : void 0, [
54
+ F,
55
55
  E
56
- ]), K = Be(b, a), [V, M] = ge({
57
- sourceValue: K,
56
+ ]), W = Be(b, a), [V, M] = ge({
57
+ sourceValue: W,
58
58
  format: (I) => he(String(I ?? ""), _),
59
59
  regionalFormat: _
60
60
  }), H = S((I) => {
@@ -66,16 +66,16 @@ const s = ({ children: e }) => {
66
66
  r,
67
67
  B,
68
68
  M
69
- ]), k = S((I) => {
69
+ ]), U = S((I) => {
70
70
  a && r(typeof I == "number" ? [
71
71
  Y(a, String(I))
72
72
  ] : []);
73
73
  }, [
74
74
  r,
75
75
  a
76
- ]), G = q(() => ce(k, 500), [
77
- k
78
- ]), Q = S((I) => {
76
+ ]), G = q(() => ce(U, 500), [
77
+ U
78
+ ]), j = S((I) => {
79
79
  (b == null ? void 0 : b.productId) !== (a == null ? void 0 : a.id) && r(void 0);
80
80
  const { validInput: h, validNumber: ee } = _e(I.target.value, Ae, V, _);
81
81
  M(h), G(ee);
@@ -87,7 +87,7 @@ const s = ({ children: e }) => {
87
87
  V,
88
88
  G,
89
89
  M
90
- ]), $ = (b == null ? void 0 : b.productId) || null, W = S(() => {
90
+ ]), $ = (b == null ? void 0 : b.productId) || null, z = S(() => {
91
91
  a != null && a.id && $ !== a.id && H(a.id);
92
92
  }, [
93
93
  a == null ? void 0 : a.id,
@@ -104,18 +104,18 @@ const s = ({ children: e }) => {
104
104
  required: l,
105
105
  onBlur: i,
106
106
  onFocus: C
107
- }, w ? F(w, {
107
+ }, w ? D(w, {
108
108
  productsById: B,
109
109
  selectedValue: $,
110
110
  onSelectProduct: H,
111
111
  addOther: E,
112
112
  customAmount: V,
113
- onCustomAmountInputChange: Q,
113
+ onCustomAmountInputChange: j,
114
114
  currency: g,
115
115
  t: m,
116
116
  placeholder: p === void 0 ? m("donation.other-option.placeholder") : p,
117
117
  customAmountProductId: a == null ? void 0 : a.id,
118
- onFocusCustomInput: W
118
+ onFocusCustomInput: z
119
119
  }) : null),
120
120
  renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, Z, X)
121
121
  });
@@ -124,11 +124,11 @@ const s = ({ children: e }) => {
124
124
  return /* @__PURE__ */ n.createElement("div", {
125
125
  className: t,
126
126
  "data-invalid": m
127
- }, g ? F(g, {
127
+ }, g ? D(g, {
128
128
  productsById: r,
129
129
  selectedValue: l,
130
130
  onSelectProduct: i
131
- }) : null, _ && C ? F(_, {
131
+ }) : null, _ && C ? D(_, {
132
132
  customAmount: u,
133
133
  onCustomAmountInputChange: E,
134
134
  currency: p,
@@ -137,8 +137,8 @@ const s = ({ children: e }) => {
137
137
  customAmountProductId: d,
138
138
  onFocusCustomInput: y
139
139
  }) : null);
140
- }, U = ({ children: e, className: t, ...o }) => {
141
- const { productsById: r, selectedValue: l, onSelectProduct: i } = o, { options: C, numberOfColumns: u, disabled: E } = T(), { labelId: p } = P(), f = O(e, U.Option);
140
+ }, k = ({ children: e, className: t, ...o }) => {
141
+ const { productsById: r, selectedValue: l, onSelectProduct: i } = o, { options: C, numberOfColumns: u, disabled: E } = T(), { labelId: p } = P(), f = O(e, k.Option);
142
142
  return /* @__PURE__ */ n.createElement(oe, {
143
143
  className: t,
144
144
  "data-columns": u,
@@ -154,14 +154,14 @@ const s = ({ children: e }) => {
154
154
  }, C.map((c) => {
155
155
  var m;
156
156
  const d = r[c.value], y = (m = d == null ? void 0 : d.fixedPriceOptions) == null ? void 0 : m.price;
157
- return F(f, {
157
+ return D(f, {
158
158
  key: c.value,
159
159
  value: c.value,
160
160
  price: y || "0"
161
161
  });
162
162
  }));
163
163
  }, R = ({ children: e, className: t, ...o }) => {
164
- const { value: r, price: l } = o, { id: i, hasError: C } = T(), { currency: u, regionalFormat: E } = x(), p = O(e, R.Value), f = O(e, R.Currency), { isCurrencyPrefixed: c } = z({
164
+ const { value: r, price: l } = o, { id: i, hasError: C } = T(), { currency: u, regionalFormat: E } = x(), p = O(e, R.Value), f = O(e, R.Currency), { isCurrencyPrefixed: c } = Q({
165
165
  amount: l,
166
166
  currency: u == null ? void 0 : u.code,
167
167
  locale: E
@@ -170,7 +170,7 @@ const s = ({ children: e }) => {
170
170
  var m;
171
171
  (m = d.current) == null || m.focus();
172
172
  }, i);
173
- const y = p ? F(p, {
173
+ const y = p ? D(p, {
174
174
  price: l
175
175
  }) : null;
176
176
  return /* @__PURE__ */ n.createElement(ae, {
@@ -180,7 +180,7 @@ const s = ({ children: e }) => {
180
180
  "data-invalid": C || void 0
181
181
  }, /* @__PURE__ */ n.createElement(n.Fragment, null, c && f, y, !c && f));
182
182
  }, qe = ({ className: e, ...t }) => {
183
- const { price: o } = t, { currency: r, regionalFormat: l } = x(), { value: i } = z({
183
+ const { price: o } = t, { currency: r, regionalFormat: l } = x(), { value: i } = Q({
184
184
  amount: o,
185
185
  currency: r == null ? void 0 : r.code,
186
186
  locale: l
@@ -197,10 +197,10 @@ const s = ({ children: e }) => {
197
197
  R.Value = qe;
198
198
  R.Currency = xe;
199
199
  const A = ({ children: e, className: t, ...o }) => {
200
- const { customAmount: r, onCustomAmountInputChange: l, currency: i, t: C, placeholder: u, customAmountProductId: E, onFocusCustomInput: p } = o, { disabled: f, hasError: c } = T(), { labelId: d, prefixId: y } = P(), m = O(e, A.Currency), g = O(e, A.Value), _ = S((D) => {
200
+ const { customAmount: r, onCustomAmountInputChange: l, currency: i, t: C, placeholder: u, customAmountProductId: E, onFocusCustomInput: p } = o, { disabled: f, hasError: c } = T(), { labelId: d, prefixId: y } = P(), m = O(e, A.Currency), g = O(e, A.Value), _ = S((F) => {
201
201
  l({
202
202
  target: {
203
- value: D
203
+ value: F
204
204
  }
205
205
  });
206
206
  }, [
@@ -221,10 +221,10 @@ const A = ({ children: e, className: t, ...o }) => {
221
221
  className: t,
222
222
  isDisabled: f,
223
223
  isInvalid: c
224
- }, r && i && m ? F(m, {
224
+ }, r && i && m ? D(m, {
225
225
  currency: i,
226
226
  t: C
227
- }) : null, g ? F(g, {
227
+ }) : null, g ? D(g, {
228
228
  placeholder: u,
229
229
  customAmountProductId: E
230
230
  }) : null));
@@ -250,32 +250,32 @@ const A = ({ children: e, className: t, ...o }) => {
250
250
  };
251
251
  A.Currency = Ve;
252
252
  A.Value = He;
253
- U.Option = R;
253
+ k.Option = R;
254
254
  s.Label = be;
255
255
  s.Control = Me;
256
- s.Options = U;
256
+ s.Options = k;
257
257
  s.OtherInput = A;
258
258
  s.Description = fe;
259
259
  s.Error = Oe;
260
- const $e = "_control_n5tqu_1", Ue = "_option_n5tqu_7", ke = "_optionHover_n5tqu_37", Ge = "_optionSelected_n5tqu_37", we = "_optionCurrency_n5tqu_87", Ye = "_otherInput_n5tqu_91", je = "_otherInputCurrency_n5tqu_110", N = {
260
+ const $e = "_control_n5tqu_1", ke = "_option_n5tqu_7", Ue = "_optionHover_n5tqu_37", Ge = "_optionSelected_n5tqu_37", we = "_optionCurrency_n5tqu_87", Ye = "_otherInput_n5tqu_91", Ke = "_otherInputCurrency_n5tqu_110", N = {
261
261
  control: $e,
262
- option: Ue,
263
- optionHover: ke,
262
+ option: ke,
263
+ optionHover: Ue,
264
264
  optionSelected: Ge,
265
265
  optionCurrency: we,
266
266
  otherInput: Ye,
267
- otherInputCurrency: je
268
- }, ze = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(ne, {
267
+ otherInputCurrency: Ke
268
+ }, Qe = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(ne, {
269
269
  content: e,
270
270
  locale: t
271
- }), Ke = {
271
+ }), We = {
272
272
  base: N.option,
273
273
  selected: N.optionSelected,
274
274
  hover: N.optionHover
275
- }, Qe = () => {
275
+ }, je = () => {
276
276
  const e = Le(N.otherInput), t = Se({
277
277
  globalClasses: Ee,
278
- moduleClasses: Ke
278
+ moduleClasses: We
279
279
  });
280
280
  return /* @__PURE__ */ n.createElement(s, null, /* @__PURE__ */ n.createElement(s.Label, {
281
281
  className: L(me, v.label)
@@ -284,7 +284,7 @@ const $e = "_control_n5tqu_1", Ue = "_option_n5tqu_7", ke = "_optionHover_n5tqu_
284
284
  })), /* @__PURE__ */ n.createElement(s.Control, {
285
285
  className: N.control
286
286
  }, /* @__PURE__ */ n.createElement(s.Options, {
287
- className: L(de, De.options, N.options)
287
+ className: L(de, Fe.options, N.options)
288
288
  }, /* @__PURE__ */ n.createElement(s.Options.Option, {
289
289
  className: t
290
290
  }, /* @__PURE__ */ n.createElement(s.Options.Option.Value, null), /* @__PURE__ */ n.createElement(s.Options.Option.Currency, {
@@ -297,10 +297,10 @@ const $e = "_control_n5tqu_1", Ue = "_option_n5tqu_7", ke = "_optionHover_n5tqu_
297
297
  className: v.innerInput
298
298
  }))), /* @__PURE__ */ n.createElement(s.Error, {
299
299
  className: L(Ie, v.error)
300
- }, /* @__PURE__ */ n.createElement(Fe, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
300
+ }, /* @__PURE__ */ n.createElement(De, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
301
301
  className: L(Ce, v.description)
302
- }, ze));
303
- }, Ct = () => /* @__PURE__ */ n.createElement(Qe, null);
302
+ }, Qe));
303
+ }, Ct = () => /* @__PURE__ */ n.createElement(je, null);
304
304
  export {
305
305
  Ct as DonationRAC
306
306
  };
@@ -1,15 +1,15 @@
1
- import e, { useState as b, useCallback as g, useRef as k } from "react";
1
+ import e, { useState as b, useCallback as g, useRef as _ } from "react";
2
2
  import { UNSAFE_PortalProvider as q } from "react-aria";
3
- import { Select as M, SelectValue as j, ListBoxItem as H } from "react-aria-components";
4
- import { bj as E, bg as O, bl as U } from "./form-DtzwuBIo.js";
3
+ import { Select as M, SelectValue as H, ListBoxItem as U } from "react-aria-components";
4
+ import { bn as E, bk as O, bp as Y } from "./form-D-pcluMZ.js";
5
5
  import { f as d, a as F } from "./find-child-C60k4CxG.js";
6
- import { D as Y, E as z } from "./field-error-headless-r0fX50xw.js";
7
- import { L as G } from "./field-label-headless-D-kCfg8j.js";
6
+ import { D as j, E as z } from "./field-error-headless-CyoNrDMA.js";
7
+ import { L as G } from "./field-label-headless-vs578Vt6.js";
8
8
  import { E as J, S as K, N as Q } from "./non-modal-popover-D-u13tmp.js";
9
- import { a as W } from "./use-dropdown-trigger-class-name-DmDwpAVn.js";
10
- import { V as X } from "./use-dropdown-option-class-name-CkpHwC6t.js";
9
+ import { a as W } from "./use-dropdown-trigger-class-name-XS469pt3.js";
10
+ import { V as X } from "./use-dropdown-option-class-name-DK1HCEOC.js";
11
11
  const r = ({ children: n }) => {
12
- const { id: l, value: a, defaultValue: o, options: u = [], readOnly: s, onChange: t, placeholder: m, disabled: i, required: v, onBlur: L, onFocus: y, FieldLayout: C, hasError: D } = E(), [I, h] = b(!1), p = W(l), [P, S] = b(null), T = a && u.some((c) => (c.value ?? c.label) === a) ? a : o || null, { labelId: B } = O(), N = g((c) => {
12
+ const { id: l, value: a, defaultValue: o, options: u = [], readOnly: s, onChange: t, placeholder: p, disabled: i, required: v, onBlur: L, onFocus: y, FieldLayout: C, hasError: D } = E(), [I, h] = b(!1), m = W(l), [P, S] = b(null), T = a && u.some((c) => (c.value ?? c.label) === a) ? a : o || null, { labelId: B } = O(), N = g((c) => {
13
13
  s || t(typeof c == "string" ? c : null);
14
14
  }, [
15
15
  t,
@@ -17,7 +17,7 @@ const r = ({ children: n }) => {
17
17
  ]), V = g((c) => h(c && !i && !s), [
18
18
  i,
19
19
  s
20
- ]), R = d(n, r.Label), x = d(n, r.Trigger), w = d(n, r.Options), A = d(n, r.Description), _ = d(n, r.Error);
20
+ ]), R = d(n, r.Label), x = d(n, r.Trigger), k = d(n, r.Options), w = d(n, r.Description), A = d(n, r.Error);
21
21
  return /* @__PURE__ */ e.createElement(C, {
22
22
  fieldId: l,
23
23
  renderLabel: () => R,
@@ -31,33 +31,33 @@ const r = ({ children: n }) => {
31
31
  }, /* @__PURE__ */ e.createElement(M, {
32
32
  "aria-labelledby": B,
33
33
  value: T,
34
- isOpen: p || I && !i && !s,
35
- onOpenChange: p ? void 0 : V,
34
+ isOpen: m || I && !i && !s,
35
+ onOpenChange: m ? void 0 : V,
36
36
  onChange: N,
37
37
  isDisabled: i,
38
38
  isInvalid: D,
39
39
  isRequired: v,
40
- placeholder: m || J,
40
+ placeholder: p || J,
41
41
  onBlur: L,
42
42
  onFocus: y
43
- }, x, F(w, {
44
- isForcedOpen: p
43
+ }, x, F(k, {
44
+ isForcedOpen: m
45
45
  })))),
46
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, _, A)
46
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, w)
47
47
  });
48
48
  }, Z = ({ children: n, className: l }) => {
49
- const { inputId: a, ariaDescribedBy: o } = O(), { id: u, hasError: s, isLoading: t } = E(), m = k(null);
50
- return U(() => {
49
+ const { inputId: a, ariaDescribedBy: o } = O(), { id: u, hasError: s, isLoading: t } = E(), p = _(null);
50
+ return Y(() => {
51
51
  var i;
52
- (i = m.current) == null || i.focus();
52
+ (i = p.current) == null || i.focus();
53
53
  }, u), /* @__PURE__ */ e.createElement(K, {
54
- ref: m,
54
+ ref: p,
55
55
  id: a,
56
56
  "aria-describedby": o,
57
57
  className: l,
58
58
  "data-invalid": s || void 0,
59
59
  "data-loading": t || void 0
60
- }, /* @__PURE__ */ e.createElement(j, null), n);
60
+ }, /* @__PURE__ */ e.createElement(H, null), n);
61
61
  }, f = ({ children: n, className: l, ...a }) => {
62
62
  const { isForcedOpen: o } = a, { options: u = [] } = E(), s = d(n, f.Option);
63
63
  return /* @__PURE__ */ e.createElement(Q, {
@@ -74,7 +74,7 @@ const r = ({ children: n }) => {
74
74
  }))));
75
75
  }, $ = ({ className: n, ...l }) => {
76
76
  const { value: a, label: o } = l;
77
- return /* @__PURE__ */ e.createElement(H, {
77
+ return /* @__PURE__ */ e.createElement(U, {
78
78
  className: n,
79
79
  id: a,
80
80
  textValue: o
@@ -84,7 +84,7 @@ f.Option = $;
84
84
  r.Label = G;
85
85
  r.Trigger = Z;
86
86
  r.Options = f;
87
- r.Description = Y;
87
+ r.Description = j;
88
88
  r.Error = z;
89
89
  export {
90
90
  r as D
@@ -1,14 +1,14 @@
1
1
  import { RicosViewer as m } from "@wix/ricos/viewer";
2
2
  import a from "classnames";
3
3
  import e from "react";
4
- import { D as r } from "./dropdown-field-headless-C2qgeReH.js";
4
+ import { D as r } from "./dropdown-field-headless-DMQSalL1.js";
5
5
  import { C as n } from "./chevron-down-icon-CcpVm6B-.js";
6
6
  import { E as l } from "./error-icon-hZxQ6DEy.js";
7
7
  import { H as c } from "./custom-focus-class-_483Pkwp.js";
8
8
  import { s as o } from "./field-rac.module-DfEb7pBp.js";
9
- import { R as i, $ as p, x as E, G as D, u as _ } from "./form-DtzwuBIo.js";
10
- import { u as O } from "./use-dropdown-option-class-name-CkpHwC6t.js";
11
- import { u as R } from "./use-dropdown-trigger-class-name-DmDwpAVn.js";
9
+ import { R as i, $ as p, x as E, G as D, u as _ } from "./form-D-pcluMZ.js";
10
+ import { u as O } from "./use-dropdown-option-class-name-DK1HCEOC.js";
11
+ import { u as R } from "./use-dropdown-trigger-class-name-XS469pt3.js";
12
12
  const C = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(m, {
13
13
  content: t,
14
14
  locale: s
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { D as r } from "./dropdown-field-rac-Bj1YSgpT.js";
2
+ import { D as r } from "./dropdown-field-rac-C31YjVhV.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-DJXcb6NG.js";
2
+ import { M as r } from "./multiline-address-field-rac-CowUg4Dk.js";
3
3
  const l = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  l as EcomAddressRAC
@@ -1,7 +1,7 @@
1
1
  import o, { useMemo as n } from "react";
2
- import { bj as a, bt as c, al as i } from "./form-DtzwuBIo.js";
3
- import { C as l } from "./checkbox-field-rac-CA6SeM0c.js";
4
- const p = (e) => ({
2
+ import { bn as a, bx as c, ap as i } from "./form-D-pcluMZ.js";
3
+ import { C as p } from "./checkbox-field-rac-DsQrwgzd.js";
4
+ const l = (e) => ({
5
5
  nodes: [
6
6
  {
7
7
  paragraphData: {
@@ -25,7 +25,7 @@ const p = (e) => ({
25
25
  }
26
26
  ]
27
27
  }), u = () => {
28
- const e = a(), { t } = c(), r = n(() => p(t), [
28
+ const e = a(), { t } = c(), r = n(() => l(t), [
29
29
  t
30
30
  ]), s = {
31
31
  ...e,
@@ -35,7 +35,7 @@ const p = (e) => ({
35
35
  value: {
36
36
  v2: s
37
37
  }
38
- }, /* @__PURE__ */ o.createElement(l, null));
38
+ }, /* @__PURE__ */ o.createElement(p, null));
39
39
  };
40
40
  export {
41
41
  u as EcomSubscriptionCheckboxRAC