@socialgen_user/socialgen 2.5.1 → 2.6.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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/-qGtRcp1.js +55 -0
- package/.output/public/_nuxt/{DF2JzMIr.js → BeHrGX06.js} +4 -4
- package/.output/public/_nuxt/Bx_4f2Ey.js +128 -0
- package/.output/public/_nuxt/{DFkoTwsH.js → C6sfPUyS.js} +1 -1
- package/.output/public/_nuxt/{BWTcUa3O.js → CfCES4pU.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/cb051a05-4d96-400f-908d-ce12561883cd.json +1 -0
- package/.output/public/_nuxt/{BwBAVlrf.js → lNTwsIHu.js} +1 -1
- package/.output/public/_nuxt/{BmiTz0Bj.js → nbOVMk7_.js} +1 -1
- package/.output/public/_nuxt/{pages.CurYQ93c.css → pages.DIMOTVGA.css} +1 -1
- package/.output/server/chunks/_/content.mjs +10 -0
- package/.output/server/chunks/_/content.mjs.map +1 -1
- package/.output/server/chunks/_/nitro.mjs +119 -119
- package/.output/server/chunks/_/templates.mjs.map +1 -1
- package/.output/server/chunks/build/LivePreview-styles.CNmUJrmb.mjs +8 -0
- package/.output/server/chunks/build/LivePreview-styles.CNmUJrmb.mjs.map +1 -0
- package/.output/server/chunks/build/{TableCard-J91PndXn.mjs → TableCard-CM2Gw7wR.mjs} +165 -36
- package/.output/server/chunks/build/TableCard-CM2Gw7wR.mjs.map +1 -0
- package/.output/server/chunks/build/{_mode_-BzB4uUM9.mjs → _mode_-Ddaj-NiO.mjs} +2 -2
- package/.output/server/chunks/build/{_mode_-BzB4uUM9.mjs.map → _mode_-Ddaj-NiO.mjs.map} +1 -1
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/entry-styles.DMrkT6oD.mjs +8 -0
- package/.output/server/chunks/build/entry-styles.DMrkT6oD.mjs.map +1 -0
- package/.output/server/chunks/build/index-styles-1.mjs-BPqnNiR_.mjs +4 -0
- package/.output/server/chunks/build/index-styles-1.mjs-BPqnNiR_.mjs.map +1 -0
- package/.output/server/chunks/build/{index-styles.CThHhoy-.mjs → index-styles.D6Stv-gv.mjs} +5 -5
- package/.output/server/chunks/build/index-styles.D6Stv-gv.mjs.map +1 -0
- package/.output/server/chunks/build/{pages-BB0Bky-X.mjs → pages-gpRRlAUy.mjs} +140 -60
- package/.output/server/chunks/build/pages-gpRRlAUy.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +2 -2
- package/.output/server/chunks/build/styles.mjs +5 -5
- package/.output/server/chunks/build/styles.mjs.map +1 -1
- package/.output/server/chunks/routes/api/templates.post.mjs +1 -0
- package/.output/server/chunks/routes/api/templates.post.mjs.map +1 -1
- package/.output/server/package.json +1 -1
- package/data/templates.json +172 -15
- package/package.json +1 -1
- package/.output/public/_nuxt/4OV7a3GF.js +0 -54
- package/.output/public/_nuxt/DqCMQ7mU.js +0 -111
- package/.output/public/_nuxt/builds/meta/5a2b79fd-fbdb-482c-97eb-c377dcd65f19.json +0 -1
- package/.output/server/chunks/build/LivePreview-styles.BAXzj6mF.mjs +0 -8
- package/.output/server/chunks/build/LivePreview-styles.BAXzj6mF.mjs.map +0 -1
- package/.output/server/chunks/build/TableCard-J91PndXn.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles.DlYZJ_Pu.mjs +0 -8
- package/.output/server/chunks/build/entry-styles.DlYZJ_Pu.mjs.map +0 -1
- package/.output/server/chunks/build/index-styles-1.mjs-BYkUF4b0.mjs +0 -4
- package/.output/server/chunks/build/index-styles-1.mjs-BYkUF4b0.mjs.map +0 -1
- package/.output/server/chunks/build/index-styles.CThHhoy-.mjs.map +0 -1
- package/.output/server/chunks/build/pages-BB0Bky-X.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, computed, mergeProps, unref, isRef, reactive, nextTick, useSSRContext } from 'vue';
|
|
2
2
|
import { ssrRenderAttrs, ssrInterpolate, ssrRenderClass, ssrRenderComponent, ssrIncludeBooleanAttr, ssrRenderAttr, ssrLooseContain, ssrLooseEqual, ssrRenderList, ssrRenderStyle } from 'vue/server-renderer';
|
|
3
|
-
import { Settings, X, Check, Edit2, Trash2, FileText, Copy, LayoutTemplate, Plus, Code, AlertCircle, RefreshCw, Film, Upload, Music, Clock, Sparkles, Eye, Bookmark, Wand2, Layers, Globe, Sliders, RotateCcw, CheckCircle2, Scissors, Play, ZoomOut, ZoomIn, ShieldAlert,
|
|
4
|
-
import { _ as _sfc_main$3 } from './TableCard-
|
|
3
|
+
import { Settings, X, Check, Edit2, Trash2, FileText, Copy, LayoutTemplate, Plus, Code, AlertCircle, RefreshCw, Film, Upload, Music, Clock, Sparkles, Eye, Bookmark, Wand2, Layers, Globe, Sliders, RotateCcw, Type, ChevronDown, CheckCircle2, Scissors, Play, ZoomOut, ZoomIn, ShieldAlert, ChevronLeft, Search, MoreHorizontal, ThumbsUp, MessageCircle, Share2, TrendingUp, AtSign, Smile, Heart, Pause, Volume2, VolumeX } from 'lucide-vue-next';
|
|
4
|
+
import { r as resolveTemplateFontSlots, _ as _sfc_main$3 } from './TableCard-CM2Gw7wR.mjs';
|
|
5
5
|
import { _ as _export_sfc } from './server.mjs';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import '../_/nitro.mjs';
|
|
@@ -96,6 +96,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
96
96
|
layoutType: "custom",
|
|
97
97
|
customHtml: "",
|
|
98
98
|
customCss: "",
|
|
99
|
+
fontSlots: void 0,
|
|
99
100
|
promptDirective: "",
|
|
100
101
|
sampleJsonText: ""
|
|
101
102
|
});
|
|
@@ -112,8 +113,14 @@ Analisis tata letak visual, dekorasi, tipografi, palet warna HEX, bingkai, dan s
|
|
|
112
113
|
"category": "Kategori Template (misal: Edukasi, Finansial, Berita Viral, Ranking, Perbandingan)",
|
|
113
114
|
"description": "Deskripsi singkat 1-2 kalimat mengenai gaya visual dan kegunaan template ini.",
|
|
114
115
|
"layoutType": "custom",
|
|
116
|
+
"fontSlots": [
|
|
117
|
+
{ "id": "title", "label": "Judul Utama", "default": 56, "min": 38, "max": 76 },
|
|
118
|
+
{ "id": "subtitle", "label": "Subjudul", "default": 28, "min": 20, "max": 42 },
|
|
119
|
+
{ "id": "items", "label": "Poin Konten", "default": 26, "min": 20, "max": 38 },
|
|
120
|
+
{ "id": "source", "label": "Sumber Data", "default": 21, "min": 16, "max": 28 }
|
|
121
|
+
],
|
|
115
122
|
"customHtml": "<div class=\\"my-container\\">\\n <!-- Header / Hero Section -->\\n <div class=\\"my-hero\\">\\n <div class=\\"my-subtitle\\">{{ data.subtitle }}</div>\\n <div class=\\"my-title-box\\">\\n <h1 class=\\"my-title\\">{{ data.title }}</h1>\\n </div>\\n </div>\\n\\n <!-- Body / Main Content Visual Structure (Tablet / Frame / Pill Cards) -->\\n <div class=\\"my-frame-box\\">\\n {{#each data.items}}\\n <div class=\\"my-item-card\\">\\n <div class=\\"my-item-dot\\"></div>\\n <div class=\\"my-item-text\\">{{ text }}</div>\\n </div>\\n {{/each}}\\n </div>\\n\\n <!-- Footer / Source Attribution -->\\n <div class=\\"my-footer\\">\\n <span class=\\"my-source\\">{{ data.footerNote }}</span>\\n </div>\\n</div>",
|
|
116
|
-
"customCss": ".my-container { width: 100%; max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; } .my-hero { display: flex; flex-direction: column; gap: 12px; } .my-subtitle { font-size:
|
|
123
|
+
"customCss": ".my-container { width: 100%; max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; } .my-hero { display: flex; flex-direction: column; gap: 12px; } .my-subtitle { font-size: var(--font-subtitle, 28px); font-weight: 800; color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,0.4); } .my-title-box { background: #ffffff; border-radius: 24px; padding: 22px 32px; box-shadow: 0 12px 28px rgba(0,0,0,0.25); } .my-title { margin: 0; font-size: var(--font-title, 56px); font-weight: 900; line-height: 1.1; color: #d84e1f; text-transform: uppercase; } .my-frame-box { display: flex; flex-direction: column; gap: 16px; background: rgba(30, 41, 59, 0.9); border-radius: 32px; padding: 26px; border: 2px solid rgba(255,255,255,0.15); box-shadow: 0 20px 40px rgba(0,0,0,0.35); } .my-item-card { display: flex; align-items: flex-start; gap: 16px; background: #ffffff; border-radius: 18px; padding: 20px 24px; border-left: 8px solid #eb6a37; box-shadow: 0 4px 12px rgba(0,0,0,0.06); } .my-item-dot { width: 14px; height: 14px; min-width: 14px; border-radius: 50%; background: #f5b027; margin-top: 6px; } .my-item-text { font-size: var(--font-items, 26px); font-weight: 700; line-height: 1.45; color: #1e293b; margin: 0; } .my-footer { display: flex; justify-content: center; } .my-source { font-size: var(--font-source, 21px); font-weight: 700; color: rgba(255,255,255,0.9); background: rgba(15,23,42,0.6); padding: 10px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); text-shadow: 0 1px 3px rgba(0,0,0,0.4); }",
|
|
117
124
|
"sampleData": {
|
|
118
125
|
"templateId": "slug-unik-kebab-case",
|
|
119
126
|
"layoutType": "custom",
|
|
@@ -183,20 +190,31 @@ PANDUAN STANDAR WAJIB ARSITEKTUR TEMPLATE SOCIALGEN:
|
|
|
183
190
|
* Badan kartu (mockup tablet, framed box, kartu list pil/bubble)
|
|
184
191
|
* Sumber data (footerNote) di bagian bawah kartu
|
|
185
192
|
|
|
186
|
-
7. TIPOGRAFI
|
|
187
|
-
- Kanvas beresolusi 1080px lebar.
|
|
193
|
+
7. TIPOGRAFI UNIVERSAL BERBOBOT BESAR (RAMAH BACA SEMUA USIA - MUDA & LANSIA):
|
|
194
|
+
- Kanvas beresolusi 1080px lebar. Ketika tampil di layar HP 390px, ukuran teks akan mengecil ~2.8x.
|
|
195
|
+
- SEMUA TEKS WAJIB BERUKURAN BESAR, BOLD, DAN KONTRASTING agar audiens lansia maupun anak muda dapat membaca sekilas tanpa zoom:
|
|
188
196
|
* Judul Utama (title): font-size: 56px \u2013 68px (font-weight: 900, line-height: 1.08 - 1.15)
|
|
189
|
-
* Subjudul (subtitle): font-size: 28px \u2013 32px (font-weight: 700-800)
|
|
190
|
-
*
|
|
191
|
-
* Sumber Data (footerNote): font-size: 21px \u2013 22px (font-weight:
|
|
192
|
-
* Disclaimer & Callout: font-size: 19px \u2013 20px (font-weight:
|
|
197
|
+
* Subjudul / Kicker (subtitle): font-size: 28px \u2013 32px (font-weight: 700 - 800)
|
|
198
|
+
* Isi Poin / Body Teks (items): font-size: 25px \u2013 28px (DILARANG KERAS di bawah 22px!)
|
|
199
|
+
* Sumber Data (footerNote): font-size: 21px \u2013 22px (font-weight: 700)
|
|
200
|
+
* Disclaimer & Callout: font-size: 19px \u2013 20px (font-weight: 700)
|
|
193
201
|
|
|
194
|
-
8.
|
|
202
|
+
8. DYNAMIC FONT SLOTS (KONTROL UKURAN FONT DINAMIS PER SECTION):
|
|
203
|
+
- Wajib sertakan field \\"fontSlots\\" di JSON root untuk setiap bagian teks yang kamu buat (apakah template memiliki 2, 3, 5, atau lebih section teks):
|
|
204
|
+
\\"fontSlots\\": [
|
|
205
|
+
{ \\"id\\": \\"title\\", \\"label\\": \\"Judul Utama\\", \\"default\\": 56, \\"min\\": 38, \\"max\\": 76 },
|
|
206
|
+
{ \\"id\\": \\"subtitle\\", \\"label\\": \\"Subjudul\\", \\"default\\": 28, \\"min\\": 20, \\"max\\": 42 },
|
|
207
|
+
{ \\"id\\": \\"items\\", \\"label\\": \\"Poin Konten\\", \\"default\\": 26, \\"min\\": 20, \\"max\\": 38 },
|
|
208
|
+
{ \\"id\\": \\"source\\", \\"label\\": \\"Sumber Data\\", \\"default\\": 21, \\"min\\": 16, \\"max\\": 28 }
|
|
209
|
+
]
|
|
210
|
+
- Pada \\"customCss\\", gunakan variabel CSS var(--font-[id], [default]px) pada setiap elemen teks tersebut agar pengguna dapat menyesuaikan font size secara langsung via slider Studio Inspector!
|
|
211
|
+
|
|
212
|
+
9. MURNI CSS EKSPLISIT DI 'customCss':
|
|
195
213
|
- Karena aplikasi sudah di-compile, jangan mengandalkan arbitrary Tailwind baru (seperti text-[55px] atau bg-[#123456]).
|
|
196
214
|
- Semua warna, background, border, radius, bayangan, font-size, dan flexbox WAJIB ditulis lengkap dan eksplisit di \\"customCss\\".
|
|
197
215
|
|
|
198
|
-
|
|
199
|
-
|
|
216
|
+
10. KREDIBILITAS TIER 1 (META CPM MONETIZATION):
|
|
217
|
+
- Selalu sertakan field \\"methodologyBadge\\", \\"disclaimer\\", dan \\"sourceUrl\\" di sampleData untuk lolos verifikasi transparansi data audiens Tier 1.
|
|
200
218
|
|
|
201
219
|
Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar bisa langsung diimpor otomatis ke aplikasi SocialGen.`);
|
|
202
220
|
const filteredTemplates = computed(() => {
|
|
@@ -468,6 +486,22 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
|
|
|
468
486
|
const match = templatesList.value.find((t) => t.id === selectedTemplateId.value);
|
|
469
487
|
return (match == null ? void 0 : match.name) || selectedTemplateId.value || "Custom";
|
|
470
488
|
});
|
|
489
|
+
const showTypographySection = ref(true);
|
|
490
|
+
const activeTemplateObj = computed(() => {
|
|
491
|
+
return templatesList.value.find((t) => t.id === selectedTemplateId.value);
|
|
492
|
+
});
|
|
493
|
+
const activeFontSlots = computed(() => {
|
|
494
|
+
return resolveTemplateFontSlots(props.modelValue.layoutType, activeTemplateObj.value || props.modelValue);
|
|
495
|
+
});
|
|
496
|
+
const hasCustomFontSizes = computed(() => {
|
|
497
|
+
const custom = props.modelValue.fontSizes;
|
|
498
|
+
if (!custom || Object.keys(custom).length === 0) return false;
|
|
499
|
+
return activeFontSlots.value.some((slot) => custom[slot.id] !== void 0 && custom[slot.id] !== slot.default);
|
|
500
|
+
});
|
|
501
|
+
function getSlotFontSize(slotId, defaultVal) {
|
|
502
|
+
var _a2, _b2;
|
|
503
|
+
return (_b2 = (_a2 = props.modelValue.fontSizes) == null ? void 0 : _a2[slotId]) != null ? _b2 : defaultVal;
|
|
504
|
+
}
|
|
471
505
|
function updateOption(key, val) {
|
|
472
506
|
emit("update:options", { ...props.options, [key]: val });
|
|
473
507
|
}
|
|
@@ -978,6 +1012,22 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
|
|
|
978
1012
|
}
|
|
979
1013
|
_push(`</button>`);
|
|
980
1014
|
});
|
|
1015
|
+
_push(`<!--]--></div></div><div class="p-3 bg-slate-900/80 border border-slate-800 rounded-2xl space-y-2.5 shadow-sm"><div class="flex items-center justify-between"><button type="button" class="flex items-center gap-1.5 text-left text-[10px] font-black uppercase tracking-wider text-slate-300 hover:text-white transition">`);
|
|
1016
|
+
_push(ssrRenderComponent(unref(Type), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
|
|
1017
|
+
_push(`<span>Ukuran Teks Dinamis (${ssrInterpolate(unref(activeFontSlots).length)} Section)</span>`);
|
|
1018
|
+
_push(ssrRenderComponent(unref(ChevronDown), {
|
|
1019
|
+
class: ["w-3 h-3 text-slate-400 transition-transform duration-200", { "rotate-180": unref(showTypographySection) }]
|
|
1020
|
+
}, null, _parent));
|
|
1021
|
+
_push(`</button>`);
|
|
1022
|
+
if (unref(hasCustomFontSizes)) {
|
|
1023
|
+
_push(`<button type="button" class="text-[9.5px] font-bold text-amber-400 hover:text-amber-300 transition" title="Kembalikan semua font ke standar template"> Reset Standar </button>`);
|
|
1024
|
+
} else {
|
|
1025
|
+
_push(`<!---->`);
|
|
1026
|
+
}
|
|
1027
|
+
_push(`</div><div class="space-y-1.5 pt-1" style="${ssrRenderStyle(unref(showTypographySection) ? null : { display: "none" })}"><!--[-->`);
|
|
1028
|
+
ssrRenderList(unref(activeFontSlots), (slot) => {
|
|
1029
|
+
_push(`<div class="flex items-center justify-between gap-2.5 bg-slate-950/70 p-2 rounded-xl border border-slate-800/80 hover:border-slate-700 transition"><div class="flex flex-col min-w-[105px] shrink-0"><span class="text-[11px] font-bold text-white leading-tight truncate max-w-[125px]">${ssrInterpolate(slot.label)}</span><span class="text-[8.5px] text-slate-400 font-mono">--font-${ssrInterpolate(slot.id)}</span></div><div class="flex items-center gap-1.5 flex-1 justify-end"><button type="button" class="w-6 h-6 rounded-lg bg-slate-800 hover:bg-slate-700 text-white font-black text-xs flex items-center justify-center transition active:scale-95 border border-slate-700/60" title="Kecilkan 2px"> - </button><input type="range"${ssrRenderAttr("min", slot.min)}${ssrRenderAttr("max", slot.max)}${ssrRenderAttr("step", slot.step || 1)}${ssrRenderAttr("value", getSlotFontSize(slot.id, slot.default))} class="flex-1 max-w-[110px] h-1.5 bg-slate-800 rounded-lg appearance-none cursor-pointer accent-sky-400"><button type="button" class="w-6 h-6 rounded-lg bg-slate-800 hover:bg-slate-700 text-white font-black text-xs flex items-center justify-center transition active:scale-95 border border-slate-700/60" title="Besarkan 2px"> + </button><span class="w-9 text-right font-mono text-[11px] font-extrabold text-sky-400 shrink-0">${ssrInterpolate(getSlotFontSize(slot.id, slot.default))}px </span></div></div>`);
|
|
1030
|
+
});
|
|
981
1031
|
_push(`<!--]--></div></div><div class="grid grid-cols-3 gap-2"><div class="col-span-1 space-y-1"><label class="text-[10px] font-black uppercase tracking-wider text-slate-400">Watermark</label><input type="text"${ssrRenderAttr("value", __props.modelValue.watermark || "@SocialGen")} class="w-full bg-slate-900 border border-slate-800 rounded-xl px-2.5 py-1.5 text-xs text-sky-400 font-semibold focus:outline-none focus:border-sky-500"></div><div class="col-span-2 space-y-1"><label class="text-[10px] font-black uppercase tracking-wider text-slate-400">Judul Konten (Title)</label><input type="text"${ssrRenderAttr("value", __props.modelValue.title)} placeholder="Judul Utama Konten..." class="w-full bg-slate-900 border border-slate-800 rounded-xl px-2.5 py-1.5 text-xs text-slate-100 font-semibold focus:outline-none focus:border-sky-500"></div></div><div class="p-3 bg-slate-900/80 border border-slate-800 rounded-2xl space-y-2 shadow-sm"><div class="flex items-center justify-between"><label class="text-[10px] font-black uppercase tracking-wider text-slate-400 flex items-center gap-1.5">`);
|
|
982
1032
|
_push(ssrRenderComponent(unref(Code), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
|
|
983
1033
|
_push(`<span>RAW JSON Content</span></label>`);
|
|
@@ -1265,28 +1315,29 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1265
1315
|
}
|
|
1266
1316
|
);
|
|
1267
1317
|
return (_ctx, _push, _parent, _attrs) => {
|
|
1318
|
+
var _a, _b, _c, _d;
|
|
1268
1319
|
const _component_TableCard = _sfc_main$3;
|
|
1269
|
-
_push(`<div${ssrRenderAttrs(mergeProps({ class: "flex flex-col gap-2.5 h-full text-slate-100 min-h-0 justify-between relative" }, _attrs))} data-v-
|
|
1320
|
+
_push(`<div${ssrRenderAttrs(mergeProps({ class: "flex flex-col gap-2.5 h-full text-slate-100 min-h-0 justify-between relative" }, _attrs))} data-v-8e58b0d4>`);
|
|
1270
1321
|
if (__props.isGenerating) {
|
|
1271
|
-
_push(`<div class="absolute inset-0 z-50 bg-slate-950/85 backdrop-blur-md rounded-2xl flex flex-col items-center justify-center p-6 text-center animate-in fade-in duration-200" data-v-
|
|
1322
|
+
_push(`<div class="absolute inset-0 z-50 bg-slate-950/85 backdrop-blur-md rounded-2xl flex flex-col items-center justify-center p-6 text-center animate-in fade-in duration-200" data-v-8e58b0d4><div class="relative flex items-center justify-center mb-5" data-v-8e58b0d4><div class="w-20 h-20 rounded-full border-4 border-sky-500/20 border-t-sky-400 border-r-indigo-500 animate-spin" data-v-8e58b0d4></div><div class="absolute inset-0 flex items-center justify-center" data-v-8e58b0d4>`);
|
|
1272
1323
|
_push(ssrRenderComponent(unref(Sparkles), { class: "w-8 h-8 text-sky-400 animate-pulse" }, null, _parent));
|
|
1273
|
-
_push(`</div></div><h3 class="text-base font-black text-white tracking-wide mb-1.5" data-v-
|
|
1324
|
+
_push(`</div></div><h3 class="text-base font-black text-white tracking-wide mb-1.5" data-v-8e58b0d4> Sedang Men-generate Konten... </h3><p class="text-xs text-sky-300 font-bold mb-4 flex items-center gap-2" data-v-8e58b0d4><span class="w-2 h-2 rounded-full bg-sky-400 animate-ping" data-v-8e58b0d4></span><span data-v-8e58b0d4>${ssrInterpolate(__props.generateStage || "Merender Gambar & Video Reels...")}</span></p><div class="w-64 max-w-full bg-slate-900 border border-slate-800 rounded-full h-2.5 overflow-hidden shadow-inner mb-3" data-v-8e58b0d4><div class="h-full bg-gradient-to-r from-sky-500 via-indigo-500 to-purple-500 rounded-full animate-pulse w-full" data-v-8e58b0d4></div></div><span class="text-[10px] text-slate-400 font-mono tracking-wider uppercase" data-v-8e58b0d4> Multi-Format Studio Engine \u2022 Mohon Tunggu Sebentar </span></div>`);
|
|
1274
1325
|
} else {
|
|
1275
1326
|
_push(`<!---->`);
|
|
1276
1327
|
}
|
|
1277
|
-
_push(`<div class="flex flex-wrap items-center justify-between gap-2 p-2.5 bg-slate-900/90 border border-slate-800 rounded-2xl shadow-lg flex-shrink-0" data-v-
|
|
1328
|
+
_push(`<div class="flex flex-wrap items-center justify-between gap-2 p-2.5 bg-slate-900/90 border border-slate-800 rounded-2xl shadow-lg flex-shrink-0" data-v-8e58b0d4><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 text-xs font-bold" data-v-8e58b0d4><button class="${ssrRenderClass([unref(activeTab) === "feed" ? "bg-sky-500 text-white shadow-md" : "text-slate-400 hover:text-white", "px-3 py-1.5 rounded-lg transition"])}" data-v-8e58b0d4> Feed 4:5 </button><button class="${ssrRenderClass([unref(activeTab) === "story" ? "bg-indigo-500 text-white shadow-md" : "text-slate-400 hover:text-white", "px-3 py-1.5 rounded-lg transition"])}" data-v-8e58b0d4> Story 9:16 </button><button class="${ssrRenderClass([unref(activeTab) === "reels" ? "bg-emerald-500 text-white shadow-md" : "text-slate-400 hover:text-white", "px-3 py-1.5 rounded-lg transition flex items-center gap-1.5"])}" data-v-8e58b0d4><span data-v-8e58b0d4>Reels 9:16 (Video)</span>`);
|
|
1278
1329
|
if (unref(activeTab) === "reels" && unref(isPlaying)) {
|
|
1279
|
-
_push(`<span class="w-1.5 h-1.5 rounded-full bg-white animate-pulse" data-v-
|
|
1330
|
+
_push(`<span class="w-1.5 h-1.5 rounded-full bg-white animate-pulse" data-v-8e58b0d4></span>`);
|
|
1280
1331
|
} else {
|
|
1281
1332
|
_push(`<!---->`);
|
|
1282
1333
|
}
|
|
1283
|
-
_push(`</button></div><div class="flex items-center gap-2 text-xs" data-v-
|
|
1334
|
+
_push(`</button></div><div class="flex items-center gap-2 text-xs" data-v-8e58b0d4><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 text-xs shadow-inner" data-v-8e58b0d4><button title="Zoom Out (-15%)" class="p-1.5 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition" data-v-8e58b0d4>`);
|
|
1284
1335
|
_push(ssrRenderComponent(unref(ZoomOut), { class: "w-3.5 h-3.5" }, null, _parent));
|
|
1285
|
-
_push(`</button><button title="Klik untuk Reset Zoom (100% Fit)" class="px-2 py-0.5 rounded-lg text-[11px] font-bold text-sky-400 hover:bg-slate-800 hover:text-sky-300 transition font-mono min-w-[42px] text-center" data-v-
|
|
1336
|
+
_push(`</button><button title="Klik untuk Reset Zoom (100% Fit)" class="px-2 py-0.5 rounded-lg text-[11px] font-bold text-sky-400 hover:bg-slate-800 hover:text-sky-300 transition font-mono min-w-[42px] text-center" data-v-8e58b0d4>${ssrInterpolate(Math.round(unref(zoomScale) * 100))}% </button><button title="Zoom In (+15%)" class="p-1.5 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition" data-v-8e58b0d4>`);
|
|
1286
1337
|
_push(ssrRenderComponent(unref(ZoomIn), { class: "w-3.5 h-3.5" }, null, _parent));
|
|
1287
1338
|
_push(`</button>`);
|
|
1288
1339
|
if (unref(zoomScale) !== 1) {
|
|
1289
|
-
_push(`<button title="Reset ke Ukuran Pas" class="p-1.5 rounded-lg text-amber-400 hover:bg-slate-800 transition" data-v-
|
|
1340
|
+
_push(`<button title="Reset ke Ukuran Pas" class="p-1.5 rounded-lg text-amber-400 hover:bg-slate-800 transition" data-v-8e58b0d4>`);
|
|
1290
1341
|
_push(ssrRenderComponent(unref(RotateCcw), { class: "w-3.5 h-3.5" }, null, _parent));
|
|
1291
1342
|
_push(`</button>`);
|
|
1292
1343
|
} else {
|
|
@@ -1294,22 +1345,26 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1294
1345
|
}
|
|
1295
1346
|
_push(`</div>`);
|
|
1296
1347
|
if (unref(activeTab) !== "feed") {
|
|
1297
|
-
_push(`<button class="${ssrRenderClass([unref(showSafeZones) ? "bg-
|
|
1298
|
-
|
|
1299
|
-
|
|
1348
|
+
_push(`<button class="${ssrRenderClass([unref(showSafeZones) ? "bg-sky-500/25 text-sky-300 border-sky-400/60" : "bg-slate-950 text-slate-400 border-slate-800 hover:text-white", "inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg border text-xs font-bold transition shadow-sm"])}"${ssrRenderAttr("title", unref(showSafeZones) ? "Sembunyikan Simulasi UI" : "Tampilkan Simulasi Facebook Reels UI Asli")} data-v-8e58b0d4>`);
|
|
1349
|
+
if (unref(activeTab) === "reels") {
|
|
1350
|
+
_push(ssrRenderComponent(unref(Film), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
|
|
1351
|
+
} else {
|
|
1352
|
+
_push(ssrRenderComponent(unref(ShieldAlert), { class: "w-3.5 h-3.5 text-indigo-400" }, null, _parent));
|
|
1353
|
+
}
|
|
1354
|
+
_push(`<span class="hidden sm:inline" data-v-8e58b0d4>${ssrInterpolate(unref(activeTab) === "reels" ? "Simulasi FB Reels UI" : "Simulasi Story UI")}</span><span class="sm:hidden" data-v-8e58b0d4>Simulasi UI</span></button>`);
|
|
1300
1355
|
} else {
|
|
1301
1356
|
_push(`<!---->`);
|
|
1302
1357
|
}
|
|
1303
|
-
_push(`</div></div><div class="relative flex-1 min-h-0 bg-slate-950/80 canvas-dot-bg border border-slate-800/80 rounded-2xl flex p-4 overflow-auto shadow-inner custom-scrollbar" data-v-
|
|
1358
|
+
_push(`</div></div><div class="relative flex-1 min-h-0 bg-slate-950/80 canvas-dot-bg border border-slate-800/80 rounded-2xl flex p-4 overflow-auto shadow-inner custom-scrollbar" data-v-8e58b0d4><div class="m-auto flex-shrink-0 relative transition-all duration-200 ease-out" style="${ssrRenderStyle({
|
|
1304
1359
|
width: `${Math.round(unref(baseCanvasWidth) * unref(zoomScale))}px`,
|
|
1305
1360
|
height: `${Math.round(unref(baseCanvasHeight) * unref(zoomScale))}px`
|
|
1306
|
-
})}" data-v-
|
|
1361
|
+
})}" data-v-8e58b0d4><div class="origin-top-left transition-transform duration-200 ease-out absolute top-0 left-0" style="${ssrRenderStyle({
|
|
1307
1362
|
width: `${unref(baseCanvasWidth)}px`,
|
|
1308
1363
|
height: `${unref(baseCanvasHeight)}px`,
|
|
1309
1364
|
transform: `scale(${unref(zoomScale)})`
|
|
1310
|
-
})}" data-v-
|
|
1365
|
+
})}" data-v-8e58b0d4>`);
|
|
1311
1366
|
if (unref(activeTab) === "feed") {
|
|
1312
|
-
_push(`<div class="relative shadow-2xl rounded-2xl overflow-hidden border border-slate-700/80 flex-shrink-0" style="width:360px;height:450px;" data-v-
|
|
1367
|
+
_push(`<div class="relative shadow-2xl rounded-2xl overflow-hidden border border-slate-700/80 flex-shrink-0" style="width:360px;height:450px;" data-v-8e58b0d4><div style="width:1080px;height:1350px;transform:scale(0.333333);transform-origin:top left;" data-v-8e58b0d4>`);
|
|
1313
1368
|
_push(ssrRenderComponent(_component_TableCard, {
|
|
1314
1369
|
data: __props.data,
|
|
1315
1370
|
mode: "feed",
|
|
@@ -1317,13 +1372,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1317
1372
|
}, null, _parent));
|
|
1318
1373
|
_push(`</div></div>`);
|
|
1319
1374
|
} else {
|
|
1320
|
-
_push(`<div class="relative shadow-2xl rounded-2xl overflow-hidden border border-slate-700/80 flex-shrink-0" style="width:300px;height:533.33px;" data-v-
|
|
1375
|
+
_push(`<div class="relative shadow-2xl rounded-2xl overflow-hidden border border-slate-700/80 flex-shrink-0" style="width:300px;height:533.33px;" data-v-8e58b0d4>`);
|
|
1321
1376
|
if (unref(activeTab) === "reels") {
|
|
1322
|
-
_push(`<div class="absolute inset-0 z-0 bg-slate-950 overflow-hidden" data-v-
|
|
1377
|
+
_push(`<div class="absolute inset-0 z-0 bg-slate-950 overflow-hidden" data-v-8e58b0d4><video autoplay muted playsinline class="w-full h-full object-cover brightness-90 contrast-105"${ssrRenderAttr("src", unref(activeVideoSrc))} data-v-8e58b0d4></video><div class="absolute inset-0 bg-slate-950/30 backdrop-blur-[0.5px]" data-v-8e58b0d4></div><audio${ssrRenderAttr("src", unref(activeAudioSrc))}${ssrIncludeBooleanAttr(unref(isMuted)) ? " muted" : ""} data-v-8e58b0d4></audio></div>`);
|
|
1323
1378
|
} else {
|
|
1324
1379
|
_push(`<!---->`);
|
|
1325
1380
|
}
|
|
1326
|
-
_push(`<div class="relative z-10 pointer-events-none" style="width:1080px;height:1920px;transform:scale(0.277778);transform-origin:top left;" data-v-
|
|
1381
|
+
_push(`<div class="relative z-10 pointer-events-none" style="width:1080px;height:1920px;transform:scale(0.277778);transform-origin:top left;" data-v-8e58b0d4>`);
|
|
1327
1382
|
_push(ssrRenderComponent(_component_TableCard, {
|
|
1328
1383
|
data: __props.data,
|
|
1329
1384
|
mode: unref(activeTab) === "reels" ? "overlay" : "story",
|
|
@@ -1331,27 +1386,42 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1331
1386
|
}, null, _parent));
|
|
1332
1387
|
_push(`</div>`);
|
|
1333
1388
|
if (unref(showSafeZones)) {
|
|
1334
|
-
_push(`<div class="absolute inset-0 z-30 pointer-events-none flex flex-col justify-between overflow-hidden select-none" data-v-
|
|
1389
|
+
_push(`<div class="absolute inset-0 z-30 pointer-events-none flex flex-col justify-between overflow-hidden select-none" data-v-8e58b0d4>`);
|
|
1335
1390
|
if (unref(activeTab) === "reels") {
|
|
1336
|
-
_push(`<!--[--><div class="h-
|
|
1337
|
-
_push(ssrRenderComponent(unref(
|
|
1338
|
-
_push(
|
|
1339
|
-
_push(ssrRenderComponent(unref(
|
|
1340
|
-
_push(
|
|
1341
|
-
_push(ssrRenderComponent(unref(
|
|
1342
|
-
_push(`</div><
|
|
1343
|
-
_push(ssrRenderComponent(unref(
|
|
1344
|
-
_push(`</div><span class="text-[9px] font-bold text-white drop-shadow" data-v-
|
|
1345
|
-
_push(ssrRenderComponent(unref(
|
|
1346
|
-
_push(`</div><span class="text-[9px] font-bold text-white drop-shadow" data-v-
|
|
1347
|
-
_push(ssrRenderComponent(unref(
|
|
1348
|
-
_push(`</div
|
|
1349
|
-
_push(ssrRenderComponent(unref(
|
|
1350
|
-
_push(
|
|
1391
|
+
_push(`<!--[--><div class="h-11 bg-gradient-to-b from-black/85 via-black/40 to-transparent px-3 pt-2.5 flex items-center justify-between text-white" data-v-8e58b0d4><div class="flex items-center text-white/95" data-v-8e58b0d4>`);
|
|
1392
|
+
_push(ssrRenderComponent(unref(ChevronLeft), { class: "w-6 h-6 stroke-[2.4]" }, null, _parent));
|
|
1393
|
+
_push(`</div><div class="flex items-center gap-3.5 text-white/95" data-v-8e58b0d4>`);
|
|
1394
|
+
_push(ssrRenderComponent(unref(Search), { class: "w-5 h-5 stroke-[2.2]" }, null, _parent));
|
|
1395
|
+
_push(`<div class="w-7 h-7 rounded-full bg-black/40 backdrop-blur-md flex items-center justify-center border border-white/10 shadow-sm" data-v-8e58b0d4>`);
|
|
1396
|
+
_push(ssrRenderComponent(unref(MoreHorizontal), { class: "w-4 h-4 stroke-[2.2]" }, null, _parent));
|
|
1397
|
+
_push(`</div></div></div><div class="absolute right-2 bottom-[98px] flex flex-col items-center gap-3 z-20" data-v-8e58b0d4><div class="flex flex-col items-center gap-0.5" data-v-8e58b0d4><div class="w-7 h-7 rounded-full bg-[#1877F2] flex items-center justify-center text-white shadow-lg" data-v-8e58b0d4>`);
|
|
1398
|
+
_push(ssrRenderComponent(unref(ThumbsUp), { class: "w-3.5 h-3.5 fill-white text-white" }, null, _parent));
|
|
1399
|
+
_push(`</div><span class="text-[9px] font-bold text-white drop-shadow" data-v-8e58b0d4>1</span></div><div class="flex flex-col items-center gap-0.5" data-v-8e58b0d4><div class="w-7 h-7 rounded-full bg-black/35 backdrop-blur-sm flex items-center justify-center text-white border border-white/10 shadow" data-v-8e58b0d4>`);
|
|
1400
|
+
_push(ssrRenderComponent(unref(MessageCircle), { class: "w-3.5 h-3.5 text-white stroke-[2.2]" }, null, _parent));
|
|
1401
|
+
_push(`</div><span class="text-[9px] font-bold text-white drop-shadow" data-v-8e58b0d4>3</span></div><div class="w-7 h-7 rounded-full bg-black/35 backdrop-blur-sm flex items-center justify-center text-white border border-white/10 shadow" data-v-8e58b0d4>`);
|
|
1402
|
+
_push(ssrRenderComponent(unref(Share2), { class: "w-3.5 h-3.5 text-white stroke-[2.2]" }, null, _parent));
|
|
1403
|
+
_push(`</div><div class="w-7 h-7 rounded-full bg-black/35 backdrop-blur-sm flex items-center justify-center text-white border border-white/10 shadow" data-v-8e58b0d4>`);
|
|
1404
|
+
_push(ssrRenderComponent(unref(Bookmark), { class: "w-3.5 h-3.5 text-white stroke-[2.2]" }, null, _parent));
|
|
1405
|
+
_push(`</div><div class="w-7 h-7 rounded-full bg-black/35 backdrop-blur-sm flex items-center justify-center text-white border border-white/10 shadow" data-v-8e58b0d4>`);
|
|
1406
|
+
_push(ssrRenderComponent(unref(MoreHorizontal), { class: "w-3.5 h-3.5 text-white stroke-[2.2]" }, null, _parent));
|
|
1407
|
+
_push(`</div></div><div class="bg-gradient-to-t from-black via-black/85 to-transparent px-3 pb-2 pt-6 flex flex-col justify-end gap-1 relative z-20" data-v-8e58b0d4><div class="flex items-center gap-1.5" data-v-8e58b0d4><div class="w-6 h-6 rounded-full bg-slate-700 border border-white/50 flex items-center justify-center text-[9px] font-black text-white flex-shrink-0 shadow overflow-hidden" data-v-8e58b0d4>${ssrInterpolate((((_a = __props.data.watermark) == null ? void 0 : _a.replace(/^@/, "")) || "BK").slice(0, 2).toUpperCase())}</div><span class="text-[10.5px] font-bold text-white truncate max-w-[130px] drop-shadow" data-v-8e58b0d4>${ssrInterpolate(((_b = __props.data.watermark) == null ? void 0 : _b.replace(/^@/, "")) || "Brian Ken Junior")}</span><span class="w-3 h-3 rounded-full bg-[#1877F2] text-white flex items-center justify-center text-[7.5px] font-black shadow-sm flex-shrink-0" data-v-8e58b0d4> \u2713 </span>`);
|
|
1408
|
+
_push(ssrRenderComponent(unref(Globe), { class: "w-2.5 h-2.5 text-white/80 flex-shrink-0" }, null, _parent));
|
|
1409
|
+
_push(`</div><div class="flex items-center gap-1.5 text-[9px] text-white/95 font-medium drop-shadow pr-10" data-v-8e58b0d4>`);
|
|
1410
|
+
_push(ssrRenderComponent(unref(Music), { class: "w-2.5 h-2.5 flex-shrink-0 text-white" }, null, _parent));
|
|
1411
|
+
_push(`<span class="truncate" data-v-8e58b0d4>${ssrInterpolate(((_c = __props.data.watermark) == null ? void 0 : _c.replace(/^@/, "")) || "Brian Ken Junior")} \u2022 Audio asli</span></div><p class="text-[9px] text-white/95 leading-tight line-clamp-1 drop-shadow pr-10" data-v-8e58b0d4>${ssrInterpolate(__props.data.viralCaption || __props.data.subtitle || "Financial advisors still say rent shouldn't...")} <span class="text-white font-bold ml-1 cursor-pointer" data-v-8e58b0d4>selengkapnya</span></p><div class="py-0.5" data-v-8e58b0d4><div class="inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-white/20 backdrop-blur-md text-[8.5px] font-bold text-white border border-white/10 shadow-sm" data-v-8e58b0d4>`);
|
|
1412
|
+
_push(ssrRenderComponent(unref(TrendingUp), { class: "w-2.5 h-2.5 text-white stroke-[2.5]" }, null, _parent));
|
|
1413
|
+
_push(`<span data-v-8e58b0d4>Lihat insight</span></div></div><div class="w-full bg-[#242526]/90 backdrop-blur-md rounded-xl px-2.5 py-1.5 border border-white/10 flex items-center justify-between text-white text-[9px] shadow-md my-0.5" data-v-8e58b0d4><div class="flex items-center gap-1.5 truncate pr-2" data-v-8e58b0d4>`);
|
|
1414
|
+
_push(ssrRenderComponent(unref(Search), { class: "w-3 h-3 text-white/80 flex-shrink-0" }, null, _parent));
|
|
1415
|
+
_push(`<span class="truncate font-medium text-white/95" data-v-8e58b0d4>${ssrInterpolate(__props.data.title || "Vienna public housing")}</span></div>`);
|
|
1416
|
+
_push(ssrRenderComponent(unref(MoreHorizontal), { class: "w-3 h-3 text-white/60 flex-shrink-0" }, null, _parent));
|
|
1417
|
+
_push(`</div><div class="w-full h-6 rounded-full border border-white/20 bg-black/40 px-3 flex items-center justify-between text-white text-[8.5px] shadow-inner" data-v-8e58b0d4><span class="text-white/60" data-v-8e58b0d4>Tambahkan komentar</span><div class="flex items-center gap-2 text-white/80" data-v-8e58b0d4>`);
|
|
1418
|
+
_push(ssrRenderComponent(unref(AtSign), { class: "w-2.5 h-2.5 text-white/70" }, null, _parent));
|
|
1419
|
+
_push(ssrRenderComponent(unref(Smile), { class: "w-2.5 h-2.5 text-white/70" }, null, _parent));
|
|
1420
|
+
_push(`<span class="text-[7.5px] font-bold px-1 rounded border border-white/40 text-white/80 leading-none py-0.5" data-v-8e58b0d4>GIF</span></div></div></div><!--]-->`);
|
|
1351
1421
|
} else {
|
|
1352
|
-
_push(`<!--[--><div class="h-
|
|
1353
|
-
_push(ssrRenderComponent(unref(Heart), { class: "w-4 h-4 text-white/
|
|
1354
|
-
_push(ssrRenderComponent(unref(Share2), { class: "w-4 h-4 text-white/
|
|
1422
|
+
_push(`<!--[--><div class="h-12 bg-gradient-to-b from-black/80 to-transparent px-3 pt-2 flex flex-col justify-between" data-v-8e58b0d4><div class="flex gap-1 w-full" data-v-8e58b0d4><div class="h-0.5 flex-1 bg-white rounded-full" data-v-8e58b0d4></div><div class="h-0.5 flex-1 bg-white/40 rounded-full" data-v-8e58b0d4></div><div class="h-0.5 flex-1 bg-white/40 rounded-full" data-v-8e58b0d4></div></div><div class="flex items-center justify-between text-white pb-1" data-v-8e58b0d4><div class="flex items-center gap-1.5" data-v-8e58b0d4><div class="w-4 h-4 rounded-full bg-gradient-to-tr from-amber-500 to-rose-500 p-0.5" data-v-8e58b0d4><div class="w-full h-full bg-black rounded-full" data-v-8e58b0d4></div></div><span class="text-[9px] font-bold" data-v-8e58b0d4>${ssrInterpolate(((_d = __props.data.watermark) == null ? void 0 : _d.replace(/^@/, "")) || "akunkreator")}</span><span class="text-[8px] text-white/60" data-v-8e58b0d4>2j</span></div></div></div><div class="h-14 bg-gradient-to-t from-black/85 to-transparent px-3 pb-2 flex items-center justify-between gap-2" data-v-8e58b0d4><div class="flex-1 h-7 rounded-full border border-white/30 bg-black/20 px-3 flex items-center text-[9px] text-white/50" data-v-8e58b0d4> Kirim pesan... </div>`);
|
|
1423
|
+
_push(ssrRenderComponent(unref(Heart), { class: "w-4 h-4 text-white/90" }, null, _parent));
|
|
1424
|
+
_push(ssrRenderComponent(unref(Share2), { class: "w-4 h-4 text-white/90" }, null, _parent));
|
|
1355
1425
|
_push(`</div><!--]-->`);
|
|
1356
1426
|
}
|
|
1357
1427
|
_push(`</div>`);
|
|
@@ -1362,27 +1432,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1362
1432
|
}
|
|
1363
1433
|
_push(`</div></div></div>`);
|
|
1364
1434
|
if (unref(activeTab) === "reels") {
|
|
1365
|
-
_push(`<div class="flex flex-col bg-slate-900/95 border border-slate-800 rounded-2xl p-2.5 gap-2 shadow-xl flex-shrink-0 text-xs" data-v-
|
|
1435
|
+
_push(`<div class="flex flex-col bg-slate-900/95 border border-slate-800 rounded-2xl p-2.5 gap-2 shadow-xl flex-shrink-0 text-xs" data-v-8e58b0d4><div class="flex items-center justify-between gap-3" data-v-8e58b0d4><button class="p-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white font-bold transition flex items-center gap-1.5 shadow-md"${ssrRenderAttr("title", unref(isPlaying) ? "Pause Preview" : "Putar Preview")} data-v-8e58b0d4>`);
|
|
1366
1436
|
if (unref(isPlaying)) {
|
|
1367
1437
|
_push(ssrRenderComponent(unref(Pause), { class: "w-3.5 h-3.5 fill-current" }, null, _parent));
|
|
1368
1438
|
} else {
|
|
1369
1439
|
_push(ssrRenderComponent(unref(Play), { class: "w-3.5 h-3.5 fill-current" }, null, _parent));
|
|
1370
1440
|
}
|
|
1371
|
-
_push(`<span class="text-[11px] hidden sm:inline" data-v-
|
|
1441
|
+
_push(`<span class="text-[11px] hidden sm:inline" data-v-8e58b0d4>${ssrInterpolate(unref(isPlaying) ? "Pause" : "Play")}</span></button><div class="flex-1 flex items-center gap-2" data-v-8e58b0d4><input type="range" min="0"${ssrRenderAttr("max", unref(totalDuration))} step="0.1"${ssrRenderAttr("value", unref(currentTime))} class="flex-1 h-1.5 bg-slate-950 rounded-lg appearance-none cursor-pointer accent-emerald-500 hover:accent-emerald-400" data-v-8e58b0d4><span class="font-mono text-[11px] font-bold text-slate-300 min-w-[75px] text-right" data-v-8e58b0d4>${ssrInterpolate(formatTime(unref(currentTime)))} / ${ssrInterpolate(formatTime(unref(totalDuration)))}</span></div><button class="${ssrRenderClass([!unref(isMuted) ? "bg-purple-600/40 text-purple-200 border-purple-500/60 shadow-md ring-1 ring-purple-500/40" : "bg-slate-950 text-slate-400 border-slate-800 hover:text-white", "px-2.5 py-2 rounded-xl border transition flex items-center gap-1.5 font-bold text-[11px]"])}"${ssrRenderAttr("title", unref(isMuted) ? "Aktifkan Suara Musik (Unmute)" : "Matikan Suara Musik (Mute)")} data-v-8e58b0d4>`);
|
|
1372
1442
|
if (!unref(isMuted)) {
|
|
1373
1443
|
_push(ssrRenderComponent(unref(Volume2), { class: "w-3.5 h-3.5 text-purple-300 animate-pulse" }, null, _parent));
|
|
1374
1444
|
} else {
|
|
1375
1445
|
_push(ssrRenderComponent(unref(VolumeX), { class: "w-3.5 h-3.5" }, null, _parent));
|
|
1376
1446
|
}
|
|
1377
|
-
_push(`<span data-v-
|
|
1447
|
+
_push(`<span data-v-8e58b0d4>${ssrInterpolate(!unref(isMuted) ? "Audio ON" : "Muted")}</span></button><button class="${ssrRenderClass([unref(showOffsetEditor) ? "bg-sky-500/20 text-sky-300 border-sky-500/50" : "bg-slate-950 text-slate-400 border-slate-800 hover:text-white", "px-2.5 py-2 rounded-xl border text-[11px] font-bold flex items-center gap-1.5 transition"])}" title="Atur Detik Awal Video & Musik" data-v-8e58b0d4>`);
|
|
1378
1448
|
_push(ssrRenderComponent(unref(Scissors), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
|
|
1379
|
-
_push(`<span class="hidden sm:inline" data-v-
|
|
1449
|
+
_push(`<span class="hidden sm:inline" data-v-8e58b0d4>Trim Offset</span></button></div>`);
|
|
1380
1450
|
if (unref(showOffsetEditor)) {
|
|
1381
|
-
_push(`<div class="grid grid-cols-1 sm:grid-cols-2 gap-3 p-2.5 bg-slate-950/80 rounded-xl border border-slate-800/80 animate-fadeIn" data-v-
|
|
1451
|
+
_push(`<div class="grid grid-cols-1 sm:grid-cols-2 gap-3 p-2.5 bg-slate-950/80 rounded-xl border border-slate-800/80 animate-fadeIn" data-v-8e58b0d4><div class="flex flex-col gap-1.5" data-v-8e58b0d4><div class="flex items-center justify-between text-[11px]" data-v-8e58b0d4><span class="font-bold text-sky-300 flex items-center gap-1" data-v-8e58b0d4>`);
|
|
1382
1452
|
_push(ssrRenderComponent(unref(Film), { class: "w-3 h-3" }, null, _parent));
|
|
1383
|
-
_push(` Mulai Video: ${ssrInterpolate(Math.min(__props.videoStartOffset || 0, unref(maxVideoOffset)))}s / ${ssrInterpolate(unref(videoFileDuration))}s </span><button class="text-[9px] px-1.5 py-0.5 rounded bg-slate-800 hover:bg-slate-700 text-sky-300 border border-slate-700 transition" title="Gunakan posisi video saat ini sebagai detik mulai" data-v-
|
|
1453
|
+
_push(` Mulai Video: ${ssrInterpolate(Math.min(__props.videoStartOffset || 0, unref(maxVideoOffset)))}s / ${ssrInterpolate(unref(videoFileDuration))}s </span><button class="text-[9px] px-1.5 py-0.5 rounded bg-slate-800 hover:bg-slate-700 text-sky-300 border border-slate-700 transition" title="Gunakan posisi video saat ini sebagai detik mulai" data-v-8e58b0d4> Set Detik Ini </button></div><input type="range" min="0"${ssrRenderAttr("max", unref(maxVideoOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.videoStartOffset || 0, unref(maxVideoOffset)))} class="w-full h-1 bg-slate-900 rounded appearance-none cursor-pointer accent-sky-400" data-v-8e58b0d4><div class="text-[9px] text-slate-500" data-v-8e58b0d4> Maksimal offset: ${ssrInterpolate(unref(maxVideoOffset))} detik (panjang asli video: ${ssrInterpolate(unref(videoFileDuration))}s) </div></div><div class="flex flex-col gap-1.5" data-v-8e58b0d4><div class="flex items-center justify-between text-[11px]" data-v-8e58b0d4><span class="font-bold text-purple-300 flex items-center gap-1" data-v-8e58b0d4>`);
|
|
1384
1454
|
_push(ssrRenderComponent(unref(Music), { class: "w-3 h-3" }, null, _parent));
|
|
1385
|
-
_push(` Mulai Musik: ${ssrInterpolate(Math.min(__props.audioStartOffset || 0, unref(maxAudioOffset)))}s / ${ssrInterpolate(unref(audioFileDuration))}s </span><span class="text-[10px] text-slate-500 font-mono" data-v-
|
|
1455
|
+
_push(` Mulai Musik: ${ssrInterpolate(Math.min(__props.audioStartOffset || 0, unref(maxAudioOffset)))}s / ${ssrInterpolate(unref(audioFileDuration))}s </span><span class="text-[10px] text-slate-500 font-mono" data-v-8e58b0d4> (Skip intro) </span></div><input type="range" min="0"${ssrRenderAttr("max", unref(maxAudioOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.audioStartOffset || 0, unref(maxAudioOffset)))} class="w-full h-1 bg-slate-900 rounded appearance-none cursor-pointer accent-purple-400" data-v-8e58b0d4><div class="text-[9px] text-slate-500" data-v-8e58b0d4> Maksimal offset: ${ssrInterpolate(unref(maxAudioOffset))} detik (panjang asli musik: ${ssrInterpolate(unref(audioFileDuration))}s) </div></div></div>`);
|
|
1386
1456
|
} else {
|
|
1387
1457
|
_push(`<!---->`);
|
|
1388
1458
|
}
|
|
@@ -1390,13 +1460,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1390
1460
|
} else {
|
|
1391
1461
|
_push(`<!---->`);
|
|
1392
1462
|
}
|
|
1393
|
-
_push(`<div class="flex flex-col bg-slate-900/90 border border-slate-800 rounded-2xl p-2.5 gap-1.5 shadow-lg flex-shrink-0" data-v-
|
|
1463
|
+
_push(`<div class="flex flex-col bg-slate-900/90 border border-slate-800 rounded-2xl p-2.5 gap-1.5 shadow-lg flex-shrink-0" data-v-8e58b0d4><div class="flex items-center justify-between text-xs" data-v-8e58b0d4><span class="font-extrabold text-slate-300 text-[11px]" data-v-8e58b0d4>VIRAL CAPTION & HASHTAGS</span><button class="inline-flex items-center gap-1.5 px-3 py-1 bg-slate-800 hover:bg-slate-700 text-sky-300 border border-slate-700 rounded-lg transition text-[11px] font-bold" data-v-8e58b0d4>`);
|
|
1394
1464
|
if (unref(copied)) {
|
|
1395
1465
|
_push(ssrRenderComponent(unref(Check), { class: "w-3.5 h-3.5 text-emerald-400" }, null, _parent));
|
|
1396
1466
|
} else {
|
|
1397
1467
|
_push(ssrRenderComponent(unref(Copy), { class: "w-3.5 h-3.5" }, null, _parent));
|
|
1398
1468
|
}
|
|
1399
|
-
_push(`<span data-v-
|
|
1469
|
+
_push(`<span data-v-8e58b0d4>${ssrInterpolate(unref(copied) ? "Tersalin!" : "Copy Caption")}</span></button></div><textarea rows="2" class="w-full bg-slate-950 text-slate-200 text-xs p-2 rounded-xl border border-slate-800 focus:outline-none focus:border-sky-500/50 resize-none leading-relaxed font-sans" placeholder="Caption will appear here..." data-v-8e58b0d4>${ssrInterpolate(__props.data.caption)}</textarea></div></div>`);
|
|
1400
1470
|
};
|
|
1401
1471
|
}
|
|
1402
1472
|
});
|
|
@@ -1406,7 +1476,7 @@ _sfc_main$1.setup = (props, ctx) => {
|
|
|
1406
1476
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/LivePreview.vue");
|
|
1407
1477
|
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
1408
1478
|
};
|
|
1409
|
-
const __nuxt_component_1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
1479
|
+
const __nuxt_component_1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-8e58b0d4"]]);
|
|
1410
1480
|
const ComparisonRowSchema = z.object({
|
|
1411
1481
|
label: z.string().min(1).max(40),
|
|
1412
1482
|
left: z.string().min(1).max(35),
|
|
@@ -1418,6 +1488,14 @@ const PaletteColorsSchema = z.object({
|
|
|
1418
1488
|
surface: z.string().optional(),
|
|
1419
1489
|
bg: z.string().optional()
|
|
1420
1490
|
}).optional();
|
|
1491
|
+
const FontSlotSchema = z.object({
|
|
1492
|
+
id: z.string(),
|
|
1493
|
+
label: z.string(),
|
|
1494
|
+
default: z.number(),
|
|
1495
|
+
min: z.number(),
|
|
1496
|
+
max: z.number(),
|
|
1497
|
+
step: z.number().optional().default(1)
|
|
1498
|
+
});
|
|
1421
1499
|
const ContentDataSchema = z.object({
|
|
1422
1500
|
id: z.string().optional().default(() => `post-${Date.now()}`).transform((val) => val || `post-${Date.now()}`),
|
|
1423
1501
|
templateId: z.string().optional(),
|
|
@@ -1425,6 +1503,8 @@ const ContentDataSchema = z.object({
|
|
|
1425
1503
|
theme: z.string().optional().default("blue-tech"),
|
|
1426
1504
|
accentColor: z.string().optional(),
|
|
1427
1505
|
palette: PaletteColorsSchema,
|
|
1506
|
+
fontSizes: z.record(z.number()).optional(),
|
|
1507
|
+
fontSlots: z.array(FontSlotSchema).optional(),
|
|
1428
1508
|
layoutType: z.string().default("table"),
|
|
1429
1509
|
title: z.string().min(1).max(120),
|
|
1430
1510
|
subtitle: z.string().min(1).max(250),
|
|
@@ -2026,4 +2106,4 @@ _sfc_main.setup = (props, ctx) => {
|
|
|
2026
2106
|
};
|
|
2027
2107
|
|
|
2028
2108
|
export { _sfc_main as default };
|
|
2029
|
-
//# sourceMappingURL=pages-
|
|
2109
|
+
//# sourceMappingURL=pages-gpRRlAUy.mjs.map
|