@socialgen_user/socialgen 2.4.2 → 2.5.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/4OV7a3GF.js +54 -0
- package/.output/public/_nuxt/{rUK51yne.js → BWTcUa3O.js} +1 -1
- package/.output/public/_nuxt/{DOxThRL9.js → BmiTz0Bj.js} +1 -1
- package/.output/public/_nuxt/BwBAVlrf.js +1 -0
- package/.output/public/_nuxt/{YF7GRowo.js → DF2JzMIr.js} +2 -2
- package/.output/public/_nuxt/{lDD2MzPH.js → DFkoTwsH.js} +1 -1
- package/.output/public/_nuxt/DqCMQ7mU.js +111 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/5a2b79fd-fbdb-482c-97eb-c377dcd65f19.json +1 -0
- package/.output/public/_nuxt/{pages.BNNMR0bP.css → pages.CurYQ93c.css} +1 -1
- package/.output/server/chunks/_/content.mjs +7 -0
- package/.output/server/chunks/_/content.mjs.map +1 -1
- package/.output/server/chunks/_/nitro.mjs +71 -71
- package/.output/server/chunks/build/LivePreview-styles.BAXzj6mF.mjs +8 -0
- package/.output/server/chunks/build/LivePreview-styles.BAXzj6mF.mjs.map +1 -0
- package/.output/server/chunks/build/{TableCard-DfnuVi3k.mjs → TableCard-J91PndXn.mjs} +117 -74
- package/.output/server/chunks/build/TableCard-J91PndXn.mjs.map +1 -0
- package/.output/server/chunks/build/{_mode_-Cpo_VvNf.mjs → _mode_-BzB4uUM9.mjs} +2 -2
- package/.output/server/chunks/build/{_mode_-Cpo_VvNf.mjs.map → _mode_-BzB4uUM9.mjs.map} +1 -1
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/entry-styles.DlYZJ_Pu.mjs +8 -0
- package/.output/server/chunks/build/entry-styles.DlYZJ_Pu.mjs.map +1 -0
- package/.output/server/chunks/build/index-styles-1.mjs-BYkUF4b0.mjs +4 -0
- package/.output/server/chunks/build/index-styles-1.mjs-BYkUF4b0.mjs.map +1 -0
- package/.output/server/chunks/build/{index-styles.B8HyMUMp.mjs → index-styles.CThHhoy-.mjs} +5 -5
- package/.output/server/chunks/build/index-styles.CThHhoy-.mjs.map +1 -0
- package/.output/server/chunks/build/{pages-BlyLbRim.mjs → pages-BB0Bky-X.mjs} +131 -83
- package/.output/server/chunks/build/pages-BB0Bky-X.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +2 -2
- package/.output/server/chunks/build/styles.mjs +3 -3
- package/.output/server/package.json +1 -1
- package/data/last_session.json +4 -6
- package/data/templates.json +5 -5
- package/package.json +1 -1
- package/.output/public/_nuxt/B5iFSsYY.js +0 -1
- package/.output/public/_nuxt/Bg6GFXoQ.js +0 -54
- package/.output/public/_nuxt/DQuzIJDh.js +0 -110
- package/.output/public/_nuxt/builds/meta/e820845c-d507-4c25-b9e5-704b61faf2e7.json +0 -1
- package/.output/server/chunks/build/LivePreview-styles.BbGT7KVf.mjs +0 -8
- package/.output/server/chunks/build/LivePreview-styles.BbGT7KVf.mjs.map +0 -1
- package/.output/server/chunks/build/TableCard-DfnuVi3k.mjs.map +0 -1
- package/.output/server/chunks/build/entry-styles.Df4dHZbL.mjs +0 -8
- package/.output/server/chunks/build/entry-styles.Df4dHZbL.mjs.map +0 -1
- package/.output/server/chunks/build/index-styles-1.mjs-CBmp9qkk.mjs +0 -4
- package/.output/server/chunks/build/index-styles-1.mjs-CBmp9qkk.mjs.map +0 -1
- package/.output/server/chunks/build/index-styles.B8HyMUMp.mjs.map +0 -1
- package/.output/server/chunks/build/pages-BlyLbRim.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, computed, mergeProps, unref, isRef, nextTick, useSSRContext } from 'vue';
|
|
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, Pause, Volume2, VolumeX } from 'lucide-vue-next';
|
|
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, CheckCircle2, Scissors, Play, ZoomOut, ZoomIn, ShieldAlert, Camera, Search, MoreVertical, Heart, MessageCircle, Share2, Pause, Volume2, VolumeX } from 'lucide-vue-next';
|
|
4
|
+
import { _ as _sfc_main$3 } from './TableCard-J91PndXn.mjs';
|
|
5
5
|
import { _ as _export_sfc } from './server.mjs';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import '../_/nitro.mjs';
|
|
@@ -183,12 +183,13 @@ PANDUAN STANDAR WAJIB ARSITEKTUR TEMPLATE SOCIALGEN:
|
|
|
183
183
|
* Badan kartu (mockup tablet, framed box, kartu list pil/bubble)
|
|
184
184
|
* Sumber data (footerNote) di bagian bawah kartu
|
|
185
185
|
|
|
186
|
-
7. TIPOGRAFI STANDAR 1080px (READABILITY V2.
|
|
187
|
-
- Kanvas beresolusi 1080px lebar.
|
|
188
|
-
* Judul Utama (title): font-size:
|
|
189
|
-
* Subjudul (subtitle): font-size:
|
|
190
|
-
* Teks Kartu Poin (items): font-size:
|
|
191
|
-
* Sumber Data (footerNote): font-size:
|
|
186
|
+
7. TIPOGRAFI STANDAR 1080px (READABILITY V2.5 & FACEBOOK REELS SAFE):
|
|
187
|
+
- Kanvas beresolusi 1080px lebar. Teks HARUS besar dan langsung terbaca di layar HP tanpa zoom:
|
|
188
|
+
* 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
|
+
* Teks Kartu Poin (items): font-size: 25px \u2013 28px (font-weight: 700, line-height: 1.45)
|
|
191
|
+
* Sumber Data (footerNote): font-size: 21px \u2013 22px (font-weight: 600-700)
|
|
192
|
+
* Disclaimer & Callout: font-size: 19px \u2013 20px (font-weight: 600-700)
|
|
192
193
|
|
|
193
194
|
8. MURNI CSS EKSPLISIT DI 'customCss':
|
|
194
195
|
- Karena aplikasi sudah di-compile, jangan mengandalkan arbitrary Tailwind baru (seperti text-[55px] atau bg-[#123456]).
|
|
@@ -383,6 +384,7 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
|
|
|
383
384
|
const mobileSubTab = ref("content");
|
|
384
385
|
const showMobileJsonSheet = ref(false);
|
|
385
386
|
const THEME_SWATCHES = [
|
|
387
|
+
{ id: "custom-palette", name: "\u{1F3A8} Kustom", color: "#8b5cf6" },
|
|
386
388
|
{ id: "blue-tech", name: "Blue Tech", color: "#0284c7" },
|
|
387
389
|
{ id: "emerald-finance", name: "Emerald Finance", color: "#059669" },
|
|
388
390
|
{ id: "slate-education", name: "Slate Education", color: "#64748b" },
|
|
@@ -404,15 +406,24 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
|
|
|
404
406
|
"cyber-violet": "#7c3aed",
|
|
405
407
|
"sunset-orange": "#ea580c",
|
|
406
408
|
"nordic-frost": "#0891b2",
|
|
407
|
-
"monochrome-luxe": "#475569"
|
|
409
|
+
"monochrome-luxe": "#475569",
|
|
410
|
+
"custom-palette": "#8b5cf6"
|
|
408
411
|
};
|
|
412
|
+
const showPaletteModal = ref(false);
|
|
413
|
+
const customPaletteForm = reactive({
|
|
414
|
+
primary: "#8b5cf6",
|
|
415
|
+
secondary: "#ec4899",
|
|
416
|
+
surface: "#1e1145",
|
|
417
|
+
bg: "#0c061d"
|
|
418
|
+
});
|
|
409
419
|
const activeAccentColor = computed(() => {
|
|
410
|
-
var _a2, _b2, _c;
|
|
411
|
-
if ((_a2 = props.modelValue) == null ? void 0 : _a2.
|
|
412
|
-
|
|
420
|
+
var _a2, _b2, _c, _d, _e;
|
|
421
|
+
if ((_b2 = (_a2 = props.modelValue) == null ? void 0 : _a2.palette) == null ? void 0 : _b2.primary) return props.modelValue.palette.primary;
|
|
422
|
+
if ((_c = props.modelValue) == null ? void 0 : _c.accentColor) return props.modelValue.accentColor;
|
|
423
|
+
const theme = ((_d = props.modelValue) == null ? void 0 : _d.theme) || ((_e = props.options) == null ? void 0 : _e.theme) || "blue-tech";
|
|
413
424
|
return THEME_HEX_MAP[theme] || (theme.startsWith("#") ? theme : "#0284c7");
|
|
414
425
|
});
|
|
415
|
-
|
|
426
|
+
computed(() => {
|
|
416
427
|
var _a2, _b2;
|
|
417
428
|
const hex = (activeAccentColor.value || "").trim();
|
|
418
429
|
if (/^#[0-9a-fA-F]{6}$/i.test(hex)) {
|
|
@@ -441,6 +452,7 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
|
|
|
441
452
|
return "\u{1F3A8}";
|
|
442
453
|
}
|
|
443
454
|
const themeOptions = [
|
|
455
|
+
{ id: "custom-palette", name: "\u{1F3A8} Kustom (Palette Manager)", bgClass: "bg-gradient-to-tr from-violet-600 via-fuchsia-600 to-amber-500 border-violet-400" },
|
|
444
456
|
{ id: "dark-contrast", name: "Dark Contrast (Universal Bold)", bgClass: "bg-slate-950 border-slate-700" },
|
|
445
457
|
{ id: "blue-tech", name: "Blue Tech (AI & Software)", bgClass: "bg-blue-900 border-blue-600" },
|
|
446
458
|
{ id: "emerald-finance", name: "Emerald Finance (Salaries & Living)", bgClass: "bg-emerald-900 border-emerald-600" },
|
|
@@ -471,7 +483,7 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
|
|
|
471
483
|
}
|
|
472
484
|
}
|
|
473
485
|
return (_ctx, _push, _parent, _attrs) => {
|
|
474
|
-
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
486
|
+
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
|
475
487
|
_push(`<div${ssrRenderAttrs(mergeProps({ class: "flex flex-col gap-3 text-slate-100" }, _attrs))}>`);
|
|
476
488
|
if (unref(showNicheModal)) {
|
|
477
489
|
_push(`<div class="fixed inset-0 z-50 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4"><div class="bg-slate-900 border border-slate-700 rounded-3xl max-w-xl w-full p-5 shadow-2xl flex flex-col gap-4 text-xs max-h-[90vh] overflow-y-auto custom-scrollbar"><div class="flex items-center justify-between pb-3 border-b border-slate-800"><div><h3 class="text-sm font-black text-white flex items-center gap-2">`);
|
|
@@ -513,6 +525,33 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
|
|
|
513
525
|
} else {
|
|
514
526
|
_push(`<!---->`);
|
|
515
527
|
}
|
|
528
|
+
if (unref(showPaletteModal)) {
|
|
529
|
+
_push(`<div class="fixed inset-0 z-50 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4"><div class="bg-slate-900 border border-slate-700/80 rounded-3xl max-w-lg w-full p-6 shadow-2xl flex flex-col gap-4 text-xs max-h-[92vh] overflow-y-auto"><div class="flex items-center justify-between pb-3 border-b border-slate-800"><div><h3 class="text-base font-black text-white flex items-center gap-2"><span class="text-lg">\u{1F3A8}</span> Palette Manager & Custom Colors </h3><p class="text-[11px] text-slate-400 mt-0.5"> Kelola paduan warna utama, kontras sekunder, permukaan kartu, dan atmosfer kanvas. </p></div><button class="text-slate-400 hover:text-white p-1 rounded-lg hover:bg-slate-800 transition">`);
|
|
530
|
+
_push(ssrRenderComponent(unref(X), { class: "w-5 h-5" }, null, _parent));
|
|
531
|
+
_push(`</button></div><div class="grid grid-cols-2 gap-3"><div class="p-3 bg-slate-950/60 border border-slate-800 rounded-2xl flex flex-col gap-2"><div class="flex items-center justify-between"><span class="text-[10px] font-black uppercase text-slate-400">1. Warna Utama (Primary)</span><span class="text-[9px] text-sky-400 font-bold">Subtitle & Badge</span></div><div class="flex items-center gap-2.5"><label class="relative flex items-center justify-center w-10 h-10 rounded-xl border-2 border-slate-700 hover:border-sky-400 cursor-pointer shadow-md transition overflow-hidden shrink-0" style="${ssrRenderStyle({ backgroundColor: unref(customPaletteForm).primary })}" title="Pilih Warna Utama"><input type="color"${ssrRenderAttr("value", unref(customPaletteForm).primary)} class="absolute inset-0 opacity-0 w-full h-full cursor-pointer"></label><input type="text"${ssrRenderAttr("value", unref(customPaletteForm).primary)} class="w-full bg-slate-900 border border-slate-800 rounded-xl px-2.5 py-1.5 font-mono text-xs text-white font-bold focus:outline-none focus:border-sky-500 uppercase" placeholder="#8B5CF6" maxlength="7"></div></div><div class="p-3 bg-slate-950/60 border border-slate-800 rounded-2xl flex flex-col gap-2"><div class="flex items-center justify-between"><span class="text-[10px] font-black uppercase text-slate-400">2. Warna Sekunder (Kontras)</span><span class="text-[9px] text-fuchsia-400 font-bold">Kolom Kanan / VS</span></div><div class="flex items-center gap-2.5"><label class="relative flex items-center justify-center w-10 h-10 rounded-xl border-2 border-slate-700 hover:border-sky-400 cursor-pointer shadow-md transition overflow-hidden shrink-0" style="${ssrRenderStyle({ backgroundColor: unref(customPaletteForm).secondary })}" title="Pilih Warna Sekunder"><input type="color"${ssrRenderAttr("value", unref(customPaletteForm).secondary)} class="absolute inset-0 opacity-0 w-full h-full cursor-pointer"></label><input type="text"${ssrRenderAttr("value", unref(customPaletteForm).secondary)} class="w-full bg-slate-900 border border-slate-800 rounded-xl px-2.5 py-1.5 font-mono text-xs text-white font-bold focus:outline-none focus:border-sky-500 uppercase" placeholder="#EC4899" maxlength="7"></div></div><div class="p-3 bg-slate-950/60 border border-slate-800 rounded-2xl flex flex-col gap-2"><div class="flex items-center justify-between"><span class="text-[10px] font-black uppercase text-slate-400">3. Kartu (Surface Tint)</span><span class="text-[9px] text-indigo-400 font-bold">Latar Kotak</span></div><div class="flex items-center gap-2.5"><label class="relative flex items-center justify-center w-10 h-10 rounded-xl border-2 border-slate-700 hover:border-sky-400 cursor-pointer shadow-md transition overflow-hidden shrink-0" style="${ssrRenderStyle({ backgroundColor: unref(customPaletteForm).surface })}" title="Pilih Warna Kartu"><input type="color"${ssrRenderAttr("value", unref(customPaletteForm).surface)} class="absolute inset-0 opacity-0 w-full h-full cursor-pointer"></label><input type="text"${ssrRenderAttr("value", unref(customPaletteForm).surface)} class="w-full bg-slate-900 border border-slate-800 rounded-xl px-2.5 py-1.5 font-mono text-xs text-white font-bold focus:outline-none focus:border-sky-500 uppercase" placeholder="#1E1145" maxlength="7"></div></div><div class="p-3 bg-slate-950/60 border border-slate-800 rounded-2xl flex flex-col gap-2"><div class="flex items-center justify-between"><span class="text-[10px] font-black uppercase text-slate-400">4. Atmosfer Kanvas (Bg)</span><span class="text-[9px] text-slate-400 font-bold">Gradasi Gelap</span></div><div class="flex items-center gap-2.5"><label class="relative flex items-center justify-center w-10 h-10 rounded-xl border-2 border-slate-700 hover:border-sky-400 cursor-pointer shadow-md transition overflow-hidden shrink-0" style="${ssrRenderStyle({ backgroundColor: unref(customPaletteForm).bg })}" title="Pilih Warna Latar Kanvas"><input type="color"${ssrRenderAttr("value", unref(customPaletteForm).bg)} class="absolute inset-0 opacity-0 w-full h-full cursor-pointer"></label><input type="text"${ssrRenderAttr("value", unref(customPaletteForm).bg)} class="w-full bg-slate-900 border border-slate-800 rounded-xl px-2.5 py-1.5 font-mono text-xs text-white font-bold focus:outline-none focus:border-sky-500 uppercase" placeholder="#0C061D" maxlength="7"></div></div></div><button type="button" class="w-full py-2 px-3 rounded-2xl bg-gradient-to-r from-violet-600/30 via-fuchsia-600/30 to-amber-500/30 border border-violet-500/40 hover:border-violet-400 text-violet-200 font-bold text-xs flex items-center justify-center gap-2 transition hover:scale-[1.01] active:scale-[0.99] shadow-md"><span>\u26A1 Auto-Harmonize dari Warna Utama</span></button><div class="flex flex-col gap-2"><span class="text-[10px] font-black uppercase tracking-wider text-slate-400">Inspirasi Komposisi Warna:</span><div class="flex flex-wrap gap-1.5"><!--[-->`);
|
|
532
|
+
ssrRenderList([
|
|
533
|
+
{ name: "Cyber Neon", primary: "#00f5d4", secondary: "#f72585", surface: "#131127", bg: "#080711" },
|
|
534
|
+
{ name: "Royal Gold", primary: "#fbbf24", secondary: "#38bdf8", surface: "#20180a", bg: "#0a0803" },
|
|
535
|
+
{ name: "Synthwave", primary: "#c084fc", secondary: "#f43f5e", surface: "#1e1145", bg: "#0b051b" },
|
|
536
|
+
{ name: "Emerald Luxe", primary: "#10b981", secondary: "#fbbf24", surface: "#052e25", bg: "#021410" },
|
|
537
|
+
{ name: "Crimson Shock", primary: "#f43f5e", secondary: "#fb923c", surface: "#300713", bg: "#130206" }
|
|
538
|
+
], (combo) => {
|
|
539
|
+
_push(`<button type="button" class="px-2.5 py-1.5 rounded-xl border border-slate-800 hover:border-slate-600 bg-slate-950 flex items-center gap-2 text-[11px] font-semibold text-slate-300 transition hover:bg-slate-800"><div class="flex items-center -space-x-1"><span class="w-3 h-3 rounded-full border border-black/40" style="${ssrRenderStyle({ backgroundColor: combo.primary })}"></span><span class="w-3 h-3 rounded-full border border-black/40" style="${ssrRenderStyle({ backgroundColor: combo.secondary })}"></span><span class="w-3 h-3 rounded-full border border-black/40" style="${ssrRenderStyle({ backgroundColor: combo.surface })}"></span></div><span>${ssrInterpolate(combo.name)}</span></button>`);
|
|
540
|
+
});
|
|
541
|
+
_push(`<!--]--></div></div><div class="p-3.5 rounded-2xl border transition shadow-inner relative overflow-hidden" style="${ssrRenderStyle({
|
|
542
|
+
background: `radial-gradient(circle at 50% 20%, ${unref(customPaletteForm).surface} 0%, ${unref(customPaletteForm).bg} 100%)`,
|
|
543
|
+
borderColor: `${unref(customPaletteForm).primary}44`
|
|
544
|
+
})}"><div class="flex items-center justify-between mb-2"><span class="text-[9px] font-black uppercase px-2 py-0.5 rounded-full border" style="${ssrRenderStyle({
|
|
545
|
+
backgroundColor: `${unref(customPaletteForm).primary}22`,
|
|
546
|
+
borderColor: `${unref(customPaletteForm).primary}66`,
|
|
547
|
+
color: unref(customPaletteForm).primary
|
|
548
|
+
})}"> PREVIEW PALETTE </span><span class="text-[9px] font-bold" style="${ssrRenderStyle({ color: unref(customPaletteForm).secondary })}"> KOLOM KANAN \u2605 </span></div><div class="p-2.5 rounded-xl border" style="${ssrRenderStyle({
|
|
549
|
+
backgroundColor: `${unref(customPaletteForm).surface}ee`,
|
|
550
|
+
borderColor: `${unref(customPaletteForm).primary}55`
|
|
551
|
+
})}"><h4 class="text-xs font-black text-white">Pratinjau Judul Konten</h4><p class="text-[10px] font-bold mt-0.5" style="${ssrRenderStyle({ color: unref(customPaletteForm).primary })}"> Subjudul mengikuti Warna Utama </p></div></div><div class="flex items-center justify-end gap-2.5 pt-3 border-t border-slate-800"><button type="button" class="px-4 py-2 rounded-xl text-slate-400 hover:text-white font-bold text-xs hover:bg-slate-800 transition"> Batal </button><button type="button" class="px-5 py-2.5 rounded-xl bg-gradient-to-r from-sky-500 via-indigo-600 to-purple-600 hover:from-sky-400 hover:to-indigo-500 text-white font-black text-xs shadow-lg transition hover:scale-[1.02] active:scale-[0.98]"> Terapkan Palette Ini </button></div></div></div>`);
|
|
552
|
+
} else {
|
|
553
|
+
_push(`<!---->`);
|
|
554
|
+
}
|
|
516
555
|
if (unref(showTemplateModal)) {
|
|
517
556
|
_push(`<div class="fixed inset-0 z-50 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4"><div class="bg-slate-900 border border-slate-700 rounded-3xl max-w-2xl w-full p-5 shadow-2xl flex flex-col gap-4 text-xs max-h-[92vh] overflow-hidden"><div class="flex items-center justify-between pb-3 border-b border-slate-800"><div><h3 class="text-sm font-black text-white flex items-center gap-2">`);
|
|
518
557
|
_push(ssrRenderComponent(unref(LayoutTemplate), { class: "w-4 h-4 text-sky-400" }, null, _parent));
|
|
@@ -666,23 +705,20 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
|
|
|
666
705
|
ssrRenderList(unref(templatesList), (t) => {
|
|
667
706
|
_push(`<button type="button" class="${ssrRenderClass([unref(selectedTemplateId) === t.id ? "bg-slate-950 border-sky-500 shadow-lg shadow-sky-500/20" : "bg-slate-950/70 border-slate-800 hover:border-slate-700", "shrink-0 w-28 p-2.5 rounded-2xl border text-center flex flex-col items-center gap-1.5 transition active:scale-95"])}"><div class="w-8 h-8 rounded-xl bg-slate-800 flex items-center justify-center text-sm shadow">${ssrInterpolate(getTemplateIcon(t.layoutType, t.id))}</div><span class="text-[10px] font-black text-white leading-tight truncate w-full">${ssrInterpolate(t.name)}</span><span class="${ssrRenderClass([t.isBuiltin ? "bg-slate-800 text-slate-400" : "bg-purple-950 text-purple-300 border border-purple-800", "text-[8px] font-bold px-1.5 py-0.2 rounded uppercase tracking-wider"])}">${ssrInterpolate(t.isBuiltin ? t.category : "\u2B50 Kustom")}</span></button>`);
|
|
668
707
|
});
|
|
669
|
-
_push(`<!--]--></div></div><div class="p-3.5 bg-slate-900/90 border border-slate-800 rounded-2xl space-y-2.5 shadow-md"><div class="flex items-center justify-between"><span class="text-xs font-extrabold text-white">Tema
|
|
708
|
+
_push(`<!--]--></div></div><div class="p-3.5 bg-slate-900/90 border border-slate-800 rounded-2xl space-y-2.5 shadow-md"><div class="flex items-center justify-between"><span class="text-xs font-extrabold text-white">Tema & Palette Warna</span><span class="text-[10px] text-sky-400 font-bold truncate max-w-[150px]">${ssrInterpolate(__props.modelValue.theme === "custom-palette" ? "\u{1F3A8} Kustom" : ((_e = THEME_SWATCHES.find((s) => s.id === (__props.modelValue.theme || "blue-tech"))) == null ? void 0 : _e.name) || __props.modelValue.theme || "Blue Tech")}</span></div><div class="grid grid-cols-6 gap-2 py-1"><!--[-->`);
|
|
670
709
|
ssrRenderList(THEME_SWATCHES, (swatch) => {
|
|
671
|
-
_push(`<button type="button" class="flex flex-col items-center gap-1 p-1 rounded-xl transition"${ssrRenderAttr("title", swatch.name)}><div class="${ssrRenderClass([
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
{ name: "Pure White", hex: "#ffffff" }
|
|
682
|
-
], (chip) => {
|
|
683
|
-
_push(`<button type="button" class="${ssrRenderClass([unref(safePickerHex).toLowerCase() === chip.hex.toLowerCase() ? "ring-2 ring-white ring-offset-1 ring-offset-slate-950 scale-105" : "", "w-5 h-5 rounded-full border border-white/20 transition-transform active:scale-90 hover:scale-110 shadow-sm shrink-0"])}" style="${ssrRenderStyle({ backgroundColor: chip.hex })}"${ssrRenderAttr("title", chip.name + " (" + chip.hex + ")")}></button>`);
|
|
710
|
+
_push(`<button type="button" class="flex flex-col items-center gap-1 p-1 rounded-xl transition"${ssrRenderAttr("title", swatch.name)}><div class="${ssrRenderClass([[
|
|
711
|
+
swatch.id === "custom-palette" ? "bg-gradient-to-tr from-violet-600 via-fuchsia-600 to-amber-500" : "",
|
|
712
|
+
__props.modelValue.theme === swatch.id ? "ring-2 ring-white ring-offset-2 ring-offset-slate-950 scale-105" : "border-white/10 hover:border-white/40"
|
|
713
|
+
], "w-7 h-7 rounded-full border-2 transition transform active:scale-90 flex items-center justify-center text-[11px]"])}" style="${ssrRenderStyle(swatch.id !== "custom-palette" ? { backgroundColor: swatch.color } : {})}">`);
|
|
714
|
+
if (swatch.id === "custom-palette") {
|
|
715
|
+
_push(`<span class="drop-shadow">\u{1F3A8}</span>`);
|
|
716
|
+
} else {
|
|
717
|
+
_push(`<!---->`);
|
|
718
|
+
}
|
|
719
|
+
_push(`</div><span class="text-[8px] text-slate-400 truncate w-full text-center">${ssrInterpolate(swatch.name.split(" ")[0])}</span></button>`);
|
|
684
720
|
});
|
|
685
|
-
_push(`<!--]--></div></div
|
|
721
|
+
_push(`<!--]--></div></div><div class="p-3.5 bg-slate-900/90 border border-slate-800 rounded-2xl flex flex-col gap-3 shadow-md"><div class="flex items-center justify-between"><div class="flex flex-col"><span class="text-xs font-bold text-white">Buat Template Kustom</span><span class="text-[10px] text-slate-400">Punya referensi kartu baru? Tambahkan ke sistem.</span></div><button type="button" class="px-3 py-1.5 rounded-xl bg-gradient-to-r from-sky-600 to-indigo-600 hover:from-sky-500 text-white text-xs font-bold shadow flex items-center gap-1.5 active:scale-95 transition">`);
|
|
686
722
|
_push(ssrRenderComponent(unref(Plus), { class: "w-3.5 h-3.5" }, null, _parent));
|
|
687
723
|
_push(`<span>+ Buat Template</span></button></div><div class="pt-2.5 border-t border-slate-800/80 flex items-center justify-between gap-2"><span class="text-[10px] text-slate-400 flex items-center gap-1"><span>\u{1F916} Prompt AI Buat Template</span></span><div class="flex items-center gap-1.5"><button type="button" class="px-2.5 py-1 rounded-lg bg-sky-600/20 hover:bg-sky-600/40 text-sky-300 text-[10px] font-bold border border-sky-500/30 flex items-center gap-1 transition active:scale-95">`);
|
|
688
724
|
_push(ssrRenderComponent(unref(Copy), { class: "w-3 h-3" }, null, _parent));
|
|
@@ -716,7 +752,7 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
|
|
|
716
752
|
ssrRenderList([7, 10, 15, 30, 60], (d) => {
|
|
717
753
|
_push(`<button type="button" class="${ssrRenderClass([__props.modelValue.reelsDuration === d ? "bg-emerald-500 text-white shadow" : "bg-slate-950 text-slate-400 border border-slate-800", "px-2.5 py-1 rounded-xl text-xs font-bold transition"])}">${ssrInterpolate(d)}s </button>`);
|
|
718
754
|
});
|
|
719
|
-
_push(`<!--]--></div></div><div class="p-3 bg-slate-900/90 border border-slate-800 rounded-2xl space-y-1.5 shadow-md"><span class="text-[11px] font-bold text-slate-400 uppercase tracking-wider block">Format Output Aktif</span><div class="grid grid-cols-3 gap-2"><label class="${ssrRenderClass([((
|
|
755
|
+
_push(`<!--]--></div></div><div class="p-3 bg-slate-900/90 border border-slate-800 rounded-2xl space-y-1.5 shadow-md"><span class="text-[11px] font-bold text-slate-400 uppercase tracking-wider block">Format Output Aktif</span><div class="grid grid-cols-3 gap-2"><label class="${ssrRenderClass([((_f = __props.options.outputs) == null ? void 0 : _f.feed) !== false ? "bg-sky-500/10 border-sky-500/40 text-sky-200" : "bg-slate-950 border-slate-800 text-slate-500", "flex items-center gap-1.5 p-2 rounded-xl border text-xs cursor-pointer select-none"])}"><input type="checkbox"${ssrIncludeBooleanAttr(((_g = __props.options.outputs) == null ? void 0 : _g.feed) !== false) ? " checked" : ""} class="rounded text-sky-500"><span class="font-bold">Feed 4:5</span></label><label class="${ssrRenderClass([((_h = __props.options.outputs) == null ? void 0 : _h.story) !== false ? "bg-indigo-500/10 border-indigo-500/40 text-indigo-200" : "bg-slate-950 border-slate-800 text-slate-500", "flex items-center gap-1.5 p-2 rounded-xl border text-xs cursor-pointer select-none"])}"><input type="checkbox"${ssrIncludeBooleanAttr(((_i = __props.options.outputs) == null ? void 0 : _i.story) !== false) ? " checked" : ""} class="rounded text-indigo-500"><span class="font-bold">Story 9:16</span></label><label class="${ssrRenderClass([((_j = __props.options.outputs) == null ? void 0 : _j.reels) !== false ? "bg-emerald-500/10 border-emerald-500/40 text-emerald-200" : "bg-slate-950 border-slate-800 text-slate-500", "flex items-center gap-1.5 p-2 rounded-xl border text-xs cursor-pointer select-none"])}"><input type="checkbox"${ssrIncludeBooleanAttr(((_k = __props.options.outputs) == null ? void 0 : _k.reels) !== false) ? " checked" : ""} class="rounded text-emerald-500"><span class="font-bold">Reels MP4</span></label></div></div></div>`);
|
|
720
756
|
} else if (unref(mobileSubTab) === "ai") {
|
|
721
757
|
_push(`<div class="flex flex-col gap-3"><div class="p-4 rounded-3xl bg-gradient-to-br from-indigo-950/80 via-slate-900 to-sky-950/80 border border-sky-500/30 space-y-3 shadow-xl"><div class="flex items-center justify-between"><span class="text-xs font-black text-sky-300 uppercase tracking-wider flex items-center gap-1.5">`);
|
|
722
758
|
_push(ssrRenderComponent(unref(Sparkles), { class: "w-4 h-4 text-sky-400" }, null, _parent));
|
|
@@ -791,12 +827,12 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
|
|
|
791
827
|
if (unref(jsonFormatError)) {
|
|
792
828
|
_push(`<span>${ssrInterpolate(unref(jsonFormatError))}</span>`);
|
|
793
829
|
} else if (unref(mismatchState)) {
|
|
794
|
-
_push(`<span>JSON untuk template: <b>${ssrInterpolate(((
|
|
830
|
+
_push(`<span>JSON untuk template: <b>${ssrInterpolate(((_l = unref(mismatchState).matchedTarget) == null ? void 0 : _l.name) || unref(mismatchState).jsonTemplateId)}</b></span>`);
|
|
795
831
|
} else {
|
|
796
832
|
_push(`<span>${ssrInterpolate(__props.validationError)}</span>`);
|
|
797
833
|
}
|
|
798
834
|
_push(`</span></div>`);
|
|
799
|
-
if (((
|
|
835
|
+
if (((_m = unref(mismatchState)) == null ? void 0 : _m.isKnown) && unref(mismatchState).matchedTarget) {
|
|
800
836
|
_push(`<button type="button" class="px-2 py-0.5 rounded-lg bg-amber-500 text-slate-950 font-bold text-[10px] shrink-0 active:scale-95 shadow"> Ganti Template </button>`);
|
|
801
837
|
} else {
|
|
802
838
|
_push(`<!---->`);
|
|
@@ -929,12 +965,12 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
|
|
|
929
965
|
_push(ssrRenderComponent(unref(Code), { class: "w-2.5 h-2.5" }, null, _parent));
|
|
930
966
|
_push(`<span>Format</span></button><button class="px-2 py-1 rounded-lg bg-sky-950/60 border border-sky-500/40 text-sky-300 text-[10px] font-bold hover:bg-sky-900/50 transition flex items-center gap-1" title="Clear / Pakai Sample">`);
|
|
931
967
|
_push(ssrRenderComponent(unref(RotateCcw), { class: "w-2.5 h-2.5" }, null, _parent));
|
|
932
|
-
_push(`<span>Sample</span></button></div></div><div class="flex-1 overflow-y-auto p-3 space-y-3.5 custom-scrollbar"><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"><label class="text-[10px] font-black uppercase tracking-wider text-slate-400">Palette Tema & Aksen</label><span class="text-[10px] font-bold text-sky-400 truncate max-w-[170px]">${ssrInterpolate(((
|
|
933
|
-
ssrRenderList(themeOptions, (swatch) => {
|
|
968
|
+
_push(`<span>Sample</span></button></div></div><div class="flex-1 overflow-y-auto p-3 space-y-3.5 custom-scrollbar"><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"><label class="text-[10px] font-black uppercase tracking-wider text-slate-400">Palette Tema & Aksen</label><span class="text-[10px] font-bold text-sky-400 truncate max-w-[170px]">${ssrInterpolate(__props.modelValue.theme === "custom-palette" ? "\u{1F3A8} Kustom Palette" : ((_n = themeOptions.find((t) => t.id === (__props.modelValue.theme || "blue-tech"))) == null ? void 0 : _n.name) || __props.modelValue.theme || "Blue Tech")}</span></div><div class="grid grid-cols-6 gap-1.5"><button type="button" class="${ssrRenderClass([__props.modelValue.theme === "custom-palette" ? "border-2 border-violet-400 ring-2 ring-violet-400/40 scale-105 bg-gradient-to-tr from-violet-600 via-fuchsia-600 to-amber-500 text-white" : "border-slate-700 bg-slate-800 hover:border-violet-400 text-violet-300", "h-7 rounded-lg transition border flex items-center justify-center shadow font-bold text-xs group relative overflow-hidden"])}" title="\u{1F3A8} Buka Palette Manager Kustom"><span class="drop-shadow">\u{1F3A8}</span></button><!--[-->`);
|
|
969
|
+
ssrRenderList(themeOptions.filter((t) => t.id !== "custom-palette"), (swatch) => {
|
|
934
970
|
_push(`<button type="button" class="${ssrRenderClass([[
|
|
935
971
|
swatch.bgClass,
|
|
936
972
|
(__props.modelValue.theme || "blue-tech") === swatch.id ? "border-2 border-sky-400 ring-2 ring-sky-400/30 scale-105" : "border-slate-800 hover:border-slate-600"
|
|
937
|
-
], "h-
|
|
973
|
+
], "h-7 rounded-lg transition border flex items-center justify-center shadow"])}"${ssrRenderAttr("title", swatch.name)}>`);
|
|
938
974
|
if ((__props.modelValue.theme || "blue-tech") === swatch.id) {
|
|
939
975
|
_push(ssrRenderComponent(unref(Check), { class: "w-3 h-3 text-white" }, null, _parent));
|
|
940
976
|
} else {
|
|
@@ -942,19 +978,7 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
|
|
|
942
978
|
}
|
|
943
979
|
_push(`</button>`);
|
|
944
980
|
});
|
|
945
|
-
_push(`<!--]--></div><div class="
|
|
946
|
-
ssrRenderList([
|
|
947
|
-
{ name: "Gold", hex: "#f59e0b" },
|
|
948
|
-
{ name: "Emerald", hex: "#10b981" },
|
|
949
|
-
{ name: "Sky", hex: "#0284c7" },
|
|
950
|
-
{ name: "Rose", hex: "#f43f5e" },
|
|
951
|
-
{ name: "Violet", hex: "#8b5cf6" },
|
|
952
|
-
{ name: "Orange", hex: "#f97316" },
|
|
953
|
-
{ name: "Pure White", hex: "#ffffff" }
|
|
954
|
-
], (chip) => {
|
|
955
|
-
_push(`<button type="button" class="${ssrRenderClass([unref(safePickerHex).toLowerCase() === chip.hex.toLowerCase() ? "ring-2 ring-white ring-offset-1 ring-offset-slate-950 scale-105" : "", "w-5 h-5 rounded-full border border-white/20 transition-transform active:scale-90 hover:scale-110 shadow-sm shrink-0"])}" style="${ssrRenderStyle({ backgroundColor: chip.hex })}"${ssrRenderAttr("title", chip.name + " (" + chip.hex + ")")}></button>`);
|
|
956
|
-
});
|
|
957
|
-
_push(`<!--]--></div></div></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">`);
|
|
981
|
+
_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">`);
|
|
958
982
|
_push(ssrRenderComponent(unref(Code), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
|
|
959
983
|
_push(`<span>RAW JSON Content</span></label>`);
|
|
960
984
|
if (!unref(jsonFormatError)) {
|
|
@@ -970,7 +994,7 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
|
|
|
970
994
|
if (unref(mismatchState)) {
|
|
971
995
|
_push(`<div class="${ssrRenderClass([unref(mismatchState).isKnown ? "bg-amber-500/10 border-amber-500/30" : "bg-rose-500/10 border-rose-500/30", "p-2 rounded-xl border text-xs transition-all shadow-md flex flex-col gap-1.5"])}"><div class="${ssrRenderClass([unref(mismatchState).isKnown ? "text-amber-300" : "text-rose-300", "flex items-center gap-1.5 text-[11px]"])}"><span>\u26A0\uFE0F</span>`);
|
|
972
996
|
if (unref(mismatchState).isKnown) {
|
|
973
|
-
_push(`<span> Format milik: <b>${ssrInterpolate((
|
|
997
|
+
_push(`<span> Format milik: <b>${ssrInterpolate((_o = unref(mismatchState).matchedTarget) == null ? void 0 : _o.name)}</b></span>`);
|
|
974
998
|
} else {
|
|
975
999
|
_push(`<span> Template "${ssrInterpolate(unref(mismatchState).jsonTemplateId)}" tidak ditemukan. </span>`);
|
|
976
1000
|
}
|
|
@@ -1016,7 +1040,7 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
|
|
|
1016
1040
|
ssrRenderList([7, 10, 15, 30, 60], (d) => {
|
|
1017
1041
|
_push(`<button class="${ssrRenderClass([(__props.modelValue.reelsDuration || 30) === d ? "bg-emerald-500/20 border-emerald-500/60 text-emerald-300" : "bg-slate-950 border-slate-800 text-slate-400 hover:text-white", "px-2 py-0.5 text-[10px] font-bold rounded-lg border transition"])}">${ssrInterpolate(d === 60 ? "1m" : d + "s")}</button>`);
|
|
1018
1042
|
});
|
|
1019
|
-
_push(`<!--]--></div></div><div class="grid grid-cols-3 gap-2 pt-1.5 border-t border-slate-800"><label class="${ssrRenderClass([((
|
|
1043
|
+
_push(`<!--]--></div></div><div class="grid grid-cols-3 gap-2 pt-1.5 border-t border-slate-800"><label class="${ssrRenderClass([((_p = __props.options.outputs) == null ? void 0 : _p.feed) !== false ? "bg-sky-500/10 border-sky-500/40 text-sky-200" : "bg-slate-950/50 border-slate-800 text-slate-500", "flex items-center gap-1.5 p-1.5 rounded-xl border text-[11px] cursor-pointer transition select-none"])}"><input type="checkbox"${ssrIncludeBooleanAttr(((_q = __props.options.outputs) == null ? void 0 : _q.feed) !== false) ? " checked" : ""} class="rounded text-sky-500 focus:ring-0 bg-slate-900 border-slate-700 w-3 h-3"><span class="font-bold">Feed 4:5</span></label><label class="${ssrRenderClass([((_r = __props.options.outputs) == null ? void 0 : _r.story) !== false ? "bg-indigo-500/10 border-indigo-500/40 text-indigo-200" : "bg-slate-950/50 border-slate-800 text-slate-500", "flex items-center gap-1.5 p-1.5 rounded-xl border text-[11px] cursor-pointer transition select-none"])}"><input type="checkbox"${ssrIncludeBooleanAttr(((_s = __props.options.outputs) == null ? void 0 : _s.story) !== false) ? " checked" : ""} class="rounded text-indigo-500 focus:ring-0 bg-slate-900 border-slate-700 w-3 h-3"><span class="font-bold">Story 9:16</span></label><label class="${ssrRenderClass([((_t = __props.options.outputs) == null ? void 0 : _t.reels) !== false ? "bg-emerald-500/10 border-emerald-500/40 text-emerald-200" : "bg-slate-950/50 border-slate-800 text-slate-500", "flex items-center gap-1.5 p-1.5 rounded-xl border text-[11px] cursor-pointer transition select-none"])}"><input type="checkbox"${ssrIncludeBooleanAttr(((_u = __props.options.outputs) == null ? void 0 : _u.reels) !== false) ? " checked" : ""} class="rounded text-emerald-500 focus:ring-0 bg-slate-900 border-slate-700 w-3 h-3"><span class="font-bold">Reels MP4</span></label></div></div></div><div class="p-3 bg-slate-900/90 border-t border-slate-800 shrink-0"><button${ssrIncludeBooleanAttr(!__props.isValid || __props.isGenerating || !!unref(jsonFormatError)) ? " disabled" : ""} class="${ssrRenderClass([[
|
|
1020
1044
|
!__props.isValid || __props.isGenerating || !!unref(jsonFormatError) ? "bg-slate-800 text-slate-500 cursor-not-allowed border border-slate-700" : "bg-gradient-to-r from-sky-500 via-indigo-600 to-purple-600 hover:from-sky-400 hover:to-indigo-500 text-white shadow-sky-500/25 active:scale-[0.99]"
|
|
1021
1045
|
], "w-full py-3 px-4 rounded-xl font-black text-xs tracking-wide shadow-xl transition flex items-center justify-center gap-2"])}">`);
|
|
1022
1046
|
if (__props.isGenerating) {
|
|
@@ -1242,27 +1266,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1242
1266
|
);
|
|
1243
1267
|
return (_ctx, _push, _parent, _attrs) => {
|
|
1244
1268
|
const _component_TableCard = _sfc_main$3;
|
|
1245
|
-
_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-
|
|
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-efc9bb3a>`);
|
|
1246
1270
|
if (__props.isGenerating) {
|
|
1247
|
-
_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-
|
|
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-efc9bb3a><div class="relative flex items-center justify-center mb-5" data-v-efc9bb3a><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-efc9bb3a></div><div class="absolute inset-0 flex items-center justify-center" data-v-efc9bb3a>`);
|
|
1248
1272
|
_push(ssrRenderComponent(unref(Sparkles), { class: "w-8 h-8 text-sky-400 animate-pulse" }, null, _parent));
|
|
1249
|
-
_push(`</div></div><h3 class="text-base font-black text-white tracking-wide mb-1.5" data-v-
|
|
1273
|
+
_push(`</div></div><h3 class="text-base font-black text-white tracking-wide mb-1.5" data-v-efc9bb3a> Sedang Men-generate Konten... </h3><p class="text-xs text-sky-300 font-bold mb-4 flex items-center gap-2" data-v-efc9bb3a><span class="w-2 h-2 rounded-full bg-sky-400 animate-ping" data-v-efc9bb3a></span><span data-v-efc9bb3a>${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-efc9bb3a><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-efc9bb3a></div></div><span class="text-[10px] text-slate-400 font-mono tracking-wider uppercase" data-v-efc9bb3a> Multi-Format Studio Engine \u2022 Mohon Tunggu Sebentar </span></div>`);
|
|
1250
1274
|
} else {
|
|
1251
1275
|
_push(`<!---->`);
|
|
1252
1276
|
}
|
|
1253
|
-
_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-
|
|
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-efc9bb3a><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 text-xs font-bold" data-v-efc9bb3a><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-efc9bb3a> 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-efc9bb3a> 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-efc9bb3a><span data-v-efc9bb3a>Reels 9:16 (Video)</span>`);
|
|
1254
1278
|
if (unref(activeTab) === "reels" && unref(isPlaying)) {
|
|
1255
|
-
_push(`<span class="w-1.5 h-1.5 rounded-full bg-white animate-pulse" data-v-
|
|
1279
|
+
_push(`<span class="w-1.5 h-1.5 rounded-full bg-white animate-pulse" data-v-efc9bb3a></span>`);
|
|
1256
1280
|
} else {
|
|
1257
1281
|
_push(`<!---->`);
|
|
1258
1282
|
}
|
|
1259
|
-
_push(`</button></div><div class="flex items-center gap-2 text-xs" data-v-
|
|
1283
|
+
_push(`</button></div><div class="flex items-center gap-2 text-xs" data-v-efc9bb3a><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 text-xs shadow-inner" data-v-efc9bb3a><button title="Zoom Out (-15%)" class="p-1.5 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition" data-v-efc9bb3a>`);
|
|
1260
1284
|
_push(ssrRenderComponent(unref(ZoomOut), { class: "w-3.5 h-3.5" }, null, _parent));
|
|
1261
|
-
_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-
|
|
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-efc9bb3a>${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-efc9bb3a>`);
|
|
1262
1286
|
_push(ssrRenderComponent(unref(ZoomIn), { class: "w-3.5 h-3.5" }, null, _parent));
|
|
1263
1287
|
_push(`</button>`);
|
|
1264
1288
|
if (unref(zoomScale) !== 1) {
|
|
1265
|
-
_push(`<button title="Reset ke Ukuran Pas" class="p-1.5 rounded-lg text-amber-400 hover:bg-slate-800 transition" data-v-
|
|
1289
|
+
_push(`<button title="Reset ke Ukuran Pas" class="p-1.5 rounded-lg text-amber-400 hover:bg-slate-800 transition" data-v-efc9bb3a>`);
|
|
1266
1290
|
_push(ssrRenderComponent(unref(RotateCcw), { class: "w-3.5 h-3.5" }, null, _parent));
|
|
1267
1291
|
_push(`</button>`);
|
|
1268
1292
|
} else {
|
|
@@ -1270,22 +1294,22 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1270
1294
|
}
|
|
1271
1295
|
_push(`</div>`);
|
|
1272
1296
|
if (unref(activeTab) !== "feed") {
|
|
1273
|
-
_push(`<button class="${ssrRenderClass([unref(showSafeZones) ? "bg-amber-500/20 text-amber-300 border-amber-500/50" : "bg-slate-950 text-slate-400 border-slate-800", "inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg border text-xs font-bold transition"])}" data-v-
|
|
1297
|
+
_push(`<button class="${ssrRenderClass([unref(showSafeZones) ? "bg-amber-500/20 text-amber-300 border-amber-500/50" : "bg-slate-950 text-slate-400 border-slate-800", "inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg border text-xs font-bold transition"])}" data-v-efc9bb3a>`);
|
|
1274
1298
|
_push(ssrRenderComponent(unref(ShieldAlert), { class: "w-3.5 h-3.5" }, null, _parent));
|
|
1275
|
-
_push(`<span class="hidden sm:inline" data-v-
|
|
1299
|
+
_push(`<span class="hidden sm:inline" data-v-efc9bb3a>Safe Zones</span></button>`);
|
|
1276
1300
|
} else {
|
|
1277
1301
|
_push(`<!---->`);
|
|
1278
1302
|
}
|
|
1279
|
-
_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-
|
|
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-efc9bb3a><div class="m-auto flex-shrink-0 relative transition-all duration-200 ease-out" style="${ssrRenderStyle({
|
|
1280
1304
|
width: `${Math.round(unref(baseCanvasWidth) * unref(zoomScale))}px`,
|
|
1281
1305
|
height: `${Math.round(unref(baseCanvasHeight) * unref(zoomScale))}px`
|
|
1282
|
-
})}" data-v-
|
|
1306
|
+
})}" data-v-efc9bb3a><div class="origin-top-left transition-transform duration-200 ease-out absolute top-0 left-0" style="${ssrRenderStyle({
|
|
1283
1307
|
width: `${unref(baseCanvasWidth)}px`,
|
|
1284
1308
|
height: `${unref(baseCanvasHeight)}px`,
|
|
1285
1309
|
transform: `scale(${unref(zoomScale)})`
|
|
1286
|
-
})}" data-v-
|
|
1310
|
+
})}" data-v-efc9bb3a>`);
|
|
1287
1311
|
if (unref(activeTab) === "feed") {
|
|
1288
|
-
_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-
|
|
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-efc9bb3a><div style="width:1080px;height:1350px;transform:scale(0.333333);transform-origin:top left;" data-v-efc9bb3a>`);
|
|
1289
1313
|
_push(ssrRenderComponent(_component_TableCard, {
|
|
1290
1314
|
data: __props.data,
|
|
1291
1315
|
mode: "feed",
|
|
@@ -1293,13 +1317,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1293
1317
|
}, null, _parent));
|
|
1294
1318
|
_push(`</div></div>`);
|
|
1295
1319
|
} else {
|
|
1296
|
-
_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-
|
|
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-efc9bb3a>`);
|
|
1297
1321
|
if (unref(activeTab) === "reels") {
|
|
1298
|
-
_push(`<div class="absolute inset-0 z-0 bg-slate-950 overflow-hidden" data-v-
|
|
1322
|
+
_push(`<div class="absolute inset-0 z-0 bg-slate-950 overflow-hidden" data-v-efc9bb3a><video autoplay muted playsinline class="w-full h-full object-cover brightness-90 contrast-105"${ssrRenderAttr("src", unref(activeVideoSrc))} data-v-efc9bb3a></video><div class="absolute inset-0 bg-slate-950/30 backdrop-blur-[0.5px]" data-v-efc9bb3a></div><audio${ssrRenderAttr("src", unref(activeAudioSrc))}${ssrIncludeBooleanAttr(unref(isMuted)) ? " muted" : ""} data-v-efc9bb3a></audio></div>`);
|
|
1299
1323
|
} else {
|
|
1300
1324
|
_push(`<!---->`);
|
|
1301
1325
|
}
|
|
1302
|
-
_push(`<div class="relative z-10 pointer-events-none" style="width:1080px;height:1920px;transform:scale(0.277778);transform-origin:top left;" data-v-
|
|
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-efc9bb3a>`);
|
|
1303
1327
|
_push(ssrRenderComponent(_component_TableCard, {
|
|
1304
1328
|
data: __props.data,
|
|
1305
1329
|
mode: unref(activeTab) === "reels" ? "overlay" : "story",
|
|
@@ -1307,13 +1331,30 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1307
1331
|
}, null, _parent));
|
|
1308
1332
|
_push(`</div>`);
|
|
1309
1333
|
if (unref(showSafeZones)) {
|
|
1310
|
-
_push(`<div class="absolute inset-0 z-
|
|
1334
|
+
_push(`<div class="absolute inset-0 z-30 pointer-events-none flex flex-col justify-between overflow-hidden select-none" data-v-efc9bb3a>`);
|
|
1311
1335
|
if (unref(activeTab) === "reels") {
|
|
1312
|
-
_push(
|
|
1336
|
+
_push(`<!--[--><div class="h-[52px] bg-gradient-to-b from-black/85 via-black/40 to-transparent px-3 pt-2.5 flex items-center justify-between text-white/90 border-b border-dashed border-red-500/40" data-v-efc9bb3a><div class="flex items-center gap-2" data-v-efc9bb3a><span class="text-xs font-bold tracking-tight" data-v-efc9bb3a>Reels</span><span class="text-[9px] px-1.5 py-0.5 rounded bg-red-500/80 text-white font-mono uppercase tracking-wider font-extrabold" data-v-efc9bb3a>Top 180px UI</span></div><div class="flex items-center gap-3 text-white/80" data-v-efc9bb3a>`);
|
|
1337
|
+
_push(ssrRenderComponent(unref(Camera), { class: "w-3.5 h-3.5" }, null, _parent));
|
|
1338
|
+
_push(ssrRenderComponent(unref(Search), { class: "w-3.5 h-3.5" }, null, _parent));
|
|
1339
|
+
_push(ssrRenderComponent(unref(MoreVertical), { class: "w-3.5 h-3.5" }, null, _parent));
|
|
1340
|
+
_push(`</div></div><div class="absolute right-2 bottom-[130px] flex flex-col items-center gap-3 z-10" data-v-efc9bb3a><div class="flex flex-col items-center gap-0.5" data-v-efc9bb3a><div class="w-7 h-7 rounded-full bg-black/40 backdrop-blur-sm flex items-center justify-center text-white border border-white/10 shadow" data-v-efc9bb3a>`);
|
|
1341
|
+
_push(ssrRenderComponent(unref(Heart), { class: "w-3.5 h-3.5 text-white fill-white/20" }, null, _parent));
|
|
1342
|
+
_push(`</div><span class="text-[9px] font-bold text-white drop-shadow" data-v-efc9bb3a>142K</span></div><div class="flex flex-col items-center gap-0.5" data-v-efc9bb3a><div class="w-7 h-7 rounded-full bg-black/40 backdrop-blur-sm flex items-center justify-center text-white border border-white/10 shadow" data-v-efc9bb3a>`);
|
|
1343
|
+
_push(ssrRenderComponent(unref(MessageCircle), { class: "w-3.5 h-3.5 text-white" }, null, _parent));
|
|
1344
|
+
_push(`</div><span class="text-[9px] font-bold text-white drop-shadow" data-v-efc9bb3a>1.4K</span></div><div class="flex flex-col items-center gap-0.5" data-v-efc9bb3a><div class="w-7 h-7 rounded-full bg-black/40 backdrop-blur-sm flex items-center justify-center text-white border border-white/10 shadow" data-v-efc9bb3a>`);
|
|
1345
|
+
_push(ssrRenderComponent(unref(Share2), { class: "w-3.5 h-3.5 text-white" }, null, _parent));
|
|
1346
|
+
_push(`</div><span class="text-[9px] font-bold text-white drop-shadow" data-v-efc9bb3a>8.9K</span></div><div class="w-7 h-7 rounded-full bg-slate-900 border border-slate-700/80 p-1 flex items-center justify-center animate-spin" style="animation-duration:4s;" data-v-efc9bb3a>`);
|
|
1347
|
+
_push(ssrRenderComponent(unref(Music), { class: "w-3 h-3 text-pink-400" }, null, _parent));
|
|
1348
|
+
_push(`</div></div><div class="h-[122px] bg-gradient-to-t from-black/95 via-black/85 to-transparent px-3 pb-2 pt-4 flex flex-col justify-end gap-1.5 border-t border-dashed border-red-500/50 relative" data-v-efc9bb3a><div class="absolute -top-3 left-3 bg-red-500 text-white font-mono text-[8px] font-extrabold px-1.5 py-0.5 rounded shadow" data-v-efc9bb3a> FB REELS UI ZONE (Bottom 440px) </div><div class="flex items-center gap-2" data-v-efc9bb3a><div class="w-5 h-5 rounded-full bg-blue-600 border border-white/40 flex items-center justify-center text-[9px] font-black text-white flex-shrink-0" data-v-efc9bb3a> SG </div><span class="text-[10px] font-bold text-white truncate max-w-[140px] drop-shadow" data-v-efc9bb3a>@creator_account</span><span class="text-[9px] px-1.5 py-0.2 rounded-full border border-white/40 text-white font-bold bg-white/10" data-v-efc9bb3a>Ikuti</span></div><p class="text-[9px] text-white/90 line-clamp-2 leading-tight drop-shadow pr-10" data-v-efc9bb3a> Informasi terpercaya hari ini! Simak detail lengkapnya pada visual di atas... <span class="text-white/60 font-semibold cursor-pointer" data-v-efc9bb3a>Lainnya</span></p><div class="flex items-center gap-1.5 text-[8px] text-white/80 pr-10" data-v-efc9bb3a>`);
|
|
1349
|
+
_push(ssrRenderComponent(unref(Music), { class: "w-2.5 h-2.5 flex-shrink-0 text-pink-300" }, null, _parent));
|
|
1350
|
+
_push(`<span class="truncate" data-v-efc9bb3a>Suara Asli \u2022 Tren Terpopuler Hari Ini</span></div><div class="w-full h-0.5 bg-white/30 rounded-full mt-1 overflow-hidden" data-v-efc9bb3a><div class="h-full bg-white rounded-full w-2/5" data-v-efc9bb3a></div></div></div><!--]-->`);
|
|
1313
1351
|
} else {
|
|
1314
|
-
_push(
|
|
1352
|
+
_push(`<!--[--><div class="h-[52px] bg-gradient-to-b from-black/75 to-transparent px-3 pt-2 flex flex-col justify-between border-b border-dashed border-red-500/40" data-v-efc9bb3a><div class="flex gap-1 w-full" data-v-efc9bb3a><div class="h-0.5 flex-1 bg-white rounded-full" data-v-efc9bb3a></div><div class="h-0.5 flex-1 bg-white/40 rounded-full" data-v-efc9bb3a></div><div class="h-0.5 flex-1 bg-white/40 rounded-full" data-v-efc9bb3a></div></div><div class="flex items-center justify-between text-white pb-1" data-v-efc9bb3a><div class="flex items-center gap-1.5" data-v-efc9bb3a><div class="w-4 h-4 rounded-full bg-gradient-to-tr from-amber-500 to-rose-500 p-0.5" data-v-efc9bb3a><div class="w-full h-full bg-black rounded-full" data-v-efc9bb3a></div></div><span class="text-[9px] font-bold" data-v-efc9bb3a>akunkreator</span><span class="text-[8px] text-white/60" data-v-efc9bb3a>2j</span></div><span class="text-[9px] px-1.5 py-0.5 rounded bg-red-500/80 text-white font-mono uppercase tracking-wider font-extrabold" data-v-efc9bb3a>Top Safe Zone</span></div></div><div class="h-[56px] bg-gradient-to-t from-black/80 to-transparent px-3 pb-2 flex items-center justify-between gap-2 border-t border-dashed border-red-500/50 relative" data-v-efc9bb3a><div class="absolute -top-3 left-3 bg-red-500 text-white font-mono text-[8px] font-extrabold px-1.5 py-0.5 rounded shadow" data-v-efc9bb3a> STORY REPLY ZONE </div><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-efc9bb3a> Kirim pesan... </div>`);
|
|
1353
|
+
_push(ssrRenderComponent(unref(Heart), { class: "w-4 h-4 text-white/80" }, null, _parent));
|
|
1354
|
+
_push(ssrRenderComponent(unref(Share2), { class: "w-4 h-4 text-white/80" }, null, _parent));
|
|
1355
|
+
_push(`</div><!--]-->`);
|
|
1315
1356
|
}
|
|
1316
|
-
_push(`</div
|
|
1357
|
+
_push(`</div>`);
|
|
1317
1358
|
} else {
|
|
1318
1359
|
_push(`<!---->`);
|
|
1319
1360
|
}
|
|
@@ -1321,27 +1362,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1321
1362
|
}
|
|
1322
1363
|
_push(`</div></div></div>`);
|
|
1323
1364
|
if (unref(activeTab) === "reels") {
|
|
1324
|
-
_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-
|
|
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-efc9bb3a><div class="flex items-center justify-between gap-3" data-v-efc9bb3a><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-efc9bb3a>`);
|
|
1325
1366
|
if (unref(isPlaying)) {
|
|
1326
1367
|
_push(ssrRenderComponent(unref(Pause), { class: "w-3.5 h-3.5 fill-current" }, null, _parent));
|
|
1327
1368
|
} else {
|
|
1328
1369
|
_push(ssrRenderComponent(unref(Play), { class: "w-3.5 h-3.5 fill-current" }, null, _parent));
|
|
1329
1370
|
}
|
|
1330
|
-
_push(`<span class="text-[11px] hidden sm:inline" data-v-
|
|
1371
|
+
_push(`<span class="text-[11px] hidden sm:inline" data-v-efc9bb3a>${ssrInterpolate(unref(isPlaying) ? "Pause" : "Play")}</span></button><div class="flex-1 flex items-center gap-2" data-v-efc9bb3a><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-efc9bb3a><span class="font-mono text-[11px] font-bold text-slate-300 min-w-[75px] text-right" data-v-efc9bb3a>${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-efc9bb3a>`);
|
|
1331
1372
|
if (!unref(isMuted)) {
|
|
1332
1373
|
_push(ssrRenderComponent(unref(Volume2), { class: "w-3.5 h-3.5 text-purple-300 animate-pulse" }, null, _parent));
|
|
1333
1374
|
} else {
|
|
1334
1375
|
_push(ssrRenderComponent(unref(VolumeX), { class: "w-3.5 h-3.5" }, null, _parent));
|
|
1335
1376
|
}
|
|
1336
|
-
_push(`<span data-v-
|
|
1377
|
+
_push(`<span data-v-efc9bb3a>${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-efc9bb3a>`);
|
|
1337
1378
|
_push(ssrRenderComponent(unref(Scissors), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
|
|
1338
|
-
_push(`<span class="hidden sm:inline" data-v-
|
|
1379
|
+
_push(`<span class="hidden sm:inline" data-v-efc9bb3a>Trim Offset</span></button></div>`);
|
|
1339
1380
|
if (unref(showOffsetEditor)) {
|
|
1340
|
-
_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-
|
|
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-efc9bb3a><div class="flex flex-col gap-1.5" data-v-efc9bb3a><div class="flex items-center justify-between text-[11px]" data-v-efc9bb3a><span class="font-bold text-sky-300 flex items-center gap-1" data-v-efc9bb3a>`);
|
|
1341
1382
|
_push(ssrRenderComponent(unref(Film), { class: "w-3 h-3" }, null, _parent));
|
|
1342
|
-
_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-
|
|
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-efc9bb3a> 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-efc9bb3a><div class="text-[9px] text-slate-500" data-v-efc9bb3a> 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-efc9bb3a><div class="flex items-center justify-between text-[11px]" data-v-efc9bb3a><span class="font-bold text-purple-300 flex items-center gap-1" data-v-efc9bb3a>`);
|
|
1343
1384
|
_push(ssrRenderComponent(unref(Music), { class: "w-3 h-3" }, null, _parent));
|
|
1344
|
-
_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-
|
|
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-efc9bb3a> (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-efc9bb3a><div class="text-[9px] text-slate-500" data-v-efc9bb3a> Maksimal offset: ${ssrInterpolate(unref(maxAudioOffset))} detik (panjang asli musik: ${ssrInterpolate(unref(audioFileDuration))}s) </div></div></div>`);
|
|
1345
1386
|
} else {
|
|
1346
1387
|
_push(`<!---->`);
|
|
1347
1388
|
}
|
|
@@ -1349,13 +1390,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1349
1390
|
} else {
|
|
1350
1391
|
_push(`<!---->`);
|
|
1351
1392
|
}
|
|
1352
|
-
_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-
|
|
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-efc9bb3a><div class="flex items-center justify-between text-xs" data-v-efc9bb3a><span class="font-extrabold text-slate-300 text-[11px]" data-v-efc9bb3a>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-efc9bb3a>`);
|
|
1353
1394
|
if (unref(copied)) {
|
|
1354
1395
|
_push(ssrRenderComponent(unref(Check), { class: "w-3.5 h-3.5 text-emerald-400" }, null, _parent));
|
|
1355
1396
|
} else {
|
|
1356
1397
|
_push(ssrRenderComponent(unref(Copy), { class: "w-3.5 h-3.5" }, null, _parent));
|
|
1357
1398
|
}
|
|
1358
|
-
_push(`<span data-v-
|
|
1399
|
+
_push(`<span data-v-efc9bb3a>${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-efc9bb3a>${ssrInterpolate(__props.data.caption)}</textarea></div></div>`);
|
|
1359
1400
|
};
|
|
1360
1401
|
}
|
|
1361
1402
|
});
|
|
@@ -1365,18 +1406,25 @@ _sfc_main$1.setup = (props, ctx) => {
|
|
|
1365
1406
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/LivePreview.vue");
|
|
1366
1407
|
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
1367
1408
|
};
|
|
1368
|
-
const __nuxt_component_1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
1409
|
+
const __nuxt_component_1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-efc9bb3a"]]);
|
|
1369
1410
|
const ComparisonRowSchema = z.object({
|
|
1370
1411
|
label: z.string().min(1).max(40),
|
|
1371
1412
|
left: z.string().min(1).max(35),
|
|
1372
1413
|
right: z.string().min(1).max(35)
|
|
1373
1414
|
});
|
|
1415
|
+
const PaletteColorsSchema = z.object({
|
|
1416
|
+
primary: z.string().optional(),
|
|
1417
|
+
secondary: z.string().optional(),
|
|
1418
|
+
surface: z.string().optional(),
|
|
1419
|
+
bg: z.string().optional()
|
|
1420
|
+
}).optional();
|
|
1374
1421
|
const ContentDataSchema = z.object({
|
|
1375
1422
|
id: z.string().optional().default(() => `post-${Date.now()}`).transform((val) => val || `post-${Date.now()}`),
|
|
1376
1423
|
templateId: z.string().optional(),
|
|
1377
1424
|
category: z.string().optional().default("TECH"),
|
|
1378
1425
|
theme: z.string().optional().default("blue-tech"),
|
|
1379
1426
|
accentColor: z.string().optional(),
|
|
1427
|
+
palette: PaletteColorsSchema,
|
|
1380
1428
|
layoutType: z.string().default("table"),
|
|
1381
1429
|
title: z.string().min(1).max(120),
|
|
1382
1430
|
subtitle: z.string().min(1).max(250),
|
|
@@ -1978,4 +2026,4 @@ _sfc_main.setup = (props, ctx) => {
|
|
|
1978
2026
|
};
|
|
1979
2027
|
|
|
1980
2028
|
export { _sfc_main as default };
|
|
1981
|
-
//# sourceMappingURL=pages-
|
|
2029
|
+
//# sourceMappingURL=pages-BB0Bky-X.mjs.map
|