@templatical/editor 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-B0-U5-sb.js → AiChatSidebar-BIKvYREk.js} +57 -56
- package/dist/{AiFeatureMenu-DxDwLS8B.js → AiFeatureMenu-QbD82crt.js} +23 -23
- package/dist/{BlockIssueBadge-C-EPqWsh.js → BlockIssueBadge-B3xVgMTh.js} +11 -11
- package/dist/CloudEditor-DptuSf7A.js +1234 -0
- package/dist/{CollaboratorBar-DgwjisX2.js → CollaboratorBar-DrA_K69w.js} +20 -20
- package/dist/{CommentsSidebar-CpRLN40c.js → CommentsSidebar-D_tSGvTX.js} +158 -157
- package/dist/CountdownBlock-apiYUhkQ.js +92 -0
- package/dist/CountdownToolbar-CS0axcjz.js +210 -0
- package/dist/{DesignReferenceSidebar-BgPDbOsl.js → DesignReferenceSidebar-DWYK9nTk.js} +58 -57
- package/dist/{IssuesPanel-I0z6k6-H.js → IssuesPanel-CR1MPaDE.js} +40 -40
- package/dist/{LoadingTrack-C7mGWPHS.js → LoadingTrack-DsecR8Rw.js} +1 -1
- package/dist/MergeTagSuggestion-CH2SUxBo.js +1327 -0
- package/dist/ModuleBrowserModal-D45rBj5C.js +202 -0
- package/dist/{ModulePreviewCanvas-Dni9kK4j.js → ModulePreviewCanvas-BiQ6B2-l.js} +29 -29
- package/dist/{NumberWithSuffix-D3fdj0iO.js → NumberWithSuffix-CrA6quxx.js} +143 -142
- package/dist/ParagraphEditor-1NaUJpZO.js +721 -0
- package/dist/{RichTextEditorContent-Q5altsx1.js → RichTextEditorContent-BqLHIZY7.js} +45 -44
- package/dist/{SaveModuleDialog-C38VqN2T.js → SaveModuleDialog-B0sPOTgO.js} +38 -37
- package/dist/{SnapshotHistory-ByloTpwh.js → SnapshotHistory-DslVzmSb.js} +34 -33
- package/dist/{TemplateScoringPanel-CUxiPtEf.js → TemplateScoringPanel-CZ62rGHz.js} +83 -82
- package/dist/{TestEmailModal-BvZBMBad.js → TestEmailModal-DWGniJVu.js} +22 -21
- package/dist/TitleEditor-D4t_gZZJ.js +193 -0
- package/dist/{TplModal-BYb-X5Bj.js → TplModal-Br2VG6cn.js} +14 -13
- package/dist/{blockTypeIcons-CyAom3iI.js → blockTypeIcons-CXhCS5WV.js} +5 -5
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js → AiFeatureMenu-3Slo_LGA.js} +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js.map → AiFeatureMenu-3Slo_LGA.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js → BlockIssueBadge-BxwEiiF3.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js.map → BlockIssueBadge-BxwEiiF3.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BZuzsQOZ.js → CloudEditor-DFIFWD9G.js} +163 -161
- package/dist/cdn/chunks/CloudEditor-DFIFWD9G.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js → CollaboratorBar-Cu3vuN66.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js.map → CollaboratorBar-Cu3vuN66.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js → CountdownBlock-BEVAJQtQ.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js.map → CountdownBlock-BEVAJQtQ.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js → CountdownToolbar-CI2sQZv5.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js.map → CountdownToolbar-CI2sQZv5.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js → IssuesPanel-BdeDoTcn.js} +11 -11
- package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js.map → IssuesPanel-BdeDoTcn.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js +213 -0
- package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js → ModuleBrowserModal-Dz-I5zfj.js} +11 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js.map → ModuleBrowserModal-Dz-I5zfj.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js → ModulePreviewCanvas-BfinyuAN.js} +21 -21
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js.map → ModulePreviewCanvas-BfinyuAN.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js → NumberWithSuffix-CDjEa08X.js} +4 -4
- package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js.map → NumberWithSuffix-CDjEa08X.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-pGrfSccu.js → ParagraphEditor-B3fG0vge.js} +130 -110
- package/dist/cdn/chunks/ParagraphEditor-B3fG0vge.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js → RichTextEditorContent-C6YPCp9j.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js.map → RichTextEditorContent-C6YPCp9j.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js → SaveModuleDialog-C6UIIVAM.js} +6 -6
- package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js.map → SaveModuleDialog-C6UIIVAM.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BvFbL16O.js → TitleEditor-BiZbLYF1.js} +62 -46
- package/dist/cdn/chunks/TitleEditor-BiZbLYF1.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-BernVG06.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-Kd1MT0u8.js.map → blockTypeIcons-BernVG06.js.map} +1 -1
- package/dist/{de-C2wOXoxs.js → cdn/chunks/de-LsV0u1tP.js} +19 -1
- package/dist/cdn/chunks/de-LsV0u1tP.js.map +1 -0
- package/dist/cdn/chunks/{draggable-Bci-fq8y.js → draggable-kG-D5Xsm.js} +19 -10
- package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +1 -0
- package/dist/cdn/chunks/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +18 -2
- package/dist/cdn/chunks/en-Bb8X1bOs.js.map +1 -0
- package/dist/cdn/chunks/extensions-Drp8UDc6.js +421 -0
- package/dist/cdn/chunks/extensions-Drp8UDc6.js.map +1 -0
- package/dist/cdn/chunks/{features-DU6lA8l1.js → features-Dpczf9Su.js} +1171 -994
- package/dist/cdn/chunks/features-Dpczf9Su.js.map +1 -0
- package/dist/cdn/chunks/{icons-BjHUZZyJ.js → icons-CuxnJiGQ.js} +170 -164
- package/dist/cdn/chunks/icons-CuxnJiGQ.js.map +1 -0
- package/dist/cdn/chunks/{liquid.browser-DKKBzRQu.js → liquid.browser-BJOEu6Cg.js} +693 -678
- package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +1 -0
- package/dist/cdn/chunks/{media-library-Byelliig.js → media-library-CiYl_BO7.js} +556 -554
- package/dist/cdn/chunks/{media-library-Byelliig.js.map → media-library-CiYl_BO7.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +18 -2
- package/dist/cdn/chunks/pt-BR-BwJY_cvb.js.map +1 -0
- package/dist/cdn/chunks/{pusher-BICWUP2j.js → pusher-CIwiKF8H.js} +9 -6
- package/dist/cdn/chunks/{pusher-BICWUP2j.js.map → pusher-CIwiKF8H.js.map} +1 -1
- package/dist/cdn/chunks/quality-CNjGxBG0.js +2176 -0
- package/dist/cdn/chunks/{quality-DNnYAntR.js.map → quality-CNjGxBG0.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CZKO-Tav.js → renderer-CFkg8h-K.js} +40 -31
- package/dist/cdn/chunks/renderer-CFkg8h-K.js.map +1 -0
- package/dist/cdn/chunks/{src-DsqSXXjk.js → src-DRpKu4Dy.js} +11 -11
- package/dist/cdn/chunks/{src-DsqSXXjk.js.map → src-DRpKu4Dy.js.map} +1 -1
- package/dist/cdn/chunks/styles-B7wryV0l.js +3943 -0
- package/dist/cdn/chunks/styles-B7wryV0l.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CwScfbsM.js → tiptap-DF9PEiqH.js} +5429 -5373
- package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +117 -115
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BRzXxFHr.js → check-rl7ok6uJ.js} +1 -1
- package/dist/{chevron-down-DmEgzmYT.js → chevron-down-BKe__NOD.js} +1 -1
- package/dist/{circle-alert-BStvZr3O.js → circle-alert-C8xmpMsK.js} +1 -1
- package/dist/{clock-Blwp_1R6.js → clock-BW4JuDCN.js} +1 -1
- package/dist/{cloud-_olro76D.js → cloud-BQusL53H.js} +208 -208
- package/dist/createLucideIcon-Dx-EjR9r.js +43 -0
- package/dist/{cdn/chunks/de-C2wOXoxs.js → de-LsV0u1tP.js} +17 -3
- package/dist/{dist-BlG7k25W.js → dist-B5Sov3sS.js} +7 -7
- package/dist/dist-BEWiuOMi.js +251 -0
- package/dist/{dist-b7Ak-CuM.js → dist-BFmE-7hB.js} +2 -2
- package/dist/{dist-o73iaGqy.js → dist-BMoa33wT.js} +2 -2
- package/dist/{dist-BctFrpeA.js → dist-BibU4HNl.js} +74 -65
- package/dist/{dist-D6x1cQeh.js → dist-BsCGIDSt.js} +103 -102
- package/dist/dist-CNLKj9wa.js +5 -0
- package/dist/{dist-DULfKmTh.js → dist-CNXDNYQn.js} +729 -695
- package/dist/{dist-412xXefB.js → dist-COG3IdPK.js} +3 -3
- package/dist/{dist-Cz79qrLL.js → dist-CQZxDvFw.js} +3 -3
- package/dist/{dist-BwgjpLfr.js → dist-CRsjOQM-.js} +2 -2
- package/dist/dist-CTT6WYJ6.js +134 -0
- package/dist/dist-Cqa6aeAJ.js +5 -0
- package/dist/{dist-BCQZZUE9.js → dist-SXJJ2v41.js} +2 -2
- package/dist/{dist-DhKTdU52.js → dist-itdjZraK.js} +1445 -1420
- package/dist/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +17 -1
- package/dist/extensions-DwaZAqm6.js +423 -0
- package/dist/{image-up-BFPbw_Zq.js → image-up-BwBCmQ4P.js} +1 -1
- package/dist/index.d.ts +17 -0
- package/dist/{info-B_qLEBN2.js → info-TCn7uWR5.js} +1 -1
- package/dist/keys-Cv8-8GsD.js +10 -0
- package/dist/{liquid.browser-CVjP5Mex.js → liquid.browser-DZLtv26k.js} +692 -677
- package/dist/{list-checks-CGg7JxPm.js → list-checks-CSrOWNgq.js} +1 -1
- package/dist/{loader-circle-CDF8eR_Q.js → loader-circle-BLmicnPG.js} +1 -1
- package/dist/{message-circle-C3cHsCJl.js → message-circle-C9hHMQCI.js} +1 -1
- package/dist/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +17 -1
- package/dist/{refresh-cw-Butml7Q4.js → refresh-cw-D1JQ1LNa.js} +1 -1
- package/dist/runtime-dom.esm-bundler-BzuoCyNp.js +523 -0
- package/dist/scan-line-DgijVq9y.js +31 -0
- package/dist/{send-k7npFJNO.js → send-DjPdq69F.js} +1 -1
- package/dist/{shield-check-CV6GbmCu.js → shield-check-Bqluu8FS.js} +1 -1
- package/dist/{sparkles-C965Xop4.js → sparkles-M4azPVSP.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styles-D7fQ7f_1.js +4164 -0
- package/dist/templatical-editor.js +155 -152
- package/dist/{text-align-start-Bxnps8fH.js → text-align-start-CMya5pCQ.js} +11 -11
- package/dist/{trash-2-DpGb7fIt.js → trash-2-C-81rkLS.js} +1 -1
- package/dist/{triangle-alert-BKYElAwz.js → triangle-alert-BuRWnynk.js} +1 -1
- package/dist/{upload-BF7sxd1_.js → upload-CWBIoLd4.js} +1 -1
- package/dist/{useAliveFlag-BinvbqQR.js → useAliveFlag-CECL_OUb.js} +1 -1
- package/dist/{useCloudI18n-L3H2XvdW.js → useCloudI18n-AKCy98qD.js} +2 -2
- package/dist/{useEditorCore-DKYZ7aKk.js → useEditorCore-vcWLdnjN.js} +1480 -1310
- package/dist/{useI18n-CTs_bP9d.js → useI18n-C-TDeJBt.js} +2 -2
- package/dist/{useMergeTag-e3RSY-s3.js → useMergeTag-DSrBY0-2.js} +6 -6
- package/dist/usePopoverRoot-DKUDnr55.js +8 -0
- package/dist/{vue.runtime.esm-bundler-B2k01iQh.js → vue.runtime.esm-bundler-l0XAqiyv.js} +639 -1151
- package/dist/{x-CGjkjdKK.js → x-CQSvXnGR.js} +1 -1
- package/package.json +27 -27
- package/dist/CloudEditor-DaEfipBn.js +0 -1230
- package/dist/CountdownBlock-DO9fziwf.js +0 -92
- package/dist/CountdownToolbar-BeII06yJ.js +0 -210
- package/dist/ModuleBrowserModal-DsZRr87F.js +0 -198
- package/dist/ParagraphEditor-CZ-cmhX3.js +0 -700
- package/dist/TitleEditor-DbNOcvhR.js +0 -177
- package/dist/cdn/chunks/CloudEditor-BZuzsQOZ.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-pGrfSccu.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-BvFbL16O.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-Kd1MT0u8.js +0 -22
- package/dist/cdn/chunks/de-C2wOXoxs.js.map +0 -1
- package/dist/cdn/chunks/draggable-Bci-fq8y.js.map +0 -1
- package/dist/cdn/chunks/en-dR7zfNC3.js.map +0 -1
- package/dist/cdn/chunks/extensions-CuUjSmuA.js +0 -605
- package/dist/cdn/chunks/extensions-CuUjSmuA.js.map +0 -1
- package/dist/cdn/chunks/features-DU6lA8l1.js.map +0 -1
- package/dist/cdn/chunks/icons-BjHUZZyJ.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BZ86xqK6.js.map +0 -1
- package/dist/cdn/chunks/quality-DNnYAntR.js +0 -2176
- package/dist/cdn/chunks/renderer-CZKO-Tav.js.map +0 -1
- package/dist/cdn/chunks/styles-DiAdtiz9.js +0 -3428
- package/dist/cdn/chunks/styles-DiAdtiz9.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +0 -1
- package/dist/createLucideIcon-CmPAC-gt.js +0 -43
- package/dist/dist-BNEdeWub.js +0 -5
- package/dist/dist-Cgry6fNv.js +0 -382
- package/dist/dist-u0iIJH3V.js +0 -5
- package/dist/extensions-XPlNAKIL.js +0 -1720
- package/dist/keys-mFiJ5N0_.js +0 -10
- package/dist/scan-line-XYEqim_E.js +0 -25
- package/dist/styles-D0RCAWhB.js +0 -3647
- package/dist/usePopoverRoot-DVh7NY1q.js +0 -8
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { A as t, Dt as n, O as r, Ot as i, Y as a, _ as o, c as s, d as c, nt as l, r as u, s as d, u as f } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
3
|
+
import { p } from "./dist-CTT6WYJ6.js";
|
|
4
|
+
import { t as m } from "./useI18n-C-TDeJBt.js";
|
|
5
|
+
//#region src/components/blocks/CountdownBlock.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var h = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-8 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
9
|
+
}, g = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-4 tpl:text-xs tpl:text-[var(--tpl-text-dim)] tpl:opacity-50"
|
|
12
|
+
}, _ = { class: "tpl:text-center" }, v = /*@__PURE__*/ o({
|
|
13
|
+
__name: "CountdownBlock",
|
|
14
|
+
props: {
|
|
15
|
+
block: {},
|
|
16
|
+
viewport: {}
|
|
17
|
+
},
|
|
18
|
+
setup(e) {
|
|
19
|
+
let o = e, { t: v } = m(), y = a(Date.now());
|
|
20
|
+
p(() => {
|
|
21
|
+
y.value = Date.now();
|
|
22
|
+
}, 1e3);
|
|
23
|
+
let b = d(() => {
|
|
24
|
+
if (!o.block.targetDate) return null;
|
|
25
|
+
let e = new Date(o.block.targetDate);
|
|
26
|
+
return isNaN(e.getTime()) ? null : e.getTime();
|
|
27
|
+
}), x = d(() => b.value ? y.value >= b.value : !1), S = d(() => {
|
|
28
|
+
if (!b.value || x.value) return {
|
|
29
|
+
days: 0,
|
|
30
|
+
hours: 0,
|
|
31
|
+
minutes: 0,
|
|
32
|
+
seconds: 0
|
|
33
|
+
};
|
|
34
|
+
let e = b.value - y.value, t = Math.floor(e / 1e3);
|
|
35
|
+
return {
|
|
36
|
+
days: Math.floor(t / 86400),
|
|
37
|
+
hours: Math.floor(t % 86400 / 3600),
|
|
38
|
+
minutes: Math.floor(t % 3600 / 60),
|
|
39
|
+
seconds: t % 60
|
|
40
|
+
};
|
|
41
|
+
}), C = d(() => {
|
|
42
|
+
let e = [];
|
|
43
|
+
return o.block.showDays && e.push({
|
|
44
|
+
value: String(S.value.days).padStart(2, "0"),
|
|
45
|
+
label: o.block.labelDays
|
|
46
|
+
}), o.block.showHours && e.push({
|
|
47
|
+
value: String(S.value.hours).padStart(2, "0"),
|
|
48
|
+
label: o.block.labelHours
|
|
49
|
+
}), o.block.showMinutes && e.push({
|
|
50
|
+
value: String(S.value.minutes).padStart(2, "0"),
|
|
51
|
+
label: o.block.labelMinutes
|
|
52
|
+
}), o.block.showSeconds && e.push({
|
|
53
|
+
value: String(S.value.seconds).padStart(2, "0"),
|
|
54
|
+
label: o.block.labelSeconds
|
|
55
|
+
}), e;
|
|
56
|
+
}), w = d(() => ({
|
|
57
|
+
backgroundColor: o.block.backgroundColor,
|
|
58
|
+
fontFamily: o.block.fontFamily || "inherit"
|
|
59
|
+
})), T = d(() => ({
|
|
60
|
+
fontSize: `${o.block.digitFontSize}px`,
|
|
61
|
+
fontWeight: "bold",
|
|
62
|
+
color: o.block.digitColor,
|
|
63
|
+
lineHeight: "1.2"
|
|
64
|
+
})), E = d(() => ({
|
|
65
|
+
fontSize: `${o.block.labelFontSize}px`,
|
|
66
|
+
color: o.block.labelColor,
|
|
67
|
+
marginTop: "4px"
|
|
68
|
+
})), D = d(() => ({
|
|
69
|
+
fontSize: `${o.block.digitFontSize}px`,
|
|
70
|
+
color: o.block.digitColor,
|
|
71
|
+
fontFamily: o.block.fontFamily || "inherit"
|
|
72
|
+
}));
|
|
73
|
+
return (a, o) => e.block.targetDate ? x.value && e.block.hideOnExpiry ? (r(), c("div", g, i(l(v).countdown.hidden), 1)) : x.value ? (r(), c("div", {
|
|
74
|
+
key: 2,
|
|
75
|
+
style: n(w.value),
|
|
76
|
+
class: "tpl:py-4 tpl:text-center"
|
|
77
|
+
}, [s("span", { style: n({
|
|
78
|
+
fontSize: `${e.block.digitFontSize}px`,
|
|
79
|
+
color: e.block.digitColor
|
|
80
|
+
}) }, i(e.block.expiredMessage), 5)], 4)) : (r(), c("div", {
|
|
81
|
+
key: 3,
|
|
82
|
+
style: n(w.value),
|
|
83
|
+
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:py-4"
|
|
84
|
+
}, [(r(!0), c(u, null, t(C.value, (t, a) => (r(), c(u, { key: t.label }, [a > 0 ? (r(), c("span", {
|
|
85
|
+
key: 0,
|
|
86
|
+
style: n(D.value),
|
|
87
|
+
class: "tpl:self-start"
|
|
88
|
+
}, i(e.block.separator), 5)) : f("", !0), s("div", _, [s("div", { style: n(T.value) }, i(t.value), 5), s("div", { style: n(E.value) }, i(t.label), 5)])], 64))), 128))], 4)) : (r(), c("div", h, i(l(v).countdown.setDate), 1));
|
|
89
|
+
}
|
|
90
|
+
}), y = /* @__PURE__ */ e({ default: () => b }), b = v;
|
|
91
|
+
//#endregion
|
|
92
|
+
export { y as n, b as t };
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { A as e, Et as t, O as n, Ot as r, R as i, _ as a, c as o, d as s, h as c, l, m as u, nt as d, r as f, s as p } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
2
|
+
import { t as m } from "./useI18n-C-TDeJBt.js";
|
|
3
|
+
import { f as h } from "./styleConstants-lGobwiLH.js";
|
|
4
|
+
import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-CrA6quxx.js";
|
|
5
|
+
//#region src/components/toolbar/CheckboxItem.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var b = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, x = ["checked"], S = /* @__PURE__ */ a({
|
|
7
|
+
__name: "CheckboxItem",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { type: Boolean },
|
|
10
|
+
label: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(e, { emit: t }) {
|
|
14
|
+
let i = t;
|
|
15
|
+
return (t, a) => (n(), s("label", b, [o("input", {
|
|
16
|
+
type: "checkbox",
|
|
17
|
+
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
18
|
+
checked: e.modelValue,
|
|
19
|
+
onChange: a[0] ||= (e) => i("update:modelValue", e.target.checked)
|
|
20
|
+
}, null, 40, x), u(" " + r(e.label), 1)]));
|
|
21
|
+
}
|
|
22
|
+
}), C = ["value"], w = ["value"], T = ["value"], E = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, D = ["value"], O = { value: "" }, k = ["value"], A = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, j = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, M = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, N = [
|
|
23
|
+
"value",
|
|
24
|
+
"placeholder",
|
|
25
|
+
"onInput"
|
|
26
|
+
], P = ["value", "placeholder"], F = ["value"], I = /* @__PURE__ */ a({
|
|
27
|
+
__name: "CountdownToolbar",
|
|
28
|
+
props: {
|
|
29
|
+
block: {},
|
|
30
|
+
fontFamilies: {}
|
|
31
|
+
},
|
|
32
|
+
emits: ["update"],
|
|
33
|
+
setup(a, { emit: u }) {
|
|
34
|
+
let b = u, { t: x } = m(), I = [
|
|
35
|
+
"UTC",
|
|
36
|
+
"America/New_York",
|
|
37
|
+
"America/Chicago",
|
|
38
|
+
"America/Denver",
|
|
39
|
+
"America/Los_Angeles",
|
|
40
|
+
"Europe/London",
|
|
41
|
+
"Europe/Berlin",
|
|
42
|
+
"Europe/Paris",
|
|
43
|
+
"Europe/Moscow",
|
|
44
|
+
"Asia/Dubai",
|
|
45
|
+
"Asia/Kolkata",
|
|
46
|
+
"Asia/Shanghai",
|
|
47
|
+
"Asia/Tokyo",
|
|
48
|
+
"Australia/Sydney",
|
|
49
|
+
"Pacific/Auckland"
|
|
50
|
+
], L = [
|
|
51
|
+
{
|
|
52
|
+
value: ":",
|
|
53
|
+
label: ":"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
value: "-",
|
|
57
|
+
label: "-"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
value: " ",
|
|
61
|
+
label: "␣"
|
|
62
|
+
}
|
|
63
|
+
], R = [
|
|
64
|
+
"Days",
|
|
65
|
+
"Hours",
|
|
66
|
+
"Minutes",
|
|
67
|
+
"Seconds"
|
|
68
|
+
], z = p(() => R.map((e) => ({
|
|
69
|
+
unit: e,
|
|
70
|
+
showKey: `show${e}`,
|
|
71
|
+
labelKey: `label${e}`,
|
|
72
|
+
translationKey: e.toLowerCase()
|
|
73
|
+
})));
|
|
74
|
+
function B(e, t) {
|
|
75
|
+
b("update", { [e]: t });
|
|
76
|
+
}
|
|
77
|
+
return (u, p) => (n(), s(f, null, [
|
|
78
|
+
c(_, { label: d(x).countdown.targetDate }, {
|
|
79
|
+
default: i(() => [o("input", {
|
|
80
|
+
type: "datetime-local",
|
|
81
|
+
class: t(d(h)),
|
|
82
|
+
value: a.block.targetDate,
|
|
83
|
+
onInput: p[0] ||= (e) => B("targetDate", e.target.value)
|
|
84
|
+
}, null, 42, C)]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 8, ["label"]),
|
|
87
|
+
c(_, { label: d(x).countdown.timezone }, {
|
|
88
|
+
default: i(() => [o("select", {
|
|
89
|
+
class: t(d(h)),
|
|
90
|
+
value: a.block.timezone,
|
|
91
|
+
onChange: p[1] ||= (e) => B("timezone", e.target.value)
|
|
92
|
+
}, [(n(), s(f, null, e(I, (e) => o("option", {
|
|
93
|
+
key: e,
|
|
94
|
+
value: e
|
|
95
|
+
}, r(e), 9, T)), 64))], 42, w)]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 8, ["label"]),
|
|
98
|
+
c(_, { label: d(x).countdown.display }, {
|
|
99
|
+
default: i(() => [o("div", E, [(n(!0), s(f, null, e(z.value, (e) => (n(), l(S, {
|
|
100
|
+
key: e.unit,
|
|
101
|
+
"model-value": a.block[e.showKey],
|
|
102
|
+
label: d(x).countdown[e.translationKey],
|
|
103
|
+
"onUpdate:modelValue": (t) => B(e.showKey, t)
|
|
104
|
+
}, null, 8, [
|
|
105
|
+
"model-value",
|
|
106
|
+
"label",
|
|
107
|
+
"onUpdate:modelValue"
|
|
108
|
+
]))), 128))])]),
|
|
109
|
+
_: 1
|
|
110
|
+
}, 8, ["label"]),
|
|
111
|
+
c(_, { label: d(x).countdown.separator }, {
|
|
112
|
+
default: i(() => [c(v, {
|
|
113
|
+
options: L,
|
|
114
|
+
"model-value": a.block.separator,
|
|
115
|
+
"onUpdate:modelValue": p[2] ||= (e) => B("separator", e)
|
|
116
|
+
}, null, 8, ["model-value"])]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 8, ["label"]),
|
|
119
|
+
c(_, { label: d(x).countdown.fontFamily }, {
|
|
120
|
+
default: i(() => [o("select", {
|
|
121
|
+
class: t(d(h)),
|
|
122
|
+
value: a.block.fontFamily || "",
|
|
123
|
+
onChange: p[3] ||= (e) => B("fontFamily", e.target.value || void 0)
|
|
124
|
+
}, [o("option", O, r(d(x).countdown.inheritFont), 1), (n(!0), s(f, null, e(a.fontFamilies, (e) => (n(), s("option", {
|
|
125
|
+
key: e.value,
|
|
126
|
+
value: e.value
|
|
127
|
+
}, r(e.label), 9, k))), 128))], 42, D)]),
|
|
128
|
+
_: 1
|
|
129
|
+
}, 8, ["label"]),
|
|
130
|
+
o("div", A, [c(_, { label: d(x).countdown.digitFontSize }, {
|
|
131
|
+
default: i(() => [c(y, {
|
|
132
|
+
"model-value": a.block.digitFontSize,
|
|
133
|
+
min: 12,
|
|
134
|
+
max: 72,
|
|
135
|
+
suffix: "px",
|
|
136
|
+
"onUpdate:modelValue": p[4] ||= (e) => B("digitFontSize", e)
|
|
137
|
+
}, null, 8, ["model-value"])]),
|
|
138
|
+
_: 1
|
|
139
|
+
}, 8, ["label"]), c(_, { label: d(x).countdown.labelFontSize }, {
|
|
140
|
+
default: i(() => [c(y, {
|
|
141
|
+
"model-value": a.block.labelFontSize,
|
|
142
|
+
min: 8,
|
|
143
|
+
max: 24,
|
|
144
|
+
suffix: "px",
|
|
145
|
+
"onUpdate:modelValue": p[5] ||= (e) => B("labelFontSize", e)
|
|
146
|
+
}, null, 8, ["model-value"])]),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 8, ["label"])]),
|
|
149
|
+
o("div", j, [c(_, { label: d(x).countdown.digitColor }, {
|
|
150
|
+
default: i(() => [c(g, {
|
|
151
|
+
"model-value": a.block.digitColor,
|
|
152
|
+
"onUpdate:modelValue": p[6] ||= (e) => B("digitColor", e)
|
|
153
|
+
}, null, 8, ["model-value"])]),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 8, ["label"]), c(_, { label: d(x).countdown.labelColor }, {
|
|
156
|
+
default: i(() => [c(g, {
|
|
157
|
+
"model-value": a.block.labelColor,
|
|
158
|
+
"onUpdate:modelValue": p[7] ||= (e) => B("labelColor", e)
|
|
159
|
+
}, null, 8, ["model-value"])]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["label"])]),
|
|
162
|
+
c(_, { label: d(x).countdown.background }, {
|
|
163
|
+
default: i(() => [c(g, {
|
|
164
|
+
"model-value": a.block.backgroundColor,
|
|
165
|
+
"onUpdate:modelValue": p[8] ||= (e) => B("backgroundColor", e)
|
|
166
|
+
}, null, 8, ["model-value"])]),
|
|
167
|
+
_: 1
|
|
168
|
+
}, 8, ["label"]),
|
|
169
|
+
c(_, { label: d(x).countdown.labels }, {
|
|
170
|
+
default: i(() => [o("div", M, [(n(!0), s(f, null, e(z.value, (e) => (n(), s("input", {
|
|
171
|
+
key: e.unit,
|
|
172
|
+
type: "text",
|
|
173
|
+
class: t(d(h)),
|
|
174
|
+
value: a.block[e.labelKey],
|
|
175
|
+
placeholder: d(x).countdown[e.translationKey],
|
|
176
|
+
onInput: (t) => B(e.labelKey, t.target.value)
|
|
177
|
+
}, null, 42, N))), 128))])]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 8, ["label"]),
|
|
180
|
+
c(_, { label: d(x).countdown.expiry }, {
|
|
181
|
+
default: i(() => [o("input", {
|
|
182
|
+
type: "text",
|
|
183
|
+
class: t(d(h)),
|
|
184
|
+
value: a.block.expiredMessage,
|
|
185
|
+
placeholder: d(x).countdown.expiredMessagePlaceholder,
|
|
186
|
+
onInput: p[9] ||= (e) => B("expiredMessage", e.target.value)
|
|
187
|
+
}, null, 42, P)]),
|
|
188
|
+
_: 1
|
|
189
|
+
}, 8, ["label"]),
|
|
190
|
+
c(_, { label: d(x).countdown.expiredImageUrl }, {
|
|
191
|
+
default: i(() => [o("input", {
|
|
192
|
+
type: "url",
|
|
193
|
+
class: t(d(h)),
|
|
194
|
+
value: a.block.expiredImageUrl,
|
|
195
|
+
placeholder: "https://...",
|
|
196
|
+
onInput: p[10] ||= (e) => B("expiredImageUrl", e.target.value)
|
|
197
|
+
}, null, 42, F)]),
|
|
198
|
+
_: 1
|
|
199
|
+
}, 8, ["label"]),
|
|
200
|
+
c(S, {
|
|
201
|
+
"model-value": a.block.hideOnExpiry,
|
|
202
|
+
label: d(x).countdown.hideOnExpiry,
|
|
203
|
+
class: "tpl:mb-3.5",
|
|
204
|
+
"onUpdate:modelValue": p[11] ||= (e) => B("hideOnExpiry", e)
|
|
205
|
+
}, null, 8, ["model-value", "label"])
|
|
206
|
+
], 64));
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
//#endregion
|
|
210
|
+
export { I as default };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dt as e, Et as t, I as n, O as r, Ot as i, R as ee, T as a, Y as o, _ as s, c, d as l, h as u, l as te, m as d, nt as f, s as ne, u as p, z as re } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
2
|
+
import { a as ie, t as ae } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
|
|
2
3
|
import "./timeouts-Bmi_yePw.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as h } from "./createLucideIcon-
|
|
5
|
-
import { t as ce } from "./circle-alert-
|
|
6
|
-
import { t as g } from "./image-up-
|
|
7
|
-
import { t as _ } from "./upload-
|
|
8
|
-
import { t as v } from "./x-
|
|
9
|
-
import { t as le } from "./LoadingTrack-
|
|
4
|
+
import { L as m, m as oe, r as se } from "./keys-Cv8-8GsD.js";
|
|
5
|
+
import { t as h } from "./createLucideIcon-Dx-EjR9r.js";
|
|
6
|
+
import { t as ce } from "./circle-alert-C8xmpMsK.js";
|
|
7
|
+
import { t as g } from "./image-up-BwBCmQ4P.js";
|
|
8
|
+
import { t as _ } from "./upload-CWBIoLd4.js";
|
|
9
|
+
import { t as v } from "./x-CQSvXnGR.js";
|
|
10
|
+
import { t as le } from "./LoadingTrack-DsecR8Rw.js";
|
|
10
11
|
import { t as y } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
11
|
-
import { n as ue } from "./useCloudI18n-
|
|
12
|
-
import { u as de } from "./cloud-
|
|
12
|
+
import { n as ue } from "./useCloudI18n-AKCy98qD.js";
|
|
13
|
+
import { u as de } from "./cloud-BQusL53H.js";
|
|
13
14
|
var fe = h("file-image", [
|
|
14
15
|
["path", {
|
|
15
16
|
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",
|
|
@@ -71,19 +72,19 @@ var fe = h("file-image", [
|
|
|
71
72
|
}, ge = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, _e = { class: "tpl:flex tpl:gap-2" }, ve = {
|
|
72
73
|
key: 1,
|
|
73
74
|
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)]"
|
|
74
|
-
}, ye = ["disabled"], be = { class: "tpl:m-0 tpl:pt-1 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, z = /*#__PURE__*/ y(/* @__PURE__ */
|
|
75
|
+
}, ye = ["disabled"], be = { class: "tpl:m-0 tpl:pt-1 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, z = /*#__PURE__*/ y(/* @__PURE__ */ s({
|
|
75
76
|
__name: "DesignReferenceSidebar",
|
|
76
77
|
props: {
|
|
77
78
|
visible: { type: Boolean },
|
|
78
79
|
hasExistingBlocks: { type: Boolean }
|
|
79
80
|
},
|
|
80
81
|
emits: ["close", "apply"],
|
|
81
|
-
setup(
|
|
82
|
-
let y =
|
|
82
|
+
setup(s, { emit: h }) {
|
|
83
|
+
let y = s, z = h, { t: B } = ue(), xe = m(oe, "DesignReferenceSidebar"), V = de({
|
|
83
84
|
authManager: m(se, "DesignReferenceSidebar"),
|
|
84
85
|
getTemplateId: () => xe.state.template?.id ?? null,
|
|
85
86
|
onApply: (e) => z("apply", e)
|
|
86
|
-
}), H =
|
|
87
|
+
}), H = o(null), U = o("image"), W = o(null), G = o(""), K = o(null), q = o(!1), J = o(!1), Y = ne(() => !V.isGenerating.value && W.value !== null);
|
|
87
88
|
function X(e) {
|
|
88
89
|
U.value = e, Q();
|
|
89
90
|
}
|
|
@@ -139,11 +140,11 @@ var fe = h("file-image", [
|
|
|
139
140
|
function Ee() {
|
|
140
141
|
q.value = !1;
|
|
141
142
|
}
|
|
142
|
-
return
|
|
143
|
+
return n(() => y.visible, (e) => {
|
|
143
144
|
e || (q.value = !1);
|
|
144
|
-
}),
|
|
145
|
+
}), a(() => {
|
|
145
146
|
K.value &&= (URL.revokeObjectURL(K.value), null);
|
|
146
|
-
}), (n,
|
|
147
|
+
}), (n, a) => (r(), te(ae, {
|
|
147
148
|
"enter-active-class": "tpl-design-slide-enter-active",
|
|
148
149
|
"enter-from-class": "tpl:translate-x-full",
|
|
149
150
|
"enter-to-class": "tpl:translate-x-0",
|
|
@@ -151,74 +152,74 @@ var fe = h("file-image", [
|
|
|
151
152
|
"leave-from-class": "tpl:translate-x-0",
|
|
152
153
|
"leave-to-class": "tpl:translate-x-full"
|
|
153
154
|
}, {
|
|
154
|
-
default:
|
|
155
|
+
default: ee(() => [s.visible ? (r(), l("div", pe, [c("div", me, [c("div", he, [u(f(g), {
|
|
155
156
|
size: 13,
|
|
156
157
|
"stroke-width": 2
|
|
157
|
-
}),
|
|
158
|
+
}), c("span", null, i(f(B).designReference.title), 1)]), c("button", {
|
|
158
159
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
159
|
-
onClick:
|
|
160
|
-
}, [
|
|
160
|
+
onClick: a[0] ||= (e) => z("close")
|
|
161
|
+
}, [u(f(v), {
|
|
161
162
|
size: 14,
|
|
162
163
|
"stroke-width": 2
|
|
163
|
-
})])]),
|
|
164
|
-
|
|
164
|
+
})])]), c("div", x, [f(V).isGenerating.value ? (r(), l("div", S, [c("div", C, [u(le), c("p", w, i(f(B).designReference.generating), 1)])])) : (r(), l("div", T, [
|
|
165
|
+
c("div", E, [c("button", {
|
|
165
166
|
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",
|
|
166
|
-
style:
|
|
167
|
+
style: e({
|
|
167
168
|
backgroundColor: U.value === "image" ? "var(--tpl-bg)" : "transparent",
|
|
168
169
|
color: U.value === "image" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
169
170
|
boxShadow: U.value === "image" ? "var(--tpl-shadow)" : "none"
|
|
170
171
|
}),
|
|
171
|
-
onClick:
|
|
172
|
-
}, [
|
|
172
|
+
onClick: a[1] ||= (e) => X("image")
|
|
173
|
+
}, [u(f(fe), {
|
|
173
174
|
size: 12,
|
|
174
175
|
"stroke-width": 2
|
|
175
|
-
}),
|
|
176
|
+
}), d(" " + i(f(B).designReference.uploadImage), 1)], 4), c("button", {
|
|
176
177
|
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",
|
|
177
|
-
style:
|
|
178
|
+
style: e({
|
|
178
179
|
backgroundColor: U.value === "pdf" ? "var(--tpl-bg)" : "transparent",
|
|
179
180
|
color: U.value === "pdf" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
180
181
|
boxShadow: U.value === "pdf" ? "var(--tpl-shadow)" : "none"
|
|
181
182
|
}),
|
|
182
|
-
onClick:
|
|
183
|
-
}, [
|
|
183
|
+
onClick: a[2] ||= (e) => X("pdf")
|
|
184
|
+
}, [u(f(b), {
|
|
184
185
|
size: 12,
|
|
185
186
|
"stroke-width": 2
|
|
186
|
-
}),
|
|
187
|
-
|
|
187
|
+
}), d(" " + i(f(B).designReference.uploadPdf), 1)], 4)]),
|
|
188
|
+
c("div", null, [W.value ? (r(), l("div", D, [c("div", O, [K.value ? (r(), l("img", {
|
|
188
189
|
key: 0,
|
|
189
190
|
src: K.value,
|
|
190
191
|
alt: W.value.name,
|
|
191
192
|
class: "tpl:h-auto tpl:max-h-48 tpl:w-full tpl:object-contain"
|
|
192
|
-
}, null, 8, k)) : (
|
|
193
|
+
}, null, 8, k)) : (r(), l("div", A, [u(f(b), {
|
|
193
194
|
size: 32,
|
|
194
195
|
"stroke-width": 1.5,
|
|
195
196
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
196
|
-
}),
|
|
197
|
+
}), c("span", j, i(W.value.name), 1)])), c("button", {
|
|
197
198
|
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)]",
|
|
198
199
|
onClick: Q
|
|
199
|
-
}, [
|
|
200
|
+
}, [u(f(v), {
|
|
200
201
|
size: 12,
|
|
201
202
|
"stroke-width": 2
|
|
202
|
-
})])])])) : (
|
|
203
|
+
})])])])) : (r(), l("div", {
|
|
203
204
|
key: 1,
|
|
204
205
|
class: "tpl-design-dropzone tpl:flex tpl:cursor-pointer tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border-2 tpl:border-dashed tpl:px-4 tpl:py-8 tpl:transition-colors tpl:duration-150",
|
|
205
|
-
style:
|
|
206
|
+
style: e({
|
|
206
207
|
borderColor: J.value ? "var(--tpl-primary)" : "var(--tpl-border-light)",
|
|
207
208
|
backgroundColor: J.value ? "var(--tpl-primary-light)" : "var(--tpl-bg)"
|
|
208
209
|
}),
|
|
209
|
-
onClick:
|
|
210
|
+
onClick: a[3] ||= (e) => H.value?.click(),
|
|
210
211
|
onDragover: Ce,
|
|
211
212
|
onDragleave: we,
|
|
212
213
|
onDrop: Te
|
|
213
214
|
}, [
|
|
214
|
-
|
|
215
|
+
u(f(_), {
|
|
215
216
|
size: 24,
|
|
216
217
|
"stroke-width": 1.5,
|
|
217
218
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
218
219
|
}),
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
], 36)),
|
|
220
|
+
c("span", M, i(f(B).designReference.dropHint), 1),
|
|
221
|
+
c("span", N, i(U.value === "image" ? f(B).designReference.acceptedImages : f(B).designReference.acceptedPdf), 1)
|
|
222
|
+
], 36)), c("input", {
|
|
222
223
|
ref_key: "fileInput",
|
|
223
224
|
ref: H,
|
|
224
225
|
type: "file",
|
|
@@ -226,36 +227,36 @@ var fe = h("file-image", [
|
|
|
226
227
|
accept: U.value === "image" ? "image/png,image/jpeg,image/webp" : "application/pdf",
|
|
227
228
|
onChange: Se
|
|
228
229
|
}, null, 40, P)]),
|
|
229
|
-
|
|
230
|
-
"onUpdate:modelValue":
|
|
231
|
-
class:
|
|
232
|
-
placeholder:
|
|
230
|
+
c("div", F, [c("label", I, i(f(B).designReference.promptLabel), 1), re(c("textarea", {
|
|
231
|
+
"onUpdate:modelValue": a[4] ||= (e) => G.value = e,
|
|
232
|
+
class: t(["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"]]),
|
|
233
|
+
placeholder: f(B).designReference.promptPlaceholder,
|
|
233
234
|
rows: "3"
|
|
234
|
-
}, null, 8, L), [[
|
|
235
|
-
q.value ? (
|
|
235
|
+
}, null, 8, L), [[ie, G.value]])]),
|
|
236
|
+
q.value ? (r(), l("div", R, [c("p", ge, i(f(B).designReference.replaceWarning), 1), c("div", _e, [c("button", {
|
|
236
237
|
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)]",
|
|
237
238
|
style: { "background-color": "transparent" },
|
|
238
239
|
onClick: Ee
|
|
239
|
-
}, f(
|
|
240
|
+
}, i(f(B).designReference.replaceCancel), 1), c("button", {
|
|
240
241
|
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)]",
|
|
241
242
|
onClick: $
|
|
242
|
-
}, f(
|
|
243
|
-
|
|
243
|
+
}, i(f(B).designReference.replaceConfirm), 1)])])) : p("", !0),
|
|
244
|
+
f(V).error.value ? (r(), l("div", ve, [u(f(ce), {
|
|
244
245
|
size: 14,
|
|
245
246
|
"stroke-width": 2,
|
|
246
247
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
247
|
-
}),
|
|
248
|
-
q.value ?
|
|
248
|
+
}), c("span", null, i(f(B).designReference.error), 1)])) : p("", !0),
|
|
249
|
+
q.value ? p("", !0) : (r(), l("button", {
|
|
249
250
|
key: 2,
|
|
250
251
|
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)]",
|
|
251
252
|
disabled: !Y.value,
|
|
252
253
|
onClick: $
|
|
253
|
-
}, [
|
|
254
|
+
}, [u(f(g), {
|
|
254
255
|
size: 16,
|
|
255
256
|
"stroke-width": 2
|
|
256
|
-
}),
|
|
257
|
-
|
|
258
|
-
]))])])) :
|
|
257
|
+
}), d(" " + i(f(B).designReference.generate), 1)], 8, ye)),
|
|
258
|
+
c("p", be, i(f(B).aiMenu.disclaimer), 1)
|
|
259
|
+
]))])])) : p("", !0)]),
|
|
259
260
|
_: 1
|
|
260
261
|
}));
|
|
261
262
|
}
|