@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,17 +1,17 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-BZGGJVDF.js";
|
|
2
2
|
import { At as t, C as n, D as r, F as i, Ft as a, I as o, M as s, N as c, Q as l, R as u, S as d, U as f, V as p, W as m, _ as h, b as g, c as _, d as v, et as y, f as b, g as x, h as S, j as C, jt as w, k as T, l as E, m as D, nt as O, p as k, st as A, t as j, u as M, v as N, x as P, z as F } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
3
|
-
import { A as I, B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { a as
|
|
6
|
-
import {
|
|
7
|
-
import { t as U } from "./useI18n-
|
|
3
|
+
import { A as I, B as L, I as ee, L as R, N as z, P as B, R as te, W as V, _ as ne, c as re, d as ie, f as H, i as ae, k as oe, m as se, n as ce, r as le, s as ue, z as de } from "./dist-Bcqepqv3.js";
|
|
4
|
+
import { B as fe, F as pe, I as me, M as he, N as ge, O as _e, P as ve, R as ye, S as be, _ as xe, a as Se, b as Ce, c as we, d as Te, f as Ee, g as De, h as Oe, i as ke, l as Ae, m as je, n as Me, o as Ne, r as Pe, s as Fe, u as Ie, v as Le, x as Re, y as ze } from "./useEditorCore-DB4A_cje.js";
|
|
5
|
+
import { a as Be, l as Ve, n as He, o as Ue, r as We, s as Ge, t as Ke, u as qe } from "./dist-Djgi0A6k.js";
|
|
6
|
+
import { C as Je, S as Ye, T as Xe, _ as Ze, c as Qe, d as $e, f as et, g as tt, h as nt, j as rt, o as it, p as at, r as ot, s as st, t as ct, v as lt } from "./keys-CqdzeWhT.js";
|
|
7
|
+
import { t as U } from "./useI18n-DLZJ6wNn.js";
|
|
8
8
|
import { t as W } from "./createLucideIcon-ClREiSx3.js";
|
|
9
9
|
import { t as ut } from "./accessibility-BU09xZrQ.js";
|
|
10
10
|
import { n as dt, t as ft } from "./pencil-Bpimrzzw.js";
|
|
11
11
|
import { t as pt } from "./chevron-down-C5oBUhT8.js";
|
|
12
12
|
import { n as mt, t as ht } from "./chevron-right-BqCptpdp.js";
|
|
13
13
|
import { t as gt } from "./circle-alert-ZQQc98HC.js";
|
|
14
|
-
import { n as _t, r as vt, t as yt } from "./blockTypeIcons-
|
|
14
|
+
import { n as _t, r as vt, t as yt } from "./blockTypeIcons-CeaSm2Xd.js";
|
|
15
15
|
import { n as bt, t as xt } from "./refresh-cw-DwDqGUM0.js";
|
|
16
16
|
import { t as St } from "./image-up-DT7gcJLN.js";
|
|
17
17
|
import { t as Ct } from "./info-BSPGcsSM.js";
|
|
@@ -23,12 +23,12 @@ import { t as jt } from "./trash-2-CtK2apEH.js";
|
|
|
23
23
|
import { t as Mt } from "./triangle-alert-KpDVNbpn.js";
|
|
24
24
|
import { t as Nt } from "./x-BkaOMosX.js";
|
|
25
25
|
import { t as G } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
|
|
26
|
-
import { t as Pt } from "./useCloudI18n-
|
|
27
|
-
import { t as Ft } from "./useMergeTag-
|
|
28
|
-
import { t as It } from "./CountdownBlock-
|
|
26
|
+
import { t as Pt } from "./useCloudI18n-CDhjmAgB.js";
|
|
27
|
+
import { t as Ft } from "./useMergeTag-D-kqWENN.js";
|
|
28
|
+
import { t as It } from "./CountdownBlock-CrpaDWze.js";
|
|
29
29
|
import { t as Lt } from "./readableTextColor-C_9OpzBw.js";
|
|
30
30
|
import { _ as Rt, c as zt, f as K, g as Bt, h as q, l as Vt, m as J, p as Y, t as Ht } from "./styleConstants-34eUKPOZ.js";
|
|
31
|
-
import { a as X, i as Ut, n as Wt, r as Z, t as Gt } from "./SlidingPillSelect-
|
|
31
|
+
import { a as X, i as Ut, n as Wt, r as Z, t as Gt } from "./SlidingPillSelect-Dt34f5VF.js";
|
|
32
32
|
var Kt = W("arrow-down-from-line", [
|
|
33
33
|
["path", {
|
|
34
34
|
d: "M19 3H5",
|
|
@@ -566,11 +566,11 @@ function Cn(e) {
|
|
|
566
566
|
}
|
|
567
567
|
//#endregion
|
|
568
568
|
//#region src/utils/resolvePopupEmbed.ts
|
|
569
|
-
var wn = /* @__PURE__ */ e(
|
|
569
|
+
var wn = /* @__PURE__ */ e(Pe(), 1);
|
|
570
570
|
function Tn(e) {
|
|
571
|
-
let t =
|
|
571
|
+
let t = H(), n = e.popup;
|
|
572
572
|
return n ? {
|
|
573
|
-
triggers:
|
|
573
|
+
triggers: te(t.triggers, n.triggers),
|
|
574
574
|
design: {
|
|
575
575
|
...t.design,
|
|
576
576
|
...n.design ?? {},
|
|
@@ -584,7 +584,7 @@ function Tn(e) {
|
|
|
584
584
|
...n.schedule ?? {},
|
|
585
585
|
slots: n.schedule?.slots === void 0 ? t.schedule.slots : n.schedule.slots
|
|
586
586
|
},
|
|
587
|
-
frequency:
|
|
587
|
+
frequency: R(n.frequency)
|
|
588
588
|
} : t;
|
|
589
589
|
}
|
|
590
590
|
//#endregion
|
|
@@ -623,29 +623,29 @@ var En = {
|
|
|
623
623
|
],
|
|
624
624
|
setup(e, { emit: n }) {
|
|
625
625
|
let i = {
|
|
626
|
-
section:
|
|
627
|
-
title:
|
|
628
|
-
paragraph:
|
|
629
|
-
image:
|
|
630
|
-
button:
|
|
631
|
-
input:
|
|
632
|
-
divider:
|
|
633
|
-
spacer:
|
|
634
|
-
html:
|
|
635
|
-
social:
|
|
636
|
-
menu:
|
|
637
|
-
table:
|
|
638
|
-
video:
|
|
626
|
+
section: Me,
|
|
627
|
+
title: Se,
|
|
628
|
+
paragraph: Oe,
|
|
629
|
+
image: Le,
|
|
630
|
+
button: me,
|
|
631
|
+
input: xe,
|
|
632
|
+
divider: Ce,
|
|
633
|
+
spacer: Fe,
|
|
634
|
+
html: ze,
|
|
635
|
+
social: we,
|
|
636
|
+
menu: De,
|
|
637
|
+
table: Ne,
|
|
638
|
+
video: ke,
|
|
639
639
|
countdown: It,
|
|
640
|
-
form:
|
|
641
|
-
discountCoupon:
|
|
642
|
-
custom:
|
|
643
|
-
}, o = e, s = n, { t: l } = U(), { t: d } = Pt(), _ =
|
|
640
|
+
form: Te,
|
|
641
|
+
discountCoupon: Re,
|
|
642
|
+
custom: be
|
|
643
|
+
}, o = e, s = n, { t: l } = U(), { t: d } = Pt(), _ = rt(nt, "Canvas"), v = r($e, null), b = r(st, null), O = r(Qe, {}), k = D(() => (O.plan?.hasFeature("ai_generation") ?? !1) && (O.ai?.isFeatureEnabled("chat") ?? !1)), j = D(() => (O.plan?.hasFeature("ai_generation") ?? !1) && (O.ai?.isFeatureEnabled("designToTemplate") ?? !1)), M = D({
|
|
644
644
|
get: () => o.content.blocks,
|
|
645
645
|
set: (e) => {
|
|
646
646
|
let t = o.content, n = t.activeCanvasPageId;
|
|
647
647
|
if (t.canvasPages?.length && n) {
|
|
648
|
-
_.setContent(
|
|
648
|
+
_.setContent(de({
|
|
649
649
|
...t,
|
|
650
650
|
canvasPages: t.canvasPages.map((t) => t.id === n ? {
|
|
651
651
|
...t,
|
|
@@ -671,62 +671,61 @@ var En = {
|
|
|
671
671
|
case "tablet": return 768;
|
|
672
672
|
default: return o.content.settings.width;
|
|
673
673
|
}
|
|
674
|
-
}), I = D(() => (o.content.canvasPages ?? []).length > 0),
|
|
675
|
-
function
|
|
674
|
+
}), I = D(() => (o.content.canvasPages ?? []).length > 0), L = D(() => o.multiPageCanvas === !0 && I.value);
|
|
675
|
+
function ee(e) {
|
|
676
676
|
return Number.isFinite(e) ? Math.min(1, Math.max(0, e)) : 0;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function R(e, t) {
|
|
679
679
|
if (!e) return e;
|
|
680
680
|
let n = Math.min(1, Math.max(0, t === void 0 || !Number.isFinite(t) ? 1 : t));
|
|
681
|
-
if (n === 0) return "transparent";
|
|
682
681
|
if (n === 1) return e;
|
|
683
682
|
let r = e.trim(), i = null;
|
|
684
683
|
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;
|
|
685
684
|
let a = Number.parseInt(i, 16);
|
|
686
685
|
return Number.isFinite(a) ? `rgba(${a >> 16 & 255}, ${a >> 8 & 255}, ${a & 255}, ${n})` : e;
|
|
687
686
|
}
|
|
688
|
-
function
|
|
687
|
+
function z(e) {
|
|
689
688
|
if (e === void 0 || !Number.isFinite(e)) return;
|
|
690
689
|
let t = Math.min(1, Math.max(0, e));
|
|
691
690
|
return t === 0 ? "none" : `0 ${Math.round(t * 12)}px ${Math.round(t * 60)}px rgba(0, 0, 0, ${Number((t * .35).toFixed(3))})`;
|
|
692
691
|
}
|
|
693
|
-
let
|
|
694
|
-
function
|
|
692
|
+
let B = D(() => o.content.settings.popup ? Tn(o.content.settings).design : null);
|
|
693
|
+
function te(e) {
|
|
695
694
|
return e === void 0 || !Number.isFinite(e) ? Ln : Math.min(30, Math.max(0, e));
|
|
696
695
|
}
|
|
697
|
-
let
|
|
698
|
-
let e =
|
|
696
|
+
let V = D(() => {
|
|
697
|
+
let e = B.value;
|
|
699
698
|
return e?.useOverlay ? e : null;
|
|
700
|
-
}),
|
|
699
|
+
}), ne = D(() => B.value?.sizePreset ?? "large"), re = D(() => !!V.value && ne.value === "fullHeight"), ie = D(() => !!V.value && ne.value === "fullscreen"), H = D(() => re.value || ie.value), ae = y(null);
|
|
701
700
|
p(() => {
|
|
702
|
-
let e =
|
|
701
|
+
let e = B.value;
|
|
703
702
|
return e?.backgroundImage && e.backgroundImageUrl ? e.backgroundImageUrl : "";
|
|
704
703
|
}, (e) => {
|
|
705
|
-
if (
|
|
704
|
+
if (ae.value = null, !e) return;
|
|
706
705
|
let t = new Image(), n = e;
|
|
707
706
|
t.onload = () => {
|
|
708
|
-
n ===
|
|
707
|
+
n === B.value?.backgroundImageUrl && (!t.naturalWidth || !t.naturalHeight || (ae.value = t.naturalWidth / t.naturalHeight));
|
|
709
708
|
}, t.onerror = () => {
|
|
710
|
-
|
|
709
|
+
ae.value = null;
|
|
711
710
|
}, t.src = e;
|
|
712
711
|
}, { immediate: !0 });
|
|
713
|
-
let { height:
|
|
712
|
+
let { height: oe } = Ge(), se = D(() => Math.max(zn, oe.value - Rn)), ce = D(() => o.viewport === "desktop"), le = D(() => {
|
|
714
713
|
switch (o.viewport) {
|
|
715
714
|
case "mobile": return 375;
|
|
716
715
|
case "tablet": return 768;
|
|
717
716
|
default: return 0;
|
|
718
717
|
}
|
|
719
|
-
}),
|
|
718
|
+
}), ue = D(() => {
|
|
720
719
|
switch (o.viewport) {
|
|
721
720
|
case "mobile": return 600;
|
|
722
721
|
case "tablet": return 600;
|
|
723
722
|
default: return 600;
|
|
724
723
|
}
|
|
725
|
-
}),
|
|
724
|
+
}), fe = D(() => {
|
|
726
725
|
let e = o.content.settings.width;
|
|
727
|
-
return
|
|
726
|
+
return ce.value ? e : Math.min(e, le.value);
|
|
728
727
|
});
|
|
729
|
-
function
|
|
728
|
+
function pe(e) {
|
|
730
729
|
switch (e) {
|
|
731
730
|
case "topLeft":
|
|
732
731
|
case "middleLeft":
|
|
@@ -737,10 +736,10 @@ var En = {
|
|
|
737
736
|
default: return "tpl:justify-center";
|
|
738
737
|
}
|
|
739
738
|
}
|
|
740
|
-
let
|
|
741
|
-
let e =
|
|
742
|
-
if (
|
|
743
|
-
if (
|
|
739
|
+
let he = D(() => {
|
|
740
|
+
let e = V.value?.popupPosition ?? "center";
|
|
741
|
+
if (ie.value) return "tpl:items-stretch tpl:justify-center";
|
|
742
|
+
if (re.value) return `tpl:items-stretch ${pe(e)}`;
|
|
744
743
|
switch (e) {
|
|
745
744
|
case "topLeft": return "tpl:items-start tpl:justify-start";
|
|
746
745
|
case "topCenter": return "tpl:items-start tpl:justify-center";
|
|
@@ -752,10 +751,10 @@ var En = {
|
|
|
752
751
|
case "bottomRight": return "tpl:items-end tpl:justify-end";
|
|
753
752
|
default: return "tpl:items-center tpl:justify-center";
|
|
754
753
|
}
|
|
755
|
-
}),
|
|
756
|
-
let e = { width:
|
|
757
|
-
if (
|
|
758
|
-
let t =
|
|
754
|
+
}), ge = D(() => {
|
|
755
|
+
let e = { width: ce.value ? "100%" : `${le.value}px` };
|
|
756
|
+
if (H.value) {
|
|
757
|
+
let t = se.value;
|
|
759
758
|
return {
|
|
760
759
|
...e,
|
|
761
760
|
minHeight: `${t}px`,
|
|
@@ -764,17 +763,17 @@ var En = {
|
|
|
764
763
|
}
|
|
765
764
|
return {
|
|
766
765
|
...e,
|
|
767
|
-
minHeight: `${
|
|
766
|
+
minHeight: `${ue.value}px`
|
|
768
767
|
};
|
|
769
|
-
}),
|
|
770
|
-
let e = !!
|
|
771
|
-
if (a && e && !
|
|
772
|
-
let e =
|
|
773
|
-
n >
|
|
768
|
+
}), _e = D(() => {
|
|
769
|
+
let e = !!V.value, t = e ? `${fe.value}px` : L.value ? "100%" : `${F.value}px`, n = V.value, r = n?.backgroundImage && n.backgroundImageUrl ? n.backgroundImageUrl : "", i = n?.backgroundImageFit ?? "cover", a = r && i === "auto" && ae.value !== null, s = a ? "100% 100%" : i === "contain" ? "contain" : "cover", c = null, l = null;
|
|
770
|
+
if (a && e && !H.value) {
|
|
771
|
+
let e = ae.value, t = fe.value, n = t / e;
|
|
772
|
+
n > se.value ? (l = se.value, c = l * e) : (c = t, l = n);
|
|
774
773
|
}
|
|
775
|
-
let u =
|
|
774
|
+
let u = z(o.content.settings.backgroundShadow), d = {
|
|
776
775
|
width: c === null ? t : `${Math.round(c)}px`,
|
|
777
|
-
backgroundColor:
|
|
776
|
+
backgroundColor: R(o.content.settings.backgroundColor, o.content.settings.backgroundOpacity),
|
|
778
777
|
backgroundImage: r ? `url("${r}")` : void 0,
|
|
779
778
|
backgroundSize: r ? s : void 0,
|
|
780
779
|
backgroundPosition: r ? "center" : void 0,
|
|
@@ -783,19 +782,19 @@ var En = {
|
|
|
783
782
|
filter: o.darkMode ? "invert(1) hue-rotate(180deg)" : "none",
|
|
784
783
|
transition: "width 300ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 300ms ease"
|
|
785
784
|
};
|
|
786
|
-
if (l !== null && (d.height = `${Math.round(l)}px`, d.minHeight = "0"), e &&
|
|
787
|
-
else if (e &&
|
|
788
|
-
let e =
|
|
789
|
-
d.width = `${
|
|
785
|
+
if (l !== null && (d.height = `${Math.round(l)}px`, d.minHeight = "0"), e && ie.value) d.width = "100%", d.height = "100%", d.minHeight = "100%", d.maxHeight = "none", d.borderRadius = "0";
|
|
786
|
+
else if (e && re.value) {
|
|
787
|
+
let e = se.value;
|
|
788
|
+
d.width = `${fe.value}px`, d.height = `${e}px`, d.minHeight = `${e}px`, d.maxHeight = `${e}px`, d.borderRadius = "0";
|
|
790
789
|
}
|
|
791
790
|
return d;
|
|
792
|
-
}),
|
|
793
|
-
let e =
|
|
791
|
+
}), ve = D(() => V.value ? ce.value ? { width: "100%" } : { width: `${le.value}px` } : L.value ? { width: `${F.value}px` } : void 0), ye = D(() => {
|
|
792
|
+
let e = V.value;
|
|
794
793
|
return {
|
|
795
|
-
backgroundColor: e?.backgroundImage && e.backgroundImageUrl ? "transparent" :
|
|
794
|
+
backgroundColor: e?.backgroundImage && e.backgroundImageUrl ? "transparent" : R(o.content.settings.backgroundColor, o.content.settings.backgroundOpacity),
|
|
796
795
|
fontFamily: o.content.settings.fontFamily
|
|
797
796
|
};
|
|
798
|
-
}),
|
|
797
|
+
}), Ae = D(() => {
|
|
799
798
|
if (!o.content.settings.popup) return {};
|
|
800
799
|
let e = Tn(o.content.settings).design.contentPadding;
|
|
801
800
|
return {
|
|
@@ -804,27 +803,27 @@ var En = {
|
|
|
804
803
|
paddingBottom: `${e.bottom}px`,
|
|
805
804
|
paddingLeft: `${e.left}px`
|
|
806
805
|
};
|
|
807
|
-
}),
|
|
808
|
-
let e =
|
|
806
|
+
}), Pe = D(() => {
|
|
807
|
+
let e = V.value;
|
|
809
808
|
return !!(e?.overlayImage && e.overlayImageUrl);
|
|
810
|
-
}),
|
|
811
|
-
let e =
|
|
809
|
+
}), Ie = D(() => {
|
|
810
|
+
let e = V.value;
|
|
812
811
|
if (!e) return {};
|
|
813
|
-
let t =
|
|
812
|
+
let t = te(e.overlayBlur), n = t > 0 ? `blur(${t}px)` : "none";
|
|
814
813
|
return {
|
|
815
814
|
backdropFilter: n,
|
|
816
815
|
WebkitBackdropFilter: n,
|
|
817
|
-
backgroundColor:
|
|
816
|
+
backgroundColor: Pe.value ? "transparent" : "rgba(0, 0, 0, 0.1)"
|
|
818
817
|
};
|
|
819
|
-
}),
|
|
820
|
-
let e =
|
|
818
|
+
}), Be = D(() => V.value?.overlayImageUrl ?? ""), Ve = D(() => ee(V.value?.overlayImageOpacity ?? 1)), He = D(() => {
|
|
819
|
+
let e = te(V.value?.overlayBlur), t = e > 0 ? `blur(${e}px)` : "none";
|
|
821
820
|
return {
|
|
822
|
-
opacity:
|
|
821
|
+
opacity: Ve.value,
|
|
823
822
|
filter: t,
|
|
824
823
|
WebkitFilter: t
|
|
825
824
|
};
|
|
826
825
|
});
|
|
827
|
-
function
|
|
826
|
+
function Ue(e, t) {
|
|
828
827
|
if (e === "none") return "";
|
|
829
828
|
if (e === "fadeIn") return "tpl-popup-fadeIn";
|
|
830
829
|
let n = e === "smooth";
|
|
@@ -840,69 +839,69 @@ var En = {
|
|
|
840
839
|
default: return n ? "tpl-popup-smoothTop" : "tpl-popup-topToBottom";
|
|
841
840
|
}
|
|
842
841
|
}
|
|
843
|
-
let
|
|
844
|
-
let e =
|
|
845
|
-
return e ?
|
|
846
|
-
}),
|
|
842
|
+
let We = D(() => {
|
|
843
|
+
let e = V.value;
|
|
844
|
+
return e ? Ue(e.displayAnimation, e.popupPosition) : "";
|
|
845
|
+
}), Ke = y(!0);
|
|
847
846
|
p(() => {
|
|
848
|
-
let e =
|
|
847
|
+
let e = V.value;
|
|
849
848
|
return e ? `${e.displayAnimation}|${e.popupPosition}` : "";
|
|
850
849
|
}, async () => {
|
|
851
|
-
|
|
850
|
+
Ke.value = !1, await T(), Ke.value = !0;
|
|
852
851
|
});
|
|
853
|
-
let
|
|
854
|
-
if (!
|
|
855
|
-
let e =
|
|
856
|
-
return !e || !
|
|
852
|
+
let qe = D(() => {
|
|
853
|
+
if (!V.value) return {};
|
|
854
|
+
let e = We.value;
|
|
855
|
+
return !e || !Ke.value ? { animation: "none" } : { animation: `${e} ${Bn} ${Vn} ${Hn} both` };
|
|
857
856
|
});
|
|
858
|
-
function
|
|
857
|
+
function Je(e) {
|
|
859
858
|
o.previewMode || e.target === e.currentTarget && s("select-block", null);
|
|
860
859
|
}
|
|
861
|
-
function
|
|
862
|
-
return
|
|
860
|
+
function Ye(e) {
|
|
861
|
+
return je(e, b, i);
|
|
863
862
|
}
|
|
864
|
-
function
|
|
863
|
+
function Xe(e) {
|
|
865
864
|
return o.lockedBlocks?.get(e) ?? null;
|
|
866
865
|
}
|
|
867
|
-
function
|
|
866
|
+
function Ze(e, t) {
|
|
868
867
|
e.type === "custom" && _.updateBlock(e.id, {
|
|
869
868
|
fieldValues: t.fieldValues,
|
|
870
869
|
dataSourceFetched: t.dataSourceFetched
|
|
871
870
|
});
|
|
872
871
|
}
|
|
873
872
|
return (n, r) => (c(), N("div", {
|
|
874
|
-
class: t(["tpl-canvas-root tpl:box-border tpl:max-w-full",
|
|
875
|
-
style: w(
|
|
873
|
+
class: t(["tpl-canvas-root tpl:box-border tpl:max-w-full", V.value ? "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col" : ""]),
|
|
874
|
+
style: w(ve.value)
|
|
876
875
|
}, [S("div", {
|
|
877
|
-
class: t(
|
|
878
|
-
style: w(
|
|
879
|
-
}, [
|
|
876
|
+
class: t(V.value ? "tpl-popup-frame tpl:relative tpl:flex tpl:flex-col tpl:max-w-full tpl:overflow-hidden" : "tpl:contents"),
|
|
877
|
+
style: w(V.value ? ge.value : void 0)
|
|
878
|
+
}, [V.value ? (c(), N("div", En, [S("div", {
|
|
880
879
|
class: "tpl:absolute tpl:inset-0",
|
|
881
|
-
style: w(
|
|
882
|
-
}, null, 4),
|
|
880
|
+
style: w(Ie.value)
|
|
881
|
+
}, null, 4), Pe.value ? (c(), N("img", {
|
|
883
882
|
key: 0,
|
|
884
|
-
src:
|
|
883
|
+
src: Be.value,
|
|
885
884
|
alt: "",
|
|
886
885
|
class: "tpl:absolute tpl:inset-0 tpl:h-full tpl:w-full tpl:object-cover",
|
|
887
|
-
style: w(
|
|
888
|
-
}, null, 12, Dn)) : h("", !0)])) : h("", !0), S("div", { class: t(
|
|
886
|
+
style: w(He.value)
|
|
887
|
+
}, null, 12, Dn)) : h("", !0)])) : h("", !0), S("div", { class: t(V.value ? `tpl:relative tpl:z-[1] tpl:flex tpl:h-full tpl:min-h-0 tpl:flex-1 tpl:w-full ${he.value}` : "tpl:contents") }, [S("div", {
|
|
889
888
|
"data-testid": "canvas-wrapper",
|
|
890
889
|
role: "region",
|
|
891
890
|
"aria-label": A(l).landmarks.canvas,
|
|
892
|
-
class: t(["tpl-canvas-wrapper tpl:rounded-lg",
|
|
893
|
-
style: w([
|
|
891
|
+
class: t(["tpl-canvas-wrapper tpl:rounded-lg", H.value ? "tpl:flex tpl:h-full tpl:min-h-0 tpl:flex-col !tpl:rounded-none" : "tpl:shrink-0"]),
|
|
892
|
+
style: w([_e.value, qe.value])
|
|
894
893
|
}, [S("div", {
|
|
895
894
|
class: t(["tpl-canvas tpl:rounded-lg", {
|
|
896
895
|
"tpl-canvas--dark-mode": e.darkMode,
|
|
897
896
|
"tpl-preview-mode": e.previewMode,
|
|
898
|
-
"tpl:min-h-0 tpl:flex-1 tpl:overflow-y-auto":
|
|
899
|
-
"!tpl:rounded-none":
|
|
897
|
+
"tpl:min-h-0 tpl:flex-1 tpl:overflow-y-auto": H.value,
|
|
898
|
+
"!tpl:rounded-none": H.value
|
|
900
899
|
}]),
|
|
901
900
|
style: w({
|
|
902
|
-
...
|
|
903
|
-
...
|
|
901
|
+
...ye.value,
|
|
902
|
+
...Ae.value
|
|
904
903
|
}),
|
|
905
|
-
onClick:
|
|
904
|
+
onClick: Je
|
|
906
905
|
}, [P(A(wn.default), {
|
|
907
906
|
modelValue: M.value,
|
|
908
907
|
"onUpdate:modelValue": r[2] ||= (e) => M.value = e,
|
|
@@ -917,30 +916,30 @@ var En = {
|
|
|
917
916
|
disabled: e.previewMode,
|
|
918
917
|
class: "tpl-canvas-blocks"
|
|
919
918
|
}, {
|
|
920
|
-
item: f(({ element: t }) => [m(S("div", null, [S("div", kn, [
|
|
919
|
+
item: f(({ element: t }) => [m(S("div", null, [S("div", kn, [Xe(t.id) ? (c(), N("div", {
|
|
921
920
|
key: 0,
|
|
922
921
|
class: "tpl-collab-lock tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[4] tpl:rounded-sm",
|
|
923
922
|
style: w({
|
|
924
|
-
outline: `2px solid ${
|
|
923
|
+
outline: `2px solid ${Xe(t.id).color}`,
|
|
925
924
|
outlineOffset: "-1px"
|
|
926
925
|
})
|
|
927
926
|
}, [S("span", {
|
|
928
927
|
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",
|
|
929
928
|
style: w({
|
|
930
|
-
backgroundColor:
|
|
931
|
-
color: A(Lt)(
|
|
929
|
+
backgroundColor: Xe(t.id).color,
|
|
930
|
+
color: A(Lt)(Xe(t.id).color)
|
|
932
931
|
})
|
|
933
|
-
}, [S("span", An, a(
|
|
932
|
+
}, [S("span", An, a(Xe(t.id).name.charAt(0)), 1), g(" " + a(Xe(t.id).name), 1)], 4)], 4)) : h("", !0), P(Ee, {
|
|
934
933
|
block: t,
|
|
935
|
-
"is-selected": !e.previewMode && e.selectedBlockId === t.id && !
|
|
934
|
+
"is-selected": !e.previewMode && e.selectedBlockId === t.id && !Xe(t.id),
|
|
936
935
|
viewport: e.viewport,
|
|
937
936
|
"preview-mode": e.previewMode,
|
|
938
|
-
onSelect: (n) => e.previewMode ||
|
|
937
|
+
onSelect: (n) => e.previewMode || Xe(t.id) ? void 0 : s("select-block", t.id)
|
|
939
938
|
}, {
|
|
940
|
-
default: f(() => [(c(), x(u(
|
|
939
|
+
default: f(() => [(c(), x(u(Ye(t)), {
|
|
941
940
|
block: t,
|
|
942
941
|
viewport: e.viewport,
|
|
943
|
-
onFetchData: (e) =>
|
|
942
|
+
onFetchData: (e) => Ze(t, e),
|
|
944
943
|
onUpdate: (e) => A(_).updateBlock(t.id, e)
|
|
945
944
|
}, null, 40, [
|
|
946
945
|
"block",
|
|
@@ -989,7 +988,7 @@ var En = {
|
|
|
989
988
|
_: 1
|
|
990
989
|
}, 8, ["modelValue", "disabled"])], 6)], 14, On)], 2)], 6)], 6));
|
|
991
990
|
}
|
|
992
|
-
}), [["__scopeId", "data-v-
|
|
991
|
+
}), [["__scopeId", "data-v-483d6fc9"]]), Wn = ["aria-label"], Gn = { class: "tpl:relative tpl:inline-flex tpl:items-stretch" }, Kn = [
|
|
993
992
|
"aria-selected",
|
|
994
993
|
"tabindex",
|
|
995
994
|
"onClick"
|
|
@@ -1014,7 +1013,7 @@ var En = {
|
|
|
1014
1013
|
multiPageCanvas: { type: Boolean }
|
|
1015
1014
|
},
|
|
1016
1015
|
setup(e) {
|
|
1017
|
-
let n = e, { t: r } = U(), o =
|
|
1016
|
+
let n = e, { t: r } = U(), o = rt(nt, "CanvasPagesNav"), s = D(() => o.content.value.canvasPages ?? []), l = D(() => o.content.value.activeCanvasPageId ?? null), u = y(null), d = y(null), f = y(null), p = y(null);
|
|
1018
1017
|
function m(e, t) {
|
|
1019
1018
|
let n = t.currentTarget;
|
|
1020
1019
|
if (!n) return;
|
|
@@ -1041,7 +1040,7 @@ var En = {
|
|
|
1041
1040
|
for (let n = 1; n < e.length; n += 1) T(e[n - 1].blocks) || t.add(e[n].id);
|
|
1042
1041
|
return t;
|
|
1043
1042
|
});
|
|
1044
|
-
|
|
1043
|
+
Ke(u, () => {
|
|
1045
1044
|
d.value = null;
|
|
1046
1045
|
}), C(() => {
|
|
1047
1046
|
n.multiPageCanvas && o.ensureCanvasPages();
|
|
@@ -1060,7 +1059,7 @@ var En = {
|
|
|
1060
1059
|
let n = window.prompt(r.canvas.pages.renamePrompt, t);
|
|
1061
1060
|
n !== null && (o.renameCanvasPage(e, n), d.value = null);
|
|
1062
1061
|
}
|
|
1063
|
-
function
|
|
1062
|
+
function L(e) {
|
|
1064
1063
|
s.value.length <= 1 || (o.removeCanvasPage(e), d.value = null);
|
|
1065
1064
|
}
|
|
1066
1065
|
return (n, o) => (c(), N(b, null, [O.value ? (c(), N("nav", {
|
|
@@ -1121,7 +1120,7 @@ var En = {
|
|
|
1121
1120
|
type: "button",
|
|
1122
1121
|
role: "menuitem",
|
|
1123
1122
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:border-none tpl:bg-transparent tpl:px-3 tpl:py-2 tpl:text-left tpl:text-sm tpl:text-[var(--tpl-danger)] tpl:outline-none hover:tpl:bg-[var(--tpl-bg-elevated)]",
|
|
1124
|
-
onClick: (e) =>
|
|
1123
|
+
onClick: (e) => L(n.id)
|
|
1125
1124
|
}, a(A(r).canvas.pages.delete), 9, Zn)) : h("", !0)])) : h("", !0)])], 64))), 128)), e.previewMode ? h("", !0) : (c(), N("button", {
|
|
1126
1125
|
key: 0,
|
|
1127
1126
|
type: "button",
|
|
@@ -1171,7 +1170,7 @@ var En = {
|
|
|
1171
1170
|
props: { imageUrl: {} },
|
|
1172
1171
|
emits: ["set-url"],
|
|
1173
1172
|
setup(e, { emit: n }) {
|
|
1174
|
-
let i = e, o = n, { t: s } = U(), l = r(
|
|
1173
|
+
let i = e, o = n, { t: s } = U(), l = r(Je, null), u = D(() => l !== null), d = y(null), f = y(!1);
|
|
1175
1174
|
function p(e) {
|
|
1176
1175
|
let t = e?.[0];
|
|
1177
1176
|
if (!t || !t.type.startsWith("image/")) return;
|
|
@@ -1269,7 +1268,7 @@ var En = {
|
|
|
1269
1268
|
onDrop: v(h, ["prevent"]),
|
|
1270
1269
|
onClick: _
|
|
1271
1270
|
}, [
|
|
1272
|
-
P(A(
|
|
1271
|
+
P(A(he), {
|
|
1273
1272
|
size: 28,
|
|
1274
1273
|
"stroke-width": 1.5,
|
|
1275
1274
|
class: "tpl:text-[var(--tpl-text-muted)]"
|
|
@@ -1351,7 +1350,7 @@ var En = {
|
|
|
1351
1350
|
...t,
|
|
1352
1351
|
design: n
|
|
1353
1352
|
} };
|
|
1354
|
-
e.sizePreset !== void 0 && (r.width =
|
|
1353
|
+
e.sizePreset !== void 0 && (r.width = le[e.sizePreset]), o.updateSettings(r);
|
|
1355
1354
|
}
|
|
1356
1355
|
function g(e, t) {
|
|
1357
1356
|
m({ [e]: t });
|
|
@@ -1453,13 +1452,13 @@ var En = {
|
|
|
1453
1452
|
label: s.popupDesign.animationNone
|
|
1454
1453
|
}
|
|
1455
1454
|
]);
|
|
1456
|
-
function
|
|
1455
|
+
function L(e) {
|
|
1457
1456
|
m({ displayAnimation: e.target.value });
|
|
1458
1457
|
}
|
|
1459
|
-
function
|
|
1458
|
+
function ee(e) {
|
|
1460
1459
|
m({ closeButtonPosition: e.target.value });
|
|
1461
1460
|
}
|
|
1462
|
-
let
|
|
1461
|
+
let R = D(() => [
|
|
1463
1462
|
"small",
|
|
1464
1463
|
"medium",
|
|
1465
1464
|
"large",
|
|
@@ -1477,7 +1476,7 @@ var En = {
|
|
|
1477
1476
|
onClick: (t) => d.value = e.id
|
|
1478
1477
|
}, a(e.label), 11, _r))), 128))]), d.value === "style" ? (c(), N(b, { key: 0 }, [
|
|
1479
1478
|
S("p", vr, a(A(s).popupDesign.standardSize), 1),
|
|
1480
|
-
S("div", { class: t(u.value) }, [(c(!0), N(b, null, i(
|
|
1479
|
+
S("div", { class: t(u.value) }, [(c(!0), N(b, null, i(R.value, (e) => (c(), N("button", {
|
|
1481
1480
|
key: e.id,
|
|
1482
1481
|
type: "button",
|
|
1483
1482
|
class: t(["tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-3 tpl:text-center tpl:transition-shadow hover:tpl:border-[var(--tpl-primary)]", p.value.design.sizePreset === e.id ? "tpl:ring-2 tpl:ring-[var(--tpl-text)] tpl:ring-offset-2 tpl:ring-offset-[var(--tpl-bg)]" : ""]),
|
|
@@ -1576,7 +1575,7 @@ var En = {
|
|
|
1576
1575
|
id: "popup-display-animation",
|
|
1577
1576
|
class: "tpl:w-full tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none focus-visible:tpl:ring-2 focus-visible:tpl:ring-[var(--tpl-primary)] focus-visible:tpl:ring-offset-2 focus-visible:tpl:ring-offset-[var(--tpl-bg)]",
|
|
1578
1577
|
value: p.value.design.displayAnimation,
|
|
1579
|
-
onChange:
|
|
1578
|
+
onChange: L
|
|
1580
1579
|
}, [(c(!0), N(b, null, i(I.value, (e) => (c(), N("option", {
|
|
1581
1580
|
key: e.id,
|
|
1582
1581
|
value: e.id
|
|
@@ -1590,7 +1589,7 @@ var En = {
|
|
|
1590
1589
|
id: "popup-close-button-position",
|
|
1591
1590
|
class: "tpl:w-full tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none focus-visible:tpl:ring-2 focus-visible:tpl:ring-[var(--tpl-primary)] focus-visible:tpl:ring-offset-2 focus-visible:tpl:ring-offset-[var(--tpl-bg)]",
|
|
1592
1591
|
value: p.value.design.closeButtonPosition,
|
|
1593
|
-
onChange:
|
|
1592
|
+
onChange: ee
|
|
1594
1593
|
}, [S("option", ci, a(A(s).popupDesign.closingButtonPositionLeft), 1), S("option", li, a(A(s).popupDesign.closingButtonPositionRight), 1)], 40, si)])) : h("", !0),
|
|
1595
1594
|
S("div", ui, [S("span", di, a(A(s).popupDesign.closingOnOverlayClick), 1), P(tr, {
|
|
1596
1595
|
checked: p.value.design.closeOnOverlayClick,
|
|
@@ -1605,7 +1604,7 @@ function gi(e, t) {
|
|
|
1605
1604
|
if (!e?.length) return !1;
|
|
1606
1605
|
for (let n of e) {
|
|
1607
1606
|
if (t(n)) return !0;
|
|
1608
|
-
if (
|
|
1607
|
+
if (ee(n)) {
|
|
1609
1608
|
for (let e of n.children) if (Array.isArray(e) && gi(e, t)) return !0;
|
|
1610
1609
|
}
|
|
1611
1610
|
}
|
|
@@ -1656,7 +1655,7 @@ function Ti(e) {
|
|
|
1656
1655
|
if (!e?.length) return !1;
|
|
1657
1656
|
for (let t of e) {
|
|
1658
1657
|
if (t.type === "discountCoupon") return !0;
|
|
1659
|
-
if (
|
|
1658
|
+
if (ee(t)) {
|
|
1660
1659
|
for (let e of t.children) if (Array.isArray(e) && Ti(e)) return !0;
|
|
1661
1660
|
}
|
|
1662
1661
|
}
|
|
@@ -1672,7 +1671,7 @@ function Ei(e) {
|
|
|
1672
1671
|
return Ti(e.blocks);
|
|
1673
1672
|
}
|
|
1674
1673
|
function Di() {
|
|
1675
|
-
let { t: e, format: t } = U(), n = r(
|
|
1674
|
+
let { t: e, format: t } = U(), n = r(et, []), i = r(it, void 0), a = r(nt, null), o = r(Qe, {}), s = r(tt, "email"), c = D(() => (o.savedModules?.moduleCount.value ?? 0) > 0), l = [
|
|
1676
1675
|
"section",
|
|
1677
1676
|
"image",
|
|
1678
1677
|
"title",
|
|
@@ -1693,7 +1692,7 @@ function Di() {
|
|
|
1693
1692
|
let t = s === "popup" ? Ci : wi;
|
|
1694
1693
|
return l.filter((e) => !t.has(e)).map((t) => ({
|
|
1695
1694
|
type: t,
|
|
1696
|
-
label:
|
|
1695
|
+
label: ye(t, e)
|
|
1697
1696
|
}));
|
|
1698
1697
|
}), d = D(() => n.map((e) => ({
|
|
1699
1698
|
type: `custom:${e.type}`,
|
|
@@ -1710,9 +1709,9 @@ function Di() {
|
|
|
1710
1709
|
function _(e) {
|
|
1711
1710
|
if (e.isCustom) {
|
|
1712
1711
|
let t = e.type.replace("custom:", ""), r = n.find((e) => e.type === t);
|
|
1713
|
-
if (r) return
|
|
1712
|
+
if (r) return ie(r);
|
|
1714
1713
|
}
|
|
1715
|
-
return
|
|
1714
|
+
return re(e.type, i);
|
|
1716
1715
|
}
|
|
1717
1716
|
function v(e) {
|
|
1718
1717
|
if (!a || h(e)) return;
|
|
@@ -1847,7 +1846,7 @@ var Oi = ["aria-label"], ki = {
|
|
|
1847
1846
|
key: 0,
|
|
1848
1847
|
size: 20,
|
|
1849
1848
|
"stroke-width": 1.5
|
|
1850
|
-
})) : e.isCustom ? (c(), x(
|
|
1849
|
+
})) : e.isCustom ? (c(), x(_e, {
|
|
1851
1850
|
key: 1,
|
|
1852
1851
|
icon: e.icon,
|
|
1853
1852
|
size: 20
|
|
@@ -1866,7 +1865,7 @@ var Oi = ["aria-label"], ki = {
|
|
|
1866
1865
|
}), Li = ["aria-label"], Ri = ["aria-label"], zi = ["aria-current", "onClick"], Bi = { class: "tpl:max-w-[4.25rem] tpl:text-center tpl:text-[10px] tpl:font-medium tpl:leading-tight" }, Vi = ["aria-label"], Hi = /* @__PURE__ */ n({
|
|
1867
1866
|
__name: "PopupLeftChrome",
|
|
1868
1867
|
setup(e) {
|
|
1869
|
-
let n = r(
|
|
1868
|
+
let n = r(Xe, y("blocks")), { t: o } = U(), s = D(() => [
|
|
1870
1869
|
{
|
|
1871
1870
|
id: "design",
|
|
1872
1871
|
icon: dn,
|
|
@@ -1943,7 +1942,7 @@ function Wi(e) {
|
|
|
1943
1942
|
type: "mergeTag",
|
|
1944
1943
|
value: t,
|
|
1945
1944
|
label: s(t)
|
|
1946
|
-
}) :
|
|
1945
|
+
}) : B(t, l) ? n.push({
|
|
1947
1946
|
type: "logicMergeTag",
|
|
1948
1947
|
value: t,
|
|
1949
1948
|
keyword: I(t, l)
|
|
@@ -2303,7 +2302,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
2303
2302
|
props: { settings: {} },
|
|
2304
2303
|
emits: ["update"],
|
|
2305
2304
|
setup(e, { emit: n }) {
|
|
2306
|
-
let r = e, o = n, { t: s } = U(), l =
|
|
2305
|
+
let r = e, o = n, { t: s } = U(), l = rt(Ze, "TemplateSettings"), u = D(() => l.fonts.value), d = D(() => u.value.some((e) => e.value === r.settings.fontFamily) ? r.settings.fontFamily : l.defaultFont.value), f = [
|
|
2307
2306
|
{
|
|
2308
2307
|
value: 480,
|
|
2309
2308
|
label: "480px"
|
|
@@ -2693,7 +2692,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
2693
2692
|
},
|
|
2694
2693
|
emits: ["update"],
|
|
2695
2694
|
setup(e, { emit: n }) {
|
|
2696
|
-
let o = e, s = n, { t: d } = U(), v = r(
|
|
2695
|
+
let o = e, s = n, { t: d } = U(), v = r(at, []), C = r(ot, !1), w = l(/* @__PURE__ */ new Set()), T = y(!1), E = y(""), O = y(""), k = [
|
|
2697
2696
|
{
|
|
2698
2697
|
key: "desktop",
|
|
2699
2698
|
icon: sn,
|
|
@@ -2717,7 +2716,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
2717
2716
|
function I() {
|
|
2718
2717
|
T.value = !0, F.value && o.block.displayCondition ? (E.value = o.block.displayCondition.before, O.value = o.block.displayCondition.after ?? "") : (E.value = "", O.value = "");
|
|
2719
2718
|
}
|
|
2720
|
-
function
|
|
2719
|
+
function L() {
|
|
2721
2720
|
E.value.trim() && (s("update", { displayCondition: {
|
|
2722
2721
|
label: d.blockSettings.customCondition,
|
|
2723
2722
|
before: E.value.trim(),
|
|
@@ -2731,7 +2730,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
2731
2730
|
}
|
|
2732
2731
|
F.value && (E.value = e.before, O.value = e.after ?? "");
|
|
2733
2732
|
}, { immediate: !0 });
|
|
2734
|
-
let
|
|
2733
|
+
let ee = D(() => {
|
|
2735
2734
|
let e = {};
|
|
2736
2735
|
for (let t of v) {
|
|
2737
2736
|
let n = t.group ?? "";
|
|
@@ -2739,20 +2738,20 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
2739
2738
|
}
|
|
2740
2739
|
return e;
|
|
2741
2740
|
});
|
|
2742
|
-
function
|
|
2741
|
+
function R(e, t) {
|
|
2743
2742
|
s("update", { styles: {
|
|
2744
2743
|
...o.block.styles,
|
|
2745
2744
|
[e]: t
|
|
2746
2745
|
} });
|
|
2747
2746
|
}
|
|
2748
|
-
function
|
|
2747
|
+
function z(e) {
|
|
2749
2748
|
return o.block.visibility?.[e] !== !1;
|
|
2750
2749
|
}
|
|
2751
|
-
function
|
|
2750
|
+
function B(e) {
|
|
2752
2751
|
let t = {
|
|
2753
|
-
desktop:
|
|
2754
|
-
tablet:
|
|
2755
|
-
mobile:
|
|
2752
|
+
desktop: z("desktop"),
|
|
2753
|
+
tablet: z("tablet"),
|
|
2754
|
+
mobile: z("mobile")
|
|
2756
2755
|
};
|
|
2757
2756
|
t[e] = !t[e], s("update", { visibility: t });
|
|
2758
2757
|
}
|
|
@@ -2766,11 +2765,11 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
2766
2765
|
default: f(() => [P(ka, {
|
|
2767
2766
|
label: A(d).blockSettings.padding,
|
|
2768
2767
|
"model-value": e.block.styles.padding,
|
|
2769
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
2768
|
+
"onUpdate:modelValue": r[0] ||= (e) => R("padding", e)
|
|
2770
2769
|
}, null, 8, ["label", "model-value"]), S("div", Qo, [P(ka, {
|
|
2771
2770
|
label: A(d).blockSettings.margin,
|
|
2772
2771
|
"model-value": e.block.styles.margin,
|
|
2773
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
2772
|
+
"onUpdate:modelValue": r[1] ||= (e) => R("margin", e)
|
|
2774
2773
|
}, null, 8, ["label", "model-value"])])]),
|
|
2775
2774
|
_: 1
|
|
2776
2775
|
}, 8, [
|
|
@@ -2786,7 +2785,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
2786
2785
|
default: f(() => [S("label", { class: t(A(q)) }, a(A(d).blockSettings.color), 3), P(X, {
|
|
2787
2786
|
size: "large",
|
|
2788
2787
|
"model-value": e.block.styles.backgroundColor || A("#ffffff"),
|
|
2789
|
-
"onUpdate:modelValue": r[3] ||= (e) =>
|
|
2788
|
+
"onUpdate:modelValue": r[3] ||= (e) => R("backgroundColor", e)
|
|
2790
2789
|
}, null, 8, ["model-value"])]),
|
|
2791
2790
|
_: 1
|
|
2792
2791
|
}, 8, ["title", "open"]),
|
|
@@ -2802,8 +2801,8 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
2802
2801
|
S("input", {
|
|
2803
2802
|
type: "checkbox",
|
|
2804
2803
|
class: "tpl:accent-[var(--tpl-primary)]",
|
|
2805
|
-
checked:
|
|
2806
|
-
onChange: (t) =>
|
|
2804
|
+
checked: z(e.key),
|
|
2805
|
+
onChange: (t) => B(e.key)
|
|
2807
2806
|
}, null, 40, es),
|
|
2808
2807
|
(c(), x(u(e.icon), {
|
|
2809
2808
|
size: 14,
|
|
@@ -2851,7 +2850,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
2851
2850
|
}
|
|
2852
2851
|
}, [
|
|
2853
2852
|
S("option", is, a(A(d).blockSettings.noCondition), 1),
|
|
2854
|
-
(c(!0), N(b, null, i(
|
|
2853
|
+
(c(!0), N(b, null, i(ee.value, (e, t) => (c(), N(b, { key: t }, [t ? (c(), N("optgroup", {
|
|
2855
2854
|
key: 0,
|
|
2856
2855
|
label: String(t)
|
|
2857
2856
|
}, [(c(!0), N(b, null, i(e, (e) => (c(), N("option", {
|
|
@@ -2877,7 +2876,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
2877
2876
|
type: "button",
|
|
2878
2877
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-bg)] tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:opacity-50",
|
|
2879
2878
|
disabled: !E.value.trim(),
|
|
2880
|
-
onClick:
|
|
2879
|
+
onClick: L
|
|
2881
2880
|
}, a(A(d).blockSettings.applyCondition), 9, ps)])
|
|
2882
2881
|
])) : e.block.displayCondition && !F.value ? (c(), N(b, { key: 1 }, [e.block.displayCondition.description ? (c(), N("p", ms, a(e.block.displayCondition.description), 1)) : h("", !0), S("div", hs, [S("pre", gs, a(e.block.displayCondition.before), 1), e.block.displayCondition.after ? (c(), N("pre", _s, a(e.block.displayCondition.after), 1)) : h("", !0)])], 64)) : h("", !0)])]),
|
|
2883
2882
|
_: 1
|
|
@@ -3064,7 +3063,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
3064
3063
|
E.value = E.value === e ? null : e;
|
|
3065
3064
|
}
|
|
3066
3065
|
function M(e) {
|
|
3067
|
-
let t =
|
|
3066
|
+
let t = ne(e);
|
|
3068
3067
|
o("update", { fields: [...r.block.fields, t] }), E.value = t.id, O.value = !1;
|
|
3069
3068
|
}
|
|
3070
3069
|
function F(e) {
|
|
@@ -3076,10 +3075,10 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
3076
3075
|
...t
|
|
3077
3076
|
} : n) });
|
|
3078
3077
|
}
|
|
3079
|
-
function
|
|
3078
|
+
function L(e) {
|
|
3080
3079
|
return C[e].icon;
|
|
3081
3080
|
}
|
|
3082
|
-
let
|
|
3081
|
+
let ee = [
|
|
3083
3082
|
{
|
|
3084
3083
|
value: "next_step",
|
|
3085
3084
|
label: s.form.buttonActions.nextStep
|
|
@@ -3097,7 +3096,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
3097
3096
|
label: s.form.buttonActions.none
|
|
3098
3097
|
}
|
|
3099
3098
|
];
|
|
3100
|
-
function
|
|
3099
|
+
function R(e) {
|
|
3101
3100
|
p("buttonLayout", e);
|
|
3102
3101
|
}
|
|
3103
3102
|
return (n, r) => (c(), N("div", null, [S("div", ys, [(c(), N(b, null, i(d, (e) => S("button", {
|
|
@@ -3130,7 +3129,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
3130
3129
|
type: "button",
|
|
3131
3130
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:justify-between tpl:gap-2 tpl:border-none tpl:bg-transparent tpl:px-3 tpl:py-2.5 tpl:text-left",
|
|
3132
3131
|
onClick: (t) => j(e.id)
|
|
3133
|
-
}, [S("span", ks, [(c(), x(u(
|
|
3132
|
+
}, [S("span", ks, [(c(), x(u(L(e.type)), {
|
|
3134
3133
|
size: 14,
|
|
3135
3134
|
"stroke-width": 1.75
|
|
3136
3135
|
})), g(" " + a(C[e.type].label), 1)]), S("span", As, [S("button", {
|
|
@@ -3239,7 +3238,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
3239
3238
|
class: t(A(K)),
|
|
3240
3239
|
value: e.block.buttonAction,
|
|
3241
3240
|
onChange: r[3] ||= (e) => p("buttonAction", e.target.value)
|
|
3242
|
-
}, [(c(), N(b, null, i(
|
|
3241
|
+
}, [(c(), N(b, null, i(ee, (e) => S("option", {
|
|
3243
3242
|
key: e.value,
|
|
3244
3243
|
value: e.value
|
|
3245
3244
|
}, a(e.label), 9, oc)), 64))], 42, ac)]),
|
|
@@ -3253,7 +3252,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
3253
3252
|
S("div", lc, [S("label", uc, a(A(s).form.button.position), 1), S("div", dc, [S("button", {
|
|
3254
3253
|
type: "button",
|
|
3255
3254
|
class: t(["tpl:flex tpl:cursor-pointer tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-3 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150", e.block.buttonLayout === "one_line" ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] hover:tpl:border-[var(--tpl-text-muted)]"]),
|
|
3256
|
-
onClick: r[5] ||= (e) =>
|
|
3255
|
+
onClick: r[5] ||= (e) => R("one_line")
|
|
3257
3256
|
}, [r[12] ||= S("svg", {
|
|
3258
3257
|
width: "56",
|
|
3259
3258
|
height: "20",
|
|
@@ -3279,7 +3278,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
3279
3278
|
})], -1), g(" " + a(A(s).form.button.oneLine), 1)], 2), S("button", {
|
|
3280
3279
|
type: "button",
|
|
3281
3280
|
class: t(["tpl:flex tpl:cursor-pointer tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-3 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150", e.block.buttonLayout === "two_lines" ? "tpl:border-[var(--tpl-primary)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-text)]" : "tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] hover:tpl:border-[var(--tpl-text-muted)]"]),
|
|
3282
|
-
onClick: r[6] ||= (e) =>
|
|
3281
|
+
onClick: r[6] ||= (e) => R("two_lines")
|
|
3283
3282
|
}, [r[13] ||= S("svg", {
|
|
3284
3283
|
width: "56",
|
|
3285
3284
|
height: "28",
|
|
@@ -3682,7 +3681,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
3682
3681
|
},
|
|
3683
3682
|
emits: ["update:modelValue"],
|
|
3684
3683
|
setup(e, { emit: n }) {
|
|
3685
|
-
let i = n, { t: o } = U(), s = r(
|
|
3684
|
+
let i = n, { t: o } = U(), s = r(Je, null), l = D(() => !!s);
|
|
3686
3685
|
async function u() {
|
|
3687
3686
|
let e = await s?.({ accept: ["images"] });
|
|
3688
3687
|
e && i("update:modelValue", e.url);
|
|
@@ -3711,7 +3710,7 @@ var Gi = ["aria-label", "onKeydown"], Ki = ["data-tooltip"], qi = ["data-tooltip
|
|
|
3711
3710
|
key: 2,
|
|
3712
3711
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
3713
3712
|
onClick: r[1] ||= (e) => u()
|
|
3714
|
-
}, [P(A(
|
|
3713
|
+
}, [P(A(he), {
|
|
3715
3714
|
size: 14,
|
|
3716
3715
|
"stroke-width": 1.5
|
|
3717
3716
|
}), g(" " + a(A(o).image.browseMedia), 1)])) : h("", !0)]),
|
|
@@ -3996,7 +3995,7 @@ var Xl = {
|
|
|
3996
3995
|
props: { block: {} },
|
|
3997
3996
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
3998
3997
|
setup(e, { emit: t }) {
|
|
3999
|
-
let n = e, o = t, { t: s } = U(), l = r(
|
|
3998
|
+
let n = e, o = t, { t: s } = U(), l = r(et, []), d = D(() => l.find((e) => e.type === n.block.customType)), { isFetching: f, fetchError: p, fetch: m, hasDataSource: _, needsFetch: v } = fe({
|
|
4000
3999
|
definition: d,
|
|
4001
4000
|
block: D(() => n.block),
|
|
4002
4001
|
onUpdate: (e, t) => {
|
|
@@ -4121,7 +4120,7 @@ var Xl = {
|
|
|
4121
4120
|
value: "free_shipping",
|
|
4122
4121
|
label: l.discountCoupon.types.freeShipping
|
|
4123
4122
|
}
|
|
4124
|
-
],
|
|
4123
|
+
], L = [
|
|
4125
4124
|
{
|
|
4126
4125
|
mode: "none",
|
|
4127
4126
|
label: l.discountCoupon.modeNone
|
|
@@ -4134,7 +4133,7 @@ var Xl = {
|
|
|
4134
4133
|
mode: "manual_shopify",
|
|
4135
4134
|
label: l.discountCoupon.modeManual
|
|
4136
4135
|
}
|
|
4137
|
-
],
|
|
4136
|
+
], ee = D(() => o.block.discountMode !== "none"), R = [
|
|
4138
4137
|
{
|
|
4139
4138
|
value: "none",
|
|
4140
4139
|
label: l.discountCoupon.afterClickNone
|
|
@@ -4163,7 +4162,7 @@ var Xl = {
|
|
|
4163
4162
|
class: "tpl:mb-4 tpl:flex tpl:flex-col tpl:gap-3",
|
|
4164
4163
|
role: "radiogroup",
|
|
4165
4164
|
"aria-label": A(l).blocks.discountCoupon
|
|
4166
|
-
}, [(c(), N(b, null, i(
|
|
4165
|
+
}, [(c(), N(b, null, i(L, (n) => S("label", {
|
|
4167
4166
|
key: n.mode,
|
|
4168
4167
|
class: t(["tpl:flex tpl:items-start tpl:gap-2 tpl:text-sm", _(n.mode) ? "tpl:cursor-not-allowed tpl:text-[var(--tpl-text-muted)] tpl:opacity-70" : "tpl:cursor-pointer tpl:text-[var(--tpl-text)]"])
|
|
4169
4168
|
}, [S("input", {
|
|
@@ -4268,7 +4267,7 @@ var Xl = {
|
|
|
4268
4267
|
rel: "noopener noreferrer",
|
|
4269
4268
|
class: "tpl:text-[var(--tpl-primary)] tpl:underline tpl:underline-offset-2"
|
|
4270
4269
|
}, a(A(l).discountCoupon.manualFooterLead), 9, Cu), g(a(A(l).discountCoupon.manualFooterTail), 1)])], 64)) : h("", !0),
|
|
4271
|
-
|
|
4270
|
+
ee.value ? (c(), N("div", wu, [
|
|
4272
4271
|
S("label", { class: t([A(q), "tpl:!mb-2 tpl:!text-[10px] tpl:!font-semibold tpl:!uppercase tpl:!tracking-wide tpl:!text-[var(--tpl-text-muted)]"]) }, a(A(l).discountCoupon.confirmationTextLabel), 3),
|
|
4273
4272
|
S("input", {
|
|
4274
4273
|
type: "text",
|
|
@@ -4282,7 +4281,7 @@ var Xl = {
|
|
|
4282
4281
|
class: "tpl:mt-4 tpl:flex tpl:flex-col tpl:gap-2",
|
|
4283
4282
|
role: "radiogroup",
|
|
4284
4283
|
"aria-label": A(l).discountCoupon.afterClickLabel
|
|
4285
|
-
}, [S("span", { class: t([A(q), "tpl:!mb-0 tpl:!text-[10px] tpl:!font-semibold tpl:!uppercase tpl:!tracking-wide tpl:!text-[var(--tpl-text-muted)]"]) }, a(A(l).discountCoupon.afterClickLabel), 3), (c(), N(b, null, i(
|
|
4284
|
+
}, [S("span", { class: t([A(q), "tpl:!mb-0 tpl:!text-[10px] tpl:!font-semibold tpl:!uppercase tpl:!tracking-wide tpl:!text-[var(--tpl-text-muted)]"]) }, a(A(l).discountCoupon.afterClickLabel), 3), (c(), N(b, null, i(R, (t) => S("label", {
|
|
4286
4285
|
key: t.value,
|
|
4287
4286
|
class: "tpl:flex tpl:cursor-pointer tpl:items-start tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]"
|
|
4288
4287
|
}, [S("input", {
|
|
@@ -4374,7 +4373,7 @@ var Xl = {
|
|
|
4374
4373
|
props: { block: {} },
|
|
4375
4374
|
emits: ["update"],
|
|
4376
4375
|
setup(e, { emit: n }) {
|
|
4377
|
-
let i = n, { t: o } = U(), s = r(
|
|
4376
|
+
let i = n, { t: o } = U(), s = r(Je, null), l = r(Ye, ae.liquid), u = D(() => !!s), d = y(!1), f = y(!1), { start: p } = qe(() => {
|
|
4378
4377
|
d.value = !1;
|
|
4379
4378
|
}, 1e3, { immediate: !1 });
|
|
4380
4379
|
function m(e, t) {
|
|
@@ -4407,12 +4406,12 @@ var Xl = {
|
|
|
4407
4406
|
"background-color": "var(--tpl-bg)"
|
|
4408
4407
|
},
|
|
4409
4408
|
onClick: _
|
|
4410
|
-
}, [P(A(
|
|
4409
|
+
}, [P(A(he), {
|
|
4411
4410
|
size: 14,
|
|
4412
4411
|
"stroke-width": 1.5
|
|
4413
4412
|
}), g(" " + a(A(o).image.browseMedia), 1)])) : h("", !0)
|
|
4414
4413
|
]),
|
|
4415
|
-
A(
|
|
4414
|
+
A(ue)(e.block.src, A(l)) ? (c(), N("div", Vu, [S("label", { class: t(A(q)) }, [g(a(A(o).image.placeholderUrl) + " ", 1), r[8] ||= S("span", { class: "tpl:font-normal tpl:text-[var(--tpl-text-dim)]" }, a("(optional)"), -1)], 2), S("input", {
|
|
4416
4415
|
type: "url",
|
|
4417
4416
|
class: t(A(K)),
|
|
4418
4417
|
value: e.block.placeholderUrl || "",
|
|
@@ -4533,7 +4532,7 @@ var Xl = {
|
|
|
4533
4532
|
}
|
|
4534
4533
|
function p() {
|
|
4535
4534
|
let e = {
|
|
4536
|
-
id:
|
|
4535
|
+
id: oe(),
|
|
4537
4536
|
text: "",
|
|
4538
4537
|
url: "",
|
|
4539
4538
|
openInNewTab: !1,
|
|
@@ -4722,7 +4721,7 @@ var Xl = {
|
|
|
4722
4721
|
}
|
|
4723
4722
|
function u() {
|
|
4724
4723
|
let e = {
|
|
4725
|
-
id:
|
|
4724
|
+
id: oe(),
|
|
4726
4725
|
platform: "facebook",
|
|
4727
4726
|
url: ""
|
|
4728
4727
|
};
|
|
@@ -4745,10 +4744,10 @@ var Xl = {
|
|
|
4745
4744
|
class: t([A(K), "tpl:flex-1"]),
|
|
4746
4745
|
value: e.platform,
|
|
4747
4746
|
onChange: (t) => d(e.id, "platform", t.target.value)
|
|
4748
|
-
}, [(c(!0), N(b, null, i(A(
|
|
4747
|
+
}, [(c(!0), N(b, null, i(A(Ie), (e) => (c(), N("option", {
|
|
4749
4748
|
key: e,
|
|
4750
4749
|
value: e
|
|
4751
|
-
}, a(A(
|
|
4750
|
+
}, a(A(Ae)[e].name), 9, xd))), 128))], 42, bd), S("button", {
|
|
4752
4751
|
class: t(A(Rt)),
|
|
4753
4752
|
title: A(s).social.removeIcon,
|
|
4754
4753
|
onClick: (t) => f(e.id)
|
|
@@ -4889,9 +4888,9 @@ var Xl = {
|
|
|
4889
4888
|
}
|
|
4890
4889
|
function d() {
|
|
4891
4890
|
let e = r.block.rows.length > 0 ? r.block.rows[0].cells.length : 3, t = {
|
|
4892
|
-
id:
|
|
4891
|
+
id: oe(),
|
|
4893
4892
|
cells: Array.from({ length: e }, () => ({
|
|
4894
|
-
id:
|
|
4893
|
+
id: oe(),
|
|
4895
4894
|
content: ""
|
|
4896
4895
|
}))
|
|
4897
4896
|
};
|
|
@@ -4904,7 +4903,7 @@ var Xl = {
|
|
|
4904
4903
|
o("update", { rows: r.block.rows.map((e) => ({
|
|
4905
4904
|
...e,
|
|
4906
4905
|
cells: [...e.cells, {
|
|
4907
|
-
id:
|
|
4906
|
+
id: oe(),
|
|
4908
4907
|
content: ""
|
|
4909
4908
|
}]
|
|
4910
4909
|
})) });
|
|
@@ -5098,7 +5097,7 @@ var Xl = {
|
|
|
5098
5097
|
props: { block: {} },
|
|
5099
5098
|
emits: ["update"],
|
|
5100
5099
|
setup(e, { emit: n }) {
|
|
5101
|
-
let i = e, o = n, { t: s } = U(), l = r(
|
|
5100
|
+
let i = e, o = n, { t: s } = U(), l = r(Je, null), u = r(Ye, ae.liquid), d = D(() => !!l), f = D(() => ue(i.block.url, u)), p = y(!1), { start: m } = qe(() => {
|
|
5102
5101
|
p.value = !1;
|
|
5103
5102
|
}, 1e3, { immediate: !1 });
|
|
5104
5103
|
function _(e, t) {
|
|
@@ -5154,7 +5153,7 @@ var Xl = {
|
|
|
5154
5153
|
"background-color": "var(--tpl-bg)"
|
|
5155
5154
|
},
|
|
5156
5155
|
onClick: v
|
|
5157
|
-
}, [P(A(
|
|
5156
|
+
}, [P(A(he), {
|
|
5158
5157
|
size: 14,
|
|
5159
5158
|
"stroke-width": 1.5
|
|
5160
5159
|
}), g(" " + a(A(s).image.browseMedia), 1)])) : h("", !0)
|
|
@@ -5204,9 +5203,9 @@ var Xl = {
|
|
|
5204
5203
|
"duplicate"
|
|
5205
5204
|
],
|
|
5206
5205
|
setup(e, { emit: t }) {
|
|
5207
|
-
let n = d(() => import("./CountdownToolbar-
|
|
5206
|
+
let n = d(() => import("./CountdownToolbar-D1tb2T_b.js")), i = e, o = t, { t: s } = U(), l = rt(Ze, "Toolbar"), f = r(et, []), p = D(() => i.block.type), m = D(() => z(i.block)), g = D(() => {
|
|
5208
5207
|
if (m.value) return f.find((e) => e.type === i.block.customType);
|
|
5209
|
-
}), _ = D(() => m.value ? g.value?.name ?? i.block.customType :
|
|
5208
|
+
}), _ = D(() => m.value ? g.value?.name ?? i.block.customType : ye(p.value, s)), v = l.fonts;
|
|
5210
5209
|
function y(e) {
|
|
5211
5210
|
o("update", e);
|
|
5212
5211
|
}
|
|
@@ -5217,7 +5216,7 @@ var Xl = {
|
|
|
5217
5216
|
key: 0,
|
|
5218
5217
|
size: 16,
|
|
5219
5218
|
"stroke-width": 1.5
|
|
5220
|
-
})) : m.value ? (c(), x(A(
|
|
5219
|
+
})) : m.value ? (c(), x(A(pe), {
|
|
5221
5220
|
key: 1,
|
|
5222
5221
|
size: 16,
|
|
5223
5222
|
"stroke-width": 1.5
|
|
@@ -5225,7 +5224,7 @@ var Xl = {
|
|
|
5225
5224
|
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)]",
|
|
5226
5225
|
title: A(s).toolbar.duplicate,
|
|
5227
5226
|
onClick: r[0] ||= (e) => o("duplicate")
|
|
5228
|
-
}, [P(A(
|
|
5227
|
+
}, [P(A(ve), {
|
|
5229
5228
|
size: 14,
|
|
5230
5229
|
"stroke-width": 2
|
|
5231
5230
|
})], 8, qf), S("button", {
|
|
@@ -5365,7 +5364,7 @@ var Xl = {
|
|
|
5365
5364
|
"update-settings"
|
|
5366
5365
|
],
|
|
5367
5366
|
setup(e, { emit: n }) {
|
|
5368
|
-
let i = d(() => import("./AccessibilityPanel-
|
|
5367
|
+
let i = d(() => import("./AccessibilityPanel-B39ct5ON.js")), o = e, s = n, { t: l } = U(), u = y("content"), f = r(ct, null), m = D(() => f !== null), g = D(() => f?.issues.value.length ?? 0);
|
|
5369
5368
|
function _(e) {
|
|
5370
5369
|
return u.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)]";
|
|
5371
5370
|
}
|
|
@@ -5463,7 +5462,7 @@ var Xl = {
|
|
|
5463
5462
|
__name: "HistoryUndoRedo",
|
|
5464
5463
|
props: { onBeforeUndo: { type: Function } },
|
|
5465
5464
|
setup(e) {
|
|
5466
|
-
let t = e, n = r(
|
|
5465
|
+
let t = e, n = r(lt, null), { t: i } = U(), a = D(() => n?.canUndo.value ?? !1), o = D(() => n?.canRedo.value ?? !1);
|
|
5467
5466
|
function s() {
|
|
5468
5467
|
!n || !a.value || (t.onBeforeUndo?.(), n.undo());
|
|
5469
5468
|
}
|
|
@@ -5592,7 +5591,7 @@ var Xl = {
|
|
|
5592
5591
|
key: "eye",
|
|
5593
5592
|
size: 18,
|
|
5594
5593
|
"stroke-width": 1.5
|
|
5595
|
-
})) : (c(), x(A(
|
|
5594
|
+
})) : (c(), x(A(ge), {
|
|
5596
5595
|
key: "eye-off",
|
|
5597
5596
|
size: 18,
|
|
5598
5597
|
"stroke-width": 1.5
|
|
@@ -5735,18 +5734,18 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
|
|
|
5735
5734
|
}
|
|
5736
5735
|
},
|
|
5737
5736
|
setup(e, { expose: n }) {
|
|
5738
|
-
let r = e, { t: i, format: o } = U(), l = y(!1), u = y(0), d = y(null), m = y(""), _ =
|
|
5737
|
+
let r = e, { t: i, format: o } = U(), l = y(!1), u = y(0), d = y(null), m = y(""), _ = Be(), b = O([]), E = Ue(document.body);
|
|
5739
5738
|
p(l, (e, t, n) => {
|
|
5740
5739
|
if (E.value = e, !e) return;
|
|
5741
5740
|
let r = (e) => {
|
|
5742
|
-
e.key === "Escape" && (e.preventDefault(),
|
|
5741
|
+
e.key === "Escape" && (e.preventDefault(), H(!0));
|
|
5743
5742
|
};
|
|
5744
5743
|
document.addEventListener("keydown", r, !0), n(() => document.removeEventListener("keydown", r, !0));
|
|
5745
5744
|
}, { immediate: !0 });
|
|
5746
|
-
let M = 0, { pause: F, resume: I } =
|
|
5747
|
-
let e =
|
|
5745
|
+
let M = 0, { pause: F, resume: I } = Ve(() => {
|
|
5746
|
+
let e = B.value;
|
|
5748
5747
|
M < e.length ? (m.value = e.slice(0, M + 1), M++) : F();
|
|
5749
|
-
}, 25, { immediate: !1 }),
|
|
5748
|
+
}, 25, { immediate: !1 }), L = D(() => [
|
|
5750
5749
|
{
|
|
5751
5750
|
target: ".tpl-body",
|
|
5752
5751
|
placement: "canvas",
|
|
@@ -5766,15 +5765,15 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
|
|
|
5766
5765
|
text: i.tour.defaults.rightSidebar.text
|
|
5767
5766
|
}
|
|
5768
5767
|
]);
|
|
5769
|
-
function
|
|
5768
|
+
function ee(e) {
|
|
5770
5769
|
return e.filter((e) => document.querySelector(e.target) ? !0 : e.skipIfMissing === !1);
|
|
5771
5770
|
}
|
|
5772
|
-
let
|
|
5773
|
-
function
|
|
5771
|
+
let R = D(() => b.value[u.value] ?? null), z = D(() => R.value?.title ?? ""), B = D(() => R.value?.text ?? "");
|
|
5772
|
+
function te(e) {
|
|
5774
5773
|
return e?.placement ?? "below";
|
|
5775
5774
|
}
|
|
5776
|
-
function
|
|
5777
|
-
let e =
|
|
5775
|
+
function V() {
|
|
5776
|
+
let e = R.value;
|
|
5778
5777
|
if (!e) {
|
|
5779
5778
|
d.value = null;
|
|
5780
5779
|
return;
|
|
@@ -5784,52 +5783,52 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
|
|
|
5784
5783
|
d.value = null;
|
|
5785
5784
|
return;
|
|
5786
5785
|
}
|
|
5787
|
-
|
|
5786
|
+
te(e) === "below" && t.scrollIntoView({
|
|
5788
5787
|
behavior: "instant",
|
|
5789
5788
|
block: "nearest",
|
|
5790
5789
|
inline: "nearest"
|
|
5791
5790
|
}), d.value = t.getBoundingClientRect();
|
|
5792
5791
|
}
|
|
5793
|
-
function
|
|
5792
|
+
function ne() {
|
|
5794
5793
|
F();
|
|
5795
|
-
let e =
|
|
5794
|
+
let e = B.value;
|
|
5796
5795
|
if (m.value = "", _.value === "reduce") {
|
|
5797
5796
|
m.value = e;
|
|
5798
5797
|
return;
|
|
5799
5798
|
}
|
|
5800
5799
|
M = 0, I();
|
|
5801
5800
|
}
|
|
5802
|
-
function
|
|
5803
|
-
return
|
|
5801
|
+
function re() {
|
|
5802
|
+
return ee(r.tourConfig.steps === void 0 ? L.value : r.tourConfig.steps);
|
|
5804
5803
|
}
|
|
5805
|
-
function
|
|
5806
|
-
let t =
|
|
5804
|
+
function ie(e) {
|
|
5805
|
+
let t = re();
|
|
5807
5806
|
if (b.value = t, t.length === 0) {
|
|
5808
5807
|
l.value = !1;
|
|
5809
5808
|
return;
|
|
5810
5809
|
}
|
|
5811
5810
|
u.value = Math.min(Math.max(0, e?.stepIndex ?? 0), t.length - 1), l.value = !0, T(() => {
|
|
5812
|
-
|
|
5811
|
+
V(), ne();
|
|
5813
5812
|
});
|
|
5814
5813
|
}
|
|
5815
|
-
function
|
|
5814
|
+
function H(e) {
|
|
5816
5815
|
F(), l.value = !1, d.value = null, e && Ip(r.tourConfig);
|
|
5817
5816
|
}
|
|
5818
|
-
function
|
|
5817
|
+
function ae() {
|
|
5819
5818
|
u.value < b.value.length - 1 ? (u.value++, T(() => {
|
|
5820
|
-
|
|
5821
|
-
})) :
|
|
5819
|
+
V(), ne();
|
|
5820
|
+
})) : H(!0);
|
|
5822
5821
|
}
|
|
5823
|
-
function
|
|
5822
|
+
function oe() {
|
|
5824
5823
|
return Fp(r.tourConfig);
|
|
5825
5824
|
}
|
|
5826
|
-
function
|
|
5825
|
+
function se() {
|
|
5827
5826
|
Lp(r.tourConfig);
|
|
5828
5827
|
}
|
|
5829
|
-
let
|
|
5828
|
+
let ce = D(() => {
|
|
5830
5829
|
let e = d.value;
|
|
5831
5830
|
if (!e) return {};
|
|
5832
|
-
let t =
|
|
5831
|
+
let t = te(R.value);
|
|
5833
5832
|
return t === "canvas" ? {
|
|
5834
5833
|
top: `${e.top + e.height / 3}px`,
|
|
5835
5834
|
left: `${e.left + e.width / 2}px`,
|
|
@@ -5844,10 +5843,10 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
|
|
|
5844
5843
|
top: `${e.bottom + 12}px`,
|
|
5845
5844
|
left: `${Math.min(e.left, typeof window < "u" ? window.innerWidth - 320 : e.left)}px`
|
|
5846
5845
|
};
|
|
5847
|
-
}),
|
|
5846
|
+
}), le = D(() => {
|
|
5848
5847
|
let e = d.value;
|
|
5849
5848
|
if (!e) return {};
|
|
5850
|
-
let t =
|
|
5849
|
+
let t = te(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;
|
|
5851
5850
|
return {
|
|
5852
5851
|
width: `${r}px`,
|
|
5853
5852
|
height: `${i}px`,
|
|
@@ -5856,51 +5855,51 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
|
|
|
5856
5855
|
};
|
|
5857
5856
|
});
|
|
5858
5857
|
return C(() => {
|
|
5859
|
-
r.tourConfig.autoStart && !Fp(r.tourConfig) &&
|
|
5858
|
+
r.tourConfig.autoStart && !Fp(r.tourConfig) && ie();
|
|
5860
5859
|
}), s(() => {
|
|
5861
5860
|
F(), E.value = !1;
|
|
5862
5861
|
}), n({
|
|
5863
|
-
start:
|
|
5864
|
-
dismiss: () =>
|
|
5865
|
-
resetDismissed:
|
|
5866
|
-
isDismissed:
|
|
5862
|
+
start: ie,
|
|
5863
|
+
dismiss: () => H(!0),
|
|
5864
|
+
resetDismissed: se,
|
|
5865
|
+
isDismissed: oe
|
|
5867
5866
|
}), (n, r) => (c(), x(k, { to: "body" }, [P(j, { name: "tpl-editor-tour" }, {
|
|
5868
5867
|
default: f(() => [l.value ? (c(), N("div", {
|
|
5869
5868
|
key: 0,
|
|
5870
5869
|
class: t(["tpl-editor-tour-overlay tpl:fixed tpl:inset-0 tpl:z-[10001]", { "tpl-editor-tour-overlay--dark": e.darkMode }]),
|
|
5871
5870
|
"data-testid": "editor-tour-overlay",
|
|
5872
|
-
onClick: r[2] ||= v((e) =>
|
|
5871
|
+
onClick: r[2] ||= v((e) => H(!0), ["self"])
|
|
5873
5872
|
}, [d.value ? (c(), N("div", {
|
|
5874
5873
|
key: 0,
|
|
5875
5874
|
"data-testid": "editor-tour-spotlight",
|
|
5876
5875
|
class: "tpl-editor-tour-spotlight tpl:absolute tpl:top-0 tpl:left-0",
|
|
5877
|
-
style: w(
|
|
5878
|
-
onClick: r[0] ||= (e) =>
|
|
5879
|
-
}, null, 4)) : h("", !0), d.value &&
|
|
5876
|
+
style: w(le.value),
|
|
5877
|
+
onClick: r[0] ||= (e) => H(!0)
|
|
5878
|
+
}, null, 4)) : h("", !0), d.value && R.value ? (c(), N("div", {
|
|
5880
5879
|
key: 1,
|
|
5881
5880
|
role: "dialog",
|
|
5882
5881
|
"aria-modal": "true",
|
|
5883
|
-
"aria-label":
|
|
5882
|
+
"aria-label": z.value,
|
|
5884
5883
|
"data-testid": "editor-tour-tooltip",
|
|
5885
5884
|
class: "tpl-editor-tour-tooltip tpl-editor-tour-tooltip-shell tpl:fixed tpl:z-[10002]",
|
|
5886
|
-
style: w(
|
|
5885
|
+
style: w(ce.value)
|
|
5887
5886
|
}, [S("div", zp, [
|
|
5888
5887
|
S("div", Bp, a(A(o)(A(i).tour.stepCounter, {
|
|
5889
5888
|
current: String(u.value + 1),
|
|
5890
5889
|
total: String(b.value.length)
|
|
5891
5890
|
})), 1),
|
|
5892
|
-
S("div", Vp, a(
|
|
5893
|
-
S("div", Hp, [g(a(m.value), 1), m.value.length <
|
|
5891
|
+
S("div", Vp, a(z.value), 1),
|
|
5892
|
+
S("div", Hp, [g(a(m.value), 1), m.value.length < B.value.length ? (c(), N("span", Up, "|")) : h("", !0)])
|
|
5894
5893
|
]), S("div", Wp, [S("button", {
|
|
5895
5894
|
type: "button",
|
|
5896
5895
|
"data-testid": "editor-tour-skip",
|
|
5897
5896
|
class: "tpl-editor-tour-skip",
|
|
5898
|
-
onClick: r[1] ||= (e) =>
|
|
5897
|
+
onClick: r[1] ||= (e) => H(!0)
|
|
5899
5898
|
}, a(A(i).tour.skip), 1), S("button", {
|
|
5900
5899
|
type: "button",
|
|
5901
5900
|
"data-testid": "editor-tour-next",
|
|
5902
5901
|
class: "tpl-editor-tour-next",
|
|
5903
|
-
onClick:
|
|
5902
|
+
onClick: ae
|
|
5904
5903
|
}, [g(a(u.value < b.value.length - 1 ? A(i).tour.next : A(i).tour.done) + " ", 1), u.value < b.value.length - 1 ? (c(), x(A(ht), {
|
|
5905
5904
|
key: 0,
|
|
5906
5905
|
size: 12,
|
|
@@ -6093,7 +6092,7 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
|
|
|
6093
6092
|
}
|
|
6094
6093
|
]), _ = y(!1), C = y(!1);
|
|
6095
6094
|
function w(e) {
|
|
6096
|
-
return
|
|
6095
|
+
return L(d.value.triggers[e].triggerConditions);
|
|
6097
6096
|
}
|
|
6098
6097
|
function T(e, t) {
|
|
6099
6098
|
p(e, { triggerConditions: {
|
|
@@ -6103,7 +6102,7 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
|
|
|
6103
6102
|
}
|
|
6104
6103
|
function E(e, t) {
|
|
6105
6104
|
t ? p(e, { triggerConditions: {
|
|
6106
|
-
...
|
|
6105
|
+
...se(),
|
|
6107
6106
|
enabled: !0,
|
|
6108
6107
|
delaySeconds: 5,
|
|
6109
6108
|
pageViews: 3,
|
|
@@ -6123,7 +6122,7 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
|
|
|
6123
6122
|
} : t.frequency.stopShowing;
|
|
6124
6123
|
f({
|
|
6125
6124
|
...t,
|
|
6126
|
-
frequency:
|
|
6125
|
+
frequency: R({
|
|
6127
6126
|
showAgain: n,
|
|
6128
6127
|
stopShowing: r
|
|
6129
6128
|
})
|
|
@@ -6143,21 +6142,21 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
|
|
|
6143
6142
|
let t = Number(e.target.value);
|
|
6144
6143
|
O({ stopShowing: { afterSeenCount: Number.isFinite(t) ? Math.max(1, Math.floor(t)) : 1 } });
|
|
6145
6144
|
}
|
|
6146
|
-
function
|
|
6145
|
+
function ee(e) {
|
|
6147
6146
|
O({ stopShowing: { afterClosedBehavior: e } });
|
|
6148
6147
|
}
|
|
6149
|
-
function
|
|
6148
|
+
function z(e) {
|
|
6150
6149
|
let t = e.target.value;
|
|
6151
6150
|
(t === "minutes" || t === "hours" || t === "days") && F(t);
|
|
6152
6151
|
}
|
|
6153
|
-
function
|
|
6152
|
+
function B(e) {
|
|
6154
6153
|
let t = e.target.value;
|
|
6155
|
-
(t === "never_display_again" || t === "respect_show_again") &&
|
|
6154
|
+
(t === "never_display_again" || t === "respect_show_again") && ee(t);
|
|
6156
6155
|
}
|
|
6157
|
-
let
|
|
6158
|
-
async function
|
|
6156
|
+
let te = D(() => JSON.stringify({ triggers: V(d.value.triggers) }, null, 2));
|
|
6157
|
+
async function ne() {
|
|
6159
6158
|
try {
|
|
6160
|
-
await navigator.clipboard.writeText(
|
|
6159
|
+
await navigator.clipboard.writeText(te.value), C.value = !0, window.setTimeout(() => {
|
|
6161
6160
|
C.value = !1;
|
|
6162
6161
|
}, 2e3);
|
|
6163
6162
|
} catch {
|
|
@@ -6212,7 +6211,7 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
|
|
|
6212
6211
|
class: "tpl:min-w-[7rem] tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:py-1 tpl:text-sm disabled:tpl:cursor-not-allowed disabled:tpl:opacity-50",
|
|
6213
6212
|
disabled: d.value.frequency.showAgain.mode !== "interval",
|
|
6214
6213
|
value: d.value.frequency.showAgain.intervalUnit,
|
|
6215
|
-
onChange: n[4] ||= (e) =>
|
|
6214
|
+
onChange: n[4] ||= (e) => z(e)
|
|
6216
6215
|
}, [
|
|
6217
6216
|
S("option", Tm, a(A(o).popupDisplayRules.frequencyIntervalUnitMinutes), 1),
|
|
6218
6217
|
S("option", Em, a(A(o).popupDisplayRules.frequencyIntervalUnitHours), 1),
|
|
@@ -6256,7 +6255,7 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
|
|
|
6256
6255
|
class: "tpl:min-w-[12rem] tpl:max-w-full tpl:flex-1 tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-sm disabled:tpl:cursor-not-allowed disabled:tpl:opacity-50",
|
|
6257
6256
|
disabled: !d.value.frequency.stopShowing.afterClosedEnabled,
|
|
6258
6257
|
value: d.value.frequency.stopShowing.afterClosedBehavior,
|
|
6259
|
-
onChange: n[9] ||= (e) =>
|
|
6258
|
+
onChange: n[9] ||= (e) => B(e)
|
|
6260
6259
|
}, [S("option", Wm, a(A(o).popupDisplayRules.frequencyClosedNeverAgain), 1), S("option", Gm, a(A(o).popupDisplayRules.frequencyClosedRespectRules), 1)], 40, Um),
|
|
6261
6260
|
S("button", {
|
|
6262
6261
|
type: "button",
|
|
@@ -6451,13 +6450,13 @@ var Rp = ["aria-label"], zp = { class: "tpl-editor-tour-tooltip-body" }, Bp = {
|
|
|
6451
6450
|
S("div", zh, [S("h2", Bh, a(A(o).popupDisplayRules.debugJsonTitle), 1), S("div", Vh, [S("button", {
|
|
6452
6451
|
type: "button",
|
|
6453
6452
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]",
|
|
6454
|
-
onClick:
|
|
6453
|
+
onClick: ne
|
|
6455
6454
|
}, a(C.value ? A(o).popupDisplayRules.copyJsonDone : A(o).popupDisplayRules.copyJson), 1), S("button", {
|
|
6456
6455
|
type: "button",
|
|
6457
6456
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)]",
|
|
6458
6457
|
onClick: n[28] ||= (e) => _.value = !1
|
|
6459
6458
|
}, a(A(o).popupDisplayRules.debugJsonClose), 1)])]),
|
|
6460
|
-
S("pre", Hh, a(
|
|
6459
|
+
S("pre", Hh, a(te.value), 1),
|
|
6461
6460
|
S("p", Uh, a(A(o).popupDisplayRules.debugJsonHint), 1)
|
|
6462
6461
|
])], 8, Lh)) : h("", !0)]))], 64));
|
|
6463
6462
|
}
|
|
@@ -6489,7 +6488,7 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6489
6488
|
},
|
|
6490
6489
|
emits: ["update:modelValue"],
|
|
6491
6490
|
setup(e, { emit: n }) {
|
|
6492
|
-
let r = e, o = n, { t: s } = U(), l = y(!1), u = y(null), d = y(null), f = y((/* @__PURE__ */ new Date()).getFullYear()), m = y((/* @__PURE__ */ new Date()).getMonth()), { bottom: g, left: _, width: v, update: C } =
|
|
6491
|
+
let r = e, o = n, { t: s } = U(), l = y(!1), u = y(null), d = y(null), f = y((/* @__PURE__ */ new Date()).getFullYear()), m = y((/* @__PURE__ */ new Date()).getMonth()), { bottom: g, left: _, width: v, update: C } = He(u), E = D(() => ({
|
|
6493
6492
|
top: `${g.value + 4}px`,
|
|
6494
6493
|
left: `${_.value}px`,
|
|
6495
6494
|
width: `${Math.max(v.value, 268)}px`
|
|
@@ -6537,18 +6536,18 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6537
6536
|
});
|
|
6538
6537
|
return n;
|
|
6539
6538
|
}
|
|
6540
|
-
let
|
|
6539
|
+
let L = D(() => {
|
|
6541
6540
|
let e = [], t = new Date(2024, 0, 7);
|
|
6542
6541
|
for (let n = 0; n < 7; n++) {
|
|
6543
6542
|
let r = new Date(t);
|
|
6544
6543
|
r.setDate(t.getDate() + n), e.push(new Intl.DateTimeFormat(void 0, { weekday: "short" }).format(r));
|
|
6545
6544
|
}
|
|
6546
6545
|
return e;
|
|
6547
|
-
}),
|
|
6546
|
+
}), ee = D(() => new Intl.DateTimeFormat(void 0, {
|
|
6548
6547
|
month: "long",
|
|
6549
6548
|
year: "numeric"
|
|
6550
|
-
}).format(new Date(f.value, m.value, 1))),
|
|
6551
|
-
function
|
|
6549
|
+
}).format(new Date(f.value, m.value, 1))), R = D(() => I(f.value, m.value)), z = D(() => F());
|
|
6550
|
+
function B(e) {
|
|
6552
6551
|
let t = M(e);
|
|
6553
6552
|
return t ? new Intl.DateTimeFormat(void 0, {
|
|
6554
6553
|
year: "numeric",
|
|
@@ -6556,7 +6555,7 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6556
6555
|
day: "numeric"
|
|
6557
6556
|
}).format(new Date(t.y, t.m, t.d)) : e;
|
|
6558
6557
|
}
|
|
6559
|
-
function
|
|
6558
|
+
function te() {
|
|
6560
6559
|
let e = M(r.modelValue);
|
|
6561
6560
|
if (e) f.value = e.y, m.value = e.m;
|
|
6562
6561
|
else {
|
|
@@ -6564,30 +6563,30 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6564
6563
|
f.value = e.getFullYear(), m.value = e.getMonth();
|
|
6565
6564
|
}
|
|
6566
6565
|
}
|
|
6567
|
-
function
|
|
6566
|
+
function V() {
|
|
6568
6567
|
l.value = !l.value;
|
|
6569
6568
|
}
|
|
6570
6569
|
p(l, async (e) => {
|
|
6571
|
-
e && (
|
|
6572
|
-
}),
|
|
6570
|
+
e && (te(), await T(), await T(), C(), Gh(u.value, d.value));
|
|
6571
|
+
}), Ke(d, () => {
|
|
6573
6572
|
l.value = !1;
|
|
6574
|
-
}, { ignore: [u] }),
|
|
6573
|
+
}, { ignore: [u] }), We(window, "keydown", (e) => {
|
|
6575
6574
|
e.key === "Escape" && (l.value = !1);
|
|
6576
|
-
}),
|
|
6577
|
-
function
|
|
6575
|
+
}), We(window, "scroll", () => l.value && C(), { capture: !0 }), We(window, "resize", () => l.value && C());
|
|
6576
|
+
function ne() {
|
|
6578
6577
|
m.value === 0 ? (m.value = 11, f.value--) : m.value--;
|
|
6579
6578
|
}
|
|
6580
|
-
function
|
|
6579
|
+
function re() {
|
|
6581
6580
|
m.value === 11 ? (m.value = 0, f.value++) : m.value++;
|
|
6582
6581
|
}
|
|
6583
|
-
function
|
|
6582
|
+
function ie(e) {
|
|
6584
6583
|
o("update:modelValue", e), l.value = !1;
|
|
6585
6584
|
}
|
|
6586
|
-
function
|
|
6585
|
+
function H() {
|
|
6587
6586
|
o("update:modelValue", ""), l.value = !1;
|
|
6588
6587
|
}
|
|
6589
|
-
function
|
|
6590
|
-
|
|
6588
|
+
function ae() {
|
|
6589
|
+
ie(F());
|
|
6591
6590
|
}
|
|
6592
6591
|
return (n, r) => (c(), N(b, null, [S("div", Kh, [S("button", {
|
|
6593
6592
|
id: e.inputId,
|
|
@@ -6597,8 +6596,8 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6597
6596
|
class: "tpl:flex tpl:min-w-0 tpl:flex-1 tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-lg tpl:border-none tpl:bg-transparent tpl:px-3 tpl:py-2.5 tpl:text-left tpl:text-sm tpl:outline-none focus-visible:tpl:ring-2 focus-visible:tpl:ring-[var(--tpl-primary)] focus-visible:tpl:ring-offset-2 focus-visible:tpl:ring-offset-[var(--tpl-bg)]",
|
|
6598
6597
|
"aria-expanded": l.value,
|
|
6599
6598
|
"aria-haspopup": "dialog",
|
|
6600
|
-
onClick:
|
|
6601
|
-
}, [S("span", { class: t(e.modelValue ? "tpl:text-[var(--tpl-text)]" : "tpl:text-[var(--tpl-text-muted)]") }, a(e.modelValue ?
|
|
6599
|
+
onClick: V
|
|
6600
|
+
}, [S("span", { class: t(e.modelValue ? "tpl:text-[var(--tpl-text)]" : "tpl:text-[var(--tpl-text-muted)]") }, a(e.modelValue ? B(e.modelValue) : e.placeholder), 3), P(A(qt), {
|
|
6602
6601
|
size: 16,
|
|
6603
6602
|
"stroke-width": 1.5,
|
|
6604
6603
|
class: "tpl:ml-auto tpl:shrink-0 tpl:opacity-60",
|
|
@@ -6608,7 +6607,7 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6608
6607
|
type: "button",
|
|
6609
6608
|
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)]",
|
|
6610
6609
|
"aria-label": e.clearLabel,
|
|
6611
|
-
onClick:
|
|
6610
|
+
onClick: H
|
|
6612
6611
|
}, " × ", 8, Jh)) : h("", !0)]), (c(), x(k, { to: "body" }, [l.value ? (c(), N("div", {
|
|
6613
6612
|
key: 0,
|
|
6614
6613
|
ref_key: "popoverRef",
|
|
@@ -6624,43 +6623,43 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6624
6623
|
type: "button",
|
|
6625
6624
|
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)]",
|
|
6626
6625
|
"aria-label": A(s).popupSchedule.calendarPrevMonth,
|
|
6627
|
-
onClick:
|
|
6626
|
+
onClick: ne
|
|
6628
6627
|
}, [P(A(mt), {
|
|
6629
6628
|
size: 18,
|
|
6630
6629
|
"stroke-width": 1.75,
|
|
6631
6630
|
"aria-hidden": "true"
|
|
6632
6631
|
})], 8, Zh),
|
|
6633
|
-
S("span", Qh, a(
|
|
6632
|
+
S("span", Qh, a(ee.value), 1),
|
|
6634
6633
|
S("button", {
|
|
6635
6634
|
type: "button",
|
|
6636
6635
|
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)]",
|
|
6637
6636
|
"aria-label": A(s).popupSchedule.calendarNextMonth,
|
|
6638
|
-
onClick:
|
|
6637
|
+
onClick: re
|
|
6639
6638
|
}, [P(A(ht), {
|
|
6640
6639
|
size: 18,
|
|
6641
6640
|
"stroke-width": 1.75,
|
|
6642
6641
|
"aria-hidden": "true"
|
|
6643
6642
|
})], 8, $h)
|
|
6644
6643
|
]),
|
|
6645
|
-
S("div", eg, [(c(!0), N(b, null, i(
|
|
6644
|
+
S("div", eg, [(c(!0), N(b, null, i(L.value, (e, t) => (c(), N("span", {
|
|
6646
6645
|
key: `wd-${t}`,
|
|
6647
6646
|
class: "tpl:block tpl:text-center"
|
|
6648
6647
|
}, a(e), 1))), 128))]),
|
|
6649
|
-
S("div", tg, [(c(!0), N(b, null, i(
|
|
6648
|
+
S("div", tg, [(c(!0), N(b, null, i(R.value, (n, r) => (c(), N("button", {
|
|
6650
6649
|
key: `${n.iso}-${r}`,
|
|
6651
6650
|
type: "button",
|
|
6652
|
-
class: t(["tpl:flex tpl:h-9 tpl:w-full tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:text-sm tpl:outline-none focus-visible:tpl:ring-2 focus-visible:tpl:ring-[var(--tpl-primary)] focus-visible:tpl:ring-offset-2 focus-visible:tpl:ring-offset-[var(--tpl-bg)]", [n.inMonth ? "tpl:text-[var(--tpl-text)]" : "tpl:text-[var(--tpl-text-muted)] tpl:opacity-70", e.modelValue === n.iso ? "tpl:bg-[var(--tpl-primary)] tpl:font-medium tpl:text-white hover:tpl:bg-[var(--tpl-primary)]" : n.iso ===
|
|
6653
|
-
onClick: (e) =>
|
|
6651
|
+
class: t(["tpl:flex tpl:h-9 tpl:w-full tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:text-sm tpl:outline-none focus-visible:tpl:ring-2 focus-visible:tpl:ring-[var(--tpl-primary)] focus-visible:tpl:ring-offset-2 focus-visible:tpl:ring-offset-[var(--tpl-bg)]", [n.inMonth ? "tpl:text-[var(--tpl-text)]" : "tpl:text-[var(--tpl-text-muted)] tpl:opacity-70", e.modelValue === n.iso ? "tpl:bg-[var(--tpl-primary)] tpl:font-medium tpl:text-white hover:tpl:bg-[var(--tpl-primary)]" : n.iso === z.value ? "tpl:ring-1 tpl:ring-[var(--tpl-border)] tpl:ring-inset" : "hover:tpl:bg-[var(--tpl-bg-hover)]"]]),
|
|
6652
|
+
onClick: (e) => ie(n.iso)
|
|
6654
6653
|
}, a(n.day), 11, ng))), 128))]),
|
|
6655
6654
|
S("div", rg, [S("button", {
|
|
6656
6655
|
type: "button",
|
|
6657
6656
|
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)]",
|
|
6658
|
-
onClick:
|
|
6657
|
+
onClick: ae
|
|
6659
6658
|
}, a(A(s).popupSchedule.calendarToday), 1), e.modelValue ? (c(), N("button", {
|
|
6660
6659
|
key: 0,
|
|
6661
6660
|
type: "button",
|
|
6662
6661
|
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)]",
|
|
6663
|
-
onClick:
|
|
6662
|
+
onClick: H
|
|
6664
6663
|
}, a(A(s).popupSchedule.calendarClear), 1)) : h("", !0)])
|
|
6665
6664
|
], 12, Yh)) : h("", !0)]))], 64));
|
|
6666
6665
|
}
|
|
@@ -6722,10 +6721,10 @@ var Kh = { class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:rounded-lg tpl:bord
|
|
|
6722
6721
|
return e.includes("23:59") || e.push("23:59"), e;
|
|
6723
6722
|
}), v = D(() => {
|
|
6724
6723
|
let e = u.value.schedule.timeZone;
|
|
6725
|
-
return
|
|
6724
|
+
return ce.some((t) => t.id === e) ? [...ce] : [{
|
|
6726
6725
|
id: e,
|
|
6727
6726
|
label: e
|
|
6728
|
-
}, ...
|
|
6727
|
+
}, ...ce];
|
|
6729
6728
|
}), y = D(() => [
|
|
6730
6729
|
"everyday",
|
|
6731
6730
|
"monday",
|