@aswin.dev/editor 0.8.5 → 0.8.9
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-BUlmUuhO.js → CloudEditor-BNEIze18.js} +281 -274
- 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-BBBkTBfW.js → CloudEditor-DUIjZDAS.js} +264 -257
- package/dist/cdn/chunks/{CloudEditor-BBBkTBfW.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-C9P3yzMF.js → styles-CPUuKOlD.js} +210 -210
- package/dist/cdn/chunks/{styles-C9P3yzMF.js.map → styles-CPUuKOlD.js.map} +1 -1
- 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 +8 -8
- package/dist/keys-CqdzeWhT.js +10 -0
- package/dist/style.css +1 -1
- package/dist/{styles-ZIYLQwFf.js → styles-BRNubGRJ.js} +287 -287
- 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/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,
|
|
@@ -139,42 +139,42 @@ var wn = {
|
|
|
139
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))})`;
|
|
140
140
|
}
|
|
141
141
|
let V = E(() => i.content.settings.popup ? Cn(i.content.settings).design : null);
|
|
142
|
-
function
|
|
142
|
+
function ne(e) {
|
|
143
143
|
return e === void 0 || !Number.isFinite(e) ? Fn : Math.min(30, Math.max(0, e));
|
|
144
144
|
}
|
|
145
145
|
let H = E(() => {
|
|
146
146
|
let e = V.value;
|
|
147
147
|
return e?.useOverlay ? e : null;
|
|
148
|
-
}),
|
|
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);
|
|
149
149
|
s(() => {
|
|
150
150
|
let e = V.value;
|
|
151
151
|
return e?.backgroundImage && e.backgroundImageUrl ? e.backgroundImageUrl : "";
|
|
152
152
|
}, (e) => {
|
|
153
|
-
if (
|
|
153
|
+
if (ue.value = null, !e) return;
|
|
154
154
|
let t = new Image(), n = e;
|
|
155
155
|
t.onload = () => {
|
|
156
|
-
n === V.value?.backgroundImageUrl && (!t.naturalWidth || !t.naturalHeight || (
|
|
156
|
+
n === V.value?.backgroundImageUrl && (!t.naturalWidth || !t.naturalHeight || (ue.value = t.naturalWidth / t.naturalHeight));
|
|
157
157
|
}, t.onerror = () => {
|
|
158
|
-
|
|
158
|
+
ue.value = null;
|
|
159
159
|
}, t.src = e;
|
|
160
160
|
}, { immediate: !0 });
|
|
161
|
-
let { height:
|
|
161
|
+
let { height: de } = te(), fe = E(() => Math.max(Ln, de.value - In)), pe = E(() => i.viewport === "desktop"), me = E(() => {
|
|
162
162
|
switch (i.viewport) {
|
|
163
163
|
case "mobile": return 375;
|
|
164
164
|
case "tablet": return 768;
|
|
165
165
|
default: return 0;
|
|
166
166
|
}
|
|
167
|
-
}),
|
|
167
|
+
}), ve = E(() => {
|
|
168
168
|
switch (i.viewport) {
|
|
169
169
|
case "mobile": return 600;
|
|
170
170
|
case "tablet": return 600;
|
|
171
171
|
default: return 600;
|
|
172
172
|
}
|
|
173
|
-
}),
|
|
173
|
+
}), ye = E(() => {
|
|
174
174
|
let e = i.content.settings.width;
|
|
175
|
-
return
|
|
175
|
+
return pe.value ? e : Math.min(e, me.value);
|
|
176
176
|
});
|
|
177
|
-
function
|
|
177
|
+
function be(e) {
|
|
178
178
|
switch (e) {
|
|
179
179
|
case "topLeft":
|
|
180
180
|
case "middleLeft":
|
|
@@ -187,8 +187,8 @@ var wn = {
|
|
|
187
187
|
}
|
|
188
188
|
let xe = E(() => {
|
|
189
189
|
let e = H.value?.popupPosition ?? "center";
|
|
190
|
-
if (
|
|
191
|
-
if (
|
|
190
|
+
if (se.value) return "tpl:items-stretch tpl:justify-center";
|
|
191
|
+
if (oe.value) return `tpl:items-stretch ${be(e)}`;
|
|
192
192
|
switch (e) {
|
|
193
193
|
case "topLeft": return "tpl:items-start tpl:justify-start";
|
|
194
194
|
case "topCenter": return "tpl:items-start tpl:justify-center";
|
|
@@ -200,10 +200,10 @@ var wn = {
|
|
|
200
200
|
case "bottomRight": return "tpl:items-end tpl:justify-end";
|
|
201
201
|
default: return "tpl:items-center tpl:justify-center";
|
|
202
202
|
}
|
|
203
|
-
}),
|
|
204
|
-
let e = { width:
|
|
205
|
-
if (
|
|
206
|
-
let t =
|
|
203
|
+
}), Ce = E(() => {
|
|
204
|
+
let e = { width: pe.value ? "100%" : `${me.value}px` };
|
|
205
|
+
if (le.value) {
|
|
206
|
+
let t = fe.value;
|
|
207
207
|
return {
|
|
208
208
|
...e,
|
|
209
209
|
minHeight: `${t}px`,
|
|
@@ -212,13 +212,13 @@ var wn = {
|
|
|
212
212
|
}
|
|
213
213
|
return {
|
|
214
214
|
...e,
|
|
215
|
-
minHeight: `${
|
|
215
|
+
minHeight: `${ve.value}px`
|
|
216
216
|
};
|
|
217
|
-
}),
|
|
218
|
-
let e = !!H.value, t = e ? `${
|
|
219
|
-
if (o && e && !
|
|
220
|
-
let e =
|
|
221
|
-
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);
|
|
222
222
|
}
|
|
223
223
|
let u = B(i.content.settings.backgroundShadow), d = {
|
|
224
224
|
width: c === null ? t : `${Math.round(c)}px`,
|
|
@@ -231,19 +231,19 @@ var wn = {
|
|
|
231
231
|
filter: i.darkMode ? "invert(1) hue-rotate(180deg)" : "none",
|
|
232
232
|
transition: "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 300ms ease"
|
|
233
233
|
};
|
|
234
|
-
if (l !== null && (d.height = `${Math.round(l)}px`, d.minHeight = "0"), e &&
|
|
235
|
-
else if (e &&
|
|
236
|
-
let e =
|
|
237
|
-
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";
|
|
238
238
|
}
|
|
239
239
|
return d;
|
|
240
|
-
}),
|
|
240
|
+
}), Ee = E(() => H.value ? pe.value ? { width: "100%" } : { width: `${me.value}px` } : L.value ? { width: `${A.value}px` } : void 0), De = E(() => {
|
|
241
241
|
let e = H.value;
|
|
242
242
|
return {
|
|
243
243
|
backgroundColor: e?.backgroundImage && e.backgroundImageUrl ? "transparent" : z(i.content.settings.backgroundColor, i.content.settings.backgroundOpacity),
|
|
244
244
|
fontFamily: i.content.settings.fontFamily
|
|
245
245
|
};
|
|
246
|
-
}),
|
|
246
|
+
}), ke = E(() => {
|
|
247
247
|
if (!i.content.settings.popup) return {};
|
|
248
248
|
let e = Cn(i.content.settings).design.contentPadding;
|
|
249
249
|
return {
|
|
@@ -252,20 +252,20 @@ var wn = {
|
|
|
252
252
|
paddingBottom: `${e.bottom}px`,
|
|
253
253
|
paddingLeft: `${e.left}px`
|
|
254
254
|
};
|
|
255
|
-
}),
|
|
255
|
+
}), Ae = E(() => {
|
|
256
256
|
let e = H.value;
|
|
257
257
|
return !!(e?.overlayImage && e.overlayImageUrl);
|
|
258
|
-
}),
|
|
258
|
+
}), Me = E(() => {
|
|
259
259
|
let e = H.value;
|
|
260
260
|
if (!e) return {};
|
|
261
|
-
let t =
|
|
261
|
+
let t = ne(e.overlayBlur), n = t > 0 ? `blur(${t}px)` : "none";
|
|
262
262
|
return {
|
|
263
263
|
backdropFilter: n,
|
|
264
264
|
WebkitBackdropFilter: n,
|
|
265
|
-
backgroundColor:
|
|
265
|
+
backgroundColor: Ae.value ? "transparent" : "rgba(0, 0, 0, 0.1)"
|
|
266
266
|
};
|
|
267
|
-
}),
|
|
268
|
-
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";
|
|
269
269
|
return {
|
|
270
270
|
opacity: Fe.value,
|
|
271
271
|
filter: t,
|
|
@@ -303,16 +303,16 @@ var wn = {
|
|
|
303
303
|
let e = Be.value;
|
|
304
304
|
return !e || !He.value ? { animation: "none" } : { animation: `${e} ${Rn} ${zn} ${Bn} both` };
|
|
305
305
|
});
|
|
306
|
-
function
|
|
306
|
+
function Ke(e) {
|
|
307
307
|
i.previewMode || e.target === e.currentTarget && c("select-block", null);
|
|
308
308
|
}
|
|
309
309
|
function Ye(e) {
|
|
310
310
|
return Le(e, y, r);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function W(e) {
|
|
313
313
|
return i.lockedBlocks?.get(e) ?? null;
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function Xe(e, t) {
|
|
316
316
|
e.type === "custom" && p.updateBlock(e.id, {
|
|
317
317
|
fieldValues: t.fieldValues,
|
|
318
318
|
dataSourceFetched: t.dataSourceFetched
|
|
@@ -320,16 +320,16 @@ var wn = {
|
|
|
320
320
|
}
|
|
321
321
|
return (t, n) => (f(), P("div", {
|
|
322
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" : ""]),
|
|
323
|
-
style: b(
|
|
323
|
+
style: b(Ee.value)
|
|
324
324
|
}, [w("div", {
|
|
325
325
|
class: N(H.value ? "tpl-popup-frame tpl:relative tpl:flex tpl:flex-col tpl:max-w-full tpl:overflow-hidden" : "tpl:contents"),
|
|
326
|
-
style: b(H.value ?
|
|
326
|
+
style: b(H.value ? Ce.value : void 0)
|
|
327
327
|
}, [H.value ? (f(), P("div", wn, [w("div", {
|
|
328
328
|
class: "tpl:absolute tpl:inset-0",
|
|
329
|
-
style: b(
|
|
330
|
-
}, null, 4),
|
|
329
|
+
style: b(Me.value)
|
|
330
|
+
}, null, 4), Ae.value ? (f(), P("img", {
|
|
331
331
|
key: 0,
|
|
332
|
-
src:
|
|
332
|
+
src: Pe.value,
|
|
333
333
|
alt: "",
|
|
334
334
|
class: "tpl:absolute tpl:inset-0 tpl:h-full tpl:w-full tpl:object-cover",
|
|
335
335
|
style: b(Ie.value)
|
|
@@ -337,20 +337,20 @@ var wn = {
|
|
|
337
337
|
"data-testid": "canvas-wrapper",
|
|
338
338
|
role: "region",
|
|
339
339
|
"aria-label": v(l).landmarks.canvas,
|
|
340
|
-
class: N(["tpl-canvas-wrapper tpl:rounded-lg",
|
|
341
|
-
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])
|
|
342
342
|
}, [w("div", {
|
|
343
343
|
class: N(["tpl-canvas tpl:rounded-lg", {
|
|
344
344
|
"tpl-canvas--dark-mode": e.darkMode,
|
|
345
345
|
"tpl-preview-mode": e.previewMode,
|
|
346
|
-
"tpl:min-h-0 tpl:flex-1 tpl:overflow-y-auto":
|
|
347
|
-
"!tpl:rounded-none":
|
|
346
|
+
"tpl:min-h-0 tpl:flex-1 tpl:overflow-y-auto": le.value,
|
|
347
|
+
"!tpl:rounded-none": le.value
|
|
348
348
|
}]),
|
|
349
349
|
style: b({
|
|
350
|
-
...
|
|
351
|
-
...
|
|
350
|
+
...De.value,
|
|
351
|
+
...ke.value
|
|
352
352
|
}),
|
|
353
|
-
onClick:
|
|
353
|
+
onClick: Ke
|
|
354
354
|
}, [F(v(Sn.default), {
|
|
355
355
|
modelValue: k.value,
|
|
356
356
|
"onUpdate:modelValue": n[2] ||= (e) => k.value = e,
|
|
@@ -365,30 +365,30 @@ var wn = {
|
|
|
365
365
|
disabled: e.previewMode,
|
|
366
366
|
class: "tpl-canvas-blocks"
|
|
367
367
|
}, {
|
|
368
|
-
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", {
|
|
369
369
|
key: 0,
|
|
370
370
|
class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
|
|
371
371
|
style: b({
|
|
372
|
-
outline: `2px solid ${
|
|
372
|
+
outline: `2px solid ${W(t.id).color}`,
|
|
373
373
|
outlineOffset: "-1px"
|
|
374
374
|
})
|
|
375
375
|
}, [w("span", {
|
|
376
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",
|
|
377
377
|
style: b({
|
|
378
|
-
backgroundColor:
|
|
379
|
-
color: v(dn)(
|
|
378
|
+
backgroundColor: W(t.id).color,
|
|
379
|
+
color: v(dn)(W(t.id).color)
|
|
380
380
|
})
|
|
381
|
-
}, [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, {
|
|
382
382
|
block: t,
|
|
383
|
-
"is-selected": !e.previewMode && e.selectedBlockId === t.id && !
|
|
383
|
+
"is-selected": !e.previewMode && e.selectedBlockId === t.id && !W(t.id),
|
|
384
384
|
viewport: e.viewport,
|
|
385
385
|
"preview-mode": e.previewMode,
|
|
386
|
-
onSelect: (n) => e.previewMode ||
|
|
386
|
+
onSelect: (n) => e.previewMode || W(t.id) ? void 0 : c("select-block", t.id)
|
|
387
387
|
}, {
|
|
388
388
|
default: m(() => [(f(), C(I(Ye(t)), {
|
|
389
389
|
block: t,
|
|
390
390
|
viewport: e.viewport,
|
|
391
|
-
onFetchData: (e) =>
|
|
391
|
+
onFetchData: (e) => Xe(t, e),
|
|
392
392
|
onUpdate: (e) => v(p).updateBlock(t.id, e)
|
|
393
393
|
}, null, 40, [
|
|
394
394
|
"block",
|
|
@@ -416,7 +416,7 @@ var wn = {
|
|
|
416
416
|
w("button", {
|
|
417
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)]",
|
|
418
418
|
onClick: n[0] ||= (e) => c("open-ai-chat")
|
|
419
|
-
}, [F(v(
|
|
419
|
+
}, [F(v(st), {
|
|
420
420
|
size: 14,
|
|
421
421
|
"stroke-width": 2
|
|
422
422
|
}), g(" " + S(v(d).aiMenu.aiAssistant), 1)]),
|
|
@@ -427,7 +427,7 @@ var wn = {
|
|
|
427
427
|
w("button", {
|
|
428
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)]",
|
|
429
429
|
onClick: n[1] ||= (e) => c("open-design-reference")
|
|
430
|
-
}, [F(v(
|
|
430
|
+
}, [F(v(ie), {
|
|
431
431
|
size: 14,
|
|
432
432
|
"stroke-width": 2
|
|
433
433
|
}), g(" " + S(v(d).aiMenu.designToTemplate), 1)]),
|
|
@@ -462,7 +462,7 @@ var wn = {
|
|
|
462
462
|
multiPageCanvas: { type: Boolean }
|
|
463
463
|
},
|
|
464
464
|
setup(e) {
|
|
465
|
-
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);
|
|
466
466
|
function p(e, t) {
|
|
467
467
|
let n = t.currentTarget;
|
|
468
468
|
if (!n) return;
|
|
@@ -489,7 +489,7 @@ var wn = {
|
|
|
489
489
|
for (let n = 1; n < e.length; n += 1) _(e[n - 1].blocks) || t.add(e[n].id);
|
|
490
490
|
return t;
|
|
491
491
|
});
|
|
492
|
-
|
|
492
|
+
ot(o, () => {
|
|
493
493
|
s.value = null;
|
|
494
494
|
}), u(() => {
|
|
495
495
|
t.multiPageCanvas && r.ensureCanvasPages();
|
|
@@ -518,7 +518,7 @@ var wn = {
|
|
|
518
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)]",
|
|
519
519
|
role: "tablist",
|
|
520
520
|
"aria-label": v(n).canvas.pages.ariaStrip
|
|
521
|
-
}, [(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), {
|
|
522
522
|
key: 0,
|
|
523
523
|
size: 16,
|
|
524
524
|
"stroke-width": 2,
|
|
@@ -543,7 +543,7 @@ var wn = {
|
|
|
543
543
|
onMouseleave: (e) => m(t.id),
|
|
544
544
|
onFocus: (e) => p(t.id, e),
|
|
545
545
|
onBlur: (e) => m(t.id)
|
|
546
|
-
}, [F(v(
|
|
546
|
+
}, [F(v(Qe), {
|
|
547
547
|
size: 16,
|
|
548
548
|
"stroke-width": 2
|
|
549
549
|
})], 40, Gn)) : h("", !0),
|
|
@@ -619,7 +619,7 @@ var wn = {
|
|
|
619
619
|
props: { imageUrl: {} },
|
|
620
620
|
emits: ["set-url"],
|
|
621
621
|
setup(e, { emit: t }) {
|
|
622
|
-
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);
|
|
623
623
|
function u(e) {
|
|
624
624
|
let t = e?.[0];
|
|
625
625
|
if (!t || !t.type.startsWith("image/")) return;
|
|
@@ -697,14 +697,14 @@ var wn = {
|
|
|
697
697
|
type: "button",
|
|
698
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)]",
|
|
699
699
|
onClick: h
|
|
700
|
-
}, [F(v(
|
|
700
|
+
}, [F(v(Xe), {
|
|
701
701
|
size: 14,
|
|
702
702
|
"stroke-width": 1.75
|
|
703
703
|
}), g(" " + S(v(i).popupDesign.overlayImageReplace), 1)]), w("button", {
|
|
704
704
|
type: "button",
|
|
705
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)]",
|
|
706
706
|
onClick: _
|
|
707
|
-
}, [F(v(
|
|
707
|
+
}, [F(v(Ze), {
|
|
708
708
|
size: 14,
|
|
709
709
|
"stroke-width": 1.75
|
|
710
710
|
}), g(" " + S(v(i).popupDesign.overlayImageRemove), 1)])])], 64)) : (f(), P("button", {
|
|
@@ -771,9 +771,9 @@ var wn = {
|
|
|
771
771
|
__name: "PopupDesignView",
|
|
772
772
|
props: { layout: { default: "standalone" } },
|
|
773
773
|
setup(e) {
|
|
774
|
-
let t = e, n = a(
|
|
774
|
+
let t = e, n = a(yt);
|
|
775
775
|
if (!n) throw Error("PopupDesignView requires EDITOR_KEY");
|
|
776
|
-
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(() => [
|
|
777
777
|
{
|
|
778
778
|
id: "style",
|
|
779
779
|
label: r.popupDesign.tabStyle
|
|
@@ -799,7 +799,7 @@ var wn = {
|
|
|
799
799
|
...t,
|
|
800
800
|
design: r
|
|
801
801
|
} };
|
|
802
|
-
e.sizePreset !== void 0 && (i.width =
|
|
802
|
+
e.sizePreset !== void 0 && (i.width = B[e.sizePreset]), n.updateSettings(i);
|
|
803
803
|
}
|
|
804
804
|
function p(e, t) {
|
|
805
805
|
d({ [e]: t });
|
|
@@ -1053,7 +1053,7 @@ function mi(e, t) {
|
|
|
1053
1053
|
if (!e?.length) return !1;
|
|
1054
1054
|
for (let n of e) {
|
|
1055
1055
|
if (t(n)) return !0;
|
|
1056
|
-
if (
|
|
1056
|
+
if (lt(n)) {
|
|
1057
1057
|
for (let e of n.children) if (Array.isArray(e) && mi(e, t)) return !0;
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
@@ -1104,7 +1104,7 @@ function Ci(e) {
|
|
|
1104
1104
|
if (!e?.length) return !1;
|
|
1105
1105
|
for (let t of e) {
|
|
1106
1106
|
if (t.type === "discountCoupon") return !0;
|
|
1107
|
-
if (
|
|
1107
|
+
if (lt(t)) {
|
|
1108
1108
|
for (let e of t.children) if (Array.isArray(e) && Ci(e)) return !0;
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
@@ -1120,7 +1120,7 @@ function wi(e) {
|
|
|
1120
1120
|
return Ci(e.blocks);
|
|
1121
1121
|
}
|
|
1122
1122
|
function Ti() {
|
|
1123
|
-
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 = [
|
|
1124
1124
|
"section",
|
|
1125
1125
|
"image",
|
|
1126
1126
|
"title",
|
|
@@ -1158,9 +1158,9 @@ function Ti() {
|
|
|
1158
1158
|
function _(e) {
|
|
1159
1159
|
if (e.isCustom) {
|
|
1160
1160
|
let t = e.type.replace("custom:", ""), r = n.find((e) => e.type === t);
|
|
1161
|
-
if (r) return
|
|
1161
|
+
if (r) return pe(r);
|
|
1162
1162
|
}
|
|
1163
|
-
return
|
|
1163
|
+
return oe(e.type, r);
|
|
1164
1164
|
}
|
|
1165
1165
|
function v(e) {
|
|
1166
1166
|
if (!i || h(e)) return;
|
|
@@ -1295,7 +1295,7 @@ var Ei = ["aria-label"], Di = {
|
|
|
1295
1295
|
key: 0,
|
|
1296
1296
|
size: 20,
|
|
1297
1297
|
"stroke-width": 1.5
|
|
1298
|
-
})) : e.isCustom ? (f(), C(
|
|
1298
|
+
})) : e.isCustom ? (f(), C(vt, {
|
|
1299
1299
|
key: 1,
|
|
1300
1300
|
icon: e.icon,
|
|
1301
1301
|
size: 20
|
|
@@ -1314,7 +1314,7 @@ var Ei = ["aria-label"], Di = {
|
|
|
1314
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({
|
|
1315
1315
|
__name: "PopupLeftChrome",
|
|
1316
1316
|
setup(e) {
|
|
1317
|
-
let t = a(
|
|
1317
|
+
let t = a(_t, j("blocks")), { t: n } = U(), r = E(() => [
|
|
1318
1318
|
{
|
|
1319
1319
|
id: "design",
|
|
1320
1320
|
icon: jt,
|
|
@@ -1370,7 +1370,7 @@ var Ei = ["aria-label"], Di = {
|
|
|
1370
1370
|
}), Vi = /* @__PURE__ */ i({
|
|
1371
1371
|
__name: "Sidebar",
|
|
1372
1372
|
setup(e) {
|
|
1373
|
-
let t = a(
|
|
1373
|
+
let t = a(ct, "email");
|
|
1374
1374
|
return (e, n) => v(t) === "popup" ? (f(), C(Bi, { key: 0 })) : (f(), C(Pi, { key: 1 }));
|
|
1375
1375
|
}
|
|
1376
1376
|
});
|
|
@@ -1391,10 +1391,10 @@ function Hi(e) {
|
|
|
1391
1391
|
type: "mergeTag",
|
|
1392
1392
|
value: t,
|
|
1393
1393
|
label: c(t)
|
|
1394
|
-
}) :
|
|
1394
|
+
}) : Te(t, u) ? n.push({
|
|
1395
1395
|
type: "logicMergeTag",
|
|
1396
1396
|
value: t,
|
|
1397
|
-
keyword:
|
|
1397
|
+
keyword: rt(t, u)
|
|
1398
1398
|
}) : n.push({
|
|
1399
1399
|
type: "text",
|
|
1400
1400
|
value: t
|
|
@@ -1465,7 +1465,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
1465
1465
|
},
|
|
1466
1466
|
emits: ["edit", "clear"],
|
|
1467
1467
|
setup(e, { emit: t }) {
|
|
1468
|
-
let n = t, { t: r } =
|
|
1468
|
+
let n = t, { t: r } = U();
|
|
1469
1469
|
function i() {
|
|
1470
1470
|
n("edit");
|
|
1471
1471
|
}
|
|
@@ -1499,7 +1499,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
1499
1499
|
"aria-label": v(r).mergeTag.remove,
|
|
1500
1500
|
title: v(r).mergeTag.remove,
|
|
1501
1501
|
onClick: a[0] ||= y((e) => n("clear"), ["stop"])
|
|
1502
|
-
}, [F(v(
|
|
1502
|
+
}, [F(v(Ze), {
|
|
1503
1503
|
size: 12,
|
|
1504
1504
|
"stroke-width": 2.5
|
|
1505
1505
|
})], 8, qi)], 42, Ui));
|
|
@@ -1513,7 +1513,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
1513
1513
|
props: { disabled: { type: Boolean } },
|
|
1514
1514
|
emits: ["insert"],
|
|
1515
1515
|
setup(e) {
|
|
1516
|
-
let { t } =
|
|
1516
|
+
let { t } = U();
|
|
1517
1517
|
return (n, r) => (f(), P("button", {
|
|
1518
1518
|
type: "button",
|
|
1519
1519
|
class: N([Xi, "tpl:mt-1.5"]),
|
|
@@ -1581,7 +1581,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
1581
1581
|
},
|
|
1582
1582
|
emits: ["update:modelValue"],
|
|
1583
1583
|
setup(e, { emit: t }) {
|
|
1584
|
-
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);
|
|
1585
1585
|
s(a, (e) => {
|
|
1586
1586
|
!e && o.value && (o.value = !1);
|
|
1587
1587
|
});
|
|
@@ -1751,7 +1751,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
1751
1751
|
props: { settings: {} },
|
|
1752
1752
|
emits: ["update"],
|
|
1753
1753
|
setup(e, { emit: t }) {
|
|
1754
|
-
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 = [
|
|
1755
1755
|
{
|
|
1756
1756
|
value: 480,
|
|
1757
1757
|
label: "480px"
|
|
@@ -1893,7 +1893,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
1893
1893
|
}, null, 42, Xa),
|
|
1894
1894
|
w("p", Za, S(v(i).templateSettings.contentLocaleHint), 1)
|
|
1895
1895
|
])], 2),
|
|
1896
|
-
w("div", { class: N(v(gn)) }, [w("div", Qa, [F(v(
|
|
1896
|
+
w("div", { class: N(v(gn)) }, [w("div", Qa, [F(v(H), {
|
|
1897
1897
|
class: "tpl:text-[var(--tpl-text-muted)]",
|
|
1898
1898
|
size: 14,
|
|
1899
1899
|
"stroke-width": 2
|
|
@@ -1983,7 +1983,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
1983
1983
|
},
|
|
1984
1984
|
emits: ["update"],
|
|
1985
1985
|
setup(e, { emit: t }) {
|
|
1986
|
-
let n = e, r = t, { t: i } =
|
|
1986
|
+
let n = e, r = t, { t: i } = U(), a = E(() => n.block.clickAction ?? "none"), o = E(() => {
|
|
1987
1987
|
let e = a.value;
|
|
1988
1988
|
return e === "none" || e === "load_page";
|
|
1989
1989
|
}), s = E(() => a.value === "load_page" ? i.button.pageUrl : i.button.url), l = E(() => a.value === "none" ? "" : a.value);
|
|
@@ -2115,7 +2115,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
2115
2115
|
type: "button",
|
|
2116
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)]",
|
|
2117
2117
|
onClick: n[0] ||= (e) => t.$emit("toggle")
|
|
2118
|
-
}, [F(v(
|
|
2118
|
+
}, [F(v(se), {
|
|
2119
2119
|
class: N(["tpl:transition-transform tpl:duration-200", e.open ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
2120
2120
|
size: 12,
|
|
2121
2121
|
"stroke-width": 2
|
|
@@ -2141,7 +2141,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
2141
2141
|
},
|
|
2142
2142
|
emits: ["update"],
|
|
2143
2143
|
setup(e, { emit: n }) {
|
|
2144
|
-
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 = [
|
|
2145
2145
|
{
|
|
2146
2146
|
key: "desktop",
|
|
2147
2147
|
icon: At,
|
|
@@ -2362,7 +2362,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
2362
2362
|
props: { block: {} },
|
|
2363
2363
|
emits: ["update"],
|
|
2364
2364
|
setup(e, { emit: t }) {
|
|
2365
|
-
let n = e, r = t, { t: i } =
|
|
2365
|
+
let n = e, r = t, { t: i } = U(), a = j("fields"), o = [
|
|
2366
2366
|
{
|
|
2367
2367
|
id: "sync",
|
|
2368
2368
|
label: i.form.tabs.sync
|
|
@@ -2512,7 +2512,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
2512
2512
|
_.value = _.value === e ? null : e;
|
|
2513
2513
|
}
|
|
2514
2514
|
function k(e) {
|
|
2515
|
-
let t =
|
|
2515
|
+
let t = xe(e);
|
|
2516
2516
|
r("update", { fields: [...n.block.fields, t] }), _.value = t.id, T.value = !1;
|
|
2517
2517
|
}
|
|
2518
2518
|
function A(e) {
|
|
@@ -2565,7 +2565,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
2565
2565
|
style: b({ backgroundColor: t.color })
|
|
2566
2566
|
}, S(t.initial), 5),
|
|
2567
2567
|
w("span", Cs, S(t.label), 1),
|
|
2568
|
-
e.block.syncIntegrationId === t.id ? (f(), C(v(
|
|
2568
|
+
e.block.syncIntegrationId === t.id ? (f(), C(v(me), {
|
|
2569
2569
|
key: 0,
|
|
2570
2570
|
class: "tpl:absolute tpl:right-1 tpl:top-1 tpl:text-[var(--tpl-primary)]",
|
|
2571
2571
|
size: 14,
|
|
@@ -2586,10 +2586,10 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
2586
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)]",
|
|
2587
2587
|
title: v(i).form.fields.remove,
|
|
2588
2588
|
onClick: y((t) => A(e.id), ["stop"])
|
|
2589
|
-
}, [F(v(
|
|
2589
|
+
}, [F(v(et), {
|
|
2590
2590
|
size: 14,
|
|
2591
2591
|
"stroke-width": 1.75
|
|
2592
|
-
})], 8, ks), F(v(
|
|
2592
|
+
})], 8, ks), F(v(se), {
|
|
2593
2593
|
class: N(["tpl:transition-transform tpl:duration-200", _.value === e.id ? "tpl:rotate-0" : "tpl:-rotate-90"]),
|
|
2594
2594
|
size: 14,
|
|
2595
2595
|
"stroke-width": 2
|
|
@@ -2794,7 +2794,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
2794
2794
|
},
|
|
2795
2795
|
emits: ["update"],
|
|
2796
2796
|
setup(e, { emit: t }) {
|
|
2797
|
-
let n = e, r = t, { t: i } =
|
|
2797
|
+
let n = e, r = t, { t: i } = U(), a = j(!0), o = j(!0);
|
|
2798
2798
|
function s(e, t) {
|
|
2799
2799
|
r("update", { [e]: t });
|
|
2800
2800
|
}
|
|
@@ -3036,7 +3036,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3036
3036
|
},
|
|
3037
3037
|
emits: ["update:modelValue"],
|
|
3038
3038
|
setup(e, { emit: t }) {
|
|
3039
|
-
let n = t, { t: r } =
|
|
3039
|
+
let n = t, { t: r } = U();
|
|
3040
3040
|
return (t, i) => (f(), P("div", {
|
|
3041
3041
|
class: "tpl:mb-3.5",
|
|
3042
3042
|
title: e.readOnly ? v(r).customBlocks.dataSource.readOnlyTooltip : void 0
|
|
@@ -3092,7 +3092,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3092
3092
|
},
|
|
3093
3093
|
emits: ["update:modelValue"],
|
|
3094
3094
|
setup(e, { emit: t }) {
|
|
3095
|
-
let n = t, { t: r } =
|
|
3095
|
+
let n = t, { t: r } = U();
|
|
3096
3096
|
return (t, i) => (f(), C(El, {
|
|
3097
3097
|
label: e.field.label,
|
|
3098
3098
|
required: e.field.required,
|
|
@@ -3130,7 +3130,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3130
3130
|
},
|
|
3131
3131
|
emits: ["update:modelValue"],
|
|
3132
3132
|
setup(e, { emit: t }) {
|
|
3133
|
-
let n = t, { t: r } =
|
|
3133
|
+
let n = t, { t: r } = U(), i = a(dt, null), o = E(() => !!i);
|
|
3134
3134
|
async function s() {
|
|
3135
3135
|
let e = await i?.({ accept: ["images"] });
|
|
3136
3136
|
e && n("update:modelValue", e.url);
|
|
@@ -3187,7 +3187,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3187
3187
|
},
|
|
3188
3188
|
emits: ["update:modelValue"],
|
|
3189
3189
|
setup(e, { emit: t }) {
|
|
3190
|
-
let n = t, { t: r } =
|
|
3190
|
+
let n = t, { t: r } = U();
|
|
3191
3191
|
return (t, i) => (f(), C(El, {
|
|
3192
3192
|
label: e.field.label,
|
|
3193
3193
|
required: e.field.required,
|
|
@@ -3224,7 +3224,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3224
3224
|
},
|
|
3225
3225
|
emits: ["update:modelValue"],
|
|
3226
3226
|
setup(e, { emit: t }) {
|
|
3227
|
-
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);
|
|
3228
3228
|
function l() {
|
|
3229
3229
|
if (!o.value || n.readOnly) return;
|
|
3230
3230
|
let e = {};
|
|
@@ -3257,7 +3257,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3257
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)]",
|
|
3258
3258
|
title: v(i).customBlocks.fields.removeItem,
|
|
3259
3259
|
onClick: (e) => u(n)
|
|
3260
|
-
}, [F(v(
|
|
3260
|
+
}, [F(v(et), {
|
|
3261
3261
|
size: 12,
|
|
3262
3262
|
"stroke-width": 2
|
|
3263
3263
|
})], 8, Il)) : h("", !0)]), (f(!0), P(x, null, c(e.field.fields, (r) => (f(), C(I(v(ql)(r.type)), {
|
|
@@ -3303,7 +3303,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3303
3303
|
},
|
|
3304
3304
|
emits: ["update:modelValue"],
|
|
3305
3305
|
setup(e, { emit: t }) {
|
|
3306
|
-
let n = t, { t: r } =
|
|
3306
|
+
let n = t, { t: r } = U();
|
|
3307
3307
|
return (t, i) => (f(), C(El, {
|
|
3308
3308
|
label: e.field.label,
|
|
3309
3309
|
required: e.field.required,
|
|
@@ -3339,7 +3339,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3339
3339
|
},
|
|
3340
3340
|
emits: ["update:modelValue"],
|
|
3341
3341
|
setup(e, { emit: t }) {
|
|
3342
|
-
let n = t, { t: r } =
|
|
3342
|
+
let n = t, { t: r } = U();
|
|
3343
3343
|
return (t, i) => (f(), C(El, {
|
|
3344
3344
|
label: e.field.label,
|
|
3345
3345
|
required: e.field.required,
|
|
@@ -3381,7 +3381,7 @@ var Ui = ["aria-label", "onKeydown"], Wi = ["data-tooltip"], Gi = ["data-tooltip
|
|
|
3381
3381
|
},
|
|
3382
3382
|
emits: ["update:modelValue"],
|
|
3383
3383
|
setup(e, { emit: t }) {
|
|
3384
|
-
let n = t, { t: r } =
|
|
3384
|
+
let n = t, { t: r } = U();
|
|
3385
3385
|
return (t, i) => (f(), C(El, {
|
|
3386
3386
|
label: e.field.label,
|
|
3387
3387
|
required: e.field.required,
|
|
@@ -3444,7 +3444,7 @@ var Jl = {
|
|
|
3444
3444
|
props: { block: {} },
|
|
3445
3445
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
3446
3446
|
setup(e, { emit: t }) {
|
|
3447
|
-
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({
|
|
3448
3448
|
definition: s,
|
|
3449
3449
|
block: E(() => n.block),
|
|
3450
3450
|
onUpdate: (e, t) => {
|
|
@@ -3472,7 +3472,7 @@ var Jl = {
|
|
|
3472
3472
|
type: "button",
|
|
3473
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)]",
|
|
3474
3474
|
onClick: n[1] ||= (...e) => v(d) && v(d)(...e)
|
|
3475
|
-
}, [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), {
|
|
3476
3476
|
size: 14,
|
|
3477
3477
|
class: "tpl:shrink-0"
|
|
3478
3478
|
}), g(" " + S(v(i).customBlocks.dataSource.fetchError), 1)])) : h("", !0)])) : h("", !0),
|
|
@@ -3523,7 +3523,7 @@ var Jl = {
|
|
|
3523
3523
|
props: { block: {} },
|
|
3524
3524
|
emits: ["update"],
|
|
3525
3525
|
setup(e, { emit: t }) {
|
|
3526
|
-
let n = e, r = t, { t: i } =
|
|
3526
|
+
let n = e, r = t, { t: i } = U(), o = a(yt, null);
|
|
3527
3527
|
function l(e, t) {
|
|
3528
3528
|
r("update", { [e]: t });
|
|
3529
3529
|
}
|
|
@@ -3705,7 +3705,7 @@ var Jl = {
|
|
|
3705
3705
|
spellcheck: "false",
|
|
3706
3706
|
"aria-invalid": y.value,
|
|
3707
3707
|
onInput: n[7] ||= (e) => l("manualDiscountCode", e.target.value)
|
|
3708
|
-
}, null, 42, vu), y.value ? (f(), P("div", yu, [F(v(
|
|
3708
|
+
}, null, 42, vu), y.value ? (f(), P("div", yu, [F(v(Qe), {
|
|
3709
3709
|
class: "tpl:size-3.5 tpl:shrink-0",
|
|
3710
3710
|
"stroke-width": 2
|
|
3711
3711
|
}), w("span", null, S(v(i).discountCoupon.manualBlankError), 1)])) : h("", !0)]),
|
|
@@ -3753,7 +3753,7 @@ var Jl = {
|
|
|
3753
3753
|
props: { block: {} },
|
|
3754
3754
|
emits: ["update"],
|
|
3755
3755
|
setup(e, { emit: t }) {
|
|
3756
|
-
let n = t, { t: r } =
|
|
3756
|
+
let n = t, { t: r } = U();
|
|
3757
3757
|
function i(e, t) {
|
|
3758
3758
|
n("update", { [e]: t });
|
|
3759
3759
|
}
|
|
@@ -3795,7 +3795,7 @@ var Jl = {
|
|
|
3795
3795
|
props: { block: {} },
|
|
3796
3796
|
emits: ["update"],
|
|
3797
3797
|
setup(e, { emit: t }) {
|
|
3798
|
-
let n = t, { t: r } =
|
|
3798
|
+
let n = t, { t: r } = U();
|
|
3799
3799
|
return (t, i) => (f(), P("div", Pu, [
|
|
3800
3800
|
w("label", { class: N(v(J)) }, S(v(r).html.content), 3),
|
|
3801
3801
|
w("textarea", {
|
|
@@ -3822,7 +3822,7 @@ var Jl = {
|
|
|
3822
3822
|
props: { block: {} },
|
|
3823
3823
|
emits: ["update"],
|
|
3824
3824
|
setup(e, { emit: t }) {
|
|
3825
|
-
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(() => {
|
|
3826
3826
|
c.value = !1;
|
|
3827
3827
|
}, 1e3, { immediate: !1 });
|
|
3828
3828
|
function d(e, t) {
|
|
@@ -3860,7 +3860,7 @@ var Jl = {
|
|
|
3860
3860
|
"stroke-width": 1.5
|
|
3861
3861
|
}), g(" " + S(v(r).image.browseMedia), 1)])) : h("", !0)
|
|
3862
3862
|
]),
|
|
3863
|
-
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", {
|
|
3864
3864
|
type: "url",
|
|
3865
3865
|
class: N(v(q)),
|
|
3866
3866
|
value: e.block.placeholderUrl || "",
|
|
@@ -3946,7 +3946,7 @@ var Jl = {
|
|
|
3946
3946
|
},
|
|
3947
3947
|
emits: ["update"],
|
|
3948
3948
|
setup(e, { emit: t }) {
|
|
3949
|
-
let n = e, r = t, { t: i } =
|
|
3949
|
+
let n = e, r = t, { t: i } = U(), a = E(() => [
|
|
3950
3950
|
{
|
|
3951
3951
|
key: "openInNewTab",
|
|
3952
3952
|
label: i.menu.openInNewTab
|
|
@@ -3981,7 +3981,7 @@ var Jl = {
|
|
|
3981
3981
|
}
|
|
3982
3982
|
function l() {
|
|
3983
3983
|
let e = {
|
|
3984
|
-
id:
|
|
3984
|
+
id: Me(),
|
|
3985
3985
|
text: "",
|
|
3986
3986
|
url: "",
|
|
3987
3987
|
openInNewTab: !1,
|
|
@@ -4015,7 +4015,7 @@ var Jl = {
|
|
|
4015
4015
|
class: N(v(pn)),
|
|
4016
4016
|
title: v(i).menu.removeItem,
|
|
4017
4017
|
onClick: (e) => d(t.id)
|
|
4018
|
-
}, [F(v(
|
|
4018
|
+
}, [F(v(Ze), {
|
|
4019
4019
|
size: 14,
|
|
4020
4020
|
"stroke-width": 2
|
|
4021
4021
|
})], 10, nd)]),
|
|
@@ -4128,7 +4128,7 @@ var Jl = {
|
|
|
4128
4128
|
props: { block: {} },
|
|
4129
4129
|
emits: ["update"],
|
|
4130
4130
|
setup(e, { emit: t }) {
|
|
4131
|
-
let n = t, { t: r } =
|
|
4131
|
+
let n = t, { t: r } = U(), i = E(() => [
|
|
4132
4132
|
{
|
|
4133
4133
|
value: "1",
|
|
4134
4134
|
label: r.section.column1
|
|
@@ -4164,13 +4164,13 @@ var Jl = {
|
|
|
4164
4164
|
props: { block: {} },
|
|
4165
4165
|
emits: ["update"],
|
|
4166
4166
|
setup(e, { emit: t }) {
|
|
4167
|
-
let n = e, r = t, { t: i } =
|
|
4167
|
+
let n = e, r = t, { t: i } = U();
|
|
4168
4168
|
function a(e, t) {
|
|
4169
4169
|
r("update", { [e]: t });
|
|
4170
4170
|
}
|
|
4171
4171
|
function o() {
|
|
4172
4172
|
let e = {
|
|
4173
|
-
id:
|
|
4173
|
+
id: Me(),
|
|
4174
4174
|
platform: "facebook",
|
|
4175
4175
|
url: ""
|
|
4176
4176
|
};
|
|
@@ -4193,14 +4193,14 @@ var Jl = {
|
|
|
4193
4193
|
class: N([v(q), "tpl:flex-1"]),
|
|
4194
4194
|
value: e.platform,
|
|
4195
4195
|
onChange: (t) => s(e.id, "platform", t.target.value)
|
|
4196
|
-
}, [(f(!0), P(x, null, c(v(
|
|
4196
|
+
}, [(f(!0), P(x, null, c(v(be), (e) => (f(), P("option", {
|
|
4197
4197
|
key: e,
|
|
4198
4198
|
value: e
|
|
4199
|
-
}, S(v(
|
|
4199
|
+
}, S(v(fe)[e].name), 9, yd))), 128))], 42, vd), w("button", {
|
|
4200
4200
|
class: N(v(pn)),
|
|
4201
4201
|
title: v(i).social.removeIcon,
|
|
4202
4202
|
onClick: (t) => l(e.id)
|
|
4203
|
-
}, [F(v(
|
|
4203
|
+
}, [F(v(Ze), {
|
|
4204
4204
|
size: 14,
|
|
4205
4205
|
"stroke-width": 2
|
|
4206
4206
|
})], 10, bd)]), F($, {
|
|
@@ -4299,7 +4299,7 @@ var Jl = {
|
|
|
4299
4299
|
props: { block: {} },
|
|
4300
4300
|
emits: ["update"],
|
|
4301
4301
|
setup(e, { emit: t }) {
|
|
4302
|
-
let n = t, { t: r } =
|
|
4302
|
+
let n = t, { t: r } = U();
|
|
4303
4303
|
return (t, i) => (f(), P("div", Od, [
|
|
4304
4304
|
w("label", { class: N(v(J)) }, S(v(r).spacer.height), 3),
|
|
4305
4305
|
w("div", kd, [w("input", {
|
|
@@ -4331,15 +4331,15 @@ var Jl = {
|
|
|
4331
4331
|
},
|
|
4332
4332
|
emits: ["update"],
|
|
4333
4333
|
setup(e, { emit: t }) {
|
|
4334
|
-
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);
|
|
4335
4335
|
function o(e, t) {
|
|
4336
4336
|
r("update", { [e]: t });
|
|
4337
4337
|
}
|
|
4338
4338
|
function s() {
|
|
4339
4339
|
let e = n.block.rows.length > 0 ? n.block.rows[0].cells.length : 3, t = {
|
|
4340
|
-
id:
|
|
4340
|
+
id: Me(),
|
|
4341
4341
|
cells: Array.from({ length: e }, () => ({
|
|
4342
|
-
id:
|
|
4342
|
+
id: Me(),
|
|
4343
4343
|
content: ""
|
|
4344
4344
|
}))
|
|
4345
4345
|
};
|
|
@@ -4352,7 +4352,7 @@ var Jl = {
|
|
|
4352
4352
|
r("update", { rows: n.block.rows.map((e) => ({
|
|
4353
4353
|
...e,
|
|
4354
4354
|
cells: [...e.cells, {
|
|
4355
|
-
id:
|
|
4355
|
+
id: Me(),
|
|
4356
4356
|
content: ""
|
|
4357
4357
|
}]
|
|
4358
4358
|
})) });
|
|
@@ -4481,7 +4481,7 @@ var Jl = {
|
|
|
4481
4481
|
},
|
|
4482
4482
|
emits: ["update"],
|
|
4483
4483
|
setup(e, { emit: t }) {
|
|
4484
|
-
let n = t, { t: r } =
|
|
4484
|
+
let n = t, { t: r } = U();
|
|
4485
4485
|
function i(e, t) {
|
|
4486
4486
|
n("update", { [e]: t });
|
|
4487
4487
|
}
|
|
@@ -4546,7 +4546,7 @@ var Jl = {
|
|
|
4546
4546
|
props: { block: {} },
|
|
4547
4547
|
emits: ["update"],
|
|
4548
4548
|
setup(e, { emit: t }) {
|
|
4549
|
-
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(() => {
|
|
4550
4550
|
u.value = !1;
|
|
4551
4551
|
}, 1e3, { immediate: !1 });
|
|
4552
4552
|
function p(e, t) {
|
|
@@ -4652,7 +4652,7 @@ var Jl = {
|
|
|
4652
4652
|
"duplicate"
|
|
4653
4653
|
],
|
|
4654
4654
|
setup(e, { emit: t }) {
|
|
4655
|
-
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(() => {
|
|
4656
4656
|
if (u.value) return c.find((e) => e.type === r.block.customType);
|
|
4657
4657
|
}), m = E(() => u.value ? d.value?.name ?? r.block.customType : V(l.value, o)), g = s.fonts;
|
|
4658
4658
|
function _(e) {
|
|
@@ -4673,14 +4673,14 @@ var Jl = {
|
|
|
4673
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)]",
|
|
4674
4674
|
title: v(o).toolbar.duplicate,
|
|
4675
4675
|
onClick: r[0] ||= (e) => i("duplicate")
|
|
4676
|
-
}, [F(v(
|
|
4676
|
+
}, [F(v(at), {
|
|
4677
4677
|
size: 14,
|
|
4678
4678
|
"stroke-width": 2
|
|
4679
4679
|
})], 8, Gf), w("button", {
|
|
4680
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)]",
|
|
4681
4681
|
title: v(o).toolbar.delete,
|
|
4682
4682
|
onClick: r[1] ||= (e) => i("delete")
|
|
4683
|
-
}, [F(v(
|
|
4683
|
+
}, [F(v(et), {
|
|
4684
4684
|
size: 14,
|
|
4685
4685
|
"stroke-width": 2
|
|
4686
4686
|
})], 8, Kf)])]), w("div", qf, [u.value ? (f(), C(nu, {
|
|
@@ -4813,7 +4813,7 @@ var Jl = {
|
|
|
4813
4813
|
"update-settings"
|
|
4814
4814
|
],
|
|
4815
4815
|
setup(e, { emit: t }) {
|
|
4816
|
-
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);
|
|
4817
4817
|
function m(e) {
|
|
4818
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)]";
|
|
4819
4819
|
}
|
|
@@ -4911,7 +4911,7 @@ var Jl = {
|
|
|
4911
4911
|
__name: "HistoryUndoRedo",
|
|
4912
4912
|
props: { onBeforeUndo: { type: Function } },
|
|
4913
4913
|
setup(e) {
|
|
4914
|
-
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);
|
|
4915
4915
|
function s() {
|
|
4916
4916
|
!n || !i.value || (t.onBeforeUndo?.(), n.undo());
|
|
4917
4917
|
}
|
|
@@ -4955,7 +4955,7 @@ var Jl = {
|
|
|
4955
4955
|
props: { viewport: {} },
|
|
4956
4956
|
emits: ["change"],
|
|
4957
4957
|
setup(e, { emit: t }) {
|
|
4958
|
-
let n = e, r = t, { t: i } =
|
|
4958
|
+
let n = e, r = t, { t: i } = U(), a = E(() => [{
|
|
4959
4959
|
value: "desktop",
|
|
4960
4960
|
label: i.viewport.desktop
|
|
4961
4961
|
}, {
|
|
@@ -5018,7 +5018,7 @@ var Jl = {
|
|
|
5018
5018
|
props: { previewMode: { type: Boolean } },
|
|
5019
5019
|
emits: ["change"],
|
|
5020
5020
|
setup(e, { emit: t }) {
|
|
5021
|
-
let n = t, { t: r } =
|
|
5021
|
+
let n = t, { t: r } = U();
|
|
5022
5022
|
return (t, i) => (f(), P("button", {
|
|
5023
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",
|
|
5024
5024
|
style: b({
|
|
@@ -5036,11 +5036,11 @@ var Jl = {
|
|
|
5036
5036
|
"leave-to-class": "tpl-icon-leave-to",
|
|
5037
5037
|
mode: "out-in"
|
|
5038
5038
|
}, {
|
|
5039
|
-
default: m(() => [e.previewMode ? (f(), C(v(
|
|
5039
|
+
default: m(() => [e.previewMode ? (f(), C(v(H), {
|
|
5040
5040
|
key: "eye",
|
|
5041
5041
|
size: 18,
|
|
5042
5042
|
"stroke-width": 1.5
|
|
5043
|
-
})) : (f(), C(v(
|
|
5043
|
+
})) : (f(), C(v(De), {
|
|
5044
5044
|
key: "eye-off",
|
|
5045
5045
|
size: 18,
|
|
5046
5046
|
"stroke-width": 1.5
|
|
@@ -5057,7 +5057,7 @@ var Jl = {
|
|
|
5057
5057
|
props: { darkMode: { type: Boolean } },
|
|
5058
5058
|
emits: ["change"],
|
|
5059
5059
|
setup(e, { emit: t }) {
|
|
5060
|
-
let n = t, { t: r } =
|
|
5060
|
+
let n = t, { t: r } = U();
|
|
5061
5061
|
return (t, i) => (f(), P("button", {
|
|
5062
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",
|
|
5063
5063
|
style: b({
|
|
@@ -5098,7 +5098,7 @@ var Jl = {
|
|
|
5098
5098
|
__name: "EditorFooter",
|
|
5099
5099
|
props: { positionClass: {} },
|
|
5100
5100
|
setup(e) {
|
|
5101
|
-
let { t } =
|
|
5101
|
+
let { t } = U();
|
|
5102
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, [
|
|
5103
5103
|
w("span", null, S(v(t).footer.poweredBy), 1),
|
|
5104
5104
|
w("a", {
|
|
@@ -5183,15 +5183,15 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5183
5183
|
}
|
|
5184
5184
|
},
|
|
5185
5185
|
setup(e, { expose: t }) {
|
|
5186
|
-
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);
|
|
5187
5187
|
s(o, (e, t, n) => {
|
|
5188
5188
|
if (T.value = e, !e) return;
|
|
5189
5189
|
let r = (e) => {
|
|
5190
|
-
e.key === "Escape" && (e.preventDefault(),
|
|
5190
|
+
e.key === "Escape" && (e.preventDefault(), ie(!0));
|
|
5191
5191
|
};
|
|
5192
5192
|
document.addEventListener("keydown", r, !0), n(() => document.removeEventListener("keydown", r, !0));
|
|
5193
5193
|
}, { immediate: !0 });
|
|
5194
|
-
let A = 0, { pause: M, resume: I } =
|
|
5194
|
+
let A = 0, { pause: M, resume: I } = Fe(() => {
|
|
5195
5195
|
let e = B.value;
|
|
5196
5196
|
A < e.length ? (p.value = e.slice(0, A + 1), A++) : M();
|
|
5197
5197
|
}, 25, { immediate: !1 }), L = E(() => [
|
|
@@ -5238,7 +5238,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5238
5238
|
inline: "nearest"
|
|
5239
5239
|
}), l.value = t.getBoundingClientRect();
|
|
5240
5240
|
}
|
|
5241
|
-
function
|
|
5241
|
+
function ne() {
|
|
5242
5242
|
M();
|
|
5243
5243
|
let e = B.value;
|
|
5244
5244
|
if (p.value = "", _.value === "reduce") {
|
|
@@ -5247,34 +5247,34 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5247
5247
|
}
|
|
5248
5248
|
A = 0, I();
|
|
5249
5249
|
}
|
|
5250
|
-
function
|
|
5250
|
+
function H() {
|
|
5251
5251
|
return ee(r.tourConfig.steps === void 0 ? L.value : r.tourConfig.steps);
|
|
5252
5252
|
}
|
|
5253
5253
|
function re(e) {
|
|
5254
|
-
let t =
|
|
5254
|
+
let t = H();
|
|
5255
5255
|
if (x.value = t, t.length === 0) {
|
|
5256
5256
|
o.value = !1;
|
|
5257
5257
|
return;
|
|
5258
5258
|
}
|
|
5259
5259
|
c.value = Math.min(Math.max(0, e?.stepIndex ?? 0), t.length - 1), o.value = !0, n(() => {
|
|
5260
|
-
te(),
|
|
5260
|
+
te(), ne();
|
|
5261
5261
|
});
|
|
5262
5262
|
}
|
|
5263
|
-
function
|
|
5263
|
+
function ie(e) {
|
|
5264
5264
|
M(), o.value = !1, l.value = null, e && Pp(r.tourConfig);
|
|
5265
5265
|
}
|
|
5266
|
-
function
|
|
5266
|
+
function ae() {
|
|
5267
5267
|
c.value < x.value.length - 1 ? (c.value++, n(() => {
|
|
5268
|
-
te(),
|
|
5269
|
-
})) :
|
|
5268
|
+
te(), ne();
|
|
5269
|
+
})) : ie(!0);
|
|
5270
5270
|
}
|
|
5271
|
-
function
|
|
5271
|
+
function oe() {
|
|
5272
5272
|
return Np(r.tourConfig);
|
|
5273
5273
|
}
|
|
5274
|
-
function
|
|
5274
|
+
function se() {
|
|
5275
5275
|
Fp(r.tourConfig);
|
|
5276
5276
|
}
|
|
5277
|
-
let
|
|
5277
|
+
let ce = E(() => {
|
|
5278
5278
|
let e = l.value;
|
|
5279
5279
|
if (!e) return {};
|
|
5280
5280
|
let t = V(R.value);
|
|
@@ -5292,7 +5292,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5292
5292
|
top: `${e.bottom + 12}px`,
|
|
5293
5293
|
left: `${Math.min(e.left, typeof window < "u" ? window.innerWidth - 320 : e.left)}px`
|
|
5294
5294
|
};
|
|
5295
|
-
}),
|
|
5295
|
+
}), le = E(() => {
|
|
5296
5296
|
let e = l.value;
|
|
5297
5297
|
if (!e) return {};
|
|
5298
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;
|
|
@@ -5309,21 +5309,21 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5309
5309
|
M(), T.value = !1;
|
|
5310
5310
|
}), t({
|
|
5311
5311
|
start: re,
|
|
5312
|
-
dismiss: () =>
|
|
5313
|
-
resetDismissed:
|
|
5314
|
-
isDismissed:
|
|
5312
|
+
dismiss: () => ie(!0),
|
|
5313
|
+
resetDismissed: se,
|
|
5314
|
+
isDismissed: oe
|
|
5315
5315
|
}), (t, n) => (f(), C(O, { to: "body" }, [F(D, { name: "tpl-editor-tour" }, {
|
|
5316
5316
|
default: m(() => [o.value ? (f(), P("div", {
|
|
5317
5317
|
key: 0,
|
|
5318
5318
|
class: N(["tpl-editor-tour-overlay tpl:fixed tpl:inset-0 tpl:z-[10001]", { "tpl-editor-tour-overlay--dark": e.darkMode }]),
|
|
5319
5319
|
"data-testid": "editor-tour-overlay",
|
|
5320
|
-
onClick: n[2] ||= y((e) =>
|
|
5320
|
+
onClick: n[2] ||= y((e) => ie(!0), ["self"])
|
|
5321
5321
|
}, [l.value ? (f(), P("div", {
|
|
5322
5322
|
key: 0,
|
|
5323
5323
|
"data-testid": "editor-tour-spotlight",
|
|
5324
5324
|
class: "tpl-editor-tour-spotlight tpl:absolute tpl:top-0 tpl:left-0",
|
|
5325
|
-
style: b(
|
|
5326
|
-
onClick: n[0] ||= (e) =>
|
|
5325
|
+
style: b(le.value),
|
|
5326
|
+
onClick: n[0] ||= (e) => ie(!0)
|
|
5327
5327
|
}, null, 4)) : h("", !0), l.value && R.value ? (f(), P("div", {
|
|
5328
5328
|
key: 1,
|
|
5329
5329
|
role: "dialog",
|
|
@@ -5331,7 +5331,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5331
5331
|
"aria-label": z.value,
|
|
5332
5332
|
"data-testid": "editor-tour-tooltip",
|
|
5333
5333
|
class: "tpl-editor-tour-tooltip tpl-editor-tour-tooltip-shell tpl:fixed tpl:z-[10002]",
|
|
5334
|
-
style: b(
|
|
5334
|
+
style: b(ce.value)
|
|
5335
5335
|
}, [w("div", Lp, [
|
|
5336
5336
|
w("div", Rp, S(v(a)(v(i).tour.stepCounter, {
|
|
5337
5337
|
current: String(c.value + 1),
|
|
@@ -5343,13 +5343,13 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5343
5343
|
type: "button",
|
|
5344
5344
|
"data-testid": "editor-tour-skip",
|
|
5345
5345
|
class: "tpl-editor-tour-skip",
|
|
5346
|
-
onClick: n[1] ||= (e) =>
|
|
5346
|
+
onClick: n[1] ||= (e) => ie(!0)
|
|
5347
5347
|
}, S(v(i).tour.skip), 1), w("button", {
|
|
5348
5348
|
type: "button",
|
|
5349
5349
|
"data-testid": "editor-tour-next",
|
|
5350
5350
|
class: "tpl-editor-tour-next",
|
|
5351
|
-
onClick:
|
|
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(
|
|
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), {
|
|
5353
5353
|
key: 0,
|
|
5354
5354
|
size: 12,
|
|
5355
5355
|
"aria-hidden": "true"
|
|
@@ -5371,7 +5371,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5371
5371
|
props: { conditions: {} },
|
|
5372
5372
|
emits: ["patch"],
|
|
5373
5373
|
setup(e, { emit: t }) {
|
|
5374
|
-
let n = e, r = t, { t: i } =
|
|
5374
|
+
let n = e, r = t, { t: i } = U(), a = j(n.conditions.pageViews > 0);
|
|
5375
5375
|
s(() => n.conditions.pageViews, (e) => {
|
|
5376
5376
|
e > 0 && (a.value = !0);
|
|
5377
5377
|
});
|
|
@@ -5434,7 +5434,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5434
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)]",
|
|
5435
5435
|
"aria-label": v(i).popupDisplayRules.triggerRemoveRuleAria,
|
|
5436
5436
|
onClick: d
|
|
5437
|
-
}, [F(v(
|
|
5437
|
+
}, [F(v(Ze), {
|
|
5438
5438
|
size: 16,
|
|
5439
5439
|
"stroke-width": 2
|
|
5440
5440
|
})], 8, em)
|
|
@@ -5471,9 +5471,9 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5471
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({
|
|
5472
5472
|
__name: "PopupDisplayRulesView",
|
|
5473
5473
|
setup(e) {
|
|
5474
|
-
let t = a(
|
|
5474
|
+
let t = a(yt);
|
|
5475
5475
|
if (!t) throw Error("PopupDisplayRulesView requires EDITOR_KEY");
|
|
5476
|
-
let { t: n } =
|
|
5476
|
+
let { t: n } = U(), r = j("trigger"), i = E(() => [{
|
|
5477
5477
|
id: "trigger",
|
|
5478
5478
|
label: n.popupDisplayRules.tabTrigger
|
|
5479
5479
|
}, {
|
|
@@ -5541,7 +5541,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5541
5541
|
}
|
|
5542
5542
|
]), d = j(!1), p = j(!1);
|
|
5543
5543
|
function m(e) {
|
|
5544
|
-
return
|
|
5544
|
+
return le(o.value.triggers[e].triggerConditions);
|
|
5545
5545
|
}
|
|
5546
5546
|
function _(e, t) {
|
|
5547
5547
|
l(e, { triggerConditions: {
|
|
@@ -5551,7 +5551,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5551
5551
|
}
|
|
5552
5552
|
function b(e, t) {
|
|
5553
5553
|
t ? l(e, { triggerConditions: {
|
|
5554
|
-
...
|
|
5554
|
+
...ue(),
|
|
5555
5555
|
enabled: !0,
|
|
5556
5556
|
delaySeconds: 5,
|
|
5557
5557
|
pageViews: 3,
|
|
@@ -5571,7 +5571,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5571
5571
|
} : t.frequency.stopShowing;
|
|
5572
5572
|
s({
|
|
5573
5573
|
...t,
|
|
5574
|
-
frequency:
|
|
5574
|
+
frequency: Re({
|
|
5575
5575
|
showAgain: n,
|
|
5576
5576
|
stopShowing: r
|
|
5577
5577
|
})
|
|
@@ -5602,7 +5602,7 @@ var Ip = ["aria-label"], Lp = { class: "tpl-editor-tour-tooltip-body" }, Rp = {
|
|
|
5602
5602
|
let t = e.target.value;
|
|
5603
5603
|
(t === "never_display_again" || t === "respect_show_again") && L(t);
|
|
5604
5604
|
}
|
|
5605
|
-
let z = E(() => JSON.stringify({ triggers:
|
|
5605
|
+
let z = E(() => JSON.stringify({ triggers: ve(o.value.triggers) }, null, 2));
|
|
5606
5606
|
async function B() {
|
|
5607
5607
|
try {
|
|
5608
5608
|
await navigator.clipboard.writeText(z.value), p.value = !0, window.setTimeout(() => {
|
|
@@ -5937,7 +5937,7 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
5937
5937
|
},
|
|
5938
5938
|
emits: ["update:modelValue"],
|
|
5939
5939
|
setup(e, { emit: t }) {
|
|
5940
|
-
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(() => ({
|
|
5941
5941
|
top: `${m.value + 4}px`,
|
|
5942
5942
|
left: `${g.value}px`,
|
|
5943
5943
|
width: `${Math.max(_.value, 268)}px`
|
|
@@ -6017,24 +6017,24 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6017
6017
|
}
|
|
6018
6018
|
s(o, async (e) => {
|
|
6019
6019
|
e && (V(), await n(), await n(), y(), Uh(l.value, u.value));
|
|
6020
|
-
}),
|
|
6020
|
+
}), ot(u, () => {
|
|
6021
6021
|
o.value = !1;
|
|
6022
|
-
}, { ignore: [l] }),
|
|
6022
|
+
}, { ignore: [l] }), xt(window, "keydown", (e) => {
|
|
6023
6023
|
e.key === "Escape" && (o.value = !1);
|
|
6024
|
-
}),
|
|
6025
|
-
function
|
|
6024
|
+
}), xt(window, "scroll", () => o.value && y(), { capture: !0 }), xt(window, "resize", () => o.value && y());
|
|
6025
|
+
function ne() {
|
|
6026
6026
|
p.value === 0 ? (p.value = 11, d.value--) : p.value--;
|
|
6027
6027
|
}
|
|
6028
|
-
function
|
|
6028
|
+
function H() {
|
|
6029
6029
|
p.value === 11 ? (p.value = 0, d.value++) : p.value++;
|
|
6030
6030
|
}
|
|
6031
6031
|
function re(e) {
|
|
6032
6032
|
i("update:modelValue", e), o.value = !1;
|
|
6033
6033
|
}
|
|
6034
|
-
function
|
|
6034
|
+
function ie() {
|
|
6035
6035
|
i("update:modelValue", ""), o.value = !1;
|
|
6036
6036
|
}
|
|
6037
|
-
function
|
|
6037
|
+
function ae() {
|
|
6038
6038
|
re(M());
|
|
6039
6039
|
}
|
|
6040
6040
|
return (t, n) => (f(), P(x, null, [w("div", Wh, [w("button", {
|
|
@@ -6056,7 +6056,7 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6056
6056
|
type: "button",
|
|
6057
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)]",
|
|
6058
6058
|
"aria-label": e.clearLabel,
|
|
6059
|
-
onClick:
|
|
6059
|
+
onClick: ie
|
|
6060
6060
|
}, " × ", 8, Kh)) : h("", !0)]), (f(), C(O, { to: "body" }, [o.value ? (f(), P("div", {
|
|
6061
6061
|
key: 0,
|
|
6062
6062
|
ref_key: "popoverRef",
|
|
@@ -6072,7 +6072,7 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6072
6072
|
type: "button",
|
|
6073
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)]",
|
|
6074
6074
|
"aria-label": v(a).popupSchedule.calendarPrevMonth,
|
|
6075
|
-
onClick:
|
|
6075
|
+
onClick: ne
|
|
6076
6076
|
}, [F(v(ke), {
|
|
6077
6077
|
size: 18,
|
|
6078
6078
|
"stroke-width": 1.75,
|
|
@@ -6083,8 +6083,8 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6083
6083
|
type: "button",
|
|
6084
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)]",
|
|
6085
6085
|
"aria-label": v(a).popupSchedule.calendarNextMonth,
|
|
6086
|
-
onClick:
|
|
6087
|
-
}, [F(v(
|
|
6086
|
+
onClick: H
|
|
6087
|
+
}, [F(v(Ee), {
|
|
6088
6088
|
size: 18,
|
|
6089
6089
|
"stroke-width": 1.75,
|
|
6090
6090
|
"aria-hidden": "true"
|
|
@@ -6103,12 +6103,12 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6103
6103
|
w("div", tg, [w("button", {
|
|
6104
6104
|
type: "button",
|
|
6105
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)]",
|
|
6106
|
-
onClick:
|
|
6106
|
+
onClick: ae
|
|
6107
6107
|
}, S(v(a).popupSchedule.calendarToday), 1), e.modelValue ? (f(), P("button", {
|
|
6108
6108
|
key: 0,
|
|
6109
6109
|
type: "button",
|
|
6110
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)]",
|
|
6111
|
-
onClick:
|
|
6111
|
+
onClick: ie
|
|
6112
6112
|
}, S(v(a).popupSchedule.calendarClear), 1)) : h("", !0)])
|
|
6113
6113
|
], 12, qh)) : h("", !0)]))], 64));
|
|
6114
6114
|
}
|
|
@@ -6125,9 +6125,9 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6125
6125
|
__name: "PopupScheduleView",
|
|
6126
6126
|
props: { layout: { default: "standalone" } },
|
|
6127
6127
|
setup(e) {
|
|
6128
|
-
let t = e, n = a(
|
|
6128
|
+
let t = e, n = a(yt);
|
|
6129
6129
|
if (!n) throw Error("PopupScheduleView requires EDITOR_KEY");
|
|
6130
|
-
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));
|
|
6131
6131
|
function s(e) {
|
|
6132
6132
|
let t = o.value, r = {
|
|
6133
6133
|
...t.schedule,
|
|
@@ -6170,10 +6170,10 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6170
6170
|
return e.includes("23:59") || e.push("23:59"), e;
|
|
6171
6171
|
}), g = E(() => {
|
|
6172
6172
|
let e = o.value.schedule.timeZone;
|
|
6173
|
-
return
|
|
6173
|
+
return Dt.some((t) => t.id === e) ? [...Dt] : [{
|
|
6174
6174
|
id: e,
|
|
6175
6175
|
label: e
|
|
6176
|
-
}, ...
|
|
6176
|
+
}, ...Dt];
|
|
6177
6177
|
}), _ = E(() => [
|
|
6178
6178
|
"everyday",
|
|
6179
6179
|
"monday",
|
|
@@ -6264,7 +6264,7 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6264
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)]",
|
|
6265
6265
|
"aria-label": v(r).popupSchedule.removeSlot,
|
|
6266
6266
|
onClick: (t) => d(e.id)
|
|
6267
|
-
}, [F(v(
|
|
6267
|
+
}, [F(v(et), {
|
|
6268
6268
|
size: 16,
|
|
6269
6269
|
"stroke-width": 1.75,
|
|
6270
6270
|
"aria-hidden": "true"
|
|
@@ -6306,4 +6306,4 @@ var Wh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6306
6306
|
//#endregion
|
|
6307
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 };
|
|
6308
6308
|
|
|
6309
|
-
//# sourceMappingURL=styles-
|
|
6309
|
+
//# sourceMappingURL=styles-CPUuKOlD.js.map
|