@levo-so/site-runtime 0.3.16 → 0.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DateTimeWidget-I0LvR-tO.js +255 -0
- package/{Dialog-dT7y641z.js → Dialog-D-vRkU9N.js} +1 -1
- package/{KBChatWidget-GRi6sLpp.js → KBChatWidget-BMuZ-VI3.js} +222 -222
- package/{LevoProvider-Bsjkcwc8.js → LevoProvider-BkbKrvrI.js} +8 -8
- package/PhoneWidget-DPECohGT.js +99 -0
- package/{Popover-C29yJ7rz.js → Popover-Cr0-X_ch.js} +1 -1
- package/{PopupBody-BI-MJqmd-DdFDtjOo.js → PopupBody-BI-MJqmd-a-l3CaKZ.js} +23 -23
- package/{PopupRenderer-D66Gx63H-IgqQ0Z7U.js → PopupRenderer-D66Gx63H-DpcNpbtU.js} +47 -47
- package/{RichTextWidget-LpzXJZXc.js → RichTextWidget-C1QECDcg.js} +110 -110
- package/{RteThemeProvider-BQmfSXSl.js → RteThemeProvider-CMbSaFRQ.js} +1 -1
- package/{ThemeProvider-DutrjSTF.js → ThemeProvider-DlFehjh1.js} +30 -30
- package/{Tooltip-CQB0LyxK.js → Tooltip-BKQ5rIDh.js} +1 -1
- package/{VerifyButton-BUT70lgz.js → VerifyButton-D0cj9Z5Q.js} +38 -38
- package/blog-content.js +67 -67
- package/{dist-Y-Rc8Xqh.js → dist-IxiGbP-3.js} +972 -933
- package/{dist-B1BSD6Np.js → dist-_lwl0kZw.js} +10 -10
- package/index.js +407 -407
- package/{kbChat-a2dXSeRc.js → kbChat-DtZ4vuCZ.js} +26 -26
- package/package.json +3 -3
- package/popups.js +1 -1
- package/{usePopupRedirect-CAAdcpaW-Ddjyf4KK.js → usePopupRedirect-CAAdcpaW-BDa44PXN.js} +14 -14
- package/DateTimeWidget-Cr66rni6.js +0 -255
- package/PhoneWidget-CFRaMNwc.js +0 -99
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { createContext as e, useContext as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region ../react/dist/providers/LevoProvider.js
|
|
5
|
-
var r =
|
|
5
|
+
var r = e({
|
|
6
6
|
client: null,
|
|
7
7
|
insights: null
|
|
8
|
-
}), i = ({ children:
|
|
8
|
+
}), i = ({ children: e, client: t, insights: i = null }) => /* @__PURE__ */ n(r.Provider, {
|
|
9
9
|
value: {
|
|
10
|
-
client:
|
|
10
|
+
client: t,
|
|
11
11
|
insights: i
|
|
12
12
|
},
|
|
13
|
-
children:
|
|
13
|
+
children: e
|
|
14
14
|
}), a = () => {
|
|
15
|
-
let e =
|
|
15
|
+
let e = t(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 = () => t(r).client, s = () => t(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-DCAXOmBN.js";
|
|
3
|
+
import { t as ee } from "./VerifyButton-D0cj9Z5Q.js";
|
|
4
|
+
import { t as n } from "./CollectionInput-BJ__qcbk.js";
|
|
5
|
+
import { c as te } from "react/compiler-runtime";
|
|
6
|
+
import { useState as r } from "react";
|
|
7
|
+
import { useController as i } from "react-hook-form";
|
|
8
|
+
import a, { isSupportedCountry as ne } from "react-phone-number-input";
|
|
9
|
+
import { jsx as o, jsxs as re } from "react/jsx-runtime";
|
|
10
|
+
import { IconPencil as ie } from "@tabler/icons-react";
|
|
11
|
+
//#region ../../libraries/react-collection/dist/widgets/phoneWidget/PhoneWidget.cssm.js
|
|
12
|
+
var ae = "_89f1hw0", s = "_89f1hw1", c = "_89f1hw2", oe = "_89f1hw4", l = (l) => {
|
|
13
|
+
let u = te(51), { field: d, settings: se } = l, { key: f, label: p, helper_text: m, readonly: h, options: g } = d, _ = f === void 0 ? "" : f, v = p === void 0 ? "" : p, y = m === void 0 ? "" : m, b = h === void 0 ? !1 : h, x = _, S = !!g?.verification && !!se?.enableVerification, [C, w] = r(null), [T, E] = r(!1), D;
|
|
14
|
+
u[0] !== T || u[1] !== S || u[2] !== C ? (D = (e) => T ? !0 : S && (!C || C !== e) ? "Phone verification required" : !0, u[0] = T, u[1] = S, u[2] = C, u[3] = D) : D = u[3];
|
|
15
|
+
let O;
|
|
16
|
+
u[4] !== d || u[5] !== D ? (O = e(d, D), u[4] = d, u[5] = D, u[6] = O) : O = u[6];
|
|
17
|
+
let k = O, A;
|
|
18
|
+
u[7] !== x || u[8] !== k ? (A = {
|
|
19
|
+
name: x,
|
|
20
|
+
rules: k
|
|
21
|
+
}, u[7] = x, u[8] = k, u[9] = A) : A = u[9];
|
|
22
|
+
let { field: j, fieldState: M } = i(A), N, P, F, I;
|
|
23
|
+
u[10] === j ? (N = u[11], P = u[12], F = u[13], I = u[14]) : ({value: I, onBlur: N, onChange: P, ...F} = j, u[10] = j, u[11] = N, u[12] = P, u[13] = F, u[14] = I);
|
|
24
|
+
let { error: ce } = M, L = !!d?.required, R = ce?.message, z = !!C && !!I && C === I, B;
|
|
25
|
+
u[15] === g?.country ? B = u[16] : (B = () => {
|
|
26
|
+
let e = g?.country;
|
|
27
|
+
if (e && typeof e == "string") {
|
|
28
|
+
let t = e?.toUpperCase();
|
|
29
|
+
if (ne(t)) return t;
|
|
30
|
+
}
|
|
31
|
+
return "IN";
|
|
32
|
+
}, u[15] = g?.country, u[16] = B);
|
|
33
|
+
let V = B, H;
|
|
34
|
+
u[17] === P ? H = u[18] : (H = (e) => {
|
|
35
|
+
w(e), P(e);
|
|
36
|
+
}, u[17] = P, u[18] = H);
|
|
37
|
+
let U = H, W = I ?? "", G;
|
|
38
|
+
u[19] === V ? G = u[20] : (G = V(), u[19] = V, u[20] = G);
|
|
39
|
+
let K;
|
|
40
|
+
u[21] === P ? K = u[22] : (K = (e) => {
|
|
41
|
+
P?.(e ?? "");
|
|
42
|
+
}, u[21] = P, u[22] = K);
|
|
43
|
+
let q;
|
|
44
|
+
u[23] === N ? q = u[24] : (q = () => {
|
|
45
|
+
N?.();
|
|
46
|
+
}, u[23] = N, u[24] = q);
|
|
47
|
+
let J = b || z, Y;
|
|
48
|
+
u[25] === z ? Y = u[26] : (Y = z ? /* @__PURE__ */ o("button", {
|
|
49
|
+
type: "button",
|
|
50
|
+
onClick: () => w(null),
|
|
51
|
+
className: oe,
|
|
52
|
+
title: "Change phone number",
|
|
53
|
+
children: /* @__PURE__ */ o(ie, { size: 14 })
|
|
54
|
+
}) : null, u[25] = z, u[26] = Y);
|
|
55
|
+
let X;
|
|
56
|
+
u[27] !== F || u[28] !== W || u[29] !== G || u[30] !== K || u[31] !== q || u[32] !== J || u[33] !== Y ? (X = /* @__PURE__ */ o("div", {
|
|
57
|
+
className: c,
|
|
58
|
+
children: /* @__PURE__ */ o(a, {
|
|
59
|
+
value: W,
|
|
60
|
+
international: !0,
|
|
61
|
+
inputComponent: n,
|
|
62
|
+
defaultCountry: G,
|
|
63
|
+
onChange: K,
|
|
64
|
+
onBlur: q,
|
|
65
|
+
className: ae,
|
|
66
|
+
readOnly: J,
|
|
67
|
+
rightIcon: Y,
|
|
68
|
+
...F
|
|
69
|
+
})
|
|
70
|
+
}), u[27] = F, u[28] = W, u[29] = G, u[30] = K, u[31] = q, u[32] = J, u[33] = Y, u[34] = X) : X = u[34];
|
|
71
|
+
let Z;
|
|
72
|
+
u[35] !== U || u[36] !== z || u[37] !== S || u[38] !== I ? (Z = S && /* @__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: E
|
|
80
|
+
})
|
|
81
|
+
}), u[35] = U, u[36] = z, u[37] = S, u[38] = I, u[39] = Z) : Z = u[39];
|
|
82
|
+
let Q;
|
|
83
|
+
u[40] !== X || u[41] !== Z ? (Q = /* @__PURE__ */ re("div", {
|
|
84
|
+
className: s,
|
|
85
|
+
children: [X, Z]
|
|
86
|
+
}), u[40] = X, u[41] = Z, u[42] = Q) : Q = u[42];
|
|
87
|
+
let $;
|
|
88
|
+
return u[43] !== R || u[44] !== y || u[45] !== L || u[46] !== v || u[47] !== x || u[48] !== b || u[49] !== Q ? ($ = /* @__PURE__ */ o(t, {
|
|
89
|
+
error: R,
|
|
90
|
+
helperText: y,
|
|
91
|
+
readOnly: b,
|
|
92
|
+
label: v,
|
|
93
|
+
htmlFor: x,
|
|
94
|
+
isRequired: L,
|
|
95
|
+
children: Q
|
|
96
|
+
}), u[43] = R, u[44] = y, u[45] = L, u[46] = v, u[47] = x, u[48] = b, u[49] = Q, u[50] = $) : $ = u[50], $;
|
|
97
|
+
};
|
|
98
|
+
//#endregion
|
|
99
|
+
export { l as PhoneWidget, l as default };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { r as e } from "./ThemeProvider-
|
|
2
|
-
import { n as t } from "./LevoProvider-
|
|
3
|
-
import { i as n, r, t as i } from "./Dialog-
|
|
1
|
+
import { r as e } from "./ThemeProvider-DlFehjh1.js";
|
|
2
|
+
import { n as t } from "./LevoProvider-BkbKrvrI.js";
|
|
3
|
+
import { i as n, r, t as i } from "./Dialog-D-vRkU9N.js";
|
|
4
4
|
import { t as a } from "./inlineCollectionTheme-CWcMCUti.js";
|
|
5
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
6
|
import { n as w, t as T } from "./content.cssm-XdMsTGIB.js";
|
|
7
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-
|
|
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-BDa44PXN.js";
|
|
9
9
|
import { c as P } from "react/compiler-runtime";
|
|
10
|
-
import F from "
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
10
|
+
import { Suspense as F, lazy as I, useMemo as L, useState as R } from "react";
|
|
11
|
+
import z from "clsx";
|
|
12
|
+
import { Fragment as B, jsx as V, jsxs as H } from "react/jsx-runtime";
|
|
13
13
|
import { IconCheck as U, IconCopy as W } from "@tabler/icons-react";
|
|
14
14
|
import { Link as G } from "@tiptap/extension-link";
|
|
15
15
|
import { Document as K } from "@tiptap/extension-document";
|
|
@@ -50,22 +50,22 @@ var Q = [
|
|
|
50
50
|
"orderedList"
|
|
51
51
|
] })
|
|
52
52
|
], $ = (e) => g(e, Q), ee = ({ content: e, className: t, ref: n, ...r }) => {
|
|
53
|
-
let i =
|
|
53
|
+
let i = L(() => 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 = L(() => i ? x({
|
|
54
54
|
content: i,
|
|
55
55
|
extensions: Q
|
|
56
56
|
}) : null, [i]);
|
|
57
|
-
return a ? /* @__PURE__ */
|
|
57
|
+
return a ? /* @__PURE__ */ V("div", {
|
|
58
58
|
ref: n,
|
|
59
|
-
className:
|
|
59
|
+
className: z(T, t),
|
|
60
60
|
...r,
|
|
61
61
|
children: a
|
|
62
62
|
}) : null;
|
|
63
|
-
}, te = /* @__PURE__ */ O({ PopupBody: () => oe }), ne =
|
|
63
|
+
}, te = /* @__PURE__ */ O({ PopupBody: () => oe }), ne = I(() => import("./dist-IxiGbP-3.js").then((e) => e.t).then((e) => ({ default: e.CollectionFormBuilder }))), re = E({ baseSpacing: ".625rem" }), ie = { style: a({ form: { gap: "1rem" } }) }, ae = {
|
|
64
64
|
left: D,
|
|
65
65
|
center: M,
|
|
66
66
|
right: A
|
|
67
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] =
|
|
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] = R(!1), _;
|
|
69
69
|
o[0] !== m.action || o[1] !== f || o[2] !== c ? (_ = () => {
|
|
70
70
|
if (m.action?.type !== "redirect" || !m.action.copyValue) return;
|
|
71
71
|
let e = m.action.copyValue;
|
|
@@ -81,23 +81,23 @@ var Q = [
|
|
|
81
81
|
let S;
|
|
82
82
|
o[6] === s ? S = o[7] : (S = s ? { pointerEvents: "none" } : void 0, o[6] = s, o[7] = S);
|
|
83
83
|
let C;
|
|
84
|
-
o[8] !== y || o[9] !== m.description || o[10] !== m.heading ? (C = (m.heading || m.description) && /* @__PURE__ */
|
|
84
|
+
o[8] !== y || o[9] !== m.description || o[10] !== m.heading ? (C = (m.heading || m.description) && /* @__PURE__ */ H(i, {
|
|
85
85
|
className: "zv6sjd4",
|
|
86
86
|
style: { textAlign: y },
|
|
87
|
-
children: [m.heading && /* @__PURE__ */
|
|
87
|
+
children: [m.heading && /* @__PURE__ */ V(n, { children: m.heading }), m.description && /* @__PURE__ */ V(r, { children: m.description })]
|
|
88
88
|
}), o[8] = y, o[9] = m.description, o[10] = m.heading, o[11] = C) : C = o[11];
|
|
89
89
|
let w;
|
|
90
|
-
o[12] === m.body ? w = o[13] : (w = (m.body?.html || m.body?.json) && /* @__PURE__ */
|
|
90
|
+
o[12] === m.body ? w = o[13] : (w = (m.body?.html || m.body?.json) && /* @__PURE__ */ V(ee, {
|
|
91
91
|
className: "zv6sjd5",
|
|
92
92
|
style: re,
|
|
93
93
|
content: m.body
|
|
94
94
|
}), o[12] = m.body, o[13] = w);
|
|
95
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__ */
|
|
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__ */ V("div", {
|
|
97
97
|
className: "zv6sjd7",
|
|
98
|
-
children: /* @__PURE__ */
|
|
98
|
+
children: /* @__PURE__ */ V(F, { children: /* @__PURE__ */ V(t, {
|
|
99
99
|
client: u,
|
|
100
|
-
children: /* @__PURE__ */
|
|
100
|
+
children: /* @__PURE__ */ V(ne, {
|
|
101
101
|
collection_id: m.action.collectionKey,
|
|
102
102
|
formVariant: m.action.formVariant,
|
|
103
103
|
theme: ie,
|
|
@@ -127,24 +127,24 @@ var Q = [
|
|
|
127
127
|
}) })
|
|
128
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
129
|
let E;
|
|
130
|
-
o[21] !== m.action || o[22] !== h || o[23] !== v || o[24] !== p ? (E = m.action?.type === "redirect" && /* @__PURE__ */
|
|
130
|
+
o[21] !== m.action || o[22] !== h || o[23] !== v || o[24] !== p ? (E = m.action?.type === "redirect" && /* @__PURE__ */ H(B, { children: [m.action.copyValue && /* @__PURE__ */ H("button", {
|
|
131
131
|
type: "button",
|
|
132
132
|
className: "zv6sjdd",
|
|
133
133
|
onClick: v,
|
|
134
|
-
children: [/* @__PURE__ */
|
|
134
|
+
children: [/* @__PURE__ */ V("span", {
|
|
135
135
|
className: "zv6sjde",
|
|
136
136
|
children: m.action.copyValue
|
|
137
|
-
}),
|
|
137
|
+
}), V(h ? U : W, {
|
|
138
138
|
size: 18,
|
|
139
139
|
className: "zv6sjdf"
|
|
140
140
|
})]
|
|
141
|
-
}), /* @__PURE__ */
|
|
141
|
+
}), /* @__PURE__ */ V(e, {
|
|
142
142
|
className: "zv6sjdc",
|
|
143
143
|
onClick: () => p?.(),
|
|
144
144
|
children: m.action.label || "Button"
|
|
145
145
|
})] }), o[21] = m.action, o[22] = h, o[23] = v, o[24] = p, o[25] = E) : E = o[25];
|
|
146
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__ */
|
|
147
|
+
return o[26] !== x || o[27] !== S || o[28] !== C || o[29] !== w || o[30] !== T || o[31] !== E ? (D = /* @__PURE__ */ H("div", {
|
|
148
148
|
className: x,
|
|
149
149
|
style: S,
|
|
150
150
|
children: [
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { n as e } from "./ThemeProvider-
|
|
2
|
-
import { i as t, t as n } from "./LevoProvider-
|
|
3
|
-
import { a as r, c as i, l as a, o, s, u as c } from "./Dialog-
|
|
1
|
+
import { n as e } from "./ThemeProvider-DlFehjh1.js";
|
|
2
|
+
import { i as t, t as n } from "./LevoProvider-BkbKrvrI.js";
|
|
3
|
+
import { a as r, c as i, l as a, o, s, u as c } from "./Dialog-D-vRkU9N.js";
|
|
4
4
|
import { t as l } from "./theme.cssm-DUzmx76l.js";
|
|
5
5
|
import { d as u, f as d, l as f, n as p, o as m } from "./popupState-JmpeKzgM-D_77LiAa.js";
|
|
6
6
|
import { n as h, r as g, t as _ } from "./react-B9yvlbH0.js";
|
|
7
7
|
import { t as v } from "./rteTheme.cssm-W4gTOijw.js";
|
|
8
|
-
import { a as y, d as b, f as x, g as S, h as C, l as w, m as T, n as E, o as D, p as O, s as ee, t as te, u as k } from "./usePopupRedirect-CAAdcpaW-
|
|
8
|
+
import { a as y, d as b, f as x, g as S, h as C, l as w, m as T, n as E, o as D, p as O, s as ee, t as te, u as k } from "./usePopupRedirect-CAAdcpaW-BDa44PXN.js";
|
|
9
9
|
import { c as A } from "react/compiler-runtime";
|
|
10
|
-
import j from "
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
10
|
+
import { Suspense as j, lazy as M, useEffect as N, useRef as P } from "react";
|
|
11
|
+
import F from "clsx";
|
|
12
|
+
import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
13
13
|
import { IconX as z } from "@tabler/icons-react";
|
|
14
14
|
import { $activity as B, $isIdentityContextReady as ne, $pageLifecycle as re, $scrollBehavior as V, $session as ie, getTabCount as H } from "@levo-so/insights/stores";
|
|
15
15
|
//#region ../../libraries/levocn/dist/theme/utils/googleFonts.js
|
|
@@ -33,7 +33,7 @@ var U = "wght@300;400;500;600;700;900", W = (e) => !!e && e !== "inherit" && !e.
|
|
|
33
33
|
K("https://fonts.googleapis.com"), K("https://fonts.gstatic.com");
|
|
34
34
|
let t = document.createElement("link");
|
|
35
35
|
t.rel = "stylesheet", t.href = e, t.crossOrigin = "anonymous", t.setAttribute("data-levo-fonts", e), document.head.appendChild(t);
|
|
36
|
-
}, o = [i], t[2] = i, t[3] = a, t[4] = o),
|
|
36
|
+
}, o = [i], t[2] = i, t[3] = a, t[4] = o), N(a, o);
|
|
37
37
|
};
|
|
38
38
|
function Y(e) {
|
|
39
39
|
return typeof e == "string" && e.trim() !== "";
|
|
@@ -50,7 +50,7 @@ var se = (e) => (e ?? "16:9").replace(":", " / "), ce = (e) => {
|
|
|
50
50
|
if (e.content.coverImage?.srcset) return Object.entries(e.content.coverImage.srcset).filter(([e]) => e !== "path").map(([e, t]) => `${t} ${e}`).join(", ");
|
|
51
51
|
}, le = (e) => {
|
|
52
52
|
let t = A(18), { popup: n, disableInteraction: r, children: i } = e, { content: a } = n, o = C(n), s = !!o && !r, c;
|
|
53
|
-
t[0] !== a.coverImage || t[1] !== a.coverImageFocus || t[2] !== n ? (c = a.coverImage && /* @__PURE__ */
|
|
53
|
+
t[0] !== a.coverImage || t[1] !== a.coverImageFocus || t[2] !== n ? (c = a.coverImage && /* @__PURE__ */ L("img", {
|
|
54
54
|
src: a.coverImage.location,
|
|
55
55
|
srcSet: ce(n),
|
|
56
56
|
alt: "",
|
|
@@ -62,20 +62,20 @@ var se = (e) => (e ?? "16:9").replace(":", " / "), ce = (e) => {
|
|
|
62
62
|
let d;
|
|
63
63
|
t[6] === u ? d = t[7] : (d = { aspectRatio: u }, t[6] = u, t[7] = d);
|
|
64
64
|
let f = d, p;
|
|
65
|
-
t[8] !== a.action || t[9] !== a.coverImage || t[10] !== s || t[11] !== l || t[12] !== f || t[13] !== o ? (p = a.coverImage && (s ? /* @__PURE__ */
|
|
65
|
+
t[8] !== a.action || t[9] !== a.coverImage || t[10] !== s || t[11] !== l || t[12] !== f || t[13] !== o ? (p = a.coverImage && (s ? /* @__PURE__ */ L("button", {
|
|
66
66
|
type: "button",
|
|
67
|
-
className:
|
|
67
|
+
className: F("_1gklkndj", "_1gklkndk"),
|
|
68
68
|
style: f,
|
|
69
69
|
onClick: o ?? void 0,
|
|
70
70
|
"aria-label": a.action?.type === "redirect" ? a.action.label : void 0,
|
|
71
71
|
children: l
|
|
72
|
-
}) : /* @__PURE__ */
|
|
72
|
+
}) : /* @__PURE__ */ L("div", {
|
|
73
73
|
className: "_1gklkndj",
|
|
74
74
|
style: f,
|
|
75
75
|
children: l
|
|
76
76
|
})), t[8] = a.action, t[9] = a.coverImage, t[10] = s, t[11] = l, t[12] = f, t[13] = o, t[14] = p) : p = t[14];
|
|
77
77
|
let m;
|
|
78
|
-
return t[15] !== i || t[16] !== p ? (m = /* @__PURE__ */
|
|
78
|
+
return t[15] !== i || t[16] !== p ? (m = /* @__PURE__ */ R("div", {
|
|
79
79
|
className: b,
|
|
80
80
|
children: [p, i]
|
|
81
81
|
}), t[15] = i, t[16] = p, t[17] = m) : m = t[17], m;
|
|
@@ -87,7 +87,7 @@ var se = (e) => (e ?? "16:9").replace(":", " / "), ce = (e) => {
|
|
|
87
87
|
let u = c;
|
|
88
88
|
J(u?.fonts?.heading, u?.fonts?.body);
|
|
89
89
|
let d;
|
|
90
|
-
n[9] === Symbol.for("react.memo_cache_sentinel") ? (d =
|
|
90
|
+
n[9] === Symbol.for("react.memo_cache_sentinel") ? (d = F(l, v), n[9] = d) : d = n[9];
|
|
91
91
|
let f;
|
|
92
92
|
n[10] === u ? f = n[11] : (f = h(u), n[10] = u, n[11] = f);
|
|
93
93
|
let p;
|
|
@@ -96,20 +96,20 @@ var se = (e) => (e ?? "16:9").replace(":", " / "), ce = (e) => {
|
|
|
96
96
|
...s
|
|
97
97
|
}, n[12] = s, n[13] = f, n[14] = p) : p = n[14];
|
|
98
98
|
let m;
|
|
99
|
-
return n[15] !== r || n[16] !== a || n[17] !== p ? (m = /* @__PURE__ */
|
|
99
|
+
return n[15] !== r || n[16] !== a || n[17] !== p ? (m = /* @__PURE__ */ L(e, {
|
|
100
100
|
className: d,
|
|
101
101
|
cssReset: !0,
|
|
102
102
|
style: p,
|
|
103
103
|
...a,
|
|
104
104
|
children: r
|
|
105
105
|
}), n[15] = r, n[16] = a, n[17] = p, n[18] = m) : m = n[18], m;
|
|
106
|
-
}, de =
|
|
106
|
+
}, de = M(() => import("./PopupBody-BI-MJqmd-a-l3CaKZ.js").then((e) => e.n).then((e) => ({ default: e.PopupBody }))), fe = (e) => {
|
|
107
107
|
let t = A(7), { size: n } = e, r = n ?? "medium", i;
|
|
108
108
|
t[0] === r ? i = t[1] : (i = k({ size: r }), t[0] = r, t[1] = i);
|
|
109
109
|
let a, o, s;
|
|
110
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */
|
|
110
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ L("div", { className: O }), o = /* @__PURE__ */ L("div", { className: y }), s = /* @__PURE__ */ L("div", { className: E }), t[2] = a, t[3] = o, t[4] = s) : (a = t[2], o = t[3], s = t[4]);
|
|
111
111
|
let c;
|
|
112
|
-
return t[5] === i ? c = t[6] : (c = /* @__PURE__ */
|
|
112
|
+
return t[5] === i ? c = t[6] : (c = /* @__PURE__ */ R("div", {
|
|
113
113
|
className: i,
|
|
114
114
|
children: [
|
|
115
115
|
a,
|
|
@@ -119,16 +119,16 @@ var se = (e) => (e ?? "16:9").replace(":", " / "), ce = (e) => {
|
|
|
119
119
|
}), t[5] = i, t[6] = c), c;
|
|
120
120
|
}, X = () => {
|
|
121
121
|
let e = A(8), { popup: t } = T(), n;
|
|
122
|
-
e[0] === t.content.size ? n = e[1] : (n = /* @__PURE__ */
|
|
122
|
+
e[0] === t.content.size ? n = e[1] : (n = /* @__PURE__ */ L(fe, { size: t.content.size }), e[0] = t.content.size, e[1] = n);
|
|
123
123
|
let r;
|
|
124
|
-
e[2] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
124
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ L(de, {}), e[2] = r) : r = e[2];
|
|
125
125
|
let i;
|
|
126
|
-
e[3] === n ? i = e[4] : (i = /* @__PURE__ */
|
|
126
|
+
e[3] === n ? i = e[4] : (i = /* @__PURE__ */ L(j, {
|
|
127
127
|
fallback: n,
|
|
128
128
|
children: r
|
|
129
129
|
}), e[3] = n, e[4] = i);
|
|
130
130
|
let a;
|
|
131
|
-
return e[5] !== t || e[6] !== i ? (a = /* @__PURE__ */
|
|
131
|
+
return e[5] !== t || e[6] !== i ? (a = /* @__PURE__ */ L(le, {
|
|
132
132
|
popup: t,
|
|
133
133
|
children: i
|
|
134
134
|
}), e[5] = t, e[6] = i, e[7] = a) : a = e[7], a;
|
|
@@ -140,53 +140,53 @@ var se = (e) => (e ?? "16:9").replace(":", " / "), ce = (e) => {
|
|
|
140
140
|
default: return "programmatic";
|
|
141
141
|
}
|
|
142
142
|
}, he = () => {
|
|
143
|
-
let e = A(32), { popup: t, callbacks: n } = T(), { placement: l, id: f } = t, p = _(u).active_popup_id === f, m =
|
|
143
|
+
let e = A(32), { popup: t, callbacks: n } = T(), { placement: l, id: f } = t, p = _(u).active_popup_id === f, m = P(!1), h, g;
|
|
144
144
|
e[0] !== n || e[1] !== p || e[2] !== t ? (h = () => {
|
|
145
145
|
p && !m.current && (m.current = !0, n?.onPopupOpen?.(t, { trigger_type: d() })), p || (m.current = !1);
|
|
146
146
|
}, g = [
|
|
147
147
|
p,
|
|
148
148
|
t,
|
|
149
149
|
n
|
|
150
|
-
], e[0] = n, e[1] = p, e[2] = t, e[3] = h, e[4] = g) : (h = e[3], g = e[4]),
|
|
150
|
+
], e[0] = n, e[1] = p, e[2] = t, e[3] = h, e[4] = g) : (h = e[3], g = e[4]), N(h, g);
|
|
151
151
|
let v = te(), y, b, S, C, E, D, O, k;
|
|
152
152
|
if (e[5] !== v || e[6] !== p || e[7] !== l || e[8] !== t) {
|
|
153
153
|
let n = pe(t), u = l === "popup", d = l === "slide_in";
|
|
154
|
-
b = o, E = p, e[17] === v ? D = e[18] : (D = (e, t) => !e && v(me(t?.reason)), e[17] = v, e[18] = D), O = u, k = !u, y = i, e[19] === u ? S = e[20] : (S = u && /* @__PURE__ */
|
|
154
|
+
b = o, E = p, e[17] === v ? D = e[18] : (D = (e, t) => !e && v(me(t?.reason)), e[17] = v, e[18] = D), O = u, k = !u, y = i, e[19] === u ? S = e[20] : (S = u && /* @__PURE__ */ L(a, {}), e[19] = u, e[20] = S), C = u ? /* @__PURE__ */ L(c, {
|
|
155
155
|
className: ee,
|
|
156
|
-
children: /* @__PURE__ */
|
|
156
|
+
children: /* @__PURE__ */ R(s.Popup, {
|
|
157
157
|
className: w({ placement: l }),
|
|
158
|
-
children: [/* @__PURE__ */
|
|
158
|
+
children: [/* @__PURE__ */ L(r, {
|
|
159
159
|
variant: "ghost",
|
|
160
160
|
size: "icon-xs",
|
|
161
161
|
className: x,
|
|
162
162
|
"aria-label": "Close popup",
|
|
163
|
-
children: /* @__PURE__ */
|
|
164
|
-
}), /* @__PURE__ */
|
|
163
|
+
children: /* @__PURE__ */ L(z, { size: 16 })
|
|
164
|
+
}), /* @__PURE__ */ L(X, {})]
|
|
165
165
|
})
|
|
166
|
-
}) : /* @__PURE__ */
|
|
167
|
-
className:
|
|
166
|
+
}) : /* @__PURE__ */ R(s.Popup, {
|
|
167
|
+
className: F(w({
|
|
168
168
|
placement: l,
|
|
169
169
|
position: n
|
|
170
170
|
}), d && "_1gklkndd"),
|
|
171
|
-
children: [/* @__PURE__ */
|
|
171
|
+
children: [/* @__PURE__ */ L(r, {
|
|
172
172
|
variant: "ghost",
|
|
173
173
|
size: "icon-xs",
|
|
174
174
|
className: x,
|
|
175
175
|
"aria-label": "Close popup",
|
|
176
|
-
children: /* @__PURE__ */
|
|
177
|
-
}), /* @__PURE__ */
|
|
176
|
+
children: /* @__PURE__ */ L(z, { size: 16 })
|
|
177
|
+
}), /* @__PURE__ */ L(X, {})]
|
|
178
178
|
}), e[5] = v, e[6] = p, e[7] = l, e[8] = t, e[9] = y, e[10] = b, e[11] = S, e[12] = C, e[13] = E, e[14] = D, e[15] = O, e[16] = k;
|
|
179
179
|
} else y = e[9], b = e[10], S = e[11], C = e[12], E = e[13], D = e[14], O = e[15], k = e[16];
|
|
180
|
+
let j;
|
|
181
|
+
e[21] !== y || e[22] !== S || e[23] !== C ? (j = /* @__PURE__ */ R(y, { children: [S, C] }), e[21] = y, e[22] = S, e[23] = C, e[24] = j) : j = e[24];
|
|
180
182
|
let M;
|
|
181
|
-
e[
|
|
182
|
-
let F;
|
|
183
|
-
return e[25] !== b || e[26] !== E || e[27] !== D || e[28] !== O || e[29] !== k || e[30] !== M ? (F = /* @__PURE__ */ N(b, {
|
|
183
|
+
return e[25] !== b || e[26] !== E || e[27] !== D || e[28] !== O || e[29] !== k || e[30] !== j ? (M = /* @__PURE__ */ L(b, {
|
|
184
184
|
open: E,
|
|
185
185
|
onOpenChange: D,
|
|
186
186
|
modal: O,
|
|
187
187
|
disablePointerDismissal: k,
|
|
188
|
-
children:
|
|
189
|
-
}), e[25] = b, e[26] = E, e[27] = D, e[28] = O, e[29] = k, e[30] =
|
|
188
|
+
children: j
|
|
189
|
+
}), e[25] = b, e[26] = E, e[27] = D, e[28] = O, e[29] = k, e[30] = j, e[31] = M) : M = e[31], M;
|
|
190
190
|
}, ge = 3e4, _e = 5e3, ve = 5e3, ye = 100, be = .5, xe = 5, Se = (e) => {
|
|
191
191
|
if (typeof document > "u") return () => {};
|
|
192
192
|
let t = !1, n = Date.now(), r = [], i = 0, a = null, o = () => Date.now() - n >= ge, s = () => {
|
|
@@ -232,7 +232,7 @@ var se = (e) => (e ?? "16:9").replace(":", " / "), ce = (e) => {
|
|
|
232
232
|
}, Te = (e, t) => {
|
|
233
233
|
let n = A(11), r = t === void 0 ? !0 : t, { triggers: i, id: a } = e, o = _(ne), s;
|
|
234
234
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (s = [], n[0] = s) : s = n[0];
|
|
235
|
-
let c =
|
|
235
|
+
let c = P(s), l;
|
|
236
236
|
n[1] !== r || n[2] !== o || n[3] !== e || n[4] !== i ? (l = () => {
|
|
237
237
|
if (!r || !o || !i) return;
|
|
238
238
|
let t = [];
|
|
@@ -254,7 +254,7 @@ var se = (e) => (e ?? "16:9").replace(":", " / "), ce = (e) => {
|
|
|
254
254
|
o,
|
|
255
255
|
a,
|
|
256
256
|
i
|
|
257
|
-
], n[6] = r, n[7] = o, n[8] = a, n[9] = i, n[10] = u) : u = n[10],
|
|
257
|
+
], n[6] = r, n[7] = o, n[8] = a, n[9] = i, n[10] = u) : u = n[10], N(l, u);
|
|
258
258
|
};
|
|
259
259
|
function Ee(e) {
|
|
260
260
|
return e();
|
|
@@ -312,7 +312,7 @@ var Q = (e, t) => {
|
|
|
312
312
|
let a = i;
|
|
313
313
|
if (Te(r, a), !a) return null;
|
|
314
314
|
let o;
|
|
315
|
-
return t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */
|
|
315
|
+
return t[3] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ L(he, {}), t[3] = o) : o = t[3], o;
|
|
316
316
|
}, ke = () => {
|
|
317
317
|
let e = V.get(), t = B.get();
|
|
318
318
|
return {
|
|
@@ -327,7 +327,7 @@ var Q = (e, t) => {
|
|
|
327
327
|
let r = A(18), { popups: i, pageId: a } = e, o = t(), s = n(), c, l;
|
|
328
328
|
r[0] === i ? (c = r[1], l = r[2]) : (c = () => {
|
|
329
329
|
m(i), f(!1);
|
|
330
|
-
}, l = [i], r[0] = i, r[1] = c, r[2] = l),
|
|
330
|
+
}, l = [i], r[0] = i, r[1] = c, r[2] = l), N(c, l);
|
|
331
331
|
let u;
|
|
332
332
|
r[3] === o ? u = r[4] : (u = (e, t) => {
|
|
333
333
|
!o || typeof o.track != "function" || o?.track(e, t);
|
|
@@ -360,19 +360,19 @@ var Q = (e, t) => {
|
|
|
360
360
|
let g = h, _;
|
|
361
361
|
if (r[7] !== g || r[8] !== s || r[9] !== a || r[10] !== i) {
|
|
362
362
|
let e;
|
|
363
|
-
r[12] !== g || r[13] !== s || r[14] !== a ? (e = (e) => /* @__PURE__ */
|
|
363
|
+
r[12] !== g || r[13] !== s || r[14] !== a ? (e = (e) => /* @__PURE__ */ L(ue, {
|
|
364
364
|
popupTheme: e.theme,
|
|
365
365
|
siteTheme: e.site?.theme,
|
|
366
|
-
children: /* @__PURE__ */
|
|
366
|
+
children: /* @__PURE__ */ L(D, {
|
|
367
367
|
popup: e,
|
|
368
368
|
callbacks: g,
|
|
369
369
|
client: s,
|
|
370
|
-
children: /* @__PURE__ */
|
|
370
|
+
children: /* @__PURE__ */ L(Oe, { pageId: a })
|
|
371
371
|
})
|
|
372
372
|
}, e.id), r[12] = g, r[13] = s, r[14] = a, r[15] = e) : e = r[15], _ = i.map(e), r[7] = g, r[8] = s, r[9] = a, r[10] = i, r[11] = _;
|
|
373
373
|
} else _ = r[11];
|
|
374
374
|
let v;
|
|
375
|
-
return r[16] === _ ? v = r[17] : (v = /* @__PURE__ */
|
|
375
|
+
return r[16] === _ ? v = r[17] : (v = /* @__PURE__ */ L(I, { children: _ }), r[16] = _, r[17] = v), v;
|
|
376
376
|
};
|
|
377
377
|
function je(e) {
|
|
378
378
|
return {
|