@levo-so/site-runtime 0.3.17 → 0.3.18
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/{PopupBody-BI-MJqmd-BnSl6jJr.js → PopupBody-BI-MJqmd-a-l3CaKZ.js} +1 -1
- package/{PopupRenderer-D66Gx63H-B_CFOeCl.js → PopupRenderer-D66Gx63H-DpcNpbtU.js} +1 -1
- package/blog-content.js +2 -2
- package/{dist-CXoCodlj.js → dist-IxiGbP-3.js} +275 -236
- package/{dist-C6-eVcUB.js → dist-_lwl0kZw.js} +1 -1
- package/index.js +2 -2
- package/package.json +3 -3
- package/popups.js +1 -1
|
@@ -60,7 +60,7 @@ var Q = [
|
|
|
60
60
|
...r,
|
|
61
61
|
children: a
|
|
62
62
|
}) : null;
|
|
63
|
-
}, te = /* @__PURE__ */ O({ PopupBody: () => oe }), ne = I(() => import("./dist-
|
|
63
|
+
}, te = /* @__PURE__ */ O({ PopupBody: () => oe }), ne = I(() => import("./dist-IxiGbP-3.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormBuilder }))), re = E({ baseSpacing: ".625rem" }), ie = { style: a({ form: { gap: "1rem" } }) }, ae = {
|
|
64
64
|
left: D,
|
|
65
65
|
center: M,
|
|
66
66
|
right: A
|
|
@@ -103,7 +103,7 @@ var se = (e) => (e ?? "16:9").replace(":", " / "), ce = (e) => {
|
|
|
103
103
|
...a,
|
|
104
104
|
children: r
|
|
105
105
|
}), n[15] = r, n[16] = a, n[17] = p, n[18] = m) : m = n[18], m;
|
|
106
|
-
}, de = M(() => import("./PopupBody-BI-MJqmd-
|
|
106
|
+
}, de = M(() => import("./PopupBody-BI-MJqmd-a-l3CaKZ.js").then((e) => e.n).then((e) => ({ default: e.PopupBody }))), fe = (e) => {
|
|
107
107
|
let t = A(7), { size: n } = e, r = n ?? "medium", i;
|
|
108
108
|
t[0] === r ? i = t[1] : (i = k({ size: r }), t[0] = r, t[1] = i);
|
|
109
109
|
let a, o, s;
|
package/blog-content.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as e } from "./dist-
|
|
2
|
+
import { r as e } from "./dist-IxiGbP-3.js";
|
|
3
3
|
import { t } from "./LevoProvider-BkbKrvrI.js";
|
|
4
4
|
import { t as n } from "./inlineBaseTheme-BB9e6h5f.js";
|
|
5
|
-
import { t as r } from "./dist-
|
|
5
|
+
import { t as r } from "./dist-_lwl0kZw.js";
|
|
6
6
|
import { _ as i, a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x } from "./react-Cj_U6VZQ.js";
|
|
7
7
|
import { i as S, n as C, r as w, t as T } from "./content.cssm-XdMsTGIB.js";
|
|
8
8
|
import { t as E } from "./RteThemeProvider-CMbSaFRQ.js";
|
|
@@ -2276,66 +2276,104 @@ var Xr = ((e) => (t) => t ? Yr(e, t) : e)({
|
|
|
2276
2276
|
portalToThemeRoot: o,
|
|
2277
2277
|
children: _
|
|
2278
2278
|
}), t[23] = f, t[24] = m, t[25] = i, t[26] = o, t[27] = s, t[28] = _, t[29] = v) : v = t[29], v;
|
|
2279
|
-
}, ni =
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2279
|
+
}, ni = (e, t) => e?.map((e) => ({
|
|
2280
|
+
...e,
|
|
2281
|
+
hidden: e.hidden || t.includes(e.key) || t.includes(e.id) || e.allow_public_view === !1 || e.allow_public_submit === !1,
|
|
2282
|
+
fields: ni(e.fields, t)
|
|
2283
|
+
})), ri = (e, t = []) => ({
|
|
2284
|
+
...e,
|
|
2285
|
+
sections: e.sections?.map((e) => ({
|
|
2286
|
+
...e,
|
|
2287
|
+
fields: ni(e.fields, t) ?? []
|
|
2288
|
+
}))
|
|
2289
|
+
}), ii = "_1dzarb20", ai = "_1dzarb21", oi = "_1dzarb23", si = "_1dzarb24", ci = "_1dzarb25", li = "_1dzarb26", ui = (e) => {
|
|
2290
|
+
let t = R(54), { hiddenFields: n, isLoading: r, initialValues: i, onSubmit: a, schema: s, uiConfig: c, submitButtonConfig: l, containerStyles: u, isDisabled: d, theme: f, enableVerification: p } = e, m = p === void 0 ? !0 : p, h;
|
|
2291
|
+
t[0] !== n || t[1] !== s ? (h = s ? ri(s, n) : null, t[0] = n, t[1] = s, t[2] = h) : h = t[2];
|
|
2292
|
+
let g = h, _, v;
|
|
2293
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (_ = {}, v = { keepErrors: !0 }, t[3] = _, t[4] = v) : (_ = t[3], v = t[4]);
|
|
2294
|
+
let y;
|
|
2295
|
+
t[5] === d ? y = t[6] : (y = {
|
|
2287
2296
|
mode: "onTouched",
|
|
2288
|
-
disabled:
|
|
2289
|
-
defaultValues:
|
|
2290
|
-
resetOptions:
|
|
2291
|
-
}
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2297
|
+
disabled: d,
|
|
2298
|
+
defaultValues: _,
|
|
2299
|
+
resetOptions: v
|
|
2300
|
+
}, t[5] = d, t[6] = y);
|
|
2301
|
+
let b = re(y), { formState: x } = b, { isSubmitting: S } = x, C;
|
|
2302
|
+
t[7] === a ? C = t[8] : (C = (e) => {
|
|
2303
|
+
a && a(e);
|
|
2304
|
+
}, t[7] = a, t[8] = C);
|
|
2305
|
+
let w = C, T;
|
|
2306
|
+
t[9] !== i || t[10] !== b || t[11] !== s || t[12] !== g ? (T = () => {
|
|
2307
|
+
if (g) {
|
|
2296
2308
|
let e = {
|
|
2297
|
-
...
|
|
2298
|
-
...
|
|
2309
|
+
...s ? ft(s) : {},
|
|
2310
|
+
...i
|
|
2299
2311
|
};
|
|
2300
|
-
|
|
2312
|
+
b.reset(e);
|
|
2301
2313
|
}
|
|
2302
|
-
}, [
|
|
2303
|
-
let
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
})
|
|
2314
|
+
}, t[9] = i, t[10] = b, t[11] = s, t[12] = g, t[13] = T) : T = t[13];
|
|
2315
|
+
let E;
|
|
2316
|
+
t[14] === g ? E = t[15] : (E = [g], t[14] = g, t[15] = E), K(T, E);
|
|
2317
|
+
let D = r || S;
|
|
2318
|
+
if (!g) return null;
|
|
2319
|
+
let O;
|
|
2320
|
+
t[16] === f ? O = t[17] : (O = f || {}, t[16] = f, t[17] = O);
|
|
2321
|
+
let k;
|
|
2322
|
+
t[18] === c?.hideFormHeading ? k = t[19] : (k = c?.hideFormHeading ? null : /* @__PURE__ */ Q("h1", {
|
|
2323
|
+
className: Z(ai),
|
|
2324
|
+
children: "Create new"
|
|
2325
|
+
}), t[18] = c?.hideFormHeading, t[19] = k);
|
|
2326
|
+
let A;
|
|
2327
|
+
t[20] === u ? A = t[21] : (A = Z(oi, u), t[20] = u, t[21] = A);
|
|
2328
|
+
let j = r && "_1dzarb27", M;
|
|
2329
|
+
t[22] === j ? M = t[23] : (M = Z(si, j), t[22] = j, t[23] = M);
|
|
2330
|
+
let N;
|
|
2331
|
+
t[24] !== w || t[25] !== b ? (N = b.handleSubmit(w), t[24] = w, t[25] = b, t[26] = N) : N = t[26];
|
|
2332
|
+
let P;
|
|
2333
|
+
t[27] !== m || t[28] !== s || t[29] !== c?.hideSectionHeadings ? (P = s?.sections?.map((e) => /* @__PURE__ */ Q(di, {
|
|
2334
|
+
schema: s,
|
|
2335
|
+
section: e,
|
|
2336
|
+
hideHeading: !!c?.hideSectionHeadings,
|
|
2337
|
+
enableVerification: m
|
|
2338
|
+
}, e.id)), t[27] = m, t[28] = s, t[29] = c?.hideSectionHeadings, t[30] = P) : P = t[30];
|
|
2339
|
+
let F;
|
|
2340
|
+
t[31] !== D || t[32] !== d || t[33] !== l?.show || t[34] !== l?.styles || t[35] !== l?.text ? (F = l?.show && /* @__PURE__ */ Q("div", {
|
|
2341
|
+
className: "_1dzarb29",
|
|
2342
|
+
children: /* @__PURE__ */ Q(o, {
|
|
2343
|
+
className: l?.styles,
|
|
2344
|
+
disabled: d || D,
|
|
2345
|
+
type: "submit",
|
|
2346
|
+
children: D ? "Saving" : l?.text || "Save"
|
|
2336
2347
|
})
|
|
2337
|
-
}) :
|
|
2338
|
-
|
|
2348
|
+
}), t[31] = D, t[32] = d, t[33] = l?.show, t[34] = l?.styles, t[35] = l?.text, t[36] = F) : F = t[36];
|
|
2349
|
+
let I;
|
|
2350
|
+
t[37] !== M || t[38] !== N || t[39] !== P || t[40] !== F ? (I = /* @__PURE__ */ $("form", {
|
|
2351
|
+
className: M,
|
|
2352
|
+
id: "collection-form",
|
|
2353
|
+
onSubmit: N,
|
|
2354
|
+
children: [P, F]
|
|
2355
|
+
}), t[37] = M, t[38] = N, t[39] = P, t[40] = F, t[41] = I) : I = t[41];
|
|
2356
|
+
let L;
|
|
2357
|
+
t[42] !== A || t[43] !== I ? (L = /* @__PURE__ */ Q("div", {
|
|
2358
|
+
className: A,
|
|
2359
|
+
children: I
|
|
2360
|
+
}), t[42] = A, t[43] = I, t[44] = L) : L = t[44];
|
|
2361
|
+
let z;
|
|
2362
|
+
t[45] !== k || t[46] !== L ? (z = /* @__PURE__ */ $("div", {
|
|
2363
|
+
className: ii,
|
|
2364
|
+
children: [k, L]
|
|
2365
|
+
}), t[45] = k, t[46] = L, t[47] = z) : z = t[47];
|
|
2366
|
+
let B;
|
|
2367
|
+
t[48] !== O || t[49] !== z ? (B = /* @__PURE__ */ Q(ti, {
|
|
2368
|
+
...O,
|
|
2369
|
+
children: z
|
|
2370
|
+
}), t[48] = O, t[49] = z, t[50] = B) : B = t[50];
|
|
2371
|
+
let V;
|
|
2372
|
+
return t[51] !== b || t[52] !== B ? (V = /* @__PURE__ */ Q(ee, {
|
|
2373
|
+
...b,
|
|
2374
|
+
children: B
|
|
2375
|
+
}), t[51] = b, t[52] = B, t[53] = V) : V = t[53], V;
|
|
2376
|
+
}, di = (e) => {
|
|
2339
2377
|
let t = R(12), { schema: n, section: r, hideHeading: i, enableVerification: a } = e;
|
|
2340
2378
|
if (!st(n, r)) return null;
|
|
2341
2379
|
let o;
|
|
@@ -2351,18 +2389,18 @@ var Xr = ((e) => (t) => t ? Yr(e, t) : e)({
|
|
|
2351
2389
|
}, e?.key)), t[3] = a, t[4] = n, t[5] = r?.fields, t[6] = s) : s = t[6];
|
|
2352
2390
|
let c;
|
|
2353
2391
|
t[7] === s ? c = t[8] : (c = /* @__PURE__ */ Q("div", {
|
|
2354
|
-
className:
|
|
2392
|
+
className: li,
|
|
2355
2393
|
children: s
|
|
2356
2394
|
}), t[7] = s, t[8] = c);
|
|
2357
2395
|
let l;
|
|
2358
2396
|
return t[9] !== o || t[10] !== c ? (l = /* @__PURE__ */ $("div", {
|
|
2359
|
-
className:
|
|
2397
|
+
className: ci,
|
|
2360
2398
|
children: [o, c]
|
|
2361
2399
|
}), t[9] = o, t[10] = c, t[11] = l) : l = t[11], l;
|
|
2362
|
-
},
|
|
2400
|
+
}, fi = B.createContext({
|
|
2363
2401
|
schema: null,
|
|
2364
2402
|
submitButtonConfig: { show: !0 }
|
|
2365
|
-
}),
|
|
2403
|
+
}), pi = (e) => {
|
|
2366
2404
|
let t = R(14), n, r, i, a;
|
|
2367
2405
|
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);
|
|
2368
2406
|
let o;
|
|
@@ -2374,11 +2412,11 @@ var Xr = ((e) => (t) => t ? Yr(e, t) : e)({
|
|
|
2374
2412
|
children: n
|
|
2375
2413
|
}), t[7] = n, t[8] = i, t[9] = a, t[10] = s) : s = t[10];
|
|
2376
2414
|
let c;
|
|
2377
|
-
return t[11] !== o || t[12] !== s ? (c = /* @__PURE__ */ Q(
|
|
2415
|
+
return t[11] !== o || t[12] !== s ? (c = /* @__PURE__ */ Q(fi.Provider, {
|
|
2378
2416
|
value: o,
|
|
2379
2417
|
children: s
|
|
2380
2418
|
}), t[11] = o, t[12] = s, t[13] = c) : c = t[13], c;
|
|
2381
|
-
},
|
|
2419
|
+
}, mi = () => B.useContext(fi), hi = (e, t) => {
|
|
2382
2420
|
if (Array.isArray(e) && e.length > 0) {
|
|
2383
2421
|
let n = 0;
|
|
2384
2422
|
for (let r of e) n += 1, r?.param && t && t(r?.param, {
|
|
@@ -2386,18 +2424,18 @@ var Xr = ((e) => (t) => t ? Yr(e, t) : e)({
|
|
|
2386
2424
|
message: r?.message
|
|
2387
2425
|
}, { shouldFocus: n === 0 });
|
|
2388
2426
|
}
|
|
2389
|
-
},
|
|
2427
|
+
}, gi = {
|
|
2390
2428
|
FORM_DIRTY: "form-dirty",
|
|
2391
2429
|
FORM_VALUES: "form-values"
|
|
2392
|
-
}, hi = (e) => {
|
|
2393
|
-
let t = localStorage.getItem(`${e}-${mi.FORM_VALUES}`);
|
|
2394
|
-
return t ? JSON.parse(t) : {};
|
|
2395
|
-
}, gi = (e, t) => {
|
|
2396
|
-
localStorage.setItem(`${e}-${mi.FORM_VALUES}`, JSON.stringify(t));
|
|
2397
2430
|
}, _i = (e) => {
|
|
2398
|
-
localStorage.
|
|
2399
|
-
|
|
2400
|
-
|
|
2431
|
+
let t = localStorage.getItem(`${e}-${gi.FORM_VALUES}`);
|
|
2432
|
+
return t ? JSON.parse(t) : {};
|
|
2433
|
+
}, vi = (e, t) => {
|
|
2434
|
+
localStorage.setItem(`${e}-${gi.FORM_VALUES}`, JSON.stringify(t));
|
|
2435
|
+
}, yi = (e) => {
|
|
2436
|
+
localStorage.removeItem(`${e}-${gi.FORM_VALUES}`);
|
|
2437
|
+
}, bi = ({ schema: e, originalSchema: t, onSubmitSuccess: n, onSubmitError: r, onInit: i, setFormErrorAfterSubmit: a = !0 }) => {
|
|
2438
|
+
let o = q(() => e, [e]), s = q(() => t || o, [t, o]), c = g(), { toastConfig: l, onSuccess: u, onError: f, isLoggedIn: p, isDisabled: m, externalInitialValues: h = {}, account: _, preview: v, uiConfig: y } = mi(), [b, x] = Y({
|
|
2401
2439
|
contentId: null,
|
|
2402
2440
|
publishedId: null
|
|
2403
2441
|
}), [S, C] = Y(!1), [w, T] = Y(!1), [E, D] = Y(!1), O = J({}), k = J({}), A = (e) => {
|
|
@@ -2477,7 +2515,7 @@ var Xr = ((e) => (t) => t ? Yr(e, t) : e)({
|
|
|
2477
2515
|
});
|
|
2478
2516
|
return;
|
|
2479
2517
|
}
|
|
2480
|
-
let t =
|
|
2518
|
+
let t = _i(o?.key);
|
|
2481
2519
|
t && (O.current = {
|
|
2482
2520
|
...O.current || {},
|
|
2483
2521
|
...t
|
|
@@ -2493,7 +2531,7 @@ var Xr = ((e) => (t) => t ? Yr(e, t) : e)({
|
|
|
2493
2531
|
__captcha: "verified"
|
|
2494
2532
|
}), i?.(O.current));
|
|
2495
2533
|
}, [F]), K(() => {
|
|
2496
|
-
o && (b.contentId || b.publishedId) &&
|
|
2534
|
+
o && (b.contentId || b.publishedId) && yi(o?.key);
|
|
2497
2535
|
}, [b]), {
|
|
2498
2536
|
methods: N,
|
|
2499
2537
|
isLoading: S,
|
|
@@ -2516,7 +2554,7 @@ var Xr = ((e) => (t) => t ? Yr(e, t) : e)({
|
|
|
2516
2554
|
data: e
|
|
2517
2555
|
}), t?.content?.data) {
|
|
2518
2556
|
let e = t?.content?.meta?.booking_config?.enabled;
|
|
2519
|
-
l?.showSuccessToast && !(l?.suppressOnBooking && e) && d(l.successToastText || "Form submitted successfully."), O.current = {}, M(),
|
|
2557
|
+
l?.showSuccessToast && !(l?.suppressOnBooking && e) && d(l.successToastText || "Form submitted successfully."), O.current = {}, M(), yi(s?.key), x({
|
|
2520
2558
|
contentId: null,
|
|
2521
2559
|
publishedId: null
|
|
2522
2560
|
}), y?.hideSuccessScreen || D(!0);
|
|
@@ -2533,23 +2571,23 @@ var Xr = ((e) => (t) => t ? Yr(e, t) : e)({
|
|
|
2533
2571
|
}
|
|
2534
2572
|
throw Error("Failed to save form details, API response invalid");
|
|
2535
2573
|
} catch (e) {
|
|
2536
|
-
sn(e), e instanceof j ? (e?.hasFieldErrors && a &&
|
|
2574
|
+
sn(e), e instanceof j ? (e?.hasFieldErrors && a && hi(e?.fieldErrors, N.setError), r && r(e.fieldErrors || []), f && f(e)) : f && f(e?.response?.data || e);
|
|
2537
2575
|
}
|
|
2538
2576
|
},
|
|
2539
2577
|
showSuccessOverlay: E,
|
|
2540
2578
|
dismissSuccessOverlay: () => D(!1)
|
|
2541
2579
|
};
|
|
2542
|
-
},
|
|
2580
|
+
}, xi = "_1jed92w2", Si = "_1jed92w3 _1jed92w1", Ci = "_1jed92w4 _1jed92w1", wi = "_1jed92w5 _1jed92w1", Ti = "_1jed92w6 _1jed92w1", Ei = () => {
|
|
2543
2581
|
let e = R(1), t;
|
|
2544
2582
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ $("div", {
|
|
2545
|
-
className:
|
|
2583
|
+
className: xi,
|
|
2546
2584
|
children: [
|
|
2547
|
-
/* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("div", { className:
|
|
2548
|
-
/* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("div", { className:
|
|
2549
|
-
/* @__PURE__ */ Q("div", { className:
|
|
2585
|
+
/* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("div", { className: Si }), /* @__PURE__ */ Q("div", { className: wi })] }),
|
|
2586
|
+
/* @__PURE__ */ $("div", { children: [/* @__PURE__ */ Q("div", { className: Ci }), /* @__PURE__ */ Q("div", { className: wi })] }),
|
|
2587
|
+
/* @__PURE__ */ Q("div", { className: Ti })
|
|
2550
2588
|
]
|
|
2551
2589
|
}), e[0] = t) : t = e[0], t;
|
|
2552
|
-
},
|
|
2590
|
+
}, Di = "a2n8870", Oi = "a2n8871", ki = "a2n8872", Ai = "a2n8873", ji = "a2n8874", Mi = "a2n8875", Ni = "a2n8876", Pi = "https://static.levocdn.com/WLZ1TXTD/Levo-Logo-moxa93IxlVi0W.webp", Fi = U(() => import("altcha").then(() => ({ default: function({ widgetRef: e, client: t, onStateChange: n }) {
|
|
2553
2591
|
return K(() => {
|
|
2554
2592
|
let { current: t } = e;
|
|
2555
2593
|
if (t) return t.addEventListener("statechange", n), () => t.removeEventListener("statechange", n);
|
|
@@ -2570,32 +2608,32 @@ var Xr = ((e) => (t) => t ? Yr(e, t) : e)({
|
|
|
2570
2608
|
challengeurl: `${t.apiUrl}/v1/identity/captcha/create-challenge`,
|
|
2571
2609
|
verifyurl: `${t.apiUrl}/v1/identity/captcha/verify-challenge`
|
|
2572
2610
|
});
|
|
2573
|
-
} }))),
|
|
2611
|
+
} }))), Ii = () => {
|
|
2574
2612
|
let e = R(1), t;
|
|
2575
2613
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ $("div", {
|
|
2576
|
-
className:
|
|
2614
|
+
className: ki,
|
|
2577
2615
|
children: [/* @__PURE__ */ Q("img", {
|
|
2578
2616
|
alt: "Levo",
|
|
2579
|
-
src:
|
|
2617
|
+
src: Pi,
|
|
2580
2618
|
width: 16,
|
|
2581
2619
|
height: 16,
|
|
2582
|
-
className:
|
|
2620
|
+
className: Ai
|
|
2583
2621
|
}), /* @__PURE__ */ Q("span", {
|
|
2584
|
-
className:
|
|
2622
|
+
className: ji,
|
|
2585
2623
|
children: "Levo CAPTCHA"
|
|
2586
2624
|
})]
|
|
2587
2625
|
}), e[0] = t) : t = e[0], t;
|
|
2588
|
-
},
|
|
2626
|
+
}, Li = () => {
|
|
2589
2627
|
let e = R(1), t;
|
|
2590
2628
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ Q("div", {
|
|
2591
|
-
className:
|
|
2629
|
+
className: Mi,
|
|
2592
2630
|
children: /* @__PURE__ */ Q("span", {
|
|
2593
|
-
className:
|
|
2631
|
+
className: Ni,
|
|
2594
2632
|
children: "Loading verification..."
|
|
2595
2633
|
})
|
|
2596
2634
|
}), e[0] = t) : t = e[0], t;
|
|
2597
|
-
},
|
|
2598
|
-
let e = R(19), { disableCaptcha: t } =
|
|
2635
|
+
}, Ri = () => {
|
|
2636
|
+
let e = R(19), { disableCaptcha: t } = mi(), n = g(), [r, a] = Y(!1), o = J(null), s = t ? !1 : "Verification is required", c;
|
|
2599
2637
|
e[0] === s ? c = e[1] : (c = {
|
|
2600
2638
|
name: "__captcha",
|
|
2601
2639
|
rules: { required: s }
|
|
@@ -2612,49 +2650,49 @@ var Xr = ((e) => (t) => t ? Yr(e, t) : e)({
|
|
|
2612
2650
|
if (!r) {
|
|
2613
2651
|
let t = f?.message, n;
|
|
2614
2652
|
e[6] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ $("div", {
|
|
2615
|
-
className:
|
|
2616
|
-
children: [/* @__PURE__ */ Q(
|
|
2653
|
+
className: Oi,
|
|
2654
|
+
children: [/* @__PURE__ */ Q(Li, {}), /* @__PURE__ */ Q(Ii, {})]
|
|
2617
2655
|
}), e[6] = n) : n = e[6];
|
|
2618
2656
|
let r;
|
|
2619
2657
|
return e[7] === t ? r = e[8] : (r = /* @__PURE__ */ Q(i, {
|
|
2620
2658
|
error: t,
|
|
2621
|
-
className:
|
|
2659
|
+
className: Di,
|
|
2622
2660
|
children: n
|
|
2623
2661
|
}), e[7] = t, e[8] = r), r;
|
|
2624
2662
|
}
|
|
2625
2663
|
let v = f?.message, y;
|
|
2626
|
-
e[9] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ Q(
|
|
2664
|
+
e[9] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ Q(Li, {}), e[9] = y) : y = e[9];
|
|
2627
2665
|
let b;
|
|
2628
2666
|
e[10] !== n || e[11] !== _ ? (b = /* @__PURE__ */ Q(V, {
|
|
2629
2667
|
fallback: y,
|
|
2630
|
-
children: /* @__PURE__ */ Q(
|
|
2668
|
+
children: /* @__PURE__ */ Q(Fi, {
|
|
2631
2669
|
widgetRef: o,
|
|
2632
2670
|
client: n,
|
|
2633
2671
|
onStateChange: _
|
|
2634
2672
|
})
|
|
2635
2673
|
}), e[10] = n, e[11] = _, e[12] = b) : b = e[12];
|
|
2636
2674
|
let x;
|
|
2637
|
-
e[13] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ Q(
|
|
2675
|
+
e[13] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ Q(Ii, {}), e[13] = x) : x = e[13];
|
|
2638
2676
|
let S;
|
|
2639
2677
|
e[14] === b ? S = e[15] : (S = /* @__PURE__ */ $("div", {
|
|
2640
|
-
className:
|
|
2678
|
+
className: Oi,
|
|
2641
2679
|
children: [b, x]
|
|
2642
2680
|
}), e[14] = b, e[15] = S);
|
|
2643
2681
|
let C;
|
|
2644
2682
|
return e[16] !== S || e[17] !== v ? (C = /* @__PURE__ */ Q(i, {
|
|
2645
2683
|
error: v,
|
|
2646
|
-
className:
|
|
2684
|
+
className: Di,
|
|
2647
2685
|
children: S
|
|
2648
2686
|
}), e[16] = S, e[17] = v, e[18] = C) : C = e[18], C;
|
|
2649
|
-
},
|
|
2687
|
+
}, zi = {
|
|
2650
2688
|
errors: {},
|
|
2651
2689
|
isValid: !0,
|
|
2652
2690
|
isDirty: !1,
|
|
2653
2691
|
isSubmitted: !1,
|
|
2654
2692
|
submitCount: 0,
|
|
2655
2693
|
dirtyFields: {}
|
|
2656
|
-
},
|
|
2657
|
-
let e = R(22), t = ae(), n = ie(), [r, i] = Y(
|
|
2694
|
+
}, Bi = () => {
|
|
2695
|
+
let e = R(22), t = ae(), n = ie(), [r, i] = Y(zi), a, o;
|
|
2658
2696
|
e[0] === n ? (a = e[1], o = e[2]) : (a = () => {
|
|
2659
2697
|
if (n?.subscribe) return n.subscribe({
|
|
2660
2698
|
formState: {
|
|
@@ -2677,7 +2715,7 @@ var Xr = ((e) => (t) => t ? Yr(e, t) : e)({
|
|
|
2677
2715
|
});
|
|
2678
2716
|
}, o = [n], e[0] = n, e[1] = a, e[2] = o), K(a, o);
|
|
2679
2717
|
let { errors: s, isValid: c, isDirty: l, isSubmitted: u, submitCount: d, dirtyFields: f } = r, [p, m] = Y(!0), h;
|
|
2680
|
-
e[3] === s ? h = e[4] : (h = Object.entries(s).map(
|
|
2718
|
+
e[3] === s ? h = e[4] : (h = Object.entries(s).map(Ui), e[3] = s, e[4] = h);
|
|
2681
2719
|
let g = h, _;
|
|
2682
2720
|
e[5] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
2683
2721
|
position: "fixed",
|
|
@@ -2699,7 +2737,7 @@ var Xr = ((e) => (t) => t ? Yr(e, t) : e)({
|
|
|
2699
2737
|
}, e[5] = _) : _ = e[5];
|
|
2700
2738
|
let v, y;
|
|
2701
2739
|
e[6] === Symbol.for("react.memo_cache_sentinel") ? (v = () => {
|
|
2702
|
-
m(
|
|
2740
|
+
m(Wi);
|
|
2703
2741
|
}, y = {
|
|
2704
2742
|
padding: "8px 12px",
|
|
2705
2743
|
background: "#141b33",
|
|
@@ -2740,27 +2778,27 @@ var Xr = ((e) => (t) => t ? Yr(e, t) : e)({
|
|
|
2740
2778
|
gap: 10
|
|
2741
2779
|
},
|
|
2742
2780
|
children: [
|
|
2743
|
-
/* @__PURE__ */ Q(
|
|
2781
|
+
/* @__PURE__ */ Q(Hi, {
|
|
2744
2782
|
title: `Errors (${g.length})`,
|
|
2745
2783
|
accent: "#ff6b6b",
|
|
2746
2784
|
children: g.length === 0 ? /* @__PURE__ */ Q("div", {
|
|
2747
2785
|
style: { opacity: .6 },
|
|
2748
2786
|
children: "none"
|
|
2749
|
-
}) : g.map(
|
|
2787
|
+
}) : g.map(Gi)
|
|
2750
2788
|
}),
|
|
2751
|
-
/* @__PURE__ */ Q(
|
|
2789
|
+
/* @__PURE__ */ Q(Hi, {
|
|
2752
2790
|
title: "Values",
|
|
2753
2791
|
accent: "#7ce5b1",
|
|
2754
2792
|
children: /* @__PURE__ */ Q("pre", {
|
|
2755
|
-
style:
|
|
2793
|
+
style: Vi,
|
|
2756
2794
|
children: JSON.stringify(t ?? {}, null, 2)
|
|
2757
2795
|
})
|
|
2758
2796
|
}),
|
|
2759
|
-
/* @__PURE__ */ Q(
|
|
2797
|
+
/* @__PURE__ */ Q(Hi, {
|
|
2760
2798
|
title: "Dirty fields",
|
|
2761
2799
|
accent: "#7cb1e5",
|
|
2762
2800
|
children: /* @__PURE__ */ Q("pre", {
|
|
2763
|
-
style:
|
|
2801
|
+
style: Vi,
|
|
2764
2802
|
children: JSON.stringify(f ?? {}, null, 2)
|
|
2765
2803
|
})
|
|
2766
2804
|
})
|
|
@@ -2771,14 +2809,14 @@ var Xr = ((e) => (t) => t ? Yr(e, t) : e)({
|
|
|
2771
2809
|
style: _,
|
|
2772
2810
|
children: [w, T]
|
|
2773
2811
|
}), e[19] = w, e[20] = T, e[21] = E) : E = e[21], E;
|
|
2774
|
-
},
|
|
2812
|
+
}, Vi = {
|
|
2775
2813
|
margin: 0,
|
|
2776
2814
|
whiteSpace: "pre-wrap",
|
|
2777
2815
|
wordBreak: "break-word",
|
|
2778
2816
|
fontFamily: "inherit",
|
|
2779
2817
|
fontSize: 11,
|
|
2780
2818
|
lineHeight: 1.45
|
|
2781
|
-
},
|
|
2819
|
+
}, Hi = (e) => {
|
|
2782
2820
|
let t = R(11), { title: n, accent: r, children: i } = e, a;
|
|
2783
2821
|
t[0] === r ? a = t[1] : (a = {
|
|
2784
2822
|
fontSize: 10,
|
|
@@ -2808,7 +2846,7 @@ var Xr = ((e) => (t) => t ? Yr(e, t) : e)({
|
|
|
2808
2846
|
let l;
|
|
2809
2847
|
return t[8] !== o || t[9] !== c ? (l = /* @__PURE__ */ $("div", { children: [o, c] }), t[8] = o, t[9] = c, t[10] = l) : l = t[10], l;
|
|
2810
2848
|
};
|
|
2811
|
-
function
|
|
2849
|
+
function Ui(e) {
|
|
2812
2850
|
let [t, n] = e;
|
|
2813
2851
|
return {
|
|
2814
2852
|
key: t,
|
|
@@ -2816,10 +2854,10 @@ function Vi(e) {
|
|
|
2816
2854
|
type: n?.type ?? "—"
|
|
2817
2855
|
};
|
|
2818
2856
|
}
|
|
2819
|
-
function
|
|
2857
|
+
function Wi(e) {
|
|
2820
2858
|
return !e;
|
|
2821
2859
|
}
|
|
2822
|
-
function
|
|
2860
|
+
function Gi(e) {
|
|
2823
2861
|
return /* @__PURE__ */ $("div", {
|
|
2824
2862
|
style: { marginBottom: 4 },
|
|
2825
2863
|
children: [
|
|
@@ -2848,27 +2886,27 @@ function Ui(e) {
|
|
|
2848
2886
|
}
|
|
2849
2887
|
//#endregion
|
|
2850
2888
|
//#region ../../libraries/react-collection/dist/lib/components/FormHeader/FormHeader.cssm.js
|
|
2851
|
-
var
|
|
2852
|
-
let t = R(4), { className: n } = e, { uiConfig: r } =
|
|
2889
|
+
var Ki = "_1vist8m0", qi = (e) => {
|
|
2890
|
+
let t = R(4), { className: n } = e, { uiConfig: r } = mi();
|
|
2853
2891
|
if (r?.hideFormHeading) return null;
|
|
2854
2892
|
let i;
|
|
2855
|
-
t[0] === n ? i = t[1] : (i = Z(
|
|
2893
|
+
t[0] === n ? i = t[1] : (i = Z(Ki, n), t[0] = n, t[1] = i);
|
|
2856
2894
|
let a;
|
|
2857
2895
|
return t[2] === i ? a = t[3] : (a = /* @__PURE__ */ Q("h1", {
|
|
2858
2896
|
className: i,
|
|
2859
2897
|
children: "Create new"
|
|
2860
2898
|
}), t[2] = i, t[3] = a), a;
|
|
2861
|
-
},
|
|
2862
|
-
let t = R(5), { children: n, className: r } = e, { uiConfig: i } =
|
|
2899
|
+
}, Ji = "zx38wb0", Yi = (e) => {
|
|
2900
|
+
let t = R(5), { children: n, className: r } = e, { uiConfig: i } = mi();
|
|
2863
2901
|
if (i?.hideSectionHeadings) return null;
|
|
2864
2902
|
let a;
|
|
2865
|
-
t[0] === r ? a = t[1] : (a = Z(
|
|
2903
|
+
t[0] === r ? a = t[1] : (a = Z(Ji, r), t[0] = r, t[1] = a);
|
|
2866
2904
|
let o;
|
|
2867
2905
|
return t[2] !== n || t[3] !== a ? (o = /* @__PURE__ */ Q("h3", {
|
|
2868
2906
|
className: a,
|
|
2869
2907
|
children: n
|
|
2870
2908
|
}), t[2] = n, t[3] = a, t[4] = o) : o = t[4], o;
|
|
2871
|
-
},
|
|
2909
|
+
}, Xi = "q22d794", Zi = "q22d795", Qi = "q22d796", $i = "q22d797", ea = "q22d798", ta = 5, na = "Thank you!", ra = "Your response has been submitted successfully.", ia = () => {
|
|
2872
2910
|
let e = R(1), t;
|
|
2873
2911
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ $("svg", {
|
|
2874
2912
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2880,8 +2918,8 @@ var Wi = "_1vist8m0", Gi = (e) => {
|
|
|
2880
2918
|
strokeLinejoin: "round",
|
|
2881
2919
|
children: [/* @__PURE__ */ Q("title", { children: "Check Icon" }), /* @__PURE__ */ Q("path", { d: "M20 6 9 17l-5-5" })]
|
|
2882
2920
|
}), e[0] = t) : t = e[0], t;
|
|
2883
|
-
},
|
|
2884
|
-
let { successConfig: t, schema: n } =
|
|
2921
|
+
}, aa = ({ onDismiss: e }) => {
|
|
2922
|
+
let { successConfig: t, schema: n } = mi(), r = n?.settings?.success_message, [i, a] = Y(ta), s = (e) => !e || e.replace(/<[^>]*>/g, "").trim() === "", c = t?.title || r?.title || na, l = t?.message || r?.message, u = s(l) ? ra : l, d = t?.action || r?.action, f = d?.type ?? "none", p = f === "redirect" ? d?.value : void 0, m = (() => {
|
|
2885
2923
|
let e = p?.trim();
|
|
2886
2924
|
if (e && !e.startsWith("//")) {
|
|
2887
2925
|
if (e.startsWith("/")) return e;
|
|
@@ -2902,20 +2940,20 @@ var Wi = "_1vist8m0", Gi = (e) => {
|
|
|
2902
2940
|
m && (window.location.href = m);
|
|
2903
2941
|
}, [m]);
|
|
2904
2942
|
return /* @__PURE__ */ Q("div", {
|
|
2905
|
-
className:
|
|
2943
|
+
className: Xi,
|
|
2906
2944
|
children: /* @__PURE__ */ $("div", {
|
|
2907
|
-
className:
|
|
2945
|
+
className: Zi,
|
|
2908
2946
|
children: [
|
|
2909
2947
|
/* @__PURE__ */ Q("div", {
|
|
2910
|
-
className:
|
|
2911
|
-
children: /* @__PURE__ */ Q(
|
|
2948
|
+
className: Qi,
|
|
2949
|
+
children: /* @__PURE__ */ Q(ia, {})
|
|
2912
2950
|
}),
|
|
2913
2951
|
/* @__PURE__ */ Q("h2", {
|
|
2914
|
-
className:
|
|
2952
|
+
className: $i,
|
|
2915
2953
|
children: c
|
|
2916
2954
|
}),
|
|
2917
2955
|
/* @__PURE__ */ Q("div", {
|
|
2918
|
-
className:
|
|
2956
|
+
className: ea,
|
|
2919
2957
|
dangerouslySetInnerHTML: { __html: u }
|
|
2920
2958
|
}),
|
|
2921
2959
|
f === "submit_another" && /* @__PURE__ */ Q("div", {
|
|
@@ -2946,14 +2984,14 @@ var Wi = "_1vist8m0", Gi = (e) => {
|
|
|
2946
2984
|
]
|
|
2947
2985
|
})
|
|
2948
2986
|
});
|
|
2949
|
-
},
|
|
2950
|
-
let t = R(29), { isError: n, contentId: r, publishedId: i, getContentId: a, allFormValues: o } = e, { collection: s } = g(), { schema: c, isLoggedIn: l, preview: u } =
|
|
2987
|
+
}, oa = (e) => {
|
|
2988
|
+
let t = R(29), { isError: n, contentId: r, publishedId: i, getContentId: a, allFormValues: o } = e, { collection: s } = g(), { schema: c, isLoggedIn: l, preview: u } = mi(), { formState: d } = ie(), f = ae(), p;
|
|
2951
2989
|
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) => {
|
|
2952
2990
|
u || i || c?.key && !n && c?.allow_draft && (l ? r ? s.editDraftEntry(c?.key, r, e).then((e) => {
|
|
2953
2991
|
e?.content?.data?._id && a(e?.content?.data?._id);
|
|
2954
|
-
}).catch(
|
|
2992
|
+
}).catch(sa) : s.saveDraftEntry(c?.key, e).then((e) => {
|
|
2955
2993
|
e?.content?.data?._id && a(e?.content?.data?._id);
|
|
2956
|
-
}).catch(
|
|
2994
|
+
}).catch(ca) : vi(c?.key, e));
|
|
2957
2995
|
}, 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];
|
|
2958
2996
|
let m = je(p, 100), { isDirty: h, isSubmitting: _, isSubmitSuccessful: v } = d, y;
|
|
2959
2997
|
t[10] !== o || t[11] !== m || t[12] !== f || t[13] !== h || t[14] !== n || t[15] !== v || t[16] !== _ || t[17] !== u ? (y = () => {
|
|
@@ -2981,18 +3019,18 @@ var Wi = "_1vist8m0", Gi = (e) => {
|
|
|
2981
3019
|
u
|
|
2982
3020
|
], t[19] = r, t[20] = f, t[21] = h, t[22] = n, t[23] = l, t[24] = v, t[25] = _, t[26] = u, t[27] = i, t[28] = b) : b = t[28], K(y, b), null;
|
|
2983
3021
|
};
|
|
2984
|
-
function
|
|
3022
|
+
function sa() {
|
|
2985
3023
|
console.error("saving entry failed");
|
|
2986
3024
|
}
|
|
2987
|
-
function
|
|
3025
|
+
function ca() {
|
|
2988
3026
|
console.error("saving entry failed");
|
|
2989
3027
|
}
|
|
2990
3028
|
//#endregion
|
|
2991
3029
|
//#region ../../libraries/react-collection/dist/lib/variants/DefaultFormVariant/DefaultFormVariant.cssm.js
|
|
2992
|
-
var
|
|
2993
|
-
let e = R(51), { schema: t, containerStyles: n, submitButtonConfig: r, isDisabled: i, widgets: a, disableCaptcha: s, debug: c, enableVerification: l } =
|
|
3030
|
+
var la = "fil1ri0", ua = "fil1ri1", da = "fil1ri2", fa = "fil1ri5", pa = () => {
|
|
3031
|
+
let e = R(51), { schema: t, containerStyles: n, submitButtonConfig: r, isDisabled: i, widgets: a, disableCaptcha: s, debug: c, enableVerification: l } = mi(), u;
|
|
2994
3032
|
e[0] === t ? u = e[1] : (u = { schema: t }, e[0] = t, e[1] = u);
|
|
2995
|
-
let { methods: d, isError: f, isLoading: p, contentId: m, publishedId: h, handleContentId: g, submitToRemote: _, allFormValues: v, showSuccessOverlay: y, dismissSuccessOverlay: b } =
|
|
3033
|
+
let { methods: d, isError: f, isLoading: p, contentId: m, publishedId: h, handleContentId: g, submitToRemote: _, allFormValues: v, showSuccessOverlay: y, dismissSuccessOverlay: b } = bi(u), { handleSubmit: x, watch: S, formState: C } = d, { isSubmitting: w } = C, T;
|
|
2996
3034
|
e[2] === S ? T = e[3] : (T = S("__captcha"), e[2] = S, e[3] = T);
|
|
2997
3035
|
let E = T, D;
|
|
2998
3036
|
e[4] === _ ? D = e[5] : (D = async (e) => {
|
|
@@ -3003,12 +3041,12 @@ var sa = "fil1ri0", ca = "fil1ri1", la = "fil1ri2", ua = "fil1ri5", da = () => {
|
|
|
3003
3041
|
let k = O;
|
|
3004
3042
|
if (y) {
|
|
3005
3043
|
let t;
|
|
3006
|
-
return e[9] === b ? t = e[10] : (t = /* @__PURE__ */ Q(
|
|
3044
|
+
return e[9] === b ? t = e[10] : (t = /* @__PURE__ */ Q(aa, { onDismiss: b }), e[9] = b, e[10] = t), t;
|
|
3007
3045
|
}
|
|
3008
3046
|
let A;
|
|
3009
|
-
e[11] === c ? A = e[12] : (A = c && /* @__PURE__ */ Q(
|
|
3047
|
+
e[11] === c ? A = e[12] : (A = c && /* @__PURE__ */ Q(Bi, {}), e[11] = c, e[12] = A);
|
|
3010
3048
|
let j = m || "", M = h || "", N;
|
|
3011
|
-
e[13] !== v || e[14] !== g || e[15] !== f || e[16] !== j || e[17] !== M ? (N = /* @__PURE__ */ Q(
|
|
3049
|
+
e[13] !== v || e[14] !== g || e[15] !== f || e[16] !== j || e[17] !== M ? (N = /* @__PURE__ */ Q(oa, {
|
|
3012
3050
|
getContentId: g,
|
|
3013
3051
|
isError: f,
|
|
3014
3052
|
contentId: j,
|
|
@@ -3016,20 +3054,20 @@ var sa = "fil1ri0", ca = "fil1ri1", la = "fil1ri2", ua = "fil1ri5", da = () => {
|
|
|
3016
3054
|
allFormValues: v
|
|
3017
3055
|
}), e[13] = v, e[14] = g, e[15] = f, e[16] = j, e[17] = M, e[18] = N) : N = e[18];
|
|
3018
3056
|
let P;
|
|
3019
|
-
e[19] === n ? P = e[20] : (P = Z(
|
|
3057
|
+
e[19] === n ? P = e[20] : (P = Z(la, n), e[19] = n, e[20] = P);
|
|
3020
3058
|
let F;
|
|
3021
|
-
e[21] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ Q(
|
|
3059
|
+
e[21] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ Q(qi, {}), e[21] = F) : F = e[21];
|
|
3022
3060
|
let I = p && "fil1ri3", L;
|
|
3023
|
-
e[22] === I ? L = e[23] : (L = Z(
|
|
3061
|
+
e[22] === I ? L = e[23] : (L = Z(ua, I), e[22] = I, e[23] = L);
|
|
3024
3062
|
let z;
|
|
3025
|
-
e[24] !== l || e[25] !== t || e[26] !== a ? (z = t?.sections?.map((e) => /* @__PURE__ */ Q(
|
|
3063
|
+
e[24] !== l || e[25] !== t || e[26] !== a ? (z = t?.sections?.map((e) => /* @__PURE__ */ Q(ma, {
|
|
3026
3064
|
schema: t,
|
|
3027
3065
|
section: e,
|
|
3028
3066
|
widgets: a,
|
|
3029
3067
|
enableVerification: l
|
|
3030
3068
|
}, e.id)), e[24] = l, e[25] = t, e[26] = a, e[27] = z) : z = e[27];
|
|
3031
3069
|
let B;
|
|
3032
|
-
e[28] === s ? B = e[29] : (B = !s && /* @__PURE__ */ Q(
|
|
3070
|
+
e[28] === s ? B = e[29] : (B = !s && /* @__PURE__ */ Q(Ri, {}), e[28] = s, e[29] = B);
|
|
3033
3071
|
let V;
|
|
3034
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__ */ Q("div", {
|
|
3035
3073
|
className: "fil1ri4",
|
|
@@ -3065,11 +3103,11 @@ var sa = "fil1ri0", ca = "fil1ri1", la = "fil1ri2", ua = "fil1ri5", da = () => {
|
|
|
3065
3103
|
U
|
|
3066
3104
|
]
|
|
3067
3105
|
}), e[46] = d, e[47] = U, e[48] = A, e[49] = N, e[50] = W) : W = e[50], W;
|
|
3068
|
-
},
|
|
3106
|
+
}, ma = (e) => {
|
|
3069
3107
|
let t = R(12), { schema: n, section: r, widgets: i, enableVerification: a } = e;
|
|
3070
3108
|
if (!st(n, r)) return null;
|
|
3071
3109
|
let o;
|
|
3072
|
-
t[0] === r ? o = t[1] : (o = r?.label && /* @__PURE__ */ Q(
|
|
3110
|
+
t[0] === r ? o = t[1] : (o = r?.label && /* @__PURE__ */ Q(Yi, { children: r.label }), t[0] = r, t[1] = o);
|
|
3073
3111
|
let s;
|
|
3074
3112
|
t[2] !== a || t[3] !== n || t[4] !== r?.fields || t[5] !== i ? (s = r?.fields?.map((e) => /* @__PURE__ */ Q(qr, {
|
|
3075
3113
|
field: e,
|
|
@@ -3079,19 +3117,19 @@ var sa = "fil1ri0", ca = "fil1ri1", la = "fil1ri2", ua = "fil1ri5", da = () => {
|
|
|
3079
3117
|
}, e?.key)), t[2] = a, t[3] = n, t[4] = r?.fields, t[5] = i, t[6] = s) : s = t[6];
|
|
3080
3118
|
let c;
|
|
3081
3119
|
t[7] === s ? c = t[8] : (c = /* @__PURE__ */ Q("div", {
|
|
3082
|
-
className:
|
|
3120
|
+
className: fa,
|
|
3083
3121
|
children: s
|
|
3084
3122
|
}), t[7] = s, t[8] = c);
|
|
3085
3123
|
let l;
|
|
3086
3124
|
return t[9] !== o || t[10] !== c ? (l = /* @__PURE__ */ $("div", {
|
|
3087
|
-
className:
|
|
3125
|
+
className: da,
|
|
3088
3126
|
children: [o, c]
|
|
3089
3127
|
}), t[9] = o, t[10] = c, t[11] = l) : l = t[11], l;
|
|
3090
|
-
},
|
|
3128
|
+
}, ha = "_1kah2gz0", ga = "_1kah2gz1", _a = "_1kah2gz3", va = (e) => {
|
|
3091
3129
|
let t = R(12), { totalSteps: n, currentStepIndex: r, hasLevoErrors: i } = e, { formState: a } = ie(), { errors: o } = a, s = Object.keys(o || {}).length > 0 || i, c = Math.floor((r + 1) * 100 / n), l = s && "_1kah2gz2", u;
|
|
3092
|
-
t[0] === l ? u = t[1] : (u = Z(
|
|
3130
|
+
t[0] === l ? u = t[1] : (u = Z(ga, l), t[0] = l, t[1] = u);
|
|
3093
3131
|
let d = s && "_1kah2gz4", f;
|
|
3094
|
-
t[2] === d ? f = t[3] : (f = Z(
|
|
3132
|
+
t[2] === d ? f = t[3] : (f = Z(_a, d), t[2] = d, t[3] = f);
|
|
3095
3133
|
let p = `${c}%`, m;
|
|
3096
3134
|
t[4] === p ? m = t[5] : (m = { width: p }, t[4] = p, t[5] = m);
|
|
3097
3135
|
let h;
|
|
@@ -3101,20 +3139,20 @@ var sa = "fil1ri0", ca = "fil1ri1", la = "fil1ri2", ua = "fil1ri5", da = () => {
|
|
|
3101
3139
|
}), t[6] = f, t[7] = m, t[8] = h) : h = t[8];
|
|
3102
3140
|
let g;
|
|
3103
3141
|
return t[9] !== u || t[10] !== h ? (g = /* @__PURE__ */ Q("div", {
|
|
3104
|
-
className:
|
|
3142
|
+
className: ha,
|
|
3105
3143
|
children: /* @__PURE__ */ Q("div", {
|
|
3106
3144
|
className: u,
|
|
3107
3145
|
children: h
|
|
3108
3146
|
})
|
|
3109
3147
|
}), t[9] = u, t[10] = h, t[11] = g) : g = t[11], g;
|
|
3110
|
-
},
|
|
3148
|
+
}, ya = "_1ypxmcv0", ba = "_1ypxmcv1", xa = "_1ypxmcvb", Sa = "_1ypxmcvc", Ca = (e, t) => e?.sections?.flatMap((n) => (n.fields || []).filter((n) => !$e(e, n, t)).map((e) => ({
|
|
3111
3149
|
id: e.key,
|
|
3112
3150
|
content: e,
|
|
3113
3151
|
sectionId: n.id || "",
|
|
3114
3152
|
sectionLabel: n.label
|
|
3115
|
-
}))) ?? [],
|
|
3116
|
-
let e = R(82), { disableCaptcha: t, schema: n, widgets: r, submitButtonConfig: i, containerStyles: a, enableVerification: s } =
|
|
3117
|
-
e[0] === n ? c = e[1] : (c = () =>
|
|
3153
|
+
}))) ?? [], wa = () => {
|
|
3154
|
+
let e = R(82), { disableCaptcha: t, schema: n, widgets: r, submitButtonConfig: i, containerStyles: a, enableVerification: s } = mi(), c;
|
|
3155
|
+
e[0] === n ? c = e[1] : (c = () => Ca(n, {}), e[0] = n, e[1] = c);
|
|
3118
3156
|
let [l, u] = Y(c), [d, f] = Y(0), [p, m] = Y(0), h;
|
|
3119
3157
|
e[2] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
3120
3158
|
state: "entered",
|
|
@@ -3123,7 +3161,7 @@ var sa = "fil1ri0", ca = "fil1ri1", la = "fil1ri2", ua = "fil1ri5", da = () => {
|
|
|
3123
3161
|
let [g, _] = Y(h), v;
|
|
3124
3162
|
e[3] === Symbol.for("react.memo_cache_sentinel") ? (v = [], e[3] = v) : v = e[3];
|
|
3125
3163
|
let [y, b] = Y(v), x = g.state === "exiting" ? d : p, S = p === l.length - 1, C = l[x], w;
|
|
3126
|
-
e[4] === n ? w = e[5] : (w = (e) => u(
|
|
3164
|
+
e[4] === n ? w = e[5] : (w = (e) => u(Ca(n, e)), e[4] = n, e[5] = w);
|
|
3127
3165
|
let T;
|
|
3128
3166
|
e[6] === Symbol.for("react.memo_cache_sentinel") ? (T = () => {
|
|
3129
3167
|
b([]), m(0), _({
|
|
@@ -3148,10 +3186,10 @@ var sa = "fil1ri0", ca = "fil1ri1", la = "fil1ri2", ua = "fil1ri5", da = () => {
|
|
|
3148
3186
|
onSubmitSuccess: T,
|
|
3149
3187
|
onSubmitError: E
|
|
3150
3188
|
}, e[10] = n, e[11] = w, e[12] = E, e[13] = D) : D = e[13];
|
|
3151
|
-
let { methods: O, submitToRemote: k, appendFormValues: A, handleContentId: j, isError: M, allFormValues: N, contentId: P, publishedId: F, isLoading: I, showSuccessOverlay: L, dismissSuccessOverlay: z } =
|
|
3189
|
+
let { methods: O, submitToRemote: k, appendFormValues: A, handleContentId: j, isError: M, allFormValues: N, contentId: P, publishedId: F, isLoading: I, showSuccessOverlay: L, dismissSuccessOverlay: z } = bi(D), { handleSubmit: B, setFocus: V, setError: H, formState: U } = O, { isSubmitting: W } = U, G;
|
|
3152
3190
|
e[14] !== A || e[15] !== C?.content?.key || e[16] !== C?.id || e[17] !== n || e[18] !== k ? (G = async (e) => {
|
|
3153
3191
|
b((e) => e.filter((e) => e?.param !== C?.content?.key));
|
|
3154
|
-
let t =
|
|
3192
|
+
let t = Ca(n, e), r = t.findIndex((e) => e.id === C?.id);
|
|
3155
3193
|
r !== -1 && r + 1 < t.length ? (u(t), A(e), m(r + 1), _({
|
|
3156
3194
|
state: "exiting",
|
|
3157
3195
|
direction: "next"
|
|
@@ -3161,7 +3199,7 @@ var sa = "fil1ri0", ca = "fil1ri1", la = "fil1ri2", ua = "fil1ri5", da = () => {
|
|
|
3161
3199
|
e[20] !== B || e[21] !== G ? (q = B(G), e[20] = B, e[21] = G, e[22] = q) : q = e[22];
|
|
3162
3200
|
let J = q, te;
|
|
3163
3201
|
e[23] !== g.state || e[24] !== p ? (te = () => {
|
|
3164
|
-
g.state === "entered" && (p <= 0 || (m(
|
|
3202
|
+
g.state === "entered" && (p <= 0 || (m(Ta), _({
|
|
3165
3203
|
state: "exiting",
|
|
3166
3204
|
direction: "prev"
|
|
3167
3205
|
})));
|
|
@@ -3192,10 +3230,10 @@ var sa = "fil1ri0", ca = "fil1ri1", la = "fil1ri2", ua = "fil1ri5", da = () => {
|
|
|
3192
3230
|
], e[32] = C, e[33] = y, e[34] = H, e[35] = ie, e[36] = ae) : (ie = e[35], ae = e[36]), K(ie, ae), !n || l.length === 0) return null;
|
|
3193
3231
|
if (L) {
|
|
3194
3232
|
let t;
|
|
3195
|
-
return e[37] === z ? t = e[38] : (t = /* @__PURE__ */ Q(
|
|
3233
|
+
return e[37] === z ? t = e[38] : (t = /* @__PURE__ */ Q(aa, { onDismiss: z }), e[37] = z, e[38] = t), t;
|
|
3196
3234
|
}
|
|
3197
3235
|
let oe = W || I, se = P || "", ce = F || "", ue;
|
|
3198
|
-
e[39] !== N || e[40] !== j || e[41] !== M || e[42] !== se || e[43] !== ce ? (ue = /* @__PURE__ */ Q(
|
|
3236
|
+
e[39] !== N || e[40] !== j || e[41] !== M || e[42] !== se || e[43] !== ce ? (ue = /* @__PURE__ */ Q(oa, {
|
|
3199
3237
|
getContentId: j,
|
|
3200
3238
|
isError: M,
|
|
3201
3239
|
contentId: se,
|
|
@@ -3203,21 +3241,21 @@ var sa = "fil1ri0", ca = "fil1ri1", la = "fil1ri2", ua = "fil1ri5", da = () => {
|
|
|
3203
3241
|
allFormValues: N
|
|
3204
3242
|
}), e[39] = N, e[40] = j, e[41] = M, e[42] = se, e[43] = ce, e[44] = ue) : ue = e[44];
|
|
3205
3243
|
let de;
|
|
3206
|
-
e[45] === Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ Q(
|
|
3244
|
+
e[45] === Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ Q(qi, { className: Sa }), e[45] = de) : de = e[45];
|
|
3207
3245
|
let fe = C?.sectionLabel, pe;
|
|
3208
|
-
e[46] === fe ? pe = e[47] : (pe = /* @__PURE__ */ Q(
|
|
3209
|
-
className:
|
|
3246
|
+
e[46] === fe ? pe = e[47] : (pe = /* @__PURE__ */ Q(Yi, {
|
|
3247
|
+
className: xa,
|
|
3210
3248
|
children: fe
|
|
3211
3249
|
}), e[46] = fe, e[47] = pe);
|
|
3212
3250
|
let me = l?.length || 1, he = Array.isArray(y) && y?.length > 0, ge;
|
|
3213
|
-
e[48] !== p || e[49] !== me || e[50] !== he ? (ge = /* @__PURE__ */ Q(
|
|
3251
|
+
e[48] !== p || e[49] !== me || e[50] !== he ? (ge = /* @__PURE__ */ Q(va, {
|
|
3214
3252
|
currentStepIndex: p,
|
|
3215
3253
|
totalSteps: me,
|
|
3216
3254
|
hasLevoErrors: he
|
|
3217
3255
|
}), e[48] = p, e[49] = me, e[50] = he, e[51] = ge) : ge = e[51];
|
|
3218
3256
|
let _e;
|
|
3219
3257
|
e[52] !== pe || e[53] !== ge ? (_e = /* @__PURE__ */ $("div", {
|
|
3220
|
-
className:
|
|
3258
|
+
className: ya,
|
|
3221
3259
|
children: [
|
|
3222
3260
|
de,
|
|
3223
3261
|
pe,
|
|
@@ -3225,7 +3263,7 @@ var sa = "fil1ri0", ca = "fil1ri1", la = "fil1ri2", ua = "fil1ri5", da = () => {
|
|
|
3225
3263
|
]
|
|
3226
3264
|
}), e[52] = pe, e[53] = ge, e[54] = _e) : _e = e[54];
|
|
3227
3265
|
let ve;
|
|
3228
|
-
e[55] === a ? ve = e[56] : (ve = Z(
|
|
3266
|
+
e[55] === a ? ve = e[56] : (ve = Z(ba, a), e[55] = a, e[56] = ve);
|
|
3229
3267
|
let ye;
|
|
3230
3268
|
e[57] !== g.direction || e[58] !== g.state || e[59] !== C || e[60] !== t || e[61] !== s || e[62] !== re || e[63] !== X || e[64] !== oe || e[65] !== S || e[66] !== p || e[67] !== J || e[68] !== n || e[69] !== i?.show || e[70] !== i?.styles || e[71] !== i?.text || e[72] !== r ? (ye = C && /* @__PURE__ */ Q("div", {
|
|
3231
3269
|
className: "_1ypxmcv6",
|
|
@@ -3242,7 +3280,7 @@ var sa = "fil1ri0", ca = "fil1ri1", la = "fil1ri2", ua = "fil1ri5", da = () => {
|
|
|
3242
3280
|
widgets: r,
|
|
3243
3281
|
settings: { enableVerification: s }
|
|
3244
3282
|
}),
|
|
3245
|
-
!t && S && /* @__PURE__ */ Q(
|
|
3283
|
+
!t && S && /* @__PURE__ */ Q(Ri, {}),
|
|
3246
3284
|
/* @__PURE__ */ $("div", {
|
|
3247
3285
|
className: "_1ypxmcv8",
|
|
3248
3286
|
children: [/* @__PURE__ */ Q("div", { className: "_1ypxmcv9" }), /* @__PURE__ */ $("div", {
|
|
@@ -3284,14 +3322,14 @@ var sa = "fil1ri0", ca = "fil1ri1", la = "fil1ri2", ua = "fil1ri5", da = () => {
|
|
|
3284
3322
|
]
|
|
3285
3323
|
}), e[77] = O, e[78] = ue, e[79] = _e, e[80] = be, e[81] = xe) : xe = e[81], xe;
|
|
3286
3324
|
};
|
|
3287
|
-
function
|
|
3325
|
+
function Ta(e) {
|
|
3288
3326
|
return Math.max(e - 1, 0);
|
|
3289
3327
|
}
|
|
3290
3328
|
//#endregion
|
|
3291
3329
|
//#region ../../libraries/react-collection/dist/lib/variants/StepFormVariant2/StepFormVariant2.cssm.js
|
|
3292
|
-
var
|
|
3293
|
-
let e = R(99), { disableCaptcha: t, schema: n, widgets: r, submitButtonConfig: i, containerStyles: a, enableVerification: s } =
|
|
3294
|
-
e[0] === n ? c = e[1] : (c = () =>
|
|
3330
|
+
var Ea = "zlgzzn0", Da = "zlgzzn1", Oa = "zlgzznb", ka = "zlgzznc", Aa = (e, t) => e?.sections ? e.sections.filter((n) => it(e, n.fields || [], t)) : [], ja = () => {
|
|
3331
|
+
let e = R(99), { disableCaptcha: t, schema: n, widgets: r, submitButtonConfig: i, containerStyles: a, enableVerification: s } = mi(), c;
|
|
3332
|
+
e[0] === n ? c = e[1] : (c = () => Aa(n, {}), e[0] = n, e[1] = c);
|
|
3295
3333
|
let [l, u] = Y(c), [d, f] = Y(0), [p, m] = Y(0), h;
|
|
3296
3334
|
e[2] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
3297
3335
|
state: "entered",
|
|
@@ -3316,7 +3354,7 @@ var wa = "zlgzzn0", Ta = "zlgzzn1", Ea = "zlgzznb", Da = "zlgzznc", Oa = (e, t)
|
|
|
3316
3354
|
w = null;
|
|
3317
3355
|
}
|
|
3318
3356
|
let T = w, E;
|
|
3319
|
-
e[9] === n ? E = e[10] : (E = (e) => u(
|
|
3357
|
+
e[9] === n ? E = e[10] : (E = (e) => u(Aa(n, e)), e[9] = n, e[10] = E);
|
|
3320
3358
|
let D;
|
|
3321
3359
|
e[11] === Symbol.for("react.memo_cache_sentinel") ? (D = () => {
|
|
3322
3360
|
b([]), m(0), _({
|
|
@@ -3343,15 +3381,15 @@ var wa = "zlgzzn0", Ta = "zlgzzn1", Ea = "zlgzznb", Da = "zlgzznc", Oa = (e, t)
|
|
|
3343
3381
|
onSubmitSuccess: D,
|
|
3344
3382
|
onSubmitError: O
|
|
3345
3383
|
}, e[15] = n, e[16] = T, e[17] = E, e[18] = O, e[19] = k) : k = e[19];
|
|
3346
|
-
let { methods: A, submitToRemote: j, appendFormValues: M, handleContentId: N, isError: P, allFormValues: F, contentId: I, publishedId: L, isLoading: z, showSuccessOverlay: B, dismissSuccessOverlay: V } =
|
|
3384
|
+
let { methods: A, submitToRemote: j, appendFormValues: M, handleContentId: N, isError: P, allFormValues: F, contentId: I, publishedId: L, isLoading: z, showSuccessOverlay: B, dismissSuccessOverlay: V } = bi(k), { handleSubmit: H, setFocus: U, setError: W, watch: G, formState: q } = A, { isSubmitting: J } = q, te;
|
|
3347
3385
|
e[20] === G ? te = e[21] : (te = G("__captcha"), e[20] = G, e[21] = te);
|
|
3348
3386
|
let X = te, ne;
|
|
3349
3387
|
e[22] !== F || e[23] !== g.state || e[24] !== M || e[25] !== S?.fields || e[26] !== p || e[27] !== n || e[28] !== j ? (ne = async (e) => {
|
|
3350
3388
|
b((e) => {
|
|
3351
|
-
let t = S?.fields?.map(
|
|
3389
|
+
let t = S?.fields?.map(Ma) || [];
|
|
3352
3390
|
return e.filter((e) => !t.includes(e.param));
|
|
3353
3391
|
});
|
|
3354
|
-
let t =
|
|
3392
|
+
let t = Aa(n, {
|
|
3355
3393
|
...F || {},
|
|
3356
3394
|
...e
|
|
3357
3395
|
});
|
|
@@ -3364,7 +3402,7 @@ var wa = "zlgzzn0", Ta = "zlgzzn1", Ea = "zlgzznb", Da = "zlgzznc", Oa = (e, t)
|
|
|
3364
3402
|
e[30] !== H || e[31] !== ne ? (re = H(ne), e[30] = H, e[31] = ne, e[32] = re) : re = e[32];
|
|
3365
3403
|
let ie = re, ae;
|
|
3366
3404
|
e[33] !== g.state || e[34] !== p ? (ae = () => {
|
|
3367
|
-
g.state === "entered" && (p <= 0 || (m(
|
|
3405
|
+
g.state === "entered" && (p <= 0 || (m(Na), _({
|
|
3368
3406
|
state: "exiting",
|
|
3369
3407
|
direction: "prev"
|
|
3370
3408
|
})));
|
|
@@ -3397,10 +3435,10 @@ var wa = "zlgzzn0", Ta = "zlgzzn1", Ea = "zlgzznb", Da = "zlgzznc", Oa = (e, t)
|
|
|
3397
3435
|
], e[47] = g, e[48] = S, e[49] = y, e[50] = W, e[51] = de) : de = e[51], K(ue, de), !n || l.length === 0) return null;
|
|
3398
3436
|
if (B) {
|
|
3399
3437
|
let t;
|
|
3400
|
-
return e[52] === V ? t = e[53] : (t = /* @__PURE__ */ Q(
|
|
3438
|
+
return e[52] === V ? t = e[53] : (t = /* @__PURE__ */ Q(aa, { onDismiss: V }), e[52] = V, e[53] = t), t;
|
|
3401
3439
|
}
|
|
3402
3440
|
let fe = J || z || X === "verifying" && C, pe = I || "", me = L || "", he;
|
|
3403
|
-
e[54] !== F || e[55] !== N || e[56] !== P || e[57] !== pe || e[58] !== me ? (he = /* @__PURE__ */ Q(
|
|
3441
|
+
e[54] !== F || e[55] !== N || e[56] !== P || e[57] !== pe || e[58] !== me ? (he = /* @__PURE__ */ Q(oa, {
|
|
3404
3442
|
getContentId: N,
|
|
3405
3443
|
isError: P,
|
|
3406
3444
|
contentId: pe,
|
|
@@ -3408,21 +3446,21 @@ var wa = "zlgzzn0", Ta = "zlgzzn1", Ea = "zlgzznb", Da = "zlgzznc", Oa = (e, t)
|
|
|
3408
3446
|
allFormValues: F
|
|
3409
3447
|
}), e[54] = F, e[55] = N, e[56] = P, e[57] = pe, e[58] = me, e[59] = he) : he = e[59];
|
|
3410
3448
|
let ge;
|
|
3411
|
-
e[60] === Symbol.for("react.memo_cache_sentinel") ? (ge = /* @__PURE__ */ Q(
|
|
3449
|
+
e[60] === Symbol.for("react.memo_cache_sentinel") ? (ge = /* @__PURE__ */ Q(qi, { className: ka }), e[60] = ge) : ge = e[60];
|
|
3412
3450
|
let _e = S?.label, ve;
|
|
3413
|
-
e[61] === _e ? ve = e[62] : (ve = /* @__PURE__ */ Q(
|
|
3414
|
-
className:
|
|
3451
|
+
e[61] === _e ? ve = e[62] : (ve = /* @__PURE__ */ Q(Yi, {
|
|
3452
|
+
className: Oa,
|
|
3415
3453
|
children: _e
|
|
3416
3454
|
}), e[61] = _e, e[62] = ve);
|
|
3417
3455
|
let ye = l?.length || 1, be = Array.isArray(y) && y?.length > 0, xe;
|
|
3418
|
-
e[63] !== p || e[64] !== ye || e[65] !== be ? (xe = /* @__PURE__ */ Q(
|
|
3456
|
+
e[63] !== p || e[64] !== ye || e[65] !== be ? (xe = /* @__PURE__ */ Q(va, {
|
|
3419
3457
|
currentStepIndex: p,
|
|
3420
3458
|
totalSteps: ye,
|
|
3421
3459
|
hasLevoErrors: be
|
|
3422
3460
|
}), e[63] = p, e[64] = ye, e[65] = be, e[66] = xe) : xe = e[66];
|
|
3423
3461
|
let Se;
|
|
3424
3462
|
e[67] !== ve || e[68] !== xe ? (Se = /* @__PURE__ */ $("div", {
|
|
3425
|
-
className:
|
|
3463
|
+
className: Ea,
|
|
3426
3464
|
children: [
|
|
3427
3465
|
ge,
|
|
3428
3466
|
ve,
|
|
@@ -3430,7 +3468,7 @@ var wa = "zlgzzn0", Ta = "zlgzzn1", Ea = "zlgzznb", Da = "zlgzznc", Oa = (e, t)
|
|
|
3430
3468
|
]
|
|
3431
3469
|
}), e[67] = ve, e[68] = xe, e[69] = Se) : Se = e[69];
|
|
3432
3470
|
let Ce;
|
|
3433
|
-
e[70] === a ? Ce = e[71] : (Ce = Z(
|
|
3471
|
+
e[70] === a ? Ce = e[71] : (Ce = Z(Da, a), e[70] = a, e[71] = Ce);
|
|
3434
3472
|
let we;
|
|
3435
3473
|
e[72] !== g.direction || e[73] !== g.state || e[74] !== X || e[75] !== S || e[76] !== t || e[77] !== x || e[78] !== s || e[79] !== ce || e[80] !== oe || e[81] !== fe || e[82] !== C || e[83] !== p || e[84] !== ie || e[85] !== n || e[86] !== i?.show || e[87] !== i?.styles || e[88] !== i?.text || e[89] !== r ? (we = S && /* @__PURE__ */ Q("div", {
|
|
3436
3474
|
className: "zlgzzn6",
|
|
@@ -3447,7 +3485,7 @@ var wa = "zlgzzn0", Ta = "zlgzzn1", Ea = "zlgzznb", Da = "zlgzznc", Oa = (e, t)
|
|
|
3447
3485
|
widgets: r,
|
|
3448
3486
|
settings: { enableVerification: s }
|
|
3449
3487
|
}, e.key)),
|
|
3450
|
-
!t && C && /* @__PURE__ */ Q(
|
|
3488
|
+
!t && C && /* @__PURE__ */ Q(Ri, {}),
|
|
3451
3489
|
/* @__PURE__ */ $("div", {
|
|
3452
3490
|
className: "zlgzzn8",
|
|
3453
3491
|
children: [/* @__PURE__ */ Q("div", { className: "zlgzzn9" }), /* @__PURE__ */ $("div", {
|
|
@@ -3489,24 +3527,24 @@ var wa = "zlgzzn0", Ta = "zlgzzn1", Ea = "zlgzznb", Da = "zlgzznc", Oa = (e, t)
|
|
|
3489
3527
|
]
|
|
3490
3528
|
}), e[94] = A, e[95] = he, e[96] = Se, e[97] = Te, e[98] = Ee) : Ee = e[98], Ee;
|
|
3491
3529
|
};
|
|
3492
|
-
function
|
|
3530
|
+
function Ma(e) {
|
|
3493
3531
|
return e.key;
|
|
3494
3532
|
}
|
|
3495
|
-
function
|
|
3533
|
+
function Na(e) {
|
|
3496
3534
|
return Math.max(e - 1, 0);
|
|
3497
3535
|
}
|
|
3498
3536
|
//#endregion
|
|
3499
3537
|
//#region ../../libraries/react-collection/dist/lib/variants/StepsFormVariant/StepsFormVariant.cssm.js
|
|
3500
|
-
var
|
|
3501
|
-
let e = R(15), { schema: t, containerStyles: n } =
|
|
3502
|
-
e[0] === t ? r = e[1] : (r = () =>
|
|
3538
|
+
var Pa = "_1f3ynb50", Fa = "_1f3ynb54", Ia = "_1f3ynb55", La = (e, t) => e?.sections ? e.sections.filter((n) => it(e, n.fields || [], t)) : [], Ra = () => {
|
|
3539
|
+
let e = R(15), { schema: t, containerStyles: n } = mi(), r;
|
|
3540
|
+
e[0] === t ? r = e[1] : (r = () => La(t, {}), e[0] = t, e[1] = r);
|
|
3503
3541
|
let [i, a] = Y(r), [o, s] = Y(0), c;
|
|
3504
3542
|
e[2] === Symbol.for("react.memo_cache_sentinel") ? (c = () => {
|
|
3505
|
-
s(
|
|
3543
|
+
s(Ba);
|
|
3506
3544
|
}, e[2] = c) : c = e[2];
|
|
3507
3545
|
let l = c, u;
|
|
3508
3546
|
e[3] === Symbol.for("react.memo_cache_sentinel") ? (u = () => {
|
|
3509
|
-
s(
|
|
3547
|
+
s(Va);
|
|
3510
3548
|
}, e[3] = u) : u = e[3];
|
|
3511
3549
|
let d = u, f;
|
|
3512
3550
|
e[4] === Symbol.for("react.memo_cache_sentinel") ? (f = (e) => {
|
|
@@ -3514,14 +3552,14 @@ var Ma = "_1f3ynb50", Na = "_1f3ynb54", Pa = "_1f3ynb55", Fa = (e, t) => e?.sect
|
|
|
3514
3552
|
}, e[4] = f) : f = e[4];
|
|
3515
3553
|
let p = f, m;
|
|
3516
3554
|
e[5] === t ? m = e[6] : (m = (e) => {
|
|
3517
|
-
a(
|
|
3555
|
+
a(La(t, e)), d();
|
|
3518
3556
|
}, e[5] = t, e[6] = m);
|
|
3519
3557
|
let h;
|
|
3520
3558
|
e[7] === t ? h = e[8] : (h = (e) => {
|
|
3521
|
-
a(
|
|
3559
|
+
a(La(t, e));
|
|
3522
3560
|
}, e[7] = t, e[8] = h);
|
|
3523
3561
|
let g;
|
|
3524
|
-
return e[9] !== n || e[10] !== o || e[11] !== m || e[12] !== h || e[13] !== i ? (g = /* @__PURE__ */ Q(
|
|
3562
|
+
return e[9] !== n || e[10] !== o || e[11] !== m || e[12] !== h || e[13] !== i ? (g = /* @__PURE__ */ Q(za, {
|
|
3525
3563
|
currentSectionIndex: o,
|
|
3526
3564
|
visibleSections: i,
|
|
3527
3565
|
onAdvanceWithValues: m,
|
|
@@ -3530,8 +3568,8 @@ var Ma = "_1f3ynb50", Na = "_1f3ynb54", Pa = "_1f3ynb55", Fa = (e, t) => e?.sect
|
|
|
3530
3568
|
onInit: h,
|
|
3531
3569
|
containerStyles: n
|
|
3532
3570
|
}), e[9] = n, e[10] = o, e[11] = m, e[12] = h, e[13] = i, e[14] = g) : g = e[14], g;
|
|
3533
|
-
},
|
|
3534
|
-
let t = R(82), { containerStyles: n, currentSectionIndex: r, visibleSections: i, onAdvanceWithValues: a, handlePrev: s, goToIndex: c, onInit: l } = e, { schema: u, disableCaptcha: d, isDisabled: f, submitButtonConfig: p, widgets: m, enableVerification: h } =
|
|
3571
|
+
}, za = (e) => {
|
|
3572
|
+
let t = R(82), { containerStyles: n, currentSectionIndex: r, visibleSections: i, onAdvanceWithValues: a, handlePrev: s, goToIndex: c, onInit: l } = e, { schema: u, disableCaptcha: d, isDisabled: f, submitButtonConfig: p, widgets: m, enableVerification: h } = mi(), g;
|
|
3535
3573
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (g = [], t[0] = g) : g = t[0];
|
|
3536
3574
|
let [_, v] = Y(g), y = i?.[r], b;
|
|
3537
3575
|
bb0: {
|
|
@@ -3569,19 +3607,19 @@ var Ma = "_1f3ynb50", Na = "_1f3ynb54", Pa = "_1f3ynb55", Fa = (e, t) => e?.sect
|
|
|
3569
3607
|
onSubmitSuccess: C,
|
|
3570
3608
|
onSubmitError: w
|
|
3571
3609
|
}, t[11] = l, t[12] = u, t[13] = x, t[14] = C, t[15] = w, t[16] = T) : T = t[16];
|
|
3572
|
-
let { methods: E, submitToRemote: D, appendFormValues: O, isLoading: k, handleContentId: A, isError: j, contentId: M, publishedId: N, allFormValues: P, showSuccessOverlay: F, dismissSuccessOverlay: I } =
|
|
3610
|
+
let { methods: E, submitToRemote: D, appendFormValues: O, isLoading: k, handleContentId: A, isError: j, contentId: M, publishedId: N, allFormValues: P, showSuccessOverlay: F, dismissSuccessOverlay: I } = bi(T), { handleSubmit: L, setError: z, watch: B, formState: V } = E, { isSubmitting: H } = V, U;
|
|
3573
3611
|
t[17] === B ? U = t[18] : (U = B("__captcha"), t[17] = B, t[18] = U);
|
|
3574
3612
|
let W = U, G;
|
|
3575
3613
|
t[19] !== P || t[20] !== O || t[21] !== y?.fields || t[22] !== r || t[23] !== a || t[24] !== u || t[25] !== D ? (G = async (e) => {
|
|
3576
3614
|
v((e) => {
|
|
3577
|
-
let t = y?.fields?.map(
|
|
3615
|
+
let t = y?.fields?.map(Ha) || [];
|
|
3578
3616
|
return e.filter((e) => !t.includes(e.param));
|
|
3579
3617
|
});
|
|
3580
3618
|
let t = {
|
|
3581
3619
|
...P || {},
|
|
3582
3620
|
...e
|
|
3583
3621
|
};
|
|
3584
|
-
r >=
|
|
3622
|
+
r >= La(u, t).length - 1 ? await D(e) : (O(e), a(t));
|
|
3585
3623
|
}, t[19] = P, t[20] = O, t[21] = y?.fields, t[22] = r, t[23] = a, t[24] = u, t[25] = D, t[26] = G) : G = t[26];
|
|
3586
3624
|
let q;
|
|
3587
3625
|
t[27] !== L || t[28] !== G ? (q = L(G), t[27] = L, t[28] = G, t[29] = q) : q = t[29];
|
|
@@ -3599,10 +3637,10 @@ var Ma = "_1f3ynb50", Na = "_1f3ynb54", Pa = "_1f3ynb55", Fa = (e, t) => e?.sect
|
|
|
3599
3637
|
y
|
|
3600
3638
|
], t[30] = y, t[31] = _, t[32] = z, t[33] = te, t[34] = X) : (te = t[33], X = t[34]), K(X, te), F) {
|
|
3601
3639
|
let e;
|
|
3602
|
-
return t[35] === I ? e = t[36] : (e = /* @__PURE__ */ Q(
|
|
3640
|
+
return t[35] === I ? e = t[36] : (e = /* @__PURE__ */ Q(aa, { onDismiss: I }), t[35] = I, t[36] = e), e;
|
|
3603
3641
|
}
|
|
3604
3642
|
let ne = H || W === "verifying" && S, re = M || "", ie = N || "", ae;
|
|
3605
|
-
t[37] !== P || t[38] !== A || t[39] !== j || t[40] !== re || t[41] !== ie ? (ae = /* @__PURE__ */ Q(
|
|
3643
|
+
t[37] !== P || t[38] !== A || t[39] !== j || t[40] !== re || t[41] !== ie ? (ae = /* @__PURE__ */ Q(oa, {
|
|
3606
3644
|
getContentId: A,
|
|
3607
3645
|
isError: j,
|
|
3608
3646
|
contentId: re,
|
|
@@ -3610,11 +3648,11 @@ var Ma = "_1f3ynb50", Na = "_1f3ynb54", Pa = "_1f3ynb55", Fa = (e, t) => e?.sect
|
|
|
3610
3648
|
allFormValues: P
|
|
3611
3649
|
}), t[37] = P, t[38] = A, t[39] = j, t[40] = re, t[41] = ie, t[42] = ae) : ae = t[42];
|
|
3612
3650
|
let oe = k && "_1f3ynb51", se;
|
|
3613
|
-
t[43] !== n || t[44] !== oe ? (se = Z(
|
|
3651
|
+
t[43] !== n || t[44] !== oe ? (se = Z(Pa, n, oe), t[43] = n, t[44] = oe, t[45] = se) : se = t[45];
|
|
3614
3652
|
let ce;
|
|
3615
|
-
t[46] === Symbol.for("react.memo_cache_sentinel") ? (ce = /* @__PURE__ */ Q(
|
|
3653
|
+
t[46] === Symbol.for("react.memo_cache_sentinel") ? (ce = /* @__PURE__ */ Q(qi, {}), t[46] = ce) : ce = t[46];
|
|
3616
3654
|
let le = y?.label || "Details", ue;
|
|
3617
|
-
t[47] === le ? ue = t[48] : (ue = /* @__PURE__ */ Q(
|
|
3655
|
+
t[47] === le ? ue = t[48] : (ue = /* @__PURE__ */ Q(Yi, { children: /* @__PURE__ */ Q("span", { children: le }) }), t[47] = le, t[48] = ue);
|
|
3618
3656
|
let de;
|
|
3619
3657
|
t[49] !== y?.fields || t[50] !== h || t[51] !== u || t[52] !== m ? (de = y?.fields?.map((e) => e && !e.hidden ? /* @__PURE__ */ Q(qr, {
|
|
3620
3658
|
field: e,
|
|
@@ -3623,7 +3661,7 @@ var Ma = "_1f3ynb50", Na = "_1f3ynb54", Pa = "_1f3ynb55", Fa = (e, t) => e?.sect
|
|
|
3623
3661
|
settings: { enableVerification: h }
|
|
3624
3662
|
}, e?.key) : null), t[49] = y?.fields, t[50] = h, t[51] = u, t[52] = m, t[53] = de) : de = t[53];
|
|
3625
3663
|
let fe;
|
|
3626
|
-
t[54] !== d || t[55] !== S ? (fe = !d && S && /* @__PURE__ */ Q(
|
|
3664
|
+
t[54] !== d || t[55] !== S ? (fe = !d && S && /* @__PURE__ */ Q(Ri, {}), t[54] = d, t[55] = S, t[56] = fe) : fe = t[56];
|
|
3627
3665
|
let pe;
|
|
3628
3666
|
t[57] !== W || t[58] !== r || t[59] !== s || t[60] !== S ? (pe = r === 0 ? /* @__PURE__ */ Q("div", {}) : /* @__PURE__ */ Q(o, {
|
|
3629
3667
|
type: "button",
|
|
@@ -3645,12 +3683,12 @@ var Ma = "_1f3ynb50", Na = "_1f3ynb54", Pa = "_1f3ynb55", Fa = (e, t) => e?.sect
|
|
|
3645
3683
|
}), t[62] = me, t[63] = he, t[64] = ge, t[65] = _e) : _e = t[65];
|
|
3646
3684
|
let ve;
|
|
3647
3685
|
t[66] !== pe || t[67] !== _e ? (ve = /* @__PURE__ */ $("div", {
|
|
3648
|
-
className:
|
|
3686
|
+
className: Fa,
|
|
3649
3687
|
children: [pe, _e]
|
|
3650
3688
|
}), t[66] = pe, t[67] = _e, t[68] = ve) : ve = t[68];
|
|
3651
3689
|
let ye;
|
|
3652
3690
|
t[69] !== de || t[70] !== fe || t[71] !== ve ? (ye = /* @__PURE__ */ $("div", {
|
|
3653
|
-
className:
|
|
3691
|
+
className: Ia,
|
|
3654
3692
|
children: [
|
|
3655
3693
|
de,
|
|
3656
3694
|
fe,
|
|
@@ -3674,71 +3712,72 @@ var Ma = "_1f3ynb50", Na = "_1f3ynb54", Pa = "_1f3ynb55", Fa = (e, t) => e?.sect
|
|
|
3674
3712
|
children: [ae, be]
|
|
3675
3713
|
}), t[78] = E, t[79] = ae, t[80] = be, t[81] = xe) : xe = t[81], xe;
|
|
3676
3714
|
};
|
|
3677
|
-
function
|
|
3715
|
+
function Ba(e) {
|
|
3678
3716
|
return Math.max(e - 1, 0);
|
|
3679
3717
|
}
|
|
3680
|
-
function
|
|
3718
|
+
function Va(e) {
|
|
3681
3719
|
return e + 1;
|
|
3682
3720
|
}
|
|
3683
|
-
function
|
|
3721
|
+
function Ha(e) {
|
|
3684
3722
|
return e.key;
|
|
3685
3723
|
}
|
|
3686
3724
|
//#endregion
|
|
3687
3725
|
//#region ../../libraries/react-collection/dist/lib/FormBuilder/index.js
|
|
3688
|
-
var
|
|
3726
|
+
var Ua = (e) => {
|
|
3689
3727
|
let t = R(12), n, r, i;
|
|
3690
3728
|
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);
|
|
3691
3729
|
let a = i === void 0 ? !0 : i, o;
|
|
3692
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ Q(
|
|
3730
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ Q(Ei, {}), t[4] = o) : o = t[4];
|
|
3693
3731
|
let s;
|
|
3694
3732
|
t[5] === n ? s = t[6] : (s = /* @__PURE__ */ Q(V, {
|
|
3695
3733
|
fallback: o,
|
|
3696
|
-
children: Q(n === "single-field" ?
|
|
3734
|
+
children: Q(n === "single-field" ? wa : n === "steps" ? Ra : n === "steps-2" ? ja : pa, {})
|
|
3697
3735
|
}), t[5] = n, t[6] = s);
|
|
3698
3736
|
let c;
|
|
3699
|
-
return t[7] !== a || t[8] !== n || t[9] !== r || t[10] !== s ? (c = /* @__PURE__ */ Q(
|
|
3737
|
+
return t[7] !== a || t[8] !== n || t[9] !== r || t[10] !== s ? (c = /* @__PURE__ */ Q(pi, {
|
|
3700
3738
|
...r,
|
|
3701
3739
|
enableVerification: a,
|
|
3702
3740
|
variant: n,
|
|
3703
3741
|
children: s
|
|
3704
3742
|
}), t[7] = a, t[8] = n, t[9] = r, t[10] = s, t[11] = c) : c = t[11], c;
|
|
3705
|
-
},
|
|
3743
|
+
}, Wa = (e) => {
|
|
3706
3744
|
let t = R(17), n, r, i, a;
|
|
3707
3745
|
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);
|
|
3708
3746
|
let o = a === void 0 ? !0 : a, { collection: s } = g(), [c, l] = Y(!0), [u, d] = Y(null), f;
|
|
3709
3747
|
t[5] !== s || t[6] !== n || t[7] !== r || t[8] !== i ? (f = () => {
|
|
3710
3748
|
n ? s?.getCollectionByIDExpanded(n, { headers: { "Levo-Workspace": i.workspace_id } }).then((e) => {
|
|
3711
3749
|
let t = e?.content?.data;
|
|
3712
|
-
if (t)
|
|
3750
|
+
if (t) d(ri(t, r));
|
|
3713
3751
|
else throw Error(`API response invalid: ${t}`);
|
|
3714
|
-
}).catch(
|
|
3752
|
+
}).catch(Ga).finally(() => {
|
|
3715
3753
|
l(!1);
|
|
3716
3754
|
}) : (console.error("[CollectionFormBuilder] Collection ID or Workspace ID is missing."), l(!1));
|
|
3717
3755
|
}, t[5] = s, t[6] = n, t[7] = r, t[8] = i, t[9] = f) : f = t[9];
|
|
3718
3756
|
let p;
|
|
3719
3757
|
t[10] === n ? p = t[11] : (p = [n], t[10] = n, t[11] = p), K(f, p);
|
|
3720
3758
|
let m;
|
|
3721
|
-
return t[12] !== o || t[13] !== c || t[14] !== i || t[15] !== u ? (m = c ? /* @__PURE__ */ Q(
|
|
3759
|
+
return t[12] !== o || t[13] !== c || t[14] !== i || t[15] !== u ? (m = c ? /* @__PURE__ */ Q(Ei, {}) : u ? /* @__PURE__ */ Q(Ua, {
|
|
3722
3760
|
schema: u,
|
|
3723
3761
|
enableVerification: o,
|
|
3724
3762
|
...i
|
|
3725
3763
|
}) : null, t[12] = o, t[13] = c, t[14] = i, t[15] = u, t[16] = m) : m = t[16], m;
|
|
3726
3764
|
};
|
|
3727
|
-
function
|
|
3765
|
+
function Ga(e) {
|
|
3728
3766
|
console.error("Error fetching schema", e);
|
|
3729
3767
|
}
|
|
3730
3768
|
//#endregion
|
|
3731
3769
|
//#region ../../libraries/react-collection/dist/lib/CollectionFormRenderer/index.js
|
|
3732
|
-
var
|
|
3733
|
-
let
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
},
|
|
3770
|
+
var Ka = (e) => {
|
|
3771
|
+
let t = R(14), n, r, i, a, o;
|
|
3772
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5]) : ({hiddenFields: r, fetchedSchema: n, isLoading: i, enableVerification: o, ...a} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o);
|
|
3773
|
+
let s = o === void 0 ? !0 : o, c;
|
|
3774
|
+
t[6] !== n || t[7] !== r ? (c = n ? ri(n, r) : null, t[6] = n, t[7] = r, t[8] = c) : c = t[8];
|
|
3775
|
+
let l = c, u;
|
|
3776
|
+
return t[9] !== s || t[10] !== i || t[11] !== a || t[12] !== l ? (u = i ? /* @__PURE__ */ Q(Ei, {}) : l ? /* @__PURE__ */ Q(Ua, {
|
|
3777
|
+
schema: l,
|
|
3778
|
+
enableVerification: s,
|
|
3779
|
+
...a
|
|
3780
|
+
}) : null, t[9] = s, t[10] = i, t[11] = a, t[12] = l, t[13] = u) : u = t[13], u;
|
|
3781
|
+
}, qa = /* @__PURE__ */ e({ CollectionFormBuilder: () => Wa });
|
|
3743
3782
|
//#endregion
|
|
3744
|
-
export {
|
|
3783
|
+
export { ui as i, Ka as n, Wa as r, qa as t };
|
|
@@ -14,7 +14,7 @@ var v = /* @__PURE__ */ e({
|
|
|
14
14
|
}), y = async (e, t) => {
|
|
15
15
|
let n = {};
|
|
16
16
|
return t?.site_id && (n.site_id = t.site_id), t?.locale && (n.locale = t.locale), t?.country && (n.country = t.country), (await e.url("/v1/studio/popup/list-active").query(n).get().json())?.content?.data ?? [];
|
|
17
|
-
}, b = f(() => import("./PopupRenderer-D66Gx63H-
|
|
17
|
+
}, b = f(() => import("./PopupRenderer-D66Gx63H-DpcNpbtU.js").then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), x = (e) => {
|
|
18
18
|
let n = u(9), { siteId: r, pageId: i } = e, { fetch: a, logger: s } = t(), [c, l] = h(null), f = m(!1), v, x;
|
|
19
19
|
if (n[0] !== a || n[1] !== s || n[2] !== r ? (v = () => {
|
|
20
20
|
if (f.current) return;
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as e, n as t } from "./dist-
|
|
2
|
+
import { i as e, n as t } from "./dist-IxiGbP-3.js";
|
|
3
3
|
import { i as n, n as r, r as i } from "./LevoProvider-BkbKrvrI.js";
|
|
4
4
|
import { t as a } from "./inlineCollectionTheme-CWcMCUti.js";
|
|
5
5
|
import { t as o } from "./inlineBaseTheme-BB9e6h5f.js";
|
|
@@ -1817,7 +1817,7 @@ var Ln = "levo-made-with", Rn = `.${Ln}{opacity:.2;transition:opacity 150ms,tran
|
|
|
1817
1817
|
if (typeof document > "u") return null;
|
|
1818
1818
|
let e = document.querySelectorAll(`meta[name="${Bn}"]`);
|
|
1819
1819
|
return e[e.length - 1]?.getAttribute("content")?.trim() || null;
|
|
1820
|
-
}, Hn = C(() => import("./dist-
|
|
1820
|
+
}, Hn = C(() => import("./dist-_lwl0kZw.js").then((e) => e.n).then((e) => ({ default: e.PopupLoader }))), Un = ({ siteId: e, pageId: t }) => {
|
|
1821
1821
|
let n = J(), r = i();
|
|
1822
1822
|
return !n || !r ? null : /* @__PURE__ */ N(x, {
|
|
1823
1823
|
fallback: null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levo-so/site-runtime",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"description": "Runtime for Levo Studio v3 sites — the editor preview inspector, page head metadata, and the Levo data client.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"@assistant-ui/store": "0.3.13",
|
|
83
83
|
"@assistant-ui/tap": "0.9.17",
|
|
84
84
|
"remark-gfm": "4.0.1",
|
|
85
|
-
"@levo-so/core": "0.3.
|
|
86
|
-
"@levo-so/insights": "0.3.
|
|
85
|
+
"@levo-so/core": "0.3.18",
|
|
86
|
+
"@levo-so/insights": "0.3.18",
|
|
87
87
|
"@stripe/react-stripe-js": "3.1.1",
|
|
88
88
|
"@stripe/stripe-js": "5.5.0",
|
|
89
89
|
"react-razorpay": "3.0.1"
|
package/popups.js
CHANGED