@templatical/editor 0.0.6 → 0.1.1
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/LICENSE +56 -0
- package/README.md +69 -0
- package/dist/{AiChatSidebar-CNhSl_ty.js → AiChatSidebar-DgAjDWO1.js} +68 -68
- package/dist/{AiFeatureMenu-BFVsjUJY.js → AiFeatureMenu-j6oaiRVi.js} +25 -25
- package/dist/{CloudEditor-Bz5Xkxej.js → CloudEditor-yCOkIkZ-.js} +428 -437
- package/dist/{CollaboratorBar-D2Gu5Xj2.js → CollaboratorBar-CWVdp2Y6.js} +23 -23
- package/dist/CommentsSidebar-CSPHhbQH.js +439 -0
- package/dist/CountdownBlock-DK6P_RaQ.js +92 -0
- package/dist/CountdownToolbar-Dv-Sz4ui.js +210 -0
- package/dist/{DesignReferenceSidebar-u2tKSQK0.js → DesignReferenceSidebar-D7zfvux6.js} +58 -58
- package/dist/LoadingTrack-Cdz2SSq9.js +10 -0
- package/dist/ModuleBrowserModal-BLYuCZht.js +205 -0
- package/dist/ModulePreviewCanvas-CHYqP6K3.js +106 -0
- package/dist/NumberWithSuffix-D-5-AZc3.js +424 -0
- package/dist/{ParagraphEditor-CYrzYJO5.js → ParagraphEditor-DivLBNWv.js} +237 -236
- package/dist/{RichTextEditorContent-BeqlWlWB.js → RichTextEditorContent-G1lXgVJR.js} +42 -42
- package/dist/{SaveModuleDialog-Kde6X13X.js → SaveModuleDialog-DGVfiOmE.js} +29 -29
- package/dist/{SnapshotHistory-B3EfIcLW.js → SnapshotHistory-DM__MqSu.js} +38 -38
- package/dist/{TemplateScoringPanel-D2vCRGgx.js → TemplateScoringPanel-CW13Tlol.js} +80 -80
- package/dist/{TestEmailModal-Egk0DFDf.js → TestEmailModal-B8bYqWCY.js} +28 -28
- package/dist/TitleEditor-4Jrp3C4m.js +167 -0
- package/dist/{TplModal-BCruYWks.js → TplModal-BkoIz0oz.js} +14 -14
- package/dist/{_plugin-vue_export-helper-5TQrnOhO.js → _plugin-vue_export-helper-OO6pH1Dh.js} +11 -11
- package/dist/{blockTypeIcons-rW4BUUNC.js → blockTypeIcons-4AS3CvXn.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-Dcbshcfu.js → AiFeatureMenu-BcHyzTQy.js} +4 -4
- package/dist/cdn/chunks/{AiFeatureMenu-Dcbshcfu.js.map → AiFeatureMenu-BcHyzTQy.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-Bca3RyBW.js → CloudEditor-TaEZq-YW.js} +179 -188
- package/dist/cdn/chunks/CloudEditor-TaEZq-YW.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-sToKJfHi.js → CollaboratorBar-DbC5-3If.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-sToKJfHi.js.map → CollaboratorBar-DbC5-3If.js.map} +1 -1
- package/dist/cdn/chunks/CountdownBlock-CfPmCQ7j.js +93 -0
- package/dist/cdn/chunks/CountdownBlock-CfPmCQ7j.js.map +1 -0
- package/dist/cdn/chunks/CountdownToolbar-CB0EVxwN.js +212 -0
- package/dist/cdn/chunks/CountdownToolbar-CB0EVxwN.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-BNhwXbWw.js → ModuleBrowserModal-Df2fp9dj.js} +7 -7
- package/dist/cdn/chunks/{ModuleBrowserModal-BNhwXbWw.js.map → ModuleBrowserModal-Df2fp9dj.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DylUylPU.js → ModulePreviewCanvas-Dw1OCpvV.js} +19 -19
- package/dist/cdn/chunks/{ModulePreviewCanvas-DylUylPU.js.map → ModulePreviewCanvas-Dw1OCpvV.js.map} +1 -1
- package/dist/cdn/chunks/NumberWithSuffix-BU6ycXyG.js +425 -0
- package/dist/cdn/chunks/NumberWithSuffix-BU6ycXyG.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-BBw90y_p.js → ParagraphEditor-BMRNg_BX.js} +37 -37
- package/dist/cdn/chunks/{ParagraphEditor-BBw90y_p.js.map → ParagraphEditor-BMRNg_BX.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DvyIO3nR.js → RichTextEditorContent-BKYY1YMZ.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-DvyIO3nR.js.map → RichTextEditorContent-BKYY1YMZ.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-DvbSHvhF.js → SaveModuleDialog-D977Tg7t.js} +5 -5
- package/dist/cdn/chunks/{SaveModuleDialog-DvbSHvhF.js.map → SaveModuleDialog-D977Tg7t.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-tS3mgoVr.js → TitleEditor-q9IzNy38.js} +11 -11
- package/dist/cdn/chunks/{TitleEditor-tS3mgoVr.js.map → TitleEditor-q9IzNy38.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-DbnbyEQE.js → blockTypeIcons-L0fRc3qs.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-DbnbyEQE.js.map → blockTypeIcons-L0fRc3qs.js.map} +1 -1
- package/dist/cdn/chunks/{de-CgUR_S5I.js → de-3exf7MYE.js} +1 -1
- package/dist/cdn/chunks/{de-CgUR_S5I.js.map → de-3exf7MYE.js.map} +1 -1
- package/dist/cdn/chunks/{de-D8oDPhBD.js → de-C8LxVUsb.js} +1 -1
- package/dist/cdn/chunks/{de-D8oDPhBD.js.map → de-C8LxVUsb.js.map} +1 -1
- package/dist/cdn/chunks/{dist-BUmN5e4r.js → dist-D5g00M8N.js} +6 -2
- package/dist/cdn/chunks/dist-D5g00M8N.js.map +1 -0
- package/dist/cdn/chunks/{draggable-m78lz0gI.js → draggable-Bcb86AsV.js} +5 -5
- package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +1 -0
- package/dist/cdn/chunks/{emojiData-CNNgvDqx.js → emojiData-DUHzsh4j.js} +1 -1
- package/dist/cdn/chunks/{emojiData-CNNgvDqx.js.map → emojiData-DUHzsh4j.js.map} +1 -1
- package/dist/cdn/chunks/{en-HseRPPeK.js → en-BoEycuqw.js} +1 -1
- package/dist/cdn/chunks/{en-HseRPPeK.js.map → en-BoEycuqw.js.map} +1 -1
- package/dist/cdn/chunks/{en-BBmfBDqY.js → en-KNPUKxYp.js} +1 -1
- package/dist/cdn/chunks/{en-BBmfBDqY.js.map → en-KNPUKxYp.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-ClpY3m0W.js → extensions-BZ1POyiv.js} +11 -11
- package/dist/cdn/chunks/{extensions-ClpY3m0W.js.map → extensions-BZ1POyiv.js.map} +1 -1
- package/dist/cdn/chunks/{features-B5dGxWLi.js → features-Ccqmm6-M.js} +549 -627
- package/dist/cdn/chunks/features-Ccqmm6-M.js.map +1 -0
- package/dist/cdn/chunks/{icons-hflTyPmb.js → icons-x53__2GC.js} +8 -8
- package/dist/cdn/chunks/icons-x53__2GC.js.map +1 -0
- package/dist/cdn/chunks/{liquid.browser-BxyRVCKv.js → liquid.browser-CEMn-ZqL.js} +2 -2
- package/dist/cdn/chunks/liquid.browser-CEMn-ZqL.js.map +1 -0
- package/dist/cdn/chunks/{media-library-Dgy-V-JA.js → media-library-DUoQk-w7.js} +97 -97
- package/dist/cdn/chunks/media-library-DUoQk-w7.js.map +1 -0
- package/dist/cdn/chunks/{pusher-D-m2WSdL.js → pusher-DwSQn6BA.js} +2 -2
- package/dist/cdn/chunks/pusher-DwSQn6BA.js.map +1 -0
- package/dist/cdn/chunks/{src-TDwMmqm0.js → src-DskCIAr8.js} +8 -8
- package/dist/cdn/chunks/{src-TDwMmqm0.js.map → src-DskCIAr8.js.map} +1 -1
- package/dist/cdn/chunks/{styleConstants-DFe3I4Op.js → styleConstants-DP1VOca8.js} +1 -1
- package/dist/cdn/chunks/{styleConstants-DFe3I4Op.js.map → styleConstants-DP1VOca8.js.map} +1 -1
- package/dist/cdn/chunks/{styles-hCOCOR6K.js → styles-BIlpNe52.js} +622 -1238
- package/dist/cdn/chunks/styles-BIlpNe52.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-C28NLMX8.js → tiptap-hPC_BgDO.js} +850 -826
- package/dist/cdn/chunks/tiptap-hPC_BgDO.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +92 -97
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-B5S-C0bz.js → check-Bff5NzCh.js} +1 -1
- package/dist/{chevron-down-CjsV1T0W.js → chevron-down-Bbv4SJwx.js} +1 -1
- package/dist/{circle-alert-CVTmJHKW.js → circle-alert-Dpr8MgkR.js} +1 -1
- package/dist/{clock-CAjdSHBy.js → clock-raVPKfl4.js} +1 -1
- package/dist/{dist-DJrDTuRr.js → dist-BHgEdO-M.js} +1001 -983
- package/dist/dist-BibwE8Y0.js +5 -0
- package/dist/{dist-DPM-DFvh.js → dist-BnlZ_HwX.js} +340 -340
- package/dist/{dist-BTtKPcd2.js → dist-C9yhcxsf.js} +2 -2
- package/dist/{dist-COguaIvm.js → dist-CGffNO8z.js} +2 -2
- package/dist/dist-CfGpCUSx.js +5 -0
- package/dist/{dist-COOFiBFV.js → dist-Chd-H2S3.js} +5 -5
- package/dist/{dist-DfqLGwSF.js → dist-Cq0OFLMj.js} +2 -2
- package/dist/{dist-B4LTlrAn.js → dist-D42og5Sc.js} +191 -185
- package/dist/{dist-CBr-qhie.js → dist-Owxo48fF.js} +2 -2
- package/dist/{dist-Crqkuf-w.js → dist-UZ8UzVZ-.js} +15 -15
- package/dist/dist-n0PkFNGl.js +314 -0
- package/dist/{dist-DHYuVJ_7.js → dist-skgH9dyo.js} +2 -2
- package/dist/{extensions-C6xp_B7K.js → extensions-DQKaICBH.js} +81 -81
- package/dist/{image-up-vZa1Txr-.js → image-up-B1AEiHCh.js} +1 -1
- package/dist/index.d.ts +17 -6
- package/dist/{keys-C0MQRs8d.js → keys-CIw9mUI2.js} +1 -1
- package/dist/{liquid.browser-C02owkex.js → liquid.browser-Bm53dnK1.js} +1 -1
- package/dist/{loader-circle-DilFjHSk.js → loader-circle-BYeKJ3to.js} +1 -1
- package/dist/{message-circle-Dpcnc2oa.js → message-circle-PhNlI7e7.js} +1 -1
- package/dist/{refresh-cw-4r7rkHHX.js → refresh-cw-DhDYRBDd.js} +1 -1
- package/dist/{rolldown-runtime-gEudmnaM.js → rolldown-runtime-BZGGJVDF.js} +2 -5
- package/dist/{scan-line-684IxPQ0.js → scan-line-Bw8bauvt.js} +1 -1
- package/dist/{send-ChDw64yL.js → send-CJPSzbLO.js} +1 -1
- package/dist/{shield-check-9dhLdyST.js → shield-check-DdEvVYMH.js} +1 -1
- package/dist/{sparkles-Co9fkDcv.js → sparkles-DT_27AYs.js} +1 -1
- package/dist/style.css +2 -0
- package/dist/{styleConstants-RV3eYwkD.js → styleConstants-Dqz9z3aa.js} +6 -45
- package/dist/styles-tcwlvlEB.js +2942 -0
- package/dist/templatical-editor.js +114 -119
- package/dist/text-align-start-4Hx15GUf.js +43 -0
- package/dist/{trash-2-CZkMtjeC.js → trash-2-BY-xp5hg.js} +1 -1
- package/dist/{triangle-alert-Dvt51agD.js → triangle-alert-DG72vdb2.js} +1 -1
- package/dist/useEditorCore-DMH2QpUL.js +8946 -0
- package/dist/{useI18n-D6m7ZUgY.js → useI18n-B8CN2iWs.js} +4 -4
- package/dist/{useMergeTag-CSXcnFBc.js → useMergeTag-Dz_Dx2Jz.js} +3 -3
- package/dist/vue.runtime.esm-bundler-DryoQb-v.js +5775 -0
- package/dist/{x-CU2XZOkQ.js → x-D-7GkO6Z.js} +1 -1
- package/package.json +31 -15
- package/dist/CommentsSidebar-CTeEAZTj.js +0 -439
- package/dist/LoadingTrack--aUassFH.js +0 -10
- package/dist/ModuleBrowserModal-DNxODPlX.js +0 -205
- package/dist/ModulePreviewCanvas-DnGe1Y-2.js +0 -106
- package/dist/TitleEditor-DwUpo4gF.js +0 -167
- package/dist/cdn/chunks/CloudEditor-Bca3RyBW.js.map +0 -1
- package/dist/cdn/chunks/dist-BUmN5e4r.js.map +0 -1
- package/dist/cdn/chunks/draggable-m78lz0gI.js.map +0 -1
- package/dist/cdn/chunks/features-B5dGxWLi.js.map +0 -1
- package/dist/cdn/chunks/icons-hflTyPmb.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-BxyRVCKv.js.map +0 -1
- package/dist/cdn/chunks/media-library-Dgy-V-JA.js.map +0 -1
- package/dist/cdn/chunks/pusher-D-m2WSdL.js.map +0 -1
- package/dist/cdn/chunks/styles-hCOCOR6K.js.map +0 -1
- package/dist/cdn/chunks/tiptap-C28NLMX8.js.map +0 -1
- package/dist/dist-Ac4o1O4a.js +0 -314
- package/dist/dist-DEJZ9iAU.js +0 -5
- package/dist/dist-DmVOCJjI.js +0 -5
- package/dist/styles-nvxFh6L6.js +0 -3557
- package/dist/templatical-editor.css +0 -2
- package/dist/templatical-editor.umd.cjs +0 -178
- package/dist/useEditorCore-ColJh1ST.js +0 -5695
- /package/dist/cdn/chunks/{_rolldown_dynamic_import_helper-DMEI4TQ3.js → _rolldown_dynamic_import_helper-BRcA6nWq.js} +0 -0
- /package/dist/{de-Dh8ON-dm.js → de-CN0xu_Tp.js} +0 -0
- /package/dist/{emojiData-Qc8mH_zW.js → emojiData-CwKEDxVf.js} +0 -0
- /package/dist/{en-C7IShRSD.js → en-DXvHkaUF.js} +0 -0
- /package/dist/{formatRelativeTime-D8f6NR7i.js → formatRelativeTime-BSpx5DHC.js} +0 -0
- /package/dist/{readableTextColor-B809bF5J.js → readableTextColor-CYCxm1jQ.js} +0 -0
- /package/dist/{timeouts-CmBrLeZA.js → timeouts-BSGxjuUF.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, r as t } from "./rolldown-runtime-BNuo_Jkg.js";
|
|
2
|
-
import { $ as n, A as r, B as i, C as a, E as o, F as s, H as c, I as l, J as u, K as d, N as f, P as p, Q as m, R as h, S as g, T as _, U as v, V as y, W as b, X as x, Z as S, _ as C, at as w, b as T, c as E, ct as D, d as O, et as k, f as ee, g as A, h as j, i as te, it as ne, j as re, k as ie, l as ae, lt as M, m as N, n as oe, nt as se, o as ce, ot as le, p as P, q as ue, rt as F, s as de, st as I, t as fe, tt as L, u as R, w as pe, x as me, y as z } from "./draggable-
|
|
2
|
+
import { $ as n, A as r, B as i, C as a, E as o, F as s, H as c, I as l, J as u, K as d, N as f, P as p, Q as m, R as h, S as g, T as _, U as v, V as y, W as b, X as x, Z as S, _ as C, at as w, b as T, c as E, ct as D, d as O, et as k, f as ee, g as A, h as j, i as te, it as ne, j as re, k as ie, l as ae, lt as M, m as N, n as oe, nt as se, o as ce, ot as le, p as P, q as ue, rt as F, s as de, st as I, t as fe, tt as L, u as R, w as pe, x as me, y as z } from "./draggable-Bcb86AsV.js";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/constants/timeouts.ts
|
|
5
5
|
te(), ue();
|
|
@@ -732,7 +732,7 @@ function Pt(e, t) {
|
|
|
732
732
|
};
|
|
733
733
|
}
|
|
734
734
|
//#endregion
|
|
735
|
-
//#region ../../node_modules/.
|
|
735
|
+
//#region ../../node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.33_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
736
736
|
function Ft(e, t) {
|
|
737
737
|
return d() ? (x(e, t), !0) : !1;
|
|
738
738
|
}
|
|
@@ -873,7 +873,7 @@ function rn(e, t, n) {
|
|
|
873
873
|
});
|
|
874
874
|
}
|
|
875
875
|
//#endregion
|
|
876
|
-
//#region ../../node_modules/.
|
|
876
|
+
//#region ../../node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.33_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
|
|
877
877
|
var an = zt ? window : void 0, on = zt ? window.document : void 0, sn = zt ? window.navigator : void 0;
|
|
878
878
|
function W(e) {
|
|
879
879
|
let t = F(e);
|
|
@@ -1490,7 +1490,7 @@ function nr() {
|
|
|
1490
1490
|
let t = o(e.customType);
|
|
1491
1491
|
if (!t) return s("Block definition not found");
|
|
1492
1492
|
try {
|
|
1493
|
-
let { Liquid: n } = await import("./liquid.browser-
|
|
1493
|
+
let { Liquid: n } = await import("./liquid.browser-CEMn-ZqL.js");
|
|
1494
1494
|
return await new n({
|
|
1495
1495
|
strictVariables: !1,
|
|
1496
1496
|
strictFilters: !1
|
|
@@ -1649,94 +1649,10 @@ var sr = { class: "tpl:text-center" }, cr = ["href"], lr = /* @__PURE__ */ g({
|
|
|
1649
1649
|
onClick: r[0] ||= R(() => {}, ["prevent"])
|
|
1650
1650
|
}, M(e.block.text), 13, cr)]));
|
|
1651
1651
|
}
|
|
1652
|
-
}), ur = {
|
|
1653
|
-
|
|
1654
|
-
class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-8 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
1655
|
-
}, dr = {
|
|
1656
|
-
key: 1,
|
|
1657
|
-
class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-4 tpl:text-xs tpl:text-[var(--tpl-text-dim)] tpl:opacity-50"
|
|
1658
|
-
}, fr = { class: "tpl:text-center" }, pr = /* @__PURE__ */ g({
|
|
1659
|
-
__name: "CountdownBlock",
|
|
1660
|
-
props: {
|
|
1661
|
-
block: {},
|
|
1662
|
-
viewport: {}
|
|
1663
|
-
},
|
|
1664
|
-
setup(e) {
|
|
1665
|
-
let t = e, { t: r } = J(), i = n(Date.now());
|
|
1666
|
-
en(() => {
|
|
1667
|
-
i.value = Date.now();
|
|
1668
|
-
}, 1e3);
|
|
1669
|
-
let a = P(() => {
|
|
1670
|
-
if (!t.block.targetDate) return null;
|
|
1671
|
-
let e = new Date(t.block.targetDate);
|
|
1672
|
-
return isNaN(e.getTime()) ? null : e.getTime();
|
|
1673
|
-
}), o = P(() => a.value ? i.value >= a.value : !1), c = P(() => {
|
|
1674
|
-
if (!a.value || o.value) return {
|
|
1675
|
-
days: 0,
|
|
1676
|
-
hours: 0,
|
|
1677
|
-
minutes: 0,
|
|
1678
|
-
seconds: 0
|
|
1679
|
-
};
|
|
1680
|
-
let e = a.value - i.value, t = Math.floor(e / 1e3);
|
|
1681
|
-
return {
|
|
1682
|
-
days: Math.floor(t / 86400),
|
|
1683
|
-
hours: Math.floor(t % 86400 / 3600),
|
|
1684
|
-
minutes: Math.floor(t % 3600 / 60),
|
|
1685
|
-
seconds: t % 60
|
|
1686
|
-
};
|
|
1687
|
-
}), l = P(() => {
|
|
1688
|
-
let e = [];
|
|
1689
|
-
return t.block.showDays && e.push({
|
|
1690
|
-
value: String(c.value.days).padStart(2, "0"),
|
|
1691
|
-
label: t.block.labelDays
|
|
1692
|
-
}), t.block.showHours && e.push({
|
|
1693
|
-
value: String(c.value.hours).padStart(2, "0"),
|
|
1694
|
-
label: t.block.labelHours
|
|
1695
|
-
}), t.block.showMinutes && e.push({
|
|
1696
|
-
value: String(c.value.minutes).padStart(2, "0"),
|
|
1697
|
-
label: t.block.labelMinutes
|
|
1698
|
-
}), t.block.showSeconds && e.push({
|
|
1699
|
-
value: String(c.value.seconds).padStart(2, "0"),
|
|
1700
|
-
label: t.block.labelSeconds
|
|
1701
|
-
}), e;
|
|
1702
|
-
}), u = P(() => ({
|
|
1703
|
-
backgroundColor: t.block.backgroundColor,
|
|
1704
|
-
fontFamily: t.block.fontFamily || "inherit"
|
|
1705
|
-
})), d = P(() => ({
|
|
1706
|
-
fontSize: `${t.block.digitFontSize}px`,
|
|
1707
|
-
fontWeight: "bold",
|
|
1708
|
-
color: t.block.digitColor,
|
|
1709
|
-
lineHeight: "1.2"
|
|
1710
|
-
})), p = P(() => ({
|
|
1711
|
-
fontSize: `${t.block.labelFontSize}px`,
|
|
1712
|
-
color: t.block.labelColor,
|
|
1713
|
-
marginTop: "4px"
|
|
1714
|
-
})), m = P(() => ({
|
|
1715
|
-
fontSize: `${t.block.digitFontSize}px`,
|
|
1716
|
-
color: t.block.digitColor,
|
|
1717
|
-
fontFamily: t.block.fontFamily || "inherit"
|
|
1718
|
-
}));
|
|
1719
|
-
return (t, n) => e.block.targetDate ? o.value && e.block.hideOnExpiry ? (f(), C("div", dr, M(w(r).countdown.hidden), 1)) : o.value ? (f(), C("div", {
|
|
1720
|
-
key: 2,
|
|
1721
|
-
style: D(u.value),
|
|
1722
|
-
class: "tpl:py-4 tpl:text-center"
|
|
1723
|
-
}, [N("span", { style: D({
|
|
1724
|
-
fontSize: `${e.block.digitFontSize}px`,
|
|
1725
|
-
color: e.block.digitColor
|
|
1726
|
-
}) }, M(e.block.expiredMessage), 5)], 4)) : (f(), C("div", {
|
|
1727
|
-
key: 3,
|
|
1728
|
-
style: D(u.value),
|
|
1729
|
-
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:py-4"
|
|
1730
|
-
}, [(f(!0), C(O, null, s(l.value, (t, n) => (f(), C(O, { key: t.label }, [n > 0 ? (f(), C("span", {
|
|
1731
|
-
key: 0,
|
|
1732
|
-
style: D(m.value),
|
|
1733
|
-
class: "tpl:self-start"
|
|
1734
|
-
}, M(e.block.separator), 5)) : A("", !0), N("div", fr, [N("div", { style: D(d.value) }, M(t.value), 5), N("div", { style: D(p.value) }, M(t.label), 5)])], 64))), 128))], 4)) : (f(), C("div", ur, M(w(r).countdown.setDate), 1));
|
|
1735
|
-
}
|
|
1736
|
-
}), mr = (e) => e === "", hr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), gr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), _r = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), vr = (e) => {
|
|
1737
|
-
let t = _r(e);
|
|
1652
|
+
}), ur = (e) => e === "", dr = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), fr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), pr = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), mr = (e) => {
|
|
1653
|
+
let t = pr(e);
|
|
1738
1654
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
1739
|
-
},
|
|
1655
|
+
}, hr = {
|
|
1740
1656
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1741
1657
|
width: 24,
|
|
1742
1658
|
height: 24,
|
|
@@ -1746,35 +1662,35 @@ var sr = { class: "tpl:text-center" }, cr = ["href"], lr = /* @__PURE__ */ g({
|
|
|
1746
1662
|
"stroke-width": 2,
|
|
1747
1663
|
"stroke-linecap": "round",
|
|
1748
1664
|
"stroke-linejoin": "round"
|
|
1749
|
-
},
|
|
1750
|
-
function
|
|
1751
|
-
return o(
|
|
1665
|
+
}, gr = Symbol("lucide-icons");
|
|
1666
|
+
function _r() {
|
|
1667
|
+
return o(gr, {});
|
|
1752
1668
|
}
|
|
1753
1669
|
//#endregion
|
|
1754
|
-
//#region ../../node_modules/.
|
|
1755
|
-
var
|
|
1756
|
-
let { size: u, color: d, strokeWidth: f = 2, absoluteStrokeWidth: p = !1, class: m = "" } =
|
|
1757
|
-
let e =
|
|
1758
|
-
return e ? Number(t) * 24 / Number(o ?? u ??
|
|
1670
|
+
//#region ../../node_modules/.pnpm/@lucide+vue@1.14.0_vue@3.5.33_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/Icon.mjs
|
|
1671
|
+
var vr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width": r, strokeWidth: i, "stroke-width": a, size: o, color: s, ...c }, { slots: l }) => {
|
|
1672
|
+
let { size: u, color: d, strokeWidth: f = 2, absoluteStrokeWidth: p = !1, class: m = "" } = _r(), h = P(() => {
|
|
1673
|
+
let e = ur(n) || ur(r) || n === !0 || r === !0 || p === !0, t = i || a || f || hr["stroke-width"];
|
|
1674
|
+
return e ? Number(t) * 24 / Number(o ?? u ?? hr.width) : t;
|
|
1759
1675
|
});
|
|
1760
1676
|
return pe("svg", {
|
|
1761
|
-
...
|
|
1677
|
+
...hr,
|
|
1762
1678
|
...c,
|
|
1763
|
-
width: o ?? u ??
|
|
1764
|
-
height: o ?? u ??
|
|
1765
|
-
stroke: s ?? d ??
|
|
1679
|
+
width: o ?? u ?? hr.width,
|
|
1680
|
+
height: o ?? u ?? hr.height,
|
|
1681
|
+
stroke: s ?? d ?? hr.stroke,
|
|
1766
1682
|
"stroke-width": h.value,
|
|
1767
|
-
class:
|
|
1683
|
+
class: dr("lucide", m, ...e ? [`lucide-${fr(mr(e))}-icon`, `lucide-${fr(e)}`] : ["lucide-icon"])
|
|
1768
1684
|
}, [...t.map((e) => pe(...e)), ...l.default ? [l.default()] : []]);
|
|
1769
|
-
}, Y = (e, t) => (n, { slots: r, attrs: i }) => pe(
|
|
1685
|
+
}, Y = (e, t) => (n, { slots: r, attrs: i }) => pe(vr, {
|
|
1770
1686
|
...i,
|
|
1771
1687
|
...n,
|
|
1772
1688
|
iconNode: t,
|
|
1773
1689
|
name: e
|
|
1774
|
-
}, r),
|
|
1690
|
+
}, r), yr = Y("bookmark", [["path", {
|
|
1775
1691
|
d: "M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",
|
|
1776
1692
|
key: "oz39mx"
|
|
1777
|
-
}]]),
|
|
1693
|
+
}]]), br = Y("box", [
|
|
1778
1694
|
["path", {
|
|
1779
1695
|
d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
|
|
1780
1696
|
key: "hh9hay"
|
|
@@ -1787,22 +1703,22 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
1787
1703
|
d: "M12 22V12",
|
|
1788
1704
|
key: "d0xqtd"
|
|
1789
1705
|
}]
|
|
1790
|
-
]),
|
|
1706
|
+
]), xr = Y("check", [["path", {
|
|
1791
1707
|
d: "M20 6 9 17l-5-5",
|
|
1792
1708
|
key: "1gmf2c"
|
|
1793
|
-
}]]),
|
|
1709
|
+
}]]), Sr = Y("chevron-down", [["path", {
|
|
1794
1710
|
d: "m6 9 6 6 6-6",
|
|
1795
1711
|
key: "qrunsl"
|
|
1796
|
-
}]]),
|
|
1712
|
+
}]]), Cr = Y("chevron-left", [["path", {
|
|
1797
1713
|
d: "m15 18-6-6 6-6",
|
|
1798
1714
|
key: "1wnfg3"
|
|
1799
|
-
}]]),
|
|
1715
|
+
}]]), wr = Y("chevron-right", [["path", {
|
|
1800
1716
|
d: "m9 18 6-6-6-6",
|
|
1801
1717
|
key: "mthhwq"
|
|
1802
|
-
}]]),
|
|
1718
|
+
}]]), Tr = Y("chevron-up", [["path", {
|
|
1803
1719
|
d: "m18 15-6-6-6 6",
|
|
1804
1720
|
key: "153udz"
|
|
1805
|
-
}]]),
|
|
1721
|
+
}]]), Er = Y("circle-alert", [
|
|
1806
1722
|
["circle", {
|
|
1807
1723
|
cx: "12",
|
|
1808
1724
|
cy: "12",
|
|
@@ -1823,7 +1739,7 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
1823
1739
|
y2: "16",
|
|
1824
1740
|
key: "4dfq90"
|
|
1825
1741
|
}]
|
|
1826
|
-
]),
|
|
1742
|
+
]), Dr = Y("circle-check", [["circle", {
|
|
1827
1743
|
cx: "12",
|
|
1828
1744
|
cy: "12",
|
|
1829
1745
|
r: "10",
|
|
@@ -1831,7 +1747,7 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
1831
1747
|
}], ["path", {
|
|
1832
1748
|
d: "m9 12 2 2 4-4",
|
|
1833
1749
|
key: "dzmm74"
|
|
1834
|
-
}]]),
|
|
1750
|
+
}]]), Or = Y("clock", [["circle", {
|
|
1835
1751
|
cx: "12",
|
|
1836
1752
|
cy: "12",
|
|
1837
1753
|
r: "10",
|
|
@@ -1839,13 +1755,13 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
1839
1755
|
}], ["path", {
|
|
1840
1756
|
d: "M12 6v6l4 2",
|
|
1841
1757
|
key: "mmk7yg"
|
|
1842
|
-
}]]),
|
|
1758
|
+
}]]), kr = Y("code", [["path", {
|
|
1843
1759
|
d: "m16 18 6-6-6-6",
|
|
1844
1760
|
key: "eg8j8"
|
|
1845
1761
|
}], ["path", {
|
|
1846
1762
|
d: "m8 6-6 6 6 6",
|
|
1847
1763
|
key: "ppft3o"
|
|
1848
|
-
}]]),
|
|
1764
|
+
}]]), Ar = Y("copy", [["rect", {
|
|
1849
1765
|
width: "14",
|
|
1850
1766
|
height: "14",
|
|
1851
1767
|
x: "8",
|
|
@@ -1856,7 +1772,7 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
1856
1772
|
}], ["path", {
|
|
1857
1773
|
d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
|
|
1858
1774
|
key: "zix9uf"
|
|
1859
|
-
}]]),
|
|
1775
|
+
}]]), jr = Y("eye-off", [
|
|
1860
1776
|
["path", {
|
|
1861
1777
|
d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
|
|
1862
1778
|
key: "ct8e1f"
|
|
@@ -1873,7 +1789,7 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
1873
1789
|
d: "m2 2 20 20",
|
|
1874
1790
|
key: "1ooewy"
|
|
1875
1791
|
}]
|
|
1876
|
-
]),
|
|
1792
|
+
]), Mr = Y("eye", [["path", {
|
|
1877
1793
|
d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
|
|
1878
1794
|
key: "1nclc0"
|
|
1879
1795
|
}], ["circle", {
|
|
@@ -1881,7 +1797,7 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
1881
1797
|
cy: "12",
|
|
1882
1798
|
r: "3",
|
|
1883
1799
|
key: "1v7zrd"
|
|
1884
|
-
}]]),
|
|
1800
|
+
}]]), Nr = Y("file-image", [
|
|
1885
1801
|
["path", {
|
|
1886
1802
|
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
1887
1803
|
key: "1oefj6"
|
|
@@ -1900,7 +1816,7 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
1900
1816
|
d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",
|
|
1901
1817
|
key: "wt3hpn"
|
|
1902
1818
|
}]
|
|
1903
|
-
]),
|
|
1819
|
+
]), Pr = Y("file-text", [
|
|
1904
1820
|
["path", {
|
|
1905
1821
|
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
1906
1822
|
key: "1oefj6"
|
|
@@ -1921,10 +1837,10 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
1921
1837
|
d: "M16 17H8",
|
|
1922
1838
|
key: "z1uh3a"
|
|
1923
1839
|
}]
|
|
1924
|
-
]),
|
|
1840
|
+
]), Fr = Y("funnel", [["path", {
|
|
1925
1841
|
d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
|
|
1926
1842
|
key: "sc7q7i"
|
|
1927
|
-
}]]),
|
|
1843
|
+
}]]), Ir = Y("grip-vertical", [
|
|
1928
1844
|
["circle", {
|
|
1929
1845
|
cx: "9",
|
|
1930
1846
|
cy: "12",
|
|
@@ -1961,7 +1877,7 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
1961
1877
|
r: "1",
|
|
1962
1878
|
key: "f4zoj3"
|
|
1963
1879
|
}]
|
|
1964
|
-
]),
|
|
1880
|
+
]), Lr = Y("image-up", [
|
|
1965
1881
|
["path", {
|
|
1966
1882
|
d: "M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",
|
|
1967
1883
|
key: "9csbqa"
|
|
@@ -1980,7 +1896,7 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
1980
1896
|
r: "2",
|
|
1981
1897
|
key: "af1f0g"
|
|
1982
1898
|
}]
|
|
1983
|
-
]),
|
|
1899
|
+
]), Rr = Y("image", [
|
|
1984
1900
|
["rect", {
|
|
1985
1901
|
width: "18",
|
|
1986
1902
|
height: "18",
|
|
@@ -2000,7 +1916,7 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
2000
1916
|
d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
|
|
2001
1917
|
key: "1xmnt7"
|
|
2002
1918
|
}]
|
|
2003
|
-
]),
|
|
1919
|
+
]), zr = Y("info", [
|
|
2004
1920
|
["circle", {
|
|
2005
1921
|
cx: "12",
|
|
2006
1922
|
cy: "12",
|
|
@@ -2015,31 +1931,31 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
2015
1931
|
d: "M12 8h.01",
|
|
2016
1932
|
key: "e9boi3"
|
|
2017
1933
|
}]
|
|
2018
|
-
]),
|
|
1934
|
+
]), Br = Y("loader-circle", [["path", {
|
|
2019
1935
|
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
2020
1936
|
key: "13zald"
|
|
2021
|
-
}]]),
|
|
1937
|
+
}]]), Vr = Y("message-circle", [["path", {
|
|
2022
1938
|
d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",
|
|
2023
1939
|
key: "1sd12s"
|
|
2024
|
-
}]]),
|
|
1940
|
+
}]]), Hr = Y("navigation", [["polygon", {
|
|
2025
1941
|
points: "3 11 22 2 13 21 11 13 3 11",
|
|
2026
1942
|
key: "1ltx0t"
|
|
2027
|
-
}]]),
|
|
1943
|
+
}]]), Ur = Y("pencil", [["path", {
|
|
2028
1944
|
d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
|
|
2029
1945
|
key: "1a8usu"
|
|
2030
1946
|
}], ["path", {
|
|
2031
1947
|
d: "m15 5 4 4",
|
|
2032
1948
|
key: "1mk7zo"
|
|
2033
|
-
}]]),
|
|
1949
|
+
}]]), Wr = Y("puzzle", [["path", {
|
|
2034
1950
|
d: "M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",
|
|
2035
1951
|
key: "w46dr5"
|
|
2036
|
-
}]]),
|
|
1952
|
+
}]]), Gr = Y("redo-2", [["path", {
|
|
2037
1953
|
d: "m15 14 5-5-5-5",
|
|
2038
1954
|
key: "12vg1m"
|
|
2039
1955
|
}], ["path", {
|
|
2040
1956
|
d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",
|
|
2041
1957
|
key: "6uklza"
|
|
2042
|
-
}]]),
|
|
1958
|
+
}]]), Kr = Y("refresh-cw", [
|
|
2043
1959
|
["path", {
|
|
2044
1960
|
d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",
|
|
2045
1961
|
key: "v9h5vc"
|
|
@@ -2056,19 +1972,19 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
2056
1972
|
d: "M8 16H3v5",
|
|
2057
1973
|
key: "1cv678"
|
|
2058
1974
|
}]
|
|
2059
|
-
]),
|
|
1975
|
+
]), qr = Y("reply", [["path", {
|
|
2060
1976
|
d: "M20 18v-2a4 4 0 0 0-4-4H4",
|
|
2061
1977
|
key: "5vmcpk"
|
|
2062
1978
|
}], ["path", {
|
|
2063
1979
|
d: "m9 17-5-5 5-5",
|
|
2064
1980
|
key: "nvlc11"
|
|
2065
|
-
}]]),
|
|
1981
|
+
}]]), Jr = Y("send", [["path", {
|
|
2066
1982
|
d: "M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",
|
|
2067
1983
|
key: "1ffxy3"
|
|
2068
1984
|
}], ["path", {
|
|
2069
1985
|
d: "m21.854 2.147-10.94 10.939",
|
|
2070
1986
|
key: "12cjpa"
|
|
2071
|
-
}]]),
|
|
1987
|
+
}]]), Yr = Y("share-2", [
|
|
2072
1988
|
["circle", {
|
|
2073
1989
|
cx: "18",
|
|
2074
1990
|
cy: "5",
|
|
@@ -2101,13 +2017,13 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
2101
2017
|
y2: "10.49",
|
|
2102
2018
|
key: "1n3mei"
|
|
2103
2019
|
}]
|
|
2104
|
-
]),
|
|
2020
|
+
]), Xr = Y("shield-check", [["path", {
|
|
2105
2021
|
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
2106
2022
|
key: "oel41y"
|
|
2107
2023
|
}], ["path", {
|
|
2108
2024
|
d: "m9 12 2 2 4-4",
|
|
2109
2025
|
key: "dzmm74"
|
|
2110
|
-
}]]),
|
|
2026
|
+
}]]), Zr = Y("shield-x", [
|
|
2111
2027
|
["path", {
|
|
2112
2028
|
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
2113
2029
|
key: "oel41y"
|
|
@@ -2120,7 +2036,7 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
2120
2036
|
d: "m9.5 9.5 5 5",
|
|
2121
2037
|
key: "18nt4w"
|
|
2122
2038
|
}]
|
|
2123
|
-
]),
|
|
2039
|
+
]), Qr = Y("sparkles", [
|
|
2124
2040
|
["path", {
|
|
2125
2041
|
d: "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",
|
|
2126
2042
|
key: "1s2grr"
|
|
@@ -2139,7 +2055,7 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
2139
2055
|
r: "2",
|
|
2140
2056
|
key: "6kqj1y"
|
|
2141
2057
|
}]
|
|
2142
|
-
]),
|
|
2058
|
+
]), $r = Y("table", [
|
|
2143
2059
|
["path", {
|
|
2144
2060
|
d: "M12 3v18",
|
|
2145
2061
|
key: "108xh3"
|
|
@@ -2160,7 +2076,7 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
2160
2076
|
d: "M3 15h18",
|
|
2161
2077
|
key: "5xshup"
|
|
2162
2078
|
}]
|
|
2163
|
-
]),
|
|
2079
|
+
]), ei = Y("trash-2", [
|
|
2164
2080
|
["path", {
|
|
2165
2081
|
d: "M10 11v6",
|
|
2166
2082
|
key: "nco0om"
|
|
@@ -2181,7 +2097,7 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
2181
2097
|
d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
|
|
2182
2098
|
key: "e791ji"
|
|
2183
2099
|
}]
|
|
2184
|
-
]),
|
|
2100
|
+
]), ti = Y("triangle-alert", [
|
|
2185
2101
|
["path", {
|
|
2186
2102
|
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
2187
2103
|
key: "wmoenq"
|
|
@@ -2194,13 +2110,13 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
2194
2110
|
d: "M12 17h.01",
|
|
2195
2111
|
key: "p32p05"
|
|
2196
2112
|
}]
|
|
2197
|
-
]),
|
|
2113
|
+
]), ni = Y("undo-2", [["path", {
|
|
2198
2114
|
d: "M9 14 4 9l5-5",
|
|
2199
2115
|
key: "102s5s"
|
|
2200
2116
|
}], ["path", {
|
|
2201
2117
|
d: "M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",
|
|
2202
2118
|
key: "f3b9sd"
|
|
2203
|
-
}]]),
|
|
2119
|
+
}]]), ri = Y("upload", [
|
|
2204
2120
|
["path", {
|
|
2205
2121
|
d: "M12 3v12",
|
|
2206
2122
|
key: "1x0j5s"
|
|
@@ -2213,7 +2129,7 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
2213
2129
|
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
|
|
2214
2130
|
key: "ih7n3h"
|
|
2215
2131
|
}]
|
|
2216
|
-
]),
|
|
2132
|
+
]), ii = Y("video", [["path", {
|
|
2217
2133
|
d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
|
|
2218
2134
|
key: "ftymec"
|
|
2219
2135
|
}], ["rect", {
|
|
@@ -2223,20 +2139,20 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
2223
2139
|
height: "12",
|
|
2224
2140
|
rx: "2",
|
|
2225
2141
|
key: "158x01"
|
|
2226
|
-
}]]),
|
|
2142
|
+
}]]), ai = Y("x", [["path", {
|
|
2227
2143
|
d: "M18 6 6 18",
|
|
2228
2144
|
key: "1bl5f8"
|
|
2229
2145
|
}], ["path", {
|
|
2230
2146
|
d: "m6 6 12 12",
|
|
2231
2147
|
key: "d8bk6v"
|
|
2232
|
-
}]]),
|
|
2148
|
+
}]]), oi = Y("zap", [["path", {
|
|
2233
2149
|
d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",
|
|
2234
2150
|
key: "1xq2db"
|
|
2235
|
-
}]]),
|
|
2151
|
+
}]]), si = ["innerHTML"], ci = [
|
|
2236
2152
|
"src",
|
|
2237
2153
|
"width",
|
|
2238
2154
|
"height"
|
|
2239
|
-
],
|
|
2155
|
+
], li = /* @__PURE__ */ g({
|
|
2240
2156
|
__name: "CustomBlockIcon",
|
|
2241
2157
|
props: {
|
|
2242
2158
|
icon: {},
|
|
@@ -2252,32 +2168,32 @@ var Sr = ({ name: e, iconNode: t, absoluteStrokeWidth: n, "absolute-stroke-width
|
|
|
2252
2168
|
height: `${n.value}px`
|
|
2253
2169
|
}),
|
|
2254
2170
|
innerHTML: e.icon
|
|
2255
|
-
}, null, 12,
|
|
2171
|
+
}, null, 12, si)) : i.value ? (f(), C("img", {
|
|
2256
2172
|
key: 1,
|
|
2257
2173
|
src: e.icon,
|
|
2258
2174
|
width: n.value,
|
|
2259
2175
|
height: n.value,
|
|
2260
2176
|
class: "tpl:inline-block",
|
|
2261
2177
|
alt: ""
|
|
2262
|
-
}, null, 8,
|
|
2178
|
+
}, null, 8, ci)) : (f(), j(w(br), {
|
|
2263
2179
|
key: 2,
|
|
2264
2180
|
size: n.value,
|
|
2265
2181
|
"stroke-width": 1.5
|
|
2266
2182
|
}, null, 8, ["size"]));
|
|
2267
2183
|
}
|
|
2268
|
-
}),
|
|
2184
|
+
}), ui = (e, t) => {
|
|
2269
2185
|
let n = e.__vccOpts || e;
|
|
2270
2186
|
for (let [e, r] of t) n[e] = r;
|
|
2271
2187
|
return n;
|
|
2272
|
-
},
|
|
2273
|
-
function
|
|
2274
|
-
return f(), C("div",
|
|
2188
|
+
}, di = {}, fi = { class: "tpl-loading-track" };
|
|
2189
|
+
function pi(e, t) {
|
|
2190
|
+
return f(), C("div", fi);
|
|
2275
2191
|
}
|
|
2276
|
-
var
|
|
2277
|
-
function
|
|
2192
|
+
var mi = /* @__PURE__ */ ui(di, [["render", pi], ["__scopeId", "data-v-1ed538ec"]]), hi = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
2193
|
+
function gi(e, t) {
|
|
2278
2194
|
let n = null, r = null;
|
|
2279
2195
|
function a() {
|
|
2280
|
-
return e.value ? Array.from(e.value.querySelectorAll(
|
|
2196
|
+
return e.value ? Array.from(e.value.querySelectorAll(hi)).filter((e) => e.offsetParent !== null) : [];
|
|
2281
2197
|
}
|
|
2282
2198
|
function o(e) {
|
|
2283
2199
|
if (e.key !== "Tab") return;
|
|
@@ -2304,7 +2220,7 @@ function bi(e, t) {
|
|
|
2304
2220
|
}
|
|
2305
2221
|
//#endregion
|
|
2306
2222
|
//#region src/composables/useMergeTag.ts
|
|
2307
|
-
function
|
|
2223
|
+
function _i() {
|
|
2308
2224
|
let e = o(Fn, []), t = o(In, mt.liquid), r = o(Ln, null), i = n(!1);
|
|
2309
2225
|
function a(e) {
|
|
2310
2226
|
return _t(e, t);
|
|
@@ -2333,11 +2249,11 @@ function xi() {
|
|
|
2333
2249
|
}
|
|
2334
2250
|
//#endregion
|
|
2335
2251
|
//#region src/composables/useEmoji.ts
|
|
2336
|
-
function
|
|
2252
|
+
function vi() {
|
|
2337
2253
|
let [e, t] = nn(!1), n = L([]);
|
|
2338
2254
|
i(e, async (e) => {
|
|
2339
2255
|
if (e && n.value.length === 0) {
|
|
2340
|
-
let { emojiCategories: e } = await import("./emojiData-
|
|
2256
|
+
let { emojiCategories: e } = await import("./emojiData-DUHzsh4j.js");
|
|
2341
2257
|
n.value = e;
|
|
2342
2258
|
}
|
|
2343
2259
|
});
|
|
@@ -2356,7 +2272,7 @@ function Si() {
|
|
|
2356
2272
|
}
|
|
2357
2273
|
//#endregion
|
|
2358
2274
|
//#region src/composables/useDragDrop.ts
|
|
2359
|
-
function
|
|
2275
|
+
function yi(e) {
|
|
2360
2276
|
let { onBlockMove: t, onBlockAdd: r } = e, i = n(!1), a = n(null), o = n(null);
|
|
2361
2277
|
function s(e) {
|
|
2362
2278
|
i.value = !0, a.value = e;
|
|
@@ -2406,7 +2322,7 @@ function Ci(e) {
|
|
|
2406
2322
|
}
|
|
2407
2323
|
//#endregion
|
|
2408
2324
|
//#region src/composables/useFonts.ts
|
|
2409
|
-
var
|
|
2325
|
+
var bi = [
|
|
2410
2326
|
{
|
|
2411
2327
|
value: "Arial",
|
|
2412
2328
|
label: "Arial"
|
|
@@ -2435,7 +2351,7 @@ var wi = [
|
|
|
2435
2351
|
value: "Courier New",
|
|
2436
2352
|
label: "Courier New"
|
|
2437
2353
|
}
|
|
2438
|
-
],
|
|
2354
|
+
], xi = {
|
|
2439
2355
|
arial: "Arial, sans-serif",
|
|
2440
2356
|
helvetica: "Helvetica, sans-serif",
|
|
2441
2357
|
georgia: "Georgia, serif",
|
|
@@ -2443,14 +2359,14 @@ var wi = [
|
|
|
2443
2359
|
verdana: "Verdana, sans-serif",
|
|
2444
2360
|
"trebuchet ms": "'Trebuchet MS', sans-serif",
|
|
2445
2361
|
"courier new": "'Courier New', monospace"
|
|
2446
|
-
},
|
|
2447
|
-
function
|
|
2448
|
-
let t = n(e?.customFonts ?? []), r = n(!0), i = n(!1), a = P(() => e?.defaultFallback ??
|
|
2362
|
+
}, Si = "Arial, sans-serif";
|
|
2363
|
+
function Ci(e) {
|
|
2364
|
+
let t = n(e?.customFonts ?? []), r = n(!0), i = n(!1), a = P(() => e?.defaultFallback ?? Si);
|
|
2449
2365
|
function o(e) {
|
|
2450
2366
|
r.value = e;
|
|
2451
2367
|
}
|
|
2452
2368
|
let s = P(() => {
|
|
2453
|
-
let e = [...
|
|
2369
|
+
let e = [...bi];
|
|
2454
2370
|
if (!r.value) return e.sort((e, t) => e.label.localeCompare(t.label));
|
|
2455
2371
|
let n = t.value.map((e) => ({
|
|
2456
2372
|
value: e.name,
|
|
@@ -2463,23 +2379,23 @@ function Di(e) {
|
|
|
2463
2379
|
return s.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
2464
2380
|
}
|
|
2465
2381
|
function l(e) {
|
|
2466
|
-
return
|
|
2382
|
+
return bi.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
2467
2383
|
}
|
|
2468
2384
|
function u() {
|
|
2469
2385
|
if (e?.defaultFont) {
|
|
2470
|
-
if (!r.value && !l(e.defaultFont)) return
|
|
2386
|
+
if (!r.value && !l(e.defaultFont)) return Si;
|
|
2471
2387
|
if (c(e.defaultFont)) {
|
|
2472
2388
|
let t = s.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
|
|
2473
2389
|
if (t) return t.value;
|
|
2474
2390
|
}
|
|
2475
2391
|
}
|
|
2476
|
-
return
|
|
2392
|
+
return Si;
|
|
2477
2393
|
}
|
|
2478
2394
|
let f = P(() => u());
|
|
2479
2395
|
function p(e) {
|
|
2480
2396
|
if (!e) return a.value;
|
|
2481
2397
|
let n = t.value.find((t) => t.name.toLowerCase() === e.toLowerCase());
|
|
2482
|
-
return n ? `'${n.name}', ${n.fallback ?? a.value}` :
|
|
2398
|
+
return n ? `'${n.name}', ${n.fallback ?? a.value}` : xi[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${a.value}`);
|
|
2483
2399
|
}
|
|
2484
2400
|
let m = [];
|
|
2485
2401
|
async function h() {
|
|
@@ -2520,9 +2436,9 @@ function Di(e) {
|
|
|
2520
2436
|
}
|
|
2521
2437
|
//#endregion
|
|
2522
2438
|
//#region src/composables/useRichTextLinkDialog.ts
|
|
2523
|
-
function
|
|
2439
|
+
function wi(e) {
|
|
2524
2440
|
let t = n(!1), r = n(""), i = n(null);
|
|
2525
|
-
|
|
2441
|
+
gi(i, t);
|
|
2526
2442
|
function a() {
|
|
2527
2443
|
r.value = e.value?.getAttributes("link").href || "", t.value = !0;
|
|
2528
2444
|
}
|
|
@@ -2555,8 +2471,8 @@ function Oi(e) {
|
|
|
2555
2471
|
}
|
|
2556
2472
|
//#endregion
|
|
2557
2473
|
//#region src/composables/useRichTextEditor.ts
|
|
2558
|
-
function
|
|
2559
|
-
let t = o(K, null), { mergeTags: a, isEnabled: s, isRequesting: c, requestMergeTag: l, syntax: u } =
|
|
2474
|
+
function Ti(e) {
|
|
2475
|
+
let t = o(K, null), { mergeTags: a, isEnabled: s, isRequesting: c, requestMergeTag: l, syntax: u } = _i(), d = L(null), { showLinkDialog: f, linkUrl: p, linkDialogRef: m, openLinkDialog: h, insertLink: g, removeLink: _, closeLinkDialog: v, handleLinkKeydown: y } = wi(d), { start: b, stop: x } = tn(() => d.value?.commands.focus("end"), 0, { immediate: !1 }), S = L(null), C = n(!0), w = n(null);
|
|
2560
2476
|
async function T() {
|
|
2561
2477
|
w.value = null, C.value = !0;
|
|
2562
2478
|
try {
|
|
@@ -2623,20 +2539,20 @@ function ki(e) {
|
|
|
2623
2539
|
}
|
|
2624
2540
|
//#endregion
|
|
2625
2541
|
//#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2626
|
-
var
|
|
2542
|
+
var Ei = { class: "tpl:w-full" }, Di = {
|
|
2627
2543
|
key: 0,
|
|
2628
2544
|
class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
|
|
2629
|
-
},
|
|
2545
|
+
}, Oi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ki = {
|
|
2630
2546
|
key: 1,
|
|
2631
2547
|
class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
|
|
2632
|
-
},
|
|
2548
|
+
}, Ai = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, ji = {
|
|
2633
2549
|
key: 2,
|
|
2634
2550
|
class: "tpl:relative"
|
|
2635
|
-
},
|
|
2551
|
+
}, Mi = ["innerHTML"], Ni = {
|
|
2636
2552
|
key: 0,
|
|
2637
2553
|
class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
|
|
2638
2554
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
|
|
2639
|
-
},
|
|
2555
|
+
}, Pi = /* @__PURE__ */ g({
|
|
2640
2556
|
__name: "CustomBlock",
|
|
2641
2557
|
props: {
|
|
2642
2558
|
block: {},
|
|
@@ -2670,10 +2586,10 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
2670
2586
|
v();
|
|
2671
2587
|
}), i(() => r.block.fieldValues, () => {
|
|
2672
2588
|
y();
|
|
2673
|
-
}, { deep: !0 }), (e, t) => (f(), C("div",
|
|
2589
|
+
}, { deep: !0 }), (e, t) => (f(), C("div", Ei, [p.value ? u.value ? (f(), C("div", ki, [T(w(ti), {
|
|
2674
2590
|
size: 24,
|
|
2675
2591
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
2676
|
-
}), N("span",
|
|
2592
|
+
}), N("span", Ai, M(w(s).customBlocks.renderError), 1)])) : (f(), C("div", ji, [N("div", { innerHTML: l.value }, null, 8, Mi), w(_) && w(g) ? (f(), C("div", Ni, [w(m) ? (f(), j(mi, {
|
|
2677
2593
|
key: 1,
|
|
2678
2594
|
class: "tpl:w-48"
|
|
2679
2595
|
})) : (f(), C("button", {
|
|
@@ -2681,16 +2597,16 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
2681
2597
|
type: "button",
|
|
2682
2598
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-sm tpl:transition-all tpl:duration-150 hover:tpl:border-[var(--tpl-primary)] hover:tpl:shadow-md tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
2683
2599
|
onClick: t[0] ||= R((...e) => w(h) && w(h)(...e), ["stop"])
|
|
2684
|
-
}, [d.value?.icon ? (f(), j(
|
|
2600
|
+
}, [d.value?.icon ? (f(), j(li, {
|
|
2685
2601
|
key: 0,
|
|
2686
2602
|
icon: d.value.icon,
|
|
2687
2603
|
size: 16
|
|
2688
|
-
}, null, 8, ["icon"])) : A("", !0), z(" " + M(d.value?.dataSource?.label || w(s).customBlocks.dataSource.fetchButton), 1)]))])) : A("", !0)])) : (f(), C("div",
|
|
2604
|
+
}, null, 8, ["icon"])) : A("", !0), z(" " + M(d.value?.dataSource?.label || w(s).customBlocks.dataSource.fetchButton), 1)]))])) : A("", !0)])) : (f(), C("div", Di, [T(w(Wr), {
|
|
2689
2605
|
size: 24,
|
|
2690
2606
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
2691
|
-
}), N("span",
|
|
2607
|
+
}), N("span", Oi, M(w(s).customBlocks.definitionNotFound), 1)]))]));
|
|
2692
2608
|
}
|
|
2693
|
-
}),
|
|
2609
|
+
}), Fi = { class: "tpl:w-full" }, Ii = /* @__PURE__ */ g({
|
|
2694
2610
|
__name: "DividerBlock",
|
|
2695
2611
|
props: {
|
|
2696
2612
|
block: {},
|
|
@@ -2702,18 +2618,18 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
2702
2618
|
width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
|
|
2703
2619
|
margin: t.block.width === "full" ? "0" : "0 auto"
|
|
2704
2620
|
}));
|
|
2705
|
-
return (e, t) => (f(), C("div",
|
|
2621
|
+
return (e, t) => (f(), C("div", Fi, [N("hr", {
|
|
2706
2622
|
class: "tpl:m-0 tpl:border-none",
|
|
2707
2623
|
style: D(n.value)
|
|
2708
2624
|
}, null, 4)]));
|
|
2709
2625
|
}
|
|
2710
|
-
}),
|
|
2626
|
+
}), Li = { class: "tpl:w-full" }, Ri = { class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]" }, zi = {
|
|
2711
2627
|
key: 0,
|
|
2712
2628
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
2713
|
-
},
|
|
2629
|
+
}, Bi = {
|
|
2714
2630
|
key: 1,
|
|
2715
2631
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
2716
|
-
},
|
|
2632
|
+
}, Vi = /* @__PURE__ */ g({
|
|
2717
2633
|
__name: "HtmlBlock",
|
|
2718
2634
|
props: {
|
|
2719
2635
|
block: {},
|
|
@@ -2721,18 +2637,18 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
2721
2637
|
},
|
|
2722
2638
|
setup(e) {
|
|
2723
2639
|
let t = e, { t: n } = J(), r = P(() => t.block.content.trim().length > 0);
|
|
2724
|
-
return (e, t) => (f(), C("div",
|
|
2640
|
+
return (e, t) => (f(), C("div", Li, [N("div", Ri, [T(w(kr), {
|
|
2725
2641
|
size: 24,
|
|
2726
2642
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
2727
|
-
}), r.value ? (f(), C("span",
|
|
2643
|
+
}), r.value ? (f(), C("span", zi, M(w(n).html.preview), 1)) : (f(), C("span", Bi, M(w(n).html.empty), 1))])]));
|
|
2728
2644
|
}
|
|
2729
|
-
}),
|
|
2645
|
+
}), Hi = ["href"], Ui = ["src", "alt"], Wi = ["src", "alt"], Gi = {
|
|
2730
2646
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
2731
2647
|
style: { opacity: "0.7" }
|
|
2732
|
-
},
|
|
2648
|
+
}, Ki = ["href"], qi = ["src", "alt"], Ji = ["src", "alt"], Yi = {
|
|
2733
2649
|
key: 3,
|
|
2734
2650
|
class: "tpl:flex tpl:min-h-[100px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
|
|
2735
|
-
},
|
|
2651
|
+
}, Xi = ["aria-label"], Zi = { key: 1 }, Qi = /* @__PURE__ */ g({
|
|
2736
2652
|
__name: "ImageBlock",
|
|
2737
2653
|
props: {
|
|
2738
2654
|
block: {},
|
|
@@ -2740,7 +2656,7 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
2740
2656
|
},
|
|
2741
2657
|
emits: ["update"],
|
|
2742
2658
|
setup(e, { emit: t }) {
|
|
2743
|
-
let n = e, r = t, { t: i } = J(), { syntax: a } =
|
|
2659
|
+
let n = e, r = t, { t: i } = J(), { syntax: a } = _i(), s = o(Rn, null), c = P(() => !!s);
|
|
2744
2660
|
async function l() {
|
|
2745
2661
|
let e = await s?.({ accept: ["images"] });
|
|
2746
2662
|
if (e) {
|
|
@@ -2770,22 +2686,22 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
2770
2686
|
src: e.block.placeholderUrl,
|
|
2771
2687
|
alt: e.block.alt || w(i).image.altTextPlaceholder,
|
|
2772
2688
|
style: D(d.value)
|
|
2773
|
-
}, null, 12,
|
|
2689
|
+
}, null, 12, Ui)], 8, Hi)) : (f(), C("img", {
|
|
2774
2690
|
key: 1,
|
|
2775
2691
|
class: "tpl:border-0",
|
|
2776
2692
|
src: e.block.placeholderUrl,
|
|
2777
2693
|
alt: e.block.alt,
|
|
2778
2694
|
style: D(d.value)
|
|
2779
|
-
}, null, 12,
|
|
2695
|
+
}, null, 12, Wi))], 64)) : e.block.src && p.value ? (f(), C("div", {
|
|
2780
2696
|
key: 1,
|
|
2781
2697
|
class: "tpl:!flex tpl:min-h-[120px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
|
|
2782
2698
|
style: D([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, d.value])
|
|
2783
|
-
}, [T(w(
|
|
2699
|
+
}, [T(w(Rr), {
|
|
2784
2700
|
size: 32,
|
|
2785
2701
|
"stroke-width": 1.5,
|
|
2786
2702
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
2787
2703
|
style: { opacity: "0.5" }
|
|
2788
|
-
}), N("span",
|
|
2704
|
+
}), N("span", Gi, M(e.block.src), 1)], 4)) : e.block.src ? (f(), C(O, { key: 2 }, [e.block.linkUrl ? (f(), C("a", {
|
|
2789
2705
|
key: 0,
|
|
2790
2706
|
href: e.block.linkUrl,
|
|
2791
2707
|
target: "_blank",
|
|
@@ -2797,26 +2713,26 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
2797
2713
|
src: e.block.src,
|
|
2798
2714
|
alt: e.block.alt || w(i).image.altTextPlaceholder,
|
|
2799
2715
|
style: D(d.value)
|
|
2800
|
-
}, null, 12,
|
|
2716
|
+
}, null, 12, qi)], 8, Ki)) : (f(), C("img", {
|
|
2801
2717
|
key: 1,
|
|
2802
2718
|
class: "tpl:border-0",
|
|
2803
2719
|
src: e.block.src,
|
|
2804
2720
|
alt: e.block.alt,
|
|
2805
2721
|
style: D(d.value)
|
|
2806
|
-
}, null, 12,
|
|
2722
|
+
}, null, 12, Ji))], 64)) : (f(), C("div", Yi, [c.value ? (f(), C("button", {
|
|
2807
2723
|
key: 0,
|
|
2808
2724
|
"aria-label": w(i).image.browseMedia,
|
|
2809
2725
|
class: "tpl:flex tpl:items-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:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
2810
2726
|
onClick: R(l, ["stop"])
|
|
2811
|
-
}, [T(w(
|
|
2727
|
+
}, [T(w(Rr), {
|
|
2812
2728
|
size: 14,
|
|
2813
2729
|
"stroke-width": 1.5
|
|
2814
|
-
}), z(" " + M(w(i).image.browseMedia), 1)], 8,
|
|
2730
|
+
}), z(" " + M(w(i).image.browseMedia), 1)], 8, Xi)) : (f(), C("span", Zi, M(w(i).image.clickToAdd), 1))]))], 4));
|
|
2815
2731
|
}
|
|
2816
|
-
}),
|
|
2732
|
+
}), $i = { class: "tpl:w-full" }, ea = ["href"], ta = {
|
|
2817
2733
|
key: 1,
|
|
2818
2734
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
2819
|
-
},
|
|
2735
|
+
}, na = /* @__PURE__ */ g({
|
|
2820
2736
|
__name: "MenuBlock",
|
|
2821
2737
|
props: {
|
|
2822
2738
|
block: {},
|
|
@@ -2835,7 +2751,7 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
2835
2751
|
function a(e) {
|
|
2836
2752
|
return e || t.block.linkColor || t.block.color;
|
|
2837
2753
|
}
|
|
2838
|
-
return (t, o) => (f(), C("div",
|
|
2754
|
+
return (t, o) => (f(), C("div", $i, [i.value ? (f(), C("div", {
|
|
2839
2755
|
key: 0,
|
|
2840
2756
|
style: D(r.value)
|
|
2841
2757
|
}, [(f(!0), C(O, null, s(e.block.items, (t, n) => (f(), C(O, { key: t.id }, [N("a", {
|
|
@@ -2847,19 +2763,19 @@ var Ai = { class: "tpl:w-full" }, ji = {
|
|
|
2847
2763
|
textDecoration: t.underline ? "underline" : "none"
|
|
2848
2764
|
}),
|
|
2849
2765
|
onClick: o[0] ||= R(() => {}, ["prevent"])
|
|
2850
|
-
}, M(t.text || "..."), 13,
|
|
2766
|
+
}, M(t.text || "..."), 13, ea), n < e.block.items.length - 1 ? (f(), C("span", {
|
|
2851
2767
|
key: 0,
|
|
2852
2768
|
style: D({
|
|
2853
2769
|
color: e.block.separatorColor,
|
|
2854
2770
|
padding: `0 ${e.block.spacing}px`
|
|
2855
2771
|
})
|
|
2856
|
-
}, M(e.block.separator), 5)) : A("", !0)], 64))), 128))], 4)) : (f(), C("div",
|
|
2772
|
+
}, M(e.block.separator), 5)) : A("", !0)], 64))), 128))], 4)) : (f(), C("div", ta, [T(w(Hr), { size: 16 }), N("span", null, M(w(n).menu.addLinks), 1)]))]));
|
|
2857
2773
|
}
|
|
2858
2774
|
});
|
|
2859
2775
|
//#endregion
|
|
2860
2776
|
//#region src/composables/useEditableTextBlock.ts
|
|
2861
|
-
function
|
|
2862
|
-
let t = o(Fn, []), { syntax: r } =
|
|
2777
|
+
function ra(e) {
|
|
2778
|
+
let t = o(Fn, []), { syntax: r } = _i(), i = P(() => Ct(yt(e(), t), r)), a = n(!1), s = n(null), { top: c, left: l } = bn(s), u = P(() => ({
|
|
2863
2779
|
top: c.value - 8,
|
|
2864
2780
|
left: l.value
|
|
2865
2781
|
}));
|
|
@@ -2880,14 +2796,14 @@ function sa(e) {
|
|
|
2880
2796
|
}
|
|
2881
2797
|
//#endregion
|
|
2882
2798
|
//#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2883
|
-
var
|
|
2799
|
+
var ia = ["innerHTML"], aa = /* @__PURE__ */ g({
|
|
2884
2800
|
__name: "ParagraphBlock",
|
|
2885
2801
|
props: {
|
|
2886
2802
|
block: {},
|
|
2887
2803
|
viewport: {}
|
|
2888
2804
|
},
|
|
2889
2805
|
setup(e) {
|
|
2890
|
-
let t = e, n = me(() => import("./ParagraphEditor-
|
|
2806
|
+
let t = e, n = me(() => import("./ParagraphEditor-BMRNg_BX.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = ra(() => t.block.content);
|
|
2891
2807
|
return (t, l) => (f(), C("div", {
|
|
2892
2808
|
ref_key: "blockRef",
|
|
2893
2809
|
ref: i,
|
|
@@ -2906,19 +2822,19 @@ var ca = ["innerHTML"], la = /* @__PURE__ */ g({
|
|
|
2906
2822
|
key: 1,
|
|
2907
2823
|
class: "tpl-text-content tpl:outline-none [&_a]:tpl:underline [&_li]:tpl:my-1 [&_ol]:tpl:my-2 [&_ol]:tpl:pl-6 [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0 [&_s]:tpl:line-through [&_sub]:tpl:align-sub [&_sub]:tpl:text-[0.75em] [&_sup]:tpl:align-super [&_sup]:tpl:text-[0.75em] [&_ul]:tpl:my-2 [&_ul]:tpl:pl-6",
|
|
2908
2824
|
innerHTML: w(o)
|
|
2909
|
-
}, null, 8,
|
|
2825
|
+
}, null, 8, ia))], 544));
|
|
2910
2826
|
}
|
|
2911
2827
|
});
|
|
2912
2828
|
//#endregion
|
|
2913
2829
|
//#region src/utils/blockComponentResolver.ts
|
|
2914
|
-
function
|
|
2830
|
+
function oa(e, t, n) {
|
|
2915
2831
|
if (t) {
|
|
2916
2832
|
let n = t.getComponent(e);
|
|
2917
2833
|
if (n) return n;
|
|
2918
2834
|
}
|
|
2919
2835
|
return n[e.type] ?? null;
|
|
2920
2836
|
}
|
|
2921
|
-
function
|
|
2837
|
+
function sa(e) {
|
|
2922
2838
|
let { padding: t, margin: n, backgroundColor: r } = e.styles;
|
|
2923
2839
|
return {
|
|
2924
2840
|
padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
|
|
@@ -2928,20 +2844,20 @@ function da(e) {
|
|
|
2928
2844
|
}
|
|
2929
2845
|
//#endregion
|
|
2930
2846
|
//#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
|
|
2931
|
-
var
|
|
2847
|
+
var ca = ["data-block-id", "data-block-type"], la = ["aria-label"], ua = [
|
|
2932
2848
|
"aria-label",
|
|
2933
2849
|
"aria-pressed",
|
|
2934
2850
|
"title"
|
|
2935
|
-
],
|
|
2851
|
+
], da = ["aria-label", "title"], fa = ["aria-label", "title"], pa = ["aria-label", "title"], ma = {
|
|
2936
2852
|
key: 1,
|
|
2937
2853
|
class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
|
|
2938
|
-
},
|
|
2854
|
+
}, ha = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, ga = {
|
|
2939
2855
|
key: 2,
|
|
2940
2856
|
class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
|
|
2941
|
-
},
|
|
2857
|
+
}, _a = ["aria-label", "title"], va = {
|
|
2942
2858
|
key: 3,
|
|
2943
2859
|
class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
|
|
2944
|
-
},
|
|
2860
|
+
}, ya = ["aria-label"], ba = /* @__PURE__ */ ui(/* @__PURE__ */ g({
|
|
2945
2861
|
__name: "BlockWrapper",
|
|
2946
2862
|
props: {
|
|
2947
2863
|
block: {},
|
|
@@ -2978,7 +2894,7 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
2978
2894
|
desktop: a.viewport.desktop,
|
|
2979
2895
|
tablet: a.viewport.tablet,
|
|
2980
2896
|
mobile: a.viewport.mobile
|
|
2981
|
-
}[r.viewport] ?? r.viewport : ""), v = P(() => !!r.block.displayCondition), y = o(Dn, null), b = o(On, null), x = o(Vn, {}), S = P(() => !!x.savedModules), E = P(() => x.comments?.getBlockCount(r.block.id) ?? 0), O = P(() =>
|
|
2897
|
+
}[r.viewport] ?? r.viewport : ""), v = P(() => !!r.block.displayCondition), y = o(Dn, null), b = o(On, null), x = o(Vn, {}), S = P(() => !!x.savedModules), E = P(() => x.comments?.getBlockCount(r.block.id) ?? 0), O = P(() => sa(r.block));
|
|
2982
2898
|
function k(e) {
|
|
2983
2899
|
r.previewMode || (e.stopPropagation(), i("select"));
|
|
2984
2900
|
}
|
|
@@ -3021,71 +2937,71 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3021
2937
|
"aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
|
|
3022
2938
|
title: w(a).blockActions.drag,
|
|
3023
2939
|
onKeydown: h
|
|
3024
|
-
}, [T(w(
|
|
2940
|
+
}, [T(w(Ir), {
|
|
3025
2941
|
size: 14,
|
|
3026
2942
|
"stroke-width": 1.5
|
|
3027
|
-
})], 40,
|
|
2943
|
+
})], 40, ua),
|
|
3028
2944
|
N("button", {
|
|
3029
2945
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
|
|
3030
2946
|
"aria-label": w(a).blockActions.duplicate,
|
|
3031
2947
|
title: w(a).blockActions.duplicate,
|
|
3032
2948
|
onClick: R(j, ["stop"])
|
|
3033
|
-
}, [T(w(
|
|
2949
|
+
}, [T(w(Ar), {
|
|
3034
2950
|
size: 14,
|
|
3035
2951
|
"stroke-width": 1.5
|
|
3036
|
-
})], 8,
|
|
2952
|
+
})], 8, da),
|
|
3037
2953
|
S.value ? (f(), C("button", {
|
|
3038
2954
|
key: 0,
|
|
3039
2955
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
|
|
3040
2956
|
"aria-label": w(a).blockActions.saveAsModule,
|
|
3041
2957
|
title: w(a).blockActions.saveAsModule,
|
|
3042
2958
|
onClick: R(te, ["stop"])
|
|
3043
|
-
}, [T(w(
|
|
2959
|
+
}, [T(w(yr), {
|
|
3044
2960
|
size: 14,
|
|
3045
2961
|
"stroke-width": 1.5
|
|
3046
|
-
})], 8,
|
|
2962
|
+
})], 8, fa)) : A("", !0),
|
|
3047
2963
|
N("button", {
|
|
3048
2964
|
class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
|
|
3049
2965
|
"aria-label": w(a).blockActions.delete,
|
|
3050
2966
|
title: w(a).blockActions.delete,
|
|
3051
2967
|
onClick: R(ee, ["stop"])
|
|
3052
|
-
}, [T(w(
|
|
2968
|
+
}, [T(w(ei), {
|
|
3053
2969
|
size: 14,
|
|
3054
2970
|
"stroke-width": 1.5
|
|
3055
|
-
})], 8,
|
|
3056
|
-
], 8,
|
|
3057
|
-
g.value ? (f(), C("div",
|
|
2971
|
+
})], 8, pa)
|
|
2972
|
+
], 8, la)) : A("", !0),
|
|
2973
|
+
g.value ? (f(), C("div", ma, [N("span", ha, [T(w(jr), {
|
|
3058
2974
|
size: 12,
|
|
3059
2975
|
"stroke-width": 1.5
|
|
3060
2976
|
}), z(" " + M(w(s)(w(a).blockActions.hiddenOnViewport, { viewport: _.value })), 1)])])) : A("", !0),
|
|
3061
|
-
v.value && !g.value ? (f(), C("div",
|
|
2977
|
+
v.value && !g.value ? (f(), C("div", ga, [N("button", {
|
|
3062
2978
|
class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
|
|
3063
2979
|
"aria-label": w(a).blockActions.conditionToggle,
|
|
3064
2980
|
title: e.block.displayCondition?.label,
|
|
3065
2981
|
onClick: R(ne, ["stop"])
|
|
3066
|
-
}, [T(w(
|
|
2982
|
+
}, [T(w(Fr), {
|
|
3067
2983
|
size: 12,
|
|
3068
2984
|
"stroke-width": 2
|
|
3069
|
-
})], 8,
|
|
3070
|
-
E.value > 0 && !g.value ? (f(), C("div",
|
|
2985
|
+
})], 8, _a)])) : A("", !0),
|
|
2986
|
+
E.value > 0 && !g.value ? (f(), C("div", va, [N("button", {
|
|
3071
2987
|
class: "tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]",
|
|
3072
2988
|
"aria-label": w(s)(w(a).blockActions.comments, { count: String(E.value) }),
|
|
3073
2989
|
onClick: n[0] ||= R((t) => w(x).comments?.openForBlock(e.block.id), ["stop"])
|
|
3074
|
-
}, [T(w(
|
|
2990
|
+
}, [T(w(Vr), {
|
|
3075
2991
|
size: 12,
|
|
3076
2992
|
"stroke-width": 2.5
|
|
3077
|
-
}), z(" " + M(E.value), 1)], 8,
|
|
2993
|
+
}), z(" " + M(E.value), 1)], 8, ya)])) : A("", !0),
|
|
3078
2994
|
l(t.$slots, "default", {}, void 0, !0)
|
|
3079
|
-
], 14,
|
|
2995
|
+
], 14, ca));
|
|
3080
2996
|
}
|
|
3081
|
-
}), [["__scopeId", "data-v-ca10edcb"]]),
|
|
2997
|
+
}), [["__scopeId", "data-v-ca10edcb"]]), xa = ["innerHTML"], Sa = /* @__PURE__ */ g({
|
|
3082
2998
|
__name: "TitleBlock",
|
|
3083
2999
|
props: {
|
|
3084
3000
|
block: {},
|
|
3085
3001
|
viewport: {}
|
|
3086
3002
|
},
|
|
3087
3003
|
setup(e) {
|
|
3088
|
-
let t = e, n = me(() => import("./TitleEditor-
|
|
3004
|
+
let t = e, n = me(() => import("./TitleEditor-q9IzNy38.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = ra(() => t.block.content), l = P(() => {
|
|
3089
3005
|
let e = {
|
|
3090
3006
|
fontSize: `${ve[t.block.level]}px`,
|
|
3091
3007
|
color: t.block.color,
|
|
@@ -3112,13 +3028,13 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3112
3028
|
key: 1,
|
|
3113
3029
|
class: "tpl-text-content tpl:outline-none [&_a]:tpl:underline [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0",
|
|
3114
3030
|
innerHTML: w(o)
|
|
3115
|
-
}, null, 8,
|
|
3031
|
+
}, null, 8, xa))], 36));
|
|
3116
3032
|
}
|
|
3117
|
-
}),
|
|
3033
|
+
}), Ca = /* @__PURE__ */ e(fe(), 1), wa = { class: "tpl:w-full" }, Ta = { class: "tpl:flex tpl:gap-0" }, Ea = {
|
|
3118
3034
|
key: 0,
|
|
3119
3035
|
"data-testid": "section-drop-hint",
|
|
3120
3036
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
3121
|
-
},
|
|
3037
|
+
}, Da = /* @__PURE__ */ g({
|
|
3122
3038
|
__name: "SectionBlock",
|
|
3123
3039
|
props: {
|
|
3124
3040
|
block: {},
|
|
@@ -3126,12 +3042,12 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3126
3042
|
},
|
|
3127
3043
|
setup(e) {
|
|
3128
3044
|
let t = {
|
|
3129
|
-
title:
|
|
3130
|
-
paragraph:
|
|
3131
|
-
image:
|
|
3045
|
+
title: Sa,
|
|
3046
|
+
paragraph: aa,
|
|
3047
|
+
image: Qi,
|
|
3132
3048
|
button: lr,
|
|
3133
|
-
divider:
|
|
3134
|
-
custom:
|
|
3049
|
+
divider: Ii,
|
|
3050
|
+
custom: Pi
|
|
3135
3051
|
}, n = e, { t: r } = J(), i = q(K, "SectionBlock"), a = o(On, null), l = o(Nn, null), u = P(() => {
|
|
3136
3052
|
switch (n.block.columns) {
|
|
3137
3053
|
case "2": return ["50%", "50%"];
|
|
@@ -3158,7 +3074,7 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3158
3074
|
r[e] = t, i.updateBlock(n.block.id, { children: r });
|
|
3159
3075
|
}
|
|
3160
3076
|
function g(e) {
|
|
3161
|
-
return
|
|
3077
|
+
return oa(e, l, t);
|
|
3162
3078
|
}
|
|
3163
3079
|
function _(e, t) {
|
|
3164
3080
|
e.type === "custom" && i.updateBlock(e.id, {
|
|
@@ -3166,11 +3082,11 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3166
3082
|
dataSourceFetched: t.dataSourceFetched
|
|
3167
3083
|
});
|
|
3168
3084
|
}
|
|
3169
|
-
return (t, n) => (f(), C("div",
|
|
3085
|
+
return (t, n) => (f(), C("div", wa, [N("div", Ta, [(f(!0), C(O, null, s(d.value, (t, n) => (f(), C("div", {
|
|
3170
3086
|
key: n,
|
|
3171
3087
|
class: I(["tpl:relative tpl:min-h-[60px] tpl:rounded", p(n).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
3172
3088
|
style: D({ width: u.value[n] })
|
|
3173
|
-
}, [T(w(
|
|
3089
|
+
}, [T(w(Ca.default), {
|
|
3174
3090
|
"model-value": p(n),
|
|
3175
3091
|
group: {
|
|
3176
3092
|
name: "blocks",
|
|
@@ -3184,7 +3100,7 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3184
3100
|
class: "tpl:min-h-[60px]",
|
|
3185
3101
|
"onUpdate:modelValue": (e) => m(n, e)
|
|
3186
3102
|
}, {
|
|
3187
|
-
item: c(({ element: t }) => [v(N("div", null, [T(
|
|
3103
|
+
item: c(({ element: t }) => [v(N("div", null, [T(ba, {
|
|
3188
3104
|
block: t,
|
|
3189
3105
|
"is-selected": w(i).state.selectedBlockId === t.id,
|
|
3190
3106
|
viewport: e.viewport,
|
|
@@ -3211,9 +3127,9 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3211
3127
|
"model-value",
|
|
3212
3128
|
"group",
|
|
3213
3129
|
"onUpdate:modelValue"
|
|
3214
|
-
]), p(n).length === 0 ? (f(), C("div",
|
|
3130
|
+
]), p(n).length === 0 ? (f(), C("div", Ea, [N("span", null, M(w(r).section.dropHere), 1)])) : A("", !0)], 6))), 128))])]));
|
|
3215
3131
|
}
|
|
3216
|
-
}),
|
|
3132
|
+
}), Oa = {
|
|
3217
3133
|
facebook: {
|
|
3218
3134
|
name: "Facebook",
|
|
3219
3135
|
color: "#1877F2",
|
|
@@ -3294,11 +3210,11 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3294
3210
|
color: "#1769FF",
|
|
3295
3211
|
path: "M22 7h-7V5h7v2zm1.726 10c-.442 1.297-2.029 3-5.101 3-3.074 0-5.564-1.729-5.564-5.675 0-3.91 2.325-5.92 5.466-5.92 3.082 0 4.964 1.782 5.375 4.426.078.506.109 1.188.095 2.14H15.97c.13 3.211 3.483 3.312 4.588 2.029h3.168zm-7.686-4h4.965c-.105-1.547-1.136-2.219-2.477-2.219-1.466 0-2.277.768-2.488 2.219zm-9.574 6.988H0V5.021h6.953c5.476.081 5.58 5.444 2.72 6.906 3.461 1.26 3.577 8.061-3.207 8.061zM3 11h3.584c2.508 0 2.906-3-.312-3H3v3zm3.391 3H3v3.016h3.341c3.055 0 2.868-3.016.05-3.016z"
|
|
3296
3212
|
}
|
|
3297
|
-
},
|
|
3213
|
+
}, ka = {
|
|
3298
3214
|
small: 24,
|
|
3299
3215
|
medium: 32,
|
|
3300
3216
|
large: 48
|
|
3301
|
-
},
|
|
3217
|
+
}, Aa = [
|
|
3302
3218
|
"facebook",
|
|
3303
3219
|
"twitter",
|
|
3304
3220
|
"instagram",
|
|
@@ -3315,11 +3231,11 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3315
3231
|
"github",
|
|
3316
3232
|
"dribbble",
|
|
3317
3233
|
"behance"
|
|
3318
|
-
],
|
|
3234
|
+
], ja = [
|
|
3319
3235
|
"width",
|
|
3320
3236
|
"height",
|
|
3321
3237
|
"fill"
|
|
3322
|
-
],
|
|
3238
|
+
], Ma = ["d"], Na = /* @__PURE__ */ g({
|
|
3323
3239
|
__name: "SocialIconSvg",
|
|
3324
3240
|
props: {
|
|
3325
3241
|
platform: {},
|
|
@@ -3327,7 +3243,7 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3327
3243
|
iconSize: {}
|
|
3328
3244
|
},
|
|
3329
3245
|
setup(e) {
|
|
3330
|
-
let t = e, n = P(() =>
|
|
3246
|
+
let t = e, n = P(() => Oa[t.platform]), r = P(() => ka[t.iconSize]), i = P(() => {
|
|
3331
3247
|
let e = {
|
|
3332
3248
|
display: "inline-flex",
|
|
3333
3249
|
alignItems: "center",
|
|
@@ -3371,12 +3287,12 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3371
3287
|
viewBox: "0 0 24 24",
|
|
3372
3288
|
fill: o.value,
|
|
3373
3289
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3374
|
-
}, [N("path", { d: n.value.path }, null, 8,
|
|
3290
|
+
}, [N("path", { d: n.value.path }, null, 8, Ma)], 8, ja))], 4));
|
|
3375
3291
|
}
|
|
3376
|
-
}),
|
|
3292
|
+
}), Pa = { class: "tpl:w-full" }, Fa = ["href"], Ia = {
|
|
3377
3293
|
key: 1,
|
|
3378
3294
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
3379
|
-
},
|
|
3295
|
+
}, La = /* @__PURE__ */ g({
|
|
3380
3296
|
__name: "SocialIconsBlock",
|
|
3381
3297
|
props: {
|
|
3382
3298
|
block: {},
|
|
@@ -3389,7 +3305,7 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3389
3305
|
gap: `${t.block.spacing}px`,
|
|
3390
3306
|
justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
|
|
3391
3307
|
})), i = P(() => t.block.icons.length > 0);
|
|
3392
|
-
return (t, a) => (f(), C("div",
|
|
3308
|
+
return (t, a) => (f(), C("div", Pa, [i.value ? (f(), C("div", {
|
|
3393
3309
|
key: 0,
|
|
3394
3310
|
style: D(r.value)
|
|
3395
3311
|
}, [(f(!0), C(O, null, s(e.block.icons, (t) => (f(), C("a", {
|
|
@@ -3397,7 +3313,7 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3397
3313
|
href: t.url || "#",
|
|
3398
3314
|
class: "tpl:cursor-default",
|
|
3399
3315
|
onClick: a[0] ||= R(() => {}, ["prevent"])
|
|
3400
|
-
}, [T(
|
|
3316
|
+
}, [T(Na, {
|
|
3401
3317
|
platform: t.platform,
|
|
3402
3318
|
"icon-style": e.block.iconStyle,
|
|
3403
3319
|
"icon-size": e.block.iconSize
|
|
@@ -3405,16 +3321,16 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3405
3321
|
"platform",
|
|
3406
3322
|
"icon-style",
|
|
3407
3323
|
"icon-size"
|
|
3408
|
-
])], 8,
|
|
3324
|
+
])], 8, Fa))), 128))], 4)) : (f(), C("div", Ia, [T(w(Yr), { size: 16 }), N("span", null, M(w(n).social.addIcons), 1)]))]));
|
|
3409
3325
|
}
|
|
3410
|
-
}),
|
|
3326
|
+
}), Ra = { class: "tpl:w-full" }, za = {
|
|
3411
3327
|
key: 0,
|
|
3412
3328
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
3413
3329
|
style: {
|
|
3414
3330
|
"background-color": "var(--tpl-bg-hover)",
|
|
3415
3331
|
color: "var(--tpl-text-dim)"
|
|
3416
3332
|
}
|
|
3417
|
-
},
|
|
3333
|
+
}, Ba = /* @__PURE__ */ g({
|
|
3418
3334
|
__name: "SpacerBlock",
|
|
3419
3335
|
props: {
|
|
3420
3336
|
block: {},
|
|
@@ -3426,25 +3342,25 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3426
3342
|
minHeight: `${t.block.height}px`,
|
|
3427
3343
|
...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
3428
3344
|
}));
|
|
3429
|
-
return (t, i) => (f(), C("div",
|
|
3345
|
+
return (t, i) => (f(), C("div", Ra, [N("div", {
|
|
3430
3346
|
style: D(r.value),
|
|
3431
3347
|
class: I(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !w(n).state.previewMode }])
|
|
3432
|
-
}, [w(n).state.previewMode ? A("", !0) : (f(), C("span",
|
|
3348
|
+
}, [w(n).state.previewMode ? A("", !0) : (f(), C("span", za, M(e.block.height) + "px ", 1))], 6)]));
|
|
3433
3349
|
}
|
|
3434
|
-
}),
|
|
3350
|
+
}), Va = { class: "tpl:w-full" }, Ha = { key: 0 }, Ua = [
|
|
3435
3351
|
"aria-label",
|
|
3436
3352
|
"data-placeholder",
|
|
3437
3353
|
"onBlur",
|
|
3438
3354
|
"textContent"
|
|
3439
|
-
],
|
|
3355
|
+
], Wa = [
|
|
3440
3356
|
"aria-label",
|
|
3441
3357
|
"data-placeholder",
|
|
3442
3358
|
"onBlur",
|
|
3443
3359
|
"textContent"
|
|
3444
|
-
],
|
|
3360
|
+
], Ga = {
|
|
3445
3361
|
key: 1,
|
|
3446
3362
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
3447
|
-
},
|
|
3363
|
+
}, Ka = /* @__PURE__ */ ui(/* @__PURE__ */ g({
|
|
3448
3364
|
__name: "TableBlock",
|
|
3449
3365
|
props: {
|
|
3450
3366
|
block: {},
|
|
@@ -3480,11 +3396,11 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3480
3396
|
} : t);
|
|
3481
3397
|
r.updateBlock(t.block.id, { rows: o });
|
|
3482
3398
|
}
|
|
3483
|
-
return (e, t) => (f(), C("div",
|
|
3399
|
+
return (e, t) => (f(), C("div", Va, [i.value ? (f(), C("table", {
|
|
3484
3400
|
key: 0,
|
|
3485
3401
|
style: D(a.value),
|
|
3486
3402
|
class: "tpl-table-editable"
|
|
3487
|
-
}, [l.value ? (f(), C("thead",
|
|
3403
|
+
}, [l.value ? (f(), C("thead", Ha, [N("tr", null, [(f(!0), C(O, null, s(l.value.cells, (e) => (f(), C("th", {
|
|
3488
3404
|
key: e.id,
|
|
3489
3405
|
style: D(c.value),
|
|
3490
3406
|
"aria-label": w(n).table.cellPlaceholder,
|
|
@@ -3494,7 +3410,7 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3494
3410
|
onKeydown: t[0] ||= ae(R((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
3495
3411
|
onClick: R(d, ["stop"]),
|
|
3496
3412
|
textContent: M(e.content)
|
|
3497
|
-
}, null, 44,
|
|
3413
|
+
}, null, 44, Ua))), 128))])])) : A("", !0), N("tbody", null, [(f(!0), C(O, null, s(u.value, (e) => (f(), C("tr", { key: e.id }, [(f(!0), C(O, null, s(e.cells, (r) => (f(), C("td", {
|
|
3498
3414
|
key: r.id,
|
|
3499
3415
|
style: D(o.value),
|
|
3500
3416
|
"aria-label": w(n).table.cellPlaceholder,
|
|
@@ -3504,9 +3420,9 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3504
3420
|
onKeydown: t[1] ||= ae(R((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
3505
3421
|
onClick: R(d, ["stop"]),
|
|
3506
3422
|
textContent: M(r.content)
|
|
3507
|
-
}, null, 44,
|
|
3423
|
+
}, null, 44, Wa))), 128))]))), 128))])], 4)) : (f(), C("div", Ga, [T(w($r), { size: 16 }), N("span", null, M(w(n).table.empty), 1)]))]));
|
|
3508
3424
|
}
|
|
3509
|
-
}), [["__scopeId", "data-v-dfc60174"]]),
|
|
3425
|
+
}), [["__scopeId", "data-v-dfc60174"]]), qa = /* @__PURE__ */ g({
|
|
3510
3426
|
__name: "VideoPlayButton",
|
|
3511
3427
|
props: { hoverEffect: {
|
|
3512
3428
|
type: Boolean,
|
|
@@ -3524,7 +3440,7 @@ var fa = ["data-block-id", "data-block-type"], pa = ["aria-label"], ma = [
|
|
|
3524
3440
|
});
|
|
3525
3441
|
//#endregion
|
|
3526
3442
|
//#region src/utils/videoThumbnail.ts
|
|
3527
|
-
function
|
|
3443
|
+
function Ja(e) {
|
|
3528
3444
|
if (!e) return {
|
|
3529
3445
|
platform: "unknown",
|
|
3530
3446
|
videoId: null,
|
|
@@ -3556,25 +3472,25 @@ function Qa(e) {
|
|
|
3556
3472
|
thumbnailUrl: null
|
|
3557
3473
|
};
|
|
3558
3474
|
}
|
|
3559
|
-
function
|
|
3560
|
-
return t ||
|
|
3475
|
+
function Ya(e, t) {
|
|
3476
|
+
return t || Ja(e).thumbnailUrl;
|
|
3561
3477
|
}
|
|
3562
3478
|
//#endregion
|
|
3563
3479
|
//#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
3564
|
-
var
|
|
3480
|
+
var Xa = ["src", "alt"], Za = {
|
|
3565
3481
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
3566
3482
|
style: { opacity: "0.7" }
|
|
3567
|
-
},
|
|
3483
|
+
}, Qa = ["href"], $a = ["src", "alt"], eo = ["src", "alt"], to = {
|
|
3568
3484
|
key: 3,
|
|
3569
3485
|
class: "tpl:flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
|
|
3570
|
-
},
|
|
3486
|
+
}, no = /* @__PURE__ */ g({
|
|
3571
3487
|
__name: "VideoBlock",
|
|
3572
3488
|
props: {
|
|
3573
3489
|
block: {},
|
|
3574
3490
|
viewport: {}
|
|
3575
3491
|
},
|
|
3576
3492
|
setup(e) {
|
|
3577
|
-
let t = e, { t: n } = J(), { syntax: r } =
|
|
3493
|
+
let t = e, { t: n } = J(), { syntax: r } = _i(), i = P(() => bt(t.block.url, r) || bt(t.block.thumbnailUrl, r)), a = P(() => i.value ? null : Ya(t.block.url, t.block.thumbnailUrl)), o = P(() => ({ textAlign: t.block.align })), s = P(() => ({
|
|
3578
3494
|
maxWidth: "100%",
|
|
3579
3495
|
width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
|
|
3580
3496
|
display: "block",
|
|
@@ -3592,16 +3508,16 @@ var eo = ["src", "alt"], to = {
|
|
|
3592
3508
|
class: "tpl:w-full tpl:border-0",
|
|
3593
3509
|
src: e.block.placeholderUrl,
|
|
3594
3510
|
alt: e.block.alt
|
|
3595
|
-
}, null, 8,
|
|
3511
|
+
}, null, 8, Xa), T(qa)], 4)) : i.value ? (f(), C("div", {
|
|
3596
3512
|
key: 1,
|
|
3597
3513
|
class: "tpl:relative tpl:!flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
|
|
3598
3514
|
style: D([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, s.value])
|
|
3599
|
-
}, [T(w(
|
|
3515
|
+
}, [T(w(ii), {
|
|
3600
3516
|
size: 36,
|
|
3601
3517
|
"stroke-width": 1.5,
|
|
3602
3518
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
3603
3519
|
style: { opacity: "0.5" }
|
|
3604
|
-
}), N("span",
|
|
3520
|
+
}), N("span", Za, M(c.value), 1)], 4)) : a.value ? (f(), C(O, { key: 2 }, [e.block.url ? (f(), C("a", {
|
|
3605
3521
|
key: 0,
|
|
3606
3522
|
href: e.block.url,
|
|
3607
3523
|
target: "_blank",
|
|
@@ -3613,7 +3529,7 @@ var eo = ["src", "alt"], to = {
|
|
|
3613
3529
|
class: "tpl:w-full tpl:border-0",
|
|
3614
3530
|
src: a.value,
|
|
3615
3531
|
alt: e.block.alt
|
|
3616
|
-
}, null, 8,
|
|
3532
|
+
}, null, 8, $a), T(qa, { "hover-effect": "" })], 12, Qa)) : (f(), C("div", {
|
|
3617
3533
|
key: 1,
|
|
3618
3534
|
class: "tpl:relative tpl:inline-block",
|
|
3619
3535
|
style: D(s.value)
|
|
@@ -3621,28 +3537,28 @@ var eo = ["src", "alt"], to = {
|
|
|
3621
3537
|
class: "tpl:w-full tpl:border-0",
|
|
3622
3538
|
src: a.value,
|
|
3623
3539
|
alt: e.block.alt
|
|
3624
|
-
}, null, 8,
|
|
3540
|
+
}, null, 8, eo), T(qa)], 4))], 64)) : (f(), C("div", to, [T(w(ii), {
|
|
3625
3541
|
size: 40,
|
|
3626
3542
|
"stroke-width": 1.5,
|
|
3627
3543
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
3628
3544
|
}), N("span", null, M(w(n).video.addVideo), 1)]))], 4));
|
|
3629
3545
|
}
|
|
3630
|
-
}),
|
|
3631
|
-
section:
|
|
3632
|
-
title:
|
|
3633
|
-
paragraph:
|
|
3634
|
-
image:
|
|
3546
|
+
}), ro = {
|
|
3547
|
+
section: Da,
|
|
3548
|
+
title: Sa,
|
|
3549
|
+
paragraph: aa,
|
|
3550
|
+
image: Qi,
|
|
3635
3551
|
button: lr,
|
|
3636
|
-
divider:
|
|
3637
|
-
video:
|
|
3638
|
-
social:
|
|
3639
|
-
menu:
|
|
3640
|
-
table:
|
|
3641
|
-
spacer:
|
|
3642
|
-
html:
|
|
3643
|
-
countdown:
|
|
3552
|
+
divider: Ii,
|
|
3553
|
+
video: no,
|
|
3554
|
+
social: La,
|
|
3555
|
+
menu: na,
|
|
3556
|
+
table: Ka,
|
|
3557
|
+
spacer: Ba,
|
|
3558
|
+
html: Vi,
|
|
3559
|
+
countdown: me(() => import("./CountdownBlock-CfPmCQ7j.js").then((e) => e.n))
|
|
3644
3560
|
};
|
|
3645
|
-
function
|
|
3561
|
+
function io(e) {
|
|
3646
3562
|
let { editor: t, config: r, translations: a, fontsManager: o } = e, { t: s, format: c } = J(a);
|
|
3647
3563
|
t.setUiTheme(r.uiTheme ?? "auto");
|
|
3648
3564
|
let { resolvedTheme: l } = Xn(P(() => t.state.uiTheme)), u = n(r.theme ?? {}), { themeStyles: d } = Qn({
|
|
@@ -3673,9 +3589,9 @@ function co(e) {
|
|
|
3673
3589
|
t: s,
|
|
3674
3590
|
format: c
|
|
3675
3591
|
}), y = nr();
|
|
3676
|
-
if (ir(y,
|
|
3592
|
+
if (ir(y, ro), r.customBlocks?.length) for (let e of r.customBlocks) y.registerCustom(e, Pi);
|
|
3677
3593
|
function b(e) {
|
|
3678
|
-
for (let t of e) y.registerCustom(t,
|
|
3594
|
+
for (let t of e) y.registerCustom(t, Pi);
|
|
3679
3595
|
}
|
|
3680
3596
|
function x(n) {
|
|
3681
3597
|
or(n, {
|
|
@@ -3711,7 +3627,7 @@ function co(e) {
|
|
|
3711
3627
|
}
|
|
3712
3628
|
//#endregion
|
|
3713
3629
|
//#region ../core/src/cloud/auth.ts
|
|
3714
|
-
var
|
|
3630
|
+
var ao = class e {
|
|
3715
3631
|
static DEFAULT_BASE_URL = "https://templatical.com";
|
|
3716
3632
|
accessToken = null;
|
|
3717
3633
|
expiresAt = null;
|
|
@@ -3812,8 +3728,8 @@ var lo = class e {
|
|
|
3812
3728
|
return a.status === 401 && (a = await i(await this.refreshToken())), a;
|
|
3813
3729
|
}
|
|
3814
3730
|
};
|
|
3815
|
-
function
|
|
3816
|
-
return e.mode === "direct" ? new
|
|
3731
|
+
function oo(e, t) {
|
|
3732
|
+
return e.mode === "direct" ? new ao({
|
|
3817
3733
|
url: `${(e.baseUrl ?? "https://templatical.com").replace(/\/$/, "")}/api/v1/auth/token`,
|
|
3818
3734
|
baseUrl: e.baseUrl,
|
|
3819
3735
|
requestOptions: {
|
|
@@ -3827,7 +3743,7 @@ function uo(e, t) {
|
|
|
3827
3743
|
}
|
|
3828
3744
|
},
|
|
3829
3745
|
onError: t
|
|
3830
|
-
}) : new
|
|
3746
|
+
}) : new ao({
|
|
3831
3747
|
url: e.url,
|
|
3832
3748
|
baseUrl: e.baseUrl,
|
|
3833
3749
|
requestOptions: e.requestOptions,
|
|
@@ -3839,16 +3755,16 @@ function uo(e, t) {
|
|
|
3839
3755
|
function X(e, t) {
|
|
3840
3756
|
return e.replace(/\{(\w+)\}/g, (e, n) => encodeURIComponent(t[n] ?? ""));
|
|
3841
3757
|
}
|
|
3842
|
-
var
|
|
3758
|
+
var so = "/api/v1/projects/{project}/tenants/{tenant}", Z = `${so}/templates/{template}`, co = `${Z}/ai`, Q = `${so}/media`, lo = `${Q}/folders`, uo = `${so}/saved-modules`, $ = {
|
|
3843
3759
|
health: "/api/v1/health",
|
|
3844
|
-
"projects.config": `${
|
|
3845
|
-
"broadcasting.auth": `${
|
|
3846
|
-
"templates.store": `${
|
|
3760
|
+
"projects.config": `${so}/config`,
|
|
3761
|
+
"broadcasting.auth": `${so}/broadcasting/auth`,
|
|
3762
|
+
"templates.store": `${so}/templates`,
|
|
3847
3763
|
"templates.show": `${Z}`,
|
|
3848
3764
|
"templates.update": `${Z}`,
|
|
3849
3765
|
"templates.destroy": `${Z}`,
|
|
3850
3766
|
"templates.export": `${Z}/export`,
|
|
3851
|
-
"templates.importFromBeefree": `${
|
|
3767
|
+
"templates.importFromBeefree": `${so}/templates/import/from-beefree`,
|
|
3852
3768
|
"templates.sendTestEmail": `${Z}/send-test-email`,
|
|
3853
3769
|
"snapshots.index": `${Z}/snapshots`,
|
|
3854
3770
|
"snapshots.store": `${Z}/snapshots`,
|
|
@@ -3859,13 +3775,13 @@ var fo = "/api/v1/projects/{project}/tenants/{tenant}", Z = `${fo}/templates/{te
|
|
|
3859
3775
|
"comments.update": `${Z}/comments/{comment}`,
|
|
3860
3776
|
"comments.destroy": `${Z}/comments/{comment}`,
|
|
3861
3777
|
"comments.resolve": `${Z}/comments/{comment}/resolve`,
|
|
3862
|
-
"ai.generate": `${
|
|
3863
|
-
"ai.conversationMessages": `${
|
|
3864
|
-
"ai.suggestions": `${
|
|
3865
|
-
"ai.rewriteText": `${
|
|
3866
|
-
"ai.score": `${
|
|
3867
|
-
"ai.fixFinding": `${
|
|
3868
|
-
"ai.generateFromDesign": `${
|
|
3778
|
+
"ai.generate": `${co}/generate`,
|
|
3779
|
+
"ai.conversationMessages": `${co}/conversation-messages`,
|
|
3780
|
+
"ai.suggestions": `${co}/suggestions`,
|
|
3781
|
+
"ai.rewriteText": `${co}/rewrite-text`,
|
|
3782
|
+
"ai.score": `${co}/score`,
|
|
3783
|
+
"ai.fixFinding": `${co}/fix-finding`,
|
|
3784
|
+
"ai.generateFromDesign": `${co}/generate-from-design`,
|
|
3869
3785
|
"media.upload": `${Q}/upload`,
|
|
3870
3786
|
"media.browse": `${Q}/browse`,
|
|
3871
3787
|
"media.delete": `${Q}/delete`,
|
|
@@ -3875,15 +3791,15 @@ var fo = "/api/v1/projects/{project}/tenants/{tenant}", Z = `${fo}/templates/{te
|
|
|
3875
3791
|
"media.checkUsage": `${Q}/check-usage`,
|
|
3876
3792
|
"media.frequentlyUsed": `${Q}/frequently-used`,
|
|
3877
3793
|
"media.importFromUrl": `${Q}/import-from-url`,
|
|
3878
|
-
"folders.index": `${
|
|
3879
|
-
"folders.store": `${
|
|
3880
|
-
"folders.update": `${
|
|
3881
|
-
"folders.destroy": `${
|
|
3882
|
-
"savedModules.index": `${
|
|
3883
|
-
"savedModules.store": `${
|
|
3884
|
-
"savedModules.update": `${
|
|
3885
|
-
"savedModules.destroy": `${
|
|
3886
|
-
},
|
|
3794
|
+
"folders.index": `${lo}`,
|
|
3795
|
+
"folders.store": `${lo}`,
|
|
3796
|
+
"folders.update": `${lo}/{mediaFolder}`,
|
|
3797
|
+
"folders.destroy": `${lo}/{mediaFolder}`,
|
|
3798
|
+
"savedModules.index": `${uo}`,
|
|
3799
|
+
"savedModules.store": `${uo}`,
|
|
3800
|
+
"savedModules.update": `${uo}/{savedModule}`,
|
|
3801
|
+
"savedModules.destroy": `${uo}/{savedModule}`
|
|
3802
|
+
}, fo = class {
|
|
3887
3803
|
constructor(e) {
|
|
3888
3804
|
this.authManager = e;
|
|
3889
3805
|
}
|
|
@@ -4068,14 +3984,14 @@ var fo = "/api/v1/projects/{project}/tenants/{tenant}", Z = `${fo}/templates/{te
|
|
|
4068
3984
|
};
|
|
4069
3985
|
//#endregion
|
|
4070
3986
|
//#region ../core/src/cloud/websocket-client.ts
|
|
4071
|
-
function
|
|
3987
|
+
function po(e) {
|
|
4072
3988
|
return {
|
|
4073
3989
|
host: e.host,
|
|
4074
3990
|
port: e.port,
|
|
4075
3991
|
appKey: e.app_key
|
|
4076
3992
|
};
|
|
4077
3993
|
}
|
|
4078
|
-
var
|
|
3994
|
+
var mo = class {
|
|
4079
3995
|
pusher = null;
|
|
4080
3996
|
authManager;
|
|
4081
3997
|
config;
|
|
@@ -4085,7 +4001,13 @@ var vo = class {
|
|
|
4085
4001
|
}
|
|
4086
4002
|
async connect() {
|
|
4087
4003
|
if (this.pusher) return;
|
|
4088
|
-
let
|
|
4004
|
+
let t;
|
|
4005
|
+
try {
|
|
4006
|
+
({default: t} = await import("./pusher-DwSQn6BA.js").then((t) => /* @__PURE__ */ e(t.t(), 1)));
|
|
4007
|
+
} catch {
|
|
4008
|
+
throw Error("Cloud features require the optional peer dependency 'pusher-js'. Install it with: npm install pusher-js");
|
|
4009
|
+
}
|
|
4010
|
+
let { host: n, port: r, appKey: i } = this.config, a = this.authManager.resolveUrl(X($["broadcasting.auth"], {
|
|
4089
4011
|
project: this.authManager.projectId,
|
|
4090
4012
|
tenant: this.authManager.tenantSlug
|
|
4091
4013
|
}));
|
|
@@ -4136,7 +4058,7 @@ var vo = class {
|
|
|
4136
4058
|
};
|
|
4137
4059
|
//#endregion
|
|
4138
4060
|
//#region ../core/src/cloud/mcp-operation-handler.ts
|
|
4139
|
-
function
|
|
4061
|
+
function ho(e, t) {
|
|
4140
4062
|
let { operation: n, data: r } = t;
|
|
4141
4063
|
switch (n) {
|
|
4142
4064
|
case "add_block":
|
|
@@ -4164,8 +4086,8 @@ function yo(e, t) {
|
|
|
4164
4086
|
}
|
|
4165
4087
|
//#endregion
|
|
4166
4088
|
//#region ../core/src/cloud/editor.ts
|
|
4167
|
-
function
|
|
4168
|
-
let t = new
|
|
4089
|
+
function go(e) {
|
|
4090
|
+
let t = new fo(e.authManager), n = S({
|
|
4169
4091
|
template: null,
|
|
4170
4092
|
content: Je(e.defaultFontFamily, e.templateDefaults),
|
|
4171
4093
|
selectedBlockId: null,
|
|
@@ -4350,11 +4272,11 @@ function bo(e) {
|
|
|
4350
4272
|
}
|
|
4351
4273
|
//#endregion
|
|
4352
4274
|
//#region ../core/src/cloud/ai-chat.ts
|
|
4353
|
-
var
|
|
4354
|
-
function
|
|
4355
|
-
return `msg_${Date.now()}_${++
|
|
4275
|
+
var _o = 0;
|
|
4276
|
+
function vo() {
|
|
4277
|
+
return `msg_${Date.now()}_${++_o}`;
|
|
4356
4278
|
}
|
|
4357
|
-
function
|
|
4279
|
+
function yo(e) {
|
|
4358
4280
|
let { authManager: t, getTemplateId: r, onApply: i, onError: a } = e, o = n([]), s = n(!1), c = n(!1), l = n(null), u = n(null), d = n(null), f = n(null), p = n(null), m = n(null), h = n(!1), g = n([]), _ = n(!1);
|
|
4359
4281
|
function v(e, t) {
|
|
4360
4282
|
let n = o.value.findIndex((t) => t.id === e);
|
|
@@ -4448,14 +4370,14 @@ function Co(e) {
|
|
|
4448
4370
|
let _ = r();
|
|
4449
4371
|
if (!_) throw Error("Template must be saved before using AI generation");
|
|
4450
4372
|
s.value = !0, l.value = null, u.value = null, g.value = [];
|
|
4451
|
-
let y =
|
|
4373
|
+
let y = vo();
|
|
4452
4374
|
o.value = [...o.value, {
|
|
4453
4375
|
id: y,
|
|
4454
4376
|
role: "user",
|
|
4455
4377
|
content: e,
|
|
4456
4378
|
timestamp: Date.now()
|
|
4457
4379
|
}];
|
|
4458
|
-
let b =
|
|
4380
|
+
let b = vo();
|
|
4459
4381
|
o.value = [...o.value, {
|
|
4460
4382
|
id: b,
|
|
4461
4383
|
role: "assistant",
|
|
@@ -4542,7 +4464,7 @@ function Co(e) {
|
|
|
4542
4464
|
}
|
|
4543
4465
|
//#endregion
|
|
4544
4466
|
//#region ../core/src/cloud/ai-config.ts
|
|
4545
|
-
function
|
|
4467
|
+
function bo(e) {
|
|
4546
4468
|
function t(t) {
|
|
4547
4469
|
return e === !1 ? !1 : e?.[t] !== !1;
|
|
4548
4470
|
}
|
|
@@ -4553,7 +4475,7 @@ function wo(e) {
|
|
|
4553
4475
|
}
|
|
4554
4476
|
//#endregion
|
|
4555
4477
|
//#region ../core/src/cloud/template-scoring.ts
|
|
4556
|
-
function
|
|
4478
|
+
function xo(e) {
|
|
4557
4479
|
let { authManager: t, getTemplateId: r } = e, i = n(!1), a = n(null), o = n(null), s = n(null), c = n(""), l = n(null);
|
|
4558
4480
|
async function u(e, n) {
|
|
4559
4481
|
let s = r();
|
|
@@ -4698,7 +4620,7 @@ function To(e) {
|
|
|
4698
4620
|
}
|
|
4699
4621
|
//#endregion
|
|
4700
4622
|
//#region ../core/src/cloud/design-reference.ts
|
|
4701
|
-
function
|
|
4623
|
+
function So(e) {
|
|
4702
4624
|
let { authManager: t, getTemplateId: r, onApply: i, onError: a } = e, o = n(!1), s = n(null);
|
|
4703
4625
|
async function c(e) {
|
|
4704
4626
|
let n = r();
|
|
@@ -4761,8 +4683,8 @@ function Eo(e) {
|
|
|
4761
4683
|
}
|
|
4762
4684
|
//#endregion
|
|
4763
4685
|
//#region ../core/src/cloud/comments.ts
|
|
4764
|
-
function
|
|
4765
|
-
let { authManager: t, getTemplateId: r, getSocketId: i, onComment: a, onError: o, hasCommentingFeature: s } = e, c = new
|
|
4686
|
+
function Co(e) {
|
|
4687
|
+
let { authManager: t, getTemplateId: r, getSocketId: i, onComment: a, onError: o, hasCommentingFeature: s } = e, c = new fo(t), l = n([]), u = n(!1), d = n(!1), f = P(() => (s?.() ?? !1) && t.userConfig !== null), p = P(() => {
|
|
4766
4688
|
let e = 0;
|
|
4767
4689
|
for (let t of l.value) e += 1 + (t.replies?.length ?? 0);
|
|
4768
4690
|
return e;
|
|
@@ -4961,15 +4883,15 @@ function Do(e) {
|
|
|
4961
4883
|
}
|
|
4962
4884
|
//#endregion
|
|
4963
4885
|
//#region ../core/src/cloud/comment-listener.ts
|
|
4964
|
-
function
|
|
4886
|
+
function wo(e) {
|
|
4965
4887
|
let { comments: t, channel: n } = e;
|
|
4966
4888
|
i(n, (e, n) => {
|
|
4967
4889
|
n && n.unbind("comment-broadcast"), e && e.bind("comment-broadcast", (e) => {
|
|
4968
|
-
|
|
4890
|
+
To(t, e);
|
|
4969
4891
|
});
|
|
4970
4892
|
});
|
|
4971
4893
|
}
|
|
4972
|
-
function
|
|
4894
|
+
function To(e, t) {
|
|
4973
4895
|
switch (t.action) {
|
|
4974
4896
|
case "comment_created":
|
|
4975
4897
|
e.applyRemoteCreate(t.comment);
|
|
@@ -4988,7 +4910,7 @@ function ko(e, t) {
|
|
|
4988
4910
|
}
|
|
4989
4911
|
//#endregion
|
|
4990
4912
|
//#region ../core/src/cloud/collaboration.ts
|
|
4991
|
-
var
|
|
4913
|
+
var Eo = [
|
|
4992
4914
|
"#3b82f6",
|
|
4993
4915
|
"#ef4444",
|
|
4994
4916
|
"#10b981",
|
|
@@ -5000,10 +4922,10 @@ var Ao = [
|
|
|
5000
4922
|
"#6366f1",
|
|
5001
4923
|
"#14b8a6"
|
|
5002
4924
|
];
|
|
5003
|
-
function
|
|
4925
|
+
function Do(e) {
|
|
5004
4926
|
let { authManager: t, editor: r, channel: a } = e, o = n([]), s = n(/* @__PURE__ */ new Map()), c = 0, l = !1, u = P(() => t.userConfig?.id ?? "");
|
|
5005
4927
|
function d() {
|
|
5006
|
-
let e =
|
|
4928
|
+
let e = Eo[c % Eo.length];
|
|
5007
4929
|
return c++, e;
|
|
5008
4930
|
}
|
|
5009
4931
|
function f(e) {
|
|
@@ -5045,7 +4967,7 @@ function jo(e) {
|
|
|
5045
4967
|
function g(e) {
|
|
5046
4968
|
l = !0;
|
|
5047
4969
|
try {
|
|
5048
|
-
|
|
4970
|
+
ho(r, e);
|
|
5049
4971
|
} finally {
|
|
5050
4972
|
l = !1;
|
|
5051
4973
|
}
|
|
@@ -5105,7 +5027,7 @@ function jo(e) {
|
|
|
5105
5027
|
}
|
|
5106
5028
|
//#endregion
|
|
5107
5029
|
//#region ../core/src/cloud/collaboration-broadcast.ts
|
|
5108
|
-
function
|
|
5030
|
+
function Oo(e, t) {
|
|
5109
5031
|
let n = e.addBlock, r = e.updateBlock, i = e.removeBlock, a = e.moveBlock, o = e.updateSettings, s = e.setContent;
|
|
5110
5032
|
e.addBlock = (e, r, i) => {
|
|
5111
5033
|
n(e, r, i), t._broadcastOperation({
|
|
@@ -5159,11 +5081,11 @@ function Mo(e, t) {
|
|
|
5159
5081
|
}
|
|
5160
5082
|
//#endregion
|
|
5161
5083
|
//#region ../core/src/cloud/web-socket.ts
|
|
5162
|
-
function
|
|
5084
|
+
function ko(e) {
|
|
5163
5085
|
let { authManager: t, onError: r } = e, i = n(null), a = n(!1), o = null, s = null;
|
|
5164
5086
|
async function c(e, n) {
|
|
5165
5087
|
if (o) return;
|
|
5166
|
-
o = new
|
|
5088
|
+
o = new mo({
|
|
5167
5089
|
authManager: t,
|
|
5168
5090
|
config: n,
|
|
5169
5091
|
onError: r
|
|
@@ -5191,8 +5113,8 @@ function No(e) {
|
|
|
5191
5113
|
}
|
|
5192
5114
|
//#endregion
|
|
5193
5115
|
//#region ../core/src/cloud/saved-modules.ts
|
|
5194
|
-
function
|
|
5195
|
-
let t = new
|
|
5116
|
+
function Ao(e) {
|
|
5117
|
+
let t = new fo(e.authManager), r = n([]), i = n(!1);
|
|
5196
5118
|
async function a(n) {
|
|
5197
5119
|
i.value = !0;
|
|
5198
5120
|
try {
|
|
@@ -5240,8 +5162,8 @@ function Po(e) {
|
|
|
5240
5162
|
}
|
|
5241
5163
|
//#endregion
|
|
5242
5164
|
//#region ../core/src/cloud/snapshots.ts
|
|
5243
|
-
function
|
|
5244
|
-
let t = new
|
|
5165
|
+
function jo(e) {
|
|
5166
|
+
let t = new fo(e.authManager), r = n([]), i = n(!1), a = n(!1);
|
|
5245
5167
|
async function o() {
|
|
5246
5168
|
i.value = !0;
|
|
5247
5169
|
try {
|
|
@@ -5273,8 +5195,8 @@ function Fo(e) {
|
|
|
5273
5195
|
}
|
|
5274
5196
|
//#endregion
|
|
5275
5197
|
//#region ../core/src/cloud/test-email.ts
|
|
5276
|
-
function
|
|
5277
|
-
let { authManager: t, getTemplateId: r, save: a, exportHtml: o, onError: s, isAuthReady: c, onBeforeTestEmail: l } = e, u = new
|
|
5198
|
+
function Mo(e) {
|
|
5199
|
+
let { authManager: t, getTemplateId: r, save: a, exportHtml: o, onError: s, isAuthReady: c, onBeforeTestEmail: l } = e, u = new fo(t), d = n(!1), f = n(null), p = n(null);
|
|
5278
5200
|
c && i(c, (e) => {
|
|
5279
5201
|
e && (p.value = t.testEmailConfig);
|
|
5280
5202
|
}, { immediate: !0 });
|
|
@@ -5310,8 +5232,8 @@ function Io(e) {
|
|
|
5310
5232
|
}
|
|
5311
5233
|
//#endregion
|
|
5312
5234
|
//#region ../core/src/cloud/export.ts
|
|
5313
|
-
function
|
|
5314
|
-
let { authManager: t, getFontsConfig: n, canUseCustomFonts: r } = e, i = new
|
|
5235
|
+
function No(e) {
|
|
5236
|
+
let { authManager: t, getFontsConfig: n, canUseCustomFonts: r } = e, i = new fo(t);
|
|
5315
5237
|
function a() {
|
|
5316
5238
|
let e = n?.();
|
|
5317
5239
|
return {
|
|
@@ -5337,8 +5259,8 @@ function Lo(e) {
|
|
|
5337
5259
|
}
|
|
5338
5260
|
//#endregion
|
|
5339
5261
|
//#region ../core/src/cloud/plan-config.ts
|
|
5340
|
-
function
|
|
5341
|
-
let { authManager: t, onError: r } = e, i = n(null), a = n(!1), o = new
|
|
5262
|
+
function Po(e) {
|
|
5263
|
+
let { authManager: t, onError: r } = e, i = n(null), a = n(!1), o = new fo(t), s = P(() => i.value?.features ?? null);
|
|
5342
5264
|
function c(e) {
|
|
5343
5265
|
return i.value?.features[e] ?? !1;
|
|
5344
5266
|
}
|
|
@@ -5364,11 +5286,11 @@ function Ro(e) {
|
|
|
5364
5286
|
}
|
|
5365
5287
|
//#endregion
|
|
5366
5288
|
//#region ../core/src/cloud/health-check.ts
|
|
5367
|
-
var
|
|
5368
|
-
function
|
|
5289
|
+
var Fo = 5e3;
|
|
5290
|
+
function Io(e) {
|
|
5369
5291
|
return e.authManager ? e.authManager.resolveUrl($.health) : `${(e.baseUrl ?? "https://templatical.com").replace(/\/$/, "")}${$.health}`;
|
|
5370
5292
|
}
|
|
5371
|
-
async function
|
|
5293
|
+
async function Lo(e, t) {
|
|
5372
5294
|
let n = performance.now();
|
|
5373
5295
|
try {
|
|
5374
5296
|
let r = t ? await t.authenticatedFetch($.health, {
|
|
@@ -5420,7 +5342,7 @@ async function Vo(e, t) {
|
|
|
5420
5342
|
};
|
|
5421
5343
|
}
|
|
5422
5344
|
}
|
|
5423
|
-
async function
|
|
5345
|
+
async function Ro(e) {
|
|
5424
5346
|
if (!e?.host || !e?.app_key) return {
|
|
5425
5347
|
ok: !1,
|
|
5426
5348
|
error: "WebSocket configuration not available"
|
|
@@ -5436,7 +5358,7 @@ async function Ho(e) {
|
|
|
5436
5358
|
ok: !1,
|
|
5437
5359
|
error: "WebSocket connection timed out"
|
|
5438
5360
|
});
|
|
5439
|
-
},
|
|
5361
|
+
}, Fo), r = new WebSocket(t);
|
|
5440
5362
|
r.onopen = () => {
|
|
5441
5363
|
clearTimeout(n), r.close(), e({ ok: !0 });
|
|
5442
5364
|
}, r.onerror = () => {
|
|
@@ -5447,8 +5369,8 @@ async function Ho(e) {
|
|
|
5447
5369
|
};
|
|
5448
5370
|
});
|
|
5449
5371
|
}
|
|
5450
|
-
async function
|
|
5451
|
-
let t = await
|
|
5372
|
+
async function zo(e = {}) {
|
|
5373
|
+
let t = await Lo(Io(e), e.authManager), n = await Ro(t.wsConfig);
|
|
5452
5374
|
return {
|
|
5453
5375
|
api: t.api,
|
|
5454
5376
|
websocket: n,
|
|
@@ -5458,17 +5380,17 @@ async function Uo(e = {}) {
|
|
|
5458
5380
|
}
|
|
5459
5381
|
//#endregion
|
|
5460
5382
|
//#region ../core/src/cloud/mcp-listener.ts
|
|
5461
|
-
function
|
|
5383
|
+
function Bo(e) {
|
|
5462
5384
|
let { editor: t, channel: n, onOperation: r } = e;
|
|
5463
5385
|
i(n, (e, n) => {
|
|
5464
5386
|
n && n.unbind("mcp-operation"), e && e.bind("mcp-operation", (e) => {
|
|
5465
|
-
|
|
5387
|
+
ho(t, e), r?.(e);
|
|
5466
5388
|
});
|
|
5467
5389
|
});
|
|
5468
5390
|
}
|
|
5469
5391
|
//#endregion
|
|
5470
5392
|
//#region src/composables/useAliveFlag.ts
|
|
5471
|
-
function
|
|
5393
|
+
function Vo() {
|
|
5472
5394
|
let e = { alive: !0 };
|
|
5473
5395
|
return r(() => {
|
|
5474
5396
|
e.alive = !1;
|
|
@@ -5476,19 +5398,19 @@ function Go() {
|
|
|
5476
5398
|
}
|
|
5477
5399
|
//#endregion
|
|
5478
5400
|
//#region src/cloud/components/AiChatSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
5479
|
-
var
|
|
5401
|
+
var Ho = {
|
|
5480
5402
|
key: 0,
|
|
5481
5403
|
class: "tpl-ai-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:z-panel tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
|
|
5482
|
-
},
|
|
5404
|
+
}, Uo = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, Wo = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, Go = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ko = ["title"], qo = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col" }, Jo = {
|
|
5483
5405
|
key: 0,
|
|
5484
5406
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
5485
|
-
},
|
|
5407
|
+
}, Yo = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Xo = {
|
|
5486
5408
|
key: 1,
|
|
5487
5409
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
5488
|
-
},
|
|
5410
|
+
}, Zo = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Qo = {
|
|
5489
5411
|
key: 2,
|
|
5490
5412
|
class: "tpl:flex tpl:flex-col tpl:gap-4"
|
|
5491
|
-
},
|
|
5413
|
+
}, $o = {
|
|
5492
5414
|
key: 0,
|
|
5493
5415
|
class: "tpl:self-end tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm",
|
|
5494
5416
|
style: {
|
|
@@ -5497,10 +5419,10 @@ var Ko = {
|
|
|
5497
5419
|
"max-width": "85%",
|
|
5498
5420
|
"box-shadow": "var(--tpl-shadow)"
|
|
5499
5421
|
}
|
|
5500
|
-
},
|
|
5422
|
+
}, es = {
|
|
5501
5423
|
key: 1,
|
|
5502
5424
|
class: "tpl:flex tpl:flex-col tpl:gap-2"
|
|
5503
|
-
},
|
|
5425
|
+
}, ts = {
|
|
5504
5426
|
key: 1,
|
|
5505
5427
|
class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3.5 tpl:py-2.5 tpl:text-sm tpl:whitespace-pre-wrap",
|
|
5506
5428
|
style: {
|
|
@@ -5509,21 +5431,21 @@ var Ko = {
|
|
|
5509
5431
|
color: "var(--tpl-text)",
|
|
5510
5432
|
"box-shadow": "var(--tpl-shadow)"
|
|
5511
5433
|
}
|
|
5512
|
-
},
|
|
5434
|
+
}, ns = {
|
|
5513
5435
|
key: 0,
|
|
5514
5436
|
class: "tpl:mx-3 tpl:mb-2 tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs",
|
|
5515
5437
|
style: {
|
|
5516
5438
|
"background-color": "var(--tpl-danger-light)",
|
|
5517
5439
|
color: "var(--tpl-danger)"
|
|
5518
5440
|
}
|
|
5519
|
-
},
|
|
5441
|
+
}, rs = {
|
|
5520
5442
|
key: 1,
|
|
5521
5443
|
class: "tpl:absolute tpl:right-0 tpl:bottom-0 tpl:left-0 tpl:z-10 tpl:px-3 tpl:pb-3",
|
|
5522
5444
|
style: {
|
|
5523
5445
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 50%,\n transparent\n )",
|
|
5524
5446
|
"backdrop-filter": "blur(2px)"
|
|
5525
5447
|
}
|
|
5526
|
-
},
|
|
5448
|
+
}, is = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, as = ["onClick"], os = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, ss = { class: "tpl-ai-input-wrapper tpl:flex tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, cs = ["placeholder", "disabled"], ls = ["disabled"], us = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, ds = /* @__PURE__ */ g({
|
|
5527
5449
|
__name: "AiChatSidebar",
|
|
5528
5450
|
props: {
|
|
5529
5451
|
visible: { type: Boolean },
|
|
@@ -5531,7 +5453,7 @@ var Ko = {
|
|
|
5531
5453
|
},
|
|
5532
5454
|
emits: ["close"],
|
|
5533
5455
|
setup(e, { emit: t }) {
|
|
5534
|
-
let r = e, a = t, l = q(Tn, "AiChatSidebar"), u = q(K, "AiChatSidebar"), d = q(Un, "AiChatSidebar"), p = o(Fn, []), m =
|
|
5456
|
+
let r = e, a = t, l = q(Tn, "AiChatSidebar"), u = q(K, "AiChatSidebar"), d = q(Un, "AiChatSidebar"), p = o(Fn, []), m = Vo(), h = yo({
|
|
5535
5457
|
authManager: d,
|
|
5536
5458
|
getTemplateId: () => u.state.template?.id ?? null,
|
|
5537
5459
|
onApply: r.onApply,
|
|
@@ -5578,42 +5500,42 @@ var Ko = {
|
|
|
5578
5500
|
"leave-from-class": "tpl:translate-x-0",
|
|
5579
5501
|
"leave-to-class": "tpl:translate-x-full"
|
|
5580
5502
|
}, {
|
|
5581
|
-
default: c(() => [e.visible ? (f(), C("div",
|
|
5582
|
-
N("div",
|
|
5503
|
+
default: c(() => [e.visible ? (f(), C("div", Ho, [
|
|
5504
|
+
N("div", Uo, [N("div", Wo, [T(w(Qr), {
|
|
5583
5505
|
size: 13,
|
|
5584
5506
|
"stroke-width": 2
|
|
5585
|
-
}), N("span", null, M(w(l).aiChat.title), 1)]), N("div",
|
|
5507
|
+
}), N("span", null, M(w(l).aiChat.title), 1)]), N("div", Go, [(w(h).messages.value?.length ?? 0) > 0 ? (f(), C("button", {
|
|
5586
5508
|
key: 0,
|
|
5587
5509
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
5588
5510
|
title: w(l).aiChat.clear,
|
|
5589
5511
|
onClick: n[0] ||= (e) => w(h).clearChat()
|
|
5590
|
-
}, [T(w(
|
|
5512
|
+
}, [T(w(ei), {
|
|
5591
5513
|
size: 14,
|
|
5592
5514
|
"stroke-width": 2
|
|
5593
|
-
})], 8,
|
|
5515
|
+
})], 8, Ko)) : A("", !0), N("button", {
|
|
5594
5516
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
5595
5517
|
onClick: n[1] ||= (e) => a("close")
|
|
5596
|
-
}, [T(w(
|
|
5518
|
+
}, [T(w(ai), {
|
|
5597
5519
|
size: 14,
|
|
5598
5520
|
"stroke-width": 2
|
|
5599
5521
|
})])])]),
|
|
5600
|
-
N("div",
|
|
5522
|
+
N("div", qo, [
|
|
5601
5523
|
N("div", {
|
|
5602
5524
|
ref_key: "messagesContainer",
|
|
5603
5525
|
ref: _,
|
|
5604
5526
|
class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4"
|
|
5605
|
-
}, [w(h).isLoadingHistory.value ? (f(), C("div",
|
|
5527
|
+
}, [w(h).isLoadingHistory.value ? (f(), C("div", Jo, [T(w(Br), {
|
|
5606
5528
|
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
5607
5529
|
size: 24,
|
|
5608
5530
|
"stroke-width": 2
|
|
5609
|
-
}), N("p",
|
|
5531
|
+
}), N("p", Yo, M(w(l).aiChat.loadingHistory), 1)])) : (w(h).messages.value?.length ?? 0) === 0 ? (f(), C("div", Xo, [T(w(Qr), {
|
|
5610
5532
|
size: 32,
|
|
5611
5533
|
"stroke-width": 1.5,
|
|
5612
5534
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
5613
|
-
}), N("p",
|
|
5535
|
+
}), N("p", Zo, M(w(l).aiChat.placeholder), 1)])) : (f(), C("div", Qo, [(f(!0), C(O, null, s(w(h).messages.value, (e, t) => (f(), C("div", {
|
|
5614
5536
|
key: e.id,
|
|
5615
5537
|
class: "tpl:flex tpl:flex-col tpl:gap-2"
|
|
5616
|
-
}, [e.role === "user" ? (f(), C("div",
|
|
5538
|
+
}, [e.role === "user" ? (f(), C("div", $o, M(e.content), 1)) : (f(), C("div", es, [!ee(e.content) && w(h).isGenerating.value && t === (w(h).messages.value?.length ?? 0) - 1 ? (f(), j(mi, { key: 0 })) : (f(), C("div", ts, M(ee(e.content) || w(l).aiChat.applied), 1)), e.id === w(h).lastApplyMessageId.value && !w(h).isGenerating.value ? (f(), C("button", {
|
|
5617
5539
|
key: 2,
|
|
5618
5540
|
class: "tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:self-start tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
5619
5541
|
style: {
|
|
@@ -5622,19 +5544,19 @@ var Ko = {
|
|
|
5622
5544
|
"background-color": "transparent"
|
|
5623
5545
|
},
|
|
5624
5546
|
onClick: n[2] ||= (e) => w(h).toggleLastRevert()
|
|
5625
|
-
}, [w(h).isLastChangeReverted.value ? (f(), C(O, { key: 0 }, [T(w(
|
|
5547
|
+
}, [w(h).isLastChangeReverted.value ? (f(), C(O, { key: 0 }, [T(w(Gr), {
|
|
5626
5548
|
size: 12,
|
|
5627
5549
|
"stroke-width": 2
|
|
5628
|
-
}), z(" " + M(w(l).aiChat.reapply), 1)], 64)) : (f(), C(O, { key: 1 }, [T(w(
|
|
5550
|
+
}), z(" " + M(w(l).aiChat.reapply), 1)], 64)) : (f(), C(O, { key: 1 }, [T(w(ni), {
|
|
5629
5551
|
size: 12,
|
|
5630
5552
|
"stroke-width": 2
|
|
5631
5553
|
}), z(" " + M(w(l).aiChat.revert), 1)], 64))])) : A("", !0)]))]))), 128))]))], 512),
|
|
5632
|
-
w(h).error.value ? (f(), C("div",
|
|
5554
|
+
w(h).error.value ? (f(), C("div", ns, [T(w(Er), {
|
|
5633
5555
|
size: 14,
|
|
5634
5556
|
"stroke-width": 2,
|
|
5635
5557
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
5636
5558
|
}), N("span", null, M(w(h).error.value === "ai_apply_failed" ? w(l).aiChat.applyFailed : w(l).aiChat.error), 1)])) : A("", !0),
|
|
5637
|
-
(w(h).suggestions.value?.length ?? 0) > 0 ? (f(), C("div",
|
|
5559
|
+
(w(h).suggestions.value?.length ?? 0) > 0 ? (f(), C("div", rs, [N("div", is, [(f(!0), C(O, null, s(w(h).suggestions.value ?? [], (e, t) => (f(), C("button", {
|
|
5638
5560
|
key: t,
|
|
5639
5561
|
class: I(["tpl-suggestion-btn tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:leading-snug tpl:transition-all tpl:duration-300 tpl:ease-out", (w(h).suggestions.value?.length ?? 0) - 1 - t < b.value ? "tpl:translate-y-0 tpl:opacity-100" : "tpl:pointer-events-none tpl:-translate-y-2 tpl:opacity-0"]),
|
|
5640
5562
|
style: {
|
|
@@ -5644,95 +5566,95 @@ var Ko = {
|
|
|
5644
5566
|
"box-shadow": "var(--tpl-shadow)"
|
|
5645
5567
|
},
|
|
5646
5568
|
onClick: (t) => te(e)
|
|
5647
|
-
}, M(e), 11,
|
|
5569
|
+
}, M(e), 11, as))), 128))])])) : A("", !0)
|
|
5648
5570
|
]),
|
|
5649
|
-
N("div",
|
|
5571
|
+
N("div", os, [N("div", ss, [v(N("textarea", {
|
|
5650
5572
|
"onUpdate:modelValue": n[3] ||= (e) => g.value = e,
|
|
5651
5573
|
class: "tpl:max-h-32 tpl:min-h-[64px] tpl:flex-1 tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-sm tpl:outline-none tpl:text-[var(--tpl-text)]",
|
|
5652
5574
|
placeholder: w(l).aiChat.inputPlaceholder,
|
|
5653
5575
|
disabled: w(h).isGenerating.value,
|
|
5654
5576
|
rows: "3",
|
|
5655
5577
|
onKeydown: ne
|
|
5656
|
-
}, null, 40,
|
|
5578
|
+
}, null, 40, cs), [[de, g.value]]), N("button", {
|
|
5657
5579
|
class: "tpl-ai-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:duration-150 tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
|
|
5658
5580
|
disabled: !g.value.trim() || w(h).isGenerating.value,
|
|
5659
5581
|
onClick: k
|
|
5660
|
-
}, [T(w(
|
|
5582
|
+
}, [T(w(Jr), {
|
|
5661
5583
|
size: 16,
|
|
5662
5584
|
"stroke-width": 2
|
|
5663
|
-
})], 8,
|
|
5585
|
+
})], 8, ls)]), N("p", us, M(w(l).aiMenu.disclaimer), 1)])
|
|
5664
5586
|
])) : A("", !0)]),
|
|
5665
5587
|
_: 1
|
|
5666
5588
|
}));
|
|
5667
5589
|
}
|
|
5668
|
-
}),
|
|
5669
|
-
function
|
|
5670
|
-
let i = new Date(e), a = Date.now() - i.getTime(), o = Math.floor(a /
|
|
5590
|
+
}), fs = /* @__PURE__ */ t({ default: () => ps }), ps = /* @__PURE__ */ ui(ds, [["__scopeId", "data-v-da2a9f9a"]]), ms = 6e4, hs = 36e5, gs = 864e5;
|
|
5591
|
+
function _s(e, t, n, r) {
|
|
5592
|
+
let i = new Date(e), a = Date.now() - i.getTime(), o = Math.floor(a / ms), s = Math.floor(a / hs), c = Math.floor(a / gs);
|
|
5671
5593
|
return o < 1 ? t.justNow : o < 60 ? n ? n(t.minutesAgo, { minutes: o }) : t.minutesAgo.replace("{minutes}", String(o)) : s < 24 ? n ? n(t.hoursAgo, { hours: s }) : t.hoursAgo.replace("{hours}", String(s)) : r !== void 0 && c >= r ? null : n ? n(t.daysAgo, { days: c }) : t.daysAgo.replace("{days}", String(c));
|
|
5672
5594
|
}
|
|
5673
5595
|
//#endregion
|
|
5674
5596
|
//#region src/cloud/components/CommentsSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
5675
|
-
var
|
|
5597
|
+
var vs = {
|
|
5676
5598
|
key: 0,
|
|
5677
5599
|
class: "tpl-comments-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:z-panel tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
|
|
5678
|
-
},
|
|
5600
|
+
}, ys = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, bs = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, xs = {
|
|
5679
5601
|
key: 0,
|
|
5680
5602
|
class: "tpl:ml-1 tpl:inline-flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[10px] tpl:font-semibold tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]"
|
|
5681
|
-
},
|
|
5603
|
+
}, Ss = { class: "tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2" }, Cs = { class: "tpl:flex-1 tpl:overflow-y-auto" }, ws = {
|
|
5682
5604
|
key: 0,
|
|
5683
5605
|
class: "tpl:flex tpl:h-full tpl:items-center tpl:justify-center"
|
|
5684
|
-
},
|
|
5606
|
+
}, Ts = {
|
|
5685
5607
|
key: 1,
|
|
5686
5608
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:px-6 tpl:text-center"
|
|
5687
|
-
},
|
|
5609
|
+
}, Es = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ds = {
|
|
5688
5610
|
key: 2,
|
|
5689
5611
|
class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-3"
|
|
5690
|
-
},
|
|
5612
|
+
}, Os = { class: "tpl-comment-card tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-3" }, ks = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, As = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, js = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Ms = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Ns = {
|
|
5691
5613
|
key: 0,
|
|
5692
5614
|
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
5693
|
-
},
|
|
5615
|
+
}, Ps = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, Fs = ["title", "onClick"], Is = ["title", "onClick"], Ls = ["title", "onClick"], Rs = {
|
|
5694
5616
|
key: 0,
|
|
5695
5617
|
class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1 tpl:text-[10px] tpl:text-[var(--tpl-primary)]"
|
|
5696
|
-
},
|
|
5618
|
+
}, zs = {
|
|
5697
5619
|
key: 0,
|
|
5698
5620
|
class: "tpl:mt-1 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
|
|
5699
|
-
},
|
|
5621
|
+
}, Bs = ["onClick"], Vs = {
|
|
5700
5622
|
key: 2,
|
|
5701
5623
|
class: "tpl:mt-2"
|
|
5702
|
-
},
|
|
5624
|
+
}, Hs = ["onKeydown"], Us = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, Ws = ["disabled", "onClick"], Gs = {
|
|
5703
5625
|
key: 3,
|
|
5704
5626
|
class: "tpl:mt-1.5 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
5705
|
-
},
|
|
5627
|
+
}, Ks = {
|
|
5706
5628
|
key: 4,
|
|
5707
5629
|
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
5708
|
-
},
|
|
5630
|
+
}, qs = { class: "tpl:flex-1" }, Js = ["onClick"], Ys = {
|
|
5709
5631
|
key: 5,
|
|
5710
5632
|
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2"
|
|
5711
|
-
},
|
|
5633
|
+
}, Xs = ["title", "onClick"], Zs = ["onClick"], Qs = {
|
|
5712
5634
|
key: 0,
|
|
5713
5635
|
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
5714
|
-
},
|
|
5636
|
+
}, $s = { class: "tpl:flex tpl:items-start tpl:justify-between tpl:gap-2" }, ec = { class: "tpl:flex tpl:items-center tpl:gap-1.5" }, tc = { class: "tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, nc = { class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, rc = {
|
|
5715
5637
|
key: 0,
|
|
5716
5638
|
class: "tpl:text-[10px] tpl:italic tpl:text-[var(--tpl-text-dim)]"
|
|
5717
|
-
},
|
|
5639
|
+
}, ic = { class: "tpl:flex tpl:items-center tpl:gap-0.5" }, ac = ["title", "onClick"], oc = ["title", "onClick"], sc = {
|
|
5718
5640
|
key: 0,
|
|
5719
5641
|
class: "tpl:mt-1.5"
|
|
5720
|
-
},
|
|
5642
|
+
}, cc = ["onKeydown"], lc = { class: "tpl:mt-1.5 tpl:flex tpl:gap-1.5" }, uc = ["disabled", "onClick"], dc = {
|
|
5721
5643
|
key: 1,
|
|
5722
5644
|
class: "tpl:mt-1 tpl:text-xs tpl:leading-relaxed tpl:whitespace-pre-wrap tpl:text-[var(--tpl-text)]"
|
|
5723
|
-
},
|
|
5645
|
+
}, fc = {
|
|
5724
5646
|
key: 2,
|
|
5725
5647
|
class: "tpl:mt-2 tpl:flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-2.5 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
5726
|
-
},
|
|
5648
|
+
}, pc = { class: "tpl:flex-1" }, mc = ["onClick"], hc = {
|
|
5727
5649
|
key: 0,
|
|
5728
5650
|
class: "tpl-comment-replies tpl:ml-5 tpl:pl-3 tpl:pt-2"
|
|
5729
|
-
},
|
|
5651
|
+
}, gc = { class: "tpl:flex tpl:items-end tpl:gap-2" }, _c = ["placeholder", "onKeydown"], vc = { class: "tpl:flex tpl:shrink-0 tpl:flex-col tpl:gap-1" }, yc = ["disabled", "onClick"], bc = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, xc = {
|
|
5730
5652
|
key: 0,
|
|
5731
5653
|
class: "tpl:flex tpl:min-h-[68px] tpl:items-center tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-warning-light)] tpl:text-[var(--tpl-warning)]"
|
|
5732
|
-
},
|
|
5654
|
+
}, Sc = {
|
|
5733
5655
|
key: 1,
|
|
5734
5656
|
class: "tpl-comments-input-wrapper tpl:flex tpl:min-h-[68px] tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]"
|
|
5735
|
-
},
|
|
5657
|
+
}, Cc = ["placeholder", "disabled"], wc = ["disabled"], Tc = /* @__PURE__ */ g({
|
|
5736
5658
|
__name: "CommentsSidebar",
|
|
5737
5659
|
props: { visible: { type: Boolean } },
|
|
5738
5660
|
emits: ["close", "filterBlock"],
|
|
@@ -5805,7 +5727,7 @@ var Ss = {
|
|
|
5805
5727
|
return e.author_identifier === te.value;
|
|
5806
5728
|
}
|
|
5807
5729
|
function xe(e) {
|
|
5808
|
-
return
|
|
5730
|
+
return _s(e, l.snapshotHistory) ?? e;
|
|
5809
5731
|
}
|
|
5810
5732
|
function Se(e) {
|
|
5811
5733
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), he());
|
|
@@ -5832,22 +5754,22 @@ var Ss = {
|
|
|
5832
5754
|
"leave-from-class": "tpl:translate-x-0",
|
|
5833
5755
|
"leave-to-class": "tpl:translate-x-full"
|
|
5834
5756
|
}, {
|
|
5835
|
-
default: c(() => [e.visible ? (f(), C("div",
|
|
5836
|
-
N("div",
|
|
5837
|
-
T(w(
|
|
5757
|
+
default: c(() => [e.visible ? (f(), C("div", vs, [
|
|
5758
|
+
N("div", ys, [N("div", bs, [
|
|
5759
|
+
T(w(Vr), {
|
|
5838
5760
|
size: 13,
|
|
5839
5761
|
"stroke-width": 2
|
|
5840
5762
|
}),
|
|
5841
5763
|
N("span", null, M(w(l).comments.title), 1),
|
|
5842
|
-
w(m).unresolvedCount.value > 0 ? (f(), C("span",
|
|
5764
|
+
w(m).unresolvedCount.value > 0 ? (f(), C("span", xs, M(w(m).unresolvedCount.value), 1)) : A("", !0)
|
|
5843
5765
|
]), N("button", {
|
|
5844
5766
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
5845
5767
|
onClick: n[0] ||= (e) => o("close")
|
|
5846
|
-
}, [T(w(
|
|
5768
|
+
}, [T(w(ai), {
|
|
5847
5769
|
size: 14,
|
|
5848
5770
|
"stroke-width": 2
|
|
5849
5771
|
})])]),
|
|
5850
|
-
N("div",
|
|
5772
|
+
N("div", Ss, [
|
|
5851
5773
|
N("button", {
|
|
5852
5774
|
class: I(["tpl-comment-filter tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150", h.value === "unresolved" ? "tpl-comment-filter--active" : ""]),
|
|
5853
5775
|
onClick: n[1] ||= (e) => ce("unresolved")
|
|
@@ -5862,156 +5784,156 @@ var Ss = {
|
|
|
5862
5784
|
onClick: n[3] ||= (e) => ce("block", w(d).state.selectedBlockId ?? void 0)
|
|
5863
5785
|
}, M(w(l).comments.filterBlock), 3)) : A("", !0)
|
|
5864
5786
|
]),
|
|
5865
|
-
N("div",
|
|
5787
|
+
N("div", Cs, [w(m).isLoading.value ? (f(), C("div", ws, [T(w(Br), {
|
|
5866
5788
|
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
5867
5789
|
size: 24,
|
|
5868
5790
|
"stroke-width": 2
|
|
5869
|
-
})])) : se.value.length === 0 ? (f(), C("div",
|
|
5791
|
+
})])) : se.value.length === 0 ? (f(), C("div", Ts, [T(w(Vr), {
|
|
5870
5792
|
size: 32,
|
|
5871
5793
|
"stroke-width": 1.5,
|
|
5872
5794
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
5873
|
-
}), N("p",
|
|
5795
|
+
}), N("p", Es, M(h.value === "all" ? w(l).comments.noCommentsHint : w(l).comments.noComments), 1)])) : (f(), C("div", Ds, [(f(!0), C(O, null, s(se.value, (e) => (f(), C("div", {
|
|
5874
5796
|
key: e.id,
|
|
5875
5797
|
class: "tpl-comment-thread"
|
|
5876
5798
|
}, [
|
|
5877
|
-
N("div",
|
|
5878
|
-
N("div",
|
|
5879
|
-
N("span",
|
|
5880
|
-
N("span",
|
|
5881
|
-
e.updated_at === e.created_at ? A("", !0) : (f(), C("span",
|
|
5882
|
-
]), N("div",
|
|
5799
|
+
N("div", Os, [
|
|
5800
|
+
N("div", ks, [N("div", As, [
|
|
5801
|
+
N("span", js, M(be(e) ? w(l).comments.ownedByYou : e.author_name), 1),
|
|
5802
|
+
N("span", Ms, M(xe(e.created_at)), 1),
|
|
5803
|
+
e.updated_at === e.created_at ? A("", !0) : (f(), C("span", Ns, " (" + M(w(l).comments.edited) + ") ", 1))
|
|
5804
|
+
]), N("div", Ps, [
|
|
5883
5805
|
N("button", {
|
|
5884
5806
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
|
|
5885
5807
|
title: e.resolved_at ? w(l).comments.unresolve : w(l).comments.resolve,
|
|
5886
5808
|
onClick: (t) => ye(e.id)
|
|
5887
|
-
}, [T(w(
|
|
5809
|
+
}, [T(w(Dr), {
|
|
5888
5810
|
size: 13,
|
|
5889
5811
|
"stroke-width": 2,
|
|
5890
5812
|
class: "tpl-resolve-icon",
|
|
5891
5813
|
style: D({ color: e.resolved_at ? "var(--tpl-primary)" : void 0 })
|
|
5892
|
-
}, null, 8, ["style"])], 8,
|
|
5814
|
+
}, null, 8, ["style"])], 8, Fs),
|
|
5893
5815
|
be(e) ? (f(), C("button", {
|
|
5894
5816
|
key: 0,
|
|
5895
5817
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
|
|
5896
5818
|
title: w(l).comments.edit,
|
|
5897
5819
|
onClick: (t) => L(e)
|
|
5898
|
-
}, [T(w(
|
|
5820
|
+
}, [T(w(Ur), {
|
|
5899
5821
|
size: 12,
|
|
5900
5822
|
"stroke-width": 2
|
|
5901
|
-
})], 8,
|
|
5823
|
+
})], 8, Is)) : A("", !0),
|
|
5902
5824
|
be(e) ? (f(), C("button", {
|
|
5903
5825
|
key: 1,
|
|
5904
5826
|
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
|
|
5905
5827
|
title: w(l).comments.delete,
|
|
5906
5828
|
onClick: (t) => pe(e.id)
|
|
5907
|
-
}, [T(w(
|
|
5829
|
+
}, [T(w(ei), {
|
|
5908
5830
|
size: 12,
|
|
5909
5831
|
"stroke-width": 2
|
|
5910
|
-
})], 8,
|
|
5832
|
+
})], 8, Ls)) : A("", !0)
|
|
5911
5833
|
])]),
|
|
5912
5834
|
T(oe, { name: "tpl-resolve" }, {
|
|
5913
|
-
default: c(() => [e.resolved_at ? (f(), C("div",
|
|
5835
|
+
default: c(() => [e.resolved_at ? (f(), C("div", Rs, [T(w(xr), {
|
|
5914
5836
|
size: 10,
|
|
5915
5837
|
"stroke-width": 2.5
|
|
5916
5838
|
}), N("span", null, M(w(u)(w(l).comments.resolvedBy, { name: e.resolved_by_name ?? "" })), 1)])) : A("", !0)]),
|
|
5917
5839
|
_: 2
|
|
5918
5840
|
}, 1024),
|
|
5919
|
-
e.block_id && re(e.block_id) ? (f(), C("span",
|
|
5841
|
+
e.block_id && re(e.block_id) ? (f(), C("span", zs, M(w(l).comments.missingBlock), 1)) : e.block_id ? (f(), C("button", {
|
|
5920
5842
|
key: 1,
|
|
5921
5843
|
class: "tpl:mt-1 tpl:inline-flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
|
|
5922
5844
|
onClick: (t) => w(d).selectBlock(e.block_id ?? "")
|
|
5923
|
-
}, " Block ", 8,
|
|
5924
|
-
x.value === e.id ? (f(), C("div",
|
|
5845
|
+
}, " Block ", 8, Bs)) : A("", !0),
|
|
5846
|
+
x.value === e.id ? (f(), C("div", Vs, [v(N("textarea", {
|
|
5925
5847
|
"onUpdate:modelValue": n[4] ||= (e) => S.value = e,
|
|
5926
5848
|
class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
5927
5849
|
rows: "3",
|
|
5928
5850
|
onKeydown: (t) => we(t, e.id)
|
|
5929
|
-
}, null, 40,
|
|
5851
|
+
}, null, 40, Hs), [[de, S.value]]), N("div", Us, [N("button", {
|
|
5930
5852
|
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
5931
5853
|
disabled: !S.value.trim() || w(m).isSubmitting.value,
|
|
5932
5854
|
onClick: (t) => _e(e.id)
|
|
5933
|
-
}, M(w(l).comments.save), 9,
|
|
5855
|
+
}, M(w(l).comments.save), 9, Ws), N("button", {
|
|
5934
5856
|
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
5935
5857
|
onClick: n[5] ||= (e) => R()
|
|
5936
|
-
}, M(w(l).comments.cancel), 1)])])) : (f(), C("p",
|
|
5937
|
-
k.value === e.id ? (f(), C("div",
|
|
5938
|
-
N("span",
|
|
5858
|
+
}, M(w(l).comments.cancel), 1)])])) : (f(), C("p", Gs, M(e.body), 1)),
|
|
5859
|
+
k.value === e.id ? (f(), C("div", Ks, [
|
|
5860
|
+
N("span", qs, M(w(l).comments.deleteConfirm), 1),
|
|
5939
5861
|
N("button", {
|
|
5940
5862
|
class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
|
|
5941
5863
|
onClick: (t) => ve(e.id)
|
|
5942
|
-
}, M(w(l).comments.delete), 9,
|
|
5864
|
+
}, M(w(l).comments.delete), 9, Js),
|
|
5943
5865
|
N("button", {
|
|
5944
5866
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
5945
5867
|
onClick: n[6] ||= (e) => me()
|
|
5946
5868
|
}, M(w(l).comments.cancel), 1)
|
|
5947
5869
|
])) : A("", !0),
|
|
5948
|
-
x.value !== e.id && k.value !== e.id ? (f(), C("div",
|
|
5870
|
+
x.value !== e.id && k.value !== e.id ? (f(), C("div", Ys, [N("button", {
|
|
5949
5871
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
|
|
5950
5872
|
title: w(l).comments.reply,
|
|
5951
5873
|
onClick: (t) => F(e.id)
|
|
5952
|
-
}, [T(w(
|
|
5874
|
+
}, [T(w(qr), {
|
|
5953
5875
|
size: 13,
|
|
5954
5876
|
"stroke-width": 2,
|
|
5955
5877
|
class: "tpl:text-[var(--tpl-primary)]"
|
|
5956
|
-
})], 8,
|
|
5878
|
+
})], 8, Xs), (e.replies?.length ?? 0) > 0 ? (f(), C("button", {
|
|
5957
5879
|
key: 0,
|
|
5958
5880
|
class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:text-[11px] tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
5959
5881
|
onClick: (t) => ue(e.id)
|
|
5960
|
-
}, [E.value.has(e.id) ? (f(), j(w(
|
|
5882
|
+
}, [E.value.has(e.id) ? (f(), j(w(Tr), {
|
|
5961
5883
|
key: 0,
|
|
5962
5884
|
size: 11,
|
|
5963
5885
|
"stroke-width": 2
|
|
5964
|
-
})) : (f(), j(w(
|
|
5886
|
+
})) : (f(), j(w(Sr), {
|
|
5965
5887
|
key: 1,
|
|
5966
5888
|
size: 11,
|
|
5967
5889
|
"stroke-width": 2
|
|
5968
|
-
})), z(" " + M((e.replies?.length ?? 0) === 1 ? w(u)(w(l).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : w(u)(w(l).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8,
|
|
5890
|
+
})), z(" " + M((e.replies?.length ?? 0) === 1 ? w(u)(w(l).comments.replyOne, { count: String(e.replies?.length ?? 0) }) : w(u)(w(l).comments.replyMany, { count: String(e.replies?.length ?? 0) })), 1)], 8, Zs)) : A("", !0)])) : A("", !0)
|
|
5969
5891
|
]),
|
|
5970
5892
|
T(oe, { name: "tpl-replies" }, {
|
|
5971
|
-
default: c(() => [E.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (f(), C("div",
|
|
5893
|
+
default: c(() => [E.value.has(e.id) && (e.replies?.length ?? 0) > 0 ? (f(), C("div", Qs, [(f(!0), C(O, null, s(e.replies, (t, r) => (f(), C("div", {
|
|
5972
5894
|
key: t.id,
|
|
5973
5895
|
class: I(["tpl-comment-reply-card tpl:relative tpl:rounded-lg tpl:border tpl:px-3.5 tpl:py-2.5", r < (e.replies?.length ?? 0) - 1 ? "tpl:mb-2" : ""])
|
|
5974
5896
|
}, [
|
|
5975
|
-
N("div",
|
|
5976
|
-
N("span",
|
|
5977
|
-
N("span",
|
|
5978
|
-
t.updated_at === t.created_at ? A("", !0) : (f(), C("span",
|
|
5979
|
-
]), N("div",
|
|
5897
|
+
N("div", $s, [N("div", ec, [
|
|
5898
|
+
N("span", tc, M(be(t) ? w(l).comments.ownedByYou : t.author_name), 1),
|
|
5899
|
+
N("span", nc, M(xe(t.created_at)), 1),
|
|
5900
|
+
t.updated_at === t.created_at ? A("", !0) : (f(), C("span", rc, " (" + M(w(l).comments.edited) + ") ", 1))
|
|
5901
|
+
]), N("div", ic, [be(t) ? (f(), C("button", {
|
|
5980
5902
|
key: 0,
|
|
5981
5903
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
|
|
5982
5904
|
title: w(l).comments.edit,
|
|
5983
5905
|
onClick: (e) => L(t)
|
|
5984
|
-
}, [T(w(
|
|
5906
|
+
}, [T(w(Ur), {
|
|
5985
5907
|
size: 11,
|
|
5986
5908
|
"stroke-width": 2
|
|
5987
|
-
})], 8,
|
|
5909
|
+
})], 8, ac)) : A("", !0), be(t) ? (f(), C("button", {
|
|
5988
5910
|
key: 1,
|
|
5989
5911
|
class: "tpl-comment-action tpl-comment-delete tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
|
|
5990
5912
|
title: w(l).comments.delete,
|
|
5991
5913
|
onClick: (e) => pe(t.id)
|
|
5992
|
-
}, [T(w(
|
|
5914
|
+
}, [T(w(ei), {
|
|
5993
5915
|
size: 11,
|
|
5994
5916
|
"stroke-width": 2
|
|
5995
|
-
})], 8,
|
|
5996
|
-
x.value === t.id ? (f(), C("div",
|
|
5917
|
+
})], 8, oc)) : A("", !0)])]),
|
|
5918
|
+
x.value === t.id ? (f(), C("div", sc, [v(N("textarea", {
|
|
5997
5919
|
"onUpdate:modelValue": n[7] ||= (e) => S.value = e,
|
|
5998
5920
|
class: "tpl:w-full tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
5999
5921
|
rows: "2",
|
|
6000
5922
|
onKeydown: (e) => we(e, t.id)
|
|
6001
|
-
}, null, 40,
|
|
5923
|
+
}, null, 40, cc), [[de, S.value]]), N("div", lc, [N("button", {
|
|
6002
5924
|
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
6003
5925
|
disabled: !S.value.trim() || w(m).isSubmitting.value,
|
|
6004
5926
|
onClick: (e) => _e(t.id)
|
|
6005
|
-
}, M(w(l).comments.save), 9,
|
|
5927
|
+
}, M(w(l).comments.save), 9, uc), N("button", {
|
|
6006
5928
|
class: "tpl:rounded-md tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
6007
5929
|
onClick: n[8] ||= (e) => R()
|
|
6008
|
-
}, M(w(l).comments.cancel), 1)])])) : (f(), C("p",
|
|
6009
|
-
k.value === t.id ? (f(), C("div",
|
|
6010
|
-
N("span",
|
|
5930
|
+
}, M(w(l).comments.cancel), 1)])])) : (f(), C("p", dc, M(t.body), 1)),
|
|
5931
|
+
k.value === t.id ? (f(), C("div", fc, [
|
|
5932
|
+
N("span", pc, M(w(l).comments.deleteConfirm), 1),
|
|
6011
5933
|
N("button", {
|
|
6012
5934
|
class: "tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-medium tpl:bg-[var(--tpl-danger)] tpl:text-[var(--tpl-bg)]",
|
|
6013
5935
|
onClick: (e) => ve(t.id)
|
|
6014
|
-
}, M(w(l).comments.delete), 9,
|
|
5936
|
+
}, M(w(l).comments.delete), 9, mc),
|
|
6015
5937
|
N("button", {
|
|
6016
5938
|
class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]",
|
|
6017
5939
|
onClick: n[9] ||= (e) => me()
|
|
@@ -6021,30 +5943,30 @@ var Ss = {
|
|
|
6021
5943
|
_: 2
|
|
6022
5944
|
}, 1024),
|
|
6023
5945
|
T(oe, { name: "tpl-replies" }, {
|
|
6024
|
-
default: c(() => [y.value === e.id ? (f(), C("div",
|
|
5946
|
+
default: c(() => [y.value === e.id ? (f(), C("div", hc, [N("div", gc, [v(N("textarea", {
|
|
6025
5947
|
"onUpdate:modelValue": n[10] ||= (e) => b.value = e,
|
|
6026
5948
|
class: "tpl:flex-1 tpl:resize-none tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-2 tpl:font-sans tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
6027
5949
|
placeholder: w(l).comments.replyPlaceholder,
|
|
6028
5950
|
rows: "2",
|
|
6029
5951
|
onKeydown: (t) => Ce(t, e.id)
|
|
6030
|
-
}, null, 40,
|
|
5952
|
+
}, null, 40, _c), [[de, b.value]]), N("div", vc, [N("button", {
|
|
6031
5953
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-colors tpl:duration-150 tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
|
|
6032
5954
|
disabled: !b.value.trim() || w(m).isSubmitting.value,
|
|
6033
5955
|
onClick: (t) => ge(e.id)
|
|
6034
|
-
}, [T(w(
|
|
5956
|
+
}, [T(w(Jr), {
|
|
6035
5957
|
size: 14,
|
|
6036
5958
|
"stroke-width": 2
|
|
6037
|
-
})], 8,
|
|
5959
|
+
})], 8, yc), N("button", {
|
|
6038
5960
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
6039
5961
|
onClick: n[11] ||= (e) => fe()
|
|
6040
|
-
}, [T(w(
|
|
5962
|
+
}, [T(w(ai), {
|
|
6041
5963
|
size: 14,
|
|
6042
5964
|
"stroke-width": 2
|
|
6043
5965
|
})])])])])) : A("", !0)]),
|
|
6044
5966
|
_: 2
|
|
6045
5967
|
}, 1024)
|
|
6046
5968
|
]))), 128))]))]),
|
|
6047
|
-
N("div",
|
|
5969
|
+
N("div", bc, [ae.value ? (f(), C("div", xc, M(w(l).comments.saveTemplateFirst), 1)) : (f(), C("div", Sc, [v(N("textarea", {
|
|
6048
5970
|
ref_key: "newCommentInput",
|
|
6049
5971
|
ref: ee,
|
|
6050
5972
|
"onUpdate:modelValue": n[12] ||= (e) => _.value = e,
|
|
@@ -6053,46 +5975,46 @@ var Ss = {
|
|
|
6053
5975
|
disabled: w(m).isSubmitting.value,
|
|
6054
5976
|
rows: "2",
|
|
6055
5977
|
onKeydown: Se
|
|
6056
|
-
}, null, 40,
|
|
5978
|
+
}, null, 40, Cc), [[de, _.value]]), N("button", {
|
|
6057
5979
|
class: "tpl-comments-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:duration-150 tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
|
|
6058
5980
|
disabled: !_.value.trim() || w(m).isSubmitting.value,
|
|
6059
5981
|
onClick: he
|
|
6060
|
-
}, [w(m).isSubmitting.value ? (f(), j(w(
|
|
5982
|
+
}, [w(m).isSubmitting.value ? (f(), j(w(Br), {
|
|
6061
5983
|
key: 0,
|
|
6062
5984
|
class: "tpl-spinner",
|
|
6063
5985
|
size: 16,
|
|
6064
5986
|
"stroke-width": 2
|
|
6065
|
-
})) : (f(), j(w(
|
|
5987
|
+
})) : (f(), j(w(Jr), {
|
|
6066
5988
|
key: 1,
|
|
6067
5989
|
size: 16,
|
|
6068
5990
|
"stroke-width": 2
|
|
6069
|
-
}))], 8,
|
|
5991
|
+
}))], 8, wc)]))])
|
|
6070
5992
|
])) : A("", !0)]),
|
|
6071
5993
|
_: 1
|
|
6072
5994
|
}));
|
|
6073
5995
|
}
|
|
6074
|
-
}),
|
|
5996
|
+
}), Ec = /* @__PURE__ */ t({ default: () => Dc }), Dc = /* @__PURE__ */ ui(Tc, [["__scopeId", "data-v-5e7fbab3"]]), Oc = {
|
|
6075
5997
|
key: 0,
|
|
6076
5998
|
class: "tpl-design-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:z-panel tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
|
|
6077
|
-
},
|
|
5999
|
+
}, kc = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, Ac = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, jc = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Mc = {
|
|
6078
6000
|
key: 0,
|
|
6079
6001
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
6080
|
-
},
|
|
6002
|
+
}, Nc = { class: "tpl:flex tpl:w-full tpl:flex-col tpl:items-center tpl:gap-3" }, Pc = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Fc = {
|
|
6081
6003
|
key: 1,
|
|
6082
6004
|
class: "tpl:flex tpl:flex-col tpl:gap-4"
|
|
6083
|
-
},
|
|
6005
|
+
}, Ic = { class: "tpl:flex tpl:gap-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-hover)]" }, Lc = {
|
|
6084
6006
|
key: 0,
|
|
6085
6007
|
class: "tpl:flex tpl:flex-col tpl:gap-2"
|
|
6086
|
-
},
|
|
6008
|
+
}, Rc = { class: "tpl:relative tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, zc = ["src", "alt"], Bc = {
|
|
6087
6009
|
key: 1,
|
|
6088
6010
|
class: "tpl:flex tpl:h-32 tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2"
|
|
6089
|
-
},
|
|
6011
|
+
}, Vc = { class: "tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Hc = { class: "tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]" }, Uc = { class: "tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, Wc = ["accept"], Gc = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, Kc = { class: "tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, qc = ["placeholder"], Jc = {
|
|
6090
6012
|
key: 0,
|
|
6091
6013
|
class: "tpl:flex tpl:flex-col tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:px-3 tpl:py-3 tpl:bg-[var(--tpl-warning-light)] tpl:border tpl:border-[var(--tpl-warning)]"
|
|
6092
|
-
},
|
|
6014
|
+
}, Yc = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, Xc = { class: "tpl:flex tpl:gap-2" }, Zc = {
|
|
6093
6015
|
key: 1,
|
|
6094
6016
|
class: "tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
6095
|
-
},
|
|
6017
|
+
}, Qc = ["disabled"], $c = { class: "tpl:m-0 tpl:pt-1 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, el = /* @__PURE__ */ g({
|
|
6096
6018
|
__name: "DesignReferenceSidebar",
|
|
6097
6019
|
props: {
|
|
6098
6020
|
visible: { type: Boolean },
|
|
@@ -6100,7 +6022,7 @@ var Ss = {
|
|
|
6100
6022
|
},
|
|
6101
6023
|
emits: ["close", "apply"],
|
|
6102
6024
|
setup(e, { emit: t }) {
|
|
6103
|
-
let r = e, a = t, { t: o } = J(), s = q(K, "DesignReferenceSidebar"), l =
|
|
6025
|
+
let r = e, a = t, { t: o } = J(), s = q(K, "DesignReferenceSidebar"), l = So({
|
|
6104
6026
|
authManager: q(Un, "DesignReferenceSidebar"),
|
|
6105
6027
|
getTemplateId: () => s.state.template?.id ?? null,
|
|
6106
6028
|
onApply: (e) => a("apply", e)
|
|
@@ -6170,17 +6092,17 @@ var Ss = {
|
|
|
6170
6092
|
"leave-from-class": "tpl:translate-x-0",
|
|
6171
6093
|
"leave-to-class": "tpl:translate-x-full"
|
|
6172
6094
|
}, {
|
|
6173
|
-
default: c(() => [e.visible ? (f(), C("div",
|
|
6095
|
+
default: c(() => [e.visible ? (f(), C("div", Oc, [N("div", kc, [N("div", Ac, [T(w(Lr), {
|
|
6174
6096
|
size: 13,
|
|
6175
6097
|
"stroke-width": 2
|
|
6176
6098
|
}), N("span", null, M(w(o).designReference.title), 1)]), N("button", {
|
|
6177
6099
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
6178
6100
|
onClick: n[0] ||= (e) => a("close")
|
|
6179
|
-
}, [T(w(
|
|
6101
|
+
}, [T(w(ai), {
|
|
6180
6102
|
size: 14,
|
|
6181
6103
|
"stroke-width": 2
|
|
6182
|
-
})])]), N("div",
|
|
6183
|
-
N("div",
|
|
6104
|
+
})])]), N("div", jc, [w(l).isGenerating.value ? (f(), C("div", Mc, [N("div", Nc, [T(mi), N("p", Pc, M(w(o).designReference.generating), 1)])])) : (f(), C("div", Fc, [
|
|
6105
|
+
N("div", Ic, [N("button", {
|
|
6184
6106
|
class: "tpl:flex tpl:flex-1 tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-2 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
6185
6107
|
style: D({
|
|
6186
6108
|
backgroundColor: d.value === "image" ? "var(--tpl-bg)" : "transparent",
|
|
@@ -6188,7 +6110,7 @@ var Ss = {
|
|
|
6188
6110
|
boxShadow: d.value === "image" ? "var(--tpl-shadow)" : "none"
|
|
6189
6111
|
}),
|
|
6190
6112
|
onClick: n[1] ||= (e) => b("image")
|
|
6191
|
-
}, [T(w(
|
|
6113
|
+
}, [T(w(Nr), {
|
|
6192
6114
|
size: 12,
|
|
6193
6115
|
"stroke-width": 2
|
|
6194
6116
|
}), z(" " + M(w(o).designReference.uploadImage), 1)], 4), N("button", {
|
|
@@ -6199,23 +6121,23 @@ var Ss = {
|
|
|
6199
6121
|
boxShadow: d.value === "pdf" ? "var(--tpl-shadow)" : "none"
|
|
6200
6122
|
}),
|
|
6201
6123
|
onClick: n[2] ||= (e) => b("pdf")
|
|
6202
|
-
}, [T(w(
|
|
6124
|
+
}, [T(w(Pr), {
|
|
6203
6125
|
size: 12,
|
|
6204
6126
|
"stroke-width": 2
|
|
6205
6127
|
}), z(" " + M(w(o).designReference.uploadPdf), 1)], 4)]),
|
|
6206
|
-
N("div", null, [p.value ? (f(), C("div",
|
|
6128
|
+
N("div", null, [p.value ? (f(), C("div", Lc, [N("div", Rc, [h.value ? (f(), C("img", {
|
|
6207
6129
|
key: 0,
|
|
6208
6130
|
src: h.value,
|
|
6209
6131
|
alt: p.value.name,
|
|
6210
6132
|
class: "tpl:h-auto tpl:max-h-48 tpl:w-full tpl:object-contain"
|
|
6211
|
-
}, null, 8,
|
|
6133
|
+
}, null, 8, zc)) : (f(), C("div", Bc, [T(w(Pr), {
|
|
6212
6134
|
size: 32,
|
|
6213
6135
|
"stroke-width": 1.5,
|
|
6214
6136
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
6215
|
-
}), N("span",
|
|
6137
|
+
}), N("span", Vc, M(p.value.name), 1)])), N("button", {
|
|
6216
6138
|
class: "tpl:absolute tpl:top-2 tpl:right-2 tpl:rounded-full tpl:p-1 tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:shadow-[var(--tpl-shadow)]",
|
|
6217
6139
|
onClick: E
|
|
6218
|
-
}, [T(w(
|
|
6140
|
+
}, [T(w(ai), {
|
|
6219
6141
|
size: 12,
|
|
6220
6142
|
"stroke-width": 2
|
|
6221
6143
|
})])])])) : (f(), C("div", {
|
|
@@ -6230,13 +6152,13 @@ var Ss = {
|
|
|
6230
6152
|
onDragleave: k,
|
|
6231
6153
|
onDrop: ee
|
|
6232
6154
|
}, [
|
|
6233
|
-
T(w(
|
|
6155
|
+
T(w(ri), {
|
|
6234
6156
|
size: 24,
|
|
6235
6157
|
"stroke-width": 1.5,
|
|
6236
6158
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
6237
6159
|
}),
|
|
6238
|
-
N("span",
|
|
6239
|
-
N("span",
|
|
6160
|
+
N("span", Hc, M(w(o).designReference.dropHint), 1),
|
|
6161
|
+
N("span", Uc, M(d.value === "image" ? w(o).designReference.acceptedImages : w(o).designReference.acceptedPdf), 1)
|
|
6240
6162
|
], 36)), N("input", {
|
|
6241
6163
|
ref_key: "fileInput",
|
|
6242
6164
|
ref: u,
|
|
@@ -6244,14 +6166,14 @@ var Ss = {
|
|
|
6244
6166
|
class: "tpl:hidden",
|
|
6245
6167
|
accept: d.value === "image" ? "image/png,image/jpeg,image/webp" : "application/pdf",
|
|
6246
6168
|
onChange: x
|
|
6247
|
-
}, null, 40,
|
|
6248
|
-
N("div",
|
|
6169
|
+
}, null, 40, Wc)]),
|
|
6170
|
+
N("div", Gc, [N("label", Kc, M(w(o).designReference.promptLabel), 1), v(N("textarea", {
|
|
6249
6171
|
"onUpdate:modelValue": n[4] ||= (e) => m.value = e,
|
|
6250
6172
|
class: I(["tpl:min-h-[72px] tpl:w-full tpl:resize-none tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:font-sans tpl:text-sm tpl:outline-none tpl:transition-colors tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", ["tpl-design-prompt-input"]]),
|
|
6251
6173
|
placeholder: w(o).designReference.promptPlaceholder,
|
|
6252
6174
|
rows: "3"
|
|
6253
|
-
}, null, 8,
|
|
6254
|
-
g.value ? (f(), C("div",
|
|
6175
|
+
}, null, 8, qc), [[de, m.value]])]),
|
|
6176
|
+
g.value ? (f(), C("div", Jc, [N("p", Yc, M(w(o).designReference.replaceWarning), 1), N("div", Xc, [N("button", {
|
|
6255
6177
|
class: "tpl:flex-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:text-[var(--tpl-text-muted)] tpl:border tpl:border-[var(--tpl-border)]",
|
|
6256
6178
|
style: { "background-color": "transparent" },
|
|
6257
6179
|
onClick: ne
|
|
@@ -6259,7 +6181,7 @@ var Ss = {
|
|
|
6259
6181
|
class: "tpl:flex-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
6260
6182
|
onClick: te
|
|
6261
6183
|
}, M(w(o).designReference.replaceConfirm), 1)])])) : A("", !0),
|
|
6262
|
-
w(l).error.value ? (f(), C("div",
|
|
6184
|
+
w(l).error.value ? (f(), C("div", Zc, [T(w(Er), {
|
|
6263
6185
|
size: 14,
|
|
6264
6186
|
"stroke-width": 2,
|
|
6265
6187
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
@@ -6269,22 +6191,22 @@ var Ss = {
|
|
|
6269
6191
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
6270
6192
|
disabled: !y.value,
|
|
6271
6193
|
onClick: te
|
|
6272
|
-
}, [T(w(
|
|
6194
|
+
}, [T(w(Lr), {
|
|
6273
6195
|
size: 16,
|
|
6274
6196
|
"stroke-width": 2
|
|
6275
|
-
}), z(" " + M(w(o).designReference.generate), 1)], 8,
|
|
6276
|
-
N("p",
|
|
6197
|
+
}), z(" " + M(w(o).designReference.generate), 1)], 8, Qc)),
|
|
6198
|
+
N("p", $c, M(w(o).aiMenu.disclaimer), 1)
|
|
6277
6199
|
]))])])) : A("", !0)]),
|
|
6278
6200
|
_: 1
|
|
6279
6201
|
}));
|
|
6280
6202
|
}
|
|
6281
|
-
}),
|
|
6203
|
+
}), tl = /* @__PURE__ */ t({ default: () => nl }), nl = /* @__PURE__ */ ui(el, [["__scopeId", "data-v-d70ec3cf"]]), rl = ["data-tpl-theme"], il = /* @__PURE__ */ g({
|
|
6282
6204
|
__name: "TplModal",
|
|
6283
6205
|
props: { visible: { type: Boolean } },
|
|
6284
6206
|
emits: ["close", "keydown"],
|
|
6285
6207
|
setup(e, { emit: t }) {
|
|
6286
6208
|
let r = e, i = t, a = n(null);
|
|
6287
|
-
|
|
6209
|
+
gi(a, P(() => r.visible));
|
|
6288
6210
|
let s = o(jn);
|
|
6289
6211
|
function u(e) {
|
|
6290
6212
|
e.key === "Escape" && i("close"), i("keydown", e);
|
|
@@ -6311,30 +6233,30 @@ var Ss = {
|
|
|
6311
6233
|
}, [N("div", {
|
|
6312
6234
|
ref_key: "dialogRef",
|
|
6313
6235
|
ref: a
|
|
6314
|
-
}, [l(t.$slots, "default")], 512)], 40,
|
|
6236
|
+
}, [l(t.$slots, "default")], 512)], 40, rl)) : A("", !0)]),
|
|
6315
6237
|
_: 3
|
|
6316
6238
|
})]));
|
|
6317
6239
|
}
|
|
6318
|
-
}),
|
|
6240
|
+
}), al = ["disabled", "title"], ol = ["title"], sl = {
|
|
6319
6241
|
key: 0,
|
|
6320
6242
|
class: "tpl-scale-in tpl:absolute tpl:top-full tpl:left-1/2 tpl:z-50 tpl:mt-2 tpl:w-72 tpl:-translate-x-1/2 tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
6321
6243
|
style: {
|
|
6322
6244
|
"backdrop-filter": "blur(8px)",
|
|
6323
6245
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
6324
6246
|
}
|
|
6325
|
-
},
|
|
6247
|
+
}, cl = { class: "tpl:border-b tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)] tpl:border-[var(--tpl-border)]" }, ll = {
|
|
6326
6248
|
key: 0,
|
|
6327
6249
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-8"
|
|
6328
|
-
},
|
|
6250
|
+
}, ul = {
|
|
6329
6251
|
key: 1,
|
|
6330
6252
|
class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
6331
|
-
},
|
|
6253
|
+
}, dl = {
|
|
6332
6254
|
key: 2,
|
|
6333
6255
|
class: "tpl:max-h-64 tpl:overflow-y-auto"
|
|
6334
|
-
},
|
|
6256
|
+
}, fl = ["disabled", "onClick"], pl = { class: "tpl:flex tpl:flex-col tpl:gap-0.5" }, ml = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, hl = {
|
|
6335
6257
|
key: 0,
|
|
6336
6258
|
class: "tpl:rounded tpl:px-1 tpl:py-0.5 tpl:text-[10px] tpl:font-normal tpl:bg-[var(--tpl-bg-active)] tpl:text-[var(--tpl-text-muted)]"
|
|
6337
|
-
},
|
|
6259
|
+
}, gl = ["disabled", "title"], _l = /* @__PURE__ */ g({
|
|
6338
6260
|
__name: "SnapshotHistory",
|
|
6339
6261
|
props: {
|
|
6340
6262
|
snapshots: {},
|
|
@@ -6362,7 +6284,7 @@ var Ss = {
|
|
|
6362
6284
|
t !== -1 && (p.value = t, a("navigate", r.snapshots[t])), u.value = !1;
|
|
6363
6285
|
}
|
|
6364
6286
|
function b(e) {
|
|
6365
|
-
let t =
|
|
6287
|
+
let t = _s(e, o.snapshotHistory, l, 7);
|
|
6366
6288
|
return t === null ? new Date(e).toLocaleDateString(void 0, {
|
|
6367
6289
|
month: "short",
|
|
6368
6290
|
day: "numeric",
|
|
@@ -6382,34 +6304,34 @@ var Ss = {
|
|
|
6382
6304
|
disabled: !h.value,
|
|
6383
6305
|
title: w(o).snapshotHistory.olderSnapshot,
|
|
6384
6306
|
onClick: R(_, ["stop"])
|
|
6385
|
-
}, [T(w(
|
|
6307
|
+
}, [T(w(Cr), {
|
|
6386
6308
|
size: 14,
|
|
6387
6309
|
"stroke-width": 2
|
|
6388
|
-
})], 8,
|
|
6310
|
+
})], 8, al),
|
|
6389
6311
|
N("button", {
|
|
6390
6312
|
class: "tpl:flex tpl:h-7 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-1.5 tpl:transition-colors tpl:duration-150 hover:tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]",
|
|
6391
6313
|
title: w(o).snapshotHistory.tooltip,
|
|
6392
6314
|
onClick: R(v, ["stop"])
|
|
6393
|
-
}, [T(w(
|
|
6315
|
+
}, [T(w(Or), {
|
|
6394
6316
|
size: 16,
|
|
6395
6317
|
"stroke-width": 1.5
|
|
6396
|
-
}), T(w(
|
|
6318
|
+
}), T(w(Sr), {
|
|
6397
6319
|
class: I(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-180": u.value }]),
|
|
6398
6320
|
size: 10,
|
|
6399
6321
|
"stroke-width": 2
|
|
6400
|
-
}, null, 8, ["class"])], 8,
|
|
6322
|
+
}, null, 8, ["class"])], 8, ol),
|
|
6401
6323
|
T(oe, { name: "tpl-dropdown" }, {
|
|
6402
|
-
default: c(() => [u.value ? (f(), C("div",
|
|
6324
|
+
default: c(() => [u.value ? (f(), C("div", sl, [N("div", cl, M(w(o).snapshotHistory.dropdownTitle), 1), e.isLoading ? (f(), C("div", ll, [T(w(Br), {
|
|
6403
6325
|
class: "tpl:animate-spin tpl:text-[var(--tpl-primary)]",
|
|
6404
6326
|
size: 20,
|
|
6405
6327
|
"stroke-width": 2
|
|
6406
|
-
})])) : e.snapshots.length === 0 ? (f(), C("div",
|
|
6328
|
+
})])) : e.snapshots.length === 0 ? (f(), C("div", ul, M(w(o).snapshotHistory.noSnapshots), 1)) : (f(), C("div", dl, [(f(!0), C(O, null, s(e.snapshots, (t) => (f(), C("button", {
|
|
6407
6329
|
key: t.id,
|
|
6408
6330
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:border-b tpl:border-b-[var(--tpl-border-light)] tpl:border-l-2 tpl:border-l-transparent tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-all tpl:duration-150 last:tpl:border-b-0 hover:tpl:border-l-[var(--tpl-primary)] hover:tpl:bg-[var(--tpl-bg-hover)]",
|
|
6409
6331
|
style: { "background-color": "transparent" },
|
|
6410
6332
|
disabled: e.isRestoring,
|
|
6411
6333
|
onClick: (e) => y(t.id)
|
|
6412
|
-
}, [N("div",
|
|
6334
|
+
}, [N("div", pl, [N("div", ml, [N("span", null, M(b(t.created_at)), 1), t.is_autosave ? (f(), C("span", hl, M(w(o).snapshotHistory.auto), 1)) : A("", !0)])])], 8, fl))), 128))]))])) : A("", !0)]),
|
|
6413
6335
|
_: 1
|
|
6414
6336
|
}),
|
|
6415
6337
|
N("button", {
|
|
@@ -6417,69 +6339,69 @@ var Ss = {
|
|
|
6417
6339
|
disabled: !m.value,
|
|
6418
6340
|
title: w(o).snapshotHistory.newerSnapshot,
|
|
6419
6341
|
onClick: R(g, ["stop"])
|
|
6420
|
-
}, [T(w(
|
|
6342
|
+
}, [T(w(wr), {
|
|
6421
6343
|
size: 14,
|
|
6422
6344
|
"stroke-width": 2
|
|
6423
|
-
})], 8,
|
|
6345
|
+
})], 8, gl)
|
|
6424
6346
|
], 512));
|
|
6425
6347
|
}
|
|
6426
|
-
}),
|
|
6348
|
+
}), vl = /* @__PURE__ */ t({ default: () => yl }), yl = _l;
|
|
6427
6349
|
//#endregion
|
|
6428
6350
|
//#region src/cloud/utils/scoringStyles.ts
|
|
6429
|
-
function
|
|
6351
|
+
function bl(e) {
|
|
6430
6352
|
return e >= 80 ? "var(--tpl-success)" : e >= 60 ? "var(--tpl-warning)" : "var(--tpl-danger)";
|
|
6431
6353
|
}
|
|
6432
|
-
function
|
|
6354
|
+
function xl(e) {
|
|
6433
6355
|
return e >= 80 ? "var(--tpl-success-light)" : e >= 60 ? "var(--tpl-warning-light)" : "var(--tpl-danger-light)";
|
|
6434
6356
|
}
|
|
6435
|
-
function
|
|
6357
|
+
function Sl(e) {
|
|
6436
6358
|
return e === "high" ? "var(--tpl-danger)" : e === "medium" ? "var(--tpl-warning)" : "var(--tpl-text-muted)";
|
|
6437
6359
|
}
|
|
6438
|
-
function
|
|
6360
|
+
function Cl(e) {
|
|
6439
6361
|
return e === "high" ? "var(--tpl-danger-light)" : e === "medium" ? "var(--tpl-warning-light)" : "var(--tpl-bg-hover)";
|
|
6440
6362
|
}
|
|
6441
6363
|
//#endregion
|
|
6442
6364
|
//#region src/cloud/components/TemplateScoringPanel.vue?vue&type=script&setup=true&lang.ts
|
|
6443
|
-
var
|
|
6365
|
+
var wl = {
|
|
6444
6366
|
key: 0,
|
|
6445
6367
|
class: "tpl-scoring-panel tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:z-panel tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
|
|
6446
|
-
},
|
|
6368
|
+
}, Tl = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, El = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, Dl = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ol = ["title"], kl = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, Al = {
|
|
6447
6369
|
key: 0,
|
|
6448
6370
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
6449
|
-
},
|
|
6371
|
+
}, jl = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ml = {
|
|
6450
6372
|
key: 1,
|
|
6451
6373
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
6452
|
-
},
|
|
6374
|
+
}, Nl = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Pl = {
|
|
6453
6375
|
key: 2,
|
|
6454
6376
|
class: "tpl:flex tpl:flex-col tpl:gap-4"
|
|
6455
|
-
},
|
|
6377
|
+
}, Fl = { class: "tpl:text-xs tpl:font-medium tpl:uppercase tpl:tracking-wider tpl:text-[var(--tpl-text-muted)]" }, Il = {
|
|
6456
6378
|
key: 0,
|
|
6457
6379
|
class: "tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
6458
|
-
},
|
|
6380
|
+
}, Ll = {
|
|
6459
6381
|
key: 0,
|
|
6460
6382
|
class: "tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
6461
|
-
},
|
|
6383
|
+
}, Rl = ["onClick"], zl = { class: "tpl:flex-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, Bl = {
|
|
6462
6384
|
key: 0,
|
|
6463
6385
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
|
|
6464
|
-
},
|
|
6386
|
+
}, Vl = {
|
|
6465
6387
|
key: 0,
|
|
6466
6388
|
class: "tpl:border-t tpl:border-[var(--tpl-border)]"
|
|
6467
|
-
},
|
|
6389
|
+
}, Hl = {
|
|
6468
6390
|
key: 0,
|
|
6469
6391
|
class: "tpl:px-3 tpl:py-3 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
6470
|
-
},
|
|
6392
|
+
}, Ul = { class: "tpl:flex tpl:items-start tpl:gap-2" }, Wl = { class: "tpl:flex-1 tpl:min-w-0" }, Gl = { class: "tpl:flex tpl:items-start tpl:gap-1.5" }, Kl = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, ql = {
|
|
6471
6393
|
key: 0,
|
|
6472
6394
|
class: "tpl:mt-1 tpl:text-[11px] tpl:leading-snug tpl:text-[var(--tpl-text-dim)]"
|
|
6473
|
-
},
|
|
6395
|
+
}, Jl = {
|
|
6474
6396
|
key: 1,
|
|
6475
6397
|
class: "tpl:mt-2 tpl:flex tpl:justify-center"
|
|
6476
|
-
},
|
|
6398
|
+
}, Yl = ["disabled", "onClick"], Xl = {
|
|
6477
6399
|
key: 0,
|
|
6478
6400
|
class: "tpl:mt-1.5 tpl:text-[11px] tpl:text-[var(--tpl-danger)]"
|
|
6479
|
-
},
|
|
6401
|
+
}, Zl = {
|
|
6480
6402
|
key: 3,
|
|
6481
6403
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
6482
|
-
},
|
|
6404
|
+
}, Ql = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, $l = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, eu = /* @__PURE__ */ g({
|
|
6483
6405
|
__name: "TemplateScoringPanel",
|
|
6484
6406
|
props: { visible: { type: Boolean } },
|
|
6485
6407
|
emits: ["close"],
|
|
@@ -6499,10 +6421,10 @@ var Ol = {
|
|
|
6499
6421
|
"accessibility",
|
|
6500
6422
|
"bestPractices"
|
|
6501
6423
|
], v = {
|
|
6502
|
-
spam:
|
|
6503
|
-
readability:
|
|
6504
|
-
accessibility:
|
|
6505
|
-
bestPractices:
|
|
6424
|
+
spam: Zr,
|
|
6425
|
+
readability: Mr,
|
|
6426
|
+
accessibility: Qr,
|
|
6427
|
+
bestPractices: oi
|
|
6506
6428
|
};
|
|
6507
6429
|
function y() {
|
|
6508
6430
|
d.score(u.content.value, p);
|
|
@@ -6530,50 +6452,50 @@ var Ol = {
|
|
|
6530
6452
|
"leave-from-class": "tpl:translate-x-0",
|
|
6531
6453
|
"leave-to-class": "tpl:translate-x-full"
|
|
6532
6454
|
}, {
|
|
6533
|
-
default: c(() => [e.visible ? (f(), C("div",
|
|
6455
|
+
default: c(() => [e.visible ? (f(), C("div", wl, [N("div", Tl, [N("div", El, [T(w(Xr), {
|
|
6534
6456
|
size: 13,
|
|
6535
6457
|
"stroke-width": 2
|
|
6536
|
-
}), N("span", null, M(w(l).scoring.title), 1)]), N("div",
|
|
6458
|
+
}), N("span", null, M(w(l).scoring.title), 1)]), N("div", Dl, [w(d).scoringResult.value && !w(d).isScoring.value ? (f(), C("button", {
|
|
6537
6459
|
key: 0,
|
|
6538
6460
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
6539
6461
|
title: w(l).scoring.rescore,
|
|
6540
6462
|
onClick: n[0] ||= (e) => y()
|
|
6541
|
-
}, [T(w(
|
|
6463
|
+
}, [T(w(Kr), {
|
|
6542
6464
|
size: 14,
|
|
6543
6465
|
"stroke-width": 2
|
|
6544
|
-
})], 8,
|
|
6466
|
+
})], 8, Ol)) : A("", !0), N("button", {
|
|
6545
6467
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
6546
6468
|
onClick: n[1] ||= (e) => a("close")
|
|
6547
|
-
}, [T(w(
|
|
6469
|
+
}, [T(w(ai), {
|
|
6548
6470
|
size: 14,
|
|
6549
6471
|
"stroke-width": 2
|
|
6550
|
-
})])])]), N("div",
|
|
6551
|
-
T(w(
|
|
6472
|
+
})])])]), N("div", kl, [w(d).isScoring.value ? (f(), C("div", Al, [N("p", jl, M(w(l).scoring.scoring), 1), T(mi, { class: "tpl:w-3/4" })])) : w(d).error.value && !w(d).scoringResult.value ? (f(), C("div", Ml, [
|
|
6473
|
+
T(w(Er), {
|
|
6552
6474
|
size: 32,
|
|
6553
6475
|
"stroke-width": 1.5,
|
|
6554
6476
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
6555
6477
|
}),
|
|
6556
|
-
N("p",
|
|
6478
|
+
N("p", Nl, M(w(l).scoring.error), 1),
|
|
6557
6479
|
N("button", {
|
|
6558
6480
|
class: "tpl:mt-2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-muted)]",
|
|
6559
6481
|
onClick: n[2] ||= (e) => y()
|
|
6560
|
-
}, [T(w(
|
|
6482
|
+
}, [T(w(Kr), {
|
|
6561
6483
|
size: 12,
|
|
6562
6484
|
"stroke-width": 2
|
|
6563
6485
|
}), z(" " + M(w(l).scoring.rescore), 1)])
|
|
6564
|
-
])) : w(d).scoringResult.value ? (f(), C("div",
|
|
6486
|
+
])) : w(d).scoringResult.value ? (f(), C("div", Pl, [
|
|
6565
6487
|
N("div", {
|
|
6566
6488
|
class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:p-5",
|
|
6567
|
-
style: D({ backgroundColor: w(
|
|
6489
|
+
style: D({ backgroundColor: w(xl)(w(d).scoringResult.value.score) })
|
|
6568
6490
|
}, [
|
|
6569
6491
|
N("span", {
|
|
6570
6492
|
class: "tpl:text-4xl tpl:font-bold tpl:tabular-nums",
|
|
6571
|
-
style: D({ color: w(
|
|
6493
|
+
style: D({ color: w(bl)(w(d).scoringResult.value.score) })
|
|
6572
6494
|
}, M(w(d).scoringResult.value.score), 5),
|
|
6573
|
-
N("span",
|
|
6574
|
-
x() > 0 ? (f(), C("span",
|
|
6495
|
+
N("span", Fl, M(w(l).scoring.overallScore), 1),
|
|
6496
|
+
x() > 0 ? (f(), C("span", Il, M(x()) + " " + M(w(l).scoring.findings), 1)) : A("", !0)
|
|
6575
6497
|
], 4),
|
|
6576
|
-
w(d).fixError.value ? (f(), C("div",
|
|
6498
|
+
w(d).fixError.value ? (f(), C("div", Ll, [T(w(Er), {
|
|
6577
6499
|
size: 14,
|
|
6578
6500
|
"stroke-width": 2,
|
|
6579
6501
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
@@ -6588,74 +6510,74 @@ var Ol = {
|
|
|
6588
6510
|
(f(), j(h(v[e]), {
|
|
6589
6511
|
size: 14,
|
|
6590
6512
|
"stroke-width": 2,
|
|
6591
|
-
style: D({ color: w(
|
|
6513
|
+
style: D({ color: w(bl)(w(d).scoringResult.value.categories[e].score) })
|
|
6592
6514
|
}, null, 8, ["style"])),
|
|
6593
|
-
N("span",
|
|
6515
|
+
N("span", zl, M(w(l).scoring.categories[e]), 1),
|
|
6594
6516
|
N("span", {
|
|
6595
6517
|
class: "tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-semibold tpl:tabular-nums",
|
|
6596
6518
|
style: D({
|
|
6597
|
-
color: w(
|
|
6598
|
-
backgroundColor: w(
|
|
6519
|
+
color: w(bl)(w(d).scoringResult.value.categories[e].score),
|
|
6520
|
+
backgroundColor: w(xl)(w(d).scoringResult.value.categories[e].score)
|
|
6599
6521
|
})
|
|
6600
6522
|
}, M(w(d).scoringResult.value.categories[e].score), 5),
|
|
6601
|
-
w(d).scoringResult.value.categories[e].findings.length > 0 ? (f(), C("span",
|
|
6602
|
-
T(w(
|
|
6523
|
+
w(d).scoringResult.value.categories[e].findings.length > 0 ? (f(), C("span", Bl, M(w(d).scoringResult.value.categories[e].findings.length), 1)) : A("", !0),
|
|
6524
|
+
T(w(Sr), {
|
|
6603
6525
|
size: 12,
|
|
6604
6526
|
"stroke-width": 2,
|
|
6605
6527
|
class: I(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", m.value[e] ? "tpl:rotate-0" : "tpl:-rotate-90"])
|
|
6606
6528
|
}, null, 8, ["class"])
|
|
6607
|
-
], 8,
|
|
6529
|
+
], 8, Rl), m.value[e] ? (f(), C("div", Vl, [w(d).scoringResult.value.categories[e].findings.length === 0 ? (f(), C("div", Hl, M(w(l).scoring.noFindings), 1)) : A("", !0), (f(!0), C(O, null, s(w(d).scoringResult.value.categories[e].findings, (e) => (f(), C("div", {
|
|
6608
6530
|
key: e.id,
|
|
6609
6531
|
class: "tpl:border-t tpl:px-3 tpl:py-2.5 first:tpl:border-t-0 tpl:border-[var(--tpl-border-light)]"
|
|
6610
|
-
}, [N("div",
|
|
6532
|
+
}, [N("div", Ul, [(f(), j(h(w(e.severity === "high" ? Er : e.severity === "medium" ? ti : zr)), {
|
|
6611
6533
|
size: 13,
|
|
6612
6534
|
"stroke-width": 2,
|
|
6613
6535
|
class: "tpl:mt-0.5 tpl:shrink-0",
|
|
6614
|
-
style: D({ color: w(
|
|
6615
|
-
}, null, 8, ["style"])), N("div",
|
|
6616
|
-
N("div",
|
|
6536
|
+
style: D({ color: w(Sl)(e.severity) })
|
|
6537
|
+
}, null, 8, ["style"])), N("div", Wl, [
|
|
6538
|
+
N("div", Gl, [N("span", {
|
|
6617
6539
|
class: "tpl:mt-0.5 tpl:shrink-0 tpl:rounded tpl:px-1 tpl:py-px tpl:text-[10px] tpl:font-medium tpl:leading-tight",
|
|
6618
6540
|
style: D({
|
|
6619
|
-
color: w(
|
|
6620
|
-
backgroundColor: w(
|
|
6541
|
+
color: w(Sl)(e.severity),
|
|
6542
|
+
backgroundColor: w(Cl)(e.severity)
|
|
6621
6543
|
})
|
|
6622
|
-
}, M(w(l).scoring.severity[e.severity]), 5), N("span",
|
|
6623
|
-
e.suggestion ? (f(), C("p",
|
|
6624
|
-
e.blockId ? (f(), C("div",
|
|
6544
|
+
}, M(w(l).scoring.severity[e.severity]), 5), N("span", Kl, M(e.message), 1)]),
|
|
6545
|
+
e.suggestion ? (f(), C("p", ql, M(e.suggestion), 1)) : A("", !0),
|
|
6546
|
+
e.blockId ? (f(), C("div", Jl, [N("button", {
|
|
6625
6547
|
class: "tpl-scoring-fix-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded tpl:border tpl:px-3 tpl:py-1.5 tpl:text-[11px] tpl:font-medium tpl:transition-all tpl:duration-150 tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)]",
|
|
6626
6548
|
style: { "background-color": "transparent" },
|
|
6627
6549
|
disabled: w(d).fixingFindingId.value !== null,
|
|
6628
6550
|
onClick: (t) => b(e)
|
|
6629
|
-
}, [w(d).fixingFindingId.value === e.id ? (f(), j(w(
|
|
6551
|
+
}, [w(d).fixingFindingId.value === e.id ? (f(), j(w(Br), {
|
|
6630
6552
|
key: 0,
|
|
6631
6553
|
class: "tpl-spinner",
|
|
6632
6554
|
size: 11,
|
|
6633
6555
|
"stroke-width": 2
|
|
6634
|
-
})) : (f(), j(w(
|
|
6556
|
+
})) : (f(), j(w(Qr), {
|
|
6635
6557
|
key: 1,
|
|
6636
6558
|
size: 11,
|
|
6637
6559
|
"stroke-width": 2
|
|
6638
|
-
})), z(" " + M(w(d).fixingFindingId.value === e.id ? w(l).scoring.fixing : w(l).scoring.fix), 1)], 8,
|
|
6560
|
+
})), z(" " + M(w(d).fixingFindingId.value === e.id ? w(l).scoring.fixing : w(l).scoring.fix), 1)], 8, Yl), w(d).fixError.value ? (f(), C("p", Xl, M(w(d).fixError.value), 1)) : A("", !0)])) : A("", !0)
|
|
6639
6561
|
])])]))), 128))])) : A("", !0)])), 64))
|
|
6640
|
-
])) : (f(), C("div",
|
|
6562
|
+
])) : (f(), C("div", Zl, [T(w(Xr), {
|
|
6641
6563
|
size: 32,
|
|
6642
6564
|
"stroke-width": 1.5,
|
|
6643
6565
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
6644
|
-
}), N("p",
|
|
6566
|
+
}), N("p", Ql, M(w(l).scoring.emptyState), 1)])), N("p", $l, M(w(l).aiMenu.disclaimer), 1)])])) : A("", !0)]),
|
|
6645
6567
|
_: 1
|
|
6646
6568
|
}));
|
|
6647
6569
|
}
|
|
6648
|
-
}),
|
|
6570
|
+
}), tu = /* @__PURE__ */ t({ default: () => nu }), nu = /* @__PURE__ */ ui(eu, [["__scopeId", "data-v-bb4db637"]]), ru = ["aria-busy"], iu = {
|
|
6649
6571
|
id: "tpl-test-email-title",
|
|
6650
6572
|
class: "tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
6651
|
-
},
|
|
6573
|
+
}, au = { class: "tpl:mb-3" }, ou = { class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, su = ["value"], cu = ["disabled"], lu = ["value"], uu = {
|
|
6652
6574
|
key: 0,
|
|
6653
6575
|
role: "alert",
|
|
6654
6576
|
class: "tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
6655
|
-
},
|
|
6577
|
+
}, du = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, fu = ["disabled"], pu = ["disabled"], mu = {
|
|
6656
6578
|
key: 0,
|
|
6657
6579
|
class: "tpl:flex tpl:items-center tpl:gap-1.5"
|
|
6658
|
-
},
|
|
6580
|
+
}, hu = { key: 1 }, gu = /* @__PURE__ */ g({
|
|
6659
6581
|
__name: "TestEmailModal",
|
|
6660
6582
|
props: {
|
|
6661
6583
|
visible: { type: Boolean },
|
|
@@ -6678,7 +6600,7 @@ var Ol = {
|
|
|
6678
6600
|
function p(e) {
|
|
6679
6601
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), u()), e.key === "Escape" && d();
|
|
6680
6602
|
}
|
|
6681
|
-
return (t, n) => (f(), j(
|
|
6603
|
+
return (t, n) => (f(), j(il, {
|
|
6682
6604
|
visible: e.visible,
|
|
6683
6605
|
onClose: d,
|
|
6684
6606
|
onKeydown: p
|
|
@@ -6694,14 +6616,14 @@ var Ol = {
|
|
|
6694
6616
|
"box-shadow": "var(--tpl-shadow-xl)"
|
|
6695
6617
|
}
|
|
6696
6618
|
}, [
|
|
6697
|
-
N("h3",
|
|
6698
|
-
N("div",
|
|
6619
|
+
N("h3", iu, M(w(o).testEmail.title), 1),
|
|
6620
|
+
N("div", au, [N("label", ou, M(w(o).testEmail.recipientLabel), 1), e.allowedEmails.length === 1 ? (f(), C("input", {
|
|
6699
6621
|
key: 0,
|
|
6700
6622
|
type: "text",
|
|
6701
6623
|
value: l.value,
|
|
6702
6624
|
disabled: "",
|
|
6703
6625
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:opacity-70 tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
6704
|
-
}, null, 8,
|
|
6626
|
+
}, null, 8, su)) : v((f(), C("select", {
|
|
6705
6627
|
key: 1,
|
|
6706
6628
|
"onUpdate:modelValue": n[0] ||= (e) => l.value = e,
|
|
6707
6629
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
@@ -6709,29 +6631,29 @@ var Ol = {
|
|
|
6709
6631
|
}, [(f(!0), C(O, null, s(e.allowedEmails, (e) => (f(), C("option", {
|
|
6710
6632
|
key: e,
|
|
6711
6633
|
value: e
|
|
6712
|
-
}, M(e), 9,
|
|
6713
|
-
e.error ? (f(), C("p",
|
|
6714
|
-
N("div",
|
|
6634
|
+
}, M(e), 9, lu))), 128))], 8, cu)), [[ce, l.value]])]),
|
|
6635
|
+
e.error ? (f(), C("p", uu, M(e.error), 1)) : A("", !0),
|
|
6636
|
+
N("div", du, [N("button", {
|
|
6715
6637
|
type: "button",
|
|
6716
6638
|
class: I(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": e.isSending }]),
|
|
6717
6639
|
disabled: e.isSending,
|
|
6718
6640
|
onClick: d
|
|
6719
|
-
}, M(w(o).testEmail.cancel), 11,
|
|
6641
|
+
}, M(w(o).testEmail.cancel), 11, fu), N("button", {
|
|
6720
6642
|
type: "button",
|
|
6721
6643
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
6722
6644
|
disabled: !l.value || e.isSending,
|
|
6723
6645
|
onClick: u
|
|
6724
|
-
}, [e.isSending ? (f(), C("span",
|
|
6646
|
+
}, [e.isSending ? (f(), C("span", mu, [T(w(Br), {
|
|
6725
6647
|
class: "tpl:animate-spin",
|
|
6726
6648
|
size: 12,
|
|
6727
6649
|
"stroke-width": 2
|
|
6728
|
-
}), z(" " + M(w(o).testEmail.sending), 1)])) : (f(), C("span",
|
|
6729
|
-
], 8,
|
|
6650
|
+
}), z(" " + M(w(o).testEmail.sending), 1)])) : (f(), C("span", hu, M(w(o).testEmail.send), 1))], 8, pu)])
|
|
6651
|
+
], 8, ru)]),
|
|
6730
6652
|
_: 1
|
|
6731
6653
|
}, 8, ["visible"]));
|
|
6732
6654
|
}
|
|
6733
|
-
}),
|
|
6655
|
+
}), _u = /* @__PURE__ */ t({ default: () => vu }), vu = gu;
|
|
6734
6656
|
//#endregion
|
|
6735
|
-
export {
|
|
6657
|
+
export { ui as $, G as $t, no as A, ge as An, J as At, oa as B, zn as Bt, po as C, ye as Cn, wr as Ct, ao as D, be as Dn, lr as Dt, X as E, Ae as En, Y as Et, Aa as F, Nn as Ft, Ii as G, Kn as Gt, na as H, kn as Ht, Da as I, Vn as It, Ci as J, jn as Jt, Pi as K, qn as Kt, Sa as L, Gn as Lt, Ba as M, he as Mn, Bn as Mt, La as N, Un as Nt, oo as O, Te as On, tr as Ot, Oa as P, Mn as Pt, gi as Q, vn as Qt, ba as R, On as Rt, go as S, xe as Sn, Er as St, $ as T, De as Tn, xr as Tt, Qi as U, In as Ut, aa as V, K as Vt, Vi as W, Rn as Wt, vi as X, ln as Xt, yi as Y, q as Yt, _i as Z, _n as Zt, Do as _, je as _n, Mr as _t, tl as a, Nt as an, Qr as at, xo as b, Se as bn, kr as bt, Bo as c, bt as cn, Jr as ct, No as d, xt as dn, Hr as dt, wn as en, li as et, Mo as f, pt as fn, Vr as ft, Oo as g, Ce as gn, Lr as gt, ko as h, V as hn, Rr as ht, il as i, tn as in, $r as it, Ka as j, _e as jn, Wn as jt, io as k, ve as kn, Jn as kt, zo as l, St as ln, Kr as lt, Ao as m, dt as mn, zr as mt, tu as n, Qt as nn, ri as nt, Ec as o, Tt as on, Xr as ot, jo as p, ft as pn, Br as pt, Ti as q, An as qt, vl as r, en as rn, ei as rt, fs as s, mt as sn, Yr as st, _u as t, xn as tn, ai as tt, Po as u, vt as un, Ur as ut, wo as v, we as vn, jr as vt, fo as w, Ee as wn, Sr as wt, bo as x, ke as xn, Or as xt, Co as y, Oe as yn, Ar as yt, sa as z, Pn as zt };
|
|
6736
6658
|
|
|
6737
|
-
//# sourceMappingURL=features-
|
|
6659
|
+
//# sourceMappingURL=features-Ccqmm6-M.js.map
|