@wix/form-elements 1.145.0 → 1.147.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.
- package/dist/component/{appointment-rac-De-uH9rz.js → appointment-rac-BG5-bIZU.js} +98 -98
- package/dist/component/{bookings-address-rac-DB6QCMQJ.js → bookings-address-rac-8e8PqKsp.js} +1 -1
- package/dist/component/{bookings-email-rac-g6ZdB_BO.js → bookings-email-rac-CtlnU8ws.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DQgL_VHl.js → bookings-first-name-rac-CrivNlXM.js} +1 -1
- package/dist/component/{bookings-header-rac-DAnIm-Oq.js → bookings-header-rac-DWDAjfqq.js} +1 -1
- package/dist/component/{bookings-last-name-rac-D62jNdDb.js → bookings-last-name-rac-qAthWem2.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-5z8HfBhU.js → bookings-login-bar-rac-BNyUDqlM.js} +6 -6
- package/dist/component/{bookings-phone-rac-D0gu-_wy.js → bookings-phone-rac-Tc39XLr7.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-b4J1HcdI.js → bookings-rich-text-rac-CPNaPtFK.js} +1 -1
- package/dist/component/{checkbox-field-rac-CmRRc9Dz.js → checkbox-field-rac-DEa78Tpf.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CB8yAfMe.js → checkbox-group-field-headless-BxBaMg29.js} +68 -68
- package/dist/component/{checkbox-group-field-rac-C5gRZRTd.js → checkbox-group-field-rac-CRRP03Qk.js} +7 -7
- package/dist/component/{checkbox-group-rac-DNDF1Irh.js → checkbox-group-rac-TOofMGl3.js} +1 -1
- package/dist/component/{checkbox-rac-B9vztGBU.js → checkbox-rac-CHMHr8Ry.js} +1 -1
- package/dist/component/{contacts-address-rac-CKZeSncj.js → contacts-address-rac-Bc5yDvTL.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BbpNNQgF.js → contacts-birthdate-rac-Ubtg5ncv.js} +1 -1
- package/dist/component/{contacts-company-rac-BX2KT201.js → contacts-company-rac-BksH9IoV.js} +1 -1
- package/dist/component/{contacts-email-rac-5Irzx1mA.js → contacts-email-rac-DDPEtMAm.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CxKp8_2u.js → contacts-first-name-rac-DUlCvEdx.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BDCbSv5I.js → contacts-last-name-rac-BikqNgUr.js} +1 -1
- package/dist/component/{contacts-phone-rac-BM_PV_uH.js → contacts-phone-rac-B4OEgM_8.js} +1 -1
- package/dist/component/{contacts-position-rac-1aqthQSi.js → contacts-position-rac-BfybzySV.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CdqXs4kp.js → contacts-subscribe-rac-CMHb33v1.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BKHpcDb6.js → contacts-tax-id-rac-C-qEqwO5.js} +1 -1
- package/dist/component/{date-availability-DmFFTX8p.js → date-availability-DZ3J3LLm.js} +1 -1
- package/dist/component/date-input-field-rac-DeL5vuE7.js +297 -0
- package/dist/component/{date-input-rac-BB6qZ16w.js → date-input-rac-Di6TQvFf.js} +1 -1
- package/dist/component/{date-picker-field-rac-Ckwu2vD6.js → date-picker-field-rac-BcdpTkjV.js} +107 -103
- package/dist/component/{date-picker-rac-DSqzUAaH.js → date-picker-rac-Brne65gr.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DO-iRdkW.js → date-time-input-field-rac-BtQfAxRp.js} +49 -49
- package/dist/component/{date-time-input-rac-smVCCxdY.js → date-time-input-rac-DM_HXiqV.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B8bx3rT2.js → dext-checkbox-group-rac-WTVwhGG0.js} +2 -2
- package/dist/component/{dext-checkbox-rac-x8VLGRbc.js → dext-checkbox-rac-BR5YwmLQ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-D2a9NXap.js → dext-date-picker-rac-DvDuRGYi.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Cp5XjpGv.js → dext-date-time-input-rac-C6RgbaVv.js} +1 -1
- package/dist/component/{dext-dropdown-rac-nWgEvyxt.js → dext-dropdown-rac-CWjSdcZx.js} +1 -1
- package/dist/component/{dext-email-rac-CkX6ya8p.js → dext-email-rac-D-C1gVTq.js} +1 -1
- package/dist/component/{dext-number-input-rac-CKT0MS1x.js → dext-number-input-rac-YKzZS2ZG.js} +1 -1
- package/dist/component/{dext-phone-rac-DM2E7zW_.js → dext-phone-rac-CFZlEH2a.js} +1 -1
- package/dist/component/dext-radio-group-rac-DiH0wIIl.js +18 -0
- package/dist/component/{dext-rating-input-rac-CKWNpFuu.js → dext-rating-input-rac-D0s-i0qO.js} +1 -1
- package/dist/component/{dext-tags-rac-6AskGGTp.js → dext-tags-rac-Br48OQQ5.js} +2 -2
- package/dist/component/{dext-text-area-rac-ClGLD7sD.js → dext-text-area-rac-6jG8gJ7i.js} +1 -1
- package/dist/component/{dext-text-input-rac-Blbk53d4.js → dext-text-input-rac-FAJTCXuf.js} +1 -1
- package/dist/component/{dext-url-input-rac-BuitmJU0.js → dext-url-input-rac-BoMP8sQB.js} +1 -1
- package/dist/component/{donation-rac-DOifFCD7.js → donation-rac-DNi4p-v5.js} +69 -69
- package/dist/component/{dropdown-field-headless-m2P6s7X5.js → dropdown-field-headless-7SCC-xOC.js} +27 -27
- package/dist/component/{dropdown-field-rac-5e6wWJBl.js → dropdown-field-rac-CMzZh6J6.js} +8 -9
- package/dist/component/{dropdown-rac-BGxE9pJB.js → dropdown-rac-qeugpHXY.js} +1 -1
- package/dist/component/{ecom-address-rac-kbD9qW5Y.js → ecom-address-rac-D8b_L5md.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CE-Yixnj.js → ecom-subscription-checkbox-rac-BnAuR9La.js} +5 -5
- package/dist/component/{email-input-field-rac-CbwcB33o.js → email-input-field-rac-CunXRyc5.js} +64 -62
- package/dist/component/{events-repeater-rac-CGhUscBr.js → events-repeater-rac-DMjyIOkB.js} +17 -17
- package/dist/component/{events-rsvp-rac-AQ33zPTe.js → events-rsvp-rac-BsuDPq2K.js} +8 -8
- package/dist/component/{field-error-headless-ClPQ03Jc.js → field-error-headless-E8WjFr_n.js} +6 -6
- package/dist/component/{field-label-headless-DhN8Lkuq.js → field-label-headless-BakLOu5E.js} +15 -15
- package/dist/component/{file-upload-rac-yTx1ZRhZ.js → file-upload-rac-Clu_c--0.js} +43 -43
- package/dist/component/{fixed-payment-rac-nlyxa9nB.js → fixed-payment-rac-CzAXxsb-.js} +12 -12
- package/dist/component/{form-D3iU18lh.js → form-DHAKwnLt.js} +3850 -3872
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +2 -2
- package/dist/component/{header-field-rac-DAEzcleV.js → header-field-rac-CwmVpz3r.js} +4 -4
- package/dist/component/{header-rac-CJZ4qMFg.js → header-rac-ahkGRjSy.js} +1 -1
- package/dist/component/{image-choice-rac-BFAMHwPh.js → image-choice-rac-BwxkkdUu.js} +17 -17
- package/dist/component/{index-DQW26cnX.js → index-BFi_n6B7.js} +2 -2
- package/dist/component/{index-W7GOFnq8.js → index-BQf23zZi.js} +91 -91
- package/dist/component/{isObjectLike-CE8eaxSI.js → isObjectLike-DHcMRYYH.js} +15 -15
- package/dist/component/{multiline-address-field-rac-FbJO0HFf.js → multiline-address-field-rac-C6xaqNOk.js} +68 -60
- package/dist/component/{multiline-address-rac-CI-vt6Pm.js → multiline-address-rac-DF4TFuDx.js} +1 -1
- package/dist/component/{number-input-field-rac-BRVAr7LL.js → number-input-field-rac-uVJ3SBv2.js} +27 -27
- package/dist/component/{number-input-rac-C8hCiJiu.js → number-input-rac-D6ERhrSM.js} +1 -1
- package/dist/component/{password-rac-Baslr6Ga.js → password-rac-CAiC0ZKl.js} +47 -46
- package/dist/component/{payment-input-rac-CfJSKxYz.js → payment-input-rac-Bu25xvby.js} +33 -32
- package/dist/component/{phone-input-field-rac-Dqh4CXdC.js → phone-input-field-rac-32qUvCsC.js} +46 -45
- package/dist/component/{phone-rac-DaLuGuxd.js → phone-rac-mNrpj30q.js} +1 -1
- package/dist/component/{product-list-rac-PNMwRBtL.js → product-list-rac-zHdM9rHw.js} +53 -53
- package/dist/component/{quiz-radio-group-rac-DN8vY-oM.js → quiz-radio-group-rac-BaSlT8w3.js} +1 -1
- package/dist/component/{radio-button-module-classes-DlJi9a2f.js → radio-button-module-classes-BdWjkBlX.js} +9 -9
- package/dist/component/{radio-group-field-rac-C0tLXhl5.js → radio-group-field-rac-DI0UgTBr.js} +12 -12
- package/dist/component/{radio-group-rac-FAk7PYgP.js → radio-group-rac-D2ESG8J4.js} +1 -1
- package/dist/component/{rating-input-field-rac-Cl1kH_uu.js → rating-input-field-rac-BYT2XqOK.js} +26 -26
- package/dist/component/{rating-input-rac-D9p-0pkI.js → rating-input-rac-D-5CmVAX.js} +1 -1
- package/dist/component/{rich-content-rac.module-Dkr46kPC.js → rich-content-rac.module-Dp9Advo9.js} +8 -8
- package/dist/component/{rich-text-field-rac-DthhTvTp.js → rich-text-field-rac-COEUwoXQ.js} +4 -4
- package/dist/component/{rich-text-rac-DqZX4NeB.js → rich-text-rac-CQZLjBQ0.js} +1 -1
- package/dist/component/{service-dropdown-rac-BMOGLU2Z.js → service-dropdown-rac-BTtJVFv8.js} +44 -45
- package/dist/component/{services-multi-choice-rac-DcdUewzJ.js → services-multi-choice-rac-hbY3g0Kb.js} +11 -11
- package/dist/component/{signature-rac-BRvN6kUW.js → signature-rac-CTCNclwL.js} +67 -67
- package/dist/component/{submit-button-rac-B70UC8eS.js → submit-button-rac-kKGeVgsG.js} +25 -25
- package/dist/component/{tags-field-rac-NpYyV8X4.js → tags-field-rac-CVf7oQr_.js} +35 -35
- package/dist/component/{tags-rac-BMEbpJ-z.js → tags-rac-DiX1_nTT.js} +1 -1
- package/dist/component/{text-area-field-rac-BLSrNwJ6.js → text-area-field-rac-IhBNXiDl.js} +22 -22
- package/dist/component/{text-area-rac-Cm7aAfIz.js → text-area-rac-DHevCtFF.js} +1 -1
- package/dist/component/{text-input-field-rac-BDqV7s0M.js → text-input-field-rac-Da3_wTdh.js} +5 -5
- package/dist/component/text-input-headless-DcZRRXCp.js +45 -0
- package/dist/component/{text-input-rac-Cc_SkCCS.js → text-input-rac-564LIZ1_.js} +1 -1
- package/dist/component/{time-input-rac-DDCiAFe2.js → time-input-rac-p-Nnsxp_.js} +54 -54
- package/dist/component/{url-input-field-rac-jen6pbz7.js → url-input-field-rac-DjrcpRtm.js} +27 -26
- package/dist/component/{url-input-rac-BWh6udtS.js → url-input-rac-B3brpyop.js} +1 -1
- package/dist/component/use-dropdown-trigger-class-name-BWTT7ltv.js +117 -0
- package/dist/component/{use-element-state-class-name-B1r_nXW1.js → use-element-state-class-name-CUZuhFvZ.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-B-FhrcyQ.js → use-hoverable-input-class-name-ugX8-g4E.js} +6 -6
- package/dist/component/use-is-forced-open-dropdown-DUZMvWpk.js +48 -0
- package/dist/component/{use-service-options-base-CTA_43F3.js → use-service-options-base-hqO9Ev38.js} +6 -6
- package/dist/component/use-text-input-class-name-wp9dzpEy.js +6 -0
- package/dist/form.d.ts +5 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-BnlAOn12.js +0 -290
- package/dist/component/dext-radio-group-rac-Czr5yY3K.js +0 -18
- package/dist/component/text-input-headless-B0jcwDev.js +0 -44
- package/dist/component/use-dropdown-option-class-name-OD8brKoy.js +0 -115
- package/dist/component/use-dropdown-trigger-class-name-BrkmG0ad.js +0 -40
- package/dist/component/use-text-input-class-name-BXuk3TK7.js +0 -6
package/dist/component/{email-input-field-rac-CbwcB33o.js → email-input-field-rac-CunXRyc5.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import u, { createContext as z, useContext as Z, createElement as
|
|
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 {
|
|
5
|
+
import { bl as fe, by as ge, bj as ve, d as ye, bo as Ee, bs as de, bm as be, ao as Se, S as Oe, a0 as he, H as Ie, v as Ne, a9 as Ae } from "./form-DHAKwnLt.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
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { T as U } from "./text-input-headless-
|
|
14
|
-
import { E as
|
|
15
|
-
import { s as
|
|
16
|
-
import { u as
|
|
9
|
+
import Fe from "@babel/runtime/helpers/defineProperty";
|
|
10
|
+
import ke from "html-parse-stringify";
|
|
11
|
+
import Te from "@babel/runtime/helpers/classCallCheck";
|
|
12
|
+
import xe from "@babel/runtime/helpers/createClass";
|
|
13
|
+
import { T as U } from "./text-input-headless-DcZRRXCp.js";
|
|
14
|
+
import { E as je } from "./error-icon-hZxQ6DEy.js";
|
|
15
|
+
import { s as H } from "./field-rac.module-DfEb7pBp.js";
|
|
16
|
+
import { u as De } from "./use-text-input-class-name-wp9dzpEy.js";
|
|
17
17
|
var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Le = {
|
|
18
18
|
"&": "&",
|
|
19
19
|
"&": "&",
|
|
@@ -48,15 +48,15 @@ var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
48
48
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
49
49
|
useSuspense: !0,
|
|
50
50
|
unescape: Pe
|
|
51
|
-
}, we,
|
|
52
|
-
function
|
|
51
|
+
}, we, He = z();
|
|
52
|
+
function Re() {
|
|
53
53
|
return _e;
|
|
54
54
|
}
|
|
55
55
|
(function() {
|
|
56
56
|
function e() {
|
|
57
|
-
|
|
57
|
+
Te(this, e), this.usedNamespaces = {};
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return xe(e, [{
|
|
60
60
|
key: "addUsedNamespaces",
|
|
61
61
|
value: function(a) {
|
|
62
62
|
var o = this;
|
|
@@ -102,19 +102,19 @@ function p(e) {
|
|
|
102
102
|
for (var t = 1; t < arguments.length; t++) {
|
|
103
103
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
104
104
|
t % 2 ? Q(Object(a), !0).forEach(function(o) {
|
|
105
|
-
|
|
105
|
+
Fe(e, o, a[o]);
|
|
106
106
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Q(Object(a)).forEach(function(o) {
|
|
107
107
|
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(a, o));
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
return e;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Y(e, t) {
|
|
113
113
|
if (!e) return !1;
|
|
114
114
|
var a = e.props ? e.props.children : e.children;
|
|
115
115
|
return t ? a.length > 0 : !!a;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function G(e) {
|
|
118
118
|
return e ? e.props ? e.props.children : e.children : [];
|
|
119
119
|
}
|
|
120
120
|
function qe(e) {
|
|
@@ -125,7 +125,7 @@ function qe(e) {
|
|
|
125
125
|
function M(e) {
|
|
126
126
|
return Array.isArray(e) ? e : [e];
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Ye(e, t) {
|
|
129
129
|
var a = p({}, t);
|
|
130
130
|
return a.props = Object.assign(e.props, t.props), a;
|
|
131
131
|
}
|
|
@@ -146,13 +146,13 @@ function te(e, t) {
|
|
|
146
146
|
else if (d && v === 1 && typeof b == "string")
|
|
147
147
|
a += "<".concat(r.type, ">").concat(b, "</").concat(r.type, ">");
|
|
148
148
|
else {
|
|
149
|
-
var
|
|
150
|
-
a += "<".concat(g, ">").concat(
|
|
149
|
+
var T = te(b, t);
|
|
150
|
+
a += "<".concat(g, ">").concat(T, "</").concat(g, ">");
|
|
151
151
|
}
|
|
152
152
|
} else if (r === null)
|
|
153
153
|
K("Trans: the passed in value is invalid - seems you passed in a null child.");
|
|
154
154
|
else if (L(r) === "object") {
|
|
155
|
-
var O = r.format,
|
|
155
|
+
var O = r.format, F = ee(r, Ue), A = Object.keys(F);
|
|
156
156
|
if (A.length === 1) {
|
|
157
157
|
var S = O ? "".concat(A[0], ", ").concat(O) : A[0];
|
|
158
158
|
a += "{{".concat(S, "}}");
|
|
@@ -162,7 +162,7 @@ function te(e, t) {
|
|
|
162
162
|
K("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.", r);
|
|
163
163
|
}), a;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Ge(e, t, a, o, c, r) {
|
|
166
166
|
if (t === "") return [];
|
|
167
167
|
var g = o.transKeepBasicHtmlNodesFor || [], v = t && new RegExp(g.join("|")).test(t);
|
|
168
168
|
if (!e && !v) return [t];
|
|
@@ -170,13 +170,13 @@ function Ye(e, t, a, o, c, r) {
|
|
|
170
170
|
function b(y) {
|
|
171
171
|
var h = M(y);
|
|
172
172
|
h.forEach(function(s) {
|
|
173
|
-
typeof s != "string" && (
|
|
173
|
+
typeof s != "string" && (Y(s) ? b(G(s)) : L(s) === "object" && !B(s) && Object.assign(d, s));
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
b(e);
|
|
177
|
-
var
|
|
178
|
-
function
|
|
179
|
-
var i =
|
|
177
|
+
var T = ke.parse("<0>".concat(t, "</0>")), O = p(p({}, d), c);
|
|
178
|
+
function F(y, h, s) {
|
|
179
|
+
var i = G(y), I = S(i, h.children, s);
|
|
180
180
|
return qe(i) && I.length === 0 ? i : I;
|
|
181
181
|
}
|
|
182
182
|
function A(y, h, s, i, I) {
|
|
@@ -187,18 +187,18 @@ function Ye(e, t, a, o, c, r) {
|
|
|
187
187
|
function S(y, h, s) {
|
|
188
188
|
var i = M(y), I = M(h);
|
|
189
189
|
return I.reduce(function(l, n, E) {
|
|
190
|
-
var
|
|
190
|
+
var k = n.children && n.children[0] && n.children[0].content && a.services.interpolator.interpolate(n.children[0].content, O, a.language);
|
|
191
191
|
if (n.type === "tag") {
|
|
192
192
|
var N = i[parseInt(n.name, 10)];
|
|
193
193
|
!N && s.length === 1 && s[0][n.name] && (N = s[0][n.name]), N || (N = {});
|
|
194
|
-
var m = Object.keys(n.attrs).length !== 0 ?
|
|
194
|
+
var m = Object.keys(n.attrs).length !== 0 ? Ye({
|
|
195
195
|
props: n.attrs
|
|
196
|
-
}, N) : N,
|
|
196
|
+
}, 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
197
|
if (typeof m == "string") {
|
|
198
198
|
var q = a.services.interpolator.interpolate(m, O, a.language);
|
|
199
199
|
l.push(q);
|
|
200
|
-
} else if (
|
|
201
|
-
var ne =
|
|
200
|
+
} else if (Y(m) || V) {
|
|
201
|
+
var ne = F(m, n, s);
|
|
202
202
|
A(m, ne, l, E);
|
|
203
203
|
} else if (P) {
|
|
204
204
|
var oe = S(i, n.children, s);
|
|
@@ -207,16 +207,16 @@ function Ye(e, t, a, o, c, r) {
|
|
|
207
207
|
}), oe));
|
|
208
208
|
} else if (Number.isNaN(parseFloat(n.name)))
|
|
209
209
|
if (_) {
|
|
210
|
-
var re =
|
|
210
|
+
var re = F(m, n, s);
|
|
211
211
|
A(m, re, l, E, n.voidElement);
|
|
212
212
|
} else if (o.transSupportBasicHtmlNodes && g.indexOf(n.name) > -1)
|
|
213
213
|
if (n.voidElement)
|
|
214
|
-
l.push(
|
|
214
|
+
l.push(R(n.name, {
|
|
215
215
|
key: "".concat(n.name, "-").concat(E)
|
|
216
216
|
}));
|
|
217
217
|
else {
|
|
218
218
|
var se = S(i, n.children, s);
|
|
219
|
-
l.push(
|
|
219
|
+
l.push(R(n.name, {
|
|
220
220
|
key: "".concat(n.name, "-").concat(E)
|
|
221
221
|
}, se));
|
|
222
222
|
}
|
|
@@ -226,51 +226,51 @@ function Ye(e, t, a, o, c, r) {
|
|
|
226
226
|
var ce = S(i, n.children, s);
|
|
227
227
|
l.push("<".concat(n.name, ">").concat(ce, "</").concat(n.name, ">"));
|
|
228
228
|
}
|
|
229
|
-
else if (L(m) === "object" && !
|
|
230
|
-
var $ = n.children[0] ?
|
|
229
|
+
else if (L(m) === "object" && !x) {
|
|
230
|
+
var $ = n.children[0] ? k : null;
|
|
231
231
|
$ && l.push($);
|
|
232
|
-
} else n.children.length === 1 &&
|
|
232
|
+
} else n.children.length === 1 && k ? l.push(w(m, p(p({}, m.props), {}, {
|
|
233
233
|
key: E
|
|
234
|
-
}),
|
|
234
|
+
}), k)) : l.push(w(m, p(p({}, m.props), {}, {
|
|
235
235
|
key: E
|
|
236
236
|
})));
|
|
237
237
|
} else if (n.type === "text") {
|
|
238
238
|
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);
|
|
239
|
-
W ? l.push(
|
|
239
|
+
W ? l.push(R(W, {
|
|
240
240
|
key: "".concat(n.name, "-").concat(E)
|
|
241
241
|
}, X)) : l.push(X);
|
|
242
242
|
}
|
|
243
243
|
return l;
|
|
244
244
|
}, []);
|
|
245
245
|
}
|
|
246
|
-
var
|
|
246
|
+
var j = S([{
|
|
247
247
|
dummy: !0,
|
|
248
248
|
children: e || []
|
|
249
|
-
}],
|
|
250
|
-
return
|
|
249
|
+
}], T, M(e || []));
|
|
250
|
+
return G(j[0]);
|
|
251
251
|
}
|
|
252
252
|
function $e(e) {
|
|
253
|
-
var t = e.children, a = e.count, o = e.parent, c = e.i18nKey, r = e.context, g = e.tOptions, v = g === void 0 ? {} : g, d = e.values, b = e.defaults,
|
|
253
|
+
var t = e.children, a = e.count, o = e.parent, c = e.i18nKey, r = e.context, g = e.tOptions, v = g === void 0 ? {} : g, d = e.values, b = e.defaults, T = e.components, O = e.ns, F = e.i18n, A = e.t, S = e.shouldUnescape, j = ee(e, Ve), y = Z(He) || {}, h = y.i18n, s = y.defaultNS, i = F || h || Ke();
|
|
254
254
|
if (!i)
|
|
255
255
|
return Be("You will need to pass in an i18next instance by using i18nextReactModule"), t;
|
|
256
256
|
var I = A || i.t.bind(i) || function(q) {
|
|
257
257
|
return q;
|
|
258
258
|
};
|
|
259
259
|
r && (v.context = r);
|
|
260
|
-
var l = p(p({},
|
|
260
|
+
var l = p(p({}, Re()), i.options && i.options.react), n = O || I.ns || s || i.options && i.options.defaultNS;
|
|
261
261
|
n = typeof n == "string" ? [n] : n || ["translation"];
|
|
262
|
-
var E = b || te(t, l) || l.transEmptyNodeValue || c,
|
|
262
|
+
var E = b || te(t, l) || l.transEmptyNodeValue || c, k = l.hashTransKey, N = c || (k ? k(E) : E), m = d ? v.interpolation : {
|
|
263
263
|
interpolation: p(p({}, v.interpolation), {}, {
|
|
264
264
|
prefix: "#$?",
|
|
265
265
|
suffix: "?$#"
|
|
266
266
|
})
|
|
267
|
-
},
|
|
267
|
+
}, x = p(p(p(p({}, v), {}, {
|
|
268
268
|
count: a
|
|
269
269
|
}, d), m), {}, {
|
|
270
270
|
defaultValue: E,
|
|
271
271
|
ns: n
|
|
272
|
-
}), V = N ? I(N,
|
|
273
|
-
return _ ?
|
|
272
|
+
}), V = N ? I(N, x) : E, P = Ge(T || t, V, i, l, x, S), _ = o !== void 0 ? o : l.defaultTransParent;
|
|
273
|
+
return _ ? R(_, j, P) : P;
|
|
274
274
|
}
|
|
275
275
|
const We = "email-mistype-suggestion", Xe = "email-mistype-suggestion-link", ae = /* @__PURE__ */ z(void 0);
|
|
276
276
|
function Je() {
|
|
@@ -449,23 +449,25 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
449
449
|
validate: v
|
|
450
450
|
};
|
|
451
451
|
}, f = ({ children: e }) => {
|
|
452
|
-
const { id: t, value: a, onChange: o, disabled: c, readOnly: r, required: g, hasError: v, onBlur: d, onFocus: b, error:
|
|
452
|
+
const { id: t, value: a, onChange: o, disabled: c, readOnly: r, required: g, hasError: v, onBlur: d, onFocus: b, error: T, description: O, FieldLayout: F } = Ee(), { isMistyped: A, suggestedEmail: S, validate: j } = at({
|
|
453
453
|
email: a,
|
|
454
454
|
hasError: v
|
|
455
|
-
}), { setFocusedFieldId: y } = de(), s = A && (!r && !c) && S ? S : void 0, i = be(t,
|
|
455
|
+
}), { setFocusedFieldId: y } = de(), s = A && (!r && !c) && S ? S : void 0, i = be(t, T, O, s), I = () => {
|
|
456
456
|
o(s), y(t);
|
|
457
457
|
}, l = () => {
|
|
458
|
-
|
|
459
|
-
}, n = C(e, f.Label), E = C(e, f.Input),
|
|
458
|
+
j(), d == null || d();
|
|
459
|
+
}, n = C(e, f.Label), E = C(e, f.Input), k = C(e, f.Description), N = C(e, f.Error), m = C(e, f.Suggestion);
|
|
460
460
|
return /* @__PURE__ */ u.createElement(Se.Provider, {
|
|
461
461
|
value: i
|
|
462
462
|
}, /* @__PURE__ */ u.createElement(Qe, {
|
|
463
463
|
activeSuggestion: s,
|
|
464
464
|
applySuggestion: I
|
|
465
|
-
}, /* @__PURE__ */ u.createElement(
|
|
465
|
+
}, /* @__PURE__ */ u.createElement(F, {
|
|
466
466
|
fieldId: t,
|
|
467
467
|
renderLabel: () => n,
|
|
468
468
|
renderInput: () => /* @__PURE__ */ u.createElement(pe, {
|
|
469
|
+
type: "email",
|
|
470
|
+
autoComplete: "email",
|
|
469
471
|
"aria-labelledby": i.labelId,
|
|
470
472
|
value: a ?? "",
|
|
471
473
|
onChange: o,
|
|
@@ -476,7 +478,7 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
476
478
|
onBlur: l,
|
|
477
479
|
onFocus: b
|
|
478
480
|
}, E),
|
|
479
|
-
renderDescription: () => /* @__PURE__ */ u.createElement(u.Fragment, null, N, m,
|
|
481
|
+
renderDescription: () => /* @__PURE__ */ u.createElement(u.Fragment, null, N, m, k)
|
|
480
482
|
})));
|
|
481
483
|
};
|
|
482
484
|
f.Label = U.Label;
|
|
@@ -490,19 +492,19 @@ const nt = "_suggestion_lysve_1", ot = {
|
|
|
490
492
|
content: e,
|
|
491
493
|
locale: t
|
|
492
494
|
}), ht = () => {
|
|
493
|
-
const e =
|
|
495
|
+
const e = De();
|
|
494
496
|
return /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(f.Label, {
|
|
495
|
-
className:
|
|
497
|
+
className: D(Oe, H.label)
|
|
496
498
|
}, /* @__PURE__ */ u.createElement(f.Label.Required, {
|
|
497
|
-
className:
|
|
499
|
+
className: D(he, H.requiredMark)
|
|
498
500
|
})), /* @__PURE__ */ u.createElement(f.Input, {
|
|
499
501
|
className: e
|
|
500
502
|
}), /* @__PURE__ */ u.createElement(f.Error, {
|
|
501
|
-
className:
|
|
502
|
-
}, /* @__PURE__ */ u.createElement(
|
|
503
|
-
className:
|
|
503
|
+
className: D(Ie, H.error)
|
|
504
|
+
}, /* @__PURE__ */ u.createElement(je, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
|
|
505
|
+
className: D(Ne, H.description)
|
|
504
506
|
}, rt), /* @__PURE__ */ u.createElement(f.Suggestion, {
|
|
505
|
-
className:
|
|
507
|
+
className: D(Ae, ot.suggestion)
|
|
506
508
|
}));
|
|
507
509
|
};
|
|
508
510
|
export {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import t, { useState as
|
|
2
|
-
import
|
|
1
|
+
import t, { useState as j, useMemo as h, useCallback as V, useRef as x } from "react";
|
|
2
|
+
import M from "classnames";
|
|
3
3
|
import { NumberField as z, CheckboxField as J, CheckboxButton as Q, Group as W, Input as Y, Button as w } from "react-aria-components";
|
|
4
|
-
import {
|
|
4
|
+
import { bu as q, bv as H, bk as K, bp as P, aM as Z, bo as y, bl as X, bq as U, as as ee, S as te, n as se, s as ne, r as oe } from "./form-DHAKwnLt.js";
|
|
5
5
|
import { f as b, a as L } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { L as re } from "./field-label-headless-
|
|
6
|
+
import { L as re } from "./field-label-headless-BakLOu5E.js";
|
|
7
7
|
import { S as ae } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
8
|
import { u as le } from "./use-invoke-callback-UH73A_J3.js";
|
|
9
|
-
import { C as
|
|
9
|
+
import { C as k } from "./chevron-down-icon-CcpVm6B-.js";
|
|
10
10
|
import { C as ce } from "./checkbox-indicator-module-classes-6173wvuW.js";
|
|
11
11
|
import { s as v } from "./field-rac.module-DfEb7pBp.js";
|
|
12
|
-
import { u as ue } from "./use-element-state-class-name-
|
|
13
|
-
import { u as me } from "./use-text-input-class-name-
|
|
12
|
+
import { u as ue } from "./use-element-state-class-name-CUZuhFvZ.js";
|
|
13
|
+
import { u as me } from "./use-text-input-class-name-wp9dzpEy.js";
|
|
14
14
|
const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = ie, validation: c }) => {
|
|
15
|
-
const [m, i] =
|
|
15
|
+
const [m, i] = j((o == null ? void 0 : o.length) || 0), u = h(() => o ?? [], [
|
|
16
16
|
o
|
|
17
17
|
]), d = q(), g = H(), C = K(), { validateFields: p } = P(), F = c.predefined.objectArrayOptions.maxItems, O = h(() => Z({
|
|
18
18
|
form: {
|
|
@@ -49,7 +49,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
49
49
|
]), D = V((E) => (I, A) => {
|
|
50
50
|
const N = Array.from({
|
|
51
51
|
length: m
|
|
52
|
-
}, (B,
|
|
52
|
+
}, (B, $) => u[$] ?? {});
|
|
53
53
|
N[E] = {
|
|
54
54
|
...N[E],
|
|
55
55
|
[I]: A
|
|
@@ -119,8 +119,8 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
119
119
|
isReadOnly: o
|
|
120
120
|
}, n, c, l);
|
|
121
121
|
}, ge = ({ className: e }) => {
|
|
122
|
-
const { id: s } = y(), { inputId: a, ariaDescribedBy: o } = X(), n =
|
|
123
|
-
return
|
|
122
|
+
const { id: s } = y(), { inputId: a, ariaDescribedBy: o } = X(), n = x(null);
|
|
123
|
+
return U(() => {
|
|
124
124
|
var l;
|
|
125
125
|
(l = n.current) == null || l.focus();
|
|
126
126
|
}, s), /* @__PURE__ */ t.createElement(Y, {
|
|
@@ -137,8 +137,8 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
137
137
|
slot: "increment",
|
|
138
138
|
className: s
|
|
139
139
|
}, e), S = ({ children: e, className: s, ...a }) => {
|
|
140
|
-
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = y(), { inputId: g, ariaDescribedBy: C } = X(), p =
|
|
141
|
-
|
|
140
|
+
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = y(), { inputId: g, ariaDescribedBy: C } = X(), p = x(null);
|
|
141
|
+
U(() => {
|
|
142
142
|
var G;
|
|
143
143
|
(G = p.current) == null || G.focus();
|
|
144
144
|
}, l);
|
|
@@ -239,21 +239,21 @@ const Ne = "_container_p2psq_1", _e = "_countGroup_p2psq_8", Le = "_increment_p2
|
|
|
239
239
|
return /* @__PURE__ */ t.createElement(r, {
|
|
240
240
|
className: R.container
|
|
241
241
|
}, /* @__PURE__ */ t.createElement(r.Label, {
|
|
242
|
-
className:
|
|
242
|
+
className: M(te, v.label)
|
|
243
243
|
}), /* @__PURE__ */ t.createElement(r.GuestCount, null, /* @__PURE__ */ t.createElement(r.GuestCount.Control, {
|
|
244
244
|
className: e
|
|
245
245
|
}, /* @__PURE__ */ t.createElement(r.GuestCount.Input, {
|
|
246
246
|
className: v.innerInput
|
|
247
247
|
}), /* @__PURE__ */ t.createElement(r.GuestCount.Increment, {
|
|
248
248
|
className: R.increment
|
|
249
|
-
}, /* @__PURE__ */ t.createElement(
|
|
249
|
+
}, /* @__PURE__ */ t.createElement(k, {
|
|
250
250
|
style: {
|
|
251
251
|
transform: "rotate(180deg)"
|
|
252
252
|
}
|
|
253
253
|
})), /* @__PURE__ */ t.createElement(r.GuestCount.Decrement, {
|
|
254
254
|
className: R.decrement
|
|
255
|
-
}, /* @__PURE__ */ t.createElement(
|
|
256
|
-
className:
|
|
255
|
+
}, /* @__PURE__ */ t.createElement(k, null)))), /* @__PURE__ */ t.createElement(r.GuestToggle, {
|
|
256
|
+
className: M(se, v.checkbox)
|
|
257
257
|
}, /* @__PURE__ */ t.createElement(r.GuestToggle.Input, {
|
|
258
258
|
className: s
|
|
259
259
|
}), /* @__PURE__ */ t.createElement(r.GuestToggle.Label, {
|
|
@@ -1,12 +1,12 @@
|
|
|
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 n, R as c } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s as n, R as c } from "./radio-button-module-classes-BdWjkBlX.js";
|
|
5
5
|
import { E as i } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as o } from "./field-rac.module-DfEb7pBp.js";
|
|
7
|
-
import {
|
|
7
|
+
import { S as E, a0 as p, X as R, Y as O, H as _, v as L, Z as D } from "./form-DHAKwnLt.js";
|
|
8
8
|
import { o as I } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u as S } from "./use-element-state-class-name-
|
|
9
|
+
import { u as S } from "./use-element-state-class-name-CUZuhFvZ.js";
|
|
10
10
|
const e = ({ children: r, className: l }) => /* @__PURE__ */ t.createElement(a, {
|
|
11
11
|
className: l
|
|
12
12
|
}, r);
|
|
@@ -15,10 +15,10 @@ e.Options = a.Options;
|
|
|
15
15
|
e.Option = a.Option;
|
|
16
16
|
e.Description = a.Description;
|
|
17
17
|
e.Error = a.Error;
|
|
18
|
-
const
|
|
18
|
+
const N = ({ content: r, locale: l }) => /* @__PURE__ */ t.createElement(m, {
|
|
19
19
|
content: r,
|
|
20
20
|
locale: l
|
|
21
|
-
}),
|
|
21
|
+
}), u = () => {
|
|
22
22
|
const r = S({
|
|
23
23
|
globalClasses: D,
|
|
24
24
|
moduleClasses: c
|
|
@@ -41,8 +41,8 @@ const u = ({ content: r, locale: l }) => /* @__PURE__ */ t.createElement(m, {
|
|
|
41
41
|
className: s(_, o.error)
|
|
42
42
|
}, /* @__PURE__ */ t.createElement(i, null), /* @__PURE__ */ t.createElement(e.Error.Text, null)), /* @__PURE__ */ t.createElement(e.Description, {
|
|
43
43
|
className: s(L, o.description)
|
|
44
|
-
},
|
|
45
|
-
},
|
|
44
|
+
}, N));
|
|
45
|
+
}, U = () => /* @__PURE__ */ t.createElement(u, null);
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
U as EventsRsvpRAC
|
|
48
48
|
};
|
package/dist/component/{field-error-headless-ClPQ03Jc.js → field-error-headless-E8WjFr_n.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { bo as c, bl as i, bg as f, aZ as x, a_ as b } from "./form-DHAKwnLt.js";
|
|
3
3
|
const H = ({ 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", {
|
|
@@ -10,12 +10,12 @@ const H = ({ className: r, children: e }) => {
|
|
|
10
10
|
content: s,
|
|
11
11
|
locale: n
|
|
12
12
|
})) : null;
|
|
13
|
-
}, l = /* @__PURE__ */ m(void 0), h = l.Provider,
|
|
13
|
+
}, l = /* @__PURE__ */ m(void 0), h = l.Provider, v = ({ className: r }) => {
|
|
14
14
|
const e = M(l);
|
|
15
15
|
return /* @__PURE__ */ t.createElement("span", {
|
|
16
16
|
className: r
|
|
17
17
|
}, e ?? "");
|
|
18
|
-
},
|
|
18
|
+
}, D = ({ className: r, children: e, ...s }) => {
|
|
19
19
|
const { hasError: o, errorMessage: a } = s, { target: n, hasError: E, errorMessage: d } = c(), { errorId: g } = i(), u = o ?? E, p = a ?? d;
|
|
20
20
|
return u ? /* @__PURE__ */ t.createElement(h, {
|
|
21
21
|
value: p
|
|
@@ -25,10 +25,10 @@ const H = ({ className: r, children: e }) => {
|
|
|
25
25
|
className: r
|
|
26
26
|
}, e)) : null;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
D.Text = v;
|
|
29
29
|
export {
|
|
30
30
|
H as D,
|
|
31
|
-
|
|
31
|
+
D as E,
|
|
32
32
|
h as a,
|
|
33
|
-
|
|
33
|
+
v as b
|
|
34
34
|
};
|
package/dist/component/{field-label-headless-DhN8Lkuq.js → field-label-headless-BakLOu5E.js}
RENAMED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bo as m, aF as d, aG as p, bl as D, by as B } from "./form-DHAKwnLt.js";
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
4
4
|
import { sdk as g } from "@wix/image-kit";
|
|
5
|
-
function
|
|
5
|
+
function N({ id: e, width: t, height: n }, a, r, o = "fill") {
|
|
6
6
|
return (o === "fit" ? g.getScaleToFitImageURL : g.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;
|
|
10
10
|
})({});
|
|
11
|
-
const
|
|
11
|
+
const S = {
|
|
12
12
|
visibility: "hidden",
|
|
13
13
|
display: "block",
|
|
14
14
|
height: 0,
|
|
15
15
|
margin: 0,
|
|
16
16
|
padding: 0
|
|
17
|
-
},
|
|
18
|
-
const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label:
|
|
17
|
+
}, U = "", i = ({ children: e, className: t, ...n }) => {
|
|
18
|
+
const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: T, required: R = !1, hideLabel: F = !1, requiredIndicatorType: q = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media: y, mediaSettings: s } = m(), { labelId: A, inputId: P } = D(), _ = a, b = R && !r ? L(e, i.Required) : null, c = y ? L(e, i.Image) : null, E = (s == null ? void 0 : s.imagePosition) ?? u.TOP, h = q === d.ASTERISK && O === p.BEFORE_FIELD_TITLE, f = (o ?? T) || U, I = /* @__PURE__ */ l.createElement(_, {
|
|
19
19
|
id: A,
|
|
20
20
|
htmlFor: a === "label" ? P : void 0,
|
|
21
21
|
className: t,
|
|
22
|
-
style: F ?
|
|
23
|
-
}, h ? /* @__PURE__ */ l.createElement(l.Fragment, null,
|
|
24
|
-
return c ? /* @__PURE__ */ l.createElement("div", null,
|
|
25
|
-
},
|
|
26
|
-
const { t } =
|
|
22
|
+
style: F ? S : void 0
|
|
23
|
+
}, h ? /* @__PURE__ */ l.createElement(l.Fragment, null, b, f) : /* @__PURE__ */ l.createElement(l.Fragment, null, f, b));
|
|
24
|
+
return c ? /* @__PURE__ */ l.createElement("div", null, E === u.TOP ? c : null, I, E === u.BOTTOM ? c : null) : I;
|
|
25
|
+
}, v = ({ className: e }) => {
|
|
26
|
+
const { t } = B(), { requiredIndicatorType: n } = m();
|
|
27
27
|
return n === d.TEXT ? /* @__PURE__ */ l.createElement("span", {
|
|
28
28
|
className: e,
|
|
29
29
|
"aria-hidden": "true"
|
|
@@ -31,11 +31,11 @@ const N = {
|
|
|
31
31
|
className: e,
|
|
32
32
|
"aria-hidden": "true"
|
|
33
33
|
}, "*");
|
|
34
|
-
},
|
|
34
|
+
}, x = ({ className: e }) => {
|
|
35
35
|
const { media: t, mediaSettings: n } = m();
|
|
36
36
|
if (!t)
|
|
37
37
|
return null;
|
|
38
|
-
const a =
|
|
38
|
+
const a = N(t, t.width, t.height);
|
|
39
39
|
return a ? /* @__PURE__ */ l.createElement("img", {
|
|
40
40
|
className: e,
|
|
41
41
|
src: a,
|
|
@@ -44,9 +44,9 @@ const N = {
|
|
|
44
44
|
"data-alignment": n == null ? void 0 : n.imageAlignment
|
|
45
45
|
}) : null;
|
|
46
46
|
};
|
|
47
|
-
i.Required =
|
|
48
|
-
i.Image =
|
|
47
|
+
i.Required = v;
|
|
48
|
+
i.Image = x;
|
|
49
49
|
export {
|
|
50
50
|
i as L,
|
|
51
|
-
|
|
51
|
+
N as g
|
|
52
52
|
};
|