@socialgen_user/socialgen 2.2.3 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{DSqU0yO4.js → BS_lCwJp.js} +1 -1
  3. package/.output/public/_nuxt/B_QCHj7R.js +49 -0
  4. package/.output/public/_nuxt/C8kqmepy.js +70 -0
  5. package/.output/public/_nuxt/{WKMfZGq4.js → C9NnnsYM.js} +1 -1
  6. package/.output/public/_nuxt/{BWknYprK.js → CsBHQ8e0.js} +1 -1
  7. package/.output/public/_nuxt/{Kv2_MwzP.js → DZWn8suN.js} +2 -2
  8. package/.output/public/_nuxt/builds/latest.json +1 -1
  9. package/.output/public/_nuxt/builds/meta/fe5a0dcc-cf6c-47e8-9979-1ac007f760a2.json +1 -0
  10. package/.output/public/_nuxt/{Dox8APzp.js → yolJVDpu.js} +1 -1
  11. package/.output/server/chunks/_/content.mjs +161 -0
  12. package/.output/server/chunks/_/content.mjs.map +1 -0
  13. package/.output/server/chunks/_/nitro.mjs +104 -98
  14. package/.output/server/chunks/_/templates.mjs +914 -0
  15. package/.output/server/chunks/_/templates.mjs.map +1 -0
  16. package/.output/server/chunks/build/{TableCard-DK13vKzs.mjs → TableCard-DY4GimWF.mjs} +194 -5
  17. package/.output/server/chunks/build/TableCard-DY4GimWF.mjs.map +1 -0
  18. package/.output/server/chunks/build/{_mode_-CQcOaIv6.mjs → _mode_-BNb4bqRf.mjs} +2 -2
  19. package/.output/server/chunks/build/{_mode_-CQcOaIv6.mjs.map → _mode_-BNb4bqRf.mjs.map} +1 -1
  20. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  21. package/.output/server/chunks/build/entry-styles.g67Z2uYJ.mjs +8 -0
  22. package/.output/server/chunks/build/entry-styles.g67Z2uYJ.mjs.map +1 -0
  23. package/.output/server/chunks/build/{pages-CrBJjQOS.mjs → pages-n3DzfaMn.mjs} +412 -57
  24. package/.output/server/chunks/build/pages-n3DzfaMn.mjs.map +1 -0
  25. package/.output/server/chunks/build/server.mjs +2 -2
  26. package/.output/server/chunks/build/styles.mjs +2 -2
  27. package/.output/server/chunks/build/styles.mjs.map +1 -1
  28. package/.output/server/chunks/routes/api/auto-topic.post.mjs +1 -0
  29. package/.output/server/chunks/routes/api/auto-topic.post.mjs.map +1 -1
  30. package/.output/server/chunks/routes/api/copy-prompt.get.mjs +78 -87
  31. package/.output/server/chunks/routes/api/copy-prompt.get.mjs.map +1 -1
  32. package/.output/server/chunks/routes/api/generate.post.mjs +2 -167
  33. package/.output/server/chunks/routes/api/generate.post.mjs.map +1 -1
  34. package/.output/server/chunks/routes/api/status.get.mjs +12 -3
  35. package/.output/server/chunks/routes/api/status.get.mjs.map +1 -1
  36. package/.output/server/chunks/routes/api/templates.delete.mjs +40 -0
  37. package/.output/server/chunks/routes/api/templates.delete.mjs.map +1 -0
  38. package/.output/server/chunks/routes/api/templates.get.mjs +25 -0
  39. package/.output/server/chunks/routes/api/templates.get.mjs.map +1 -0
  40. package/.output/server/chunks/routes/api/templates.post.mjs +75 -0
  41. package/.output/server/chunks/routes/api/templates.post.mjs.map +1 -0
  42. package/.output/server/package.json +1 -1
  43. package/data/drafts.json +28 -1
  44. package/data/history_generations.json +1 -570
  45. package/data/last_session.json +21 -95
  46. package/data/templates.json +844 -0
  47. package/package.json +1 -1
  48. package/.output/public/_nuxt/B2XY1Y3e.js +0 -1
  49. package/.output/public/_nuxt/DyZhC2-k.js +0 -1
  50. package/.output/public/_nuxt/builds/meta/13e4bb16-9265-4df8-ab2e-2de31ffabf71.json +0 -1
  51. package/.output/server/chunks/build/TableCard-DK13vKzs.mjs.map +0 -1
  52. package/.output/server/chunks/build/entry-styles.CZj0QvL-.mjs +0 -8
  53. package/.output/server/chunks/build/entry-styles.CZj0QvL-.mjs.map +0 -1
  54. package/.output/server/chunks/build/pages-CrBJjQOS.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, watch, computed, mergeProps, unref, isRef, nextTick, useSSRContext } from 'vue';
2
2
  import { ssrRenderAttrs, ssrInterpolate, ssrRenderClass, ssrRenderComponent, ssrRenderAttr, ssrIncludeBooleanAttr, ssrLooseContain, ssrLooseEqual, ssrRenderList, ssrRenderStyle } from 'vue/server-renderer';
3
- import { Settings, X, Check, Edit2, Trash2, FileText, Copy, Wand2, Plus, Globe, Sparkles, Bookmark, Clock, LayoutTemplate, CheckCircle2, AlertCircle, Film, Upload, Scissors, Music, RefreshCw, Play, ZoomOut, ZoomIn, RotateCcw, ShieldAlert, Pause, Volume2, VolumeX, Download, FolderOpen } from 'lucide-vue-next';
4
- import { _ as _sfc_main$3 } from './TableCard-DK13vKzs.mjs';
3
+ import { Settings, X, Check, Edit2, Trash2, FileText, Copy, LayoutTemplate, Plus, Code, Wand2, Globe, Sparkles, Bookmark, Clock, CheckCircle2, AlertCircle, RotateCcw, Film, Upload, Scissors, Music, RefreshCw, Play, ZoomOut, ZoomIn, ShieldAlert, Pause, Volume2, VolumeX, Download, FolderOpen } from 'lucide-vue-next';
4
+ import { _ as _sfc_main$3 } from './TableCard-DY4GimWF.mjs';
5
5
  import { z } from 'zod';
6
6
 
7
7
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
@@ -18,13 +18,17 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
18
18
  drafts: {},
19
19
  activeDraftIndex: {},
20
20
  history: {},
21
- activeHistoryIndex: {}
21
+ activeHistoryIndex: {},
22
+ unsavedStash: {}
22
23
  },
23
- emits: ["update:modelValue", "update:options", "generate", "autoTopic", "selectDraft", "deleteDraft", "saveDraft", "selectHistory", "deleteHistory", "clearAllHistory"],
24
+ emits: ["update:modelValue", "update:options", "generate", "autoTopic", "selectDraft", "deleteDraft", "saveDraft", "selectHistory", "deleteHistory", "clearAllHistory", "restoreStash", "clearStash", "toast"],
24
25
  setup(__props, { emit: __emit }) {
26
+ var _a, _b;
25
27
  const props = __props;
26
28
  const emit = __emit;
27
- const jsonText = ref("");
29
+ const rawJsonInput = ref("");
30
+ const selectedTemplateId = ref(((_a = props.modelValue) == null ? void 0 : _a.templateId) || ((_b = props.modelValue) == null ? void 0 : _b.layoutType) || "table");
31
+ ref(true);
28
32
  const jsonFormatError = ref("");
29
33
  ref("");
30
34
  const selectedModel = ref("gemini-3.8-flash");
@@ -40,6 +44,50 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
40
44
  description: ""
41
45
  });
42
46
  const selectedLanguage = ref("id");
47
+ const DEFAULT_BUILTIN_LIST = [
48
+ { id: "table", name: "\u{1F4CA} Comparison Table", category: "Perbandingan", description: "Tabel komparasi 2 entitas", icon: "Table", layoutType: "table", isBuiltin: true, sampleData: {}, promptDirective: "" },
49
+ { id: "versus", name: "\u2694\uFE0F Versus Showdown Arena", category: "Perbandingan", description: "Duel head-to-head dua kubu", icon: "Swords", layoutType: "versus", isBuiltin: true, sampleData: {}, promptDirective: "" },
50
+ { id: "receipt", name: "\u{1F9FE} Monthly Living Invoice", category: "Finansial", description: "Format slip gaji pengeluaran bulanan", icon: "Receipt", layoutType: "receipt", isBuiltin: true, sampleData: {}, promptDirective: "" },
51
+ { id: "news", name: "\u{1F4F0} Special Report Pamphlet", category: "Jurnalisme", description: "Pamflet investigasi dengan 3 poin kunci", icon: "Newspaper", layoutType: "news", isBuiltin: true, sampleData: {}, promptDirective: "" },
52
+ { id: "stat", name: "\u{1F3AF} Big Shocking Number", category: "Analisis", description: "Fokus pada satu angka kontras raksasa", icon: "Target", layoutType: "stat", isBuiltin: true, sampleData: {}, promptDirective: "" },
53
+ { id: "timeline", name: "\u23F3 10-Year Shift (Then vs Now)", category: "Tren", description: "Pergeseran tren 10 tahun lalu vs sekarang", icon: "Clock", layoutType: "timeline", isBuiltin: true, sampleData: {}, promptDirective: "" },
54
+ { id: "barchart", name: "\u{1F4C8} Income Allocation Bars", category: "Finansial", description: "Distribusi alokasi dana dengan bar chart", icon: "BarChart3", layoutType: "barchart", isBuiltin: true, sampleData: {}, promptDirective: "" },
55
+ { id: "list", name: "\u{1F3C6} Top 5 Ranked List", category: "Peringkat", description: "Ranking 5 teratas dengan kartu metrik", icon: "ListOrdered", layoutType: "list", isBuiltin: true, sampleData: {}, promptDirective: "" },
56
+ { id: "quote", name: "\u{1F4AC} Hot Take / Quote Debate", category: "Opini", description: "Kutipan tajam memicu perdebatan", icon: "Quote", layoutType: "quote", isBuiltin: true, sampleData: {}, promptDirective: "" },
57
+ { id: "leaderboard", name: "\u{1F947} Multi-Country Leaderboard (Top 10)", category: "Peringkat", description: "Peringkat 5-10 negara dengan horizontal bar chart", icon: "Trophy", layoutType: "leaderboard", isBuiltin: true, sampleData: {}, promptDirective: "" },
58
+ { id: "editorial", name: "\u{1F4F0} Editorial Storytelling Deep Dive", category: "Jurnalisme", description: "Format narasi editorial 3 kartu bertahap", icon: "BookOpen", layoutType: "editorial", isBuiltin: true, sampleData: {}, promptDirective: "" },
59
+ { id: "matrix", name: "\u{1F4CA} Multi-Column Matrix (3-4 Negara)", category: "Perbandingan", description: "Tabel matriks komparasi 3-4 negara sekaligus", icon: "Grid", layoutType: "matrix", isBuiltin: true, sampleData: {}, promptDirective: "" },
60
+ { id: "debate", name: "\u26A1 Debate Arena (Pro vs Kontra)", category: "Interaktif", description: "Arena debat dua kubu dengan skor komunitas", icon: "Flame", layoutType: "debate", isBuiltin: true, sampleData: {}, promptDirective: "" },
61
+ { id: "tierlist", name: "\u{1F396}\uFE0F Tier List Ranking (S, A, B, C)", category: "Peringkat", description: "Hierarki tingkatan Tier S, A, B, C", icon: "Layers", layoutType: "tierlist", isBuiltin: true, sampleData: {}, promptDirective: "" },
62
+ { id: "breaking-notifications", name: "\u{1F4F1} Breaking Alert Notification Stack", category: "Berita Viral", description: "Tumpukan 3 kartu notifikasi darurat kaca iOS/Android", icon: "Bell", layoutType: "custom", isBuiltin: true, sampleData: {}, promptDirective: "" }
63
+ ];
64
+ const templatesList = ref(DEFAULT_BUILTIN_LIST);
65
+ const showTemplateModal = ref(false);
66
+ const templateModalTab = ref("list");
67
+ const editingTemplateId = ref(null);
68
+ const templateSearch = ref("");
69
+ const templateFormError = ref("");
70
+ const copiedAiPrompt = ref(false);
71
+ const showAiPasteBox = ref(false);
72
+ const aiImportJsonText = ref("");
73
+ const templateForm = ref({
74
+ id: "",
75
+ name: "",
76
+ category: "Kustom",
77
+ description: "",
78
+ layoutType: "custom",
79
+ customHtml: "",
80
+ customCss: "",
81
+ promptDirective: "",
82
+ sampleJsonText: ""
83
+ });
84
+ const filteredTemplates = computed(() => {
85
+ if (!templateSearch.value.trim()) return templatesList.value;
86
+ const q = templateSearch.value.toLowerCase();
87
+ return templatesList.value.filter(
88
+ (t) => t.name.toLowerCase().includes(q) || t.category.toLowerCase().includes(q) || t.description.toLowerCase().includes(q) || t.layoutType.toLowerCase().includes(q)
89
+ );
90
+ });
43
91
  const showPromptModal = ref(false);
44
92
  const manualPromptText = ref("");
45
93
  const manualPromptMeta = ref({});
@@ -106,19 +154,104 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
106
154
  } catch {
107
155
  }
108
156
  });
157
+ const activeTemplate = computed(() => {
158
+ const tid = (selectedTemplateId.value || "table").trim().toLowerCase();
159
+ return templatesList.value.find((t) => t.id.toLowerCase() === tid || t.layoutType && t.layoutType.toLowerCase() === tid) || templatesList.value[0];
160
+ });
161
+ const parsedJson = computed(() => {
162
+ const text = rawJsonInput.value.trim();
163
+ if (!text) return null;
164
+ try {
165
+ const obj = JSON.parse(text);
166
+ return obj;
167
+ } catch {
168
+ return null;
169
+ }
170
+ });
171
+ const mismatchState = computed(() => {
172
+ var _a2, _b2;
173
+ if (!rawJsonInput.value.trim() || !parsedJson.value) return null;
174
+ const jsonId = (parsedJson.value.templateId || parsedJson.value.layoutType || (templatesList.value.some((t) => {
175
+ var _a3;
176
+ return t.id === ((_a3 = parsedJson.value) == null ? void 0 : _a3.id);
177
+ }) ? (_a2 = parsedJson.value) == null ? void 0 : _a2.id : "") || "").trim().toLowerCase();
178
+ if (!jsonId) return null;
179
+ const currentId = (selectedTemplateId.value || "").trim().toLowerCase();
180
+ const currentLayoutType = (((_b2 = activeTemplate.value) == null ? void 0 : _b2.layoutType) || "").trim().toLowerCase();
181
+ if (jsonId === currentId || jsonId === currentLayoutType) {
182
+ return null;
183
+ }
184
+ const matchedTarget = templatesList.value.find((t) => t.id.toLowerCase() === jsonId || t.layoutType && t.layoutType.toLowerCase() === jsonId);
185
+ return {
186
+ jsonTemplateId: parsedJson.value.templateId || parsedJson.value.layoutType || parsedJson.value.id,
187
+ matchedTarget: matchedTarget || null,
188
+ isKnown: !!matchedTarget
189
+ };
190
+ });
191
+ const activeData = computed(() => {
192
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k;
193
+ if (!rawJsonInput.value.trim()) {
194
+ const sample = ((_a2 = activeTemplate.value) == null ? void 0 : _a2.sampleData) ? JSON.parse(JSON.stringify(activeTemplate.value.sampleData)) : {};
195
+ const tid = ((_b2 = activeTemplate.value) == null ? void 0 : _b2.id) || "table";
196
+ const targetLayout = ((_c = activeTemplate.value) == null ? void 0 : _c.layoutType) === "custom" ? tid : ((_d = activeTemplate.value) == null ? void 0 : _d.layoutType) || tid;
197
+ return {
198
+ ...sample,
199
+ id: sample.id || tid,
200
+ templateId: tid,
201
+ layoutType: targetLayout,
202
+ customHtml: ((_e = activeTemplate.value) == null ? void 0 : _e.customHtml) || void 0,
203
+ customCss: ((_f = activeTemplate.value) == null ? void 0 : _f.customCss) || void 0
204
+ };
205
+ }
206
+ if (parsedJson.value) {
207
+ const tid = ((_g = activeTemplate.value) == null ? void 0 : _g.id) || parsedJson.value.templateId || "table";
208
+ const targetLayout = ((_h = activeTemplate.value) == null ? void 0 : _h.layoutType) === "custom" ? tid : ((_i = activeTemplate.value) == null ? void 0 : _i.layoutType) || tid;
209
+ return {
210
+ ...parsedJson.value,
211
+ templateId: tid,
212
+ layoutType: targetLayout,
213
+ customHtml: ((_j = activeTemplate.value) == null ? void 0 : _j.customHtml) || parsedJson.value.customHtml || void 0,
214
+ customCss: ((_k = activeTemplate.value) == null ? void 0 : _k.customCss) || parsedJson.value.customCss || void 0
215
+ };
216
+ }
217
+ return props.modelValue;
218
+ });
219
+ watch(
220
+ () => activeData.value,
221
+ (val) => {
222
+ emit("update:modelValue", val);
223
+ if (val.theme && val.theme !== props.options.theme) {
224
+ emit("update:options", { ...props.options, theme: val.theme });
225
+ }
226
+ },
227
+ { immediate: true, deep: true }
228
+ );
109
229
  watch(
110
230
  () => props.modelValue,
111
231
  (val) => {
112
- try {
113
- const currentParsed = JSON.parse(jsonText.value || "{}");
114
- if (JSON.stringify(currentParsed) !== JSON.stringify(val)) {
115
- jsonText.value = JSON.stringify(val, null, 2);
232
+ if (!val) return;
233
+ const activeStr = JSON.stringify(activeData.value);
234
+ const valStr = JSON.stringify(val);
235
+ if (activeStr !== valStr) {
236
+ const incomingId = val.templateId || val.layoutType;
237
+ if (incomingId) {
238
+ const matching = templatesList.value.find((t) => t.id.toLowerCase() === incomingId.toLowerCase() || t.layoutType && t.layoutType.toLowerCase() === incomingId.toLowerCase());
239
+ if (matching) {
240
+ selectedTemplateId.value = matching.id;
241
+ }
116
242
  }
117
- } catch {
118
- jsonText.value = JSON.stringify(val, null, 2);
243
+ rawJsonInput.value = JSON.stringify(val, null, 2);
119
244
  }
120
245
  },
121
- { immediate: true, deep: true }
246
+ { deep: true }
247
+ );
248
+ watch(
249
+ () => props.unsavedStash,
250
+ (newStash, oldStash) => {
251
+ if (oldStash && !newStash) {
252
+ activeTab.value = "editor";
253
+ }
254
+ }
122
255
  );
123
256
  function updateOption(key, val) {
124
257
  emit("update:options", { ...props.options, [key]: val });
@@ -133,7 +266,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
133
266
  }
134
267
  }
135
268
  return (_ctx, _push, _parent, _attrs) => {
136
- var _a, _b, _c, _d, _e, _f, _g;
269
+ var _a2, _b2, _c, _d, _e, _f, _g, _h;
137
270
  _push(`<div${ssrRenderAttrs(mergeProps({ class: "flex flex-col gap-3 text-slate-100" }, _attrs))}>`);
138
271
  if (unref(showNicheModal)) {
139
272
  _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">`);
@@ -165,7 +298,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
165
298
  _push(ssrRenderComponent(unref(FileText), { class: "w-4 h-4 text-purple-400" }, null, _parent));
166
299
  _push(` Master Prompt AI (Dynamic Research &amp; Zero-Collision) </h3><p class="text-[11px] text-slate-400 mt-0.5"> Salin prompt ini ke ChatGPT / Gemini / Claude / DeepSeek untuk mencari topik terbaru. </p></div><button class="p-1 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800">`);
167
300
  _push(ssrRenderComponent(unref(X), { class: "w-4 h-4" }, null, _parent));
168
- _push(`</button></div><div class="flex items-center gap-2 bg-slate-950 p-2.5 rounded-xl border border-slate-800 text-[11px] flex-wrap"><span class="font-bold text-sky-400">Niche Aktif:</span><span class="text-white font-semibold">${ssrInterpolate(((_a = unref(nichesList).find((n) => n.id === unref(selectedNicheId))) == null ? void 0 : _a.name) || "Default")}</span><span class="text-slate-500">\u2022</span><span class="font-bold text-emerald-400">Bahasa:</span><span class="text-white font-semibold">${ssrInterpolate(unref(manualPromptMeta).language || "Bahasa Indonesia \u{1F1EE}\u{1F1E9}")}</span><span class="text-slate-500">\u2022</span><span class="text-purple-400 font-bold">${ssrInterpolate(unref(manualPromptMeta).usedCount || 0)} Topik Riwayat Dikecualikan</span></div><div class="relative flex-1 min-h-[220px]"><textarea readonly rows="12" class="w-full h-full bg-slate-950 text-slate-300 font-mono text-[11px] p-3 rounded-xl border border-slate-800 focus:outline-none resize-none leading-relaxed select-all">${ssrInterpolate(unref(manualPromptText))}</textarea></div><div class="flex items-center justify-between pt-2 border-t border-slate-800"><span class="text-[11px] text-slate-400"> Paste hasil JSON yang kamu buat ke kolom <b>RAW JSON</b> SocialGen. </span><button class="px-5 py-2.5 rounded-xl font-bold bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-500 hover:to-indigo-500 text-white shadow-lg flex items-center gap-2 transition">`);
301
+ _push(`</button></div><div class="flex items-center gap-2 bg-slate-950 p-2.5 rounded-xl border border-slate-800 text-[11px] flex-wrap"><span class="font-bold text-sky-400">Niche Aktif:</span><span class="text-white font-semibold">${ssrInterpolate(((_a2 = unref(nichesList).find((n) => n.id === unref(selectedNicheId))) == null ? void 0 : _a2.name) || "Default")}</span><span class="text-slate-500">\u2022</span><span class="font-bold text-amber-400">Template:</span><span class="text-white font-semibold">${ssrInterpolate(unref(manualPromptMeta).template || "Otomatis")}</span><span class="text-slate-500">\u2022</span><span class="font-bold text-emerald-400">Bahasa:</span><span class="text-white font-semibold">${ssrInterpolate(unref(manualPromptMeta).language || "Bahasa Indonesia \u{1F1EE}\u{1F1E9}")}</span><span class="text-slate-500">\u2022</span><span class="text-purple-400 font-bold">${ssrInterpolate(unref(manualPromptMeta).usedCount || 0)} Topik Riwayat Dikecualikan</span></div><div class="relative flex-1 min-h-[220px]"><textarea readonly rows="12" class="w-full h-full bg-slate-950 text-slate-300 font-mono text-[11px] p-3 rounded-xl border border-slate-800 focus:outline-none resize-none leading-relaxed select-all">${ssrInterpolate(unref(manualPromptText))}</textarea></div><div class="flex items-center justify-between pt-2 border-t border-slate-800"><span class="text-[11px] text-slate-400"> Paste hasil JSON yang kamu buat ke kolom <b>RAW JSON</b> SocialGen. </span><button class="px-5 py-2.5 rounded-xl font-bold bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-500 hover:to-indigo-500 text-white shadow-lg flex items-center gap-2 transition">`);
169
302
  if (unref(promptCopied)) {
170
303
  _push(ssrRenderComponent(unref(Check), { class: "w-4 h-4 text-emerald-400" }, null, _parent));
171
304
  } else {
@@ -175,6 +308,102 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
175
308
  } else {
176
309
  _push(`<!---->`);
177
310
  }
311
+ if (unref(showTemplateModal)) {
312
+ _push(`<div class="fixed inset-0 z-50 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4"><div class="bg-slate-900 border border-slate-700 rounded-3xl max-w-2xl w-full p-5 shadow-2xl flex flex-col gap-4 text-xs max-h-[92vh] overflow-hidden"><div class="flex items-center justify-between pb-3 border-b border-slate-800"><div><h3 class="text-sm font-black text-white flex items-center gap-2">`);
313
+ _push(ssrRenderComponent(unref(LayoutTemplate), { class: "w-4 h-4 text-sky-400" }, null, _parent));
314
+ _push(` Kelola Template Visual (Dynamic Template System) </h3><p class="text-[11px] text-slate-400 mt-0.5"> Buat format baru, edit sampel tampilan, dan atur prompt AI spesifik per template. </p></div><button class="p-1 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800">`);
315
+ _push(ssrRenderComponent(unref(X), { class: "w-4 h-4" }, null, _parent));
316
+ _push(`</button></div><div class="flex items-center justify-between bg-slate-950 p-1 rounded-xl border border-slate-800"><div class="flex items-center gap-1"><button class="${ssrRenderClass([unref(templateModalTab) === "list" ? "bg-slate-800 text-sky-400 shadow" : "text-slate-400 hover:text-white", "px-3 py-1 rounded-lg transition font-bold text-xs"])}"> Daftar Template (${ssrInterpolate(unref(templatesList).length)}) </button><button class="${ssrRenderClass([unref(templateModalTab) === "form" && !unref(editingTemplateId) ? "bg-slate-800 text-emerald-400 shadow" : "text-slate-400 hover:text-white", "px-3 py-1 rounded-lg transition font-bold text-xs flex items-center gap-1"])}">`);
317
+ _push(ssrRenderComponent(unref(Plus), { class: "w-3.5 h-3.5" }, null, _parent));
318
+ _push(`<span>Buat Template Baru</span></button>`);
319
+ if (unref(editingTemplateId) && unref(templateModalTab) === "form") {
320
+ _push(`<span class="px-2.5 py-0.5 rounded-lg bg-amber-500/20 text-amber-300 border border-amber-500/40 text-[10px] font-bold flex items-center gap-1">`);
321
+ _push(ssrRenderComponent(unref(Edit2), { class: "w-3 h-3" }, null, _parent));
322
+ _push(`<span>Sedang Edit Template</span></span>`);
323
+ } else {
324
+ _push(`<!---->`);
325
+ }
326
+ _push(`</div>`);
327
+ if (unref(templateModalTab) === "list") {
328
+ _push(`<input${ssrRenderAttr("value", unref(templateSearch))} type="text" placeholder="Cari template..." class="bg-slate-900 border border-slate-800 rounded-lg px-2 py-0.5 text-[11px] text-white focus:outline-none focus:border-sky-500 w-36">`);
329
+ } else {
330
+ _push(`<!---->`);
331
+ }
332
+ _push(`</div>`);
333
+ if (unref(templateModalTab) === "list") {
334
+ _push(`<div class="flex-1 overflow-y-auto pr-1 flex flex-col gap-2.5 custom-scrollbar min-h-[300px]">`);
335
+ if (unref(filteredTemplates).length === 0) {
336
+ _push(`<div class="text-center py-12 text-slate-500 text-xs"> Tidak ada template yang cocok dengan pencarian &quot;${ssrInterpolate(unref(templateSearch))}&quot;. </div>`);
337
+ } else {
338
+ _push(`<!---->`);
339
+ }
340
+ _push(`<!--[-->`);
341
+ ssrRenderList(unref(filteredTemplates), (tpl) => {
342
+ _push(`<div class="p-3 rounded-2xl border bg-slate-950 border-slate-800/80 hover:border-slate-700 transition flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 group"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 mb-1 flex-wrap"><span class="font-extrabold text-white text-xs">${ssrInterpolate(tpl.name)}</span><span class="px-1.5 py-0.2 rounded text-[9px] font-bold bg-sky-950 text-sky-300 border border-sky-800">${ssrInterpolate(tpl.category)}</span><span class="${ssrRenderClass([tpl.isBuiltin ? "bg-slate-800 text-slate-400 border border-slate-700" : "bg-purple-950 text-purple-300 border border-purple-800", "px-1.5 py-0.2 rounded text-[8px] font-bold uppercase tracking-wider"])}">${ssrInterpolate(tpl.isBuiltin ? "Bawaan" : "\u2B50 Kustom")}</span><span class="text-[9px] text-slate-500 font-mono"> layout: ${ssrInterpolate(tpl.layoutType)}</span></div><p class="text-[11px] text-slate-400 leading-snug line-clamp-2">${ssrInterpolate(tpl.description || "Tidak ada deskripsi.")}</p></div><div class="flex items-center gap-1.5 flex-shrink-0 self-end sm:self-center"><button class="px-2.5 py-1 rounded-xl bg-sky-600/20 hover:bg-sky-600/40 text-sky-300 border border-sky-500/40 font-bold text-[10px] transition flex items-center gap-1" title="Pilih dan gunakan format template ini">`);
343
+ _push(ssrRenderComponent(unref(Check), { class: "w-3 h-3" }, null, _parent));
344
+ _push(`<span>Pilih Format</span></button><button class="p-1.5 rounded-lg text-slate-400 hover:text-sky-300 hover:bg-slate-800 transition" title="Duplikasi sebagai template kustom baru">`);
345
+ _push(ssrRenderComponent(unref(Copy), { class: "w-3.5 h-3.5" }, null, _parent));
346
+ _push(`</button>`);
347
+ if (!tpl.isBuiltin) {
348
+ _push(`<button class="p-1.5 rounded-lg text-slate-400 hover:text-amber-300 hover:bg-slate-800 transition" title="Edit template kustom">`);
349
+ _push(ssrRenderComponent(unref(Edit2), { class: "w-3.5 h-3.5" }, null, _parent));
350
+ _push(`</button>`);
351
+ } else {
352
+ _push(`<!---->`);
353
+ }
354
+ if (!tpl.isBuiltin) {
355
+ _push(`<button class="p-1.5 rounded-lg text-slate-400 hover:text-rose-400 hover:bg-slate-800 transition" title="Hapus template kustom">`);
356
+ _push(ssrRenderComponent(unref(Trash2), { class: "w-3.5 h-3.5" }, null, _parent));
357
+ _push(`</button>`);
358
+ } else {
359
+ _push(`<!---->`);
360
+ }
361
+ _push(`</div></div>`);
362
+ });
363
+ _push(`<!--]--></div>`);
364
+ } else {
365
+ _push(`<div class="flex-1 overflow-y-auto pr-1 flex flex-col gap-3 custom-scrollbar min-h-[350px]">`);
366
+ if (unref(templateFormError)) {
367
+ _push(`<div class="p-2 rounded-xl bg-rose-950/60 border border-rose-500/50 text-rose-300 text-[11px] font-semibold">${ssrInterpolate(unref(templateFormError))}</div>`);
368
+ } else {
369
+ _push(`<!---->`);
370
+ }
371
+ if (unref(editingTemplateId)) {
372
+ _push(`<div class="p-2.5 rounded-2xl bg-amber-950/60 border border-amber-500/50 text-amber-200 text-xs flex items-center justify-between shadow-lg"><div class="flex items-center gap-2 min-w-0"><div class="p-1 rounded-lg bg-amber-500/20 text-amber-400 shrink-0">`);
373
+ _push(ssrRenderComponent(unref(Edit2), { class: "w-4 h-4" }, null, _parent));
374
+ _push(`</div><div class="min-w-0"><div class="font-extrabold text-white text-xs flex items-center gap-1.5 truncate"><span>Sedang Mengedit:</span><span class="text-amber-300 truncate">${ssrInterpolate(unref(templateForm).name)}</span></div><div class="text-[10px] text-amber-400/80">ID: ${ssrInterpolate(unref(templateForm).id)} \u2022 Perubahan akan memperbarui template yang tersimpan</div></div></div><button type="button" class="px-2.5 py-1 rounded-xl bg-slate-900 hover:bg-slate-800 text-slate-200 border border-slate-700 text-[10px] font-bold transition flex items-center gap-1 shrink-0 ml-2">`);
375
+ _push(ssrRenderComponent(unref(Plus), { class: "w-3 h-3" }, null, _parent));
376
+ _push(`<span>Beralih ke Buat Baru</span></button></div>`);
377
+ } else {
378
+ _push(`<!---->`);
379
+ }
380
+ _push(`<div class="p-3 rounded-2xl bg-gradient-to-r from-sky-950/60 via-indigo-950/40 to-slate-900 border border-sky-500/30 flex flex-col gap-2.5"><div class="flex flex-col sm:flex-row sm:items-center justify-between gap-2"><div class="flex items-center gap-2"><span class="text-xl">\u{1F916}</span><div><h4 class="text-xs font-black text-white">Buat Template Otomatis dari Screenshot / Gambar</h4><p class="text-[10px] text-slate-400">Punya referensi gambar desain? Salin prompt AI dan kirim bersama screenshot ke ChatGPT / Claude / Gemini.</p></div></div><div class="flex items-center gap-1.5 shrink-0"><button type="button" class="${ssrRenderClass([unref(copiedAiPrompt) ? "bg-emerald-600 text-white" : "bg-sky-600 hover:bg-sky-500 text-white", "px-2.5 py-1.5 rounded-xl text-xs font-bold transition flex items-center gap-1.5 shadow"])}">`);
381
+ _push(ssrRenderComponent(unref(Copy), { class: "w-3.5 h-3.5" }, null, _parent));
382
+ _push(`<span>${ssrInterpolate(unref(copiedAiPrompt) ? "\u2713 Prompt Tersalin!" : "Salin Prompt Bantuan AI")}</span></button><button type="button" class="px-2.5 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-bold transition flex items-center gap-1"><span>\u{1F4E5} Tempel JSON dari AI</span></button></div></div>`);
383
+ if (unref(showAiPasteBox)) {
384
+ _push(`<div class="mt-1 flex flex-col gap-2 p-2.5 rounded-xl bg-slate-950/90 border border-sky-500/40"><label class="text-[10px] font-bold text-sky-400">Tempelkan respon JSON dari AI di sini:</label><textarea rows="4" placeholder="Tempelkan respon JSON dari AI di sini (contoh: { &quot;name&quot;: &quot;...&quot;, &quot;layoutType&quot;: &quot;custom&quot;, &quot;customHtml&quot;: &quot;...&quot;, &quot;sampleData&quot;: {...} })..." class="w-full bg-slate-900 border border-slate-700 rounded-lg p-2 text-xs text-sky-200 font-mono focus:outline-none focus:border-sky-500">${ssrInterpolate(unref(aiImportJsonText))}</textarea><div class="flex justify-end gap-2"><button type="button" class="px-2.5 py-1 rounded-lg text-[10px] font-bold text-slate-400 hover:text-white"> Tutup </button><button type="button" class="px-3 py-1 rounded-lg bg-emerald-600 hover:bg-emerald-500 text-white text-[10px] font-bold shadow"> Terapkan ke Form Otomatis </button></div></div>`);
385
+ } else {
386
+ _push(`<!---->`);
387
+ }
388
+ _push(`</div><div class="grid grid-cols-1 sm:grid-cols-3 gap-2.5"><div><label class="block text-[10px] font-bold text-slate-400 mb-1">ID Template (Slug Unik)</label><input${ssrRenderAttr("value", unref(templateForm).id)}${ssrIncludeBooleanAttr(Boolean(unref(editingTemplateId))) ? " disabled" : ""} type="text" placeholder="misal: tech-radar, crypto-card" class="w-full bg-slate-950 border border-slate-800 rounded-xl px-2.5 py-1.5 text-xs text-white focus:outline-none focus:border-sky-500 disabled:opacity-50"></div><div><label class="block text-[10px] font-bold text-slate-400 mb-1">Nama Template</label><input${ssrRenderAttr("value", unref(templateForm).name)} type="text" placeholder="misal: \u26A1 Tech Radar 2026" class="w-full bg-slate-950 border border-slate-800 rounded-xl px-2.5 py-1.5 text-xs text-white focus:outline-none focus:border-sky-500"></div><div><label class="block text-[10px] font-bold text-slate-400 mb-1">Kategori</label><input${ssrRenderAttr("value", unref(templateForm).category)} type="text" placeholder="misal: Perbandingan, Peringkat, Finansial" class="w-full bg-slate-950 border border-slate-800 rounded-xl px-2.5 py-1.5 text-xs text-white focus:outline-none focus:border-sky-500"></div></div><div class="grid grid-cols-1 sm:grid-cols-2 gap-2.5"><div><label class="block text-[10px] font-bold text-slate-400 mb-1">Base Layout Visual Engine</label><select${ssrRenderAttr("value", unref(templateForm).layoutType)} class="w-full bg-slate-950 border border-slate-800 rounded-xl px-2.5 py-1.5 text-xs text-sky-300 font-semibold focus:outline-none focus:border-sky-500"><option value="custom">\u{1F3A8} Custom HTML &amp; CSS (Bebas / Desain Sendiri)</option><option value="table">\u{1F4CA} Comparison Table</option><option value="versus">\u2694\uFE0F Versus Showdown Arena</option><option value="receipt">\u{1F9FE} Monthly Living Invoice</option><option value="news">\u{1F4F0} Special Report Pamphlet</option><option value="stat">\u{1F3AF} Big Shocking Number</option><option value="timeline">\u23F3 10-Year Shift (Then vs Now)</option><option value="barchart">\u{1F4C8} Income Allocation Bars</option><option value="list">\u{1F3C6} Top 5 Ranked List</option><option value="quote">\u{1F4AC} Hot Take / Quote Debate</option><option value="leaderboard">\u{1F947} Multi-Country Leaderboard (Top 10)</option><option value="editorial">\u{1F4F0} Editorial Storytelling Deep Dive</option><option value="matrix">\u{1F4CA} Multi-Column Matrix (3-4 Negara)</option><option value="debate">\u26A1 Debate Arena (Pro vs Kontra)</option><option value="tierlist">\u{1F396}\uFE0F Tier List Ranking (S, A, B, C)</option></select></div><div><label class="block text-[10px] font-bold text-slate-400 mb-1">Deskripsi Ringkas</label><input${ssrRenderAttr("value", unref(templateForm).description)} type="text" placeholder="Jelaskan kegunaan format tampilan template ini..." class="w-full bg-slate-950 border border-slate-800 rounded-xl px-2.5 py-1.5 text-xs text-white focus:outline-none focus:border-sky-500"></div></div>`);
389
+ if (unref(templateForm).layoutType === "custom") {
390
+ _push(`<div class="flex flex-col gap-2.5 p-3 rounded-2xl bg-slate-950/80 border border-sky-500/30"><div class="flex items-center justify-between"><span class="text-[11px] font-black text-sky-400 flex items-center gap-1">`);
391
+ _push(ssrRenderComponent(unref(Code), { class: "w-3.5 h-3.5" }, null, _parent));
392
+ _push(` Template Engine HTML &amp; Styling CSS </span><span class="text-[10px] text-slate-400 font-mono">Gunakan {{ data.title }} &amp; {{#each data.items}}</span></div><div><label class="block text-[10px] font-bold text-slate-400 mb-1">HTML Template (Tailwind utility classes didukung penuh)</label><textarea rows="6" placeholder="&lt;div class=&quot;p-6 rounded-2xl bg-slate-900/90 border border-slate-700 text-center&quot;&gt;
393
+ &lt;h2 class=&quot;text-3xl font-black text-white&quot;&gt;{{ data.title }}&lt;/h2&gt;
394
+ &lt;p class=&quot;text-slate-300&quot;&gt;{{ data.subtitle }}&lt;/p&gt;
395
+ &lt;/div&gt;" class="w-full bg-slate-900 border border-slate-800 rounded-xl p-2.5 text-xs text-sky-300 font-mono leading-relaxed focus:outline-none focus:border-sky-500">${ssrInterpolate(unref(templateForm).customHtml)}</textarea></div><div><label class="block text-[10px] font-bold text-slate-400 mb-1">Custom CSS (Opsional - animasi, gradien unik, glassmorphism)</label><textarea rows="3" placeholder=".my-custom-card { backdrop-filter: blur(16px); }" class="w-full bg-slate-900 border border-slate-800 rounded-xl p-2.5 text-xs text-emerald-300 font-mono leading-relaxed focus:outline-none focus:border-emerald-500">${ssrInterpolate(unref(templateForm).customCss)}</textarea></div></div>`);
396
+ } else {
397
+ _push(`<!---->`);
398
+ }
399
+ _push(`<div><label class="block text-[10px] font-bold text-slate-400 mb-1">AI Prompt Directive (Aturan Khusus Generator)</label><textarea rows="3" placeholder="Instruksi spesifik untuk AI Gemini / ChatGPT saat meriset konten dengan template ini..." class="w-full bg-slate-950 border border-slate-800 rounded-xl p-2.5 text-xs text-slate-200 focus:outline-none focus:border-sky-500 font-mono leading-relaxed">${ssrInterpolate(unref(templateForm).promptDirective)}</textarea></div><div><div class="flex items-center justify-between mb-1"><label class="text-[10px] font-bold text-slate-400">Sampel Data JSON (Pristine Default Tampilan)</label><span class="text-[10px] text-slate-500">Akan langsung ditampilkan di Live Preview</span></div><textarea rows="7" class="w-full bg-slate-950 border border-slate-800 rounded-xl p-2.5 text-xs text-sky-200 focus:outline-none focus:border-sky-500 font-mono leading-relaxed select-all">${ssrInterpolate(unref(templateForm).sampleJsonText)}</textarea></div><div class="flex items-center justify-end gap-2 pt-2 border-t border-slate-800"><button class="px-3.5 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 font-bold text-xs transition"> Batal </button><button class="px-5 py-1.5 rounded-xl bg-gradient-to-r from-emerald-600 to-teal-600 hover:from-emerald-500 hover:to-teal-500 text-white font-bold text-xs shadow-lg transition flex items-center gap-1.5">`);
400
+ _push(ssrRenderComponent(unref(Check), { class: "w-3.5 h-3.5" }, null, _parent));
401
+ _push(`<span>${ssrInterpolate(unref(editingTemplateId) ? "Perbarui Template" : "Simpan Template")}</span></button></div></div>`);
402
+ }
403
+ _push(`</div></div>`);
404
+ } else {
405
+ _push(`<!---->`);
406
+ }
178
407
  _push(`<div class="flex flex-wrap items-center justify-between gap-2.5 p-3.5 bg-slate-900/90 border border-slate-800 rounded-2xl shadow-lg"><div><h2 class="text-xs font-black text-white flex items-center gap-2">`);
179
408
  _push(ssrRenderComponent(unref(Wand2), { class: "w-3.5 h-3.5 text-sky-400" }, null, _parent));
180
409
  _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"><!--[-->`);
@@ -191,7 +420,17 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
191
420
  _push(ssrRenderComponent(unref(Sparkles), {
192
421
  class: ["w-3.5 h-3.5", { "animate-spin": __props.isAutoTopicLoading }]
193
422
  }, null, _parent));
194
- _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-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 class="border-t border-slate-800 my-1"></div><div class="px-3 py-1 text-[10px] font-bold text-slate-500 uppercase">Pilih Format Khusus</div><button class="px-3 py-1.5 text-left text-sky-300 hover:bg-slate-800"> \u{1F4CA} Classic Comparison Table </button><button class="px-3 py-1.5 text-left text-orange-300 hover:bg-slate-800"> \u2694\uFE0F Versus Showdown Arena </button><button class="px-3 py-1.5 text-left text-teal-300 hover:bg-slate-800"> \u{1F9FE} Monthly Living Invoice </button><button class="px-3 py-1.5 text-left text-rose-300 hover:bg-slate-800"> \u{1F4F0} Breaking News / Pamphlet </button><button class="px-3 py-1.5 text-left text-amber-300 hover:bg-slate-800"> \u{1F3AF} Big Shocking Number </button><button class="px-3 py-1.5 text-left text-yellow-300 hover:bg-slate-800"> \u23F3 10-Year Shift (Then vs Now) </button><button class="px-3 py-1.5 text-left text-cyan-300 hover:bg-slate-800"> \u{1F4C8} Income Allocation Bars </button><button class="px-3 py-1.5 text-left text-emerald-300 hover:bg-slate-800"> \u{1F3C6} Top 5 Ranked Countdown </button><button class="px-3 py-1.5 text-left text-purple-300 hover:bg-slate-800"> \u{1F4AC} Hot Take / Quote Debate </button><button class="px-3 py-1.5 text-left text-yellow-400 hover:bg-slate-800 font-bold"> \u{1F947} Multi-Country Leaderboard (Top 10) </button><button class="px-3 py-1.5 text-left text-sky-400 hover:bg-slate-800 font-bold"> \u{1F4F0} Editorial Storytelling Deep Dive </button><button class="px-3 py-1.5 text-left text-teal-300 hover:bg-slate-800 font-bold"> \u{1F4CA} Multi-Column Matrix (3-4 Negara) </button><button class="px-3 py-1.5 text-left text-rose-400 hover:bg-slate-800 font-bold"> \u26A1 Debate Arena (Pro vs Kontra) </button><button class="px-3 py-1.5 text-left text-amber-300 hover:bg-slate-800 font-bold"> \u{1F396}\uFE0F Tier List Ranking (S, A, B, C) </button></div></div></div></div>`);
423
+ _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"><!--[-->`);
424
+ ssrRenderList(unref(templatesList), (tpl) => {
425
+ _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>`);
426
+ if (!tpl.isBuiltin) {
427
+ _push(`<span class="text-[8px] px-1 py-0.2 rounded bg-purple-500/20 text-purple-300 ml-1">Kustom</span>`);
428
+ } else {
429
+ _push(`<!---->`);
430
+ }
431
+ _push(`</button>`);
432
+ });
433
+ _push(`<!--]--></div></div></div></div></div>`);
195
434
  if (__props.isAutoTopicLoading) {
196
435
  _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">`);
197
436
  _push(ssrRenderComponent(unref(Sparkles), { class: "w-3.5 h-3.5 text-sky-400 animate-spin" }, null, _parent));
@@ -204,6 +443,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
204
443
  _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">`);
205
444
  _push(ssrRenderComponent(unref(Clock), { class: "w-3 h-3" }, null, _parent));
206
445
  _push(`<span>Riwayat (${ssrInterpolate(__props.history.length)})</span></button></div><div class="flex items-center gap-1.5">`);
446
+ if (__props.unsavedStash) {
447
+ _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>`);
448
+ } else {
449
+ _push(`<!---->`);
450
+ }
207
451
  if (unref(activeTab) === "history" && __props.history.length > 0) {
208
452
  _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>`);
209
453
  } else {
@@ -213,7 +457,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
213
457
  _push(ssrRenderComponent(unref(Bookmark), { class: "w-3 h-3" }, null, _parent));
214
458
  _push(`<span>+ Simpan ke Draft</span></button></div></div>`);
215
459
  if (unref(activeTab) === "drafts") {
216
- _push(`<div class="flex flex-col gap-1.5 p-2.5 bg-slate-900/90 border border-slate-800 rounded-2xl max-h-[300px] overflow-y-auto custom-scrollbar">`);
460
+ _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">`);
461
+ if (__props.unsavedStash) {
462
+ _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>`);
463
+ } else {
464
+ _push(`<!---->`);
465
+ }
217
466
  if (__props.drafts.length === 0) {
218
467
  _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>`);
219
468
  } else {
@@ -221,13 +470,18 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
221
470
  }
222
471
  _push(`<!--[-->`);
223
472
  ssrRenderList(__props.drafts, (draft, dIdx) => {
224
- _push(`<div 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">`);
473
+ _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">`);
225
474
  _push(ssrRenderComponent(unref(Trash2), { class: "w-3.5 h-3.5" }, null, _parent));
226
475
  _push(`</button></div>`);
227
476
  });
228
477
  _push(`<!--]--></div>`);
229
478
  } else if (unref(activeTab) === "history") {
230
- _push(`<div class="flex flex-col gap-1.5 p-2.5 bg-slate-900/90 border border-slate-800 rounded-2xl max-h-[300px] overflow-y-auto custom-scrollbar">`);
479
+ _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">`);
480
+ if (__props.unsavedStash) {
481
+ _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>`);
482
+ } else {
483
+ _push(`<!---->`);
484
+ }
231
485
  if (__props.history.length === 0) {
232
486
  _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>`);
233
487
  } else {
@@ -235,7 +489,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
235
489
  }
236
490
  _push(`<!--[-->`);
237
491
  ssrRenderList(__props.history, (item, hIdx) => {
238
- _push(`<div 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>`);
492
+ _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>`);
239
493
  if (item.generatedAt) {
240
494
  _push(`<span class="text-[9px] text-slate-500 font-mono ml-auto">${ssrInterpolate(formatDate(item.generatedAt))}</span>`);
241
495
  } else {
@@ -247,19 +501,45 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
247
501
  });
248
502
  _push(`<!--]--></div>`);
249
503
  } else {
250
- _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><label class="block text-[10px] font-bold text-slate-300 mb-1 flex items-center gap-1">`);
504
+ _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">`);
251
505
  _push(ssrRenderComponent(unref(LayoutTemplate), { class: "w-3 h-3 text-sky-400" }, null, _parent));
252
- _push(` Format Template </label><select${ssrRenderAttr("value", __props.modelValue.layoutType || "table")} 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="table">\u{1F4CA} Comparison Table</option><option value="versus">\u2694\uFE0F Versus Showdown Arena</option><option value="receipt">\u{1F9FE} Monthly Living Invoice</option><option value="news">\u{1F4F0} Special Report Pamphlet</option><option value="stat">\u{1F3AF} Big Shocking Number</option><option value="timeline">\u23F3 10-Year Shift (Then vs Now)</option><option value="barchart">\u{1F4C8} Income Allocation Bars</option><option value="list">\u{1F3C6} Top 5 Ranked List</option><option value="quote">\u{1F4AC} Hot Take / Quote Debate</option><option value="leaderboard">\u{1F947} Multi-Country Leaderboard (Top 10)</option><option value="editorial">\u{1F4F0} Editorial Storytelling Deep Dive</option><option value="matrix">\u{1F4CA} Multi-Column Matrix (3-4 Negara)</option><option value="debate">\u26A1 Debate Arena (Pro vs Kontra)</option><option value="tierlist">\u{1F396}\uFE0F Tier List Ranking (S, A, B, C)</option></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>`);
253
- if (__props.isValid && !unref(jsonFormatError)) {
506
+ _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">`);
507
+ _push(ssrRenderComponent(unref(Settings), { class: "w-3 h-3" }, null, _parent));
508
+ _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]"><!--[-->`);
509
+ ssrRenderList(unref(templatesList), (t) => {
510
+ _push(`<option${ssrRenderAttr("value", t.id)}>${ssrInterpolate(t.name)} ${ssrInterpolate(t.isBuiltin ? "" : "\u2B50 (Kustom)")}</option>`);
511
+ });
512
+ _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>`);
513
+ if (!unref(jsonFormatError)) {
254
514
  _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">`);
255
515
  _push(ssrRenderComponent(unref(CheckCircle2), { class: "w-2.5 h-2.5" }, null, _parent));
256
- _push(` Valid </span>`);
516
+ _push(` ${ssrInterpolate(unref(rawJsonInput).trim() ? "Valid" : "Sample Mode")}</span>`);
257
517
  } else {
258
518
  _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">`);
259
519
  _push(ssrRenderComponent(unref(AlertCircle), { class: "w-2.5 h-2.5" }, null, _parent));
260
520
  _push(` Invalid </span>`);
261
521
  }
262
- _push(`</div><button class="text-[10px] text-slate-400 hover:text-sky-400 transition"> Format JSON </button></div><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...">${ssrInterpolate(unref(jsonText))}</textarea>`);
522
+ _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">`);
523
+ _push(ssrRenderComponent(unref(RotateCcw), { class: "w-2.5 h-2.5" }, null, _parent));
524
+ _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>`);
525
+ if (unref(mismatchState)) {
526
+ _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>`);
527
+ if (unref(mismatchState).isKnown) {
528
+ _push(`<span> JSON ini dibuat untuk template <b class="underline">${ssrInterpolate((_b2 = unref(mismatchState).matchedTarget) == null ? void 0 : _b2.name)}</b> (<span class="font-mono text-[10px]">${ssrInterpolate(unref(mismatchState).jsonTemplateId)}</span>) </span>`);
529
+ } else {
530
+ _push(`<span> Template dengan ID &quot;<span class="font-mono text-[10px]">${ssrInterpolate(unref(mismatchState).jsonTemplateId)}</span>&quot; tidak ditemukan di sistem. </span>`);
531
+ }
532
+ _push(`</div><div class="flex items-center gap-1.5 shrink-0">`);
533
+ if (unref(mismatchState).isKnown && unref(mismatchState).matchedTarget) {
534
+ _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>`);
535
+ } else {
536
+ _push(`<!---->`);
537
+ }
538
+ _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>`);
539
+ } else {
540
+ _push(`<!---->`);
541
+ }
542
+ _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>`);
263
543
  if (unref(jsonFormatError) || __props.validationError) {
264
544
  _push(`<p class="text-[10px] text-rose-400 mt-1 px-1"> \u26A0\uFE0F ${ssrInterpolate(unref(jsonFormatError) || __props.validationError)}</p>`);
265
545
  } else {
@@ -293,7 +573,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
293
573
  ssrRenderList([7, 10, 15, 30, 60], (d) => {
294
574
  _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>`);
295
575
  });
296
- _push(`<!--]--></div></div><div class="grid grid-cols-3 gap-2 pt-1.5 border-t border-slate-800"><label class="${ssrRenderClass([((_b = __props.options.outputs) == null ? void 0 : _b.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(((_c = __props.options.outputs) == null ? void 0 : _c.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([((_d = __props.options.outputs) == null ? void 0 : _d.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(((_e = __props.options.outputs) == null ? void 0 : _e.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([((_f = __props.options.outputs) == null ? void 0 : _f.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(((_g = __props.options.outputs) == null ? void 0 : _g.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([[
576
+ _push(`<!--]--></div></div><div class="grid grid-cols-3 gap-2 pt-1.5 border-t border-slate-800"><label class="${ssrRenderClass([((_c = __props.options.outputs) == null ? void 0 : _c.feed) !== false ? "bg-sky-500/10 border-sky-500/40 text-sky-200" : "bg-slate-950/50 border-slate-800 text-slate-500", "flex items-center gap-1.5 p-1.5 rounded-xl border text-[11px] cursor-pointer transition select-none"])}"><input type="checkbox"${ssrIncludeBooleanAttr(((_d = __props.options.outputs) == null ? void 0 : _d.feed) !== false) ? " checked" : ""} class="rounded text-sky-500 focus:ring-0 bg-slate-900 border-slate-700 w-3 h-3"><span class="font-bold">Feed 4:5</span></label><label class="${ssrRenderClass([((_e = __props.options.outputs) == null ? void 0 : _e.story) !== false ? "bg-indigo-500/10 border-indigo-500/40 text-indigo-200" : "bg-slate-950/50 border-slate-800 text-slate-500", "flex items-center gap-1.5 p-1.5 rounded-xl border text-[11px] cursor-pointer transition select-none"])}"><input type="checkbox"${ssrIncludeBooleanAttr(((_f = __props.options.outputs) == null ? void 0 : _f.story) !== false) ? " checked" : ""} class="rounded text-indigo-500 focus:ring-0 bg-slate-900 border-slate-700 w-3 h-3"><span class="font-bold">Story 9:16</span></label><label class="${ssrRenderClass([((_g = __props.options.outputs) == null ? void 0 : _g.reels) !== false ? "bg-emerald-500/10 border-emerald-500/40 text-emerald-200" : "bg-slate-950/50 border-slate-800 text-slate-500", "flex items-center gap-1.5 p-1.5 rounded-xl border text-[11px] cursor-pointer transition select-none"])}"><input type="checkbox"${ssrIncludeBooleanAttr(((_h = __props.options.outputs) == null ? void 0 : _h.reels) !== false) ? " checked" : ""} class="rounded text-emerald-500 focus:ring-0 bg-slate-900 border-slate-700 w-3 h-3"><span class="font-bold">Reels MP4</span></label></div></div><button${ssrIncludeBooleanAttr(!__props.isValid || __props.isGenerating || !!unref(jsonFormatError)) ? " disabled" : ""} class="${ssrRenderClass([[
297
577
  !__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]"
298
578
  ], "w-full py-3 px-4 rounded-xl font-black text-xs tracking-wide shadow-xl transition flex items-center justify-center gap-2"])}">`);
299
579
  if (__props.isGenerating) {
@@ -589,7 +869,8 @@ const ComparisonRowSchema = z.object({
589
869
  right: z.string().min(1).max(35)
590
870
  });
591
871
  const ContentDataSchema = z.object({
592
- id: z.string().min(1),
872
+ id: z.string().optional().default(() => `post-${Date.now()}`).transform((val) => val || `post-${Date.now()}`),
873
+ templateId: z.string().optional(),
593
874
  category: z.string().optional().default("TECH"),
594
875
  theme: z.enum([
595
876
  "blue-tech",
@@ -603,22 +884,7 @@ const ContentDataSchema = z.object({
603
884
  "nordic-frost",
604
885
  "monochrome-luxe"
605
886
  ]).default("blue-tech"),
606
- layoutType: z.enum([
607
- "table",
608
- "news",
609
- "stat",
610
- "list",
611
- "quote",
612
- "versus",
613
- "receipt",
614
- "timeline",
615
- "barchart",
616
- "leaderboard",
617
- "editorial",
618
- "matrix",
619
- "debate",
620
- "tierlist"
621
- ]).default("table"),
887
+ layoutType: z.string().default("table"),
622
888
  title: z.string().min(1).max(120),
623
889
  subtitle: z.string().min(1).max(250),
624
890
  // Table layout fields (optional if other layouts)
@@ -742,6 +1008,11 @@ const ContentDataSchema = z.object({
742
1008
  desc: z.string().optional()
743
1009
  }))
744
1010
  })).optional().default([]),
1011
+ // True Dynamic Template Custom HTML & CSS fields
1012
+ customHtml: z.string().optional(),
1013
+ customCss: z.string().optional(),
1014
+ customFields: z.record(z.any()).optional(),
1015
+ items: z.array(z.any()).optional(),
745
1016
  footerNote: z.string().optional().default("Industry Benchmark 2026"),
746
1017
  watermark: z.string().optional().default("@SocialGen"),
747
1018
  bgKeyword: z.string().optional().default("modern office coding night"),
@@ -812,6 +1083,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
812
1083
  });
813
1084
  const drafts = ref([]);
814
1085
  const activeDraftIndex = ref(-1);
1086
+ const unsavedStash = ref(null);
1087
+ function stashCurrentWorkingCopy(targetData) {
1088
+ if (!contentData.value || !contentData.value.title) return;
1089
+ if (unsavedStash.value) {
1090
+ return;
1091
+ }
1092
+ const currentStr = JSON.stringify(contentData.value);
1093
+ const targetStr = targetData ? JSON.stringify(targetData) : "";
1094
+ if (currentStr !== targetStr) {
1095
+ unsavedStash.value = JSON.parse(currentStr);
1096
+ try {
1097
+ localStorage.setItem("sg_unsaved_stash", currentStr);
1098
+ } catch {
1099
+ }
1100
+ }
1101
+ }
1102
+ function restoreUnsavedStash() {
1103
+ if (!unsavedStash.value) return;
1104
+ const restoredTitle = unsavedStash.value.title || "Editan Anda";
1105
+ contentData.value = JSON.parse(JSON.stringify(unsavedStash.value));
1106
+ if (unsavedStash.value.theme) {
1107
+ options.value.theme = unsavedStash.value.theme;
1108
+ }
1109
+ unsavedStash.value = null;
1110
+ activeDraftIndex.value = -1;
1111
+ activeHistoryIndex.value = -1;
1112
+ try {
1113
+ localStorage.removeItem("sg_unsaved_stash");
1114
+ } catch {
1115
+ }
1116
+ showToast(`Editan sebelumnya ("${restoredTitle.slice(0, 24)}...") berhasil dikembalikan! \u21A9\uFE0F`, "success");
1117
+ }
1118
+ function clearUnsavedStash() {
1119
+ unsavedStash.value = null;
1120
+ try {
1121
+ localStorage.removeItem("sg_unsaved_stash");
1122
+ } catch {
1123
+ }
1124
+ }
815
1125
  function saveDraftsToStorage() {
816
1126
  try {
817
1127
  localStorage.setItem("sg_drafts", JSON.stringify(drafts.value));
@@ -831,12 +1141,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
831
1141
  showToast("Draft berhasil disimpan!");
832
1142
  }
833
1143
  function handleSelectDraft(index) {
834
- if (drafts.value[index]) {
835
- contentData.value = JSON.parse(JSON.stringify(drafts.value[index]));
836
- options.value.theme = contentData.value.theme;
1144
+ const item = drafts.value[index];
1145
+ if (item) {
1146
+ stashCurrentWorkingCopy(item);
1147
+ contentData.value = JSON.parse(JSON.stringify(item));
1148
+ if (item.theme) options.value.theme = item.theme;
837
1149
  activeDraftIndex.value = index;
838
1150
  activeHistoryIndex.value = -1;
839
- showToast(`Memuat draft #${index + 1}`);
1151
+ const hasStash = !!unsavedStash.value;
1152
+ showToast(
1153
+ `Memuat draft #${index + 1}: "${(item.title || "Untitled").slice(0, 20)}..."`,
1154
+ "success",
1155
+ hasStash ? { label: "\u21A9\uFE0F Kembalikan Editan", onClick: restoreUnsavedStash } : void 0
1156
+ );
840
1157
  }
841
1158
  }
842
1159
  function handleDeleteDraft(index) {
@@ -863,13 +1180,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
863
1180
  function handleSelectHistory(index) {
864
1181
  const item = generationHistory.value[index];
865
1182
  if (item) {
866
- contentData.value = JSON.parse(JSON.stringify(item.contentData || item));
1183
+ const targetData = item.contentData || item;
1184
+ stashCurrentWorkingCopy(targetData);
1185
+ contentData.value = JSON.parse(JSON.stringify(targetData));
867
1186
  if (item.options) {
868
1187
  options.value = { ...options.value, ...item.options };
869
1188
  }
870
1189
  activeHistoryIndex.value = index;
871
1190
  activeDraftIndex.value = -1;
872
- showToast(`Memuat riwayat: "${item.title.slice(0, 24)}..."`);
1191
+ const hasStash = !!unsavedStash.value;
1192
+ showToast(
1193
+ `Memuat riwayat: "${(item.title || "Untitled").slice(0, 24)}..."`,
1194
+ "success",
1195
+ hasStash ? { label: "\u21A9\uFE0F Kembalikan Editan", onClick: restoreUnsavedStash } : void 0
1196
+ );
873
1197
  }
874
1198
  }
875
1199
  function handleDeleteHistory(index) {
@@ -927,12 +1251,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
927
1251
  };
928
1252
  }
929
1253
  });
930
- function showToast(msg, type = "success") {
1254
+ const toastAction = ref(null);
1255
+ let toastTimer = null;
1256
+ function showToast(msg, type = "success", action) {
1257
+ clearTimeout(toastTimer);
931
1258
  toastMessage.value = msg;
932
1259
  toastType.value = type;
933
- setTimeout(() => {
1260
+ toastAction.value = action || null;
1261
+ toastTimer = setTimeout(() => {
934
1262
  toastMessage.value = "";
935
- }, 4e3);
1263
+ toastAction.value = null;
1264
+ }, action ? 7e3 : 4e3);
936
1265
  }
937
1266
  async function handleAutoTopic(niche, layoutType, model, language) {
938
1267
  var _a;
@@ -944,15 +1273,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
944
1273
  body: { niche, layoutType, model, language }
945
1274
  });
946
1275
  if (res == null ? void 0 : res.dataset) {
1276
+ stashCurrentWorkingCopy(res.dataset);
947
1277
  contentData.value = res.dataset;
948
1278
  options.value.theme = res.dataset.theme;
949
1279
  drafts.value.unshift(res.dataset);
950
1280
  activeDraftIndex.value = 0;
951
1281
  saveDraftsToStorage();
1282
+ const hasStash = !!unsavedStash.value;
952
1283
  if (res.source === "gemini") {
953
- showToast(`\u2728 [${res.modelUsed || "Gemini"}] Berhasil meriset: "${res.dataset.title.slice(0, 32)}..."`, "success");
1284
+ showToast(
1285
+ `\u2728 [${res.modelUsed || "Gemini"}] Berhasil meriset: "${res.dataset.title.slice(0, 32)}..."`,
1286
+ "success",
1287
+ hasStash ? { label: "\u21A9\uFE0F Kembalikan Editan", onClick: restoreUnsavedStash } : void 0
1288
+ );
954
1289
  } else {
955
- showToast(`\u2139\uFE0F [Curated Data] Topik siap: "${res.dataset.title.slice(0, 32)}..."`, "success");
1290
+ showToast(
1291
+ `\u2139\uFE0F [Curated Data] Topik siap: "${res.dataset.title.slice(0, 32)}..."`,
1292
+ "success",
1293
+ hasStash ? { label: "\u21A9\uFE0F Kembalikan Editan", onClick: restoreUnsavedStash } : void 0
1294
+ );
956
1295
  }
957
1296
  }
958
1297
  } catch (err) {
@@ -1008,7 +1347,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1008
1347
  var _a, _b;
1009
1348
  const _component_DashboardControls = _sfc_main$2;
1010
1349
  const _component_LivePreview = _sfc_main$1;
1011
- _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.1.1")}</span></h1></div></div><div class="flex items-center gap-2 sm:gap-3 text-xs">`);
1350
+ _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.0")}</span></h1></div></div><div class="flex items-center gap-2 sm:gap-3 text-xs">`);
1012
1351
  if ((_b = unref(systemStatus)) == null ? void 0 : _b.geminiActive) {
1013
1352
  _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>`);
1014
1353
  } else {
@@ -1022,7 +1361,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1022
1361
  }
1023
1362
  _push(`</button></div></div>`);
1024
1363
  if (unref(toastMessage)) {
1025
- _push(`<div class="${ssrRenderClass([unref(toastType) === "success" ? "bg-emerald-950 text-emerald-200 border-emerald-500/50" : "bg-rose-950 text-rose-200 border-rose-500/50", "fixed bottom-6 right-6 z-50 flex items-center gap-2 px-4 py-3 rounded-2xl shadow-2xl text-xs font-bold border transition-all animate-bounce"])}"><span>${ssrInterpolate(unref(toastMessage))}</span></div>`);
1364
+ _push(`<div class="${ssrRenderClass([unref(toastType) === "success" ? "bg-slate-900 text-slate-100 border-sky-500/50 shadow-sky-950/50" : "bg-rose-950 text-rose-200 border-rose-500/50", "fixed bottom-6 right-6 z-50 flex items-center gap-3 px-4 py-3 rounded-2xl shadow-2xl text-xs font-bold border transition-all"])}"><div class="flex items-center gap-2">`);
1365
+ if (unref(toastType) === "success") {
1366
+ _push(`<span class="text-emerald-400">\u25CF</span>`);
1367
+ } else {
1368
+ _push(`<span class="text-rose-400">\u26A0\uFE0F</span>`);
1369
+ }
1370
+ _push(`<span>${ssrInterpolate(unref(toastMessage))}</span></div>`);
1371
+ if (unref(toastAction)) {
1372
+ _push(`<button class="px-2.5 py-1 bg-sky-500 hover:bg-sky-400 text-white font-extrabold rounded-lg shadow transition text-[11px] flex items-center gap-1 active:scale-95">${ssrInterpolate(unref(toastAction).label)}</button>`);
1373
+ } else {
1374
+ _push(`<!---->`);
1375
+ }
1376
+ _push(`<button class="text-slate-400 hover:text-white transition ml-1 text-xs"> \u2715 </button></div>`);
1026
1377
  } else {
1027
1378
  _push(`<!---->`);
1028
1379
  }
@@ -1041,6 +1392,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1041
1392
  "active-draft-index": unref(activeDraftIndex),
1042
1393
  history: unref(generationHistory),
1043
1394
  "active-history-index": unref(activeHistoryIndex),
1395
+ "unsaved-stash": unref(unsavedStash),
1044
1396
  onGenerate: handleGenerate,
1045
1397
  onAutoTopic: handleAutoTopic,
1046
1398
  onSelectDraft: handleSelectDraft,
@@ -1048,7 +1400,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1048
1400
  onSaveDraft: handleSaveCurrentDraft,
1049
1401
  onSelectHistory: handleSelectHistory,
1050
1402
  onDeleteHistory: handleDeleteHistory,
1051
- onClearAllHistory: handleClearAllHistory
1403
+ onClearAllHistory: handleClearAllHistory,
1404
+ onRestoreStash: restoreUnsavedStash,
1405
+ onClearStash: clearUnsavedStash,
1406
+ onToast: (msg, type) => showToast(msg, type)
1052
1407
  }, null, _parent));
1053
1408
  _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"])}">`);
1054
1409
  _push(ssrRenderComponent(_component_LivePreview, {
@@ -1079,4 +1434,4 @@ _sfc_main.setup = (props, ctx) => {
1079
1434
  };
1080
1435
 
1081
1436
  export { _sfc_main as default };
1082
- //# sourceMappingURL=pages-CrBJjQOS.mjs.map
1437
+ //# sourceMappingURL=pages-n3DzfaMn.mjs.map