@templatical/editor 0.6.4 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AccessibilityPanel-CvQGLdu6.js → AccessibilityPanel-B2MT0M58.js} +34 -34
- package/dist/{AiChatSidebar-B3SJIKG_.js → AiChatSidebar-w5ek3Z76.js} +62 -62
- package/dist/{AiFeatureMenu-BLLKoOos.js → AiFeatureMenu-ChlAWywJ.js} +20 -20
- package/dist/{BlockA11yBadge-CXDLqkcJ.js → BlockA11yBadge-C0S6kPC4.js} +12 -12
- package/dist/{CloudEditor-nzrRhHIi.js → CloudEditor-DYYaScFe.js} +441 -441
- package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-Bo8vtPId.js} +20 -20
- package/dist/CommentsSidebar-BQROg36f.js +441 -0
- package/dist/{cdn/chunks/CountdownBlock-5YdT1uUu.js → CountdownBlock-Bxqe7zwL.js} +21 -22
- package/dist/CountdownToolbar-CpFAnjSo.js +210 -0
- package/dist/{DesignReferenceSidebar-B8V_F2yF.js → DesignReferenceSidebar-CfqpcWX6.js} +52 -52
- package/dist/{LoadingTrack-B0CWFHXQ.js → LoadingTrack-CFkDkjBb.js} +1 -1
- package/dist/{ModuleBrowserModal-DrUFMTDx.js → ModuleBrowserModal-CKhsaPnA.js} +79 -79
- package/dist/{ModulePreviewCanvas-CHdOwV_4.js → ModulePreviewCanvas-Cw9GeGus.js} +29 -29
- package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-Dw8dN1Pt.js} +88 -88
- package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-DjDiUzmv.js} +218 -218
- package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-CK3Om7ES.js} +38 -38
- package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-CSUPmfRP.js} +34 -34
- package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-DwX2fj6N.js} +33 -33
- package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-BIAeCAEP.js} +82 -82
- package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-CIlBvWWn.js} +30 -30
- package/dist/{TitleEditor-fStSADI-.js → TitleEditor-BCV5k6wj.js} +67 -67
- package/dist/{TplModal-BwSfxIHf.js → TplModal-C3Hq9b58.js} +14 -14
- package/dist/{accessibility-e8JYu_zd.js → accessibility-BgUEA-Ai.js} +1 -1
- package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-iUurP50H.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js → AccessibilityPanel-AQD2ygU6.js} +34 -34
- package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js.map → AccessibilityPanel-AQD2ygU6.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js → AiFeatureMenu-CDh9ifC8.js} +16 -16
- package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js.map → AiFeatureMenu-CDh9ifC8.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js → BlockA11yBadge-BxZr3s7T.js} +10 -10
- package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js.map → BlockA11yBadge-BxZr3s7T.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-dwzWDF_n.js → CloudEditor-Fg7pQ9IQ.js} +425 -425
- package/dist/cdn/chunks/{CloudEditor-dwzWDF_n.js.map → CloudEditor-Fg7pQ9IQ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js → CollaboratorBar-B5a8eBXN.js} +20 -20
- package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js.map → CollaboratorBar-B5a8eBXN.js.map} +1 -1
- package/dist/cdn/chunks/CountdownBlock-BeHkO19t.js +93 -0
- package/dist/cdn/chunks/{CountdownBlock-5YdT1uUu.js.map → CountdownBlock-BeHkO19t.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-8UfW0jb1.js +212 -0
- package/dist/cdn/chunks/{CountdownToolbar-DXPXrbAA.js.map → CountdownToolbar-8UfW0jb1.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js → ModuleBrowserModal-BMUyAmmj.js} +43 -43
- package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js.map → ModuleBrowserModal-BMUyAmmj.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js → ModulePreviewCanvas-CxSc7Pvd.js} +23 -23
- package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js.map → ModulePreviewCanvas-CxSc7Pvd.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js → NumberWithSuffix-BSOUOUCL.js} +108 -108
- package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js.map → NumberWithSuffix-BSOUOUCL.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js → ParagraphEditor-S1bpgxe5.js} +187 -187
- package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js.map → ParagraphEditor-S1bpgxe5.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js → RichTextEditorContent-ByehRfEA.js} +33 -33
- package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js.map → RichTextEditorContent-ByehRfEA.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js → SaveModuleDialog-5CNMvgYL.js} +27 -27
- package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js.map → SaveModuleDialog-5CNMvgYL.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js → TitleEditor-BASWPsCM.js} +66 -66
- package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js.map → TitleEditor-BASWPsCM.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js → blockTypeIcons-DfOffaYP.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js.map → blockTypeIcons-DfOffaYP.js.map} +1 -1
- package/dist/cdn/chunks/draggable-CNhyCGIO.js +4804 -0
- package/dist/cdn/chunks/draggable-CNhyCGIO.js.map +1 -0
- package/dist/cdn/chunks/{extensions-DIxF31tA.js → extensions-BJOV1jre.js} +95 -95
- package/dist/cdn/chunks/{extensions-DIxF31tA.js.map → extensions-BJOV1jre.js.map} +1 -1
- package/dist/cdn/chunks/{features-DEMb13KS.js → features-D6FoOm8v.js} +2272 -2269
- package/dist/cdn/chunks/features-D6FoOm8v.js.map +1 -0
- package/dist/cdn/chunks/{icons-CsLTcirh.js → icons-CpsjWPU-.js} +2 -2
- package/dist/cdn/chunks/{icons-CsLTcirh.js.map → icons-CpsjWPU-.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-CVaNvhpM.js → media-library-CEd7Lqxk.js} +1397 -1397
- package/dist/cdn/chunks/{media-library-CVaNvhpM.js.map → media-library-CEd7Lqxk.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-CDbNlZBE.js → pusher-bjpcqCZG.js} +2 -2
- package/dist/cdn/chunks/{pusher-CDbNlZBE.js.map → pusher-bjpcqCZG.js.map} +1 -1
- package/dist/cdn/chunks/{quality-BaBfc54_.js → quality-Bx1oORXQ.js} +3 -3
- package/dist/cdn/chunks/{quality-BaBfc54_.js.map → quality-Bx1oORXQ.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CUxvx7ro.js → renderer-CwxCisa-.js} +3 -3
- package/dist/cdn/chunks/{renderer-CUxvx7ro.js.map → renderer-CwxCisa-.js.map} +1 -1
- package/dist/{rolldown-runtime-BZGGJVDF.js → cdn/chunks/rolldown-runtime-C266TIVP.js} +5 -5
- package/dist/cdn/chunks/{src-CRaqN-p8.js → src-DDSInEkE.js} +171 -171
- package/dist/cdn/chunks/{src-CRaqN-p8.js.map → src-DDSInEkE.js.map} +1 -1
- package/dist/cdn/chunks/styles-B1uu-Cc9.js +2944 -0
- package/dist/cdn/chunks/styles-B1uu-Cc9.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js → tiptap-IyIsncxY.js} +45 -46
- package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js.map → tiptap-IyIsncxY.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +122 -122
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-Da05j8yl.js → check-Bg5yrRmX.js} +1 -1
- package/dist/{chevron-down-R2uY34iD.js → chevron-down-tee-ghFi.js} +1 -1
- package/dist/{circle-alert-DZuGWPX-.js → circle-alert-C0L9pUQ4.js} +1 -1
- package/dist/{clock-CRp2sIub.js → clock-CDlEdqiP.js} +1 -1
- package/dist/{cloud-DEk_b4CR.js → cloud-a3VovHva.js} +145 -145
- package/dist/{createLucideIcon-C3pa2siy.js → createLucideIcon-Di4mqmGn.js} +9 -9
- package/dist/{dist-B1IR0bpH.js → dist-BzRLLpfq.js} +107 -107
- package/dist/{dist-BFawx6IS.js → dist-Pk4MhWMP.js} +35 -35
- package/dist/{extensions-CUcl9Ok4.js → extensions-BF39Siqk.js} +103 -103
- package/dist/{image-up-MBZKKg9p.js → image-up-1D_3XDdO.js} +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/{info-CJEC7piy.js → info-DTGrc0Bx.js} +1 -1
- package/dist/{keys-ciNfSSGj.js → keys-Bqs_0du9.js} +1 -1
- package/dist/{loader-circle-DsY5Yg33.js → loader-circle-_9bP23op.js} +1 -1
- package/dist/{message-circle-yElBbR2C.js → message-circle-gzy2ZGJ3.js} +1 -1
- package/dist/{refresh-cw-CE_AGtn8.js → refresh-cw-BNAhAmtL.js} +1 -1
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/{scan-line-D0vcUekt.js → scan-line-DUEg6DoT.js} +1 -1
- package/dist/{send-DH4oDQqC.js → send-BatIZC9a.js} +1 -1
- package/dist/{shield-check-CfJgs2Hd.js → shield-check-C5Gv2cM1.js} +1 -1
- package/dist/{sparkles-CvRXGqFs.js → sparkles-D1IGi_cC.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styles-BgmKdc2x.js +3173 -0
- package/dist/templatical-editor.js +99 -99
- package/dist/{text-align-start-BT9VUDxK.js → text-align-start-DG3aAH7Y.js} +1 -1
- package/dist/{trash-2-DbP2Y6t2.js → trash-2-424iqbpN.js} +1 -1
- package/dist/{triangle-alert-aOXceTSe.js → triangle-alert-DWQySIE2.js} +1 -1
- package/dist/{useCloudI18n-BuIwR6OE.js → useCloudI18n-CL_AwWwi.js} +4 -4
- package/dist/useEditorCore-CnXrv71D.js +3794 -0
- package/dist/{useI18n-lb2DHDiu.js → useI18n-CgmQftNf.js} +4 -4
- package/dist/{useMergeTag-CBwKnnNB.js → useMergeTag-vpwrZ9eQ.js} +3 -3
- package/dist/vue.runtime.esm-bundler-Bxqkjqhc.js +4300 -0
- package/dist/{x-u2oVmjN_.js → x-Dlaenqta.js} +1 -1
- package/package.json +8 -8
- package/dist/CommentsSidebar-B1pvJdqF.js +0 -441
- package/dist/CountdownBlock-BNSj1jvJ.js +0 -92
- package/dist/CountdownToolbar-ClJr2GzL.js +0 -210
- package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +0 -212
- package/dist/cdn/chunks/draggable-Bcb86AsV.js +0 -11572
- package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +0 -1
- package/dist/cdn/chunks/features-DEMb13KS.js.map +0 -1
- package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +0 -20
- package/dist/cdn/chunks/styles-BHJULjNR.js +0 -2947
- package/dist/cdn/chunks/styles-BHJULjNR.js.map +0 -1
- package/dist/styles-DEXEkBvg.js +0 -3176
- package/dist/useEditorCore-C6ost42Q.js +0 -9342
- package/dist/vue.runtime.esm-bundler-DpvJL-nX.js +0 -5775
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { A as e, M as t, _ as n, at as r, b as i, d as a, f as o, h as s, l as c, p as l, rt as u, st as d, v as f, z as p } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
+
import { t as m } from "./useI18n-CgmQftNf.js";
|
|
3
|
+
import { f as h } from "./styleConstants-fWzlIIwN.js";
|
|
4
|
+
import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-Dw8dN1Pt.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__ */ i({
|
|
7
|
+
__name: "CheckboxItem",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { type: Boolean },
|
|
10
|
+
label: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(t, { emit: r }) {
|
|
14
|
+
let i = r;
|
|
15
|
+
return (r, a) => (e(), s("label", b, [o("input", {
|
|
16
|
+
type: "checkbox",
|
|
17
|
+
class: "tpl:size-3.5 tpl:cursor-pointer tpl:accent-[var(--tpl-primary)]",
|
|
18
|
+
checked: t.modelValue,
|
|
19
|
+
onChange: a[0] ||= (e) => i("update:modelValue", e.target.checked)
|
|
20
|
+
}, null, 40, x), n(" " + d(t.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__ */ i({
|
|
27
|
+
__name: "CountdownToolbar",
|
|
28
|
+
props: {
|
|
29
|
+
block: {},
|
|
30
|
+
fontFamilies: {}
|
|
31
|
+
},
|
|
32
|
+
emits: ["update"],
|
|
33
|
+
setup(n, { emit: i }) {
|
|
34
|
+
let b = i, { 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 = a(() => 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 (i, a) => (e(), s(c, null, [
|
|
78
|
+
f(_, { label: u(x).countdown.targetDate }, {
|
|
79
|
+
default: p(() => [o("input", {
|
|
80
|
+
type: "datetime-local",
|
|
81
|
+
class: r(u(h)),
|
|
82
|
+
value: n.block.targetDate,
|
|
83
|
+
onInput: a[0] ||= (e) => B("targetDate", e.target.value)
|
|
84
|
+
}, null, 42, C)]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 8, ["label"]),
|
|
87
|
+
f(_, { label: u(x).countdown.timezone }, {
|
|
88
|
+
default: p(() => [o("select", {
|
|
89
|
+
class: r(u(h)),
|
|
90
|
+
value: n.block.timezone,
|
|
91
|
+
onChange: a[1] ||= (e) => B("timezone", e.target.value)
|
|
92
|
+
}, [(e(), s(c, null, t(I, (e) => o("option", {
|
|
93
|
+
key: e,
|
|
94
|
+
value: e
|
|
95
|
+
}, d(e), 9, T)), 64))], 42, w)]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 8, ["label"]),
|
|
98
|
+
f(_, { label: u(x).countdown.display }, {
|
|
99
|
+
default: p(() => [o("div", E, [(e(!0), s(c, null, t(z.value, (t) => (e(), l(S, {
|
|
100
|
+
key: t.unit,
|
|
101
|
+
"model-value": n.block[t.showKey],
|
|
102
|
+
label: u(x).countdown[t.translationKey],
|
|
103
|
+
"onUpdate:modelValue": (e) => B(t.showKey, e)
|
|
104
|
+
}, null, 8, [
|
|
105
|
+
"model-value",
|
|
106
|
+
"label",
|
|
107
|
+
"onUpdate:modelValue"
|
|
108
|
+
]))), 128))])]),
|
|
109
|
+
_: 1
|
|
110
|
+
}, 8, ["label"]),
|
|
111
|
+
f(_, { label: u(x).countdown.separator }, {
|
|
112
|
+
default: p(() => [f(v, {
|
|
113
|
+
options: L,
|
|
114
|
+
"model-value": n.block.separator,
|
|
115
|
+
"onUpdate:modelValue": a[2] ||= (e) => B("separator", e)
|
|
116
|
+
}, null, 8, ["model-value"])]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 8, ["label"]),
|
|
119
|
+
f(_, { label: u(x).countdown.fontFamily }, {
|
|
120
|
+
default: p(() => [o("select", {
|
|
121
|
+
class: r(u(h)),
|
|
122
|
+
value: n.block.fontFamily || "",
|
|
123
|
+
onChange: a[3] ||= (e) => B("fontFamily", e.target.value || void 0)
|
|
124
|
+
}, [o("option", O, d(u(x).countdown.inheritFont), 1), (e(!0), s(c, null, t(n.fontFamilies, (t) => (e(), s("option", {
|
|
125
|
+
key: t.value,
|
|
126
|
+
value: t.value
|
|
127
|
+
}, d(t.label), 9, k))), 128))], 42, D)]),
|
|
128
|
+
_: 1
|
|
129
|
+
}, 8, ["label"]),
|
|
130
|
+
o("div", A, [f(_, { label: u(x).countdown.digitFontSize }, {
|
|
131
|
+
default: p(() => [f(y, {
|
|
132
|
+
"model-value": n.block.digitFontSize,
|
|
133
|
+
min: 12,
|
|
134
|
+
max: 72,
|
|
135
|
+
suffix: "px",
|
|
136
|
+
"onUpdate:modelValue": a[4] ||= (e) => B("digitFontSize", e)
|
|
137
|
+
}, null, 8, ["model-value"])]),
|
|
138
|
+
_: 1
|
|
139
|
+
}, 8, ["label"]), f(_, { label: u(x).countdown.labelFontSize }, {
|
|
140
|
+
default: p(() => [f(y, {
|
|
141
|
+
"model-value": n.block.labelFontSize,
|
|
142
|
+
min: 8,
|
|
143
|
+
max: 24,
|
|
144
|
+
suffix: "px",
|
|
145
|
+
"onUpdate:modelValue": a[5] ||= (e) => B("labelFontSize", e)
|
|
146
|
+
}, null, 8, ["model-value"])]),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 8, ["label"])]),
|
|
149
|
+
o("div", j, [f(_, { label: u(x).countdown.digitColor }, {
|
|
150
|
+
default: p(() => [f(g, {
|
|
151
|
+
"model-value": n.block.digitColor,
|
|
152
|
+
"onUpdate:modelValue": a[6] ||= (e) => B("digitColor", e)
|
|
153
|
+
}, null, 8, ["model-value"])]),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 8, ["label"]), f(_, { label: u(x).countdown.labelColor }, {
|
|
156
|
+
default: p(() => [f(g, {
|
|
157
|
+
"model-value": n.block.labelColor,
|
|
158
|
+
"onUpdate:modelValue": a[7] ||= (e) => B("labelColor", e)
|
|
159
|
+
}, null, 8, ["model-value"])]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["label"])]),
|
|
162
|
+
f(_, { label: u(x).countdown.background }, {
|
|
163
|
+
default: p(() => [f(g, {
|
|
164
|
+
"model-value": n.block.backgroundColor,
|
|
165
|
+
"onUpdate:modelValue": a[8] ||= (e) => B("backgroundColor", e)
|
|
166
|
+
}, null, 8, ["model-value"])]),
|
|
167
|
+
_: 1
|
|
168
|
+
}, 8, ["label"]),
|
|
169
|
+
f(_, { label: u(x).countdown.labels }, {
|
|
170
|
+
default: p(() => [o("div", M, [(e(!0), s(c, null, t(z.value, (t) => (e(), s("input", {
|
|
171
|
+
key: t.unit,
|
|
172
|
+
type: "text",
|
|
173
|
+
class: r(u(h)),
|
|
174
|
+
value: n.block[t.labelKey],
|
|
175
|
+
placeholder: u(x).countdown[t.translationKey],
|
|
176
|
+
onInput: (e) => B(t.labelKey, e.target.value)
|
|
177
|
+
}, null, 42, N))), 128))])]),
|
|
178
|
+
_: 1
|
|
179
|
+
}, 8, ["label"]),
|
|
180
|
+
f(_, { label: u(x).countdown.expiry }, {
|
|
181
|
+
default: p(() => [o("input", {
|
|
182
|
+
type: "text",
|
|
183
|
+
class: r(u(h)),
|
|
184
|
+
value: n.block.expiredMessage,
|
|
185
|
+
placeholder: u(x).countdown.expiredMessagePlaceholder,
|
|
186
|
+
onInput: a[9] ||= (e) => B("expiredMessage", e.target.value)
|
|
187
|
+
}, null, 42, P)]),
|
|
188
|
+
_: 1
|
|
189
|
+
}, 8, ["label"]),
|
|
190
|
+
f(_, { label: u(x).countdown.expiredImageUrl }, {
|
|
191
|
+
default: p(() => [o("input", {
|
|
192
|
+
type: "url",
|
|
193
|
+
class: r(u(h)),
|
|
194
|
+
value: n.block.expiredImageUrl,
|
|
195
|
+
placeholder: "https://...",
|
|
196
|
+
onInput: a[10] ||= (e) => B("expiredImageUrl", e.target.value)
|
|
197
|
+
}, null, 42, F)]),
|
|
198
|
+
_: 1
|
|
199
|
+
}, 8, ["label"]),
|
|
200
|
+
f(S, {
|
|
201
|
+
"model-value": n.block.hideOnExpiry,
|
|
202
|
+
label: u(x).countdown.hideOnExpiry,
|
|
203
|
+
class: "tpl:mb-3.5",
|
|
204
|
+
"onUpdate:modelValue": a[11] ||= (e) => B("hideOnExpiry", e)
|
|
205
|
+
}, null, 8, ["model-value", "label"])
|
|
206
|
+
], 64));
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
//#endregion
|
|
210
|
+
export { I as default };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, B as t, D as n, L as r, X as i, _ as a, a as ee, at as te, b as o, d as ne, f as s, h as c, m as l, ot as u, p as re, rt as d, st as f, t as ie, v as p, z as ae } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
2
|
import "./timeouts-BSGxjuUF.js";
|
|
3
|
-
import { O as m, i as oe, m as h } from "./keys-
|
|
4
|
-
import { t as g } from "./createLucideIcon-
|
|
5
|
-
import { t as se } from "./circle-alert-
|
|
6
|
-
import { t as _ } from "./image-up-
|
|
7
|
-
import { t as v } from "./x-
|
|
8
|
-
import { t as ce } from "./LoadingTrack-
|
|
3
|
+
import { O as m, i as oe, m as h } from "./keys-Bqs_0du9.js";
|
|
4
|
+
import { t as g } from "./createLucideIcon-Di4mqmGn.js";
|
|
5
|
+
import { t as se } from "./circle-alert-C0L9pUQ4.js";
|
|
6
|
+
import { t as _ } from "./image-up-1D_3XDdO.js";
|
|
7
|
+
import { t as v } from "./x-Dlaenqta.js";
|
|
8
|
+
import { t as ce } from "./LoadingTrack-CFkDkjBb.js";
|
|
9
9
|
import { t as y } from "./_plugin-vue_export-helper-B0hnzhyu.js";
|
|
10
|
-
import { n as le } from "./useCloudI18n-
|
|
11
|
-
import { u as ue } from "./cloud-
|
|
10
|
+
import { n as le } from "./useCloudI18n-CL_AwWwi.js";
|
|
11
|
+
import { u as ue } from "./cloud-a3VovHva.js";
|
|
12
12
|
var de = g("file-image", [
|
|
13
13
|
["path", {
|
|
14
14
|
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",
|
|
@@ -95,7 +95,7 @@ var de = g("file-image", [
|
|
|
95
95
|
authManager: m(oe, "DesignReferenceSidebar"),
|
|
96
96
|
getTemplateId: () => xe.state.template?.id ?? null,
|
|
97
97
|
onApply: (e) => z("apply", e)
|
|
98
|
-
}), H =
|
|
98
|
+
}), H = i(null), U = i("image"), W = i(null), G = i(""), K = i(null), q = i(!1), J = i(!1), Y = ne(() => V.isGenerating.value ? !1 : W.value !== null);
|
|
99
99
|
function X(e) {
|
|
100
100
|
U.value = e, Q();
|
|
101
101
|
}
|
|
@@ -151,11 +151,11 @@ var de = g("file-image", [
|
|
|
151
151
|
function Ee() {
|
|
152
152
|
q.value = !1;
|
|
153
153
|
}
|
|
154
|
-
return
|
|
154
|
+
return r(() => y.visible, (e) => {
|
|
155
155
|
e || (q.value = !1);
|
|
156
|
-
}),
|
|
156
|
+
}), n(() => {
|
|
157
157
|
K.value &&= (URL.revokeObjectURL(K.value), null);
|
|
158
|
-
}), (
|
|
158
|
+
}), (n, r) => (e(), re(ie, {
|
|
159
159
|
"enter-active-class": "tpl-design-slide-enter-active",
|
|
160
160
|
"enter-from-class": "tpl:translate-x-full",
|
|
161
161
|
"enter-to-class": "tpl:translate-x-0",
|
|
@@ -163,74 +163,74 @@ var de = g("file-image", [
|
|
|
163
163
|
"leave-from-class": "tpl:translate-x-0",
|
|
164
164
|
"leave-to-class": "tpl:translate-x-full"
|
|
165
165
|
}, {
|
|
166
|
-
default:
|
|
166
|
+
default: ae(() => [o.visible ? (e(), c("div", pe, [s("div", me, [s("div", he, [p(d(_), {
|
|
167
167
|
size: 13,
|
|
168
168
|
"stroke-width": 2
|
|
169
|
-
}),
|
|
169
|
+
}), s("span", null, f(d(B).designReference.title), 1)]), s("button", {
|
|
170
170
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
171
|
-
onClick:
|
|
172
|
-
}, [
|
|
171
|
+
onClick: r[0] ||= (e) => z("close")
|
|
172
|
+
}, [p(d(v), {
|
|
173
173
|
size: 14,
|
|
174
174
|
"stroke-width": 2
|
|
175
|
-
})])]),
|
|
176
|
-
|
|
175
|
+
})])]), s("div", x, [d(V).isGenerating.value ? (e(), c("div", S, [s("div", C, [p(ce), s("p", w, f(d(B).designReference.generating), 1)])])) : (e(), c("div", T, [
|
|
176
|
+
s("div", E, [s("button", {
|
|
177
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",
|
|
178
|
-
style:
|
|
178
|
+
style: u({
|
|
179
179
|
backgroundColor: U.value === "image" ? "var(--tpl-bg)" : "transparent",
|
|
180
180
|
color: U.value === "image" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
181
181
|
boxShadow: U.value === "image" ? "var(--tpl-shadow)" : "none"
|
|
182
182
|
}),
|
|
183
|
-
onClick:
|
|
184
|
-
}, [
|
|
183
|
+
onClick: r[1] ||= (e) => X("image")
|
|
184
|
+
}, [p(d(de), {
|
|
185
185
|
size: 12,
|
|
186
186
|
"stroke-width": 2
|
|
187
|
-
}),
|
|
187
|
+
}), a(" " + f(d(B).designReference.uploadImage), 1)], 4), s("button", {
|
|
188
188
|
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",
|
|
189
|
-
style:
|
|
189
|
+
style: u({
|
|
190
190
|
backgroundColor: U.value === "pdf" ? "var(--tpl-bg)" : "transparent",
|
|
191
191
|
color: U.value === "pdf" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
192
192
|
boxShadow: U.value === "pdf" ? "var(--tpl-shadow)" : "none"
|
|
193
193
|
}),
|
|
194
|
-
onClick:
|
|
195
|
-
}, [
|
|
194
|
+
onClick: r[2] ||= (e) => X("pdf")
|
|
195
|
+
}, [p(d(b), {
|
|
196
196
|
size: 12,
|
|
197
197
|
"stroke-width": 2
|
|
198
|
-
}),
|
|
199
|
-
|
|
198
|
+
}), a(" " + f(d(B).designReference.uploadPdf), 1)], 4)]),
|
|
199
|
+
s("div", null, [W.value ? (e(), c("div", D, [s("div", O, [K.value ? (e(), c("img", {
|
|
200
200
|
key: 0,
|
|
201
201
|
src: K.value,
|
|
202
202
|
alt: W.value.name,
|
|
203
203
|
class: "tpl:h-auto tpl:max-h-48 tpl:w-full tpl:object-contain"
|
|
204
|
-
}, null, 8, k)) : (
|
|
204
|
+
}, null, 8, k)) : (e(), c("div", A, [p(d(b), {
|
|
205
205
|
size: 32,
|
|
206
206
|
"stroke-width": 1.5,
|
|
207
207
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
208
|
-
}),
|
|
208
|
+
}), s("span", j, f(W.value.name), 1)])), s("button", {
|
|
209
209
|
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)]",
|
|
210
210
|
onClick: Q
|
|
211
|
-
}, [
|
|
211
|
+
}, [p(d(v), {
|
|
212
212
|
size: 12,
|
|
213
213
|
"stroke-width": 2
|
|
214
|
-
})])])])) : (
|
|
214
|
+
})])])])) : (e(), c("div", {
|
|
215
215
|
key: 1,
|
|
216
216
|
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",
|
|
217
|
-
style:
|
|
217
|
+
style: u({
|
|
218
218
|
borderColor: J.value ? "var(--tpl-primary)" : "var(--tpl-border-light)",
|
|
219
219
|
backgroundColor: J.value ? "var(--tpl-primary-light)" : "var(--tpl-bg)"
|
|
220
220
|
}),
|
|
221
|
-
onClick:
|
|
221
|
+
onClick: r[3] ||= (e) => H.value?.click(),
|
|
222
222
|
onDragover: Ce,
|
|
223
223
|
onDragleave: we,
|
|
224
224
|
onDrop: Te
|
|
225
225
|
}, [
|
|
226
|
-
|
|
226
|
+
p(d(fe), {
|
|
227
227
|
size: 24,
|
|
228
228
|
"stroke-width": 1.5,
|
|
229
229
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
230
230
|
}),
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
], 36)),
|
|
231
|
+
s("span", M, f(d(B).designReference.dropHint), 1),
|
|
232
|
+
s("span", N, f(U.value === "image" ? d(B).designReference.acceptedImages : d(B).designReference.acceptedPdf), 1)
|
|
233
|
+
], 36)), s("input", {
|
|
234
234
|
ref_key: "fileInput",
|
|
235
235
|
ref: H,
|
|
236
236
|
type: "file",
|
|
@@ -238,35 +238,35 @@ var de = g("file-image", [
|
|
|
238
238
|
accept: U.value === "image" ? "image/png,image/jpeg,image/webp" : "application/pdf",
|
|
239
239
|
onChange: Se
|
|
240
240
|
}, null, 40, P)]),
|
|
241
|
-
|
|
242
|
-
"onUpdate:modelValue":
|
|
243
|
-
class:
|
|
244
|
-
placeholder:
|
|
241
|
+
s("div", F, [s("label", I, f(d(B).designReference.promptLabel), 1), t(s("textarea", {
|
|
242
|
+
"onUpdate:modelValue": r[4] ||= (e) => G.value = e,
|
|
243
|
+
class: te(["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"]]),
|
|
244
|
+
placeholder: d(B).designReference.promptPlaceholder,
|
|
245
245
|
rows: "3"
|
|
246
|
-
}, null, 8, L), [[
|
|
247
|
-
q.value ? (
|
|
246
|
+
}, null, 8, L), [[ee, G.value]])]),
|
|
247
|
+
q.value ? (e(), c("div", R, [s("p", ge, f(d(B).designReference.replaceWarning), 1), s("div", _e, [s("button", {
|
|
248
248
|
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)]",
|
|
249
249
|
style: { "background-color": "transparent" },
|
|
250
250
|
onClick: Ee
|
|
251
|
-
},
|
|
251
|
+
}, f(d(B).designReference.replaceCancel), 1), s("button", {
|
|
252
252
|
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)]",
|
|
253
253
|
onClick: $
|
|
254
|
-
},
|
|
255
|
-
|
|
254
|
+
}, f(d(B).designReference.replaceConfirm), 1)])])) : l("", !0),
|
|
255
|
+
d(V).error.value ? (e(), c("div", ve, [p(d(se), {
|
|
256
256
|
size: 14,
|
|
257
257
|
"stroke-width": 2,
|
|
258
258
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
259
|
-
}),
|
|
260
|
-
q.value ? l("", !0) : (
|
|
259
|
+
}), s("span", null, f(d(B).designReference.error), 1)])) : l("", !0),
|
|
260
|
+
q.value ? l("", !0) : (e(), c("button", {
|
|
261
261
|
key: 2,
|
|
262
262
|
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)]",
|
|
263
263
|
disabled: !Y.value,
|
|
264
264
|
onClick: $
|
|
265
|
-
}, [
|
|
265
|
+
}, [p(d(_), {
|
|
266
266
|
size: 16,
|
|
267
267
|
"stroke-width": 2
|
|
268
|
-
}),
|
|
269
|
-
|
|
268
|
+
}), a(" " + f(d(B).designReference.generate), 1)], 8, ye)),
|
|
269
|
+
s("p", be, f(d(B).aiMenu.disclaimer), 1)
|
|
270
270
|
]))])])) : l("", !0)]),
|
|
271
271
|
_: 1
|
|
272
272
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, h as t } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
2
|
import { t as n } from "./_plugin-vue_export-helper-B0hnzhyu.js";
|
|
3
3
|
//#region src/components/LoadingTrack.vue
|
|
4
4
|
var r = {}, i = { class: "tpl-loading-track" };
|