@socialgen_user/socialgen 2.3.6 → 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 (46) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{WNF4vvWg.js → AG4bRgGu.js} +1 -1
  3. package/.output/public/_nuxt/{ztWrJaao.js → BETWg864.js} +1 -1
  4. package/.output/public/_nuxt/{BkcabsD-.js → BLYectCX.js} +1 -1
  5. package/.output/public/_nuxt/{Yv0VQg56.js → Cq3K0UDH.js} +2 -2
  6. package/.output/public/_nuxt/DP0BHYkh.js +91 -0
  7. package/.output/public/_nuxt/{C5k0IulZ.js → DszeSBqN.js} +1 -1
  8. package/.output/public/_nuxt/{BnHqhu28.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/public/mobile-demo.html +788 -0
  13. package/.output/server/chunks/_/nitro.mjs +108 -101
  14. package/.output/server/chunks/build/LivePreview-styles.BbGT7KVf.mjs +8 -0
  15. package/.output/server/chunks/build/LivePreview-styles.BbGT7KVf.mjs.map +1 -0
  16. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  17. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -1
  18. package/.output/server/chunks/build/entry-styles.ZVVAUeV7.mjs +8 -0
  19. package/.output/server/chunks/build/entry-styles.ZVVAUeV7.mjs.map +1 -0
  20. package/.output/server/chunks/build/index-styles-1.mjs-CBmp9qkk.mjs +4 -0
  21. package/.output/server/chunks/build/index-styles-1.mjs-CBmp9qkk.mjs.map +1 -0
  22. package/.output/server/chunks/build/index-styles.B8HyMUMp.mjs +11 -0
  23. package/.output/server/chunks/build/index-styles.B8HyMUMp.mjs.map +1 -0
  24. package/.output/server/chunks/build/{pages-BsPKZpHw.mjs → pages-ClwYJnbM.mjs} +529 -164
  25. package/.output/server/chunks/build/pages-ClwYJnbM.mjs.map +1 -0
  26. package/.output/server/chunks/build/server.mjs +1 -1
  27. package/.output/server/chunks/build/styles.mjs +3 -2
  28. package/.output/server/chunks/build/styles.mjs.map +1 -1
  29. package/.output/server/chunks/routes/api/files/_...path_.get.mjs +1 -0
  30. package/.output/server/chunks/routes/api/files/_...path_.get.mjs.map +1 -1
  31. package/.output/server/chunks/routes/api/media.get.mjs +80 -50
  32. package/.output/server/chunks/routes/api/media.get.mjs.map +1 -1
  33. package/.output/server/package.json +1 -1
  34. package/data/history.json +31 -11
  35. package/data/history_generations.json +303 -0
  36. package/data/templates.json +103 -0
  37. package/package.json +1 -1
  38. package/public/mobile-demo.html +788 -0
  39. package/.output/public/_nuxt/CDdFfo0w.js +0 -91
  40. package/.output/public/_nuxt/builds/meta/4b90bf55-5441-4724-8537-3192f91ec217.json +0 -1
  41. package/.output/public/_nuxt/pages.Df3hoeGN.css +0 -1
  42. package/.output/server/chunks/build/entry-styles.BPr_nTP3.mjs +0 -8
  43. package/.output/server/chunks/build/entry-styles.BPr_nTP3.mjs.map +0 -1
  44. package/.output/server/chunks/build/index-styles.CQioNwpv.mjs +0 -8
  45. package/.output/server/chunks/build/index-styles.CQioNwpv.mjs.map +0 -1
  46. package/.output/server/chunks/build/pages-BsPKZpHw.mjs.map +0 -1
@@ -1,8 +1,25 @@
1
1
  import { defineComponent, ref, watch, computed, mergeProps, unref, isRef, nextTick, useSSRContext } from 'vue';
2
- import { ssrRenderAttrs, ssrInterpolate, ssrRenderClass, ssrRenderComponent, ssrRenderAttr, ssrIncludeBooleanAttr, ssrLooseContain, ssrLooseEqual, ssrRenderList, ssrRenderStyle } from 'vue/server-renderer';
3
- import { Settings, X, Check, Edit2, Trash2, FileText, Copy, LayoutTemplate, Plus, Code, Wand2, Globe, Sparkles, Bookmark, Clock, CheckCircle2, AlertCircle, RotateCcw, Film, Upload, Scissors, Music, RefreshCw, Play, ZoomOut, ZoomIn, ShieldAlert, Pause, Volume2, VolumeX, Download, FolderOpen } from 'lucide-vue-next';
2
+ import { ssrRenderAttrs, ssrInterpolate, ssrRenderClass, ssrRenderComponent, ssrIncludeBooleanAttr, ssrRenderAttr, ssrLooseContain, ssrLooseEqual, ssrRenderList, ssrRenderStyle } from 'vue/server-renderer';
3
+ import { Settings, X, Check, Edit2, Trash2, FileText, Copy, LayoutTemplate, Plus, Code, AlertCircle, RefreshCw, Film, Upload, Music, Clock, Sparkles, Eye, Bookmark, Wand2, Layers, Globe, Sliders, RotateCcw, CheckCircle2, Scissors, Play, ZoomOut, ZoomIn, ShieldAlert, Pause, Volume2, VolumeX } from 'lucide-vue-next';
4
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",
@@ -210,21 +227,31 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
210
227
  });
211
228
  watch(
212
229
  () => props.options.backgroundSource,
213
- () => {
214
- const max = activeVideoMaxOffset.value;
215
- if ((props.options.videoStartOffset || 0) > max) {
216
- updateOption("videoStartOffset", max);
230
+ (newVal, oldVal) => {
231
+ if (oldVal !== void 0 && newVal !== oldVal) {
232
+ updateOption("videoStartOffset", 0);
233
+ } else {
234
+ const max = activeVideoMaxOffset.value;
235
+ if ((props.options.videoStartOffset || 0) > max) {
236
+ updateOption("videoStartOffset", max);
237
+ }
217
238
  }
218
- }
239
+ },
240
+ { immediate: true }
219
241
  );
220
242
  watch(
221
243
  () => props.options.musicFile,
222
- () => {
223
- const max = activeAudioMaxOffset.value;
224
- if ((props.options.audioStartOffset || 0) > max) {
225
- updateOption("audioStartOffset", max);
244
+ (newVal, oldVal) => {
245
+ if (oldVal !== void 0 && newVal !== oldVal) {
246
+ updateOption("audioStartOffset", 0);
247
+ } else {
248
+ const max = activeAudioMaxOffset.value;
249
+ if ((props.options.audioStartOffset || 0) > max) {
250
+ updateOption("audioStartOffset", max);
251
+ }
226
252
  }
227
- }
253
+ },
254
+ { immediate: true }
228
255
  );
229
256
  const isUploading = ref(false);
230
257
  ref(null);
@@ -334,9 +361,57 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
334
361
  }
335
362
  }
336
363
  );
364
+ const mobileSubTab = ref("content");
365
+ const showMobileJsonSheet = ref(false);
366
+ const THEME_SWATCHES = [
367
+ { id: "blue-tech", name: "Blue Tech", color: "#0284c7" },
368
+ { id: "emerald-finance", name: "Emerald Finance", color: "#059669" },
369
+ { id: "slate-education", name: "Slate Education", color: "#64748b" },
370
+ { id: "dark-contrast", name: "Dark Contrast", color: "#1e293b" },
371
+ { id: "crimson-alert", name: "Crimson Alert", color: "#e11d48" },
372
+ { id: "amber-gold", name: "Amber Gold", color: "#d97706" },
373
+ { id: "cyber-violet", name: "Cyber Violet", color: "#7c3aed" },
374
+ { id: "sunset-orange", name: "Sunset Orange", color: "#ea580c" },
375
+ { id: "nordic-frost", name: "Nordic Frost", color: "#0891b2" },
376
+ { id: "monochrome-luxe", name: "Monochrome Luxe", color: "#475569" }
377
+ ];
378
+ function getTemplateIcon(layoutType, id) {
379
+ const key = (id || layoutType || "").toLowerCase();
380
+ if (key.includes("orange") || key.includes("news")) return "\u{1F4F0}";
381
+ if (key.includes("edu") || key.includes("infografis")) return "\u{1F4DC}";
382
+ if (key.includes("breaking") || key.includes("alert")) return "\u{1F6A8}";
383
+ if (key.includes("stat")) return "\u{1F3AF}";
384
+ if (key.includes("table") || key.includes("matrix")) return "\u{1F4CA}";
385
+ if (key.includes("versus") || key.includes("debate")) return "\u2694\uFE0F";
386
+ if (key.includes("receipt")) return "\u{1F9FE}";
387
+ if (key.includes("tierlist")) return "\u{1F396}\uFE0F";
388
+ if (key.includes("leaderboard") || key.includes("list")) return "\u{1F3C6}";
389
+ if (key.includes("quote")) return "\u{1F4AC}";
390
+ if (key.includes("timeline")) return "\u23F3";
391
+ if (key.includes("barchart")) return "\u{1F4C8}";
392
+ return "\u{1F3A8}";
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
+ });
337
410
  function updateOption(key, val) {
338
411
  emit("update:options", { ...props.options, [key]: val });
339
412
  }
413
+ const isCopyingManualTopic = ref(false);
414
+ const copiedManualTopic = ref(false);
340
415
  function formatDate(isoStr) {
341
416
  if (!isoStr) return "";
342
417
  try {
@@ -347,7 +422,7 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
347
422
  }
348
423
  }
349
424
  return (_ctx, _push, _parent, _attrs) => {
350
- var _a2, _b2, _c, _d, _e, _f, _g, _h;
425
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
351
426
  _push(`<div${ssrRenderAttrs(mergeProps({ class: "flex flex-col gap-3 text-slate-100" }, _attrs))}>`);
352
427
  if (unref(showNicheModal)) {
353
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">`);
@@ -490,152 +565,361 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
490
565
  } else {
491
566
  _push(`<!---->`);
492
567
  }
493
- _push(`<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">`);
494
- _push(ssrRenderComponent(unref(Wand2), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
495
- _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"><!--[-->`);
496
- ssrRenderList(unref(nichesList), (n) => {
497
- _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>`);
498
- });
499
- _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">`);
500
- _push(ssrRenderComponent(unref(Plus), { class: "w-3 h-3" }, null, _parent));
501
- _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">`);
502
- _push(ssrRenderComponent(unref(Globe), { class: "w-3 h-3 text-emerald-400 ml-1 flex-shrink-0" }, null, _parent));
503
- _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">`);
504
- _push(ssrRenderComponent(unref(FileText), { class: "w-3 h-3" }, null, _parent));
505
- _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">`);
506
- _push(ssrRenderComponent(unref(Sparkles), {
507
- class: ["w-3.5 h-3.5", { "animate-spin": __props.isAutoTopicLoading }]
508
- }, null, _parent));
509
- _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"><!--[-->`);
510
- ssrRenderList(unref(templatesList), (tpl) => {
511
- _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>`);
512
- if (!tpl.isBuiltin) {
513
- _push(`<span class="text-[8px] px-1 py-0.2 rounded bg-purple-500/20 text-purple-300 ml-1">Kustom</span>`);
568
+ _push(`<div class="flex lg:hidden flex-col gap-3 pb-24"><div class="flex items-center justify-between gap-1 p-1 bg-slate-900/95 border border-slate-800 rounded-2xl shadow-lg sticky top-0 z-20 backdrop-blur-md"><div class="flex items-center gap-1 overflow-x-auto no-scrollbar flex-1 py-0.5"><button type="button" class="${ssrRenderClass([unref(mobileSubTab) === "content" ? "bg-sky-500 text-white shadow font-black" : "text-slate-400 hover:text-white", "px-2.5 py-1.5 rounded-xl text-xs font-bold flex items-center gap-1 shrink-0 transition"])}"><span>\u{1F4DD} Konten</span></button><button type="button" class="${ssrRenderClass([unref(mobileSubTab) === "design" ? "bg-sky-500 text-white shadow font-black" : "text-slate-400 hover:text-white", "px-2.5 py-1.5 rounded-xl text-xs font-bold flex items-center gap-1 shrink-0 transition"])}"><span>\u{1F3A8} Template</span></button><button type="button" class="${ssrRenderClass([unref(mobileSubTab) === "media" ? "bg-sky-500 text-white shadow font-black" : "text-slate-400 hover:text-white", "px-2.5 py-1.5 rounded-xl text-xs font-bold flex items-center gap-1 shrink-0 transition"])}"><span>\u{1F3AC} Media</span></button><button type="button" class="${ssrRenderClass([unref(mobileSubTab) === "ai" ? "bg-sky-500 text-white shadow font-black" : "text-slate-400 hover:text-white", "px-2.5 py-1.5 rounded-xl text-xs font-bold flex items-center gap-1 shrink-0 transition"])}"><span>\u26A1 AI Topic</span></button><button type="button" class="${ssrRenderClass([unref(mobileSubTab) === "history" ? "bg-sky-500 text-white shadow font-black" : "text-slate-400 hover:text-white", "px-2.5 py-1.5 rounded-xl text-xs font-bold flex items-center gap-1 shrink-0 transition"])}"><span>\u{1F4BE} Draft</span></button></div><button type="button" class="px-2 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-[10px] font-mono font-bold text-sky-300 border border-slate-700 flex items-center gap-0.5 shrink-0 ml-1" title="Buka RAW JSON Editor"><span>&lt;/&gt; JSON</span></button></div>`);
569
+ if (unref(mobileSubTab) === "content") {
570
+ _push(`<div class="flex flex-col gap-3">`);
571
+ if (unref(jsonFormatError) || __props.validationError || unref(mismatchState)) {
572
+ _push(`<div class="${ssrRenderClass([unref(jsonFormatError) || __props.validationError ? "bg-rose-950/80 border-rose-500/60 text-rose-200" : "bg-amber-950/80 border-amber-500/60 text-amber-200", "p-3.5 rounded-2xl border text-xs shadow-lg space-y-2.5 animate-in fade-in"])}"><div class="flex items-start gap-2.5">`);
573
+ _push(ssrRenderComponent(unref(AlertCircle), {
574
+ class: ["w-4 h-4 shrink-0 mt-0.5", unref(jsonFormatError) || __props.validationError ? "text-rose-400" : "text-amber-400"]
575
+ }, null, _parent));
576
+ _push(`<div class="min-w-0 flex-1"><div class="font-black text-white text-xs">${ssrInterpolate(unref(jsonFormatError) ? "Sintaks JSON Tidak Valid" : unref(mismatchState) ? "Perbedaan Format Template" : "Data Belum Sesuai Template")}</div><p class="text-[11px] mt-0.5 leading-relaxed opacity-90">`);
577
+ if (unref(jsonFormatError)) {
578
+ _push(`<span>${ssrInterpolate(unref(jsonFormatError))}</span>`);
579
+ } else if (unref(mismatchState)) {
580
+ _push(`<span> Data JSON saat ini dibuat untuk template <b class="underline text-white">${ssrInterpolate(((_b2 = unref(mismatchState).matchedTarget) == null ? void 0 : _b2.name) || unref(mismatchState).jsonTemplateId)}</b>, sedangkan template aktif saat ini adalah <b class="underline text-white">${ssrInterpolate(unref(activeTemplate).name)}</b>. </span>`);
581
+ } else {
582
+ _push(`<span>${ssrInterpolate(__props.validationError)}</span>`);
583
+ }
584
+ _push(`</p></div></div><div class="flex items-center gap-2 pt-1 border-t border-white/10 flex-wrap"><button type="button" class="px-3 py-1.5 rounded-xl bg-white text-slate-950 text-xs font-black shadow transition active:scale-95 flex items-center gap-1.5">`);
585
+ _push(ssrRenderComponent(unref(RefreshCw), { class: "w-3.5 h-3.5" }, null, _parent));
586
+ _push(`<span>Pakai Sampel ${ssrInterpolate(unref(activeTemplate).name)}</span></button>`);
587
+ if (((_c = unref(mismatchState)) == null ? void 0 : _c.isKnown) && unref(mismatchState).matchedTarget) {
588
+ _push(`<button type="button" class="px-2.5 py-1.5 rounded-xl bg-amber-500/20 hover:bg-amber-500/40 text-amber-300 border border-amber-500/40 text-xs font-bold transition flex items-center gap-1 active:scale-95"><span>Beralih ke ${ssrInterpolate(unref(mismatchState).matchedTarget.name)}</span></button>`);
589
+ } else {
590
+ _push(`<!---->`);
591
+ }
592
+ _push(`<button type="button" class="px-2.5 py-1.5 rounded-xl bg-slate-800 text-slate-200 text-xs font-bold border border-slate-700 transition ml-auto active:scale-95"><span>&lt;/&gt; Buka JSON</span></button></div></div>`);
593
+ } else {
594
+ _push(`<div class="p-2.5 rounded-xl bg-slate-900/60 border border-slate-800 flex items-center justify-between text-[11px] shadow-sm"><div class="flex items-center gap-2 text-slate-300 truncate"><span class="w-2 h-2 rounded-full bg-emerald-400 shrink-0"></span><span class="text-slate-400">Template Aktif:</span><span class="font-extrabold text-white truncate">${ssrInterpolate(unref(activeTemplate).name)}</span></div><button type="button" class="text-[10px] text-sky-400 hover:text-sky-300 font-bold shrink-0 ml-2 transition" title="Muat ulang sampel data template aktif"> Reset ke Sampel </button></div>`);
595
+ }
596
+ _push(`<div class="p-3.5 bg-slate-900/90 border border-slate-800 rounded-2xl space-y-1.5 shadow-md"><div class="flex items-center justify-between"><label class="text-xs font-extrabold text-white flex items-center gap-1.5"><span>Judul Utama (Title)</span></label><span class="text-[9px] text-sky-400 font-bold uppercase tracking-wider">Wajib</span></div><input type="text"${ssrRenderAttr("value", __props.modelValue.title)} placeholder="Judul Utama Konten..." class="w-full bg-slate-950 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white font-bold focus:outline-none focus:border-sky-500 transition"></div><div class="p-3.5 bg-slate-900/90 border border-slate-800 rounded-2xl space-y-1.5 shadow-md"><label class="text-xs font-bold text-slate-300">Subtitle / Penjelasan Ringkas</label><textarea rows="2" placeholder="Ringkasan atau penjelas judul..." class="w-full bg-slate-950 border border-slate-800 rounded-xl p-2.5 text-xs text-slate-200 focus:outline-none focus:border-sky-500 transition resize-none leading-relaxed">${ssrInterpolate(__props.modelValue.subtitle || "")}</textarea></div><div class="grid grid-cols-1 sm:grid-cols-2 gap-2.5"><div class="p-3 bg-slate-900/90 border border-slate-800 rounded-2xl space-y-1 shadow-md"><label class="text-[11px] font-bold text-slate-400">Watermark Handle</label><input type="text"${ssrRenderAttr("value", __props.modelValue.watermark || "@SocialGen")} placeholder="@NamaAkun" class="w-full bg-slate-950 border border-slate-800 rounded-xl px-2.5 py-1.5 text-sky-400 font-bold text-xs focus:outline-none focus:border-sky-500"></div><div class="p-3 bg-slate-900/90 border border-slate-800 rounded-2xl space-y-1 shadow-md"><label class="text-[11px] font-bold text-slate-400">Sumber (Footer Note)</label><input type="text"${ssrRenderAttr("value", __props.modelValue.footerNote || "")} placeholder="Source: Data Wire 2026..." class="w-full bg-slate-950 border border-slate-800 rounded-xl px-2.5 py-1.5 text-slate-300 text-xs focus:outline-none focus:border-sky-500"></div></div><div class="p-3.5 bg-slate-900/90 border border-slate-800 rounded-2xl space-y-2 shadow-md"><div class="flex items-center justify-between"><span class="text-xs font-bold text-slate-300">Viral Caption &amp; Hashtags</span><button type="button" class="text-[11px] font-bold text-sky-400 hover:text-sky-300 flex items-center gap-1 active:scale-95 transition">`);
597
+ _push(ssrRenderComponent(unref(Copy), { class: "w-3 h-3" }, null, _parent));
598
+ _push(`<span>Salin Caption</span></button></div><textarea rows="3" placeholder="Tulis caption reels / post di sini..." class="w-full bg-slate-950 border border-slate-800 rounded-xl p-2.5 text-xs text-slate-200 focus:outline-none focus:border-sky-500 leading-relaxed resize-none">${ssrInterpolate(__props.modelValue.caption || "")}</textarea></div></div>`);
599
+ } else if (unref(mobileSubTab) === "design") {
600
+ _push(`<div class="flex flex-col gap-3"><div class="p-3.5 bg-slate-900/90 border border-slate-800 rounded-2xl space-y-2.5 shadow-md"><div class="flex items-center justify-between"><div><span class="text-xs font-extrabold text-white">Pilih Format Template (${ssrInterpolate(unref(templatesList).length)})</span><p class="text-[10px] text-slate-400">Geser ke kanan untuk melihat semua format</p></div><button type="button" class="text-[10px] font-bold text-sky-400 hover:text-sky-300 flex items-center gap-1 bg-slate-800 px-2 py-1 rounded-lg border border-slate-700">`);
601
+ _push(ssrRenderComponent(unref(Settings), { class: "w-3 h-3" }, null, _parent));
602
+ _push(`<span>Kelola</span></button></div>`);
603
+ if (unref(mismatchState) || __props.validationError || unref(jsonFormatError)) {
604
+ _push(`<div class="p-2.5 rounded-xl bg-amber-950/70 border border-amber-500/40 text-amber-200 text-xs flex items-center justify-between shadow"><div class="flex items-center gap-1.5 truncate"><span class="text-sm">\u26A0\uFE0F</span><span class="text-[11px] truncate">`);
605
+ if (unref(mismatchState)) {
606
+ _push(`<span>Format JSON milik: <b>${ssrInterpolate(((_d = unref(mismatchState).matchedTarget) == null ? void 0 : _d.name) || unref(mismatchState).jsonTemplateId)}</b></span>`);
607
+ } else if (unref(jsonFormatError)) {
608
+ _push(`<span>Sintaks JSON tidak valid</span>`);
609
+ } else {
610
+ _push(`<span>${ssrInterpolate(__props.validationError)}</span>`);
611
+ }
612
+ _push(`</span></div><button type="button" class="px-2.5 py-1 rounded-lg bg-amber-500 text-slate-950 font-black text-[10px] shrink-0 active:scale-95 shadow ml-2"> Pakai Sampel </button></div>`);
514
613
  } else {
515
614
  _push(`<!---->`);
516
615
  }
517
- _push(`</button>`);
518
- });
519
- _push(`<!--]--></div></div></div></div></div>`);
520
- if (__props.isAutoTopicLoading) {
521
- _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">`);
522
- _push(ssrRenderComponent(unref(Sparkles), { class: "w-3.5 h-3.5 text-sky-400 animate-spin" }, null, _parent));
523
- _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>`);
616
+ _push(`<div class="flex gap-2 overflow-x-auto no-scrollbar py-1"><!--[-->`);
617
+ ssrRenderList(unref(templatesList), (t) => {
618
+ _push(`<button type="button" class="${ssrRenderClass([unref(selectedTemplateId) === t.id ? "bg-slate-950 border-sky-500 shadow-lg shadow-sky-500/20" : "bg-slate-950/70 border-slate-800 hover:border-slate-700", "shrink-0 w-28 p-2.5 rounded-2xl border text-center flex flex-col items-center gap-1.5 transition active:scale-95"])}"><div class="w-8 h-8 rounded-xl bg-slate-800 flex items-center justify-center text-sm shadow">${ssrInterpolate(getTemplateIcon(t.layoutType, t.id))}</div><span class="text-[10px] font-black text-white leading-tight truncate w-full">${ssrInterpolate(t.name)}</span><span class="${ssrRenderClass([t.isBuiltin ? "bg-slate-800 text-slate-400" : "bg-purple-950 text-purple-300 border border-purple-800", "text-[8px] font-bold px-1.5 py-0.2 rounded uppercase tracking-wider"])}">${ssrInterpolate(t.isBuiltin ? t.category : "\u2B50 Kustom")}</span></button>`);
619
+ });
620
+ _push(`<!--]--></div></div><div class="p-3.5 bg-slate-900/90 border border-slate-800 rounded-2xl space-y-2.5 shadow-md"><div class="flex items-center justify-between"><span class="text-xs font-extrabold text-white">Tema Warna (Visual Swatches)</span><span class="text-[10px] text-sky-400 font-bold">${ssrInterpolate(__props.modelValue.theme || "blue-tech")}</span></div><div class="grid grid-cols-5 gap-2.5 py-1"><!--[-->`);
621
+ ssrRenderList(THEME_SWATCHES, (swatch) => {
622
+ _push(`<button type="button" class="flex flex-col items-center gap-1 p-1 rounded-xl transition"${ssrRenderAttr("title", swatch.name)}><div class="${ssrRenderClass([__props.modelValue.theme === swatch.id ? "ring-2 ring-white ring-offset-2 ring-offset-slate-950 scale-105" : "border-white/10 hover:border-white/40", "w-8 h-8 rounded-full border-2 transition transform active:scale-90"])}" style="${ssrRenderStyle({ backgroundColor: swatch.color })}"></div><span class="text-[8px] text-slate-400 truncate w-full text-center">${ssrInterpolate(swatch.name.split(" ")[0])}</span></button>`);
623
+ });
624
+ _push(`<!--]--></div></div><div class="p-3.5 bg-slate-900/90 border border-slate-800 rounded-2xl flex flex-col gap-3 shadow-md"><div class="flex items-center justify-between"><div class="flex flex-col"><span class="text-xs font-bold text-white">Buat Template Kustom</span><span class="text-[10px] text-slate-400">Punya referensi kartu baru? Tambahkan ke sistem.</span></div><button type="button" class="px-3 py-1.5 rounded-xl bg-gradient-to-r from-sky-600 to-indigo-600 hover:from-sky-500 text-white text-xs font-bold shadow flex items-center gap-1.5 active:scale-95 transition">`);
625
+ _push(ssrRenderComponent(unref(Plus), { class: "w-3.5 h-3.5" }, null, _parent));
626
+ _push(`<span>+ Buat Template</span></button></div><div class="pt-2.5 border-t border-slate-800/80 flex items-center justify-between gap-2"><span class="text-[10px] text-slate-400 flex items-center gap-1"><span>\u{1F916} Prompt AI Buat Template</span></span><div class="flex items-center gap-1.5"><button type="button" class="px-2.5 py-1 rounded-lg bg-sky-600/20 hover:bg-sky-600/40 text-sky-300 text-[10px] font-bold border border-sky-500/30 flex items-center gap-1 transition active:scale-95">`);
627
+ _push(ssrRenderComponent(unref(Copy), { class: "w-3 h-3" }, null, _parent));
628
+ _push(`<span>${ssrInterpolate(unref(copiedAiPrompt) ? "\u2713 Tersalin" : "Salin Prompt")}</span></button><button type="button" class="px-2 py-1 rounded-lg bg-slate-800 text-slate-300 text-[10px] font-bold border border-slate-700"><span>${ssrInterpolate(unref(showAiPromptView) ? "Tutup" : "Lihat")}</span></button></div></div>`);
629
+ if (unref(showAiPromptView)) {
630
+ _push(`<div class="p-2 rounded-xl bg-slate-950 border border-sky-500/40"><p class="text-[9px] text-slate-400 mb-1">Kirim prompt ini bersama screenshot kartu ke ChatGPT / Gemini / Claude untuk menghasilkan HTML &amp; CSS template:</p><textarea readonly rows="5" class="w-full bg-slate-900 border border-slate-700 rounded-lg p-2 text-[10px] text-sky-200 font-mono select-all focus:outline-none custom-scrollbar">${ssrInterpolate(unref(masterVisionPromptText))}</textarea></div>`);
631
+ } else {
632
+ _push(`<!---->`);
633
+ }
634
+ _push(`</div></div>`);
635
+ } else if (unref(mobileSubTab) === "media") {
636
+ _push(`<div class="flex flex-col gap-3"><div class="p-3.5 bg-slate-900/90 border border-slate-800 rounded-2xl space-y-2.5 shadow-md"><div class="flex items-center justify-between"><label class="text-xs font-extrabold text-sky-400 flex items-center gap-1.5">`);
637
+ _push(ssrRenderComponent(unref(Film), { class: "w-4 h-4" }, null, _parent));
638
+ _push(`<span>Background Video</span></label><button${ssrIncludeBooleanAttr(unref(isUploading)) ? " disabled" : ""} type="button" class="px-2.5 py-1 rounded-xl bg-sky-950/60 border border-sky-500/40 text-sky-300 text-[10px] font-bold flex items-center gap-1">`);
639
+ _push(ssrRenderComponent(unref(Upload), { class: "w-3 h-3" }, null, _parent));
640
+ _push(`<span>Upload MP4</span></button></div><select${ssrRenderAttr("value", __props.options.backgroundSource || "random")} class="w-full bg-slate-950 border border-slate-800 rounded-xl px-3 py-2 text-slate-200 text-xs font-semibold focus:outline-none focus:border-sky-500"><option value="random">\u{1F500} Acak Video</option><!--[-->`);
641
+ ssrRenderList(unref(availableVideos), (v) => {
642
+ _push(`<option${ssrRenderAttr("value", v)}>${ssrInterpolate(v.replace(".mp4", "").replace(/_/g, " "))}</option>`);
643
+ });
644
+ _push(`<!--]--><option value="pexels">\u{1F310} Pexels API (Auto HD)</option></select><div class="pt-1 space-y-1"><div class="flex items-center justify-between text-[11px]"><span class="text-slate-400 font-mono"> \u2702\uFE0F Mulai Detik: <strong class="text-sky-300 font-bold">${ssrInterpolate(Math.min(__props.options.videoStartOffset || 0, unref(activeVideoMaxOffset)))}s</strong> / ${ssrInterpolate(unref(activeVideoDuration))}s </span><button type="button" class="text-[10px] text-sky-400 hover:text-white"> Reset 0s </button></div><input type="range" min="0"${ssrRenderAttr("max", unref(activeVideoMaxOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.options.videoStartOffset || 0, unref(activeVideoMaxOffset)))} class="w-full h-1.5 bg-slate-950 rounded appearance-none cursor-pointer accent-sky-400"></div></div><div class="p-3.5 bg-slate-900/90 border border-slate-800 rounded-2xl space-y-2.5 shadow-md"><div class="flex items-center justify-between"><label class="text-xs font-extrabold text-purple-400 flex items-center gap-1.5">`);
645
+ _push(ssrRenderComponent(unref(Music), { class: "w-4 h-4" }, null, _parent));
646
+ _push(`<span>Musik Reels</span></label><button${ssrIncludeBooleanAttr(unref(isUploading)) ? " disabled" : ""} type="button" class="px-2.5 py-1 rounded-xl bg-purple-950/60 border border-purple-500/40 text-purple-300 text-[10px] font-bold flex items-center gap-1">`);
647
+ _push(ssrRenderComponent(unref(Upload), { class: "w-3 h-3" }, null, _parent));
648
+ _push(`<span>Upload MP3</span></button></div><select${ssrRenderAttr("value", __props.options.musicFile || "random")} class="w-full bg-slate-950 border border-slate-800 rounded-xl px-3 py-2 text-slate-200 text-xs font-semibold focus:outline-none focus:border-purple-500"><option value="random">\u{1F500} Acak Musik</option><!--[-->`);
649
+ ssrRenderList(unref(availableAudio), (a) => {
650
+ _push(`<option${ssrRenderAttr("value", a)}>${ssrInterpolate(a.replace(".mp3", "").replace(/_/g, " "))}</option>`);
651
+ });
652
+ _push(`<!--]--></select><div class="pt-1 space-y-1"><div class="flex items-center justify-between text-[11px]"><span class="text-slate-400 font-mono"> \u2702\uFE0F Mulai Intro: <strong class="text-purple-300 font-bold">${ssrInterpolate(Math.min(__props.options.audioStartOffset || 0, unref(activeAudioMaxOffset)))}s</strong> / ${ssrInterpolate(unref(activeAudioDuration))}s </span><button type="button" class="text-[10px] text-purple-400 hover:text-white"> Reset 0s </button></div><input type="range" min="0"${ssrRenderAttr("max", unref(activeAudioMaxOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.options.audioStartOffset || 0, unref(activeAudioMaxOffset)))} class="w-full h-1.5 bg-slate-950 rounded appearance-none cursor-pointer accent-purple-400"></div></div><div class="p-3.5 bg-slate-900/90 border border-slate-800 rounded-2xl flex items-center justify-between shadow-md"><label class="text-xs font-bold text-slate-300 flex items-center gap-1.5">`);
653
+ _push(ssrRenderComponent(unref(Clock), { class: "w-3.5 h-3.5 text-emerald-400" }, null, _parent));
654
+ _push(`<span>Durasi Reels:</span></label><div class="flex items-center gap-1.5"><!--[-->`);
655
+ ssrRenderList([7, 10, 15, 30, 60], (d) => {
656
+ _push(`<button type="button" class="${ssrRenderClass([__props.modelValue.reelsDuration === d ? "bg-emerald-500 text-white shadow" : "bg-slate-950 text-slate-400 border border-slate-800", "px-2.5 py-1 rounded-xl text-xs font-bold transition"])}">${ssrInterpolate(d)}s </button>`);
657
+ });
658
+ _push(`<!--]--></div></div><div class="p-3 bg-slate-900/90 border border-slate-800 rounded-2xl space-y-1.5 shadow-md"><span class="text-[11px] font-bold text-slate-400 uppercase tracking-wider block">Format Output Aktif</span><div class="grid grid-cols-3 gap-2"><label class="${ssrRenderClass([((_e = __props.options.outputs) == null ? void 0 : _e.feed) !== false ? "bg-sky-500/10 border-sky-500/40 text-sky-200" : "bg-slate-950 border-slate-800 text-slate-500", "flex items-center gap-1.5 p-2 rounded-xl border text-xs cursor-pointer select-none"])}"><input type="checkbox"${ssrIncludeBooleanAttr(((_f = __props.options.outputs) == null ? void 0 : _f.feed) !== false) ? " checked" : ""} class="rounded text-sky-500"><span class="font-bold">Feed 4:5</span></label><label class="${ssrRenderClass([((_g = __props.options.outputs) == null ? void 0 : _g.story) !== false ? "bg-indigo-500/10 border-indigo-500/40 text-indigo-200" : "bg-slate-950 border-slate-800 text-slate-500", "flex items-center gap-1.5 p-2 rounded-xl border text-xs cursor-pointer select-none"])}"><input type="checkbox"${ssrIncludeBooleanAttr(((_h = __props.options.outputs) == null ? void 0 : _h.story) !== false) ? " checked" : ""} class="rounded text-indigo-500"><span class="font-bold">Story 9:16</span></label><label class="${ssrRenderClass([((_i = __props.options.outputs) == null ? void 0 : _i.reels) !== false ? "bg-emerald-500/10 border-emerald-500/40 text-emerald-200" : "bg-slate-950 border-slate-800 text-slate-500", "flex items-center gap-1.5 p-2 rounded-xl border text-xs cursor-pointer select-none"])}"><input type="checkbox"${ssrIncludeBooleanAttr(((_j = __props.options.outputs) == null ? void 0 : _j.reels) !== false) ? " checked" : ""} class="rounded text-emerald-500"><span class="font-bold">Reels MP4</span></label></div></div></div>`);
659
+ } else if (unref(mobileSubTab) === "ai") {
660
+ _push(`<div class="flex flex-col gap-3"><div class="p-4 rounded-3xl bg-gradient-to-br from-indigo-950/80 via-slate-900 to-sky-950/80 border border-sky-500/30 space-y-3 shadow-xl"><div class="flex items-center justify-between"><span class="text-xs font-black text-sky-300 uppercase tracking-wider flex items-center gap-1.5">`);
661
+ _push(ssrRenderComponent(unref(Sparkles), { class: "w-4 h-4 text-sky-400" }, null, _parent));
662
+ _push(` Auto-Topic AI Generator </span><span class="text-[9px] px-2 py-0.5 rounded-full bg-emerald-500/20 text-emerald-400 font-bold border border-emerald-500/30">${ssrInterpolate(unref(selectedModel))}</span></div><div class="grid grid-cols-2 gap-2"><div class="space-y-1"><label class="text-[10px] font-bold text-slate-400">Pilih Niche</label><select class="w-full bg-slate-950 border border-slate-800 rounded-xl px-2.5 py-2 text-xs text-white font-bold focus:outline-none"><!--[-->`);
663
+ ssrRenderList(unref(nichesList), (n) => {
664
+ _push(`<option${ssrRenderAttr("value", n.id)}${ssrIncludeBooleanAttr(Array.isArray(unref(selectedNicheId)) ? ssrLooseContain(unref(selectedNicheId), n.id) : ssrLooseEqual(unref(selectedNicheId), n.id)) ? " selected" : ""}>${ssrInterpolate(n.name)}</option>`);
665
+ });
666
+ _push(`<!--]--></select></div><div class="space-y-1"><label class="text-[10px] font-bold text-slate-400">Bahasa Konten</label><select class="w-full bg-slate-950 border border-slate-800 rounded-xl px-2.5 py-2 text-xs text-emerald-300 font-bold focus:outline-none"><option value="id"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "id") : ssrLooseEqual(unref(selectedLanguage), "id")) ? " selected" : ""}>\u{1F1EE}\u{1F1E9} Indonesia</option><option value="en"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "en") : ssrLooseEqual(unref(selectedLanguage), "en")) ? " selected" : ""}>\u{1F1FA}\u{1F1F8} English</option><option value="es"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "es") : ssrLooseEqual(unref(selectedLanguage), "es")) ? " selected" : ""}>\u{1F1EA}\u{1F1F8} Espa\xF1ol</option><option value="ja"${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"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "de") : ssrLooseEqual(unref(selectedLanguage), "de")) ? " selected" : ""}>\u{1F1E9}\u{1F1EA} Deutsch</option></select></div></div><button${ssrIncludeBooleanAttr(__props.isGenerating || __props.isAutoTopicLoading) ? " disabled" : ""} type="button" class="w-full py-3 rounded-2xl bg-gradient-to-r from-sky-500 via-indigo-600 to-purple-600 text-white font-black text-xs shadow-xl shadow-sky-500/25 flex items-center justify-center gap-2 active:scale-98 transition disabled:opacity-50">`);
667
+ _push(ssrRenderComponent(unref(Sparkles), {
668
+ class: ["w-4 h-4", { "animate-spin": __props.isAutoTopicLoading }]
669
+ }, null, _parent));
670
+ _push(`<span>${ssrInterpolate(__props.isAutoTopicLoading ? "Meriset Data Viral..." : "\u2728 Auto-Topic Viral Baru")}</span></button></div><div class="p-3.5 bg-slate-900/90 border border-purple-500/30 rounded-2xl space-y-2.5 shadow-md"><div class="flex items-center justify-between"><div class="flex items-center gap-1.5">`);
671
+ _push(ssrRenderComponent(unref(FileText), { class: "w-4 h-4 text-purple-400" }, null, _parent));
672
+ _push(`<span class="text-xs font-black text-white">Master Prompt Riset Topik AI</span></div><button type="button" class="px-2 py-0.5 rounded-lg bg-purple-950/60 border border-purple-500/40 text-purple-300 text-[10px] font-bold flex items-center gap-1 hover:text-white">`);
673
+ _push(ssrRenderComponent(unref(Eye), { class: "w-3 h-3" }, null, _parent));
674
+ _push(`<span>Buka Detail</span></button></div><p class="text-[11px] text-slate-400 leading-relaxed"> Salin prompt riset cerdas ini ke <b>ChatGPT / Gemini / Claude</b> untuk riset topik konten viral terbaru sesuai niche &amp; template yang aktif (bebas bentrok riwayat): </p><div class="flex items-center gap-2"><button${ssrIncludeBooleanAttr(unref(isCopyingManualTopic)) ? " disabled" : ""} type="button" class="flex-1 px-3 py-2.5 rounded-xl bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-500 text-white text-xs font-bold shadow-lg transition flex items-center justify-center gap-1.5 active:scale-95 disabled:opacity-50">`);
675
+ if (unref(copiedManualTopic)) {
676
+ _push(ssrRenderComponent(unref(Check), { class: "w-3.5 h-3.5 text-emerald-300" }, null, _parent));
677
+ } else {
678
+ _push(ssrRenderComponent(unref(Copy), { class: "w-3.5 h-3.5" }, null, _parent));
679
+ }
680
+ _push(`<span>${ssrInterpolate(unref(isCopyingManualTopic) ? "Menyiapkan Prompt..." : unref(copiedManualTopic) ? "\u2713 Master Prompt Tersalin!" : "Salin Master Prompt Topik")}</span></button><button type="button" title="Lihat teks prompt manual lengkap" class="px-3 py-2.5 rounded-xl bg-slate-800 text-slate-300 text-xs font-bold border border-slate-700 hover:bg-slate-700 transition">`);
681
+ _push(ssrRenderComponent(unref(Eye), { class: "w-3.5 h-3.5" }, null, _parent));
682
+ _push(`</button></div></div></div>`);
683
+ } else if (unref(mobileSubTab) === "history") {
684
+ _push(`<div class="flex flex-col gap-3"><div class="flex items-center justify-between bg-slate-900/90 p-1 rounded-2xl border border-slate-800 text-xs font-bold shadow-md"><button type="button" class="${ssrRenderClass([unref(activeTab) === "drafts" ? "bg-amber-500 text-slate-950 font-black shadow" : "text-slate-400 hover:text-white", "flex-1 py-1.5 px-3 rounded-xl transition text-center"])}"><span>Drafts (${ssrInterpolate(__props.drafts.length)})</span></button><button type="button" class="${ssrRenderClass([unref(activeTab) === "history" ? "bg-purple-600 text-white font-black shadow" : "text-slate-400 hover:text-white", "flex-1 py-1.5 px-3 rounded-xl transition text-center"])}"><span>Riwayat (${ssrInterpolate(__props.history.length)})</span></button></div>`);
685
+ if (unref(activeTab) === "drafts") {
686
+ _push(`<div class="flex flex-col gap-2"><div class="flex items-center justify-between px-1"><span class="text-[11px] font-bold text-slate-400 uppercase tracking-wider">Daftar Draft Tersimpan</span><button type="button" class="text-[11px] font-bold text-amber-400 hover:text-amber-300 flex items-center gap-1">`);
687
+ _push(ssrRenderComponent(unref(Bookmark), { class: "w-3 h-3" }, null, _parent));
688
+ _push(`<span>+ Simpan Draft</span></button></div>`);
689
+ if (__props.drafts.length === 0) {
690
+ _push(`<div class="text-center py-10 text-slate-500 text-xs bg-slate-900/50 rounded-2xl border border-slate-800"> Belum ada draft tersimpan. </div>`);
691
+ } else {
692
+ _push(`<!---->`);
693
+ }
694
+ _push(`<!--[-->`);
695
+ ssrRenderList(__props.drafts, (draft, dIdx) => {
696
+ _push(`<div class="p-3 rounded-2xl border bg-slate-900/80 border-slate-800 hover:border-amber-500/40 flex items-center justify-between cursor-pointer active:scale-98 transition shadow"><div class="flex-1 pr-2 truncate"><div class="font-extrabold text-xs text-white truncate">${ssrInterpolate(draft.title || "Tanpa Judul")}</div><div class="text-[10px] text-slate-400 font-mono">${ssrInterpolate(draft.category || "Draft")}</div></div><button type="button" class="p-1.5 text-slate-400 hover:text-rose-400 rounded-lg transition">`);
697
+ _push(ssrRenderComponent(unref(Trash2), { class: "w-3.5 h-3.5" }, null, _parent));
698
+ _push(`</button></div>`);
699
+ });
700
+ _push(`<!--]--></div>`);
701
+ } else {
702
+ _push(`<div class="flex flex-col gap-2"><div class="flex items-center justify-between px-1"><span class="text-[11px] font-bold text-slate-400 uppercase tracking-wider">Riwayat Generasi Terakhir</span>`);
703
+ if (__props.history.length > 0) {
704
+ _push(`<button type="button" class="text-[10px] font-bold text-rose-400 hover:text-rose-300"> Hapus Semua </button>`);
705
+ } else {
706
+ _push(`<!---->`);
707
+ }
708
+ _push(`</div>`);
709
+ if (__props.history.length === 0) {
710
+ _push(`<div class="text-center py-10 text-slate-500 text-xs bg-slate-900/50 rounded-2xl border border-slate-800"> Belum ada riwayat pembuatan. </div>`);
711
+ } else {
712
+ _push(`<!---->`);
713
+ }
714
+ _push(`<!--[-->`);
715
+ ssrRenderList(__props.history, (item, hIdx) => {
716
+ _push(`<div class="p-3 rounded-2xl border bg-slate-900/80 border-slate-800 hover:border-purple-500/40 flex items-center justify-between cursor-pointer active:scale-98 transition shadow"><div class="flex-1 pr-2 truncate"><div class="font-extrabold text-xs text-white truncate">${ssrInterpolate(item.title)}</div><div class="text-[10px] text-slate-400 font-mono">${ssrInterpolate(item.category)} \u2022 ${ssrInterpolate(formatDate(item.generatedAt))}</div></div><button type="button" class="p-1.5 text-slate-400 hover:text-rose-400 rounded-lg transition">`);
717
+ _push(ssrRenderComponent(unref(Trash2), { class: "w-3.5 h-3.5" }, null, _parent));
718
+ _push(`</button></div>`);
719
+ });
720
+ _push(`<!--]--></div>`);
721
+ }
722
+ _push(`</div>`);
524
723
  } else {
525
724
  _push(`<!---->`);
526
725
  }
527
- _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">`);
528
- _push(ssrRenderComponent(unref(Bookmark), { class: "w-3 h-3" }, null, _parent));
529
- _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">`);
530
- _push(ssrRenderComponent(unref(Clock), { class: "w-3 h-3" }, null, _parent));
531
- _push(`<span>Riwayat (${ssrInterpolate(__props.history.length)})</span></button></div><div class="flex items-center gap-1.5">`);
532
- if (__props.unsavedStash) {
533
- _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>`);
726
+ if (unref(showMobileJsonSheet)) {
727
+ _push(`<div class="fixed inset-0 z-50 bg-black/80 backdrop-blur-sm flex flex-col justify-end"><div class="w-full max-h-[80vh] bg-slate-900 border-t border-slate-700 rounded-t-3xl p-4 flex flex-col gap-3 shadow-2xl animate-in slide-in-from-bottom"><div class="flex items-center justify-between pb-2 border-b border-slate-800"><div class="flex items-center gap-2"><span class="text-xs font-bold text-white font-mono">&lt;/&gt; RAW JSON SocialGen</span><span class="text-[9px] px-1.5 py-0.2 rounded-full bg-sky-500/20 text-sky-300 font-mono">Format V2</span></div><button type="button" class="w-7 h-7 rounded-full bg-slate-800 flex items-center justify-center text-xs text-slate-400 hover:text-white"> \u2715 </button></div>`);
728
+ if (unref(mismatchState) || unref(jsonFormatError) || __props.validationError) {
729
+ _push(`<div class="${ssrRenderClass([unref(jsonFormatError) || __props.validationError ? "bg-rose-950/80 border-rose-500/50 text-rose-200" : "bg-amber-950/80 border-amber-500/50 text-amber-200", "p-2.5 rounded-xl border text-[11px] flex items-center justify-between gap-2 shadow"])}"><div class="flex items-center gap-1.5 truncate"><span>\u26A0\uFE0F</span><span class="truncate">`);
730
+ if (unref(jsonFormatError)) {
731
+ _push(`<span>${ssrInterpolate(unref(jsonFormatError))}</span>`);
732
+ } else if (unref(mismatchState)) {
733
+ _push(`<span>JSON untuk template: <b>${ssrInterpolate(((_k = unref(mismatchState).matchedTarget) == null ? void 0 : _k.name) || unref(mismatchState).jsonTemplateId)}</b></span>`);
734
+ } else {
735
+ _push(`<span>${ssrInterpolate(__props.validationError)}</span>`);
736
+ }
737
+ _push(`</span></div>`);
738
+ if (((_l = unref(mismatchState)) == null ? void 0 : _l.isKnown) && unref(mismatchState).matchedTarget) {
739
+ _push(`<button type="button" class="px-2 py-0.5 rounded-lg bg-amber-500 text-slate-950 font-bold text-[10px] shrink-0 active:scale-95 shadow"> Ganti Template </button>`);
740
+ } else {
741
+ _push(`<!---->`);
742
+ }
743
+ _push(`</div>`);
744
+ } else {
745
+ _push(`<!---->`);
746
+ }
747
+ _push(`<textarea rows="8" spellcheck="false" class="w-full bg-slate-950 text-sky-200 text-xs font-mono p-3 rounded-xl border border-slate-800 focus:outline-none focus:border-sky-500/50 resize-y leading-relaxed" placeholder="Paste Content JSON here...">${ssrInterpolate(unref(rawJsonInput))}</textarea><div class="flex items-center justify-between gap-2"><button type="button" class="px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-xs font-bold text-amber-400"> Pakai Sample </button><button type="button" class="px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-xs font-bold text-sky-400"> Format JSON </button><button type="button" class="px-4 py-2 rounded-xl bg-sky-500 hover:bg-sky-400 text-xs font-bold text-white shadow-lg"> Selesai </button></div></div></div>`);
534
748
  } else {
535
749
  _push(`<!---->`);
536
750
  }
537
- if (unref(activeTab) === "history" && __props.history.length > 0) {
538
- _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>`);
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">`);
752
+ _push(ssrRenderComponent(unref(Wand2), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
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"><!--[-->`);
756
+ ssrRenderList(unref(nichesList), (n) => {
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>`);
758
+ });
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">`);
760
+ _push(ssrRenderComponent(unref(Plus), { class: "w-3 h-3" }, null, _parent));
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">`);
766
+ _push(ssrRenderComponent(unref(Sparkles), {
767
+ class: ["w-3.5 h-3.5 text-amber-300", { "animate-spin": __props.isAutoTopicLoading }]
768
+ }, null, _parent));
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>`);
770
+ if (__props.isAutoTopicLoading) {
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>`);
539
774
  } else {
540
775
  _push(`<!---->`);
541
776
  }
542
- _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">`);
543
- _push(ssrRenderComponent(unref(Bookmark), { class: "w-3 h-3" }, null, _parent));
544
- _push(`<span>+ Simpan ke Draft</span></button></div></div>`);
545
- if (unref(activeTab) === "drafts") {
546
- _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">`);
547
814
  if (__props.unsavedStash) {
548
- _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>`);
549
816
  } else {
550
817
  _push(`<!---->`);
551
818
  }
552
819
  if (__props.drafts.length === 0) {
553
- _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>`);
554
821
  } else {
555
822
  _push(`<!---->`);
556
823
  }
557
824
  _push(`<!--[-->`);
558
825
  ssrRenderList(__props.drafts, (draft, dIdx) => {
559
- _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">`);
560
827
  _push(ssrRenderComponent(unref(Trash2), { class: "w-3.5 h-3.5" }, null, _parent));
561
828
  _push(`</button></div>`);
562
829
  });
563
- _push(`<!--]--></div>`);
830
+ _push(`<!--]--></div></div>`);
564
831
  } else if (unref(activeTab) === "history") {
565
- _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">`);
566
839
  if (__props.unsavedStash) {
567
- _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>`);
568
841
  } else {
569
842
  _push(`<!---->`);
570
843
  }
571
844
  if (__props.history.length === 0) {
572
- _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>`);
573
846
  } else {
574
847
  _push(`<!---->`);
575
848
  }
576
849
  _push(`<!--[-->`);
577
850
  ssrRenderList(__props.history, (item, hIdx) => {
578
- _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>`);
579
852
  if (item.generatedAt) {
580
- _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>`);
581
854
  } else {
582
855
  _push(`<!---->`);
583
856
  }
584
- _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">`);
585
858
  _push(ssrRenderComponent(unref(Trash2), { class: "w-3.5 h-3.5" }, null, _parent));
586
859
  _push(`</button></div>`);
587
860
  });
588
- _push(`<!--]--></div>`);
861
+ _push(`<!--]--></div></div>`);
589
862
  } else {
590
- _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">`);
591
- _push(ssrRenderComponent(unref(LayoutTemplate), { class: "w-3 h-3 text-sky-400" }, null, _parent));
592
- _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">`);
593
- _push(ssrRenderComponent(unref(Settings), { class: "w-3 h-3" }, null, _parent));
594
- _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]"><!--[-->`);
595
- ssrRenderList(unref(templatesList), (t) => {
596
- _push(`<option${ssrRenderAttr("value", t.id)}>${ssrInterpolate(t.name)} ${ssrInterpolate(t.isBuiltin ? "" : "\u2B50 (Kustom)")}</option>`);
597
- });
598
- _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>`);
599
- if (!unref(jsonFormatError)) {
600
- _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">`);
601
- _push(ssrRenderComponent(unref(CheckCircle2), { class: "w-2.5 h-2.5" }, null, _parent));
602
- _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));
603
879
  } else {
604
- _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">`);
605
- _push(ssrRenderComponent(unref(AlertCircle), { class: "w-2.5 h-2.5" }, null, _parent));
606
- _push(` Invalid </span>`);
880
+ _push(`<!---->`);
607
881
  }
608
- _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">`);
609
- _push(ssrRenderComponent(unref(RotateCcw), { class: "w-2.5 h-2.5" }, null, _parent));
610
- _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>`);
611
- if (unref(mismatchState)) {
612
- _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>`);
613
- if (unref(mismatchState).isKnown) {
614
- _push(`<span> JSON ini dibuat untuk template <b class="underline">${ssrInterpolate((_b2 = unref(mismatchState).matchedTarget) == null ? void 0 : _b2.name)}</b> (<span class="font-mono text-[10px]">${ssrInterpolate(unref(mismatchState).jsonTemplateId)}</span>) </span>`);
615
- } else {
616
- _push(`<span> Template dengan ID &quot;<span class="font-mono text-[10px]">${ssrInterpolate(unref(mismatchState).jsonTemplateId)}</span>&quot; tidak ditemukan di sistem. </span>`);
617
- }
618
- _push(`</div><div class="flex items-center gap-1.5 shrink-0">`);
619
- if (unref(mismatchState).isKnown && unref(mismatchState).matchedTarget) {
620
- _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>`);
621
- } else {
622
- _push(`<!---->`);
623
- }
624
- _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>`);
625
901
  } else {
626
- _push(`<!---->`);
902
+ _push(`<span> Template &quot;${ssrInterpolate(unref(mismatchState).jsonTemplateId)}&quot; tidak ditemukan. </span>`);
627
903
  }
628
- _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>`);
629
- if (unref(jsonFormatError) || __props.validationError) {
630
- _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>`);
631
907
  } else {
632
908
  _push(`<!---->`);
633
909
  }
634
- _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(`<!---->`);
635
913
  }
636
- _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]">`);
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(`<!---->`);
919
+ }
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]">`);
637
921
  _push(ssrRenderComponent(unref(Film), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
638
- _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><!--[-->`);
639
923
  ssrRenderList(unref(availableVideos), (v) => {
640
924
  _push(`<option${ssrRenderAttr("value", v)}>${ssrInterpolate(v.replace(".mp4", "").replace(/_/g, " "))}</option>`);
641
925
  });
@@ -643,9 +927,9 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
643
927
  _push(ssrRenderComponent(unref(Upload), { class: "w-3 h-3" }, null, _parent));
644
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">`);
645
929
  _push(ssrRenderComponent(unref(Scissors), { class: "w-2.5 h-2.5" }, null, _parent));
646
- _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]">`);
647
931
  _push(ssrRenderComponent(unref(Music), { class: "w-3.5 h-3.5 text-purple-400" }, null, _parent));
648
- _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><!--[-->`);
649
933
  ssrRenderList(unref(availableAudio), (a) => {
650
934
  _push(`<option${ssrRenderAttr("value", a)}>${ssrInterpolate(a.replace(".mp3", "").replace(/_/g, " "))}</option>`);
651
935
  });
@@ -653,21 +937,21 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
653
937
  _push(ssrRenderComponent(unref(Upload), { class: "w-3 h-3" }, null, _parent));
654
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">`);
655
939
  _push(ssrRenderComponent(unref(Scissors), { class: "w-2.5 h-2.5" }, null, _parent));
656
- _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]">`);
657
941
  _push(ssrRenderComponent(unref(Clock), { class: "w-3.5 h-3.5 text-emerald-400" }, null, _parent));
658
942
  _push(`<span>Durasi Reels:</span></label><div class="flex items-center gap-1.5 flex-wrap justify-end"><!--[-->`);
659
943
  ssrRenderList([7, 10, 15, 30, 60], (d) => {
660
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>`);
661
945
  });
662
- _push(`<!--]--></div></div><div class="grid grid-cols-3 gap-2 pt-1.5 border-t border-slate-800"><label class="${ssrRenderClass([((_c = __props.options.outputs) == null ? void 0 : _c.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(((_d = __props.options.outputs) == null ? void 0 : _d.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([((_e = __props.options.outputs) == null ? void 0 : _e.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(((_f = __props.options.outputs) == null ? void 0 : _f.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([((_g = __props.options.outputs) == null ? void 0 : _g.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(((_h = __props.options.outputs) == null ? void 0 : _h.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([[
663
- !__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]"
664
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"])}">`);
665
949
  if (__props.isGenerating) {
666
950
  _push(ssrRenderComponent(unref(RefreshCw), { class: "w-3.5 h-3.5 animate-spin" }, null, _parent));
667
951
  } else {
668
952
  _push(ssrRenderComponent(unref(Play), { class: "w-3.5 h-3.5 fill-current" }, null, _parent));
669
953
  }
670
- _push(`<span>${ssrInterpolate(__props.isGenerating ? __props.generateStage || "Rendering Content..." : "GENERATE CONTENT")}</span></button></div>`);
954
+ _push(`<span>${ssrInterpolate(__props.isGenerating ? __props.generateStage || "Rendering Content..." : "GENERATE CONTENT SEKARANG")}</span></button></div></section></div></div></div>`);
671
955
  };
672
956
  }
673
957
  });
@@ -686,11 +970,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
686
970
  selectedMusic: {},
687
971
  videoStartOffset: { default: 0 },
688
972
  audioStartOffset: { default: 0 },
973
+ isGenerating: { type: Boolean, default: false },
974
+ generateStage: { default: "" },
689
975
  generatedResult: {}
690
976
  },
691
977
  emits: ["update:videoStartOffset", "update:audioStartOffset"],
692
978
  setup(__props, { emit: __emit }) {
693
979
  const props = __props;
980
+ const emit = __emit;
694
981
  const KNOWN_DURATIONS = {
695
982
  "neon_cyber_grid.mp4": 8,
696
983
  "financial_pulse_flow.mp4": 8,
@@ -725,8 +1012,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
725
1012
  const showSafeZones = ref(false);
726
1013
  const showOffsetEditor = ref(false);
727
1014
  const copied = ref(false);
728
- const isOpeningFolder = ref(false);
1015
+ ref(false);
729
1016
  const zoomScale = ref(1);
1017
+ const baseCanvasWidth = computed(() => activeTab.value === "feed" ? 360 : 300);
1018
+ const baseCanvasHeight = computed(() => activeTab.value === "feed" ? 450 : 533.33);
730
1019
  const videoElement = ref(null);
731
1020
  const audioElement = ref(null);
732
1021
  const isPlaying = ref(true);
@@ -758,6 +1047,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
758
1047
  lastTimestamp = timestamp;
759
1048
  rafId = requestAnimationFrame(updatePlaybackTimeline);
760
1049
  }
1050
+ const dynamicDurations = ref({});
761
1051
  watch(totalDuration, (newDur) => {
762
1052
  if (currentTime.value > newDur) {
763
1053
  currentTime.value = 0;
@@ -794,6 +1084,29 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
794
1084
  audioElement.value.currentTime = Math.min(targetA, audioFileDuration.value - 0.1);
795
1085
  }
796
1086
  }
1087
+ watch(
1088
+ () => props.selectedVideo,
1089
+ (newVal, oldVal) => {
1090
+ if (oldVal !== void 0 && newVal !== oldVal) {
1091
+ emit("update:videoStartOffset", 0);
1092
+ currentTime.value = 0;
1093
+ if (videoElement.value) {
1094
+ videoElement.value.currentTime = 0;
1095
+ }
1096
+ }
1097
+ }
1098
+ );
1099
+ watch(
1100
+ () => props.selectedMusic,
1101
+ (newVal, oldVal) => {
1102
+ if (oldVal !== void 0 && newVal !== oldVal) {
1103
+ emit("update:audioStartOffset", 0);
1104
+ if (audioElement.value) {
1105
+ audioElement.value.currentTime = 0;
1106
+ }
1107
+ }
1108
+ }
1109
+ );
797
1110
  watch(
798
1111
  () => props.videoStartOffset,
799
1112
  (newVal) => {
@@ -821,8 +1134,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
821
1134
  () => activeVideoSrc.value,
822
1135
  () => {
823
1136
  const filename = props.selectedVideo || "";
824
- if (KNOWN_DURATIONS[filename]) {
825
- videoFileDuration.value = KNOWN_DURATIONS[filename];
1137
+ if (dynamicDurations.value[filename] || KNOWN_DURATIONS[filename]) {
1138
+ videoFileDuration.value = dynamicDurations.value[filename] || KNOWN_DURATIONS[filename];
826
1139
  }
827
1140
  nextTick(() => {
828
1141
  seekToRelative(0);
@@ -833,8 +1146,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
833
1146
  () => activeAudioSrc.value,
834
1147
  () => {
835
1148
  const filename = props.selectedMusic || "";
836
- if (KNOWN_DURATIONS[filename]) {
837
- audioFileDuration.value = KNOWN_DURATIONS[filename];
1149
+ if (dynamicDurations.value[filename] || KNOWN_DURATIONS[filename]) {
1150
+ audioFileDuration.value = dynamicDurations.value[filename] || KNOWN_DURATIONS[filename];
838
1151
  }
839
1152
  }
840
1153
  );
@@ -856,19 +1169,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
856
1169
  );
857
1170
  return (_ctx, _push, _parent, _attrs) => {
858
1171
  const _component_TableCard = _sfc_main$3;
859
- _push(`<div${ssrRenderAttrs(mergeProps({ class: "flex flex-col gap-2.5 h-full text-slate-100 min-h-0 justify-between" }, _attrs))}><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>`);
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>`);
1173
+ if (__props.isGenerating) {
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>`);
1175
+ _push(ssrRenderComponent(unref(Sparkles), { class: "w-8 h-8 text-sky-400 animate-pulse" }, null, _parent));
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>`);
1177
+ } else {
1178
+ _push(`<!---->`);
1179
+ }
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>`);
860
1181
  if (unref(activeTab) === "reels" && unref(isPlaying)) {
861
- _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>`);
862
1183
  } else {
863
1184
  _push(`<!---->`);
864
1185
  }
865
- _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>`);
866
1187
  _push(ssrRenderComponent(unref(ZoomOut), { class: "w-3.5 h-3.5" }, null, _parent));
867
- _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>`);
868
1189
  _push(ssrRenderComponent(unref(ZoomIn), { class: "w-3.5 h-3.5" }, null, _parent));
869
1190
  _push(`</button>`);
870
1191
  if (unref(zoomScale) !== 1) {
871
- _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>`);
872
1193
  _push(ssrRenderComponent(unref(RotateCcw), { class: "w-3.5 h-3.5" }, null, _parent));
873
1194
  _push(`</button>`);
874
1195
  } else {
@@ -876,15 +1197,22 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
876
1197
  }
877
1198
  _push(`</div>`);
878
1199
  if (unref(activeTab) !== "feed") {
879
- _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>`);
880
1201
  _push(ssrRenderComponent(unref(ShieldAlert), { class: "w-3.5 h-3.5" }, null, _parent));
881
- _push(`<span class="hidden sm:inline">Safe Zones</span></button>`);
1202
+ _push(`<span class="hidden sm:inline" data-v-8f29de3b>Safe Zones</span></button>`);
882
1203
  } else {
883
1204
  _push(`<!---->`);
884
1205
  }
885
- _push(`</div></div><div class="relative flex-1 min-h-0 bg-slate-950/80 border border-slate-800/80 rounded-2xl flex items-center justify-center p-3 overflow-auto shadow-inner custom-scrollbar"><div class="transition-transform duration-200 ease-out origin-center flex-shrink-0" style="${ssrRenderStyle({ transform: `scale(${unref(zoomScale)})` })}">`);
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({
1207
+ width: `${Math.round(unref(baseCanvasWidth) * unref(zoomScale))}px`,
1208
+ height: `${Math.round(unref(baseCanvasHeight) * unref(zoomScale))}px`
1209
+ })}" data-v-8f29de3b><div class="origin-top-left transition-transform duration-200 ease-out absolute top-0 left-0" style="${ssrRenderStyle({
1210
+ width: `${unref(baseCanvasWidth)}px`,
1211
+ height: `${unref(baseCanvasHeight)}px`,
1212
+ transform: `scale(${unref(zoomScale)})`
1213
+ })}" data-v-8f29de3b>`);
886
1214
  if (unref(activeTab) === "feed") {
887
- _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>`);
888
1216
  _push(ssrRenderComponent(_component_TableCard, {
889
1217
  data: __props.data,
890
1218
  mode: "feed",
@@ -892,13 +1220,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
892
1220
  }, null, _parent));
893
1221
  _push(`</div></div>`);
894
1222
  } else {
895
- _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>`);
896
1224
  if (unref(activeTab) === "reels") {
897
- _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>`);
898
1226
  } else {
899
1227
  _push(`<!---->`);
900
1228
  }
901
- _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>`);
902
1230
  _push(ssrRenderComponent(_component_TableCard, {
903
1231
  data: __props.data,
904
1232
  mode: unref(activeTab) === "reels" ? "overlay" : "story",
@@ -906,41 +1234,41 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
906
1234
  }, null, _parent));
907
1235
  _push(`</div>`);
908
1236
  if (unref(showSafeZones)) {
909
- _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>`);
910
1238
  if (unref(activeTab) === "reels") {
911
- _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>`);
912
1240
  } else {
913
1241
  _push(`<!---->`);
914
1242
  }
915
- _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>`);
916
1244
  } else {
917
1245
  _push(`<!---->`);
918
1246
  }
919
1247
  _push(`</div>`);
920
1248
  }
921
- _push(`</div></div>`);
1249
+ _push(`</div></div></div>`);
922
1250
  if (unref(activeTab) === "reels") {
923
- _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>`);
924
1252
  if (unref(isPlaying)) {
925
1253
  _push(ssrRenderComponent(unref(Pause), { class: "w-3.5 h-3.5 fill-current" }, null, _parent));
926
1254
  } else {
927
1255
  _push(ssrRenderComponent(unref(Play), { class: "w-3.5 h-3.5 fill-current" }, null, _parent));
928
1256
  }
929
- _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>`);
930
1258
  if (!unref(isMuted)) {
931
1259
  _push(ssrRenderComponent(unref(Volume2), { class: "w-3.5 h-3.5 text-purple-300 animate-pulse" }, null, _parent));
932
1260
  } else {
933
1261
  _push(ssrRenderComponent(unref(VolumeX), { class: "w-3.5 h-3.5" }, null, _parent));
934
1262
  }
935
- _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>`);
936
1264
  _push(ssrRenderComponent(unref(Scissors), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
937
- _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>`);
938
1266
  if (unref(showOffsetEditor)) {
939
- _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>`);
940
1268
  _push(ssrRenderComponent(unref(Film), { class: "w-3 h-3" }, null, _parent));
941
- _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>`);
942
1270
  _push(ssrRenderComponent(unref(Music), { class: "w-3 h-3" }, null, _parent));
943
- _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>`);
944
1272
  } else {
945
1273
  _push(`<!---->`);
946
1274
  }
@@ -948,25 +1276,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
948
1276
  } else {
949
1277
  _push(`<!---->`);
950
1278
  }
951
- _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>`);
952
1280
  if (unref(copied)) {
953
1281
  _push(ssrRenderComponent(unref(Check), { class: "w-3.5 h-3.5 text-emerald-400" }, null, _parent));
954
1282
  } else {
955
1283
  _push(ssrRenderComponent(unref(Copy), { class: "w-3.5 h-3.5" }, null, _parent));
956
1284
  }
957
- _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>`);
958
- if (__props.generatedResult) {
959
- _push(`<div class="flex flex-wrap items-center justify-between gap-2 p-3 bg-emerald-950/40 border border-emerald-500/40 rounded-2xl shadow-xl flex-shrink-0"><div><div class="flex items-center gap-2 text-xs font-black text-emerald-300">`);
960
- _push(ssrRenderComponent(unref(Check), { class: "w-4 h-4 text-emerald-400" }, null, _parent));
961
- _push(` Render Selesai (${ssrInterpolate((__props.generatedResult.durationMs / 1e3).toFixed(1))}s) </div><div class="text-[11px] text-slate-400 font-mono mt-0.5">${ssrInterpolate(__props.generatedResult.jobId)}</div></div><div class="flex items-center gap-2"><a${ssrRenderAttr("href", `/api/download?jobId=${__props.generatedResult.jobId}`)} download class="inline-flex items-center gap-1.5 px-4 py-2 bg-emerald-600 hover:bg-emerald-500 text-white rounded-xl text-xs font-black shadow-lg transition">`);
962
- _push(ssrRenderComponent(unref(Download), { class: "w-3.5 h-3.5" }, null, _parent));
963
- _push(`<span>Download ZIP</span></a><button${ssrIncludeBooleanAttr(unref(isOpeningFolder)) ? " disabled" : ""} class="inline-flex items-center gap-1.5 px-4 py-2 bg-slate-800 hover:bg-slate-700 text-slate-200 border border-slate-700 rounded-xl text-xs font-bold transition">`);
964
- _push(ssrRenderComponent(unref(FolderOpen), { class: "w-3.5 h-3.5 text-amber-400" }, null, _parent));
965
- _push(`<span>Open Folder</span></button></div></div>`);
966
- } else {
967
- _push(`<!---->`);
968
- }
969
- _push(`</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>`);
970
1286
  };
971
1287
  }
972
1288
  });
@@ -976,6 +1292,7 @@ _sfc_main$1.setup = (props, ctx) => {
976
1292
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/LivePreview.vue");
977
1293
  return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
978
1294
  };
1295
+ const __nuxt_component_1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-8f29de3b"]]);
979
1296
  const ComparisonRowSchema = z.object({
980
1297
  label: z.string().min(1).max(40),
981
1298
  left: z.string().min(1).max(35),
@@ -1354,6 +1671,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1354
1671
  const toastMessage = ref("");
1355
1672
  const toastType = ref("success");
1356
1673
  const mobileTab = ref("editor");
1674
+ const showMobileCanvasModal = ref(false);
1357
1675
  const systemStatus = ref(null);
1358
1676
  const validationState = computed(() => {
1359
1677
  const res = ContentDataSchema.safeParse(contentData.value);
@@ -1450,7 +1768,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1450
1768
  });
1451
1769
  if (res == null ? void 0 : res.success) {
1452
1770
  generatedResult.value = res;
1453
- showToast(`Sukses dirender dalam ${(res.durationMs / 1e3).toFixed(1)} detik!`);
1771
+ showToast(`\u2705 Generate selesai! Berhasil dirender dalam ${(res.durationMs / 1e3).toFixed(1)} detik.`, "success");
1454
1772
  }
1455
1773
  } catch (err) {
1456
1774
  showToast("Gagal render: " + (((_a = err.data) == null ? void 0 : _a.statusMessage) || err.message), "error");
@@ -1460,10 +1778,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1460
1778
  }
1461
1779
  }
1462
1780
  return (_ctx, _push, _parent, _attrs) => {
1463
- var _a, _b;
1781
+ var _a, _b, _c, _d, _e, _f;
1464
1782
  const _component_DashboardControls = _sfc_main$2;
1465
- const _component_LivePreview = _sfc_main$1;
1466
- _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.6")}</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">`);
1467
1785
  if ((_b = unref(systemStatus)) == null ? void 0 : _b.geminiActive) {
1468
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>`);
1469
1787
  } else {
@@ -1477,9 +1795,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1477
1795
  }
1478
1796
  _push(`</button></div></div>`);
1479
1797
  if (unref(toastMessage)) {
1480
- _push(`<div class="${ssrRenderClass([unref(toastType) === "success" ? "bg-slate-900 text-slate-100 border-sky-500/50 shadow-sky-950/50" : "bg-rose-950 text-rose-200 border-rose-500/50", "fixed bottom-6 right-6 z-50 flex items-center gap-3 px-4 py-3 rounded-2xl shadow-2xl text-xs font-bold border transition-all"])}"><div class="flex items-center gap-2">`);
1798
+ _push(`<div class="${ssrRenderClass([unref(toastType) === "success" ? "bg-slate-900 text-slate-100 border-sky-500/50 shadow-sky-950/50" : unref(toastType) === "info" ? "bg-slate-900 text-sky-200 border-indigo-500/50 shadow-indigo-950/50" : "bg-rose-950 text-rose-200 border-rose-500/50", "fixed bottom-20 lg:bottom-6 right-4 lg:right-6 z-50 flex items-center gap-3 px-4 py-3 rounded-2xl shadow-2xl text-xs font-bold border transition-all max-w-[90vw]"])}"><div class="flex items-center gap-2">`);
1481
1799
  if (unref(toastType) === "success") {
1482
1800
  _push(`<span class="text-emerald-400">\u25CF</span>`);
1801
+ } else if (unref(toastType) === "info") {
1802
+ _push(`<span class="text-sky-400">\u2139\uFE0F</span>`);
1483
1803
  } else {
1484
1804
  _push(`<span class="text-rose-400">\u26A0\uFE0F</span>`);
1485
1805
  }
@@ -1493,7 +1813,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1493
1813
  } else {
1494
1814
  _push(`<!---->`);
1495
1815
  }
1496
- _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"])}">`);
1497
1817
  _push(ssrRenderComponent(_component_DashboardControls, {
1498
1818
  modelValue: unref(contentData),
1499
1819
  "onUpdate:modelValue": ($event) => isRef(contentData) ? contentData.value = $event : null,
@@ -1521,7 +1841,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1521
1841
  onClearStash: clearUnsavedStash,
1522
1842
  onToast: (msg, type) => showToast(msg, type)
1523
1843
  }, null, _parent));
1524
- _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"])}">`);
1525
1845
  _push(ssrRenderComponent(_component_LivePreview, {
1526
1846
  data: unref(contentData),
1527
1847
  "selected-video": unref(options).backgroundSource,
@@ -1530,11 +1850,56 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1530
1850
  "onUpdate:videoStartOffset": ($event) => unref(options).videoStartOffset = $event,
1531
1851
  "audio-start-offset": unref(options).audioStartOffset,
1532
1852
  "onUpdate:audioStartOffset": ($event) => unref(options).audioStartOffset = $event,
1533
- "generated-result": unref(generatedResult)
1853
+ "is-generating": unref(isGenerating),
1854
+ "generate-stage": unref(generateStage)
1534
1855
  }, null, _parent));
1535
1856
  _push(`</section></main>`);
1536
1857
  if (unref(mobileTab) === "editor") {
1537
- _push(`<button class="lg:hidden fixed bottom-5 left-1/2 -translate-x-1/2 z-40 px-5 py-2.5 rounded-full bg-gradient-to-r from-sky-500 to-indigo-600 text-white font-extrabold text-xs shadow-2xl border border-sky-400/40 flex items-center gap-2 hover:opacity-95"><span>\u{1F441}\uFE0F Lihat Preview Canvas</span></button>`);
1858
+ _push(`<button type="button" class="lg:hidden fixed bottom-20 right-4 z-40 px-4 py-2.5 rounded-full bg-gradient-to-r from-sky-500 to-indigo-600 hover:from-sky-400 hover:to-indigo-500 text-white font-black text-xs shadow-2xl border border-sky-400/40 flex items-center gap-1.5 active:scale-95 transition"><span class="text-sm">\u{1F441}\uFE0F</span><span>Intip Canvas</span></button>`);
1859
+ } else {
1860
+ _push(`<!---->`);
1861
+ }
1862
+ if (unref(mobileTab) === "editor") {
1863
+ _push(`<div class="lg:hidden fixed bottom-0 left-0 right-0 z-30 h-16 px-4 bg-slate-900/95 backdrop-blur-lg border-t border-slate-800 flex items-center justify-between gap-3 shadow-2xl"><div class="flex flex-col"><span class="text-[9px] font-bold text-slate-400 uppercase tracking-wider">Output</span><div class="flex items-center gap-1 text-[10px] font-bold text-sky-400">`);
1864
+ if (((_c = unref(options).outputs) == null ? void 0 : _c.feed) !== false) {
1865
+ _push(`<span>Feed</span>`);
1866
+ } else {
1867
+ _push(`<!---->`);
1868
+ }
1869
+ if (((_d = unref(options).outputs) == null ? void 0 : _d.feed) !== false && ((_e = unref(options).outputs) == null ? void 0 : _e.reels) !== false) {
1870
+ _push(`<span>\u2022</span>`);
1871
+ } else {
1872
+ _push(`<!---->`);
1873
+ }
1874
+ if (((_f = unref(options).outputs) == null ? void 0 : _f.reels) !== false) {
1875
+ _push(`<span>Reels</span>`);
1876
+ } else {
1877
+ _push(`<!---->`);
1878
+ }
1879
+ _push(`</div></div><button${ssrIncludeBooleanAttr(unref(isGenerating) || !unref(validationState).isValid) ? " disabled" : ""} type="button" class="flex-1 py-3 px-4 rounded-2xl bg-gradient-to-r from-sky-500 to-indigo-600 hover:from-sky-400 hover:to-indigo-500 text-white font-black text-xs tracking-wide shadow-xl shadow-sky-500/25 flex items-center justify-center gap-2 active:scale-95 transition disabled:opacity-50">`);
1880
+ if (unref(isGenerating)) {
1881
+ _push(`<span class="animate-spin">\u{1F504}</span>`);
1882
+ } else {
1883
+ _push(`<span>\u{1F680}</span>`);
1884
+ }
1885
+ _push(`<span>${ssrInterpolate(unref(isGenerating) ? unref(generateStage) || "Rendering Content..." : "GENERATE SEKARANG")}</span></button></div>`);
1886
+ } else {
1887
+ _push(`<!---->`);
1888
+ }
1889
+ if (unref(showMobileCanvasModal)) {
1890
+ _push(`<div class="lg:hidden fixed inset-0 z-50 bg-slate-950 flex flex-col justify-between overflow-hidden animate-in slide-in-from-bottom"><div class="h-14 px-4 bg-slate-900/95 border-b border-slate-800 flex items-center justify-between shrink-0 shadow-md"><div class="flex items-center gap-2"><span class="w-2 h-2 rounded-full bg-emerald-400 animate-ping"></span><span class="text-xs font-black text-white">Preview Canvas Penuh</span></div><button type="button" class="px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-xs font-bold text-slate-200 border border-slate-700 flex items-center gap-1 active:scale-95 transition"><span>\u2715 Tutup Preview</span></button></div><div class="flex-1 overflow-hidden p-2 flex flex-col min-h-0">`);
1891
+ _push(ssrRenderComponent(_component_LivePreview, {
1892
+ data: unref(contentData),
1893
+ "selected-video": unref(options).backgroundSource,
1894
+ "selected-music": unref(options).musicFile,
1895
+ "video-start-offset": unref(options).videoStartOffset,
1896
+ "onUpdate:videoStartOffset": ($event) => unref(options).videoStartOffset = $event,
1897
+ "audio-start-offset": unref(options).audioStartOffset,
1898
+ "onUpdate:audioStartOffset": ($event) => unref(options).audioStartOffset = $event,
1899
+ "is-generating": unref(isGenerating),
1900
+ "generate-stage": unref(generateStage)
1901
+ }, null, _parent));
1902
+ _push(`</div><div class="h-16 px-4 bg-slate-900/95 border-t border-slate-800 flex items-center justify-between gap-2 shrink-0"><button type="button" class="flex-1 py-2.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-xs font-bold text-slate-200 active:scale-95 transition"> \u270F\uFE0F Lanjut Edit Form </button><button${ssrIncludeBooleanAttr(unref(isGenerating) || !unref(validationState).isValid) ? " disabled" : ""} type="button" class="flex-1 py-2.5 rounded-xl bg-gradient-to-r from-sky-500 to-indigo-600 text-xs font-bold text-white shadow-lg active:scale-95 transition disabled:opacity-50"> \u{1F680} Langsung Render </button></div></div>`);
1538
1903
  } else {
1539
1904
  _push(`<!---->`);
1540
1905
  }
@@ -1550,4 +1915,4 @@ _sfc_main.setup = (props, ctx) => {
1550
1915
  };
1551
1916
 
1552
1917
  export { _sfc_main as default };
1553
- //# sourceMappingURL=pages-BsPKZpHw.mjs.map
1918
+ //# sourceMappingURL=pages-ClwYJnbM.mjs.map