@aswin.dev/editor 0.8.4 → 0.8.7
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/dist/{AccessibilityPanel-COL6Wm7p.js → AccessibilityPanel-B39ct5ON.js} +2 -2
- package/dist/{AiChatSidebar-DAJOuHPG.js → AiChatSidebar-CYh7SPHW.js} +2 -2
- package/dist/{AiFeatureMenu-CKnEDzme.js → AiFeatureMenu-D9UhqJAa.js} +3 -3
- package/dist/{BlockA11yBadge-Qs6HtXid.js → BlockA11yBadge-Dr854uEe.js} +2 -2
- package/dist/{CloudEditor-DzdiTmvD.js → CloudEditor-BNEIze18.js} +282 -275
- package/dist/{CollaboratorBar-C6TfqpyV.js → CollaboratorBar-DZXuPSfU.js} +2 -2
- package/dist/{CommentsSidebar-DE6ZsM4D.js → CommentsSidebar-BVKFtxml.js} +4 -4
- package/dist/{CountdownBlock-Ba3T-i2X.js → CountdownBlock-CrpaDWze.js} +1 -1
- package/dist/{CountdownToolbar-B9IAZzeV.js → CountdownToolbar-D1tb2T_b.js} +2 -2
- package/dist/{DesignReferenceSidebar-C6yDJlD8.js → DesignReferenceSidebar-_QsmFpE_.js} +44 -44
- package/dist/{ModuleBrowserModal-DUKuDjS-.js → ModuleBrowserModal-Bth1crh_.js} +7 -7
- package/dist/{ModulePreviewCanvas-C9HTjfkN.js → ModulePreviewCanvas-96pndrb9.js} +3 -3
- package/dist/{ParagraphEditor-CFuaZKGk.js → ParagraphEditor-C2d9O2P4.js} +123 -123
- package/dist/{RichTextEditorContent-CrqPQdnk.js → RichTextEditorContent-Cn0ZU41b.js} +3 -3
- package/dist/{SaveModuleDialog-QjgPFEDg.js → SaveModuleDialog-B1EJtMGq.js} +17 -17
- package/dist/{SlidingPillSelect-DfcBdJqN.js → SlidingPillSelect-Dt34f5VF.js} +1 -1
- package/dist/{SnapshotHistory-Dblt21_W.js → SnapshotHistory-Cd-a_xGv.js} +3 -3
- package/dist/{TemplateScoringPanel-CS7o62zS.js → TemplateScoringPanel-C8WixDsv.js} +77 -77
- package/dist/{TestEmailModal-D_y3ZksG.js → TestEmailModal-CEj_81cQ.js} +3 -3
- package/dist/TitleEditor-C8Qyr_U3.js +172 -0
- package/dist/{TplModal-DinL7DhQ.js → TplModal-B_HcUS4S.js} +2 -2
- package/dist/{blockTypeIcons-JjmIZ_Vx.js → blockTypeIcons-CeaSm2Xd.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AccessibilityPanel-BTADkTp2.js → AccessibilityPanel-C8vY7QIF.js} +3 -3
- package/dist/cdn/chunks/{AccessibilityPanel-BTADkTp2.js.map → AccessibilityPanel-C8vY7QIF.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-D99Pw32q.js → AiFeatureMenu-BaUpnF6T.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-D99Pw32q.js.map → AiFeatureMenu-BaUpnF6T.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-dtyeSSvY.js → BlockA11yBadge-BHkh4Otq.js} +2 -2
- package/dist/cdn/chunks/{BlockA11yBadge-dtyeSSvY.js.map → BlockA11yBadge-BHkh4Otq.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-nQ7qsrkA.js → CloudEditor-DUIjZDAS.js} +265 -258
- package/dist/cdn/chunks/{CloudEditor-nQ7qsrkA.js.map → CloudEditor-DUIjZDAS.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Cuy1BusU.js → CollaboratorBar-pyuEO5Bm.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-Cuy1BusU.js.map → CollaboratorBar-pyuEO5Bm.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CqFM85Xv.js → CountdownToolbar-CCGHm6Gg.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-CqFM85Xv.js.map → CountdownToolbar-CCGHm6Gg.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-Dcxtq_dC.js → ModuleBrowserModal-DKsMddYS.js} +6 -6
- package/dist/cdn/chunks/{ModuleBrowserModal-Dcxtq_dC.js.map → ModuleBrowserModal-DKsMddYS.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-Didb4ZCU.js → ModulePreviewCanvas-E0mfCUJi.js} +2 -2
- package/dist/cdn/chunks/{ModulePreviewCanvas-Didb4ZCU.js.map → ModulePreviewCanvas-E0mfCUJi.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BX2L35YF.js → ParagraphEditor-DwmzHg6F.js} +116 -116
- package/dist/cdn/chunks/ParagraphEditor-DwmzHg6F.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-ywrdsvHY.js → RichTextEditorContent-4-cNqB4H.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-ywrdsvHY.js.map → RichTextEditorContent-4-cNqB4H.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-Ddp-HCFB.js → SaveModuleDialog-COm3ptOF.js} +3 -3
- package/dist/cdn/chunks/{SaveModuleDialog-Ddp-HCFB.js.map → SaveModuleDialog-COm3ptOF.js.map} +1 -1
- package/dist/cdn/chunks/{SlidingPillSelect-CS6N3vGq.js → SlidingPillSelect-DlgRynQN.js} +2 -2
- package/dist/cdn/chunks/{SlidingPillSelect-CS6N3vGq.js.map → SlidingPillSelect-DlgRynQN.js.map} +1 -1
- package/dist/cdn/chunks/TitleEditor-CE8r8txX.js +171 -0
- package/dist/cdn/chunks/TitleEditor-CE8r8txX.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-B2x3gJsz.js → blockTypeIcons-BOf7hTFU.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-B2x3gJsz.js.map → blockTypeIcons-BOf7hTFU.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-CdYSoz4B.js → extensions-B5e8Ov02.js} +17 -17
- package/dist/cdn/chunks/{extensions-CdYSoz4B.js.map → extensions-B5e8Ov02.js.map} +1 -1
- package/dist/cdn/chunks/{features-BZeMkHMs.js → features-BHTP4oRU.js} +734 -734
- package/dist/cdn/chunks/features-BHTP4oRU.js.map +1 -0
- package/dist/cdn/chunks/{icons-nP0Wj6Eq.js → icons-DS4IYWzG.js} +2 -2
- package/dist/cdn/chunks/{icons-nP0Wj6Eq.js.map → icons-DS4IYWzG.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-54Ezt5wL.js → media-library-BLLJsLwk.js} +508 -508
- package/dist/cdn/chunks/{media-library-54Ezt5wL.js.map → media-library-BLLJsLwk.js.map} +1 -1
- package/dist/cdn/chunks/{quality-Di1pUcCW.js → quality-DfKLOn8j.js} +290 -290
- package/dist/cdn/chunks/{quality-Di1pUcCW.js.map → quality-DfKLOn8j.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-C4OuJhDG.js → renderer-fG9yLafB.js} +14 -14
- package/dist/cdn/chunks/{renderer-C4OuJhDG.js.map → renderer-fG9yLafB.js.map} +1 -1
- package/dist/cdn/chunks/{src-DF5NNH7S.js → src-DsfVhQaK.js} +4 -4
- package/dist/cdn/chunks/{src-DF5NNH7S.js.map → src-DsfVhQaK.js.map} +1 -1
- package/dist/cdn/chunks/{styles-BZJ3yQ0G.js → styles-CPUuKOlD.js} +211 -212
- package/dist/cdn/chunks/styles-CPUuKOlD.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CZ52Pj8k.js → tiptap-q69oUYhb.js} +2 -2
- package/dist/cdn/chunks/{tiptap-CZ52Pj8k.js.map → tiptap-q69oUYhb.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +130 -123
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{extensions-CNPdJw_8.js → extensions-mwqd2u9M.js} +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/keys-CqdzeWhT.js +10 -0
- package/dist/style.css +1 -1
- package/dist/{styles-Czir-MYq.js → styles-BRNubGRJ.js} +288 -289
- package/dist/templatical-editor.js +134 -127
- package/dist/{useCloudI18n-DOKSZql1.js → useCloudI18n-CDhjmAgB.js} +1 -1
- package/dist/{useEditorCore-BHSyoxSK.js → useEditorCore-DB4A_cje.js} +22 -22
- package/dist/{useI18n-C2xQZ6K9.js → useI18n-DLZJ6wNn.js} +1 -1
- package/dist/{useMergeTag-BfVcyNSv.js → useMergeTag-D-kqWENN.js} +2 -2
- package/package.json +7 -7
- package/dist/TitleEditor-CHmL3FFR.js +0 -172
- package/dist/cdn/chunks/ParagraphEditor-BX2L35YF.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-BTtgZzci.js +0 -171
- package/dist/cdn/chunks/TitleEditor-BTtgZzci.js.map +0 -1
- package/dist/cdn/chunks/features-BZeMkHMs.js.map +0 -1
- package/dist/cdn/chunks/styles-BZJ3yQ0G.js.map +0 -1
- package/dist/keys-CvX8D-8C.js +0 -10
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-BNuo_Jkg.js";
|
|
2
2
|
import { $ as t, A as n, B as r, C as i, D as a, G as o, H as s, I as c, L as l, M as u, N as d, P as f, S as p, W as m, _ as h, b as g, c as _, ct as v, d as y, dt as b, f as x, ft as S, g as C, h as w, l as T, m as E, n as D, p as O, rt as k, t as A, tt as j, u as M, ut as N, v as P, x as F, z as I } from "./draggable-C-1_gch3.js";
|
|
3
|
-
import { $t as L, A as ee, An as R, At as z, Bn as B, Bt as V,
|
|
4
|
-
import { A as K, B as Ot, G as kt, H as At, I as jt, K as Mt, L as Nt, N as Pt, P as Ft, Q as It, S as Lt, T as Rt, U as zt, V as Bt, W as Vt, Z as Ht, at as Ut, d as Wt, dt as Gt, f as Kt, ft as qt, gt as Jt, ht as Yt, i as Xt, l as Zt, lt as Qt, m as $t, nt as en, q as tn, st as nn, u as rn, ut as an, v as on, w as sn, x as cn, y as ln, z as un } from "./icons-
|
|
3
|
+
import { $t as L, A as ee, An as R, At as z, Bn as B, Bt as V, Cn as te, Dn as ne, Dt as H, En as re, Et as ie, F as ae, Fn as oe, Ft as se, G as ce, Gn as le, Hn as ue, Ht as de, I as fe, In as pe, It as me, J as he, Jt as ge, K as _e, Kn as ve, Kt as ye, L as be, Ln as xe, M as Se, Mt as Ce, N as we, Nn as Te, Nt as Ee, Ot as De, P as Oe, Pt as ke, Qt as Ae, R as je, Rn as Me, Rt as Ne, Sn as Pe, Tn as Fe, Tt as Ie, U as Le, Un as Re, V as ze, Vn as Be, Vt as U, W as Ve, Wn as He, Wt as Ue, X as We, Y as Ge, Yn as Ke, Z as qe, Zt as Je, _n as Ye, an as W, bt as Xe, ct as Ze, dt as Qe, fn as $e, ft as et, in as tt, j as nt, jn as rt, kn as it, kt as at, mn as ot, mt as st, nn as ct, nr as lt, nt as ut, on as dt, ot as G, q as ft, qn as pt, qt as mt, rn as ht, rt as gt, sn as _t, st as vt, tn as yt, ut as bt, vn as xt, vt as St, wt as Ct, xn as wt, yt as Tt, z as Et, zn as Dt } from "./features-BHTP4oRU.js";
|
|
4
|
+
import { A as K, B as Ot, G as kt, H as At, I as jt, K as Mt, L as Nt, N as Pt, P as Ft, Q as It, S as Lt, T as Rt, U as zt, V as Bt, W as Vt, Z as Ht, at as Ut, d as Wt, dt as Gt, f as Kt, ft as qt, gt as Jt, ht as Yt, i as Xt, l as Zt, lt as Qt, m as $t, nt as en, q as tn, st as nn, u as rn, ut as an, v as on, w as sn, x as cn, y as ln, z as un } from "./icons-DS4IYWzG.js";
|
|
5
5
|
import { t as dn } from "./readableTextColor-DhoK4XiZ.js";
|
|
6
|
-
import { t as fn } from "./blockTypeIcons-
|
|
6
|
+
import { t as fn } from "./blockTypeIcons-BOf7hTFU.js";
|
|
7
7
|
import { _ as pn, c as mn, f as q, g as hn, h as J, l as gn, m as Y, p as X, t as _n } from "./styleConstants-DfcU8u_r.js";
|
|
8
|
-
import { a as Z, i as vn, n as yn, r as Q, t as bn } from "./SlidingPillSelect-
|
|
8
|
+
import { a as Z, i as vn, n as yn, r as Q, t as bn } from "./SlidingPillSelect-DlgRynQN.js";
|
|
9
9
|
//#region src/utils/resolveAccessibilityOptions.ts
|
|
10
10
|
function xn(e) {
|
|
11
11
|
return {
|
|
@@ -17,9 +17,9 @@ function xn(e) {
|
|
|
17
17
|
//#region src/utils/resolvePopupEmbed.ts
|
|
18
18
|
var Sn = /* @__PURE__ */ e(A(), 1);
|
|
19
19
|
function Cn(e) {
|
|
20
|
-
let t =
|
|
20
|
+
let t = Be(), n = e.popup;
|
|
21
21
|
return n ? {
|
|
22
|
-
triggers:
|
|
22
|
+
triggers: He(t.triggers, n.triggers),
|
|
23
23
|
design: {
|
|
24
24
|
...t.design,
|
|
25
25
|
...n.design ?? {},
|
|
@@ -33,7 +33,7 @@ function Cn(e) {
|
|
|
33
33
|
...n.schedule ?? {},
|
|
34
34
|
slots: n.schedule?.slots === void 0 ? t.schedule.slots : n.schedule.slots
|
|
35
35
|
},
|
|
36
|
-
frequency:
|
|
36
|
+
frequency: Re(n.frequency)
|
|
37
37
|
} : t;
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
@@ -73,28 +73,28 @@ var wn = {
|
|
|
73
73
|
setup(e, { emit: t }) {
|
|
74
74
|
let r = {
|
|
75
75
|
section: ee,
|
|
76
|
-
title:
|
|
76
|
+
title: Se,
|
|
77
77
|
paragraph: Ve,
|
|
78
|
-
image:
|
|
78
|
+
image: ft,
|
|
79
79
|
button: Ne,
|
|
80
|
-
input:
|
|
80
|
+
input: _e,
|
|
81
81
|
divider: Ge,
|
|
82
|
-
spacer:
|
|
83
|
-
html:
|
|
84
|
-
social:
|
|
85
|
-
menu:
|
|
86
|
-
table:
|
|
87
|
-
video:
|
|
82
|
+
spacer: Oe,
|
|
83
|
+
html: he,
|
|
84
|
+
social: ae,
|
|
85
|
+
menu: ce,
|
|
86
|
+
table: we,
|
|
87
|
+
video: nt,
|
|
88
88
|
countdown: Et,
|
|
89
89
|
form: je,
|
|
90
90
|
discountCoupon: We,
|
|
91
|
-
custom:
|
|
92
|
-
}, i = e, c = t, { t: l } =
|
|
91
|
+
custom: qe
|
|
92
|
+
}, i = e, c = t, { t: l } = U(), { t: d } = gt(), p = $e(yt, "Canvas"), _ = a(Je, null), y = a(mt, null), x = a(ge, {}), D = E(() => (x.plan?.hasFeature("ai_generation") ?? !1) && (x.ai?.isFeatureEnabled("chat") ?? !1)), O = E(() => (x.plan?.hasFeature("ai_generation") ?? !1) && (x.ai?.isFeatureEnabled("designToTemplate") ?? !1)), k = E({
|
|
93
93
|
get: () => i.content.blocks,
|
|
94
94
|
set: (e) => {
|
|
95
95
|
let t = i.content, n = t.activeCanvasPageId;
|
|
96
96
|
if (t.canvasPages?.length && n) {
|
|
97
|
-
p.setContent(
|
|
97
|
+
p.setContent(pt({
|
|
98
98
|
...t,
|
|
99
99
|
canvasPages: t.canvasPages.map((t) => t.id === n ? {
|
|
100
100
|
...t,
|
|
@@ -127,7 +127,6 @@ var wn = {
|
|
|
127
127
|
function z(e, t) {
|
|
128
128
|
if (!e) return e;
|
|
129
129
|
let n = Math.min(1, Math.max(0, t === void 0 || !Number.isFinite(t) ? 1 : t));
|
|
130
|
-
if (n === 0) return "transparent";
|
|
131
130
|
if (n === 1) return e;
|
|
132
131
|
let r = e.trim(), i = null;
|
|
133
132
|
if (/^#[0-9a-f]{6}$/i.test(r) ? i = r.slice(1) : /^#[0-9a-f]{3}$/i.test(r) && (i = r[1] + r[1] + r[2] + r[2] + r[3] + r[3]), !i) return e;
|
|
@@ -140,42 +139,42 @@ var wn = {
|
|
|
140
139
|
return t === 0 ? "none" : `0 ${Math.round(t * 12)}px ${Math.round(t * 60)}px rgba(0, 0, 0, ${Number((t * .35).toFixed(3))})`;
|
|
141
140
|
}
|
|
142
141
|
let V = E(() => i.content.settings.popup ? Cn(i.content.settings).design : null);
|
|
143
|
-
function
|
|
142
|
+
function ne(e) {
|
|
144
143
|
return e === void 0 || !Number.isFinite(e) ? Fn : Math.min(30, Math.max(0, e));
|
|
145
144
|
}
|
|
146
145
|
let H = E(() => {
|
|
147
146
|
let e = V.value;
|
|
148
147
|
return e?.useOverlay ? e : null;
|
|
149
|
-
}),
|
|
148
|
+
}), re = E(() => V.value?.sizePreset ?? "large"), oe = E(() => !!H.value && re.value === "fullHeight"), se = E(() => !!H.value && re.value === "fullscreen"), le = E(() => oe.value || se.value), ue = j(null);
|
|
150
149
|
s(() => {
|
|
151
150
|
let e = V.value;
|
|
152
151
|
return e?.backgroundImage && e.backgroundImageUrl ? e.backgroundImageUrl : "";
|
|
153
152
|
}, (e) => {
|
|
154
|
-
if (
|
|
153
|
+
if (ue.value = null, !e) return;
|
|
155
154
|
let t = new Image(), n = e;
|
|
156
155
|
t.onload = () => {
|
|
157
|
-
n === V.value?.backgroundImageUrl && (!t.naturalWidth || !t.naturalHeight || (
|
|
156
|
+
n === V.value?.backgroundImageUrl && (!t.naturalWidth || !t.naturalHeight || (ue.value = t.naturalWidth / t.naturalHeight));
|
|
158
157
|
}, t.onerror = () => {
|
|
159
|
-
|
|
158
|
+
ue.value = null;
|
|
160
159
|
}, t.src = e;
|
|
161
160
|
}, { immediate: !0 });
|
|
162
|
-
let { height:
|
|
161
|
+
let { height: de } = te(), fe = E(() => Math.max(Ln, de.value - In)), pe = E(() => i.viewport === "desktop"), me = E(() => {
|
|
163
162
|
switch (i.viewport) {
|
|
164
163
|
case "mobile": return 375;
|
|
165
164
|
case "tablet": return 768;
|
|
166
165
|
default: return 0;
|
|
167
166
|
}
|
|
168
|
-
}),
|
|
167
|
+
}), ve = E(() => {
|
|
169
168
|
switch (i.viewport) {
|
|
170
169
|
case "mobile": return 600;
|
|
171
170
|
case "tablet": return 600;
|
|
172
171
|
default: return 600;
|
|
173
172
|
}
|
|
174
|
-
}),
|
|
173
|
+
}), ye = E(() => {
|
|
175
174
|
let e = i.content.settings.width;
|
|
176
|
-
return
|
|
175
|
+
return pe.value ? e : Math.min(e, me.value);
|
|
177
176
|
});
|
|
178
|
-
function
|
|
177
|
+
function be(e) {
|
|
179
178
|
switch (e) {
|
|
180
179
|
case "topLeft":
|
|
181
180
|
case "middleLeft":
|
|
@@ -188,8 +187,8 @@ var wn = {
|
|
|
188
187
|
}
|
|
189
188
|
let xe = E(() => {
|
|
190
189
|
let e = H.value?.popupPosition ?? "center";
|
|
191
|
-
if (
|
|
192
|
-
if (
|
|
190
|
+
if (se.value) return "tpl:items-stretch tpl:justify-center";
|
|
191
|
+
if (oe.value) return `tpl:items-stretch ${be(e)}`;
|
|
193
192
|
switch (e) {
|
|
194
193
|
case "topLeft": return "tpl:items-start tpl:justify-start";
|
|
195
194
|
case "topCenter": return "tpl:items-start tpl:justify-center";
|
|
@@ -201,10 +200,10 @@ var wn = {
|
|
|
201
200
|
case "bottomRight": return "tpl:items-end tpl:justify-end";
|
|
202
201
|
default: return "tpl:items-center tpl:justify-center";
|
|
203
202
|
}
|
|
204
|
-
}),
|
|
205
|
-
let e = { width:
|
|
206
|
-
if (
|
|
207
|
-
let t =
|
|
203
|
+
}), Ce = E(() => {
|
|
204
|
+
let e = { width: pe.value ? "100%" : `${me.value}px` };
|
|
205
|
+
if (le.value) {
|
|
206
|
+
let t = fe.value;
|
|
208
207
|
return {
|
|
209
208
|
...e,
|
|
210
209
|
minHeight: `${t}px`,
|
|
@@ -213,13 +212,13 @@ var wn = {
|
|
|
213
212
|
}
|
|
214
213
|
return {
|
|
215
214
|
...e,
|
|
216
|
-
minHeight: `${
|
|
215
|
+
minHeight: `${ve.value}px`
|
|
217
216
|
};
|
|
218
|
-
}),
|
|
219
|
-
let e = !!H.value, t = e ? `${
|
|
220
|
-
if (o && e && !
|
|
221
|
-
let e =
|
|
222
|
-
n >
|
|
217
|
+
}), Te = E(() => {
|
|
218
|
+
let e = !!H.value, t = e ? `${ye.value}px` : L.value ? "100%" : `${A.value}px`, n = H.value, r = n?.backgroundImage && n.backgroundImageUrl ? n.backgroundImageUrl : "", a = n?.backgroundImageFit ?? "cover", o = r && a === "auto" && ue.value !== null, s = o ? "100% 100%" : a === "contain" ? "contain" : "cover", c = null, l = null;
|
|
219
|
+
if (o && e && !le.value) {
|
|
220
|
+
let e = ue.value, t = ye.value, n = t / e;
|
|
221
|
+
n > fe.value ? (l = fe.value, c = l * e) : (c = t, l = n);
|
|
223
222
|
}
|
|
224
223
|
let u = B(i.content.settings.backgroundShadow), d = {
|
|
225
224
|
width: c === null ? t : `${Math.round(c)}px`,
|
|
@@ -232,19 +231,19 @@ var wn = {
|
|
|
232
231
|
filter: i.darkMode ? "invert(1) hue-rotate(180deg)" : "none",
|
|
233
232
|
transition: "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 300ms ease"
|
|
234
233
|
};
|
|
235
|
-
if (l !== null && (d.height = `${Math.round(l)}px`, d.minHeight = "0"), e &&
|
|
236
|
-
else if (e &&
|
|
237
|
-
let e =
|
|
238
|
-
d.width = `${
|
|
234
|
+
if (l !== null && (d.height = `${Math.round(l)}px`, d.minHeight = "0"), e && se.value) d.width = "100%", d.height = "100%", d.minHeight = "100%", d.maxHeight = "none", d.borderRadius = "0";
|
|
235
|
+
else if (e && oe.value) {
|
|
236
|
+
let e = fe.value;
|
|
237
|
+
d.width = `${ye.value}px`, d.height = `${e}px`, d.minHeight = `${e}px`, d.maxHeight = `${e}px`, d.borderRadius = "0";
|
|
239
238
|
}
|
|
240
239
|
return d;
|
|
241
|
-
}),
|
|
240
|
+
}), Ee = E(() => H.value ? pe.value ? { width: "100%" } : { width: `${me.value}px` } : L.value ? { width: `${A.value}px` } : void 0), De = E(() => {
|
|
242
241
|
let e = H.value;
|
|
243
242
|
return {
|
|
244
243
|
backgroundColor: e?.backgroundImage && e.backgroundImageUrl ? "transparent" : z(i.content.settings.backgroundColor, i.content.settings.backgroundOpacity),
|
|
245
244
|
fontFamily: i.content.settings.fontFamily
|
|
246
245
|
};
|
|
247
|
-
}),
|
|
246
|
+
}), ke = E(() => {
|
|
248
247
|
if (!i.content.settings.popup) return {};
|
|
249
248
|
let e = Cn(i.content.settings).design.contentPadding;
|
|
250
249
|
return {
|
|
@@ -253,20 +252,20 @@ var wn = {
|
|
|
253
252
|
paddingBottom: `${e.bottom}px`,
|
|
254
253
|
paddingLeft: `${e.left}px`
|
|
255
254
|
};
|
|
256
|
-
}),
|
|
255
|
+
}), Ae = E(() => {
|
|
257
256
|
let e = H.value;
|
|
258
257
|
return !!(e?.overlayImage && e.overlayImageUrl);
|
|
259
|
-
}),
|
|
258
|
+
}), Me = E(() => {
|
|
260
259
|
let e = H.value;
|
|
261
260
|
if (!e) return {};
|
|
262
|
-
let t =
|
|
261
|
+
let t = ne(e.overlayBlur), n = t > 0 ? `blur(${t}px)` : "none";
|
|
263
262
|
return {
|
|
264
263
|
backdropFilter: n,
|
|
265
264
|
WebkitBackdropFilter: n,
|
|
266
|
-
backgroundColor:
|
|
265
|
+
backgroundColor: Ae.value ? "transparent" : "rgba(0, 0, 0, 0.1)"
|
|
267
266
|
};
|
|
268
|
-
}),
|
|
269
|
-
let e =
|
|
267
|
+
}), Pe = E(() => H.value?.overlayImageUrl ?? ""), Fe = E(() => R(H.value?.overlayImageOpacity ?? 1)), Ie = E(() => {
|
|
268
|
+
let e = ne(H.value?.overlayBlur), t = e > 0 ? `blur(${e}px)` : "none";
|
|
270
269
|
return {
|
|
271
270
|
opacity: Fe.value,
|
|
272
271
|
filter: t,
|
|
@@ -304,16 +303,16 @@ var wn = {
|
|
|
304
303
|
let e = Be.value;
|
|
305
304
|
return !e || !He.value ? { animation: "none" } : { animation: `${e} ${Rn} ${zn} ${Bn} both` };
|
|
306
305
|
});
|
|
307
|
-
function
|
|
306
|
+
function Ke(e) {
|
|
308
307
|
i.previewMode || e.target === e.currentTarget && c("select-block", null);
|
|
309
308
|
}
|
|
310
309
|
function Ye(e) {
|
|
311
310
|
return Le(e, y, r);
|
|
312
311
|
}
|
|
313
|
-
function
|
|
312
|
+
function W(e) {
|
|
314
313
|
return i.lockedBlocks?.get(e) ?? null;
|
|
315
314
|
}
|
|
316
|
-
function
|
|
315
|
+
function Xe(e, t) {
|
|
317
316
|
e.type === "custom" && p.updateBlock(e.id, {
|
|
318
317
|
fieldValues: t.fieldValues,
|
|
319
318
|
dataSourceFetched: t.dataSourceFetched
|
|
@@ -321,16 +320,16 @@ var wn = {
|
|
|
321
320
|
}
|
|
322
321
|
return (t, n) => (f(), P("div", {
|
|
323
322
|
class: N(["tpl-canvas-root tpl:box-border tpl:max-w-full", H.value ? "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col" : ""]),
|
|
324
|
-
style: b(
|
|
323
|
+
style: b(Ee.value)
|
|
325
324
|
}, [w("div", {
|
|
326
325
|
class: N(H.value ? "tpl-popup-frame tpl:relative tpl:flex tpl:flex-col tpl:max-w-full tpl:overflow-hidden" : "tpl:contents"),
|
|
327
|
-
style: b(H.value ?
|
|
326
|
+
style: b(H.value ? Ce.value : void 0)
|
|
328
327
|
}, [H.value ? (f(), P("div", wn, [w("div", {
|
|
329
328
|
class: "tpl:absolute tpl:inset-0",
|
|
330
|
-
style: b(
|
|
331
|
-
}, null, 4),
|
|
329
|
+
style: b(Me.value)
|
|
330
|
+
}, null, 4), Ae.value ? (f(), P("img", {
|
|
332
331
|
key: 0,
|
|
333
|
-
src:
|
|
332
|
+
src: Pe.value,
|
|
334
333
|
alt: "",
|
|
335
334
|
class: "tpl:absolute tpl:inset-0 tpl:h-full tpl:w-full tpl:object-cover",
|
|
336
335
|
style: b(Ie.value)
|
|
@@ -338,20 +337,20 @@ var wn = {
|
|
|
338
337
|
"data-testid": "canvas-wrapper",
|
|
339
338
|
role: "region",
|
|
340
339
|
"aria-label": v(l).landmarks.canvas,
|
|
341
|
-
class: N(["tpl-canvas-wrapper tpl:rounded-lg",
|
|
342
|
-
style: b([
|
|
340
|
+
class: N(["tpl-canvas-wrapper tpl:rounded-lg", le.value ? "tpl:flex tpl:h-full tpl:min-h-0 tpl:flex-col !tpl:rounded-none" : "tpl:shrink-0"]),
|
|
341
|
+
style: b([Te.value, Ue.value])
|
|
343
342
|
}, [w("div", {
|
|
344
343
|
class: N(["tpl-canvas tpl:rounded-lg", {
|
|
345
344
|
"tpl-canvas--dark-mode": e.darkMode,
|
|
346
345
|
"tpl-preview-mode": e.previewMode,
|
|
347
|
-
"tpl:min-h-0 tpl:flex-1 tpl:overflow-y-auto":
|
|
348
|
-
"!tpl:rounded-none":
|
|
346
|
+
"tpl:min-h-0 tpl:flex-1 tpl:overflow-y-auto": le.value,
|
|
347
|
+
"!tpl:rounded-none": le.value
|
|
349
348
|
}]),
|
|
350
349
|
style: b({
|
|
351
|
-
...
|
|
352
|
-
...
|
|
350
|
+
...De.value,
|
|
351
|
+
...ke.value
|
|
353
352
|
}),
|
|
354
|
-
onClick:
|
|
353
|
+
onClick: Ke
|
|
355
354
|
}, [F(v(Sn.default), {
|
|
356
355
|
modelValue: k.value,
|
|
357
356
|
"onUpdate:modelValue": n[2] ||= (e) => k.value = e,
|
|
@@ -366,30 +365,30 @@ var wn = {
|
|
|
366
365
|
disabled: e.previewMode,
|
|
367
366
|
class: "tpl-canvas-blocks"
|
|
368
367
|
}, {
|
|
369
|
-
item: m(({ element: t }) => [o(w("div", null, [w("div", Dn, [
|
|
368
|
+
item: m(({ element: t }) => [o(w("div", null, [w("div", Dn, [W(t.id) ? (f(), P("div", {
|
|
370
369
|
key: 0,
|
|
371
370
|
class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
|
|
372
371
|
style: b({
|
|
373
|
-
outline: `2px solid ${
|
|
372
|
+
outline: `2px solid ${W(t.id).color}`,
|
|
374
373
|
outlineOffset: "-1px"
|
|
375
374
|
})
|
|
376
375
|
}, [w("span", {
|
|
377
376
|
class: "tpl:absolute tpl:-top-0.5 tpl:left-1/2 tpl:z-[5] tpl:flex tpl:-translate-x-1/2 tpl:-translate-y-full tpl:items-center tpl:gap-1 tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:whitespace-nowrap",
|
|
378
377
|
style: b({
|
|
379
|
-
backgroundColor:
|
|
380
|
-
color: v(dn)(
|
|
378
|
+
backgroundColor: W(t.id).color,
|
|
379
|
+
color: v(dn)(W(t.id).color)
|
|
381
380
|
})
|
|
382
|
-
}, [w("span", On, S(
|
|
381
|
+
}, [w("span", On, S(W(t.id).name.charAt(0)), 1), g(" " + S(W(t.id).name), 1)], 4)], 4)) : h("", !0), F(ze, {
|
|
383
382
|
block: t,
|
|
384
|
-
"is-selected": !e.previewMode && e.selectedBlockId === t.id && !
|
|
383
|
+
"is-selected": !e.previewMode && e.selectedBlockId === t.id && !W(t.id),
|
|
385
384
|
viewport: e.viewport,
|
|
386
385
|
"preview-mode": e.previewMode,
|
|
387
|
-
onSelect: (n) => e.previewMode ||
|
|
386
|
+
onSelect: (n) => e.previewMode || W(t.id) ? void 0 : c("select-block", t.id)
|
|
388
387
|
}, {
|
|
389
388
|
default: m(() => [(f(), C(I(Ye(t)), {
|
|
390
389
|
block: t,
|
|
391
390
|
viewport: e.viewport,
|
|
392
|
-
onFetchData: (e) =>
|
|
391
|
+
onFetchData: (e) => Xe(t, e),
|
|
393
392
|
onUpdate: (e) => v(p).updateBlock(t.id, e)
|
|
394
393
|
}, null, 40, [
|
|
395
394
|
"block",
|
|
@@ -417,7 +416,7 @@ var wn = {
|
|
|
417
416
|
w("button", {
|
|
418
417
|
class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
419
418
|
onClick: n[0] ||= (e) => c("open-ai-chat")
|
|
420
|
-
}, [F(v(
|
|
419
|
+
}, [F(v(st), {
|
|
421
420
|
size: 14,
|
|
422
421
|
"stroke-width": 2
|
|
423
422
|
}), g(" " + S(v(d).aiMenu.aiAssistant), 1)]),
|
|
@@ -428,7 +427,7 @@ var wn = {
|
|
|
428
427
|
w("button", {
|
|
429
428
|
class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
430
429
|
onClick: n[1] ||= (e) => c("open-design-reference")
|
|
431
|
-
}, [F(v(
|
|
430
|
+
}, [F(v(ie), {
|
|
432
431
|
size: 14,
|
|
433
432
|
"stroke-width": 2
|
|
434
433
|
}), g(" " + S(v(d).aiMenu.designToTemplate), 1)]),
|
|
@@ -438,7 +437,7 @@ var wn = {
|
|
|
438
437
|
_: 1
|
|
439
438
|
}, 8, ["modelValue", "disabled"])], 6)], 14, En)], 2)], 6)], 6));
|
|
440
439
|
}
|
|
441
|
-
}), [["__scopeId", "data-v-
|
|
440
|
+
}), [["__scopeId", "data-v-483d6fc9"]]), Hn = ["aria-label"], Un = { class: "tpl:relative tpl:inline-flex tpl:items-stretch" }, Wn = [
|
|
442
441
|
"aria-selected",
|
|
443
442
|
"tabindex",
|
|
444
443
|
"onClick"
|
|
@@ -463,7 +462,7 @@ var wn = {
|
|
|
463
462
|
multiPageCanvas: { type: Boolean }
|
|
464
463
|
},
|
|
465
464
|
setup(e) {
|
|
466
|
-
let t = e, { t: n } =
|
|
465
|
+
let t = e, { t: n } = U(), r = $e(yt, "CanvasPagesNav"), i = E(() => r.content.value.canvasPages ?? []), a = E(() => r.content.value.activeCanvasPageId ?? null), o = j(null), s = j(null), l = j(null), d = j(null);
|
|
467
466
|
function p(e, t) {
|
|
468
467
|
let n = t.currentTarget;
|
|
469
468
|
if (!n) return;
|
|
@@ -490,7 +489,7 @@ var wn = {
|
|
|
490
489
|
for (let n = 1; n < e.length; n += 1) _(e[n - 1].blocks) || t.add(e[n].id);
|
|
491
490
|
return t;
|
|
492
491
|
});
|
|
493
|
-
|
|
492
|
+
ot(o, () => {
|
|
494
493
|
s.value = null;
|
|
495
494
|
}), u(() => {
|
|
496
495
|
t.multiPageCanvas && r.ensureCanvasPages();
|
|
@@ -519,7 +518,7 @@ var wn = {
|
|
|
519
518
|
class: "tpl-canvas-steps-nav tpl:flex tpl:w-full tpl:flex-wrap tpl:items-center tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2.5 tpl:shadow-[var(--tpl-shadow-md)] tpl:font-[var(--tpl-font-family)]",
|
|
520
519
|
role: "tablist",
|
|
521
520
|
"aria-label": v(n).canvas.pages.ariaStrip
|
|
522
|
-
}, [(f(!0), P(x, null, c(i.value, (t, r) => (f(), P(x, { key: t.id }, [r > 0 ? (f(), C(v(
|
|
521
|
+
}, [(f(!0), P(x, null, c(i.value, (t, r) => (f(), P(x, { key: t.id }, [r > 0 ? (f(), C(v(Ee), {
|
|
523
522
|
key: 0,
|
|
524
523
|
size: 16,
|
|
525
524
|
"stroke-width": 2,
|
|
@@ -544,7 +543,7 @@ var wn = {
|
|
|
544
543
|
onMouseleave: (e) => m(t.id),
|
|
545
544
|
onFocus: (e) => p(t.id, e),
|
|
546
545
|
onBlur: (e) => m(t.id)
|
|
547
|
-
}, [F(v(
|
|
546
|
+
}, [F(v(Qe), {
|
|
548
547
|
size: 16,
|
|
549
548
|
"stroke-width": 2
|
|
550
549
|
})], 40, Gn)) : h("", !0),
|
|
@@ -620,7 +619,7 @@ var wn = {
|
|
|
620
619
|
props: { imageUrl: {} },
|
|
621
620
|
emits: ["set-url"],
|
|
622
621
|
setup(e, { emit: t }) {
|
|
623
|
-
let n = e, r = t, { t: i } =
|
|
622
|
+
let n = e, r = t, { t: i } = U(), o = a(dt, null), s = E(() => o !== null), c = j(null), l = j(!1);
|
|
624
623
|
function u(e) {
|
|
625
624
|
let t = e?.[0];
|
|
626
625
|
if (!t || !t.type.startsWith("image/")) return;
|
|
@@ -698,14 +697,14 @@ var wn = {
|
|
|
698
697
|
type: "button",
|
|
699
698
|
class: "tpl:inline-flex tpl:flex-1 tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-2 tpl:py-2 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-colors hover:tpl:border-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]",
|
|
700
699
|
onClick: h
|
|
701
|
-
}, [F(v(
|
|
700
|
+
}, [F(v(Xe), {
|
|
702
701
|
size: 14,
|
|
703
702
|
"stroke-width": 1.75
|
|
704
703
|
}), g(" " + S(v(i).popupDesign.overlayImageReplace), 1)]), w("button", {
|
|
705
704
|
type: "button",
|
|
706
705
|
class: "tpl:inline-flex tpl:flex-1 tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-2 tpl:py-2 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-colors hover:tpl:border-[var(--tpl-danger)] hover:tpl:text-[var(--tpl-danger)]",
|
|
707
706
|
onClick: _
|
|
708
|
-
}, [F(v(
|
|
707
|
+
}, [F(v(Ze), {
|
|
709
708
|
size: 14,
|
|
710
709
|
"stroke-width": 1.75
|
|
711
710
|
}), g(" " + S(v(i).popupDesign.overlayImageRemove), 1)])])], 64)) : (f(), P("button", {
|
|
@@ -772,9 +771,9 @@ var wn = {
|
|
|
772
771
|
__name: "PopupDesignView",
|
|
773
772
|
props: { layout: { default: "standalone" } },
|
|
774
773
|
setup(e) {
|
|
775
|
-
let t = e, n = a(
|
|
774
|
+
let t = e, n = a(yt);
|
|
776
775
|
if (!n) throw Error("PopupDesignView requires EDITOR_KEY");
|
|
777
|
-
let { t: r } =
|
|
776
|
+
let { t: r } = U(), i = E(() => t.layout === "popupAdjacent" ? "tpl-popup-design tpl:w-full tpl:overflow-x-hidden tpl:px-4 tpl:pb-6 tpl:pt-4 tpl:bg-[var(--tpl-bg)]" : "tpl-popup-design tpl:mx-auto tpl:max-w-md tpl:px-5 tpl:py-8 tpl:bg-[var(--tpl-bg)]"), o = E(() => t.layout === "popupAdjacent" ? "tpl:mb-8 tpl:grid tpl:grid-cols-3 tpl:gap-2" : "tpl:mb-8 tpl:grid tpl:grid-cols-3 tpl:gap-3 sm:tpl:grid-cols-6"), s = j("style"), l = E(() => [
|
|
778
777
|
{
|
|
779
778
|
id: "style",
|
|
780
779
|
label: r.popupDesign.tabStyle
|
|
@@ -800,7 +799,7 @@ var wn = {
|
|
|
800
799
|
...t,
|
|
801
800
|
design: r
|
|
802
801
|
} };
|
|
803
|
-
e.sizePreset !== void 0 && (i.width =
|
|
802
|
+
e.sizePreset !== void 0 && (i.width = B[e.sizePreset]), n.updateSettings(i);
|
|
804
803
|
}
|
|
805
804
|
function p(e, t) {
|
|
806
805
|
d({ [e]: t });
|
|
@@ -1054,7 +1053,7 @@ function mi(e, t) {
|
|
|
1054
1053
|
if (!e?.length) return !1;
|
|
1055
1054
|
for (let n of e) {
|
|
1056
1055
|
if (t(n)) return !0;
|
|
1057
|
-
if (
|
|
1056
|
+
if (lt(n)) {
|
|
1058
1057
|
for (let e of n.children) if (Array.isArray(e) && mi(e, t)) return !0;
|
|
1059
1058
|
}
|
|
1060
1059
|
}
|
|
@@ -1105,7 +1104,7 @@ function Ci(e) {
|
|
|
1105
1104
|
if (!e?.length) return !1;
|
|
1106
1105
|
for (let t of e) {
|
|
1107
1106
|
if (t.type === "discountCoupon") return !0;
|
|
1108
|
-
if (
|
|
1107
|
+
if (lt(t)) {
|
|
1109
1108
|
for (let e of t.children) if (Array.isArray(e) && Ci(e)) return !0;
|
|
1110
1109
|
}
|
|
1111
1110
|
}
|
|
@@ -1121,7 +1120,7 @@ function wi(e) {
|
|
|
1121
1120
|
return Ci(e.blocks);
|
|
1122
1121
|
}
|
|
1123
1122
|
function Ti() {
|
|
1124
|
-
let { t: e, format: t } =
|
|
1123
|
+
let { t: e, format: t } = U(), n = a(Ae, []), r = a(ye, void 0), i = a(yt, null), o = a(ge, {}), s = a(ct, "email"), c = E(() => (o.savedModules?.moduleCount.value ?? 0) > 0), l = [
|
|
1125
1124
|
"section",
|
|
1126
1125
|
"image",
|
|
1127
1126
|
"title",
|
|
@@ -1159,9 +1158,9 @@ function Ti() {
|
|
|
1159
1158
|
function _(e) {
|
|
1160
1159
|
if (e.isCustom) {
|
|
1161
1160
|
let t = e.type.replace("custom:", ""), r = n.find((e) => e.type === t);
|
|
1162
|
-
if (r) return
|
|
1161
|
+
if (r) return pe(r);
|
|
1163
1162
|
}
|
|
1164
|
-
return
|
|
1163
|
+
return oe(e.type, r);
|
|
1165
1164
|
}
|
|
1166
1165
|
function v(e) {
|
|
1167
1166
|
if (!i || h(e)) return;
|
|
@@ -1296,7 +1295,7 @@ var Ei = ["aria-label"], Di = {
|
|
|
1296
1295
|
key: 0,
|
|
1297
1296
|
size: 20,
|
|
1298
1297
|
"stroke-width": 1.5
|
|
1299
|
-
})) : e.isCustom ? (f(), C(
|
|
1298
|
+
})) : e.isCustom ? (f(), C(vt, {
|
|
1300
1299
|
key: 1,
|
|
1301
1300
|
icon: e.icon,
|
|
1302
1301
|
size: 20
|
|
@@ -1315,7 +1314,7 @@ var Ei = ["aria-label"], Di = {
|
|
|
1315
1314
|
}), Fi = ["aria-label"], Ii = ["aria-label"], Li = ["aria-current", "onClick"], Ri = { class: "tpl:max-w-[4.25rem] tpl:text-center tpl:text-[10px] tpl:font-medium tpl:leading-tight" }, zi = ["aria-label"], Bi = /* @__PURE__ */ i({
|
|
1316
1315
|
__name: "PopupLeftChrome",
|
|
1317
1316
|
setup(e) {
|
|
1318
|
-
let t = a(
|
|
1317
|
+
let t = a(_t, j("blocks")), { t: n } = U(), r = E(() => [
|
|
1319
1318
|
{
|
|
1320
1319
|
id: "design",
|
|
1321
1320
|
icon: jt,
|
|
@@ -1371,7 +1370,7 @@ var Ei = ["aria-label"], Di = {
|
|
|
1371
1370
|
}), Vi = /* @__PURE__ */ i({
|
|
1372
1371
|
__name: "Sidebar",
|
|
1373
1372
|
setup(e) {
|
|
1374
|
-
let t = a(
|
|
1373
|
+
let t = a(ct, "email");
|
|
1375
1374
|
return (e, n) => v(t) === "popup" ? (f(), C(Bi, { key: 0 })) : (f(), C(Pi, { key: 1 }));
|
|
1376
1375
|
}
|
|
1377
1376
|
});
|
|
@@ -1392,10 +1391,10 @@ function Hi(e) {
|
|
|
1392
1391
|
type: "mergeTag",
|
|
1393
1392
|
value: t,
|
|
1394
1393
|
label: c(t)
|
|
1395
|
-
}) :
|
|
1394
|
+
}) : Te(t, u) ? n.push({
|
|
1396
1395
|
type: "logicMergeTag",
|
|
1397
1396
|
value: t,
|
|
1398
|
-
keyword:
|
|
1397
|
+
keyword: rt(t, u)
|
|
1399
1398
|
}) : n.push({
|
|
1400
1399
|
type: "text",
|
|
1401
1400
|
value: t
|
|
@@ -1466,7 +1465,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
1466
1465
|
},
|
|
1467
1466
|
emits: ["edit", "clear"],
|
|
1468
1467
|
setup(e, { emit: t }) {
|
|
1469
|
-
let n = t, { t: r } =
|
|
1468
|
+
let n = t, { t: r } = U();
|
|
1470
1469
|
function i() {
|
|
1471
1470
|
n("edit");
|
|
1472
1471
|
}
|
|
@@ -1500,7 +1499,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
1500
1499
|
"aria-label": v(r).mergeTag.remove,
|
|
1501
1500
|
title: v(r).mergeTag.remove,
|
|
1502
1501
|
onClick: a[0] ||= y((e) => n("clear"), ["stop"])
|
|
1503
|
-
}, [F(v(
|
|
1502
|
+
}, [F(v(Ze), {
|
|
1504
1503
|
size: 12,
|
|
1505
1504
|
"stroke-width": 2.5
|
|
1506
1505
|
})], 8, qi)], 42, Ui));
|
|
@@ -1514,7 +1513,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
1514
1513
|
props: { disabled: { type: Boolean } },
|
|
1515
1514
|
emits: ["insert"],
|
|
1516
1515
|
setup(e) {
|
|
1517
|
-
let { t } =
|
|
1516
|
+
let { t } = U();
|
|
1518
1517
|
return (n, r) => (f(), P("button", {
|
|
1519
1518
|
type: "button",
|
|
1520
1519
|
class: N([Xi, "tpl:mt-1.5"]),
|
|
@@ -1582,7 +1581,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
1582
1581
|
},
|
|
1583
1582
|
emits: ["update:modelValue"],
|
|
1584
1583
|
setup(e, { emit: t }) {
|
|
1585
|
-
let n = e, r = t, { t: i } =
|
|
1584
|
+
let n = e, r = t, { t: i } = U(), a = E(() => n.modelValue.top === n.modelValue.right && n.modelValue.right === n.modelValue.bottom && n.modelValue.bottom === n.modelValue.left), o = j(a.value);
|
|
1586
1585
|
s(a, (e) => {
|
|
1587
1586
|
!e && o.value && (o.value = !1);
|
|
1588
1587
|
});
|
|
@@ -1752,7 +1751,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
1752
1751
|
props: { settings: {} },
|
|
1753
1752
|
emits: ["update"],
|
|
1754
1753
|
setup(e, { emit: t }) {
|
|
1755
|
-
let n = e, r = t, { t: i } =
|
|
1754
|
+
let n = e, r = t, { t: i } = U(), a = $e(ht, "TemplateSettings"), o = E(() => a.fonts.value), s = E(() => o.value.some((e) => e.value === n.settings.fontFamily) ? n.settings.fontFamily : a.defaultFont.value), l = [
|
|
1756
1755
|
{
|
|
1757
1756
|
value: 480,
|
|
1758
1757
|
label: "480px"
|
|
@@ -1894,7 +1893,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
1894
1893
|
}, null, 42, Xa),
|
|
1895
1894
|
w("p", Za, S(v(i).templateSettings.contentLocaleHint), 1)
|
|
1896
1895
|
])], 2),
|
|
1897
|
-
w("div", { class: N(v(gn)) }, [w("div", Qa, [F(v(
|
|
1896
|
+
w("div", { class: N(v(gn)) }, [w("div", Qa, [F(v(H), {
|
|
1898
1897
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
1899
1898
|
size: 14,
|
|
1900
1899
|
"stroke-width": 2
|
|
@@ -1984,7 +1983,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
1984
1983
|
},
|
|
1985
1984
|
emits: ["update"],
|
|
1986
1985
|
setup(e, { emit: t }) {
|
|
1987
|
-
let n = e, r = t, { t: i } =
|
|
1986
|
+
let n = e, r = t, { t: i } = U(), a = E(() => n.block.clickAction ?? "none"), o = E(() => {
|
|
1988
1987
|
let e = a.value;
|
|
1989
1988
|
return e === "none" || e === "load_page";
|
|
1990
1989
|
}), s = E(() => a.value === "load_page" ? i.button.pageUrl : i.button.url), l = E(() => a.value === "none" ? "" : a.value);
|
|
@@ -2116,7 +2115,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
2116
2115
|
type: "button",
|
|
2117
2116
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
2118
2117
|
onClick: n[0] ||= (e) => t.$emit("toggle")
|
|
2119
|
-
}, [F(v(
|
|
2118
|
+
}, [F(v(se), {
|
|
2120
2119
|
class: N(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
2121
2120
|
size: 12,
|
|
2122
2121
|
"stroke-width": 2
|
|
@@ -2142,7 +2141,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
2142
2141
|
},
|
|
2143
2142
|
emits: ["update"],
|
|
2144
2143
|
setup(e, { emit: n }) {
|
|
2145
|
-
let r = e, i = n, { t: l } =
|
|
2144
|
+
let r = e, i = n, { t: l } = U(), u = a(L, []), d = a(Ue, !1), p = t(/* @__PURE__ */ new Set()), y = j(!1), b = j(""), T = j(""), D = [
|
|
2146
2145
|
{
|
|
2147
2146
|
key: "desktop",
|
|
2148
2147
|
icon: At,
|
|
@@ -2363,7 +2362,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
2363
2362
|
props: { block: {} },
|
|
2364
2363
|
emits: ["update"],
|
|
2365
2364
|
setup(e, { emit: t }) {
|
|
2366
|
-
let n = e, r = t, { t: i } =
|
|
2365
|
+
let n = e, r = t, { t: i } = U(), a = j("fields"), o = [
|
|
2367
2366
|
{
|
|
2368
2367
|
id: "sync",
|
|
2369
2368
|
label: i.form.tabs.sync
|
|
@@ -2513,7 +2512,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
2513
2512
|
_.value = _.value === e ? null : e;
|
|
2514
2513
|
}
|
|
2515
2514
|
function k(e) {
|
|
2516
|
-
let t =
|
|
2515
|
+
let t = xe(e);
|
|
2517
2516
|
r("update", { fields: [...n.block.fields, t] }), _.value = t.id, T.value = !1;
|
|
2518
2517
|
}
|
|
2519
2518
|
function A(e) {
|
|
@@ -2566,7 +2565,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
2566
2565
|
style: b({ backgroundColor: t.color })
|
|
2567
2566
|
}, S(t.initial), 5),
|
|
2568
2567
|
w("span", Cs, S(t.label), 1),
|
|
2569
|
-
e.block.syncIntegrationId === t.id ? (f(), C(v(
|
|
2568
|
+
e.block.syncIntegrationId === t.id ? (f(), C(v(me), {
|
|
2570
2569
|
key: 0,
|
|
2571
2570
|
class: "tpl:absolute tpl:right-1 tpl:top-1 tpl:text-[var(--tpl-primary)]",
|
|
2572
2571
|
size: 14,
|
|
@@ -2587,10 +2586,10 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
2587
2586
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-danger)]",
|
|
2588
2587
|
title: v(i).form.fields.remove,
|
|
2589
2588
|
onClick: y((t) => A(e.id), ["stop"])
|
|
2590
|
-
}, [F(v(
|
|
2589
|
+
}, [F(v(et), {
|
|
2591
2590
|
size: 14,
|
|
2592
2591
|
"stroke-width": 1.75
|
|
2593
|
-
})], 8, ks), F(v(
|
|
2592
|
+
})], 8, ks), F(v(se), {
|
|
2594
2593
|
class: N(["tpl:transition-transform tpl:duration-200", _.value === e.id ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
2595
2594
|
size: 14,
|
|
2596
2595
|
"stroke-width": 2
|
|
@@ -2795,7 +2794,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
2795
2794
|
},
|
|
2796
2795
|
emits: ["update"],
|
|
2797
2796
|
setup(e, { emit: t }) {
|
|
2798
|
-
let n = e, r = t, { t: i } =
|
|
2797
|
+
let n = e, r = t, { t: i } = U(), a = j(!0), o = j(!0);
|
|
2799
2798
|
function s(e, t) {
|
|
2800
2799
|
r("update", { [e]: t });
|
|
2801
2800
|
}
|
|
@@ -3037,7 +3036,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3037
3036
|
},
|
|
3038
3037
|
emits: ["update:modelValue"],
|
|
3039
3038
|
setup(e, { emit: t }) {
|
|
3040
|
-
let n = t, { t: r } =
|
|
3039
|
+
let n = t, { t: r } = U();
|
|
3041
3040
|
return (t, i) => (f(), P("div", {
|
|
3042
3041
|
class: "tpl:mb-3.5",
|
|
3043
3042
|
title: e.readOnly ? v(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
@@ -3093,7 +3092,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3093
3092
|
},
|
|
3094
3093
|
emits: ["update:modelValue"],
|
|
3095
3094
|
setup(e, { emit: t }) {
|
|
3096
|
-
let n = t, { t: r } =
|
|
3095
|
+
let n = t, { t: r } = U();
|
|
3097
3096
|
return (t, i) => (f(), C(El, {
|
|
3098
3097
|
label: e.field.label,
|
|
3099
3098
|
required: e.field.required,
|
|
@@ -3131,7 +3130,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3131
3130
|
},
|
|
3132
3131
|
emits: ["update:modelValue"],
|
|
3133
3132
|
setup(e, { emit: t }) {
|
|
3134
|
-
let n = t, { t: r } =
|
|
3133
|
+
let n = t, { t: r } = U(), i = a(dt, null), o = E(() => !!i);
|
|
3135
3134
|
async function s() {
|
|
3136
3135
|
let e = await i?.({ accept: ["images"] });
|
|
3137
3136
|
e && n("update:modelValue", e.url);
|
|
@@ -3188,7 +3187,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3188
3187
|
},
|
|
3189
3188
|
emits: ["update:modelValue"],
|
|
3190
3189
|
setup(e, { emit: t }) {
|
|
3191
|
-
let n = t, { t: r } =
|
|
3190
|
+
let n = t, { t: r } = U();
|
|
3192
3191
|
return (t, i) => (f(), C(El, {
|
|
3193
3192
|
label: e.field.label,
|
|
3194
3193
|
required: e.field.required,
|
|
@@ -3225,7 +3224,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3225
3224
|
},
|
|
3226
3225
|
emits: ["update:modelValue"],
|
|
3227
3226
|
setup(e, { emit: t }) {
|
|
3228
|
-
let n = e, r = t, { t: i } =
|
|
3227
|
+
let n = e, r = t, { t: i } = U(), a = E(() => n.modelValue || []), o = E(() => !n.field.maxItems || a.value.length < n.field.maxItems), s = E(() => !n.field.minItems || a.value.length > n.field.minItems);
|
|
3229
3228
|
function l() {
|
|
3230
3229
|
if (!o.value || n.readOnly) return;
|
|
3231
3230
|
let e = {};
|
|
@@ -3258,7 +3257,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3258
3257
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
3259
3258
|
title: v(i).customBlocks.fields.removeItem,
|
|
3260
3259
|
onClick: (e) => u(n)
|
|
3261
|
-
}, [F(v(
|
|
3260
|
+
}, [F(v(et), {
|
|
3262
3261
|
size: 12,
|
|
3263
3262
|
"stroke-width": 2
|
|
3264
3263
|
})], 8, Il)) : h("", !0)]), (f(!0), P(x, null, c(e.field.fields, (r) => (f(), C(I(v(ql)(r.type)), {
|
|
@@ -3304,7 +3303,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3304
3303
|
},
|
|
3305
3304
|
emits: ["update:modelValue"],
|
|
3306
3305
|
setup(e, { emit: t }) {
|
|
3307
|
-
let n = t, { t: r } =
|
|
3306
|
+
let n = t, { t: r } = U();
|
|
3308
3307
|
return (t, i) => (f(), C(El, {
|
|
3309
3308
|
label: e.field.label,
|
|
3310
3309
|
required: e.field.required,
|
|
@@ -3340,7 +3339,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3340
3339
|
},
|
|
3341
3340
|
emits: ["update:modelValue"],
|
|
3342
3341
|
setup(e, { emit: t }) {
|
|
3343
|
-
let n = t, { t: r } =
|
|
3342
|
+
let n = t, { t: r } = U();
|
|
3344
3343
|
return (t, i) => (f(), C(El, {
|
|
3345
3344
|
label: e.field.label,
|
|
3346
3345
|
required: e.field.required,
|
|
@@ -3382,7 +3381,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3382
3381
|
},
|
|
3383
3382
|
emits: ["update:modelValue"],
|
|
3384
3383
|
setup(e, { emit: t }) {
|
|
3385
|
-
let n = t, { t: r } =
|
|
3384
|
+
let n = t, { t: r } = U();
|
|
3386
3385
|
return (t, i) => (f(), C(El, {
|
|
3387
3386
|
label: e.field.label,
|
|
3388
3387
|
required: e.field.required,
|
|
@@ -3445,7 +3444,7 @@ var Jl = {
|
|
|
3445
3444
|
props: { block: {} },
|
|
3446
3445
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
3447
3446
|
setup(e, { emit: t }) {
|
|
3448
|
-
let n = e, r = t, { t: i } =
|
|
3447
|
+
let n = e, r = t, { t: i } = U(), o = a(Ae, []), s = E(() => o.find((e) => e.type === n.block.customType)), { isFetching: l, fetchError: u, fetch: d, hasDataSource: p, needsFetch: m } = ne({
|
|
3449
3448
|
definition: s,
|
|
3450
3449
|
block: E(() => n.block),
|
|
3451
3450
|
onUpdate: (e, t) => {
|
|
@@ -3473,7 +3472,7 @@ var Jl = {
|
|
|
3473
3472
|
type: "button",
|
|
3474
3473
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]",
|
|
3475
3474
|
onClick: n[1] ||= (...e) => v(d) && v(d)(...e)
|
|
3476
|
-
}, [F(v(
|
|
3475
|
+
}, [F(v(St), { size: 12 }), g(" " + S(v(i).customBlocks.dataSource.changeButton), 1)]))])), v(u) ? (f(), P("p", tu, [F(v(Ce), {
|
|
3477
3476
|
size: 14,
|
|
3478
3477
|
class: "tpl:shrink-0"
|
|
3479
3478
|
}), g(" " + S(v(i).customBlocks.dataSource.fetchError), 1)])) : h("", !0)])) : h("", !0),
|
|
@@ -3524,7 +3523,7 @@ var Jl = {
|
|
|
3524
3523
|
props: { block: {} },
|
|
3525
3524
|
emits: ["update"],
|
|
3526
3525
|
setup(e, { emit: t }) {
|
|
3527
|
-
let n = e, r = t, { t: i } =
|
|
3526
|
+
let n = e, r = t, { t: i } = U(), o = a(yt, null);
|
|
3528
3527
|
function l(e, t) {
|
|
3529
3528
|
r("update", { [e]: t });
|
|
3530
3529
|
}
|
|
@@ -3706,7 +3705,7 @@ var Jl = {
|
|
|
3706
3705
|
spellcheck: "false",
|
|
3707
3706
|
"aria-invalid": y.value,
|
|
3708
3707
|
onInput: n[7] ||= (e) => l("manualDiscountCode", e.target.value)
|
|
3709
|
-
}, null, 42, vu), y.value ? (f(), P("div", yu, [F(v(
|
|
3708
|
+
}, null, 42, vu), y.value ? (f(), P("div", yu, [F(v(Qe), {
|
|
3710
3709
|
class: "tpl:size-3.5 tpl:shrink-0",
|
|
3711
3710
|
"stroke-width": 2
|
|
3712
3711
|
}), w("span", null, S(v(i).discountCoupon.manualBlankError), 1)])) : h("", !0)]),
|
|
@@ -3754,7 +3753,7 @@ var Jl = {
|
|
|
3754
3753
|
props: { block: {} },
|
|
3755
3754
|
emits: ["update"],
|
|
3756
3755
|
setup(e, { emit: t }) {
|
|
3757
|
-
let n = t, { t: r } =
|
|
3756
|
+
let n = t, { t: r } = U();
|
|
3758
3757
|
function i(e, t) {
|
|
3759
3758
|
n("update", { [e]: t });
|
|
3760
3759
|
}
|
|
@@ -3796,7 +3795,7 @@ var Jl = {
|
|
|
3796
3795
|
props: { block: {} },
|
|
3797
3796
|
emits: ["update"],
|
|
3798
3797
|
setup(e, { emit: t }) {
|
|
3799
|
-
let n = t, { t: r } =
|
|
3798
|
+
let n = t, { t: r } = U();
|
|
3800
3799
|
return (t, i) => (f(), P("div", Pu, [
|
|
3801
3800
|
w("label", { class: N(v(J)) }, S(v(r).html.content), 3),
|
|
3802
3801
|
w("textarea", {
|
|
@@ -3823,7 +3822,7 @@ var Jl = {
|
|
|
3823
3822
|
props: { block: {} },
|
|
3824
3823
|
emits: ["update"],
|
|
3825
3824
|
setup(e, { emit: t }) {
|
|
3826
|
-
let n = t, { t: r } =
|
|
3825
|
+
let n = t, { t: r } = U(), i = a(dt, null), o = a(W, it.liquid), s = E(() => !!i), c = j(!1), l = j(!1), { start: u } = re(() => {
|
|
3827
3826
|
c.value = !1;
|
|
3828
3827
|
}, 1e3, { immediate: !1 });
|
|
3829
3828
|
function d(e, t) {
|
|
@@ -3861,7 +3860,7 @@ var Jl = {
|
|
|
3861
3860
|
"stroke-width": 1.5
|
|
3862
3861
|
}), g(" " + S(v(r).image.browseMedia), 1)])) : h("", !0)
|
|
3863
3862
|
]),
|
|
3864
|
-
v(
|
|
3863
|
+
v(R)(e.block.src, v(o)) ? (f(), P("div", zu, [w("label", { class: N(v(J)) }, [g(S(v(r).image.placeholderUrl) + " ", 1), n[8] ||= w("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, S("(optional)"), -1)], 2), w("input", {
|
|
3865
3864
|
type: "url",
|
|
3866
3865
|
class: N(v(q)),
|
|
3867
3866
|
value: e.block.placeholderUrl || "",
|
|
@@ -3947,7 +3946,7 @@ var Jl = {
|
|
|
3947
3946
|
},
|
|
3948
3947
|
emits: ["update"],
|
|
3949
3948
|
setup(e, { emit: t }) {
|
|
3950
|
-
let n = e, r = t, { t: i } =
|
|
3949
|
+
let n = e, r = t, { t: i } = U(), a = E(() => [
|
|
3951
3950
|
{
|
|
3952
3951
|
key: "openInNewTab",
|
|
3953
3952
|
label: i.menu.openInNewTab
|
|
@@ -3982,7 +3981,7 @@ var Jl = {
|
|
|
3982
3981
|
}
|
|
3983
3982
|
function l() {
|
|
3984
3983
|
let e = {
|
|
3985
|
-
id:
|
|
3984
|
+
id: Me(),
|
|
3986
3985
|
text: "",
|
|
3987
3986
|
url: "",
|
|
3988
3987
|
openInNewTab: !1,
|
|
@@ -4016,7 +4015,7 @@ var Jl = {
|
|
|
4016
4015
|
class: N(v(pn)),
|
|
4017
4016
|
title: v(i).menu.removeItem,
|
|
4018
4017
|
onClick: (e) => d(t.id)
|
|
4019
|
-
}, [F(v(
|
|
4018
|
+
}, [F(v(Ze), {
|
|
4020
4019
|
size: 14,
|
|
4021
4020
|
"stroke-width": 2
|
|
4022
4021
|
})], 10, nd)]),
|
|
@@ -4129,7 +4128,7 @@ var Jl = {
|
|
|
4129
4128
|
props: { block: {} },
|
|
4130
4129
|
emits: ["update"],
|
|
4131
4130
|
setup(e, { emit: t }) {
|
|
4132
|
-
let n = t, { t: r } =
|
|
4131
|
+
let n = t, { t: r } = U(), i = E(() => [
|
|
4133
4132
|
{
|
|
4134
4133
|
value: "1",
|
|
4135
4134
|
label: r.section.column1
|
|
@@ -4165,13 +4164,13 @@ var Jl = {
|
|
|
4165
4164
|
props: { block: {} },
|
|
4166
4165
|
emits: ["update"],
|
|
4167
4166
|
setup(e, { emit: t }) {
|
|
4168
|
-
let n = e, r = t, { t: i } =
|
|
4167
|
+
let n = e, r = t, { t: i } = U();
|
|
4169
4168
|
function a(e, t) {
|
|
4170
4169
|
r("update", { [e]: t });
|
|
4171
4170
|
}
|
|
4172
4171
|
function o() {
|
|
4173
4172
|
let e = {
|
|
4174
|
-
id:
|
|
4173
|
+
id: Me(),
|
|
4175
4174
|
platform: "facebook",
|
|
4176
4175
|
url: ""
|
|
4177
4176
|
};
|
|
@@ -4194,14 +4193,14 @@ var Jl = {
|
|
|
4194
4193
|
class: N([v(q), "tpl:flex-1"]),
|
|
4195
4194
|
value: e.platform,
|
|
4196
4195
|
onChange: (t) => s(e.id, "platform", t.target.value)
|
|
4197
|
-
}, [(f(!0), P(x, null, c(v(
|
|
4196
|
+
}, [(f(!0), P(x, null, c(v(be), (e) => (f(), P("option", {
|
|
4198
4197
|
key: e,
|
|
4199
4198
|
value: e
|
|
4200
|
-
}, S(v(
|
|
4199
|
+
}, S(v(fe)[e].name), 9, yd))), 128))], 42, vd), w("button", {
|
|
4201
4200
|
class: N(v(pn)),
|
|
4202
4201
|
title: v(i).social.removeIcon,
|
|
4203
4202
|
onClick: (t) => l(e.id)
|
|
4204
|
-
}, [F(v(
|
|
4203
|
+
}, [F(v(Ze), {
|
|
4205
4204
|
size: 14,
|
|
4206
4205
|
"stroke-width": 2
|
|
4207
4206
|
})], 10, bd)]), F($, {
|
|
@@ -4300,7 +4299,7 @@ var Jl = {
|
|
|
4300
4299
|
props: { block: {} },
|
|
4301
4300
|
emits: ["update"],
|
|
4302
4301
|
setup(e, { emit: t }) {
|
|
4303
|
-
let n = t, { t: r } =
|
|
4302
|
+
let n = t, { t: r } = U();
|
|
4304
4303
|
return (t, i) => (f(), P("div", Od, [
|
|
4305
4304
|
w("label", { class: N(v(J)) }, S(v(r).spacer.height), 3),
|
|
4306
4305
|
w("div", kd, [w("input", {
|
|
@@ -4332,15 +4331,15 @@ var Jl = {
|
|
|
4332
4331
|
},
|
|
4333
4332
|
emits: ["update"],
|
|
4334
4333
|
setup(e, { emit: t }) {
|
|
4335
|
-
let n = e, r = t, { t: i } =
|
|
4334
|
+
let n = e, r = t, { t: i } = U(), a = E(() => n.block.rows.length > 0 ? n.block.rows[0].cells.length : 0);
|
|
4336
4335
|
function o(e, t) {
|
|
4337
4336
|
r("update", { [e]: t });
|
|
4338
4337
|
}
|
|
4339
4338
|
function s() {
|
|
4340
4339
|
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
4341
|
-
id:
|
|
4340
|
+
id: Me(),
|
|
4342
4341
|
cells: Array.from({ length: e }, () => ({
|
|
4343
|
-
id:
|
|
4342
|
+
id: Me(),
|
|
4344
4343
|
content: ""
|
|
4345
4344
|
}))
|
|
4346
4345
|
};
|
|
@@ -4353,7 +4352,7 @@ var Jl = {
|
|
|
4353
4352
|
r("update", { rows: n.block.rows.map((e) => ({
|
|
4354
4353
|
...e,
|
|
4355
4354
|
cells: [...e.cells, {
|
|
4356
|
-
id:
|
|
4355
|
+
id: Me(),
|
|
4357
4356
|
content: ""
|
|
4358
4357
|
}]
|
|
4359
4358
|
})) });
|
|
@@ -4482,7 +4481,7 @@ var Jl = {
|
|
|
4482
4481
|
},
|
|
4483
4482
|
emits: ["update"],
|
|
4484
4483
|
setup(e, { emit: t }) {
|
|
4485
|
-
let n = t, { t: r } =
|
|
4484
|
+
let n = t, { t: r } = U();
|
|
4486
4485
|
function i(e, t) {
|
|
4487
4486
|
n("update", { [e]: t });
|
|
4488
4487
|
}
|
|
@@ -4547,7 +4546,7 @@ var Jl = {
|
|
|
4547
4546
|
props: { block: {} },
|
|
4548
4547
|
emits: ["update"],
|
|
4549
4548
|
setup(e, { emit: t }) {
|
|
4550
|
-
let n = e, r = t, { t: i } =
|
|
4549
|
+
let n = e, r = t, { t: i } = U(), o = a(dt, null), s = a(W, it.liquid), c = E(() => !!o), l = E(() => R(n.block.url, s)), u = j(!1), { start: d } = re(() => {
|
|
4551
4550
|
u.value = !1;
|
|
4552
4551
|
}, 1e3, { immediate: !1 });
|
|
4553
4552
|
function p(e, t) {
|
|
@@ -4653,7 +4652,7 @@ var Jl = {
|
|
|
4653
4652
|
"duplicate"
|
|
4654
4653
|
],
|
|
4655
4654
|
setup(e, { emit: t }) {
|
|
4656
|
-
let n = p(() => import("./CountdownToolbar-
|
|
4655
|
+
let n = p(() => import("./CountdownToolbar-CCGHm6Gg.js")), r = e, i = t, { t: o } = U(), s = $e(ht, "Toolbar"), c = a(Ae, []), l = E(() => r.block.type), u = E(() => Ke(r.block)), d = E(() => {
|
|
4657
4656
|
if (u.value) return c.find((e) => e.type === r.block.customType);
|
|
4658
4657
|
}), m = E(() => u.value ? d.value?.name ?? r.block.customType : V(l.value, o)), g = s.fonts;
|
|
4659
4658
|
function _(e) {
|
|
@@ -4674,14 +4673,14 @@ var Jl = {
|
|
|
4674
4673
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)] tpl:hover:text-[var(--tpl-text)]",
|
|
4675
4674
|
title: v(o).toolbar.duplicate,
|
|
4676
4675
|
onClick: r[0] ||= (e) => i("duplicate")
|
|
4677
|
-
}, [F(v(
|
|
4676
|
+
}, [F(v(at), {
|
|
4678
4677
|
size: 14,
|
|
4679
4678
|
"stroke-width": 2
|
|
4680
4679
|
})], 8, Gf), w("button", {
|
|
4681
4680
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]",
|
|
4682
4681
|
title: v(o).toolbar.delete,
|
|
4683
4682
|
onClick: r[1] ||= (e) => i("delete")
|
|
4684
|
-
}, [F(v(
|
|
4683
|
+
}, [F(v(et), {
|
|
4685
4684
|
size: 14,
|
|
4686
4685
|
"stroke-width": 2
|
|
4687
4686
|
})], 8, Kf)])]), w("div", qf, [u.value ? (f(), C(nu, {
|
|
@@ -4814,7 +4813,7 @@ var Jl = {
|
|
|
4814
4813
|
"update-settings"
|
|
4815
4814
|
],
|
|
4816
4815
|
setup(e, { emit: t }) {
|
|
4817
|
-
let n = p(() => import("./AccessibilityPanel-
|
|
4816
|
+
let n = p(() => import("./AccessibilityPanel-C8vY7QIF.js")), r = e, i = t, { t: o } = U(), c = j("content"), l = a(de, null), u = E(() => l !== null), d = E(() => l?.issues.value.length ?? 0);
|
|
4818
4817
|
function m(e) {
|
|
4819
4818
|
return c.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]";
|
|
4820
4819
|
}
|
|
@@ -4912,7 +4911,7 @@ var Jl = {
|
|
|
4912
4911
|
__name: "HistoryUndoRedo",
|
|
4913
4912
|
props: { onBeforeUndo: { type: Function } },
|
|
4914
4913
|
setup(e) {
|
|
4915
|
-
let t = e, n = a(
|
|
4914
|
+
let t = e, n = a(tt, null), { t: r } = U(), i = E(() => n?.canUndo.value ?? !1), o = E(() => n?.canRedo.value ?? !1);
|
|
4916
4915
|
function s() {
|
|
4917
4916
|
!n || !i.value || (t.onBeforeUndo?.(), n.undo());
|
|
4918
4917
|
}
|
|
@@ -4956,7 +4955,7 @@ var Jl = {
|
|
|
4956
4955
|
props: { viewport: {} },
|
|
4957
4956
|
emits: ["change"],
|
|
4958
4957
|
setup(e, { emit: t }) {
|
|
4959
|
-
let n = e, r = t, { t: i } =
|
|
4958
|
+
let n = e, r = t, { t: i } = U(), a = E(() => [{
|
|
4960
4959
|
value: "desktop",
|
|
4961
4960
|
label: i.viewport.desktop
|
|
4962
4961
|
}, {
|
|
@@ -5019,7 +5018,7 @@ var Jl = {
|
|
|
5019
5018
|
props: { previewMode: { type: Boolean } },
|
|
5020
5019
|
emits: ["change"],
|
|
5021
5020
|
setup(e, { emit: t }) {
|
|
5022
|
-
let n = t, { t: r } =
|
|
5021
|
+
let n = t, { t: r } = U();
|
|
5023
5022
|
return (t, i) => (f(), P("button", {
|
|
5024
5023
|
class: "tpl-preview-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all tpl:duration-150",
|
|
5025
5024
|
style: b({
|
|
@@ -5037,11 +5036,11 @@ var Jl = {
|
|
|
5037
5036
|
"leave-to-class": "tpl-icon-leave-to",
|
|
5038
5037
|
mode: "out-in"
|
|
5039
5038
|
}, {
|
|
5040
|
-
default: m(() => [e.previewMode ? (f(), C(v(
|
|
5039
|
+
default: m(() => [e.previewMode ? (f(), C(v(H), {
|
|
5041
5040
|
key: "eye",
|
|
5042
5041
|
size: 18,
|
|
5043
5042
|
"stroke-width": 1.5
|
|
5044
|
-
})) : (f(), C(v(
|
|
5043
|
+
})) : (f(), C(v(De), {
|
|
5045
5044
|
key: "eye-off",
|
|
5046
5045
|
size: 18,
|
|
5047
5046
|
"stroke-width": 1.5
|
|
@@ -5058,7 +5057,7 @@ var Jl = {
|
|
|
5058
5057
|
props: { darkMode: { type: Boolean } },
|
|
5059
5058
|
emits: ["change"],
|
|
5060
5059
|
setup(e, { emit: t }) {
|
|
5061
|
-
let n = t, { t: r } =
|
|
5060
|
+
let n = t, { t: r } = U();
|
|
5062
5061
|
return (t, i) => (f(), P("button", {
|
|
5063
5062
|
class: "tpl-dark-mode-toggle tpl:relative tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:p-2 tpl:transition-all tpl:duration-150",
|
|
5064
5063
|
style: b({
|
|
@@ -5099,7 +5098,7 @@ var Jl = {
|
|
|
5099
5098
|
__name: "EditorFooter",
|
|
5100
5099
|
props: { positionClass: {} },
|
|
5101
5100
|
setup(e) {
|
|
5102
|
-
let { t } =
|
|
5101
|
+
let { t } = U();
|
|
5103
5102
|
return (n, r) => (f(), P("footer", { class: N(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[9px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [w("div", Cp, [
|
|
5104
5103
|
w("span", null, S(v(t).footer.poweredBy), 1),
|
|
5105
5104
|
w("a", {
|
|
@@ -5184,15 +5183,15 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5184
5183
|
}
|
|
5185
5184
|
},
|
|
5186
5185
|
setup(e, { expose: t }) {
|
|
5187
|
-
let r = e, { t: i, format: a } =
|
|
5186
|
+
let r = e, { t: i, format: a } = U(), o = j(!1), c = j(0), l = j(null), p = j(""), _ = wt(), x = k([]), T = Pe(document.body);
|
|
5188
5187
|
s(o, (e, t, n) => {
|
|
5189
5188
|
if (T.value = e, !e) return;
|
|
5190
5189
|
let r = (e) => {
|
|
5191
|
-
e.key === "Escape" && (e.preventDefault(),
|
|
5190
|
+
e.key === "Escape" && (e.preventDefault(), ie(!0));
|
|
5192
5191
|
};
|
|
5193
5192
|
document.addEventListener("keydown", r, !0), n(() => document.removeEventListener("keydown", r, !0));
|
|
5194
5193
|
}, { immediate: !0 });
|
|
5195
|
-
let A = 0, { pause: M, resume: I } =
|
|
5194
|
+
let A = 0, { pause: M, resume: I } = Fe(() => {
|
|
5196
5195
|
let e = B.value;
|
|
5197
5196
|
A < e.length ? (p.value = e.slice(0, A + 1), A++) : M();
|
|
5198
5197
|
}, 25, { immediate: !1 }), L = E(() => [
|
|
@@ -5239,7 +5238,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5239
5238
|
inline: "nearest"
|
|
5240
5239
|
}), l.value = t.getBoundingClientRect();
|
|
5241
5240
|
}
|
|
5242
|
-
function
|
|
5241
|
+
function ne() {
|
|
5243
5242
|
M();
|
|
5244
5243
|
let e = B.value;
|
|
5245
5244
|
if (p.value = "", _.value === "reduce") {
|
|
@@ -5248,34 +5247,34 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5248
5247
|
}
|
|
5249
5248
|
A = 0, I();
|
|
5250
5249
|
}
|
|
5251
|
-
function
|
|
5250
|
+
function H() {
|
|
5252
5251
|
return ee(r.tourConfig.steps === void 0 ? L.value : r.tourConfig.steps);
|
|
5253
5252
|
}
|
|
5254
5253
|
function re(e) {
|
|
5255
|
-
let t =
|
|
5254
|
+
let t = H();
|
|
5256
5255
|
if (x.value = t, t.length === 0) {
|
|
5257
5256
|
o.value = !1;
|
|
5258
5257
|
return;
|
|
5259
5258
|
}
|
|
5260
5259
|
c.value = Math.min(Math.max(0, e?.stepIndex ?? 0), t.length - 1), o.value = !0, n(() => {
|
|
5261
|
-
te(),
|
|
5260
|
+
te(), ne();
|
|
5262
5261
|
});
|
|
5263
5262
|
}
|
|
5264
|
-
function
|
|
5263
|
+
function ie(e) {
|
|
5265
5264
|
M(), o.value = !1, l.value = null, e && Pp(r.tourConfig);
|
|
5266
5265
|
}
|
|
5267
|
-
function
|
|
5266
|
+
function ae() {
|
|
5268
5267
|
c.value < x.value.length - 1 ? (c.value++, n(() => {
|
|
5269
|
-
te(),
|
|
5270
|
-
})) :
|
|
5268
|
+
te(), ne();
|
|
5269
|
+
})) : ie(!0);
|
|
5271
5270
|
}
|
|
5272
|
-
function
|
|
5271
|
+
function oe() {
|
|
5273
5272
|
return Np(r.tourConfig);
|
|
5274
5273
|
}
|
|
5275
|
-
function
|
|
5274
|
+
function se() {
|
|
5276
5275
|
Fp(r.tourConfig);
|
|
5277
5276
|
}
|
|
5278
|
-
let
|
|
5277
|
+
let ce = E(() => {
|
|
5279
5278
|
let e = l.value;
|
|
5280
5279
|
if (!e) return {};
|
|
5281
5280
|
let t = V(R.value);
|
|
@@ -5293,7 +5292,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5293
5292
|
top: `${e.bottom + 12}px`,
|
|
5294
5293
|
left: `${Math.min(e.left, typeof window < "u" ? window.innerWidth - 320 : e.left)}px`
|
|
5295
5294
|
};
|
|
5296
|
-
}),
|
|
5295
|
+
}), le = E(() => {
|
|
5297
5296
|
let e = l.value;
|
|
5298
5297
|
if (!e) return {};
|
|
5299
5298
|
let t = V(R.value), n = t === "canvas" || t === "sidebar" || t === "rightSidebar", r = e.width + 12, i = e.height + 12, a = e.left - 6, o = e.top - 6;
|
|
@@ -5310,21 +5309,21 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5310
5309
|
M(), T.value = !1;
|
|
5311
5310
|
}), t({
|
|
5312
5311
|
start: re,
|
|
5313
|
-
dismiss: () =>
|
|
5314
|
-
resetDismissed:
|
|
5315
|
-
isDismissed:
|
|
5312
|
+
dismiss: () => ie(!0),
|
|
5313
|
+
resetDismissed: se,
|
|
5314
|
+
isDismissed: oe
|
|
5316
5315
|
}), (t, n) => (f(), C(O, { to: "body" }, [F(D, { name: "tpl-editor-tour" }, {
|
|
5317
5316
|
default: m(() => [o.value ? (f(), P("div", {
|
|
5318
5317
|
key: 0,
|
|
5319
5318
|
class: N(["tpl-editor-tour-overlay tpl:fixed tpl:inset-0 tpl:z-[10001]", { "tpl-editor-tour-overlay--dark": e.darkMode }]),
|
|
5320
5319
|
"data-testid": "editor-tour-overlay",
|
|
5321
|
-
onClick: n[2] ||= y((e) =>
|
|
5320
|
+
onClick: n[2] ||= y((e) => ie(!0), ["self"])
|
|
5322
5321
|
}, [l.value ? (f(), P("div", {
|
|
5323
5322
|
key: 0,
|
|
5324
5323
|
"data-testid": "editor-tour-spotlight",
|
|
5325
5324
|
class: "tpl-editor-tour-spotlight tpl:absolute tpl:top-0 tpl:left-0",
|
|
5326
|
-
style: b(
|
|
5327
|
-
onClick: n[0] ||= (e) =>
|
|
5325
|
+
style: b(le.value),
|
|
5326
|
+
onClick: n[0] ||= (e) => ie(!0)
|
|
5328
5327
|
}, null, 4)) : h("", !0), l.value && R.value ? (f(), P("div", {
|
|
5329
5328
|
key: 1,
|
|
5330
5329
|
role: "dialog",
|
|
@@ -5332,7 +5331,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5332
5331
|
"aria-label": z.value,
|
|
5333
5332
|
"data-testid": "editor-tour-tooltip",
|
|
5334
5333
|
class: "tpl-editor-tour-tooltip tpl-editor-tour-tooltip-shell tpl:fixed tpl:z-[10002]",
|
|
5335
|
-
style: b(
|
|
5334
|
+
style: b(ce.value)
|
|
5336
5335
|
}, [w("div", Lp, [
|
|
5337
5336
|
w("div", Rp, S(v(a)(v(i).tour.stepCounter, {
|
|
5338
5337
|
current: String(c.value + 1),
|
|
@@ -5344,13 +5343,13 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5344
5343
|
type: "button",
|
|
5345
5344
|
"data-testid": "editor-tour-skip",
|
|
5346
5345
|
class: "tpl-editor-tour-skip",
|
|
5347
|
-
onClick: n[1] ||= (e) =>
|
|
5346
|
+
onClick: n[1] ||= (e) => ie(!0)
|
|
5348
5347
|
}, S(v(i).tour.skip), 1), w("button", {
|
|
5349
5348
|
type: "button",
|
|
5350
5349
|
"data-testid": "editor-tour-next",
|
|
5351
5350
|
class: "tpl-editor-tour-next",
|
|
5352
|
-
onClick:
|
|
5353
|
-
}, [g(S(c.value < x.value.length - 1 ? v(i).tour.next : v(i).tour.done) + " ", 1), c.value < x.value.length - 1 ? (f(), C(v(
|
|
5351
|
+
onClick: ae
|
|
5352
|
+
}, [g(S(c.value < x.value.length - 1 ? v(i).tour.next : v(i).tour.done) + " ", 1), c.value < x.value.length - 1 ? (f(), C(v(Ee), {
|
|
5354
5353
|
key: 0,
|
|
5355
5354
|
size: 12,
|
|
5356
5355
|
"aria-hidden": "true"
|
|
@@ -5372,7 +5371,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5372
5371
|
props: { conditions: {} },
|
|
5373
5372
|
emits: ["patch"],
|
|
5374
5373
|
setup(e, { emit: t }) {
|
|
5375
|
-
let n = e, r = t, { t: i } =
|
|
5374
|
+
let n = e, r = t, { t: i } = U(), a = j(n.conditions.pageViews > 0);
|
|
5376
5375
|
s(() => n.conditions.pageViews, (e) => {
|
|
5377
5376
|
e > 0 && (a.value = !0);
|
|
5378
5377
|
});
|
|
@@ -5435,7 +5434,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5435
5434
|
class: "tpl:ml-auto tpl:flex tpl:h-8 tpl:w-8 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-lg tpl:text-[var(--tpl-text-muted)] tpl:transition-colors hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)]",
|
|
5436
5435
|
"aria-label": v(i).popupDisplayRules.triggerRemoveRuleAria,
|
|
5437
5436
|
onClick: d
|
|
5438
|
-
}, [F(v(
|
|
5437
|
+
}, [F(v(Ze), {
|
|
5439
5438
|
size: 16,
|
|
5440
5439
|
"stroke-width": 2
|
|
5441
5440
|
})], 8, em)
|
|
@@ -5472,9 +5471,9 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5472
5471
|
}, jh = { class: "tpl:block tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, Mh = ["placeholder", "value"], Nh = { class: "tpl:mt-3 tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, Ph = ["checked"], Fh = ["aria-label"], Ih = { class: "tpl:flex tpl:max-h-[85vh] tpl:w-full tpl:max-w-2xl tpl:flex-col tpl:overflow-hidden tpl:rounded-xl tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-xl" }, Lh = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-between tpl:gap-2 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, Rh = { class: "tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, zh = { class: "tpl:flex tpl:items-center tpl:gap-2" }, Bh = { class: "tpl:m-0 tpl:flex-1 tpl:overflow-auto tpl:p-4 tpl:text-left tpl:font-mono tpl:text-[11px] tpl:leading-relaxed tpl:text-[var(--tpl-text)]" }, Vh = { class: "tpl:m-0 tpl:border-t tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Hh = /* @__PURE__ */ i({
|
|
5473
5472
|
__name: "PopupDisplayRulesView",
|
|
5474
5473
|
setup(e) {
|
|
5475
|
-
let t = a(
|
|
5474
|
+
let t = a(yt);
|
|
5476
5475
|
if (!t) throw Error("PopupDisplayRulesView requires EDITOR_KEY");
|
|
5477
|
-
let { t: n } =
|
|
5476
|
+
let { t: n } = U(), r = j("trigger"), i = E(() => [{
|
|
5478
5477
|
id: "trigger",
|
|
5479
5478
|
label: n.popupDisplayRules.tabTrigger
|
|
5480
5479
|
}, {
|
|
@@ -5542,7 +5541,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5542
5541
|
}
|
|
5543
5542
|
]), d = j(!1), p = j(!1);
|
|
5544
5543
|
function m(e) {
|
|
5545
|
-
return
|
|
5544
|
+
return le(o.value.triggers[e].triggerConditions);
|
|
5546
5545
|
}
|
|
5547
5546
|
function _(e, t) {
|
|
5548
5547
|
l(e, { triggerConditions: {
|
|
@@ -5552,7 +5551,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5552
5551
|
}
|
|
5553
5552
|
function b(e, t) {
|
|
5554
5553
|
t ? l(e, { triggerConditions: {
|
|
5555
|
-
...
|
|
5554
|
+
...ue(),
|
|
5556
5555
|
enabled: !0,
|
|
5557
5556
|
delaySeconds: 5,
|
|
5558
5557
|
pageViews: 3,
|
|
@@ -5572,7 +5571,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5572
5571
|
} : t.frequency.stopShowing;
|
|
5573
5572
|
s({
|
|
5574
5573
|
...t,
|
|
5575
|
-
frequency:
|
|
5574
|
+
frequency: Re({
|
|
5576
5575
|
showAgain: n,
|
|
5577
5576
|
stopShowing: r
|
|
5578
5577
|
})
|
|
@@ -5603,7 +5602,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5603
5602
|
let t = e.target.value;
|
|
5604
5603
|
(t === "never_display_again" || t === "respect_show_again") && L(t);
|
|
5605
5604
|
}
|
|
5606
|
-
let z = E(() => JSON.stringify({ triggers:
|
|
5605
|
+
let z = E(() => JSON.stringify({ triggers: ve(o.value.triggers) }, null, 2));
|
|
5607
5606
|
async function B() {
|
|
5608
5607
|
try {
|
|
5609
5608
|
await navigator.clipboard.writeText(z.value), p.value = !0, window.setTimeout(() => {
|
|
@@ -5938,7 +5937,7 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
5938
5937
|
},
|
|
5939
5938
|
emits: ["update:modelValue"],
|
|
5940
5939
|
setup(e, { emit: t }) {
|
|
5941
|
-
let r = e, i = t, { t: a } =
|
|
5940
|
+
let r = e, i = t, { t: a } = U(), o = j(!1), l = j(null), u = j(null), d = j((/* @__PURE__ */ new Date()).getFullYear()), p = j((/* @__PURE__ */ new Date()).getMonth()), { bottom: m, left: g, width: _, update: y } = Ye(l), T = E(() => ({
|
|
5942
5941
|
top: `${m.value + 4}px`,
|
|
5943
5942
|
left: `${g.value}px`,
|
|
5944
5943
|
width: `${Math.max(_.value, 268)}px`
|
|
@@ -6018,24 +6017,24 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6018
6017
|
}
|
|
6019
6018
|
s(o, async (e) => {
|
|
6020
6019
|
e && (V(), await n(), await n(), y(), Uh(l.value, u.value));
|
|
6021
|
-
}),
|
|
6020
|
+
}), ot(u, () => {
|
|
6022
6021
|
o.value = !1;
|
|
6023
|
-
}, { ignore: [l] }),
|
|
6022
|
+
}, { ignore: [l] }), xt(window, "keydown", (e) => {
|
|
6024
6023
|
e.key === "Escape" && (o.value = !1);
|
|
6025
|
-
}),
|
|
6026
|
-
function
|
|
6024
|
+
}), xt(window, "scroll", () => o.value && y(), { capture: !0 }), xt(window, "resize", () => o.value && y());
|
|
6025
|
+
function ne() {
|
|
6027
6026
|
p.value === 0 ? (p.value = 11, d.value--) : p.value--;
|
|
6028
6027
|
}
|
|
6029
|
-
function
|
|
6028
|
+
function H() {
|
|
6030
6029
|
p.value === 11 ? (p.value = 0, d.value++) : p.value++;
|
|
6031
6030
|
}
|
|
6032
6031
|
function re(e) {
|
|
6033
6032
|
i("update:modelValue", e), o.value = !1;
|
|
6034
6033
|
}
|
|
6035
|
-
function
|
|
6034
|
+
function ie() {
|
|
6036
6035
|
i("update:modelValue", ""), o.value = !1;
|
|
6037
6036
|
}
|
|
6038
|
-
function
|
|
6037
|
+
function ae() {
|
|
6039
6038
|
re(M());
|
|
6040
6039
|
}
|
|
6041
6040
|
return (t, n) => (f(), P(x, null, [w("div", Wh, [w("button", {
|
|
@@ -6057,7 +6056,7 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6057
6056
|
type: "button",
|
|
6058
6057
|
class: "tpl:flex tpl:h-8 tpl:w-8 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] focus-visible:tpl:outline focus-visible:tpl:outline-2 focus-visible:tpl:outline-[var(--tpl-primary)]",
|
|
6059
6058
|
"aria-label": e.clearLabel,
|
|
6060
|
-
onClick:
|
|
6059
|
+
onClick: ie
|
|
6061
6060
|
}, " × ", 8, Kh)) : h("", !0)]), (f(), C(O, { to: "body" }, [o.value ? (f(), P("div", {
|
|
6062
6061
|
key: 0,
|
|
6063
6062
|
ref_key: "popoverRef",
|
|
@@ -6073,7 +6072,7 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6073
6072
|
type: "button",
|
|
6074
6073
|
class: "tpl:flex tpl:h-8 tpl:w-8 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] focus-visible:tpl:outline focus-visible:tpl:outline-2 focus-visible:tpl:outline-[var(--tpl-primary)]",
|
|
6075
6074
|
"aria-label": v(a).popupSchedule.calendarPrevMonth,
|
|
6076
|
-
onClick:
|
|
6075
|
+
onClick: ne
|
|
6077
6076
|
}, [F(v(ke), {
|
|
6078
6077
|
size: 18,
|
|
6079
6078
|
"stroke-width": 1.75,
|
|
@@ -6084,8 +6083,8 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6084
6083
|
type: "button",
|
|
6085
6084
|
class: "tpl:flex tpl:h-8 tpl:w-8 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] focus-visible:tpl:outline focus-visible:tpl:outline-2 focus-visible:tpl:outline-[var(--tpl-primary)]",
|
|
6086
6085
|
"aria-label": v(a).popupSchedule.calendarNextMonth,
|
|
6087
|
-
onClick:
|
|
6088
|
-
}, [F(v(
|
|
6086
|
+
onClick: H
|
|
6087
|
+
}, [F(v(Ee), {
|
|
6089
6088
|
size: 18,
|
|
6090
6089
|
"stroke-width": 1.75,
|
|
6091
6090
|
"aria-hidden": "true"
|
|
@@ -6104,12 +6103,12 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6104
6103
|
w("div", tg, [w("button", {
|
|
6105
6104
|
type: "button",
|
|
6106
6105
|
class: "tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:px-2 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)] tpl:underline tpl:underline-offset-2 hover:tpl:bg-[var(--tpl-bg-hover)] focus-visible:tpl:outline focus-visible:tpl:outline-2 focus-visible:tpl:outline-[var(--tpl-primary)]",
|
|
6107
|
-
onClick:
|
|
6106
|
+
onClick: ae
|
|
6108
6107
|
}, S(v(a).popupSchedule.calendarToday), 1), e.modelValue ? (f(), P("button", {
|
|
6109
6108
|
key: 0,
|
|
6110
6109
|
type: "button",
|
|
6111
6110
|
class: "tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:px-2 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] focus-visible:tpl:outline focus-visible:tpl:outline-2 focus-visible:tpl:outline-[var(--tpl-primary)]",
|
|
6112
|
-
onClick:
|
|
6111
|
+
onClick: ie
|
|
6113
6112
|
}, S(v(a).popupSchedule.calendarClear), 1)) : h("", !0)])
|
|
6114
6113
|
], 12, qh)) : h("", !0)]))], 64));
|
|
6115
6114
|
}
|
|
@@ -6126,9 +6125,9 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6126
6125
|
__name: "PopupScheduleView",
|
|
6127
6126
|
props: { layout: { default: "standalone" } },
|
|
6128
6127
|
setup(e) {
|
|
6129
|
-
let t = e, n = a(
|
|
6128
|
+
let t = e, n = a(yt);
|
|
6130
6129
|
if (!n) throw Error("PopupScheduleView requires EDITOR_KEY");
|
|
6131
|
-
let { t: r } =
|
|
6130
|
+
let { t: r } = U(), i = E(() => t.layout === "popupAdjacent" ? "tpl-popup-schedule tpl:w-full tpl:overflow-x-hidden tpl:px-4 tpl:pb-6 tpl:pt-4 tpl:bg-[var(--tpl-bg)]" : "tpl-popup-schedule tpl:mx-auto tpl:w-full tpl:max-w-3xl tpl:px-6 tpl:py-8 tpl:pb-14 tpl:bg-[var(--tpl-bg)]"), o = E(() => Cn(n.content.value.settings));
|
|
6132
6131
|
function s(e) {
|
|
6133
6132
|
let t = o.value, r = {
|
|
6134
6133
|
...t.schedule,
|
|
@@ -6171,10 +6170,10 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6171
6170
|
return e.includes("23:59") || e.push("23:59"), e;
|
|
6172
6171
|
}), g = E(() => {
|
|
6173
6172
|
let e = o.value.schedule.timeZone;
|
|
6174
|
-
return
|
|
6173
|
+
return Dt.some((t) => t.id === e) ? [...Dt] : [{
|
|
6175
6174
|
id: e,
|
|
6176
6175
|
label: e
|
|
6177
|
-
}, ...
|
|
6176
|
+
}, ...Dt];
|
|
6178
6177
|
}), _ = E(() => [
|
|
6179
6178
|
"everyday",
|
|
6180
6179
|
"monday",
|
|
@@ -6265,7 +6264,7 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6265
6264
|
class: "tpl:flex tpl:h-9 tpl:w-[26px] tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-muted)] hover:tpl:bg-[var(--tpl-bg-hover)] hover:tpl:text-[var(--tpl-text)] focus-visible:tpl:outline focus-visible:tpl:outline-2 focus-visible:tpl:outline-[var(--tpl-primary)]",
|
|
6266
6265
|
"aria-label": v(r).popupSchedule.removeSlot,
|
|
6267
6266
|
onClick: (t) => d(e.id)
|
|
6268
|
-
}, [F(v(
|
|
6267
|
+
}, [F(v(et), {
|
|
6269
6268
|
size: 16,
|
|
6270
6269
|
"stroke-width": 1.75,
|
|
6271
6270
|
"aria-hidden": "true"
|
|
@@ -6307,4 +6306,4 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6307
6306
|
//#endregion
|
|
6308
6307
|
export { Np as a, Sp as c, hp as d, dp as f, xn as g, Vn as h, Fp as i, bp as l, Xn as m, Hh as n, Op as o, Vi as p, Up as r, Dp as s, Cg as t, vp as u };
|
|
6309
6308
|
|
|
6310
|
-
//# sourceMappingURL=styles-
|
|
6309
|
+
//# sourceMappingURL=styles-CPUuKOlD.js.map
|