@levo-so/site-runtime 0.3.19 → 0.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BillingStep-ByiYjJ0S.js +251 -0
- package/BookingCard-DdwLHVGw.js +816 -0
- package/CollectionLabel-CmUFfc_7.js +35 -0
- package/DateTimeWidget-Bk2tk_CT.js +254 -0
- package/{KBChatWidget-GRi6sLpp.js → KBChatWidget-BXRRgelS.js} +223 -223
- package/PhoneWidget-FWE3jD_L.js +97 -0
- package/{Popover-C29yJ7rz.js → Popover-MSrVDAzg.js} +7 -7
- package/PopupBody-DWM55Zh5-B3ysApDM.js +158 -0
- package/PopupDialog-DwAAJ8JS-DkxjZaJL.js +260 -0
- package/PopupRenderer-BVtV4b9I-Dot4Syse.js +207 -0
- package/{RichTextWidget-DfakML79.js → RichTextWidget-KnIKESAD.js} +189 -190
- package/{RteThemeProvider-BQmfSXSl.js → RteThemeProvider-DtTXGcCT.js} +2 -3
- package/Sonner-BsE4Y_t4.js +21 -0
- package/blog-content.js +71 -72
- package/dist-BVFCdirT.js +4471 -0
- package/dist-DEXGyFeH.js +376 -0
- package/index.d.ts +21 -11
- package/index.js +1702 -1390
- package/{themeVars.cssm-ByhhC2Jm.js → inlineBaseTheme-DcNdMEYp.js} +35 -5
- package/{inlineCollectionTheme-CWcMCUti.js → inlineCollectionTheme-DjXuH3bK.js} +1 -1
- package/{inlineRteTheme-CRPtkNXy.js → inlineRteTheme-BYGIJM7P.js} +1 -1
- package/{kbChat-a2dXSeRc.js → kbChat-eFsau7hG.js} +27 -27
- package/package.json +23 -23
- package/{pillChrome-CEpWGNZB.js → pillChrome-Dy3ApFI5.js} +5 -5
- package/popups.js +1 -1
- package/{react-Cj_U6VZQ.js → react-CENbCy5d.js} +6 -5
- package/script.esm-D4nvz3-k.js +62 -0
- package/script.esm-uVCZU25S.js +62 -0
- package/start.js +1 -1
- package/styles.css +1 -1
- package/theme.cssm-iXnQwMCp.js +238 -0
- package/CollectionField-C-6a1ud4.js +0 -270
- package/CollectionInput-BJ__qcbk.js +0 -147
- package/DateTimeWidget-U3lD0q1q.js +0 -255
- package/Dialog-dT7y641z.js +0 -130
- package/LevoProvider-Bsjkcwc8.js +0 -20
- package/PhoneWidget-DQQa4bL6.js +0 -99
- package/PopupBody-BI-MJqmd-DgTQEzda.js +0 -159
- package/PopupRenderer-D66Gx63H-Cd9xJv33.js +0 -388
- package/ThemeProvider-DutrjSTF.js +0 -116
- package/Tooltip-CQB0LyxK.js +0 -67
- package/VerifyButton-BUT70lgz.js +0 -192
- package/createThemeExtension-4AUn51iJ.js +0 -15
- package/dist-6AIgW_iB.js +0 -79
- package/dist-CEdznbFW.js +0 -3668
- package/inlineBaseTheme-BB9e6h5f.js +0 -9
- package/popupState-JmpeKzgM-D_77LiAa.js +0 -229
- package/react-B9yvlbH0.js +0 -74
- package/theme.cssm-DUzmx76l.js +0 -4
- package/usePopupRedirect-CAAdcpaW-Ddjyf4KK.js +0 -82
- /package/{content.cssm-XdMsTGIB.js → content.cssm-D_LSloGW.js} +0 -0
- /package/{es-ByBbirnH.js → es-CK20DkgT.js} +0 -0
- /package/{rolldown-runtime-CAFD8bLK.js → rolldown-runtime-Dy4uBu1J.js} +0 -0
- /package/{routes-CyKmkoRM.js → routes-DO1BLfh9.js} +0 -0
- /package/{rteTheme.cssm-W4gTOijw.js → rteTheme.cssm-BRxusHY4.js} +0 -0
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { r as e, t } from "./CollectionField-C-6a1ud4.js";
|
|
2
|
-
import { r as n } from "./ThemeProvider-DutrjSTF.js";
|
|
3
|
-
import { t as ee } from "./CollectionInput-BJ__qcbk.js";
|
|
4
|
-
import { a as r, i, n as a, r as o, t as s } from "./Popover-C29yJ7rz.js";
|
|
5
|
-
import { FieldInterfaces as c } from "@levo-so/core";
|
|
6
|
-
import l from "dayjs";
|
|
7
|
-
import { useController as u } from "react-hook-form";
|
|
8
|
-
import { c as te } from "react/compiler-runtime";
|
|
9
|
-
import d from "clsx";
|
|
10
|
-
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
|
-
import { useEffect as m, useRef as h, useState as ne } from "react";
|
|
12
|
-
import { IconCalendar as g, IconChevronDown as _, IconChevronLeft as v, IconChevronRight as y, IconX as re } from "@tabler/icons-react";
|
|
13
|
-
import { DayPicker as ie, getDefaultClassNames as b } from "react-day-picker";
|
|
14
|
-
//#region ../../libraries/react-collection/dist/widgets/dateTimeWidget/DateTimeWidget.cssm.js
|
|
15
|
-
var ae = "rpx4b10", oe = "rpx4b11", se = "rpx4b12", ce = "rpx4b14 _6o7s4x0", le = "rpx4b15", ue = "rpx4b17", de = "rpx4b18", fe = "rpx4b19", pe = "rpx4b1a", me = "rpx4b1b", he = "rpx4b1c", ge = "rpx4b1d", _e = "rpx4b1e", ve = "rpx4b1f", ye = "rpx4b1g", be = "rpx4b1h", xe = "rpx4b1i", Se = "rpx4b1j", Ce = "rpx4b1k", we = "rpx4b1l", Te = "rpx4b1m", Ee = "rpx4b1n", De = "rpx4b1o", Oe = "rpx4b1p", ke = "rpx4b1q", Ae = "rpx4b1r", je = "rpx4b1s", Me = "rpx4b1t", Ne = "rpx4b1u", Pe = "rpx4b1v", Fe = (e) => {
|
|
16
|
-
if (e) {
|
|
17
|
-
let t = new Date(e);
|
|
18
|
-
return Number.isNaN(t.getTime()) ? null : t;
|
|
19
|
-
}
|
|
20
|
-
return null;
|
|
21
|
-
}, Ie = (e, t) => e ? t ? l(e).format("D MMMM, YYYY — h:mm A") : l(e).format("D MMMM, YYYY") : "", Le = (e) => {
|
|
22
|
-
let t = te(19), { value: n, onChange: ee } = e, [r, i] = ne(-1), a = h(null), o;
|
|
23
|
-
t[0] === n ? o = t[1] : (o = () => {
|
|
24
|
-
if (!n) return -1;
|
|
25
|
-
let e = n.getHours(), t = n.getMinutes();
|
|
26
|
-
return e * 4 + Math.floor(t / 15);
|
|
27
|
-
}, t[0] = n, t[1] = o);
|
|
28
|
-
let s = o, c, l;
|
|
29
|
-
t[2] === s ? (c = t[3], l = t[4]) : (c = () => {
|
|
30
|
-
let e = s();
|
|
31
|
-
e >= 0 && a.current && a.current.querySelector(`[data-time-index="${e}"]`)?.scrollIntoView({
|
|
32
|
-
block: "center",
|
|
33
|
-
behavior: "smooth"
|
|
34
|
-
});
|
|
35
|
-
}, l = [s], t[2] = s, t[3] = c, t[4] = l), m(c, l);
|
|
36
|
-
let u;
|
|
37
|
-
t[5] !== ee || t[6] !== n ? (u = (e, t) => {
|
|
38
|
-
let r = t * 15, a = n ? new Date(n) : /* @__PURE__ */ new Date();
|
|
39
|
-
a.setHours(e, r, 0, 0), ee(a), i(e * 4 + t);
|
|
40
|
-
}, t[5] = ee, t[6] = n, t[7] = u) : u = t[7];
|
|
41
|
-
let g = u, _;
|
|
42
|
-
t[8] !== r || t[9] !== g ? (_ = (e) => {
|
|
43
|
-
e.stopPropagation();
|
|
44
|
-
let t = (e) => {
|
|
45
|
-
let t = a.current?.querySelector(`[data-time-index="${e}"]`);
|
|
46
|
-
t?.scrollIntoView({
|
|
47
|
-
block: "center",
|
|
48
|
-
behavior: "smooth"
|
|
49
|
-
}), t?.focus();
|
|
50
|
-
};
|
|
51
|
-
bb48: switch (e.key) {
|
|
52
|
-
case "ArrowUp": {
|
|
53
|
-
e.preventDefault();
|
|
54
|
-
let n = r - 1 < 0 ? 95 : r - 1;
|
|
55
|
-
i(n), t(n);
|
|
56
|
-
break bb48;
|
|
57
|
-
}
|
|
58
|
-
case "ArrowDown": {
|
|
59
|
-
e.preventDefault();
|
|
60
|
-
let n = r + 1 >= 96 ? 0 : r + 1;
|
|
61
|
-
i(n), t(n);
|
|
62
|
-
break bb48;
|
|
63
|
-
}
|
|
64
|
-
case "Enter":
|
|
65
|
-
e.preventDefault(), r >= 0 && g(Math.floor(r / 4), r % 4);
|
|
66
|
-
break bb48;
|
|
67
|
-
case "Escape": i(-1);
|
|
68
|
-
}
|
|
69
|
-
}, t[8] = r, t[9] = g, t[10] = _) : _ = t[10];
|
|
70
|
-
let v = _, y = s(), re;
|
|
71
|
-
t[11] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ f("div", {
|
|
72
|
-
className: Me,
|
|
73
|
-
children: "Time"
|
|
74
|
-
}), t[11] = re) : re = t[11];
|
|
75
|
-
let ie;
|
|
76
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (ie = Array.from({ length: 24 }), t[12] = ie) : ie = t[12];
|
|
77
|
-
let b;
|
|
78
|
-
t[13] !== y || t[14] !== g ? (b = ie.map((e, t) => {
|
|
79
|
-
let n = t === 0 ? 12 : t > 12 ? t - 12 : t, ee = t >= 12 ? "PM" : "AM";
|
|
80
|
-
return Array.from({ length: 4 }).map((e, r) => {
|
|
81
|
-
let i = r * 15, a = t * 4 + r, o = a === y, s = `${n}:${i.toString().padStart(2, "0")} ${ee}`;
|
|
82
|
-
return /* @__PURE__ */ f("button", {
|
|
83
|
-
type: "button",
|
|
84
|
-
role: "option",
|
|
85
|
-
"aria-selected": o,
|
|
86
|
-
"data-time-index": a,
|
|
87
|
-
className: d(Pe, o && "rpx4b1w"),
|
|
88
|
-
onClick: () => g(t, r),
|
|
89
|
-
tabIndex: o ? 0 : -1,
|
|
90
|
-
children: s
|
|
91
|
-
}, a);
|
|
92
|
-
});
|
|
93
|
-
}), t[13] = y, t[14] = g, t[15] = b) : b = t[15];
|
|
94
|
-
let ae;
|
|
95
|
-
return t[16] !== v || t[17] !== b ? (ae = /* @__PURE__ */ p("div", {
|
|
96
|
-
className: je,
|
|
97
|
-
children: [re, /* @__PURE__ */ f("div", {
|
|
98
|
-
ref: a,
|
|
99
|
-
className: Ne,
|
|
100
|
-
onKeyDown: v,
|
|
101
|
-
tabIndex: 0,
|
|
102
|
-
role: "listbox",
|
|
103
|
-
"aria-label": "Select time",
|
|
104
|
-
children: b
|
|
105
|
-
})]
|
|
106
|
-
}), t[16] = v, t[17] = b, t[18] = ae) : ae = t[18], ae;
|
|
107
|
-
}, Re = (l) => {
|
|
108
|
-
let m = te(160), { field: h } = l, { key: _, label: v, helper_text: y, readonly: je } = h, Me = _ === void 0 ? "" : _, Ne = v === void 0 ? "" : v, Pe = y === void 0 ? "" : y, Re = je === void 0 ? !1 : je, x = Me, [Be, Ve] = ne(!1), S;
|
|
109
|
-
m[0] === h ? S = m[1] : (S = e(h), m[0] = h, m[1] = S);
|
|
110
|
-
let He;
|
|
111
|
-
m[2] !== x || m[3] !== S ? (He = {
|
|
112
|
-
name: x,
|
|
113
|
-
rules: S
|
|
114
|
-
}, m[2] = x, m[3] = S, m[4] = He) : He = m[4];
|
|
115
|
-
let { field: Ue, fieldState: We } = u(He), C, w, T, E, D;
|
|
116
|
-
m[5] === Ue ? (C = m[6], w = m[7], T = m[8], E = m[9], D = m[10]) : ({value: D, onBlur: C, onChange: w, ref: T, ...E} = Ue, m[5] = Ue, m[6] = C, m[7] = w, m[8] = T, m[9] = E, m[10] = D);
|
|
117
|
-
let Ge = !!h?.required, Ke = We?.error?.message, O = h?.field_interface === c.DateTimeWidget, k, qe;
|
|
118
|
-
m[11] !== O || m[12] !== D ? (k = Fe(D), qe = Ie(k, O), m[11] = O, m[12] = D, m[13] = k, m[14] = qe) : (k = m[13], qe = m[14]);
|
|
119
|
-
let Je = qe, A, j, M, Ye, N, P, F, I, L, R, z, B, V, H, U, W, G, K, q, Xe, Ze, Qe, $e, et, tt, nt, J, Y, rt, X, it, at, ot, st, ct, Z, lt, ut, dt, ft, pt, Q, mt;
|
|
120
|
-
if (m[15] !== Je || m[16] !== O || m[17] !== Ke || m[18] !== Pe || m[19] !== Be || m[20] !== Ge || m[21] !== Ne || m[22] !== x || m[23] !== C || m[24] !== w || m[25] !== Re || m[26] !== T || m[27] !== E || m[28] !== k || m[29] !== D) {
|
|
121
|
-
let e = b(), n;
|
|
122
|
-
m[73] !== O || m[74] !== w || m[75] !== k ? (n = (e) => {
|
|
123
|
-
e && (O && k && e.setHours(k.getHours(), k.getMinutes(), 0, 0), w(e.toISOString()), O || Ve(!1));
|
|
124
|
-
}, m[73] = O, m[74] = w, m[75] = k, m[76] = n) : n = m[76];
|
|
125
|
-
let c = n, l;
|
|
126
|
-
m[77] === w ? l = m[78] : (l = (e) => {
|
|
127
|
-
w(e.toISOString());
|
|
128
|
-
}, m[77] = w, m[78] = l), F = l;
|
|
129
|
-
let u;
|
|
130
|
-
m[79] === w ? u = m[80] : (u = (e) => {
|
|
131
|
-
e.preventDefault(), e.stopPropagation(), w(null);
|
|
132
|
-
}, m[79] = w, m[80] = u);
|
|
133
|
-
let te = u;
|
|
134
|
-
P = t, lt = Pe, ut = Re, dt = Ke, ft = x, pt = Ge, Q = Ne, N = a, st = Be, ct = Ve;
|
|
135
|
-
let p;
|
|
136
|
-
m[81] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ f(g, { size: 18 }), m[81] = p) : p = m[81];
|
|
137
|
-
let h;
|
|
138
|
-
m[82] !== te || m[83] !== D ? (h = D ? /* @__PURE__ */ f("button", {
|
|
139
|
-
type: "button",
|
|
140
|
-
onClick: te,
|
|
141
|
-
"aria-label": "Clear date",
|
|
142
|
-
className: se,
|
|
143
|
-
children: /* @__PURE__ */ f(re, { size: 14 })
|
|
144
|
-
}) : void 0, m[82] = te, m[83] = D, m[84] = h) : h = m[84], m[85] !== Je || m[86] !== x || m[87] !== C || m[88] !== T || m[89] !== E || m[90] !== h ? (Z = /* @__PURE__ */ f(r.Trigger, { render: /* @__PURE__ */ f("div", {
|
|
145
|
-
className: ae,
|
|
146
|
-
children: /* @__PURE__ */ f(ee, {
|
|
147
|
-
id: x,
|
|
148
|
-
ref: T,
|
|
149
|
-
value: Je,
|
|
150
|
-
readOnly: !0,
|
|
151
|
-
leftIcon: p,
|
|
152
|
-
rightIcon: h,
|
|
153
|
-
className: oe,
|
|
154
|
-
autoComplete: "off",
|
|
155
|
-
onBlur: C,
|
|
156
|
-
placeholder: "Select date",
|
|
157
|
-
...E
|
|
158
|
-
})
|
|
159
|
-
}) }), m[85] = Je, m[86] = x, m[87] = C, m[88] = T, m[89] = E, m[90] = h, m[91] = Z) : Z = m[91], Ye = i, M = o, at = "start", ot = 4, j = s, it = ce;
|
|
160
|
-
let ne = O && "rpx4b16";
|
|
161
|
-
m[92] === ne ? X = m[93] : (X = d(le, ne), m[92] = ne, m[93] = X), A = ie, $e = "single", et = k || void 0, tt = c, nt = "dropdown", m[94] === Symbol.for("react.memo_cache_sentinel") ? (J = new Date((/* @__PURE__ */ new Date()).getFullYear() - 100, 0), m[94] = J) : J = m[94], m[95] === Symbol.for("react.memo_cache_sentinel") ? (Y = new Date((/* @__PURE__ */ new Date()).getFullYear() + 10, 11), m[95] = Y) : Y = m[95], rt = !0, mt = d(e.root, de), I = fe, L = pe, R = d(e.month_caption, me), z = d(he, e.dropdowns), B = d(_e, e.dropdown), V = d(ge, e.dropdown_root), H = d(ve, e.caption_label), U = d(ye, e.nav), W = d(be, e.button_previous), G = d(xe, e.button_next), K = d(Se, e.weekdays), q = d(Ce, e.weekday), Xe = d(we, e.week), Ze = d(Te, e.day), Qe = d(Ee, e.day_button), m[15] = Je, m[16] = O, m[17] = Ke, m[18] = Pe, m[19] = Be, m[20] = Ge, m[21] = Ne, m[22] = x, m[23] = C, m[24] = w, m[25] = Re, m[26] = T, m[27] = E, m[28] = k, m[29] = D, m[30] = A, m[31] = j, m[32] = M, m[33] = Ye, m[34] = N, m[35] = P, m[36] = F, m[37] = I, m[38] = L, m[39] = R, m[40] = z, m[41] = B, m[42] = V, m[43] = H, m[44] = U, m[45] = W, m[46] = G, m[47] = K, m[48] = q, m[49] = Xe, m[50] = Ze, m[51] = Qe, m[52] = $e, m[53] = et, m[54] = tt, m[55] = nt, m[56] = J, m[57] = Y, m[58] = rt, m[59] = X, m[60] = it, m[61] = at, m[62] = ot, m[63] = st, m[64] = ct, m[65] = Z, m[66] = lt, m[67] = ut, m[68] = dt, m[69] = ft, m[70] = pt, m[71] = Q, m[72] = mt;
|
|
162
|
-
} else A = m[30], j = m[31], M = m[32], Ye = m[33], N = m[34], P = m[35], F = m[36], I = m[37], L = m[38], R = m[39], z = m[40], B = m[41], V = m[42], H = m[43], U = m[44], W = m[45], G = m[46], K = m[47], q = m[48], Xe = m[49], Ze = m[50], Qe = m[51], $e = m[52], et = m[53], tt = m[54], nt = m[55], J = m[56], Y = m[57], rt = m[58], X = m[59], it = m[60], at = m[61], ot = m[62], st = m[63], ct = m[64], Z = m[65], lt = m[66], ut = m[67], dt = m[68], ft = m[69], pt = m[70], Q = m[71], mt = m[72];
|
|
163
|
-
let ht;
|
|
164
|
-
m[96] !== I || m[97] !== L || m[98] !== R || m[99] !== z || m[100] !== B || m[101] !== V || m[102] !== H || m[103] !== U || m[104] !== W || m[105] !== G || m[106] !== K || m[107] !== q || m[108] !== Xe || m[109] !== Ze || m[110] !== Qe || m[111] !== mt ? (ht = {
|
|
165
|
-
root: mt,
|
|
166
|
-
months: I,
|
|
167
|
-
month: L,
|
|
168
|
-
month_caption: R,
|
|
169
|
-
dropdowns: z,
|
|
170
|
-
dropdown: B,
|
|
171
|
-
dropdown_root: V,
|
|
172
|
-
caption_label: H,
|
|
173
|
-
nav: U,
|
|
174
|
-
button_previous: W,
|
|
175
|
-
button_next: G,
|
|
176
|
-
weekdays: K,
|
|
177
|
-
weekday: q,
|
|
178
|
-
week: Xe,
|
|
179
|
-
day: Ze,
|
|
180
|
-
day_button: Qe,
|
|
181
|
-
selected: De,
|
|
182
|
-
today: Oe,
|
|
183
|
-
outside: ke,
|
|
184
|
-
disabled: Ae
|
|
185
|
-
}, m[96] = I, m[97] = L, m[98] = R, m[99] = z, m[100] = B, m[101] = V, m[102] = H, m[103] = U, m[104] = W, m[105] = G, m[106] = K, m[107] = q, m[108] = Xe, m[109] = Ze, m[110] = Qe, m[111] = mt, m[112] = ht) : ht = m[112];
|
|
186
|
-
let gt;
|
|
187
|
-
m[113] === Symbol.for("react.memo_cache_sentinel") ? (gt = { Chevron: ze }, m[113] = gt) : gt = m[113];
|
|
188
|
-
let _t;
|
|
189
|
-
m[114] !== A || m[115] !== $e || m[116] !== et || m[117] !== tt || m[118] !== nt || m[119] !== J || m[120] !== Y || m[121] !== rt || m[122] !== ht ? (_t = /* @__PURE__ */ f(A, {
|
|
190
|
-
mode: $e,
|
|
191
|
-
selected: et,
|
|
192
|
-
onSelect: tt,
|
|
193
|
-
captionLayout: nt,
|
|
194
|
-
startMonth: J,
|
|
195
|
-
endMonth: Y,
|
|
196
|
-
showOutsideDays: rt,
|
|
197
|
-
classNames: ht,
|
|
198
|
-
components: gt
|
|
199
|
-
}), m[114] = A, m[115] = $e, m[116] = et, m[117] = tt, m[118] = nt, m[119] = J, m[120] = Y, m[121] = rt, m[122] = ht, m[123] = _t) : _t = m[123];
|
|
200
|
-
let vt;
|
|
201
|
-
m[124] !== O || m[125] !== F || m[126] !== k ? (vt = O && /* @__PURE__ */ f(Le, {
|
|
202
|
-
value: k,
|
|
203
|
-
onChange: F
|
|
204
|
-
}), m[124] = O, m[125] = F, m[126] = k, m[127] = vt) : vt = m[127];
|
|
205
|
-
let yt;
|
|
206
|
-
m[128] !== X || m[129] !== _t || m[130] !== vt ? (yt = /* @__PURE__ */ p("div", {
|
|
207
|
-
className: X,
|
|
208
|
-
children: [_t, vt]
|
|
209
|
-
}), m[128] = X, m[129] = _t, m[130] = vt, m[131] = yt) : yt = m[131];
|
|
210
|
-
let bt;
|
|
211
|
-
m[132] === Symbol.for("react.memo_cache_sentinel") ? (bt = /* @__PURE__ */ f("div", {
|
|
212
|
-
className: ue,
|
|
213
|
-
children: /* @__PURE__ */ f(n, {
|
|
214
|
-
variant: "ghost",
|
|
215
|
-
size: "sm",
|
|
216
|
-
onClick: () => Ve(!1),
|
|
217
|
-
children: "Done"
|
|
218
|
-
})
|
|
219
|
-
}), m[132] = bt) : bt = m[132];
|
|
220
|
-
let xt;
|
|
221
|
-
m[133] !== j || m[134] !== it || m[135] !== yt ? (xt = /* @__PURE__ */ p(j, {
|
|
222
|
-
className: it,
|
|
223
|
-
children: [yt, bt]
|
|
224
|
-
}), m[133] = j, m[134] = it, m[135] = yt, m[136] = xt) : xt = m[136];
|
|
225
|
-
let St;
|
|
226
|
-
m[137] !== M || m[138] !== at || m[139] !== ot || m[140] !== xt ? (St = /* @__PURE__ */ f(M, {
|
|
227
|
-
align: at,
|
|
228
|
-
sideOffset: ot,
|
|
229
|
-
children: xt
|
|
230
|
-
}), m[137] = M, m[138] = at, m[139] = ot, m[140] = xt, m[141] = St) : St = m[141];
|
|
231
|
-
let Ct;
|
|
232
|
-
m[142] !== Ye || m[143] !== St ? (Ct = /* @__PURE__ */ f(Ye, { children: St }), m[142] = Ye, m[143] = St, m[144] = Ct) : Ct = m[144];
|
|
233
|
-
let $;
|
|
234
|
-
m[145] !== N || m[146] !== st || m[147] !== ct || m[148] !== Z || m[149] !== Ct ? ($ = /* @__PURE__ */ p(N, {
|
|
235
|
-
open: st,
|
|
236
|
-
onOpenChange: ct,
|
|
237
|
-
children: [Z, Ct]
|
|
238
|
-
}), m[145] = N, m[146] = st, m[147] = ct, m[148] = Z, m[149] = Ct, m[150] = $) : $ = m[150];
|
|
239
|
-
let wt;
|
|
240
|
-
return m[151] !== P || m[152] !== lt || m[153] !== ut || m[154] !== dt || m[155] !== ft || m[156] !== pt || m[157] !== Q || m[158] !== $ ? (wt = /* @__PURE__ */ f(P, {
|
|
241
|
-
helperText: lt,
|
|
242
|
-
readOnly: ut,
|
|
243
|
-
error: dt,
|
|
244
|
-
htmlFor: ft,
|
|
245
|
-
isRequired: pt,
|
|
246
|
-
label: Q,
|
|
247
|
-
children: $
|
|
248
|
-
}), m[151] = P, m[152] = lt, m[153] = ut, m[154] = dt, m[155] = ft, m[156] = pt, m[157] = Q, m[158] = $, m[159] = wt) : wt = m[159], wt;
|
|
249
|
-
};
|
|
250
|
-
function ze(e) {
|
|
251
|
-
let { orientation: t } = e;
|
|
252
|
-
return t === "left" ? /* @__PURE__ */ f(v, { size: 16 }) : t === "right" ? /* @__PURE__ */ f(y, { size: 16 }) : /* @__PURE__ */ f(_, { size: 14 });
|
|
253
|
-
}
|
|
254
|
-
//#endregion
|
|
255
|
-
export { Re as default };
|
package/Dialog-dT7y641z.js
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { r 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, jsxs as a } from "react/jsx-runtime";
|
|
5
|
-
import { IconX as o } from "@tabler/icons-react";
|
|
6
|
-
import { Dialog as s } from "@base-ui/react/dialog";
|
|
7
|
-
//#region ../../libraries/levocn/dist/ui/dialog/Dialog.cssm.js
|
|
8
|
-
var c = "ch8h0x0", l = "ch8h0x1", u = "ch8h0x2", d = "ch8h0x3", f = "ch8h0x5", p = "ch8h0x6", m = (e) => {
|
|
9
|
-
let t = n(4), r;
|
|
10
|
-
t[0] === e ? r = t[1] : ({...r} = e, t[0] = e, t[1] = r);
|
|
11
|
-
let a;
|
|
12
|
-
return t[2] === r ? a = t[3] : (a = /* @__PURE__ */ i(s.Root, {
|
|
13
|
-
"data-slot": "dialog",
|
|
14
|
-
...r
|
|
15
|
-
}), t[2] = r, t[3] = a), a;
|
|
16
|
-
}, h = (e) => {
|
|
17
|
-
let r = n(5), a;
|
|
18
|
-
r[0] === e ? a = r[1] : ({...a} = e, r[0] = e, r[1] = a);
|
|
19
|
-
let { portalRef: o } = t(), c;
|
|
20
|
-
return r[2] !== o || r[3] !== a ? (c = /* @__PURE__ */ i(s.Portal, {
|
|
21
|
-
container: o,
|
|
22
|
-
...a
|
|
23
|
-
}), r[2] = o, r[3] = a, r[4] = c) : c = r[4], c;
|
|
24
|
-
}, g = (e) => {
|
|
25
|
-
let t = n(8), a, o;
|
|
26
|
-
t[0] === e ? (a = t[1], o = t[2]) : ({className: a, ...o} = e, t[0] = e, t[1] = a, t[2] = o);
|
|
27
|
-
let c;
|
|
28
|
-
t[3] === a ? c = t[4] : (c = r(l, a), t[3] = a, t[4] = c);
|
|
29
|
-
let u;
|
|
30
|
-
return t[5] !== o || t[6] !== c ? (u = /* @__PURE__ */ i(s.Viewport, {
|
|
31
|
-
"data-slot": "dialog-viewport",
|
|
32
|
-
className: c,
|
|
33
|
-
...o
|
|
34
|
-
}), t[5] = o, t[6] = c, t[7] = u) : u = t[7], u;
|
|
35
|
-
}, _ = (t) => {
|
|
36
|
-
let r = n(10), a, o, c;
|
|
37
|
-
r[0] === t ? (a = r[1], o = r[2], c = r[3]) : ({variant: c, size: o, ...a} = t, r[0] = t, r[1] = a, r[2] = o, r[3] = c);
|
|
38
|
-
let l;
|
|
39
|
-
r[4] !== o || r[5] !== c ? (l = /* @__PURE__ */ i(e, {
|
|
40
|
-
variant: c,
|
|
41
|
-
size: o
|
|
42
|
-
}), r[4] = o, r[5] = c, r[6] = l) : l = r[6];
|
|
43
|
-
let u;
|
|
44
|
-
return r[7] !== a || r[8] !== l ? (u = /* @__PURE__ */ i(s.Close, {
|
|
45
|
-
"data-slot": "dialog-close",
|
|
46
|
-
render: l,
|
|
47
|
-
...a
|
|
48
|
-
}), r[7] = a, r[8] = l, r[9] = u) : u = r[9], u;
|
|
49
|
-
}, v = (e) => {
|
|
50
|
-
let t = n(8), a, o;
|
|
51
|
-
t[0] === e ? (a = t[1], o = t[2]) : ({className: a, ...o} = e, t[0] = e, t[1] = a, t[2] = o);
|
|
52
|
-
let l;
|
|
53
|
-
t[3] === a ? l = t[4] : (l = r(c, a), t[3] = a, t[4] = l);
|
|
54
|
-
let u;
|
|
55
|
-
return t[5] !== o || t[6] !== l ? (u = /* @__PURE__ */ i(s.Backdrop, {
|
|
56
|
-
"data-slot": "dialog-backdrop",
|
|
57
|
-
className: l,
|
|
58
|
-
...o
|
|
59
|
-
}), t[5] = o, t[6] = l, t[7] = u) : u = t[7], u;
|
|
60
|
-
}, y = (t) => {
|
|
61
|
-
let c = n(14), l, d, f, p;
|
|
62
|
-
c[0] === t ? (l = c[1], d = c[2], f = c[3], p = c[4]) : ({className: d, children: l, showCloseButton: p, ...f} = t, c[0] = t, c[1] = l, c[2] = d, c[3] = f, c[4] = p);
|
|
63
|
-
let m = p === void 0 ? !0 : p, h;
|
|
64
|
-
c[5] === d ? h = c[6] : (h = r(u, d), c[5] = d, c[6] = h);
|
|
65
|
-
let g;
|
|
66
|
-
c[7] === m ? g = c[8] : (g = m && /* @__PURE__ */ i(s.Close, {
|
|
67
|
-
"data-slot": "dialog-close",
|
|
68
|
-
render: /* @__PURE__ */ i(e, {
|
|
69
|
-
variant: "ghost",
|
|
70
|
-
size: "icon-sm",
|
|
71
|
-
className: "ch8h0x7",
|
|
72
|
-
"aria-label": "Close"
|
|
73
|
-
}),
|
|
74
|
-
children: /* @__PURE__ */ i(o, { size: 16 })
|
|
75
|
-
}), c[7] = m, c[8] = g);
|
|
76
|
-
let _;
|
|
77
|
-
return c[9] !== l || c[10] !== f || c[11] !== h || c[12] !== g ? (_ = /* @__PURE__ */ a(s.Popup, {
|
|
78
|
-
"data-slot": "dialog-popup",
|
|
79
|
-
className: h,
|
|
80
|
-
...f,
|
|
81
|
-
children: [l, g]
|
|
82
|
-
}), c[9] = l, c[10] = f, c[11] = h, c[12] = g, c[13] = _) : _ = c[13], _;
|
|
83
|
-
}, b = (e) => {
|
|
84
|
-
let t = n(8), a, o;
|
|
85
|
-
t[0] === e ? (a = t[1], o = t[2]) : ({className: a, ...o} = e, t[0] = e, t[1] = a, t[2] = o);
|
|
86
|
-
let s;
|
|
87
|
-
t[3] === a ? s = t[4] : (s = r(d, a), t[3] = a, t[4] = s);
|
|
88
|
-
let c;
|
|
89
|
-
return t[5] !== o || t[6] !== s ? (c = /* @__PURE__ */ i("div", {
|
|
90
|
-
"data-slot": "dialog-header",
|
|
91
|
-
className: s,
|
|
92
|
-
...o
|
|
93
|
-
}), t[5] = o, t[6] = s, t[7] = c) : c = t[7], c;
|
|
94
|
-
}, x = (e) => {
|
|
95
|
-
let t = n(8), a, o;
|
|
96
|
-
t[0] === e ? (a = t[1], o = t[2]) : ({className: a, ...o} = e, t[0] = e, t[1] = a, t[2] = o);
|
|
97
|
-
let c;
|
|
98
|
-
t[3] === a ? c = t[4] : (c = r(f, a), t[3] = a, t[4] = c);
|
|
99
|
-
let l;
|
|
100
|
-
return t[5] !== o || t[6] !== c ? (l = /* @__PURE__ */ i(s.Title, {
|
|
101
|
-
"data-slot": "dialog-title",
|
|
102
|
-
className: c,
|
|
103
|
-
...o
|
|
104
|
-
}), t[5] = o, t[6] = c, t[7] = l) : l = t[7], l;
|
|
105
|
-
}, S = (e) => {
|
|
106
|
-
let t = n(8), a, o;
|
|
107
|
-
t[0] === e ? (a = t[1], o = t[2]) : ({className: a, ...o} = e, t[0] = e, t[1] = a, t[2] = o);
|
|
108
|
-
let c;
|
|
109
|
-
t[3] === a ? c = t[4] : (c = r(p, a), t[3] = a, t[4] = c);
|
|
110
|
-
let l;
|
|
111
|
-
return t[5] !== o || t[6] !== c ? (l = /* @__PURE__ */ i(s.Description, {
|
|
112
|
-
"data-slot": "dialog-description",
|
|
113
|
-
className: c,
|
|
114
|
-
...o
|
|
115
|
-
}), t[5] = o, t[6] = c, t[7] = l) : l = t[7], l;
|
|
116
|
-
}, C = (e) => {
|
|
117
|
-
let t = n(11), r, o, s, c;
|
|
118
|
-
t[0] === e ? (r = t[1], o = t[2], s = t[3], c = t[4]) : ({className: o, children: r, showCloseButton: c, ...s} = e, t[0] = e, t[1] = r, t[2] = o, t[3] = s, t[4] = c);
|
|
119
|
-
let l = c === void 0 ? !0 : c, u;
|
|
120
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ i(v, {}), t[5] = u) : u = t[5];
|
|
121
|
-
let d;
|
|
122
|
-
return t[6] !== r || t[7] !== o || t[8] !== s || t[9] !== l ? (d = /* @__PURE__ */ a(h, { children: [u, /* @__PURE__ */ i(g, { children: /* @__PURE__ */ i(y, {
|
|
123
|
-
className: o,
|
|
124
|
-
showCloseButton: l,
|
|
125
|
-
...s,
|
|
126
|
-
children: r
|
|
127
|
-
}) })] }), t[6] = r, t[7] = o, t[8] = s, t[9] = l, t[10] = d) : d = t[10], d;
|
|
128
|
-
};
|
|
129
|
-
//#endregion
|
|
130
|
-
export { _ as a, h as c, x as i, v as l, C as n, m as o, S as r, s, b as t, g as u };
|
package/LevoProvider-Bsjkcwc8.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as t, useContext as n } from "react";
|
|
4
|
-
//#region ../react/dist/providers/LevoProvider.js
|
|
5
|
-
var r = t({
|
|
6
|
-
client: null,
|
|
7
|
-
insights: null
|
|
8
|
-
}), i = ({ children: t, client: n, insights: i = null }) => /* @__PURE__ */ e(r.Provider, {
|
|
9
|
-
value: {
|
|
10
|
-
client: n,
|
|
11
|
-
insights: i
|
|
12
|
-
},
|
|
13
|
-
children: t
|
|
14
|
-
}), a = () => {
|
|
15
|
-
let e = n(r);
|
|
16
|
-
if (!e.client) throw Error("useLevo must be used within a LevoProvider. Please ensure you have wrapped your component tree with LevoProvider.");
|
|
17
|
-
return e.client;
|
|
18
|
-
}, o = () => n(r).client, s = () => n(r).insights;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { s as i, i as n, o as r, a as t };
|
package/PhoneWidget-DQQa4bL6.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
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,159 +0,0 @@
|
|
|
1
|
-
import { r as e } from "./ThemeProvider-DutrjSTF.js";
|
|
2
|
-
import { n as 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, c, d as l, f as u, g as d, h as f, i as p, l as m, m as h, n as g, o as _, p as v, r as y, s as b, t as x, u as S, v as C } from "./react-Cj_U6VZQ.js";
|
|
6
|
-
import { n as w, t as T } from "./content.cssm-XdMsTGIB.js";
|
|
7
|
-
import { t as E } from "./inlineRteTheme-CRPtkNXy.js";
|
|
8
|
-
import { c as D, g as O, h as k, i as A, m as j, r as M, u as N } from "./usePopupRedirect-CAAdcpaW-Ddjyf4KK.js";
|
|
9
|
-
import { c as P } from "react/compiler-runtime";
|
|
10
|
-
import F from "clsx";
|
|
11
|
-
import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
12
|
-
import { Suspense as z, lazy as B, useMemo as V, useState as H } from "react";
|
|
13
|
-
import { IconCheck as U, IconCopy as W } from "@tabler/icons-react";
|
|
14
|
-
import { Link as G } from "@tiptap/extension-link";
|
|
15
|
-
import { Document as K } from "@tiptap/extension-document";
|
|
16
|
-
import { TextStyle as q } from "@tiptap/extension-text-style";
|
|
17
|
-
import { Subscript as J } from "@tiptap/extension-subscript";
|
|
18
|
-
import { Superscript as Y } from "@tiptap/extension-superscript";
|
|
19
|
-
import { Typography as X } from "@tiptap/extension-typography";
|
|
20
|
-
import { UniqueID as Z } from "@tiptap/extension-unique-id";
|
|
21
|
-
//#region ../../libraries/popups/dist/PopupBody-BI-MJqmd.js
|
|
22
|
-
var Q = [
|
|
23
|
-
K,
|
|
24
|
-
_,
|
|
25
|
-
p,
|
|
26
|
-
l,
|
|
27
|
-
d,
|
|
28
|
-
m,
|
|
29
|
-
s,
|
|
30
|
-
h,
|
|
31
|
-
f,
|
|
32
|
-
b,
|
|
33
|
-
c,
|
|
34
|
-
u,
|
|
35
|
-
y,
|
|
36
|
-
G.configure({ openOnClick: !1 }),
|
|
37
|
-
q,
|
|
38
|
-
o,
|
|
39
|
-
X,
|
|
40
|
-
Y,
|
|
41
|
-
J,
|
|
42
|
-
v,
|
|
43
|
-
S.configure({ multicolor: !0 }),
|
|
44
|
-
C,
|
|
45
|
-
w,
|
|
46
|
-
Z.configure({ types: [
|
|
47
|
-
"paragraph",
|
|
48
|
-
"heading",
|
|
49
|
-
"bulletList",
|
|
50
|
-
"orderedList"
|
|
51
|
-
] })
|
|
52
|
-
], $ = (e) => g(e, Q), ee = ({ content: e, className: t, ref: n, ...r }) => {
|
|
53
|
-
let i = V(() => 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 = V(() => i ? x({
|
|
54
|
-
content: i,
|
|
55
|
-
extensions: Q
|
|
56
|
-
}) : null, [i]);
|
|
57
|
-
return a ? /* @__PURE__ */ L("div", {
|
|
58
|
-
ref: n,
|
|
59
|
-
className: F(T, t),
|
|
60
|
-
...r,
|
|
61
|
-
children: a
|
|
62
|
-
}) : null;
|
|
63
|
-
}, te = /* @__PURE__ */ O({ PopupBody: () => oe }), ne = B(() => import("./dist-CEdznbFW.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormBuilder }))), re = E({ baseSpacing: ".625rem" }), ie = { style: a({ form: { gap: "1rem" } }) }, ae = {
|
|
64
|
-
left: D,
|
|
65
|
-
center: M,
|
|
66
|
-
right: A
|
|
67
|
-
}, oe = (a) => {
|
|
68
|
-
let o = P(33), { disableInteraction: s } = a, { popup: c, callbacks: l, client: u, preview: d } = j(), f = l?.onAction, p = k(c), { content: m } = c, [h, g] = H(!1), _;
|
|
69
|
-
o[0] !== m.action || o[1] !== f || o[2] !== c ? (_ = () => {
|
|
70
|
-
if (m.action?.type !== "redirect" || !m.action.copyValue) return;
|
|
71
|
-
let e = m.action.copyValue;
|
|
72
|
-
navigator.clipboard.writeText(e).then(() => {
|
|
73
|
-
g(!0), setTimeout(() => g(!1), 2e3), f?.(c, {
|
|
74
|
-
action_type: "copy",
|
|
75
|
-
copy_value: e
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
}, o[0] = m.action, o[1] = f, o[2] = c, o[3] = _) : _ = o[3];
|
|
79
|
-
let v = _, y = m.align ?? "left", b = m.size ?? "medium", x;
|
|
80
|
-
o[4] === b ? x = o[5] : (x = N({ size: b }), o[4] = b, o[5] = x);
|
|
81
|
-
let S;
|
|
82
|
-
o[6] === s ? S = o[7] : (S = s ? { pointerEvents: "none" } : void 0, o[6] = s, o[7] = S);
|
|
83
|
-
let C;
|
|
84
|
-
o[8] !== y || o[9] !== m.description || o[10] !== m.heading ? (C = (m.heading || m.description) && /* @__PURE__ */ R(i, {
|
|
85
|
-
className: "zv6sjd4",
|
|
86
|
-
style: { textAlign: y },
|
|
87
|
-
children: [m.heading && /* @__PURE__ */ L(n, { children: m.heading }), m.description && /* @__PURE__ */ L(r, { children: m.description })]
|
|
88
|
-
}), o[8] = y, o[9] = m.description, o[10] = m.heading, o[11] = C) : C = o[11];
|
|
89
|
-
let w;
|
|
90
|
-
o[12] === m.body ? w = o[13] : (w = (m.body?.html || m.body?.json) && /* @__PURE__ */ L(ee, {
|
|
91
|
-
className: "zv6sjd5",
|
|
92
|
-
style: re,
|
|
93
|
-
content: m.body
|
|
94
|
-
}), o[12] = m.body, o[13] = w);
|
|
95
|
-
let T;
|
|
96
|
-
o[14] !== y || o[15] !== u || o[16] !== m.action || o[17] !== f || o[18] !== c || o[19] !== d ? (T = m.action?.type === "form" && u && /* @__PURE__ */ L("div", {
|
|
97
|
-
className: "zv6sjd7",
|
|
98
|
-
children: /* @__PURE__ */ L(z, { children: /* @__PURE__ */ L(t, {
|
|
99
|
-
client: u,
|
|
100
|
-
children: /* @__PURE__ */ L(ne, {
|
|
101
|
-
collection_id: m.action.collectionKey,
|
|
102
|
-
formVariant: m.action.formVariant,
|
|
103
|
-
theme: ie,
|
|
104
|
-
uiConfig: {
|
|
105
|
-
hideFormHeading: !0,
|
|
106
|
-
hideSectionHeadings: !0
|
|
107
|
-
},
|
|
108
|
-
successConfig: m.action.successRedirectUrl ? { action: {
|
|
109
|
-
type: "redirect",
|
|
110
|
-
value: m.action.successRedirectUrl
|
|
111
|
-
} } : void 0,
|
|
112
|
-
submitButtonConfig: {
|
|
113
|
-
show: !0,
|
|
114
|
-
text: m.action.label || "Submit",
|
|
115
|
-
styles: m.action.fullWidth && (m.action.formVariant ?? "default") === "default" ? "zv6sjdb" : ae[y]
|
|
116
|
-
},
|
|
117
|
-
workspace_id: u.workspace,
|
|
118
|
-
containerStyles: "zv6sjd6",
|
|
119
|
-
preview: d,
|
|
120
|
-
onSuccess: () => {
|
|
121
|
-
m.action?.type === "form" && f?.(c, {
|
|
122
|
-
action_type: "form_submit",
|
|
123
|
-
collection_key: m.action.collectionKey
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
})
|
|
127
|
-
}) })
|
|
128
|
-
}), o[14] = y, o[15] = u, o[16] = m.action, o[17] = f, o[18] = c, o[19] = d, o[20] = T) : T = o[20];
|
|
129
|
-
let E;
|
|
130
|
-
o[21] !== m.action || o[22] !== h || o[23] !== v || o[24] !== p ? (E = m.action?.type === "redirect" && /* @__PURE__ */ R(I, { children: [m.action.copyValue && /* @__PURE__ */ R("button", {
|
|
131
|
-
type: "button",
|
|
132
|
-
className: "zv6sjdd",
|
|
133
|
-
onClick: v,
|
|
134
|
-
children: [/* @__PURE__ */ L("span", {
|
|
135
|
-
className: "zv6sjde",
|
|
136
|
-
children: m.action.copyValue
|
|
137
|
-
}), L(h ? U : W, {
|
|
138
|
-
size: 18,
|
|
139
|
-
className: "zv6sjdf"
|
|
140
|
-
})]
|
|
141
|
-
}), /* @__PURE__ */ L(e, {
|
|
142
|
-
className: "zv6sjdc",
|
|
143
|
-
onClick: () => p?.(),
|
|
144
|
-
children: m.action.label || "Button"
|
|
145
|
-
})] }), o[21] = m.action, o[22] = h, o[23] = v, o[24] = p, o[25] = E) : E = o[25];
|
|
146
|
-
let D;
|
|
147
|
-
return o[26] !== x || o[27] !== S || o[28] !== C || o[29] !== w || o[30] !== T || o[31] !== E ? (D = /* @__PURE__ */ R("div", {
|
|
148
|
-
className: x,
|
|
149
|
-
style: S,
|
|
150
|
-
children: [
|
|
151
|
-
C,
|
|
152
|
-
w,
|
|
153
|
-
T,
|
|
154
|
-
E
|
|
155
|
-
]
|
|
156
|
-
}), o[26] = x, o[27] = S, o[28] = C, o[29] = w, o[30] = T, o[31] = E, o[32] = D) : D = o[32], D;
|
|
157
|
-
};
|
|
158
|
-
//#endregion
|
|
159
|
-
export { te as n };
|