@socialgen_user/socialgen 2.3.7 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{1ESij7sf.js → B78a3Sxl.js} +1 -1
  3. package/.output/public/_nuxt/{8t3Wih-_.js → BycW_AbN.js} +2 -2
  4. package/.output/public/_nuxt/{DO1pBuIJ.js → C3AzmEfZ.js} +1 -1
  5. package/.output/public/_nuxt/{wZeFhB0j.js → CjD98tqT.js} +1 -1
  6. package/.output/public/_nuxt/{CpvOZWox.js → D8-z3n9k.js} +1 -1
  7. package/.output/public/_nuxt/DgtyvE5j.js +110 -0
  8. package/.output/public/_nuxt/{DR2NdyVN.js → DlkI5gBO.js} +3 -3
  9. package/.output/public/_nuxt/builds/latest.json +1 -1
  10. package/.output/public/_nuxt/builds/meta/3bc20a90-1ba1-4732-9b91-8461723358ec.json +1 -0
  11. package/.output/public/_nuxt/pages.BNNMR0bP.css +1 -0
  12. package/.output/server/chunks/_/content.mjs +2 -12
  13. package/.output/server/chunks/_/content.mjs.map +1 -1
  14. package/.output/server/chunks/_/nitro.mjs +79 -79
  15. package/.output/server/chunks/build/LivePreview-styles.BbGT7KVf.mjs +8 -0
  16. package/.output/server/chunks/build/LivePreview-styles.BbGT7KVf.mjs.map +1 -0
  17. package/.output/server/chunks/build/{TableCard-0mU9UOj0.mjs → TableCard-BbsnLJbe.mjs} +6 -2
  18. package/.output/server/chunks/build/{TableCard-0mU9UOj0.mjs.map → TableCard-BbsnLJbe.mjs.map} +1 -1
  19. package/.output/server/chunks/build/{_mode_-CU43fOkL.mjs → _mode_-VQfmy6-6.mjs} +2 -2
  20. package/.output/server/chunks/build/{_mode_-CU43fOkL.mjs.map → _mode_-VQfmy6-6.mjs.map} +1 -1
  21. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  22. package/.output/server/chunks/build/entry-styles.kVRyZFAc.mjs +8 -0
  23. package/.output/server/chunks/build/entry-styles.kVRyZFAc.mjs.map +1 -0
  24. package/.output/server/chunks/build/index-styles-1.mjs-CBmp9qkk.mjs +4 -0
  25. package/.output/server/chunks/build/index-styles-1.mjs-CBmp9qkk.mjs.map +1 -0
  26. package/.output/server/chunks/build/index-styles.B8HyMUMp.mjs +11 -0
  27. package/.output/server/chunks/build/index-styles.B8HyMUMp.mjs.map +1 -0
  28. package/.output/server/chunks/build/{pages-DAxeAK3-.mjs → pages-BZo1uEaJ.mjs} +245 -158
  29. package/.output/server/chunks/build/pages-BZo1uEaJ.mjs.map +1 -0
  30. package/.output/server/chunks/build/server.mjs +2 -2
  31. package/.output/server/chunks/build/styles.mjs +5 -4
  32. package/.output/server/chunks/build/styles.mjs.map +1 -1
  33. package/.output/server/package.json +1 -1
  34. package/data/history.json +11 -6
  35. package/data/history_generations.json +132 -0
  36. package/data/last_session.json +4 -2
  37. package/data/templates.json +63 -0
  38. package/package.json +1 -1
  39. package/.output/public/_nuxt/JDUjn-YJ.js +0 -91
  40. package/.output/public/_nuxt/builds/meta/dd531369-b462-4ab9-9c49-be9d1a58097d.json +0 -1
  41. package/.output/public/_nuxt/pages.Df3hoeGN.css +0 -1
  42. package/.output/server/chunks/build/entry-styles.BcjSvkjT.mjs +0 -8
  43. package/.output/server/chunks/build/entry-styles.BcjSvkjT.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-DAxeAK3-.mjs.map +0 -1
@@ -1,8 +1,25 @@
1
1
  import { defineComponent, ref, watch, computed, mergeProps, unref, isRef, nextTick, useSSRContext } from 'vue';
2
2
  import { ssrRenderAttrs, ssrInterpolate, ssrRenderClass, ssrRenderComponent, ssrIncludeBooleanAttr, ssrRenderAttr, ssrLooseContain, ssrLooseEqual, ssrRenderList, ssrRenderStyle } from 'vue/server-renderer';
3
- import { Settings, X, Check, Edit2, Trash2, FileText, Copy, LayoutTemplate, Plus, Code, AlertCircle, RefreshCw, Film, Upload, Music, Clock, Sparkles, Eye, Bookmark, Wand2, Globe, CheckCircle2, RotateCcw, Scissors, Play, ZoomOut, ZoomIn, ShieldAlert, Pause, Volume2, VolumeX } from 'lucide-vue-next';
4
- import { _ as _sfc_main$3 } from './TableCard-0mU9UOj0.mjs';
3
+ import { Settings, X, Check, Edit2, Trash2, FileText, Copy, LayoutTemplate, Plus, Code, AlertCircle, RefreshCw, Film, Upload, Music, Clock, Sparkles, Eye, Bookmark, Wand2, Layers, Globe, Sliders, RotateCcw, CheckCircle2, Scissors, Play, ZoomOut, ZoomIn, ShieldAlert, Pause, Volume2, VolumeX } from 'lucide-vue-next';
4
+ import { _ as _sfc_main$3 } from './TableCard-BbsnLJbe.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",
@@ -87,7 +104,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
87
104
  Saya melampirkan screenshot / gambar desain kartu visual media sosial.
88
105
 
89
106
  Tugas Anda:
90
- Analisis tata letak visual, dekorasi, tipografi, warna, bingkai, dan struktur konten pada gambar ini, lalu ubah menjadi template visual kustom SocialGen dalam format 1 objek JSON valid persis seperti ini:
107
+ Analisis tata letak visual, dekorasi, tipografi, palet warna HEX, bingkai, dan struktur konten pada gambar ini, lalu ubah menjadi template visual kustom SocialGen dalam format 1 objek JSON valid persis seperti ini:
91
108
 
92
109
  {
93
110
  "id": "slug-unik-kebab-case",
@@ -105,6 +122,7 @@ Analisis tata letak visual, dekorasi, tipografi, warna, bingkai, dan struktur ko
105
122
  "category": "KATEGORI KONTEN",
106
123
  "watermark": "@SocialGen",
107
124
  "theme": "sunset-orange",
125
+ "accentColor": "#eb6a37",
108
126
  "footerNote": "Sumber: Lembaga Riset / Instansi Resmi (domain.go.id / .org) 2026",
109
127
  "methodologyBadge": "Metodologi Riset Resmi 2026",
110
128
  "disclaimer": "Ringkasan data edukasi \u2022 Bukan nasihat resmi",
@@ -123,23 +141,41 @@ Analisis tata letak visual, dekorasi, tipografi, warna, bingkai, dan struktur ko
123
141
  =======================================================
124
142
  PANDUAN STANDAR WAJIB ARSITEKTUR TEMPLATE SOCIALGEN:
125
143
 
126
- 1. ATURAN KRUSIAL KODE HTML (JANGAN PERNAH DIHAPUS):
144
+ 1. ATURAN KRUSIAL KODE HTML & HANDLEBARS TAGS:
127
145
  - Kolom \\"customHtml\\" WAJIB berupa string HTML utuh dengan seluruh tag pembuka & penutup <div>, <h1>, <p>, <span>.
128
- - DILARANG KERAS hanya menulis variabel {{ data.title }} {{ data.items }} tanpa tag pembungkus HTML dan class CSS!
146
+ - Tag Handlebars yang didukung:
147
+ * {{ data.title }} untuk judul utama
148
+ * {{ data.subtitle }} untuk subjudul/kicker
149
+ * {{ data.footerNote }} untuk sumber/keterangan bawah
150
+ * {{#each data.items}} ... {{ text }} ... {{/each}} untuk list/grid poin
151
+ - DILARANG KERAS menulis variabel raw tanpa pembungkus elemen HTML dan class CSS!
129
152
  - Semua tanda kutip dua atribut di dalam JSON wajib di-escape (misal: class=\\"my-card\\").
130
153
 
131
154
  2. KESERASIAN ID TEMPLATE (ID MATCHING):
132
155
  - Field root \\"id\\" dan field \\"sampleData.templateId\\" HARUS BERNILAI SAMA PERSIS (contoh: \\"orange-pill-hero\\").
133
156
  - Jangan menggunakan ID yang berbeda antara root dan sampleData karena sistem SocialGen auto-switch menggunakan ID ini.
134
157
 
135
- 3. KANVAS RESPONSIVE MULTI-FORMAT (FEED 4:5 & REELS 9:16):
158
+ 3. EKSTRAKSI WARNA AKURAT & ACCENT COLOR:
159
+ - Nilai \\"theme\\" dapat berupa salah satu preset SocialGen:
160
+ ('blue-tech' | 'emerald-finance' | 'slate-education' | 'dark-contrast' | 'crimson-alert' | 'amber-gold' | 'cyber-violet' | 'sunset-orange' | 'nordic-frost' | 'monochrome-luxe')
161
+ ATAU identifier tema kustom (misal: 'navy-gold', 'crimson-dark', 'sepia-vintage').
162
+ - Sertakan field \\"accentColor\\" dengan kode HEX dominan yang diekstrak langsung dari gambar screenshot (contoh: \\"#eb6a37\\", \\"#d4af37\\", \\"#38bdf8\\").
163
+ - Dalam \\"customCss\\", Anda dapat menggunakan warna HEX langsung atau variabel CSS var(--accent-color, #eb6a37).
164
+
165
+ 4. JAMINAN KONTRAS TINGGI (HIGH CONTRAST & READABILITY):
166
+ - Pastikan teks selalu sangat kontras dan mudah dibaca:
167
+ * Latar belakang gelap -> Gunakan teks putih (#ffffff) atau teks aksen terang (#fde047, #38bdf8).
168
+ * Kotak/Kartu terang/putih -> Gunakan teks gelap (#0f172a, #1e293b, #334155). JANGAN PERNAH gunakan teks putih di atas kartu putih!
169
+ * Tambahkan drop-shadow (text-shadow: 0 2px 8px rgba(0,0,0,0.5);) pada teks yang berada langsung di atas foto/background kanvas.
170
+
171
+ 5. KANVAS RESPONSIVE MULTI-FORMAT (FEED 4:5 & REELS 9:16):
136
172
  - SocialGen mengekspor konten ke Feed 4:5 (1080x1350) dan Story/Reels 9:16 (1080x1920).
137
173
  - JANGAN PERNAH memberi tinggi mati (height: 1350px) pada kontainer utama!
138
174
  - Kontainer terluar WAJIB menggunakan:
139
175
  width: 100%; max-width: 960px; margin: 0 auto; display: flex; flex-direction: column;
140
176
  - Dengan aturan ini, kartu akan selalu berada tepat di tengah (center) dan berada di dalam Safe Zone baik pada format Feed maupun Reels.
141
177
 
142
- 4. JANGAN DUPLIKASI HEADER & FOOTER GLOBAL SOCIALGEN:
178
+ 6. JANGAN DUPLIKASI HEADER & FOOTER GLOBAL SOCIALGEN:
143
179
  - SocialGen SUDAH otomatis merender Top Metadata Bar (Category Badge & Watermark @SocialGen) di bagian paling atas kanvas.
144
180
  - SocialGen SUDAH otomatis merender Bottom Callout (\\"\u{1F4AC} Drop your opinion below \u2022 Share to your feed \u2197\\" & Disclaimer) di bagian paling bawah.
145
181
  - Oleh karena itu, customHtml HANYA fokus mendesain kartu konten di bagian tengah:
@@ -147,18 +183,18 @@ PANDUAN STANDAR WAJIB ARSITEKTUR TEMPLATE SOCIALGEN:
147
183
  * Badan kartu (mockup tablet, framed box, kartu list pil/bubble)
148
184
  * Sumber data (footerNote) di bagian bawah kartu
149
185
 
150
- 5. TIPOGRAFI STANDAR 1080px (READABILITY V2.3.4):
186
+ 7. TIPOGRAFI STANDAR 1080px (READABILITY V2.4):
151
187
  - Kanvas beresolusi 1080px lebar. Agar terbaca jelas di HP tanpa zoom:
152
188
  * Judul Utama (title): font-size: 52px \u2013 64px (font-weight: 900, line-height: 1.08 - 1.15)
153
189
  * Subjudul (subtitle): font-size: 22px \u2013 26px (font-weight: 700-800)
154
190
  * Teks Kartu Poin (items): font-size: 20px \u2013 24px (font-weight: 700, line-height: 1.45)
155
191
  * Sumber Data (footerNote): font-size: 16px \u2013 18px (font-weight: 600-700)
156
192
 
157
- 6. MURNI CSS EKSPLISIT DI 'customCss':
193
+ 8. MURNI CSS EKSPLISIT DI 'customCss':
158
194
  - Karena aplikasi sudah di-compile, jangan mengandalkan arbitrary Tailwind baru (seperti text-[55px] atau bg-[#123456]).
159
195
  - Semua warna, background, border, radius, bayangan, font-size, dan flexbox WAJIB ditulis lengkap dan eksplisit di \\"customCss\\".
160
196
 
161
- 7. KREDIBILITAS TIER 1 (META CPM MONETIZATION):
197
+ 9. KREDIBILITAS TIER 1 (META CPM MONETIZATION):
162
198
  - Selalu sertakan field \\"methodologyBadge\\", \\"disclaimer\\", dan \\"sourceUrl\\" di sampleData untuk lolos verifikasi transparansi data audiens Tier 1.
163
199
 
164
200
  Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar bisa langsung diimpor otomatis ke aplikasi SocialGen.`);
@@ -358,6 +394,24 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
358
394
  { id: "nordic-frost", name: "Nordic Frost", color: "#0891b2" },
359
395
  { id: "monochrome-luxe", name: "Monochrome Luxe", color: "#475569" }
360
396
  ];
397
+ const THEME_HEX_MAP = {
398
+ "blue-tech": "#0284c7",
399
+ "emerald-finance": "#059669",
400
+ "slate-education": "#64748b",
401
+ "dark-contrast": "#1e293b",
402
+ "crimson-alert": "#e11d48",
403
+ "amber-gold": "#d97706",
404
+ "cyber-violet": "#7c3aed",
405
+ "sunset-orange": "#ea580c",
406
+ "nordic-frost": "#0891b2",
407
+ "monochrome-luxe": "#475569"
408
+ };
409
+ const activeAccentColor = computed(() => {
410
+ var _a2, _b2, _c;
411
+ if ((_a2 = props.modelValue) == null ? void 0 : _a2.accentColor) return props.modelValue.accentColor;
412
+ const theme = ((_b2 = props.modelValue) == null ? void 0 : _b2.theme) || ((_c = props.options) == null ? void 0 : _c.theme) || "blue-tech";
413
+ return THEME_HEX_MAP[theme] || (theme.startsWith("#") ? theme : "#0284c7");
414
+ });
361
415
  function getTemplateIcon(layoutType, id) {
362
416
  const key = (id || layoutType || "").toLowerCase();
363
417
  if (key.includes("orange") || key.includes("news")) return "\u{1F4F0}";
@@ -374,6 +428,22 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
374
428
  if (key.includes("barchart")) return "\u{1F4C8}";
375
429
  return "\u{1F3A8}";
376
430
  }
431
+ const themeOptions = [
432
+ { id: "dark-contrast", name: "Dark Contrast (Universal Bold)", bgClass: "bg-slate-950 border-slate-700" },
433
+ { id: "blue-tech", name: "Blue Tech (AI & Software)", bgClass: "bg-blue-900 border-blue-600" },
434
+ { id: "emerald-finance", name: "Emerald Finance (Salaries & Living)", bgClass: "bg-emerald-900 border-emerald-600" },
435
+ { id: "amber-gold", name: "Amber Gold (Luxury & Executive)", bgClass: "bg-amber-900 border-amber-600" },
436
+ { id: "slate-education", name: "Slate Education (Education & Career)", bgClass: "bg-indigo-900 border-indigo-600" },
437
+ { id: "crimson-alert", name: "Crimson Alert (Breaking Shock)", bgClass: "bg-rose-900 border-rose-600" },
438
+ { id: "cyber-violet", name: "Cyber Violet (Synthwave & Neon)", bgClass: "bg-purple-900 border-purple-600" },
439
+ { id: "sunset-orange", name: "Sunset Orange (Warm Energy)", bgClass: "bg-orange-900 border-orange-600" },
440
+ { id: "nordic-frost", name: "Nordic Frost (Polar Cyan Clean)", bgClass: "bg-cyan-900 border-cyan-600" },
441
+ { id: "monochrome-luxe", name: "Monochrome Luxe (Minimalist)", bgClass: "bg-zinc-800 border-zinc-500" }
442
+ ];
443
+ const currentTemplateName = computed(() => {
444
+ const match = templatesList.value.find((t) => t.id === selectedTemplateId.value);
445
+ return (match == null ? void 0 : match.name) || selectedTemplateId.value || "Custom";
446
+ });
377
447
  function updateOption(key, val) {
378
448
  emit("update:options", { ...props.options, [key]: val });
379
449
  }
@@ -389,7 +459,7 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
389
459
  }
390
460
  }
391
461
  return (_ctx, _push, _parent, _attrs) => {
392
- var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
462
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
393
463
  _push(`<div${ssrRenderAttrs(mergeProps({ class: "flex flex-col gap-3 text-slate-100" }, _attrs))}>`);
394
464
  if (unref(showNicheModal)) {
395
465
  _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">`);
@@ -588,7 +658,7 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
588
658
  ssrRenderList(THEME_SWATCHES, (swatch) => {
589
659
  _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>`);
590
660
  });
591
- _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">`);
661
+ _push(`<!--]--></div><div class="pt-2 border-t border-slate-800 flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="relative w-7 h-7 rounded-lg overflow-hidden border border-white/20 shadow-inner flex items-center justify-center cursor-pointer" style="${ssrRenderStyle({ backgroundColor: unref(activeAccentColor) })}"><input type="color"${ssrRenderAttr("value", unref(activeAccentColor))} class="absolute inset-0 opacity-0 w-full h-full cursor-pointer" title="Pilih warna aksen kustom"></div><div class="flex flex-col"><span class="text-[11px] font-bold text-slate-200">Warna Aksen Kustom</span><span class="text-[9px] text-slate-400">Color picker kanvas dinamis</span></div></div><div class="flex items-center gap-1.5"><span class="text-[10px] font-mono text-slate-400">HEX</span><input type="text"${ssrRenderAttr("value", unref(activeAccentColor))} class="w-20 bg-slate-950 border border-slate-800 rounded-lg px-2 py-1 text-center font-mono text-[11px] text-sky-400 font-bold focus:outline-none focus:border-sky-500 uppercase" placeholder="#0284C7"></div></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">`);
592
662
  _push(ssrRenderComponent(unref(Plus), { class: "w-3.5 h-3.5" }, null, _parent));
593
663
  _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">`);
594
664
  _push(ssrRenderComponent(unref(Copy), { class: "w-3 h-3" }, null, _parent));
@@ -715,152 +785,178 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
715
785
  } else {
716
786
  _push(`<!---->`);
717
787
  }
718
- _push(`</div><div class="hidden lg:flex flex-col gap-3"><div class="flex flex-wrap items-center justify-between gap-2.5 p-3.5 bg-slate-900/90 border border-slate-800 rounded-2xl shadow-lg"><div><h2 class="text-xs font-black text-white flex items-center gap-2">`);
788
+ _push(`</div><div class="hidden lg:flex flex-col h-full overflow-hidden w-full"><div class="h-12 px-3 bg-slate-900/90 border-b border-slate-800/80 flex items-center justify-between shrink-0 shadow-sm z-20"><div class="flex items-center gap-2"><div class="flex items-center gap-1.5 mr-1">`);
719
789
  _push(ssrRenderComponent(unref(Wand2), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
720
- _push(` Content Studio </h2><p class="text-[10px] text-slate-400">Multi-Format Studio</p></div><div class="flex items-center gap-1.5 flex-wrap"><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 mr-1.5 shadow-inner"><select class="bg-transparent text-[11px] font-bold text-sky-300 focus:outline-none px-2 py-0.5 cursor-pointer max-w-[130px] truncate" title="Pilih Niche Konten"><!--[-->`);
790
+ _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">`);
791
+ _push(ssrRenderComponent(unref(Layers), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
792
+ _push(`<span class="text-[11px] font-bold text-slate-400">Niche:</span><select class="bg-transparent text-[11px] font-black text-white focus:outline-none cursor-pointer max-w-[130px] truncate" title="Pilih Niche Konten"><!--[-->`);
721
793
  ssrRenderList(unref(nichesList), (n) => {
722
794
  _push(`<option${ssrRenderAttr("value", n.id)} class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedNicheId)) ? ssrLooseContain(unref(selectedNicheId), n.id) : ssrLooseEqual(unref(selectedNicheId), n.id)) ? " selected" : ""}>${ssrInterpolate(n.name)}</option>`);
723
795
  });
724
- _push(`<!--]--></select><button class="p-1 px-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-sky-400 hover:text-sky-300 border border-slate-700 text-[10px] font-bold transition flex items-center gap-1" title="Kelola &amp; Buat Niche Baru">`);
796
+ _push(`<!--]--></select><button class="p-0.5 px-1 rounded bg-slate-800 hover:bg-slate-700 text-sky-400 text-[10px] font-bold transition flex items-center gap-0.5" title="Kelola &amp; Buat Niche Baru">`);
725
797
  _push(ssrRenderComponent(unref(Plus), { class: "w-3 h-3" }, null, _parent));
726
- _push(`<span class="hidden sm:inline">Niche</span></button></div><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 mr-1.5 shadow-inner" title="Pilih Bahasa Konten">`);
727
- _push(ssrRenderComponent(unref(Globe), { class: "w-3 h-3 text-emerald-400 ml-1 flex-shrink-0" }, null, _parent));
728
- _push(`<select class="bg-transparent text-[11px] font-bold text-emerald-300 focus:outline-none px-1.5 py-0.5 cursor-pointer max-w-[130px] truncate"><option value="id" class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "id") : ssrLooseEqual(unref(selectedLanguage), "id")) ? " selected" : ""}>\u{1F1EE}\u{1F1E9} Indonesia</option><option value="en" class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "en") : ssrLooseEqual(unref(selectedLanguage), "en")) ? " selected" : ""}>\u{1F1FA}\u{1F1F8} English</option><option value="es" class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "es") : ssrLooseEqual(unref(selectedLanguage), "es")) ? " selected" : ""}>\u{1F1EA}\u{1F1F8} Espa\xF1ol</option><option value="ja" class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "ja") : ssrLooseEqual(unref(selectedLanguage), "ja")) ? " selected" : ""}>\u{1F1EF}\u{1F1F5} \u65E5\u672C\u8A9E</option><option value="de" class="bg-slate-900 text-white"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedLanguage)) ? ssrLooseContain(unref(selectedLanguage), "de") : ssrLooseEqual(unref(selectedLanguage), "de")) ? " selected" : ""}>\u{1F1E9}\u{1F1EA} Deutsch</option></select></div><button title="Buat prompt manual bebas bentrok untuk ChatGPT / Gemini Web" class="inline-flex items-center gap-1 px-2.5 py-1.5 text-[11px] font-bold text-purple-300 bg-purple-950/40 hover:bg-purple-900/50 border border-purple-500/30 rounded-xl transition shadow-sm">`);
729
- _push(ssrRenderComponent(unref(FileText), { class: "w-3 h-3" }, null, _parent));
730
- _push(`<span class="hidden sm:inline">Prompt Manual</span></button><button${ssrIncludeBooleanAttr(__props.isGenerating || __props.isAutoTopicLoading) ? " disabled" : ""} class="inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-bold text-white bg-gradient-to-r from-sky-500 via-indigo-600 to-purple-600 hover:from-sky-400 hover:to-indigo-500 rounded-xl shadow-md transition disabled:opacity-50">`);
798
+ _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">`);
799
+ _push(ssrRenderComponent(unref(Globe), { class: "w-3.5 h-3.5 text-emerald-400" }, null, _parent));
800
+ _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">`);
801
+ _push(ssrRenderComponent(unref(FileText), { class: "w-3.5 h-3.5 text-purple-400" }, null, _parent));
802
+ _push(`<span>Prompt Manual</span></button><button${ssrIncludeBooleanAttr(__props.isGenerating || __props.isAutoTopicLoading) ? " disabled" : ""} class="px-3 py-1.5 rounded-xl bg-gradient-to-r from-sky-500 via-indigo-600 to-purple-600 hover:opacity-90 text-white text-xs font-bold transition flex items-center gap-1.5 shadow-md shadow-indigo-500/20 active:scale-95 disabled:opacity-50">`);
731
803
  _push(ssrRenderComponent(unref(Sparkles), {
732
- class: ["w-3.5 h-3.5", { "animate-spin": __props.isAutoTopicLoading }]
804
+ class: ["w-3.5 h-3.5 text-amber-300", { "animate-spin": __props.isAutoTopicLoading }]
733
805
  }, null, _parent));
734
- _push(`<span>${ssrInterpolate(__props.isAutoTopicLoading ? "Meriset Data..." : "\u2728 Auto-Topic")}</span></button><div class="relative group"><button class="px-2 py-1.5 text-xs font-bold text-slate-300 bg-slate-800 hover:bg-slate-700 border border-slate-700 rounded-xl"> \u25BE </button><div class="absolute right-0 mt-1 hidden group-hover:flex flex-col bg-slate-900 border border-slate-800 rounded-xl shadow-2xl py-2 z-20 w-60 text-xs"><div class="px-3 py-1 text-[10px] font-bold text-slate-500 uppercase">Model AI Engine</div><div class="px-3 py-1.5"><select class="w-full bg-slate-950 border border-slate-700 rounded-lg p-1.5 text-xs text-sky-300 focus:outline-none"><option value="gemini-3.8-flash"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-3.8-flash") : ssrLooseEqual(unref(selectedModel), "gemini-3.8-flash")) ? " selected" : ""}>\u26A1 Gemini 3.8 Flash</option><option value="gemini-3.5-flash"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-3.5-flash") : ssrLooseEqual(unref(selectedModel), "gemini-3.5-flash")) ? " selected" : ""}>\u26A1 Gemini 3.5 Flash</option><option value="gemini-2.5-pro"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-2.5-pro") : ssrLooseEqual(unref(selectedModel), "gemini-2.5-pro")) ? " selected" : ""}>\u{1F48E} Gemini 2.5 Pro</option><option value="gemini-1.5-pro"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-1.5-pro") : ssrLooseEqual(unref(selectedModel), "gemini-1.5-pro")) ? " selected" : ""}>\u{1F48E} Gemini 1.5 Pro</option></select></div><div class="border-t border-slate-800 my-1"></div><div class="px-3 py-1 text-[10px] font-bold text-slate-500 uppercase flex items-center justify-between"><span>Pilih Format Template</span><span class="text-[9px] text-sky-400">${ssrInterpolate(unref(templatesList).length)} opsi</span></div><div class="max-h-60 overflow-y-auto custom-scrollbar flex flex-col"><!--[-->`);
735
- ssrRenderList(unref(templatesList), (tpl) => {
736
- _push(`<button class="px-3 py-1.5 text-left text-slate-200 hover:bg-slate-800 text-[11px] flex items-center justify-between group/item"><span class="truncate">${ssrInterpolate(tpl.name)}</span>`);
737
- if (!tpl.isBuiltin) {
738
- _push(`<span class="text-[8px] px-1 py-0.2 rounded bg-purple-500/20 text-purple-300 ml-1">Kustom</span>`);
739
- } else {
740
- _push(`<!---->`);
741
- }
742
- _push(`</button>`);
743
- });
744
- _push(`<!--]--></div></div></div></div></div>`);
806
+ _push(`<span>${ssrInterpolate(__props.isAutoTopicLoading ? "Meriset Data..." : "\u2728 Auto-Topic")}</span></button><div class="relative group"><button class="px-2 py-1.5 text-xs font-bold text-slate-300 bg-slate-800 hover:bg-slate-700 border border-slate-700 rounded-xl"> \u25BE </button><div class="absolute right-0 mt-1 hidden group-hover:flex flex-col bg-slate-900 border border-slate-800 rounded-xl shadow-2xl py-2 z-30 w-56 text-xs"><div class="px-3 py-1 text-[10px] font-bold text-slate-500 uppercase">Model AI Engine</div><div class="px-3 py-1.5"><select class="w-full bg-slate-950 border border-slate-700 rounded-lg p-1.5 text-xs text-sky-300 focus:outline-none"><option value="gemini-3.8-flash"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-3.8-flash") : ssrLooseEqual(unref(selectedModel), "gemini-3.8-flash")) ? " selected" : ""}>\u26A1 Gemini 3.8 Flash</option><option value="gemini-3.5-flash"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-3.5-flash") : ssrLooseEqual(unref(selectedModel), "gemini-3.5-flash")) ? " selected" : ""}>\u26A1 Gemini 3.5 Flash</option><option value="gemini-2.5-pro"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-2.5-pro") : ssrLooseEqual(unref(selectedModel), "gemini-2.5-pro")) ? " selected" : ""}>\u{1F48E} Gemini 2.5 Pro</option><option value="gemini-1.5-pro"${ssrIncludeBooleanAttr(Array.isArray(unref(selectedModel)) ? ssrLooseContain(unref(selectedModel), "gemini-1.5-pro") : ssrLooseEqual(unref(selectedModel), "gemini-1.5-pro")) ? " selected" : ""}>\u{1F48E} Gemini 1.5 Pro</option></select></div></div></div></div></div>`);
745
807
  if (__props.isAutoTopicLoading) {
746
- _push(`<div class="p-3 bg-gradient-to-r from-sky-950 via-indigo-950 to-purple-950 border border-sky-500/50 rounded-2xl flex items-center gap-3 animate-pulse shadow-lg shadow-sky-500/10"><div class="w-6 h-6 rounded-lg bg-sky-500/20 border border-sky-400/40 flex items-center justify-center flex-shrink-0">`);
747
- _push(ssrRenderComponent(unref(Sparkles), { class: "w-3.5 h-3.5 text-sky-400 animate-spin" }, null, _parent));
748
- _push(`</div><div class="text-[11px]"><div class="font-extrabold text-white flex items-center gap-2"><span>AI Research Engine Sedang Bekerja...</span><span class="text-[9px] px-1.5 py-0.2 rounded bg-sky-500/30 text-sky-200 border border-sky-400/30">${ssrInterpolate(unref(selectedModel))}</span></div><p class="text-[10px] text-slate-300 mt-0.5">Menganalisis angka perbandingan 2026 &amp; meracik copywriting viral.</p></div></div>`);
808
+ _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">`);
809
+ _push(ssrRenderComponent(unref(Sparkles), { class: "w-3 h-3 text-sky-400 animate-spin" }, null, _parent));
810
+ _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>`);
749
811
  } else {
750
812
  _push(`<!---->`);
751
813
  }
752
- _push(`<div class="flex items-center justify-between bg-slate-950 p-1 rounded-xl border border-slate-800 text-xs font-semibold"><div class="flex items-center gap-1"><button class="${ssrRenderClass([unref(activeTab) === "editor" ? "bg-slate-800 text-sky-400 shadow font-bold" : "text-slate-400 hover:text-white", "px-2.5 py-1 rounded-lg transition text-[11px]"])}"> JSON Editor </button><button class="${ssrRenderClass([unref(activeTab) === "drafts" ? "bg-slate-800 text-amber-400 shadow font-bold" : "text-slate-400 hover:text-white", "px-2.5 py-1 rounded-lg transition flex items-center gap-1 text-[11px]"])}" title="Draft yang kamu simpan manual untuk dipakai nanti">`);
753
- _push(ssrRenderComponent(unref(Bookmark), { class: "w-3 h-3" }, null, _parent));
754
- _push(`<span>Drafts (${ssrInterpolate(__props.drafts.length)})</span></button><button class="${ssrRenderClass([unref(activeTab) === "history" ? "bg-slate-800 text-purple-400 shadow font-bold" : "text-slate-400 hover:text-white", "px-2.5 py-1 rounded-lg transition flex items-center gap-1 text-[11px]"])}" title="Riwayat otomatis setiap kali generate">`);
755
- _push(ssrRenderComponent(unref(Clock), { class: "w-3 h-3" }, null, _parent));
756
- _push(`<span>Riwayat (${ssrInterpolate(__props.history.length)})</span></button></div><div class="flex items-center gap-1.5">`);
757
- if (__props.unsavedStash) {
758
- _push(`<button class="text-[10px] text-amber-400 hover:text-amber-300 transition font-bold px-2 py-0.5 rounded-lg border border-amber-500/30 bg-amber-500/10 flex items-center gap-1" title="Kembalikan editan aktif sebelum memilih draft/riwayat"><span>\u21A9\uFE0F Kembali ke Editan</span></button>`);
759
- } else {
760
- _push(`<!---->`);
761
- }
762
- if (unref(activeTab) === "history" && __props.history.length > 0) {
763
- _push(`<button class="text-[10px] text-rose-400 hover:text-rose-300 transition font-bold pr-1" title="Bersihkan semua riwayat generate"> Bersihkan Riwayat </button>`);
764
- } else {
765
- _push(`<!---->`);
766
- }
767
- _push(`<button class="text-[10px] text-amber-400 hover:text-amber-300 transition pr-2 font-bold flex items-center gap-1" title="Simpan data saat ini ke Drafts untuk digunakan nanti">`);
768
- _push(ssrRenderComponent(unref(Bookmark), { class: "w-3 h-3" }, null, _parent));
769
- _push(`<span>+ Simpan ke Draft</span></button></div></div>`);
770
- if (unref(activeTab) === "drafts") {
771
- _push(`<div class="flex flex-col gap-1.5 p-2.5 bg-slate-900/90 border border-slate-800 rounded-2xl max-h-[320px] overflow-y-auto custom-scrollbar">`);
814
+ _push(`<div class="flex-1 flex flex-row overflow-hidden min-h-0"><aside class="w-80 xl:w-96 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.5 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 whitespace-nowrap"])}">`);
815
+ _push(ssrRenderComponent(unref(LayoutTemplate), { class: "w-3.5 h-3.5 shrink-0" }, null, _parent));
816
+ _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 whitespace-nowrap"])}">`);
817
+ _push(ssrRenderComponent(unref(Bookmark), { class: "w-3.5 h-3.5 shrink-0" }, null, _parent));
818
+ _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 whitespace-nowrap"])}">`);
819
+ _push(ssrRenderComponent(unref(Clock), { class: "w-3.5 h-3.5 shrink-0" }, null, _parent));
820
+ _push(`<span>Riwayat (${ssrInterpolate(__props.history.length)})</span></button></div></div>`);
821
+ if (unref(activeTab) === "editor") {
822
+ _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">`);
823
+ _push(ssrRenderComponent(unref(Plus), { class: "w-3 h-3" }, null, _parent));
824
+ _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"><!--[-->`);
825
+ ssrRenderList(unref(filteredTemplates), (tpl) => {
826
+ _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>`);
827
+ if (unref(selectedTemplateId) === tpl.id) {
828
+ _push(`<span class="w-2 h-2 rounded-full bg-sky-400 shrink-0"></span>`);
829
+ } else if (!tpl.isBuiltin) {
830
+ _push(`<span class="text-[9px] text-amber-400 font-bold shrink-0">\u2B50 Kustom</span>`);
831
+ } else {
832
+ _push(`<!---->`);
833
+ }
834
+ _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>`);
835
+ if (tpl.isBuiltin) {
836
+ _push(`<span class="px-1.5 py-0.2 rounded text-[8px] font-bold bg-slate-800 text-slate-400 uppercase"> BAWAAN </span>`);
837
+ } else {
838
+ _push(`<!---->`);
839
+ }
840
+ _push(`</div></div>`);
841
+ });
842
+ _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">`);
843
+ _push(ssrRenderComponent(unref(Sparkles), { class: "w-3 h-3 text-purple-400" }, null, _parent));
844
+ _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">`);
845
+ _push(ssrRenderComponent(unref(Copy), { class: "w-2.5 h-2.5" }, null, _parent));
846
+ _push(`<span>${ssrInterpolate(unref(copiedAiPrompt) ? "\u2713 Tersalin" : "Salin Prompt")}</span></button></div></div>`);
847
+ } else if (unref(activeTab) === "drafts") {
848
+ _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">`);
849
+ _push(ssrRenderComponent(unref(Bookmark), { class: "w-3 h-3" }, null, _parent));
850
+ _push(`<span>+ Simpan ke Draft</span></button></div><div class="flex-1 overflow-y-auto p-2 space-y-1.5 custom-scrollbar">`);
772
851
  if (__props.unsavedStash) {
773
- _push(`<div class="p-2 rounded-xl bg-amber-500/15 border border-amber-500/40 text-amber-200 flex items-center justify-between gap-2 shadow-sm text-xs sticky top-0 z-10 backdrop-blur-md"><div class="flex items-center gap-2 min-w-0"><span class="text-sm">\u270F\uFE0F</span><div class="truncate"><span class="font-bold text-[10px] block text-amber-300">Ada editan aktif sebelumnya:</span><span class="text-[11px] text-amber-100 font-semibold truncate block">&quot;${ssrInterpolate(__props.unsavedStash.title || "Tanpa Judul")}&quot;</span></div></div><div class="flex items-center gap-1.5 flex-shrink-0"><button class="px-2 py-1 bg-amber-500 hover:bg-amber-400 text-slate-950 font-bold rounded-lg text-[10px] transition shadow flex items-center gap-1 active:scale-95" title="Kembalikan editan aktif sebelum membuka draft ini"><span>\u21A9\uFE0F Kembali ke Editan</span></button><button class="p-1 hover:text-white text-amber-400/70 transition text-xs" title="Abaikan &amp; buang simpanan editan ini"> \u2715 </button></div></div>`);
852
+ _push(`<div class="p-2 rounded-xl bg-amber-500/15 border border-amber-500/40 text-amber-200 flex items-center justify-between gap-1 shadow-sm text-xs mb-1"><div class="truncate text-[10px]"><span class="font-bold text-amber-300">Editan aktif: </span><span class="text-amber-100 font-semibold truncate">${ssrInterpolate(__props.unsavedStash.title || "Tanpa Judul")}</span></div><button class="px-1.5 py-0.5 bg-amber-500 text-slate-950 font-bold rounded text-[9px] shrink-0"> Kembali </button></div>`);
774
853
  } else {
775
854
  _push(`<!---->`);
776
855
  }
777
856
  if (__props.drafts.length === 0) {
778
- _push(`<div class="text-center py-8 text-slate-500 text-[11px] leading-relaxed"> Belum ada draft tersimpan.<br> Klik <b class="text-amber-400">+ Simpan ke Draft</b> di atas untuk menyimpan konten ini agar bisa diedit/digenerate nanti! </div>`);
857
+ _push(`<div class="text-center py-8 text-slate-500 text-[11px] leading-relaxed"> Belum ada draft tersimpan.<br> Klik <b>+ Simpan ke Draft</b> di atas untuk menyimpan konten ini! </div>`);
779
858
  } else {
780
859
  _push(`<!---->`);
781
860
  }
782
861
  _push(`<!--[-->`);
783
862
  ssrRenderList(__props.drafts, (draft, dIdx) => {
784
- _push(`<div data-draft-item class="${ssrRenderClass([__props.activeDraftIndex === dIdx ? "bg-amber-500/15 border-amber-500/50 text-white" : "bg-slate-950/60 border-slate-800 text-slate-300 hover:border-slate-700", "p-2 rounded-xl border cursor-pointer transition flex items-center justify-between text-xs group"])}"><div class="flex-1 pr-2"><div class="flex items-center gap-1.5 mb-0.5"><span class="px-1.5 py-0.2 rounded text-[8px] font-bold uppercase bg-amber-500/20 text-amber-300 border border-amber-500/30">${ssrInterpolate(draft.layoutType || "table")}</span><span class="text-[9px] text-slate-400 font-semibold">${ssrInterpolate(draft.category)}</span></div><div class="font-bold text-[11px] truncate text-slate-100">${ssrInterpolate(draft.title)}</div></div><button class="opacity-0 group-hover:opacity-100 p-1 text-slate-400 hover:text-rose-400 transition rounded" title="Hapus draft ini">`);
863
+ _push(`<div data-draft-item class="${ssrRenderClass([__props.activeDraftIndex === dIdx ? "bg-amber-500/15 border-amber-500/50 text-white" : "bg-slate-950/60 border-slate-800 text-slate-300 hover:border-slate-700", "p-2 rounded-xl border cursor-pointer transition flex items-center justify-between text-xs group"])}"><div class="flex-1 min-w-0 pr-1"><div class="flex items-center gap-1 mb-0.5"><span class="px-1.5 py-0.2 rounded text-[8px] font-bold uppercase bg-amber-500/20 text-amber-300 border border-amber-500/30">${ssrInterpolate(draft.layoutType || "table")}</span><span class="text-[9px] text-slate-400 font-semibold truncate">${ssrInterpolate(draft.category)}</span></div><div class="font-bold text-[11px] truncate text-slate-100">${ssrInterpolate(draft.title)}</div></div><button class="opacity-0 group-hover:opacity-100 p-1 text-slate-400 hover:text-rose-400 transition rounded shrink-0" title="Hapus draft ini">`);
785
864
  _push(ssrRenderComponent(unref(Trash2), { class: "w-3.5 h-3.5" }, null, _parent));
786
865
  _push(`</button></div>`);
787
866
  });
788
- _push(`<!--]--></div>`);
867
+ _push(`<!--]--></div></div>`);
789
868
  } else if (unref(activeTab) === "history") {
790
- _push(`<div class="flex flex-col gap-1.5 p-2.5 bg-slate-900/90 border border-slate-800 rounded-2xl max-h-[320px] overflow-y-auto custom-scrollbar">`);
869
+ _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>`);
870
+ if (__props.history.length > 0) {
871
+ _push(`<button class="text-[10px] text-rose-400 hover:text-rose-300 transition font-bold"> Bersihkan Riwayat </button>`);
872
+ } else {
873
+ _push(`<!---->`);
874
+ }
875
+ _push(`</div><div class="flex-1 overflow-y-auto p-2 space-y-1.5 custom-scrollbar">`);
791
876
  if (__props.unsavedStash) {
792
- _push(`<div class="p-2 rounded-xl bg-purple-500/15 border border-purple-500/40 text-purple-200 flex items-center justify-between gap-2 shadow-sm text-xs sticky top-0 z-10 backdrop-blur-md"><div class="flex items-center gap-2 min-w-0"><span class="text-sm">\u270F\uFE0F</span><div class="truncate"><span class="font-bold text-[10px] block text-purple-300">Ada editan aktif sebelumnya:</span><span class="text-[11px] text-purple-100 font-semibold truncate block">&quot;${ssrInterpolate(__props.unsavedStash.title || "Tanpa Judul")}&quot;</span></div></div><div class="flex items-center gap-1.5 flex-shrink-0"><button class="px-2 py-1 bg-purple-500 hover:bg-purple-400 text-white font-bold rounded-lg text-[10px] transition shadow flex items-center gap-1 active:scale-95" title="Kembalikan editan aktif sebelum membuka riwayat ini"><span>\u21A9\uFE0F Kembali ke Editan</span></button><button class="p-1 hover:text-white text-purple-400/70 transition text-xs" title="Abaikan &amp; buang simpanan editan ini"> \u2715 </button></div></div>`);
877
+ _push(`<div class="p-2 rounded-xl bg-purple-500/15 border border-purple-500/40 text-purple-200 flex items-center justify-between gap-1 shadow-sm text-xs mb-1"><div class="truncate text-[10px]"><span class="font-bold text-purple-300">Editan aktif: </span><span class="text-purple-100 font-semibold truncate">${ssrInterpolate(__props.unsavedStash.title || "Tanpa Judul")}</span></div><button class="px-1.5 py-0.5 bg-purple-500 text-white font-bold rounded text-[9px] shrink-0"> Kembali </button></div>`);
793
878
  } else {
794
879
  _push(`<!---->`);
795
880
  }
796
881
  if (__props.history.length === 0) {
797
- _push(`<div class="text-center py-8 text-slate-500 text-[11px] leading-relaxed"> Belum ada riwayat pembuatan.<br> Setiap kali kamu klik <b class="text-sky-400">GENERATE CONTENT</b>, hasil pembuatan akan otomatis tercatat di sini! </div>`);
882
+ _push(`<div class="text-center py-8 text-slate-500 text-[11px] leading-relaxed"> Belum ada riwayat pembuatan.<br> Hasil generate akan otomatis tercatat di sini! </div>`);
798
883
  } else {
799
884
  _push(`<!---->`);
800
885
  }
801
886
  _push(`<!--[-->`);
802
887
  ssrRenderList(__props.history, (item, hIdx) => {
803
- _push(`<div data-history-item class="${ssrRenderClass([__props.activeHistoryIndex === hIdx ? "bg-purple-500/15 border-purple-500/50 text-white" : "bg-slate-950/60 border-slate-800 text-slate-300 hover:border-slate-700", "p-2 rounded-xl border cursor-pointer transition flex items-center justify-between text-xs group"])}"><div class="flex-1 pr-2"><div class="flex items-center gap-1.5 mb-0.5"><span class="px-1.5 py-0.2 rounded text-[8px] font-bold uppercase bg-purple-500/20 text-purple-300 border border-purple-500/30">${ssrInterpolate(item.layoutType || "reels")}</span><span class="text-[9px] text-slate-400 font-semibold">${ssrInterpolate(item.category)}</span>`);
888
+ _push(`<div data-history-item class="${ssrRenderClass([__props.activeHistoryIndex === hIdx ? "bg-purple-500/15 border-purple-500/50 text-white" : "bg-slate-950/60 border-slate-800 text-slate-300 hover:border-slate-700", "p-2 rounded-xl border cursor-pointer transition flex items-center justify-between text-xs group"])}"><div class="flex-1 min-w-0 pr-1"><div class="flex items-center gap-1 mb-0.5"><span class="px-1.5 py-0.2 rounded text-[8px] font-bold uppercase bg-purple-500/20 text-purple-300 border border-purple-500/30">${ssrInterpolate(item.layoutType || "reels")}</span><span class="text-[9px] text-slate-400 font-semibold truncate">${ssrInterpolate(item.category)}</span>`);
804
889
  if (item.generatedAt) {
805
- _push(`<span class="text-[9px] text-slate-500 font-mono ml-auto">${ssrInterpolate(formatDate(item.generatedAt))}</span>`);
890
+ _push(`<span class="text-[8px] text-slate-500 font-mono ml-auto">${ssrInterpolate(formatDate(item.generatedAt))}</span>`);
806
891
  } else {
807
892
  _push(`<!---->`);
808
893
  }
809
- _push(`</div><div class="font-bold text-[11px] truncate text-slate-100">${ssrInterpolate(item.title)}</div></div><button class="opacity-0 group-hover:opacity-100 p-1 text-slate-400 hover:text-rose-400 transition rounded" title="Hapus riwayat ini">`);
894
+ _push(`</div><div class="font-bold text-[11px] truncate text-slate-100">${ssrInterpolate(item.title)}</div></div><button class="opacity-0 group-hover:opacity-100 p-1 text-slate-400 hover:text-rose-400 transition rounded shrink-0" title="Hapus riwayat ini">`);
810
895
  _push(ssrRenderComponent(unref(Trash2), { class: "w-3.5 h-3.5" }, null, _parent));
811
896
  _push(`</button></div>`);
812
897
  });
813
- _push(`<!--]--></div>`);
898
+ _push(`<!--]--></div></div>`);
814
899
  } else {
815
- _push(`<div class="flex flex-col bg-slate-900/90 border border-slate-800 rounded-2xl overflow-hidden shadow-lg"><div class="grid grid-cols-2 gap-2 p-2.5 bg-slate-950/70 border-b border-slate-800 text-xs"><div><div class="flex items-center justify-between mb-1"><label class="text-[10px] font-bold text-slate-300 flex items-center gap-1">`);
816
- _push(ssrRenderComponent(unref(LayoutTemplate), { class: "w-3 h-3 text-sky-400" }, null, _parent));
817
- _push(` Format Template </label><button class="text-[10px] font-bold text-sky-400 hover:text-sky-300 flex items-center gap-0.5 transition" title="Kelola &amp; buat template kustom baru">`);
818
- _push(ssrRenderComponent(unref(Settings), { class: "w-3 h-3" }, null, _parent));
819
- _push(`<span>Kelola</span></button></div><select${ssrRenderAttr("value", unref(selectedTemplateId))} class="w-full bg-slate-900 border border-slate-800 rounded-lg p-1.5 text-slate-200 focus:outline-none focus:border-sky-500 font-semibold text-[11px]"><!--[-->`);
820
- ssrRenderList(unref(templatesList), (t) => {
821
- _push(`<option${ssrRenderAttr("value", t.id)}>${ssrInterpolate(t.name)} ${ssrInterpolate(t.isBuiltin ? "" : "\u2B50 (Kustom)")}</option>`);
822
- });
823
- _push(`<!--]--></select></div><div><label class="block text-[10px] font-bold text-slate-300 mb-1"> Theme Color (10 Pilihan) </label><select${ssrRenderAttr("value", __props.modelValue.theme || "blue-tech")} class="w-full bg-slate-900 border border-slate-800 rounded-lg p-1.5 text-slate-200 focus:outline-none focus:border-sky-500 font-semibold text-[11px]"><option value="blue-tech">\u{1F535} Blue Tech (AI &amp; Software)</option><option value="emerald-finance">\u{1F7E2} Emerald Finance (Salaries &amp; Living)</option><option value="slate-education">\u{1F7E3} Slate Education (Education &amp; Career)</option><option value="dark-contrast">\u26AB Dark Contrast (Universal Bold)</option><option value="crimson-alert">\u{1F534} Crimson Alert (Breaking Shock)</option><option value="amber-gold">\u{1F7E1} Amber Gold (Luxury &amp; Executive)</option><option value="cyber-violet">\u{1F7EA} Cyber Violet (Synthwave &amp; Neon)</option><option value="sunset-orange">\u{1F7E0} Sunset Orange (Warm Energy)</option><option value="nordic-frost">\u2744\uFE0F Nordic Frost (Polar Cyan Clean)</option><option value="monochrome-luxe">\u26AA Monochrome Luxe (Minimalist)</option></select></div><div class="col-span-2 grid grid-cols-3 gap-2 pt-1 border-t border-slate-800/60 mt-1"><div class="col-span-1"><label class="block text-[10px] font-bold text-slate-400 mb-1"> Watermark Handle </label><input type="text"${ssrRenderAttr("value", __props.modelValue.watermark || "@SocialGen")} placeholder="@NamaAkun" class="w-full bg-slate-900 border border-slate-800 rounded-lg px-2.5 py-1.5 text-sky-400 font-semibold text-[11px] focus:outline-none focus:border-sky-500 transition"></div><div class="col-span-2"><label class="block text-[10px] font-bold text-slate-400 mb-1"> Judul Konten (Title) </label><input type="text"${ssrRenderAttr("value", __props.modelValue.title)} placeholder="Judul Utama Konten..." class="w-full bg-slate-900 border border-slate-800 rounded-lg px-2.5 py-1.5 text-slate-100 font-semibold text-[11px] focus:outline-none focus:border-sky-500 transition"></div></div></div><div class="flex items-center justify-between px-3 py-1.5 bg-slate-950/50 border-b border-slate-800"><div class="flex items-center gap-2 text-xs"><span class="font-bold text-slate-300 text-[10px]">RAW JSON SocialGen</span>`);
824
- if (!unref(jsonFormatError)) {
825
- _push(`<span class="inline-flex items-center gap-0.5 px-1.5 py-0.2 rounded-full text-[9px] font-semibold bg-emerald-500/20 text-emerald-400 border border-emerald-500/30">`);
826
- _push(ssrRenderComponent(unref(CheckCircle2), { class: "w-2.5 h-2.5" }, null, _parent));
827
- _push(` ${ssrInterpolate(unref(rawJsonInput).trim() ? "Valid" : "Sample Mode")}</span>`);
900
+ _push(`<!---->`);
901
+ }
902
+ _push(`</aside><section class="w-[460px] xl:w-[500px] 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">`);
903
+ _push(ssrRenderComponent(unref(Sliders), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
904
+ _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">`);
905
+ _push(ssrRenderComponent(unref(Code), { class: "w-2.5 h-2.5" }, null, _parent));
906
+ _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">`);
907
+ _push(ssrRenderComponent(unref(RotateCcw), { class: "w-2.5 h-2.5" }, null, _parent));
908
+ _push(`<span>Sample</span></button></div></div><div class="flex-1 overflow-y-auto p-3 space-y-3.5 custom-scrollbar"><div class="p-3 bg-slate-900/80 border border-slate-800 rounded-2xl space-y-2.5 shadow-sm"><div class="flex items-center justify-between"><label class="text-[10px] font-black uppercase tracking-wider text-slate-400">Palette Tema &amp; Aksen</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) || __props.modelValue.theme || "Blue Tech")}</span></div><div class="grid grid-cols-5 gap-1.5"><!--[-->`);
909
+ ssrRenderList(themeOptions, (swatch) => {
910
+ _push(`<button type="button" class="${ssrRenderClass([[
911
+ swatch.bgClass,
912
+ (__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"
913
+ ], "h-6 rounded-lg transition border flex items-center justify-center shadow"])}"${ssrRenderAttr("title", swatch.name)}>`);
914
+ if ((__props.modelValue.theme || "blue-tech") === swatch.id) {
915
+ _push(ssrRenderComponent(unref(Check), { class: "w-3 h-3 text-white" }, null, _parent));
828
916
  } else {
829
- _push(`<span class="inline-flex items-center gap-0.5 px-1.5 py-0.2 rounded-full text-[9px] font-semibold bg-rose-500/20 text-rose-400 border border-rose-500/30">`);
830
- _push(ssrRenderComponent(unref(AlertCircle), { class: "w-2.5 h-2.5" }, null, _parent));
831
- _push(` Invalid </span>`);
917
+ _push(`<!---->`);
832
918
  }
833
- _push(`</div><div class="flex items-center gap-2"><button class="text-[10px] text-slate-400 hover:text-amber-400 transition flex items-center gap-1" title="Kosongkan JSON dan gunakan data sampel bawaan template aktif">`);
834
- _push(ssrRenderComponent(unref(RotateCcw), { class: "w-2.5 h-2.5" }, null, _parent));
835
- _push(`<span>Clear / Pakai Sample</span></button><span class="text-slate-700">|</span><button class="text-[10px] text-slate-400 hover:text-sky-400 transition"> Format JSON </button></div></div>`);
836
- if (unref(mismatchState)) {
837
- _push(`<div class="${ssrRenderClass([unref(mismatchState).isKnown ? "bg-amber-500/10 border-amber-500/30" : "bg-rose-500/10 border-rose-500/30", "mx-2.5 mt-2.5 p-2 rounded-xl border text-xs transition-all shadow-md flex flex-col sm:flex-row sm:items-center justify-between gap-2"])}"><div class="${ssrRenderClass([unref(mismatchState).isKnown ? "text-amber-300" : "text-rose-300", "flex items-center gap-1.5 text-[11px]"])}"><span class="text-sm">\u26A0\uFE0F</span>`);
838
- if (unref(mismatchState).isKnown) {
839
- _push(`<span> JSON ini dibuat untuk template <b class="underline">${ssrInterpolate((_m = unref(mismatchState).matchedTarget) == null ? void 0 : _m.name)}</b> (<span class="font-mono text-[10px]">${ssrInterpolate(unref(mismatchState).jsonTemplateId)}</span>) </span>`);
840
- } else {
841
- _push(`<span> Template dengan ID &quot;<span class="font-mono text-[10px]">${ssrInterpolate(unref(mismatchState).jsonTemplateId)}</span>&quot; tidak ditemukan di sistem. </span>`);
842
- }
843
- _push(`</div><div class="flex items-center gap-1.5 shrink-0">`);
844
- if (unref(mismatchState).isKnown && unref(mismatchState).matchedTarget) {
845
- _push(`<button class="px-2 py-0.5 rounded-lg bg-amber-500/20 hover:bg-amber-500/30 text-amber-200 border border-amber-500/40 text-[10px] font-bold transition flex items-center gap-1"> Pindah ke Template Ini </button>`);
846
- } else {
847
- _push(`<!---->`);
848
- }
849
- _push(`<button class="px-2 py-0.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-[10px] font-semibold transition"> Hapus JSON (Pakai Sample) </button></div></div>`);
919
+ _push(`</button>`);
920
+ });
921
+ _push(`<!--]--></div><div class="pt-2 border-t border-slate-800 flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="relative w-6 h-6 rounded-lg overflow-hidden border border-white/20 shadow-inner flex items-center justify-center cursor-pointer" style="${ssrRenderStyle({ backgroundColor: unref(activeAccentColor) })}"><input type="color"${ssrRenderAttr("value", unref(activeAccentColor))} class="absolute inset-0 opacity-0 w-full h-full cursor-pointer" title="Pilih warna aksen kanvas"></div><div class="flex flex-col"><span class="text-[10px] font-bold text-slate-200">Aksen Dinamis</span><span class="text-[8px] text-slate-400">Color picker kanvas kustom</span></div></div><div class="flex items-center gap-1.5"><span class="text-[10px] font-mono text-slate-400">HEX</span><input type="text"${ssrRenderAttr("value", unref(activeAccentColor))} class="w-20 bg-slate-950 border border-slate-800 rounded-lg px-2 py-1 text-center font-mono text-[11px] text-sky-400 font-bold focus:outline-none focus:border-sky-500 uppercase" placeholder="#0284C7"></div></div></div><div class="grid grid-cols-3 gap-2"><div class="col-span-1 space-y-1"><label class="text-[10px] font-black uppercase tracking-wider text-slate-400">Watermark</label><input type="text"${ssrRenderAttr("value", __props.modelValue.watermark || "@SocialGen")} class="w-full bg-slate-900 border border-slate-800 rounded-xl px-2.5 py-1.5 text-xs text-sky-400 font-semibold focus:outline-none focus:border-sky-500"></div><div class="col-span-2 space-y-1"><label class="text-[10px] font-black uppercase tracking-wider text-slate-400">Judul Konten (Title)</label><input type="text"${ssrRenderAttr("value", __props.modelValue.title)} placeholder="Judul Utama Konten..." class="w-full bg-slate-900 border border-slate-800 rounded-xl px-2.5 py-1.5 text-xs text-slate-100 font-semibold focus:outline-none focus:border-sky-500"></div></div><div class="p-3 bg-slate-900/80 border border-slate-800 rounded-2xl space-y-2 shadow-sm"><div class="flex items-center justify-between"><label class="text-[10px] font-black uppercase tracking-wider text-slate-400 flex items-center gap-1.5">`);
922
+ _push(ssrRenderComponent(unref(Code), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
923
+ _push(`<span>RAW JSON Content</span></label>`);
924
+ if (!unref(jsonFormatError)) {
925
+ _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">`);
926
+ _push(ssrRenderComponent(unref(CheckCircle2), { class: "w-2.5 h-2.5" }, null, _parent));
927
+ _push(` ${ssrInterpolate(unref(rawJsonInput).trim() ? "Valid" : "Sample Mode")}</span>`);
928
+ } else {
929
+ _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">`);
930
+ _push(ssrRenderComponent(unref(AlertCircle), { class: "w-2.5 h-2.5" }, null, _parent));
931
+ _push(` Invalid </span>`);
932
+ }
933
+ _push(`</div>`);
934
+ if (unref(mismatchState)) {
935
+ _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>`);
936
+ if (unref(mismatchState).isKnown) {
937
+ _push(`<span> Format milik: <b>${ssrInterpolate((_n = unref(mismatchState).matchedTarget) == null ? void 0 : _n.name)}</b></span>`);
850
938
  } else {
851
- _push(`<!---->`);
939
+ _push(`<span> Template &quot;${ssrInterpolate(unref(mismatchState).jsonTemplateId)}&quot; tidak ditemukan. </span>`);
852
940
  }
853
- _push(`<div class="relative p-2"><textarea rows="7" spellcheck="false" class="w-full bg-slate-950 text-sky-200 text-[11px] font-mono p-2.5 rounded-xl border border-slate-800 focus:outline-none focus:border-sky-500/50 resize-y leading-relaxed" placeholder="Paste Content JSON here... (kosong = otomatis menggunakan data sampel template aktif)">${ssrInterpolate(unref(rawJsonInput))}</textarea>`);
854
- if (unref(jsonFormatError) || __props.validationError) {
855
- _push(`<p class="text-[10px] text-rose-400 mt-1 px-1"> \u26A0\uFE0F ${ssrInterpolate(unref(jsonFormatError) || __props.validationError)}</p>`);
941
+ _push(`</div><div class="flex items-center gap-1.5">`);
942
+ if (unref(mismatchState).isKnown && unref(mismatchState).matchedTarget) {
943
+ _push(`<button class="px-2 py-0.5 rounded-lg bg-amber-500/20 hover:bg-amber-500/30 text-amber-200 border border-amber-500/40 text-[10px] font-bold transition"> Pindah Template </button>`);
856
944
  } else {
857
945
  _push(`<!---->`);
858
946
  }
859
- _push(`</div></div>`);
947
+ _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>`);
948
+ } else {
949
+ _push(`<!---->`);
950
+ }
951
+ _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>`);
952
+ if (unref(jsonFormatError) || __props.validationError) {
953
+ _push(`<p class="text-[10px] text-rose-400 mt-1 px-1"> \u26A0\uFE0F ${ssrInterpolate(unref(jsonFormatError) || __props.validationError)}</p>`);
954
+ } else {
955
+ _push(`<!---->`);
860
956
  }
861
- _push(`<input type="file" accept="video/mp4,video/webm" class="hidden"><input type="file" accept="audio/mp3,audio/mpeg,audio/wav" class="hidden"><div class="p-3 bg-slate-900/90 border border-slate-800 rounded-2xl flex flex-col gap-2.5 shadow-lg text-xs"><div class="flex flex-col gap-1.5"><div class="flex items-center justify-between gap-2"><label class="font-bold text-slate-300 flex items-center gap-1.5 text-[11px]">`);
957
+ _push(`</div><input type="file" accept="video/mp4,video/webm" class="hidden"><input type="file" accept="audio/mp3,audio/mpeg,audio/wav" class="hidden"><div class="p-3 bg-slate-900/80 border border-slate-800 rounded-2xl flex flex-col gap-2.5 shadow-sm text-xs"><div class="flex flex-col gap-1.5"><div class="flex items-center justify-between gap-2"><label class="font-bold text-slate-300 flex items-center gap-1.5 text-[11px]">`);
862
958
  _push(ssrRenderComponent(unref(Film), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
863
- _push(`<span>Background</span></label><div class="flex items-center gap-1.5"><select${ssrRenderAttr("value", __props.options.backgroundSource || "random")} class="bg-slate-950 border border-slate-800 rounded-lg px-2 py-1 text-slate-300 text-[11px] focus:outline-none max-w-[170px]"><option value="random">\u{1F500} Acak Video</option><!--[-->`);
959
+ _push(`<span>Background Video</span></label><div class="flex items-center gap-1.5"><select${ssrRenderAttr("value", __props.options.backgroundSource || "random")} class="bg-slate-950 border border-slate-800 rounded-lg px-2 py-1 text-slate-300 text-[11px] focus:outline-none max-w-[150px] truncate"><option value="random">\u{1F500} Acak Video</option><!--[-->`);
864
960
  ssrRenderList(unref(availableVideos), (v) => {
865
961
  _push(`<option${ssrRenderAttr("value", v)}>${ssrInterpolate(v.replace(".mp4", "").replace(/_/g, " "))}</option>`);
866
962
  });
@@ -868,9 +964,9 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
868
964
  _push(ssrRenderComponent(unref(Upload), { class: "w-3 h-3" }, null, _parent));
869
965
  _push(`<span class="hidden sm:inline">${ssrInterpolate(unref(isUploading) ? "..." : "Upload")}</span></button></div></div><div class="flex items-center justify-between pl-5 pr-1 text-[10px] text-slate-400"><span class="flex items-center gap-1 text-sky-300 font-mono">`);
870
966
  _push(ssrRenderComponent(unref(Scissors), { class: "w-2.5 h-2.5" }, null, _parent));
871
- _push(` Mulai: ${ssrInterpolate(Math.min(__props.options.videoStartOffset || 0, unref(activeVideoMaxOffset)))}s / ${ssrInterpolate(unref(activeVideoDuration))}s </span><input type="range" min="0"${ssrRenderAttr("max", unref(activeVideoMaxOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.options.videoStartOffset || 0, unref(activeVideoMaxOffset)))} class="w-32 h-1 bg-slate-950 rounded appearance-none cursor-pointer accent-sky-400"></div></div><div class="flex flex-col gap-1.5 pt-1.5 border-t border-slate-800"><div class="flex items-center justify-between gap-2"><label class="font-bold text-slate-300 flex items-center gap-1.5 text-[11px]">`);
967
+ _push(` Mulai: ${ssrInterpolate(Math.min(__props.options.videoStartOffset || 0, unref(activeVideoMaxOffset)))}s / ${ssrInterpolate(unref(activeVideoDuration))}s </span><input type="range" min="0"${ssrRenderAttr("max", unref(activeVideoMaxOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.options.videoStartOffset || 0, unref(activeVideoMaxOffset)))} class="w-28 h-1 bg-slate-950 rounded appearance-none cursor-pointer accent-sky-400"></div></div><div class="flex flex-col gap-1.5 pt-1.5 border-t border-slate-800"><div class="flex items-center justify-between gap-2"><label class="font-bold text-slate-300 flex items-center gap-1.5 text-[11px]">`);
872
968
  _push(ssrRenderComponent(unref(Music), { class: "w-3.5 h-3.5 text-purple-400" }, null, _parent));
873
- _push(`<span>Musik Reels</span></label><div class="flex items-center gap-1.5"><select${ssrRenderAttr("value", __props.options.musicFile || "random")} class="bg-slate-950 border border-slate-800 rounded-lg px-2 py-1 text-slate-300 text-[11px] focus:outline-none max-w-[170px]"><option value="random">\u{1F500} Acak Musik</option><!--[-->`);
969
+ _push(`<span>Musik Reels</span></label><div class="flex items-center gap-1.5"><select${ssrRenderAttr("value", __props.options.musicFile || "random")} class="bg-slate-950 border border-slate-800 rounded-lg px-2 py-1 text-slate-300 text-[11px] focus:outline-none max-w-[150px] truncate"><option value="random">\u{1F500} Acak Musik</option><!--[-->`);
874
970
  ssrRenderList(unref(availableAudio), (a) => {
875
971
  _push(`<option${ssrRenderAttr("value", a)}>${ssrInterpolate(a.replace(".mp3", "").replace(/_/g, " "))}</option>`);
876
972
  });
@@ -878,21 +974,21 @@ Keluarkan HANYA 1 objek JSON valid tanpa markdown formatting (\`\`\`json) agar b
878
974
  _push(ssrRenderComponent(unref(Upload), { class: "w-3 h-3" }, null, _parent));
879
975
  _push(`<span class="hidden sm:inline">${ssrInterpolate(unref(isUploading) ? "..." : "Upload")}</span></button></div></div><div class="flex items-center justify-between pl-5 pr-1 text-[10px] text-slate-400"><span class="flex items-center gap-1 text-purple-300 font-mono">`);
880
976
  _push(ssrRenderComponent(unref(Scissors), { class: "w-2.5 h-2.5" }, null, _parent));
881
- _push(` Mulai: ${ssrInterpolate(Math.min(__props.options.audioStartOffset || 0, unref(activeAudioMaxOffset)))}s / ${ssrInterpolate(unref(activeAudioDuration))}s </span><input type="range" min="0"${ssrRenderAttr("max", unref(activeAudioMaxOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.options.audioStartOffset || 0, unref(activeAudioMaxOffset)))} class="w-32 h-1 bg-slate-950 rounded appearance-none cursor-pointer accent-purple-400"></div></div><div class="flex items-center justify-between pt-1.5 border-t border-slate-800"><label class="font-bold text-slate-300 flex items-center gap-1.5 text-[11px]">`);
977
+ _push(` Mulai: ${ssrInterpolate(Math.min(__props.options.audioStartOffset || 0, unref(activeAudioMaxOffset)))}s / ${ssrInterpolate(unref(activeAudioDuration))}s </span><input type="range" min="0"${ssrRenderAttr("max", unref(activeAudioMaxOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.options.audioStartOffset || 0, unref(activeAudioMaxOffset)))} class="w-28 h-1 bg-slate-950 rounded appearance-none cursor-pointer accent-purple-400"></div></div><div class="flex items-center justify-between pt-1.5 border-t border-slate-800"><label class="font-bold text-slate-300 flex items-center gap-1.5 text-[11px]">`);
882
978
  _push(ssrRenderComponent(unref(Clock), { class: "w-3.5 h-3.5 text-emerald-400" }, null, _parent));
883
979
  _push(`<span>Durasi Reels:</span></label><div class="flex items-center gap-1.5 flex-wrap justify-end"><!--[-->`);
884
980
  ssrRenderList([7, 10, 15, 30, 60], (d) => {
885
981
  _push(`<button class="${ssrRenderClass([(__props.modelValue.reelsDuration || 30) === d ? "bg-emerald-500/20 border-emerald-500/60 text-emerald-300" : "bg-slate-950 border-slate-800 text-slate-400 hover:text-white", "px-2 py-0.5 text-[10px] font-bold rounded-lg border transition"])}">${ssrInterpolate(d === 60 ? "1m" : d + "s")}</button>`);
886
982
  });
887
- _push(`<!--]--></div></div><div class="grid grid-cols-3 gap-2 pt-1.5 border-t border-slate-800"><label class="${ssrRenderClass([((_n = __props.options.outputs) == null ? void 0 : _n.feed) !== false ? "bg-sky-500/10 border-sky-500/40 text-sky-200" : "bg-slate-950/50 border-slate-800 text-slate-500", "flex items-center gap-1.5 p-1.5 rounded-xl border text-[11px] cursor-pointer transition select-none"])}"><input type="checkbox"${ssrIncludeBooleanAttr(((_o = __props.options.outputs) == null ? void 0 : _o.feed) !== false) ? " checked" : ""} class="rounded text-sky-500 focus:ring-0 bg-slate-900 border-slate-700 w-3 h-3"><span class="font-bold">Feed 4:5</span></label><label class="${ssrRenderClass([((_p = __props.options.outputs) == null ? void 0 : _p.story) !== false ? "bg-indigo-500/10 border-indigo-500/40 text-indigo-200" : "bg-slate-950/50 border-slate-800 text-slate-500", "flex items-center gap-1.5 p-1.5 rounded-xl border text-[11px] cursor-pointer transition select-none"])}"><input type="checkbox"${ssrIncludeBooleanAttr(((_q = __props.options.outputs) == null ? void 0 : _q.story) !== false) ? " checked" : ""} class="rounded text-indigo-500 focus:ring-0 bg-slate-900 border-slate-700 w-3 h-3"><span class="font-bold">Story 9:16</span></label><label class="${ssrRenderClass([((_r = __props.options.outputs) == null ? void 0 : _r.reels) !== false ? "bg-emerald-500/10 border-emerald-500/40 text-emerald-200" : "bg-slate-950/50 border-slate-800 text-slate-500", "flex items-center gap-1.5 p-1.5 rounded-xl border text-[11px] cursor-pointer transition select-none"])}"><input type="checkbox"${ssrIncludeBooleanAttr(((_s = __props.options.outputs) == null ? void 0 : _s.reels) !== false) ? " checked" : ""} class="rounded text-emerald-500 focus:ring-0 bg-slate-900 border-slate-700 w-3 h-3"><span class="font-bold">Reels MP4</span></label></div></div><button${ssrIncludeBooleanAttr(!__props.isValid || __props.isGenerating || !!unref(jsonFormatError)) ? " disabled" : ""} class="${ssrRenderClass([[
888
- !__props.isValid || __props.isGenerating || !!unref(jsonFormatError) ? "bg-slate-800 text-slate-500 cursor-not-allowed border border-slate-700" : "bg-gradient-to-r from-sky-500 via-blue-600 to-indigo-600 text-white hover:from-sky-400 hover:to-indigo-500 shadow-sky-500/25 active:scale-[0.99]"
983
+ _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([[
984
+ !__props.isValid || __props.isGenerating || !!unref(jsonFormatError) ? "bg-slate-800 text-slate-500 cursor-not-allowed border border-slate-700" : "bg-gradient-to-r from-sky-500 via-indigo-600 to-purple-600 hover:from-sky-400 hover:to-indigo-500 text-white shadow-sky-500/25 active:scale-[0.99]"
889
985
  ], "w-full py-3 px-4 rounded-xl font-black text-xs tracking-wide shadow-xl transition flex items-center justify-center gap-2"])}">`);
890
986
  if (__props.isGenerating) {
891
987
  _push(ssrRenderComponent(unref(RefreshCw), { class: "w-3.5 h-3.5 animate-spin" }, null, _parent));
892
988
  } else {
893
989
  _push(ssrRenderComponent(unref(Play), { class: "w-3.5 h-3.5 fill-current" }, null, _parent));
894
990
  }
895
- _push(`<span>${ssrInterpolate(__props.isGenerating ? __props.generateStage || "Rendering Content..." : "GENERATE CONTENT")}</span></button></div></div>`);
991
+ _push(`<span>${ssrInterpolate(__props.isGenerating ? __props.generateStage || "Rendering Content..." : "GENERATE CONTENT SEKARANG")}</span></button></div></section></div></div></div>`);
896
992
  };
897
993
  }
898
994
  });
@@ -1110,27 +1206,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1110
1206
  );
1111
1207
  return (_ctx, _push, _parent, _attrs) => {
1112
1208
  const _component_TableCard = _sfc_main$3;
1113
- _push(`<div${ssrRenderAttrs(mergeProps({ class: "flex flex-col gap-2.5 h-full text-slate-100 min-h-0 justify-between relative" }, _attrs))}>`);
1209
+ _push(`<div${ssrRenderAttrs(mergeProps({ class: "flex flex-col gap-2.5 h-full text-slate-100 min-h-0 justify-between relative" }, _attrs))} data-v-8f29de3b>`);
1114
1210
  if (__props.isGenerating) {
1115
- _push(`<div class="absolute inset-0 z-50 bg-slate-950/85 backdrop-blur-md rounded-2xl flex flex-col items-center justify-center p-6 text-center animate-in fade-in duration-200"><div class="relative flex items-center justify-center mb-5"><div class="w-20 h-20 rounded-full border-4 border-sky-500/20 border-t-sky-400 border-r-indigo-500 animate-spin"></div><div class="absolute inset-0 flex items-center justify-center">`);
1211
+ _push(`<div class="absolute inset-0 z-50 bg-slate-950/85 backdrop-blur-md rounded-2xl flex flex-col items-center justify-center p-6 text-center animate-in fade-in duration-200" data-v-8f29de3b><div class="relative flex items-center justify-center mb-5" data-v-8f29de3b><div class="w-20 h-20 rounded-full border-4 border-sky-500/20 border-t-sky-400 border-r-indigo-500 animate-spin" data-v-8f29de3b></div><div class="absolute inset-0 flex items-center justify-center" data-v-8f29de3b>`);
1116
1212
  _push(ssrRenderComponent(unref(Sparkles), { class: "w-8 h-8 text-sky-400 animate-pulse" }, null, _parent));
1117
- _push(`</div></div><h3 class="text-base font-black text-white tracking-wide mb-1.5"> Sedang Men-generate Konten... </h3><p class="text-xs text-sky-300 font-bold mb-4 flex items-center gap-2"><span class="w-2 h-2 rounded-full bg-sky-400 animate-ping"></span><span>${ssrInterpolate(__props.generateStage || "Merender Gambar & Video Reels...")}</span></p><div class="w-64 max-w-full bg-slate-900 border border-slate-800 rounded-full h-2.5 overflow-hidden shadow-inner mb-3"><div class="h-full bg-gradient-to-r from-sky-500 via-indigo-500 to-purple-500 rounded-full animate-pulse w-full"></div></div><span class="text-[10px] text-slate-400 font-mono tracking-wider uppercase"> Multi-Format Studio Engine \u2022 Mohon Tunggu Sebentar </span></div>`);
1213
+ _push(`</div></div><h3 class="text-base font-black text-white tracking-wide mb-1.5" data-v-8f29de3b> Sedang Men-generate Konten... </h3><p class="text-xs text-sky-300 font-bold mb-4 flex items-center gap-2" data-v-8f29de3b><span class="w-2 h-2 rounded-full bg-sky-400 animate-ping" data-v-8f29de3b></span><span data-v-8f29de3b>${ssrInterpolate(__props.generateStage || "Merender Gambar & Video Reels...")}</span></p><div class="w-64 max-w-full bg-slate-900 border border-slate-800 rounded-full h-2.5 overflow-hidden shadow-inner mb-3" data-v-8f29de3b><div class="h-full bg-gradient-to-r from-sky-500 via-indigo-500 to-purple-500 rounded-full animate-pulse w-full" data-v-8f29de3b></div></div><span class="text-[10px] text-slate-400 font-mono tracking-wider uppercase" data-v-8f29de3b> Multi-Format Studio Engine \u2022 Mohon Tunggu Sebentar </span></div>`);
1118
1214
  } else {
1119
1215
  _push(`<!---->`);
1120
1216
  }
1121
- _push(`<div class="flex flex-wrap items-center justify-between gap-2 p-2.5 bg-slate-900/90 border border-slate-800 rounded-2xl shadow-lg flex-shrink-0"><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 text-xs font-bold"><button class="${ssrRenderClass([unref(activeTab) === "feed" ? "bg-sky-500 text-white shadow-md" : "text-slate-400 hover:text-white", "px-3 py-1.5 rounded-lg transition"])}"> Feed 4:5 </button><button class="${ssrRenderClass([unref(activeTab) === "story" ? "bg-indigo-500 text-white shadow-md" : "text-slate-400 hover:text-white", "px-3 py-1.5 rounded-lg transition"])}"> Story 9:16 </button><button class="${ssrRenderClass([unref(activeTab) === "reels" ? "bg-emerald-500 text-white shadow-md" : "text-slate-400 hover:text-white", "px-3 py-1.5 rounded-lg transition flex items-center gap-1.5"])}"><span>Reels 9:16 (Video)</span>`);
1217
+ _push(`<div class="flex flex-wrap items-center justify-between gap-2 p-2.5 bg-slate-900/90 border border-slate-800 rounded-2xl shadow-lg flex-shrink-0" data-v-8f29de3b><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 text-xs font-bold" data-v-8f29de3b><button class="${ssrRenderClass([unref(activeTab) === "feed" ? "bg-sky-500 text-white shadow-md" : "text-slate-400 hover:text-white", "px-3 py-1.5 rounded-lg transition"])}" data-v-8f29de3b> Feed 4:5 </button><button class="${ssrRenderClass([unref(activeTab) === "story" ? "bg-indigo-500 text-white shadow-md" : "text-slate-400 hover:text-white", "px-3 py-1.5 rounded-lg transition"])}" data-v-8f29de3b> Story 9:16 </button><button class="${ssrRenderClass([unref(activeTab) === "reels" ? "bg-emerald-500 text-white shadow-md" : "text-slate-400 hover:text-white", "px-3 py-1.5 rounded-lg transition flex items-center gap-1.5"])}" data-v-8f29de3b><span data-v-8f29de3b>Reels 9:16 (Video)</span>`);
1122
1218
  if (unref(activeTab) === "reels" && unref(isPlaying)) {
1123
- _push(`<span class="w-1.5 h-1.5 rounded-full bg-white animate-pulse"></span>`);
1219
+ _push(`<span class="w-1.5 h-1.5 rounded-full bg-white animate-pulse" data-v-8f29de3b></span>`);
1124
1220
  } else {
1125
1221
  _push(`<!---->`);
1126
1222
  }
1127
- _push(`</button></div><div class="flex items-center gap-2 text-xs"><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 text-xs shadow-inner"><button title="Zoom Out (-15%)" class="p-1.5 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition">`);
1223
+ _push(`</button></div><div class="flex items-center gap-2 text-xs" data-v-8f29de3b><div class="flex items-center gap-1 bg-slate-950 p-1 rounded-xl border border-slate-800 text-xs shadow-inner" data-v-8f29de3b><button title="Zoom Out (-15%)" class="p-1.5 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition" data-v-8f29de3b>`);
1128
1224
  _push(ssrRenderComponent(unref(ZoomOut), { class: "w-3.5 h-3.5" }, null, _parent));
1129
- _push(`</button><button title="Klik untuk Reset Zoom (100% Fit)" class="px-2 py-0.5 rounded-lg text-[11px] font-bold text-sky-400 hover:bg-slate-800 hover:text-sky-300 transition font-mono min-w-[42px] text-center">${ssrInterpolate(Math.round(unref(zoomScale) * 100))}% </button><button title="Zoom In (+15%)" class="p-1.5 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition">`);
1225
+ _push(`</button><button title="Klik untuk Reset Zoom (100% Fit)" class="px-2 py-0.5 rounded-lg text-[11px] font-bold text-sky-400 hover:bg-slate-800 hover:text-sky-300 transition font-mono min-w-[42px] text-center" data-v-8f29de3b>${ssrInterpolate(Math.round(unref(zoomScale) * 100))}% </button><button title="Zoom In (+15%)" class="p-1.5 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition" data-v-8f29de3b>`);
1130
1226
  _push(ssrRenderComponent(unref(ZoomIn), { class: "w-3.5 h-3.5" }, null, _parent));
1131
1227
  _push(`</button>`);
1132
1228
  if (unref(zoomScale) !== 1) {
1133
- _push(`<button title="Reset ke Ukuran Pas" class="p-1.5 rounded-lg text-amber-400 hover:bg-slate-800 transition">`);
1229
+ _push(`<button title="Reset ke Ukuran Pas" class="p-1.5 rounded-lg text-amber-400 hover:bg-slate-800 transition" data-v-8f29de3b>`);
1134
1230
  _push(ssrRenderComponent(unref(RotateCcw), { class: "w-3.5 h-3.5" }, null, _parent));
1135
1231
  _push(`</button>`);
1136
1232
  } else {
@@ -1138,22 +1234,22 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1138
1234
  }
1139
1235
  _push(`</div>`);
1140
1236
  if (unref(activeTab) !== "feed") {
1141
- _push(`<button class="${ssrRenderClass([unref(showSafeZones) ? "bg-amber-500/20 text-amber-300 border-amber-500/50" : "bg-slate-950 text-slate-400 border-slate-800", "inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg border text-xs font-bold transition"])}">`);
1237
+ _push(`<button class="${ssrRenderClass([unref(showSafeZones) ? "bg-amber-500/20 text-amber-300 border-amber-500/50" : "bg-slate-950 text-slate-400 border-slate-800", "inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg border text-xs font-bold transition"])}" data-v-8f29de3b>`);
1142
1238
  _push(ssrRenderComponent(unref(ShieldAlert), { class: "w-3.5 h-3.5" }, null, _parent));
1143
- _push(`<span class="hidden sm:inline">Safe Zones</span></button>`);
1239
+ _push(`<span class="hidden sm:inline" data-v-8f29de3b>Safe Zones</span></button>`);
1144
1240
  } else {
1145
1241
  _push(`<!---->`);
1146
1242
  }
1147
- _push(`</div></div><div class="relative flex-1 min-h-0 bg-slate-950/80 border border-slate-800/80 rounded-2xl flex p-4 overflow-auto shadow-inner custom-scrollbar"><div class="m-auto flex-shrink-0 relative transition-all duration-200 ease-out" style="${ssrRenderStyle({
1243
+ _push(`</div></div><div class="relative flex-1 min-h-0 bg-slate-950/80 canvas-dot-bg border border-slate-800/80 rounded-2xl flex p-4 overflow-auto shadow-inner custom-scrollbar" data-v-8f29de3b><div class="m-auto flex-shrink-0 relative transition-all duration-200 ease-out" style="${ssrRenderStyle({
1148
1244
  width: `${Math.round(unref(baseCanvasWidth) * unref(zoomScale))}px`,
1149
1245
  height: `${Math.round(unref(baseCanvasHeight) * unref(zoomScale))}px`
1150
- })}"><div class="origin-top-left transition-transform duration-200 ease-out absolute top-0 left-0" style="${ssrRenderStyle({
1246
+ })}" data-v-8f29de3b><div class="origin-top-left transition-transform duration-200 ease-out absolute top-0 left-0" style="${ssrRenderStyle({
1151
1247
  width: `${unref(baseCanvasWidth)}px`,
1152
1248
  height: `${unref(baseCanvasHeight)}px`,
1153
1249
  transform: `scale(${unref(zoomScale)})`
1154
- })}">`);
1250
+ })}" data-v-8f29de3b>`);
1155
1251
  if (unref(activeTab) === "feed") {
1156
- _push(`<div class="relative shadow-2xl rounded-2xl overflow-hidden border border-slate-700/80 flex-shrink-0" style="width:360px;height:450px;"><div style="width:1080px;height:1350px;transform:scale(0.333333);transform-origin:top left;">`);
1252
+ _push(`<div class="relative shadow-2xl rounded-2xl overflow-hidden border border-slate-700/80 flex-shrink-0" style="width:360px;height:450px;" data-v-8f29de3b><div style="width:1080px;height:1350px;transform:scale(0.333333);transform-origin:top left;" data-v-8f29de3b>`);
1157
1253
  _push(ssrRenderComponent(_component_TableCard, {
1158
1254
  data: __props.data,
1159
1255
  mode: "feed",
@@ -1161,13 +1257,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1161
1257
  }, null, _parent));
1162
1258
  _push(`</div></div>`);
1163
1259
  } else {
1164
- _push(`<div class="relative shadow-2xl rounded-2xl overflow-hidden border border-slate-700/80 flex-shrink-0" style="width:300px;height:533.33px;">`);
1260
+ _push(`<div class="relative shadow-2xl rounded-2xl overflow-hidden border border-slate-700/80 flex-shrink-0" style="width:300px;height:533.33px;" data-v-8f29de3b>`);
1165
1261
  if (unref(activeTab) === "reels") {
1166
- _push(`<div class="absolute inset-0 z-0 bg-slate-950 overflow-hidden"><video autoplay muted playsinline class="w-full h-full object-cover brightness-90 contrast-105"${ssrRenderAttr("src", unref(activeVideoSrc))}></video><div class="absolute inset-0 bg-slate-950/30 backdrop-blur-[0.5px]"></div><audio${ssrRenderAttr("src", unref(activeAudioSrc))}${ssrIncludeBooleanAttr(unref(isMuted)) ? " muted" : ""}></audio></div>`);
1262
+ _push(`<div class="absolute inset-0 z-0 bg-slate-950 overflow-hidden" data-v-8f29de3b><video autoplay muted playsinline class="w-full h-full object-cover brightness-90 contrast-105"${ssrRenderAttr("src", unref(activeVideoSrc))} data-v-8f29de3b></video><div class="absolute inset-0 bg-slate-950/30 backdrop-blur-[0.5px]" data-v-8f29de3b></div><audio${ssrRenderAttr("src", unref(activeAudioSrc))}${ssrIncludeBooleanAttr(unref(isMuted)) ? " muted" : ""} data-v-8f29de3b></audio></div>`);
1167
1263
  } else {
1168
1264
  _push(`<!---->`);
1169
1265
  }
1170
- _push(`<div class="relative z-10 pointer-events-none" style="width:1080px;height:1920px;transform:scale(0.277778);transform-origin:top left;">`);
1266
+ _push(`<div class="relative z-10 pointer-events-none" style="width:1080px;height:1920px;transform:scale(0.277778);transform-origin:top left;" data-v-8f29de3b>`);
1171
1267
  _push(ssrRenderComponent(_component_TableCard, {
1172
1268
  data: __props.data,
1173
1269
  mode: unref(activeTab) === "reels" ? "overlay" : "story",
@@ -1175,13 +1271,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1175
1271
  }, null, _parent));
1176
1272
  _push(`</div>`);
1177
1273
  if (unref(showSafeZones)) {
1178
- _push(`<div class="absolute inset-0 z-20 pointer-events-none flex flex-col justify-between"><div class="h-14 bg-red-500/20 border-b border-dashed border-red-500/60 flex items-center justify-center text-[9px] text-red-200 font-bold tracking-wider"> TOP SAFE ZONE (Profile &amp; Status) </div><div class="flex-1 flex justify-end p-2">`);
1274
+ _push(`<div class="absolute inset-0 z-20 pointer-events-none flex flex-col justify-between" data-v-8f29de3b><div class="h-14 bg-red-500/20 border-b border-dashed border-red-500/60 flex items-center justify-center text-[9px] text-red-200 font-bold tracking-wider" data-v-8f29de3b> TOP SAFE ZONE (Profile &amp; Status) </div><div class="flex-1 flex justify-end p-2" data-v-8f29de3b>`);
1179
1275
  if (unref(activeTab) === "reels") {
1180
- _push(`<div class="w-10 bg-red-500/20 border-l border-dashed border-red-500/60 rounded flex flex-col items-center justify-center gap-3 text-[8px] text-red-200 py-3 text-center px-0.5 font-bold"><span>\u2764\uFE0F Like</span><span>\u{1F4AC} Comm</span><span>\u2197\uFE0F Share</span></div>`);
1276
+ _push(`<div class="w-10 bg-red-500/20 border-l border-dashed border-red-500/60 rounded flex flex-col items-center justify-center gap-3 text-[8px] text-red-200 py-3 text-center px-0.5 font-bold" data-v-8f29de3b><span data-v-8f29de3b>\u2764\uFE0F Like</span><span data-v-8f29de3b>\u{1F4AC} Comm</span><span data-v-8f29de3b>\u2197\uFE0F Share</span></div>`);
1181
1277
  } else {
1182
1278
  _push(`<!---->`);
1183
1279
  }
1184
- _push(`</div><div class="h-20 bg-red-500/20 border-t border-dashed border-red-500/60 flex items-center justify-center text-[9px] text-red-200 font-bold tracking-wider"> BOTTOM SAFE ZONE (Caption &amp; Audio) </div></div>`);
1280
+ _push(`</div><div class="h-20 bg-red-500/20 border-t border-dashed border-red-500/60 flex items-center justify-center text-[9px] text-red-200 font-bold tracking-wider" data-v-8f29de3b> BOTTOM SAFE ZONE (Caption &amp; Audio) </div></div>`);
1185
1281
  } else {
1186
1282
  _push(`<!---->`);
1187
1283
  }
@@ -1189,27 +1285,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1189
1285
  }
1190
1286
  _push(`</div></div></div>`);
1191
1287
  if (unref(activeTab) === "reels") {
1192
- _push(`<div class="flex flex-col bg-slate-900/95 border border-slate-800 rounded-2xl p-2.5 gap-2 shadow-xl flex-shrink-0 text-xs"><div class="flex items-center justify-between gap-3"><button class="p-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white font-bold transition flex items-center gap-1.5 shadow-md"${ssrRenderAttr("title", unref(isPlaying) ? "Pause Preview" : "Putar Preview")}>`);
1288
+ _push(`<div class="flex flex-col bg-slate-900/95 border border-slate-800 rounded-2xl p-2.5 gap-2 shadow-xl flex-shrink-0 text-xs" data-v-8f29de3b><div class="flex items-center justify-between gap-3" data-v-8f29de3b><button class="p-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white font-bold transition flex items-center gap-1.5 shadow-md"${ssrRenderAttr("title", unref(isPlaying) ? "Pause Preview" : "Putar Preview")} data-v-8f29de3b>`);
1193
1289
  if (unref(isPlaying)) {
1194
1290
  _push(ssrRenderComponent(unref(Pause), { class: "w-3.5 h-3.5 fill-current" }, null, _parent));
1195
1291
  } else {
1196
1292
  _push(ssrRenderComponent(unref(Play), { class: "w-3.5 h-3.5 fill-current" }, null, _parent));
1197
1293
  }
1198
- _push(`<span class="text-[11px] hidden sm:inline">${ssrInterpolate(unref(isPlaying) ? "Pause" : "Play")}</span></button><div class="flex-1 flex items-center gap-2"><input type="range" min="0"${ssrRenderAttr("max", unref(totalDuration))} step="0.1"${ssrRenderAttr("value", unref(currentTime))} class="flex-1 h-1.5 bg-slate-950 rounded-lg appearance-none cursor-pointer accent-emerald-500 hover:accent-emerald-400"><span class="font-mono text-[11px] font-bold text-slate-300 min-w-[75px] text-right">${ssrInterpolate(formatTime(unref(currentTime)))} / ${ssrInterpolate(formatTime(unref(totalDuration)))}</span></div><button class="${ssrRenderClass([!unref(isMuted) ? "bg-purple-600/40 text-purple-200 border-purple-500/60 shadow-md ring-1 ring-purple-500/40" : "bg-slate-950 text-slate-400 border-slate-800 hover:text-white", "px-2.5 py-2 rounded-xl border transition flex items-center gap-1.5 font-bold text-[11px]"])}"${ssrRenderAttr("title", unref(isMuted) ? "Aktifkan Suara Musik (Unmute)" : "Matikan Suara Musik (Mute)")}>`);
1294
+ _push(`<span class="text-[11px] hidden sm:inline" data-v-8f29de3b>${ssrInterpolate(unref(isPlaying) ? "Pause" : "Play")}</span></button><div class="flex-1 flex items-center gap-2" data-v-8f29de3b><input type="range" min="0"${ssrRenderAttr("max", unref(totalDuration))} step="0.1"${ssrRenderAttr("value", unref(currentTime))} class="flex-1 h-1.5 bg-slate-950 rounded-lg appearance-none cursor-pointer accent-emerald-500 hover:accent-emerald-400" data-v-8f29de3b><span class="font-mono text-[11px] font-bold text-slate-300 min-w-[75px] text-right" data-v-8f29de3b>${ssrInterpolate(formatTime(unref(currentTime)))} / ${ssrInterpolate(formatTime(unref(totalDuration)))}</span></div><button class="${ssrRenderClass([!unref(isMuted) ? "bg-purple-600/40 text-purple-200 border-purple-500/60 shadow-md ring-1 ring-purple-500/40" : "bg-slate-950 text-slate-400 border-slate-800 hover:text-white", "px-2.5 py-2 rounded-xl border transition flex items-center gap-1.5 font-bold text-[11px]"])}"${ssrRenderAttr("title", unref(isMuted) ? "Aktifkan Suara Musik (Unmute)" : "Matikan Suara Musik (Mute)")} data-v-8f29de3b>`);
1199
1295
  if (!unref(isMuted)) {
1200
1296
  _push(ssrRenderComponent(unref(Volume2), { class: "w-3.5 h-3.5 text-purple-300 animate-pulse" }, null, _parent));
1201
1297
  } else {
1202
1298
  _push(ssrRenderComponent(unref(VolumeX), { class: "w-3.5 h-3.5" }, null, _parent));
1203
1299
  }
1204
- _push(`<span>${ssrInterpolate(!unref(isMuted) ? "Audio ON" : "Muted")}</span></button><button class="${ssrRenderClass([unref(showOffsetEditor) ? "bg-sky-500/20 text-sky-300 border-sky-500/50" : "bg-slate-950 text-slate-400 border-slate-800 hover:text-white", "px-2.5 py-2 rounded-xl border text-[11px] font-bold flex items-center gap-1.5 transition"])}" title="Atur Detik Awal Video &amp; Musik">`);
1300
+ _push(`<span data-v-8f29de3b>${ssrInterpolate(!unref(isMuted) ? "Audio ON" : "Muted")}</span></button><button class="${ssrRenderClass([unref(showOffsetEditor) ? "bg-sky-500/20 text-sky-300 border-sky-500/50" : "bg-slate-950 text-slate-400 border-slate-800 hover:text-white", "px-2.5 py-2 rounded-xl border text-[11px] font-bold flex items-center gap-1.5 transition"])}" title="Atur Detik Awal Video &amp; Musik" data-v-8f29de3b>`);
1205
1301
  _push(ssrRenderComponent(unref(Scissors), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
1206
- _push(`<span class="hidden sm:inline">Trim Offset</span></button></div>`);
1302
+ _push(`<span class="hidden sm:inline" data-v-8f29de3b>Trim Offset</span></button></div>`);
1207
1303
  if (unref(showOffsetEditor)) {
1208
- _push(`<div class="grid grid-cols-1 sm:grid-cols-2 gap-3 p-2.5 bg-slate-950/80 rounded-xl border border-slate-800/80 animate-fadeIn"><div class="flex flex-col gap-1.5"><div class="flex items-center justify-between text-[11px]"><span class="font-bold text-sky-300 flex items-center gap-1">`);
1304
+ _push(`<div class="grid grid-cols-1 sm:grid-cols-2 gap-3 p-2.5 bg-slate-950/80 rounded-xl border border-slate-800/80 animate-fadeIn" data-v-8f29de3b><div class="flex flex-col gap-1.5" data-v-8f29de3b><div class="flex items-center justify-between text-[11px]" data-v-8f29de3b><span class="font-bold text-sky-300 flex items-center gap-1" data-v-8f29de3b>`);
1209
1305
  _push(ssrRenderComponent(unref(Film), { class: "w-3 h-3" }, null, _parent));
1210
- _push(` Mulai Video: ${ssrInterpolate(Math.min(__props.videoStartOffset || 0, unref(maxVideoOffset)))}s / ${ssrInterpolate(unref(videoFileDuration))}s </span><button class="text-[9px] px-1.5 py-0.5 rounded bg-slate-800 hover:bg-slate-700 text-sky-300 border border-slate-700 transition" title="Gunakan posisi video saat ini sebagai detik mulai"> Set Detik Ini </button></div><input type="range" min="0"${ssrRenderAttr("max", unref(maxVideoOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.videoStartOffset || 0, unref(maxVideoOffset)))} class="w-full h-1 bg-slate-900 rounded appearance-none cursor-pointer accent-sky-400"><div class="text-[9px] text-slate-500"> Maksimal offset: ${ssrInterpolate(unref(maxVideoOffset))} detik (panjang asli video: ${ssrInterpolate(unref(videoFileDuration))}s) </div></div><div class="flex flex-col gap-1.5"><div class="flex items-center justify-between text-[11px]"><span class="font-bold text-purple-300 flex items-center gap-1">`);
1306
+ _push(` Mulai Video: ${ssrInterpolate(Math.min(__props.videoStartOffset || 0, unref(maxVideoOffset)))}s / ${ssrInterpolate(unref(videoFileDuration))}s </span><button class="text-[9px] px-1.5 py-0.5 rounded bg-slate-800 hover:bg-slate-700 text-sky-300 border border-slate-700 transition" title="Gunakan posisi video saat ini sebagai detik mulai" data-v-8f29de3b> Set Detik Ini </button></div><input type="range" min="0"${ssrRenderAttr("max", unref(maxVideoOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.videoStartOffset || 0, unref(maxVideoOffset)))} class="w-full h-1 bg-slate-900 rounded appearance-none cursor-pointer accent-sky-400" data-v-8f29de3b><div class="text-[9px] text-slate-500" data-v-8f29de3b> Maksimal offset: ${ssrInterpolate(unref(maxVideoOffset))} detik (panjang asli video: ${ssrInterpolate(unref(videoFileDuration))}s) </div></div><div class="flex flex-col gap-1.5" data-v-8f29de3b><div class="flex items-center justify-between text-[11px]" data-v-8f29de3b><span class="font-bold text-purple-300 flex items-center gap-1" data-v-8f29de3b>`);
1211
1307
  _push(ssrRenderComponent(unref(Music), { class: "w-3 h-3" }, null, _parent));
1212
- _push(` Mulai Musik: ${ssrInterpolate(Math.min(__props.audioStartOffset || 0, unref(maxAudioOffset)))}s / ${ssrInterpolate(unref(audioFileDuration))}s </span><span class="text-[10px] text-slate-500 font-mono"> (Skip intro) </span></div><input type="range" min="0"${ssrRenderAttr("max", unref(maxAudioOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.audioStartOffset || 0, unref(maxAudioOffset)))} class="w-full h-1 bg-slate-900 rounded appearance-none cursor-pointer accent-purple-400"><div class="text-[9px] text-slate-500"> Maksimal offset: ${ssrInterpolate(unref(maxAudioOffset))} detik (panjang asli musik: ${ssrInterpolate(unref(audioFileDuration))}s) </div></div></div>`);
1308
+ _push(` Mulai Musik: ${ssrInterpolate(Math.min(__props.audioStartOffset || 0, unref(maxAudioOffset)))}s / ${ssrInterpolate(unref(audioFileDuration))}s </span><span class="text-[10px] text-slate-500 font-mono" data-v-8f29de3b> (Skip intro) </span></div><input type="range" min="0"${ssrRenderAttr("max", unref(maxAudioOffset))} step="1"${ssrRenderAttr("value", Math.min(__props.audioStartOffset || 0, unref(maxAudioOffset)))} class="w-full h-1 bg-slate-900 rounded appearance-none cursor-pointer accent-purple-400" data-v-8f29de3b><div class="text-[9px] text-slate-500" data-v-8f29de3b> Maksimal offset: ${ssrInterpolate(unref(maxAudioOffset))} detik (panjang asli musik: ${ssrInterpolate(unref(audioFileDuration))}s) </div></div></div>`);
1213
1309
  } else {
1214
1310
  _push(`<!---->`);
1215
1311
  }
@@ -1217,13 +1313,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1217
1313
  } else {
1218
1314
  _push(`<!---->`);
1219
1315
  }
1220
- _push(`<div class="flex flex-col bg-slate-900/90 border border-slate-800 rounded-2xl p-2.5 gap-1.5 shadow-lg flex-shrink-0"><div class="flex items-center justify-between text-xs"><span class="font-extrabold text-slate-300 text-[11px]">VIRAL CAPTION &amp; HASHTAGS</span><button class="inline-flex items-center gap-1.5 px-3 py-1 bg-slate-800 hover:bg-slate-700 text-sky-300 border border-slate-700 rounded-lg transition text-[11px] font-bold">`);
1316
+ _push(`<div class="flex flex-col bg-slate-900/90 border border-slate-800 rounded-2xl p-2.5 gap-1.5 shadow-lg flex-shrink-0" data-v-8f29de3b><div class="flex items-center justify-between text-xs" data-v-8f29de3b><span class="font-extrabold text-slate-300 text-[11px]" data-v-8f29de3b>VIRAL CAPTION &amp; HASHTAGS</span><button class="inline-flex items-center gap-1.5 px-3 py-1 bg-slate-800 hover:bg-slate-700 text-sky-300 border border-slate-700 rounded-lg transition text-[11px] font-bold" data-v-8f29de3b>`);
1221
1317
  if (unref(copied)) {
1222
1318
  _push(ssrRenderComponent(unref(Check), { class: "w-3.5 h-3.5 text-emerald-400" }, null, _parent));
1223
1319
  } else {
1224
1320
  _push(ssrRenderComponent(unref(Copy), { class: "w-3.5 h-3.5" }, null, _parent));
1225
1321
  }
1226
- _push(`<span>${ssrInterpolate(unref(copied) ? "Tersalin!" : "Copy Caption")}</span></button></div><textarea rows="2" class="w-full bg-slate-950 text-slate-200 text-xs p-2 rounded-xl border border-slate-800 focus:outline-none focus:border-sky-500/50 resize-none leading-relaxed font-sans" placeholder="Caption will appear here...">${ssrInterpolate(__props.data.caption)}</textarea></div></div>`);
1322
+ _push(`<span data-v-8f29de3b>${ssrInterpolate(unref(copied) ? "Tersalin!" : "Copy Caption")}</span></button></div><textarea rows="2" class="w-full bg-slate-950 text-slate-200 text-xs p-2 rounded-xl border border-slate-800 focus:outline-none focus:border-sky-500/50 resize-none leading-relaxed font-sans" placeholder="Caption will appear here..." data-v-8f29de3b>${ssrInterpolate(__props.data.caption)}</textarea></div></div>`);
1227
1323
  };
1228
1324
  }
1229
1325
  });
@@ -1233,6 +1329,7 @@ _sfc_main$1.setup = (props, ctx) => {
1233
1329
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/LivePreview.vue");
1234
1330
  return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
1235
1331
  };
1332
+ const __nuxt_component_1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-8f29de3b"]]);
1236
1333
  const ComparisonRowSchema = z.object({
1237
1334
  label: z.string().min(1).max(40),
1238
1335
  left: z.string().min(1).max(35),
@@ -1242,18 +1339,8 @@ const ContentDataSchema = z.object({
1242
1339
  id: z.string().optional().default(() => `post-${Date.now()}`).transform((val) => val || `post-${Date.now()}`),
1243
1340
  templateId: z.string().optional(),
1244
1341
  category: z.string().optional().default("TECH"),
1245
- theme: z.enum([
1246
- "blue-tech",
1247
- "emerald-finance",
1248
- "slate-education",
1249
- "dark-contrast",
1250
- "crimson-alert",
1251
- "amber-gold",
1252
- "cyber-violet",
1253
- "sunset-orange",
1254
- "nordic-frost",
1255
- "monochrome-luxe"
1256
- ]).default("blue-tech"),
1342
+ theme: z.string().optional().default("blue-tech"),
1343
+ accentColor: z.string().optional(),
1257
1344
  layoutType: z.string().default("table"),
1258
1345
  title: z.string().min(1).max(120),
1259
1346
  subtitle: z.string().min(1).max(250),
@@ -1720,8 +1807,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1720
1807
  return (_ctx, _push, _parent, _attrs) => {
1721
1808
  var _a, _b, _c, _d, _e, _f;
1722
1809
  const _component_DashboardControls = _sfc_main$2;
1723
- const _component_LivePreview = _sfc_main$1;
1724
- _push(`<div${ssrRenderAttrs(mergeProps({ class: "h-screen w-screen bg-slate-950 text-slate-100 flex flex-col font-sans selection:bg-sky-500 selection:text-white overflow-hidden" }, _attrs))}><header class="h-14 flex-shrink-0 border-b border-slate-800/80 bg-slate-900/60 backdrop-blur sticky top-0 z-30 px-3 sm:px-6 flex items-center justify-between"><div class="flex items-center gap-2.5 sm:gap-3"><div class="w-8 h-8 rounded-xl bg-gradient-to-tr from-sky-500 via-indigo-600 to-purple-600 flex items-center justify-center font-black text-white shadow-md shadow-sky-500/20 text-xs"> SG </div><div><h1 class="text-sm font-extrabold tracking-tight text-white flex items-center gap-1.5 sm:gap-2"> SocialGen <span class="text-[9px] sm:text-[10px] font-bold px-2 py-0.5 rounded-full bg-slate-800 text-slate-300 border border-slate-700"> v${ssrInterpolate(((_a = unref(systemStatus)) == null ? void 0 : _a.version) || "2.3.7")}</span></h1></div></div><div class="flex items-center gap-2 sm:gap-3 text-xs">`);
1810
+ const _component_LivePreview = __nuxt_component_1;
1811
+ _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.1 Studio")}</span></h1></div></div><div class="flex items-center gap-2 sm:gap-3 text-xs">`);
1725
1812
  if ((_b = unref(systemStatus)) == null ? void 0 : _b.geminiActive) {
1726
1813
  _push(`<span class="px-2.5 py-0.5 sm:py-1 rounded-full bg-emerald-500/10 text-emerald-400 border border-emerald-500/20 font-semibold text-[10px] sm:text-[11px]"> \u25CF AI Connected </span>`);
1727
1814
  } else {
@@ -1753,7 +1840,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1753
1840
  } else {
1754
1841
  _push(`<!---->`);
1755
1842
  }
1756
- _push(`<main class="flex-1 w-full max-w-[1720px] mx-auto p-2 sm:p-4 grid grid-cols-1 lg:grid-cols-12 gap-4 overflow-hidden min-h-0"><section class="${ssrRenderClass([unref(mobileTab) === "editor" ? "flex" : "hidden lg:flex", "lg:col-span-5 h-full overflow-y-auto pr-1 flex-col gap-3 custom-scrollbar"])}">`);
1843
+ _push(`<main class="flex-1 w-full flex flex-col lg:flex-row overflow-hidden min-h-0"><section class="${ssrRenderClass([unref(mobileTab) === "editor" ? "flex flex-col w-full lg:w-auto lg:flex-row lg:overflow-hidden p-2 lg:p-0" : "hidden lg:flex lg:flex-row lg:overflow-hidden", "h-full shrink-0"])}">`);
1757
1844
  _push(ssrRenderComponent(_component_DashboardControls, {
1758
1845
  modelValue: unref(contentData),
1759
1846
  "onUpdate:modelValue": ($event) => isRef(contentData) ? contentData.value = $event : null,
@@ -1781,7 +1868,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1781
1868
  onClearStash: clearUnsavedStash,
1782
1869
  onToast: (msg, type) => showToast(msg, type)
1783
1870
  }, null, _parent));
1784
- _push(`</section><section class="${ssrRenderClass([unref(mobileTab) === "preview" ? "flex" : "hidden lg:flex", "lg:col-span-7 h-full flex-col gap-3 overflow-hidden justify-between min-h-0"])}">`);
1871
+ _push(`</section><section class="${ssrRenderClass([unref(mobileTab) === "preview" ? "flex w-full p-2" : "hidden lg:flex lg:flex-1 lg:p-3", "h-full min-w-0 flex-col justify-between overflow-hidden"])}">`);
1785
1872
  _push(ssrRenderComponent(_component_LivePreview, {
1786
1873
  data: unref(contentData),
1787
1874
  "selected-video": unref(options).backgroundSource,
@@ -1855,4 +1942,4 @@ _sfc_main.setup = (props, ctx) => {
1855
1942
  };
1856
1943
 
1857
1944
  export { _sfc_main as default };
1858
- //# sourceMappingURL=pages-DAxeAK3-.mjs.map
1945
+ //# sourceMappingURL=pages-BZo1uEaJ.mjs.map