@socialgen_user/socialgen 2.3.7 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{CpvOZWox.js → AG4bRgGu.js} +1 -1
  3. package/.output/public/_nuxt/{DR2NdyVN.js → BETWg864.js} +1 -1
  4. package/.output/public/_nuxt/{wZeFhB0j.js → BLYectCX.js} +1 -1
  5. package/.output/public/_nuxt/{8t3Wih-_.js → Cq3K0UDH.js} +2 -2
  6. package/.output/public/_nuxt/DP0BHYkh.js +91 -0
  7. package/.output/public/_nuxt/{DO1pBuIJ.js → DszeSBqN.js} +1 -1
  8. package/.output/public/_nuxt/{1ESij7sf.js → RbQ85fIq.js} +1 -1
  9. package/.output/public/_nuxt/builds/latest.json +1 -1
  10. package/.output/public/_nuxt/builds/meta/e4bcda54-37b9-414a-891f-80bc074eb01c.json +1 -0
  11. package/.output/public/_nuxt/pages.BNNMR0bP.css +1 -0
  12. package/.output/server/chunks/_/nitro.mjs +115 -115
  13. package/.output/server/chunks/build/LivePreview-styles.BbGT7KVf.mjs +8 -0
  14. package/.output/server/chunks/build/LivePreview-styles.BbGT7KVf.mjs.map +1 -0
  15. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  16. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -1
  17. package/.output/server/chunks/build/entry-styles.ZVVAUeV7.mjs +8 -0
  18. package/.output/server/chunks/build/entry-styles.ZVVAUeV7.mjs.map +1 -0
  19. package/.output/server/chunks/build/index-styles-1.mjs-CBmp9qkk.mjs +4 -0
  20. package/.output/server/chunks/build/index-styles-1.mjs-CBmp9qkk.mjs.map +1 -0
  21. package/.output/server/chunks/build/index-styles.B8HyMUMp.mjs +11 -0
  22. package/.output/server/chunks/build/index-styles.B8HyMUMp.mjs.map +1 -0
  23. package/.output/server/chunks/build/{pages-DAxeAK3-.mjs → pages-ClwYJnbM.mjs} +196 -136
  24. package/.output/server/chunks/build/pages-ClwYJnbM.mjs.map +1 -0
  25. package/.output/server/chunks/build/server.mjs +1 -1
  26. package/.output/server/chunks/build/styles.mjs +5 -4
  27. package/.output/server/chunks/build/styles.mjs.map +1 -1
  28. package/.output/server/package.json +1 -1
  29. package/data/history.json +11 -6
  30. package/data/history_generations.json +132 -0
  31. package/data/templates.json +63 -0
  32. package/package.json +1 -1
  33. package/.output/public/_nuxt/JDUjn-YJ.js +0 -91
  34. package/.output/public/_nuxt/builds/meta/dd531369-b462-4ab9-9c49-be9d1a58097d.json +0 -1
  35. package/.output/public/_nuxt/pages.Df3hoeGN.css +0 -1
  36. package/.output/server/chunks/build/entry-styles.BcjSvkjT.mjs +0 -8
  37. package/.output/server/chunks/build/entry-styles.BcjSvkjT.mjs.map +0 -1
  38. package/.output/server/chunks/build/index-styles.CQioNwpv.mjs +0 -8
  39. package/.output/server/chunks/build/index-styles.CQioNwpv.mjs.map +0 -1
  40. package/.output/server/chunks/build/pages-DAxeAK3-.mjs.map +0 -1
@@ -1,8 +1,25 @@
1
1
  import { defineComponent, ref, watch, computed, mergeProps, unref, isRef, 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, Globe, CheckCircle2, RotateCcw, Scissors, Play, ZoomOut, ZoomIn, ShieldAlert, Pause, Volume2, VolumeX } from 'lucide-vue-next';
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
4
  import { _ as _sfc_main$3 } from './TableCard-0mU9UOj0.mjs';
5
+ import { _ as _export_sfc } from './server.mjs';
5
6
  import { z } from 'zod';
7
+ import '../_/nitro.mjs';
8
+ import 'node:http';
9
+ import 'node:https';
10
+ import 'node:events';
11
+ import 'node:buffer';
12
+ import 'node:fs';
13
+ import 'node:path';
14
+ import 'node:crypto';
15
+ import 'node:url';
16
+ import '../routes/renderer.mjs';
17
+ import 'vue-bundle-renderer/runtime';
18
+ import 'unhead/server';
19
+ import 'devalue';
20
+ import 'unhead/utils';
21
+ import 'unhead/plugins';
22
+ import 'vue-router';
6
23
 
7
24
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
8
25
  __name: "DashboardControls",
@@ -374,6 +391,22 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
374
391
  if (key.includes("barchart")) return "\u{1F4C8}";
375
392
  return "\u{1F3A8}";
376
393
  }
394
+ const themeOptions = [
395
+ { id: "dark-contrast", name: "Dark Contrast (Universal Bold)", bgClass: "bg-slate-950 border-slate-700" },
396
+ { id: "blue-tech", name: "Blue Tech (AI & Software)", bgClass: "bg-blue-900 border-blue-600" },
397
+ { id: "emerald-finance", name: "Emerald Finance (Salaries & Living)", bgClass: "bg-emerald-900 border-emerald-600" },
398
+ { id: "amber-gold", name: "Amber Gold (Luxury & Executive)", bgClass: "bg-amber-900 border-amber-600" },
399
+ { id: "slate-education", name: "Slate Education (Education & Career)", bgClass: "bg-indigo-900 border-indigo-600" },
400
+ { id: "crimson-alert", name: "Crimson Alert (Breaking Shock)", bgClass: "bg-rose-900 border-rose-600" },
401
+ { id: "cyber-violet", name: "Cyber Violet (Synthwave & Neon)", bgClass: "bg-purple-900 border-purple-600" },
402
+ { id: "sunset-orange", name: "Sunset Orange (Warm Energy)", bgClass: "bg-orange-900 border-orange-600" },
403
+ { id: "nordic-frost", name: "Nordic Frost (Polar Cyan Clean)", bgClass: "bg-cyan-900 border-cyan-600" },
404
+ { id: "monochrome-luxe", name: "Monochrome Luxe (Minimalist)", bgClass: "bg-zinc-800 border-zinc-500" }
405
+ ];
406
+ const currentTemplateName = computed(() => {
407
+ const match = templatesList.value.find((t) => t.id === selectedTemplateId.value);
408
+ return (match == null ? void 0 : match.name) || selectedTemplateId.value || "Custom";
409
+ });
377
410
  function updateOption(key, val) {
378
411
  emit("update:options", { ...props.options, [key]: val });
379
412
  }
@@ -389,7 +422,7 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
389
422
  }
390
423
  }
391
424
  return (_ctx, _push, _parent, _attrs) => {
392
- var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
425
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
393
426
  _push(`<div${ssrRenderAttrs(mergeProps({ class: "flex flex-col gap-3 text-slate-100" }, _attrs))}>`);
394
427
  if (unref(showNicheModal)) {
395
428
  _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">`);
@@ -715,152 +748,178 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
715
748
  } else {
716
749
  _push(`<!---->`);
717
750
  }
718
- _push(`</div><div class="hidden lg:flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-2.5 p-3.5 bg-slate-900/90 border border-slate-800 rounded-2xl shadow-lg"><div><h2 class="text-xs font-black text-white flex items-center gap-2">`);
751
+ _push(`</div><div class="hidden lg:flex flex-col h-full overflow-hidden w-full"><div class="h-12 px-3 bg-slate-900/90 border-b border-slate-800/80 flex items-center justify-between shrink-0 shadow-sm z-20"><div class="flex items-center gap-2"><div class="flex items-center gap-1.5 mr-1">`);
719
752
  _push(ssrRenderComponent(unref(Wand2), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
720
- _push(` Content Studio </h2><p class="text-[10px] text-slate-400">Multi-Format Studio</p></div><div class="flex items-center gap-1.5 flex-wrap"><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 mr-1.5 shadow-inner"><select class="bg-transparent text-[11px] font-bold text-sky-300 focus:outline-none px-2 py-0.5 cursor-pointer max-w-[130px] truncate" title="Pilih Niche Konten"><!--[-->`);
753
+ _push(`<span class="text-xs font-black text-white">Content Studio</span></div><div class="flex items-center gap-1 bg-slate-950 px-2 py-1 rounded-xl border border-slate-800 shadow-inner">`);
754
+ _push(ssrRenderComponent(unref(Layers), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
755
+ _push(`<span class="text-[11px] font-bold text-slate-400">Niche:</span><select class="bg-transparent text-[11px] font-black text-white focus:outline-none cursor-pointer max-w-[130px] truncate" title="Pilih Niche Konten"><!--[-->`);
721
756
  ssrRenderList(unref(nichesList), (n) => {
722
757
  _push(`<option${ssrRenderAttr("value", n.id)} class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedNicheId)) ? ssrLooseContain(unref(selectedNicheId), n.id) : ssrLooseEqual(unref(selectedNicheId), n.id)) ? " selected" : ""}>${ssrInterpolate(n.name)}</option>`);
723
758
  });
724
- _push(`<!--]--></select><button class="p-1 px-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-sky-400 hover:text-sky-300 border border-slate-700 text-[10px] font-bold transition flex items-center gap-1" title="Kelola &amp; Buat Niche Baru">`);
759
+ _push(`<!--]--></select><button class="p-0.5 px-1 rounded bg-slate-800 hover:bg-slate-700 text-sky-400 text-[10px] font-bold transition flex items-center gap-0.5" title="Kelola &amp; Buat Niche Baru">`);
725
760
  _push(ssrRenderComponent(unref(Plus), { class: "w-3 h-3" }, null, _parent));
726
- _push(`<span class="hidden sm:inline">Niche</span></button></div><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 mr-1.5 shadow-inner" title="Pilih Bahasa Konten">`);
727
- _push(ssrRenderComponent(unref(Globe), { class: "w-3 h-3 text-emerald-400 ml-1 flex-shrink-0" }, null, _parent));
728
- _push(`<select class="bg-transparent text-[11px] font-bold text-emerald-300 focus:outline-none px-1.5 py-0.5 cursor-pointer max-w-[130px] truncate"><option value="id" class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "id") : ssrLooseEqual(unref(selectedLanguage), "id")) ? " selected" : ""}>\u{1F1EE}\u{1F1E9} Indonesia</option><option value="en" class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "en") : ssrLooseEqual(unref(selectedLanguage), "en")) ? " selected" : ""}>\u{1F1FA}\u{1F1F8} English</option><option value="es" class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "es") : ssrLooseEqual(unref(selectedLanguage), "es")) ? " selected" : ""}>\u{1F1EA}\u{1F1F8} Espa\xF1ol</option><option value="ja" class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "ja") : ssrLooseEqual(unref(selectedLanguage), "ja")) ? " selected" : ""}>\u{1F1EF}\u{1F1F5} \u65E5\u672C\u8A9E</option><option value="de" class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "de") : ssrLooseEqual(unref(selectedLanguage), "de")) ? " selected" : ""}>\u{1F1E9}\u{1F1EA} Deutsch</option></select></div><button title="Buat prompt manual bebas bentrok untuk ChatGPT / Gemini Web" class="inline-flex items-center gap-1 px-2.5 py-1.5 text-[11px] font-bold text-purple-300 bg-purple-950/40 hover:bg-purple-900/50 border border-purple-500/30 rounded-xl transition shadow-sm">`);
729
- _push(ssrRenderComponent(unref(FileText), { class: "w-3 h-3" }, null, _parent));
730
- _push(`<span class="hidden sm:inline">Prompt Manual</span></button><button${ssrIncludeBooleanAttr(__props.isGenerating || __props.isAutoTopicLoading) ? " disabled" : ""} class="inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-bold text-white bg-gradient-to-r from-sky-500 via-indigo-600 to-purple-600 hover:from-sky-400 hover:to-indigo-500 rounded-xl shadow-md transition disabled:opacity-50">`);
761
+ _push(`<span>Niche</span></button></div><div class="flex items-center gap-1 bg-slate-950 px-2 py-1 rounded-xl border border-slate-800 shadow-inner">`);
762
+ _push(ssrRenderComponent(unref(Globe), { class: "w-3.5 h-3.5 text-emerald-400" }, null, _parent));
763
+ _push(`<select class="bg-transparent text-[11px] font-bold text-emerald-300 focus:outline-none cursor-pointer"><option value="id" class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "id") : ssrLooseEqual(unref(selectedLanguage), "id")) ? " selected" : ""}>\u{1F1EE}\u{1F1E9} Indonesia</option><option value="en" class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "en") : ssrLooseEqual(unref(selectedLanguage), "en")) ? " selected" : ""}>\u{1F1FA}\u{1F1F8} English</option><option value="es" class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "es") : ssrLooseEqual(unref(selectedLanguage), "es")) ? " selected" : ""}>\u{1F1EA}\u{1F1F8} Espa\xF1ol</option><option value="ja" class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "ja") : ssrLooseEqual(unref(selectedLanguage), "ja")) ? " selected" : ""}>\u{1F1EF}\u{1F1F5} \u65E5\u672C\u8A9E</option><option value="de" class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "de") : ssrLooseEqual(unref(selectedLanguage), "de")) ? " selected" : ""}>\u{1F1E9}\u{1F1EA} Deutsch</option></select></div></div><div class="flex items-center gap-2"><button title="Buat prompt manual bebas bentrok untuk ChatGPT / Gemini Web" class="px-2.5 py-1.5 rounded-xl bg-purple-950/40 hover:bg-purple-900/50 border border-purple-500/30 text-purple-300 text-xs font-bold transition flex items-center gap-1.5 shadow-sm active:scale-95">`);
764
+ _push(ssrRenderComponent(unref(FileText), { class: "w-3.5 h-3.5 text-purple-400" }, null, _parent));
765
+ _push(`<span>Prompt Manual</span></button><button${ssrIncludeBooleanAttr(__props.isGenerating || __props.isAutoTopicLoading) ? " disabled" : ""} class="px-3 py-1.5 rounded-xl bg-gradient-to-r from-sky-500 via-indigo-600 to-purple-600 hover:opacity-90 text-white text-xs font-bold transition flex items-center gap-1.5 shadow-md shadow-indigo-500/20 active:scale-95 disabled:opacity-50">`);
731
766
  _push(ssrRenderComponent(unref(Sparkles), {
732
- class: ["w-3.5 h-3.5", { "animate-spin": __props.isAutoTopicLoading }]
767
+ class: ["w-3.5 h-3.5 text-amber-300", { "animate-spin": __props.isAutoTopicLoading }]
733
768
  }, null, _parent));
734
- _push(`<span>${ssrInterpolate(__props.isAutoTopicLoading ? "Meriset Data..." : "\u2728 Auto-Topic")}</span></button><div class="relative group"><button class="px-2 py-1.5 text-xs font-bold text-slate-300 bg-slate-800 hover:bg-slate-700 border border-slate-700 rounded-xl"> \u25BE </button><div class="absolute right-0 mt-1 hidden group-hover:flex flex-col bg-slate-900 border border-slate-800 rounded-xl shadow-2xl py-2 z-20 w-60 text-xs"><div class="px-3 py-1 text-[10px] font-bold text-slate-500 uppercase">Model AI Engine</div><div class="px-3 py-1.5"><select class="w-full bg-slate-950 border border-slate-700 rounded-lg p-1.5 text-xs text-sky-300 focus:outline-none"><option value="gemini-3.8-flash"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-3.8-flash") : ssrLooseEqual(unref(selectedModel), "gemini-3.8-flash")) ? " selected" : ""}>\u26A1 Gemini 3.8 Flash</option><option value="gemini-3.5-flash"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-3.5-flash") : ssrLooseEqual(unref(selectedModel), "gemini-3.5-flash")) ? " selected" : ""}>\u26A1 Gemini 3.5 Flash</option><option value="gemini-2.5-pro"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-2.5-pro") : ssrLooseEqual(unref(selectedModel), "gemini-2.5-pro")) ? " selected" : ""}>\u{1F48E} Gemini 2.5 Pro</option><option value="gemini-1.5-pro"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-1.5-pro") : ssrLooseEqual(unref(selectedModel), "gemini-1.5-pro")) ? " selected" : ""}>\u{1F48E} Gemini 1.5 Pro</option></select></div><div class="border-t border-slate-800 my-1"></div><div class="px-3 py-1 text-[10px] font-bold text-slate-500 uppercase flex items-center justify-between"><span>Pilih Format Template</span><span class="text-[9px] text-sky-400">${ssrInterpolate(unref(templatesList).length)} opsi</span></div><div class="max-h-60 overflow-y-auto custom-scrollbar flex flex-col"><!--[-->`);
735
- ssrRenderList(unref(templatesList), (tpl) => {
736
- _push(`<button class="px-3 py-1.5 text-left text-slate-200 hover:bg-slate-800 text-[11px] flex items-center justify-between group/item"><span class="truncate">${ssrInterpolate(tpl.name)}</span>`);
737
- if (!tpl.isBuiltin) {
738
- _push(`<span class="text-[8px] px-1 py-0.2 rounded bg-purple-500/20 text-purple-300 ml-1">Kustom</span>`);
739
- } else {
740
- _push(`<!---->`);
741
- }
742
- _push(`</button>`);
743
- });
744
- _push(`<!--]--></div></div></div></div></div>`);
769
+ _push(`<span>${ssrInterpolate(__props.isAutoTopicLoading ? "Meriset Data..." : "\u2728 Auto-Topic")}</span></button><div class="relative group"><button class="px-2 py-1.5 text-xs font-bold text-slate-300 bg-slate-800 hover:bg-slate-700 border border-slate-700 rounded-xl"> \u25BE </button><div class="absolute right-0 mt-1 hidden group-hover:flex flex-col bg-slate-900 border border-slate-800 rounded-xl shadow-2xl py-2 z-30 w-56 text-xs"><div class="px-3 py-1 text-[10px] font-bold text-slate-500 uppercase">Model AI Engine</div><div class="px-3 py-1.5"><select class="w-full bg-slate-950 border border-slate-700 rounded-lg p-1.5 text-xs text-sky-300 focus:outline-none"><option value="gemini-3.8-flash"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-3.8-flash") : ssrLooseEqual(unref(selectedModel), "gemini-3.8-flash")) ? " selected" : ""}>\u26A1 Gemini 3.8 Flash</option><option value="gemini-3.5-flash"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-3.5-flash") : ssrLooseEqual(unref(selectedModel), "gemini-3.5-flash")) ? " selected" : ""}>\u26A1 Gemini 3.5 Flash</option><option value="gemini-2.5-pro"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-2.5-pro") : ssrLooseEqual(unref(selectedModel), "gemini-2.5-pro")) ? " selected" : ""}>\u{1F48E} Gemini 2.5 Pro</option><option value="gemini-1.5-pro"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-1.5-pro") : ssrLooseEqual(unref(selectedModel), "gemini-1.5-pro")) ? " selected" : ""}>\u{1F48E} Gemini 1.5 Pro</option></select></div></div></div></div></div>`);
745
770
  if (__props.isAutoTopicLoading) {
746
- _push(`<div class="p-3 bg-gradient-to-r from-sky-950 via-indigo-950 to-purple-950 border border-sky-500/50 rounded-2xl flex items-center gap-3 animate-pulse shadow-lg shadow-sky-500/10"><div class="w-6 h-6 rounded-lg bg-sky-500/20 border border-sky-400/40 flex items-center justify-center flex-shrink-0">`);
747
- _push(ssrRenderComponent(unref(Sparkles), { class: "w-3.5 h-3.5 text-sky-400 animate-spin" }, null, _parent));
748
- _push(`</div><div class="text-[11px]"><div class="font-extrabold text-white flex items-center gap-2"><span>AI Research Engine Sedang Bekerja...</span><span class="text-[9px] px-1.5 py-0.2 rounded bg-sky-500/30 text-sky-200 border border-sky-400/30">${ssrInterpolate(unref(selectedModel))}</span></div><p class="text-[10px] text-slate-300 mt-0.5">Menganalisis angka perbandingan 2026 &amp; meracik copywriting viral.</p></div></div>`);
749
- } else {
750
- _push(`<!---->`);
751
- }
752
- _push(`<div class="flex items-center justify-between bg-slate-950 p-1 rounded-xl border border-slate-800 text-xs font-semibold"><div class="flex items-center gap-1"><button class="${ssrRenderClass([unref(activeTab) === "editor" ? "bg-slate-800 text-sky-400 shadow font-bold" : "text-slate-400 hover:text-white", "px-2.5 py-1 rounded-lg transition text-[11px]"])}"> JSON Editor </button><button class="${ssrRenderClass([unref(activeTab) === "drafts" ? "bg-slate-800 text-amber-400 shadow font-bold" : "text-slate-400 hover:text-white", "px-2.5 py-1 rounded-lg transition flex items-center gap-1 text-[11px]"])}" title="Draft yang kamu simpan manual untuk dipakai nanti">`);
753
- _push(ssrRenderComponent(unref(Bookmark), { class: "w-3 h-3" }, null, _parent));
754
- _push(`<span>Drafts (${ssrInterpolate(__props.drafts.length)})</span></button><button class="${ssrRenderClass([unref(activeTab) === "history" ? "bg-slate-800 text-purple-400 shadow font-bold" : "text-slate-400 hover:text-white", "px-2.5 py-1 rounded-lg transition flex items-center gap-1 text-[11px]"])}" title="Riwayat otomatis setiap kali generate">`);
755
- _push(ssrRenderComponent(unref(Clock), { class: "w-3 h-3" }, null, _parent));
756
- _push(`<span>Riwayat (${ssrInterpolate(__props.history.length)})</span></button></div><div class="flex items-center gap-1.5">`);
757
- if (__props.unsavedStash) {
758
- _push(`<button class="text-[10px] text-amber-400 hover:text-amber-300 transition font-bold px-2 py-0.5 rounded-lg border border-amber-500/30 bg-amber-500/10 flex items-center gap-1" title="Kembalikan editan aktif sebelum memilih draft/riwayat"><span>\u21A9\uFE0F Kembali ke Editan</span></button>`);
771
+ _push(`<div class="p-2.5 bg-gradient-to-r from-sky-950 via-indigo-950 to-purple-950 border-b border-sky-500/50 flex items-center gap-3 animate-pulse shadow-md shrink-0"><div class="w-5 h-5 rounded-lg bg-sky-500/20 border border-sky-400/40 flex items-center justify-center flex-shrink-0">`);
772
+ _push(ssrRenderComponent(unref(Sparkles), { class: "w-3 h-3 text-sky-400 animate-spin" }, null, _parent));
773
+ _push(`</div><div class="text-[11px] flex items-center gap-2"><span class="font-bold text-white">AI Research Engine Sedang Bekerja...</span><span class="text-[9px] px-1.5 py-0.2 rounded bg-sky-500/30 text-sky-200 border border-sky-400/30">${ssrInterpolate(unref(selectedModel))}</span><span class="text-[10px] text-slate-300">Meriset data perbandingan terbaru &amp; copywriting viral.</span></div></div>`);
759
774
  } else {
760
775
  _push(`<!---->`);
761
776
  }
762
- if (unref(activeTab) === "history" && __props.history.length > 0) {
763
- _push(`<button class="text-[10px] text-rose-400 hover:text-rose-300 transition font-bold pr-1" title="Bersihkan semua riwayat generate"> Bersihkan Riwayat </button>`);
764
- } else {
765
- _push(`<!---->`);
766
- }
767
- _push(`<button class="text-[10px] text-amber-400 hover:text-amber-300 transition pr-2 font-bold flex items-center gap-1" title="Simpan data saat ini ke Drafts untuk digunakan nanti">`);
768
- _push(ssrRenderComponent(unref(Bookmark), { class: "w-3 h-3" }, null, _parent));
769
- _push(`<span>+ Simpan ke Draft</span></button></div></div>`);
770
- if (unref(activeTab) === "drafts") {
771
- _push(`<div class="flex flex-col gap-1.5 p-2.5 bg-slate-900/90 border border-slate-800 rounded-2xl max-h-[320px] overflow-y-auto custom-scrollbar">`);
777
+ _push(`<div class="flex-1 flex flex-row overflow-hidden min-h-0"><aside class="w-64 xl:w-72 bg-slate-900/80 border-r border-slate-800/80 flex flex-col shrink-0 overflow-hidden"><div class="p-2 border-b border-slate-800/80 bg-slate-950/70 flex items-center justify-between shrink-0"><div class="flex items-center gap-1 w-full"><button class="${ssrRenderClass([unref(activeTab) === "editor" ? "bg-slate-800 text-sky-400 shadow" : "text-slate-400 hover:text-white", "flex-1 py-1.5 px-2 rounded-lg text-[11px] transition flex items-center justify-center gap-1 font-bold"])}">`);
778
+ _push(ssrRenderComponent(unref(LayoutTemplate), { class: "w-3.5 h-3.5" }, null, _parent));
779
+ _push(`<span>Template</span></button><button class="${ssrRenderClass([unref(activeTab) === "drafts" ? "bg-slate-800 text-amber-400 shadow" : "text-slate-400 hover:text-white", "flex-1 py-1.5 px-2 rounded-lg text-[11px] transition flex items-center justify-center gap-1 font-bold"])}">`);
780
+ _push(ssrRenderComponent(unref(Bookmark), { class: "w-3.5 h-3.5" }, null, _parent));
781
+ _push(`<span>Drafts (${ssrInterpolate(__props.drafts.length)})</span></button><button class="${ssrRenderClass([unref(activeTab) === "history" ? "bg-slate-800 text-purple-400 shadow" : "text-slate-400 hover:text-white", "flex-1 py-1.5 px-2 rounded-lg text-[11px] transition flex items-center justify-center gap-1 font-bold"])}">`);
782
+ _push(ssrRenderComponent(unref(Clock), { class: "w-3.5 h-3.5" }, null, _parent));
783
+ _push(`<span>Riwayat (${ssrInterpolate(__props.history.length)})</span></button></div></div>`);
784
+ if (unref(activeTab) === "editor") {
785
+ _push(`<div class="flex-1 flex flex-col overflow-hidden min-h-0"><div class="p-2.5 border-b border-slate-800/60 flex flex-col gap-2 shrink-0"><div class="flex items-center justify-between"><span class="text-[10px] font-extrabold uppercase tracking-wider text-slate-400">Library (${ssrInterpolate(unref(templatesList).length)} Template)</span><button type="button" class="px-2 py-0.5 rounded-lg bg-sky-500/20 text-sky-300 border border-sky-500/30 text-[10px] font-bold hover:bg-sky-500/30 flex items-center gap-1 transition active:scale-95">`);
786
+ _push(ssrRenderComponent(unref(Plus), { class: "w-3 h-3" }, null, _parent));
787
+ _push(`<span>+ Buat Template</span></button></div><div class="relative"><input${ssrRenderAttr("value", unref(templateSearch))} type="text" placeholder="Cari template..." class="w-full bg-slate-950 border border-slate-800 rounded-xl px-2.5 py-1.5 text-xs text-white placeholder-slate-500 focus:outline-none focus:border-sky-500"></div></div><div class="flex-1 overflow-y-auto p-2 space-y-1.5 custom-scrollbar"><!--[-->`);
788
+ ssrRenderList(unref(filteredTemplates), (tpl) => {
789
+ _push(`<div class="${ssrRenderClass([unref(selectedTemplateId) === tpl.id ? "bg-sky-950/40 border-sky-500/50 shadow-sm" : "bg-slate-950/60 border-slate-800/80 hover:border-slate-700", "p-2.5 rounded-xl border cursor-pointer transition flex flex-col gap-1 group text-left"])}"><div class="flex items-center justify-between"><span class="text-xs font-black truncate text-white group-hover:text-sky-300 transition">${ssrInterpolate(tpl.name)}</span>`);
790
+ if (unref(selectedTemplateId) === tpl.id) {
791
+ _push(`<span class="w-2 h-2 rounded-full bg-sky-400 shrink-0"></span>`);
792
+ } else if (!tpl.isBuiltin) {
793
+ _push(`<span class="text-[9px] text-amber-400 font-bold shrink-0">\u2B50 Kustom</span>`);
794
+ } else {
795
+ _push(`<!---->`);
796
+ }
797
+ _push(`</div><span class="text-[10px] text-slate-400 line-clamp-1 leading-snug">${ssrInterpolate(tpl.description || "Format kartu visual studio")}</span><div class="flex items-center gap-1 mt-0.5 flex-wrap"><span class="px-1.5 py-0.2 rounded text-[8px] font-bold bg-sky-900/60 text-sky-300 border border-sky-700/50 uppercase">${ssrInterpolate(tpl.category || "UMUM")}</span>`);
798
+ if (tpl.isBuiltin) {
799
+ _push(`<span class="px-1.5 py-0.2 rounded text-[8px] font-bold bg-slate-800 text-slate-400 uppercase"> BAWAAN </span>`);
800
+ } else {
801
+ _push(`<!---->`);
802
+ }
803
+ _push(`</div></div>`);
804
+ });
805
+ _push(`<!--]--></div><div class="p-2.5 border-t border-slate-800/80 bg-slate-950/80 flex items-center justify-between shrink-0"><span class="text-[10px] font-bold text-slate-400 flex items-center gap-1">`);
806
+ _push(ssrRenderComponent(unref(Sparkles), { class: "w-3 h-3 text-purple-400" }, null, _parent));
807
+ _push(`<span>AI Vision Template</span></span><button class="px-2 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 hover:text-white text-[10px] font-bold transition flex items-center gap-1">`);
808
+ _push(ssrRenderComponent(unref(Copy), { class: "w-2.5 h-2.5" }, null, _parent));
809
+ _push(`<span>${ssrInterpolate(unref(copiedAiPrompt) ? "\u2713 Tersalin" : "Salin Prompt")}</span></button></div></div>`);
810
+ } else if (unref(activeTab) === "drafts") {
811
+ _push(`<div class="flex-1 flex flex-col overflow-hidden min-h-0"><div class="p-2.5 border-b border-slate-800/60 flex items-center justify-between shrink-0"><span class="text-[10px] font-extrabold uppercase tracking-wider text-slate-400">Tersimpan (${ssrInterpolate(__props.drafts.length)})</span><button class="text-[10px] text-amber-400 hover:text-amber-300 transition font-bold flex items-center gap-1" title="Simpan konten saat ini ke Drafts">`);
812
+ _push(ssrRenderComponent(unref(Bookmark), { class: "w-3 h-3" }, null, _parent));
813
+ _push(`<span>+ Simpan ke Draft</span></button></div><div class="flex-1 overflow-y-auto p-2 space-y-1.5 custom-scrollbar">`);
772
814
  if (__props.unsavedStash) {
773
- _push(`<div class="p-2 rounded-xl bg-amber-500/15 border border-amber-500/40 text-amber-200 flex items-center justify-between gap-2 shadow-sm text-xs sticky top-0 z-10 backdrop-blur-md"><div class="flex items-center gap-2 min-w-0"><span class="text-sm">\u270F\uFE0F</span><div class="truncate"><span class="font-bold text-[10px] block text-amber-300">Ada editan aktif sebelumnya:</span><span class="text-[11px] text-amber-100 font-semibold truncate block">&quot;${ssrInterpolate(__props.unsavedStash.title || "Tanpa Judul")}&quot;</span></div></div><div class="flex items-center gap-1.5 flex-shrink-0"><button class="px-2 py-1 bg-amber-500 hover:bg-amber-400 text-slate-950 font-bold rounded-lg text-[10px] transition shadow flex items-center gap-1 active:scale-95" title="Kembalikan editan aktif sebelum membuka draft ini"><span>\u21A9\uFE0F Kembali ke Editan</span></button><button class="p-1 hover:text-white text-amber-400/70 transition text-xs" title="Abaikan &amp; buang simpanan editan ini"> \u2715 </button></div></div>`);
815
+ _push(`<div class="p-2 rounded-xl bg-amber-500/15 border border-amber-500/40 text-amber-200 flex items-center justify-between gap-1 shadow-sm text-xs mb-1"><div class="truncate text-[10px]"><span class="font-bold text-amber-300">Editan aktif: </span><span class="text-amber-100 font-semibold truncate">${ssrInterpolate(__props.unsavedStash.title || "Tanpa Judul")}</span></div><button class="px-1.5 py-0.5 bg-amber-500 text-slate-950 font-bold rounded text-[9px] shrink-0"> Kembali </button></div>`);
774
816
  } else {
775
817
  _push(`<!---->`);
776
818
  }
777
819
  if (__props.drafts.length === 0) {
778
- _push(`<div class="text-center py-8 text-slate-500 text-[11px] leading-relaxed"> Belum ada draft tersimpan.<br> Klik <b class="text-amber-400">+ Simpan ke Draft</b> di atas untuk menyimpan konten ini agar bisa diedit/digenerate nanti! </div>`);
820
+ _push(`<div class="text-center py-8 text-slate-500 text-[11px] leading-relaxed"> Belum ada draft tersimpan.<br> Klik <b>+ Simpan ke Draft</b> di atas untuk menyimpan konten ini! </div>`);
779
821
  } else {
780
822
  _push(`<!---->`);
781
823
  }
782
824
  _push(`<!--[-->`);
783
825
  ssrRenderList(__props.drafts, (draft, dIdx) => {
784
- _push(`<div data-draft-item class="${ssrRenderClass([__props.activeDraftIndex === dIdx ? "bg-amber-500/15 border-amber-500/50 text-white" : "bg-slate-950/60 border-slate-800 text-slate-300 hover:border-slate-700", "p-2 rounded-xl border cursor-pointer transition flex items-center justify-between text-xs group"])}"><div class="flex-1 pr-2"><div class="flex items-center gap-1.5 mb-0.5"><span class="px-1.5 py-0.2 rounded text-[8px] font-bold uppercase bg-amber-500/20 text-amber-300 border border-amber-500/30">${ssrInterpolate(draft.layoutType || "table")}</span><span class="text-[9px] text-slate-400 font-semibold">${ssrInterpolate(draft.category)}</span></div><div class="font-bold text-[11px] truncate text-slate-100">${ssrInterpolate(draft.title)}</div></div><button class="opacity-0 group-hover:opacity-100 p-1 text-slate-400 hover:text-rose-400 transition rounded" title="Hapus draft ini">`);
826
+ _push(`<div data-draft-item class="${ssrRenderClass([__props.activeDraftIndex === dIdx ? "bg-amber-500/15 border-amber-500/50 text-white" : "bg-slate-950/60 border-slate-800 text-slate-300 hover:border-slate-700", "p-2 rounded-xl border cursor-pointer transition flex items-center justify-between text-xs group"])}"><div class="flex-1 min-w-0 pr-1"><div class="flex items-center gap-1 mb-0.5"><span class="px-1.5 py-0.2 rounded text-[8px] font-bold uppercase bg-amber-500/20 text-amber-300 border border-amber-500/30">${ssrInterpolate(draft.layoutType || "table")}</span><span class="text-[9px] text-slate-400 font-semibold truncate">${ssrInterpolate(draft.category)}</span></div><div class="font-bold text-[11px] truncate text-slate-100">${ssrInterpolate(draft.title)}</div></div><button class="opacity-0 group-hover:opacity-100 p-1 text-slate-400 hover:text-rose-400 transition rounded shrink-0" title="Hapus draft ini">`);
785
827
  _push(ssrRenderComponent(unref(Trash2), { class: "w-3.5 h-3.5" }, null, _parent));
786
828
  _push(`</button></div>`);
787
829
  });
788
- _push(`<!--]--></div>`);
830
+ _push(`<!--]--></div></div>`);
789
831
  } else if (unref(activeTab) === "history") {
790
- _push(`<div class="flex flex-col gap-1.5 p-2.5 bg-slate-900/90 border border-slate-800 rounded-2xl max-h-[320px] overflow-y-auto custom-scrollbar">`);
832
+ _push(`<div class="flex-1 flex flex-col overflow-hidden min-h-0"><div class="p-2.5 border-b border-slate-800/60 flex items-center justify-between shrink-0"><span class="text-[10px] font-extrabold uppercase tracking-wider text-slate-400">Riwayat (${ssrInterpolate(__props.history.length)})</span>`);
833
+ if (__props.history.length > 0) {
834
+ _push(`<button class="text-[10px] text-rose-400 hover:text-rose-300 transition font-bold"> Bersihkan Riwayat </button>`);
835
+ } else {
836
+ _push(`<!---->`);
837
+ }
838
+ _push(`</div><div class="flex-1 overflow-y-auto p-2 space-y-1.5 custom-scrollbar">`);
791
839
  if (__props.unsavedStash) {
792
- _push(`<div class="p-2 rounded-xl bg-purple-500/15 border border-purple-500/40 text-purple-200 flex items-center justify-between gap-2 shadow-sm text-xs sticky top-0 z-10 backdrop-blur-md"><div class="flex items-center gap-2 min-w-0"><span class="text-sm">\u270F\uFE0F</span><div class="truncate"><span class="font-bold text-[10px] block text-purple-300">Ada editan aktif sebelumnya:</span><span class="text-[11px] text-purple-100 font-semibold truncate block">&quot;${ssrInterpolate(__props.unsavedStash.title || "Tanpa Judul")}&quot;</span></div></div><div class="flex items-center gap-1.5 flex-shrink-0"><button class="px-2 py-1 bg-purple-500 hover:bg-purple-400 text-white font-bold rounded-lg text-[10px] transition shadow flex items-center gap-1 active:scale-95" title="Kembalikan editan aktif sebelum membuka riwayat ini"><span>\u21A9\uFE0F Kembali ke Editan</span></button><button class="p-1 hover:text-white text-purple-400/70 transition text-xs" title="Abaikan &amp; buang simpanan editan ini"> \u2715 </button></div></div>`);
840
+ _push(`<div class="p-2 rounded-xl bg-purple-500/15 border border-purple-500/40 text-purple-200 flex items-center justify-between gap-1 shadow-sm text-xs mb-1"><div class="truncate text-[10px]"><span class="font-bold text-purple-300">Editan aktif: </span><span class="text-purple-100 font-semibold truncate">${ssrInterpolate(__props.unsavedStash.title || "Tanpa Judul")}</span></div><button class="px-1.5 py-0.5 bg-purple-500 text-white font-bold rounded text-[9px] shrink-0"> Kembali </button></div>`);
793
841
  } else {
794
842
  _push(`<!---->`);
795
843
  }
796
844
  if (__props.history.length === 0) {
797
- _push(`<div class="text-center py-8 text-slate-500 text-[11px] leading-relaxed"> Belum ada riwayat pembuatan.<br> Setiap kali kamu klik <b class="text-sky-400">GENERATE CONTENT</b>, hasil pembuatan akan otomatis tercatat di sini! </div>`);
845
+ _push(`<div class="text-center py-8 text-slate-500 text-[11px] leading-relaxed"> Belum ada riwayat pembuatan.<br> Hasil generate akan otomatis tercatat di sini! </div>`);
798
846
  } else {
799
847
  _push(`<!---->`);
800
848
  }
801
849
  _push(`<!--[-->`);
802
850
  ssrRenderList(__props.history, (item, hIdx) => {
803
- _push(`<div data-history-item class="${ssrRenderClass([__props.activeHistoryIndex === hIdx ? "bg-purple-500/15 border-purple-500/50 text-white" : "bg-slate-950/60 border-slate-800 text-slate-300 hover:border-slate-700", "p-2 rounded-xl border cursor-pointer transition flex items-center justify-between text-xs group"])}"><div class="flex-1 pr-2"><div class="flex items-center gap-1.5 mb-0.5"><span class="px-1.5 py-0.2 rounded text-[8px] font-bold uppercase bg-purple-500/20 text-purple-300 border border-purple-500/30">${ssrInterpolate(item.layoutType || "reels")}</span><span class="text-[9px] text-slate-400 font-semibold">${ssrInterpolate(item.category)}</span>`);
851
+ _push(`<div data-history-item class="${ssrRenderClass([__props.activeHistoryIndex === hIdx ? "bg-purple-500/15 border-purple-500/50 text-white" : "bg-slate-950/60 border-slate-800 text-slate-300 hover:border-slate-700", "p-2 rounded-xl border cursor-pointer transition flex items-center justify-between text-xs group"])}"><div class="flex-1 min-w-0 pr-1"><div class="flex items-center gap-1 mb-0.5"><span class="px-1.5 py-0.2 rounded text-[8px] font-bold uppercase bg-purple-500/20 text-purple-300 border border-purple-500/30">${ssrInterpolate(item.layoutType || "reels")}</span><span class="text-[9px] text-slate-400 font-semibold truncate">${ssrInterpolate(item.category)}</span>`);
804
852
  if (item.generatedAt) {
805
- _push(`<span class="text-[9px] text-slate-500 font-mono ml-auto">${ssrInterpolate(formatDate(item.generatedAt))}</span>`);
853
+ _push(`<span class="text-[8px] text-slate-500 font-mono ml-auto">${ssrInterpolate(formatDate(item.generatedAt))}</span>`);
806
854
  } else {
807
855
  _push(`<!---->`);
808
856
  }
809
- _push(`</div><div class="font-bold text-[11px] truncate text-slate-100">${ssrInterpolate(item.title)}</div></div><button class="opacity-0 group-hover:opacity-100 p-1 text-slate-400 hover:text-rose-400 transition rounded" title="Hapus riwayat ini">`);
857
+ _push(`</div><div class="font-bold text-[11px] truncate text-slate-100">${ssrInterpolate(item.title)}</div></div><button class="opacity-0 group-hover:opacity-100 p-1 text-slate-400 hover:text-rose-400 transition rounded shrink-0" title="Hapus riwayat ini">`);
810
858
  _push(ssrRenderComponent(unref(Trash2), { class: "w-3.5 h-3.5" }, null, _parent));
811
859
  _push(`</button></div>`);
812
860
  });
813
- _push(`<!--]--></div>`);
861
+ _push(`<!--]--></div></div>`);
814
862
  } else {
815
- _push(`<div class="flex flex-col bg-slate-900/90 border border-slate-800 rounded-2xl overflow-hidden shadow-lg"><div class="grid grid-cols-2 gap-2 p-2.5 bg-slate-950/70 border-b border-slate-800 text-xs"><div><div class="flex items-center justify-between mb-1"><label class="text-[10px] font-bold text-slate-300 flex items-center gap-1">`);
816
- _push(ssrRenderComponent(unref(LayoutTemplate), { class: "w-3 h-3 text-sky-400" }, null, _parent));
817
- _push(` Format Template </label><button class="text-[10px] font-bold text-sky-400 hover:text-sky-300 flex items-center gap-0.5 transition" title="Kelola &amp; buat template kustom baru">`);
818
- _push(ssrRenderComponent(unref(Settings), { class: "w-3 h-3" }, null, _parent));
819
- _push(`<span>Kelola</span></button></div><select${ssrRenderAttr("value", unref(selectedTemplateId))} class="w-full bg-slate-900 border border-slate-800 rounded-lg p-1.5 text-slate-200 focus:outline-none focus:border-sky-500 font-semibold text-[11px]"><!--[-->`);
820
- ssrRenderList(unref(templatesList), (t) => {
821
- _push(`<option${ssrRenderAttr("value", t.id)}>${ssrInterpolate(t.name)} ${ssrInterpolate(t.isBuiltin ? "" : "\u2B50 (Kustom)")}</option>`);
822
- });
823
- _push(`<!--]--></select></div><div><label class="block text-[10px] font-bold text-slate-300 mb-1"> Theme Color (10 Pilihan) </label><select${ssrRenderAttr("value", __props.modelValue.theme || "blue-tech")} class="w-full bg-slate-900 border border-slate-800 rounded-lg p-1.5 text-slate-200 focus:outline-none focus:border-sky-500 font-semibold text-[11px]"><option value="blue-tech">\u{1F535} Blue Tech (AI &amp; Software)</option><option value="emerald-finance">\u{1F7E2} Emerald Finance (Salaries &amp; Living)</option><option value="slate-education">\u{1F7E3} Slate Education (Education &amp; Career)</option><option value="dark-contrast">\u26AB Dark Contrast (Universal Bold)</option><option value="crimson-alert">\u{1F534} Crimson Alert (Breaking Shock)</option><option value="amber-gold">\u{1F7E1} Amber Gold (Luxury &amp; Executive)</option><option value="cyber-violet">\u{1F7EA} Cyber Violet (Synthwave &amp; Neon)</option><option value="sunset-orange">\u{1F7E0} Sunset Orange (Warm Energy)</option><option value="nordic-frost">\u2744\uFE0F Nordic Frost (Polar Cyan Clean)</option><option value="monochrome-luxe">\u26AA Monochrome Luxe (Minimalist)</option></select></div><div class="col-span-2 grid grid-cols-3 gap-2 pt-1 border-t border-slate-800/60 mt-1"><div class="col-span-1"><label class="block text-[10px] font-bold text-slate-400 mb-1"> Watermark Handle </label><input type="text"${ssrRenderAttr("value", __props.modelValue.watermark || "@SocialGen")} placeholder="@NamaAkun" class="w-full bg-slate-900 border border-slate-800 rounded-lg px-2.5 py-1.5 text-sky-400 font-semibold text-[11px] focus:outline-none focus:border-sky-500 transition"></div><div class="col-span-2"><label class="block text-[10px] font-bold text-slate-400 mb-1"> 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-lg px-2.5 py-1.5 text-slate-100 font-semibold text-[11px] focus:outline-none focus:border-sky-500 transition"></div></div></div><div class="flex items-center justify-between px-3 py-1.5 bg-slate-950/50 border-b border-slate-800"><div class="flex items-center gap-2 text-xs"><span class="font-bold text-slate-300 text-[10px]">RAW JSON SocialGen</span>`);
824
- if (!unref(jsonFormatError)) {
825
- _push(`<span class="inline-flex items-center gap-0.5 px-1.5 py-0.2 rounded-full text-[9px] font-semibold bg-emerald-500/20 text-emerald-400 border border-emerald-500/30">`);
826
- _push(ssrRenderComponent(unref(CheckCircle2), { class: "w-2.5 h-2.5" }, null, _parent));
827
- _push(` ${ssrInterpolate(unref(rawJsonInput).trim() ? "Valid" : "Sample Mode")}</span>`);
863
+ _push(`<!---->`);
864
+ }
865
+ _push(`</aside><section class="w-[390px] xl:w-[440px] bg-slate-950 border-r border-slate-800/80 flex flex-col shrink-0 overflow-hidden"><div class="px-3.5 py-2.5 bg-slate-900/70 border-b border-slate-800 flex items-center justify-between shrink-0"><div class="flex items-center gap-2">`);
866
+ _push(ssrRenderComponent(unref(Sliders), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
867
+ _push(`<span class="text-xs font-black text-white">Studio Inspector</span><span class="text-[10px] px-2 py-0.5 rounded-full bg-slate-800 text-sky-300 font-semibold truncate max-w-[150px]">${ssrInterpolate(unref(currentTemplateName))}</span></div><div class="flex items-center gap-1"><button class="px-2 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-[10px] font-bold transition flex items-center gap-1" title="Format JSON">`);
868
+ _push(ssrRenderComponent(unref(Code), { class: "w-2.5 h-2.5" }, null, _parent));
869
+ _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">`);
870
+ _push(ssrRenderComponent(unref(RotateCcw), { class: "w-2.5 h-2.5" }, null, _parent));
871
+ _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 shadow-sm"><div class="flex items-center justify-between"><label class="text-[10px] font-black uppercase tracking-wider text-slate-400">Palette Tema (10 Pilihan)</label><span class="text-[10px] font-bold text-sky-400 truncate max-w-[170px]">${ssrInterpolate(((_m = themeOptions.find((t) => t.id === (__props.modelValue.theme || "blue-tech"))) == null ? void 0 : _m.name) || "Blue Tech")}</span></div><div class="grid grid-cols-5 gap-1.5"><!--[-->`);
872
+ ssrRenderList(themeOptions, (swatch) => {
873
+ _push(`<button type="button" class="${ssrRenderClass([[
874
+ swatch.bgClass,
875
+ (__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"
876
+ ], "h-6 rounded-lg transition border flex items-center justify-center shadow"])}"${ssrRenderAttr("title", swatch.name)}>`);
877
+ if ((__props.modelValue.theme || "blue-tech") === swatch.id) {
878
+ _push(ssrRenderComponent(unref(Check), { class: "w-3 h-3 text-white" }, null, _parent));
828
879
  } else {
829
- _push(`<span class="inline-flex items-center gap-0.5 px-1.5 py-0.2 rounded-full text-[9px] font-semibold bg-rose-500/20 text-rose-400 border border-rose-500/30">`);
830
- _push(ssrRenderComponent(unref(AlertCircle), { class: "w-2.5 h-2.5" }, null, _parent));
831
- _push(` Invalid </span>`);
880
+ _push(`<!---->`);
832
881
  }
833
- _push(`</div><div class="flex items-center gap-2"><button class="text-[10px] text-slate-400 hover:text-amber-400 transition flex items-center gap-1" title="Kosongkan JSON dan gunakan data sampel bawaan template aktif">`);
834
- _push(ssrRenderComponent(unref(RotateCcw), { class: "w-2.5 h-2.5" }, null, _parent));
835
- _push(`<span>Clear / Pakai Sample</span></button><span class="text-slate-700">|</span><button class="text-[10px] text-slate-400 hover:text-sky-400 transition"> Format JSON </button></div></div>`);
836
- if (unref(mismatchState)) {
837
- _push(`<div class="${ssrRenderClass([unref(mismatchState).isKnown ? "bg-amber-500/10 border-amber-500/30" : "bg-rose-500/10 border-rose-500/30", "mx-2.5 mt-2.5 p-2 rounded-xl border text-xs transition-all shadow-md flex flex-col sm:flex-row sm:items-center justify-between gap-2"])}"><div class="${ssrRenderClass([unref(mismatchState).isKnown ? "text-amber-300" : "text-rose-300", "flex items-center gap-1.5 text-[11px]"])}"><span class="text-sm">\u26A0\uFE0F</span>`);
838
- if (unref(mismatchState).isKnown) {
839
- _push(`<span> JSON ini dibuat untuk template <b class="underline">${ssrInterpolate((_m = unref(mismatchState).matchedTarget) == null ? void 0 : _m.name)}</b> (<span class="font-mono text-[10px]">${ssrInterpolate(unref(mismatchState).jsonTemplateId)}</span>) </span>`);
840
- } else {
841
- _push(`<span> Template dengan ID &quot;<span class="font-mono text-[10px]">${ssrInterpolate(unref(mismatchState).jsonTemplateId)}</span>&quot; tidak ditemukan di sistem. </span>`);
842
- }
843
- _push(`</div><div class="flex items-center gap-1.5 shrink-0">`);
844
- if (unref(mismatchState).isKnown && unref(mismatchState).matchedTarget) {
845
- _push(`<button class="px-2 py-0.5 rounded-lg bg-amber-500/20 hover:bg-amber-500/30 text-amber-200 border border-amber-500/40 text-[10px] font-bold transition flex items-center gap-1"> Pindah ke Template Ini </button>`);
846
- } else {
847
- _push(`<!---->`);
848
- }
849
- _push(`<button class="px-2 py-0.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-[10px] font-semibold transition"> Hapus JSON (Pakai Sample) </button></div></div>`);
882
+ _push(`</button>`);
883
+ });
884
+ _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">`);
885
+ _push(ssrRenderComponent(unref(Code), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
886
+ _push(`<span>RAW JSON Content</span></label>`);
887
+ if (!unref(jsonFormatError)) {
888
+ _push(`<span class="inline-flex items-center gap-0.5 px-2 py-0.5 rounded-full text-[9px] font-semibold bg-emerald-500/20 text-emerald-400 border border-emerald-500/30">`);
889
+ _push(ssrRenderComponent(unref(CheckCircle2), { class: "w-2.5 h-2.5" }, null, _parent));
890
+ _push(` ${ssrInterpolate(unref(rawJsonInput).trim() ? "Valid" : "Sample Mode")}</span>`);
891
+ } else {
892
+ _push(`<span class="inline-flex items-center gap-0.5 px-2 py-0.5 rounded-full text-[9px] font-semibold bg-rose-500/20 text-rose-400 border border-rose-500/30">`);
893
+ _push(ssrRenderComponent(unref(AlertCircle), { class: "w-2.5 h-2.5" }, null, _parent));
894
+ _push(` Invalid </span>`);
895
+ }
896
+ _push(`</div>`);
897
+ if (unref(mismatchState)) {
898
+ _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>`);
899
+ if (unref(mismatchState).isKnown) {
900
+ _push(`<span> Format milik: <b>${ssrInterpolate((_n = unref(mismatchState).matchedTarget) == null ? void 0 : _n.name)}</b></span>`);
850
901
  } else {
851
- _push(`<!---->`);
902
+ _push(`<span> Template &quot;${ssrInterpolate(unref(mismatchState).jsonTemplateId)}&quot; tidak ditemukan. </span>`);
852
903
  }
853
- _push(`<div class="relative p-2"><textarea rows="7" spellcheck="false" class="w-full bg-slate-950 text-sky-200 text-[11px] font-mono p-2.5 rounded-xl border border-slate-800 focus:outline-none focus:border-sky-500/50 resize-y leading-relaxed" placeholder="Paste Content JSON here... (kosong = otomatis menggunakan data sampel template aktif)">${ssrInterpolate(unref(rawJsonInput))}</textarea>`);
854
- if (unref(jsonFormatError) || __props.validationError) {
855
- _push(`<p class="text-[10px] text-rose-400 mt-1 px-1"> \u26A0\uFE0F ${ssrInterpolate(unref(jsonFormatError) || __props.validationError)}</p>`);
904
+ _push(`</div><div class="flex items-center gap-1.5">`);
905
+ if (unref(mismatchState).isKnown && unref(mismatchState).matchedTarget) {
906
+ _push(`<button class="px-2 py-0.5 rounded-lg bg-amber-500/20 hover:bg-amber-500/30 text-amber-200 border border-amber-500/40 text-[10px] font-bold transition"> Pindah Template </button>`);
856
907
  } else {
857
908
  _push(`<!---->`);
858
909
  }
859
- _push(`</div></div>`);
910
+ _push(`<button class="px-2 py-0.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-[10px] font-semibold transition"> Pakai Sampel </button></div></div>`);
911
+ } else {
912
+ _push(`<!---->`);
913
+ }
914
+ _push(`<textarea rows="7" spellcheck="false" class="w-full bg-slate-950 text-sky-200 text-[11px] font-mono p-2.5 rounded-xl border border-slate-800 focus:outline-none focus:border-sky-500/50 resize-y leading-relaxed select-text custom-scrollbar" placeholder="Paste Content JSON here... (kosong = otomatis menggunakan data sampel template aktif)">${ssrInterpolate(unref(rawJsonInput))}</textarea>`);
915
+ if (unref(jsonFormatError) || __props.validationError) {
916
+ _push(`<p class="text-[10px] text-rose-400 mt-1 px-1"> \u26A0\uFE0F ${ssrInterpolate(unref(jsonFormatError) || __props.validationError)}</p>`);
917
+ } else {
918
+ _push(`<!---->`);
860
919
  }
861
- _push(`<input type="file" accept="video/mp4,video/webm" class="hidden"><input type="file" accept="audio/mp3,audio/mpeg,audio/wav" class="hidden"><div class="p-3 bg-slate-900/90 border border-slate-800 rounded-2xl flex flex-col gap-2.5 shadow-lg text-xs"><div class="flex flex-col gap-1.5"><div class="flex items-center justify-between gap-2"><label class="font-bold text-slate-300 flex items-center gap-1.5 text-[11px]">`);
920
+ _push(`</div><input type="file" accept="video/mp4,video/webm" class="hidden"><input type="file" accept="audio/mp3,audio/mpeg,audio/wav" class="hidden"><div class="p-3 bg-slate-900/80 border border-slate-800 rounded-2xl flex flex-col gap-2.5 shadow-sm text-xs"><div class="flex flex-col gap-1.5"><div class="flex items-center justify-between gap-2"><label class="font-bold text-slate-300 flex items-center gap-1.5 text-[11px]">`);
862
921
  _push(ssrRenderComponent(unref(Film), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
863
- _push(`<span>Background</span></label><div class="flex items-center gap-1.5"><select${ssrRenderAttr("value", __props.options.backgroundSource || "random")} class="bg-slate-950 border border-slate-800 rounded-lg px-2 py-1 text-slate-300 text-[11px] focus:outline-none max-w-[170px]"><option value="random">\u{1F500} Acak Video</option><!--[-->`);
922
+ _push(`<span>Background Video</span></label><div class="flex items-center gap-1.5"><select${ssrRenderAttr("value", __props.options.backgroundSource || "random")} class="bg-slate-950 border border-slate-800 rounded-lg px-2 py-1 text-slate-300 text-[11px] focus:outline-none max-w-[150px] truncate"><option value="random">\u{1F500} Acak Video</option><!--[-->`);
864
923
  ssrRenderList(unref(availableVideos), (v) => {
865
924
  _push(`<option${ssrRenderAttr("value", v)}>${ssrInterpolate(v.replace(".mp4", "").replace(/_/g, " "))}</option>`);
866
925
  });
@@ -868,9 +927,9 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
868
927
  _push(ssrRenderComponent(unref(Upload), { class: "w-3 h-3" }, null, _parent));
869
928
  _push(`<span class="hidden sm:inline">${ssrInterpolate(unref(isUploading) ? "..." : "Upload")}</span></button></div></div><div class="flex items-center justify-between pl-5 pr-1 text-[10px] text-slate-400"><span class="flex items-center gap-1 text-sky-300 font-mono">`);
870
929
  _push(ssrRenderComponent(unref(Scissors), { class: "w-2.5 h-2.5" }, null, _parent));
871
- _push(` Mulai: ${ssrInterpolate(Math.min(__props.options.videoStartOffset || 0, unref(activeVideoMaxOffset)))}s / ${ssrInterpolate(unref(activeVideoDuration))}s </span><input type="range" min="0"${ssrRenderAttr("max", unref(activeVideoMaxOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.options.videoStartOffset || 0, unref(activeVideoMaxOffset)))} class="w-32 h-1 bg-slate-950 rounded appearance-none cursor-pointer accent-sky-400"></div></div><div class="flex flex-col gap-1.5 pt-1.5 border-t border-slate-800"><div class="flex items-center justify-between gap-2"><label class="font-bold text-slate-300 flex items-center gap-1.5 text-[11px]">`);
930
+ _push(` Mulai: ${ssrInterpolate(Math.min(__props.options.videoStartOffset || 0, unref(activeVideoMaxOffset)))}s / ${ssrInterpolate(unref(activeVideoDuration))}s </span><input type="range" min="0"${ssrRenderAttr("max", unref(activeVideoMaxOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.options.videoStartOffset || 0, unref(activeVideoMaxOffset)))} class="w-28 h-1 bg-slate-950 rounded appearance-none cursor-pointer accent-sky-400"></div></div><div class="flex flex-col gap-1.5 pt-1.5 border-t border-slate-800"><div class="flex items-center justify-between gap-2"><label class="font-bold text-slate-300 flex items-center gap-1.5 text-[11px]">`);
872
931
  _push(ssrRenderComponent(unref(Music), { class: "w-3.5 h-3.5 text-purple-400" }, null, _parent));
873
- _push(`<span>Musik Reels</span></label><div class="flex items-center gap-1.5"><select${ssrRenderAttr("value", __props.options.musicFile || "random")} class="bg-slate-950 border border-slate-800 rounded-lg px-2 py-1 text-slate-300 text-[11px] focus:outline-none max-w-[170px]"><option value="random">\u{1F500} Acak Musik</option><!--[-->`);
932
+ _push(`<span>Musik Reels</span></label><div class="flex items-center gap-1.5"><select${ssrRenderAttr("value", __props.options.musicFile || "random")} class="bg-slate-950 border border-slate-800 rounded-lg px-2 py-1 text-slate-300 text-[11px] focus:outline-none max-w-[150px] truncate"><option value="random">\u{1F500} Acak Musik</option><!--[-->`);
874
933
  ssrRenderList(unref(availableAudio), (a) => {
875
934
  _push(`<option${ssrRenderAttr("value", a)}>${ssrInterpolate(a.replace(".mp3", "").replace(/_/g, " "))}</option>`);
876
935
  });
@@ -878,21 +937,21 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
878
937
  _push(ssrRenderComponent(unref(Upload), { class: "w-3 h-3" }, null, _parent));
879
938
  _push(`<span class="hidden sm:inline">${ssrInterpolate(unref(isUploading) ? "..." : "Upload")}</span></button></div></div><div class="flex items-center justify-between pl-5 pr-1 text-[10px] text-slate-400"><span class="flex items-center gap-1 text-purple-300 font-mono">`);
880
939
  _push(ssrRenderComponent(unref(Scissors), { class: "w-2.5 h-2.5" }, null, _parent));
881
- _push(` Mulai: ${ssrInterpolate(Math.min(__props.options.audioStartOffset || 0, unref(activeAudioMaxOffset)))}s / ${ssrInterpolate(unref(activeAudioDuration))}s </span><input type="range" min="0"${ssrRenderAttr("max", unref(activeAudioMaxOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.options.audioStartOffset || 0, unref(activeAudioMaxOffset)))} class="w-32 h-1 bg-slate-950 rounded appearance-none cursor-pointer accent-purple-400"></div></div><div class="flex items-center justify-between pt-1.5 border-t border-slate-800"><label class="font-bold text-slate-300 flex items-center gap-1.5 text-[11px]">`);
940
+ _push(` Mulai: ${ssrInterpolate(Math.min(__props.options.audioStartOffset || 0, unref(activeAudioMaxOffset)))}s / ${ssrInterpolate(unref(activeAudioDuration))}s </span><input type="range" min="0"${ssrRenderAttr("max", unref(activeAudioMaxOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.options.audioStartOffset || 0, unref(activeAudioMaxOffset)))} class="w-28 h-1 bg-slate-950 rounded appearance-none cursor-pointer accent-purple-400"></div></div><div class="flex items-center justify-between pt-1.5 border-t border-slate-800"><label class="font-bold text-slate-300 flex items-center gap-1.5 text-[11px]">`);
882
941
  _push(ssrRenderComponent(unref(Clock), { class: "w-3.5 h-3.5 text-emerald-400" }, null, _parent));
883
942
  _push(`<span>Durasi Reels:</span></label><div class="flex items-center gap-1.5 flex-wrap justify-end"><!--[-->`);
884
943
  ssrRenderList([7, 10, 15, 30, 60], (d) => {
885
944
  _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>`);
886
945
  });
887
- _push(`<!--]--></div></div><div class="grid grid-cols-3 gap-2 pt-1.5 border-t border-slate-800"><label class="${ssrRenderClass([((_n = __props.options.outputs) == null ? void 0 : _n.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(((_o = __props.options.outputs) == null ? void 0 : _o.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([((_p = __props.options.outputs) == null ? void 0 : _p.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(((_q = __props.options.outputs) == null ? void 0 : _q.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([((_r = __props.options.outputs) == null ? void 0 : _r.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(((_s = __props.options.outputs) == null ? void 0 : _s.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><button${ssrIncludeBooleanAttr(!__props.isValid || __props.isGenerating || !!unref(jsonFormatError)) ? " disabled" : ""} class="${ssrRenderClass([[
888
- !__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-blue-600 to-indigo-600 text-white hover:from-sky-400 hover:to-indigo-500 shadow-sky-500/25 active:scale-[0.99]"
946
+ _push(`<!--]--></div></div><div class="grid grid-cols-3 gap-2 pt-1.5 border-t border-slate-800"><label class="${ssrRenderClass([((_o = __props.options.outputs) == null ? void 0 : _o.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(((_p = __props.options.outputs) == null ? void 0 : _p.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([((_q = __props.options.outputs) == null ? void 0 : _q.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(((_r = __props.options.outputs) == null ? void 0 : _r.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([((_s = __props.options.outputs) == null ? void 0 : _s.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(((_t = __props.options.outputs) == null ? void 0 : _t.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([[
947
+ !__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]"
889
948
  ], "w-full py-3 px-4 rounded-xl font-black text-xs tracking-wide shadow-xl transition flex items-center justify-center gap-2"])}">`);
890
949
  if (__props.isGenerating) {
891
950
  _push(ssrRenderComponent(unref(RefreshCw), { class: "w-3.5 h-3.5 animate-spin" }, null, _parent));
892
951
  } else {
893
952
  _push(ssrRenderComponent(unref(Play), { class: "w-3.5 h-3.5 fill-current" }, null, _parent));
894
953
  }
895
- _push(`<span>${ssrInterpolate(__props.isGenerating ? __props.generateStage || "Rendering Content..." : "GENERATE CONTENT")}</span></button></div></div>`);
954
+ _push(`<span>${ssrInterpolate(__props.isGenerating ? __props.generateStage || "Rendering Content..." : "GENERATE CONTENT SEKARANG")}</span></button></div></section></div></div></div>`);
896
955
  };
897
956
  }
898
957
  });
@@ -1110,27 +1169,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1110
1169
  );
1111
1170
  return (_ctx, _push, _parent, _attrs) => {
1112
1171
  const _component_TableCard = _sfc_main$3;
1113
- _push(`<div${ssrRenderAttrs(mergeProps({ class: "flex flex-col gap-2.5 h-full text-slate-100 min-h-0 justify-between relative" }, _attrs))}>`);
1172
+ _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-8f29de3b>`);
1114
1173
  if (__props.isGenerating) {
1115
- _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"><div class="relative flex items-center justify-center mb-5"><div class="w-20 h-20 rounded-full border-4 border-sky-500/20 border-t-sky-400 border-r-indigo-500 animate-spin"></div><div class="absolute inset-0 flex items-center justify-center">`);
1174
+ _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-8f29de3b><div class="relative flex items-center justify-center mb-5" data-v-8f29de3b><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-8f29de3b></div><div class="absolute inset-0 flex items-center justify-center" data-v-8f29de3b>`);
1116
1175
  _push(ssrRenderComponent(unref(Sparkles), { class: "w-8 h-8 text-sky-400 animate-pulse" }, null, _parent));
1117
- _push(`</div></div><h3 class="text-base font-black text-white tracking-wide mb-1.5"> Sedang Men-generate Konten... </h3><p class="text-xs text-sky-300 font-bold mb-4 flex items-center gap-2"><span class="w-2 h-2 rounded-full bg-sky-400 animate-ping"></span><span>${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"><div class="h-full bg-gradient-to-r from-sky-500 via-indigo-500 to-purple-500 rounded-full animate-pulse w-full"></div></div><span class="text-[10px] text-slate-400 font-mono tracking-wider uppercase"> Multi-Format Studio Engine \u2022 Mohon Tunggu Sebentar </span></div>`);
1176
+ _push(`</div></div><h3 class="text-base font-black text-white tracking-wide mb-1.5" data-v-8f29de3b> Sedang Men-generate Konten... </h3><p class="text-xs text-sky-300 font-bold mb-4 flex items-center gap-2" data-v-8f29de3b><span class="w-2 h-2 rounded-full bg-sky-400 animate-ping" data-v-8f29de3b></span><span data-v-8f29de3b>${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-8f29de3b><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-8f29de3b></div></div><span class="text-[10px] text-slate-400 font-mono tracking-wider uppercase" data-v-8f29de3b> Multi-Format Studio Engine \u2022 Mohon Tunggu Sebentar </span></div>`);
1118
1177
  } else {
1119
1178
  _push(`<!---->`);
1120
1179
  }
1121
- _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"><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 text-xs font-bold"><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"])}"> 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"])}"> 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"])}"><span>Reels 9:16 (Video)</span>`);
1180
+ _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-8f29de3b><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 text-xs font-bold" data-v-8f29de3b><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-8f29de3b> 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-8f29de3b> 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-8f29de3b><span data-v-8f29de3b>Reels 9:16 (Video)</span>`);
1122
1181
  if (unref(activeTab) === "reels" && unref(isPlaying)) {
1123
- _push(`<span class="w-1.5 h-1.5 rounded-full bg-white animate-pulse"></span>`);
1182
+ _push(`<span class="w-1.5 h-1.5 rounded-full bg-white animate-pulse" data-v-8f29de3b></span>`);
1124
1183
  } else {
1125
1184
  _push(`<!---->`);
1126
1185
  }
1127
- _push(`</button></div><div class="flex items-center gap-2 text-xs"><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 text-xs shadow-inner"><button title="Zoom Out (-15%)" class="p-1.5 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition">`);
1186
+ _push(`</button></div><div class="flex items-center gap-2 text-xs" data-v-8f29de3b><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 text-xs shadow-inner" data-v-8f29de3b><button title="Zoom Out (-15%)" class="p-1.5 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition" data-v-8f29de3b>`);
1128
1187
  _push(ssrRenderComponent(unref(ZoomOut), { class: "w-3.5 h-3.5" }, null, _parent));
1129
- _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">${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">`);
1188
+ _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-8f29de3b>${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-8f29de3b>`);
1130
1189
  _push(ssrRenderComponent(unref(ZoomIn), { class: "w-3.5 h-3.5" }, null, _parent));
1131
1190
  _push(`</button>`);
1132
1191
  if (unref(zoomScale) !== 1) {
1133
- _push(`<button title="Reset ke Ukuran Pas" class="p-1.5 rounded-lg text-amber-400 hover:bg-slate-800 transition">`);
1192
+ _push(`<button title="Reset ke Ukuran Pas" class="p-1.5 rounded-lg text-amber-400 hover:bg-slate-800 transition" data-v-8f29de3b>`);
1134
1193
  _push(ssrRenderComponent(unref(RotateCcw), { class: "w-3.5 h-3.5" }, null, _parent));
1135
1194
  _push(`</button>`);
1136
1195
  } else {
@@ -1138,22 +1197,22 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1138
1197
  }
1139
1198
  _push(`</div>`);
1140
1199
  if (unref(activeTab) !== "feed") {
1141
- _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"])}">`);
1200
+ _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-8f29de3b>`);
1142
1201
  _push(ssrRenderComponent(unref(ShieldAlert), { class: "w-3.5 h-3.5" }, null, _parent));
1143
- _push(`<span class="hidden sm:inline">Safe Zones</span></button>`);
1202
+ _push(`<span class="hidden sm:inline" data-v-8f29de3b>Safe Zones</span></button>`);
1144
1203
  } else {
1145
1204
  _push(`<!---->`);
1146
1205
  }
1147
- _push(`</div></div><div class="relative flex-1 min-h-0 bg-slate-950/80 border border-slate-800/80 rounded-2xl flex p-4 overflow-auto shadow-inner custom-scrollbar"><div class="m-auto flex-shrink-0 relative transition-all duration-200 ease-out" style="${ssrRenderStyle({
1206
+ _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-8f29de3b><div class="m-auto flex-shrink-0 relative transition-all duration-200 ease-out" style="${ssrRenderStyle({
1148
1207
  width: `${Math.round(unref(baseCanvasWidth) * unref(zoomScale))}px`,
1149
1208
  height: `${Math.round(unref(baseCanvasHeight) * unref(zoomScale))}px`
1150
- })}"><div class="origin-top-left transition-transform duration-200 ease-out absolute top-0 left-0" style="${ssrRenderStyle({
1209
+ })}" data-v-8f29de3b><div class="origin-top-left transition-transform duration-200 ease-out absolute top-0 left-0" style="${ssrRenderStyle({
1151
1210
  width: `${unref(baseCanvasWidth)}px`,
1152
1211
  height: `${unref(baseCanvasHeight)}px`,
1153
1212
  transform: `scale(${unref(zoomScale)})`
1154
- })}">`);
1213
+ })}" data-v-8f29de3b>`);
1155
1214
  if (unref(activeTab) === "feed") {
1156
- _push(`<div class="relative shadow-2xl rounded-2xl overflow-hidden border border-slate-700/80 flex-shrink-0" style="width:360px;height:450px;"><div style="width:1080px;height:1350px;transform:scale(0.333333);transform-origin:top left;">`);
1215
+ _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-8f29de3b><div style="width:1080px;height:1350px;transform:scale(0.333333);transform-origin:top left;" data-v-8f29de3b>`);
1157
1216
  _push(ssrRenderComponent(_component_TableCard, {
1158
1217
  data: __props.data,
1159
1218
  mode: "feed",
@@ -1161,13 +1220,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1161
1220
  }, null, _parent));
1162
1221
  _push(`</div></div>`);
1163
1222
  } else {
1164
- _push(`<div class="relative shadow-2xl rounded-2xl overflow-hidden border border-slate-700/80 flex-shrink-0" style="width:300px;height:533.33px;">`);
1223
+ _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-8f29de3b>`);
1165
1224
  if (unref(activeTab) === "reels") {
1166
- _push(`<div class="absolute inset-0 z-0 bg-slate-950 overflow-hidden"><video autoplay muted playsinline class="w-full h-full object-cover brightness-90 contrast-105"${ssrRenderAttr("src", unref(activeVideoSrc))}></video><div class="absolute inset-0 bg-slate-950/30 backdrop-blur-[0.5px]"></div><audio${ssrRenderAttr("src", unref(activeAudioSrc))}${ssrIncludeBooleanAttr(unref(isMuted)) ? " muted" : ""}></audio></div>`);
1225
+ _push(`<div class="absolute inset-0 z-0 bg-slate-950 overflow-hidden" data-v-8f29de3b><video autoplay muted playsinline class="w-full h-full object-cover brightness-90 contrast-105"${ssrRenderAttr("src", unref(activeVideoSrc))} data-v-8f29de3b></video><div class="absolute inset-0 bg-slate-950/30 backdrop-blur-[0.5px]" data-v-8f29de3b></div><audio${ssrRenderAttr("src", unref(activeAudioSrc))}${ssrIncludeBooleanAttr(unref(isMuted)) ? " muted" : ""} data-v-8f29de3b></audio></div>`);
1167
1226
  } else {
1168
1227
  _push(`<!---->`);
1169
1228
  }
1170
- _push(`<div class="relative z-10 pointer-events-none" style="width:1080px;height:1920px;transform:scale(0.277778);transform-origin:top left;">`);
1229
+ _push(`<div class="relative z-10 pointer-events-none" style="width:1080px;height:1920px;transform:scale(0.277778);transform-origin:top left;" data-v-8f29de3b>`);
1171
1230
  _push(ssrRenderComponent(_component_TableCard, {
1172
1231
  data: __props.data,
1173
1232
  mode: unref(activeTab) === "reels" ? "overlay" : "story",
@@ -1175,13 +1234,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1175
1234
  }, null, _parent));
1176
1235
  _push(`</div>`);
1177
1236
  if (unref(showSafeZones)) {
1178
- _push(`<div class="absolute inset-0 z-20 pointer-events-none flex flex-col justify-between"><div class="h-14 bg-red-500/20 border-b border-dashed border-red-500/60 flex items-center justify-center text-[9px] text-red-200 font-bold tracking-wider"> TOP SAFE ZONE (Profile &amp; Status) </div><div class="flex-1 flex justify-end p-2">`);
1237
+ _push(`<div class="absolute inset-0 z-20 pointer-events-none flex flex-col justify-between" data-v-8f29de3b><div class="h-14 bg-red-500/20 border-b border-dashed border-red-500/60 flex items-center justify-center text-[9px] text-red-200 font-bold tracking-wider" data-v-8f29de3b> TOP SAFE ZONE (Profile &amp; Status) </div><div class="flex-1 flex justify-end p-2" data-v-8f29de3b>`);
1179
1238
  if (unref(activeTab) === "reels") {
1180
- _push(`<div class="w-10 bg-red-500/20 border-l border-dashed border-red-500/60 rounded flex flex-col items-center justify-center gap-3 text-[8px] text-red-200 py-3 text-center px-0.5 font-bold"><span>\u2764\uFE0F Like</span><span>\u{1F4AC} Comm</span><span>\u2197\uFE0F Share</span></div>`);
1239
+ _push(`<div class="w-10 bg-red-500/20 border-l border-dashed border-red-500/60 rounded flex flex-col items-center justify-center gap-3 text-[8px] text-red-200 py-3 text-center px-0.5 font-bold" data-v-8f29de3b><span data-v-8f29de3b>\u2764\uFE0F Like</span><span data-v-8f29de3b>\u{1F4AC} Comm</span><span data-v-8f29de3b>\u2197\uFE0F Share</span></div>`);
1181
1240
  } else {
1182
1241
  _push(`<!---->`);
1183
1242
  }
1184
- _push(`</div><div class="h-20 bg-red-500/20 border-t border-dashed border-red-500/60 flex items-center justify-center text-[9px] text-red-200 font-bold tracking-wider"> BOTTOM SAFE ZONE (Caption &amp; Audio) </div></div>`);
1243
+ _push(`</div><div class="h-20 bg-red-500/20 border-t border-dashed border-red-500/60 flex items-center justify-center text-[9px] text-red-200 font-bold tracking-wider" data-v-8f29de3b> BOTTOM SAFE ZONE (Caption &amp; Audio) </div></div>`);
1185
1244
  } else {
1186
1245
  _push(`<!---->`);
1187
1246
  }
@@ -1189,27 +1248,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1189
1248
  }
1190
1249
  _push(`</div></div></div>`);
1191
1250
  if (unref(activeTab) === "reels") {
1192
- _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"><div class="flex items-center justify-between gap-3"><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")}>`);
1251
+ _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-8f29de3b><div class="flex items-center justify-between gap-3" data-v-8f29de3b><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-8f29de3b>`);
1193
1252
  if (unref(isPlaying)) {
1194
1253
  _push(ssrRenderComponent(unref(Pause), { class: "w-3.5 h-3.5 fill-current" }, null, _parent));
1195
1254
  } else {
1196
1255
  _push(ssrRenderComponent(unref(Play), { class: "w-3.5 h-3.5 fill-current" }, null, _parent));
1197
1256
  }
1198
- _push(`<span class="text-[11px] hidden sm:inline">${ssrInterpolate(unref(isPlaying) ? "Pause" : "Play")}</span></button><div class="flex-1 flex items-center gap-2"><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"><span class="font-mono text-[11px] font-bold text-slate-300 min-w-[75px] text-right">${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)")}>`);
1257
+ _push(`<span class="text-[11px] hidden sm:inline" data-v-8f29de3b>${ssrInterpolate(unref(isPlaying) ? "Pause" : "Play")}</span></button><div class="flex-1 flex items-center gap-2" data-v-8f29de3b><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-8f29de3b><span class="font-mono text-[11px] font-bold text-slate-300 min-w-[75px] text-right" data-v-8f29de3b>${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-8f29de3b>`);
1199
1258
  if (!unref(isMuted)) {
1200
1259
  _push(ssrRenderComponent(unref(Volume2), { class: "w-3.5 h-3.5 text-purple-300 animate-pulse" }, null, _parent));
1201
1260
  } else {
1202
1261
  _push(ssrRenderComponent(unref(VolumeX), { class: "w-3.5 h-3.5" }, null, _parent));
1203
1262
  }
1204
- _push(`<span>${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 &amp; Musik">`);
1263
+ _push(`<span data-v-8f29de3b>${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 &amp; Musik" data-v-8f29de3b>`);
1205
1264
  _push(ssrRenderComponent(unref(Scissors), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
1206
- _push(`<span class="hidden sm:inline">Trim Offset</span></button></div>`);
1265
+ _push(`<span class="hidden sm:inline" data-v-8f29de3b>Trim Offset</span></button></div>`);
1207
1266
  if (unref(showOffsetEditor)) {
1208
- _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"><div class="flex flex-col gap-1.5"><div class="flex items-center justify-between text-[11px]"><span class="font-bold text-sky-300 flex items-center gap-1">`);
1267
+ _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-8f29de3b><div class="flex flex-col gap-1.5" data-v-8f29de3b><div class="flex items-center justify-between text-[11px]" data-v-8f29de3b><span class="font-bold text-sky-300 flex items-center gap-1" data-v-8f29de3b>`);
1209
1268
  _push(ssrRenderComponent(unref(Film), { class: "w-3 h-3" }, null, _parent));
1210
- _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"> 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"><div class="text-[9px] text-slate-500"> Maksimal offset: ${ssrInterpolate(unref(maxVideoOffset))} detik (panjang asli video: ${ssrInterpolate(unref(videoFileDuration))}s) </div></div><div class="flex flex-col gap-1.5"><div class="flex items-center justify-between text-[11px]"><span class="font-bold text-purple-300 flex items-center gap-1">`);
1269
+ _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-8f29de3b> 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-8f29de3b><div class="text-[9px] text-slate-500" data-v-8f29de3b> 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-8f29de3b><div class="flex items-center justify-between text-[11px]" data-v-8f29de3b><span class="font-bold text-purple-300 flex items-center gap-1" data-v-8f29de3b>`);
1211
1270
  _push(ssrRenderComponent(unref(Music), { class: "w-3 h-3" }, null, _parent));
1212
- _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"> (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"><div class="text-[9px] text-slate-500"> Maksimal offset: ${ssrInterpolate(unref(maxAudioOffset))} detik (panjang asli musik: ${ssrInterpolate(unref(audioFileDuration))}s) </div></div></div>`);
1271
+ _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-8f29de3b> (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-8f29de3b><div class="text-[9px] text-slate-500" data-v-8f29de3b> Maksimal offset: ${ssrInterpolate(unref(maxAudioOffset))} detik (panjang asli musik: ${ssrInterpolate(unref(audioFileDuration))}s) </div></div></div>`);
1213
1272
  } else {
1214
1273
  _push(`<!---->`);
1215
1274
  }
@@ -1217,13 +1276,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1217
1276
  } else {
1218
1277
  _push(`<!---->`);
1219
1278
  }
1220
- _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"><div class="flex items-center justify-between text-xs"><span class="font-extrabold text-slate-300 text-[11px]">VIRAL CAPTION &amp; 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">`);
1279
+ _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-8f29de3b><div class="flex items-center justify-between text-xs" data-v-8f29de3b><span class="font-extrabold text-slate-300 text-[11px]" data-v-8f29de3b>VIRAL CAPTION &amp; 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-8f29de3b>`);
1221
1280
  if (unref(copied)) {
1222
1281
  _push(ssrRenderComponent(unref(Check), { class: "w-3.5 h-3.5 text-emerald-400" }, null, _parent));
1223
1282
  } else {
1224
1283
  _push(ssrRenderComponent(unref(Copy), { class: "w-3.5 h-3.5" }, null, _parent));
1225
1284
  }
1226
- _push(`<span>${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...">${ssrInterpolate(__props.data.caption)}</textarea></div></div>`);
1285
+ _push(`<span data-v-8f29de3b>${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-8f29de3b>${ssrInterpolate(__props.data.caption)}</textarea></div></div>`);
1227
1286
  };
1228
1287
  }
1229
1288
  });
@@ -1233,6 +1292,7 @@ _sfc_main$1.setup = (props, ctx) => {
1233
1292
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/LivePreview.vue");
1234
1293
  return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
1235
1294
  };
1295
+ const __nuxt_component_1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-8f29de3b"]]);
1236
1296
  const ComparisonRowSchema = z.object({
1237
1297
  label: z.string().min(1).max(40),
1238
1298
  left: z.string().min(1).max(35),
@@ -1720,8 +1780,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1720
1780
  return (_ctx, _push, _parent, _attrs) => {
1721
1781
  var _a, _b, _c, _d, _e, _f;
1722
1782
  const _component_DashboardControls = _sfc_main$2;
1723
- const _component_LivePreview = _sfc_main$1;
1724
- _push(`<div${ssrRenderAttrs(mergeProps({ class: "h-screen w-screen bg-slate-950 text-slate-100 flex flex-col font-sans selection:bg-sky-500 selection:text-white overflow-hidden" }, _attrs))}><header class="h-14 flex-shrink-0 border-b border-slate-800/80 bg-slate-900/60 backdrop-blur sticky top-0 z-30 px-3 sm:px-6 flex items-center justify-between"><div class="flex items-center gap-2.5 sm:gap-3"><div class="w-8 h-8 rounded-xl bg-gradient-to-tr from-sky-500 via-indigo-600 to-purple-600 flex items-center justify-center font-black text-white shadow-md shadow-sky-500/20 text-xs"> SG </div><div><h1 class="text-sm font-extrabold tracking-tight text-white flex items-center gap-1.5 sm:gap-2"> SocialGen <span class="text-[9px] sm:text-[10px] font-bold px-2 py-0.5 rounded-full bg-slate-800 text-slate-300 border border-slate-700"> v${ssrInterpolate(((_a = unref(systemStatus)) == null ? void 0 : _a.version) || "2.3.7")}</span></h1></div></div><div class="flex items-center gap-2 sm:gap-3 text-xs">`);
1783
+ const _component_LivePreview = __nuxt_component_1;
1784
+ _push(`<div${ssrRenderAttrs(mergeProps({ class: "h-screen w-screen bg-slate-950 text-slate-100 flex flex-col font-sans selection:bg-sky-500 selection:text-white overflow-hidden" }, _attrs))}><header class="h-14 flex-shrink-0 border-b border-slate-800/80 bg-slate-900/60 backdrop-blur sticky top-0 z-30 px-3 sm:px-6 flex items-center justify-between"><div class="flex items-center gap-2.5 sm:gap-3"><div class="w-8 h-8 rounded-xl bg-gradient-to-tr from-sky-500 via-indigo-600 to-purple-600 flex items-center justify-center font-black text-white shadow-md shadow-sky-500/20 text-xs"> SG </div><div><h1 class="text-sm font-extrabold tracking-tight text-white flex items-center gap-1.5 sm:gap-2"> SocialGen <span class="text-[9px] sm:text-[10px] font-bold px-2 py-0.5 rounded-full bg-slate-800 text-sky-400 border border-slate-700"> v${ssrInterpolate(((_a = unref(systemStatus)) == null ? void 0 : _a.version) || "2.4.0 Studio")}</span></h1></div></div><div class="flex items-center gap-2 sm:gap-3 text-xs">`);
1725
1785
  if ((_b = unref(systemStatus)) == null ? void 0 : _b.geminiActive) {
1726
1786
  _push(`<span class="px-2.5 py-0.5 sm:py-1 rounded-full bg-emerald-500/10 text-emerald-400 border border-emerald-500/20 font-semibold text-[10px] sm:text-[11px]"> \u25CF AI Connected </span>`);
1727
1787
  } else {
@@ -1753,7 +1813,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1753
1813
  } else {
1754
1814
  _push(`<!---->`);
1755
1815
  }
1756
- _push(`<main class="flex-1 w-full max-w-[1720px] mx-auto p-2 sm:p-4 grid grid-cols-1 lg:grid-cols-12 gap-4 overflow-hidden min-h-0"><section class="${ssrRenderClass([unref(mobileTab) === "editor" ? "flex" : "hidden lg:flex", "lg:col-span-5 h-full overflow-y-auto pr-1 flex-col gap-3 custom-scrollbar"])}">`);
1816
+ _push(`<main class="flex-1 w-full flex flex-col lg:flex-row overflow-hidden min-h-0"><section class="${ssrRenderClass([unref(mobileTab) === "editor" ? "flex flex-col w-full lg:w-auto lg:flex-row lg:overflow-hidden p-2 lg:p-0" : "hidden lg:flex lg:flex-row lg:overflow-hidden", "h-full shrink-0"])}">`);
1757
1817
  _push(ssrRenderComponent(_component_DashboardControls, {
1758
1818
  modelValue: unref(contentData),
1759
1819
  "onUpdate:modelValue": ($event) => isRef(contentData) ? contentData.value = $event : null,
@@ -1781,7 +1841,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1781
1841
  onClearStash: clearUnsavedStash,
1782
1842
  onToast: (msg, type) => showToast(msg, type)
1783
1843
  }, null, _parent));
1784
- _push(`</section><section class="${ssrRenderClass([unref(mobileTab) === "preview" ? "flex" : "hidden lg:flex", "lg:col-span-7 h-full flex-col gap-3 overflow-hidden justify-between min-h-0"])}">`);
1844
+ _push(`</section><section class="${ssrRenderClass([unref(mobileTab) === "preview" ? "flex w-full p-2" : "hidden lg:flex lg:flex-1 lg:p-3", "h-full min-w-0 flex-col justify-between overflow-hidden"])}">`);
1785
1845
  _push(ssrRenderComponent(_component_LivePreview, {
1786
1846
  data: unref(contentData),
1787
1847
  "selected-video": unref(options).backgroundSource,
@@ -1855,4 +1915,4 @@ _sfc_main.setup = (props, ctx) => {
1855
1915
  };
1856
1916
 
1857
1917
  export { _sfc_main as default };
1858
- //# sourceMappingURL=pages-DAxeAK3-.mjs.map
1918
+ //# sourceMappingURL=pages-ClwYJnbM.mjs.map