@seed-ship/mcp-ui-solid 4.2.0 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/README.md +38 -0
- package/dist/components/ScratchpadPanel.cjs +327 -249
- package/dist/components/ScratchpadPanel.cjs.map +1 -1
- package/dist/components/ScratchpadPanel.js +327 -249
- package/dist/components/ScratchpadPanel.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ScratchpadPanel.tsx +86 -4
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -13,7 +13,7 @@ const AgentHandoff = require("./AgentHandoff.cjs");
|
|
|
13
13
|
const BriefingDiff = require("./BriefingDiff.cjs");
|
|
14
14
|
var _tmpl$ = /* @__PURE__ */ web.template(`<svg fill=none viewBox="0 0 24 24"stroke=currentColor><path stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M19 9l-7 7-7-7">`), _tmpl$2 = /* @__PURE__ */ web.template(`<button class="p-1 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors"aria-label=Close><svg class="w-4 h-4"fill=none viewBox="0 0 24 24"stroke=currentColor><path stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M6 18L18 6M6 6l12 12">`), _tmpl$3 = /* @__PURE__ */ web.template(`<div class="px-4 py-2 border-b border-gray-100 dark:border-gray-700 flex flex-wrap items-center gap-1.5">`), _tmpl$4 = /* @__PURE__ */ web.template(`<div class="px-4 py-3 border-t border-gray-100 dark:border-gray-700 space-y-2">`), _tmpl$5 = /* @__PURE__ */ web.template(`<div class="flex flex-col items-center gap-2 py-4 text-center"><span class=text-2xl>🔍</span><p class="text-sm text-gray-500 dark:text-gray-400">No results for these filters</p><button type=button class="px-3 py-1.5 text-xs font-medium text-blue-600 dark:text-blue-400 hover:bg-blue-50 dark:hover:bg-blue-900/20 rounded-lg transition-colors">Modify filters`), _tmpl$6 = /* @__PURE__ */ web.template(`<div class="px-4 py-3 border-t border-gray-100 dark:border-gray-700">`), _tmpl$7 = /* @__PURE__ */ web.template(`<p class="text-xs text-red-500 dark:text-red-500 mt-0.5">Code: <!$><!/>`), _tmpl$8 = /* @__PURE__ */ web.template(`<button type=button class="px-3 py-1.5 text-sm font-medium rounded-lg bg-red-600 text-white hover:bg-red-700 transition-colors flex items-center gap-1">🔄 Retry`), _tmpl$9 = /* @__PURE__ */ web.template(`<button type=button class="px-3 py-1.5 text-sm font-medium rounded-lg border border-gray-200 dark:border-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors">Close`), _tmpl$0 = /* @__PURE__ */ web.template(`<div class="px-4 py-3 border-t border-red-100 dark:border-red-900/30 bg-red-50 dark:bg-red-900/10"><div class="flex items-start gap-2 text-sm text-red-700 dark:text-red-400"><span class="flex-shrink-0 mt-0.5">⚠️</span><div class=flex-1><p class=font-medium></p><!$><!/></div></div><div class="flex gap-2 mt-2"><!$><!/><!$><!/>`), _tmpl$1 = /* @__PURE__ */ web.template(`<div class="px-4 py-3 border-t border-gray-100 dark:border-gray-700"><button type=button class="w-full px-4 py-2.5 text-sm font-semibold rounded-lg text-white bg-blue-600 hover:bg-blue-700 transition-colors flex items-center justify-center gap-2"><svg class="w-4 h-4"fill=none viewBox="0 0 24 24"stroke=currentColor><path stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>Search`), _tmpl$10 = /* @__PURE__ */ web.template(`<div style=overflow-y:auto><!$><!/><div class="divide-y divide-gray-100 dark:divide-gray-700"></div><!$><!/><!$><!/><!$><!/><!$><!/>`), _tmpl$11 = /* @__PURE__ */ web.template(`<div class="absolute bottom-1 right-1 px-2 py-1 text-[9px] font-mono bg-black/80 text-green-400 rounded z-50 pointer-events-none"><!$><!/> | ev:<!$><!/> | sec:<!$><!/> | <!$><!/> | last:<!$><!/>`), _tmpl$12 = /* @__PURE__ */ web.template(`<div style="animation:scratchpad-slide-down 0.2s ease-out"><div><div class="flex items-center gap-2"><span class=text-base>📝</span><h3 class="text-sm font-semibold text-gray-900 dark:text-white"></h3><!$><!/><!$><!/></div><div class="flex items-center gap-2"><span></span><!$><!/></div></div><!$><!/><style>
|
|
15
15
|
@keyframes scratchpad-slide-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
|
|
16
|
-
</style><!$><!/>`), _tmpl$13 = /* @__PURE__ */ web.template(`<svg class="w-3 h-3 text-gray-300 dark:text-gray-600 flex-shrink-0"fill=none viewBox="0 0 24 24"stroke=currentColor><path stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M9 5l7 7-7 7">`), _tmpl$14 = /* @__PURE__ */ web.template(`<span class="ml-1 font-normal opacity-75">— <!$><!/>`), _tmpl$15 = /* @__PURE__ */ web.template(`<span><!$><!/> <!$><!/><!$><!/>`), _tmpl$16 = /* @__PURE__ */ web.template(`<div><span class="flex-shrink-0 mt-0.5"></span><p>`), _tmpl$17 = /* @__PURE__ */ web.template(`<div class="flex items-center gap-2 mb-2"><span class="text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wide">Preview</span><span class="px-1.5 py-0.5 text-xs font-bold bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 rounded">`), _tmpl$18 = /* @__PURE__ */ web.template(`<p class="text-sm text-gray-700 dark:text-gray-300">`), _tmpl$19 = /* @__PURE__ */ web.template(`<div class="mt-2 overflow-x-auto"><table class="min-w-full text-xs"><thead><tr></tr></thead><tbody>`), _tmpl$20 = /* @__PURE__ */ web.template(`<th class="px-2 py-1 text-left font-medium text-gray-500 dark:text-gray-400">`), _tmpl$21 = /* @__PURE__ */ web.template(`<tr class="border-t border-gray-100 dark:border-gray-700">`), _tmpl$22 = /* @__PURE__ */ web.template(`<td class="px-2 py-1 text-gray-700 dark:text-gray-300">`), _tmpl$23 = /* @__PURE__ */ web.template(`<pre class="text-xs text-gray-500 overflow-auto">`), _tmpl$24 = /* @__PURE__ */ web.template(`<div class="px-4 py-3 animate-[slideDown_0.2s_ease-out]"><h4 class="text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wide mb-2"></h4><!$><!/>`), _tmpl$25 = /* @__PURE__ */ web.template(`<div class=space-y-1>`), _tmpl$26 = /* @__PURE__ */ web.template(`<div class="flex gap-2 text-xs"><span class="text-gray-500 dark:text-gray-400 font-mono min-w-[120px]"><!$><!/>:</span><span class="text-gray-900 dark:text-white">`), _tmpl$27 = /* @__PURE__ */ web.template(`<p class="text-xs text-gray-400 italic">No filters`), _tmpl$28 = /* @__PURE__ */ web.template(`<div class="flex flex-wrap gap-1.5"><!$><!/><!$><!/>`), _tmpl$29 = /* @__PURE__ */ web.template(`<button type=button class="ml-0.5 hover:text-blue-900 dark:hover:text-blue-100">×`), _tmpl$30 = /* @__PURE__ */ web.template(`<span class="inline-flex items-center gap-1 px-2.5 py-1 text-xs font-medium bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 rounded-full"><button type=button class=hover:underline><span class="text-blue-500 dark:text-blue-400"><!$><!/>:</span> <!$><!/></button><!$><!/>`), _tmpl$31 = /* @__PURE__ */ web.template(`<div class="max-h-48 overflow-y-auto">`), _tmpl$32 = /* @__PURE__ */ web.template(`<button type=button class="mt-1 w-full px-2 py-1 text-xs text-gray-500 hover:text-gray-700 text-center">Cancel`), _tmpl$33 = /* @__PURE__ */ web.template(`<div class="absolute z-50 mt-1 left-0 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-600 rounded-lg shadow-lg p-2 min-w-[200px]">`), _tmpl$34 = /* @__PURE__ */ web.template(`<div class=relative><!$><!/><!$><!/>`), _tmpl$35 = /* @__PURE__ */ web.template(`<button type=button class="inline-flex items-center gap-1 px-2.5 py-1 text-xs font-medium border border-dashed border-gray-300 dark:border-gray-600 text-gray-500 dark:text-gray-400 rounded-full hover:border-blue-400 hover:text-blue-500 transition-colors">+ <!$><!/>`), _tmpl$36 = /* @__PURE__ */ web.template(`<form class="flex gap-1"><input type=text autofocus class="flex-1 px-2 py-1 text-sm border border-gray-200 dark:border-gray-600 rounded bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:border-blue-400 outline-none"><button type=submit class="px-2 py-1 text-xs bg-blue-600 text-white rounded hover:bg-blue-700">OK</button><button type=button class="px-2 py-1 text-xs text-gray-500 hover:text-gray-700">Cancel`), _tmpl$37 = /* @__PURE__ */ web.template(`<span class=ml-1>✓`), _tmpl$38 = /* @__PURE__ */ web.template(`<button type=button><!$><!/><!$><!/>`), _tmpl$39 = /* @__PURE__ */ web.template(`<form class="flex flex-col gap-3"><!$><!/><div class="flex justify-end"><button type=submit class="px-4 py-2 text-sm font-medium rounded-lg text-white bg-blue-600 hover:bg-blue-700 transition-colors">`), _tmpl$40 = /* @__PURE__ */ web.template(`<div class="flex justify-end"><button type=button class="px-3 py-1.5 text-sm font-medium text-blue-600 dark:text-blue-400 hover:bg-blue-50 dark:hover:bg-blue-900/20 rounded-lg transition-colors flex items-center gap-1">Next <svg class="w-3.5 h-3.5"fill=none viewBox="0 0 24 24"stroke=currentColor><path stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M9 5l7 7-7 7">`), _tmpl$41 = /* @__PURE__ */ web.template(`<div class=space-y-3><!$><!/><!$><!/>`), _tmpl$42 = /* @__PURE__ */ web.template(`<span class="text-xs font-normal text-gray-500 dark:text-gray-400">— <!$><!/>`), _tmpl$43 = /* @__PURE__ */ web.template(`<div class="mt-2 ml-6">`), _tmpl$44 = /* @__PURE__ */ web.template(`<div><div><span></span><!$><!/><!$><!/></div><!$><!/>`), _tmpl$45 = /* @__PURE__ */ web.template(`<p class="text-sm font-medium text-gray-800 dark:text-gray-200 mb-2">`), _tmpl$46 = /* @__PURE__ */ web.template(`<span class=text-amber-600>(<!$><!/> unverified)`), _tmpl$47 = /* @__PURE__ */ web.template(`<div class="mb-2 flex items-center gap-2 text-xs"><span><!$><!/>% verified</span><!$><!/>`), _tmpl$48 = /* @__PURE__ */ web.template(`<div><!$><!/><!$><!/><!$><!/><div class="flex flex-wrap gap-2">`), _tmpl$49 = /* @__PURE__ */ web.template(`<span class="font-medium text-gray-800 dark:text-gray-200">`), _tmpl$50 = /* @__PURE__ */ web.template(`<span class=ml-1>— <!$><!/>`), _tmpl$51 = /* @__PURE__ */ web.template(`<div class="mb-2 p-2 rounded bg-gray-50 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 text-xs text-gray-600 dark:text-gray-400"><!$><!/><!$><!/>`), _tmpl$52 = /* @__PURE__ */ web.template(`<span class=mr-1>`), _tmpl$53 = /* @__PURE__ */ web.template(`<div class=space-y-2><div class=space-y-1.5></div><!$><!/>`), _tmpl$54 = /* @__PURE__ */ web.template(`<div class="flex items-center gap-2 text-sm"><span></span><span class="text-gray-900 dark:text-white">`), _tmpl$55 = /* @__PURE__ */ web.template(`<div class="flex items-start gap-1.5 text-xs text-amber-600 dark:text-amber-400"><span class=flex-shrink-0>⚠️</span><span>`), _tmpl$56 = /* @__PURE__ */ web.template(`<span class=italic>— <!$><!/>`), _tmpl$57 = /* @__PURE__ */ web.template(`<div class="flex items-center gap-2 text-xs text-gray-500 dark:text-gray-400"><span><!$><!/> <!$><!/></span><!$><!/>`), _tmpl$58 = /* @__PURE__ */ web.template(`<div class="flex flex-wrap gap-2">`), _tmpl$59 = /* @__PURE__ */ web.template(`<div class="flex gap-1"><input type=text class="flex-1 px-3 py-2 text-sm border border-gray-200 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:border-blue-400 outline-none"><button type=button class="px-3 py-2 text-sm bg-blue-600 text-white rounded-lg hover:bg-blue-700">Send`), _tmpl$60 = /* @__PURE__ */ web.template(`<div class=space-y-3><p class="text-sm text-gray-700 dark:text-gray-300"></p><!$><!/><!$><!/>`), _tmpl$61 = /* @__PURE__ */ web.template(`<span>`), _tmpl$62 = /* @__PURE__ */ web.template(`<p class="text-xs text-gray-500 dark:text-gray-400 italic">"<!$><!/>"`), _tmpl$63 = /* @__PURE__ */ web.template(`<div class="mt-2 px-3 py-2 bg-blue-50 dark:bg-blue-900/10 rounded-lg text-sm text-blue-700 dark:text-blue-300"><span class=font-medium>Plan:</span> <!$><!/>`), _tmpl$64 = /* @__PURE__ */ web.template(`<button type=button class="text-xs text-blue-600 dark:text-blue-400 hover:underline flex items-center gap-1">✎ Modify`), _tmpl$65 = /* @__PURE__ */ web.template(`<div class=space-y-2><!$><!/><div class=space-y-1></div><!$><!/><!$><!/>`), _tmpl$66 = /* @__PURE__ */ web.template(`<div class="flex gap-2 text-sm"><span class="text-gray-500 dark:text-gray-400 font-medium min-w-[80px]"><!$><!/>:</span><span class="text-gray-900 dark:text-white">`), _tmpl$67 = /* @__PURE__ */ web.template(`<div class="flex items-center gap-1 flex-wrap">`), _tmpl$68 = /* @__PURE__ */ web.template(`<div class=space-y-2>`), _tmpl$69 = /* @__PURE__ */ web.template(`<span class="ml-1 text-xs text-gray-500 dark:text-gray-400">— <!$><!/>`), _tmpl$70 = /* @__PURE__ */ web.template(`<span class="ml-1 text-xs text-gray-400">(<!$><!/>ms)`), _tmpl$71 = /* @__PURE__ */ web.template(`<div><span class=flex-shrink-0></span><div><span></span><!$><!/><!$><!/>`), _tmpl$72 = /* @__PURE__ */ web.template(`<span class="text-[10px] opacity-75">`), _tmpl$73 = /* @__PURE__ */ web.template(`<div><span></span><span></span><!$><!/>`), _tmpl$74 = /* @__PURE__ */ web.template(`<button type=button>🔄 <!$><!/>`), _tmpl$75 = /* @__PURE__ */ web.template(`<button type=button class="px-2 py-1 text-xs opacity-70 hover:opacity-100">▶ Details`), _tmpl$76 = /* @__PURE__ */ web.template(`<pre class="mt-2 text-xs opacity-70 overflow-x-auto">`), _tmpl$77 = /* @__PURE__ */ web.template(`<div><div class="flex items-start gap-2"><span class=flex-shrink-0></span><div class=flex-1><p></p><div class="flex gap-2 mt-2"><!$><!/><!$><!/></div><!$><!/>`), _tmpl$78 = /* @__PURE__ */ web.template(`<span class="text-xs font-bold text-blue-600 dark:text-blue-400"><!$><!/> results`), _tmpl$79 = /* @__PURE__ */ web.template(`<p class="text-[10px] text-gray-400">`), _tmpl$80 = /* @__PURE__ */ web.template(`<div class="rounded-lg border border-gray-200 dark:border-gray-700 px-3 py-2"><div class="flex items-center justify-between mb-1.5"><span class="text-sm font-medium text-gray-900 dark:text-white"><!$><!/> <!$><!/></span><!$><!/></div><div class="flex flex-wrap gap-1.5 mb-1"></div><!$><!/>`), _tmpl$81 = /* @__PURE__ */ web.template(`<span><!$><!/> <!$><!/>`), _tmpl$82 = /* @__PURE__ */ web.template(`<div class=overflow-x-auto><table class="min-w-full text-xs"><thead><tr><th class="px-2 py-1 text-left text-gray-500 dark:text-gray-400"></th><th class="px-2 py-1 text-left font-medium text-blue-600 dark:text-blue-400"></th><th class="px-2 py-1 text-left font-medium text-purple-600 dark:text-purple-400"></th></tr></thead><tbody>`), _tmpl$83 = /* @__PURE__ */ web.template(`<tr><td class="px-2 py-1 font-mono text-gray-500 dark:text-gray-400"></td><td class="px-2 py-1 text-gray-900 dark:text-white"></td><td class="px-2 py-1 text-gray-900 dark:text-white">`);
|
|
16
|
+
</style><!$><!/>`), _tmpl$13 = /* @__PURE__ */ web.template(`<svg class="w-3 h-3 text-gray-300 dark:text-gray-600 flex-shrink-0"fill=none viewBox="0 0 24 24"stroke=currentColor><path stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M9 5l7 7-7 7">`), _tmpl$14 = /* @__PURE__ */ web.template(`<span class="ml-1 font-normal opacity-75">— <!$><!/>`), _tmpl$15 = /* @__PURE__ */ web.template(`<span><!$><!/> <!$><!/><!$><!/>`), _tmpl$16 = /* @__PURE__ */ web.template(`<div><span class="flex-shrink-0 mt-0.5"></span><p>`), _tmpl$17 = /* @__PURE__ */ web.template(`<div class="flex items-center gap-2 mb-2"><span class="text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wide">Preview</span><span class="px-1.5 py-0.5 text-xs font-bold bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 rounded">`), _tmpl$18 = /* @__PURE__ */ web.template(`<p class="text-sm text-gray-700 dark:text-gray-300">`), _tmpl$19 = /* @__PURE__ */ web.template(`<div class="mt-2 overflow-x-auto"><table class="min-w-full text-xs"><thead><tr></tr></thead><tbody>`), _tmpl$20 = /* @__PURE__ */ web.template(`<th class="px-2 py-1 text-left font-medium text-gray-500 dark:text-gray-400">`), _tmpl$21 = /* @__PURE__ */ web.template(`<tr class="border-t border-gray-100 dark:border-gray-700">`), _tmpl$22 = /* @__PURE__ */ web.template(`<td class="px-2 py-1 text-gray-700 dark:text-gray-300">`), _tmpl$23 = /* @__PURE__ */ web.template(`<pre class="text-xs text-gray-500 overflow-auto">`), _tmpl$24 = /* @__PURE__ */ web.template(`<div class="px-4 py-3 animate-[slideDown_0.2s_ease-out]"><h4 class="text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wide mb-2"></h4><!$><!/>`), _tmpl$25 = /* @__PURE__ */ web.template(`<div class=space-y-1>`), _tmpl$26 = /* @__PURE__ */ web.template(`<div class="flex gap-2 text-xs"><span class="text-gray-500 dark:text-gray-400 font-mono min-w-[120px]"><!$><!/>:</span><span class="text-gray-900 dark:text-white">`), _tmpl$27 = /* @__PURE__ */ web.template(`<p class="text-xs text-gray-400 italic">No filters`), _tmpl$28 = /* @__PURE__ */ web.template(`<div class="flex flex-wrap gap-1.5"><!$><!/><!$><!/>`), _tmpl$29 = /* @__PURE__ */ web.template(`<button type=button class="ml-0.5 hover:text-blue-900 dark:hover:text-blue-100">×`), _tmpl$30 = /* @__PURE__ */ web.template(`<span class="inline-flex items-center gap-1 px-2.5 py-1 text-xs font-medium bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300 rounded-full"><button type=button class=hover:underline><span class="text-blue-500 dark:text-blue-400"><!$><!/>:</span> <!$><!/></button><!$><!/>`), _tmpl$31 = /* @__PURE__ */ web.template(`<div class="max-h-48 overflow-y-auto">`), _tmpl$32 = /* @__PURE__ */ web.template(`<button type=button class="mt-1 w-full px-2 py-1 text-xs text-gray-500 hover:text-gray-700 text-center">Cancel`), _tmpl$33 = /* @__PURE__ */ web.template(`<div class="absolute z-50 mt-1 left-0 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-600 rounded-lg shadow-lg p-2 min-w-[200px]">`), _tmpl$34 = /* @__PURE__ */ web.template(`<div class=relative><!$><!/><!$><!/>`), _tmpl$35 = /* @__PURE__ */ web.template(`<button type=button class="inline-flex items-center gap-1 px-2.5 py-1 text-xs font-medium border border-dashed border-gray-300 dark:border-gray-600 text-gray-500 dark:text-gray-400 rounded-full hover:border-blue-400 hover:text-blue-500 transition-colors">+ <!$><!/>`), _tmpl$36 = /* @__PURE__ */ web.template(`<form class="flex gap-1"><input type=text autofocus class="flex-1 px-2 py-1 text-sm border border-gray-200 dark:border-gray-600 rounded bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:border-blue-400 outline-none"><button type=submit class="px-2 py-1 text-xs bg-blue-600 text-white rounded hover:bg-blue-700">OK</button><button type=button class="px-2 py-1 text-xs text-gray-500 hover:text-gray-700">Cancel`), _tmpl$37 = /* @__PURE__ */ web.template(`<span class=ml-1>✓`), _tmpl$38 = /* @__PURE__ */ web.template(`<button type=button><!$><!/><!$><!/>`), _tmpl$39 = /* @__PURE__ */ web.template(`<div class="flex items-center gap-3 p-2 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-md text-sm"><span class="text-blue-700 dark:text-blue-300"><!$><!/> in <!$><!/>s...</span><button type=button class="text-blue-600 dark:text-blue-400 underline hover:text-blue-800 dark:hover:text-blue-200">Cancel`), _tmpl$40 = /* @__PURE__ */ web.template(`<form class="flex flex-col gap-3"><!$><!/><!$><!/><div class="flex justify-end"><button type=submit class="px-4 py-2 text-sm font-medium rounded-lg text-white bg-blue-600 hover:bg-blue-700 transition-colors">`), _tmpl$41 = /* @__PURE__ */ web.template(`<div class="flex justify-end"><button type=button class="px-3 py-1.5 text-sm font-medium text-blue-600 dark:text-blue-400 hover:bg-blue-50 dark:hover:bg-blue-900/20 rounded-lg transition-colors flex items-center gap-1">Next <svg class="w-3.5 h-3.5"fill=none viewBox="0 0 24 24"stroke=currentColor><path stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M9 5l7 7-7 7">`), _tmpl$42 = /* @__PURE__ */ web.template(`<div class=space-y-3><!$><!/><!$><!/>`), _tmpl$43 = /* @__PURE__ */ web.template(`<span class="text-xs font-normal text-gray-500 dark:text-gray-400">— <!$><!/>`), _tmpl$44 = /* @__PURE__ */ web.template(`<div class="mt-2 ml-6">`), _tmpl$45 = /* @__PURE__ */ web.template(`<div><div><span></span><!$><!/><!$><!/></div><!$><!/>`), _tmpl$46 = /* @__PURE__ */ web.template(`<p class="text-sm font-medium text-gray-800 dark:text-gray-200 mb-2">`), _tmpl$47 = /* @__PURE__ */ web.template(`<span class=text-amber-600>(<!$><!/> unverified)`), _tmpl$48 = /* @__PURE__ */ web.template(`<div class="mb-2 flex items-center gap-2 text-xs"><span><!$><!/>% verified</span><!$><!/>`), _tmpl$49 = /* @__PURE__ */ web.template(`<div><!$><!/><!$><!/><!$><!/><div class="flex flex-wrap gap-2">`), _tmpl$50 = /* @__PURE__ */ web.template(`<span class="font-medium text-gray-800 dark:text-gray-200">`), _tmpl$51 = /* @__PURE__ */ web.template(`<span class=ml-1>— <!$><!/>`), _tmpl$52 = /* @__PURE__ */ web.template(`<div class="mb-2 p-2 rounded bg-gray-50 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 text-xs text-gray-600 dark:text-gray-400"><!$><!/><!$><!/>`), _tmpl$53 = /* @__PURE__ */ web.template(`<span class=mr-1>`), _tmpl$54 = /* @__PURE__ */ web.template(`<div class=space-y-2><div class=space-y-1.5></div><!$><!/>`), _tmpl$55 = /* @__PURE__ */ web.template(`<div class="flex items-center gap-2 text-sm"><span></span><span class="text-gray-900 dark:text-white">`), _tmpl$56 = /* @__PURE__ */ web.template(`<div class="flex items-start gap-1.5 text-xs text-amber-600 dark:text-amber-400"><span class=flex-shrink-0>⚠️</span><span>`), _tmpl$57 = /* @__PURE__ */ web.template(`<span class=italic>— <!$><!/>`), _tmpl$58 = /* @__PURE__ */ web.template(`<div class="flex items-center gap-2 text-xs text-gray-500 dark:text-gray-400"><span><!$><!/> <!$><!/></span><!$><!/>`), _tmpl$59 = /* @__PURE__ */ web.template(`<div class="flex flex-wrap gap-2">`), _tmpl$60 = /* @__PURE__ */ web.template(`<div class="flex gap-1"><input type=text class="flex-1 px-3 py-2 text-sm border border-gray-200 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:border-blue-400 outline-none"><button type=button class="px-3 py-2 text-sm bg-blue-600 text-white rounded-lg hover:bg-blue-700">Send`), _tmpl$61 = /* @__PURE__ */ web.template(`<div class=space-y-3><p class="text-sm text-gray-700 dark:text-gray-300"></p><!$><!/><!$><!/>`), _tmpl$62 = /* @__PURE__ */ web.template(`<span>`), _tmpl$63 = /* @__PURE__ */ web.template(`<p class="text-xs text-gray-500 dark:text-gray-400 italic">"<!$><!/>"`), _tmpl$64 = /* @__PURE__ */ web.template(`<div class="mt-2 px-3 py-2 bg-blue-50 dark:bg-blue-900/10 rounded-lg text-sm text-blue-700 dark:text-blue-300"><span class=font-medium>Plan:</span> <!$><!/>`), _tmpl$65 = /* @__PURE__ */ web.template(`<button type=button class="text-xs text-blue-600 dark:text-blue-400 hover:underline flex items-center gap-1">✎ Modify`), _tmpl$66 = /* @__PURE__ */ web.template(`<div class=space-y-2><!$><!/><div class=space-y-1></div><!$><!/><!$><!/>`), _tmpl$67 = /* @__PURE__ */ web.template(`<div class="flex gap-2 text-sm"><span class="text-gray-500 dark:text-gray-400 font-medium min-w-[80px]"><!$><!/>:</span><span class="text-gray-900 dark:text-white">`), _tmpl$68 = /* @__PURE__ */ web.template(`<div class="flex items-center gap-1 flex-wrap">`), _tmpl$69 = /* @__PURE__ */ web.template(`<div class=space-y-2>`), _tmpl$70 = /* @__PURE__ */ web.template(`<span class="ml-1 text-xs text-gray-500 dark:text-gray-400">— <!$><!/>`), _tmpl$71 = /* @__PURE__ */ web.template(`<span class="ml-1 text-xs text-gray-400">(<!$><!/>ms)`), _tmpl$72 = /* @__PURE__ */ web.template(`<div><span class=flex-shrink-0></span><div><span></span><!$><!/><!$><!/>`), _tmpl$73 = /* @__PURE__ */ web.template(`<span class="text-[10px] opacity-75">`), _tmpl$74 = /* @__PURE__ */ web.template(`<div><span></span><span></span><!$><!/>`), _tmpl$75 = /* @__PURE__ */ web.template(`<button type=button>🔄 <!$><!/>`), _tmpl$76 = /* @__PURE__ */ web.template(`<button type=button class="px-2 py-1 text-xs opacity-70 hover:opacity-100">▶ Details`), _tmpl$77 = /* @__PURE__ */ web.template(`<pre class="mt-2 text-xs opacity-70 overflow-x-auto">`), _tmpl$78 = /* @__PURE__ */ web.template(`<div><div class="flex items-start gap-2"><span class=flex-shrink-0></span><div class=flex-1><p></p><div class="flex gap-2 mt-2"><!$><!/><!$><!/></div><!$><!/>`), _tmpl$79 = /* @__PURE__ */ web.template(`<span class="text-xs font-bold text-blue-600 dark:text-blue-400"><!$><!/> results`), _tmpl$80 = /* @__PURE__ */ web.template(`<p class="text-[10px] text-gray-400">`), _tmpl$81 = /* @__PURE__ */ web.template(`<div class="rounded-lg border border-gray-200 dark:border-gray-700 px-3 py-2"><div class="flex items-center justify-between mb-1.5"><span class="text-sm font-medium text-gray-900 dark:text-white"><!$><!/> <!$><!/></span><!$><!/></div><div class="flex flex-wrap gap-1.5 mb-1"></div><!$><!/>`), _tmpl$82 = /* @__PURE__ */ web.template(`<span><!$><!/> <!$><!/>`), _tmpl$83 = /* @__PURE__ */ web.template(`<div class=overflow-x-auto><table class="min-w-full text-xs"><thead><tr><th class="px-2 py-1 text-left text-gray-500 dark:text-gray-400"></th><th class="px-2 py-1 text-left font-medium text-blue-600 dark:text-blue-400"></th><th class="px-2 py-1 text-left font-medium text-purple-600 dark:text-purple-400"></th></tr></thead><tbody>`), _tmpl$84 = /* @__PURE__ */ web.template(`<tr><td class="px-2 py-1 font-mono text-gray-500 dark:text-gray-400"></td><td class="px-2 py-1 text-gray-900 dark:text-white"></td><td class="px-2 py-1 text-gray-900 dark:text-white">`);
|
|
17
17
|
const STATUS_BADGES = {
|
|
18
18
|
loading: {
|
|
19
19
|
label: "Loading...",
|
|
@@ -971,19 +971,78 @@ const InteractiveFilterSection = (props) => {
|
|
|
971
971
|
})();
|
|
972
972
|
};
|
|
973
973
|
const EmbeddedFormSection = (props) => {
|
|
974
|
-
const [formData, setFormData] = solidJs.createSignal({});
|
|
975
974
|
const [dynamicOptions, setDynamicOptions] = solidJs.createSignal({});
|
|
976
975
|
const config = () => {
|
|
977
976
|
const c = props.content;
|
|
978
977
|
return {
|
|
979
978
|
fields: (c == null ? void 0 : c.fields) || [],
|
|
980
|
-
submitLabel: (c == null ? void 0 : c.submitLabel) || "Submit"
|
|
979
|
+
submitLabel: (c == null ? void 0 : c.submitLabel) || "Submit",
|
|
980
|
+
autoSubmitDelay: c == null ? void 0 : c.autoSubmitDelay
|
|
981
981
|
};
|
|
982
982
|
};
|
|
983
|
-
const
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
983
|
+
const buildInitial = () => {
|
|
984
|
+
const initial = {};
|
|
985
|
+
for (const field of config().fields) {
|
|
986
|
+
initial[field.name] = field.prefill ?? field.defaultValue ?? "";
|
|
987
|
+
}
|
|
988
|
+
return initial;
|
|
989
|
+
};
|
|
990
|
+
const [formData, setFormData] = solidJs.createSignal(buildInitial());
|
|
991
|
+
solidJs.createEffect(() => {
|
|
992
|
+
const fields = config().fields;
|
|
993
|
+
if (fields.length > 0) {
|
|
994
|
+
setFormData((prev) => {
|
|
995
|
+
const next = {
|
|
996
|
+
...prev
|
|
997
|
+
};
|
|
998
|
+
for (const field of fields) {
|
|
999
|
+
if (field.prefill != null && (next[field.name] === void 0 || next[field.name] === "")) {
|
|
1000
|
+
next[field.name] = field.prefill;
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
return next;
|
|
1004
|
+
});
|
|
1005
|
+
}
|
|
1006
|
+
});
|
|
1007
|
+
const [countdown, setCountdown] = solidJs.createSignal(null);
|
|
1008
|
+
let countdownTimer = null;
|
|
1009
|
+
const [userInteracted, setUserInteracted] = solidJs.createSignal(false);
|
|
1010
|
+
const cancelCountdown = () => {
|
|
1011
|
+
if (countdownTimer) {
|
|
1012
|
+
clearInterval(countdownTimer);
|
|
1013
|
+
countdownTimer = null;
|
|
1014
|
+
}
|
|
1015
|
+
setCountdown(null);
|
|
1016
|
+
};
|
|
1017
|
+
solidJs.onCleanup(() => cancelCountdown());
|
|
1018
|
+
solidJs.createEffect(() => {
|
|
1019
|
+
const delay = config().autoSubmitDelay;
|
|
1020
|
+
if (!delay || userInteracted()) return;
|
|
1021
|
+
const allRequiredPrefilled = config().fields.filter((f) => f.required).every((f) => f.prefill != null);
|
|
1022
|
+
if (!allRequiredPrefilled) return;
|
|
1023
|
+
let remaining = Math.ceil(delay / 1e3);
|
|
1024
|
+
setCountdown(remaining);
|
|
1025
|
+
countdownTimer = setInterval(() => {
|
|
1026
|
+
remaining--;
|
|
1027
|
+
if (remaining <= 0) {
|
|
1028
|
+
cancelCountdown();
|
|
1029
|
+
const form = document.querySelector(`#scratchpad-form-${props.sectionId}`);
|
|
1030
|
+
if (form) form.requestSubmit();
|
|
1031
|
+
} else {
|
|
1032
|
+
setCountdown(remaining);
|
|
1033
|
+
}
|
|
1034
|
+
}, 1e3);
|
|
1035
|
+
});
|
|
1036
|
+
const updateField = (name, value) => {
|
|
1037
|
+
if (!userInteracted()) {
|
|
1038
|
+
setUserInteracted(true);
|
|
1039
|
+
cancelCountdown();
|
|
1040
|
+
}
|
|
1041
|
+
setFormData((prev) => ({
|
|
1042
|
+
...prev,
|
|
1043
|
+
[name]: value
|
|
1044
|
+
}));
|
|
1045
|
+
};
|
|
987
1046
|
solidJs.createEffect(() => {
|
|
988
1047
|
const data = formData();
|
|
989
1048
|
for (const field of config().fields) {
|
|
@@ -1034,7 +1093,7 @@ const EmbeddedFormSection = (props) => {
|
|
|
1034
1093
|
}
|
|
1035
1094
|
};
|
|
1036
1095
|
return (() => {
|
|
1037
|
-
var _el$154 = web.getNextElement(_tmpl$
|
|
1096
|
+
var _el$154 = web.getNextElement(_tmpl$40), _el$166 = _el$154.firstChild, [_el$167, _co$36] = web.getNextMarker(_el$166.nextSibling), _el$168 = _el$167.nextSibling, [_el$169, _co$37] = web.getNextMarker(_el$168.nextSibling), _el$164 = _el$169.nextSibling, _el$165 = _el$164.firstChild;
|
|
1038
1097
|
_el$154.addEventListener("submit", handleSubmit);
|
|
1039
1098
|
web.insert(_el$154, web.createComponent(solidJs.For, {
|
|
1040
1099
|
get each() {
|
|
@@ -1050,8 +1109,27 @@ const EmbeddedFormSection = (props) => {
|
|
|
1050
1109
|
onChange: (val) => updateField(field.name, val),
|
|
1051
1110
|
formData
|
|
1052
1111
|
})
|
|
1053
|
-
}), _el$
|
|
1054
|
-
web.insert(_el$
|
|
1112
|
+
}), _el$167, _co$36);
|
|
1113
|
+
web.insert(_el$154, web.createComponent(solidJs.Show, {
|
|
1114
|
+
get when() {
|
|
1115
|
+
return countdown() != null;
|
|
1116
|
+
},
|
|
1117
|
+
get children() {
|
|
1118
|
+
var _el$155 = web.getNextElement(_tmpl$39), _el$156 = _el$155.firstChild, _el$159 = _el$156.firstChild, [_el$160, _co$34] = web.getNextMarker(_el$159.nextSibling), _el$157 = _el$160.nextSibling, _el$161 = _el$157.nextSibling, [_el$162, _co$35] = web.getNextMarker(_el$161.nextSibling);
|
|
1119
|
+
_el$162.nextSibling;
|
|
1120
|
+
var _el$163 = _el$156.nextSibling;
|
|
1121
|
+
web.insert(_el$156, () => config().submitLabel, _el$160, _co$34);
|
|
1122
|
+
web.insert(_el$156, countdown, _el$162, _co$35);
|
|
1123
|
+
_el$163.$$click = () => {
|
|
1124
|
+
cancelCountdown();
|
|
1125
|
+
setUserInteracted(true);
|
|
1126
|
+
};
|
|
1127
|
+
web.runHydrationEvents();
|
|
1128
|
+
return _el$155;
|
|
1129
|
+
}
|
|
1130
|
+
}), _el$169, _co$37);
|
|
1131
|
+
web.insert(_el$165, () => config().submitLabel);
|
|
1132
|
+
web.effect(() => web.setAttribute(_el$154, "id", `scratchpad-form-${props.sectionId}`));
|
|
1055
1133
|
return _el$154;
|
|
1056
1134
|
})();
|
|
1057
1135
|
};
|
|
@@ -1064,35 +1142,35 @@ const EnrichedStepsSection = (props) => {
|
|
|
1064
1142
|
};
|
|
1065
1143
|
};
|
|
1066
1144
|
return (() => {
|
|
1067
|
-
var _el$
|
|
1068
|
-
web.insert(_el$
|
|
1145
|
+
var _el$170 = web.getNextElement(_tmpl$42), _el$173 = _el$170.firstChild, [_el$174, _co$38] = web.getNextMarker(_el$173.nextSibling), _el$175 = _el$174.nextSibling, [_el$176, _co$39] = web.getNextMarker(_el$175.nextSibling);
|
|
1146
|
+
web.insert(_el$170, web.createComponent(solidJs.For, {
|
|
1069
1147
|
get each() {
|
|
1070
1148
|
return stepsData().steps;
|
|
1071
1149
|
},
|
|
1072
1150
|
children: (step) => (() => {
|
|
1073
|
-
var _el$
|
|
1074
|
-
web.insert(_el$
|
|
1151
|
+
var _el$177 = web.getNextElement(_tmpl$45), _el$178 = _el$177.firstChild, _el$179 = _el$178.firstChild, _el$184 = _el$179.nextSibling, [_el$185, _co$41] = web.getNextMarker(_el$184.nextSibling), _el$186 = _el$185.nextSibling, [_el$187, _co$42] = web.getNextMarker(_el$186.nextSibling), _el$189 = _el$178.nextSibling, [_el$190, _co$43] = web.getNextMarker(_el$189.nextSibling);
|
|
1152
|
+
web.insert(_el$179, (() => {
|
|
1075
1153
|
var _c$5 = web.memo(() => step.status === "done");
|
|
1076
1154
|
return () => _c$5() ? "✅" : step.status === "active" ? "●" : "○";
|
|
1077
1155
|
})());
|
|
1078
|
-
web.insert(_el$
|
|
1079
|
-
web.insert(_el$
|
|
1156
|
+
web.insert(_el$178, () => step.label, _el$185, _co$41);
|
|
1157
|
+
web.insert(_el$178, web.createComponent(solidJs.Show, {
|
|
1080
1158
|
get when() {
|
|
1081
1159
|
return web.memo(() => !!step.description)() && step.status === "active";
|
|
1082
1160
|
},
|
|
1083
1161
|
get children() {
|
|
1084
|
-
var _el$
|
|
1085
|
-
web.insert(_el$
|
|
1086
|
-
return _el$
|
|
1162
|
+
var _el$180 = web.getNextElement(_tmpl$43), _el$181 = _el$180.firstChild, _el$182 = _el$181.nextSibling, [_el$183, _co$40] = web.getNextMarker(_el$182.nextSibling);
|
|
1163
|
+
web.insert(_el$180, () => step.description, _el$183, _co$40);
|
|
1164
|
+
return _el$180;
|
|
1087
1165
|
}
|
|
1088
|
-
}), _el$
|
|
1089
|
-
web.insert(_el$
|
|
1166
|
+
}), _el$187, _co$42);
|
|
1167
|
+
web.insert(_el$177, web.createComponent(solidJs.Show, {
|
|
1090
1168
|
get when() {
|
|
1091
1169
|
return web.memo(() => step.status === "active")() && step.content;
|
|
1092
1170
|
},
|
|
1093
1171
|
get children() {
|
|
1094
|
-
var _el$
|
|
1095
|
-
web.insert(_el$
|
|
1172
|
+
var _el$188 = web.getNextElement(_tmpl$44);
|
|
1173
|
+
web.insert(_el$188, web.createComponent(SectionRenderer, {
|
|
1096
1174
|
get section() {
|
|
1097
1175
|
return step.content;
|
|
1098
1176
|
},
|
|
@@ -1104,38 +1182,38 @@ const EnrichedStepsSection = (props) => {
|
|
|
1104
1182
|
return props.onAction;
|
|
1105
1183
|
}
|
|
1106
1184
|
}));
|
|
1107
|
-
return _el$
|
|
1185
|
+
return _el$188;
|
|
1108
1186
|
}
|
|
1109
|
-
}), _el$
|
|
1187
|
+
}), _el$190, _co$43);
|
|
1110
1188
|
web.effect((_p$) => {
|
|
1111
1189
|
var _v$4 = `rounded-lg ${step.status === "active" ? "bg-blue-50/50 dark:bg-blue-900/10 border border-blue-200 dark:border-blue-800 p-3 animate-pulse" : "px-1"}`, _v$5 = `flex items-center gap-2 text-sm font-medium ${step.status === "done" ? "text-green-600 dark:text-green-400" : step.status === "active" ? "text-blue-600 dark:text-blue-400" : "text-gray-400"}`;
|
|
1112
|
-
_v$4 !== _p$.e && web.className(_el$
|
|
1113
|
-
_v$5 !== _p$.t && web.className(_el$
|
|
1190
|
+
_v$4 !== _p$.e && web.className(_el$177, _p$.e = _v$4);
|
|
1191
|
+
_v$5 !== _p$.t && web.className(_el$178, _p$.t = _v$5);
|
|
1114
1192
|
return _p$;
|
|
1115
1193
|
}, {
|
|
1116
1194
|
e: void 0,
|
|
1117
1195
|
t: void 0
|
|
1118
1196
|
});
|
|
1119
|
-
return _el$
|
|
1197
|
+
return _el$177;
|
|
1120
1198
|
})()
|
|
1121
|
-
}), _el$
|
|
1122
|
-
web.insert(_el$
|
|
1199
|
+
}), _el$174, _co$38);
|
|
1200
|
+
web.insert(_el$170, web.createComponent(solidJs.Show, {
|
|
1123
1201
|
get when() {
|
|
1124
1202
|
return stepsData().steps.some((s) => s.status === "active");
|
|
1125
1203
|
},
|
|
1126
1204
|
get children() {
|
|
1127
|
-
var _el$
|
|
1128
|
-
_el$
|
|
1205
|
+
var _el$171 = web.getNextElement(_tmpl$41), _el$172 = _el$171.firstChild;
|
|
1206
|
+
_el$172.$$click = () => {
|
|
1129
1207
|
var _a;
|
|
1130
1208
|
return (_a = props.onAction) == null ? void 0 : _a.call(props, "next_step", {
|
|
1131
1209
|
step: stepsData().currentStep
|
|
1132
1210
|
});
|
|
1133
1211
|
};
|
|
1134
1212
|
web.runHydrationEvents();
|
|
1135
|
-
return _el$
|
|
1213
|
+
return _el$171;
|
|
1136
1214
|
}
|
|
1137
|
-
}), _el$
|
|
1138
|
-
return _el$
|
|
1215
|
+
}), _el$176, _co$39);
|
|
1216
|
+
return _el$170;
|
|
1139
1217
|
})();
|
|
1140
1218
|
};
|
|
1141
1219
|
const ActionSection = (props) => {
|
|
@@ -1161,103 +1239,103 @@ const ActionSection = (props) => {
|
|
|
1161
1239
|
};
|
|
1162
1240
|
};
|
|
1163
1241
|
return (() => {
|
|
1164
|
-
var _el$
|
|
1165
|
-
web.insert(_el$
|
|
1242
|
+
var _el$191 = web.getNextElement(_tmpl$49), _el$206 = _el$191.firstChild, [_el$207, _co$47] = web.getNextMarker(_el$206.nextSibling), _el$208 = _el$207.nextSibling, [_el$209, _co$48] = web.getNextMarker(_el$208.nextSibling), _el$210 = _el$209.nextSibling, [_el$211, _co$49] = web.getNextMarker(_el$210.nextSibling), _el$205 = _el$211.nextSibling;
|
|
1243
|
+
web.insert(_el$191, web.createComponent(solidJs.Show, {
|
|
1166
1244
|
get when() {
|
|
1167
1245
|
return data().title;
|
|
1168
1246
|
},
|
|
1169
1247
|
get children() {
|
|
1170
|
-
var _el$
|
|
1171
|
-
web.insert(_el$
|
|
1172
|
-
return _el$
|
|
1248
|
+
var _el$192 = web.getNextElement(_tmpl$46);
|
|
1249
|
+
web.insert(_el$192, () => data().title);
|
|
1250
|
+
return _el$192;
|
|
1173
1251
|
}
|
|
1174
|
-
}), _el$
|
|
1175
|
-
web.insert(_el$
|
|
1252
|
+
}), _el$207, _co$47);
|
|
1253
|
+
web.insert(_el$191, web.createComponent(solidJs.Show, {
|
|
1176
1254
|
get when() {
|
|
1177
1255
|
return data().preview;
|
|
1178
1256
|
},
|
|
1179
1257
|
children: (preview) => (() => {
|
|
1180
|
-
var _el$
|
|
1181
|
-
web.insert(_el$
|
|
1258
|
+
var _el$212 = web.getNextElement(_tmpl$52), _el$218 = _el$212.firstChild, [_el$219, _co$51] = web.getNextMarker(_el$218.nextSibling), _el$220 = _el$219.nextSibling, [_el$221, _co$52] = web.getNextMarker(_el$220.nextSibling);
|
|
1259
|
+
web.insert(_el$212, web.createComponent(solidJs.Show, {
|
|
1182
1260
|
get when() {
|
|
1183
1261
|
return preview().count != null;
|
|
1184
1262
|
},
|
|
1185
1263
|
get children() {
|
|
1186
1264
|
return [(() => {
|
|
1187
|
-
var _el$
|
|
1188
|
-
web.insert(_el$
|
|
1189
|
-
return _el$
|
|
1265
|
+
var _el$213 = web.getNextElement(_tmpl$50);
|
|
1266
|
+
web.insert(_el$213, () => preview().count);
|
|
1267
|
+
return _el$213;
|
|
1190
1268
|
})(), " items"];
|
|
1191
1269
|
}
|
|
1192
|
-
}), _el$
|
|
1193
|
-
web.insert(_el$
|
|
1270
|
+
}), _el$219, _co$51);
|
|
1271
|
+
web.insert(_el$212, web.createComponent(solidJs.Show, {
|
|
1194
1272
|
get when() {
|
|
1195
1273
|
return preview().summary;
|
|
1196
1274
|
},
|
|
1197
1275
|
get children() {
|
|
1198
|
-
var _el$
|
|
1199
|
-
web.insert(_el$
|
|
1200
|
-
return _el$
|
|
1276
|
+
var _el$214 = web.getNextElement(_tmpl$51), _el$215 = _el$214.firstChild, _el$216 = _el$215.nextSibling, [_el$217, _co$50] = web.getNextMarker(_el$216.nextSibling);
|
|
1277
|
+
web.insert(_el$214, () => preview().summary, _el$217, _co$50);
|
|
1278
|
+
return _el$214;
|
|
1201
1279
|
}
|
|
1202
|
-
}), _el$
|
|
1203
|
-
return _el$
|
|
1280
|
+
}), _el$221, _co$52);
|
|
1281
|
+
return _el$212;
|
|
1204
1282
|
})()
|
|
1205
|
-
}), _el$
|
|
1206
|
-
web.insert(_el$
|
|
1283
|
+
}), _el$209, _co$48);
|
|
1284
|
+
web.insert(_el$191, web.createComponent(solidJs.Show, {
|
|
1207
1285
|
get when() {
|
|
1208
1286
|
return web.memo(() => !!data().validation)() && data().validation.confidence != null;
|
|
1209
1287
|
},
|
|
1210
1288
|
get children() {
|
|
1211
|
-
var _el$
|
|
1212
|
-
_el$
|
|
1213
|
-
var _el$
|
|
1214
|
-
web.insert(_el$
|
|
1215
|
-
web.insert(_el$
|
|
1289
|
+
var _el$193 = web.getNextElement(_tmpl$48), _el$194 = _el$193.firstChild, _el$196 = _el$194.firstChild, [_el$197, _co$44] = web.getNextMarker(_el$196.nextSibling);
|
|
1290
|
+
_el$197.nextSibling;
|
|
1291
|
+
var _el$203 = _el$194.nextSibling, [_el$204, _co$46] = web.getNextMarker(_el$203.nextSibling);
|
|
1292
|
+
web.insert(_el$194, () => Math.round(data().validation.confidence * 100), _el$197, _co$44);
|
|
1293
|
+
web.insert(_el$193, web.createComponent(solidJs.Show, {
|
|
1216
1294
|
get when() {
|
|
1217
1295
|
var _a;
|
|
1218
1296
|
return ((_a = data().validation.hallucinated) == null ? void 0 : _a.length) > 0;
|
|
1219
1297
|
},
|
|
1220
1298
|
get children() {
|
|
1221
|
-
var _el$
|
|
1222
|
-
_el$
|
|
1223
|
-
web.insert(_el$
|
|
1224
|
-
return _el$
|
|
1299
|
+
var _el$198 = web.getNextElement(_tmpl$47), _el$199 = _el$198.firstChild, _el$201 = _el$199.nextSibling, [_el$202, _co$45] = web.getNextMarker(_el$201.nextSibling);
|
|
1300
|
+
_el$202.nextSibling;
|
|
1301
|
+
web.insert(_el$198, () => data().validation.hallucinated.length, _el$202, _co$45);
|
|
1302
|
+
return _el$198;
|
|
1225
1303
|
}
|
|
1226
|
-
}), _el$
|
|
1227
|
-
web.effect((_$p) => web.classList(_el$
|
|
1304
|
+
}), _el$204, _co$46);
|
|
1305
|
+
web.effect((_$p) => web.classList(_el$194, {
|
|
1228
1306
|
"text-green-600 dark:text-green-400": data().validation.confidence >= 0.8,
|
|
1229
1307
|
"text-amber-600 dark:text-amber-400": data().validation.confidence >= 0.5 && data().validation.confidence < 0.8,
|
|
1230
1308
|
"text-red-600 dark:text-red-400": data().validation.confidence < 0.5
|
|
1231
1309
|
}, _$p));
|
|
1232
|
-
return _el$
|
|
1310
|
+
return _el$193;
|
|
1233
1311
|
}
|
|
1234
|
-
}), _el$
|
|
1235
|
-
web.insert(_el$
|
|
1312
|
+
}), _el$211, _co$49);
|
|
1313
|
+
web.insert(_el$205, web.createComponent(solidJs.For, {
|
|
1236
1314
|
get each() {
|
|
1237
1315
|
return data().actions;
|
|
1238
1316
|
},
|
|
1239
1317
|
children: (item) => (() => {
|
|
1240
|
-
var _el$
|
|
1241
|
-
web.addEventListener(_el$
|
|
1318
|
+
var _el$222 = web.getNextElement(_tmpl$38), _el$224 = _el$222.firstChild, [_el$225, _co$53] = web.getNextMarker(_el$224.nextSibling), _el$226 = _el$225.nextSibling, [_el$227, _co$54] = web.getNextMarker(_el$226.nextSibling);
|
|
1319
|
+
web.addEventListener(_el$222, "click", () => {
|
|
1242
1320
|
var _a;
|
|
1243
1321
|
return (_a = props.onAction) == null ? void 0 : _a.call(props, item.value || item.action || item.label, item);
|
|
1244
1322
|
});
|
|
1245
|
-
web.insert(_el$
|
|
1323
|
+
web.insert(_el$222, web.createComponent(solidJs.Show, {
|
|
1246
1324
|
get when() {
|
|
1247
1325
|
return item.icon;
|
|
1248
1326
|
},
|
|
1249
1327
|
get children() {
|
|
1250
|
-
var _el$
|
|
1251
|
-
web.insert(_el$
|
|
1252
|
-
return _el$
|
|
1328
|
+
var _el$223 = web.getNextElement(_tmpl$53);
|
|
1329
|
+
web.insert(_el$223, () => item.icon);
|
|
1330
|
+
return _el$223;
|
|
1253
1331
|
}
|
|
1254
|
-
}), _el$
|
|
1255
|
-
web.insert(_el$
|
|
1256
|
-
web.effect(() => web.className(_el$
|
|
1257
|
-
return _el$
|
|
1332
|
+
}), _el$225, _co$53);
|
|
1333
|
+
web.insert(_el$222, () => item.label, _el$227, _co$54);
|
|
1334
|
+
web.effect(() => web.className(_el$222, `px-3 py-1.5 text-sm font-medium rounded-lg transition-colors ${item.variant === "primary" ? "bg-blue-600 text-white hover:bg-blue-700" : item.variant === "danger" ? "bg-red-600 text-white hover:bg-red-700" : item.variant === "secondary" ? "border border-blue-300 dark:border-blue-600 text-blue-700 dark:text-blue-300 hover:bg-blue-50 dark:hover:bg-blue-900/20" : "border border-gray-200 dark:border-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700"}`));
|
|
1335
|
+
return _el$222;
|
|
1258
1336
|
})()
|
|
1259
1337
|
}));
|
|
1260
|
-
return _el$
|
|
1338
|
+
return _el$191;
|
|
1261
1339
|
})();
|
|
1262
1340
|
};
|
|
1263
1341
|
const UnderstandingSection = (props) => {
|
|
@@ -1281,39 +1359,39 @@ const UnderstandingSection = (props) => {
|
|
|
1281
1359
|
}
|
|
1282
1360
|
};
|
|
1283
1361
|
return (() => {
|
|
1284
|
-
var _el$
|
|
1285
|
-
web.insert(_el$
|
|
1362
|
+
var _el$228 = web.getNextElement(_tmpl$54), _el$229 = _el$228.firstChild, _el$231 = _el$229.nextSibling, [_el$232, _co$55] = web.getNextMarker(_el$231.nextSibling);
|
|
1363
|
+
web.insert(_el$229, web.createComponent(solidJs.For, {
|
|
1286
1364
|
get each() {
|
|
1287
1365
|
return data().detections;
|
|
1288
1366
|
},
|
|
1289
1367
|
children: (det) => (() => {
|
|
1290
|
-
var _el$
|
|
1291
|
-
web.insert(_el$
|
|
1292
|
-
web.insert(_el$
|
|
1293
|
-
web.effect(() => web.className(_el$
|
|
1294
|
-
return _el$
|
|
1368
|
+
var _el$233 = web.getNextElement(_tmpl$55), _el$234 = _el$233.firstChild, _el$235 = _el$234.nextSibling;
|
|
1369
|
+
web.insert(_el$234, () => det.label);
|
|
1370
|
+
web.insert(_el$235, () => det.value);
|
|
1371
|
+
web.effect(() => web.className(_el$234, `px-1.5 py-0.5 text-xs font-medium rounded ${confidenceClass(det.confidence)}`));
|
|
1372
|
+
return _el$233;
|
|
1295
1373
|
})()
|
|
1296
1374
|
}));
|
|
1297
|
-
web.insert(_el$
|
|
1375
|
+
web.insert(_el$228, web.createComponent(solidJs.Show, {
|
|
1298
1376
|
get when() {
|
|
1299
1377
|
return data().warnings.length > 0;
|
|
1300
1378
|
},
|
|
1301
1379
|
get children() {
|
|
1302
|
-
var _el$
|
|
1303
|
-
web.insert(_el$
|
|
1380
|
+
var _el$230 = web.getNextElement(_tmpl$25);
|
|
1381
|
+
web.insert(_el$230, web.createComponent(solidJs.For, {
|
|
1304
1382
|
get each() {
|
|
1305
1383
|
return data().warnings;
|
|
1306
1384
|
},
|
|
1307
1385
|
children: (w) => (() => {
|
|
1308
|
-
var _el$
|
|
1309
|
-
web.insert(_el$
|
|
1310
|
-
return _el$
|
|
1386
|
+
var _el$236 = web.getNextElement(_tmpl$56), _el$237 = _el$236.firstChild, _el$238 = _el$237.nextSibling;
|
|
1387
|
+
web.insert(_el$238, w);
|
|
1388
|
+
return _el$236;
|
|
1311
1389
|
})()
|
|
1312
1390
|
}));
|
|
1313
|
-
return _el$
|
|
1391
|
+
return _el$230;
|
|
1314
1392
|
}
|
|
1315
|
-
}), _el$
|
|
1316
|
-
return _el$
|
|
1393
|
+
}), _el$232, _co$55);
|
|
1394
|
+
return _el$228;
|
|
1317
1395
|
})();
|
|
1318
1396
|
};
|
|
1319
1397
|
const FeedbackSection = (props) => {
|
|
@@ -1368,81 +1446,81 @@ const FeedbackSection = (props) => {
|
|
|
1368
1446
|
(_a = props.onAction) == null ? void 0 : _a.call(props, "feedback", payload);
|
|
1369
1447
|
};
|
|
1370
1448
|
return (() => {
|
|
1371
|
-
var _el$
|
|
1372
|
-
web.insert(_el$
|
|
1373
|
-
web.insert(_el$
|
|
1449
|
+
var _el$239 = web.getNextElement(_tmpl$61), _el$240 = _el$239.firstChild, _el$258 = _el$240.nextSibling, [_el$259, _co$60] = web.getNextMarker(_el$258.nextSibling), _el$260 = _el$259.nextSibling, [_el$261, _co$61] = web.getNextMarker(_el$260.nextSibling);
|
|
1450
|
+
web.insert(_el$240, () => data().question);
|
|
1451
|
+
web.insert(_el$239, web.createComponent(solidJs.Show, {
|
|
1374
1452
|
get when() {
|
|
1375
1453
|
return submitted();
|
|
1376
1454
|
},
|
|
1377
1455
|
get children() {
|
|
1378
|
-
var _el$
|
|
1379
|
-
web.insert(_el$
|
|
1456
|
+
var _el$241 = web.getNextElement(_tmpl$58), _el$242 = _el$241.firstChild, _el$244 = _el$242.firstChild, [_el$245, _co$56] = web.getNextMarker(_el$244.nextSibling), _el$243 = _el$245.nextSibling, _el$246 = _el$243.nextSibling, [_el$247, _co$57] = web.getNextMarker(_el$246.nextSibling), _el$252 = _el$242.nextSibling, [_el$253, _co$59] = web.getNextMarker(_el$252.nextSibling);
|
|
1457
|
+
web.insert(_el$242, (() => {
|
|
1380
1458
|
var _c$6 = web.memo(() => submitted() === "approve");
|
|
1381
1459
|
return () => _c$6() ? "✅" : submitted() === "reject" ? "❌" : "💬";
|
|
1382
|
-
})(), _el$
|
|
1383
|
-
web.insert(_el$
|
|
1384
|
-
web.insert(_el$
|
|
1460
|
+
})(), _el$245, _co$56);
|
|
1461
|
+
web.insert(_el$242, submitted, _el$247, _co$57);
|
|
1462
|
+
web.insert(_el$241, web.createComponent(solidJs.Show, {
|
|
1385
1463
|
get when() {
|
|
1386
1464
|
return comment();
|
|
1387
1465
|
},
|
|
1388
1466
|
get children() {
|
|
1389
|
-
var _el$
|
|
1390
|
-
web.insert(_el$
|
|
1391
|
-
return _el$
|
|
1467
|
+
var _el$248 = web.getNextElement(_tmpl$57), _el$249 = _el$248.firstChild, _el$250 = _el$249.nextSibling, [_el$251, _co$58] = web.getNextMarker(_el$250.nextSibling);
|
|
1468
|
+
web.insert(_el$248, comment, _el$251, _co$58);
|
|
1469
|
+
return _el$248;
|
|
1392
1470
|
}
|
|
1393
|
-
}), _el$
|
|
1471
|
+
}), _el$253, _co$59);
|
|
1394
1472
|
web.effect((_p$) => {
|
|
1395
1473
|
var _v$6 = !!(submitted() === "approve"), _v$7 = !!(submitted() === "reject"), _v$8 = !!(submitted() !== "approve" && submitted() !== "reject");
|
|
1396
|
-
_v$6 !== _p$.e && _el$
|
|
1397
|
-
_v$7 !== _p$.t && _el$
|
|
1398
|
-
_v$8 !== _p$.a && _el$
|
|
1474
|
+
_v$6 !== _p$.e && _el$242.classList.toggle("text-green-600", _p$.e = _v$6);
|
|
1475
|
+
_v$7 !== _p$.t && _el$242.classList.toggle("text-red-600", _p$.t = _v$7);
|
|
1476
|
+
_v$8 !== _p$.a && _el$242.classList.toggle("text-blue-600", _p$.a = _v$8);
|
|
1399
1477
|
return _p$;
|
|
1400
1478
|
}, {
|
|
1401
1479
|
e: void 0,
|
|
1402
1480
|
t: void 0,
|
|
1403
1481
|
a: void 0
|
|
1404
1482
|
});
|
|
1405
|
-
return _el$
|
|
1483
|
+
return _el$241;
|
|
1406
1484
|
}
|
|
1407
|
-
}), _el$
|
|
1408
|
-
web.insert(_el$
|
|
1485
|
+
}), _el$259, _co$60);
|
|
1486
|
+
web.insert(_el$239, web.createComponent(solidJs.Show, {
|
|
1409
1487
|
get when() {
|
|
1410
1488
|
return !submitted();
|
|
1411
1489
|
},
|
|
1412
1490
|
get children() {
|
|
1413
1491
|
return [(() => {
|
|
1414
|
-
var _el$
|
|
1415
|
-
web.insert(_el$
|
|
1492
|
+
var _el$254 = web.getNextElement(_tmpl$59);
|
|
1493
|
+
web.insert(_el$254, web.createComponent(solidJs.For, {
|
|
1416
1494
|
get each() {
|
|
1417
1495
|
return data().options;
|
|
1418
1496
|
},
|
|
1419
1497
|
children: (option) => (() => {
|
|
1420
|
-
var _el$
|
|
1421
|
-
web.addEventListener(_el$
|
|
1422
|
-
web.insert(_el$
|
|
1498
|
+
var _el$262 = web.getNextElement(_tmpl$38), _el$264 = _el$262.firstChild, [_el$265, _co$62] = web.getNextMarker(_el$264.nextSibling), _el$266 = _el$265.nextSibling, [_el$267, _co$63] = web.getNextMarker(_el$266.nextSibling);
|
|
1499
|
+
web.addEventListener(_el$262, "click", () => handleOption(option));
|
|
1500
|
+
web.insert(_el$262, web.createComponent(solidJs.Show, {
|
|
1423
1501
|
get when() {
|
|
1424
1502
|
return option.icon;
|
|
1425
1503
|
},
|
|
1426
1504
|
get children() {
|
|
1427
|
-
var _el$
|
|
1428
|
-
web.insert(_el$
|
|
1429
|
-
return _el$
|
|
1505
|
+
var _el$263 = web.getNextElement(_tmpl$62);
|
|
1506
|
+
web.insert(_el$263, () => option.icon);
|
|
1507
|
+
return _el$263;
|
|
1430
1508
|
}
|
|
1431
|
-
}), _el$
|
|
1432
|
-
web.insert(_el$
|
|
1433
|
-
web.effect(() => web.className(_el$
|
|
1434
|
-
return _el$
|
|
1509
|
+
}), _el$265, _co$62);
|
|
1510
|
+
web.insert(_el$262, () => option.label, _el$267, _co$63);
|
|
1511
|
+
web.effect(() => web.className(_el$262, `px-3 py-1.5 text-sm font-medium rounded-lg transition-colors flex items-center gap-1 ${option.variant === "primary" ? "bg-blue-600 text-white hover:bg-blue-700" : option.variant === "danger" ? "bg-red-600 text-white hover:bg-red-700" : "border border-gray-200 dark:border-gray-600 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700"}`));
|
|
1512
|
+
return _el$262;
|
|
1435
1513
|
})()
|
|
1436
1514
|
}));
|
|
1437
|
-
return _el$
|
|
1515
|
+
return _el$254;
|
|
1438
1516
|
})(), web.createComponent(solidJs.Show, {
|
|
1439
1517
|
get when() {
|
|
1440
1518
|
return data().allowFreeText || showComment();
|
|
1441
1519
|
},
|
|
1442
1520
|
get children() {
|
|
1443
|
-
var _el$
|
|
1444
|
-
_el$
|
|
1445
|
-
web.addEventListener(_el$
|
|
1521
|
+
var _el$255 = web.getNextElement(_tmpl$60), _el$256 = _el$255.firstChild, _el$257 = _el$256.nextSibling;
|
|
1522
|
+
_el$256.$$input = (e) => setComment(e.currentTarget.value);
|
|
1523
|
+
web.addEventListener(_el$257, "click", () => {
|
|
1446
1524
|
var _a;
|
|
1447
1525
|
setSubmitted("comment");
|
|
1448
1526
|
(_a = props.onAction) == null ? void 0 : _a.call(props, "feedback", {
|
|
@@ -1454,21 +1532,21 @@ const FeedbackSection = (props) => {
|
|
|
1454
1532
|
});
|
|
1455
1533
|
web.effect((_p$) => {
|
|
1456
1534
|
var _v$9 = data().placeholder, _v$0 = showComment();
|
|
1457
|
-
_v$9 !== _p$.e && web.setAttribute(_el$
|
|
1458
|
-
_v$0 !== _p$.t && web.setProperty(_el$
|
|
1535
|
+
_v$9 !== _p$.e && web.setAttribute(_el$256, "placeholder", _p$.e = _v$9);
|
|
1536
|
+
_v$0 !== _p$.t && web.setProperty(_el$256, "autofocus", _p$.t = _v$0);
|
|
1459
1537
|
return _p$;
|
|
1460
1538
|
}, {
|
|
1461
1539
|
e: void 0,
|
|
1462
1540
|
t: void 0
|
|
1463
1541
|
});
|
|
1464
|
-
web.effect(() => web.setProperty(_el$
|
|
1542
|
+
web.effect(() => web.setProperty(_el$256, "value", comment()));
|
|
1465
1543
|
web.runHydrationEvents();
|
|
1466
|
-
return _el$
|
|
1544
|
+
return _el$255;
|
|
1467
1545
|
}
|
|
1468
1546
|
})];
|
|
1469
1547
|
}
|
|
1470
|
-
}), _el$
|
|
1471
|
-
return _el$
|
|
1548
|
+
}), _el$261, _co$61);
|
|
1549
|
+
return _el$239;
|
|
1472
1550
|
})();
|
|
1473
1551
|
};
|
|
1474
1552
|
const PromptSection = (props) => {
|
|
@@ -1483,56 +1561,56 @@ const PromptSection = (props) => {
|
|
|
1483
1561
|
};
|
|
1484
1562
|
};
|
|
1485
1563
|
return (() => {
|
|
1486
|
-
var _el$
|
|
1487
|
-
web.insert(_el$
|
|
1564
|
+
var _el$268 = web.getNextElement(_tmpl$66), _el$281 = _el$268.firstChild, [_el$282, _co$66] = web.getNextMarker(_el$281.nextSibling), _el$274 = _el$282.nextSibling, _el$283 = _el$274.nextSibling, [_el$284, _co$67] = web.getNextMarker(_el$283.nextSibling), _el$285 = _el$284.nextSibling, [_el$286, _co$68] = web.getNextMarker(_el$285.nextSibling);
|
|
1565
|
+
web.insert(_el$268, web.createComponent(solidJs.Show, {
|
|
1488
1566
|
get when() {
|
|
1489
1567
|
return data().originalQuery;
|
|
1490
1568
|
},
|
|
1491
1569
|
get children() {
|
|
1492
|
-
var _el$
|
|
1493
|
-
_el$
|
|
1494
|
-
web.insert(_el$
|
|
1495
|
-
return _el$
|
|
1570
|
+
var _el$269 = web.getNextElement(_tmpl$63), _el$270 = _el$269.firstChild, _el$272 = _el$270.nextSibling, [_el$273, _co$64] = web.getNextMarker(_el$272.nextSibling);
|
|
1571
|
+
_el$273.nextSibling;
|
|
1572
|
+
web.insert(_el$269, () => data().originalQuery, _el$273, _co$64);
|
|
1573
|
+
return _el$269;
|
|
1496
1574
|
}
|
|
1497
|
-
}), _el$
|
|
1498
|
-
web.insert(_el$
|
|
1575
|
+
}), _el$282, _co$66);
|
|
1576
|
+
web.insert(_el$274, web.createComponent(solidJs.For, {
|
|
1499
1577
|
get each() {
|
|
1500
1578
|
return Object.entries(data().extracted);
|
|
1501
1579
|
},
|
|
1502
1580
|
children: ([key, value]) => (() => {
|
|
1503
|
-
var _el$
|
|
1504
|
-
_el$
|
|
1505
|
-
var _el$
|
|
1506
|
-
web.insert(_el$
|
|
1507
|
-
web.insert(_el$
|
|
1508
|
-
return _el$
|
|
1581
|
+
var _el$287 = web.getNextElement(_tmpl$67), _el$288 = _el$287.firstChild, _el$290 = _el$288.firstChild, [_el$291, _co$69] = web.getNextMarker(_el$290.nextSibling);
|
|
1582
|
+
_el$291.nextSibling;
|
|
1583
|
+
var _el$292 = _el$288.nextSibling;
|
|
1584
|
+
web.insert(_el$288, key, _el$291, _co$69);
|
|
1585
|
+
web.insert(_el$292, () => String(value));
|
|
1586
|
+
return _el$287;
|
|
1509
1587
|
})()
|
|
1510
1588
|
}));
|
|
1511
|
-
web.insert(_el$
|
|
1589
|
+
web.insert(_el$268, web.createComponent(solidJs.Show, {
|
|
1512
1590
|
get when() {
|
|
1513
1591
|
return data().plan;
|
|
1514
1592
|
},
|
|
1515
1593
|
get children() {
|
|
1516
|
-
var _el$
|
|
1517
|
-
web.insert(_el$
|
|
1518
|
-
return _el$
|
|
1594
|
+
var _el$275 = web.getNextElement(_tmpl$64), _el$276 = _el$275.firstChild, _el$277 = _el$276.nextSibling, _el$278 = _el$277.nextSibling, [_el$279, _co$65] = web.getNextMarker(_el$278.nextSibling);
|
|
1595
|
+
web.insert(_el$275, () => data().plan, _el$279, _co$65);
|
|
1596
|
+
return _el$275;
|
|
1519
1597
|
}
|
|
1520
|
-
}), _el$
|
|
1521
|
-
web.insert(_el$
|
|
1598
|
+
}), _el$284, _co$67);
|
|
1599
|
+
web.insert(_el$268, web.createComponent(solidJs.Show, {
|
|
1522
1600
|
get when() {
|
|
1523
1601
|
return data().editable;
|
|
1524
1602
|
},
|
|
1525
1603
|
get children() {
|
|
1526
|
-
var _el$
|
|
1527
|
-
_el$
|
|
1604
|
+
var _el$280 = web.getNextElement(_tmpl$65);
|
|
1605
|
+
_el$280.$$click = () => {
|
|
1528
1606
|
var _a;
|
|
1529
1607
|
return (_a = props.onAction) == null ? void 0 : _a.call(props, "edit_prompt", data());
|
|
1530
1608
|
};
|
|
1531
1609
|
web.runHydrationEvents();
|
|
1532
|
-
return _el$
|
|
1610
|
+
return _el$280;
|
|
1533
1611
|
}
|
|
1534
|
-
}), _el$
|
|
1535
|
-
return _el$
|
|
1612
|
+
}), _el$286, _co$68);
|
|
1613
|
+
return _el$268;
|
|
1536
1614
|
})();
|
|
1537
1615
|
};
|
|
1538
1616
|
const StepperProgressSection = (props) => {
|
|
@@ -1562,46 +1640,46 @@ const StepperProgressSection = (props) => {
|
|
|
1562
1640
|
},
|
|
1563
1641
|
get fallback() {
|
|
1564
1642
|
return (() => {
|
|
1565
|
-
var _el$
|
|
1566
|
-
web.insert(_el$
|
|
1643
|
+
var _el$294 = web.getNextElement(_tmpl$69);
|
|
1644
|
+
web.insert(_el$294, web.createComponent(solidJs.For, {
|
|
1567
1645
|
get each() {
|
|
1568
1646
|
return data().steps;
|
|
1569
1647
|
},
|
|
1570
1648
|
children: (step) => (() => {
|
|
1571
|
-
var _el$
|
|
1572
|
-
web.insert(_el$
|
|
1573
|
-
web.insert(_el$
|
|
1574
|
-
web.insert(_el$
|
|
1649
|
+
var _el$295 = web.getNextElement(_tmpl$72), _el$296 = _el$295.firstChild, _el$297 = _el$296.nextSibling, _el$298 = _el$297.firstChild, _el$308 = _el$298.nextSibling, [_el$309, _co$72] = web.getNextMarker(_el$308.nextSibling), _el$310 = _el$309.nextSibling, [_el$311, _co$73] = web.getNextMarker(_el$310.nextSibling);
|
|
1650
|
+
web.insert(_el$296, () => statusIcon(step.status));
|
|
1651
|
+
web.insert(_el$298, () => step.label);
|
|
1652
|
+
web.insert(_el$297, web.createComponent(solidJs.Show, {
|
|
1575
1653
|
get when() {
|
|
1576
1654
|
return step.summary;
|
|
1577
1655
|
},
|
|
1578
1656
|
get children() {
|
|
1579
|
-
var _el$
|
|
1580
|
-
web.insert(_el$
|
|
1581
|
-
return _el$
|
|
1657
|
+
var _el$299 = web.getNextElement(_tmpl$70), _el$300 = _el$299.firstChild, _el$301 = _el$300.nextSibling, [_el$302, _co$70] = web.getNextMarker(_el$301.nextSibling);
|
|
1658
|
+
web.insert(_el$299, () => step.summary, _el$302, _co$70);
|
|
1659
|
+
return _el$299;
|
|
1582
1660
|
}
|
|
1583
|
-
}), _el$
|
|
1584
|
-
web.insert(_el$
|
|
1661
|
+
}), _el$309, _co$72);
|
|
1662
|
+
web.insert(_el$297, web.createComponent(solidJs.Show, {
|
|
1585
1663
|
get when() {
|
|
1586
1664
|
return step.duration_ms;
|
|
1587
1665
|
},
|
|
1588
1666
|
get children() {
|
|
1589
|
-
var _el$
|
|
1590
|
-
_el$
|
|
1591
|
-
web.insert(_el$
|
|
1592
|
-
return _el$
|
|
1667
|
+
var _el$303 = web.getNextElement(_tmpl$71), _el$304 = _el$303.firstChild, _el$306 = _el$304.nextSibling, [_el$307, _co$71] = web.getNextMarker(_el$306.nextSibling);
|
|
1668
|
+
_el$307.nextSibling;
|
|
1669
|
+
web.insert(_el$303, () => step.duration_ms, _el$307, _co$71);
|
|
1670
|
+
return _el$303;
|
|
1593
1671
|
}
|
|
1594
|
-
}), _el$
|
|
1595
|
-
web.effect(() => web.className(_el$
|
|
1596
|
-
return _el$
|
|
1672
|
+
}), _el$311, _co$73);
|
|
1673
|
+
web.effect(() => web.className(_el$295, `flex items-start gap-2 text-sm ${step.status === "active" ? "font-medium" : ""} ${step.status === "pending" ? "text-gray-400" : "text-gray-700 dark:text-gray-300"}`));
|
|
1674
|
+
return _el$295;
|
|
1597
1675
|
})()
|
|
1598
1676
|
}));
|
|
1599
|
-
return _el$
|
|
1677
|
+
return _el$294;
|
|
1600
1678
|
})();
|
|
1601
1679
|
},
|
|
1602
1680
|
get children() {
|
|
1603
|
-
var _el$
|
|
1604
|
-
web.insert(_el$
|
|
1681
|
+
var _el$293 = web.getNextElement(_tmpl$68);
|
|
1682
|
+
web.insert(_el$293, web.createComponent(solidJs.For, {
|
|
1605
1683
|
get each() {
|
|
1606
1684
|
return data().steps;
|
|
1607
1685
|
},
|
|
@@ -1613,24 +1691,24 @@ const StepperProgressSection = (props) => {
|
|
|
1613
1691
|
return web.getNextElement(_tmpl$13);
|
|
1614
1692
|
}
|
|
1615
1693
|
}), (() => {
|
|
1616
|
-
var _el$
|
|
1617
|
-
web.insert(_el$
|
|
1618
|
-
web.insert(_el$
|
|
1619
|
-
web.insert(_el$
|
|
1694
|
+
var _el$313 = web.getNextElement(_tmpl$74), _el$314 = _el$313.firstChild, _el$315 = _el$314.nextSibling, _el$317 = _el$315.nextSibling, [_el$318, _co$74] = web.getNextMarker(_el$317.nextSibling);
|
|
1695
|
+
web.insert(_el$314, () => statusIcon(step.status));
|
|
1696
|
+
web.insert(_el$315, () => step.label);
|
|
1697
|
+
web.insert(_el$313, web.createComponent(solidJs.Show, {
|
|
1620
1698
|
get when() {
|
|
1621
1699
|
return step.summary;
|
|
1622
1700
|
},
|
|
1623
1701
|
get children() {
|
|
1624
|
-
var _el$
|
|
1625
|
-
web.insert(_el$
|
|
1626
|
-
return _el$
|
|
1702
|
+
var _el$316 = web.getNextElement(_tmpl$73);
|
|
1703
|
+
web.insert(_el$316, () => step.summary);
|
|
1704
|
+
return _el$316;
|
|
1627
1705
|
}
|
|
1628
|
-
}), _el$
|
|
1629
|
-
web.effect(() => web.className(_el$
|
|
1630
|
-
return _el$
|
|
1706
|
+
}), _el$318, _co$74);
|
|
1707
|
+
web.effect(() => web.className(_el$313, `flex items-center gap-1 px-2 py-1 rounded text-xs ${step.status === "done" ? "bg-green-50 dark:bg-green-900/20 text-green-700 dark:text-green-400" : step.status === "active" ? "bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-400 font-medium animate-pulse" : step.status === "error" ? "bg-red-50 dark:bg-red-900/20 text-red-700 dark:text-red-400" : "text-gray-400"}`));
|
|
1708
|
+
return _el$313;
|
|
1631
1709
|
})()]
|
|
1632
1710
|
}));
|
|
1633
|
-
return _el$
|
|
1711
|
+
return _el$293;
|
|
1634
1712
|
}
|
|
1635
1713
|
});
|
|
1636
1714
|
};
|
|
@@ -1651,48 +1729,48 @@ const ErrorSectionRenderer = (props) => {
|
|
|
1651
1729
|
};
|
|
1652
1730
|
const isWarning = () => data().severity === "warning";
|
|
1653
1731
|
return (() => {
|
|
1654
|
-
var _el$
|
|
1655
|
-
web.insert(_el$
|
|
1656
|
-
web.insert(_el$
|
|
1657
|
-
web.insert(_el$
|
|
1732
|
+
var _el$319 = web.getNextElement(_tmpl$78), _el$320 = _el$319.firstChild, _el$321 = _el$320.firstChild, _el$322 = _el$321.nextSibling, _el$323 = _el$322.firstChild, _el$324 = _el$323.nextSibling, _el$330 = _el$324.firstChild, [_el$331, _co$76] = web.getNextMarker(_el$330.nextSibling), _el$332 = _el$331.nextSibling, [_el$333, _co$77] = web.getNextMarker(_el$332.nextSibling), _el$335 = _el$324.nextSibling, [_el$336, _co$78] = web.getNextMarker(_el$335.nextSibling);
|
|
1733
|
+
web.insert(_el$321, () => isWarning() ? "⚠️" : "❌");
|
|
1734
|
+
web.insert(_el$323, () => data().message);
|
|
1735
|
+
web.insert(_el$324, web.createComponent(solidJs.Show, {
|
|
1658
1736
|
get when() {
|
|
1659
1737
|
return data().retryAction;
|
|
1660
1738
|
},
|
|
1661
1739
|
get children() {
|
|
1662
|
-
var _el$
|
|
1663
|
-
_el$
|
|
1740
|
+
var _el$325 = web.getNextElement(_tmpl$75), _el$326 = _el$325.firstChild, _el$327 = _el$326.nextSibling, [_el$328, _co$75] = web.getNextMarker(_el$327.nextSibling);
|
|
1741
|
+
_el$325.$$click = () => {
|
|
1664
1742
|
var _a;
|
|
1665
1743
|
return (_a = props.onAction) == null ? void 0 : _a.call(props, data().retryAction);
|
|
1666
1744
|
};
|
|
1667
|
-
web.insert(_el$
|
|
1668
|
-
web.effect(() => web.className(_el$
|
|
1745
|
+
web.insert(_el$325, () => data().retryLabel, _el$328, _co$75);
|
|
1746
|
+
web.effect(() => web.className(_el$325, `px-2 py-1 text-xs font-medium rounded ${isWarning() ? "bg-amber-600 text-white hover:bg-amber-700" : "bg-red-600 text-white hover:bg-red-700"} transition-colors`));
|
|
1669
1747
|
web.runHydrationEvents();
|
|
1670
|
-
return _el$
|
|
1748
|
+
return _el$325;
|
|
1671
1749
|
}
|
|
1672
|
-
}), _el$
|
|
1673
|
-
web.insert(_el$
|
|
1750
|
+
}), _el$331, _co$76);
|
|
1751
|
+
web.insert(_el$324, web.createComponent(solidJs.Show, {
|
|
1674
1752
|
get when() {
|
|
1675
1753
|
return data().details;
|
|
1676
1754
|
},
|
|
1677
1755
|
get children() {
|
|
1678
|
-
var _el$
|
|
1679
|
-
_el$
|
|
1756
|
+
var _el$329 = web.getNextElement(_tmpl$76);
|
|
1757
|
+
_el$329.$$click = () => setShowDetails(!showDetails());
|
|
1680
1758
|
web.runHydrationEvents();
|
|
1681
|
-
return _el$
|
|
1759
|
+
return _el$329;
|
|
1682
1760
|
}
|
|
1683
|
-
}), _el$
|
|
1684
|
-
web.insert(_el$
|
|
1761
|
+
}), _el$333, _co$77);
|
|
1762
|
+
web.insert(_el$322, web.createComponent(solidJs.Show, {
|
|
1685
1763
|
get when() {
|
|
1686
1764
|
return web.memo(() => !!showDetails())() && data().details;
|
|
1687
1765
|
},
|
|
1688
1766
|
get children() {
|
|
1689
|
-
var _el$
|
|
1690
|
-
web.insert(_el$
|
|
1691
|
-
return _el$
|
|
1767
|
+
var _el$334 = web.getNextElement(_tmpl$77);
|
|
1768
|
+
web.insert(_el$334, () => data().details);
|
|
1769
|
+
return _el$334;
|
|
1692
1770
|
}
|
|
1693
|
-
}), _el$
|
|
1694
|
-
web.effect(() => web.className(_el$
|
|
1695
|
-
return _el$
|
|
1771
|
+
}), _el$336, _co$78);
|
|
1772
|
+
web.effect(() => web.className(_el$319, `rounded-lg px-3 py-2 text-sm ${isWarning() ? "bg-amber-50 dark:bg-amber-900/10 text-amber-700 dark:text-amber-400 border border-amber-200 dark:border-amber-800" : "bg-red-50 dark:bg-red-900/10 text-red-700 dark:text-red-400 border border-red-200 dark:border-red-800"}`));
|
|
1773
|
+
return _el$319;
|
|
1696
1774
|
})();
|
|
1697
1775
|
};
|
|
1698
1776
|
const SourceCardSection = (props) => {
|
|
@@ -1713,46 +1791,46 @@ const SourceCardSection = (props) => {
|
|
|
1713
1791
|
error: "❌"
|
|
1714
1792
|
})[data().status] || "📦";
|
|
1715
1793
|
return (() => {
|
|
1716
|
-
var _el$
|
|
1717
|
-
web.insert(_el$
|
|
1718
|
-
web.insert(_el$
|
|
1719
|
-
web.insert(_el$
|
|
1794
|
+
var _el$337 = web.getNextElement(_tmpl$81), _el$338 = _el$337.firstChild, _el$339 = _el$338.firstChild, _el$341 = _el$339.firstChild, [_el$342, _co$79] = web.getNextMarker(_el$341.nextSibling), _el$340 = _el$342.nextSibling, _el$343 = _el$340.nextSibling, [_el$344, _co$80] = web.getNextMarker(_el$343.nextSibling), _el$349 = _el$339.nextSibling, [_el$350, _co$82] = web.getNextMarker(_el$349.nextSibling), _el$351 = _el$338.nextSibling, _el$353 = _el$351.nextSibling, [_el$354, _co$83] = web.getNextMarker(_el$353.nextSibling);
|
|
1795
|
+
web.insert(_el$339, statusIcon, _el$342, _co$79);
|
|
1796
|
+
web.insert(_el$339, () => data().name, _el$344, _co$80);
|
|
1797
|
+
web.insert(_el$338, web.createComponent(solidJs.Show, {
|
|
1720
1798
|
get when() {
|
|
1721
1799
|
return data().row_count !== void 0;
|
|
1722
1800
|
},
|
|
1723
1801
|
get children() {
|
|
1724
|
-
var _el$
|
|
1725
|
-
_el$
|
|
1726
|
-
web.insert(_el$
|
|
1802
|
+
var _el$345 = web.getNextElement(_tmpl$79), _el$347 = _el$345.firstChild, [_el$348, _co$81] = web.getNextMarker(_el$347.nextSibling);
|
|
1803
|
+
_el$348.nextSibling;
|
|
1804
|
+
web.insert(_el$345, () => {
|
|
1727
1805
|
var _a;
|
|
1728
1806
|
return (_a = data().row_count) == null ? void 0 : _a.toLocaleString();
|
|
1729
|
-
}, _el$
|
|
1730
|
-
return _el$
|
|
1807
|
+
}, _el$348, _co$81);
|
|
1808
|
+
return _el$345;
|
|
1731
1809
|
}
|
|
1732
|
-
}), _el$
|
|
1733
|
-
web.insert(_el$
|
|
1810
|
+
}), _el$350, _co$82);
|
|
1811
|
+
web.insert(_el$351, web.createComponent(solidJs.For, {
|
|
1734
1812
|
get each() {
|
|
1735
1813
|
return data().capabilities;
|
|
1736
1814
|
},
|
|
1737
1815
|
children: (cap) => (() => {
|
|
1738
|
-
var _el$
|
|
1739
|
-
web.insert(_el$
|
|
1740
|
-
web.insert(_el$
|
|
1741
|
-
web.effect(() => web.className(_el$
|
|
1742
|
-
return _el$
|
|
1816
|
+
var _el$355 = web.getNextElement(_tmpl$82), _el$357 = _el$355.firstChild, [_el$358, _co$84] = web.getNextMarker(_el$357.nextSibling), _el$356 = _el$358.nextSibling, _el$359 = _el$356.nextSibling, [_el$360, _co$85] = web.getNextMarker(_el$359.nextSibling);
|
|
1817
|
+
web.insert(_el$355, () => cap.supported ? "✅" : "❌", _el$358, _co$84);
|
|
1818
|
+
web.insert(_el$355, () => cap.label, _el$360, _co$85);
|
|
1819
|
+
web.effect(() => web.className(_el$355, `text-[10px] px-1.5 py-0.5 rounded ${cap.supported ? "bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-400" : "bg-red-100 dark:bg-red-900/30 text-red-600 dark:text-red-400"}`));
|
|
1820
|
+
return _el$355;
|
|
1743
1821
|
})()
|
|
1744
1822
|
}));
|
|
1745
|
-
web.insert(_el$
|
|
1823
|
+
web.insert(_el$337, web.createComponent(solidJs.Show, {
|
|
1746
1824
|
get when() {
|
|
1747
1825
|
return data().freshness || data().latency_ms;
|
|
1748
1826
|
},
|
|
1749
1827
|
get children() {
|
|
1750
|
-
var _el$
|
|
1751
|
-
web.insert(_el$
|
|
1752
|
-
return _el$
|
|
1828
|
+
var _el$352 = web.getNextElement(_tmpl$80);
|
|
1829
|
+
web.insert(_el$352, () => [data().freshness, data().latency_ms ? `${data().latency_ms}ms` : ""].filter(Boolean).join(" · "));
|
|
1830
|
+
return _el$352;
|
|
1753
1831
|
}
|
|
1754
|
-
}), _el$
|
|
1755
|
-
return _el$
|
|
1832
|
+
}), _el$354, _co$83);
|
|
1833
|
+
return _el$337;
|
|
1756
1834
|
})();
|
|
1757
1835
|
};
|
|
1758
1836
|
const DiffSection = (props) => {
|
|
@@ -1776,10 +1854,10 @@ const DiffSection = (props) => {
|
|
|
1776
1854
|
return [.../* @__PURE__ */ new Set([...Object.keys(l), ...Object.keys(r)])];
|
|
1777
1855
|
};
|
|
1778
1856
|
return (() => {
|
|
1779
|
-
var _el$
|
|
1780
|
-
web.insert(_el$
|
|
1781
|
-
web.insert(_el$
|
|
1782
|
-
web.insert(_el$
|
|
1857
|
+
var _el$361 = web.getNextElement(_tmpl$83), _el$362 = _el$361.firstChild, _el$363 = _el$362.firstChild, _el$364 = _el$363.firstChild, _el$365 = _el$364.firstChild, _el$366 = _el$365.nextSibling, _el$367 = _el$366.nextSibling, _el$368 = _el$363.nextSibling;
|
|
1858
|
+
web.insert(_el$366, () => data().left.label);
|
|
1859
|
+
web.insert(_el$367, () => data().right.label);
|
|
1860
|
+
web.insert(_el$368, web.createComponent(solidJs.For, {
|
|
1783
1861
|
get each() {
|
|
1784
1862
|
return allKeys();
|
|
1785
1863
|
},
|
|
@@ -1794,22 +1872,22 @@ const DiffSection = (props) => {
|
|
|
1794
1872
|
};
|
|
1795
1873
|
const isDiff = () => String(lVal()) !== String(rVal()) && data().highlight.includes(key);
|
|
1796
1874
|
return (() => {
|
|
1797
|
-
var _el$
|
|
1798
|
-
web.insert(_el$
|
|
1799
|
-
web.insert(_el$
|
|
1875
|
+
var _el$369 = web.getNextElement(_tmpl$84), _el$370 = _el$369.firstChild, _el$371 = _el$370.nextSibling, _el$372 = _el$371.nextSibling;
|
|
1876
|
+
web.insert(_el$370, key);
|
|
1877
|
+
web.insert(_el$371, (() => {
|
|
1800
1878
|
var _c$7 = web.memo(() => lVal() !== void 0);
|
|
1801
1879
|
return () => _c$7() ? String(lVal()) : "—";
|
|
1802
1880
|
})());
|
|
1803
|
-
web.insert(_el$
|
|
1881
|
+
web.insert(_el$372, (() => {
|
|
1804
1882
|
var _c$8 = web.memo(() => rVal() !== void 0);
|
|
1805
1883
|
return () => _c$8() ? String(rVal()) : "—";
|
|
1806
1884
|
})());
|
|
1807
|
-
web.effect(() => web.className(_el$
|
|
1808
|
-
return _el$
|
|
1885
|
+
web.effect(() => web.className(_el$369, `border-t border-gray-100 dark:border-gray-700 ${isDiff() ? "bg-yellow-50 dark:bg-yellow-900/10" : ""}`));
|
|
1886
|
+
return _el$369;
|
|
1809
1887
|
})();
|
|
1810
1888
|
}
|
|
1811
1889
|
}));
|
|
1812
|
-
return _el$
|
|
1890
|
+
return _el$361;
|
|
1813
1891
|
})();
|
|
1814
1892
|
};
|
|
1815
1893
|
web.delegateEvents(["click", "input"]);
|