@levo-so/studio 0.1.115 → 0.2.2
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/{BillingStep-DjNmSVkY.js → BillingStep-mq3o5Hrf.js} +1 -1
- package/Button-DIDhszPV.js +505 -0
- package/{CollectionField-DrJuHNsg.js → CollectionField-CD6ok1A3.js} +29 -77
- package/{DateTimeWidget-CzBq92zC.js → DateTimeWidget-DHUmirf1.js} +9 -9
- package/{EntryCard-C2KA5HMX.js → EntryCard-DiMic9hv.js} +4 -4
- package/{KBChatWidget-CPrg_etS.js → KBChatWidget-hquzCtvm.js} +388 -360
- package/{LoginCard-S_2jls6v.js → LoginCard-Cs9X8LC8.js} +3 -3
- package/{LoginForm-DeYsk4kd.js → LoginForm-CLUpD3qG.js} +1 -1
- package/{LoginModal-BbDfB4S9.js → LoginModal-D9jhZlJr.js} +4 -4
- package/{MessageCard-x6jPClGi.js → MessageCard-CJltLT2a.js} +2 -2
- package/{MessageFooter-CHuPnL_D.js → MessageFooter-CrhrI-su.js} +2 -2
- package/{ModalManager-DQVNPEuG.js → ModalManager-7Nhr8gTs.js} +1 -1
- package/{PendingApprovalCard-C06B_Tg-.js → PendingApprovalCard-wW8Ko-w8.js} +3 -3
- package/{PhoneWidget-DdX8_-2v.js → PhoneWidget-BQEfbyV4.js} +5 -5
- package/{PopupRenderer-Bncp54gB-DysCmUdR.js → PopupRenderer-Bncp54gB-CQloeJYR.js} +15 -16
- package/{ProfileCard-DGanb4BY.js → ProfileCard-BhnTmQaE.js} +9 -8
- package/RichTextWidget-CStx2PMn.js +748 -0
- package/{RteThemeProvider-LFGzAYi1.js → RteThemeProvider-DxYOzcck.js} +1 -1
- package/Spinner-HCqR1eGW.js +7 -0
- package/{StripePaymentModal-BsYNQ4MB.js → StripePaymentModal-Cw-AlxTS.js} +1 -1
- package/{VerifyButton-6BIXAEGp.js → VerifyButton-kdxRhJWI.js} +1 -1
- package/{bookingCard-CUv7WgqT.js → bookingCard-BSRCH57N.js} +74 -73
- package/cn-BL52QQS4.js +6 -0
- package/{dialog-LRLdr3kq.js → dialog-RrTP-MGm.js} +1 -1
- package/{dist-D-y51gmU.js → dist-D3lGqLBP.js} +1106 -1264
- package/index.d.ts +0 -2
- package/index.js +1969 -1519
- package/kbChat-g2bupQqp.js +163 -0
- package/{nodeAlignment-BC_Uferw.js → nodeAlignment-DS9_DLGB.js} +31 -23
- package/package.json +6 -9
- package/pillChrome-Cx8qlbsn.js +16 -0
- package/studio.css +1 -1
- package/{useLogin-B2HHZxTi.js → useLogin-BhysESLW.js} +1 -1
- package/Button-Uwxgkriw.js +0 -1657
- package/RichTextWidget-BfZ3sCcx.js +0 -113
- package/Toolbar-6IXR9qAh.js +0 -645
- package/collection.d.ts +0 -500
- package/collection.js +0 -30
- package/inlineRteTheme-abXxag3B.js +0 -9
- package/kbChat-DCrdcXir.js +0 -166
- package/pillChrome-CQoJfFk3.js +0 -16
- package/utils-NDllPDUz.js +0 -5
- /package/{AuthProvider-C6bvedwF.js → AuthProvider-CFQqiIf1.js} +0 -0
- /package/{Beams-DboMUgCv.js → Beams-DVEhileN.js} +0 -0
- /package/{CollectionInput-CG-Pu_51.js → CollectionInput-DyNbxIZ8.js} +0 -0
- /package/{Dots-a8xSboDv.js → Dots-vp0H1Md3.js} +0 -0
- /package/{Gradient-NacpoDCM.js → Gradient-_5G8Qm5s.js} +0 -0
- /package/{Grid-BJQvxnks.js → Grid-D694XUrO.js} +0 -0
- /package/{Popover-C_IQMM8H.js → Popover-V2O1gz6N.js} +0 -0
- /package/{Tooltip-DreKXbTO.js → Tooltip-DTnCNEcE.js} +0 -0
- /package/{Waves-DUuT_IFr.js → Waves-DeNoq6Bo.js} +0 -0
- /package/{card-D5fPArfa.js → card-Cb4m0p4i.js} +0 -0
|
@@ -4,51 +4,51 @@ import { i as t, n, o as r, t as i } from "./Dialog-IrII0ugb.js";
|
|
|
4
4
|
import { i as a, r as o, t as s } from "./Button-lUfKisu8.js";
|
|
5
5
|
import { i as c, n as l, r as u, t as d } from "./inlineCollectionTheme-D2w17LHX.js";
|
|
6
6
|
import { t as f } from "./theme.cssm-2YTdd8Yh.js";
|
|
7
|
-
import {
|
|
8
|
-
import { n as _, r as v, t as y } from "./VerifyButton-
|
|
9
|
-
import { n as b, r as x, t as S } from "./Tooltip-
|
|
10
|
-
import { i as C, n as w, r as T, t as E } from "./CollectionInput-
|
|
7
|
+
import { a as p, i as m, r as h, t as g } from "./CollectionField-CD6ok1A3.js";
|
|
8
|
+
import { n as _, r as v, t as y } from "./VerifyButton-kdxRhJWI.js";
|
|
9
|
+
import { n as b, r as x, t as S } from "./Tooltip-DTnCNEcE.js";
|
|
10
|
+
import { i as C, n as w, r as T, t as E } from "./CollectionInput-DyNbxIZ8.js";
|
|
11
11
|
import { c as D } from "react/compiler-runtime";
|
|
12
|
-
import { errorHandler as O, errorToast as k,
|
|
13
|
-
import * as
|
|
14
|
-
import
|
|
15
|
-
import { Fragment as
|
|
16
|
-
import
|
|
17
|
-
import { createRuntimeFn as
|
|
18
|
-
import { IconArrowLeft as
|
|
19
|
-
import { FieldInterfaces as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { FormProvider as
|
|
25
|
-
import { Tabs as
|
|
26
|
-
import { Checkbox as
|
|
27
|
-
import { NumericFormat as
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import { Radio as
|
|
31
|
-
import { RadioGroup as
|
|
32
|
-
import { Switch as
|
|
33
|
-
import { useDropzone as
|
|
34
|
-
import { useDebouncedCallback as
|
|
12
|
+
import { errorHandler as O, errorToast as k, successToast as A, useLevo as j } from "@levo-so/react";
|
|
13
|
+
import * as M from "react";
|
|
14
|
+
import N, { Suspense as P, createContext as F, lazy as I, useCallback as L, useEffect as R, useMemo as z, useRef as B, useState as V } from "react";
|
|
15
|
+
import { Fragment as H, jsx as U, jsxs as W } from "react/jsx-runtime";
|
|
16
|
+
import G from "clsx";
|
|
17
|
+
import { createRuntimeFn as K } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
18
|
+
import { IconArrowLeft as q, IconCheck as J, IconChevronLeft as Y, IconChevronRight as X, IconChevronsLeft as Z, IconChevronsRight as ee, IconFile as te, IconHash as ne, IconMail as re, IconPencil as ie, IconPlus as ae, IconTrash as oe, IconUpload as se, IconX as ce } from "@tabler/icons-react";
|
|
19
|
+
import { FieldInterfaces as le, LevoError as ue, MediaKindList as de, defaultByKinds as fe, getLevoError as pe, mediaMimetypeByKind as me, operatorsByKind as he } from "@levo-so/core";
|
|
20
|
+
import ge from "dayjs";
|
|
21
|
+
import "@theinternetfolks/snowflake";
|
|
22
|
+
import "react-phone-number-input";
|
|
23
|
+
import "yup";
|
|
24
|
+
import { FormProvider as _e, get as ve, useController as Q, useFieldArray as ye, useForm as be, useFormContext as xe, useWatch as Se } from "react-hook-form";
|
|
25
|
+
import { Tabs as Ce } from "@base-ui/react/tabs";
|
|
26
|
+
import { Checkbox as we } from "@base-ui/react/checkbox";
|
|
27
|
+
import { NumericFormat as Te } from "react-number-format";
|
|
28
|
+
import Ee from "react-select";
|
|
29
|
+
import De from "react-select/async";
|
|
30
|
+
import { Radio as Oe } from "@base-ui/react/radio";
|
|
31
|
+
import { RadioGroup as ke } from "@base-ui/react/radio-group";
|
|
32
|
+
import { Switch as Ae } from "@base-ui/react/switch";
|
|
33
|
+
import { useDropzone as je } from "react-dropzone";
|
|
34
|
+
import { useDebouncedCallback as Me } from "use-debounce";
|
|
35
35
|
u(c.radius);
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region ../../libraries/levocn/dist/utils/deep-merge.js
|
|
38
|
-
function
|
|
38
|
+
function Ne(e) {
|
|
39
39
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
if (!
|
|
41
|
+
function Pe(e, t) {
|
|
42
|
+
if (!Ne(e) || !Ne(t)) return t;
|
|
43
43
|
let n = { ...e };
|
|
44
44
|
return Object.keys(t).forEach((r) => {
|
|
45
45
|
let i = r, a = e[i], o = t[i];
|
|
46
|
-
|
|
46
|
+
Ne(a) && Ne(o) ? n[i] = Pe(a, o) : n[i] = o;
|
|
47
47
|
}), n;
|
|
48
48
|
}
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region ../../libraries/levocn/dist/theme/utils/defineTheme.js
|
|
51
|
-
var
|
|
51
|
+
var Fe = ((e) => (t) => t ? Pe(e, t) : e)({
|
|
52
52
|
form: {
|
|
53
53
|
maxWidth: "100%",
|
|
54
54
|
gap: "1.5rem",
|
|
@@ -62,11 +62,11 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
62
62
|
borderRadius: "6px"
|
|
63
63
|
},
|
|
64
64
|
checkbox: { labelFontSize: "0.875rem" }
|
|
65
|
-
}),
|
|
65
|
+
}), Ie = "_1g8bxz40", Le = (e) => e.combinator !== void 0, Re = (e) => e == null ? !0 : typeof e == "string" ? e === "" : Array.isArray(e) ? e.length === 0 : !1, ze = (e, t) => {
|
|
66
66
|
if (t == null) return t;
|
|
67
67
|
if (e === "date") {
|
|
68
68
|
if (t instanceof Date || typeof t == "string" || typeof t == "number") {
|
|
69
|
-
let e =
|
|
69
|
+
let e = ge(t);
|
|
70
70
|
if (e.isValid()) return e.valueOf();
|
|
71
71
|
}
|
|
72
72
|
return NaN;
|
|
@@ -80,42 +80,42 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
80
80
|
return NaN;
|
|
81
81
|
}
|
|
82
82
|
return t;
|
|
83
|
-
},
|
|
84
|
-
if (
|
|
83
|
+
}, Be = (e, t) => e === "collection" && t && typeof t == "object" && !Array.isArray(t) && "_id" in t ? t._id : t, Ve = (e, t, n) => ze(e, Be(e, t)) === ze(e, Be(e, n)), He = (e, t) => e ? he[e]?.includes(t) ?? !1 : !1, Ue = (e, t) => {
|
|
84
|
+
if (Le(e)) {
|
|
85
85
|
e.conditions.forEach((e) => {
|
|
86
|
-
|
|
86
|
+
Ue(e, t);
|
|
87
87
|
});
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
90
|
t.add(e.source);
|
|
91
|
-
},
|
|
91
|
+
}, We = (e, t) => {
|
|
92
92
|
if (!t?.length) return {};
|
|
93
93
|
let n = /* @__PURE__ */ new Set();
|
|
94
|
-
for (let e of t)
|
|
94
|
+
for (let e of t) Ue(e.when, n);
|
|
95
95
|
let r = {};
|
|
96
96
|
for (let t of e.sections) for (let e of t.fields) n.has(e.key) && (r[e.key] = e.kind);
|
|
97
97
|
return r;
|
|
98
|
-
},
|
|
99
|
-
if (
|
|
98
|
+
}, Ge = (e, t) => Le(e) ? e.conditions.some((e) => Ge(e, t)) : t[e.source] === void 0, Ke = (e, t) => {
|
|
99
|
+
if (Le(e)) {
|
|
100
100
|
for (let n of e.conditions) {
|
|
101
|
-
let e =
|
|
101
|
+
let e = Ke(n, t);
|
|
102
102
|
if (e) return e;
|
|
103
103
|
}
|
|
104
104
|
return null;
|
|
105
105
|
}
|
|
106
|
-
return
|
|
107
|
-
},
|
|
106
|
+
return He(t[e.source], e.operator) ? null : e;
|
|
107
|
+
}, qe = (e, t, n) => {
|
|
108
108
|
let r = n[e.source], i = t[e.source];
|
|
109
109
|
switch (e.operator) {
|
|
110
|
-
case "is_empty": return
|
|
111
|
-
case "is_not_empty": return !
|
|
112
|
-
case "equals": return
|
|
113
|
-
case "not": return !
|
|
110
|
+
case "is_empty": return Re(i);
|
|
111
|
+
case "is_not_empty": return !Re(i);
|
|
112
|
+
case "equals": return Ve(r, i, e.value);
|
|
113
|
+
case "not": return !Ve(r, i, e.value);
|
|
114
114
|
case "gt":
|
|
115
115
|
case "gte":
|
|
116
116
|
case "lt":
|
|
117
117
|
case "lte": {
|
|
118
|
-
let t =
|
|
118
|
+
let t = ze(r, i), n = ze(r, e.value);
|
|
119
119
|
if (typeof t != "number" || typeof n != "number" || Number.isNaN(t) || Number.isNaN(n)) return !1;
|
|
120
120
|
switch (e.operator) {
|
|
121
121
|
case "gt": return t > n;
|
|
@@ -129,7 +129,7 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
129
129
|
case "not_contains":
|
|
130
130
|
if (r === "array-string" || r === "array-number" || r === "collection") {
|
|
131
131
|
if (!Array.isArray(i)) return e.operator === "not_contains";
|
|
132
|
-
let t = i.some((t) =>
|
|
132
|
+
let t = i.some((t) => Ve(r, t, e.value));
|
|
133
133
|
return e.operator === "contains" ? t : !t;
|
|
134
134
|
}
|
|
135
135
|
if (typeof i == "string" && typeof e.value == "string") {
|
|
@@ -150,174 +150,94 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
150
150
|
default: return !1;
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
},
|
|
153
|
+
}, Je = (e, t, n) => Le(e) ? e.conditions.length === 0 ? !1 : e.combinator === "AND" ? e.conditions.every((e) => Je(e, t, n)) : e.conditions.some((e) => Je(e, t, n)) : qe(e, t, n), Ye = ({ logic: e, formValues: t, sourceKinds: n }) => {
|
|
154
154
|
if (!e?.length) return { visible: !0 };
|
|
155
155
|
let r = !e.some((e) => e.action === "show");
|
|
156
|
-
for (let { action: r, when: i } of e) if (r && !
|
|
156
|
+
for (let { action: r, when: i } of e) if (r && !Ge(i, n) && !Ke(i, n) && Je(i, t, n)) return { visible: r === "show" };
|
|
157
157
|
return { visible: r };
|
|
158
|
-
},
|
|
158
|
+
}, Xe = (e, t, n) => {
|
|
159
159
|
if (t.hidden) return !0;
|
|
160
160
|
if (!t.logic?.length || !e) return !1;
|
|
161
|
-
let r =
|
|
162
|
-
return !
|
|
161
|
+
let r = We(e, t.logic);
|
|
162
|
+
return !Ye({
|
|
163
163
|
logic: t.logic,
|
|
164
164
|
formValues: n,
|
|
165
165
|
sourceKinds: r
|
|
166
166
|
}).visible;
|
|
167
|
-
},
|
|
168
|
-
if (
|
|
169
|
-
let r =
|
|
170
|
-
return
|
|
167
|
+
}, Ze = (e, t) => e?.sections?.[0]?.id === t.id, Qe = (e, t, n) => {
|
|
168
|
+
if (Ze(e, t) || !t.logic?.length || !e) return !0;
|
|
169
|
+
let r = We(e, t.logic);
|
|
170
|
+
return Ye({
|
|
171
171
|
logic: t.logic,
|
|
172
172
|
formValues: n,
|
|
173
173
|
sourceKinds: r
|
|
174
174
|
}).visible;
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}, st = (e) => e ? xe(e) : !1, ct = (e, t) => {
|
|
183
|
-
let n = [];
|
|
184
|
-
for (let [r, i] of Object.entries(t)) {
|
|
185
|
-
let t = e?.[r], a = Se.string();
|
|
186
|
-
for (let e of i) if (typeof e == "string") switch (e) {
|
|
187
|
-
case "required":
|
|
188
|
-
a = a.required(`The ${r} field is required`);
|
|
189
|
-
break;
|
|
190
|
-
case "email":
|
|
191
|
-
a = a.email("The email address is not valid");
|
|
192
|
-
break;
|
|
193
|
-
case "phone_number":
|
|
194
|
-
a = a.test("phone", "The phone number has incorrect format", (e) => e ? st(e) : !0);
|
|
195
|
-
break;
|
|
196
|
-
case "url":
|
|
197
|
-
a = a.url("The URL is not valid");
|
|
198
|
-
break;
|
|
199
|
-
case "data_uri":
|
|
200
|
-
a = a.test("data_uri", "The field does not have a valid file", (e) => typeof e == "string" ? e.startsWith("data:") && e.includes(",") : !1);
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
else if (typeof e == "object" && e) {
|
|
204
|
-
let t = e;
|
|
205
|
-
"max" in e && t.max?.[0] && (a = a.max(Number(t.max[0]))), "min" in e && t.min?.[0] && (a = a.min(Number(t.min[0])));
|
|
206
|
-
}
|
|
207
|
-
try {
|
|
208
|
-
a.validateSync(t);
|
|
209
|
-
} catch (e) {
|
|
210
|
-
e instanceof Se.ValidationError && n.push({
|
|
211
|
-
message: e.message,
|
|
212
|
-
name: r
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return n.length > 0 ? {
|
|
217
|
-
status: !1,
|
|
218
|
-
errors: n
|
|
219
|
-
} : { status: !0 };
|
|
220
|
-
}, lt = (e, t) => {
|
|
221
|
-
let n = {};
|
|
222
|
-
for (let t of e.sections) for (let e of t.fields) {
|
|
223
|
-
let t = [];
|
|
224
|
-
switch (e.required && t.push("required"), e.max !== void 0 && e.max !== null && t.push({ max: [e.max] }), e.min !== void 0 && e.min !== null && t.push({ min: [e.min] }), e.field_interface) {
|
|
225
|
-
case Q.EmailWidget:
|
|
226
|
-
t.push("email");
|
|
227
|
-
break;
|
|
228
|
-
case Q.PhoneWidget:
|
|
229
|
-
t.push("phone_number");
|
|
230
|
-
break;
|
|
231
|
-
case Q.URLWidget:
|
|
232
|
-
t.push("url");
|
|
233
|
-
break;
|
|
234
|
-
default: break;
|
|
235
|
-
}
|
|
236
|
-
n[e.key] = t;
|
|
175
|
+
}, $e = (e) => Array.isArray(e) ? e.map((e) => {
|
|
176
|
+
if (e && typeof e == "object") {
|
|
177
|
+
let t = e.value ?? e.label ?? "";
|
|
178
|
+
return {
|
|
179
|
+
value: String(t),
|
|
180
|
+
label: String(e.label ?? e.value ?? "")
|
|
181
|
+
};
|
|
237
182
|
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}
|
|
242
|
-
},
|
|
183
|
+
return {
|
|
184
|
+
value: String(e),
|
|
185
|
+
label: String(e)
|
|
186
|
+
};
|
|
187
|
+
}) : [], et = (e) => $e(e).map((e) => e.value), tt = (e) => {
|
|
243
188
|
let t = {};
|
|
244
189
|
for (let n of e) {
|
|
245
190
|
if (n.kind === "collection") {
|
|
246
191
|
let e = n.options?.current_have_many_connected, r = n.options?.connected_have_many_current;
|
|
247
|
-
e && r ? t[n.key] =
|
|
248
|
-
} else t[n.key] =
|
|
249
|
-
n?.field_interface ===
|
|
192
|
+
e && r ? t[n.key] = fe.collection.m2m : t[n.key] = fe.collection.m2o;
|
|
193
|
+
} else t[n.key] = fe?.[n?.kind];
|
|
194
|
+
n?.field_interface === le.RecordWidget && n?.fields?.length && (t[n.key] = tt(n.fields));
|
|
250
195
|
}
|
|
251
196
|
return t;
|
|
252
|
-
},
|
|
197
|
+
}, nt = (e) => {
|
|
253
198
|
if (!e?.sections) return {};
|
|
254
199
|
let t = {};
|
|
255
200
|
for (let n of e.sections) n?.fields && n?.fields?.length > 0 && (t = {
|
|
256
201
|
...t,
|
|
257
|
-
...
|
|
202
|
+
...tt(n.fields)
|
|
258
203
|
});
|
|
259
204
|
return t;
|
|
260
|
-
},
|
|
205
|
+
}, rt = (e) => e === void 0 ? null : e, it = (e, t) => {
|
|
261
206
|
if (!e?.sections) return {};
|
|
262
207
|
let n = {};
|
|
263
208
|
for (let r of e.sections) {
|
|
264
|
-
let e =
|
|
209
|
+
let e = tt(r.fields ?? []);
|
|
265
210
|
for (let i of r.fields) {
|
|
266
|
-
let r =
|
|
267
|
-
Array.isArray(r) && r?.length > 0 && Array.isArray(i?.values) && i?.values?.length > 0 && !i?.options?.custom_input
|
|
211
|
+
let r = rt(t?.[i?.key]);
|
|
212
|
+
if (Array.isArray(r) && r?.length > 0 && Array.isArray(i?.values) && i?.values?.length > 0 && !i?.options?.custom_input) {
|
|
213
|
+
let e = et(i?.values);
|
|
214
|
+
r = r?.filter((t) => e.includes(t));
|
|
215
|
+
}
|
|
216
|
+
n[i.key] = r ?? rt(i?.default_value) ?? e[i.key];
|
|
268
217
|
}
|
|
269
218
|
}
|
|
270
219
|
return n;
|
|
271
|
-
},
|
|
272
|
-
let n = { ...e }, r = null;
|
|
273
|
-
if ((n.field_interface === Q.ArrayWidget && t !== Q.ArrayWidget || n.field_interface === Q.RecordWidget && t !== Q.RecordWidget) && (n.fields = []), (t !== Q.MultiDropdownWidget || t !== Q.DropdownWidget || t !== Q.RadioWidget || t !== Q.CheckboxWidget) && n.field_interface !== Q.MultiDropdownWidget && n.field_interface !== Q.DropdownWidget && n.field_interface !== Q.RadioWidget && n.field_interface !== Q.CheckboxWidget && n.values?.length !== 0 && (n.values = []), (t === Q.MultiDropdownWidget && n.field_interface !== Q.MultiDropdownWidget || t === Q.DropdownWidget && n.field_interface !== Q.DropdownWidget || t === Q.RadioWidget && n.field_interface !== Q.RadioWidget || t === Q.CheckboxWidget && n.field_interface !== Q.CheckboxWidget) && (n.values = [""], r = `${n.id}-option-0`), [Q.RecordWidget, Q.ArrayWidget].includes(t) && (r = `field-${be.generate()}`, n.kind = t === Q.RecordWidget ? "record" : "group", n.fields = [...n?.fields || [], {
|
|
274
|
-
id: r,
|
|
275
|
-
key: "title",
|
|
276
|
-
label: "Title",
|
|
277
|
-
helper_text: "",
|
|
278
|
-
kind: "string",
|
|
279
|
-
field_interface: Q.TextWidget,
|
|
280
|
-
default_value: "",
|
|
281
|
-
options: {},
|
|
282
|
-
fields: [],
|
|
283
|
-
hidden: !1,
|
|
284
|
-
readonly: !1,
|
|
285
|
-
required: !1,
|
|
286
|
-
unique: !1,
|
|
287
|
-
min: null,
|
|
288
|
-
max: null,
|
|
289
|
-
formats: he[t] || [],
|
|
290
|
-
values: [],
|
|
291
|
-
editable: !0
|
|
292
|
-
}]), n.kind = _e[t] || "string", !n.default_value) if (n.kind === "collection") {
|
|
293
|
-
let e = n.options?.current_have_many_connected, t = n.options?.connected_have_many_current;
|
|
294
|
-
e && t ? n.default_value = me.collection.m2m : n.default_value = me.collection.m2o;
|
|
295
|
-
} else n.default_value = me[n.kind] || null;
|
|
296
|
-
return t !== Q.CollectionWidget && de.includes(t) && (n.field_interface = t), {
|
|
297
|
-
field: n,
|
|
298
|
-
fieldFocused: r
|
|
299
|
-
};
|
|
300
|
-
}, ht = (e, t, n) => {
|
|
220
|
+
}, at = (e, t, n) => {
|
|
301
221
|
let r = n !== void 0;
|
|
302
222
|
if (!t) return {};
|
|
303
223
|
let i = (t?.sections ?? []).flatMap((n) => {
|
|
304
|
-
let i = r ? !
|
|
224
|
+
let i = r ? !Qe(t, n, e) : !1;
|
|
305
225
|
return (n?.fields ?? []).map((e) => ({
|
|
306
226
|
field: e,
|
|
307
227
|
sectionHidden: i
|
|
308
228
|
}));
|
|
309
229
|
}), a = {};
|
|
310
230
|
for (let { field: o, sectionHidden: s } of i) {
|
|
311
|
-
let i = r && (s ||
|
|
231
|
+
let i = r && (s || Xe(t, o, e)), c = i ? n[o.key] : e?.[o.key];
|
|
312
232
|
o.field_interface === "CollectionWidget" ? c && typeof c == "object" ? a[o.key] = Array.isArray(c) ? c.map((e) => e && typeof e == "object" ? e._id : e).filter(Boolean) : c._id : i && (a[o.key] = c) : a[o.key] = c;
|
|
313
233
|
}
|
|
314
234
|
return a;
|
|
315
|
-
},
|
|
235
|
+
}, ot = (e) => e.every((e) => {
|
|
316
236
|
let { field_interface: t = "", key: n = "", hidden: r } = e;
|
|
317
237
|
return !t || !n || r;
|
|
318
|
-
}),
|
|
238
|
+
}), st = (e, t) => {
|
|
319
239
|
let n = D(12), r;
|
|
320
|
-
n[0] !== t || n[1] !== e ? (r = e ?
|
|
240
|
+
n[0] !== t || n[1] !== e ? (r = e ? We(e, t) : {}, n[0] = t, n[1] = e, n[2] = r) : r = n[2];
|
|
321
241
|
let i = r, a;
|
|
322
242
|
n[3] === i ? a = n[4] : (a = Object.keys(i), n[3] = i, n[4] = a);
|
|
323
243
|
let o = a, s;
|
|
@@ -325,7 +245,7 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
325
245
|
let n = e ?? [], r = {};
|
|
326
246
|
return o.forEach((e, t) => {
|
|
327
247
|
r[e] = n[t];
|
|
328
|
-
}),
|
|
248
|
+
}), Ye({
|
|
329
249
|
logic: t,
|
|
330
250
|
formValues: r,
|
|
331
251
|
sourceKinds: i
|
|
@@ -336,14 +256,14 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
336
256
|
name: o,
|
|
337
257
|
exact: !0,
|
|
338
258
|
compute: s
|
|
339
|
-
}, n[9] = o, n[10] = s, n[11] = c) : c = n[11],
|
|
340
|
-
},
|
|
341
|
-
let n = D(3), { visible: r } =
|
|
259
|
+
}, n[9] = o, n[10] = s, n[11] = c) : c = n[11], Se(c);
|
|
260
|
+
}, ct = (e, t) => {
|
|
261
|
+
let n = D(3), { visible: r } = st(e, t.logic), i = t.hidden || !r, a;
|
|
342
262
|
return n[0] !== t || n[1] !== i ? (a = {
|
|
343
263
|
...t,
|
|
344
264
|
hidden: i
|
|
345
265
|
}, n[0] = t, n[1] = i, n[2] = a) : a = n[2], a;
|
|
346
|
-
},
|
|
266
|
+
}, lt = (e, t) => st(e, e?.sections?.[0]?.id === t.id ? void 0 : t.logic), ut = "_1kzhxrs0", dt = "_1kzhxrs1", ft = "_1kzhxrs2", pt = "_1kzhxrs3", mt = "_1kzhxrs4", ht = "_1kzhxrs5", gt = "_1kzhxrs6", _t = "_1kzhxrs7", vt = "_1kzhxrs8", yt = "_1kzhxrs9", bt = "_1kzhxrsa", xt = "_1kzhxrsb", St = "ktjhuv0", Ct = K({
|
|
347
267
|
defaultClassName: "ktjhuv1",
|
|
348
268
|
variantClassNames: { variant: {
|
|
349
269
|
default: "ktjhuv2",
|
|
@@ -351,105 +271,105 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
351
271
|
} },
|
|
352
272
|
defaultVariants: { variant: "default" },
|
|
353
273
|
compoundVariants: []
|
|
354
|
-
}),
|
|
274
|
+
}), wt = "ktjhuv4", Tt = "ktjhuv5", Et = "ktjhuv6", Dt = (e) => {
|
|
355
275
|
let t = D(10), n, r, i;
|
|
356
276
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({className: n, orientation: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
357
277
|
let a = i === void 0 ? "horizontal" : i, o;
|
|
358
|
-
t[4] === n ? o = t[5] : (o =
|
|
278
|
+
t[4] === n ? o = t[5] : (o = G(St, n), t[4] = n, t[5] = o);
|
|
359
279
|
let s;
|
|
360
|
-
return t[6] !== a || t[7] !== r || t[8] !== o ? (s = /* @__PURE__ */
|
|
280
|
+
return t[6] !== a || t[7] !== r || t[8] !== o ? (s = /* @__PURE__ */ U(Ce.Root, {
|
|
361
281
|
"data-slot": "tabs",
|
|
362
282
|
"data-orientation": a,
|
|
363
283
|
className: o,
|
|
364
284
|
...r
|
|
365
285
|
}), t[6] = a, t[7] = r, t[8] = o, t[9] = s) : s = t[9], s;
|
|
366
|
-
},
|
|
286
|
+
}, Ot = (e) => {
|
|
367
287
|
let t = D(11), n, r, i;
|
|
368
288
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({className: n, variant: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
369
289
|
let a = i === void 0 ? "default" : i, o;
|
|
370
|
-
t[4] !== n || t[5] !== a ? (o =
|
|
290
|
+
t[4] !== n || t[5] !== a ? (o = G(Ct({ variant: a }), n), t[4] = n, t[5] = a, t[6] = o) : o = t[6];
|
|
371
291
|
let s;
|
|
372
|
-
return t[7] !== r || t[8] !== o || t[9] !== a ? (s = /* @__PURE__ */
|
|
292
|
+
return t[7] !== r || t[8] !== o || t[9] !== a ? (s = /* @__PURE__ */ U(Ce.List, {
|
|
373
293
|
"data-slot": "tabs-list",
|
|
374
294
|
"data-variant": a,
|
|
375
295
|
className: o,
|
|
376
296
|
...r
|
|
377
297
|
}), t[7] = r, t[8] = o, t[9] = a, t[10] = s) : s = t[10], s;
|
|
378
|
-
},
|
|
298
|
+
}, kt = (e) => {
|
|
379
299
|
let t = D(8), n, r;
|
|
380
300
|
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
381
301
|
let i;
|
|
382
|
-
t[3] === n ? i = t[4] : (i =
|
|
302
|
+
t[3] === n ? i = t[4] : (i = G(wt, Tt, n), t[3] = n, t[4] = i);
|
|
383
303
|
let a;
|
|
384
|
-
return t[5] !== r || t[6] !== i ? (a = /* @__PURE__ */
|
|
304
|
+
return t[5] !== r || t[6] !== i ? (a = /* @__PURE__ */ U(Ce.Tab, {
|
|
385
305
|
"data-slot": "tabs-trigger",
|
|
386
306
|
className: i,
|
|
387
307
|
...r
|
|
388
308
|
}), t[5] = r, t[6] = i, t[7] = a) : a = t[7], a;
|
|
389
|
-
},
|
|
309
|
+
}, At = (e) => {
|
|
390
310
|
let t = D(8), n, r;
|
|
391
311
|
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
392
312
|
let i;
|
|
393
|
-
t[3] === n ? i = t[4] : (i =
|
|
313
|
+
t[3] === n ? i = t[4] : (i = G(Et, n), t[3] = n, t[4] = i);
|
|
394
314
|
let a;
|
|
395
|
-
return t[5] !== r || t[6] !== i ? (a = /* @__PURE__ */
|
|
315
|
+
return t[5] !== r || t[6] !== i ? (a = /* @__PURE__ */ U(Ce.Panel, {
|
|
396
316
|
"data-slot": "tabs-content",
|
|
397
317
|
className: i,
|
|
398
318
|
...r
|
|
399
319
|
}), t[5] = r, t[6] = i, t[7] = a) : a = t[7], a;
|
|
400
|
-
},
|
|
320
|
+
}, jt = (e) => {
|
|
401
321
|
let t = D(36), n, r, i;
|
|
402
322
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({field: n, schema: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
403
|
-
let { key: a, label: o, field_interface: c, fields: l } = n, u = a === void 0 ? "" : a, d = o === void 0 ? "" : o, f = c === void 0 ? "" : c,
|
|
404
|
-
t[4] === l ?
|
|
405
|
-
let
|
|
406
|
-
t[6] === n ? b = t[7] : (b =
|
|
323
|
+
let { key: a, label: o, field_interface: c, fields: l } = n, u = a === void 0 ? "" : a, d = o === void 0 ? "" : o, f = c === void 0 ? "" : c, p;
|
|
324
|
+
t[4] === l ? p = t[5] : (p = l === void 0 ? [] : l, t[4] = l, t[5] = p);
|
|
325
|
+
let g = p, [_, v] = V("0"), { formState: y } = xe(), b;
|
|
326
|
+
t[6] === n ? b = t[7] : (b = h(n), t[6] = n, t[7] = b);
|
|
407
327
|
let x;
|
|
408
328
|
t[8] !== u || t[9] !== b ? (x = {
|
|
409
329
|
name: u,
|
|
410
330
|
rules: b
|
|
411
331
|
}, t[8] = u, t[9] = b, t[10] = x) : x = t[10];
|
|
412
|
-
let S =
|
|
332
|
+
let S = ye(x), C, w;
|
|
413
333
|
t[11] === S ? (C = t[12], w = t[13]) : ({fields: w, ...C} = S, t[11] = S, t[12] = C, t[13] = w);
|
|
414
334
|
let T;
|
|
415
|
-
t[14] !== y.errors || t[15] !== u ? (T =
|
|
335
|
+
t[14] !== y.errors || t[15] !== u ? (T = ve(y.errors, u)?.root?.message, t[14] = y.errors, t[15] = u, t[16] = T) : T = t[16];
|
|
416
336
|
let E = T;
|
|
417
337
|
if (!f || !u) return null;
|
|
418
338
|
let O = n?.required, k;
|
|
419
|
-
t[17] !== d || t[18] !== O ? (k = /* @__PURE__ */
|
|
339
|
+
t[17] !== d || t[18] !== O ? (k = /* @__PURE__ */ U(m, {
|
|
420
340
|
label: d,
|
|
421
341
|
isRequired: O
|
|
422
342
|
}), t[17] = d, t[18] = O, t[19] = k) : k = t[19];
|
|
423
343
|
let A;
|
|
424
|
-
t[20] !== C || t[21] !== n.id || t[22] !== n.key || t[23] !== w || t[24] !==
|
|
344
|
+
t[20] !== C || t[21] !== n.id || t[22] !== n.key || t[23] !== w || t[24] !== g || t[25] !== u || t[26] !== r || t[27] !== i || t[28] !== _ ? (A = w && Array.isArray(w) ? /* @__PURE__ */ W(Dt, {
|
|
425
345
|
value: _,
|
|
426
346
|
onValueChange: v,
|
|
427
|
-
className:
|
|
428
|
-
children: [/* @__PURE__ */
|
|
429
|
-
className:
|
|
430
|
-
children: [w.length ? /* @__PURE__ */
|
|
431
|
-
className:
|
|
432
|
-
children: w?.map((e, t) => /* @__PURE__ */
|
|
347
|
+
className: dt,
|
|
348
|
+
children: [/* @__PURE__ */ W("div", {
|
|
349
|
+
className: ft,
|
|
350
|
+
children: [w.length ? /* @__PURE__ */ U(Ot, {
|
|
351
|
+
className: pt,
|
|
352
|
+
children: w?.map((e, t) => /* @__PURE__ */ U(kt, {
|
|
433
353
|
id: `${n?.key}-${t}`,
|
|
434
354
|
value: t.toString(),
|
|
435
|
-
className:
|
|
355
|
+
className: mt,
|
|
436
356
|
children: t + 1
|
|
437
357
|
}, `array-widget-tab-${n?.id}-${t}`))
|
|
438
|
-
}) : null, /* @__PURE__ */
|
|
358
|
+
}) : null, /* @__PURE__ */ W(s, {
|
|
439
359
|
variant: "ghost",
|
|
440
360
|
size: "xs",
|
|
441
|
-
className:
|
|
361
|
+
className: ht,
|
|
442
362
|
onClick: () => {
|
|
443
|
-
C.append(
|
|
363
|
+
C.append(tt(g)), v((w?.length ?? 0).toString());
|
|
444
364
|
},
|
|
445
|
-
children: [/* @__PURE__ */
|
|
365
|
+
children: [/* @__PURE__ */ U(ae, { size: 14 }), "Add"]
|
|
446
366
|
})]
|
|
447
|
-
}), w?.map((e, t) => /* @__PURE__ */
|
|
448
|
-
className:
|
|
367
|
+
}), w?.map((e, t) => /* @__PURE__ */ W(At, {
|
|
368
|
+
className: gt,
|
|
449
369
|
value: t.toString(),
|
|
450
|
-
children: [/* @__PURE__ */
|
|
451
|
-
className:
|
|
452
|
-
children:
|
|
370
|
+
children: [/* @__PURE__ */ U("div", {
|
|
371
|
+
className: _t,
|
|
372
|
+
children: g.map((e) => /* @__PURE__ */ U(zr, {
|
|
453
373
|
field: {
|
|
454
374
|
...e,
|
|
455
375
|
key: `${u}.${t}.${e?.key}`
|
|
@@ -457,111 +377,111 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
457
377
|
schema: i ?? null,
|
|
458
378
|
...r
|
|
459
379
|
}, `common-fields-${e?.id}`))
|
|
460
|
-
}), /* @__PURE__ */
|
|
461
|
-
className:
|
|
380
|
+
}), /* @__PURE__ */ W("div", {
|
|
381
|
+
className: vt,
|
|
462
382
|
children: [
|
|
463
|
-
/* @__PURE__ */
|
|
383
|
+
/* @__PURE__ */ U(s, {
|
|
464
384
|
onClick: () => {
|
|
465
385
|
v((t - 1).toString()), C.move(t, t - 1);
|
|
466
386
|
},
|
|
467
387
|
disabled: t === 0,
|
|
468
388
|
size: "icon",
|
|
469
|
-
className:
|
|
470
|
-
children: /* @__PURE__ */
|
|
389
|
+
className: yt,
|
|
390
|
+
children: /* @__PURE__ */ U(Y, { size: 20 })
|
|
471
391
|
}),
|
|
472
|
-
/* @__PURE__ */
|
|
473
|
-
className:
|
|
392
|
+
/* @__PURE__ */ U(s, {
|
|
393
|
+
className: bt,
|
|
474
394
|
variant: "link",
|
|
475
395
|
onClick: () => {
|
|
476
396
|
v(Math.max(0, t - 1).toString()), C.remove(t);
|
|
477
397
|
},
|
|
478
398
|
children: "Remove Item"
|
|
479
399
|
}),
|
|
480
|
-
/* @__PURE__ */
|
|
481
|
-
className:
|
|
400
|
+
/* @__PURE__ */ U(s, {
|
|
401
|
+
className: yt,
|
|
482
402
|
onClick: () => {
|
|
483
403
|
v((t + 1).toString()), C.move(t, t + 1);
|
|
484
404
|
},
|
|
485
405
|
disabled: t >= w.length - 1,
|
|
486
406
|
size: "icon",
|
|
487
|
-
children: /* @__PURE__ */
|
|
407
|
+
children: /* @__PURE__ */ U(X, { size: 20 })
|
|
488
408
|
})
|
|
489
409
|
]
|
|
490
410
|
})]
|
|
491
411
|
}, `array-widget-tab-content-${n?.id}-${t}`))]
|
|
492
|
-
}) : /* @__PURE__ */
|
|
412
|
+
}) : /* @__PURE__ */ W(s, {
|
|
493
413
|
variant: "ghost",
|
|
494
414
|
size: "xs",
|
|
495
415
|
onClick: () => {
|
|
496
|
-
C.append(
|
|
416
|
+
C.append(tt(g)), v("0");
|
|
497
417
|
},
|
|
498
|
-
children: [/* @__PURE__ */
|
|
499
|
-
}), t[20] = C, t[21] = n.id, t[22] = n.key, t[23] = w, t[24] =
|
|
418
|
+
children: [/* @__PURE__ */ U(ae, { size: 14 }), "Add"]
|
|
419
|
+
}), t[20] = C, t[21] = n.id, t[22] = n.key, t[23] = w, t[24] = g, t[25] = u, t[26] = r, t[27] = i, t[28] = _, t[29] = A) : A = t[29];
|
|
500
420
|
let j;
|
|
501
|
-
t[30] === E ? j = t[31] : (j = !!E && /* @__PURE__ */
|
|
421
|
+
t[30] === E ? j = t[31] : (j = !!E && /* @__PURE__ */ U("div", {
|
|
502
422
|
className: "_1kzhxrsc",
|
|
503
|
-
children: /* @__PURE__ */
|
|
423
|
+
children: /* @__PURE__ */ U("p", {
|
|
504
424
|
className: "_1ompjs13",
|
|
505
425
|
children: E
|
|
506
426
|
})
|
|
507
427
|
}), t[30] = E, t[31] = j);
|
|
508
428
|
let M;
|
|
509
|
-
return t[32] !== k || t[33] !== A || t[34] !== j ? (M = /* @__PURE__ */
|
|
510
|
-
className:
|
|
429
|
+
return t[32] !== k || t[33] !== A || t[34] !== j ? (M = /* @__PURE__ */ W("div", {
|
|
430
|
+
className: ut,
|
|
511
431
|
children: [
|
|
512
432
|
k,
|
|
513
433
|
A,
|
|
514
434
|
j
|
|
515
435
|
]
|
|
516
436
|
}), t[32] = k, t[33] = A, t[34] = j, t[35] = M) : M = t[35], M;
|
|
517
|
-
},
|
|
518
|
-
container: () =>
|
|
519
|
-
control: ({ isFocused: e, isMulti: t, isDisabled: n }) =>
|
|
437
|
+
}, Mt = "_8vx4f60 _1oiks600 _1ri7vba0", Nt = "_8vx4f61", Pt = "_8vx4f62", Ft = "_8vx4f63", It = "_8vx4f66", Lt = "_8vx4f67", Rt = "_8vx4f68", zt = "_8vx4f69", Bt = "_8vx4f6a", Vt = "_8vx4f6b", Ht = "_8vx4f6c", Ut = "_8vx4f6d _6o7s4x0", Wt = "_8vx4f6e", Gt = "_8vx4f6f", Kt = "_8vx4f6g", qt = "_8vx4f6h", Jt = "_8vx4f6k", Yt = {
|
|
438
|
+
container: () => Nt,
|
|
439
|
+
control: ({ isFocused: e, isMulti: t, isDisabled: n }) => G(Mt, t ? Ft : Pt, e && "_8vx4f64", n && "_8vx4f65"),
|
|
520
440
|
input: () => "",
|
|
521
|
-
valueContainer: () =>
|
|
522
|
-
loadingMessage: () =>
|
|
441
|
+
valueContainer: () => It,
|
|
442
|
+
loadingMessage: () => Rt,
|
|
523
443
|
singleValue: () => "",
|
|
524
|
-
multiValue: () =>
|
|
525
|
-
multiValueRemove: () =>
|
|
526
|
-
indicatorsContainer: () =>
|
|
527
|
-
clearIndicator: () =>
|
|
444
|
+
multiValue: () => zt,
|
|
445
|
+
multiValueRemove: () => Bt,
|
|
446
|
+
indicatorsContainer: () => Lt,
|
|
447
|
+
clearIndicator: () => Vt,
|
|
528
448
|
indicatorSeparator: () => "",
|
|
529
|
-
dropdownIndicator: () =>
|
|
530
|
-
menu: () =>
|
|
531
|
-
groupHeading: () =>
|
|
532
|
-
placeholder: () =>
|
|
533
|
-
option: ({ isSelected: e, isFocused: t }) =>
|
|
534
|
-
noOptionsMessage: () =>
|
|
535
|
-
menuPortal: () =>
|
|
536
|
-
},
|
|
449
|
+
dropdownIndicator: () => Ht,
|
|
450
|
+
menu: () => Ut,
|
|
451
|
+
groupHeading: () => Gt,
|
|
452
|
+
placeholder: () => Kt,
|
|
453
|
+
option: ({ isSelected: e, isFocused: t }) => G(qt, t && "_8vx4f6i", e && "_8vx4f6j"),
|
|
454
|
+
noOptionsMessage: () => Jt,
|
|
455
|
+
menuPortal: () => Wt
|
|
456
|
+
}, Xt = N.lazy(() => import("react-select-async-paginate").then((e) => ({ default: e.AsyncPaginate }))), Zt = (e) => {
|
|
537
457
|
let { portalRef: t } = o();
|
|
538
|
-
return /* @__PURE__ */
|
|
458
|
+
return /* @__PURE__ */ U(Xt, {
|
|
539
459
|
isClearable: !0,
|
|
540
460
|
menuPlacement: "auto",
|
|
541
461
|
isSearchable: !0,
|
|
542
462
|
unstyled: !0,
|
|
543
|
-
classNames:
|
|
463
|
+
classNames: Yt,
|
|
544
464
|
styles: { menuPortal: (e) => ({
|
|
545
465
|
...e,
|
|
546
466
|
zIndex: 99999999
|
|
547
467
|
}) },
|
|
548
468
|
menuPosition: "fixed",
|
|
549
469
|
menuPortalTarget: t?.current,
|
|
550
|
-
loadingMessage: () => /* @__PURE__ */
|
|
470
|
+
loadingMessage: () => /* @__PURE__ */ U(v, { size: 16 }),
|
|
551
471
|
...e
|
|
552
472
|
});
|
|
553
|
-
},
|
|
554
|
-
let { collection: t } =
|
|
473
|
+
}, Qt = (e) => e ? e.replace(/[-_]/g, " ").replace(/\b\w/g, (e) => e.toUpperCase()) : "", $t = "_1k5k6yj0", en = ({ field: e }) => {
|
|
474
|
+
let { collection: t } = j(), [n, r] = V(!1), [i, a] = V(!1), [o, c] = V([]), [l, u] = V(1), [d, f] = V(5), [p, m] = V(0), [_, y] = V(0), { key: C = "", label: w = "", helper_text: T = "", readonly: E = !1 } = e, D = C, k = e?.options?.collection_key || "", A = e?.options?.label_field_key || "", { field: { value: M, onChange: N, ref: P }, fieldState: F } = Q({
|
|
555
475
|
name: D,
|
|
556
|
-
rules:
|
|
557
|
-
}), I = !!e?.required, L = F?.error?.message,
|
|
476
|
+
rules: h(e)
|
|
477
|
+
}), I = !!e?.required, L = F?.error?.message, z = async () => {
|
|
558
478
|
r(!0);
|
|
559
479
|
try {
|
|
560
480
|
let e = await t?.getCollectionContentList({
|
|
561
481
|
collection_key: k,
|
|
562
482
|
page: l,
|
|
563
483
|
limit: d,
|
|
564
|
-
where: { _id: { in:
|
|
484
|
+
where: { _id: { in: M } }
|
|
565
485
|
}), n = e?.content?.data ?? [], r = e?.content?.meta?.pages ?? 0;
|
|
566
486
|
m(e?.content?.meta?.total ?? 0), y(r), l > r && u(r), c(n);
|
|
567
487
|
} catch (e) {
|
|
@@ -570,15 +490,15 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
570
490
|
r(!1);
|
|
571
491
|
}
|
|
572
492
|
};
|
|
573
|
-
return
|
|
574
|
-
|
|
493
|
+
return R(() => {
|
|
494
|
+
M?.length > 0 && z();
|
|
575
495
|
}, [
|
|
576
|
-
|
|
496
|
+
M,
|
|
577
497
|
l,
|
|
578
498
|
d
|
|
579
|
-
]), /* @__PURE__ */
|
|
580
|
-
className:
|
|
581
|
-
children: [/* @__PURE__ */
|
|
499
|
+
]), /* @__PURE__ */ W("div", {
|
|
500
|
+
className: $t,
|
|
501
|
+
children: [/* @__PURE__ */ U(g, {
|
|
582
502
|
ref: P,
|
|
583
503
|
error: L,
|
|
584
504
|
helperText: T,
|
|
@@ -586,18 +506,18 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
586
506
|
label: w,
|
|
587
507
|
htmlFor: D,
|
|
588
508
|
isRequired: I,
|
|
589
|
-
children: /* @__PURE__ */
|
|
509
|
+
children: /* @__PURE__ */ U(Zt, {
|
|
590
510
|
id: D,
|
|
591
511
|
value: [],
|
|
592
512
|
onChange: (e) => {
|
|
593
|
-
e?.value?._id && N([...Array.isArray(
|
|
513
|
+
e?.value?._id && N([...Array.isArray(M) ? M : [], e?.value?._id]);
|
|
594
514
|
},
|
|
595
|
-
placeholder: Array.isArray(
|
|
596
|
-
filterOption: (e) => !Array.isArray(
|
|
515
|
+
placeholder: Array.isArray(M) && M?.length > 0 ? "Select more" : "Select",
|
|
516
|
+
filterOption: (e) => !Array.isArray(M) || !M.includes(e?.value?._id),
|
|
597
517
|
loadOptions: async (e, n, { page: r = 1 }) => {
|
|
598
518
|
a(!0);
|
|
599
519
|
try {
|
|
600
|
-
let n = Array.isArray(
|
|
520
|
+
let n = Array.isArray(M) && M.length > 0 ? { _id: { not_in: M } } : void 0, i = (await t?.getCollectionContentList({
|
|
601
521
|
collection_key: k,
|
|
602
522
|
page: r,
|
|
603
523
|
search: e,
|
|
@@ -609,7 +529,7 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
609
529
|
slug: e?.slug,
|
|
610
530
|
[A]: e?.[A]
|
|
611
531
|
},
|
|
612
|
-
label: e?.[A] ? e?.[A] :
|
|
532
|
+
label: e?.[A] ? e?.[A] : Qt(e?.slug ?? "")
|
|
613
533
|
}));
|
|
614
534
|
return {
|
|
615
535
|
options: Array.isArray(a) ? a : [],
|
|
@@ -631,47 +551,47 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
631
551
|
getOptionValue: (e) => e?.value?._id || e?.value?.slug,
|
|
632
552
|
isLoading: i,
|
|
633
553
|
additional: { page: 1 },
|
|
634
|
-
cacheUniqs: [k,
|
|
554
|
+
cacheUniqs: [k, M],
|
|
635
555
|
minMenuHeight: 250
|
|
636
556
|
})
|
|
637
|
-
}), Array.isArray(
|
|
557
|
+
}), Array.isArray(M) && M?.length > 0 && /* @__PURE__ */ W("div", {
|
|
638
558
|
className: "_1k5k6yj1",
|
|
639
559
|
children: [
|
|
640
|
-
/* @__PURE__ */
|
|
560
|
+
/* @__PURE__ */ W("h4", {
|
|
641
561
|
className: "_1k5k6yj2",
|
|
642
|
-
children: [/* @__PURE__ */
|
|
562
|
+
children: [/* @__PURE__ */ U("span", { children: "Selected" }), n && o?.length > 0 && /* @__PURE__ */ U(v, { size: 16 })]
|
|
643
563
|
}),
|
|
644
|
-
/* @__PURE__ */
|
|
564
|
+
/* @__PURE__ */ U("div", {
|
|
645
565
|
className: "_1k5k6yj4",
|
|
646
|
-
children: o.map((e) => /* @__PURE__ */
|
|
566
|
+
children: o.map((e) => /* @__PURE__ */ W("div", {
|
|
647
567
|
className: "_1k5k6yj5",
|
|
648
|
-
children: [/* @__PURE__ */
|
|
568
|
+
children: [/* @__PURE__ */ U("div", {
|
|
649
569
|
className: "_1k5k6yj6",
|
|
650
|
-
children: e?.[A] ||
|
|
651
|
-
}), /* @__PURE__ */
|
|
570
|
+
children: e?.[A] || Qt(e?.slug ?? "")
|
|
571
|
+
}), /* @__PURE__ */ U(s, {
|
|
652
572
|
disabled: n,
|
|
653
573
|
size: "icon-sm",
|
|
654
574
|
variant: "ghost",
|
|
655
575
|
onClick: () => {
|
|
656
|
-
N(
|
|
576
|
+
N(M?.filter((t) => t !== e?._id));
|
|
657
577
|
},
|
|
658
|
-
children: /* @__PURE__ */
|
|
578
|
+
children: /* @__PURE__ */ U(ce, { size: 16 })
|
|
659
579
|
})]
|
|
660
580
|
}, e?._id))
|
|
661
581
|
}),
|
|
662
|
-
n && o?.length === 0 && /* @__PURE__ */
|
|
582
|
+
n && o?.length === 0 && /* @__PURE__ */ U("div", {
|
|
663
583
|
className: "_1k5k6yj3",
|
|
664
|
-
children: /* @__PURE__ */
|
|
584
|
+
children: /* @__PURE__ */ U(v, { size: 24 })
|
|
665
585
|
}),
|
|
666
|
-
|
|
586
|
+
M?.length > 5 && /* @__PURE__ */ W("div", {
|
|
667
587
|
className: "_1k5k6yj7",
|
|
668
588
|
children: [
|
|
669
|
-
/* @__PURE__ */
|
|
589
|
+
/* @__PURE__ */ W("div", {
|
|
670
590
|
className: "_1k5k6yj8",
|
|
671
591
|
children: [
|
|
672
592
|
"Showing",
|
|
673
593
|
" ",
|
|
674
|
-
p ? /* @__PURE__ */
|
|
594
|
+
p ? /* @__PURE__ */ W(H, { children: [
|
|
675
595
|
d * (l - 1) + 1,
|
|
676
596
|
"-",
|
|
677
597
|
Math.min(d * l, p),
|
|
@@ -682,64 +602,64 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
682
602
|
" items"
|
|
683
603
|
]
|
|
684
604
|
}),
|
|
685
|
-
/* @__PURE__ */
|
|
605
|
+
/* @__PURE__ */ W("select", {
|
|
686
606
|
className: "_1k5k6yjb",
|
|
687
607
|
value: d,
|
|
688
608
|
onChange: (e) => {
|
|
689
609
|
u(1), f(Number(e.target.value));
|
|
690
610
|
},
|
|
691
611
|
children: [
|
|
692
|
-
/* @__PURE__ */
|
|
612
|
+
/* @__PURE__ */ U("option", {
|
|
693
613
|
value: 5,
|
|
694
614
|
children: "5"
|
|
695
615
|
}),
|
|
696
|
-
/* @__PURE__ */
|
|
616
|
+
/* @__PURE__ */ U("option", {
|
|
697
617
|
value: 10,
|
|
698
618
|
children: "10"
|
|
699
619
|
}),
|
|
700
|
-
/* @__PURE__ */
|
|
620
|
+
/* @__PURE__ */ U("option", {
|
|
701
621
|
value: 25,
|
|
702
622
|
children: "25"
|
|
703
623
|
}),
|
|
704
|
-
/* @__PURE__ */
|
|
624
|
+
/* @__PURE__ */ U("option", {
|
|
705
625
|
value: 50,
|
|
706
626
|
children: "50"
|
|
707
627
|
})
|
|
708
628
|
]
|
|
709
629
|
}),
|
|
710
|
-
/* @__PURE__ */
|
|
630
|
+
/* @__PURE__ */ U("div", {
|
|
711
631
|
className: "_1k5k6yj9",
|
|
712
|
-
children: /* @__PURE__ */
|
|
632
|
+
children: /* @__PURE__ */ W("div", {
|
|
713
633
|
className: "_1k5k6yja",
|
|
714
634
|
children: [
|
|
715
|
-
/* @__PURE__ */
|
|
635
|
+
/* @__PURE__ */ W(S, { children: [/* @__PURE__ */ U(b, {
|
|
716
636
|
variant: "ghost",
|
|
717
637
|
size: "icon-xs",
|
|
718
638
|
onClick: () => u(1),
|
|
719
639
|
disabled: l === 1,
|
|
720
|
-
children: /* @__PURE__ */
|
|
721
|
-
}), /* @__PURE__ */
|
|
722
|
-
/* @__PURE__ */
|
|
640
|
+
children: /* @__PURE__ */ U(Z, { size: 14 })
|
|
641
|
+
}), /* @__PURE__ */ U(x, { children: "First page" })] }),
|
|
642
|
+
/* @__PURE__ */ W(S, { children: [/* @__PURE__ */ U(b, {
|
|
723
643
|
variant: "ghost",
|
|
724
644
|
size: "icon-xs",
|
|
725
645
|
disabled: l === 1,
|
|
726
646
|
onClick: () => u(l - 1),
|
|
727
|
-
children: /* @__PURE__ */
|
|
728
|
-
}), /* @__PURE__ */
|
|
729
|
-
/* @__PURE__ */
|
|
647
|
+
children: /* @__PURE__ */ U(Y, { size: 14 })
|
|
648
|
+
}), /* @__PURE__ */ U(x, { children: "Previous page" })] }),
|
|
649
|
+
/* @__PURE__ */ W(S, { children: [/* @__PURE__ */ U(b, {
|
|
730
650
|
variant: "ghost",
|
|
731
651
|
size: "icon-xs",
|
|
732
652
|
onClick: () => u(l + 1),
|
|
733
653
|
disabled: l === _,
|
|
734
|
-
children: /* @__PURE__ */
|
|
735
|
-
}), /* @__PURE__ */
|
|
736
|
-
/* @__PURE__ */
|
|
654
|
+
children: /* @__PURE__ */ U(X, { size: 14 })
|
|
655
|
+
}), /* @__PURE__ */ U(x, { children: "Next page" })] }),
|
|
656
|
+
/* @__PURE__ */ W(S, { children: [/* @__PURE__ */ U(b, {
|
|
737
657
|
variant: "ghost",
|
|
738
658
|
size: "icon-xs",
|
|
739
659
|
onClick: () => u(_),
|
|
740
660
|
disabled: l === _,
|
|
741
|
-
children: /* @__PURE__ */
|
|
742
|
-
}), /* @__PURE__ */
|
|
661
|
+
children: /* @__PURE__ */ U(ee, { size: 14 })
|
|
662
|
+
}), /* @__PURE__ */ U(x, { children: "Last page" })] })
|
|
743
663
|
]
|
|
744
664
|
})
|
|
745
665
|
})
|
|
@@ -748,10 +668,10 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
748
668
|
]
|
|
749
669
|
})]
|
|
750
670
|
});
|
|
751
|
-
},
|
|
752
|
-
let { collection: t } =
|
|
671
|
+
}, tn = ({ field: e }) => {
|
|
672
|
+
let { collection: t } = j(), [n, r] = V(!1), { key: i = "", label: a = "", helper_text: o = "", readonly: s = !1 } = e, c = i, l = e?.options?.collection_key || "", u = e?.options?.label_field_key || "", { field: { value: d, onBlur: f, onChange: p, ref: m, disabled: _, ...v }, fieldState: y } = Q({
|
|
753
673
|
name: c,
|
|
754
|
-
rules:
|
|
674
|
+
rules: h(e)
|
|
755
675
|
}), b = !!e?.required, x = y?.error?.message, S = async (e, n, { page: i = 1 }) => {
|
|
756
676
|
r(!0);
|
|
757
677
|
try {
|
|
@@ -761,7 +681,7 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
761
681
|
search: e,
|
|
762
682
|
limit: 10
|
|
763
683
|
}))?.content?.data, r = (n || []).map((e) => {
|
|
764
|
-
let t = e?.[u] ? e?.[u] :
|
|
684
|
+
let t = e?.[u] ? e?.[u] : Qt(e?.slug || "");
|
|
765
685
|
return {
|
|
766
686
|
value: {
|
|
767
687
|
_id: e?._id,
|
|
@@ -786,7 +706,7 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
786
706
|
r(!1);
|
|
787
707
|
}
|
|
788
708
|
};
|
|
789
|
-
return /* @__PURE__ */
|
|
709
|
+
return /* @__PURE__ */ U(g, {
|
|
790
710
|
ref: m,
|
|
791
711
|
error: x,
|
|
792
712
|
helperText: o,
|
|
@@ -794,10 +714,10 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
794
714
|
label: a,
|
|
795
715
|
htmlFor: c,
|
|
796
716
|
isRequired: b,
|
|
797
|
-
children: /* @__PURE__ */
|
|
717
|
+
children: /* @__PURE__ */ U(Zt, {
|
|
798
718
|
id: c,
|
|
799
719
|
value: d ? {
|
|
800
|
-
label: d?.[u] ? d?.[u] : d?.slug ?
|
|
720
|
+
label: d?.[u] ? d?.[u] : d?.slug ? Qt(d?.slug || "") : "",
|
|
801
721
|
value: {
|
|
802
722
|
_id: d?._id,
|
|
803
723
|
slug: d?.slug,
|
|
@@ -820,224 +740,127 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
820
740
|
...v
|
|
821
741
|
})
|
|
822
742
|
});
|
|
823
|
-
},
|
|
743
|
+
}, nn = (e) => {
|
|
824
744
|
let t = D(4), { field: n } = e, { field_interface: r, key: i, options: a } = n, o = a === void 0 ? {} : a;
|
|
825
745
|
if (!r || !i) return null;
|
|
826
746
|
if (!o?.collection_key || !o?.label_field_key) return console.error("[LevoCollection]: Error while rendering collection widget. Collection key of label field key is required."), null;
|
|
827
747
|
if (o?.current_have_many_connected && !o?.connected_have_many_current) return console.error("[LevoCollection]: O2M is not supported"), null;
|
|
828
748
|
if (o?.current_have_many_connected && o?.connected_have_many_current) {
|
|
829
749
|
let n;
|
|
830
|
-
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */
|
|
750
|
+
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ U(en, {
|
|
831
751
|
...e,
|
|
832
752
|
schema: null
|
|
833
753
|
}), t[0] = e, t[1] = n), n;
|
|
834
754
|
}
|
|
835
755
|
let s;
|
|
836
|
-
return t[2] === e ? s = t[3] : (s = /* @__PURE__ */
|
|
756
|
+
return t[2] === e ? s = t[3] : (s = /* @__PURE__ */ U(tn, {
|
|
837
757
|
...e,
|
|
838
758
|
schema: null
|
|
839
759
|
}), t[2] = e, t[3] = s), s;
|
|
840
|
-
}, $ = (e) =>
|
|
760
|
+
}, $ = (e) => N.memo(e), rn = "_1vaa8ub0", an = "_1vaa8ub2", on = "_1vaa8ub3", sn = "_13kepqq0", cn = "_13kepqq1", ln = (e) => {
|
|
841
761
|
let t = D(9), n, r;
|
|
842
762
|
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
843
763
|
let i;
|
|
844
|
-
t[3] === n ? i = t[4] : (i =
|
|
764
|
+
t[3] === n ? i = t[4] : (i = G(sn, n), t[3] = n, t[4] = i);
|
|
845
765
|
let a;
|
|
846
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */
|
|
766
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ U(we.Indicator, {
|
|
847
767
|
"data-slot": "checkbox-indicator",
|
|
848
|
-
className:
|
|
849
|
-
children: /* @__PURE__ */
|
|
768
|
+
className: cn,
|
|
769
|
+
children: /* @__PURE__ */ U(J, {})
|
|
850
770
|
}), t[5] = a) : a = t[5];
|
|
851
771
|
let o;
|
|
852
|
-
return t[6] !== r || t[7] !== i ? (o = /* @__PURE__ */
|
|
772
|
+
return t[6] !== r || t[7] !== i ? (o = /* @__PURE__ */ U(we.Root, {
|
|
853
773
|
"data-slot": "checkbox",
|
|
854
774
|
className: i,
|
|
855
775
|
...r,
|
|
856
776
|
children: a
|
|
857
777
|
}), t[6] = r, t[7] = i, t[8] = o) : o = t[8], o;
|
|
858
|
-
},
|
|
859
|
-
let t
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
let { field: T, fieldState: O } = Te(w), { name: k, onBlur: A, onChange: j, value: M, ref: N, disabled: P } = T, { error: F } = O, I;
|
|
869
|
-
t[7] !== j || t[8] !== M ? (I = (e) => {
|
|
870
|
-
let t = Array.isArray(M || null) ? [...M] : [];
|
|
871
|
-
t.includes(e) ? t = t?.filter((t) => t !== e) : t.push(e), j(t);
|
|
872
|
-
}, t[7] = j, t[8] = M, t[9] = I) : I = t[9];
|
|
873
|
-
let L = I, R = !!S?.custom_input, z;
|
|
874
|
-
t[10] !== R || t[11] !== M || t[12] !== x ? (z = () => {
|
|
875
|
-
if (R) {
|
|
778
|
+
}, un = ({ field: e }) => {
|
|
779
|
+
let [t, n] = V(""), [r, i] = V(!1), { key: a = "", label: o = "", helper_text: s = "", readonly: c = !1, values: l = [], options: u = {} } = e, { field: { name: d, onBlur: f, onChange: m, value: _, ref: v, disabled: y }, fieldState: { error: b } } = Q({
|
|
780
|
+
name: a,
|
|
781
|
+
rules: h(e)
|
|
782
|
+
}), x = (e) => {
|
|
783
|
+
let t = Array.isArray(_ || null) ? [..._] : [];
|
|
784
|
+
t.includes(e) ? t = t?.filter((t) => t !== e) : t.push(e), m(t);
|
|
785
|
+
}, S = !!u?.custom_input, C = z(() => $e(l), [l]), w = z(() => C.map((e) => e.value), [C]);
|
|
786
|
+
return R(() => {
|
|
787
|
+
if (S) {
|
|
876
788
|
let e = !1;
|
|
877
|
-
(
|
|
878
|
-
|
|
879
|
-
}),
|
|
789
|
+
(_ ?? []).forEach((t) => {
|
|
790
|
+
w.includes(t) || (e = !0, n(t));
|
|
791
|
+
}), i(!!e);
|
|
880
792
|
}
|
|
881
|
-
},
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
793
|
+
}, [
|
|
794
|
+
_,
|
|
795
|
+
w,
|
|
796
|
+
S
|
|
797
|
+
]), /* @__PURE__ */ W(g, {
|
|
798
|
+
error: b?.message,
|
|
799
|
+
helperText: s,
|
|
800
|
+
readOnly: c,
|
|
801
|
+
label: o,
|
|
802
|
+
htmlFor: d,
|
|
803
|
+
isRequired: e?.required,
|
|
804
|
+
children: [/* @__PURE__ */ U("div", {
|
|
805
|
+
ref: v,
|
|
806
|
+
className: G(rn, c && "_1vaa8ub1"),
|
|
807
|
+
children: C.map((e, t) => /* @__PURE__ */ W("div", {
|
|
808
|
+
className: an,
|
|
809
|
+
children: [/* @__PURE__ */ U(ln, {
|
|
810
|
+
id: `${d}-${e.value}-${t}`,
|
|
811
|
+
name: d,
|
|
812
|
+
checked: _ ? _?.includes(e.value) : !1,
|
|
813
|
+
onCheckedChange: () => x(e.value),
|
|
814
|
+
onBlur: () => f(),
|
|
815
|
+
disabled: y
|
|
816
|
+
}), /* @__PURE__ */ U(p, {
|
|
817
|
+
htmlFor: `${d}-${e.value}-${t}`,
|
|
818
|
+
className: on,
|
|
819
|
+
children: e.label
|
|
820
|
+
})]
|
|
821
|
+
}, `${e.value}-${t}`))
|
|
822
|
+
}), S && /* @__PURE__ */ W("div", {
|
|
823
|
+
className: "_1vaa8ub4",
|
|
824
|
+
children: [/* @__PURE__ */ W("div", {
|
|
825
|
+
className: "_1vaa8ub5",
|
|
826
|
+
children: [/* @__PURE__ */ U(ln, {
|
|
827
|
+
name: `${d}-other`,
|
|
828
|
+
id: `${d}-other`,
|
|
829
|
+
disabled: y,
|
|
830
|
+
checked: r,
|
|
831
|
+
onCheckedChange: (e) => {
|
|
832
|
+
i(!!e), e ? Array.isArray(_) ? m?.([..._, t]) : m?.([t]) : m?.((_ ?? [])?.filter((e) => e !== t));
|
|
833
|
+
},
|
|
834
|
+
onBlur: () => f()
|
|
835
|
+
}), /* @__PURE__ */ W(p, {
|
|
836
|
+
htmlFor: `${d}-other`,
|
|
837
|
+
className: "_1vaa8ub3",
|
|
838
|
+
children: ["Other:", " "]
|
|
839
|
+
})]
|
|
840
|
+
}), /* @__PURE__ */ U(E, {
|
|
841
|
+
name: `other-checkbox-${d}`,
|
|
842
|
+
className: "_1vaa8ub6",
|
|
843
|
+
value: t,
|
|
844
|
+
onChange: (e) => {
|
|
845
|
+
let r = 0;
|
|
846
|
+
m?.(_?.map((n) => n === t && !r ? (r = 1, e.target.value) : n)), n(e.target.value);
|
|
920
847
|
},
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
htmlFor: `${k}-other`,
|
|
924
|
-
className: "_1vaa8ub3",
|
|
925
|
-
children: ["Other:", " "]
|
|
848
|
+
disabled: !r || y,
|
|
849
|
+
placeholder: "Please specify"
|
|
926
850
|
})]
|
|
927
|
-
}), /* @__PURE__ */ G(E, {
|
|
928
|
-
name: `other-checkbox-${k}`,
|
|
929
|
-
className: "_1vaa8ub6",
|
|
930
|
-
value: r,
|
|
931
|
-
onChange: (e) => {
|
|
932
|
-
let t = 0;
|
|
933
|
-
j?.(M?.map((n) => n === r && !t ? (t = 1, e.target.value) : n)), i(e.target.value);
|
|
934
|
-
},
|
|
935
|
-
disabled: !a || P,
|
|
936
|
-
placeholder: "Please specify"
|
|
937
851
|
})]
|
|
938
|
-
})
|
|
939
|
-
|
|
940
|
-
return t[39] !== v || t[40] !== _ || t[41] !== k || t[42] !== y || t[43] !== H || t[44] !== W || t[45] !== Z || t[46] !== ee ? (te = /* @__PURE__ */ K(h, {
|
|
941
|
-
error: H,
|
|
942
|
-
helperText: v,
|
|
943
|
-
readOnly: y,
|
|
944
|
-
label: _,
|
|
945
|
-
htmlFor: k,
|
|
946
|
-
isRequired: W,
|
|
947
|
-
children: [Z, ee]
|
|
948
|
-
}), t[39] = v, t[40] = _, t[41] = k, t[42] = y, t[43] = H, t[44] = W, t[45] = Z, t[46] = ee, t[47] = te) : te = t[47], te;
|
|
949
|
-
}, xn = "₹", Sn = [
|
|
950
|
-
{
|
|
951
|
-
label: "INR — Indian Rupee (₹)",
|
|
952
|
-
value: "₹",
|
|
953
|
-
code: "INR"
|
|
954
|
-
},
|
|
955
|
-
{
|
|
956
|
-
label: "USD — US Dollar ($)",
|
|
957
|
-
value: "$",
|
|
958
|
-
code: "USD"
|
|
959
|
-
},
|
|
960
|
-
{
|
|
961
|
-
label: "EUR — Euro (€)",
|
|
962
|
-
value: "€",
|
|
963
|
-
code: "EUR"
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
label: "GBP — British Pound (£)",
|
|
967
|
-
value: "£",
|
|
968
|
-
code: "GBP"
|
|
969
|
-
},
|
|
970
|
-
{
|
|
971
|
-
label: "JPY — Japanese Yen (¥)",
|
|
972
|
-
value: "¥",
|
|
973
|
-
code: "JPY"
|
|
974
|
-
},
|
|
975
|
-
{
|
|
976
|
-
label: "AUD — Australian Dollar (A$)",
|
|
977
|
-
value: "A$",
|
|
978
|
-
code: "AUD"
|
|
979
|
-
},
|
|
980
|
-
{
|
|
981
|
-
label: "CAD — Canadian Dollar (C$)",
|
|
982
|
-
value: "C$",
|
|
983
|
-
code: "CAD"
|
|
984
|
-
},
|
|
985
|
-
{
|
|
986
|
-
label: "SGD — Singapore Dollar (S$)",
|
|
987
|
-
value: "S$",
|
|
988
|
-
code: "SGD"
|
|
989
|
-
},
|
|
990
|
-
{
|
|
991
|
-
label: "HKD — Hong Kong Dollar (HK$)",
|
|
992
|
-
value: "HK$",
|
|
993
|
-
code: "HKD"
|
|
994
|
-
},
|
|
995
|
-
{
|
|
996
|
-
label: "BRL — Brazilian Real (R$)",
|
|
997
|
-
value: "R$",
|
|
998
|
-
code: "BRL"
|
|
999
|
-
},
|
|
1000
|
-
{
|
|
1001
|
-
label: "RUB — Russian Ruble (₽)",
|
|
1002
|
-
value: "₽",
|
|
1003
|
-
code: "RUB"
|
|
1004
|
-
},
|
|
1005
|
-
{
|
|
1006
|
-
label: "KRW — South Korean Won (₩)",
|
|
1007
|
-
value: "₩",
|
|
1008
|
-
code: "KRW"
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
label: "TRY — Turkish Lira (₺)",
|
|
1012
|
-
value: "₺",
|
|
1013
|
-
code: "TRY"
|
|
1014
|
-
},
|
|
1015
|
-
{
|
|
1016
|
-
label: "CHF — Swiss Franc",
|
|
1017
|
-
value: "CHF",
|
|
1018
|
-
code: "CHF"
|
|
1019
|
-
},
|
|
1020
|
-
{
|
|
1021
|
-
label: "SAR — Saudi Riyal (﷼)",
|
|
1022
|
-
value: "﷼",
|
|
1023
|
-
code: "SAR"
|
|
1024
|
-
},
|
|
1025
|
-
{
|
|
1026
|
-
label: "AED — UAE Dirham (د.إ)",
|
|
1027
|
-
value: "د.إ",
|
|
1028
|
-
code: "AED"
|
|
1029
|
-
}
|
|
1030
|
-
], Cn = (e) => {
|
|
852
|
+
});
|
|
853
|
+
}, dn = (e) => {
|
|
1031
854
|
let t = D(39), n, r;
|
|
1032
855
|
t[0] === e ? (n = t[1], r = t[2]) : ({field: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
1033
856
|
let { key: i, label: a, helper_text: o, readonly: s } = n, c = i === void 0 ? "" : i, l = a === void 0 ? "" : a, u = o === void 0 ? "" : o, d = s === void 0 ? !1 : s, f = c, p;
|
|
1034
|
-
t[3] === n ? p = t[4] : (p =
|
|
857
|
+
t[3] === n ? p = t[4] : (p = h(n), t[3] = n, t[4] = p);
|
|
1035
858
|
let m;
|
|
1036
859
|
t[5] !== f || t[6] !== p ? (m = {
|
|
1037
860
|
name: f,
|
|
1038
861
|
rules: p
|
|
1039
862
|
}, t[5] = f, t[6] = p, t[7] = m) : m = t[7];
|
|
1040
|
-
let { field: _, fieldState: v } =
|
|
863
|
+
let { field: _, fieldState: v } = Q(m), y, b, x, S, w;
|
|
1041
864
|
t[8] === _ ? (y = t[9], b = t[10], x = t[11], S = t[12], w = t[13]) : ({value: w, onBlur: y, onChange: b, ref: x, ...S} = _, t[8] = _, t[9] = y, t[10] = b, t[11] = x, t[12] = S, t[13] = w);
|
|
1042
865
|
let E = !!n?.required, O = v?.error?.message, k = n?.options?.currency_code, A = `${k || "$"} `, j = `${k || "$"} 0`, M = k === "₹" ? "lakh" : "thousand", N;
|
|
1043
866
|
t[14] === b ? N = t[15] : (N = (e, t) => {
|
|
@@ -1050,9 +873,9 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1050
873
|
y && y();
|
|
1051
874
|
}, t[16] = y, t[17] = P);
|
|
1052
875
|
let F;
|
|
1053
|
-
t[18] === Symbol.for("react.memo_cache_sentinel") ? (F =
|
|
876
|
+
t[18] === Symbol.for("react.memo_cache_sentinel") ? (F = G(T, C), t[18] = F) : F = t[18];
|
|
1054
877
|
let I;
|
|
1055
|
-
t[19] !== f || t[20] !== r || t[21] !== d || t[22] !== x || t[23] !== S || t[24] !== M || t[25] !== N || t[26] !== P || t[27] !== A || t[28] !== j || t[29] !== w ? (I = /* @__PURE__ */
|
|
878
|
+
t[19] !== f || t[20] !== r || t[21] !== d || t[22] !== x || t[23] !== S || t[24] !== M || t[25] !== N || t[26] !== P || t[27] !== A || t[28] !== j || t[29] !== w ? (I = /* @__PURE__ */ U(Te, {
|
|
1056
879
|
thousandSeparator: !0,
|
|
1057
880
|
prefix: A,
|
|
1058
881
|
placeholder: j,
|
|
@@ -1070,7 +893,7 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1070
893
|
...r
|
|
1071
894
|
}), t[19] = f, t[20] = r, t[21] = d, t[22] = x, t[23] = S, t[24] = M, t[25] = N, t[26] = P, t[27] = A, t[28] = j, t[29] = w, t[30] = I) : I = t[30];
|
|
1072
895
|
let L;
|
|
1073
|
-
return t[31] !== O || t[32] !== u || t[33] !== E || t[34] !== l || t[35] !== f || t[36] !== d || t[37] !== I ? (L = /* @__PURE__ */
|
|
896
|
+
return t[31] !== O || t[32] !== u || t[33] !== E || t[34] !== l || t[35] !== f || t[36] !== d || t[37] !== I ? (L = /* @__PURE__ */ U(g, {
|
|
1074
897
|
error: O,
|
|
1075
898
|
helperText: u,
|
|
1076
899
|
readOnly: d,
|
|
@@ -1079,40 +902,37 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1079
902
|
label: l,
|
|
1080
903
|
children: I
|
|
1081
904
|
}), t[31] = O, t[32] = u, t[33] = E, t[34] = l, t[35] = f, t[36] = d, t[37] = I, t[38] = L) : L = t[38], L;
|
|
1082
|
-
},
|
|
905
|
+
}, fn = {
|
|
1083
906
|
label: "Other",
|
|
1084
907
|
value: "other_internal"
|
|
1085
|
-
},
|
|
1086
|
-
let { portalRef: n } = o(), [r, i] =
|
|
908
|
+
}, pn = ({ field: e, ...t }) => {
|
|
909
|
+
let { portalRef: n } = o(), [r, i] = V([]), { key: a = "", label: s = "", helper_text: c = "", readonly: l = !1, values: u = [], options: d = {} } = e, f = a, { field: { value: p, onBlur: m, onChange: _, disabled: v, ...y }, fieldState: b } = Q({
|
|
1087
910
|
name: f,
|
|
1088
|
-
rules:
|
|
1089
|
-
}), [x, S] =
|
|
1090
|
-
return
|
|
911
|
+
rules: h(e)
|
|
912
|
+
}), [x, S] = V(""), [C, w] = V(!1), T = !!e?.required, D = b?.error?.message, O = !!d?.custom_input;
|
|
913
|
+
return R(() => {
|
|
1091
914
|
if (u?.length) {
|
|
1092
|
-
let e = [
|
|
1093
|
-
|
|
1094
|
-
value: e
|
|
1095
|
-
}))];
|
|
1096
|
-
O && e.push(wn), i(e);
|
|
915
|
+
let e = [...$e(u)];
|
|
916
|
+
O && e.push(fn), i(e);
|
|
1097
917
|
}
|
|
1098
|
-
}, [u, O]),
|
|
1099
|
-
!t?.isMulti && O && typeof p == "string" && p && (r.some((e) => e.value !==
|
|
918
|
+
}, [u, O]), R(() => {
|
|
919
|
+
!t?.isMulti && O && typeof p == "string" && p && (r.some((e) => e.value !== fn.value && e.value === p) ? w(!1) : (w(!0), S(p)));
|
|
1100
920
|
}, [
|
|
1101
921
|
p,
|
|
1102
922
|
r,
|
|
1103
923
|
O
|
|
1104
|
-
]), /* @__PURE__ */
|
|
924
|
+
]), /* @__PURE__ */ W(g, {
|
|
1105
925
|
error: D,
|
|
1106
926
|
helperText: c,
|
|
1107
927
|
readOnly: l,
|
|
1108
928
|
label: s,
|
|
1109
929
|
htmlFor: f,
|
|
1110
930
|
isRequired: T,
|
|
1111
|
-
children: [/* @__PURE__ */
|
|
931
|
+
children: [/* @__PURE__ */ U(Ee, {
|
|
1112
932
|
id: f,
|
|
1113
|
-
value: C ?
|
|
933
|
+
value: C ? fn : p ? t?.isMulti ? r?.filter((e) => p?.includes(e?.value)) : r?.find((e) => e?.value === p) : null,
|
|
1114
934
|
onChange: (e) => {
|
|
1115
|
-
O && e?.value ===
|
|
935
|
+
O && e?.value === fn.value && e?.label === fn.label ? (w(!0), S(""), _("")) : (w(!1), t?.isMulti ? _(e?.map((e) => e?.value)) : _(e?.value));
|
|
1116
936
|
},
|
|
1117
937
|
onBlur: () => m(),
|
|
1118
938
|
options: r,
|
|
@@ -1122,16 +942,16 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1122
942
|
...y,
|
|
1123
943
|
...t,
|
|
1124
944
|
unstyled: !0,
|
|
1125
|
-
classNames:
|
|
945
|
+
classNames: Yt,
|
|
1126
946
|
styles: { menuPortal: (e) => ({
|
|
1127
947
|
...e,
|
|
1128
948
|
zIndex: 99999999
|
|
1129
949
|
}) },
|
|
1130
950
|
menuPosition: "fixed",
|
|
1131
951
|
menuPortalTarget: n?.current
|
|
1132
|
-
}), C && /* @__PURE__ */
|
|
952
|
+
}), C && /* @__PURE__ */ U("div", {
|
|
1133
953
|
className: "ldp9z20",
|
|
1134
|
-
children: /* @__PURE__ */
|
|
954
|
+
children: /* @__PURE__ */ U(E, {
|
|
1135
955
|
name: `select-other-${f}`,
|
|
1136
956
|
value: x,
|
|
1137
957
|
onChange: (e) => {
|
|
@@ -1141,54 +961,54 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1141
961
|
})
|
|
1142
962
|
})]
|
|
1143
963
|
});
|
|
1144
|
-
},
|
|
964
|
+
}, mn = "eviv4t0", hn = "eviv4t1", gn = "eviv4t3", _n = (e) => {
|
|
1145
965
|
let t = D(50), n, r, i;
|
|
1146
966
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({field: n, settings: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
1147
|
-
let { key: a, label: o, helper_text: s, readonly: c } = n, l = a === void 0 ? "" : a, u = o === void 0 ? "" : o, d = s === void 0 ? "" : s, f = c === void 0 ? !1 : c, p = l, m = !!n.options?.verification && !!i?.enableVerification, [_, v] =
|
|
967
|
+
let { key: a, label: o, helper_text: s, readonly: c } = n, l = a === void 0 ? "" : a, u = o === void 0 ? "" : o, d = s === void 0 ? "" : s, f = c === void 0 ? !1 : c, p = l, m = !!n.options?.verification && !!i?.enableVerification, [_, v] = V(null), [b, x] = V(!1), S;
|
|
1148
968
|
t[4] !== b || t[5] !== m || t[6] !== _ ? (S = (e) => b ? !0 : m && (!_ || _ !== e) ? "Email verification required" : !0, t[4] = b, t[5] = m, t[6] = _, t[7] = S) : S = t[7];
|
|
1149
969
|
let C;
|
|
1150
|
-
t[8] !== n || t[9] !== S ? (C =
|
|
970
|
+
t[8] !== n || t[9] !== S ? (C = h(n, S), t[8] = n, t[9] = S, t[10] = C) : C = t[10];
|
|
1151
971
|
let w = C, T;
|
|
1152
972
|
t[11] !== p || t[12] !== w ? (T = {
|
|
1153
973
|
name: p,
|
|
1154
974
|
rules: w
|
|
1155
975
|
}, t[11] = p, t[12] = w, t[13] = T) : T = t[13];
|
|
1156
|
-
let { field: O, fieldState: k } =
|
|
976
|
+
let { field: O, fieldState: k } = Q(T), A, j, M, N;
|
|
1157
977
|
t[14] === O ? (A = t[15], j = t[16], M = t[17], N = t[18]) : ({value: N, onBlur: j, onChange: M, ...A} = O, t[14] = O, t[15] = A, t[16] = j, t[17] = M, t[18] = N);
|
|
1158
978
|
let P = !!n?.required, F = k?.error?.message, I = !!_ && !!N && _ === N?.trim()?.toLowerCase(), L;
|
|
1159
979
|
t[19] === M ? L = t[20] : (L = (e) => {
|
|
1160
980
|
v(e), M(e);
|
|
1161
981
|
}, t[19] = M, t[20] = L);
|
|
1162
982
|
let R = L, z;
|
|
1163
|
-
t[21] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */
|
|
983
|
+
t[21] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ U(re, { size: 20 }), t[21] = z) : z = t[21];
|
|
1164
984
|
let B;
|
|
1165
|
-
t[22] === I ? B = t[23] : (B = I ? /* @__PURE__ */
|
|
985
|
+
t[22] === I ? B = t[23] : (B = I ? /* @__PURE__ */ U("button", {
|
|
1166
986
|
type: "button",
|
|
1167
987
|
onClick: () => v(null),
|
|
1168
|
-
className:
|
|
988
|
+
className: gn,
|
|
1169
989
|
title: "Change email",
|
|
1170
|
-
children: /* @__PURE__ */
|
|
990
|
+
children: /* @__PURE__ */ U(ie, { size: 14 })
|
|
1171
991
|
}) : null, t[22] = I, t[23] = B);
|
|
1172
|
-
let
|
|
1173
|
-
t[24] === M ?
|
|
1174
|
-
let
|
|
1175
|
-
t[26] !== A || t[27] !== p || t[28] !== j || t[29] !== r || t[30] !== B || t[31] !==
|
|
1176
|
-
className:
|
|
992
|
+
let H = N || "", G;
|
|
993
|
+
t[24] === M ? G = t[25] : (G = (e) => M(e?.target?.value?.trim()?.toLocaleLowerCase()), t[24] = M, t[25] = G);
|
|
994
|
+
let K = f || I, q;
|
|
995
|
+
t[26] !== A || t[27] !== p || t[28] !== j || t[29] !== r || t[30] !== B || t[31] !== H || t[32] !== G || t[33] !== K ? (q = /* @__PURE__ */ U(E, {
|
|
996
|
+
className: hn,
|
|
1177
997
|
id: p,
|
|
1178
998
|
type: "email",
|
|
1179
999
|
leftIcon: z,
|
|
1180
1000
|
rightIcon: B,
|
|
1181
|
-
value:
|
|
1182
|
-
onChange:
|
|
1001
|
+
value: H,
|
|
1002
|
+
onChange: G,
|
|
1183
1003
|
onBlur: j,
|
|
1184
|
-
readOnly:
|
|
1004
|
+
readOnly: K,
|
|
1185
1005
|
...A,
|
|
1186
1006
|
...r
|
|
1187
|
-
}), t[26] = A, t[27] = p, t[28] = j, t[29] = r, t[30] = B, t[31] =
|
|
1007
|
+
}), t[26] = A, t[27] = p, t[28] = j, t[29] = r, t[30] = B, t[31] = H, t[32] = G, t[33] = K, t[34] = q) : q = t[34];
|
|
1188
1008
|
let J;
|
|
1189
|
-
t[35] !== R || t[36] !== I || t[37] !== m || t[38] !== N ? (J = m && /* @__PURE__ */
|
|
1009
|
+
t[35] !== R || t[36] !== I || t[37] !== m || t[38] !== N ? (J = m && /* @__PURE__ */ U("div", {
|
|
1190
1010
|
className: "eviv4t2",
|
|
1191
|
-
children: /* @__PURE__ */
|
|
1011
|
+
children: /* @__PURE__ */ U(y, {
|
|
1192
1012
|
value: N,
|
|
1193
1013
|
type: "email",
|
|
1194
1014
|
isVerified: I,
|
|
@@ -1197,12 +1017,12 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1197
1017
|
})
|
|
1198
1018
|
}), t[35] = R, t[36] = I, t[37] = m, t[38] = N, t[39] = J) : J = t[39];
|
|
1199
1019
|
let Y;
|
|
1200
|
-
t[40] !== q || t[41] !== J ? (Y = /* @__PURE__ */
|
|
1201
|
-
className:
|
|
1020
|
+
t[40] !== q || t[41] !== J ? (Y = /* @__PURE__ */ W("div", {
|
|
1021
|
+
className: mn,
|
|
1202
1022
|
children: [q, J]
|
|
1203
1023
|
}), t[40] = q, t[41] = J, t[42] = Y) : Y = t[42];
|
|
1204
1024
|
let X;
|
|
1205
|
-
return t[43] !== F || t[44] !== d || t[45] !== P || t[46] !== u || t[47] !== p || t[48] !== Y ? (X = /* @__PURE__ */
|
|
1025
|
+
return t[43] !== F || t[44] !== d || t[45] !== P || t[46] !== u || t[47] !== p || t[48] !== Y ? (X = /* @__PURE__ */ U(g, {
|
|
1206
1026
|
error: F,
|
|
1207
1027
|
helperText: d,
|
|
1208
1028
|
label: u,
|
|
@@ -1210,18 +1030,18 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1210
1030
|
isRequired: P,
|
|
1211
1031
|
children: Y
|
|
1212
1032
|
}), t[43] = F, t[44] = d, t[45] = P, t[46] = u, t[47] = p, t[48] = Y, t[49] = X) : X = t[49], X;
|
|
1213
|
-
},
|
|
1033
|
+
}, vn = (e) => e ? {
|
|
1214
1034
|
value: e,
|
|
1215
1035
|
label: e?.place_name || e?.formatted_address || e?.name
|
|
1216
|
-
} : null,
|
|
1217
|
-
let { portalRef: t } = o(), [n, r] =
|
|
1036
|
+
} : null, yn = ({ field: e }) => {
|
|
1037
|
+
let { portalRef: t } = o(), [n, r] = V(!1), [i, a] = V(!1), s = j(), { key: c = "", label: l = "", helper_text: u = "", readonly: d = !1 } = e, { field: { value: f, onBlur: p, onChange: m, disabled: _, ...v }, fieldState: y } = Q({
|
|
1218
1038
|
name: c,
|
|
1219
|
-
rules:
|
|
1039
|
+
rules: h(e)
|
|
1220
1040
|
}), b = !!e?.required, x = y?.error?.message, S = (e) => {
|
|
1221
1041
|
e && e?.place_id !== f?.place_id ? (a(!0), s?.fetch.url(`/v1/bevy/content/location/${e?.place_id}/get-location-details`).get().json().then((e) => {
|
|
1222
1042
|
m && m(e?.content?.data);
|
|
1223
1043
|
}).catch((e) => {
|
|
1224
|
-
console.log("Could not fetch location details:",
|
|
1044
|
+
console.log("Could not fetch location details:", pe(e).message);
|
|
1225
1045
|
}).finally(() => a(!1))) : m(null);
|
|
1226
1046
|
}, C = (t, n) => {
|
|
1227
1047
|
r(!0);
|
|
@@ -1238,17 +1058,17 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1238
1058
|
n([]);
|
|
1239
1059
|
}).finally(() => r(!1));
|
|
1240
1060
|
};
|
|
1241
|
-
return /* @__PURE__ */
|
|
1061
|
+
return /* @__PURE__ */ U(g, {
|
|
1242
1062
|
error: x,
|
|
1243
1063
|
helperText: u,
|
|
1244
1064
|
readOnly: d,
|
|
1245
1065
|
label: l,
|
|
1246
1066
|
htmlFor: c,
|
|
1247
1067
|
isRequired: b,
|
|
1248
|
-
children: /* @__PURE__ */
|
|
1068
|
+
children: /* @__PURE__ */ U(De, {
|
|
1249
1069
|
id: c,
|
|
1250
|
-
value:
|
|
1251
|
-
defaultOptions: f ? [
|
|
1070
|
+
value: vn(f),
|
|
1071
|
+
defaultOptions: f ? [vn(f)] : void 0,
|
|
1252
1072
|
onChange: (e) => {
|
|
1253
1073
|
S(e?.value);
|
|
1254
1074
|
},
|
|
@@ -1257,7 +1077,7 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1257
1077
|
menuPlacement: "auto",
|
|
1258
1078
|
...v,
|
|
1259
1079
|
unstyled: !0,
|
|
1260
|
-
classNames:
|
|
1080
|
+
classNames: Yt,
|
|
1261
1081
|
styles: { menuPortal: (e) => ({
|
|
1262
1082
|
...e,
|
|
1263
1083
|
zIndex: 99999999
|
|
@@ -1270,70 +1090,70 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1270
1090
|
noOptionsMessage: ({ inputValue: e }) => e ? "No results found. Try searching something else" : "Start typing to search"
|
|
1271
1091
|
})
|
|
1272
1092
|
});
|
|
1273
|
-
},
|
|
1093
|
+
}, bn = "xgv9uh0", xn = "xgv9uh1", Sn = "xgv9uh2", Cn = "xgv9uh3", wn = "xgv9uh4", Tn = "xgv9uh5", En = (e) => {
|
|
1274
1094
|
let t = D(29), { field: n } = e, { key: r, label: i } = n, a = r === void 0 ? "" : r, o = i === void 0 ? "" : i, c;
|
|
1275
1095
|
t[0] === a ? c = t[1] : (c = { name: a }, t[0] = a, t[1] = c);
|
|
1276
|
-
let l =
|
|
1096
|
+
let l = ye(c), u, d, f, m, h, g;
|
|
1277
1097
|
if (t[2] !== n || t[3] !== a || t[4] !== o || t[5] !== l) {
|
|
1278
1098
|
let { fields: e, ...r } = l;
|
|
1279
|
-
u = r,
|
|
1099
|
+
u = r, m = bn, h = a, t[12] !== a || t[13] !== o ? (g = o && /* @__PURE__ */ U(p, {
|
|
1280
1100
|
htmlFor: a,
|
|
1281
1101
|
className: "_1ompjs11",
|
|
1282
1102
|
children: o
|
|
1283
|
-
}), t[12] = a, t[13] = o, t[14] = g) : g = t[14], d =
|
|
1284
|
-
className:
|
|
1285
|
-
children: [/* @__PURE__ */
|
|
1286
|
-
className:
|
|
1287
|
-
children: /* @__PURE__ */
|
|
1103
|
+
}), t[12] = a, t[13] = o, t[14] = g) : g = t[14], d = xn, f = e?.map((e, t) => /* @__PURE__ */ W("div", {
|
|
1104
|
+
className: Cn,
|
|
1105
|
+
children: [/* @__PURE__ */ U("div", {
|
|
1106
|
+
className: wn,
|
|
1107
|
+
children: /* @__PURE__ */ U(yn, { field: {
|
|
1288
1108
|
...n,
|
|
1289
1109
|
key: `${a}.${t}`,
|
|
1290
1110
|
label: ""
|
|
1291
1111
|
} })
|
|
1292
|
-
}), /* @__PURE__ */
|
|
1112
|
+
}), /* @__PURE__ */ U(s, {
|
|
1293
1113
|
variant: "ghost",
|
|
1294
1114
|
size: "icon-sm",
|
|
1295
|
-
className:
|
|
1115
|
+
className: Tn,
|
|
1296
1116
|
onClick: () => u.remove(t),
|
|
1297
1117
|
"aria-label": `Remove location ${t + 1}`,
|
|
1298
|
-
children: /* @__PURE__ */
|
|
1118
|
+
children: /* @__PURE__ */ U(oe, { size: 14 })
|
|
1299
1119
|
})]
|
|
1300
|
-
}, e.id)), t[2] = n, t[3] = a, t[4] = o, t[5] = l, t[6] = u, t[7] = d, t[8] = f, t[9] =
|
|
1301
|
-
} else u = t[6], d = t[7], f = t[8],
|
|
1120
|
+
}, e.id)), t[2] = n, t[3] = a, t[4] = o, t[5] = l, t[6] = u, t[7] = d, t[8] = f, t[9] = m, t[10] = h, t[11] = g;
|
|
1121
|
+
} else u = t[6], d = t[7], f = t[8], m = t[9], h = t[10], g = t[11];
|
|
1302
1122
|
let _;
|
|
1303
1123
|
t[15] === u ? _ = t[16] : (_ = () => {
|
|
1304
1124
|
u.append(null);
|
|
1305
1125
|
}, t[15] = u, t[16] = _);
|
|
1306
1126
|
let v;
|
|
1307
|
-
t[17] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */
|
|
1127
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ U(ae, { size: 14 }), t[17] = v) : v = t[17];
|
|
1308
1128
|
let y;
|
|
1309
|
-
t[18] === _ ? y = t[19] : (y = /* @__PURE__ */
|
|
1129
|
+
t[18] === _ ? y = t[19] : (y = /* @__PURE__ */ W(s, {
|
|
1310
1130
|
variant: "ghost",
|
|
1311
1131
|
size: "xs",
|
|
1312
|
-
className:
|
|
1132
|
+
className: Sn,
|
|
1313
1133
|
onClick: _,
|
|
1314
1134
|
children: [v, "Add"]
|
|
1315
1135
|
}), t[18] = _, t[19] = y);
|
|
1316
1136
|
let b;
|
|
1317
|
-
t[20] !== y || t[21] !== d || t[22] !== f ? (b = /* @__PURE__ */
|
|
1137
|
+
t[20] !== y || t[21] !== d || t[22] !== f ? (b = /* @__PURE__ */ W("div", {
|
|
1318
1138
|
className: d,
|
|
1319
1139
|
children: [f, y]
|
|
1320
1140
|
}), t[20] = y, t[21] = d, t[22] = f, t[23] = b) : b = t[23];
|
|
1321
1141
|
let x;
|
|
1322
|
-
return t[24] !== b || t[25] !==
|
|
1323
|
-
className:
|
|
1142
|
+
return t[24] !== b || t[25] !== m || t[26] !== h || t[27] !== g ? (x = /* @__PURE__ */ W("div", {
|
|
1143
|
+
className: m,
|
|
1324
1144
|
children: [g, b]
|
|
1325
|
-
}, h), t[24] = b, t[25] =
|
|
1326
|
-
},
|
|
1327
|
-
let { key: t = "", label: n = "", helper_text: r = "", readonly: i = !1 } = e, a = t, { field: { value: o, onChange: s, onBlur: c, ref: l }, fieldState: u } =
|
|
1145
|
+
}, h), t[24] = b, t[25] = m, t[26] = h, t[27] = g, t[28] = x) : x = t[28], x;
|
|
1146
|
+
}, Dn = "a22xph0", On = "a22xph2", kn = "a22xph3", An = "a22xph5", jn = /[\n\t,]+/, Mn = ({ field: e }) => {
|
|
1147
|
+
let { key: t = "", label: n = "", helper_text: r = "", readonly: i = !1 } = e, a = t, { field: { value: o, onChange: s, onBlur: c, ref: l }, fieldState: u } = Q({
|
|
1328
1148
|
name: a,
|
|
1329
|
-
rules:
|
|
1330
|
-
}), d = !!e?.required, f = u?.error?.message, p = Array.isArray(o) ? o : [], [m, _] =
|
|
1149
|
+
rules: h(e)
|
|
1150
|
+
}), d = !!e?.required, f = u?.error?.message, p = Array.isArray(o) ? o : [], [m, _] = V(""), [v, y] = V(-1), b = B(null), x = L((e) => {
|
|
1331
1151
|
b.current = e, typeof l == "function" && l(e);
|
|
1332
|
-
}, [l]), S =
|
|
1152
|
+
}, [l]), S = L((e) => {
|
|
1333
1153
|
s(p.filter((t, n) => n !== e));
|
|
1334
|
-
}, [p, s]), C =
|
|
1154
|
+
}, [p, s]), C = L(() => {
|
|
1335
1155
|
if (!m.trim()) return;
|
|
1336
|
-
let e = m.split(
|
|
1156
|
+
let e = m.split(jn), t = [...p];
|
|
1337
1157
|
for (let n of e) {
|
|
1338
1158
|
let e = n.trim();
|
|
1339
1159
|
e && !t.includes(e) && t.push(e);
|
|
@@ -1343,7 +1163,7 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1343
1163
|
m,
|
|
1344
1164
|
p,
|
|
1345
1165
|
s
|
|
1346
|
-
]), w =
|
|
1166
|
+
]), w = L((e) => {
|
|
1347
1167
|
let t = e.currentTarget;
|
|
1348
1168
|
switch (e.key) {
|
|
1349
1169
|
case "Enter":
|
|
@@ -1374,39 +1194,39 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1374
1194
|
v,
|
|
1375
1195
|
C,
|
|
1376
1196
|
S
|
|
1377
|
-
]), T =
|
|
1197
|
+
]), T = L((e) => {
|
|
1378
1198
|
let t = e.clipboardData.getData("text");
|
|
1379
|
-
if (
|
|
1199
|
+
if (jn.test(t)) {
|
|
1380
1200
|
e.preventDefault();
|
|
1381
|
-
let n = t.split(
|
|
1201
|
+
let n = t.split(jn), r = [...p];
|
|
1382
1202
|
for (let e of n) {
|
|
1383
1203
|
let t = e.trim();
|
|
1384
1204
|
t && !r.includes(t) && r.push(t);
|
|
1385
1205
|
}
|
|
1386
1206
|
s(r), _("");
|
|
1387
1207
|
}
|
|
1388
|
-
}, [p, s]), E =
|
|
1208
|
+
}, [p, s]), E = L(() => {
|
|
1389
1209
|
b.current?.focus(), y(-1);
|
|
1390
|
-
}, []), D =
|
|
1210
|
+
}, []), D = L(() => {
|
|
1391
1211
|
C(), y(-1), c();
|
|
1392
1212
|
}, [C, c]);
|
|
1393
|
-
return /* @__PURE__ */
|
|
1213
|
+
return /* @__PURE__ */ U(g, {
|
|
1394
1214
|
error: f,
|
|
1395
1215
|
helperText: r,
|
|
1396
1216
|
label: n,
|
|
1397
1217
|
htmlFor: a,
|
|
1398
1218
|
isRequired: d,
|
|
1399
|
-
children: /* @__PURE__ */
|
|
1400
|
-
className:
|
|
1219
|
+
children: /* @__PURE__ */ W("div", {
|
|
1220
|
+
className: Dn,
|
|
1401
1221
|
"data-readonly": i,
|
|
1402
1222
|
onClick: E,
|
|
1403
|
-
children: [p.map((e, t) => /* @__PURE__ */
|
|
1404
|
-
className:
|
|
1223
|
+
children: [p.map((e, t) => /* @__PURE__ */ W("span", {
|
|
1224
|
+
className: On,
|
|
1405
1225
|
"data-active": v === t,
|
|
1406
|
-
children: [/* @__PURE__ */
|
|
1407
|
-
className:
|
|
1226
|
+
children: [/* @__PURE__ */ U("span", {
|
|
1227
|
+
className: kn,
|
|
1408
1228
|
children: e
|
|
1409
|
-
}), !i && /* @__PURE__ */
|
|
1229
|
+
}), !i && /* @__PURE__ */ U("button", {
|
|
1410
1230
|
type: "button",
|
|
1411
1231
|
className: "a22xph4",
|
|
1412
1232
|
onClick: (e) => {
|
|
@@ -1414,12 +1234,12 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1414
1234
|
},
|
|
1415
1235
|
"aria-label": `Remove ${e}`,
|
|
1416
1236
|
tabIndex: -1,
|
|
1417
|
-
children: /* @__PURE__ */
|
|
1237
|
+
children: /* @__PURE__ */ U(ce, { size: 12 })
|
|
1418
1238
|
})]
|
|
1419
|
-
}, `${e}-${t}`)), /* @__PURE__ */
|
|
1239
|
+
}, `${e}-${t}`)), /* @__PURE__ */ U("input", {
|
|
1420
1240
|
ref: x,
|
|
1421
1241
|
id: a,
|
|
1422
|
-
className:
|
|
1242
|
+
className: An,
|
|
1423
1243
|
type: "text",
|
|
1424
1244
|
value: m,
|
|
1425
1245
|
onChange: (e) => _(e.target.value),
|
|
@@ -1433,124 +1253,131 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1433
1253
|
})]
|
|
1434
1254
|
})
|
|
1435
1255
|
});
|
|
1436
|
-
},
|
|
1256
|
+
}, Nn = "jqes4z0", Pn = "jqes4z2", Fn = "jqes4z3", In = "_1mrsmih0", Ln = "_1mrsmih1", Rn = "_1mrsmih2", zn = "_1mrsmih3", Bn = (e) => {
|
|
1437
1257
|
let t = D(8), n, r;
|
|
1438
1258
|
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
1439
1259
|
let i;
|
|
1440
|
-
t[3] === n ? i = t[4] : (i =
|
|
1260
|
+
t[3] === n ? i = t[4] : (i = G(In, n), t[3] = n, t[4] = i);
|
|
1441
1261
|
let a;
|
|
1442
|
-
return t[5] !== r || t[6] !== i ? (a = /* @__PURE__ */
|
|
1262
|
+
return t[5] !== r || t[6] !== i ? (a = /* @__PURE__ */ U(ke, {
|
|
1443
1263
|
"data-slot": "radio-group",
|
|
1444
1264
|
className: i,
|
|
1445
1265
|
...r
|
|
1446
1266
|
}), t[5] = r, t[6] = i, t[7] = a) : a = t[7], a;
|
|
1447
|
-
},
|
|
1267
|
+
}, Vn = (e) => {
|
|
1448
1268
|
let t = D(9), n, r;
|
|
1449
1269
|
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
1450
1270
|
let i;
|
|
1451
|
-
t[3] === n ? i = t[4] : (i =
|
|
1271
|
+
t[3] === n ? i = t[4] : (i = G(Ln, n), t[3] = n, t[4] = i);
|
|
1452
1272
|
let a;
|
|
1453
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */
|
|
1273
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ U(Oe.Indicator, {
|
|
1454
1274
|
"data-slot": "radio-group-indicator",
|
|
1455
|
-
className:
|
|
1456
|
-
children: /* @__PURE__ */
|
|
1275
|
+
className: Rn,
|
|
1276
|
+
children: /* @__PURE__ */ U("span", { className: zn })
|
|
1457
1277
|
}), t[5] = a) : a = t[5];
|
|
1458
1278
|
let o;
|
|
1459
|
-
return t[6] !== r || t[7] !== i ? (o = /* @__PURE__ */
|
|
1279
|
+
return t[6] !== r || t[7] !== i ? (o = /* @__PURE__ */ U(Oe.Root, {
|
|
1460
1280
|
"data-slot": "radio-group-item",
|
|
1461
1281
|
className: i,
|
|
1462
1282
|
...r,
|
|
1463
1283
|
children: a
|
|
1464
1284
|
}), t[6] = r, t[7] = i, t[8] = o) : o = t[8], o;
|
|
1465
|
-
},
|
|
1466
|
-
let t = D(
|
|
1285
|
+
}, Hn = (e) => {
|
|
1286
|
+
let t = D(56), { field: n } = e, [r, i] = M.useState(""), [a, o] = M.useState(!1), { key: s, label: c, helper_text: l, readonly: u, values: d, options: f } = n, m = s === void 0 ? "" : s, _ = c === void 0 ? "" : c, v = l === void 0 ? "" : l, y = u === void 0 ? !1 : u, b;
|
|
1467
1287
|
t[0] === d ? b = t[1] : (b = d === void 0 ? [] : d, t[0] = d, t[1] = b);
|
|
1468
1288
|
let x = b, S;
|
|
1469
1289
|
t[2] === f ? S = t[3] : (S = f === void 0 ? {} : f, t[2] = f, t[3] = S);
|
|
1470
|
-
let { custom_input: C } = S, w =
|
|
1471
|
-
t[4] === n ? T = t[5] : (T =
|
|
1290
|
+
let { custom_input: C } = S, w = m, T;
|
|
1291
|
+
t[4] === n ? T = t[5] : (T = h(n), t[4] = n, t[5] = T);
|
|
1472
1292
|
let O;
|
|
1473
1293
|
t[6] !== w || t[7] !== T ? (O = {
|
|
1474
1294
|
name: w,
|
|
1475
1295
|
rules: T
|
|
1476
1296
|
}, t[6] = w, t[7] = T, t[8] = O) : O = t[8];
|
|
1477
|
-
let { field: k, fieldState: A } =
|
|
1478
|
-
t[9] === k ? (j = t[10],
|
|
1297
|
+
let { field: k, fieldState: A } = Q(O), j, N, P, F;
|
|
1298
|
+
t[9] === k ? (j = t[10], N = t[11], P = t[12], F = t[13]) : ({value: F, onBlur: j, onChange: N, ...P} = k, t[9] = k, t[10] = j, t[11] = N, t[12] = P, t[13] = F);
|
|
1479
1299
|
let I = !!n?.required, L = A?.error?.message, R;
|
|
1480
|
-
t[14]
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
t[
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
let
|
|
1492
|
-
t[
|
|
1493
|
-
|
|
1494
|
-
t[
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
className:
|
|
1502
|
-
children:
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1300
|
+
t[14] === x ? R = t[15] : (R = $e(x), t[14] = x, t[15] = R);
|
|
1301
|
+
let z = R, B, V;
|
|
1302
|
+
t[16] !== z || t[17] !== a || t[18] !== F ? (B = () => {
|
|
1303
|
+
a || F && z.findIndex((e) => e.value === F) === -1 && (o(!0), i(F));
|
|
1304
|
+
}, V = [
|
|
1305
|
+
F,
|
|
1306
|
+
z,
|
|
1307
|
+
a
|
|
1308
|
+
], t[16] = z, t[17] = a, t[18] = F, t[19] = B, t[20] = V) : (B = t[19], V = t[20]), M.useEffect(B, V);
|
|
1309
|
+
let H = y && "jqes4z1", K;
|
|
1310
|
+
t[21] === H ? K = t[22] : (K = G(Nn, H), t[21] = H, t[22] = K);
|
|
1311
|
+
let q;
|
|
1312
|
+
t[23] !== N || t[24] !== r ? (q = (e) => {
|
|
1313
|
+
N && (e === "Other" ? (o(!0), N(r)) : (o(!1), N(e)));
|
|
1314
|
+
}, t[23] = N, t[24] = r, t[25] = q) : q = t[25];
|
|
1315
|
+
let J;
|
|
1316
|
+
t[26] === j ? J = t[27] : (J = () => j(), t[26] = j, t[27] = J);
|
|
1317
|
+
let Y = a ? "Other" : F ?? "", X;
|
|
1318
|
+
if (t[28] !== z || t[29] !== w) {
|
|
1319
|
+
let e;
|
|
1320
|
+
t[31] === w ? e = t[32] : (e = (e, t) => /* @__PURE__ */ W("div", {
|
|
1321
|
+
className: Pn,
|
|
1322
|
+
children: [/* @__PURE__ */ U(Vn, {
|
|
1323
|
+
id: `${w}-${e.value}-${t}`,
|
|
1324
|
+
value: e.value
|
|
1325
|
+
}), /* @__PURE__ */ U(p, {
|
|
1326
|
+
htmlFor: `${w}-${e.value}-${t}`,
|
|
1327
|
+
className: Fn,
|
|
1328
|
+
children: e.label
|
|
1329
|
+
})]
|
|
1330
|
+
}, `${e.value}-${t}`), t[31] = w, t[32] = e), X = z.map(e), t[28] = z, t[29] = w, t[30] = X;
|
|
1331
|
+
} else X = t[30];
|
|
1332
|
+
let Z;
|
|
1333
|
+
t[33] !== C || t[34] !== w || t[35] !== N || t[36] !== a || t[37] !== r ? (Z = !!C && /* @__PURE__ */ W("div", {
|
|
1507
1334
|
className: "jqes4z4",
|
|
1508
1335
|
children: [
|
|
1509
|
-
/* @__PURE__ */
|
|
1336
|
+
/* @__PURE__ */ U(Vn, {
|
|
1510
1337
|
id: `${w}-other`,
|
|
1511
1338
|
value: "Other"
|
|
1512
1339
|
}),
|
|
1513
|
-
/* @__PURE__ */
|
|
1340
|
+
/* @__PURE__ */ U(p, {
|
|
1514
1341
|
className: "jqes4z3",
|
|
1515
1342
|
htmlFor: `${w}-other`,
|
|
1516
1343
|
children: "Other:"
|
|
1517
1344
|
}),
|
|
1518
|
-
/* @__PURE__ */
|
|
1345
|
+
/* @__PURE__ */ U("div", {
|
|
1519
1346
|
className: "jqes4z6",
|
|
1520
|
-
children: /* @__PURE__ */
|
|
1347
|
+
children: /* @__PURE__ */ U(E, {
|
|
1521
1348
|
className: "jqes4z5",
|
|
1522
1349
|
name: `radio-other-${w}`,
|
|
1523
1350
|
value: r,
|
|
1524
1351
|
onChange: (e) => {
|
|
1525
|
-
|
|
1352
|
+
N?.(e?.target?.value), i(e.target.value);
|
|
1526
1353
|
},
|
|
1527
1354
|
disabled: !a,
|
|
1528
1355
|
placeholder: "Please specify"
|
|
1529
1356
|
})
|
|
1530
1357
|
})
|
|
1531
1358
|
]
|
|
1532
|
-
}), t[
|
|
1533
|
-
let
|
|
1534
|
-
t[
|
|
1359
|
+
}), t[33] = C, t[34] = w, t[35] = N, t[36] = a, t[37] = r, t[38] = Z) : Z = t[38];
|
|
1360
|
+
let ee;
|
|
1361
|
+
t[39] !== w || t[40] !== P || t[41] !== K || t[42] !== q || t[43] !== J || t[44] !== Y || t[45] !== X || t[46] !== Z ? (ee = /* @__PURE__ */ W(Bn, {
|
|
1535
1362
|
id: w,
|
|
1536
|
-
className:
|
|
1537
|
-
onValueChange:
|
|
1538
|
-
onBlur:
|
|
1539
|
-
value:
|
|
1363
|
+
className: K,
|
|
1364
|
+
onValueChange: q,
|
|
1365
|
+
onBlur: J,
|
|
1366
|
+
value: Y,
|
|
1540
1367
|
...P,
|
|
1541
|
-
children: [
|
|
1542
|
-
}), t[
|
|
1543
|
-
let
|
|
1544
|
-
return t[
|
|
1368
|
+
children: [X, Z]
|
|
1369
|
+
}), t[39] = w, t[40] = P, t[41] = K, t[42] = q, t[43] = J, t[44] = Y, t[45] = X, t[46] = Z, t[47] = ee) : ee = t[47];
|
|
1370
|
+
let te;
|
|
1371
|
+
return t[48] !== L || t[49] !== v || t[50] !== I || t[51] !== _ || t[52] !== w || t[53] !== y || t[54] !== ee ? (te = /* @__PURE__ */ U(g, {
|
|
1545
1372
|
error: L,
|
|
1546
1373
|
helperText: v,
|
|
1547
1374
|
readOnly: y,
|
|
1548
1375
|
label: _,
|
|
1549
1376
|
htmlFor: w,
|
|
1550
1377
|
isRequired: I,
|
|
1551
|
-
children:
|
|
1552
|
-
}), t[
|
|
1553
|
-
},
|
|
1378
|
+
children: ee
|
|
1379
|
+
}), t[48] = L, t[49] = v, t[50] = I, t[51] = _, t[52] = w, t[53] = y, t[54] = ee, t[55] = te) : te = t[55], te;
|
|
1380
|
+
}, Un = "i9l98i0", Wn = K({
|
|
1554
1381
|
defaultClassName: "_193nrs70",
|
|
1555
1382
|
variantClassNames: { size: {
|
|
1556
1383
|
default: "_193nrs71",
|
|
@@ -1558,41 +1385,41 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1558
1385
|
} },
|
|
1559
1386
|
defaultVariants: { size: "default" },
|
|
1560
1387
|
compoundVariants: []
|
|
1561
|
-
}),
|
|
1388
|
+
}), Gn = "_193nrs73", Kn = "_193nrs74", qn = "_193nrs75", Jn = (e) => {
|
|
1562
1389
|
let t = D(15), n, r, i;
|
|
1563
1390
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({className: n, size: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
1564
1391
|
let a = i === void 0 ? "default" : i, o;
|
|
1565
|
-
t[4] !== n || t[5] !== a ? (o =
|
|
1566
|
-
let s = a === "sm" ?
|
|
1567
|
-
t[7] === s ? c = t[8] : (c =
|
|
1392
|
+
t[4] !== n || t[5] !== a ? (o = G(Wn({ size: a }), n), t[4] = n, t[5] = a, t[6] = o) : o = t[6];
|
|
1393
|
+
let s = a === "sm" ? qn : Kn, c;
|
|
1394
|
+
t[7] === s ? c = t[8] : (c = G(Gn, s), t[7] = s, t[8] = c);
|
|
1568
1395
|
let l;
|
|
1569
|
-
t[9] === c ? l = t[10] : (l = /* @__PURE__ */
|
|
1396
|
+
t[9] === c ? l = t[10] : (l = /* @__PURE__ */ U(Ae.Thumb, {
|
|
1570
1397
|
"data-slot": "switch-thumb",
|
|
1571
1398
|
className: c
|
|
1572
1399
|
}), t[9] = c, t[10] = l);
|
|
1573
1400
|
let u;
|
|
1574
|
-
return t[11] !== r || t[12] !== o || t[13] !== l ? (u = /* @__PURE__ */
|
|
1401
|
+
return t[11] !== r || t[12] !== o || t[13] !== l ? (u = /* @__PURE__ */ U(Ae.Root, {
|
|
1575
1402
|
"data-slot": "switch",
|
|
1576
1403
|
className: o,
|
|
1577
1404
|
...r,
|
|
1578
1405
|
children: l
|
|
1579
1406
|
}), t[11] = r, t[12] = o, t[13] = l, t[14] = u) : u = t[14], u;
|
|
1580
|
-
},
|
|
1407
|
+
}, Yn = (e) => {
|
|
1581
1408
|
let t = D(32), { field: n } = e, { key: r, label: i, helper_text: a, readonly: o } = n, s = r === void 0 ? "" : r, c = i === void 0 ? "" : i, l = a === void 0 ? "" : a, u = o === void 0 ? !1 : o, d = s, f;
|
|
1582
|
-
t[0] === n ? f = t[1] : (f =
|
|
1583
|
-
let
|
|
1584
|
-
t[2] !== d || t[3] !== f ? (
|
|
1409
|
+
t[0] === n ? f = t[1] : (f = h(n), t[0] = n, t[1] = f);
|
|
1410
|
+
let p;
|
|
1411
|
+
t[2] !== d || t[3] !== f ? (p = {
|
|
1585
1412
|
name: d,
|
|
1586
1413
|
rules: f
|
|
1587
|
-
}, t[2] = d, t[3] = f, t[4] =
|
|
1588
|
-
let { field: _, fieldState: v } =
|
|
1414
|
+
}, t[2] = d, t[3] = f, t[4] = p) : p = t[4];
|
|
1415
|
+
let { field: _, fieldState: v } = Q(p), y, b, x, S;
|
|
1589
1416
|
t[5] === _ ? (y = t[6], b = t[7], x = t[8], S = t[9]) : ({value: S, onBlur: y, onChange: b, ...x} = _, t[5] = _, t[6] = y, t[7] = b, t[8] = x, t[9] = S);
|
|
1590
1417
|
let C = !!n?.required, w = v?.error?.message, T = !!S, E;
|
|
1591
1418
|
t[10] === b ? E = t[11] : (E = (e) => b?.(e), t[10] = b, t[11] = E);
|
|
1592
1419
|
let O;
|
|
1593
1420
|
t[12] === y ? O = t[13] : (O = () => y?.(), t[12] = y, t[13] = O);
|
|
1594
1421
|
let k;
|
|
1595
|
-
t[14] !== d || t[15] !== x || t[16] !== O || t[17] !== T || t[18] !== E ? (k = /* @__PURE__ */
|
|
1422
|
+
t[14] !== d || t[15] !== x || t[16] !== O || t[17] !== T || t[18] !== E ? (k = /* @__PURE__ */ U(Jn, {
|
|
1596
1423
|
id: d,
|
|
1597
1424
|
checked: T,
|
|
1598
1425
|
onCheckedChange: E,
|
|
@@ -1600,37 +1427,37 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1600
1427
|
...x
|
|
1601
1428
|
}), t[14] = d, t[15] = x, t[16] = O, t[17] = T, t[18] = E, t[19] = k) : k = t[19];
|
|
1602
1429
|
let A;
|
|
1603
|
-
t[20] !== C || t[21] !== c || t[22] !== d ? (A = /* @__PURE__ */
|
|
1430
|
+
t[20] !== C || t[21] !== c || t[22] !== d ? (A = /* @__PURE__ */ U(m, {
|
|
1604
1431
|
label: c,
|
|
1605
1432
|
isRequired: C,
|
|
1606
1433
|
htmlFor: d
|
|
1607
1434
|
}), t[20] = C, t[21] = c, t[22] = d, t[23] = A) : A = t[23];
|
|
1608
1435
|
let j;
|
|
1609
|
-
t[24] !== k || t[25] !== A ? (j = /* @__PURE__ */
|
|
1610
|
-
className:
|
|
1436
|
+
t[24] !== k || t[25] !== A ? (j = /* @__PURE__ */ W("div", {
|
|
1437
|
+
className: Un,
|
|
1611
1438
|
children: [k, A]
|
|
1612
1439
|
}), t[24] = k, t[25] = A, t[26] = j) : j = t[26];
|
|
1613
1440
|
let M;
|
|
1614
|
-
return t[27] !== w || t[28] !== l || t[29] !== u || t[30] !== j ? (M = /* @__PURE__ */
|
|
1441
|
+
return t[27] !== w || t[28] !== l || t[29] !== u || t[30] !== j ? (M = /* @__PURE__ */ U(g, {
|
|
1615
1442
|
error: w,
|
|
1616
1443
|
helperText: l,
|
|
1617
1444
|
readOnly: u,
|
|
1618
1445
|
children: j
|
|
1619
1446
|
}), t[27] = w, t[28] = l, t[29] = u, t[30] = j, t[31] = M) : M = t[31], M;
|
|
1620
|
-
},
|
|
1447
|
+
}, Xn = "gaaqp00", Zn = (e) => {
|
|
1621
1448
|
let t = D(29), { field: n } = e, { key: r, label: i, helper_text: a, readonly: o } = n, s = r === void 0 ? "" : r, c = i === void 0 ? "" : i, l = a === void 0 ? "" : a, u = o === void 0 ? !1 : o, d = s, f = !!n?.required, p;
|
|
1622
|
-
t[0] === n ? p = t[1] : (p =
|
|
1449
|
+
t[0] === n ? p = t[1] : (p = h(n), t[0] = n, t[1] = p);
|
|
1623
1450
|
let m;
|
|
1624
1451
|
t[2] !== d || t[3] !== p ? (m = {
|
|
1625
1452
|
name: d,
|
|
1626
1453
|
rules: p
|
|
1627
1454
|
}, t[2] = d, t[3] = p, t[4] = m) : m = t[4];
|
|
1628
|
-
let { field: _, fieldState: v } =
|
|
1455
|
+
let { field: _, fieldState: v } = Q(m), y, b, x, S, C, T;
|
|
1629
1456
|
t[5] === _ ? (y = t[6], b = t[7], x = t[8], S = t[9], C = t[10], T = t[11]) : ({value: T, onBlur: b, onChange: x, ref: S, disabled: y, ...C} = _, t[5] = _, t[6] = y, t[7] = b, t[8] = x, t[9] = S, t[10] = C, t[11] = T);
|
|
1630
1457
|
let E = v?.error?.message, O;
|
|
1631
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (O =
|
|
1458
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (O = G(Xn), t[12] = O) : O = t[12];
|
|
1632
1459
|
let k = T || "", A;
|
|
1633
|
-
t[13] !== y || t[14] !== d || t[15] !== b || t[16] !== x || t[17] !== u || t[18] !== S || t[19] !== C || t[20] !== k ? (A = /* @__PURE__ */
|
|
1460
|
+
t[13] !== y || t[14] !== d || t[15] !== b || t[16] !== x || t[17] !== u || t[18] !== S || t[19] !== C || t[20] !== k ? (A = /* @__PURE__ */ U(w, {
|
|
1634
1461
|
id: d,
|
|
1635
1462
|
className: O,
|
|
1636
1463
|
readOnly: u,
|
|
@@ -1642,7 +1469,7 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1642
1469
|
...C
|
|
1643
1470
|
}), t[13] = y, t[14] = d, t[15] = b, t[16] = x, t[17] = u, t[18] = S, t[19] = C, t[20] = k, t[21] = A) : A = t[21];
|
|
1644
1471
|
let j;
|
|
1645
|
-
return t[22] !== E || t[23] !== l || t[24] !== f || t[25] !== c || t[26] !== d || t[27] !== A ? (j = /* @__PURE__ */
|
|
1472
|
+
return t[22] !== E || t[23] !== l || t[24] !== f || t[25] !== c || t[26] !== d || t[27] !== A ? (j = /* @__PURE__ */ U(g, {
|
|
1646
1473
|
error: E,
|
|
1647
1474
|
helperText: l,
|
|
1648
1475
|
label: c,
|
|
@@ -1650,22 +1477,22 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1650
1477
|
isRequired: f,
|
|
1651
1478
|
children: A
|
|
1652
1479
|
}), t[22] = E, t[23] = l, t[24] = f, t[25] = c, t[26] = d, t[27] = A, t[28] = j) : j = t[28], j;
|
|
1653
|
-
},
|
|
1480
|
+
}, Qn = (e) => {
|
|
1654
1481
|
let t = D(36), n, r, i;
|
|
1655
1482
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({field: n, inputStyles: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
1656
1483
|
let { key: a, label: o, helper_text: s, readonly: c } = n, l = a === void 0 ? "" : a, u = o === void 0 ? "" : o, d = s === void 0 ? "" : s, f = c === void 0 ? !1 : c, p = l, m = !!n?.required, _;
|
|
1657
|
-
t[4] === n ? _ = t[5] : (_ =
|
|
1484
|
+
t[4] === n ? _ = t[5] : (_ = h(n), t[4] = n, t[5] = _);
|
|
1658
1485
|
let v;
|
|
1659
1486
|
t[6] !== p || t[7] !== _ ? (v = {
|
|
1660
1487
|
name: p,
|
|
1661
1488
|
rules: _
|
|
1662
1489
|
}, t[6] = p, t[7] = _, t[8] = v) : v = t[8];
|
|
1663
|
-
let { field: y, fieldState: b } =
|
|
1490
|
+
let { field: y, fieldState: b } = Q(v), x, S, C, w, T, O;
|
|
1664
1491
|
t[9] === y ? (x = t[10], S = t[11], C = t[12], w = t[13], T = t[14], O = t[15]) : ({value: O, onBlur: S, onChange: C, ref: w, disabled: x, ...T} = y, t[9] = y, t[10] = x, t[11] = S, t[12] = C, t[13] = w, t[14] = T, t[15] = O);
|
|
1665
1492
|
let k = b?.error?.message, A;
|
|
1666
|
-
t[16] === i ? A = t[17] : (A =
|
|
1493
|
+
t[16] === i ? A = t[17] : (A = G(i), t[16] = i, t[17] = A);
|
|
1667
1494
|
let j = O || "", M;
|
|
1668
|
-
t[18] !== x || t[19] !== r || t[20] !== p || t[21] !== S || t[22] !== C || t[23] !== f || t[24] !== w || t[25] !== T || t[26] !== A || t[27] !== j ? (M = /* @__PURE__ */
|
|
1495
|
+
t[18] !== x || t[19] !== r || t[20] !== p || t[21] !== S || t[22] !== C || t[23] !== f || t[24] !== w || t[25] !== T || t[26] !== A || t[27] !== j ? (M = /* @__PURE__ */ U(E, {
|
|
1669
1496
|
id: p,
|
|
1670
1497
|
className: A,
|
|
1671
1498
|
readOnly: f,
|
|
@@ -1678,7 +1505,7 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1678
1505
|
...r
|
|
1679
1506
|
}), t[18] = x, t[19] = r, t[20] = p, t[21] = S, t[22] = C, t[23] = f, t[24] = w, t[25] = T, t[26] = A, t[27] = j, t[28] = M) : M = t[28];
|
|
1680
1507
|
let N;
|
|
1681
|
-
return t[29] !== k || t[30] !== d || t[31] !== m || t[32] !== u || t[33] !== p || t[34] !== M ? (N = /* @__PURE__ */
|
|
1508
|
+
return t[29] !== k || t[30] !== d || t[31] !== m || t[32] !== u || t[33] !== p || t[34] !== M ? (N = /* @__PURE__ */ U(g, {
|
|
1682
1509
|
error: k,
|
|
1683
1510
|
helperText: d,
|
|
1684
1511
|
label: u,
|
|
@@ -1686,18 +1513,18 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1686
1513
|
isRequired: m,
|
|
1687
1514
|
children: M
|
|
1688
1515
|
}), t[29] = k, t[30] = d, t[31] = m, t[32] = u, t[33] = p, t[34] = M, t[35] = N) : N = t[35], N;
|
|
1689
|
-
},
|
|
1516
|
+
}, $n = (e) => {
|
|
1690
1517
|
let t = D(27), { field: n } = e, { key: r, label: i, helper_text: a, readonly: o } = n, s = r === void 0 ? "" : r, c = i === void 0 ? "" : i, l = a === void 0 ? "" : a, u = o === void 0 ? !1 : o, d = s, f;
|
|
1691
|
-
t[0] === n ? f = t[1] : (f =
|
|
1518
|
+
t[0] === n ? f = t[1] : (f = h(n), t[0] = n, t[1] = f);
|
|
1692
1519
|
let p;
|
|
1693
1520
|
t[2] !== d || t[3] !== f ? (p = {
|
|
1694
1521
|
name: d,
|
|
1695
1522
|
rules: f
|
|
1696
1523
|
}, t[2] = d, t[3] = f, t[4] = p) : p = t[4];
|
|
1697
|
-
let { field: m, fieldState: _ } =
|
|
1524
|
+
let { field: m, fieldState: _ } = Q(p), { value: v, onBlur: y, onChange: b, ref: x } = m, S = !!n?.required, C = _?.error?.message, w = v || "", T;
|
|
1698
1525
|
t[5] === b ? T = t[6] : (T = (e) => b(e.target.value || null), t[5] = b, t[6] = T);
|
|
1699
1526
|
let O;
|
|
1700
|
-
t[7] !== b || t[8] !== u || t[9] !== v ? (O = v && !u ? /* @__PURE__ */
|
|
1527
|
+
t[7] !== b || t[8] !== u || t[9] !== v ? (O = v && !u ? /* @__PURE__ */ U("button", {
|
|
1701
1528
|
type: "button",
|
|
1702
1529
|
onClick: (e) => {
|
|
1703
1530
|
e.preventDefault(), e.stopPropagation(), b(null);
|
|
@@ -1710,10 +1537,10 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1710
1537
|
padding: 0
|
|
1711
1538
|
},
|
|
1712
1539
|
"aria-label": "Clear time",
|
|
1713
|
-
children: /* @__PURE__ */
|
|
1540
|
+
children: /* @__PURE__ */ U(ce, { size: 16 })
|
|
1714
1541
|
}) : void 0, t[7] = b, t[8] = u, t[9] = v, t[10] = O) : O = t[10];
|
|
1715
1542
|
let k;
|
|
1716
|
-
t[11] !== d || t[12] !== y || t[13] !== u || t[14] !== x || t[15] !== O || t[16] !== w || t[17] !== T ? (k = /* @__PURE__ */
|
|
1543
|
+
t[11] !== d || t[12] !== y || t[13] !== u || t[14] !== x || t[15] !== O || t[16] !== w || t[17] !== T ? (k = /* @__PURE__ */ U(E, {
|
|
1717
1544
|
id: d,
|
|
1718
1545
|
ref: x,
|
|
1719
1546
|
type: "time",
|
|
@@ -1724,7 +1551,7 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1724
1551
|
rightIcon: O
|
|
1725
1552
|
}), t[11] = d, t[12] = y, t[13] = u, t[14] = x, t[15] = O, t[16] = w, t[17] = T, t[18] = k) : k = t[18];
|
|
1726
1553
|
let A;
|
|
1727
|
-
return t[19] !== C || t[20] !== l || t[21] !== S || t[22] !== c || t[23] !== d || t[24] !== u || t[25] !== k ? (A = /* @__PURE__ */
|
|
1554
|
+
return t[19] !== C || t[20] !== l || t[21] !== S || t[22] !== c || t[23] !== d || t[24] !== u || t[25] !== k ? (A = /* @__PURE__ */ U(g, {
|
|
1728
1555
|
helperText: l,
|
|
1729
1556
|
readOnly: u,
|
|
1730
1557
|
error: C,
|
|
@@ -1733,20 +1560,20 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1733
1560
|
label: c,
|
|
1734
1561
|
children: k
|
|
1735
1562
|
}), t[19] = C, t[20] = l, t[21] = S, t[22] = c, t[23] = d, t[24] = u, t[25] = k, t[26] = A) : A = t[26], A;
|
|
1736
|
-
},
|
|
1563
|
+
}, er = "_3j2y9l0", tr = (e) => {
|
|
1737
1564
|
let t = D(28), { field: n } = e, { key: r, label: i, helper_text: a, readonly: o } = n, s = r === void 0 ? "" : r, c = i === void 0 ? "" : i, l = a === void 0 ? "" : a, u = o === void 0 ? !1 : o, d;
|
|
1738
|
-
t[0] === n ? d = t[1] : (d =
|
|
1565
|
+
t[0] === n ? d = t[1] : (d = h(n), t[0] = n, t[1] = d);
|
|
1739
1566
|
let f;
|
|
1740
1567
|
t[2] !== s || t[3] !== d ? (f = {
|
|
1741
1568
|
name: s,
|
|
1742
1569
|
rules: d
|
|
1743
1570
|
}, t[2] = s, t[3] = d, t[4] = f) : f = t[4];
|
|
1744
|
-
let { field:
|
|
1571
|
+
let { field: m, fieldState: _ } = Q(f), { name: v, onBlur: y, onChange: b, ref: x, value: S, disabled: C } = m, { error: w } = _, T = w?.message, E = !!S, O;
|
|
1745
1572
|
t[5] === b ? O = t[6] : (O = (e) => b(e), t[5] = b, t[6] = O);
|
|
1746
1573
|
let k;
|
|
1747
1574
|
t[7] === y ? k = t[8] : (k = () => y(), t[7] = y, t[8] = k);
|
|
1748
1575
|
let A;
|
|
1749
|
-
t[9] !== C || t[10] !== v || t[11] !== E || t[12] !== O || t[13] !== k ? (A = /* @__PURE__ */
|
|
1576
|
+
t[9] !== C || t[10] !== v || t[11] !== E || t[12] !== O || t[13] !== k ? (A = /* @__PURE__ */ U(ln, {
|
|
1750
1577
|
id: v,
|
|
1751
1578
|
name: v,
|
|
1752
1579
|
checked: E,
|
|
@@ -1755,35 +1582,35 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1755
1582
|
disabled: C
|
|
1756
1583
|
}), t[9] = C, t[10] = v, t[11] = E, t[12] = O, t[13] = k, t[14] = A) : A = t[14];
|
|
1757
1584
|
let j;
|
|
1758
|
-
t[15] !== n.required || t[16] !== c || t[17] !== v ? (j = c && /* @__PURE__ */
|
|
1585
|
+
t[15] !== n.required || t[16] !== c || t[17] !== v ? (j = c && /* @__PURE__ */ W(p, {
|
|
1759
1586
|
htmlFor: v,
|
|
1760
1587
|
className: "_3j2y9l1",
|
|
1761
|
-
children: [c, n?.required && /* @__PURE__ */
|
|
1588
|
+
children: [c, n?.required && /* @__PURE__ */ U("span", {
|
|
1762
1589
|
className: "_1ompjs10",
|
|
1763
1590
|
children: "*"
|
|
1764
1591
|
})]
|
|
1765
1592
|
}), t[15] = n.required, t[16] = c, t[17] = v, t[18] = j) : j = t[18];
|
|
1766
1593
|
let M;
|
|
1767
|
-
t[19] !== x || t[20] !== A || t[21] !== j ? (M = /* @__PURE__ */
|
|
1768
|
-
className:
|
|
1594
|
+
t[19] !== x || t[20] !== A || t[21] !== j ? (M = /* @__PURE__ */ W("div", {
|
|
1595
|
+
className: er,
|
|
1769
1596
|
ref: x,
|
|
1770
1597
|
children: [A, j]
|
|
1771
1598
|
}), t[19] = x, t[20] = A, t[21] = j, t[22] = M) : M = t[22];
|
|
1772
1599
|
let N;
|
|
1773
|
-
return t[23] !== l || t[24] !== u || t[25] !== M || t[26] !== T ? (N = /* @__PURE__ */
|
|
1600
|
+
return t[23] !== l || t[24] !== u || t[25] !== M || t[26] !== T ? (N = /* @__PURE__ */ U(g, {
|
|
1774
1601
|
error: T,
|
|
1775
1602
|
helperText: l,
|
|
1776
1603
|
readOnly: u,
|
|
1777
1604
|
children: M
|
|
1778
1605
|
}), t[23] = l, t[24] = u, t[25] = M, t[26] = T, t[27] = N) : N = t[27], N;
|
|
1779
|
-
},
|
|
1606
|
+
}, nr = [
|
|
1780
1607
|
"pdf",
|
|
1781
1608
|
"xls",
|
|
1782
1609
|
"xlsx",
|
|
1783
1610
|
"doc",
|
|
1784
1611
|
"docx",
|
|
1785
1612
|
"csv"
|
|
1786
|
-
],
|
|
1613
|
+
], rr = [
|
|
1787
1614
|
"svg",
|
|
1788
1615
|
"png",
|
|
1789
1616
|
"jpg",
|
|
@@ -1791,11 +1618,11 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1791
1618
|
"webp",
|
|
1792
1619
|
"gif",
|
|
1793
1620
|
"avif"
|
|
1794
|
-
],
|
|
1621
|
+
], ir = ["mpeg", "mp4"], ar = [
|
|
1795
1622
|
"mp3",
|
|
1796
1623
|
"ogg",
|
|
1797
1624
|
"oga"
|
|
1798
|
-
],
|
|
1625
|
+
], or = {
|
|
1799
1626
|
audio: {
|
|
1800
1627
|
"audio/mpeg": [".mp3"],
|
|
1801
1628
|
"audio/ogg": [".oga"]
|
|
@@ -1820,26 +1647,26 @@ var He = ((e) => (t) => t ? Ve(e, t) : e)({
|
|
|
1820
1647
|
"video/mp4": [".mp4"],
|
|
1821
1648
|
"video/mpeg": [".mpeg"]
|
|
1822
1649
|
}
|
|
1823
|
-
},
|
|
1824
|
-
audio:
|
|
1825
|
-
document:
|
|
1826
|
-
image:
|
|
1827
|
-
video:
|
|
1650
|
+
}, sr = {
|
|
1651
|
+
audio: ar,
|
|
1652
|
+
document: nr,
|
|
1653
|
+
image: rr,
|
|
1654
|
+
video: ir
|
|
1828
1655
|
};
|
|
1829
1656
|
[
|
|
1830
|
-
...
|
|
1831
|
-
...
|
|
1832
|
-
...
|
|
1833
|
-
...
|
|
1657
|
+
...sr.audio,
|
|
1658
|
+
...sr.document,
|
|
1659
|
+
...sr.image,
|
|
1660
|
+
...sr.video
|
|
1834
1661
|
], {
|
|
1835
|
-
...
|
|
1836
|
-
...
|
|
1837
|
-
...
|
|
1838
|
-
...
|
|
1662
|
+
...or.audio,
|
|
1663
|
+
...or.document,
|
|
1664
|
+
...or.image,
|
|
1665
|
+
...or.video
|
|
1839
1666
|
};
|
|
1840
1667
|
//#endregion
|
|
1841
1668
|
//#region ../../libraries/react-collection/dist/widgets/uploadWidget/MediaCard.cssm.js
|
|
1842
|
-
var
|
|
1669
|
+
var cr = "_11lzwkh0", lr = "_11lzwkh2", ur = "_11lzwkh3", dr = "_11lzwkh4", fr = "_11lzwkh5", pr = "_11lzwkh9", mr = "_11lzwkha", hr = (e) => {
|
|
1843
1670
|
let t = D(31), { file: n, onDelete: r, onClick: i, showCheckbox: a, isSelected: o, showDelete: c } = e, l = a === void 0 ? !1 : a, u = o === void 0 ? !1 : o, d = c === void 0 ? !0 : c, f;
|
|
1844
1671
|
t[0] !== n || t[1] !== r ? (f = (e) => {
|
|
1845
1672
|
e.stopPropagation(), e.preventDefault(), r?.(n.id);
|
|
@@ -1855,45 +1682,45 @@ var br = "_11lzwkh0", xr = "_11lzwkh2", Sr = "_11lzwkh3", Cr = "_11lzwkh4", wr =
|
|
|
1855
1682
|
let h = m, g;
|
|
1856
1683
|
t[6] !== n?.filename || t[7] !== n?.location ? (g = n?.filename || n?.location?.split("/")?.[n?.location?.split("/").length - 1], t[6] = n?.filename, t[7] = n?.location, t[8] = g) : g = t[8];
|
|
1857
1684
|
let _ = g, v = n?.location || void 0, y = u && "_11lzwkh1", b;
|
|
1858
|
-
t[9] === y ? b = t[10] : (b =
|
|
1685
|
+
t[9] === y ? b = t[10] : (b = G(cr, y), t[9] = y, t[10] = b);
|
|
1859
1686
|
let x;
|
|
1860
|
-
t[11] !== n?.kind || t[12] !== n?.location ? (x = n?.kind === "image" ? /* @__PURE__ */
|
|
1687
|
+
t[11] !== n?.kind || t[12] !== n?.location ? (x = n?.kind === "image" ? /* @__PURE__ */ U("img", {
|
|
1861
1688
|
alt: "uploaded-file-icon",
|
|
1862
|
-
className:
|
|
1689
|
+
className: dr,
|
|
1863
1690
|
src: n?.location
|
|
1864
|
-
}) : /* @__PURE__ */
|
|
1865
|
-
className:
|
|
1866
|
-
children: /* @__PURE__ */
|
|
1691
|
+
}) : /* @__PURE__ */ U("div", {
|
|
1692
|
+
className: lr,
|
|
1693
|
+
children: /* @__PURE__ */ U(te, {
|
|
1867
1694
|
size: 60,
|
|
1868
|
-
className:
|
|
1695
|
+
className: ur
|
|
1869
1696
|
})
|
|
1870
1697
|
}), t[11] = n?.kind, t[12] = n?.location, t[13] = x) : x = t[13];
|
|
1871
1698
|
let S;
|
|
1872
|
-
t[14] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */
|
|
1699
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ U("div", { className: fr }), t[14] = S) : S = t[14];
|
|
1873
1700
|
let C;
|
|
1874
|
-
t[15] !== u || t[16] !== l ? (C = l && /* @__PURE__ */
|
|
1701
|
+
t[15] !== u || t[16] !== l ? (C = l && /* @__PURE__ */ U("div", {
|
|
1875
1702
|
className: "_11lzwkh8",
|
|
1876
|
-
onClick:
|
|
1877
|
-
children: /* @__PURE__ */
|
|
1703
|
+
onClick: gr,
|
|
1704
|
+
children: /* @__PURE__ */ U(ln, { checked: u })
|
|
1878
1705
|
}), t[15] = u, t[16] = l, t[17] = C) : C = t[17];
|
|
1879
1706
|
let w;
|
|
1880
|
-
t[18] !== p || t[19] !== d ? (w = d && /* @__PURE__ */
|
|
1707
|
+
t[18] !== p || t[19] !== d ? (w = d && /* @__PURE__ */ U(s, {
|
|
1881
1708
|
className: "_11lzwkh6",
|
|
1882
1709
|
size: "sm",
|
|
1883
1710
|
variant: "secondary",
|
|
1884
1711
|
onClick: p,
|
|
1885
|
-
children: /* @__PURE__ */
|
|
1712
|
+
children: /* @__PURE__ */ U(ce, { className: "_11lzwkh7" })
|
|
1886
1713
|
}), t[18] = p, t[19] = d, t[20] = w) : w = t[20];
|
|
1887
1714
|
let T;
|
|
1888
|
-
t[21] === _ ? T = t[22] : (T = /* @__PURE__ */
|
|
1889
|
-
className:
|
|
1890
|
-
children: /* @__PURE__ */
|
|
1891
|
-
className:
|
|
1715
|
+
t[21] === _ ? T = t[22] : (T = /* @__PURE__ */ U("div", {
|
|
1716
|
+
className: pr,
|
|
1717
|
+
children: /* @__PURE__ */ U("p", {
|
|
1718
|
+
className: mr,
|
|
1892
1719
|
children: _
|
|
1893
1720
|
})
|
|
1894
1721
|
}), t[21] = _, t[22] = T);
|
|
1895
1722
|
let E;
|
|
1896
|
-
return t[23] !== h || t[24] !== x || t[25] !== C || t[26] !== w || t[27] !== T || t[28] !== v || t[29] !== b ? (E = /* @__PURE__ */
|
|
1723
|
+
return t[23] !== h || t[24] !== x || t[25] !== C || t[26] !== w || t[27] !== T || t[28] !== v || t[29] !== b ? (E = /* @__PURE__ */ W("a", {
|
|
1897
1724
|
href: v,
|
|
1898
1725
|
target: "_blank",
|
|
1899
1726
|
rel: "noopener noreferrer",
|
|
@@ -1908,24 +1735,24 @@ var br = "_11lzwkh0", xr = "_11lzwkh2", Sr = "_11lzwkh3", Cr = "_11lzwkh4", wr =
|
|
|
1908
1735
|
]
|
|
1909
1736
|
}), t[23] = h, t[24] = x, t[25] = C, t[26] = w, t[27] = T, t[28] = v, t[29] = b, t[30] = E) : E = t[30], E;
|
|
1910
1737
|
};
|
|
1911
|
-
function
|
|
1738
|
+
function gr(e) {
|
|
1912
1739
|
e.preventDefault(), e.stopPropagation();
|
|
1913
1740
|
}
|
|
1914
1741
|
//#endregion
|
|
1915
1742
|
//#region ../../libraries/react-collection/dist/widgets/uploadWidget/modal/FileUploadModal.cssm.js
|
|
1916
|
-
var
|
|
1743
|
+
var _r = "vwpjhx0", vr = "vwpjhx1", yr = "vwpjhx2", br = "vwpjhx5", xr = "vwpjhx6", Sr = "vwpjhxb", Cr = (e) => {
|
|
1917
1744
|
let a = D(57), { isOpen: o, setIsOpen: c, files: l, kind: u, allowedExtensions: d, isMultiple: f, isLoading: p, handleUploadFiles: m, handleChange: h } = e, g;
|
|
1918
1745
|
a[0] === c ? g = a[1] : (g = () => c(!1), a[0] = c, a[1] = g);
|
|
1919
1746
|
let y = g, b = l.length, x;
|
|
1920
1747
|
bb0: {
|
|
1921
1748
|
let e;
|
|
1922
1749
|
if (a[2] !== d || a[3] !== u) {
|
|
1923
|
-
let t = u.reduce(
|
|
1750
|
+
let t = u.reduce(wr, {});
|
|
1924
1751
|
if (!d || d.length === 0) {
|
|
1925
1752
|
x = t;
|
|
1926
1753
|
break bb0;
|
|
1927
1754
|
}
|
|
1928
|
-
let n = d.map(
|
|
1755
|
+
let n = d.map(Tr);
|
|
1929
1756
|
e = {};
|
|
1930
1757
|
for (let [r, i] of Object.entries(t)) {
|
|
1931
1758
|
let t = i.filter((e) => n.includes(e));
|
|
@@ -1950,53 +1777,53 @@ var kr = "vwpjhx0", Ar = "vwpjhx1", jr = "vwpjhx2", Mr = "vwpjhx5", Nr = "vwpjhx
|
|
|
1950
1777
|
multiple: f,
|
|
1951
1778
|
maxSize: 26214400,
|
|
1952
1779
|
disabled: p,
|
|
1953
|
-
onDropRejected:
|
|
1780
|
+
onDropRejected: Dr
|
|
1954
1781
|
}, a[8] = S, a[9] = p, a[10] = f, a[11] = w, a[12] = T) : T = a[12];
|
|
1955
|
-
let { getRootProps: E, getInputProps: O, isDragActive: A } =
|
|
1956
|
-
a[13] === Symbol.for("react.memo_cache_sentinel") ? (j =
|
|
1782
|
+
let { getRootProps: E, getInputProps: O, isDragActive: A } = je(T), j;
|
|
1783
|
+
a[13] === Symbol.for("react.memo_cache_sentinel") ? (j = G(_r, _), a[13] = j) : j = a[13];
|
|
1957
1784
|
let M = u?.length > 1 ? "Upload file" : `Upload ${u?.[0]}`, N;
|
|
1958
|
-
a[14] === M ? N = a[15] : (N = /* @__PURE__ */
|
|
1785
|
+
a[14] === M ? N = a[15] : (N = /* @__PURE__ */ U(i, { children: /* @__PURE__ */ U(t, { children: M }) }), a[14] = M, a[15] = N);
|
|
1959
1786
|
let P = p && "vwpjhx3", F;
|
|
1960
|
-
a[16] === P ? F = a[17] : (F =
|
|
1787
|
+
a[16] === P ? F = a[17] : (F = G(yr, P), a[16] = P, a[17] = F);
|
|
1961
1788
|
let I;
|
|
1962
1789
|
a[18] === E ? I = a[19] : (I = E(), a[18] = E, a[19] = I);
|
|
1963
1790
|
let L;
|
|
1964
|
-
a[20] === p ? L = a[21] : (L = p && /* @__PURE__ */
|
|
1791
|
+
a[20] === p ? L = a[21] : (L = p && /* @__PURE__ */ U("div", {
|
|
1965
1792
|
className: "vwpjhx4",
|
|
1966
|
-
children: /* @__PURE__ */
|
|
1793
|
+
children: /* @__PURE__ */ U(v, {})
|
|
1967
1794
|
}), a[20] = p, a[21] = L);
|
|
1968
1795
|
let R = A ? "Drop your files here..." : f && l.length > 0 ? "Drag & Drop here to upload more!" : l?.length > 0 ? "Drag & Drop here to upload another file!" : "Drag & Drop here to upload file!", z;
|
|
1969
|
-
a[22] === R ? z = a[23] : (z = /* @__PURE__ */
|
|
1970
|
-
className:
|
|
1796
|
+
a[22] === R ? z = a[23] : (z = /* @__PURE__ */ U("p", {
|
|
1797
|
+
className: br,
|
|
1971
1798
|
children: R
|
|
1972
1799
|
}), a[22] = R, a[23] = z);
|
|
1973
1800
|
let B = p && "vwpjhx7", V;
|
|
1974
|
-
a[24] === B ? V = a[25] : (V =
|
|
1801
|
+
a[24] === B ? V = a[25] : (V = G(xr, B), a[24] = B, a[25] = V);
|
|
1975
1802
|
let H;
|
|
1976
1803
|
a[26] === O ? H = a[27] : (H = O(), a[26] = O, a[27] = H);
|
|
1977
|
-
let
|
|
1978
|
-
a[28] === H ?
|
|
1979
|
-
let
|
|
1980
|
-
a[30] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1804
|
+
let K;
|
|
1805
|
+
a[28] === H ? K = a[29] : (K = /* @__PURE__ */ U("input", { ...H }), a[28] = H, a[29] = K);
|
|
1806
|
+
let q;
|
|
1807
|
+
a[30] === Symbol.for("react.memo_cache_sentinel") ? (q = /* @__PURE__ */ U(se, { size: 14 }), a[30] = q) : q = a[30];
|
|
1981
1808
|
let J;
|
|
1982
|
-
a[31] ===
|
|
1809
|
+
a[31] === K ? J = a[32] : (J = /* @__PURE__ */ W(s, {
|
|
1983
1810
|
variant: "ghost",
|
|
1984
1811
|
size: "sm",
|
|
1985
1812
|
children: [
|
|
1986
|
-
|
|
1987
|
-
|
|
1813
|
+
K,
|
|
1814
|
+
q,
|
|
1988
1815
|
"Click to upload"
|
|
1989
1816
|
]
|
|
1990
|
-
}), a[31] =
|
|
1817
|
+
}), a[31] = K, a[32] = J);
|
|
1991
1818
|
let Y;
|
|
1992
|
-
a[33] !== V || a[34] !== J ? (Y = /* @__PURE__ */
|
|
1819
|
+
a[33] !== V || a[34] !== J ? (Y = /* @__PURE__ */ U("div", {
|
|
1993
1820
|
className: V,
|
|
1994
1821
|
children: J
|
|
1995
1822
|
}), a[33] = V, a[34] = J, a[35] = Y) : Y = a[35];
|
|
1996
1823
|
let X;
|
|
1997
|
-
a[36] !== I || a[37] !== L || a[38] !== z || a[39] !== Y || a[40] !== F ? (X = /* @__PURE__ */
|
|
1998
|
-
className:
|
|
1999
|
-
children: /* @__PURE__ */
|
|
1824
|
+
a[36] !== I || a[37] !== L || a[38] !== z || a[39] !== Y || a[40] !== F ? (X = /* @__PURE__ */ U("div", {
|
|
1825
|
+
className: vr,
|
|
1826
|
+
children: /* @__PURE__ */ W("div", {
|
|
2000
1827
|
className: F,
|
|
2001
1828
|
...I,
|
|
2002
1829
|
children: [
|
|
@@ -2007,14 +1834,14 @@ var kr = "vwpjhx0", Ar = "vwpjhx1", jr = "vwpjhx2", Mr = "vwpjhx5", Nr = "vwpjhx
|
|
|
2007
1834
|
})
|
|
2008
1835
|
}), a[36] = I, a[37] = L, a[38] = z, a[39] = Y, a[40] = F, a[41] = X) : X = a[41];
|
|
2009
1836
|
let Z;
|
|
2010
|
-
a[42] !== l || a[43] !== h ? (Z = l.length > 0 && /* @__PURE__ */
|
|
1837
|
+
a[42] !== l || a[43] !== h ? (Z = l.length > 0 && /* @__PURE__ */ W("div", {
|
|
2011
1838
|
className: "vwpjhx8",
|
|
2012
|
-
children: [/* @__PURE__ */
|
|
1839
|
+
children: [/* @__PURE__ */ U("h3", {
|
|
2013
1840
|
className: "vwpjhx9",
|
|
2014
1841
|
children: "Selected Files"
|
|
2015
|
-
}), /* @__PURE__ */
|
|
1842
|
+
}), /* @__PURE__ */ U("div", {
|
|
2016
1843
|
className: "vwpjhxa",
|
|
2017
|
-
children: l.map((e) => /* @__PURE__ */
|
|
1844
|
+
children: l.map((e) => /* @__PURE__ */ U(hr, {
|
|
2018
1845
|
file: e,
|
|
2019
1846
|
onDelete: (e) => {
|
|
2020
1847
|
h(l.filter((t) => t.id !== e));
|
|
@@ -2023,16 +1850,16 @@ var kr = "vwpjhx0", Ar = "vwpjhx1", jr = "vwpjhx2", Mr = "vwpjhx5", Nr = "vwpjhx
|
|
|
2023
1850
|
})]
|
|
2024
1851
|
}), a[42] = l, a[43] = h, a[44] = Z) : Z = a[44];
|
|
2025
1852
|
let ee = b === 1 ? `${b} file` : `${b} files`, te;
|
|
2026
|
-
a[45] !== y || a[46] !== ee ? (te = /* @__PURE__ */
|
|
2027
|
-
className:
|
|
2028
|
-
children: /* @__PURE__ */
|
|
1853
|
+
a[45] !== y || a[46] !== ee ? (te = /* @__PURE__ */ U("div", {
|
|
1854
|
+
className: Sr,
|
|
1855
|
+
children: /* @__PURE__ */ W(s, {
|
|
2029
1856
|
variant: "default",
|
|
2030
1857
|
onClick: y,
|
|
2031
1858
|
children: ["Save\xA0", ee]
|
|
2032
1859
|
})
|
|
2033
1860
|
}), a[45] = y, a[46] = ee, a[47] = te) : te = a[47];
|
|
2034
1861
|
let ne;
|
|
2035
|
-
a[48] !== X || a[49] !== Z || a[50] !== te || a[51] !== N ? (ne = /* @__PURE__ */
|
|
1862
|
+
a[48] !== X || a[49] !== Z || a[50] !== te || a[51] !== N ? (ne = /* @__PURE__ */ W(n, {
|
|
2036
1863
|
className: j,
|
|
2037
1864
|
children: [
|
|
2038
1865
|
N,
|
|
@@ -2042,37 +1869,37 @@ var kr = "vwpjhx0", Ar = "vwpjhx1", jr = "vwpjhx2", Mr = "vwpjhx5", Nr = "vwpjhx
|
|
|
2042
1869
|
]
|
|
2043
1870
|
}), a[48] = X, a[49] = Z, a[50] = te, a[51] = N, a[52] = ne) : ne = a[52];
|
|
2044
1871
|
let re;
|
|
2045
|
-
return a[53] !== o || a[54] !== c || a[55] !== ne ? (re = /* @__PURE__ */
|
|
1872
|
+
return a[53] !== o || a[54] !== c || a[55] !== ne ? (re = /* @__PURE__ */ U(r, {
|
|
2046
1873
|
open: o,
|
|
2047
1874
|
onOpenChange: c,
|
|
2048
1875
|
children: ne
|
|
2049
1876
|
}), a[53] = o, a[54] = c, a[55] = ne, a[56] = re) : re = a[56], re;
|
|
2050
1877
|
};
|
|
2051
|
-
function
|
|
1878
|
+
function wr(e, t) {
|
|
2052
1879
|
return {
|
|
2053
1880
|
...e,
|
|
2054
|
-
...
|
|
1881
|
+
...me[t]
|
|
2055
1882
|
};
|
|
2056
1883
|
}
|
|
2057
|
-
function
|
|
1884
|
+
function Tr(e) {
|
|
2058
1885
|
return `.${e}`;
|
|
2059
1886
|
}
|
|
2060
|
-
function
|
|
1887
|
+
function Er(e) {
|
|
2061
1888
|
e.errors.forEach((t) => {
|
|
2062
1889
|
t.code === "file-too-large" && k(`${e.file.name} is bigger than 25MB`);
|
|
2063
1890
|
});
|
|
2064
1891
|
}
|
|
2065
|
-
function
|
|
2066
|
-
e.forEach(
|
|
1892
|
+
function Dr(e) {
|
|
1893
|
+
e.forEach(Er);
|
|
2067
1894
|
}
|
|
2068
1895
|
//#endregion
|
|
2069
1896
|
//#region ../../libraries/react-collection/dist/widgets/uploadWidget/UploadWidget.cssm.js
|
|
2070
|
-
var
|
|
2071
|
-
let a = e.options?.allowed_upload_types, o = a && a.length > 0 ? n.filter((e) => a.includes(e)) : null, c = o && o.length > 0 ? o : n, [l, u] =
|
|
1897
|
+
var Or = "_156u72w0", kr = "_156u72w1", Ar = (e) => Array.isArray(e) && e.every((e) => typeof e == "object" && !!e && "location" in e), jr = ({ field: e, schema: t, kind: n = de, isMultiple: r, uploadContext: i }) => {
|
|
1898
|
+
let a = e.options?.allowed_upload_types, o = a && a.length > 0 ? n.filter((e) => a.includes(e)) : null, c = o && o.length > 0 ? o : n, [l, u] = V(!1), [d, f] = V(!1), { media: p } = j(), { field: { onChange: m, value: _, onBlur: y, disabled: b, ref: x }, fieldState: S } = Q({
|
|
2072
1899
|
name: e?.key || "",
|
|
2073
|
-
rules:
|
|
2074
|
-
}), C = e.options?.allowed_extensions, w =
|
|
2075
|
-
let e = c.flatMap((e) =>
|
|
1900
|
+
rules: h(e)
|
|
1901
|
+
}), C = e.options?.allowed_extensions, w = z(() => {
|
|
1902
|
+
let e = c.flatMap((e) => sr[e]);
|
|
2076
1903
|
return C && C.length > 0 ? e.filter((e) => C.includes(e)) : e;
|
|
2077
1904
|
}, [c, C]), T = Array.isArray(_) ? _ : _ ? [_] : [], D = i ?? (t?.key ? {
|
|
2078
1905
|
module: "collection",
|
|
@@ -2083,7 +1910,7 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2083
1910
|
field_label: e.label || void 0
|
|
2084
1911
|
} : void 0, A = (e) => {
|
|
2085
1912
|
m(r ? e : e?.[0]);
|
|
2086
|
-
},
|
|
1913
|
+
}, M = async (e) => {
|
|
2087
1914
|
let t = new FormData(), n = r ? e : e.slice(0, 1);
|
|
2088
1915
|
if (n.length !== 0) {
|
|
2089
1916
|
n.forEach((e) => {
|
|
@@ -2092,7 +1919,7 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2092
1919
|
}), f(!0);
|
|
2093
1920
|
try {
|
|
2094
1921
|
let e = await p?.mediaBulkUpload(t, {}, k);
|
|
2095
|
-
if (e?.content?.data &&
|
|
1922
|
+
if (e?.content?.data && Ar(e.content.data)) {
|
|
2096
1923
|
let t = e.content.data;
|
|
2097
1924
|
A(r ? [...T, ...t] : t);
|
|
2098
1925
|
}
|
|
@@ -2103,24 +1930,24 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2103
1930
|
}
|
|
2104
1931
|
}
|
|
2105
1932
|
}, { label: N = "", helper_text: P = "", readonly: F = !1 } = e;
|
|
2106
|
-
return /* @__PURE__ */
|
|
1933
|
+
return /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ W(g, {
|
|
2107
1934
|
error: S?.error?.message,
|
|
2108
1935
|
helperText: P,
|
|
2109
1936
|
readOnly: F,
|
|
2110
1937
|
htmlFor: e.key,
|
|
2111
1938
|
isRequired: e?.required,
|
|
2112
1939
|
label: N,
|
|
2113
|
-
children: [/* @__PURE__ */
|
|
2114
|
-
className:
|
|
1940
|
+
children: [/* @__PURE__ */ W("div", {
|
|
1941
|
+
className: Or,
|
|
2115
1942
|
ref: x,
|
|
2116
|
-
children: [/* @__PURE__ */
|
|
1943
|
+
children: [/* @__PURE__ */ U(s, {
|
|
2117
1944
|
size: "icon",
|
|
2118
1945
|
variant: "outline",
|
|
2119
1946
|
disabled: b || F,
|
|
2120
1947
|
onClick: () => u(!0),
|
|
2121
|
-
className:
|
|
2122
|
-
children: /* @__PURE__ */
|
|
2123
|
-
}), /* @__PURE__ */
|
|
1948
|
+
className: kr,
|
|
1949
|
+
children: /* @__PURE__ */ U(se, { size: 15 })
|
|
1950
|
+
}), /* @__PURE__ */ U(E, {
|
|
2124
1951
|
name: "pasteUrl",
|
|
2125
1952
|
placeholder: "Paste your files here...",
|
|
2126
1953
|
onBlur: () => y(),
|
|
@@ -2131,17 +1958,17 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2131
1958
|
let n = e?.getAsFile();
|
|
2132
1959
|
n && t.push(n);
|
|
2133
1960
|
}
|
|
2134
|
-
}), t.length > 0 &&
|
|
1961
|
+
}), t.length > 0 && M(t);
|
|
2135
1962
|
},
|
|
2136
1963
|
disabled: b,
|
|
2137
1964
|
readOnly: F,
|
|
2138
|
-
rightIcon: d ? /* @__PURE__ */
|
|
1965
|
+
rightIcon: d ? /* @__PURE__ */ U(v, { size: 16 }) : void 0
|
|
2139
1966
|
})]
|
|
2140
|
-
}), T.length > 0 && /* @__PURE__ */
|
|
1967
|
+
}), T.length > 0 && /* @__PURE__ */ U("div", {
|
|
2141
1968
|
className: "_156u72w2",
|
|
2142
|
-
children: /* @__PURE__ */
|
|
1969
|
+
children: /* @__PURE__ */ U("div", {
|
|
2143
1970
|
className: "_156u72w3",
|
|
2144
|
-
children: T.map((e) => /* @__PURE__ */
|
|
1971
|
+
children: T.map((e) => /* @__PURE__ */ U(hr, {
|
|
2145
1972
|
file: e,
|
|
2146
1973
|
onDelete: (e) => {
|
|
2147
1974
|
A(T.filter((t) => t.id !== e));
|
|
@@ -2149,7 +1976,7 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2149
1976
|
}, e.id))
|
|
2150
1977
|
})
|
|
2151
1978
|
})]
|
|
2152
|
-
}), /* @__PURE__ */
|
|
1979
|
+
}), /* @__PURE__ */ U(Cr, {
|
|
2153
1980
|
isOpen: l,
|
|
2154
1981
|
setIsOpen: u,
|
|
2155
1982
|
files: T,
|
|
@@ -2157,59 +1984,59 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2157
1984
|
allowedExtensions: C,
|
|
2158
1985
|
isMultiple: r,
|
|
2159
1986
|
isLoading: d,
|
|
2160
|
-
handleUploadFiles:
|
|
1987
|
+
handleUploadFiles: M,
|
|
2161
1988
|
handleChange: A
|
|
2162
1989
|
})] });
|
|
2163
|
-
},
|
|
1990
|
+
}, Mr = (e) => {
|
|
2164
1991
|
let t = D(3), n;
|
|
2165
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */
|
|
1992
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ U(ne, { size: 20 }), t[0] = n) : n = t[0];
|
|
2166
1993
|
let r;
|
|
2167
|
-
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */
|
|
1994
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ U(Qn, {
|
|
2168
1995
|
leftIcon: n,
|
|
2169
1996
|
...e
|
|
2170
1997
|
}), t[1] = e, t[2] = r), r;
|
|
2171
|
-
},
|
|
2172
|
-
TextWidget: $((e) => /* @__PURE__ */
|
|
2173
|
-
NumberWidget: $((e) => /* @__PURE__ */
|
|
1998
|
+
}, Nr = I(() => import("./DateTimeWidget-DHUmirf1.js")), Pr = I(() => import("./PhoneWidget-BQEfbyV4.js")), Fr = I(() => import("./RichTextWidget-CStx2PMn.js")), Ir = {
|
|
1999
|
+
TextWidget: $((e) => /* @__PURE__ */ U(Qn, { ...e })),
|
|
2000
|
+
NumberWidget: $((e) => /* @__PURE__ */ U(Qn, {
|
|
2174
2001
|
type: "number",
|
|
2175
2002
|
step: "any",
|
|
2176
2003
|
...e
|
|
2177
2004
|
})),
|
|
2178
|
-
CurrencyWidget: $((e) => /* @__PURE__ */
|
|
2179
|
-
MultiTextWidget: $((e) => /* @__PURE__ */
|
|
2180
|
-
TextareaWidget: $((e) => /* @__PURE__ */
|
|
2181
|
-
RichTextWidget: $((e) => /* @__PURE__ */
|
|
2182
|
-
EmailWidget: $((e) => /* @__PURE__ */
|
|
2183
|
-
PhoneWidget: $((e) => /* @__PURE__ */
|
|
2184
|
-
URLWidget: $((e) => /* @__PURE__ */
|
|
2185
|
-
DropdownWidget: $((e) => /* @__PURE__ */
|
|
2005
|
+
CurrencyWidget: $((e) => /* @__PURE__ */ U(dn, { ...e })),
|
|
2006
|
+
MultiTextWidget: $((e) => /* @__PURE__ */ U(Mn, { ...e })),
|
|
2007
|
+
TextareaWidget: $((e) => /* @__PURE__ */ U(Zn, { ...e })),
|
|
2008
|
+
RichTextWidget: $((e) => /* @__PURE__ */ U(Fr, { ...e })),
|
|
2009
|
+
EmailWidget: $((e) => /* @__PURE__ */ U(_n, { ...e })),
|
|
2010
|
+
PhoneWidget: $((e) => /* @__PURE__ */ U(Pr, { ...e })),
|
|
2011
|
+
URLWidget: $((e) => /* @__PURE__ */ U(Mr, { ...e })),
|
|
2012
|
+
DropdownWidget: $((e) => /* @__PURE__ */ U(pn, {
|
|
2186
2013
|
isMulti: !1,
|
|
2187
2014
|
...e
|
|
2188
2015
|
})),
|
|
2189
|
-
MultiDropdownWidget: $((e) => /* @__PURE__ */
|
|
2016
|
+
MultiDropdownWidget: $((e) => /* @__PURE__ */ U(pn, {
|
|
2190
2017
|
isMulti: !0,
|
|
2191
2018
|
...e
|
|
2192
2019
|
})),
|
|
2193
|
-
RadioWidget: $((e) => /* @__PURE__ */
|
|
2194
|
-
CheckboxWidget: $((e) => /* @__PURE__ */
|
|
2195
|
-
ToggleCheckboxWidget: $((e) => /* @__PURE__ */
|
|
2196
|
-
SwitchWidget: $((e) => /* @__PURE__ */
|
|
2197
|
-
DateTimeWidget: $((e) => /* @__PURE__ */
|
|
2198
|
-
DateWidget: $((e) => /* @__PURE__ */
|
|
2199
|
-
TimeWidget: $((e) => /* @__PURE__ */
|
|
2200
|
-
GeocoderWidget: $((e) => /* @__PURE__ */
|
|
2201
|
-
MultiGeocoderWidget: $((e) => /* @__PURE__ */
|
|
2202
|
-
ImageUploadWidget: $((e) => /* @__PURE__ */
|
|
2020
|
+
RadioWidget: $((e) => /* @__PURE__ */ U(Hn, { ...e })),
|
|
2021
|
+
CheckboxWidget: $((e) => /* @__PURE__ */ U(un, { ...e })),
|
|
2022
|
+
ToggleCheckboxWidget: $((e) => /* @__PURE__ */ U(tr, { ...e })),
|
|
2023
|
+
SwitchWidget: $((e) => /* @__PURE__ */ U(Yn, { ...e })),
|
|
2024
|
+
DateTimeWidget: $((e) => /* @__PURE__ */ U(Nr, { ...e })),
|
|
2025
|
+
DateWidget: $((e) => /* @__PURE__ */ U(Nr, { ...e })),
|
|
2026
|
+
TimeWidget: $((e) => /* @__PURE__ */ U($n, { ...e })),
|
|
2027
|
+
GeocoderWidget: $((e) => /* @__PURE__ */ U(yn, { ...e })),
|
|
2028
|
+
MultiGeocoderWidget: $((e) => /* @__PURE__ */ U(En, { ...e })),
|
|
2029
|
+
ImageUploadWidget: $((e) => /* @__PURE__ */ U(jr, {
|
|
2203
2030
|
kind: ["image"],
|
|
2204
2031
|
isMultiple: !1,
|
|
2205
2032
|
...e
|
|
2206
2033
|
})),
|
|
2207
|
-
MultiImageUploadWidget: $((e) => /* @__PURE__ */
|
|
2034
|
+
MultiImageUploadWidget: $((e) => /* @__PURE__ */ U(jr, {
|
|
2208
2035
|
kind: ["image"],
|
|
2209
2036
|
isMultiple: !0,
|
|
2210
2037
|
...e
|
|
2211
2038
|
})),
|
|
2212
|
-
FileUploadWidget: $((e) => /* @__PURE__ */
|
|
2039
|
+
FileUploadWidget: $((e) => /* @__PURE__ */ U(jr, {
|
|
2213
2040
|
kind: [
|
|
2214
2041
|
"audio",
|
|
2215
2042
|
"video",
|
|
@@ -2219,7 +2046,7 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2219
2046
|
isMultiple: !1,
|
|
2220
2047
|
...e
|
|
2221
2048
|
})),
|
|
2222
|
-
MultiFileUploadWidget: $((e) => /* @__PURE__ */
|
|
2049
|
+
MultiFileUploadWidget: $((e) => /* @__PURE__ */ U(jr, {
|
|
2223
2050
|
kind: [
|
|
2224
2051
|
"audio",
|
|
2225
2052
|
"video",
|
|
@@ -2229,7 +2056,7 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2229
2056
|
isMultiple: !0,
|
|
2230
2057
|
...e
|
|
2231
2058
|
}))
|
|
2232
|
-
},
|
|
2059
|
+
}, Lr = (e) => {
|
|
2233
2060
|
let t = D(9), n, r;
|
|
2234
2061
|
t[0] === e ? (n = t[1], r = t[2]) : ({widgets: r, ...n} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
2235
2062
|
let { field: i } = n, { field_interface: a, key: o } = i;
|
|
@@ -2238,86 +2065,86 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2238
2065
|
let e = r[a];
|
|
2239
2066
|
if (e) {
|
|
2240
2067
|
let r;
|
|
2241
|
-
return t[3] !== e || t[4] !== n ? (r = /* @__PURE__ */
|
|
2068
|
+
return t[3] !== e || t[4] !== n ? (r = /* @__PURE__ */ U(e, { ...n }), t[3] = e, t[4] = n, t[5] = r) : r = t[5], r;
|
|
2242
2069
|
}
|
|
2243
2070
|
}
|
|
2244
|
-
let s =
|
|
2071
|
+
let s = Ir[a];
|
|
2245
2072
|
if (s) {
|
|
2246
2073
|
let e;
|
|
2247
|
-
return t[6] !== s || t[7] !== n ? (e = /* @__PURE__ */
|
|
2074
|
+
return t[6] !== s || t[7] !== n ? (e = /* @__PURE__ */ U(s, { ...n }), t[6] = s, t[7] = n, t[8] = e) : e = t[8], e;
|
|
2248
2075
|
}
|
|
2249
2076
|
return null;
|
|
2250
|
-
},
|
|
2077
|
+
}, Rr = (e) => {
|
|
2251
2078
|
let t = D(25), n, r, i;
|
|
2252
2079
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({field: n, schema: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
2253
2080
|
let { key: a, label: o, field_interface: s, fields: c } = n, l = a === void 0 ? "" : a, u = o === void 0 ? "" : o, d = s === void 0 ? "" : s, f;
|
|
2254
2081
|
t[4] === c ? f = t[5] : (f = c === void 0 ? [] : c, t[4] = c, t[5] = f);
|
|
2255
|
-
let
|
|
2082
|
+
let p = f;
|
|
2256
2083
|
if (!d || !l) return null;
|
|
2257
2084
|
let h = n?.required, g;
|
|
2258
|
-
t[6] !== u || t[7] !== h ? (g = /* @__PURE__ */
|
|
2085
|
+
t[6] !== u || t[7] !== h ? (g = /* @__PURE__ */ U(m, {
|
|
2259
2086
|
label: u,
|
|
2260
2087
|
isRequired: h
|
|
2261
2088
|
}), t[6] = u, t[7] = h, t[8] = g) : g = t[8];
|
|
2262
2089
|
let _;
|
|
2263
|
-
if (t[9] !== n.id || t[10] !==
|
|
2090
|
+
if (t[9] !== n.id || t[10] !== p || t[11] !== l || t[12] !== r || t[13] !== i) {
|
|
2264
2091
|
let e;
|
|
2265
|
-
t[15] !== n.id || t[16] !== l || t[17] !== r || t[18] !== i ? (e = (e) => /* @__PURE__ */
|
|
2092
|
+
t[15] !== n.id || t[16] !== l || t[17] !== r || t[18] !== i ? (e = (e) => /* @__PURE__ */ U(zr, {
|
|
2266
2093
|
field: {
|
|
2267
2094
|
...e,
|
|
2268
2095
|
key: `${l}.${e?.key}`
|
|
2269
2096
|
},
|
|
2270
2097
|
schema: i,
|
|
2271
2098
|
...r
|
|
2272
|
-
}, `common-fields-${n?.id}-${e?.id}`), t[15] = n.id, t[16] = l, t[17] = r, t[18] = i, t[19] = e) : e = t[19], _ =
|
|
2099
|
+
}, `common-fields-${n?.id}-${e?.id}`), t[15] = n.id, t[16] = l, t[17] = r, t[18] = i, t[19] = e) : e = t[19], _ = p.map(e), t[9] = n.id, t[10] = p, t[11] = l, t[12] = r, t[13] = i, t[14] = _;
|
|
2273
2100
|
} else _ = t[14];
|
|
2274
2101
|
let v;
|
|
2275
|
-
t[20] === _ ? v = t[21] : (v = /* @__PURE__ */
|
|
2276
|
-
className:
|
|
2102
|
+
t[20] === _ ? v = t[21] : (v = /* @__PURE__ */ U("div", {
|
|
2103
|
+
className: xt,
|
|
2277
2104
|
children: _
|
|
2278
2105
|
}), t[20] = _, t[21] = v);
|
|
2279
2106
|
let y;
|
|
2280
|
-
return t[22] !== g || t[23] !== v ? (y = /* @__PURE__ */
|
|
2281
|
-
className:
|
|
2107
|
+
return t[22] !== g || t[23] !== v ? (y = /* @__PURE__ */ W("div", {
|
|
2108
|
+
className: ut,
|
|
2282
2109
|
children: [g, v]
|
|
2283
2110
|
}), t[22] = g, t[23] = v, t[24] = y) : y = t[24], y;
|
|
2284
|
-
},
|
|
2111
|
+
}, zr = (e) => {
|
|
2285
2112
|
let t = D(16), n, r;
|
|
2286
2113
|
t[0] === e ? (n = t[1], r = t[2]) : ({widgets: r, ...n} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
2287
|
-
let i =
|
|
2114
|
+
let i = ct(n.schema, n.field), { field_interface: a, key: o, hidden: s } = i, c = a === void 0 ? "" : a;
|
|
2288
2115
|
if (!c || !(o !== void 0 && o) || s) return null;
|
|
2289
2116
|
switch (c) {
|
|
2290
|
-
case
|
|
2117
|
+
case le.ArrayWidget: {
|
|
2291
2118
|
let e;
|
|
2292
|
-
return t[3] !== i || t[4] !== n ? (e = /* @__PURE__ */
|
|
2119
|
+
return t[3] !== i || t[4] !== n ? (e = /* @__PURE__ */ U(jt, {
|
|
2293
2120
|
...n,
|
|
2294
2121
|
field: i
|
|
2295
2122
|
}), t[3] = i, t[4] = n, t[5] = e) : e = t[5], e;
|
|
2296
2123
|
}
|
|
2297
|
-
case
|
|
2124
|
+
case le.RecordWidget: {
|
|
2298
2125
|
let e;
|
|
2299
|
-
return t[6] !== i || t[7] !== n ? (e = /* @__PURE__ */
|
|
2126
|
+
return t[6] !== i || t[7] !== n ? (e = /* @__PURE__ */ U(Rr, {
|
|
2300
2127
|
...n,
|
|
2301
2128
|
field: i
|
|
2302
2129
|
}), t[6] = i, t[7] = n, t[8] = e) : e = t[8], e;
|
|
2303
2130
|
}
|
|
2304
|
-
case
|
|
2131
|
+
case le.CollectionWidget: {
|
|
2305
2132
|
let e;
|
|
2306
|
-
return t[9] !== i || t[10] !== n ? (e = /* @__PURE__ */
|
|
2133
|
+
return t[9] !== i || t[10] !== n ? (e = /* @__PURE__ */ U(nn, {
|
|
2307
2134
|
...n,
|
|
2308
2135
|
field: i
|
|
2309
2136
|
}), t[9] = i, t[10] = n, t[11] = e) : e = t[11], e;
|
|
2310
2137
|
}
|
|
2311
2138
|
default: {
|
|
2312
2139
|
let e;
|
|
2313
|
-
return t[12] !== i || t[13] !== n || t[14] !== r ? (e = /* @__PURE__ */
|
|
2140
|
+
return t[12] !== i || t[13] !== n || t[14] !== r ? (e = /* @__PURE__ */ U(Lr, {
|
|
2314
2141
|
widgets: r,
|
|
2315
2142
|
...n,
|
|
2316
2143
|
field: i
|
|
2317
2144
|
}), t[12] = i, t[13] = n, t[14] = r, t[15] = e) : e = t[15], e;
|
|
2318
2145
|
}
|
|
2319
2146
|
}
|
|
2320
|
-
},
|
|
2147
|
+
}, Br = "r6cfdr0", Vr = F({ themeClass: "" }), Hr = d(Fe({
|
|
2321
2148
|
form: {
|
|
2322
2149
|
maxWidth: "800px",
|
|
2323
2150
|
labelFontSize: "1.5rem",
|
|
@@ -2330,14 +2157,14 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2330
2157
|
borderRadius: "4px"
|
|
2331
2158
|
},
|
|
2332
2159
|
checkbox: { labelFontSize: "1.125rem" }
|
|
2333
|
-
})),
|
|
2160
|
+
})), Ur = (e) => {
|
|
2334
2161
|
let t = D(30), n, r, i, o, s, c, l;
|
|
2335
2162
|
t[0] === e ? (n = t[1], r = t[2], i = t[3], o = t[4], s = t[5], c = t[6], l = t[7]) : ({children: n, className: r, style: c, cssReset: i, variant: l, portalToThemeRoot: o, ...s} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = o, t[5] = s, t[6] = c, t[7] = l);
|
|
2336
2163
|
let u = l === "single-field" || l === "steps-2", d;
|
|
2337
|
-
t[8] === r ? d = t[9] : (d =
|
|
2164
|
+
t[8] === r ? d = t[9] : (d = G(f, Ie, r), t[8] = r, t[9] = d);
|
|
2338
2165
|
let p = d, m;
|
|
2339
2166
|
t[10] !== u || t[11] !== c ? (m = u ? {
|
|
2340
|
-
...
|
|
2167
|
+
...Hr,
|
|
2341
2168
|
...c
|
|
2342
2169
|
} : c, t[10] = u, t[11] = c, t[12] = m) : m = t[12];
|
|
2343
2170
|
let h = m, g;
|
|
@@ -2347,17 +2174,17 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2347
2174
|
cssReset: i
|
|
2348
2175
|
}, t[13] = p, t[14] = h, t[15] = i, t[16] = g) : g = t[16];
|
|
2349
2176
|
let _;
|
|
2350
|
-
t[17] !== n || t[18] !== u ? (_ = u ? /* @__PURE__ */
|
|
2351
|
-
className:
|
|
2177
|
+
t[17] !== n || t[18] !== u ? (_ = u ? /* @__PURE__ */ U("div", {
|
|
2178
|
+
className: Br,
|
|
2352
2179
|
children: n
|
|
2353
2180
|
}) : n, t[17] = n, t[18] = u, t[19] = _) : _ = t[19];
|
|
2354
2181
|
let v;
|
|
2355
|
-
t[20] !== g || t[21] !== _ ? (v = /* @__PURE__ */
|
|
2182
|
+
t[20] !== g || t[21] !== _ ? (v = /* @__PURE__ */ U(Vr.Provider, {
|
|
2356
2183
|
value: g,
|
|
2357
2184
|
children: _
|
|
2358
2185
|
}), t[20] = g, t[21] = _, t[22] = v) : v = t[22];
|
|
2359
2186
|
let y;
|
|
2360
|
-
return t[23] !== p || t[24] !== h || t[25] !== i || t[26] !== o || t[27] !== s || t[28] !== v ? (y = /* @__PURE__ */
|
|
2187
|
+
return t[23] !== p || t[24] !== h || t[25] !== i || t[26] !== o || t[27] !== s || t[28] !== v ? (y = /* @__PURE__ */ U(a, {
|
|
2361
2188
|
...s,
|
|
2362
2189
|
className: p,
|
|
2363
2190
|
cssReset: i,
|
|
@@ -2365,20 +2192,14 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2365
2192
|
portalToThemeRoot: o,
|
|
2366
2193
|
children: v
|
|
2367
2194
|
}), t[23] = p, t[24] = h, t[25] = i, t[26] = o, t[27] = s, t[28] = v, t[29] = y) : y = t[29], y;
|
|
2368
|
-
},
|
|
2369
|
-
|
|
2370
|
-
return z($r);
|
|
2371
|
-
} catch {
|
|
2372
|
-
return null;
|
|
2373
|
-
}
|
|
2374
|
-
}, ri = "_1dzarb20", ii = "_1dzarb21", ai = "_1dzarb23", oi = "_1dzarb24", si = "_1dzarb25", ci = "_1dzarb26", li = ({ hiddenFields: e, isLoading: t, initialValues: n, onSubmit: r, schema: i, uiConfig: a, submitButtonConfig: o, containerStyles: c, isDisabled: l, theme: u, enableVerification: d = !0 }) => {
|
|
2375
|
-
let f = V(() => {
|
|
2195
|
+
}, Wr = "_1dzarb20", Gr = "_1dzarb21", Kr = "_1dzarb23", qr = "_1dzarb24", Jr = "_1dzarb25", Yr = "_1dzarb26", Xr = ({ hiddenFields: e, isLoading: t, initialValues: n, onSubmit: r, schema: i, uiConfig: a, submitButtonConfig: o, containerStyles: c, isDisabled: l, theme: u, enableVerification: d = !0 }) => {
|
|
2196
|
+
let f = z(() => {
|
|
2376
2197
|
if (i) {
|
|
2377
2198
|
let t = { ...i };
|
|
2378
2199
|
return t.sections = t?.sections?.map((t) => (t.fields = t?.fields?.map((t) => ((e?.includes(t?.key) || e?.includes(t?.id)) && (t.hidden = !0), t)), t)), t;
|
|
2379
2200
|
}
|
|
2380
2201
|
return null;
|
|
2381
|
-
}, [i]), p =
|
|
2202
|
+
}, [i]), p = be({
|
|
2382
2203
|
mode: "onTouched",
|
|
2383
2204
|
disabled: l,
|
|
2384
2205
|
defaultValues: {},
|
|
@@ -2386,47 +2207,47 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2386
2207
|
}), { formState: { isSubmitting: m } } = p, h = (e) => {
|
|
2387
2208
|
r && r(e);
|
|
2388
2209
|
};
|
|
2389
|
-
|
|
2210
|
+
R(() => {
|
|
2390
2211
|
if (f) {
|
|
2391
2212
|
let e = {
|
|
2392
|
-
...
|
|
2213
|
+
...nt(i),
|
|
2393
2214
|
...n
|
|
2394
2215
|
};
|
|
2395
2216
|
p.reset(e);
|
|
2396
2217
|
}
|
|
2397
2218
|
}, [f]);
|
|
2398
2219
|
let g = t || m;
|
|
2399
|
-
return f ? /* @__PURE__ */
|
|
2220
|
+
return f ? /* @__PURE__ */ U(_e, {
|
|
2400
2221
|
...p,
|
|
2401
|
-
children: /* @__PURE__ */
|
|
2222
|
+
children: /* @__PURE__ */ U(Ur, {
|
|
2402
2223
|
...u || {},
|
|
2403
|
-
children: /* @__PURE__ */
|
|
2404
|
-
className:
|
|
2405
|
-
children: [a?.hideFormHeading ? null : /* @__PURE__ */
|
|
2406
|
-
className:
|
|
2224
|
+
children: /* @__PURE__ */ W("div", {
|
|
2225
|
+
className: Wr,
|
|
2226
|
+
children: [a?.hideFormHeading ? null : /* @__PURE__ */ U("h1", {
|
|
2227
|
+
className: G(Gr),
|
|
2407
2228
|
children: "Create new"
|
|
2408
|
-
}), /* @__PURE__ */
|
|
2409
|
-
className:
|
|
2410
|
-
children: /* @__PURE__ */
|
|
2411
|
-
className:
|
|
2229
|
+
}), /* @__PURE__ */ U("div", {
|
|
2230
|
+
className: G(Kr, c),
|
|
2231
|
+
children: /* @__PURE__ */ W("form", {
|
|
2232
|
+
className: G(qr, t && "_1dzarb27"),
|
|
2412
2233
|
id: "collection-form",
|
|
2413
2234
|
onSubmit: p.handleSubmit(h),
|
|
2414
|
-
children: [i?.sections?.map((e) =>
|
|
2415
|
-
className:
|
|
2416
|
-
children: [!a?.hideSectionHeadings && /* @__PURE__ */
|
|
2235
|
+
children: [i?.sections?.map((e) => ot(e?.fields || []) ? null : /* @__PURE__ */ W("div", {
|
|
2236
|
+
className: Jr,
|
|
2237
|
+
children: [!a?.hideSectionHeadings && /* @__PURE__ */ U("p", {
|
|
2417
2238
|
className: "_1dzarb28",
|
|
2418
2239
|
children: e?.label
|
|
2419
|
-
}), /* @__PURE__ */
|
|
2420
|
-
className:
|
|
2421
|
-
children: e?.fields?.map((e) => /* @__PURE__ */
|
|
2240
|
+
}), /* @__PURE__ */ U("div", {
|
|
2241
|
+
className: Yr,
|
|
2242
|
+
children: e?.fields?.map((e) => /* @__PURE__ */ U(zr, {
|
|
2422
2243
|
field: e,
|
|
2423
2244
|
schema: i,
|
|
2424
2245
|
settings: { enableVerification: d }
|
|
2425
2246
|
}, e?.key))
|
|
2426
2247
|
})]
|
|
2427
|
-
}, e.id)), o?.show && /* @__PURE__ */
|
|
2248
|
+
}, e.id)), o?.show && /* @__PURE__ */ U("div", {
|
|
2428
2249
|
className: "_1dzarb29",
|
|
2429
|
-
children: /* @__PURE__ */
|
|
2250
|
+
children: /* @__PURE__ */ U(s, {
|
|
2430
2251
|
className: o?.styles,
|
|
2431
2252
|
disabled: l || g,
|
|
2432
2253
|
type: "submit",
|
|
@@ -2438,26 +2259,26 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2438
2259
|
})
|
|
2439
2260
|
})
|
|
2440
2261
|
}) : null;
|
|
2441
|
-
},
|
|
2262
|
+
}, Zr = N.createContext({
|
|
2442
2263
|
schema: null,
|
|
2443
2264
|
submitButtonConfig: { show: !0 }
|
|
2444
|
-
}),
|
|
2265
|
+
}), Qr = (e) => {
|
|
2445
2266
|
let t = D(14), n, r, i, a;
|
|
2446
2267
|
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4]) : ({children: n, theme: i, variant: a, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a);
|
|
2447
2268
|
let o;
|
|
2448
2269
|
t[5] === r ? o = t[6] : (o = { ...r }, t[5] = r, t[6] = o);
|
|
2449
2270
|
let s;
|
|
2450
|
-
t[7] !== n || t[8] !== i || t[9] !== a ? (s = /* @__PURE__ */
|
|
2271
|
+
t[7] !== n || t[8] !== i || t[9] !== a ? (s = /* @__PURE__ */ U(Ur, {
|
|
2451
2272
|
...i,
|
|
2452
2273
|
variant: a,
|
|
2453
2274
|
children: n
|
|
2454
2275
|
}), t[7] = n, t[8] = i, t[9] = a, t[10] = s) : s = t[10];
|
|
2455
2276
|
let c;
|
|
2456
|
-
return t[11] !== o || t[12] !== s ? (c = /* @__PURE__ */
|
|
2277
|
+
return t[11] !== o || t[12] !== s ? (c = /* @__PURE__ */ U(Zr.Provider, {
|
|
2457
2278
|
value: o,
|
|
2458
2279
|
children: s
|
|
2459
2280
|
}), t[11] = o, t[12] = s, t[13] = c) : c = t[13], c;
|
|
2460
|
-
},
|
|
2281
|
+
}, $r = () => N.useContext(Zr), ei = (e, t) => {
|
|
2461
2282
|
if (Array.isArray(e) && e.length > 0) {
|
|
2462
2283
|
let n = 0;
|
|
2463
2284
|
for (let r of e) n += 1, r?.param && t && t(r?.param, {
|
|
@@ -2465,21 +2286,21 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2465
2286
|
message: r?.message
|
|
2466
2287
|
}, { shouldFocus: n === 0 });
|
|
2467
2288
|
}
|
|
2468
|
-
},
|
|
2289
|
+
}, ti = {
|
|
2469
2290
|
FORM_DIRTY: "form-dirty",
|
|
2470
2291
|
FORM_VALUES: "form-values"
|
|
2471
|
-
},
|
|
2472
|
-
let t = localStorage.getItem(`${e}-${
|
|
2292
|
+
}, ni = (e) => {
|
|
2293
|
+
let t = localStorage.getItem(`${e}-${ti.FORM_VALUES}`);
|
|
2473
2294
|
return t ? JSON.parse(t) : {};
|
|
2474
|
-
},
|
|
2475
|
-
localStorage.setItem(`${e}-${
|
|
2476
|
-
},
|
|
2477
|
-
localStorage.removeItem(`${e}-${
|
|
2478
|
-
},
|
|
2479
|
-
let o =
|
|
2295
|
+
}, ri = (e, t) => {
|
|
2296
|
+
localStorage.setItem(`${e}-${ti.FORM_VALUES}`, JSON.stringify(t));
|
|
2297
|
+
}, ii = (e) => {
|
|
2298
|
+
localStorage.removeItem(`${e}-${ti.FORM_VALUES}`);
|
|
2299
|
+
}, ai = ({ schema: e, originalSchema: t, onSubmitSuccess: n, onSubmitError: r, onInit: i, setFormErrorAfterSubmit: a = !0 }) => {
|
|
2300
|
+
let o = z(() => e, [e]), s = z(() => t || o, [t, o]), c = j(), { toastConfig: l, onSuccess: u, onError: d, isLoggedIn: f, isDisabled: p, externalInitialValues: m = {}, account: h, preview: g } = $r(), [_, v] = V({
|
|
2480
2301
|
contentId: null,
|
|
2481
2302
|
publishedId: null
|
|
2482
|
-
}), [y, b] =
|
|
2303
|
+
}), [y, b] = V(!1), [x, S] = V(!1), [C, w] = V(!1), T = B({}), E = B({}), D = (e) => {
|
|
2483
2304
|
if (!o?.sections) return null;
|
|
2484
2305
|
for (let t of o.sections) for (let n of t?.fields ?? []) if (n?.key === e) return n?.kind ?? null;
|
|
2485
2306
|
return null;
|
|
@@ -2499,7 +2320,7 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2499
2320
|
}
|
|
2500
2321
|
}
|
|
2501
2322
|
} catch {}
|
|
2502
|
-
let t =
|
|
2323
|
+
let t = nt(o), n = {};
|
|
2503
2324
|
h && o && (o.email_field && h.email && (n[o.email_field] = h.email), o.mobile_field && h.mobile && (n[o.mobile_field] = h.mobile));
|
|
2504
2325
|
let r = {
|
|
2505
2326
|
...m || {},
|
|
@@ -2511,16 +2332,16 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2511
2332
|
...r,
|
|
2512
2333
|
...T.current
|
|
2513
2334
|
};
|
|
2514
|
-
},
|
|
2335
|
+
}, M = be({
|
|
2515
2336
|
mode: "onTouched",
|
|
2516
2337
|
disabled: p
|
|
2517
|
-
}), { formState: N } =
|
|
2338
|
+
}), { formState: N } = M, P = (e) => {
|
|
2518
2339
|
T.current = {
|
|
2519
2340
|
...T.current || {},
|
|
2520
2341
|
...e
|
|
2521
2342
|
};
|
|
2522
2343
|
};
|
|
2523
|
-
return
|
|
2344
|
+
return R(() => {
|
|
2524
2345
|
if (o && c?.collection) {
|
|
2525
2346
|
if (k(), !_.contentId && !_.publishedId && !g) {
|
|
2526
2347
|
let e = o?.allow_multiple === !1;
|
|
@@ -2552,29 +2373,29 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2552
2373
|
}));
|
|
2553
2374
|
}
|
|
2554
2375
|
}).catch((e) => (c?.logger?.error("Failed to get draft entry", { exception: e }), null)).finally(() => {
|
|
2555
|
-
E.current = { ...T.current },
|
|
2376
|
+
E.current = { ...T.current }, M.reset({ ...T?.current }), i?.(T.current), b(!1);
|
|
2556
2377
|
});
|
|
2557
2378
|
return;
|
|
2558
2379
|
}
|
|
2559
|
-
let t =
|
|
2380
|
+
let t = ni(o?.key);
|
|
2560
2381
|
t && (T.current = {
|
|
2561
2382
|
...T.current || {},
|
|
2562
2383
|
...t
|
|
2563
2384
|
});
|
|
2564
2385
|
}
|
|
2565
2386
|
}
|
|
2566
|
-
E.current = { ...T.current },
|
|
2387
|
+
E.current = { ...T.current }, M.reset({ ...T?.current }), i?.(T.current);
|
|
2567
2388
|
}
|
|
2568
|
-
}, [o, f]),
|
|
2389
|
+
}, [o, f]), R(() => {
|
|
2569
2390
|
let { isSubmitSuccessful: e, isValid: t } = N;
|
|
2570
|
-
e && t && (E.current = { ...T.current },
|
|
2391
|
+
e && t && (E.current = { ...T.current }, M.reset({
|
|
2571
2392
|
...T?.current,
|
|
2572
2393
|
__captcha: "verified"
|
|
2573
2394
|
}), i?.(T.current));
|
|
2574
|
-
}, [N]),
|
|
2575
|
-
o && (_.contentId || _.publishedId) &&
|
|
2395
|
+
}, [N]), R(() => {
|
|
2396
|
+
o && (_.contentId || _.publishedId) && ii(o?.key);
|
|
2576
2397
|
}, [_]), {
|
|
2577
|
-
methods:
|
|
2398
|
+
methods: M,
|
|
2578
2399
|
isLoading: y,
|
|
2579
2400
|
isError: x,
|
|
2580
2401
|
contentId: _.contentId,
|
|
@@ -2589,13 +2410,13 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2589
2410
|
appendFormValues: P,
|
|
2590
2411
|
submitToRemote: async (e) => {
|
|
2591
2412
|
if (P(e), !(g || !c?.collection || !s)) try {
|
|
2592
|
-
let e =
|
|
2413
|
+
let e = at(T?.current, s, E.current), t = null;
|
|
2593
2414
|
if (t = _.publishedId ? await c?.collection?.editDraftEntry(s?.key, _.publishedId, e) : _.contentId ? await c?.collection?.submitDraftEntry(s?.key, e) : await c?.collection?.saveCollectionData({
|
|
2594
2415
|
collection_id: s?.id,
|
|
2595
2416
|
data: e
|
|
2596
2417
|
}), t?.content?.data) {
|
|
2597
2418
|
let e = t?.content?.meta?.booking_config?.enabled;
|
|
2598
|
-
l?.showSuccessToast && !(l?.suppressOnBooking && e) &&
|
|
2419
|
+
l?.showSuccessToast && !(l?.suppressOnBooking && e) && A(l.successToastText || "Form submitted successfully."), T.current = {}, k(), ii(s?.key), v({
|
|
2599
2420
|
contentId: null,
|
|
2600
2421
|
publishedId: null
|
|
2601
2422
|
}), w(!0), u && u({
|
|
@@ -2607,17 +2428,17 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2607
2428
|
}
|
|
2608
2429
|
throw Error("Failed to save form details, API response invalid");
|
|
2609
2430
|
} catch (e) {
|
|
2610
|
-
O(e), e instanceof
|
|
2431
|
+
O(e), e instanceof ue ? (e?.hasFieldErrors && a && ei(e?.fieldErrors, M.setError), r && r(e.fieldErrors || []), d && d(e)) : d && d(e?.response?.data || e);
|
|
2611
2432
|
}
|
|
2612
2433
|
},
|
|
2613
2434
|
showSuccessOverlay: C,
|
|
2614
2435
|
dismissSuccessOverlay: () => w(!1)
|
|
2615
2436
|
};
|
|
2616
|
-
},
|
|
2617
|
-
return
|
|
2437
|
+
}, oi = "a2n8870", si = "a2n8871", ci = "a2n8872", li = "a2n8873", ui = "a2n8874", di = "a2n8875", fi = "a2n8876", pi = "https://static.levocdn.com/WLZ1TXTD/Levo-Logo-moxa93IxlVi0W.webp", mi = I(() => import("altcha").then(() => ({ default: function({ widgetRef: e, client: t, onStateChange: n }) {
|
|
2438
|
+
return R(() => {
|
|
2618
2439
|
let { current: t } = e;
|
|
2619
2440
|
if (t) return t.addEventListener("statechange", n), () => t.removeEventListener("statechange", n);
|
|
2620
|
-
}, [n]), /* @__PURE__ */
|
|
2441
|
+
}, [n]), /* @__PURE__ */ U("altcha-widget", {
|
|
2621
2442
|
ref: e,
|
|
2622
2443
|
style: {
|
|
2623
2444
|
"--altcha-max-width": "100%",
|
|
@@ -2634,66 +2455,91 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2634
2455
|
challengeurl: `${t.apiUrl}/v1/identity/captcha/create-challenge`,
|
|
2635
2456
|
verifyurl: `${t.apiUrl}/v1/identity/captcha/verify-challenge`
|
|
2636
2457
|
});
|
|
2637
|
-
} }))),
|
|
2458
|
+
} }))), hi = () => {
|
|
2638
2459
|
let e = D(1), t;
|
|
2639
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */
|
|
2640
|
-
className:
|
|
2641
|
-
children: /* @__PURE__ */
|
|
2642
|
-
|
|
2460
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ W("div", {
|
|
2461
|
+
className: ci,
|
|
2462
|
+
children: [/* @__PURE__ */ U("img", {
|
|
2463
|
+
alt: "Levo",
|
|
2464
|
+
src: pi,
|
|
2465
|
+
width: 16,
|
|
2466
|
+
height: 16,
|
|
2467
|
+
className: li
|
|
2468
|
+
}), /* @__PURE__ */ U("span", {
|
|
2469
|
+
className: ui,
|
|
2470
|
+
children: "Levo CAPTCHA"
|
|
2471
|
+
})]
|
|
2472
|
+
}), e[0] = t) : t = e[0], t;
|
|
2473
|
+
}, gi = () => {
|
|
2474
|
+
let e = D(1), t;
|
|
2475
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ U("div", {
|
|
2476
|
+
className: di,
|
|
2477
|
+
children: /* @__PURE__ */ U("span", {
|
|
2478
|
+
className: fi,
|
|
2643
2479
|
children: "Loading verification..."
|
|
2644
2480
|
})
|
|
2645
2481
|
}), e[0] = t) : t = e[0], t;
|
|
2646
|
-
},
|
|
2647
|
-
let e = D(
|
|
2482
|
+
}, _i = () => {
|
|
2483
|
+
let e = D(19), { disableCaptcha: t } = $r(), n = j(), [r, i] = V(!1), a = B(null), o = t ? !1 : "Verification is required", s;
|
|
2648
2484
|
e[0] === o ? s = e[1] : (s = {
|
|
2649
2485
|
name: "__captcha",
|
|
2650
2486
|
rules: { required: o }
|
|
2651
2487
|
}, e[0] = o, e[1] = s);
|
|
2652
|
-
let { field: c, fieldState: l } =
|
|
2488
|
+
let { field: c, fieldState: l } = Q(s), { onChange: u } = c, { error: d } = l, f, p;
|
|
2653
2489
|
e[2] === Symbol.for("react.memo_cache_sentinel") ? (f = () => {
|
|
2654
2490
|
i(!0);
|
|
2655
|
-
}, p = [], e[2] = f, e[3] = p) : (f = e[2], p = e[3]),
|
|
2491
|
+
}, p = [], e[2] = f, e[3] = p) : (f = e[2], p = e[3]), R(f, p);
|
|
2656
2492
|
let m;
|
|
2657
2493
|
e[4] === u ? m = e[5] : (m = (e) => {
|
|
2658
2494
|
"detail" in e && u(e.detail.state || null);
|
|
2659
2495
|
}, e[4] = u, e[5] = m);
|
|
2660
|
-
let
|
|
2496
|
+
let h = m;
|
|
2661
2497
|
if (!r) {
|
|
2662
2498
|
let t = d?.message, n;
|
|
2663
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */
|
|
2499
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ W("div", {
|
|
2500
|
+
className: si,
|
|
2501
|
+
children: [/* @__PURE__ */ U(gi, {}), /* @__PURE__ */ U(hi, {})]
|
|
2502
|
+
}), e[6] = n) : n = e[6];
|
|
2664
2503
|
let r;
|
|
2665
|
-
return e[7] === t ? r = e[8] : (r = /* @__PURE__ */
|
|
2504
|
+
return e[7] === t ? r = e[8] : (r = /* @__PURE__ */ U(g, {
|
|
2666
2505
|
error: t,
|
|
2667
|
-
className:
|
|
2506
|
+
className: oi,
|
|
2668
2507
|
children: n
|
|
2669
2508
|
}), e[7] = t, e[8] = r), r;
|
|
2670
2509
|
}
|
|
2671
2510
|
let _ = d?.message, v;
|
|
2672
|
-
e[9] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */
|
|
2511
|
+
e[9] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ U(gi, {}), e[9] = v) : v = e[9];
|
|
2673
2512
|
let y;
|
|
2674
|
-
e[10] !== n || e[11] !==
|
|
2513
|
+
e[10] !== n || e[11] !== h ? (y = /* @__PURE__ */ U(P, {
|
|
2675
2514
|
fallback: v,
|
|
2676
|
-
children: /* @__PURE__ */
|
|
2515
|
+
children: /* @__PURE__ */ U(mi, {
|
|
2677
2516
|
widgetRef: a,
|
|
2678
2517
|
client: n,
|
|
2679
|
-
onStateChange:
|
|
2518
|
+
onStateChange: h
|
|
2680
2519
|
})
|
|
2681
|
-
}), e[10] = n, e[11] =
|
|
2520
|
+
}), e[10] = n, e[11] = h, e[12] = y) : y = e[12];
|
|
2682
2521
|
let b;
|
|
2683
|
-
|
|
2522
|
+
e[13] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ U(hi, {}), e[13] = b) : b = e[13];
|
|
2523
|
+
let x;
|
|
2524
|
+
e[14] === y ? x = e[15] : (x = /* @__PURE__ */ W("div", {
|
|
2525
|
+
className: si,
|
|
2526
|
+
children: [y, b]
|
|
2527
|
+
}), e[14] = y, e[15] = x);
|
|
2528
|
+
let S;
|
|
2529
|
+
return e[16] !== x || e[17] !== _ ? (S = /* @__PURE__ */ U(g, {
|
|
2684
2530
|
error: _,
|
|
2685
|
-
className:
|
|
2686
|
-
children:
|
|
2687
|
-
}), e[
|
|
2688
|
-
},
|
|
2531
|
+
className: oi,
|
|
2532
|
+
children: x
|
|
2533
|
+
}), e[16] = x, e[17] = _, e[18] = S) : S = e[18], S;
|
|
2534
|
+
}, vi = {
|
|
2689
2535
|
errors: {},
|
|
2690
2536
|
isValid: !0,
|
|
2691
2537
|
isDirty: !1,
|
|
2692
2538
|
isSubmitted: !1,
|
|
2693
2539
|
submitCount: 0,
|
|
2694
2540
|
dirtyFields: {}
|
|
2695
|
-
},
|
|
2696
|
-
let e = D(22), t =
|
|
2541
|
+
}, yi = () => {
|
|
2542
|
+
let e = D(22), t = Se(), n = xe(), [r, i] = V(vi), a, o;
|
|
2697
2543
|
e[0] === n ? (a = e[1], o = e[2]) : (a = () => {
|
|
2698
2544
|
if (n?.subscribe) return n.subscribe({
|
|
2699
2545
|
formState: {
|
|
@@ -2714,9 +2560,9 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2714
2560
|
});
|
|
2715
2561
|
}
|
|
2716
2562
|
});
|
|
2717
|
-
}, o = [n], e[0] = n, e[1] = a, e[2] = o),
|
|
2718
|
-
let { errors: s, isValid: c, isDirty: l, isSubmitted: u, submitCount: d, dirtyFields: f } = r, [p, m] =
|
|
2719
|
-
e[3] === s ? h = e[4] : (h = Object.entries(s).map(
|
|
2563
|
+
}, o = [n], e[0] = n, e[1] = a, e[2] = o), R(a, o);
|
|
2564
|
+
let { errors: s, isValid: c, isDirty: l, isSubmitted: u, submitCount: d, dirtyFields: f } = r, [p, m] = V(!0), h;
|
|
2565
|
+
e[3] === s ? h = e[4] : (h = Object.entries(s).map(Si), e[3] = s, e[4] = h);
|
|
2720
2566
|
let g = h, _;
|
|
2721
2567
|
e[5] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
2722
2568
|
position: "fixed",
|
|
@@ -2738,7 +2584,7 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2738
2584
|
}, e[5] = _) : _ = e[5];
|
|
2739
2585
|
let v, y;
|
|
2740
2586
|
e[6] === Symbol.for("react.memo_cache_sentinel") ? (v = () => {
|
|
2741
|
-
m(
|
|
2587
|
+
m(Ci);
|
|
2742
2588
|
}, y = {
|
|
2743
2589
|
padding: "8px 12px",
|
|
2744
2590
|
background: "#141b33",
|
|
@@ -2753,7 +2599,7 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2753
2599
|
textTransform: "uppercase"
|
|
2754
2600
|
}, e[6] = v, e[7] = y) : (v = e[6], y = e[7]);
|
|
2755
2601
|
let b = p ? "▾" : "▸", x = String(c), S = String(l), C = String(u), w;
|
|
2756
|
-
e[8] !== d || e[9] !== b || e[10] !== x || e[11] !== S || e[12] !== C ? (w = /* @__PURE__ */
|
|
2602
|
+
e[8] !== d || e[9] !== b || e[10] !== x || e[11] !== S || e[12] !== C ? (w = /* @__PURE__ */ W("button", {
|
|
2757
2603
|
type: "button",
|
|
2758
2604
|
onClick: v,
|
|
2759
2605
|
style: y,
|
|
@@ -2771,7 +2617,7 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2771
2617
|
]
|
|
2772
2618
|
}), e[8] = d, e[9] = b, e[10] = x, e[11] = S, e[12] = C, e[13] = w) : w = e[13];
|
|
2773
2619
|
let T;
|
|
2774
|
-
e[14] !== f || e[15] !== g || e[16] !== p || e[17] !== t ? (T = p && /* @__PURE__ */
|
|
2620
|
+
e[14] !== f || e[15] !== g || e[16] !== p || e[17] !== t ? (T = p && /* @__PURE__ */ W("div", {
|
|
2775
2621
|
style: {
|
|
2776
2622
|
overflow: "auto",
|
|
2777
2623
|
padding: 10,
|
|
@@ -2779,45 +2625,45 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2779
2625
|
gap: 10
|
|
2780
2626
|
},
|
|
2781
2627
|
children: [
|
|
2782
|
-
/* @__PURE__ */
|
|
2628
|
+
/* @__PURE__ */ U(xi, {
|
|
2783
2629
|
title: `Errors (${g.length})`,
|
|
2784
2630
|
accent: "#ff6b6b",
|
|
2785
|
-
children: g.length === 0 ? /* @__PURE__ */
|
|
2631
|
+
children: g.length === 0 ? /* @__PURE__ */ U("div", {
|
|
2786
2632
|
style: { opacity: .6 },
|
|
2787
2633
|
children: "none"
|
|
2788
|
-
}) : g.map(
|
|
2634
|
+
}) : g.map(wi)
|
|
2789
2635
|
}),
|
|
2790
|
-
/* @__PURE__ */
|
|
2636
|
+
/* @__PURE__ */ U(xi, {
|
|
2791
2637
|
title: "Values",
|
|
2792
2638
|
accent: "#7ce5b1",
|
|
2793
|
-
children: /* @__PURE__ */
|
|
2794
|
-
style:
|
|
2639
|
+
children: /* @__PURE__ */ U("pre", {
|
|
2640
|
+
style: bi,
|
|
2795
2641
|
children: JSON.stringify(t ?? {}, null, 2)
|
|
2796
2642
|
})
|
|
2797
2643
|
}),
|
|
2798
|
-
/* @__PURE__ */
|
|
2644
|
+
/* @__PURE__ */ U(xi, {
|
|
2799
2645
|
title: "Dirty fields",
|
|
2800
2646
|
accent: "#7cb1e5",
|
|
2801
|
-
children: /* @__PURE__ */
|
|
2802
|
-
style:
|
|
2647
|
+
children: /* @__PURE__ */ U("pre", {
|
|
2648
|
+
style: bi,
|
|
2803
2649
|
children: JSON.stringify(f ?? {}, null, 2)
|
|
2804
2650
|
})
|
|
2805
2651
|
})
|
|
2806
2652
|
]
|
|
2807
2653
|
}), e[14] = f, e[15] = g, e[16] = p, e[17] = t, e[18] = T) : T = e[18];
|
|
2808
2654
|
let E;
|
|
2809
|
-
return e[19] !== w || e[20] !== T ? (E = /* @__PURE__ */
|
|
2655
|
+
return e[19] !== w || e[20] !== T ? (E = /* @__PURE__ */ W("div", {
|
|
2810
2656
|
style: _,
|
|
2811
2657
|
children: [w, T]
|
|
2812
2658
|
}), e[19] = w, e[20] = T, e[21] = E) : E = e[21], E;
|
|
2813
|
-
},
|
|
2659
|
+
}, bi = {
|
|
2814
2660
|
margin: 0,
|
|
2815
2661
|
whiteSpace: "pre-wrap",
|
|
2816
2662
|
wordBreak: "break-word",
|
|
2817
2663
|
fontFamily: "inherit",
|
|
2818
2664
|
fontSize: 11,
|
|
2819
2665
|
lineHeight: 1.45
|
|
2820
|
-
},
|
|
2666
|
+
}, xi = (e) => {
|
|
2821
2667
|
let t = D(11), { title: n, accent: r, children: i } = e, a;
|
|
2822
2668
|
t[0] === r ? a = t[1] : (a = {
|
|
2823
2669
|
fontSize: 10,
|
|
@@ -2828,7 +2674,7 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2828
2674
|
fontWeight: 700
|
|
2829
2675
|
}, t[0] = r, t[1] = a);
|
|
2830
2676
|
let o;
|
|
2831
|
-
t[2] !== a || t[3] !== n ? (o = /* @__PURE__ */
|
|
2677
|
+
t[2] !== a || t[3] !== n ? (o = /* @__PURE__ */ U("div", {
|
|
2832
2678
|
style: a,
|
|
2833
2679
|
children: n
|
|
2834
2680
|
}), t[2] = a, t[3] = n, t[4] = o) : o = t[4];
|
|
@@ -2840,14 +2686,14 @@ var Br = "_156u72w0", Vr = "_156u72w1", Hr = (e) => Array.isArray(e) && e.every(
|
|
|
2840
2686
|
padding: 8
|
|
2841
2687
|
}, t[5] = s) : s = t[5];
|
|
2842
2688
|
let c;
|
|
2843
|
-
t[6] === i ? c = t[7] : (c = /* @__PURE__ */
|
|
2689
|
+
t[6] === i ? c = t[7] : (c = /* @__PURE__ */ U("div", {
|
|
2844
2690
|
style: s,
|
|
2845
2691
|
children: i
|
|
2846
2692
|
}), t[6] = i, t[7] = c);
|
|
2847
2693
|
let l;
|
|
2848
|
-
return t[8] !== o || t[9] !== c ? (l = /* @__PURE__ */
|
|
2694
|
+
return t[8] !== o || t[9] !== c ? (l = /* @__PURE__ */ W("div", { children: [o, c] }), t[8] = o, t[9] = c, t[10] = l) : l = t[10], l;
|
|
2849
2695
|
};
|
|
2850
|
-
function
|
|
2696
|
+
function Si(e) {
|
|
2851
2697
|
let [t, n] = e;
|
|
2852
2698
|
return {
|
|
2853
2699
|
key: t,
|
|
@@ -2855,19 +2701,19 @@ function ki(e) {
|
|
|
2855
2701
|
type: n?.type ?? "—"
|
|
2856
2702
|
};
|
|
2857
2703
|
}
|
|
2858
|
-
function
|
|
2704
|
+
function Ci(e) {
|
|
2859
2705
|
return !e;
|
|
2860
2706
|
}
|
|
2861
|
-
function
|
|
2862
|
-
return /* @__PURE__ */
|
|
2707
|
+
function wi(e) {
|
|
2708
|
+
return /* @__PURE__ */ W("div", {
|
|
2863
2709
|
style: { marginBottom: 4 },
|
|
2864
2710
|
children: [
|
|
2865
|
-
/* @__PURE__ */
|
|
2711
|
+
/* @__PURE__ */ U("span", {
|
|
2866
2712
|
style: { color: "#ffb86b" },
|
|
2867
2713
|
children: e.key
|
|
2868
2714
|
}),
|
|
2869
2715
|
" ",
|
|
2870
|
-
/* @__PURE__ */
|
|
2716
|
+
/* @__PURE__ */ W("span", {
|
|
2871
2717
|
style: { opacity: .7 },
|
|
2872
2718
|
children: [
|
|
2873
2719
|
"[",
|
|
@@ -2875,7 +2721,7 @@ function ji(e) {
|
|
|
2875
2721
|
"]"
|
|
2876
2722
|
]
|
|
2877
2723
|
}),
|
|
2878
|
-
/* @__PURE__ */
|
|
2724
|
+
/* @__PURE__ */ U("div", {
|
|
2879
2725
|
style: {
|
|
2880
2726
|
paddingLeft: 8,
|
|
2881
2727
|
opacity: .85
|
|
@@ -2887,29 +2733,29 @@ function ji(e) {
|
|
|
2887
2733
|
}
|
|
2888
2734
|
//#endregion
|
|
2889
2735
|
//#region ../../libraries/react-collection/dist/lib/components/FormHeader/FormHeader.cssm.js
|
|
2890
|
-
var
|
|
2891
|
-
let t = D(4), { className: n } = e, { uiConfig: r } =
|
|
2736
|
+
var Ti = "_1vist8m0", Ei = (e) => {
|
|
2737
|
+
let t = D(4), { className: n } = e, { uiConfig: r } = $r();
|
|
2892
2738
|
if (r?.hideFormHeading) return null;
|
|
2893
2739
|
let i;
|
|
2894
|
-
t[0] === n ? i = t[1] : (i =
|
|
2740
|
+
t[0] === n ? i = t[1] : (i = G(Ti, n), t[0] = n, t[1] = i);
|
|
2895
2741
|
let a;
|
|
2896
|
-
return t[2] === i ? a = t[3] : (a = /* @__PURE__ */
|
|
2742
|
+
return t[2] === i ? a = t[3] : (a = /* @__PURE__ */ U("h1", {
|
|
2897
2743
|
className: i,
|
|
2898
2744
|
children: "Create new"
|
|
2899
2745
|
}), t[2] = i, t[3] = a), a;
|
|
2900
|
-
},
|
|
2901
|
-
let t = D(5), { children: n, className: r } = e, { uiConfig: i } =
|
|
2746
|
+
}, Di = "zx38wb0", Oi = (e) => {
|
|
2747
|
+
let t = D(5), { children: n, className: r } = e, { uiConfig: i } = $r();
|
|
2902
2748
|
if (i?.hideSectionHeadings) return null;
|
|
2903
2749
|
let a;
|
|
2904
|
-
t[0] === r ? a = t[1] : (a =
|
|
2750
|
+
t[0] === r ? a = t[1] : (a = G(Di, r), t[0] = r, t[1] = a);
|
|
2905
2751
|
let o;
|
|
2906
|
-
return t[2] !== n || t[3] !== a ? (o = /* @__PURE__ */
|
|
2752
|
+
return t[2] !== n || t[3] !== a ? (o = /* @__PURE__ */ U("h3", {
|
|
2907
2753
|
className: a,
|
|
2908
2754
|
children: n
|
|
2909
2755
|
}), t[2] = n, t[3] = a, t[4] = o) : o = t[4], o;
|
|
2910
|
-
},
|
|
2756
|
+
}, ki = "q22d794", Ai = "q22d795", ji = "q22d796", Mi = "q22d797", Ni = "q22d798", Pi = 5, Fi = "Thank you!", Ii = "Your response has been submitted successfully.", Li = () => {
|
|
2911
2757
|
let e = D(1), t;
|
|
2912
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */
|
|
2758
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ W("svg", {
|
|
2913
2759
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2914
2760
|
viewBox: "0 0 24 24",
|
|
2915
2761
|
fill: "none",
|
|
@@ -2917,10 +2763,10 @@ var Mi = "_1vist8m0", Ni = (e) => {
|
|
|
2917
2763
|
strokeWidth: "2.5",
|
|
2918
2764
|
strokeLinecap: "round",
|
|
2919
2765
|
strokeLinejoin: "round",
|
|
2920
|
-
children: [/* @__PURE__ */
|
|
2766
|
+
children: [/* @__PURE__ */ U("title", { children: "Check Icon" }), /* @__PURE__ */ U("path", { d: "M20 6 9 17l-5-5" })]
|
|
2921
2767
|
}), e[0] = t) : t = e[0], t;
|
|
2922
|
-
},
|
|
2923
|
-
let { successConfig: t, schema: n } =
|
|
2768
|
+
}, Ri = ({ onDismiss: e }) => {
|
|
2769
|
+
let { successConfig: t, schema: n } = $r(), r = n?.settings?.success_message, [i, a] = V(Pi), o = (e) => !e || e.replace(/<[^>]*>/g, "").trim() === "", c = t?.title || r?.title || Fi, l = t?.message || r?.message, u = o(l) ? Ii : l, d = t?.action || r?.action, f = d?.type ?? "none", p = f === "redirect" ? d?.value : void 0, m = (() => {
|
|
2924
2770
|
if (p) {
|
|
2925
2771
|
if (p.startsWith("/")) return p;
|
|
2926
2772
|
try {
|
|
@@ -2929,50 +2775,50 @@ var Mi = "_1vist8m0", Ni = (e) => {
|
|
|
2929
2775
|
} catch {}
|
|
2930
2776
|
}
|
|
2931
2777
|
})();
|
|
2932
|
-
|
|
2778
|
+
R(() => {
|
|
2933
2779
|
if (!m) return;
|
|
2934
2780
|
let e = setInterval(() => {
|
|
2935
2781
|
a((t) => t <= 1 ? (clearInterval(e), window.location.href = m, 0) : t - 1);
|
|
2936
2782
|
}, 1e3);
|
|
2937
2783
|
return () => clearInterval(e);
|
|
2938
2784
|
}, [m]);
|
|
2939
|
-
let h =
|
|
2785
|
+
let h = L(() => {
|
|
2940
2786
|
m && (window.location.href = m);
|
|
2941
2787
|
}, [m]);
|
|
2942
|
-
return /* @__PURE__ */
|
|
2943
|
-
className:
|
|
2944
|
-
children: /* @__PURE__ */
|
|
2945
|
-
className:
|
|
2788
|
+
return /* @__PURE__ */ U("div", {
|
|
2789
|
+
className: ki,
|
|
2790
|
+
children: /* @__PURE__ */ W("div", {
|
|
2791
|
+
className: Ai,
|
|
2946
2792
|
children: [
|
|
2947
|
-
/* @__PURE__ */
|
|
2948
|
-
className:
|
|
2949
|
-
children: /* @__PURE__ */
|
|
2793
|
+
/* @__PURE__ */ U("div", {
|
|
2794
|
+
className: ji,
|
|
2795
|
+
children: /* @__PURE__ */ U(Li, {})
|
|
2950
2796
|
}),
|
|
2951
|
-
/* @__PURE__ */
|
|
2952
|
-
className:
|
|
2797
|
+
/* @__PURE__ */ U("h2", {
|
|
2798
|
+
className: Mi,
|
|
2953
2799
|
children: c
|
|
2954
2800
|
}),
|
|
2955
|
-
/* @__PURE__ */
|
|
2956
|
-
className:
|
|
2801
|
+
/* @__PURE__ */ U("div", {
|
|
2802
|
+
className: Ni,
|
|
2957
2803
|
dangerouslySetInnerHTML: { __html: u }
|
|
2958
2804
|
}),
|
|
2959
|
-
f === "submit_another" && /* @__PURE__ */
|
|
2805
|
+
f === "submit_another" && /* @__PURE__ */ U("div", {
|
|
2960
2806
|
className: "q22d799",
|
|
2961
|
-
children: /* @__PURE__ */
|
|
2807
|
+
children: /* @__PURE__ */ U(s, {
|
|
2962
2808
|
variant: "default",
|
|
2963
2809
|
size: "sm",
|
|
2964
2810
|
onClick: e,
|
|
2965
2811
|
children: "Submit Another"
|
|
2966
2812
|
})
|
|
2967
2813
|
}),
|
|
2968
|
-
f === "redirect" && m && /* @__PURE__ */
|
|
2814
|
+
f === "redirect" && m && /* @__PURE__ */ W("div", {
|
|
2969
2815
|
className: "q22d799",
|
|
2970
|
-
children: [/* @__PURE__ */
|
|
2816
|
+
children: [/* @__PURE__ */ U(s, {
|
|
2971
2817
|
variant: "default",
|
|
2972
2818
|
size: "sm",
|
|
2973
2819
|
onClick: h,
|
|
2974
2820
|
children: "Continue"
|
|
2975
|
-
}), /* @__PURE__ */
|
|
2821
|
+
}), /* @__PURE__ */ W("span", {
|
|
2976
2822
|
className: "q22d79a",
|
|
2977
2823
|
children: [
|
|
2978
2824
|
"Redirecting in ",
|
|
@@ -2984,16 +2830,16 @@ var Mi = "_1vist8m0", Ni = (e) => {
|
|
|
2984
2830
|
]
|
|
2985
2831
|
})
|
|
2986
2832
|
});
|
|
2987
|
-
},
|
|
2988
|
-
let t = D(29), { isError: n, contentId: r, publishedId: i, getContentId: a, allFormValues: o } = e, { collection: s } =
|
|
2833
|
+
}, zi = (e) => {
|
|
2834
|
+
let t = D(29), { isError: n, contentId: r, publishedId: i, getContentId: a, allFormValues: o } = e, { collection: s } = j(), { schema: c, isLoggedIn: l, preview: u } = $r(), { formState: d } = xe(), f = Se(), p;
|
|
2989
2835
|
t[0] !== s || t[1] !== r || t[2] !== a || t[3] !== n || t[4] !== l || t[5] !== u || t[6] !== i || t[7] !== c?.allow_draft || t[8] !== c?.key ? (p = (e) => {
|
|
2990
2836
|
u || i || c?.key && !n && c?.allow_draft && (l ? r ? s.editDraftEntry(c?.key, r, e).then((e) => {
|
|
2991
2837
|
e?.content?.data?._id && a(e?.content?.data?._id);
|
|
2992
|
-
}).catch(
|
|
2838
|
+
}).catch(Bi) : s.saveDraftEntry(c?.key, e).then((e) => {
|
|
2993
2839
|
e?.content?.data?._id && a(e?.content?.data?._id);
|
|
2994
|
-
}).catch(
|
|
2840
|
+
}).catch(Vi) : ri(c?.key, e));
|
|
2995
2841
|
}, t[0] = s, t[1] = r, t[2] = a, t[3] = n, t[4] = l, t[5] = u, t[6] = i, t[7] = c?.allow_draft, t[8] = c?.key, t[9] = p) : p = t[9];
|
|
2996
|
-
let m =
|
|
2842
|
+
let m = Me(p, 100), { isDirty: h, isSubmitting: g, isSubmitSuccessful: _ } = d, v;
|
|
2997
2843
|
t[10] !== o || t[11] !== m || t[12] !== f || t[13] !== h || t[14] !== n || t[15] !== _ || t[16] !== g || t[17] !== u ? (v = () => {
|
|
2998
2844
|
if (!u) {
|
|
2999
2845
|
if (g || _) {
|
|
@@ -3017,20 +2863,20 @@ var Mi = "_1vist8m0", Ni = (e) => {
|
|
|
3017
2863
|
g,
|
|
3018
2864
|
_,
|
|
3019
2865
|
u
|
|
3020
|
-
], t[19] = r, t[20] = f, t[21] = h, t[22] = n, t[23] = l, t[24] = _, t[25] = g, t[26] = u, t[27] = i, t[28] = y) : y = t[28],
|
|
2866
|
+
], t[19] = r, t[20] = f, t[21] = h, t[22] = n, t[23] = l, t[24] = _, t[25] = g, t[26] = u, t[27] = i, t[28] = y) : y = t[28], R(v, y), null;
|
|
3021
2867
|
};
|
|
3022
|
-
function
|
|
2868
|
+
function Bi() {
|
|
3023
2869
|
console.error("saving entry failed");
|
|
3024
2870
|
}
|
|
3025
|
-
function
|
|
2871
|
+
function Vi() {
|
|
3026
2872
|
console.error("saving entry failed");
|
|
3027
2873
|
}
|
|
3028
2874
|
//#endregion
|
|
3029
2875
|
//#region ../../libraries/react-collection/dist/lib/variants/DefaultFormVariant/DefaultFormVariant.cssm.js
|
|
3030
|
-
var
|
|
3031
|
-
let e = D(51), { schema: t, containerStyles: n, submitButtonConfig: r, isDisabled: i, widgets: a, disableCaptcha: o, debug: c, enableVerification: l } =
|
|
2876
|
+
var Hi = "fil1ri0", Ui = "fil1ri1", Wi = "fil1ri2", Gi = "fil1ri5", Ki = () => {
|
|
2877
|
+
let e = D(51), { schema: t, containerStyles: n, submitButtonConfig: r, isDisabled: i, widgets: a, disableCaptcha: o, debug: c, enableVerification: l } = $r(), u;
|
|
3032
2878
|
e[0] === t ? u = e[1] : (u = { schema: t }, e[0] = t, e[1] = u);
|
|
3033
|
-
let { methods: d, isError: f, isLoading: p, contentId: m, publishedId: h, handleContentId: g, submitToRemote: _, allFormValues: v, showSuccessOverlay: y, dismissSuccessOverlay: b } =
|
|
2879
|
+
let { methods: d, isError: f, isLoading: p, contentId: m, publishedId: h, handleContentId: g, submitToRemote: _, allFormValues: v, showSuccessOverlay: y, dismissSuccessOverlay: b } = ai(u), { handleSubmit: x, watch: S, formState: C } = d, { isSubmitting: w } = C, T;
|
|
3034
2880
|
e[2] === S ? T = e[3] : (T = S("__captcha"), e[2] = S, e[3] = T);
|
|
3035
2881
|
let E = T, O;
|
|
3036
2882
|
e[4] === _ ? O = e[5] : (O = async (e) => {
|
|
@@ -3041,12 +2887,12 @@ var Yi = "fil1ri0", Xi = "fil1ri1", Zi = "fil1ri2", Qi = "fil1ri5", $i = () => {
|
|
|
3041
2887
|
let A = k;
|
|
3042
2888
|
if (y) {
|
|
3043
2889
|
let t;
|
|
3044
|
-
return e[9] === b ? t = e[10] : (t = /* @__PURE__ */
|
|
2890
|
+
return e[9] === b ? t = e[10] : (t = /* @__PURE__ */ U(Ri, { onDismiss: b }), e[9] = b, e[10] = t), t;
|
|
3045
2891
|
}
|
|
3046
2892
|
let j;
|
|
3047
|
-
e[11] === c ? j = e[12] : (j = c && /* @__PURE__ */
|
|
2893
|
+
e[11] === c ? j = e[12] : (j = c && /* @__PURE__ */ U(yi, {}), e[11] = c, e[12] = j);
|
|
3048
2894
|
let M = m || "", N = h || "", P;
|
|
3049
|
-
e[13] !== v || e[14] !== g || e[15] !== f || e[16] !== M || e[17] !== N ? (P = /* @__PURE__ */
|
|
2895
|
+
e[13] !== v || e[14] !== g || e[15] !== f || e[16] !== M || e[17] !== N ? (P = /* @__PURE__ */ U(zi, {
|
|
3050
2896
|
getContentId: g,
|
|
3051
2897
|
isError: f,
|
|
3052
2898
|
contentId: M,
|
|
@@ -3054,24 +2900,24 @@ var Yi = "fil1ri0", Xi = "fil1ri1", Zi = "fil1ri2", Qi = "fil1ri5", $i = () => {
|
|
|
3054
2900
|
allFormValues: v
|
|
3055
2901
|
}), e[13] = v, e[14] = g, e[15] = f, e[16] = M, e[17] = N, e[18] = P) : P = e[18];
|
|
3056
2902
|
let F;
|
|
3057
|
-
e[19] === n ? F = e[20] : (F =
|
|
2903
|
+
e[19] === n ? F = e[20] : (F = G(Hi, n), e[19] = n, e[20] = F);
|
|
3058
2904
|
let I;
|
|
3059
|
-
e[21] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */
|
|
2905
|
+
e[21] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ U(Ei, {}), e[21] = I) : I = e[21];
|
|
3060
2906
|
let L = p && "fil1ri3", R;
|
|
3061
|
-
e[22] === L ? R = e[23] : (R =
|
|
2907
|
+
e[22] === L ? R = e[23] : (R = G(Ui, L), e[22] = L, e[23] = R);
|
|
3062
2908
|
let z;
|
|
3063
|
-
e[24] !== l || e[25] !== t || e[26] !== a ? (z = t?.sections?.map((e) => /* @__PURE__ */
|
|
2909
|
+
e[24] !== l || e[25] !== t || e[26] !== a ? (z = t?.sections?.map((e) => /* @__PURE__ */ U(qi, {
|
|
3064
2910
|
schema: t,
|
|
3065
2911
|
section: e,
|
|
3066
2912
|
widgets: a,
|
|
3067
2913
|
enableVerification: l
|
|
3068
2914
|
}, e.id)), e[24] = l, e[25] = t, e[26] = a, e[27] = z) : z = e[27];
|
|
3069
2915
|
let B;
|
|
3070
|
-
e[28] === o ? B = e[29] : (B = !o && /* @__PURE__ */
|
|
2916
|
+
e[28] === o ? B = e[29] : (B = !o && /* @__PURE__ */ U(_i, {}), e[28] = o, e[29] = B);
|
|
3071
2917
|
let V;
|
|
3072
|
-
e[30] !== E || e[31] !== i || e[32] !== w || e[33] !== r?.show || e[34] !== r?.styles || e[35] !== r?.text ? (V = r?.show && /* @__PURE__ */
|
|
2918
|
+
e[30] !== E || e[31] !== i || e[32] !== w || e[33] !== r?.show || e[34] !== r?.styles || e[35] !== r?.text ? (V = r?.show && /* @__PURE__ */ U("div", {
|
|
3073
2919
|
className: "fil1ri4",
|
|
3074
|
-
children: /* @__PURE__ */
|
|
2920
|
+
children: /* @__PURE__ */ U(s, {
|
|
3075
2921
|
className: r?.styles,
|
|
3076
2922
|
disabled: i || w,
|
|
3077
2923
|
type: "submit",
|
|
@@ -3079,7 +2925,7 @@ var Yi = "fil1ri0", Xi = "fil1ri1", Zi = "fil1ri2", Qi = "fil1ri5", $i = () => {
|
|
|
3079
2925
|
})
|
|
3080
2926
|
}), e[30] = E, e[31] = i, e[32] = w, e[33] = r?.show, e[34] = r?.styles, e[35] = r?.text, e[36] = V) : V = e[36];
|
|
3081
2927
|
let H;
|
|
3082
|
-
e[37] !== A || e[38] !== R || e[39] !== z || e[40] !== B || e[41] !== V ? (H = /* @__PURE__ */
|
|
2928
|
+
e[37] !== A || e[38] !== R || e[39] !== z || e[40] !== B || e[41] !== V ? (H = /* @__PURE__ */ W("form", {
|
|
3083
2929
|
className: R,
|
|
3084
2930
|
id: "collection-form",
|
|
3085
2931
|
onSubmit: A,
|
|
@@ -3089,79 +2935,79 @@ var Yi = "fil1ri0", Xi = "fil1ri1", Zi = "fil1ri2", Qi = "fil1ri5", $i = () => {
|
|
|
3089
2935
|
V
|
|
3090
2936
|
]
|
|
3091
2937
|
}), e[37] = A, e[38] = R, e[39] = z, e[40] = B, e[41] = V, e[42] = H) : H = e[42];
|
|
3092
|
-
let
|
|
3093
|
-
e[43] !== H || e[44] !== F ? (
|
|
2938
|
+
let K;
|
|
2939
|
+
e[43] !== H || e[44] !== F ? (K = /* @__PURE__ */ W("div", {
|
|
3094
2940
|
className: F,
|
|
3095
2941
|
children: [I, H]
|
|
3096
|
-
}), e[43] = H, e[44] = F, e[45] =
|
|
3097
|
-
let
|
|
3098
|
-
return e[46] !== d || e[47] !==
|
|
2942
|
+
}), e[43] = H, e[44] = F, e[45] = K) : K = e[45];
|
|
2943
|
+
let q;
|
|
2944
|
+
return e[46] !== d || e[47] !== K || e[48] !== j || e[49] !== P ? (q = /* @__PURE__ */ W(_e, {
|
|
3099
2945
|
...d,
|
|
3100
2946
|
children: [
|
|
3101
2947
|
j,
|
|
3102
2948
|
P,
|
|
3103
|
-
|
|
2949
|
+
K
|
|
3104
2950
|
]
|
|
3105
|
-
}), e[46] = d, e[47] =
|
|
3106
|
-
},
|
|
3107
|
-
let t = D(12), { schema: n, section: r, widgets: i, enableVerification: a } = e, { visible: o } =
|
|
3108
|
-
if (!o ||
|
|
2951
|
+
}), e[46] = d, e[47] = K, e[48] = j, e[49] = P, e[50] = q) : q = e[50], q;
|
|
2952
|
+
}, qi = (e) => {
|
|
2953
|
+
let t = D(12), { schema: n, section: r, widgets: i, enableVerification: a } = e, { visible: o } = lt(n, r);
|
|
2954
|
+
if (!o || ot(r?.fields || [])) return null;
|
|
3109
2955
|
let s;
|
|
3110
|
-
t[0] === r ? s = t[1] : (s = r?.label && /* @__PURE__ */
|
|
2956
|
+
t[0] === r ? s = t[1] : (s = r?.label && /* @__PURE__ */ U(Oi, { children: r.label }), t[0] = r, t[1] = s);
|
|
3111
2957
|
let c;
|
|
3112
|
-
t[2] !== a || t[3] !== n || t[4] !== r?.fields || t[5] !== i ? (c = r?.fields?.map((e) => /* @__PURE__ */
|
|
2958
|
+
t[2] !== a || t[3] !== n || t[4] !== r?.fields || t[5] !== i ? (c = r?.fields?.map((e) => /* @__PURE__ */ U(zr, {
|
|
3113
2959
|
field: e,
|
|
3114
2960
|
widgets: i,
|
|
3115
2961
|
schema: n,
|
|
3116
2962
|
settings: { enableVerification: a }
|
|
3117
2963
|
}, e?.key)), t[2] = a, t[3] = n, t[4] = r?.fields, t[5] = i, t[6] = c) : c = t[6];
|
|
3118
2964
|
let l;
|
|
3119
|
-
t[7] === c ? l = t[8] : (l = /* @__PURE__ */
|
|
3120
|
-
className:
|
|
2965
|
+
t[7] === c ? l = t[8] : (l = /* @__PURE__ */ U("div", {
|
|
2966
|
+
className: Gi,
|
|
3121
2967
|
children: c
|
|
3122
2968
|
}), t[7] = c, t[8] = l);
|
|
3123
2969
|
let u;
|
|
3124
|
-
return t[9] !== s || t[10] !== l ? (u = /* @__PURE__ */
|
|
3125
|
-
className:
|
|
2970
|
+
return t[9] !== s || t[10] !== l ? (u = /* @__PURE__ */ W("div", {
|
|
2971
|
+
className: Wi,
|
|
3126
2972
|
children: [s, l]
|
|
3127
2973
|
}), t[9] = s, t[10] = l, t[11] = u) : u = t[11], u;
|
|
3128
|
-
},
|
|
3129
|
-
let t = D(12), { totalSteps: n, currentStepIndex: r, hasLevoErrors: i } = e, { formState: a } =
|
|
3130
|
-
t[0] === l ? u = t[1] : (u =
|
|
2974
|
+
}, Ji = "_1kah2gz0", Yi = "_1kah2gz1", Xi = "_1kah2gz3", Zi = (e) => {
|
|
2975
|
+
let t = D(12), { totalSteps: n, currentStepIndex: r, hasLevoErrors: i } = e, { formState: a } = xe(), { errors: o } = a, s = Object.keys(o || {}).length > 0 || i, c = Math.floor((r + 1) * 100 / n), l = s && "_1kah2gz2", u;
|
|
2976
|
+
t[0] === l ? u = t[1] : (u = G(Yi, l), t[0] = l, t[1] = u);
|
|
3131
2977
|
let d = s && "_1kah2gz4", f;
|
|
3132
|
-
t[2] === d ? f = t[3] : (f =
|
|
2978
|
+
t[2] === d ? f = t[3] : (f = G(Xi, d), t[2] = d, t[3] = f);
|
|
3133
2979
|
let p = `${c}%`, m;
|
|
3134
2980
|
t[4] === p ? m = t[5] : (m = { width: p }, t[4] = p, t[5] = m);
|
|
3135
2981
|
let h;
|
|
3136
|
-
t[6] !== f || t[7] !== m ? (h = /* @__PURE__ */
|
|
2982
|
+
t[6] !== f || t[7] !== m ? (h = /* @__PURE__ */ U("div", {
|
|
3137
2983
|
className: f,
|
|
3138
2984
|
style: m
|
|
3139
2985
|
}), t[6] = f, t[7] = m, t[8] = h) : h = t[8];
|
|
3140
2986
|
let g;
|
|
3141
|
-
return t[9] !== u || t[10] !== h ? (g = /* @__PURE__ */
|
|
3142
|
-
className:
|
|
3143
|
-
children: /* @__PURE__ */
|
|
2987
|
+
return t[9] !== u || t[10] !== h ? (g = /* @__PURE__ */ U("div", {
|
|
2988
|
+
className: Ji,
|
|
2989
|
+
children: /* @__PURE__ */ U("div", {
|
|
3144
2990
|
className: u,
|
|
3145
2991
|
children: h
|
|
3146
2992
|
})
|
|
3147
2993
|
}), t[9] = u, t[10] = h, t[11] = g) : g = t[11], g;
|
|
3148
|
-
},
|
|
2994
|
+
}, Qi = "_1ypxmcv0", $i = "_1ypxmcv1", ea = "_1ypxmcvb", ta = "_1ypxmcvc", na = (e, t) => e?.sections?.flatMap((n) => Qe(e, n, t) ? (n.fields || []).filter((n) => !Xe(e, n, t)).map((e) => ({
|
|
3149
2995
|
id: e.key,
|
|
3150
2996
|
content: e,
|
|
3151
2997
|
sectionId: n.id || "",
|
|
3152
2998
|
sectionLabel: n.label
|
|
3153
|
-
})) : []) ?? [],
|
|
3154
|
-
let e = D(82), { disableCaptcha: t, schema: n, widgets: r, submitButtonConfig: i, containerStyles: a, enableVerification: o } =
|
|
3155
|
-
e[0] === n ? c = e[1] : (c = () =>
|
|
3156
|
-
let [l, u] =
|
|
2999
|
+
})) : []) ?? [], ra = () => {
|
|
3000
|
+
let e = D(82), { disableCaptcha: t, schema: n, widgets: r, submitButtonConfig: i, containerStyles: a, enableVerification: o } = $r(), c;
|
|
3001
|
+
e[0] === n ? c = e[1] : (c = () => na(n, {}), e[0] = n, e[1] = c);
|
|
3002
|
+
let [l, u] = V(c), [d, f] = V(0), [p, m] = V(0), h;
|
|
3157
3003
|
e[2] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
3158
3004
|
state: "entered",
|
|
3159
3005
|
direction: "next"
|
|
3160
3006
|
}, e[2] = h) : h = e[2];
|
|
3161
|
-
let [g, _] =
|
|
3007
|
+
let [g, _] = V(h), v;
|
|
3162
3008
|
e[3] === Symbol.for("react.memo_cache_sentinel") ? (v = [], e[3] = v) : v = e[3];
|
|
3163
|
-
let [y, b] =
|
|
3164
|
-
e[4] === n ? w = e[5] : (w = (e) => u(
|
|
3009
|
+
let [y, b] = V(v), x = g.state === "exiting" ? d : p, S = p === l.length - 1, C = l[x], w;
|
|
3010
|
+
e[4] === n ? w = e[5] : (w = (e) => u(na(n, e)), e[4] = n, e[5] = w);
|
|
3165
3011
|
let T;
|
|
3166
3012
|
e[6] === Symbol.for("react.memo_cache_sentinel") ? (T = () => {
|
|
3167
3013
|
b([]), m(0), _({
|
|
@@ -3186,39 +3032,39 @@ var Yi = "fil1ri0", Xi = "fil1ri1", Zi = "fil1ri2", Qi = "fil1ri5", $i = () => {
|
|
|
3186
3032
|
onSubmitSuccess: T,
|
|
3187
3033
|
onSubmitError: E
|
|
3188
3034
|
}, e[10] = n, e[11] = w, e[12] = E, e[13] = O) : O = e[13];
|
|
3189
|
-
let { methods: k, submitToRemote: A, appendFormValues: j, handleContentId: M, isError: N, allFormValues: P, contentId: F, publishedId: I, isLoading: L, showSuccessOverlay:
|
|
3035
|
+
let { methods: k, submitToRemote: A, appendFormValues: j, handleContentId: M, isError: N, allFormValues: P, contentId: F, publishedId: I, isLoading: L, showSuccessOverlay: z, dismissSuccessOverlay: B } = ai(O), { handleSubmit: H, setFocus: K, setError: J, formState: Y } = k, { isSubmitting: X } = Y, Z;
|
|
3190
3036
|
e[14] !== j || e[15] !== C?.content?.key || e[16] !== C?.id || e[17] !== n || e[18] !== A ? (Z = async (e) => {
|
|
3191
3037
|
b((e) => e.filter((e) => e?.param !== C?.content?.key));
|
|
3192
|
-
let t =
|
|
3038
|
+
let t = na(n, e), r = t.findIndex((e) => e.id === C?.id);
|
|
3193
3039
|
r !== -1 && r + 1 < t.length ? (u(t), j(e), m(r + 1), _({
|
|
3194
3040
|
state: "exiting",
|
|
3195
3041
|
direction: "next"
|
|
3196
3042
|
})) : await A(e);
|
|
3197
3043
|
}, e[14] = j, e[15] = C?.content?.key, e[16] = C?.id, e[17] = n, e[18] = A, e[19] = Z) : Z = e[19];
|
|
3198
3044
|
let ee;
|
|
3199
|
-
e[20] !==
|
|
3045
|
+
e[20] !== H || e[21] !== Z ? (ee = H(Z), e[20] = H, e[21] = Z, e[22] = ee) : ee = e[22];
|
|
3200
3046
|
let te = ee, ne;
|
|
3201
3047
|
e[23] !== g.state || e[24] !== p ? (ne = () => {
|
|
3202
|
-
g.state === "entered" && (p <= 0 || (m(
|
|
3048
|
+
g.state === "entered" && (p <= 0 || (m(ia), _({
|
|
3203
3049
|
state: "exiting",
|
|
3204
3050
|
direction: "prev"
|
|
3205
3051
|
})));
|
|
3206
3052
|
}, e[23] = g.state, e[24] = p, e[25] = ne) : ne = e[25];
|
|
3207
3053
|
let re = ne, ie;
|
|
3208
|
-
e[26] !== g.direction || e[27] !== g.state || e[28] !== C || e[29] !== p || e[30] !==
|
|
3054
|
+
e[26] !== g.direction || e[27] !== g.state || e[28] !== C || e[29] !== p || e[30] !== K ? (ie = () => {
|
|
3209
3055
|
g.state === "exiting" ? (f(p), _({
|
|
3210
3056
|
state: "entering",
|
|
3211
3057
|
direction: g.direction
|
|
3212
3058
|
})) : g.state === "entering" && (_({
|
|
3213
3059
|
state: "entered",
|
|
3214
3060
|
direction: g.direction
|
|
3215
|
-
}), C?.content?.key &&
|
|
3216
|
-
}, e[26] = g.direction, e[27] = g.state, e[28] = C, e[29] = p, e[30] =
|
|
3061
|
+
}), C?.content?.key && K(C.content.key));
|
|
3062
|
+
}, e[26] = g.direction, e[27] = g.state, e[28] = C, e[29] = p, e[30] = K, e[31] = ie) : ie = e[31];
|
|
3217
3063
|
let ae = ie, oe, se;
|
|
3218
|
-
if (e[32] !== C || e[33] !== y || e[34] !==
|
|
3064
|
+
if (e[32] !== C || e[33] !== y || e[34] !== J ? (oe = () => {
|
|
3219
3065
|
if (C && y?.length > 0) {
|
|
3220
3066
|
let e = y?.find((e) => e?.param === C?.content?.key);
|
|
3221
|
-
e &&
|
|
3067
|
+
e && J(e?.param, {
|
|
3222
3068
|
type: "server_error",
|
|
3223
3069
|
message: e?.message
|
|
3224
3070
|
});
|
|
@@ -3226,76 +3072,76 @@ var Yi = "fil1ri0", Xi = "fil1ri1", Zi = "fil1ri2", Qi = "fil1ri5", $i = () => {
|
|
|
3226
3072
|
}, se = [
|
|
3227
3073
|
C,
|
|
3228
3074
|
y,
|
|
3229
|
-
|
|
3230
|
-
], e[32] = C, e[33] = y, e[34] =
|
|
3231
|
-
if (
|
|
3075
|
+
J
|
|
3076
|
+
], e[32] = C, e[33] = y, e[34] = J, e[35] = oe, e[36] = se) : (oe = e[35], se = e[36]), R(oe, se), !n || l.length === 0) return null;
|
|
3077
|
+
if (z) {
|
|
3232
3078
|
let t;
|
|
3233
|
-
return e[37] ===
|
|
3079
|
+
return e[37] === B ? t = e[38] : (t = /* @__PURE__ */ U(Ri, { onDismiss: B }), e[37] = B, e[38] = t), t;
|
|
3234
3080
|
}
|
|
3235
|
-
let ce = X || L, le = F || "", ue = I || "",
|
|
3236
|
-
e[39] !== P || e[40] !== M || e[41] !== N || e[42] !== le || e[43] !== ue ? (
|
|
3081
|
+
let ce = X || L, le = F || "", ue = I || "", de;
|
|
3082
|
+
e[39] !== P || e[40] !== M || e[41] !== N || e[42] !== le || e[43] !== ue ? (de = /* @__PURE__ */ U(zi, {
|
|
3237
3083
|
getContentId: M,
|
|
3238
3084
|
isError: N,
|
|
3239
3085
|
contentId: le,
|
|
3240
3086
|
publishedId: ue,
|
|
3241
3087
|
allFormValues: P
|
|
3242
|
-
}), e[39] = P, e[40] = M, e[41] = N, e[42] = le, e[43] = ue, e[44] =
|
|
3243
|
-
let
|
|
3244
|
-
e[45] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
3245
|
-
let
|
|
3246
|
-
e[46] ===
|
|
3247
|
-
className:
|
|
3248
|
-
children:
|
|
3249
|
-
}), e[46] =
|
|
3250
|
-
let
|
|
3251
|
-
e[48] !== p || e[49] !==
|
|
3088
|
+
}), e[39] = P, e[40] = M, e[41] = N, e[42] = le, e[43] = ue, e[44] = de) : de = e[44];
|
|
3089
|
+
let fe;
|
|
3090
|
+
e[45] === Symbol.for("react.memo_cache_sentinel") ? (fe = /* @__PURE__ */ U(Ei, { className: ta }), e[45] = fe) : fe = e[45];
|
|
3091
|
+
let pe = C?.sectionLabel, me;
|
|
3092
|
+
e[46] === pe ? me = e[47] : (me = /* @__PURE__ */ U(Oi, {
|
|
3093
|
+
className: ea,
|
|
3094
|
+
children: pe
|
|
3095
|
+
}), e[46] = pe, e[47] = me);
|
|
3096
|
+
let he = l?.length || 1, ge = Array.isArray(y) && y?.length > 0, ve;
|
|
3097
|
+
e[48] !== p || e[49] !== he || e[50] !== ge ? (ve = /* @__PURE__ */ U(Zi, {
|
|
3252
3098
|
currentStepIndex: p,
|
|
3253
|
-
totalSteps:
|
|
3254
|
-
hasLevoErrors:
|
|
3255
|
-
}), e[48] = p, e[49] =
|
|
3256
|
-
let
|
|
3257
|
-
e[52] !==
|
|
3258
|
-
className:
|
|
3099
|
+
totalSteps: he,
|
|
3100
|
+
hasLevoErrors: ge
|
|
3101
|
+
}), e[48] = p, e[49] = he, e[50] = ge, e[51] = ve) : ve = e[51];
|
|
3102
|
+
let Q;
|
|
3103
|
+
e[52] !== me || e[53] !== ve ? (Q = /* @__PURE__ */ W("div", {
|
|
3104
|
+
className: Qi,
|
|
3259
3105
|
children: [
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3106
|
+
fe,
|
|
3107
|
+
me,
|
|
3108
|
+
ve
|
|
3263
3109
|
]
|
|
3264
|
-
}), e[52] =
|
|
3265
|
-
let ve;
|
|
3266
|
-
e[55] === a ? ve = e[56] : (ve = q(oa, a), e[55] = a, e[56] = ve);
|
|
3110
|
+
}), e[52] = me, e[53] = ve, e[54] = Q) : Q = e[54];
|
|
3267
3111
|
let ye;
|
|
3268
|
-
e[
|
|
3112
|
+
e[55] === a ? ye = e[56] : (ye = G($i, a), e[55] = a, e[56] = ye);
|
|
3113
|
+
let be;
|
|
3114
|
+
e[57] !== g.direction || e[58] !== g.state || e[59] !== C || e[60] !== t || e[61] !== o || e[62] !== ae || e[63] !== re || e[64] !== ce || e[65] !== S || e[66] !== p || e[67] !== te || e[68] !== n || e[69] !== i?.show || e[70] !== i?.styles || e[71] !== i?.text || e[72] !== r ? (be = C && /* @__PURE__ */ U("div", {
|
|
3269
3115
|
className: "_1ypxmcv6",
|
|
3270
3116
|
"data-state": g.state,
|
|
3271
3117
|
"data-direction": g.direction,
|
|
3272
3118
|
onAnimationEnd: ae,
|
|
3273
|
-
children: /* @__PURE__ */
|
|
3119
|
+
children: /* @__PURE__ */ W("form", {
|
|
3274
3120
|
onSubmit: te,
|
|
3275
3121
|
className: "_1ypxmcv7",
|
|
3276
3122
|
children: [
|
|
3277
|
-
/* @__PURE__ */
|
|
3123
|
+
/* @__PURE__ */ U(zr, {
|
|
3278
3124
|
field: C.content,
|
|
3279
3125
|
schema: n,
|
|
3280
3126
|
widgets: r,
|
|
3281
3127
|
settings: { enableVerification: o }
|
|
3282
3128
|
}),
|
|
3283
|
-
!t && S && /* @__PURE__ */
|
|
3284
|
-
/* @__PURE__ */
|
|
3129
|
+
!t && S && /* @__PURE__ */ U(_i, {}),
|
|
3130
|
+
/* @__PURE__ */ W("div", {
|
|
3285
3131
|
className: "_1ypxmcv8",
|
|
3286
|
-
children: [/* @__PURE__ */
|
|
3132
|
+
children: [/* @__PURE__ */ U("div", { className: "_1ypxmcv9" }), /* @__PURE__ */ W("div", {
|
|
3287
3133
|
className: "_1ypxmcva",
|
|
3288
|
-
children: [/* @__PURE__ */
|
|
3134
|
+
children: [/* @__PURE__ */ W(s, {
|
|
3289
3135
|
type: "button",
|
|
3290
3136
|
onClick: re,
|
|
3291
3137
|
size: "lg",
|
|
3292
3138
|
disabled: p === 0 || ce || g.state !== "entered",
|
|
3293
3139
|
variant: "ghost",
|
|
3294
|
-
children: [/* @__PURE__ */
|
|
3140
|
+
children: [/* @__PURE__ */ U(q, {
|
|
3295
3141
|
size: 18,
|
|
3296
3142
|
className: "mr-2"
|
|
3297
3143
|
}), "Prev"]
|
|
3298
|
-
}), (!S || i?.show !== !1) && /* @__PURE__ */
|
|
3144
|
+
}), (!S || i?.show !== !1) && /* @__PURE__ */ U(s, {
|
|
3299
3145
|
type: "submit",
|
|
3300
3146
|
size: "lg",
|
|
3301
3147
|
className: i?.styles,
|
|
@@ -3306,38 +3152,38 @@ var Yi = "fil1ri0", Xi = "fil1ri1", Zi = "fil1ri2", Qi = "fil1ri5", $i = () => {
|
|
|
3306
3152
|
})
|
|
3307
3153
|
]
|
|
3308
3154
|
})
|
|
3309
|
-
}, C.id), e[57] = g.direction, e[58] = g.state, e[59] = C, e[60] = t, e[61] = o, e[62] = ae, e[63] = re, e[64] = ce, e[65] = S, e[66] = p, e[67] = te, e[68] = n, e[69] = i?.show, e[70] = i?.styles, e[71] = i?.text, e[72] = r, e[73] =
|
|
3310
|
-
let be;
|
|
3311
|
-
e[74] !== ve || e[75] !== ye ? (be = /* @__PURE__ */ G("div", {
|
|
3312
|
-
className: ve,
|
|
3313
|
-
children: ye
|
|
3314
|
-
}), e[74] = ve, e[75] = ye, e[76] = be) : be = e[76];
|
|
3155
|
+
}, C.id), e[57] = g.direction, e[58] = g.state, e[59] = C, e[60] = t, e[61] = o, e[62] = ae, e[63] = re, e[64] = ce, e[65] = S, e[66] = p, e[67] = te, e[68] = n, e[69] = i?.show, e[70] = i?.styles, e[71] = i?.text, e[72] = r, e[73] = be) : be = e[73];
|
|
3315
3156
|
let xe;
|
|
3316
|
-
|
|
3157
|
+
e[74] !== ye || e[75] !== be ? (xe = /* @__PURE__ */ U("div", {
|
|
3158
|
+
className: ye,
|
|
3159
|
+
children: be
|
|
3160
|
+
}), e[74] = ye, e[75] = be, e[76] = xe) : xe = e[76];
|
|
3161
|
+
let Se;
|
|
3162
|
+
return e[77] !== k || e[78] !== de || e[79] !== Q || e[80] !== xe ? (Se = /* @__PURE__ */ W(_e, {
|
|
3317
3163
|
...k,
|
|
3318
3164
|
children: [
|
|
3165
|
+
de,
|
|
3319
3166
|
Q,
|
|
3320
|
-
|
|
3321
|
-
be
|
|
3167
|
+
xe
|
|
3322
3168
|
]
|
|
3323
|
-
}), e[77] = k, e[78] =
|
|
3169
|
+
}), e[77] = k, e[78] = de, e[79] = Q, e[80] = xe, e[81] = Se) : Se = e[81], Se;
|
|
3324
3170
|
};
|
|
3325
|
-
function
|
|
3171
|
+
function ia(e) {
|
|
3326
3172
|
return Math.max(e - 1, 0);
|
|
3327
3173
|
}
|
|
3328
3174
|
//#endregion
|
|
3329
3175
|
//#region ../../libraries/react-collection/dist/lib/variants/StepFormVariant2/StepFormVariant2.cssm.js
|
|
3330
|
-
var
|
|
3331
|
-
let e = D(99), { disableCaptcha: t, schema: n, widgets: r, submitButtonConfig: i, containerStyles: a, enableVerification: o } =
|
|
3332
|
-
e[0] === n ? c = e[1] : (c = () =>
|
|
3333
|
-
let [l, u] =
|
|
3176
|
+
var aa = "zlgzzn0", oa = "zlgzzn1", sa = "zlgzznb", ca = "zlgzznc", la = (e, t) => e?.sections ? e.sections.filter((n) => ot(n.fields || []) ? !1 : Qe(e, n, t)) : [], ua = () => {
|
|
3177
|
+
let e = D(99), { disableCaptcha: t, schema: n, widgets: r, submitButtonConfig: i, containerStyles: a, enableVerification: o } = $r(), c;
|
|
3178
|
+
e[0] === n ? c = e[1] : (c = () => la(n, {}), e[0] = n, e[1] = c);
|
|
3179
|
+
let [l, u] = V(c), [d, f] = V(0), [p, m] = V(0), h;
|
|
3334
3180
|
e[2] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
3335
3181
|
state: "entered",
|
|
3336
3182
|
direction: "next"
|
|
3337
3183
|
}, e[2] = h) : h = e[2];
|
|
3338
|
-
let [g, _] =
|
|
3184
|
+
let [g, _] = V(h), v;
|
|
3339
3185
|
e[3] === Symbol.for("react.memo_cache_sentinel") ? (v = [], e[3] = v) : v = e[3];
|
|
3340
|
-
let [y, b] =
|
|
3186
|
+
let [y, b] = V(v), x = g.state === "exiting" ? d : p, S = l[x], C = p === l.length - 1, w;
|
|
3341
3187
|
bb0: {
|
|
3342
3188
|
if (n) {
|
|
3343
3189
|
let t;
|
|
@@ -3354,7 +3200,7 @@ var fa = "zlgzzn0", pa = "zlgzzn1", ma = "zlgzznb", ha = "zlgzznc", ga = (e, t)
|
|
|
3354
3200
|
w = null;
|
|
3355
3201
|
}
|
|
3356
3202
|
let T = w, E;
|
|
3357
|
-
e[9] === n ? E = e[10] : (E = (e) => u(
|
|
3203
|
+
e[9] === n ? E = e[10] : (E = (e) => u(la(n, e)), e[9] = n, e[10] = E);
|
|
3358
3204
|
let O;
|
|
3359
3205
|
e[11] === Symbol.for("react.memo_cache_sentinel") ? (O = () => {
|
|
3360
3206
|
b([]), m(0), _({
|
|
@@ -3381,15 +3227,15 @@ var fa = "zlgzzn0", pa = "zlgzzn1", ma = "zlgzznb", ha = "zlgzznc", ga = (e, t)
|
|
|
3381
3227
|
onSubmitSuccess: O,
|
|
3382
3228
|
onSubmitError: k
|
|
3383
3229
|
}, e[15] = n, e[16] = T, e[17] = E, e[18] = k, e[19] = A) : A = e[19];
|
|
3384
|
-
let { methods: j, submitToRemote: M, appendFormValues: N, handleContentId: P, isError: F, allFormValues: I, contentId: L, publishedId:
|
|
3230
|
+
let { methods: j, submitToRemote: M, appendFormValues: N, handleContentId: P, isError: F, allFormValues: I, contentId: L, publishedId: z, isLoading: B, showSuccessOverlay: H, dismissSuccessOverlay: K } = ai(A), { handleSubmit: J, setFocus: Y, setError: X, watch: Z, formState: ee } = j, { isSubmitting: te } = ee, ne;
|
|
3385
3231
|
e[20] === Z ? ne = e[21] : (ne = Z("__captcha"), e[20] = Z, e[21] = ne);
|
|
3386
3232
|
let re = ne, ie;
|
|
3387
3233
|
e[22] !== I || e[23] !== g.state || e[24] !== N || e[25] !== S?.fields || e[26] !== p || e[27] !== n || e[28] !== M ? (ie = async (e) => {
|
|
3388
3234
|
b((e) => {
|
|
3389
|
-
let t = S?.fields?.map(
|
|
3235
|
+
let t = S?.fields?.map(da) || [];
|
|
3390
3236
|
return e.filter((e) => !t.includes(e.param));
|
|
3391
3237
|
});
|
|
3392
|
-
let t =
|
|
3238
|
+
let t = la(n, {
|
|
3393
3239
|
...I || {},
|
|
3394
3240
|
...e
|
|
3395
3241
|
});
|
|
@@ -3399,152 +3245,152 @@ var fa = "zlgzzn0", pa = "zlgzzn1", ma = "zlgzznb", ha = "zlgzznc", ga = (e, t)
|
|
|
3399
3245
|
})));
|
|
3400
3246
|
}, e[22] = I, e[23] = g.state, e[24] = N, e[25] = S?.fields, e[26] = p, e[27] = n, e[28] = M, e[29] = ie) : ie = e[29];
|
|
3401
3247
|
let ae;
|
|
3402
|
-
e[30] !==
|
|
3248
|
+
e[30] !== J || e[31] !== ie ? (ae = J(ie), e[30] = J, e[31] = ie, e[32] = ae) : ae = e[32];
|
|
3403
3249
|
let oe = ae, se;
|
|
3404
3250
|
e[33] !== g.state || e[34] !== p ? (se = () => {
|
|
3405
|
-
g.state === "entered" && (p <= 0 || (m(
|
|
3251
|
+
g.state === "entered" && (p <= 0 || (m(fa), _({
|
|
3406
3252
|
state: "exiting",
|
|
3407
3253
|
direction: "prev"
|
|
3408
3254
|
})));
|
|
3409
3255
|
}, e[33] = g.state, e[34] = p, e[35] = se) : se = e[35];
|
|
3410
3256
|
let ce = se, le;
|
|
3411
|
-
e[36] !== g.direction || e[37] !== g.state || e[38] !== S || e[39] !== p || e[40] !==
|
|
3257
|
+
e[36] !== g.direction || e[37] !== g.state || e[38] !== S || e[39] !== p || e[40] !== Y ? (le = () => {
|
|
3412
3258
|
g.state === "exiting" ? (f(p), _({
|
|
3413
3259
|
state: "entering",
|
|
3414
3260
|
direction: g.direction
|
|
3415
3261
|
})) : g.state === "entering" && (_({
|
|
3416
3262
|
state: "entered",
|
|
3417
3263
|
direction: g.direction
|
|
3418
|
-
}), S?.fields?.[0]?.key &&
|
|
3419
|
-
}, e[36] = g.direction, e[37] = g.state, e[38] = S, e[39] = p, e[40] =
|
|
3420
|
-
let ue = le,
|
|
3421
|
-
e[42] !== g.state || e[43] !== S || e[44] !== y || e[45] !== X ? (
|
|
3264
|
+
}), S?.fields?.[0]?.key && Y(S.fields[0].key));
|
|
3265
|
+
}, e[36] = g.direction, e[37] = g.state, e[38] = S, e[39] = p, e[40] = Y, e[41] = le) : le = e[41];
|
|
3266
|
+
let ue = le, de;
|
|
3267
|
+
e[42] !== g.state || e[43] !== S || e[44] !== y || e[45] !== X ? (de = () => {
|
|
3422
3268
|
y?.length > 0 && S?.fields && g?.state === "entered" && y.forEach((e) => {
|
|
3423
3269
|
S.fields?.some((t) => t.key === e.param) && X(e?.param, {
|
|
3424
3270
|
type: "server_error",
|
|
3425
3271
|
message: e?.message
|
|
3426
3272
|
});
|
|
3427
3273
|
});
|
|
3428
|
-
}, e[42] = g.state, e[43] = S, e[44] = y, e[45] = X, e[46] =
|
|
3429
|
-
let
|
|
3430
|
-
if (e[47] !== g || e[48] !== S || e[49] !== y || e[50] !== X ? (
|
|
3274
|
+
}, e[42] = g.state, e[43] = S, e[44] = y, e[45] = X, e[46] = de) : de = e[46];
|
|
3275
|
+
let fe;
|
|
3276
|
+
if (e[47] !== g || e[48] !== S || e[49] !== y || e[50] !== X ? (fe = [
|
|
3431
3277
|
y,
|
|
3432
3278
|
X,
|
|
3433
3279
|
S,
|
|
3434
3280
|
g
|
|
3435
|
-
], e[47] = g, e[48] = S, e[49] = y, e[50] = X, e[51] =
|
|
3436
|
-
if (
|
|
3281
|
+
], e[47] = g, e[48] = S, e[49] = y, e[50] = X, e[51] = fe) : fe = e[51], R(de, fe), !n || l.length === 0) return null;
|
|
3282
|
+
if (H) {
|
|
3437
3283
|
let t;
|
|
3438
|
-
return e[52] ===
|
|
3284
|
+
return e[52] === K ? t = e[53] : (t = /* @__PURE__ */ U(Ri, { onDismiss: K }), e[52] = K, e[53] = t), t;
|
|
3439
3285
|
}
|
|
3440
|
-
let
|
|
3441
|
-
e[54] !== I || e[55] !== P || e[56] !== F || e[57] !==
|
|
3286
|
+
let pe = te || B || re === "verifying" && C, me = L || "", he = z || "", ge;
|
|
3287
|
+
e[54] !== I || e[55] !== P || e[56] !== F || e[57] !== me || e[58] !== he ? (ge = /* @__PURE__ */ U(zi, {
|
|
3442
3288
|
getContentId: P,
|
|
3443
3289
|
isError: F,
|
|
3444
|
-
contentId:
|
|
3445
|
-
publishedId:
|
|
3290
|
+
contentId: me,
|
|
3291
|
+
publishedId: he,
|
|
3446
3292
|
allFormValues: I
|
|
3447
|
-
}), e[54] = I, e[55] = P, e[56] = F, e[57] =
|
|
3448
|
-
let
|
|
3449
|
-
e[60] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
3450
|
-
let
|
|
3451
|
-
e[61] ===
|
|
3452
|
-
className:
|
|
3453
|
-
children:
|
|
3454
|
-
}), e[61] =
|
|
3455
|
-
let
|
|
3456
|
-
e[63] !== p || e[64] !==
|
|
3293
|
+
}), e[54] = I, e[55] = P, e[56] = F, e[57] = me, e[58] = he, e[59] = ge) : ge = e[59];
|
|
3294
|
+
let ve;
|
|
3295
|
+
e[60] === Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ U(Ei, { className: ca }), e[60] = ve) : ve = e[60];
|
|
3296
|
+
let Q = S?.label, ye;
|
|
3297
|
+
e[61] === Q ? ye = e[62] : (ye = /* @__PURE__ */ U(Oi, {
|
|
3298
|
+
className: sa,
|
|
3299
|
+
children: Q
|
|
3300
|
+
}), e[61] = Q, e[62] = ye);
|
|
3301
|
+
let be = l?.length || 1, xe = Array.isArray(y) && y?.length > 0, Se;
|
|
3302
|
+
e[63] !== p || e[64] !== be || e[65] !== xe ? (Se = /* @__PURE__ */ U(Zi, {
|
|
3457
3303
|
currentStepIndex: p,
|
|
3458
|
-
totalSteps:
|
|
3459
|
-
hasLevoErrors:
|
|
3460
|
-
}), e[63] = p, e[64] =
|
|
3461
|
-
let
|
|
3462
|
-
e[67] !==
|
|
3463
|
-
className:
|
|
3304
|
+
totalSteps: be,
|
|
3305
|
+
hasLevoErrors: xe
|
|
3306
|
+
}), e[63] = p, e[64] = be, e[65] = xe, e[66] = Se) : Se = e[66];
|
|
3307
|
+
let Ce;
|
|
3308
|
+
e[67] !== ye || e[68] !== Se ? (Ce = /* @__PURE__ */ W("div", {
|
|
3309
|
+
className: aa,
|
|
3464
3310
|
children: [
|
|
3465
|
-
ge,
|
|
3466
3311
|
ve,
|
|
3467
|
-
|
|
3312
|
+
ye,
|
|
3313
|
+
Se
|
|
3468
3314
|
]
|
|
3469
|
-
}), e[67] =
|
|
3315
|
+
}), e[67] = ye, e[68] = Se, e[69] = Ce) : Ce = e[69];
|
|
3470
3316
|
let we;
|
|
3471
|
-
e[70] === a ? we = e[71] : (we =
|
|
3317
|
+
e[70] === a ? we = e[71] : (we = G(oa, a), e[70] = a, e[71] = we);
|
|
3472
3318
|
let Te;
|
|
3473
|
-
e[72] !== g.direction || e[73] !== g.state || e[74] !== re || e[75] !== S || e[76] !== t || e[77] !== x || e[78] !== o || e[79] !== ue || e[80] !== ce || e[81] !==
|
|
3319
|
+
e[72] !== g.direction || e[73] !== g.state || e[74] !== re || e[75] !== S || e[76] !== t || e[77] !== x || e[78] !== o || e[79] !== ue || e[80] !== ce || e[81] !== pe || e[82] !== C || e[83] !== p || e[84] !== oe || e[85] !== n || e[86] !== i?.show || e[87] !== i?.styles || e[88] !== i?.text || e[89] !== r ? (Te = S && /* @__PURE__ */ U("div", {
|
|
3474
3320
|
className: "zlgzzn6",
|
|
3475
3321
|
"data-state": g.state,
|
|
3476
3322
|
"data-direction": g.direction,
|
|
3477
3323
|
onAnimationEnd: ue,
|
|
3478
|
-
children: /* @__PURE__ */
|
|
3324
|
+
children: /* @__PURE__ */ W("form", {
|
|
3479
3325
|
onSubmit: oe,
|
|
3480
3326
|
className: "zlgzzn7",
|
|
3481
3327
|
children: [
|
|
3482
|
-
S.fields?.map((e) => e.hidden ? null : /* @__PURE__ */
|
|
3328
|
+
S.fields?.map((e) => e.hidden ? null : /* @__PURE__ */ U(zr, {
|
|
3483
3329
|
field: e,
|
|
3484
3330
|
schema: n,
|
|
3485
3331
|
widgets: r,
|
|
3486
3332
|
settings: { enableVerification: o }
|
|
3487
3333
|
}, e.key)),
|
|
3488
|
-
!t && C && /* @__PURE__ */
|
|
3489
|
-
/* @__PURE__ */
|
|
3334
|
+
!t && C && /* @__PURE__ */ U(_i, {}),
|
|
3335
|
+
/* @__PURE__ */ W("div", {
|
|
3490
3336
|
className: "zlgzzn8",
|
|
3491
|
-
children: [/* @__PURE__ */
|
|
3337
|
+
children: [/* @__PURE__ */ U("div", { className: "zlgzzn9" }), /* @__PURE__ */ W("div", {
|
|
3492
3338
|
className: "zlgzzna",
|
|
3493
|
-
children: [/* @__PURE__ */
|
|
3339
|
+
children: [/* @__PURE__ */ W(s, {
|
|
3494
3340
|
type: "button",
|
|
3495
3341
|
onClick: ce,
|
|
3496
3342
|
size: "lg",
|
|
3497
|
-
disabled: p === 0 ||
|
|
3343
|
+
disabled: p === 0 || pe || g.state !== "entered",
|
|
3498
3344
|
variant: "ghost",
|
|
3499
|
-
children: [/* @__PURE__ */
|
|
3345
|
+
children: [/* @__PURE__ */ U(q, {
|
|
3500
3346
|
size: 18,
|
|
3501
3347
|
className: "mr-2"
|
|
3502
3348
|
}), "Prev"]
|
|
3503
|
-
}), (!C || i?.show !== !1) && /* @__PURE__ */
|
|
3349
|
+
}), (!C || i?.show !== !1) && /* @__PURE__ */ U(s, {
|
|
3504
3350
|
type: "submit",
|
|
3505
3351
|
size: "lg",
|
|
3506
3352
|
className: i?.styles,
|
|
3507
|
-
disabled:
|
|
3508
|
-
children:
|
|
3353
|
+
disabled: pe || g.state !== "entered",
|
|
3354
|
+
children: pe ? re === "verifying" ? "Verifying..." : "Saving..." : C ? i?.text || "Save" : "Next"
|
|
3509
3355
|
})]
|
|
3510
3356
|
})]
|
|
3511
3357
|
})
|
|
3512
3358
|
]
|
|
3513
3359
|
})
|
|
3514
|
-
}, S.id || x), e[72] = g.direction, e[73] = g.state, e[74] = re, e[75] = S, e[76] = t, e[77] = x, e[78] = o, e[79] = ue, e[80] = ce, e[81] =
|
|
3360
|
+
}, S.id || x), e[72] = g.direction, e[73] = g.state, e[74] = re, e[75] = S, e[76] = t, e[77] = x, e[78] = o, e[79] = ue, e[80] = ce, e[81] = pe, e[82] = C, e[83] = p, e[84] = oe, e[85] = n, e[86] = i?.show, e[87] = i?.styles, e[88] = i?.text, e[89] = r, e[90] = Te) : Te = e[90];
|
|
3515
3361
|
let Ee;
|
|
3516
|
-
e[91] !== we || e[92] !== Te ? (Ee = /* @__PURE__ */
|
|
3362
|
+
e[91] !== we || e[92] !== Te ? (Ee = /* @__PURE__ */ U("div", {
|
|
3517
3363
|
className: we,
|
|
3518
3364
|
children: Te
|
|
3519
3365
|
}), e[91] = we, e[92] = Te, e[93] = Ee) : Ee = e[93];
|
|
3520
3366
|
let De;
|
|
3521
|
-
return e[94] !== j || e[95] !==
|
|
3367
|
+
return e[94] !== j || e[95] !== ge || e[96] !== Ce || e[97] !== Ee ? (De = /* @__PURE__ */ W(_e, {
|
|
3522
3368
|
...j,
|
|
3523
3369
|
children: [
|
|
3524
|
-
|
|
3525
|
-
|
|
3370
|
+
ge,
|
|
3371
|
+
Ce,
|
|
3526
3372
|
Ee
|
|
3527
3373
|
]
|
|
3528
|
-
}), e[94] = j, e[95] =
|
|
3374
|
+
}), e[94] = j, e[95] = ge, e[96] = Ce, e[97] = Ee, e[98] = De) : De = e[98], De;
|
|
3529
3375
|
};
|
|
3530
|
-
function
|
|
3376
|
+
function da(e) {
|
|
3531
3377
|
return e.key;
|
|
3532
3378
|
}
|
|
3533
|
-
function
|
|
3379
|
+
function fa(e) {
|
|
3534
3380
|
return Math.max(e - 1, 0);
|
|
3535
3381
|
}
|
|
3536
3382
|
//#endregion
|
|
3537
3383
|
//#region ../../libraries/react-collection/dist/lib/variants/StepsFormVariant/StepsFormVariant.cssm.js
|
|
3538
|
-
var
|
|
3539
|
-
let e = D(15), { schema: t, containerStyles: n } =
|
|
3540
|
-
e[0] === t ? r = e[1] : (r = () =>
|
|
3541
|
-
let [i, a] =
|
|
3384
|
+
var pa = "_1f3ynb50", ma = "_1f3ynb54", ha = "_1f3ynb55", ga = (e, t) => e?.sections ? e.sections.filter((n) => ot(n.fields || []) ? !1 : Qe(e, n, t)) : [], _a = () => {
|
|
3385
|
+
let e = D(15), { schema: t, containerStyles: n } = $r(), r;
|
|
3386
|
+
e[0] === t ? r = e[1] : (r = () => ga(t, {}), e[0] = t, e[1] = r);
|
|
3387
|
+
let [i, a] = V(r), [o, s] = V(0), c;
|
|
3542
3388
|
e[2] === Symbol.for("react.memo_cache_sentinel") ? (c = () => {
|
|
3543
|
-
s(
|
|
3389
|
+
s(ya);
|
|
3544
3390
|
}, e[2] = c) : c = e[2];
|
|
3545
3391
|
let l = c, u;
|
|
3546
3392
|
e[3] === Symbol.for("react.memo_cache_sentinel") ? (u = () => {
|
|
3547
|
-
s(
|
|
3393
|
+
s(ba);
|
|
3548
3394
|
}, e[3] = u) : u = e[3];
|
|
3549
3395
|
let d = u, f;
|
|
3550
3396
|
e[4] === Symbol.for("react.memo_cache_sentinel") ? (f = (e) => {
|
|
@@ -3552,14 +3398,14 @@ var ba = "_1f3ynb50", xa = "_1f3ynb54", Sa = "_1f3ynb55", Ca = (e, t) => e?.sect
|
|
|
3552
3398
|
}, e[4] = f) : f = e[4];
|
|
3553
3399
|
let p = f, m;
|
|
3554
3400
|
e[5] === t ? m = e[6] : (m = (e) => {
|
|
3555
|
-
a(
|
|
3401
|
+
a(ga(t, e)), d();
|
|
3556
3402
|
}, e[5] = t, e[6] = m);
|
|
3557
3403
|
let h;
|
|
3558
3404
|
e[7] === t ? h = e[8] : (h = (e) => {
|
|
3559
|
-
a(
|
|
3405
|
+
a(ga(t, e));
|
|
3560
3406
|
}, e[7] = t, e[8] = h);
|
|
3561
3407
|
let g;
|
|
3562
|
-
return e[9] !== n || e[10] !== o || e[11] !== m || e[12] !== h || e[13] !== i ? (g = /* @__PURE__ */
|
|
3408
|
+
return e[9] !== n || e[10] !== o || e[11] !== m || e[12] !== h || e[13] !== i ? (g = /* @__PURE__ */ U(va, {
|
|
3563
3409
|
currentSectionIndex: o,
|
|
3564
3410
|
visibleSections: i,
|
|
3565
3411
|
onAdvanceWithValues: m,
|
|
@@ -3568,10 +3414,10 @@ var ba = "_1f3ynb50", xa = "_1f3ynb54", Sa = "_1f3ynb55", Ca = (e, t) => e?.sect
|
|
|
3568
3414
|
onInit: h,
|
|
3569
3415
|
containerStyles: n
|
|
3570
3416
|
}), e[9] = n, e[10] = o, e[11] = m, e[12] = h, e[13] = i, e[14] = g) : g = e[14], g;
|
|
3571
|
-
},
|
|
3572
|
-
let t = D(82), { containerStyles: n, currentSectionIndex: r, visibleSections: i, onAdvanceWithValues: a, handlePrev: o, goToIndex: c, onInit: l } = e, { schema: u, disableCaptcha: d, isDisabled: f, submitButtonConfig: p, widgets: m, enableVerification: h } =
|
|
3417
|
+
}, va = (e) => {
|
|
3418
|
+
let t = D(82), { containerStyles: n, currentSectionIndex: r, visibleSections: i, onAdvanceWithValues: a, handlePrev: o, goToIndex: c, onInit: l } = e, { schema: u, disableCaptcha: d, isDisabled: f, submitButtonConfig: p, widgets: m, enableVerification: h } = $r(), g;
|
|
3573
3419
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (g = [], t[0] = g) : g = t[0];
|
|
3574
|
-
let [_, v] =
|
|
3420
|
+
let [_, v] = V(g), y = i?.[r], b;
|
|
3575
3421
|
bb0: {
|
|
3576
3422
|
if (u) {
|
|
3577
3423
|
let e;
|
|
@@ -3607,40 +3453,40 @@ var ba = "_1f3ynb50", xa = "_1f3ynb54", Sa = "_1f3ynb55", Ca = (e, t) => e?.sect
|
|
|
3607
3453
|
onSubmitSuccess: C,
|
|
3608
3454
|
onSubmitError: w
|
|
3609
3455
|
}, t[11] = l, t[12] = u, t[13] = x, t[14] = C, t[15] = w, t[16] = T) : T = t[16];
|
|
3610
|
-
let { methods: E, submitToRemote: O, appendFormValues: k, isLoading: A, handleContentId: j, isError: M, contentId: N, publishedId: P, allFormValues: F, showSuccessOverlay: I, dismissSuccessOverlay: L } =
|
|
3611
|
-
t[17] ===
|
|
3456
|
+
let { methods: E, submitToRemote: O, appendFormValues: k, isLoading: A, handleContentId: j, isError: M, contentId: N, publishedId: P, allFormValues: F, showSuccessOverlay: I, dismissSuccessOverlay: L } = ai(T), { handleSubmit: z, setError: B, watch: H, formState: K } = E, { isSubmitting: q } = K, J;
|
|
3457
|
+
t[17] === H ? J = t[18] : (J = H("__captcha"), t[17] = H, t[18] = J);
|
|
3612
3458
|
let Y = J, X;
|
|
3613
3459
|
t[19] !== F || t[20] !== k || t[21] !== y?.fields || t[22] !== r || t[23] !== a || t[24] !== u || t[25] !== O ? (X = async (e) => {
|
|
3614
3460
|
v((e) => {
|
|
3615
|
-
let t = y?.fields?.map(
|
|
3461
|
+
let t = y?.fields?.map(xa) || [];
|
|
3616
3462
|
return e.filter((e) => !t.includes(e.param));
|
|
3617
3463
|
});
|
|
3618
3464
|
let t = {
|
|
3619
3465
|
...F || {},
|
|
3620
3466
|
...e
|
|
3621
3467
|
};
|
|
3622
|
-
r >=
|
|
3468
|
+
r >= ga(u, t).length - 1 ? await O(e) : (k(e), a(t));
|
|
3623
3469
|
}, t[19] = F, t[20] = k, t[21] = y?.fields, t[22] = r, t[23] = a, t[24] = u, t[25] = O, t[26] = X) : X = t[26];
|
|
3624
3470
|
let Z;
|
|
3625
|
-
t[27] !==
|
|
3471
|
+
t[27] !== z || t[28] !== X ? (Z = z(X), t[27] = z, t[28] = X, t[29] = Z) : Z = t[29];
|
|
3626
3472
|
let ee = Z, te, ne;
|
|
3627
|
-
if (t[30] !== y || t[31] !== _ || t[32] !==
|
|
3473
|
+
if (t[30] !== y || t[31] !== _ || t[32] !== B ? (ne = () => {
|
|
3628
3474
|
_?.length > 0 && y?.fields && _.forEach((e) => {
|
|
3629
|
-
y.fields?.some((t) => t.key === e.param) &&
|
|
3475
|
+
y.fields?.some((t) => t.key === e.param) && B(e?.param, {
|
|
3630
3476
|
type: "server_error",
|
|
3631
3477
|
message: e?.message
|
|
3632
3478
|
});
|
|
3633
3479
|
});
|
|
3634
3480
|
}, te = [
|
|
3635
3481
|
_,
|
|
3636
|
-
|
|
3482
|
+
B,
|
|
3637
3483
|
y
|
|
3638
|
-
], t[30] = y, t[31] = _, t[32] =
|
|
3484
|
+
], t[30] = y, t[31] = _, t[32] = B, t[33] = te, t[34] = ne) : (te = t[33], ne = t[34]), R(ne, te), I) {
|
|
3639
3485
|
let e;
|
|
3640
|
-
return t[35] === L ? e = t[36] : (e = /* @__PURE__ */
|
|
3486
|
+
return t[35] === L ? e = t[36] : (e = /* @__PURE__ */ U(Ri, { onDismiss: L }), t[35] = L, t[36] = e), e;
|
|
3641
3487
|
}
|
|
3642
|
-
let re =
|
|
3643
|
-
t[37] !== F || t[38] !== j || t[39] !== M || t[40] !== ie || t[41] !== ae ? (oe = /* @__PURE__ */
|
|
3488
|
+
let re = q || Y === "verifying" && S, ie = N || "", ae = P || "", oe;
|
|
3489
|
+
t[37] !== F || t[38] !== j || t[39] !== M || t[40] !== ie || t[41] !== ae ? (oe = /* @__PURE__ */ U(zi, {
|
|
3644
3490
|
getContentId: j,
|
|
3645
3491
|
isError: M,
|
|
3646
3492
|
contentId: ie,
|
|
@@ -3648,22 +3494,22 @@ var ba = "_1f3ynb50", xa = "_1f3ynb54", Sa = "_1f3ynb55", Ca = (e, t) => e?.sect
|
|
|
3648
3494
|
allFormValues: F
|
|
3649
3495
|
}), t[37] = F, t[38] = j, t[39] = M, t[40] = ie, t[41] = ae, t[42] = oe) : oe = t[42];
|
|
3650
3496
|
let se = A && "_1f3ynb51", ce;
|
|
3651
|
-
t[43] !== n || t[44] !== se ? (ce =
|
|
3497
|
+
t[43] !== n || t[44] !== se ? (ce = G(pa, n, se), t[43] = n, t[44] = se, t[45] = ce) : ce = t[45];
|
|
3652
3498
|
let le;
|
|
3653
|
-
t[46] === Symbol.for("react.memo_cache_sentinel") ? (le = /* @__PURE__ */
|
|
3654
|
-
let ue = y?.label || "Details",
|
|
3655
|
-
t[47] === ue ?
|
|
3656
|
-
let
|
|
3657
|
-
t[49] !== y?.fields || t[50] !== h || t[51] !== u || t[52] !== m ? (
|
|
3499
|
+
t[46] === Symbol.for("react.memo_cache_sentinel") ? (le = /* @__PURE__ */ U(Ei, {}), t[46] = le) : le = t[46];
|
|
3500
|
+
let ue = y?.label || "Details", de;
|
|
3501
|
+
t[47] === ue ? de = t[48] : (de = /* @__PURE__ */ U(Oi, { children: /* @__PURE__ */ U("span", { children: ue }) }), t[47] = ue, t[48] = de);
|
|
3502
|
+
let fe;
|
|
3503
|
+
t[49] !== y?.fields || t[50] !== h || t[51] !== u || t[52] !== m ? (fe = y?.fields?.map((e) => e && !e.hidden ? /* @__PURE__ */ U(zr, {
|
|
3658
3504
|
field: e,
|
|
3659
3505
|
widgets: m,
|
|
3660
3506
|
schema: u,
|
|
3661
3507
|
settings: { enableVerification: h }
|
|
3662
|
-
}, e?.key) : null), t[49] = y?.fields, t[50] = h, t[51] = u, t[52] = m, t[53] =
|
|
3663
|
-
let fe;
|
|
3664
|
-
t[54] !== d || t[55] !== S ? (fe = !d && S && /* @__PURE__ */ G(wi, {}), t[54] = d, t[55] = S, t[56] = fe) : fe = t[56];
|
|
3508
|
+
}, e?.key) : null), t[49] = y?.fields, t[50] = h, t[51] = u, t[52] = m, t[53] = fe) : fe = t[53];
|
|
3665
3509
|
let pe;
|
|
3666
|
-
t[
|
|
3510
|
+
t[54] !== d || t[55] !== S ? (pe = !d && S && /* @__PURE__ */ U(_i, {}), t[54] = d, t[55] = S, t[56] = pe) : pe = t[56];
|
|
3511
|
+
let me;
|
|
3512
|
+
t[57] !== Y || t[58] !== r || t[59] !== o || t[60] !== S ? (me = r === 0 ? /* @__PURE__ */ U("div", {}) : /* @__PURE__ */ U(s, {
|
|
3667
3513
|
type: "button",
|
|
3668
3514
|
size: "sm",
|
|
3669
3515
|
variant: "secondary",
|
|
@@ -3672,124 +3518,120 @@ var ba = "_1f3ynb50", xa = "_1f3ynb54", Sa = "_1f3ynb55", Ca = (e, t) => e?.sect
|
|
|
3672
3518
|
o();
|
|
3673
3519
|
},
|
|
3674
3520
|
children: "Prev"
|
|
3675
|
-
}), t[57] = Y, t[58] = r, t[59] = o, t[60] = S, t[61] =
|
|
3676
|
-
let
|
|
3677
|
-
t[62] !==
|
|
3521
|
+
}), t[57] = Y, t[58] = r, t[59] = o, t[60] = S, t[61] = me) : me = t[61];
|
|
3522
|
+
let he = f || re, ge = p?.styles, ve = re ? Y === "verifying" ? "Verifying..." : "Saving..." : S ? p?.text || "Save" : "Next", Q;
|
|
3523
|
+
t[62] !== he || t[63] !== ge || t[64] !== ve ? (Q = /* @__PURE__ */ U(s, {
|
|
3678
3524
|
type: "submit",
|
|
3679
3525
|
size: "sm",
|
|
3680
|
-
disabled:
|
|
3681
|
-
className:
|
|
3682
|
-
children:
|
|
3683
|
-
}), t[62] =
|
|
3684
|
-
let ve;
|
|
3685
|
-
t[66] !== pe || t[67] !== _e ? (ve = /* @__PURE__ */ K("div", {
|
|
3686
|
-
className: xa,
|
|
3687
|
-
children: [pe, _e]
|
|
3688
|
-
}), t[66] = pe, t[67] = _e, t[68] = ve) : ve = t[68];
|
|
3526
|
+
disabled: he,
|
|
3527
|
+
className: ge,
|
|
3528
|
+
children: ve
|
|
3529
|
+
}), t[62] = he, t[63] = ge, t[64] = ve, t[65] = Q) : Q = t[65];
|
|
3689
3530
|
let ye;
|
|
3690
|
-
t[
|
|
3691
|
-
className:
|
|
3531
|
+
t[66] !== me || t[67] !== Q ? (ye = /* @__PURE__ */ W("div", {
|
|
3532
|
+
className: ma,
|
|
3533
|
+
children: [me, Q]
|
|
3534
|
+
}), t[66] = me, t[67] = Q, t[68] = ye) : ye = t[68];
|
|
3535
|
+
let be;
|
|
3536
|
+
t[69] !== fe || t[70] !== pe || t[71] !== ye ? (be = /* @__PURE__ */ W("div", {
|
|
3537
|
+
className: ha,
|
|
3692
3538
|
children: [
|
|
3693
|
-
de,
|
|
3694
3539
|
fe,
|
|
3695
|
-
|
|
3540
|
+
pe,
|
|
3541
|
+
ye
|
|
3696
3542
|
]
|
|
3697
|
-
}), t[69] =
|
|
3698
|
-
let
|
|
3699
|
-
t[73] !== ee || t[74] !== ce || t[75] !==
|
|
3543
|
+
}), t[69] = fe, t[70] = pe, t[71] = ye, t[72] = be) : be = t[72];
|
|
3544
|
+
let xe;
|
|
3545
|
+
t[73] !== ee || t[74] !== ce || t[75] !== de || t[76] !== be ? (xe = /* @__PURE__ */ W("form", {
|
|
3700
3546
|
className: ce,
|
|
3701
3547
|
id: "collection-form",
|
|
3702
3548
|
onSubmit: ee,
|
|
3703
3549
|
children: [
|
|
3704
3550
|
le,
|
|
3705
|
-
|
|
3706
|
-
|
|
3551
|
+
de,
|
|
3552
|
+
be
|
|
3707
3553
|
]
|
|
3708
|
-
}), t[73] = ee, t[74] = ce, t[75] =
|
|
3709
|
-
let
|
|
3710
|
-
return t[78] !== E || t[79] !== oe || t[80] !==
|
|
3554
|
+
}), t[73] = ee, t[74] = ce, t[75] = de, t[76] = be, t[77] = xe) : xe = t[77];
|
|
3555
|
+
let Se;
|
|
3556
|
+
return t[78] !== E || t[79] !== oe || t[80] !== xe ? (Se = /* @__PURE__ */ W(_e, {
|
|
3711
3557
|
...E,
|
|
3712
|
-
children: [oe,
|
|
3713
|
-
}), t[78] = E, t[79] = oe, t[80] =
|
|
3558
|
+
children: [oe, xe]
|
|
3559
|
+
}), t[78] = E, t[79] = oe, t[80] = xe, t[81] = Se) : Se = t[81], Se;
|
|
3714
3560
|
};
|
|
3715
|
-
function
|
|
3561
|
+
function ya(e) {
|
|
3716
3562
|
return Math.max(e - 1, 0);
|
|
3717
3563
|
}
|
|
3718
|
-
function
|
|
3564
|
+
function ba(e) {
|
|
3719
3565
|
return e + 1;
|
|
3720
3566
|
}
|
|
3721
|
-
function
|
|
3567
|
+
function xa(e) {
|
|
3722
3568
|
return e.key;
|
|
3723
3569
|
}
|
|
3724
3570
|
//#endregion
|
|
3725
3571
|
//#region ../../libraries/react-collection/dist/lib/FormBuilder/index.js
|
|
3726
|
-
var
|
|
3572
|
+
var Sa = (e) => {
|
|
3727
3573
|
let t = D(11), n, r, i;
|
|
3728
3574
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({formVariant: n, enableVerification: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
3729
3575
|
let a = i === void 0 ? !0 : i, o;
|
|
3730
|
-
t[4] === n ? o = t[5] : (o =
|
|
3576
|
+
t[4] === n ? o = t[5] : (o = U(n === "single-field" ? ra : n === "steps" ? _a : n === "steps-2" ? ua : Ki, {}), t[4] = n, t[5] = o);
|
|
3731
3577
|
let s;
|
|
3732
|
-
return t[6] !== a || t[7] !== n || t[8] !== r || t[9] !== o ? (s = /* @__PURE__ */
|
|
3578
|
+
return t[6] !== a || t[7] !== n || t[8] !== r || t[9] !== o ? (s = /* @__PURE__ */ U(Qr, {
|
|
3733
3579
|
...r,
|
|
3734
3580
|
enableVerification: a,
|
|
3735
3581
|
variant: n,
|
|
3736
3582
|
children: o
|
|
3737
3583
|
}), t[6] = a, t[7] = n, t[8] = r, t[9] = o, t[10] = s) : s = t[10], s;
|
|
3738
|
-
},
|
|
3584
|
+
}, Ca = "_1jed92w2", wa = "_1jed92w3 _1jed92w1", Ta = "_1jed92w4 _1jed92w1", Ea = "_1jed92w5 _1jed92w1", Da = "_1jed92w6 _1jed92w1", Oa = () => {
|
|
3739
3585
|
let e = D(1), t;
|
|
3740
|
-
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */
|
|
3741
|
-
className:
|
|
3586
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ W("div", {
|
|
3587
|
+
className: Ca,
|
|
3742
3588
|
children: [
|
|
3743
|
-
/* @__PURE__ */
|
|
3744
|
-
/* @__PURE__ */
|
|
3745
|
-
/* @__PURE__ */
|
|
3589
|
+
/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("div", { className: wa }), /* @__PURE__ */ U("div", { className: Ea })] }),
|
|
3590
|
+
/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U("div", { className: Ta }), /* @__PURE__ */ U("div", { className: Ea })] }),
|
|
3591
|
+
/* @__PURE__ */ U("div", { className: Da })
|
|
3746
3592
|
]
|
|
3747
3593
|
}), e[0] = t) : t = e[0], t;
|
|
3748
|
-
},
|
|
3594
|
+
}, ka = (e) => {
|
|
3749
3595
|
let t = D(17), n, r, i, a;
|
|
3750
3596
|
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4]) : ({collection_id: n, hiddenFields: r, enableVerification: a, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a);
|
|
3751
|
-
let o = a === void 0 ? !0 : a, { collection: s } =
|
|
3597
|
+
let o = a === void 0 ? !0 : a, { collection: s } = j(), [c, l] = V(!0), [u, d] = V(null), f;
|
|
3752
3598
|
t[5] !== s || t[6] !== n || t[7] !== r || t[8] !== i?.workspace_id ? (f = () => {
|
|
3753
3599
|
n ? s?.getCollectionByIDExpanded(n, { headers: { "Levo-Workspace": i?.workspace_id } }).then((e) => {
|
|
3754
3600
|
let t = e?.content?.data;
|
|
3755
3601
|
if (t) t.sections = t?.sections?.map((e) => (e.fields = e?.fields?.map((e) => (r?.includes(e?.key) && (e.hidden = !0), e)), e)), d(t);
|
|
3756
3602
|
else throw Error(`API response invalid: ${t}`);
|
|
3757
|
-
}).catch(
|
|
3603
|
+
}).catch(Aa).finally(() => {
|
|
3758
3604
|
l(!1);
|
|
3759
3605
|
}) : (console.error("[CollectionFormBuilder] Collection ID or Workspace ID is missing."), l(!1));
|
|
3760
3606
|
}, t[5] = s, t[6] = n, t[7] = r, t[8] = i?.workspace_id, t[9] = f) : f = t[9];
|
|
3761
3607
|
let p;
|
|
3762
|
-
t[10] === n ? p = t[11] : (p = [n], t[10] = n, t[11] = p),
|
|
3608
|
+
t[10] === n ? p = t[11] : (p = [n], t[10] = n, t[11] = p), R(f, p);
|
|
3763
3609
|
let m;
|
|
3764
|
-
return t[12] !== o || t[13] !== c || t[14] !== i || t[15] !== u ? (m = c ? /* @__PURE__ */
|
|
3610
|
+
return t[12] !== o || t[13] !== c || t[14] !== i || t[15] !== u ? (m = c ? /* @__PURE__ */ U(Oa, {}) : u ? /* @__PURE__ */ U(Sa, {
|
|
3765
3611
|
schema: u,
|
|
3766
3612
|
enableVerification: o,
|
|
3767
3613
|
...i
|
|
3768
3614
|
}) : null, t[12] = o, t[13] = c, t[14] = i, t[15] = u, t[16] = m) : m = t[16], m;
|
|
3769
3615
|
};
|
|
3770
|
-
function
|
|
3616
|
+
function Aa(e) {
|
|
3771
3617
|
console.error("Error fetching schema", e);
|
|
3772
3618
|
}
|
|
3773
3619
|
//#endregion
|
|
3774
3620
|
//#region ../../libraries/react-collection/dist/lib/CollectionFormRenderer/index.js
|
|
3775
|
-
var
|
|
3776
|
-
let a =
|
|
3621
|
+
var ja = ({ hiddenFields: e, fetchedSchema: t, isLoading: n, enableVerification: r = !0, ...i }) => {
|
|
3622
|
+
let a = z(() => {
|
|
3777
3623
|
let n = { ...t }, r = (t) => t?.map((t) => ((e?.includes(t.key) || e?.includes(t.id)) && (t.hidden = !0), t.fields = r(t.fields), t));
|
|
3778
3624
|
return n.sections = n?.sections?.map((e) => (e.fields = r(e?.fields), e)), n;
|
|
3779
3625
|
}, [t]);
|
|
3780
|
-
return n ? /* @__PURE__ */
|
|
3626
|
+
return n ? /* @__PURE__ */ U(Oa, {}) : a ? /* @__PURE__ */ U(Sa, {
|
|
3781
3627
|
schema: a,
|
|
3782
3628
|
enableVerification: r,
|
|
3783
3629
|
...i
|
|
3784
3630
|
}) : null;
|
|
3785
|
-
},
|
|
3786
|
-
CollectionForm: () =>
|
|
3787
|
-
CollectionFormBuilder: () =>
|
|
3788
|
-
CollectionFormRenderer: () =>
|
|
3789
|
-
FormBuilder: () => ka,
|
|
3790
|
-
LevoFormProvider: () => di,
|
|
3791
|
-
useLevoForm: () => vi,
|
|
3792
|
-
useLevoFormContext: () => fi
|
|
3631
|
+
}, Ma = /* @__PURE__ */ e({
|
|
3632
|
+
CollectionForm: () => Xr,
|
|
3633
|
+
CollectionFormBuilder: () => ka,
|
|
3634
|
+
CollectionFormRenderer: () => ja
|
|
3793
3635
|
});
|
|
3794
3636
|
//#endregion
|
|
3795
|
-
export {
|
|
3637
|
+
export { it as i, ka as n, Xr as r, Ma as t };
|