@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.
Files changed (52) hide show
  1. package/{BillingStep-DjNmSVkY.js → BillingStep-mq3o5Hrf.js} +1 -1
  2. package/Button-DIDhszPV.js +505 -0
  3. package/{CollectionField-DrJuHNsg.js → CollectionField-CD6ok1A3.js} +29 -77
  4. package/{DateTimeWidget-CzBq92zC.js → DateTimeWidget-DHUmirf1.js} +9 -9
  5. package/{EntryCard-C2KA5HMX.js → EntryCard-DiMic9hv.js} +4 -4
  6. package/{KBChatWidget-CPrg_etS.js → KBChatWidget-hquzCtvm.js} +388 -360
  7. package/{LoginCard-S_2jls6v.js → LoginCard-Cs9X8LC8.js} +3 -3
  8. package/{LoginForm-DeYsk4kd.js → LoginForm-CLUpD3qG.js} +1 -1
  9. package/{LoginModal-BbDfB4S9.js → LoginModal-D9jhZlJr.js} +4 -4
  10. package/{MessageCard-x6jPClGi.js → MessageCard-CJltLT2a.js} +2 -2
  11. package/{MessageFooter-CHuPnL_D.js → MessageFooter-CrhrI-su.js} +2 -2
  12. package/{ModalManager-DQVNPEuG.js → ModalManager-7Nhr8gTs.js} +1 -1
  13. package/{PendingApprovalCard-C06B_Tg-.js → PendingApprovalCard-wW8Ko-w8.js} +3 -3
  14. package/{PhoneWidget-DdX8_-2v.js → PhoneWidget-BQEfbyV4.js} +5 -5
  15. package/{PopupRenderer-Bncp54gB-DysCmUdR.js → PopupRenderer-Bncp54gB-CQloeJYR.js} +15 -16
  16. package/{ProfileCard-DGanb4BY.js → ProfileCard-BhnTmQaE.js} +9 -8
  17. package/RichTextWidget-CStx2PMn.js +748 -0
  18. package/{RteThemeProvider-LFGzAYi1.js → RteThemeProvider-DxYOzcck.js} +1 -1
  19. package/Spinner-HCqR1eGW.js +7 -0
  20. package/{StripePaymentModal-BsYNQ4MB.js → StripePaymentModal-Cw-AlxTS.js} +1 -1
  21. package/{VerifyButton-6BIXAEGp.js → VerifyButton-kdxRhJWI.js} +1 -1
  22. package/{bookingCard-CUv7WgqT.js → bookingCard-BSRCH57N.js} +74 -73
  23. package/cn-BL52QQS4.js +6 -0
  24. package/{dialog-LRLdr3kq.js → dialog-RrTP-MGm.js} +1 -1
  25. package/{dist-D-y51gmU.js → dist-D3lGqLBP.js} +1106 -1264
  26. package/index.d.ts +0 -2
  27. package/index.js +1969 -1519
  28. package/kbChat-g2bupQqp.js +163 -0
  29. package/{nodeAlignment-BC_Uferw.js → nodeAlignment-DS9_DLGB.js} +31 -23
  30. package/package.json +6 -9
  31. package/pillChrome-Cx8qlbsn.js +16 -0
  32. package/studio.css +1 -1
  33. package/{useLogin-B2HHZxTi.js → useLogin-BhysESLW.js} +1 -1
  34. package/Button-Uwxgkriw.js +0 -1657
  35. package/RichTextWidget-BfZ3sCcx.js +0 -113
  36. package/Toolbar-6IXR9qAh.js +0 -645
  37. package/collection.d.ts +0 -500
  38. package/collection.js +0 -30
  39. package/inlineRteTheme-abXxag3B.js +0 -9
  40. package/kbChat-DCrdcXir.js +0 -166
  41. package/pillChrome-CQoJfFk3.js +0 -16
  42. package/utils-NDllPDUz.js +0 -5
  43. /package/{AuthProvider-C6bvedwF.js → AuthProvider-CFQqiIf1.js} +0 -0
  44. /package/{Beams-DboMUgCv.js → Beams-DVEhileN.js} +0 -0
  45. /package/{CollectionInput-CG-Pu_51.js → CollectionInput-DyNbxIZ8.js} +0 -0
  46. /package/{Dots-a8xSboDv.js → Dots-vp0H1Md3.js} +0 -0
  47. /package/{Gradient-NacpoDCM.js → Gradient-_5G8Qm5s.js} +0 -0
  48. /package/{Grid-BJQvxnks.js → Grid-D694XUrO.js} +0 -0
  49. /package/{Popover-C_IQMM8H.js → Popover-V2O1gz6N.js} +0 -0
  50. /package/{Tooltip-DreKXbTO.js → Tooltip-DTnCNEcE.js} +0 -0
  51. /package/{Waves-DUuT_IFr.js → Waves-DeNoq6Bo.js} +0 -0
  52. /package/{card-D5fPArfa.js → card-Cb4m0p4i.js} +0 -0
@@ -1,1657 +0,0 @@
1
- "use client";
2
- import "./Dialog-IrII0ugb.js";
3
- import { a as e, c as t, h as n, l as r, n as i, r as a, t as o } from "./PopupRenderer-Bncp54gB-DysCmUdR.js";
4
- import { n as s } from "./AuthProvider-C6bvedwF.js";
5
- import { n as c } from "./ModalManager-DQVNPEuG.js";
6
- import { c as l } from "react/compiler-runtime";
7
- import { $isIdentityContextReady as u } from "@levo-so/insights/stores";
8
- import { cn as d, useLevo as f } from "@levo-so/react";
9
- import * as p from "react";
10
- import { Suspense as m, createContext as h, forwardRef as g, lazy as _, memo as v, useContext as ee, useEffect as y, useMemo as b, useRef as x, useState as S } from "react";
11
- import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
12
- import "clsx";
13
- import "@tabler/icons-react";
14
- import { useStore as E } from "@nanostores/react";
15
- import { animate as te, scroll as ne } from "motion/react";
16
- import re from "html-react-parser";
17
- import { LoaderCircle as ie } from "lucide-react";
18
- import * as ae from "motion/react-m";
19
- import oe from "next/link";
20
- import se from "isomorphic-dompurify";
21
- //#region ../../libraries/popups/dist/index.js
22
- var ce = async (e, t) => {
23
- let n = {};
24
- 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 ?? [];
25
- }, le = _(() => import("./PopupRenderer-Bncp54gB-DysCmUdR.js").then((e) => e.o).then((e) => e.t).then((e) => ({ default: e.PopupRenderer }))), ue = (e) => {
26
- let t = l(9), { siteId: n, pageId: r } = e, { fetch: a, logger: o } = f(), [s, c] = S(null), d = x(!1), p, h;
27
- if (t[0] !== a || t[1] !== o || t[2] !== n ? (p = () => {
28
- if (d.current) return;
29
- let e = () => {
30
- d.current || (d.current = !0, ce(a, n ? { site_id: n } : void 0).then((e) => {
31
- i(e), c(e);
32
- }).catch((e) => {
33
- o?.error("Failed to fetch popups", { exception: e }), i([]), c([]);
34
- }).finally(de));
35
- };
36
- if (u.get()) {
37
- e();
38
- return;
39
- }
40
- let t = u.listen((n) => {
41
- n && (t(), e());
42
- });
43
- return () => t();
44
- }, h = [
45
- a,
46
- o,
47
- n
48
- ], t[0] = a, t[1] = o, t[2] = n, t[3] = p, t[4] = h) : (p = t[3], h = t[4]), y(p, h), !s || s.length === 0) return null;
49
- let g;
50
- t[5] === Symbol.for("react.memo_cache_sentinel") ? (g = {
51
- position: "relative",
52
- zIndex: 99999
53
- }, t[5] = g) : g = t[5];
54
- let _;
55
- return t[6] !== r || t[7] !== s ? (_ = /* @__PURE__ */ w("div", {
56
- style: g,
57
- children: /* @__PURE__ */ w(m, { children: /* @__PURE__ */ w(le, {
58
- popups: s,
59
- pageId: r
60
- }) })
61
- }), t[6] = r, t[7] = s, t[8] = _) : _ = t[8], _;
62
- };
63
- function de() {
64
- return a(!1);
65
- }
66
- var D = () => {
67
- let e = l(3), n = E(t), i = E(r), a = fe, o = pe, s;
68
- return e[0] !== i || e[1] !== n ? (s = {
69
- popups: n,
70
- isLoading: i,
71
- openPopup: a,
72
- closePopup: o
73
- }, e[0] = i, e[1] = n, e[2] = s) : s = e[2], s;
74
- };
75
- function fe(n) {
76
- let r = t.get().find((e) => e.id === n);
77
- r && e(r, {
78
- force: !0,
79
- trigger_type: "manual"
80
- });
81
- }
82
- function pe() {
83
- let e = n.get().active_popup_id;
84
- e && o(e);
85
- }
86
- //#endregion
87
- //#region src/utils/getKeysWithValue.ts
88
- function me(e, t) {
89
- let n = (e, r) => {
90
- let i = {};
91
- if (typeof e != "object" || !e) return i;
92
- let a = Array.isArray(e) ? e[0] : e;
93
- if (!a || typeof a != "object") return i;
94
- for (let e of Object.keys(a)) {
95
- let o = a[e];
96
- if (i[e] = o, typeof o != "object" || !o || t !== void 0 && r >= t) continue;
97
- let s = Array.isArray(o) ? o[0] : o;
98
- if (!s || typeof s != "object") continue;
99
- let c = n(s, r + 1);
100
- for (let t of Object.keys(c)) i[`${e}.${t}`] = c[t];
101
- }
102
- return i;
103
- };
104
- return n(e, 0);
105
- }
106
- //#endregion
107
- //#region src/utils/variableExpression.ts
108
- var O = (e, t) => {
109
- let n = [], r = "", i = !1, a = !1;
110
- for (let o of e) {
111
- if (a) {
112
- r += o, a = !1;
113
- continue;
114
- }
115
- if (o === "\\") {
116
- a = !0, r += o;
117
- continue;
118
- }
119
- if (o === "\"") {
120
- i = !i, r += o;
121
- continue;
122
- }
123
- if (!i && o === t) {
124
- n.push(r), r = "";
125
- continue;
126
- }
127
- r += o;
128
- }
129
- return n.push(r), n;
130
- }, he = (e) => {
131
- let t = e.trim();
132
- return t.startsWith("\"") && t.endsWith("\"") ? t.slice(1, -1).replace(/\\"/g, "\"").replace(/\\\\/g, "\\") : t === "true" ? !0 : t === "false" ? !1 : t === "null" ? null : /^-?\d+(\.\d+)?$/.test(t) ? Number(t) : t;
133
- }, ge = (e) => e === null ? "null" : typeof e == "number" || typeof e == "boolean" ? String(e) : /^[a-zA-Z_][\w-]*$/.test(e) ? e : `"${e.replace(/\\/g, "\\\\").replace(/"/g, "\\\"")}"`, _e = (e) => {
134
- let t = O(e, ":").map((e) => e.trim());
135
- return {
136
- name: t[0] ?? "",
137
- args: t.slice(1).map(he)
138
- };
139
- }, ve = (e) => {
140
- let t = O(e, "|").map((e) => e.trim());
141
- return {
142
- path: t[0] ?? "",
143
- transforms: t.slice(1).filter(Boolean).map(_e)
144
- };
145
- }, ye = (e) => {
146
- let t = [e.path];
147
- for (let n of e.transforms) t.push([n.name, ...n.args.map(ge)].join(":"));
148
- return t.join(" | ");
149
- }, k = (e) => e == null || e === "", A = [
150
- "date",
151
- "time",
152
- "datetime",
153
- "relative"
154
- ], j = {
155
- date: [
156
- "full",
157
- "day",
158
- "month",
159
- "year",
160
- "day-month",
161
- "month-year"
162
- ],
163
- time: ["clock"],
164
- datetime: ["full", "compact"],
165
- relative: ["auto"]
166
- }, M = [
167
- "S",
168
- "M",
169
- "L",
170
- "XL"
171
- ], be = [
172
- {
173
- value: "auto",
174
- label: "Auto"
175
- },
176
- {
177
- value: "en-US",
178
- label: "English (US)"
179
- },
180
- {
181
- value: "en-GB",
182
- label: "English (UK)"
183
- },
184
- {
185
- value: "fr-FR",
186
- label: "French"
187
- },
188
- {
189
- value: "de-DE",
190
- label: "German"
191
- },
192
- {
193
- value: "es-ES",
194
- label: "Spanish"
195
- },
196
- {
197
- value: "hi-IN",
198
- label: "Hindi"
199
- },
200
- {
201
- value: "ja-JP",
202
- label: "Japanese"
203
- },
204
- {
205
- value: "zh-CN",
206
- label: "Chinese"
207
- }
208
- ], N = [
209
- "auto",
210
- "12",
211
- "24"
212
- ], xe = {
213
- display: "date",
214
- format: "full",
215
- style: "M",
216
- locale: "auto",
217
- hour12: "auto"
218
- }, Se = (e) => typeof e == "string" && A.includes(e), Ce = (e) => typeof e == "string" && M.includes(e), we = (e) => typeof e == "string" && N.includes(e), P = (e) => {
219
- let [t, n, r, i, a] = e;
220
- if (!Se(t)) return null;
221
- let o = j[t];
222
- return {
223
- display: t,
224
- format: typeof n == "string" && o.includes(n) ? n : o[0] ?? "full",
225
- style: Ce(r) ? r : "M",
226
- locale: typeof i == "string" && i ? i : "auto",
227
- hour12: we(a) ? a : "auto"
228
- };
229
- }, Te = (e) => {
230
- let t = [
231
- e.display,
232
- e.format,
233
- e.style,
234
- e.locale,
235
- e.hour12
236
- ];
237
- for (; t.length > 1 && t[t.length - 1] === "auto";) t.pop();
238
- return t;
239
- }, Ee = (e) => {
240
- if (!(!e || e === "auto")) try {
241
- return Intl.DateTimeFormat.supportedLocalesOf([e]).length ? e : void 0;
242
- } catch {
243
- return;
244
- }
245
- }, De = (e) => e === "12" ? !0 : e === "24" ? !1 : void 0, Oe = (e, t) => {
246
- if (e === "relative") return [
247
- "S",
248
- "M",
249
- "L"
250
- ];
251
- if (e === "time") return [
252
- "M",
253
- "L",
254
- "XL"
255
- ];
256
- if (e === "datetime") return t === "compact" ? [
257
- "M",
258
- "L",
259
- "XL"
260
- ] : [
261
- "S",
262
- "M",
263
- "L",
264
- "XL"
265
- ];
266
- switch (t) {
267
- case "full": return [
268
- "S",
269
- "M",
270
- "L",
271
- "XL"
272
- ];
273
- case "day":
274
- case "month":
275
- case "day-month":
276
- case "month-year": return [
277
- "S",
278
- "M",
279
- "L"
280
- ];
281
- case "year": return ["S", "M"];
282
- default: return [
283
- "S",
284
- "M",
285
- "L",
286
- "XL"
287
- ];
288
- }
289
- }, ke = (e, t) => {
290
- if (t.includes(e)) return e;
291
- let n = M.indexOf(e), r = t[0] ?? "M", i = Math.abs(M.indexOf(r) - n);
292
- for (let e of t) {
293
- let t = Math.abs(M.indexOf(e) - n);
294
- t < i && (r = e, i = t);
295
- }
296
- return r;
297
- }, Ae = {
298
- S: "narrow",
299
- M: "short",
300
- L: "long",
301
- XL: "long"
302
- }, F = {
303
- S: "short",
304
- M: "medium",
305
- L: "long",
306
- XL: "full"
307
- }, je = (e, t) => {
308
- let n = Ee(t.locale), r = (t) => new Intl.DateTimeFormat(n, t).format(e);
309
- if (t.display === "relative") {
310
- let r = new Intl.RelativeTimeFormat(n, {
311
- numeric: "auto",
312
- style: t.style === "S" ? "narrow" : t.style === "M" ? "short" : "long"
313
- }), i = e.getTime() - Date.now(), a = Math.abs(i), o = 6e4, s = 60 * o, c = 24 * s;
314
- 7 * c, 30 * c;
315
- let l = [
316
- [365 * c, "year"],
317
- [2592e6, "month"],
318
- [6048e5, "week"],
319
- [c, "day"],
320
- [s, "hour"],
321
- [o, "minute"]
322
- ];
323
- for (let [e, t] of l) if (a >= e) return r.format(Math.round(i / e), t);
324
- return r.format(Math.round(i / 1e3), "second");
325
- }
326
- let i = De(t.hour12);
327
- if (t.display === "time") return r({
328
- hour: "numeric",
329
- minute: "2-digit",
330
- second: t.style === "L" || t.style === "XL" ? "2-digit" : void 0,
331
- timeZoneName: t.style === "XL" ? "short" : void 0,
332
- hour12: i
333
- });
334
- if (t.display === "datetime") return r({
335
- dateStyle: t.format === "compact" ? "medium" : F[t.style],
336
- timeStyle: t.style === "S" || t.style === "M" ? "short" : t.style === "L" ? "medium" : "full",
337
- hour12: i
338
- });
339
- switch (t.format) {
340
- case "full": return r({ dateStyle: F[t.style] });
341
- case "day": return r({ weekday: Ae[t.style] });
342
- case "month": return t.style === "S" ? r({ month: "numeric" }) : r({ month: t.style === "M" ? "short" : "long" });
343
- case "year": return r({ year: t.style === "S" ? "2-digit" : "numeric" });
344
- case "day-month": return t.style === "S" ? r({
345
- day: "numeric",
346
- month: "numeric"
347
- }) : r({
348
- day: "numeric",
349
- month: t.style === "M" ? "short" : "long"
350
- });
351
- case "month-year": return t.style === "S" ? r({
352
- month: "numeric",
353
- year: "2-digit"
354
- }) : r({
355
- month: t.style === "M" ? "short" : "long",
356
- year: "numeric"
357
- });
358
- default: return r({ dateStyle: "medium" });
359
- }
360
- }, Me = (e, t) => {
361
- let n = [
362
- "January",
363
- "February",
364
- "March",
365
- "April",
366
- "May",
367
- "June",
368
- "July",
369
- "August",
370
- "September",
371
- "October",
372
- "November",
373
- "December"
374
- ], r = n.map((e) => e.slice(0, 3)), i = (e, t = 2) => String(e).padStart(t, "0"), a = e.getHours() % 12 || 12, o = e.getHours() >= 12 ? "pm" : "am", s = {
375
- YYYY: String(e.getFullYear()),
376
- MMMM: n[e.getMonth()] ?? "",
377
- MMM: r[e.getMonth()] ?? "",
378
- MM: i(e.getMonth() + 1),
379
- DD: i(e.getDate()),
380
- D: String(e.getDate()),
381
- HH: i(e.getHours()),
382
- hh: i(a),
383
- h: String(a),
384
- mm: i(e.getMinutes()),
385
- a: o
386
- };
387
- return t.replace(/YYYY|MMMM|MMM|MM|DD|D|HH|hh|h|mm|\ba\b/g, (e) => s[e] ?? e);
388
- }, Ne = (e, t) => {
389
- if (k(e)) return "";
390
- let n = new Date(e);
391
- if (Number.isNaN(n.getTime())) return String(e);
392
- let r = P(t);
393
- return r ? je(n, r) : Me(n, typeof t[0] == "string" ? t[0] : "MMM D, YYYY");
394
- }, I = /* @__PURE__ */ new Map(), Pe = (e) => {
395
- let t = I.get(e);
396
- if (t) return t;
397
- try {
398
- return t = new Intl.NumberFormat(void 0, {
399
- style: "currency",
400
- currency: e
401
- }), I.set(e, t), t;
402
- } catch {
403
- return null;
404
- }
405
- }, Fe = (e, t = "USD") => {
406
- let n = Number(e);
407
- if (Number.isNaN(n)) return String(e ?? "");
408
- let r = Pe(t);
409
- return r ? r.format(n) : `${t} ${n.toFixed(2)}`;
410
- }, Ie = (e, t = 0) => {
411
- let n = Number(e);
412
- return Number.isNaN(n) ? String(e ?? "") : n.toLocaleString(void 0, {
413
- minimumFractionDigits: Number(t),
414
- maximumFractionDigits: Number(t)
415
- });
416
- }, Le = (e) => e.replace(/\w\S*/g, (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()), L = {
417
- default: {
418
- label: "Fallback",
419
- apply: (e, [t]) => k(e) ? t : e
420
- },
421
- prefix: {
422
- label: "Prefix",
423
- apply: (e, [t]) => k(e) ? e : `${t}${e}`
424
- },
425
- suffix: {
426
- label: "Suffix",
427
- apply: (e, [t]) => k(e) ? e : `${e}${t}`
428
- },
429
- upper: {
430
- label: "Uppercase",
431
- apply: (e) => typeof e == "string" ? e.toUpperCase() : e
432
- },
433
- lower: {
434
- label: "Lowercase",
435
- apply: (e) => typeof e == "string" ? e.toLowerCase() : e
436
- },
437
- title: {
438
- label: "Title case",
439
- apply: (e) => typeof e == "string" ? Le(e) : e
440
- },
441
- date: {
442
- label: "Date",
443
- apply: (e, t) => Ne(e, t)
444
- },
445
- number: {
446
- label: "Number",
447
- apply: (e, [t]) => Ie(e, Number(t ?? 0))
448
- },
449
- currency: {
450
- label: "Currency",
451
- apply: (e, [t]) => Fe(e, t ?? "USD")
452
- },
453
- text: {
454
- label: "Static text",
455
- apply: (e, [t]) => t
456
- }
457
- }, R = (e, t) => {
458
- if (e === t) return !0;
459
- let n = typeof e == "string" ? Number(e) : e, r = typeof t == "string" ? Number(t) : t;
460
- return typeof n == "number" && typeof r == "number" && !Number.isNaN(n) && !Number.isNaN(r) ? n === r : e == t;
461
- }, Re = (e, t) => {
462
- let [n, r] = t;
463
- switch (n) {
464
- case "truthy": return !!e;
465
- case "falsy": return !e;
466
- case "eq": return R(e, r);
467
- case "neq": return !R(e, r);
468
- case "gt": return Number(e) > Number(r);
469
- case "gte": return Number(e) >= Number(r);
470
- case "lt": return Number(e) < Number(r);
471
- case "lte": return Number(e) <= Number(r);
472
- case "contains": return Array.isArray(e) ? e.some((e) => R(e, r)) : typeof e == "string" ? e.includes(String(r)) : !1;
473
- default: return !0;
474
- }
475
- }, ze = (e, t) => {
476
- let n = Object.hasOwn(t, e.path), r = t[e.path], i = e.transforms.find((e) => e.name === "if"), a = e.transforms.find((e) => e.name === "text"), o = i ? !Re(r, i.args) : !1;
477
- if (o) {
478
- let e = a?.args[1];
479
- if (e === void 0) return {
480
- output: "",
481
- rawValue: r,
482
- pathExists: n,
483
- conditionFailed: !0
484
- };
485
- if (e !== null) return {
486
- output: String(e),
487
- rawValue: r,
488
- pathExists: n,
489
- conditionFailed: !0
490
- };
491
- }
492
- let s = r;
493
- if (!o && a) {
494
- let e = a.args[0];
495
- e != null && (s = e);
496
- }
497
- for (let t of e.transforms) {
498
- if (t.name === "if" || t.name === "text") continue;
499
- let e = L[t.name];
500
- e && (s = e.apply(s, t.args));
501
- }
502
- let c;
503
- return c = s == null ? "" : Array.isArray(s) ? s.length === 0 ? "" : s.join(", ") : String(s), {
504
- output: c,
505
- rawValue: r,
506
- pathExists: n,
507
- conditionFailed: !1
508
- };
509
- }, Be = /\{([^{}]+)\}/g, Ve = /^\{([^{}]+)\}$/, z = h({
510
- isStudio: !1,
511
- renderMode: "live",
512
- workspace_id: "",
513
- pageSource: []
514
- }), He = ({ children: e, value: t }) => {
515
- let [n, r] = S(t.parsedBlockData);
516
- y(() => {
517
- r((e) => t.parsedBlockData === e ? e : t.parsedBlockData);
518
- }, [t.parsedBlockData]);
519
- let i = b(() => ({
520
- parsedBlockData: n,
521
- setParsedBlockData: r,
522
- blockData: t.blockData,
523
- pageContext: t.pageContext,
524
- pageMeta: t.pageMeta,
525
- blockContext: t.blockContext,
526
- isStudio: t.renderMode?.startsWith("studio.") ?? !1,
527
- renderMode: t.renderMode,
528
- workspace_id: t.workspace_id,
529
- pageSource: t.pageSource,
530
- languageVariants: t.languageVariants
531
- }), [
532
- n,
533
- r,
534
- t.blockData,
535
- t.pageContext,
536
- t.pageMeta,
537
- t.blockContext,
538
- t.renderMode,
539
- t.workspace_id,
540
- t.pageSource,
541
- t.languageVariants
542
- ]);
543
- return /* @__PURE__ */ w(z.Provider, {
544
- value: i,
545
- children: e
546
- });
547
- }, B = () => ee(z), Ue = () => {
548
- let { languageVariants: e } = B();
549
- return { languageVariants: e ?? [] };
550
- }, V = {
551
- opacity: 1,
552
- scale: 1,
553
- rotate: 0,
554
- rotateX: 0,
555
- rotateY: 0,
556
- x: 0,
557
- y: 0,
558
- skewX: 0,
559
- skewY: 0
560
- }, H = {
561
- opacity: 0,
562
- scale: 1,
563
- rotate: 0,
564
- rotateX: 0,
565
- rotateY: 0,
566
- x: 0,
567
- y: 0,
568
- skewX: 0,
569
- skewY: 0
570
- }, We = {
571
- type: "spring",
572
- duration: .5,
573
- delay: 0,
574
- bounce: .25,
575
- ease: "easeOut"
576
- }, Ge = {
577
- once: !0,
578
- amount: "some",
579
- margin: "0px 0px -150px 0px"
580
- }, U = (e, t) => {
581
- if (!(!e || !t)) for (let n of e) {
582
- if (n.key === t) return n;
583
- if (n.fields?.length) {
584
- let e = U(n.fields, t);
585
- if (e) return e;
586
- }
587
- }
588
- }, Ke = (e, t) => {
589
- let n = t.toLowerCase().trim(), r = [], i = (e, t, a) => {
590
- if (t.children?.length) {
591
- for (let n of t.children) i(e, n, [...a, t.label]);
592
- return;
593
- }
594
- let o = `${e} ${a.join(" ")} ${t.label} ${t.preview ?? ""}`.toLowerCase();
595
- (!n || o.includes(n)) && r.push({
596
- group: e,
597
- parent: a.length ? a.join(" › ") : void 0,
598
- item: t
599
- });
600
- };
601
- for (let t of e) for (let e of t.items) i(t.name, e, []);
602
- return r;
603
- }, W = (e, t) => {
604
- if (!(!e || !t)) return t.split(".").reduce((e, t) => {
605
- if (e == null) return;
606
- let n = /^\d+$/.test(t), r = e;
607
- if (n) {
608
- let e = parseInt(t, 10);
609
- return Array.isArray(r) ? r[e] : r?.[e];
610
- }
611
- return r?.[t];
612
- }, e);
613
- }, G = (e) => !!e && typeof e == "object" && "selectedVariants" in e, K = (e) => e?.replaceAll(".", "-").replace(/[^a-zA-Z0-9_-]/g, ""), q = (e) => {
614
- let t = e.split(".");
615
- for (let e = t.length - 2; e >= 1; e--) if (t[e] && /^\d+$/.test(t[e])) {
616
- let n = t[e - 1], r = parseInt(t[e], 10), i = t.slice(e + 1).join("."), a = [];
617
- for (let n = 0; n <= e - 1; n++) {
618
- let e = t[n];
619
- if (/^\d+$/.test(e)) continue;
620
- let r = t[n + 1];
621
- r && /^\d+$/.test(r) ? (a.push(`${e}_levoGroupItem`), n++) : a.push(e);
622
- }
623
- i && a.push(i);
624
- let o = a.join(".");
625
- return {
626
- isGroupItem: !0,
627
- groupKey: n,
628
- itemIndex: r,
629
- childKey: i,
630
- groupItemKey: `${n}_levoGroupItem`,
631
- sharedPath: o
632
- };
633
- }
634
- return { isGroupItem: !1 };
635
- }, J = (e) => {
636
- let t = [];
637
- return G(e) && Object.entries(e.selectedVariants).forEach(([e, n]) => {
638
- typeof n == "string" && t.push(`levo-variant-${e}-${n}`);
639
- }), t;
640
- }, Y = (e, t, n) => b(() => {
641
- let r = J(n), i = `levo-${t}-${K(e)}`, a = q(e);
642
- return a.isGroupItem && a.sharedPath ? [
643
- `levo-${t}-${K(a.sharedPath)}`,
644
- i,
645
- ...r
646
- ].filter(Boolean).join(" ") : [i, ...r].join(" ");
647
- }, [
648
- n?.selectedVariants,
649
- e,
650
- t
651
- ]), X = (e, t, n, r, i, a) => b(() => {
652
- let { className: o, style: s, config: c, styles: l, content: u, ...d } = e;
653
- return {
654
- ...d,
655
- elementKey: t,
656
- config: {
657
- ...n,
658
- ...c
659
- },
660
- styles: {
661
- ...r,
662
- ...l
663
- },
664
- content: u ?? i,
665
- generatedClassName: a,
666
- className: o,
667
- style: s
668
- };
669
- }, [
670
- e,
671
- t,
672
- n,
673
- r,
674
- i,
675
- a
676
- ]), qe = {
677
- id: "7074716021398640563",
678
- workspace_id: "WZZKMUBH",
679
- name: "Booster Applications",
680
- description: "",
681
- key: "booster_application",
682
- icon: null,
683
- title_field: "first_name",
684
- hidden: !1,
685
- readonly: !1,
686
- allow_draft: !1,
687
- settings: { captcha_mode: "invisible" },
688
- module_name: null,
689
- on_submit: [],
690
- on_update: [],
691
- created_at: "2023-06-14T11:55:41.349Z",
692
- updated_at: "2025-09-16T17:51:21.885Z",
693
- email_field: "email",
694
- sections: [{
695
- id: "7074716021801200658",
696
- key: "details",
697
- label: "Details",
698
- helper_text: "",
699
- hidden: !1,
700
- fields: [
701
- {
702
- id: "7074716022323179590",
703
- collection_id: "7074716021398640563",
704
- section_id: "7074716021801200658",
705
- key: "first_name",
706
- kind: "string",
707
- field_interface: "TextWidget",
708
- options: {},
709
- fields: [],
710
- default_value: "",
711
- label: "First Name",
712
- helper_text: "",
713
- hidden: !1,
714
- secret: !1,
715
- editable: !0,
716
- readonly: !1,
717
- sort_order: 1,
718
- required: !0,
719
- unique: !1,
720
- min: "84",
721
- max: null,
722
- formats: [],
723
- values: [],
724
- created_at: "2023-06-14T11:55:41.589Z",
725
- updated_at: "2025-09-16T17:51:21.960Z"
726
- },
727
- {
728
- id: "7074716022490457450",
729
- collection_id: "7074716021398640563",
730
- section_id: "7074716021801200658",
731
- key: "last_name",
732
- kind: "string",
733
- field_interface: "TextWidget",
734
- options: {},
735
- fields: [],
736
- default_value: "",
737
- label: "Last Name",
738
- helper_text: "",
739
- hidden: !1,
740
- secret: !1,
741
- editable: !0,
742
- readonly: !1,
743
- sort_order: 2,
744
- required: !0,
745
- unique: !1,
746
- min: null,
747
- max: null,
748
- formats: [],
749
- values: [],
750
- created_at: "2023-06-14T11:55:41.629Z",
751
- updated_at: "2025-09-16T17:51:21.965Z"
752
- },
753
- {
754
- id: "7074716022655208632",
755
- collection_id: "7074716021398640563",
756
- section_id: "7074716021801200658",
757
- key: "email",
758
- kind: "string",
759
- field_interface: "EmailWidget",
760
- options: {},
761
- fields: [],
762
- default_value: "",
763
- label: "Email",
764
- helper_text: "",
765
- hidden: !1,
766
- secret: !1,
767
- editable: !0,
768
- readonly: !1,
769
- sort_order: 3,
770
- required: !0,
771
- unique: !1,
772
- min: null,
773
- max: null,
774
- formats: [],
775
- values: [],
776
- created_at: "2023-06-14T11:55:41.668Z",
777
- updated_at: "2025-09-16T17:51:21.967Z"
778
- },
779
- {
780
- id: "7078489808175902062",
781
- collection_id: "7074716021398640563",
782
- section_id: "7074716021801200658",
783
- key: "contact_number",
784
- kind: "string",
785
- field_interface: "PhoneWidget",
786
- options: {},
787
- fields: [],
788
- default_value: "",
789
- label: "Contact Number",
790
- helper_text: "",
791
- hidden: !1,
792
- secret: !1,
793
- editable: !0,
794
- readonly: !1,
795
- sort_order: 4,
796
- required: !0,
797
- unique: !1,
798
- min: null,
799
- max: null,
800
- formats: [],
801
- values: [],
802
- created_at: "2023-06-24T21:51:22.250Z",
803
- updated_at: "2025-09-16T17:51:21.969Z"
804
- },
805
- {
806
- id: "7078489808304768107",
807
- collection_id: "7074716021398640563",
808
- section_id: "7074716021801200658",
809
- key: "linkedin_profile",
810
- kind: "string",
811
- field_interface: "URLWidget",
812
- options: {},
813
- fields: [],
814
- default_value: "",
815
- label: "LinkedIn Profile",
816
- helper_text: "",
817
- hidden: !1,
818
- secret: !1,
819
- editable: !0,
820
- readonly: !1,
821
- sort_order: 5,
822
- required: !0,
823
- unique: !1,
824
- min: null,
825
- max: null,
826
- formats: [],
827
- values: [],
828
- created_at: "2023-06-24T21:51:22.280Z",
829
- updated_at: "2025-09-16T17:51:21.975Z"
830
- },
831
- {
832
- id: "7078489808428946711",
833
- collection_id: "7074716021398640563",
834
- section_id: "7074716021801200658",
835
- key: "startup_name",
836
- kind: "string",
837
- field_interface: "TextWidget",
838
- options: {},
839
- fields: [],
840
- default_value: "",
841
- label: "Startup Name",
842
- helper_text: "",
843
- hidden: !1,
844
- secret: !1,
845
- editable: !0,
846
- readonly: !1,
847
- sort_order: 6,
848
- required: !0,
849
- unique: !1,
850
- min: null,
851
- max: null,
852
- formats: [],
853
- values: [],
854
- created_at: "2023-06-24T21:51:22.310Z",
855
- updated_at: "2025-09-16T17:51:21.978Z"
856
- },
857
- {
858
- id: "7078489808479376903",
859
- collection_id: "7074716021398640563",
860
- section_id: "7074716021801200658",
861
- key: "startup_websit",
862
- kind: "string",
863
- field_interface: "URLWidget",
864
- options: {},
865
- fields: [],
866
- default_value: "",
867
- label: "Startup Website",
868
- helper_text: "",
869
- hidden: !1,
870
- secret: !1,
871
- editable: !0,
872
- readonly: !1,
873
- sort_order: 7,
874
- required: !0,
875
- unique: !1,
876
- min: null,
877
- max: null,
878
- formats: [],
879
- values: [],
880
- created_at: "2023-06-24T21:51:22.322Z",
881
- updated_at: "2025-09-16T17:51:21.981Z"
882
- },
883
- {
884
- id: "7078489808598822384",
885
- collection_id: "7074716021398640563",
886
- section_id: "7074716021801200658",
887
- key: "startup_sector",
888
- kind: "string",
889
- field_interface: "DropdownWidget",
890
- options: {
891
- dropDownOptions: [
892
- "Healthtech",
893
- "Fintech",
894
- "Edtech",
895
- "SaaS",
896
- "Deeptech",
897
- "Agritech/Agri-Products",
898
- "Retail",
899
- "Biotechnology",
900
- "DTC",
901
- "Hyperlocal Delivery",
902
- "Sustainability",
903
- "E-Commerce",
904
- "IOT",
905
- "Media and Entertainment",
906
- "Manufacturing and Hardware",
907
- "Other"
908
- ],
909
- custom_input: !0
910
- },
911
- fields: [],
912
- default_value: "",
913
- label: "Startup Sector",
914
- helper_text: "",
915
- hidden: !1,
916
- secret: !1,
917
- editable: !0,
918
- readonly: !1,
919
- sort_order: 8,
920
- required: !0,
921
- unique: !1,
922
- min: null,
923
- max: null,
924
- formats: [],
925
- values: [
926
- "Healthtech",
927
- "Fintech",
928
- "Edtech",
929
- "SaaS",
930
- "Deeptech",
931
- "Agritech/Agri-Products",
932
- "Retail",
933
- "Biotechnology",
934
- "DTC",
935
- "Hyperlocal Delivery",
936
- "Sustainability",
937
- "E-Commerce",
938
- "IOT",
939
- "Media and Entertainment",
940
- "Manufacturing and Hardware",
941
- "Other"
942
- ],
943
- created_at: "2023-06-24T21:51:22.352Z",
944
- updated_at: "2025-09-16T17:51:21.984Z"
945
- },
946
- {
947
- id: "7078489808682240092",
948
- collection_id: "7074716021398640563",
949
- section_id: "7074716021801200658",
950
- key: "startup_stage",
951
- kind: "string",
952
- field_interface: "RadioWidget",
953
- options: { dropDownOptions: [
954
- "Bootstrapped",
955
- "Seed",
956
- "Series A",
957
- "Series B",
958
- "Series C",
959
- "Series D",
960
- "Soonicorn",
961
- "Unicorn"
962
- ] },
963
- fields: [],
964
- default_value: "",
965
- label: "Startup Stage",
966
- helper_text: "",
967
- hidden: !1,
968
- secret: !1,
969
- editable: !0,
970
- readonly: !1,
971
- sort_order: 9,
972
- required: !0,
973
- unique: !1,
974
- min: null,
975
- max: null,
976
- formats: [],
977
- values: [
978
- "Bootstrapped",
979
- "Seed",
980
- "Series A",
981
- "Series B",
982
- "Series C",
983
- "Series D",
984
- "Soonicorn",
985
- "Unicorn"
986
- ],
987
- created_at: "2023-06-24T21:51:22.370Z",
988
- updated_at: "2025-09-16T17:51:21.991Z"
989
- },
990
- {
991
- id: "7078489808829619910",
992
- collection_id: "7074716021398640563",
993
- section_id: "7074716021801200658",
994
- key: "are_you_part_of_an_incubator",
995
- kind: "string",
996
- field_interface: "RadioWidget",
997
- options: { dropDownOptions: ["Yes", "No"] },
998
- fields: [],
999
- default_value: "",
1000
- label: "Are you part of an Incubator?",
1001
- helper_text: "",
1002
- hidden: !1,
1003
- secret: !1,
1004
- editable: !0,
1005
- readonly: !1,
1006
- sort_order: 10,
1007
- required: !0,
1008
- unique: !1,
1009
- min: null,
1010
- max: null,
1011
- formats: [],
1012
- values: ["Yes", "No"],
1013
- created_at: "2023-06-24T21:51:22.406Z",
1014
- updated_at: "2025-09-16T17:51:21.994Z"
1015
- },
1016
- {
1017
- id: "7074716022733682106",
1018
- collection_id: "7074716021398640563",
1019
- section_id: "7074716021801200658",
1020
- key: "booster_applied",
1021
- kind: "string",
1022
- field_interface: "TextWidget",
1023
- options: {},
1024
- fields: [],
1025
- default_value: "",
1026
- label: "Booster Applied",
1027
- helper_text: "",
1028
- hidden: !1,
1029
- secret: !1,
1030
- editable: !0,
1031
- readonly: !1,
1032
- sort_order: 11,
1033
- required: !1,
1034
- unique: !1,
1035
- min: null,
1036
- max: null,
1037
- formats: [],
1038
- values: [],
1039
- created_at: "2023-06-14T11:55:41.687Z",
1040
- updated_at: "2025-09-16T17:51:21.995Z"
1041
- },
1042
- {
1043
- id: "7094939467608024328",
1044
- collection_id: "7074716021398640563",
1045
- section_id: "7074716021801200658",
1046
- key: "apply_instructions",
1047
- kind: "string",
1048
- field_interface: "TextareaWidget",
1049
- options: {},
1050
- fields: [],
1051
- default_value: "",
1052
- label: "Apply Instructions",
1053
- helper_text: "",
1054
- hidden: !1,
1055
- secret: !1,
1056
- editable: !0,
1057
- readonly: !1,
1058
- sort_order: 12,
1059
- required: !1,
1060
- unique: !1,
1061
- min: null,
1062
- max: null,
1063
- formats: [],
1064
- values: [],
1065
- created_at: "2023-08-09T07:16:26.678Z",
1066
- updated_at: "2025-09-16T17:51:21.997Z"
1067
- },
1068
- {
1069
- id: "7094944595614215440",
1070
- collection_id: "7074716021398640563",
1071
- section_id: "7074716021801200658",
1072
- key: "booster_contact_person",
1073
- kind: "string",
1074
- field_interface: "TextWidget",
1075
- options: {},
1076
- fields: [],
1077
- default_value: "",
1078
- label: "Booster Contact Person",
1079
- helper_text: "",
1080
- hidden: !1,
1081
- secret: !1,
1082
- editable: !0,
1083
- readonly: !1,
1084
- sort_order: 13,
1085
- required: !1,
1086
- unique: !1,
1087
- min: null,
1088
- max: null,
1089
- formats: [],
1090
- values: [],
1091
- created_at: "2023-08-09T07:36:49.290Z",
1092
- updated_at: "2025-09-16T17:51:22.000Z"
1093
- },
1094
- {
1095
- id: "7094944595603890204",
1096
- collection_id: "7074716021398640563",
1097
- section_id: "7074716021801200658",
1098
- key: "booster_contact_email",
1099
- kind: "string",
1100
- field_interface: "EmailWidget",
1101
- options: {},
1102
- fields: [],
1103
- default_value: "",
1104
- label: "Booster Contact Email",
1105
- helper_text: "",
1106
- hidden: !1,
1107
- secret: !1,
1108
- editable: !0,
1109
- readonly: !1,
1110
- sort_order: 14,
1111
- required: !1,
1112
- unique: !1,
1113
- min: null,
1114
- max: null,
1115
- formats: [],
1116
- values: [],
1117
- created_at: "2023-08-09T07:36:49.288Z",
1118
- updated_at: "2025-09-16T17:51:22.055Z"
1119
- },
1120
- {
1121
- id: "7097835723564454518",
1122
- collection_id: "7074716021398640563",
1123
- section_id: "7074716021801200658",
1124
- key: "logo",
1125
- kind: "string",
1126
- field_interface: "TextWidget",
1127
- options: {},
1128
- fields: [],
1129
- default_value: "",
1130
- label: "Logo",
1131
- helper_text: "",
1132
- hidden: !1,
1133
- secret: !1,
1134
- editable: !0,
1135
- readonly: !1,
1136
- sort_order: 15,
1137
- required: !1,
1138
- unique: !1,
1139
- min: null,
1140
- max: null,
1141
- formats: [],
1142
- values: [],
1143
- created_at: "2023-08-17T07:05:07.908Z",
1144
- updated_at: "2025-09-16T17:51:22.059Z"
1145
- },
1146
- {
1147
- id: "7097835723655660189",
1148
- collection_id: "7074716021398640563",
1149
- section_id: "7074716021801200658",
1150
- key: "apply_link",
1151
- kind: "string",
1152
- field_interface: "TextWidget",
1153
- options: {},
1154
- fields: [],
1155
- default_value: "",
1156
- label: "Apply Link",
1157
- helper_text: "",
1158
- hidden: !1,
1159
- secret: !1,
1160
- editable: !0,
1161
- readonly: !1,
1162
- sort_order: 16,
1163
- required: !1,
1164
- unique: !1,
1165
- min: null,
1166
- max: null,
1167
- formats: [],
1168
- values: [],
1169
- created_at: "2023-08-17T07:05:07.930Z",
1170
- updated_at: "2025-09-16T17:51:22.061Z"
1171
- },
1172
- {
1173
- id: "7074716022011344998",
1174
- collection_id: "7074716021398640563",
1175
- section_id: "7074716021801200658",
1176
- key: "_id",
1177
- kind: "identifier",
1178
- field_interface: "IdentifierWidget",
1179
- options: {},
1180
- fields: [],
1181
- default_value: null,
1182
- label: "Id",
1183
- helper_text: "",
1184
- hidden: !0,
1185
- secret: !1,
1186
- editable: !0,
1187
- readonly: !0,
1188
- sort_order: 17,
1189
- required: !1,
1190
- unique: !1,
1191
- min: null,
1192
- max: null,
1193
- formats: [],
1194
- values: [],
1195
- created_at: "2023-06-14T11:55:41.515Z",
1196
- updated_at: "2025-09-16T17:51:22.064Z"
1197
- },
1198
- {
1199
- id: "7074716022831644426",
1200
- collection_id: "7074716021398640563",
1201
- section_id: "7074716021801200658",
1202
- key: "slug",
1203
- kind: "string",
1204
- field_interface: "SlugWidget",
1205
- options: {},
1206
- fields: [],
1207
- default_value: "",
1208
- label: "Slug",
1209
- helper_text: "",
1210
- hidden: !0,
1211
- secret: !1,
1212
- editable: !0,
1213
- readonly: !1,
1214
- sort_order: 18,
1215
- required: !1,
1216
- unique: !0,
1217
- min: null,
1218
- max: null,
1219
- formats: ["slug"],
1220
- values: [],
1221
- created_at: "2023-06-14T11:55:41.710Z",
1222
- updated_at: "2025-09-16T17:51:22.066Z"
1223
- },
1224
- {
1225
- id: "7074716022945014354",
1226
- collection_id: "7074716021398640563",
1227
- section_id: "7074716021801200658",
1228
- key: "created_at",
1229
- kind: "date",
1230
- field_interface: "DateTimeWidget",
1231
- options: {},
1232
- fields: [],
1233
- default_value: null,
1234
- label: "Created At",
1235
- helper_text: "",
1236
- hidden: !0,
1237
- secret: !1,
1238
- editable: !0,
1239
- readonly: !0,
1240
- sort_order: 19,
1241
- required: !1,
1242
- unique: !1,
1243
- min: null,
1244
- max: null,
1245
- formats: [],
1246
- values: [],
1247
- created_at: "2023-06-14T11:55:41.737Z",
1248
- updated_at: "2025-09-16T17:51:22.068Z"
1249
- },
1250
- {
1251
- id: "7074716023041946226",
1252
- collection_id: "7074716021398640563",
1253
- section_id: "7074716021801200658",
1254
- key: "updated_at",
1255
- kind: "date",
1256
- field_interface: "DateTimeWidget",
1257
- options: {},
1258
- fields: [],
1259
- default_value: null,
1260
- label: "Updated At",
1261
- helper_text: "",
1262
- hidden: !0,
1263
- secret: !1,
1264
- editable: !0,
1265
- readonly: !0,
1266
- sort_order: 20,
1267
- required: !1,
1268
- unique: !1,
1269
- min: null,
1270
- max: null,
1271
- formats: [],
1272
- values: [],
1273
- created_at: "2023-06-14T11:55:41.760Z",
1274
- updated_at: "2025-09-16T17:51:22.076Z"
1275
- },
1276
- {
1277
- id: "7373775519943508947",
1278
- collection_id: "7074716021398640563",
1279
- section_id: "7074716021801200658",
1280
- key: "object",
1281
- kind: "record",
1282
- field_interface: "RecordWidget",
1283
- options: {
1284
- collection_id: "",
1285
- currency_code: "",
1286
- label_field_key: "",
1287
- on_delete: "SET_NULL"
1288
- },
1289
- fields: [{
1290
- id: "field-7373775326254581196",
1291
- key: "text",
1292
- label: "Text",
1293
- helper_text: "",
1294
- kind: "string",
1295
- field_interface: "TextWidget",
1296
- required: !0,
1297
- unique: !1,
1298
- min: null,
1299
- max: "2",
1300
- formats: [],
1301
- values: [],
1302
- default_value: "",
1303
- options: {
1304
- collection_id: "",
1305
- currency_code: "",
1306
- label_field_key: "",
1307
- on_delete: "SET_NULL"
1308
- },
1309
- fields: [],
1310
- hidden: !1,
1311
- readonly: !1,
1312
- editable: !0,
1313
- shouldClose: !0
1314
- }],
1315
- default_value: { text: null },
1316
- label: "Object",
1317
- helper_text: "",
1318
- hidden: !1,
1319
- secret: !1,
1320
- editable: !0,
1321
- readonly: !1,
1322
- sort_order: 21,
1323
- required: !0,
1324
- unique: !1,
1325
- min: "1",
1326
- max: "2",
1327
- formats: [],
1328
- values: [],
1329
- created_at: "2025-09-16T17:51:22.078Z",
1330
- updated_at: "2025-09-16T17:51:22.078Z"
1331
- },
1332
- {
1333
- id: "7373775519957088529",
1334
- key: "array",
1335
- kind: "group",
1336
- field_interface: "ArrayWidget",
1337
- options: {
1338
- collection_id: "",
1339
- currency_code: "",
1340
- label_field_key: "",
1341
- on_delete: "SET_NULL"
1342
- },
1343
- fields: [{
1344
- id: "field-7373775499186137007",
1345
- key: "test_3",
1346
- label: "Test 3",
1347
- helper_text: "",
1348
- kind: "string",
1349
- field_interface: "TextWidget",
1350
- required: !0,
1351
- unique: !1,
1352
- min: "2",
1353
- max: "5",
1354
- formats: [],
1355
- values: [],
1356
- default_value: "",
1357
- options: {
1358
- collection_id: "",
1359
- currency_code: "",
1360
- label_field_key: "",
1361
- on_delete: "SET_NULL"
1362
- },
1363
- fields: [],
1364
- hidden: !1,
1365
- readonly: !1,
1366
- editable: !0
1367
- }],
1368
- default_value: [],
1369
- label: "Array",
1370
- helper_text: "",
1371
- hidden: !1,
1372
- editable: !0,
1373
- readonly: !1,
1374
- required: !0,
1375
- unique: !1,
1376
- min: "1",
1377
- max: "2",
1378
- formats: [],
1379
- values: [],
1380
- created_at: "2025-09-16T17:51:22.082Z",
1381
- updated_at: "2025-09-16T17:51:22.082Z"
1382
- }
1383
- ]
1384
- }]
1385
- }, Je = ({ children: e, ...t }) => {
1386
- let { isStudio: n, renderMode: r } = B();
1387
- return n ? e : /* @__PURE__ */ w(oe, {
1388
- ...t,
1389
- children: e
1390
- });
1391
- }, Ye = (e) => {
1392
- if (e?.action) switch (e.action.type) {
1393
- case "external_link": {
1394
- let t = e.action.value;
1395
- return t ? /^([a-z][a-z0-9+.-]*:|\/\/)/.test(t) || t.startsWith("#") || t.startsWith("/") ? t : `https://${t}` : void 0;
1396
- }
1397
- case "page": return e.action.value;
1398
- case "page_section": return e.action.value ? `#${e.action.value}` : void 0;
1399
- case "email": return `mailto:${e.action.value}`;
1400
- case "phone": return `tel:${e.action.value}`;
1401
- default: return;
1402
- }
1403
- }, Xe = ({ children: e, config: t }) => {
1404
- let { openModal: n } = c(), { isLoggedIn: r } = s(), { openPopup: i } = D(), a = t?.action?.alt;
1405
- if (t?.action?.type === "popup") {
1406
- let n = t.action.value, r = () => {
1407
- n && i(n);
1408
- };
1409
- return /* @__PURE__ */ w("div", {
1410
- style: { display: "contents" },
1411
- role: "button",
1412
- tabIndex: 0,
1413
- "aria-label": a || void 0,
1414
- onClick: r,
1415
- onKeyDown: (e) => {
1416
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), r());
1417
- },
1418
- children: e
1419
- });
1420
- }
1421
- if (t?.action?.type === "login") {
1422
- if (r) return /* @__PURE__ */ w(Je, {
1423
- href: t?.action?.value || "",
1424
- style: { display: "contents" },
1425
- "aria-label": a || void 0,
1426
- children: e
1427
- });
1428
- let i = () => {
1429
- n("login", { redirect_uri: t?.action?.value });
1430
- };
1431
- return /* @__PURE__ */ w("div", {
1432
- style: { display: "contents" },
1433
- role: "button",
1434
- tabIndex: 0,
1435
- "aria-label": a || void 0,
1436
- onClick: i,
1437
- onKeyDown: (e) => {
1438
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i());
1439
- },
1440
- children: e
1441
- });
1442
- }
1443
- let o = Ye(t), l = t?.action?.options?.openInNewTab ? "_blank" : void 0;
1444
- return o ? /* @__PURE__ */ w(Je, {
1445
- href: o,
1446
- style: { display: "contents" },
1447
- ...l && {
1448
- target: l,
1449
- rel: "noopener noreferrer"
1450
- },
1451
- ...a && { "aria-label": a },
1452
- children: e
1453
- }) : e;
1454
- }, Ze = {
1455
- once: !0,
1456
- margin: "0px 0px -150px 0px"
1457
- }, Qe = ({ children: e, MotionComponent: t, motionProps: n, scroll: r, entry: i, whileHover: a, exit: o }) => {
1458
- let s = x(null);
1459
- if (y(() => {
1460
- if (!r) return;
1461
- let e = s.current;
1462
- if (!e || !(e instanceof Element)) return;
1463
- let { from: t, to: n, offset: i } = r, a = {}, o = Array.from(new Set([...Object.keys(t), ...Object.keys(n)]));
1464
- for (let e of o) {
1465
- let r = t[e] ?? n[e], i = n[e] ?? t[e];
1466
- r !== i && typeof r == "number" && typeof i == "number" && (a[e] = [r, i]);
1467
- }
1468
- if (Object.keys(a).length === 0) return;
1469
- let c = te(e, a, { ease: "linear" });
1470
- try {
1471
- return ne(c, {
1472
- target: e,
1473
- offset: [i.start, i.end]
1474
- });
1475
- } catch (e) {
1476
- console.error("[AnimatedBlock] Failed to initialise scroll-linked animation", {
1477
- error: e,
1478
- offset: i
1479
- });
1480
- return;
1481
- }
1482
- }, [r]), r) {
1483
- let i = {};
1484
- for (let [e, t] of Object.entries(r.from)) t !== void 0 && (i[e] = t);
1485
- return /* @__PURE__ */ w(t, {
1486
- ref: s,
1487
- ...n,
1488
- style: {
1489
- ...n.style || {},
1490
- ...i
1491
- },
1492
- whileHover: a,
1493
- exit: o,
1494
- children: e
1495
- });
1496
- }
1497
- let c = i ? {
1498
- ...V,
1499
- ...i.to,
1500
- transition: i.transition
1501
- } : void 0, l = i ? {
1502
- once: i.viewport?.once ?? Ze.once,
1503
- amount: i.viewport?.amount,
1504
- margin: i.viewport?.margin ?? Ze.margin
1505
- } : void 0;
1506
- return /* @__PURE__ */ w(t, {
1507
- ...n,
1508
- initial: i?.from,
1509
- whileInView: c,
1510
- viewport: l,
1511
- whileHover: a,
1512
- exit: o,
1513
- children: e
1514
- });
1515
- }, Z = (e) => {
1516
- let t = ae.create(e), n = ({ elementKey: n, children: r, ...i }) => {
1517
- let { parsedBlockData: a, renderMode: o } = B(), { config: s, styles: c, content: l, id: u } = a || {}, d = s ? W(s, n) : void 0, f = c ? W(c, n) : void 0, p = l ? W(l, n) : void 0, m = b(() => {
1518
- let e = d || {}, t = i.config || {}, n = e.selectedVariants || {}, r = t.selectedVariants || {};
1519
- return {
1520
- ...e,
1521
- ...t,
1522
- selectedVariants: {
1523
- ...n,
1524
- ...r
1525
- }
1526
- };
1527
- }, [d, i.config]), h = X(i, n, m, f, p, Y(n, u || "", m)), g = h.config?.animation, _ = b(() => g?.scroll ? {
1528
- from: {
1529
- ...H,
1530
- ...g.scroll.from
1531
- },
1532
- to: {
1533
- ...V,
1534
- ...g.scroll.to
1535
- },
1536
- offset: g.scroll.offset ?? {
1537
- start: "start end",
1538
- end: "end center"
1539
- }
1540
- } : void 0, [g?.scroll]), v = b(() => g?.entry ? {
1541
- from: {
1542
- ...H,
1543
- ...g.entry.from
1544
- },
1545
- to: {
1546
- ...V,
1547
- ...g.entry.to
1548
- },
1549
- transition: g.entry.transition,
1550
- viewport: g.entry.viewport
1551
- } : void 0, [g?.entry]);
1552
- return !a || h.config?.enabled === !1 ? null : g && Object.keys(g).length > 0 && o !== "studio.block" ? /* @__PURE__ */ w(Xe, {
1553
- config: h?.config || {},
1554
- children: /* @__PURE__ */ w(Qe, {
1555
- MotionComponent: t,
1556
- motionProps: h,
1557
- scroll: _,
1558
- entry: v,
1559
- whileHover: g.whileHover,
1560
- exit: g.exit,
1561
- children: r
1562
- })
1563
- }) : /* @__PURE__ */ w(Xe, {
1564
- config: h?.config || {},
1565
- children: /* @__PURE__ */ w(e, {
1566
- ...h,
1567
- children: r
1568
- })
1569
- });
1570
- };
1571
- return n.displayName = `withBlockProps(${e.displayName || e.name || "Component"})`, v(n);
1572
- }, $e = g(({ className: e, config: t, content: n, elementKey: r, generatedClassName: i, styles: a, noElementKey: o, ...s }, c) => {
1573
- if (!n) return /* @__PURE__ */ w("span", {
1574
- ref: c,
1575
- style: { display: "none" }
1576
- });
1577
- let { kind: l, data: u } = n, f = t?.icon?.alt, p = d(e, i), m = {
1578
- "data-levo_element_key": o ? void 0 : r,
1579
- "data-levo_element_type": "Icon",
1580
- className: p,
1581
- ...s
1582
- }, h = f ? {
1583
- "aria-label": f,
1584
- role: "img"
1585
- } : {};
1586
- switch (l) {
1587
- case "emoji": return /* @__PURE__ */ w("p", {
1588
- style: {
1589
- width: "auto",
1590
- height: "auto",
1591
- ...m.style
1592
- },
1593
- ref: c,
1594
- ...m,
1595
- ...h,
1596
- children: u?.unicode
1597
- });
1598
- case "icon": {
1599
- let e = u;
1600
- return e?.svgCode ? /* @__PURE__ */ w("div", {
1601
- ref: c,
1602
- ...m,
1603
- ...h,
1604
- style: {
1605
- display: a?.display ? void 0 : "inline-block",
1606
- ...m.style
1607
- },
1608
- dangerouslySetInnerHTML: { __html: e.svgCode }
1609
- }) : /* @__PURE__ */ w("span", {
1610
- ref: c,
1611
- ...m
1612
- });
1613
- }
1614
- case "custom": return /* @__PURE__ */ w("img", {
1615
- ref: c,
1616
- src: u?.location,
1617
- srcSet: u?.srcset?.path,
1618
- decoding: "async",
1619
- alt: f ?? "icon",
1620
- ...m
1621
- });
1622
- default: return /* @__PURE__ */ w("span", {
1623
- ref: c,
1624
- ...m
1625
- });
1626
- }
1627
- });
1628
- $e.displayName = "BaseIcon";
1629
- var Q = Z($e), $ = p.forwardRef(({ className: e, isLoading: t, loadingText: n, children: r, config: i = {}, styles: a, content: o, elementKey: s, generatedClassName: c, ...l }, u) => {
1630
- let f = r ?? o, p = i, m = typeof f == "string" ? re(se.sanitize(f)) : f, h = (e, t) => e?.enabled ? /* @__PURE__ */ w(Q, {
1631
- noElementKey: !0,
1632
- elementKey: `${s}_${t}Icon`
1633
- }) : null;
1634
- return f ? /* @__PURE__ */ w("button", {
1635
- "data-levo_element_key": s,
1636
- "data-levo_element_type": "Button",
1637
- type: "button",
1638
- className: d("inline-flex items-center justify-center", e, c),
1639
- ref: u,
1640
- ...l,
1641
- children: t ? /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(ie, { className: d("h-4 w-4 animate-spin", n ? "mr-2" : "") }), n] }) : /* @__PURE__ */ T(C, { children: [
1642
- h(p?.button_icons?.left, "left"),
1643
- /* @__PURE__ */ w("span", {
1644
- className: "button-content",
1645
- children: m
1646
- }),
1647
- h(p?.button_icons?.right, "right")
1648
- ] })
1649
- }) : /* @__PURE__ */ w("span", {
1650
- ref: u,
1651
- style: { display: "none" }
1652
- });
1653
- });
1654
- $.displayName = "BaseButton";
1655
- var et = Z($);
1656
- //#endregion
1657
- export { L as A, ue as B, j as C, xe as D, M as E, ke as F, Oe as I, ye as L, ze as M, P as N, Ve as O, ve as P, me as R, A as S, be as T, Ge as _, qe as a, B as b, G as c, X as d, Y as f, We as g, H as h, Z as i, Te as j, Be as k, q as l, U as m, et as n, J as o, Ke as p, Q as r, W as s, $ as t, K as u, V as v, N as w, Ue as x, He as y, D as z };