@wix/form-elements 1.136.0 → 1.138.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 (108) hide show
  1. package/dist/component/{appointment-rac-DsD7xLmb.js → appointment-rac-DvzMuumV.js} +52 -52
  2. package/dist/component/{bookings-address-rac-ByaFu51U.js → bookings-address-rac-DoTKdj4W.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CxuvkcYw.js → bookings-email-rac-CHvxtHcu.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-JXLJa_7E.js → bookings-first-name-rac-VAAhC_fg.js} +1 -1
  5. package/dist/component/{bookings-header-rac-CIQTbf9d.js → bookings-header-rac-YWB4879A.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-_2Xt4BPe.js → bookings-last-name-rac-B-aGMcD_.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-BUjys5i9.js → bookings-login-bar-rac-3wYAN_xh.js} +4 -4
  8. package/dist/component/{bookings-phone-rac-DlsdGmOt.js → bookings-phone-rac-CzQVxpNK.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BvRdhL7M.js → bookings-rich-text-rac-C5z9Gvts.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-Be6wicaA.js → checkbox-field-rac-CradfjbE.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-BJ0pGvXi.js → checkbox-group-field-headless-DdVXFUPC.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-D7xqqVf6.js → checkbox-group-field-rac-KqKHh6Uj.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-DtCS-gEH.js → checkbox-group-rac-C34O1zlM.js} +1 -1
  14. package/dist/component/{checkbox-rac-ub7MFwY-.js → checkbox-rac-BnXI1EcE.js} +1 -1
  15. package/dist/component/{contacts-address-rac-Bwsdpg11.js → contacts-address-rac-Ba57mGCo.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-D54hibhb.js → contacts-birthdate-rac-lOtU_kNL.js} +1 -1
  17. package/dist/component/{contacts-company-rac-CKqzgKio.js → contacts-company-rac-fzSYypTz.js} +1 -1
  18. package/dist/component/{contacts-email-rac-Dxm31wuY.js → contacts-email-rac-kOu3zzAk.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CXHsx6Vy.js → contacts-first-name-rac-CwUDxtmS.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-B0S268f3.js → contacts-last-name-rac-DstG7QIk.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-DEbgIiEj.js → contacts-phone-rac-DbDYtB90.js} +1 -1
  22. package/dist/component/{contacts-position-rac-D31uoOlR.js → contacts-position-rac-G-5pxT4U.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DJ8NtoxZ.js → contacts-subscribe-rac-hfjDjoZw.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-DTQffHAo.js → contacts-tax-id-rac-CUwJltYa.js} +1 -1
  25. package/dist/component/{date-availability-DmhJ9apH.js → date-availability-CwlAp1DX.js} +1 -1
  26. package/dist/component/{date-input-field-rac-BwM_q4FW.js → date-input-field-rac-C47Y-z4d.js} +6 -6
  27. package/dist/component/{date-input-rac-C93pgocp.js → date-input-rac-BSKV4JJO.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-CtZL368W.js → date-picker-field-rac-NSAnfLRk.js} +5 -5
  29. package/dist/component/{date-picker-rac-4DNe6hOX.js → date-picker-rac-DlEVDz1X.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-MlCVy3Oz.js → date-time-input-field-rac-Bs2xjob_.js} +20 -20
  31. package/dist/component/{date-time-input-rac-ByyBvFgo.js → date-time-input-rac-Dvy_vn5y.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BP76Xwiq.js → dext-checkbox-group-rac-ydiyI0Ax.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DGaKSh4Z.js → dext-checkbox-rac-D3FH0uIS.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-UEXbMSlL.js → dext-date-picker-rac-C4Xa4Mkn.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-CsJcGK4I.js → dext-date-time-input-rac-DBUVJbqB.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-BzbRzloh.js → dext-dropdown-rac-Ku5SxJci.js} +1 -1
  37. package/dist/component/{dext-email-rac-DufFAnTi.js → dext-email-rac-CdfesgKH.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-D6xXi7B2.js → dext-number-input-rac-AmiEoijD.js} +1 -1
  39. package/dist/component/{dext-phone-rac-svy9CDHW.js → dext-phone-rac-BqiNW-E2.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-C4p9NuQS.js → dext-radio-group-rac-Bku-LoOz.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-wJ7-RFFN.js → dext-rating-input-rac-TxRgyMyp.js} +1 -1
  42. package/dist/component/{dext-tags-rac-D2myHrSZ.js → dext-tags-rac-C6iBGwg4.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-B4Fw_9mF.js → dext-text-area-rac-BU0eyjM4.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-DlZanFMT.js → dext-text-input-rac-BEls3cms.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-DYjl3wuk.js → dext-url-input-rac-CMAK9Qo6.js} +1 -1
  46. package/dist/component/donation-rac-aGSBtE2T.js +306 -0
  47. package/dist/component/{dropdown-field-headless-BAt2RoAH.js → dropdown-field-headless-B6i33cBH.js} +5 -5
  48. package/dist/component/{dropdown-field-rac-DFjn3ecV.js → dropdown-field-rac-COluC25e.js} +6 -6
  49. package/dist/component/{dropdown-rac-DQ6keNRI.js → dropdown-rac-BGQx3saK.js} +1 -1
  50. package/dist/component/{ecom-address-rac-j1T2zp0k.js → ecom-address-rac-BgkdVaiI.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-viTaRZsk.js → ecom-subscription-checkbox-rac-C9jnWaZl.js} +2 -2
  52. package/dist/component/{email-input-field-rac-5eb-1w7B.js → email-input-field-rac-DHCUGLjQ.js} +3 -3
  53. package/dist/component/{events-repeater-rac-BtcoN_Ra.js → events-repeater-rac-BHz0azrh.js} +13 -13
  54. package/dist/component/{events-rsvp-rac-DSzFEmty.js → events-rsvp-rac-BgtEivuD.js} +8 -8
  55. package/dist/component/{field-error-headless-Bpe041x2.js → field-error-headless-BCrv3sBa.js} +1 -1
  56. package/dist/component/{field-label-headless-BUuK1Ftv.js → field-label-headless-B54yFVkr.js} +1 -1
  57. package/dist/component/{file-upload-rac-CfU8Ygwq.js → file-upload-rac-Cg8Z8lhS.js} +21 -21
  58. package/dist/component/{fixed-payment-rac-CYp7zNq8.js → fixed-payment-rac-B3uuRmES.js} +21 -21
  59. package/dist/component/{form-C6lnbh2O.js → form-D7mq5tD5.js} +77 -77
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-B7YfrhId.js → header-field-rac-DbeAaOaE.js} +2 -2
  63. package/dist/component/{header-rac-BtJKAKAz.js → header-rac-CRghbywI.js} +1 -1
  64. package/dist/component/{image-choice-rac-Bmq7Pyg6.js → image-choice-rac-nCRaXrH5.js} +17 -17
  65. package/dist/component/{index-CQdUOkIN.js → index-C6cdxkPM.js} +2 -2
  66. package/dist/component/{index-BjPSeVyh.js → index-DNonwKkE.js} +4 -4
  67. package/dist/component/{isObjectLike-CxNqKfU5.js → isObjectLike-PXbsarQL.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-BeiUJWKd.js → multiline-address-field-rac-DeMafI8g.js} +7 -7
  69. package/dist/component/{multiline-address-rac-B2mocF6M.js → multiline-address-rac-g1IrapIk.js} +1 -1
  70. package/dist/component/{number-input-field-rac-CQX7_S2O.js → number-input-field-rac-BSGFZQh_.js} +10 -10
  71. package/dist/component/{number-input-rac-BZri-E8P.js → number-input-rac-C5yMyFyv.js} +1 -1
  72. package/dist/component/{password-rac-CdwrtDJU.js → password-rac-jHDFxH5W.js} +10 -10
  73. package/dist/component/{payment-input-rac-ClQiqmjm.js → payment-input-rac-Cpw8VM0u.js} +14 -14
  74. package/dist/component/{phone-input-field-rac-BtG_Rado.js → phone-input-field-rac-DLZysv_w.js} +26 -26
  75. package/dist/component/{phone-rac-CdcAMa5E.js → phone-rac-DK5Toq-q.js} +1 -1
  76. package/dist/component/{product-list-rac-Dp_YK6mo.js → product-list-rac-DR2bHVkk.js} +22 -22
  77. package/dist/component/{quiz-radio-group-rac-CorojxKD.js → quiz-radio-group-rac-mWuYJqRQ.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-ZX12Fyj4.js → radio-button-module-classes-CokNolqR.js} +3 -3
  79. package/dist/component/{radio-group-field-rac-BifCDpE4.js → radio-group-field-rac-DiaR7RdY.js} +6 -6
  80. package/dist/component/{radio-group-rac-CJ2fzqnY.js → radio-group-rac-FdQp_E1O.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-Dg1T0DZW.js → rating-input-field-rac-DbyB_Esi.js} +11 -11
  82. package/dist/component/{rating-input-rac-Ba4YK13i.js → rating-input-rac-D4C1bB-A.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-BehwBL3L.js → rich-content-rac.module-CDtZ3pmh.js} +1 -1
  84. package/dist/component/{rich-text-field-rac-DtIWdB-S.js → rich-text-field-rac-CYqdqamx.js} +2 -2
  85. package/dist/component/{rich-text-rac-BX4eDDFw.js → rich-text-rac-CDzSg_7O.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-68WLBlsa.js → service-dropdown-rac-rdwYVwGB.js} +9 -9
  87. package/dist/component/{services-multi-choice-rac-8yNdAHfS.js → services-multi-choice-rac-DOO6HYgT.js} +7 -7
  88. package/dist/component/{signature-rac-DeVOyl5O.js → signature-rac-CBh4_hf-.js} +4 -4
  89. package/dist/component/{submit-button-rac-IOr1g-G-.js → submit-button-rac-B8ZNvJjY.js} +2 -2
  90. package/dist/component/{tags-field-rac-DaiMlAxt.js → tags-field-rac-D5THw-TO.js} +5 -5
  91. package/dist/component/{tags-rac-BgrUkY0A.js → tags-rac-C8wN2xTn.js} +1 -1
  92. package/dist/component/{text-area-field-rac-CLPZEY93.js → text-area-field-rac-D3GB6Wrq.js} +6 -6
  93. package/dist/component/{text-area-rac-C8PdPSzX.js → text-area-rac-CCTd5x7u.js} +1 -1
  94. package/dist/component/{text-input-field-rac-Dm-xU8Rg.js → text-input-field-rac-emy5LgNs.js} +3 -3
  95. package/dist/component/{text-input-headless-BEmRjL8Z.js → text-input-headless-BIgsm4yN.js} +3 -3
  96. package/dist/component/{text-input-rac-C-FnaOXT.js → text-input-rac-BFRe44DM.js} +1 -1
  97. package/dist/component/{time-input-rac-VmTURkiK.js → time-input-rac-D6FsrMxb.js} +4 -4
  98. package/dist/component/{url-input-field-rac-CnnS0tVx.js → url-input-field-rac-Dk9F61BD.js} +8 -8
  99. package/dist/component/{url-input-rac-6nd_ccoP.js → url-input-rac-C1pAmfj-.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-CcZl1qrj.js → use-dropdown-option-class-name-DNvaYrmm.js} +2 -2
  101. package/dist/component/{use-dropdown-trigger-class-name-BNc0mkdK.js → use-dropdown-trigger-class-name-_gAS-eDg.js} +2 -2
  102. package/dist/component/{use-element-state-class-name-BU6RXqBy.js → use-element-state-class-name-CT3HIbmC.js} +1 -1
  103. package/dist/component/{use-hoverable-input-class-name-CkXPkbiP.js → use-hoverable-input-class-name-DMVtzjju.js} +2 -2
  104. package/dist/component/{use-service-options-base-B5afDbnr.js → use-service-options-base-DMgeKnCC.js} +1 -1
  105. package/dist/component/use-text-input-class-name-CO5G1Jx0.js +6 -0
  106. package/package.json +2 -2
  107. package/dist/component/donation-rac-B6LwJxik.js +0 -314
  108. package/dist/component/use-text-input-class-name-BB3V6Q0b.js +0 -6
@@ -1,5 +1,5 @@
1
1
  import i from "classnames";
2
- import { bc as s, aL as v } from "./form-C6lnbh2O.js";
2
+ import { bc as s, aL as v } from "./form-D7mq5tD5.js";
3
3
  const x = ({ globalClasses: e, moduleClasses: r }) => {
4
4
  var d;
5
5
  const c = ((d = s(...v(e))) == null ? void 0 : d.split(/\s+/)) ?? [], o = [
@@ -1,6 +1,6 @@
1
- import { bj as n } from "./form-C6lnbh2O.js";
1
+ import { bj as n } from "./form-D7mq5tD5.js";
2
2
  import { s as e } from "./field-rac.module-DfEb7pBp.js";
3
- import { u } from "./use-element-state-class-name-BU6RXqBy.js";
3
+ import { u } from "./use-element-state-class-name-CT3HIbmC.js";
4
4
  const b = (s, a) => {
5
5
  const { disabled: t, readOnly: o } = n(), r = u({
6
6
  globalClasses: s,
@@ -1,5 +1,5 @@
1
1
  import { useState as o, useCallback as y, useEffect as m, useMemo as D } from "react";
2
- import { bi as v } from "./form-C6lnbh2O.js";
2
+ import { bi as v } from "./form-D7mq5tD5.js";
3
3
  const k = (I) => {
4
4
  const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, h] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = y((e) => {
5
5
  let d = e.map((l) => ({
@@ -0,0 +1,6 @@
1
+ import { a8 as a } from "./form-D7mq5tD5.js";
2
+ import { u as e } from "./use-hoverable-input-class-name-DMVtzjju.js";
3
+ const m = (...s) => e(a, s);
4
+ export {
5
+ m as u
6
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/form-elements",
3
- "version": "1.136.0",
3
+ "version": "1.138.0",
4
4
  "description": "The Wix Forms rendering element for Builder apps, loaded at runtime as @wix/form-elements/Form",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -156,5 +156,5 @@
156
156
  ]
157
157
  }
158
158
  },
159
- "falconPackageHash": "36bc57a309039b6261f8bc4fe0b7bcea920eb93444d3b135ec090374"
159
+ "falconPackageHash": "e2c6c55cefca07d00be36cbb23b8814da0de7303dd4f50f67031134c"
160
160
  }
@@ -1,314 +0,0 @@
1
- import n, { useMemo as M, useCallback as F, useRef as oe } from "react";
2
- import { RicosViewer as re } from "@wix/ricos/viewer";
3
- import D from "classnames";
4
- import { RadioGroup as se, RadioField as V, RadioButton as Y, TextField as ae, Group as le, Input as ie } from "react-aria-components";
5
- import { debounce as ce } from "ts-debounce";
6
- import { az as j, bj as L, bg as B, bt as ue, bb as z, bl as me, M as pe, Y as de, v as Ie, G as Ce, u as Ee, w as fe } from "./form-C6lnbh2O.js";
7
- import { f, a as y } from "./find-child-C60k4CxG.js";
8
- import { a as Q } from "./format-currency-BwShJ9vM.js";
9
- import { D as he, E as Oe } from "./field-error-headless-Bpe041x2.js";
10
- import { L as be } from "./field-label-headless-BUuK1Ftv.js";
11
- import { a as _e, b as ye } from "./numeric-input-utils-CuBMi4-a.js";
12
- import { g as ge } from "./payment-field-utils-DobiK5Xh.js";
13
- import { u as Ne } from "./use-synced-display-value-DcAxdn3M.js";
14
- import { E as Fe } from "./error-icon-hZxQ6DEy.js";
15
- import { s as v } from "./field-rac.module-DfEb7pBp.js";
16
- import { o as De } from "./options-rac.module-_THNq6Qq.js";
17
- import { u as ve } from "./use-element-state-class-name-BU6RXqBy.js";
18
- import { u as Se } from "./use-text-input-class-name-BB3V6Q0b.js";
19
- function Re(e, t) {
20
- return e.reduce((o, r) => (o[r[t]] = r, o), {});
21
- }
22
- function Le(e) {
23
- return Re(e, "id");
24
- }
25
- const Ae = 0.01;
26
- function Te(e) {
27
- var t;
28
- return ((t = e == null ? void 0 : e.fixedPriceOptions) == null ? void 0 : t.price) || "0";
29
- }
30
- function W(e, t) {
31
- const o = Number(t || "0");
32
- return {
33
- productId: e.id,
34
- price: e.priceType === j.DYNAMIC_PRICE ? o : String(o),
35
- quantity: 1
36
- };
37
- }
38
- function Pe(e) {
39
- return e.find((t) => t.priceType === j.DYNAMIC_PRICE);
40
- }
41
- function xe(e, t) {
42
- return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
43
- }
44
- function Me(e, t, o) {
45
- const r = (t == null ? void 0 : t.productId) === e ? void 0 : e, a = r ? o[r] : void 0;
46
- return a ? [
47
- W(a, Te(a))
48
- ] : [];
49
- }
50
- const s = ({ children: e }) => {
51
- const { id: t, value: o, onChange: r, disabled: a, required: u, onBlur: m, onFocus: I, validation: i, addOther: p, addOtherPlaceholder: c, FieldLayout: h, hasError: _ } = L(), { labelId: O } = B(), { t: C } = ue(), { currency: A, regionalFormat: g } = z(), d = o == null ? void 0 : o[0], N = M(() => {
52
- var E, x;
53
- return ((x = (E = i == null ? void 0 : i.predefined) == null ? void 0 : E.paymentOptions) == null ? void 0 : x.products) || [];
54
- }, [
55
- i
56
- ]), T = M(() => Le(N), [
57
- N
58
- ]), l = M(() => p ? Pe(N) : void 0, [
59
- N,
60
- p
61
- ]), J = xe(d, l), [w, P] = Ne({
62
- sourceValue: J,
63
- format: (E) => ye(String(E ?? ""), g),
64
- regionalFormat: g
65
- }), q = F((E) => {
66
- r(Me(E, d, T)), P("");
67
- }, [
68
- r,
69
- T,
70
- d,
71
- P
72
- ]), U = F((E) => {
73
- l && r(typeof E == "number" ? [
74
- W(l, String(E))
75
- ] : []);
76
- }, [
77
- r,
78
- l
79
- ]), $ = M(() => ce(U, 500), [
80
- U
81
- ]), K = F((E) => {
82
- (d == null ? void 0 : d.productId) !== (l == null ? void 0 : l.id) && r(void 0);
83
- const { validInput: x, validNumber: ne } = _e(E.target.value, Ae, w, g);
84
- P(x), $(ne);
85
- }, [
86
- g,
87
- r,
88
- d,
89
- l,
90
- w,
91
- $,
92
- P
93
- ]), H = (d == null ? void 0 : d.productId) || null, X = F(() => {
94
- l != null && l.id && H !== l.id && q(l.id);
95
- }, [
96
- l == null ? void 0 : l.id,
97
- H,
98
- q
99
- ]), Z = f(e, s.Label), G = f(e, s.Control), ee = f(e, s.Description), te = f(e, s.Error);
100
- return /* @__PURE__ */ n.createElement(h, {
101
- fieldId: t,
102
- renderLabel: () => Z,
103
- renderInput: () => /* @__PURE__ */ n.createElement(se, {
104
- "aria-labelledby": O,
105
- value: H,
106
- onChange: q,
107
- isDisabled: a,
108
- isInvalid: _,
109
- isRequired: u,
110
- onBlur: m,
111
- onFocus: I
112
- }, G ? y(G, {
113
- productsById: T,
114
- addOther: p,
115
- customAmount: w,
116
- onCustomAmountInputChange: K,
117
- currency: A,
118
- t: C,
119
- placeholder: c === void 0 ? C("donation.other-option.placeholder") : c,
120
- customAmountProductId: l == null ? void 0 : l.id,
121
- onFocusCustomInput: X
122
- }) : null),
123
- renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, te, ee)
124
- });
125
- }, Be = ({ children: e, className: t, ...o }) => {
126
- const { productsById: r, addOther: a, customAmount: u, onCustomAmountInputChange: m, currency: I, t: i, placeholder: p, customAmountProductId: c, onFocusCustomInput: h } = o, { hasError: _ } = L(), O = f(e, s.Options), C = f(e, s.OtherInput);
127
- return /* @__PURE__ */ n.createElement("div", {
128
- className: t,
129
- "data-invalid": _
130
- }, O ? y(O, {
131
- productsById: r
132
- }) : null, a && c && /* @__PURE__ */ n.createElement(V, {
133
- value: c,
134
- style: {
135
- position: "absolute",
136
- width: "1px",
137
- height: "1px",
138
- padding: "0",
139
- margin: "-1px",
140
- overflow: "hidden",
141
- clip: "rect(0, 0, 0, 0)",
142
- whiteSpace: "nowrap",
143
- border: "0"
144
- }
145
- }, /* @__PURE__ */ n.createElement(Y, {
146
- "aria-label": i("donation.other-option.label", "Custom amount")
147
- }, i("donation.other-option.label", "Custom amount"))), C && a ? y(C, {
148
- customAmount: u,
149
- onCustomAmountInputChange: m,
150
- currency: I,
151
- t: i,
152
- placeholder: p,
153
- customAmountProductId: c,
154
- onFocusCustomInput: h
155
- }) : null);
156
- }, k = ({ children: e, className: t, ...o }) => {
157
- const { productsById: r } = o, { options: a, numberOfColumns: u } = L(), m = f(e, k.Option);
158
- return /* @__PURE__ */ n.createElement("div", {
159
- className: t,
160
- "data-columns": u
161
- }, a.map((I) => {
162
- var c;
163
- const i = r[I.value], p = (c = i == null ? void 0 : i.fixedPriceOptions) == null ? void 0 : c.price;
164
- return y(m, {
165
- key: I.value,
166
- value: I.value,
167
- price: p || "0"
168
- });
169
- }));
170
- }, S = ({ children: e, className: t, ...o }) => {
171
- const { value: r, price: a } = o, { id: u } = L(), { currency: m, regionalFormat: I } = z(), i = f(e, S.Value), p = f(e, S.Currency), { isCurrencyPrefixed: c } = Q({
172
- amount: a,
173
- currency: m == null ? void 0 : m.code,
174
- locale: I
175
- }), h = oe(null);
176
- me(() => {
177
- var O, C;
178
- (C = (O = h.current) == null ? void 0 : O.querySelector("input")) == null || C.focus();
179
- }, u);
180
- const _ = i ? y(i, {
181
- price: a
182
- }) : null;
183
- return /* @__PURE__ */ n.createElement(V, {
184
- value: r
185
- }, /* @__PURE__ */ n.createElement(Y, {
186
- className: t,
187
- ref: h
188
- }, /* @__PURE__ */ n.createElement(n.Fragment, null, c && p, _, !c && p)));
189
- }, ze = ({ className: e, ...t }) => {
190
- const { price: o } = t, { currency: r, regionalFormat: a } = z(), { value: u } = Q({
191
- amount: o,
192
- currency: r == null ? void 0 : r.code,
193
- locale: a
194
- });
195
- return /* @__PURE__ */ n.createElement("span", {
196
- className: e
197
- }, u);
198
- }, we = ({ className: e }) => {
199
- const { currency: t } = z();
200
- return /* @__PURE__ */ n.createElement("span", {
201
- className: e
202
- }, (t == null ? void 0 : t.sign) || (t == null ? void 0 : t.code) || "");
203
- };
204
- S.Value = ze;
205
- S.Currency = we;
206
- const R = ({ children: e, className: t, ...o }) => {
207
- const { customAmount: r, onCustomAmountInputChange: a, currency: u, t: m, placeholder: I, customAmountProductId: i, onFocusCustomInput: p } = o, { disabled: c, hasError: h } = L(), { labelId: _, prefixId: O } = B(), C = f(e, R.Currency), A = f(e, R.Value), g = F((N) => {
208
- a({
209
- target: {
210
- value: N
211
- }
212
- });
213
- }, [
214
- a
215
- ]), d = F(() => {
216
- p();
217
- }, [
218
- p
219
- ]);
220
- return /* @__PURE__ */ n.createElement(ae, {
221
- "aria-labelledby": `${_} ${O}`,
222
- value: r,
223
- onChange: g,
224
- onFocus: d,
225
- isDisabled: c,
226
- isInvalid: h
227
- }, /* @__PURE__ */ n.createElement(le, {
228
- className: t,
229
- isDisabled: c,
230
- isInvalid: h
231
- }, r && u && C ? y(C, {
232
- currency: u,
233
- t: m
234
- }) : null, A ? y(A, {
235
- placeholder: I,
236
- customAmountProductId: i
237
- }) : null));
238
- }, qe = ({ className: e, ...t }) => {
239
- const { currency: o, t: r } = t, { prefixId: a } = B();
240
- return /* @__PURE__ */ n.createElement("span", {
241
- id: a,
242
- "aria-hidden": !1,
243
- "aria-label": ge(r, o),
244
- className: e
245
- }, (o == null ? void 0 : o.sign) || (o == null ? void 0 : o.code) || "");
246
- }, He = ({ className: e, ...t }) => {
247
- const { placeholder: o, customAmountProductId: r } = t, { ariaDescribedBy: a, labelId: u, prefixId: m } = B();
248
- return /* @__PURE__ */ n.createElement(ie, {
249
- id: r,
250
- "aria-labelledby": `${u} ${m}`,
251
- "aria-describedby": a,
252
- placeholder: o,
253
- inputMode: "decimal",
254
- autoComplete: "off",
255
- className: e
256
- });
257
- };
258
- R.Currency = qe;
259
- R.Value = He;
260
- k.Option = S;
261
- s.Label = be;
262
- s.Control = Be;
263
- s.Options = k;
264
- s.OtherInput = R;
265
- s.Description = he;
266
- s.Error = Oe;
267
- const ke = "_control_1ulzi_1", Ue = "_options_1ulzi_7", $e = "_option_1ulzi_7", Ge = "_optionHover_1ulzi_40", Ve = "_optionSelected_1ulzi_40", Ye = "_optionCurrency_1ulzi_90", je = "_otherInput_1ulzi_94", Qe = "_otherInputCurrency_1ulzi_113", b = {
268
- control: ke,
269
- options: Ue,
270
- option: $e,
271
- optionHover: Ge,
272
- optionSelected: Ve,
273
- optionCurrency: Ye,
274
- otherInput: je,
275
- otherInputCurrency: Qe
276
- }, We = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(re, {
277
- content: e,
278
- locale: t
279
- }), Je = {
280
- base: b.option,
281
- selected: b.optionSelected,
282
- hover: b.optionHover
283
- }, Ke = () => {
284
- const e = Se(b.otherInput), t = ve({
285
- globalClasses: fe,
286
- moduleClasses: Je
287
- });
288
- return /* @__PURE__ */ n.createElement(s, null, /* @__PURE__ */ n.createElement(s.Label, {
289
- className: D(pe, v.label)
290
- }, /* @__PURE__ */ n.createElement(s.Label.Required, {
291
- className: D(de, v.requiredMark)
292
- })), /* @__PURE__ */ n.createElement(s.Control, {
293
- className: b.control
294
- }, /* @__PURE__ */ n.createElement(s.Options, {
295
- className: D(Ie, De.options, b.options)
296
- }, /* @__PURE__ */ n.createElement(s.Options.Option, {
297
- className: t
298
- }, /* @__PURE__ */ n.createElement(s.Options.Option.Value, null), /* @__PURE__ */ n.createElement(s.Options.Option.Currency, {
299
- className: b.optionCurrency
300
- }))), /* @__PURE__ */ n.createElement(s.OtherInput, {
301
- className: e
302
- }, /* @__PURE__ */ n.createElement(s.OtherInput.Currency, {
303
- className: b.otherInputCurrency
304
- }), /* @__PURE__ */ n.createElement(s.OtherInput.Value, {
305
- className: v.innerInput
306
- }))), /* @__PURE__ */ n.createElement(s.Error, {
307
- className: D(Ce, v.error)
308
- }, /* @__PURE__ */ n.createElement(Fe, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
309
- className: D(Ee, v.description)
310
- }, We));
311
- }, Et = () => /* @__PURE__ */ n.createElement(Ke, null);
312
- export {
313
- Et as DonationRAC
314
- };
@@ -1,6 +0,0 @@
1
- import { a8 as a } from "./form-C6lnbh2O.js";
2
- import { u as e } from "./use-hoverable-input-class-name-CkXPkbiP.js";
3
- const m = (...s) => e(a, s);
4
- export {
5
- m as u
6
- };