@levo-so/site-runtime 0.3.7 → 0.3.8
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/CollectionField-C-6a1ud4.js +270 -0
- package/{CollectionInput-B1qV4QEH.js → CollectionInput-BJ__qcbk.js} +40 -40
- package/DateTimeWidget-hFjcn3o6.js +255 -0
- package/{Dialog-DVB4WpBS.js → Dialog-dT7y641z.js} +43 -43
- package/{KBChatWidget-Cnq0DCOQ.js → KBChatWidget-ClHFDgJ5.js} +236 -236
- package/{LevoProvider-nmIbMlsk.js → LevoProvider-Bsjkcwc8.js} +8 -8
- package/PhoneWidget-BmBO-kvA.js +99 -0
- package/{Popover-C7zZHBIc.js → Popover-3N88sRp4.js} +20 -20
- package/{PopupBody-DZVwDLkg-yrot8Uqb.js → PopupBody-DZVwDLkg-Cfy3lWGs.js} +33 -33
- package/{PopupRenderer-BjW1jg70-Biwj2bIc.js → PopupRenderer-BjW1jg70-W2y-PEPH.js} +81 -81
- package/{RichTextWidget-BOrVIR2j.js → RichTextWidget-DkKHEq4j.js} +139 -139
- package/ThemeProvider-DutrjSTF.js +116 -0
- package/{Tooltip-BIgrpetu.js → Tooltip-CQB0LyxK.js} +20 -20
- package/{VerifyButton-CA1GtEZJ.js → VerifyButton-BUT70lgz.js} +65 -65
- package/dist-CRDgdAkQ.js +3631 -0
- package/{dist-Cb6sb7nO.js → dist-DPmVG7VB.js} +13 -13
- package/index.d.ts +560 -3
- package/index.js +1203 -713
- package/inlineBaseTheme-BB9e6h5f.js +9 -0
- package/{inlineCollectionTheme-DYYMrmcE.js → inlineCollectionTheme-CWcMCUti.js} +1 -1
- package/{kbChat-DIb4AS7E.js → kbChat-C00LVlxP.js} +27 -27
- package/{nodeAlignment-D70kOcui.js → nodeAlignment-BnJljFlw.js} +1 -1
- package/package.json +3 -3
- package/popups.js +1 -1
- package/{react-6kO0cqgr.js → react-CV3jf2mc.js} +1 -1
- package/styles.css +1 -1
- package/{generateRadiusScale-54mE9ikx.js → themeVars.cssm-ByhhC2Jm.js} +17 -17
- package/usePopupRedirect-BThP_YPW-COUseDik.js +80 -0
- package/CollectionField-C59pmeQw.js +0 -270
- package/DateTimeWidget-Cctsvcrs.js +0 -255
- package/PhoneWidget-J3VTMWJH.js +0 -99
- package/ThemeProvider-BQmIB5tr.js +0 -116
- package/dist-C8gLeklT.js +0 -3559
- package/inlineBaseTheme-B6E9zzyp.js +0 -9
- package/usePopupRedirect-BThP_YPW-DoixMAB9.js +0 -80
- /package/{createThemeExtension-DhGk81nV.js → createThemeExtension-4AUn51iJ.js} +0 -0
- /package/{theme.cssm-mkQwezuj.js → theme.cssm-DUzmx76l.js} +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as t, useContext as n } from "react";
|
|
4
4
|
//#region ../react/dist/providers/LevoProvider.js
|
|
5
|
-
var r =
|
|
5
|
+
var r = t({
|
|
6
6
|
client: null,
|
|
7
7
|
insights: null
|
|
8
|
-
}), i = ({ children:
|
|
8
|
+
}), i = ({ children: t, client: n, insights: i = null }) => /* @__PURE__ */ e(r.Provider, {
|
|
9
9
|
value: {
|
|
10
|
-
client:
|
|
10
|
+
client: n,
|
|
11
11
|
insights: i
|
|
12
12
|
},
|
|
13
|
-
children:
|
|
13
|
+
children: t
|
|
14
14
|
}), a = () => {
|
|
15
|
-
let e =
|
|
15
|
+
let e = n(r);
|
|
16
16
|
if (!e.client) throw Error("useLevo must be used within a LevoProvider. Please ensure you have wrapped your component tree with LevoProvider.");
|
|
17
17
|
return e.client;
|
|
18
|
-
}, o = () =>
|
|
18
|
+
}, o = () => n(r).client, s = () => n(r).insights;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { s as i, i as n, o as r, a as t };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { r as e, t } from "./CollectionField-C-6a1ud4.js";
|
|
3
|
+
import { t as ee } from "./VerifyButton-BUT70lgz.js";
|
|
4
|
+
import { t as n } from "./CollectionInput-BJ__qcbk.js";
|
|
5
|
+
import te, { isSupportedCountry as r } from "react-phone-number-input";
|
|
6
|
+
import { useController as i } from "react-hook-form";
|
|
7
|
+
import { c as a } from "react/compiler-runtime";
|
|
8
|
+
import { jsx as o, jsxs as ne } from "react/jsx-runtime";
|
|
9
|
+
import { useState as s } from "react";
|
|
10
|
+
import { IconPencil as re } from "@tabler/icons-react";
|
|
11
|
+
//#region ../../libraries/react-collection/dist/widgets/phoneWidget/PhoneWidget.cssm.js
|
|
12
|
+
var ie = "_89f1hw0", c = "_89f1hw1", l = "_89f1hw2", ae = "_89f1hw4", u = (u) => {
|
|
13
|
+
let d = a(51), { field: f, settings: oe } = u, { key: p, label: m, helper_text: h, readonly: g, options: _ } = f, v = p === void 0 ? "" : p, y = m === void 0 ? "" : m, b = h === void 0 ? "" : h, x = g === void 0 ? !1 : g, S = v, C = !!_?.verification && !!oe?.enableVerification, [w, T] = s(null), [E, se] = s(!1), D;
|
|
14
|
+
d[0] !== E || d[1] !== C || d[2] !== w ? (D = (e) => E ? !0 : C && (!w || w !== e) ? "Phone verification required" : !0, d[0] = E, d[1] = C, d[2] = w, d[3] = D) : D = d[3];
|
|
15
|
+
let O;
|
|
16
|
+
d[4] !== f || d[5] !== D ? (O = e(f, D), d[4] = f, d[5] = D, d[6] = O) : O = d[6];
|
|
17
|
+
let k = O, A;
|
|
18
|
+
d[7] !== S || d[8] !== k ? (A = {
|
|
19
|
+
name: S,
|
|
20
|
+
rules: k
|
|
21
|
+
}, d[7] = S, d[8] = k, d[9] = A) : A = d[9];
|
|
22
|
+
let { field: j, fieldState: M } = i(A), N, P, F, I;
|
|
23
|
+
d[10] === j ? (N = d[11], P = d[12], F = d[13], I = d[14]) : ({value: I, onBlur: N, onChange: P, ...F} = j, d[10] = j, d[11] = N, d[12] = P, d[13] = F, d[14] = I);
|
|
24
|
+
let { error: ce } = M, L = !!f?.required, R = ce?.message, z = !!w && !!I && w === I, B;
|
|
25
|
+
d[15] === _?.country ? B = d[16] : (B = () => {
|
|
26
|
+
let e = _?.country;
|
|
27
|
+
if (e && typeof e == "string") {
|
|
28
|
+
let t = e?.toUpperCase();
|
|
29
|
+
if (r(t)) return t;
|
|
30
|
+
}
|
|
31
|
+
return "IN";
|
|
32
|
+
}, d[15] = _?.country, d[16] = B);
|
|
33
|
+
let V = B, H;
|
|
34
|
+
d[17] === P ? H = d[18] : (H = (e) => {
|
|
35
|
+
T(e), P(e);
|
|
36
|
+
}, d[17] = P, d[18] = H);
|
|
37
|
+
let U = H, W = I ?? "", G;
|
|
38
|
+
d[19] === V ? G = d[20] : (G = V(), d[19] = V, d[20] = G);
|
|
39
|
+
let K;
|
|
40
|
+
d[21] === P ? K = d[22] : (K = (e) => {
|
|
41
|
+
P?.(e ?? "");
|
|
42
|
+
}, d[21] = P, d[22] = K);
|
|
43
|
+
let q;
|
|
44
|
+
d[23] === N ? q = d[24] : (q = () => {
|
|
45
|
+
N?.();
|
|
46
|
+
}, d[23] = N, d[24] = q);
|
|
47
|
+
let J = x || z, Y;
|
|
48
|
+
d[25] === z ? Y = d[26] : (Y = z ? /* @__PURE__ */ o("button", {
|
|
49
|
+
type: "button",
|
|
50
|
+
onClick: () => T(null),
|
|
51
|
+
className: ae,
|
|
52
|
+
title: "Change phone number",
|
|
53
|
+
children: /* @__PURE__ */ o(re, { size: 14 })
|
|
54
|
+
}) : null, d[25] = z, d[26] = Y);
|
|
55
|
+
let X;
|
|
56
|
+
d[27] !== F || d[28] !== W || d[29] !== G || d[30] !== K || d[31] !== q || d[32] !== J || d[33] !== Y ? (X = /* @__PURE__ */ o("div", {
|
|
57
|
+
className: l,
|
|
58
|
+
children: /* @__PURE__ */ o(te, {
|
|
59
|
+
value: W,
|
|
60
|
+
international: !0,
|
|
61
|
+
inputComponent: n,
|
|
62
|
+
defaultCountry: G,
|
|
63
|
+
onChange: K,
|
|
64
|
+
onBlur: q,
|
|
65
|
+
className: ie,
|
|
66
|
+
readOnly: J,
|
|
67
|
+
rightIcon: Y,
|
|
68
|
+
...F
|
|
69
|
+
})
|
|
70
|
+
}), d[27] = F, d[28] = W, d[29] = G, d[30] = K, d[31] = q, d[32] = J, d[33] = Y, d[34] = X) : X = d[34];
|
|
71
|
+
let Z;
|
|
72
|
+
d[35] !== U || d[36] !== z || d[37] !== C || d[38] !== I ? (Z = C && /* @__PURE__ */ o("div", {
|
|
73
|
+
className: "_89f1hw3",
|
|
74
|
+
children: /* @__PURE__ */ o(ee, {
|
|
75
|
+
value: I,
|
|
76
|
+
type: "phone",
|
|
77
|
+
isVerified: z,
|
|
78
|
+
onVerifySuccess: U,
|
|
79
|
+
onStateChange: se
|
|
80
|
+
})
|
|
81
|
+
}), d[35] = U, d[36] = z, d[37] = C, d[38] = I, d[39] = Z) : Z = d[39];
|
|
82
|
+
let Q;
|
|
83
|
+
d[40] !== X || d[41] !== Z ? (Q = /* @__PURE__ */ ne("div", {
|
|
84
|
+
className: c,
|
|
85
|
+
children: [X, Z]
|
|
86
|
+
}), d[40] = X, d[41] = Z, d[42] = Q) : Q = d[42];
|
|
87
|
+
let $;
|
|
88
|
+
return d[43] !== R || d[44] !== b || d[45] !== L || d[46] !== y || d[47] !== S || d[48] !== x || d[49] !== Q ? ($ = /* @__PURE__ */ o(t, {
|
|
89
|
+
error: R,
|
|
90
|
+
helperText: b,
|
|
91
|
+
readOnly: x,
|
|
92
|
+
label: y,
|
|
93
|
+
htmlFor: S,
|
|
94
|
+
isRequired: L,
|
|
95
|
+
children: Q
|
|
96
|
+
}), d[43] = R, d[44] = b, d[45] = L, d[46] = y, d[47] = S, d[48] = x, d[49] = Q, d[50] = $) : $ = d[50], $;
|
|
97
|
+
};
|
|
98
|
+
//#endregion
|
|
99
|
+
export { u as PhoneWidget, u as default };
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { i as e, t } from "./ThemeProvider-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import i from "
|
|
1
|
+
import { i as e, t } from "./ThemeProvider-DutrjSTF.js";
|
|
2
|
+
import { c as n } from "react/compiler-runtime";
|
|
3
|
+
import r from "clsx";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
5
|
import { Popover as a } from "@base-ui/react/popover";
|
|
6
6
|
//#region ../../libraries/levocn/dist/ui/popover/Popover.cssm.js
|
|
7
7
|
var o = "_1tn9uzj0", s = "_1tn9uzj4", c = (e) => {
|
|
8
|
-
let t =
|
|
9
|
-
t[0] === e ?
|
|
8
|
+
let t = n(4), r;
|
|
9
|
+
t[0] === e ? r = t[1] : ({...r} = e, t[0] = e, t[1] = r);
|
|
10
10
|
let o;
|
|
11
|
-
return t[2] ===
|
|
11
|
+
return t[2] === r ? o = t[3] : (o = /* @__PURE__ */ i(a.Root, { ...r }), t[2] = r, t[3] = o), o;
|
|
12
12
|
}, l = (e) => {
|
|
13
|
-
let
|
|
14
|
-
|
|
13
|
+
let r = n(5), o;
|
|
14
|
+
r[0] === e ? o = r[1] : ({...o} = e, r[0] = e, r[1] = o);
|
|
15
15
|
let { portalRef: s } = t(), c;
|
|
16
|
-
return
|
|
16
|
+
return r[2] !== s || r[3] !== o ? (c = /* @__PURE__ */ i(a.Portal, {
|
|
17
17
|
container: s,
|
|
18
18
|
...o
|
|
19
|
-
}),
|
|
19
|
+
}), r[2] = s, r[3] = o, r[4] = c) : c = r[4], c;
|
|
20
20
|
}, u = (e) => {
|
|
21
|
-
let t =
|
|
21
|
+
let t = n(8), o, c;
|
|
22
22
|
t[0] === e ? (o = t[1], c = t[2]) : ({className: o, ...c} = e, t[0] = e, t[1] = o, t[2] = c);
|
|
23
23
|
let l;
|
|
24
|
-
t[3] === o ? l = t[4] : (l =
|
|
24
|
+
t[3] === o ? l = t[4] : (l = r(s, o), t[3] = o, t[4] = l);
|
|
25
25
|
let u;
|
|
26
|
-
return t[5] !== c || t[6] !== l ? (u = /* @__PURE__ */
|
|
26
|
+
return t[5] !== c || t[6] !== l ? (u = /* @__PURE__ */ i(a.Positioner, {
|
|
27
27
|
"data-levocn-portal": "",
|
|
28
28
|
className: l,
|
|
29
29
|
...c
|
|
30
30
|
}), t[5] = c, t[6] = l, t[7] = u) : u = t[7], u;
|
|
31
31
|
}, d = (e) => {
|
|
32
|
-
let t =
|
|
32
|
+
let t = n(8), s, c;
|
|
33
33
|
t[0] === e ? (s = t[1], c = t[2]) : ({className: s, ...c} = e, t[0] = e, t[1] = s, t[2] = c);
|
|
34
34
|
let l;
|
|
35
|
-
t[3] === s ? l = t[4] : (l =
|
|
35
|
+
t[3] === s ? l = t[4] : (l = r(o, s), t[3] = s, t[4] = l);
|
|
36
36
|
let u;
|
|
37
|
-
return t[5] !== c || t[6] !== l ? (u = /* @__PURE__ */
|
|
37
|
+
return t[5] !== c || t[6] !== l ? (u = /* @__PURE__ */ i(a.Popup, {
|
|
38
38
|
"data-slot": "popover-content",
|
|
39
39
|
className: l,
|
|
40
40
|
...c
|
|
41
41
|
}), t[5] = c, t[6] = l, t[7] = u) : u = t[7], u;
|
|
42
42
|
}, f = (t) => {
|
|
43
|
-
let o =
|
|
43
|
+
let o = n(12), s, c, l, u;
|
|
44
44
|
o[0] === t ? (s = o[1], c = o[2], l = o[3], u = o[4]) : ({className: s, variant: u, size: l, ...c} = t, o[0] = t, o[1] = s, o[2] = c, o[3] = l, o[4] = u);
|
|
45
45
|
let d;
|
|
46
|
-
o[5] !== s || o[6] !== l || o[7] !== u ? (d =
|
|
46
|
+
o[5] !== s || o[6] !== l || o[7] !== u ? (d = r(e({
|
|
47
47
|
variant: u,
|
|
48
48
|
size: l
|
|
49
49
|
}), s), o[5] = s, o[6] = l, o[7] = u, o[8] = d) : d = o[8];
|
|
50
50
|
let f;
|
|
51
|
-
return o[9] !== c || o[10] !== d ? (f = /* @__PURE__ */
|
|
51
|
+
return o[9] !== c || o[10] !== d ? (f = /* @__PURE__ */ i(a.Trigger, {
|
|
52
52
|
className: d,
|
|
53
53
|
...c
|
|
54
54
|
}), o[9] = c, o[10] = d, o[11] = f) : f = o[11], f;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { i as n, r, t as i } from "./Dialog-
|
|
4
|
-
import { t as a } from "./inlineCollectionTheme-
|
|
5
|
-
import { _ as o, a as s, d as c, g as l, i as u, l as d, r as f } from "./usePopupRedirect-BThP_YPW-
|
|
6
|
-
import { n as p, r as m, t as h } from "./nodeAlignment-
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import S from "
|
|
1
|
+
import { r as e } from "./ThemeProvider-DutrjSTF.js";
|
|
2
|
+
import { t } from "./LevoProvider-Bsjkcwc8.js";
|
|
3
|
+
import { i as n, r, t as i } from "./Dialog-dT7y641z.js";
|
|
4
|
+
import { t as a } from "./inlineCollectionTheme-CWcMCUti.js";
|
|
5
|
+
import { _ as o, a as s, d as c, g as l, i as u, l as d, r as f } from "./usePopupRedirect-BThP_YPW-COUseDik.js";
|
|
6
|
+
import { n as p, r as m, t as h } from "./nodeAlignment-BnJljFlw.js";
|
|
7
|
+
import { c as ee } from "react/compiler-runtime";
|
|
8
|
+
import g from "clsx";
|
|
9
|
+
import { Fragment as te, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
10
|
+
import y, { Suspense as b, lazy as x, useMemo as S, useState as ne } from "react";
|
|
11
11
|
import { IconCheck as re, IconCopy as ie } from "@tabler/icons-react";
|
|
12
12
|
import { Extension as C, Mark as w, Node as T, getAttributesFromExtensions as E, getExtensionField as D, getSchema as O, getSchemaByResolvedExtensions as k, getStyleProperty as A, markInputRule as j, markPasteRule as M, mergeAttributes as N, resolveExtensions as ae, splitExtensions as oe, textblockTypeInputRule as se } from "@tiptap/core";
|
|
13
13
|
import { DOMParser as ce, Node as P } from "@tiptap/pm/model";
|
|
@@ -130,7 +130,7 @@ function he(e, { nodeMapping: t, markMapping: n, unhandledNode: r, unhandledMark
|
|
|
130
130
|
}
|
|
131
131
|
function ge(e) {
|
|
132
132
|
let t = 0;
|
|
133
|
-
return he(({ component: e, props: { children: n, ...r } }) =>
|
|
133
|
+
return he(({ component: e, props: { children: n, ...r } }) => y.createElement(e, Object.assign(r, { key: t++ }), [].concat(n)), e);
|
|
134
134
|
}
|
|
135
135
|
function q(e, t) {
|
|
136
136
|
return e ? Object.entries(e).reduce((e, [t, n]) => {
|
|
@@ -152,9 +152,9 @@ function J(e, t = 0) {
|
|
|
152
152
|
if (typeof e == "string") return () => e;
|
|
153
153
|
if (typeof e == "object" && "length" in e) {
|
|
154
154
|
let [n, r, i, ...a] = e, o = n.split(" ");
|
|
155
|
-
if (o.length > 1 && (n = o[1], r === void 0 && (r = { xmlns: o[0] }), r === 0 && (r = { xmlns: o[0] }, i = 0), typeof r == "object" && (r = Object.assign(r, { xmlns: o[0] }))), r === void 0) return () =>
|
|
156
|
-
if (r === 0) return (e) =>
|
|
157
|
-
if (typeof r == "object") return Array.isArray(r) ? i === void 0 || i === 0 ? (e) =>
|
|
155
|
+
if (o.length > 1 && (n = o[1], r === void 0 && (r = { xmlns: o[0] }), r === 0 && (r = { xmlns: o[0] }, i = 0), typeof r == "object" && (r = Object.assign(r, { xmlns: o[0] }))), r === void 0) return () => y.createElement(n, q(void 0, t.toString()));
|
|
156
|
+
if (r === 0) return (e) => y.createElement(n, q(void 0, t.toString()), e);
|
|
157
|
+
if (typeof r == "object") return Array.isArray(r) ? i === void 0 || i === 0 ? (e) => y.createElement(n, q(void 0, t.toString()), J(r, t++)(e)) : (e) => y.createElement(n, q(void 0, t.toString()), J(r)(e), [i].concat(a).map((n) => J(n, t++)(e))) : i === void 0 ? () => y.createElement(n, q(r, t.toString())) : i === 0 ? (e) => y.createElement(n, q(r, t.toString()), e) : (e) => y.createElement(n, q(r, t.toString()), [i].concat(a).map((n) => J(n, t++)(e)));
|
|
158
158
|
}
|
|
159
159
|
throw Error("[tiptap error]: Unsupported DomOutputSpec type, check the `renderHTML` method output or implement a node mapping", { cause: e });
|
|
160
160
|
}
|
|
@@ -163,7 +163,7 @@ function _e({ content: e, extensions: t, options: n }) {
|
|
|
163
163
|
renderer: ge,
|
|
164
164
|
domOutputSpecToElement: J,
|
|
165
165
|
mapDefinedTypes: {
|
|
166
|
-
doc: ({ children: e }) =>
|
|
166
|
+
doc: ({ children: e }) => y.createElement(y.Fragment, {}, e),
|
|
167
167
|
text: ({ node: e }) => e.text ?? ""
|
|
168
168
|
},
|
|
169
169
|
content: e,
|
|
@@ -2699,22 +2699,22 @@ var ve = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, ye = /(?:^|\s)(
|
|
|
2699
2699
|
"orderedList"
|
|
2700
2700
|
] })
|
|
2701
2701
|
], $ = (e) => ue(e, Q), Ke = ({ content: e, className: t, ref: n, ...r }) => {
|
|
2702
|
-
let i =
|
|
2702
|
+
let i = S(() => e ? typeof e == "string" ? e ? $(e) : null : e.json && Object.keys(e.json).length > 0 ? e.json : e.html ? $(e.html) : null : null, [e]), a = S(() => i ? _e({
|
|
2703
2703
|
content: i,
|
|
2704
2704
|
extensions: Q
|
|
2705
2705
|
}) : null, [i]);
|
|
2706
|
-
return a ? /* @__PURE__ */
|
|
2706
|
+
return a ? /* @__PURE__ */ _("div", {
|
|
2707
2707
|
ref: n,
|
|
2708
|
-
className:
|
|
2708
|
+
className: g(m, t),
|
|
2709
2709
|
...r,
|
|
2710
2710
|
children: a
|
|
2711
2711
|
}) : null;
|
|
2712
|
-
}, qe = /* @__PURE__ */ o({ PopupBody: () => Qe }), Je =
|
|
2712
|
+
}, qe = /* @__PURE__ */ o({ PopupBody: () => Qe }), Je = x(() => import("./dist-CRDgdAkQ.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormBuilder }))), Ye = p({ baseSpacing: ".625rem" }), Xe = { style: a({ form: { gap: "1rem" } }) }, Ze = {
|
|
2713
2713
|
left: d,
|
|
2714
2714
|
center: f,
|
|
2715
2715
|
right: u
|
|
2716
2716
|
}, Qe = (a) => {
|
|
2717
|
-
let o =
|
|
2717
|
+
let o = ee(33), { popup: u, disableInteraction: d } = a, f = s(), p = f?.callbacks?.onAction, m = l(u), h = !f, { content: g } = u, { workspace: y } = t(), [x, S] = ne(!1), C;
|
|
2718
2718
|
o[0] !== g.action || o[1] !== p || o[2] !== u ? (C = () => {
|
|
2719
2719
|
if (g.action?.type !== "redirect" || !g.action.copyValue) return;
|
|
2720
2720
|
let e = g.action.copyValue;
|
|
@@ -2730,21 +2730,21 @@ var ve = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, ye = /(?:^|\s)(
|
|
|
2730
2730
|
let O;
|
|
2731
2731
|
o[6] === d ? O = o[7] : (O = d ? { pointerEvents: "none" } : void 0, o[6] = d, o[7] = O);
|
|
2732
2732
|
let k;
|
|
2733
|
-
o[8] !== T || o[9] !== g.description || o[10] !== g.heading ? (k = (g.heading || g.description) && /* @__PURE__ */
|
|
2733
|
+
o[8] !== T || o[9] !== g.description || o[10] !== g.heading ? (k = (g.heading || g.description) && /* @__PURE__ */ v(i, {
|
|
2734
2734
|
className: "zv6sjd4",
|
|
2735
2735
|
style: { textAlign: T },
|
|
2736
|
-
children: [g.heading && /* @__PURE__ */
|
|
2736
|
+
children: [g.heading && /* @__PURE__ */ _(n, { children: g.heading }), g.description && /* @__PURE__ */ _(r, { children: g.description })]
|
|
2737
2737
|
}), o[8] = T, o[9] = g.description, o[10] = g.heading, o[11] = k) : k = o[11];
|
|
2738
2738
|
let A;
|
|
2739
|
-
o[12] === g.body ? A = o[13] : (A = (g.body?.html || g.body?.json) && /* @__PURE__ */
|
|
2739
|
+
o[12] === g.body ? A = o[13] : (A = (g.body?.html || g.body?.json) && /* @__PURE__ */ _(Ke, {
|
|
2740
2740
|
className: "zv6sjd5",
|
|
2741
2741
|
style: Ye,
|
|
2742
2742
|
content: g.body
|
|
2743
2743
|
}), o[12] = g.body, o[13] = A);
|
|
2744
2744
|
let j;
|
|
2745
|
-
o[14] !== T || o[15] !== g.action || o[16] !== h || o[17] !== p || o[18] !== u || o[19] !==
|
|
2745
|
+
o[14] !== T || o[15] !== g.action || o[16] !== h || o[17] !== p || o[18] !== u || o[19] !== y ? (j = g.action?.type === "form" && /* @__PURE__ */ _("div", {
|
|
2746
2746
|
className: "zv6sjd7",
|
|
2747
|
-
children: /* @__PURE__ */ b
|
|
2747
|
+
children: /* @__PURE__ */ _(b, { children: /* @__PURE__ */ _(Je, {
|
|
2748
2748
|
collection_id: g.action.collectionKey,
|
|
2749
2749
|
formVariant: g.action.formVariant,
|
|
2750
2750
|
theme: Xe,
|
|
@@ -2761,7 +2761,7 @@ var ve = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, ye = /(?:^|\s)(
|
|
|
2761
2761
|
text: g.action.label || "Submit",
|
|
2762
2762
|
styles: g.action.fullWidth && (g.action.formVariant ?? "default") === "default" ? "zv6sjdb" : Ze[T]
|
|
2763
2763
|
},
|
|
2764
|
-
workspace_id:
|
|
2764
|
+
workspace_id: y,
|
|
2765
2765
|
containerStyles: "zv6sjd6",
|
|
2766
2766
|
preview: h,
|
|
2767
2767
|
onSuccess: () => {
|
|
@@ -2771,26 +2771,26 @@ var ve = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, ye = /(?:^|\s)(
|
|
|
2771
2771
|
});
|
|
2772
2772
|
}
|
|
2773
2773
|
}) })
|
|
2774
|
-
}), o[14] = T, o[15] = g.action, o[16] = h, o[17] = p, o[18] = u, o[19] =
|
|
2774
|
+
}), o[14] = T, o[15] = g.action, o[16] = h, o[17] = p, o[18] = u, o[19] = y, o[20] = j) : j = o[20];
|
|
2775
2775
|
let M;
|
|
2776
|
-
o[21] !== g.action || o[22] !==
|
|
2776
|
+
o[21] !== g.action || o[22] !== x || o[23] !== w || o[24] !== m ? (M = g.action?.type === "redirect" && /* @__PURE__ */ v(te, { children: [g.action.copyValue && /* @__PURE__ */ v("button", {
|
|
2777
2777
|
type: "button",
|
|
2778
2778
|
className: "zv6sjdd",
|
|
2779
2779
|
onClick: w,
|
|
2780
|
-
children: [/* @__PURE__ */
|
|
2780
|
+
children: [/* @__PURE__ */ _("span", {
|
|
2781
2781
|
className: "zv6sjde",
|
|
2782
2782
|
children: g.action.copyValue
|
|
2783
|
-
}),
|
|
2783
|
+
}), _(x ? re : ie, {
|
|
2784
2784
|
size: 18,
|
|
2785
2785
|
className: "zv6sjdf"
|
|
2786
2786
|
})]
|
|
2787
|
-
}), /* @__PURE__ */
|
|
2787
|
+
}), /* @__PURE__ */ _(e, {
|
|
2788
2788
|
className: "zv6sjdc",
|
|
2789
2789
|
onClick: () => m?.(),
|
|
2790
2790
|
children: g.action.label || "Button"
|
|
2791
|
-
})] }), o[21] = g.action, o[22] =
|
|
2791
|
+
})] }), o[21] = g.action, o[22] = x, o[23] = w, o[24] = m, o[25] = M) : M = o[25];
|
|
2792
2792
|
let N;
|
|
2793
|
-
return o[26] !== D || o[27] !== O || o[28] !== k || o[29] !== A || o[30] !== j || o[31] !== M ? (N = /* @__PURE__ */
|
|
2793
|
+
return o[26] !== D || o[27] !== O || o[28] !== k || o[29] !== A || o[30] !== j || o[31] !== M ? (N = /* @__PURE__ */ v("div", {
|
|
2794
2794
|
className: D,
|
|
2795
2795
|
style: O,
|
|
2796
2796
|
children: [
|