@seed-ship/mcp-ui-solid 4.2.2 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +13 -8
  3. package/dist/components/FormFieldRenderer.cjs +132 -52
  4. package/dist/components/FormFieldRenderer.cjs.map +1 -1
  5. package/dist/components/FormFieldRenderer.js +133 -53
  6. package/dist/components/FormFieldRenderer.js.map +1 -1
  7. package/dist/components/FormRenderer.cjs +25 -6
  8. package/dist/components/FormRenderer.cjs.map +1 -1
  9. package/dist/components/FormRenderer.d.ts.map +1 -1
  10. package/dist/components/FormRenderer.js +25 -6
  11. package/dist/components/FormRenderer.js.map +1 -1
  12. package/dist/components/ScratchpadPanel.cjs +583 -280
  13. package/dist/components/ScratchpadPanel.cjs.map +1 -1
  14. package/dist/components/ScratchpadPanel.d.ts +2 -0
  15. package/dist/components/ScratchpadPanel.d.ts.map +1 -1
  16. package/dist/components/ScratchpadPanel.js +583 -280
  17. package/dist/components/ScratchpadPanel.js.map +1 -1
  18. package/dist/services/validation.cjs +8 -0
  19. package/dist/services/validation.cjs.map +1 -1
  20. package/dist/services/validation.d.ts.map +1 -1
  21. package/dist/services/validation.js +8 -0
  22. package/dist/services/validation.js.map +1 -1
  23. package/dist/types/index.d.ts +8 -0
  24. package/dist/types/index.d.ts.map +1 -1
  25. package/dist/types.d.cts +8 -0
  26. package/dist/types.d.ts +8 -0
  27. package/package.json +1 -1
  28. package/src/components/FormFieldRenderer.tsx +89 -2
  29. package/src/components/FormRenderer.tsx +12 -0
  30. package/src/components/ScratchpadPanel.tsx +174 -1
  31. package/src/services/validation.ts +10 -0
  32. package/src/types/index.ts +8 -0
  33. package/tsconfig.tsbuildinfo +1 -1
@@ -11,7 +11,7 @@ import { AgentHandoff } from "./AgentHandoff.js";
11
11
  import { BriefingDiff } from "./BriefingDiff.js";
12
12
  var _tmpl$ = /* @__PURE__ */ 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__ */ 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__ */ 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__ */ template(`<div class="px-4 py-3 border-t border-gray-100 dark:border-gray-700 space-y-2">`), _tmpl$5 = /* @__PURE__ */ template(`<div class="flex flex-col items-center gap-2 py-4 text-center"><span class=text-2xl>&#128269;</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__ */ template(`<div class="px-4 py-3 border-t border-gray-100 dark:border-gray-700">`), _tmpl$7 = /* @__PURE__ */ template(`<p class="text-xs text-red-500 dark:text-red-500 mt-0.5">Code: <!$><!/>`), _tmpl$8 = /* @__PURE__ */ 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">&#128260; Retry`), _tmpl$9 = /* @__PURE__ */ 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__ */ 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__ */ 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__ */ template(`<div style=overflow-y:auto><!$><!/><div class="divide-y divide-gray-100 dark:divide-gray-700"></div><!$><!/><!$><!/><!$><!/><!$><!/>`), _tmpl$11 = /* @__PURE__ */ 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__ */ template(`<div style="animation:scratchpad-slide-down 0.2s ease-out"><div><div class="flex items-center gap-2"><span class=text-base>&#128221;</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>
13
13
  @keyframes scratchpad-slide-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
14
- </style><!$><!/>`), _tmpl$13 = /* @__PURE__ */ 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__ */ template(`<span class="ml-1 font-normal opacity-75">— <!$><!/>`), _tmpl$15 = /* @__PURE__ */ template(`<span><!$><!/> <!$><!/><!$><!/>`), _tmpl$16 = /* @__PURE__ */ template(`<div><span class="flex-shrink-0 mt-0.5"></span><p>`), _tmpl$17 = /* @__PURE__ */ 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__ */ template(`<p class="text-sm text-gray-700 dark:text-gray-300">`), _tmpl$19 = /* @__PURE__ */ template(`<div class="mt-2 overflow-x-auto"><table class="min-w-full text-xs"><thead><tr></tr></thead><tbody>`), _tmpl$20 = /* @__PURE__ */ template(`<th class="px-2 py-1 text-left font-medium text-gray-500 dark:text-gray-400">`), _tmpl$21 = /* @__PURE__ */ template(`<tr class="border-t border-gray-100 dark:border-gray-700">`), _tmpl$22 = /* @__PURE__ */ template(`<td class="px-2 py-1 text-gray-700 dark:text-gray-300">`), _tmpl$23 = /* @__PURE__ */ template(`<pre class="text-xs text-gray-500 overflow-auto">`), _tmpl$24 = /* @__PURE__ */ 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__ */ template(`<div class=space-y-1>`), _tmpl$26 = /* @__PURE__ */ 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__ */ template(`<p class="text-xs text-gray-400 italic">No filters`), _tmpl$28 = /* @__PURE__ */ template(`<div class="flex flex-wrap gap-1.5"><!$><!/><!$><!/>`), _tmpl$29 = /* @__PURE__ */ template(`<button type=button class="ml-0.5 hover:text-blue-900 dark:hover:text-blue-100">&times;`), _tmpl$30 = /* @__PURE__ */ 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__ */ template(`<div class="max-h-48 overflow-y-auto">`), _tmpl$32 = /* @__PURE__ */ 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__ */ 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__ */ template(`<div class=relative><!$><!/><!$><!/>`), _tmpl$35 = /* @__PURE__ */ 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__ */ 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__ */ template(`<span class=ml-1>✓`), _tmpl$38 = /* @__PURE__ */ template(`<button type=button><!$><!/><!$><!/>`), _tmpl$39 = /* @__PURE__ */ 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__ */ 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__ */ 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__ */ template(`<div class=space-y-3><!$><!/><!$><!/>`), _tmpl$43 = /* @__PURE__ */ template(`<span class="text-xs font-normal text-gray-500 dark:text-gray-400">— <!$><!/>`), _tmpl$44 = /* @__PURE__ */ template(`<div class="mt-2 ml-6">`), _tmpl$45 = /* @__PURE__ */ template(`<div><div><span></span><!$><!/><!$><!/></div><!$><!/>`), _tmpl$46 = /* @__PURE__ */ template(`<p class="text-sm font-medium text-gray-800 dark:text-gray-200 mb-2">`), _tmpl$47 = /* @__PURE__ */ template(`<span class=text-amber-600>(<!$><!/> unverified)`), _tmpl$48 = /* @__PURE__ */ template(`<div class="mb-2 flex items-center gap-2 text-xs"><span><!$><!/>% verified</span><!$><!/>`), _tmpl$49 = /* @__PURE__ */ template(`<div><!$><!/><!$><!/><!$><!/><div class="flex flex-wrap gap-2">`), _tmpl$50 = /* @__PURE__ */ template(`<span class="font-medium text-gray-800 dark:text-gray-200">`), _tmpl$51 = /* @__PURE__ */ template(`<span class=ml-1>&mdash; <!$><!/>`), _tmpl$52 = /* @__PURE__ */ 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__ */ template(`<span class=mr-1>`), _tmpl$54 = /* @__PURE__ */ template(`<div class=space-y-2><div class=space-y-1.5></div><!$><!/>`), _tmpl$55 = /* @__PURE__ */ template(`<div class="flex items-center gap-2 text-sm"><span></span><span class="text-gray-900 dark:text-white">`), _tmpl$56 = /* @__PURE__ */ 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__ */ template(`<span class=italic>&mdash; <!$><!/>`), _tmpl$58 = /* @__PURE__ */ template(`<div class="flex items-center gap-2 text-xs text-gray-500 dark:text-gray-400"><span><!$><!/> <!$><!/></span><!$><!/>`), _tmpl$59 = /* @__PURE__ */ template(`<div class="flex flex-wrap gap-2">`), _tmpl$60 = /* @__PURE__ */ 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__ */ template(`<div class=space-y-3><p class="text-sm text-gray-700 dark:text-gray-300"></p><!$><!/><!$><!/>`), _tmpl$62 = /* @__PURE__ */ template(`<span>`), _tmpl$63 = /* @__PURE__ */ template(`<p class="text-xs text-gray-500 dark:text-gray-400 italic">"<!$><!/>"`), _tmpl$64 = /* @__PURE__ */ 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__ */ template(`<button type=button class="text-xs text-blue-600 dark:text-blue-400 hover:underline flex items-center gap-1">&#9998; Modify`), _tmpl$66 = /* @__PURE__ */ template(`<div class=space-y-2><!$><!/><div class=space-y-1></div><!$><!/><!$><!/>`), _tmpl$67 = /* @__PURE__ */ 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__ */ template(`<div class="flex items-center gap-1 flex-wrap">`), _tmpl$69 = /* @__PURE__ */ template(`<div class=space-y-2>`), _tmpl$70 = /* @__PURE__ */ template(`<span class="ml-1 text-xs text-gray-500 dark:text-gray-400">— <!$><!/>`), _tmpl$71 = /* @__PURE__ */ template(`<span class="ml-1 text-xs text-gray-400">(<!$><!/>ms)`), _tmpl$72 = /* @__PURE__ */ template(`<div><span class=flex-shrink-0></span><div><span></span><!$><!/><!$><!/>`), _tmpl$73 = /* @__PURE__ */ template(`<span class="text-[10px] opacity-75">`), _tmpl$74 = /* @__PURE__ */ template(`<div><span></span><span></span><!$><!/>`), _tmpl$75 = /* @__PURE__ */ template(`<button type=button>&#128260; <!$><!/>`), _tmpl$76 = /* @__PURE__ */ template(`<button type=button class="px-2 py-1 text-xs opacity-70 hover:opacity-100">&#9654; Details`), _tmpl$77 = /* @__PURE__ */ template(`<pre class="mt-2 text-xs opacity-70 overflow-x-auto">`), _tmpl$78 = /* @__PURE__ */ 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__ */ template(`<span class="text-xs font-bold text-blue-600 dark:text-blue-400"><!$><!/> results`), _tmpl$80 = /* @__PURE__ */ template(`<p class="text-[10px] text-gray-400">`), _tmpl$81 = /* @__PURE__ */ 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__ */ template(`<span><!$><!/> <!$><!/>`), _tmpl$83 = /* @__PURE__ */ 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__ */ 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">`);
14
+ </style><!$><!/>`), _tmpl$13 = /* @__PURE__ */ 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__ */ template(`<span class="ml-1 font-normal opacity-75">— <!$><!/>`), _tmpl$15 = /* @__PURE__ */ template(`<span><!$><!/> <!$><!/><!$><!/>`), _tmpl$16 = /* @__PURE__ */ template(`<div><span class="flex-shrink-0 mt-0.5"></span><p>`), _tmpl$17 = /* @__PURE__ */ 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__ */ template(`<p class="text-sm text-gray-700 dark:text-gray-300">`), _tmpl$19 = /* @__PURE__ */ template(`<div class="mt-2 overflow-x-auto"><table class="min-w-full text-xs"><thead><tr></tr></thead><tbody>`), _tmpl$20 = /* @__PURE__ */ template(`<th class="px-2 py-1 text-left font-medium text-gray-500 dark:text-gray-400">`), _tmpl$21 = /* @__PURE__ */ template(`<tr class="border-t border-gray-100 dark:border-gray-700">`), _tmpl$22 = /* @__PURE__ */ template(`<td class="px-2 py-1 text-gray-700 dark:text-gray-300">`), _tmpl$23 = /* @__PURE__ */ template(`<pre class="text-xs text-gray-500 overflow-auto">`), _tmpl$24 = /* @__PURE__ */ 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__ */ template(`<div class=space-y-1>`), _tmpl$26 = /* @__PURE__ */ 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__ */ template(`<p class="text-xs text-gray-400 italic">No filters`), _tmpl$28 = /* @__PURE__ */ template(`<div class="flex flex-wrap gap-1.5"><!$><!/><!$><!/>`), _tmpl$29 = /* @__PURE__ */ template(`<button type=button class="ml-0.5 hover:text-blue-900 dark:hover:text-blue-100">&times;`), _tmpl$30 = /* @__PURE__ */ 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__ */ template(`<div class="max-h-48 overflow-y-auto">`), _tmpl$32 = /* @__PURE__ */ 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__ */ 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__ */ template(`<div class=relative><!$><!/><!$><!/>`), _tmpl$35 = /* @__PURE__ */ 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__ */ 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__ */ template(`<span class=ml-1>✓`), _tmpl$38 = /* @__PURE__ */ template(`<button type=button><!$><!/><!$><!/>`), _tmpl$39 = /* @__PURE__ */ template(`<p class="text-xs text-gray-500 dark:text-gray-400"><!$><!/> champ<!$><!/> pré-rempli<!$><!/> sur <!$><!/>`), _tmpl$40 = /* @__PURE__ */ 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$41 = /* @__PURE__ */ 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$42 = /* @__PURE__ */ template(`<div class="flex items-center gap-3 p-3 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg text-sm"><span class="flex-1 text-blue-800 dark:text-blue-200 font-medium"></span><span class="text-blue-600 dark:text-blue-300"><!$><!/>s...</span><button type=button class="text-blue-600 dark:text-blue-400 underline text-xs">Modifier</button><button type=button class="text-gray-400 hover:text-gray-600 dark:hover:text-gray-300">&times;`), _tmpl$43 = /* @__PURE__ */ template(`<div class=pl-2>routing: <!$><!/> via <!$><!/> (<!$><!/>ms)`), _tmpl$44 = /* @__PURE__ */ template(`<div class="pl-2 text-amber-500">missing: <!$><!/>`), _tmpl$45 = /* @__PURE__ */ template(`<div class="pt-1 border-t border-gray-200 dark:border-gray-600"><div class="font-medium text-gray-800 dark:text-gray-200">Server _debug:</div><!$><!/><!$><!/><!$><!/>`), _tmpl$46 = /* @__PURE__ */ template(`<pre class="mt-1 p-2 bg-gray-50 dark:bg-gray-900 rounded max-h-48 overflow-auto text-[10px]">`), _tmpl$47 = /* @__PURE__ */ template(`<div class="px-3 pb-3 space-y-2 text-gray-600 dark:text-gray-400 border-t border-gray-200 dark:border-gray-700 pt-2"><div>Fields: <!$><!/> total, <!$><!/> prefilled</div><!$><!/><div class="pt-1 border-t border-gray-200 dark:border-gray-600">autoSubmit: <!$><!/><!$><!/><div> reason: <!$><!/></div></div><!$><!/><div class="pt-1 border-t border-gray-200 dark:border-gray-600"><button type=button class="text-blue-500 hover:text-blue-700 underline"><!$><!/> raw SSE payload</button><!$><!/>`), _tmpl$48 = /* @__PURE__ */ template(`<div class="mt-2 border border-gray-200 dark:border-gray-700 rounded-md text-xs font-mono"><button type=button class="w-full px-3 py-1.5 text-left text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-800 flex items-center gap-1"><span></span>Debug trace (<!$><!/>/<!$><!/> prefilled)</button><!$><!/>`), _tmpl$49 = /* @__PURE__ */ template(`<div> prefill: <!$><!/>`), _tmpl$50 = /* @__PURE__ */ template(`<div class=text-amber-500> prefill: (none)`), _tmpl$51 = /* @__PURE__ */ template(`<div> source: <!$><!/>`), _tmpl$52 = /* @__PURE__ */ template(`<div> displayHint: "<!$><!/>"`), _tmpl$53 = /* @__PURE__ */ template(`<div> muted: true`), _tmpl$54 = /* @__PURE__ */ template(`<div> prefillMode: <!$><!/>`), _tmpl$55 = /* @__PURE__ */ template(`<div> valueFormat: /<!$><!/>/`), _tmpl$56 = /* @__PURE__ */ template(`<div class="pl-2 border-l-2 border-gray-200 dark:border-gray-600 space-y-0.5"><div class="text-gray-800 dark:text-gray-200 font-medium"><!$><!/>:</div><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/>`), _tmpl$57 = /* @__PURE__ */ template(`<div>→ submitted: <!$><!/>`), _tmpl$58 = /* @__PURE__ */ template(`<div class=pl-2><!$><!/>: <!$><!/> "<!$><!/>" → "<!$><!/>" (<!$><!/>ms)`), _tmpl$59 = /* @__PURE__ */ 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$60 = /* @__PURE__ */ template(`<div class=space-y-3><!$><!/><!$><!/>`), _tmpl$61 = /* @__PURE__ */ template(`<span class="text-xs font-normal text-gray-500 dark:text-gray-400">— <!$><!/>`), _tmpl$62 = /* @__PURE__ */ template(`<div class="mt-2 ml-6">`), _tmpl$63 = /* @__PURE__ */ template(`<div><div><span></span><!$><!/><!$><!/></div><!$><!/>`), _tmpl$64 = /* @__PURE__ */ template(`<p class="text-sm font-medium text-gray-800 dark:text-gray-200 mb-2">`), _tmpl$65 = /* @__PURE__ */ template(`<span class=text-amber-600>(<!$><!/> unverified)`), _tmpl$66 = /* @__PURE__ */ template(`<div class="mb-2 flex items-center gap-2 text-xs"><span><!$><!/>% verified</span><!$><!/>`), _tmpl$67 = /* @__PURE__ */ template(`<div><!$><!/><!$><!/><!$><!/><div class="flex flex-wrap gap-2">`), _tmpl$68 = /* @__PURE__ */ template(`<span class="font-medium text-gray-800 dark:text-gray-200">`), _tmpl$69 = /* @__PURE__ */ template(`<span class=ml-1>&mdash; <!$><!/>`), _tmpl$70 = /* @__PURE__ */ 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$71 = /* @__PURE__ */ template(`<span class=mr-1>`), _tmpl$72 = /* @__PURE__ */ template(`<div class=space-y-2><div class=space-y-1.5></div><!$><!/>`), _tmpl$73 = /* @__PURE__ */ template(`<div class="flex items-center gap-2 text-sm"><span></span><span class="text-gray-900 dark:text-white">`), _tmpl$74 = /* @__PURE__ */ 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$75 = /* @__PURE__ */ template(`<span class=italic>&mdash; <!$><!/>`), _tmpl$76 = /* @__PURE__ */ template(`<div class="flex items-center gap-2 text-xs text-gray-500 dark:text-gray-400"><span><!$><!/> <!$><!/></span><!$><!/>`), _tmpl$77 = /* @__PURE__ */ template(`<div class="flex flex-wrap gap-2">`), _tmpl$78 = /* @__PURE__ */ 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$79 = /* @__PURE__ */ template(`<div class=space-y-3><p class="text-sm text-gray-700 dark:text-gray-300"></p><!$><!/><!$><!/>`), _tmpl$80 = /* @__PURE__ */ template(`<span>`), _tmpl$81 = /* @__PURE__ */ template(`<p class="text-xs text-gray-500 dark:text-gray-400 italic">"<!$><!/>"`), _tmpl$82 = /* @__PURE__ */ 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$83 = /* @__PURE__ */ template(`<button type=button class="text-xs text-blue-600 dark:text-blue-400 hover:underline flex items-center gap-1">&#9998; Modify`), _tmpl$84 = /* @__PURE__ */ template(`<div class=space-y-2><!$><!/><div class=space-y-1></div><!$><!/><!$><!/>`), _tmpl$85 = /* @__PURE__ */ 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$86 = /* @__PURE__ */ template(`<div class="flex items-center gap-1 flex-wrap">`), _tmpl$87 = /* @__PURE__ */ template(`<div class=space-y-2>`), _tmpl$88 = /* @__PURE__ */ template(`<span class="ml-1 text-xs text-gray-500 dark:text-gray-400">— <!$><!/>`), _tmpl$89 = /* @__PURE__ */ template(`<span class="ml-1 text-xs text-gray-400">(<!$><!/>ms)`), _tmpl$90 = /* @__PURE__ */ template(`<div><span class=flex-shrink-0></span><div><span></span><!$><!/><!$><!/>`), _tmpl$91 = /* @__PURE__ */ template(`<span class="text-[10px] opacity-75">`), _tmpl$92 = /* @__PURE__ */ template(`<div><span></span><span></span><!$><!/>`), _tmpl$93 = /* @__PURE__ */ template(`<button type=button>&#128260; <!$><!/>`), _tmpl$94 = /* @__PURE__ */ template(`<button type=button class="px-2 py-1 text-xs opacity-70 hover:opacity-100">&#9654; Details`), _tmpl$95 = /* @__PURE__ */ template(`<pre class="mt-2 text-xs opacity-70 overflow-x-auto">`), _tmpl$96 = /* @__PURE__ */ 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$97 = /* @__PURE__ */ template(`<span class="text-xs font-bold text-blue-600 dark:text-blue-400"><!$><!/> results`), _tmpl$98 = /* @__PURE__ */ template(`<p class="text-[10px] text-gray-400">`), _tmpl$99 = /* @__PURE__ */ 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$100 = /* @__PURE__ */ template(`<span><!$><!/> <!$><!/>`), _tmpl$101 = /* @__PURE__ */ 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$102 = /* @__PURE__ */ 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">`);
15
15
  const STATUS_BADGES = {
16
16
  loading: {
17
17
  label: "Loading...",
@@ -258,6 +258,9 @@ const ScratchpadPanel = (props) => {
258
258
  },
259
259
  get onSubmit() {
260
260
  return props.onSubmit;
261
+ },
262
+ get debugTrace() {
263
+ return props.debugTrace;
261
264
  }
262
265
  })
263
266
  }));
@@ -554,6 +557,9 @@ const SectionRenderer = (props) => {
554
557
  },
555
558
  get onSubmit() {
556
559
  return props.onSubmit;
560
+ },
561
+ get debugTrace() {
562
+ return props.debugTrace;
557
563
  }
558
564
  });
559
565
  }
@@ -1073,6 +1079,7 @@ const EmbeddedFormSection = (props) => {
1073
1079
  options: dynOpts
1074
1080
  } : field;
1075
1081
  };
1082
+ const [submittedValues, setSubmittedValues] = createSignal(null);
1076
1083
  const handleSubmit = (e) => {
1077
1084
  var _a;
1078
1085
  e.preventDefault();
@@ -1080,6 +1087,7 @@ const EmbeddedFormSection = (props) => {
1080
1087
  const field = config().fields.find((f) => f.name === key);
1081
1088
  return (field == null ? void 0 : field.fieldStatus) !== "unsupported";
1082
1089
  }).filter(([, v]) => v !== void 0 && v !== "" && !(Array.isArray(v) && v.length === 0)));
1090
+ setSubmittedValues(values);
1083
1091
  console.info(`%c[MCP-UI] Form submitted%c section=${props.sectionId} fields=${Object.keys(values).join(",")}`, "color: #8b5cf6; font-weight: bold", "color: inherit");
1084
1092
  if (props.onSubmit) {
1085
1093
  props.onSubmit(props.sectionId, values);
@@ -1090,45 +1098,340 @@ const EmbeddedFormSection = (props) => {
1090
1098
  });
1091
1099
  }
1092
1100
  };
1093
- return (() => {
1094
- var _el$154 = getNextElement(_tmpl$40), _el$166 = _el$154.firstChild, [_el$167, _co$36] = getNextMarker(_el$166.nextSibling), _el$168 = _el$167.nextSibling, [_el$169, _co$37] = getNextMarker(_el$168.nextSibling), _el$164 = _el$169.nextSibling, _el$165 = _el$164.firstChild;
1095
- _el$154.addEventListener("submit", handleSubmit);
1096
- insert(_el$154, createComponent(For, {
1097
- get each() {
1098
- return config().fields;
1099
- },
1100
- children: (field) => createComponent(FormFieldRenderer, {
1101
- get field() {
1102
- return getField(field);
1101
+ const prefillSummary = () => {
1102
+ const fields = config().fields;
1103
+ const total = fields.length;
1104
+ const prefilled = fields.filter((f) => f.prefill != null).length;
1105
+ return {
1106
+ total,
1107
+ prefilled
1108
+ };
1109
+ };
1110
+ const [expanded, setExpanded] = createSignal(false);
1111
+ const allFieldsPrefilled = () => {
1112
+ const fields = config().fields;
1113
+ return fields.length > 0 && fields.every((f) => f.prefill != null);
1114
+ };
1115
+ const showToast = () => allFieldsPrefilled() && !userInteracted() && !expanded() && countdown() != null;
1116
+ return [createComponent(Show, {
1117
+ get when() {
1118
+ return !showToast();
1119
+ },
1120
+ get fallback() {
1121
+ return (() => {
1122
+ var _el$184 = getNextElement(_tmpl$42), _el$185 = _el$184.firstChild, _el$186 = _el$185.nextSibling, _el$188 = _el$186.firstChild, [_el$189, _co$43] = getNextMarker(_el$188.nextSibling);
1123
+ _el$189.nextSibling;
1124
+ var _el$190 = _el$186.nextSibling, _el$191 = _el$190.nextSibling;
1125
+ insert(_el$185, () => config().fields.map((f) => f.displayHint || f.prefill).join(", "));
1126
+ insert(_el$186, countdown, _el$189, _co$43);
1127
+ _el$190.$$click = () => {
1128
+ setExpanded(true);
1129
+ cancelCountdown();
1130
+ setUserInteracted(true);
1131
+ };
1132
+ _el$191.$$click = () => {
1133
+ cancelCountdown();
1134
+ setUserInteracted(true);
1135
+ };
1136
+ runHydrationEvents();
1137
+ return _el$184;
1138
+ })();
1139
+ },
1140
+ get children() {
1141
+ var _el$154 = getNextElement(_tmpl$41), _el$178 = _el$154.firstChild, [_el$179, _co$40] = getNextMarker(_el$178.nextSibling), _el$180 = _el$179.nextSibling, [_el$181, _co$41] = getNextMarker(_el$180.nextSibling), _el$182 = _el$181.nextSibling, [_el$183, _co$42] = getNextMarker(_el$182.nextSibling), _el$176 = _el$183.nextSibling, _el$177 = _el$176.firstChild;
1142
+ _el$154.addEventListener("submit", handleSubmit);
1143
+ insert(_el$154, createComponent(Show, {
1144
+ get when() {
1145
+ return prefillSummary().prefilled > 0;
1103
1146
  },
1104
- get value() {
1105
- return formData()[field.name];
1147
+ get children() {
1148
+ var _el$155 = getNextElement(_tmpl$39), _el$159 = _el$155.firstChild, [_el$160, _co$34] = getNextMarker(_el$159.nextSibling), _el$156 = _el$160.nextSibling, _el$161 = _el$156.nextSibling, [_el$162, _co$35] = getNextMarker(_el$161.nextSibling), _el$157 = _el$162.nextSibling, _el$163 = _el$157.nextSibling, [_el$164, _co$36] = getNextMarker(_el$163.nextSibling), _el$158 = _el$164.nextSibling, _el$165 = _el$158.nextSibling, [_el$166, _co$37] = getNextMarker(_el$165.nextSibling);
1149
+ insert(_el$155, () => prefillSummary().prefilled, _el$160, _co$34);
1150
+ insert(_el$155, () => prefillSummary().prefilled > 1 ? "s" : "", _el$162, _co$35);
1151
+ insert(_el$155, () => prefillSummary().prefilled > 1 ? "s" : "", _el$164, _co$36);
1152
+ insert(_el$155, () => prefillSummary().total, _el$166, _co$37);
1153
+ return _el$155;
1154
+ }
1155
+ }), _el$179, _co$40);
1156
+ insert(_el$154, createComponent(For, {
1157
+ get each() {
1158
+ return config().fields;
1106
1159
  },
1107
- onChange: (val) => updateField(field.name, val),
1108
- formData
1109
- })
1110
- }), _el$167, _co$36);
1111
- insert(_el$154, createComponent(Show, {
1160
+ children: (field) => createComponent(FormFieldRenderer, {
1161
+ get field() {
1162
+ return getField(field);
1163
+ },
1164
+ get value() {
1165
+ return formData()[field.name];
1166
+ },
1167
+ onChange: (val) => updateField(field.name, val),
1168
+ formData
1169
+ })
1170
+ }), _el$181, _co$41);
1171
+ insert(_el$154, createComponent(Show, {
1172
+ get when() {
1173
+ return countdown() != null;
1174
+ },
1175
+ get children() {
1176
+ var _el$167 = getNextElement(_tmpl$40), _el$168 = _el$167.firstChild, _el$171 = _el$168.firstChild, [_el$172, _co$38] = getNextMarker(_el$171.nextSibling), _el$169 = _el$172.nextSibling, _el$173 = _el$169.nextSibling, [_el$174, _co$39] = getNextMarker(_el$173.nextSibling);
1177
+ _el$174.nextSibling;
1178
+ var _el$175 = _el$168.nextSibling;
1179
+ insert(_el$168, () => config().submitLabel, _el$172, _co$38);
1180
+ insert(_el$168, countdown, _el$174, _co$39);
1181
+ _el$175.$$click = () => {
1182
+ cancelCountdown();
1183
+ setUserInteracted(true);
1184
+ };
1185
+ runHydrationEvents();
1186
+ return _el$167;
1187
+ }
1188
+ }), _el$183, _co$42);
1189
+ insert(_el$177, () => config().submitLabel);
1190
+ effect(() => setAttribute(_el$154, "id", `scratchpad-form-${props.sectionId}`));
1191
+ return _el$154;
1192
+ }
1193
+ }), createComponent(Show, {
1194
+ get when() {
1195
+ return props.debugTrace;
1196
+ },
1197
+ get children() {
1198
+ return createComponent(FormDebugTrace, {
1199
+ get fields() {
1200
+ return config().fields;
1201
+ },
1202
+ get formData() {
1203
+ return formData();
1204
+ },
1205
+ get submittedValues() {
1206
+ return submittedValues();
1207
+ },
1208
+ get autoSubmitDelay() {
1209
+ return config().autoSubmitDelay;
1210
+ },
1211
+ get userInteracted() {
1212
+ return userInteracted();
1213
+ },
1214
+ get rawContent() {
1215
+ return props.content;
1216
+ }
1217
+ });
1218
+ }
1219
+ })];
1220
+ };
1221
+ const FormDebugTrace = (props) => {
1222
+ const [open, setOpen] = createSignal(false);
1223
+ const [showRaw, setShowRaw] = createSignal(false);
1224
+ const prefilledCount = () => props.fields.filter((f) => f.prefill != null).length;
1225
+ const requiredFields = () => props.fields.filter((f) => f.required);
1226
+ const missingRequired = () => requiredFields().filter((f) => f.prefill == null);
1227
+ const autoSubmitReason = () => {
1228
+ if (!props.autoSubmitDelay) return "no autoSubmitDelay configured";
1229
+ if (missingRequired().length > 0) return `${missingRequired().length} required field(s) without prefill`;
1230
+ if (props.userInteracted) return "user interacted — cancelled";
1231
+ return "all conditions met";
1232
+ };
1233
+ const serverDebug = () => {
1234
+ var _a;
1235
+ return (_a = props.rawContent) == null ? void 0 : _a._debug;
1236
+ };
1237
+ return (() => {
1238
+ var _el$192 = getNextElement(_tmpl$48), _el$193 = _el$192.firstChild, _el$194 = _el$193.firstChild, _el$195 = _el$194.nextSibling, _el$198 = _el$195.nextSibling, [_el$199, _co$44] = getNextMarker(_el$198.nextSibling), _el$196 = _el$199.nextSibling, _el$200 = _el$196.nextSibling, [_el$201, _co$45] = getNextMarker(_el$200.nextSibling);
1239
+ _el$201.nextSibling;
1240
+ var _el$256 = _el$193.nextSibling, [_el$257, _co$62] = getNextMarker(_el$256.nextSibling);
1241
+ _el$193.$$click = () => setOpen(!open());
1242
+ insert(_el$194, () => open() ? "▾" : "▸");
1243
+ insert(_el$193, prefilledCount, _el$199, _co$44);
1244
+ insert(_el$193, () => props.fields.length, _el$201, _co$45);
1245
+ insert(_el$192, createComponent(Show, {
1112
1246
  get when() {
1113
- return countdown() != null;
1247
+ return open();
1114
1248
  },
1115
1249
  get children() {
1116
- var _el$155 = getNextElement(_tmpl$39), _el$156 = _el$155.firstChild, _el$159 = _el$156.firstChild, [_el$160, _co$34] = getNextMarker(_el$159.nextSibling), _el$157 = _el$160.nextSibling, _el$161 = _el$157.nextSibling, [_el$162, _co$35] = getNextMarker(_el$161.nextSibling);
1117
- _el$162.nextSibling;
1118
- var _el$163 = _el$156.nextSibling;
1119
- insert(_el$156, () => config().submitLabel, _el$160, _co$34);
1120
- insert(_el$156, countdown, _el$162, _co$35);
1121
- _el$163.$$click = () => {
1122
- cancelCountdown();
1123
- setUserInteracted(true);
1124
- };
1250
+ var _el$202 = getNextElement(_tmpl$47), _el$203 = _el$202.firstChild, _el$204 = _el$203.firstChild, _el$207 = _el$204.nextSibling, [_el$208, _co$46] = getNextMarker(_el$207.nextSibling), _el$205 = _el$208.nextSibling, _el$209 = _el$205.nextSibling, [_el$210, _co$47] = getNextMarker(_el$209.nextSibling);
1251
+ _el$210.nextSibling;
1252
+ var _el$252 = _el$203.nextSibling, [_el$253, _co$60] = getNextMarker(_el$252.nextSibling), _el$211 = _el$253.nextSibling, _el$212 = _el$211.firstChild, _el$217 = _el$212.nextSibling, [_el$218, _co$49] = getNextMarker(_el$217.nextSibling), _el$219 = _el$218.nextSibling, [_el$220, _co$50] = getNextMarker(_el$219.nextSibling), _el$213 = _el$220.nextSibling, _el$214 = _el$213.firstChild, _el$215 = _el$214.nextSibling, [_el$216, _co$48] = getNextMarker(_el$215.nextSibling), _el$254 = _el$211.nextSibling, [_el$255, _co$61] = getNextMarker(_el$254.nextSibling), _el$244 = _el$255.nextSibling, _el$245 = _el$244.firstChild, _el$247 = _el$245.firstChild, [_el$248, _co$58] = getNextMarker(_el$247.nextSibling);
1253
+ _el$248.nextSibling;
1254
+ var _el$250 = _el$245.nextSibling, [_el$251, _co$59] = getNextMarker(_el$250.nextSibling);
1255
+ insert(_el$203, () => props.fields.length, _el$208, _co$46);
1256
+ insert(_el$203, prefilledCount, _el$210, _co$47);
1257
+ insert(_el$202, createComponent(For, {
1258
+ get each() {
1259
+ return props.fields;
1260
+ },
1261
+ children: (field) => (() => {
1262
+ var _el$258 = getNextElement(_tmpl$56), _el$259 = _el$258.firstChild, _el$261 = _el$259.firstChild, [_el$262, _co$63] = getNextMarker(_el$261.nextSibling);
1263
+ _el$262.nextSibling;
1264
+ var _el$287 = _el$259.nextSibling, [_el$288, _co$69] = getNextMarker(_el$287.nextSibling), _el$289 = _el$288.nextSibling, [_el$290, _co$70] = getNextMarker(_el$289.nextSibling), _el$291 = _el$290.nextSibling, [_el$292, _co$71] = getNextMarker(_el$291.nextSibling), _el$293 = _el$292.nextSibling, [_el$294, _co$72] = getNextMarker(_el$293.nextSibling), _el$295 = _el$294.nextSibling, [_el$296, _co$73] = getNextMarker(_el$295.nextSibling), _el$297 = _el$296.nextSibling, [_el$298, _co$74] = getNextMarker(_el$297.nextSibling), _el$299 = _el$298.nextSibling, [_el$300, _co$75] = getNextMarker(_el$299.nextSibling), _el$301 = _el$300.nextSibling, [_el$302, _co$76] = getNextMarker(_el$301.nextSibling);
1265
+ insert(_el$259, () => field.name, _el$262, _co$63);
1266
+ insert(_el$258, createComponent(Show, {
1267
+ get when() {
1268
+ return field.prefill != null;
1269
+ },
1270
+ get children() {
1271
+ var _el$263 = getNextElement(_tmpl$49), _el$264 = _el$263.firstChild, _el$265 = _el$264.nextSibling, [_el$266, _co$64] = getNextMarker(_el$265.nextSibling);
1272
+ insert(_el$263, () => JSON.stringify(field.prefill), _el$266, _co$64);
1273
+ return _el$263;
1274
+ }
1275
+ }), _el$288, _co$69);
1276
+ insert(_el$258, createComponent(Show, {
1277
+ get when() {
1278
+ return !field.prefill;
1279
+ },
1280
+ get children() {
1281
+ return getNextElement(_tmpl$50);
1282
+ }
1283
+ }), _el$290, _co$70);
1284
+ insert(_el$258, createComponent(Show, {
1285
+ get when() {
1286
+ return field.source;
1287
+ },
1288
+ get children() {
1289
+ var _el$268 = getNextElement(_tmpl$51), _el$269 = _el$268.firstChild, _el$270 = _el$269.nextSibling, [_el$271, _co$65] = getNextMarker(_el$270.nextSibling);
1290
+ insert(_el$268, () => field.source, _el$271, _co$65);
1291
+ return _el$268;
1292
+ }
1293
+ }), _el$292, _co$71);
1294
+ insert(_el$258, createComponent(Show, {
1295
+ get when() {
1296
+ return field.displayHint;
1297
+ },
1298
+ get children() {
1299
+ var _el$272 = getNextElement(_tmpl$52), _el$273 = _el$272.firstChild, _el$275 = _el$273.nextSibling, [_el$276, _co$66] = getNextMarker(_el$275.nextSibling);
1300
+ _el$276.nextSibling;
1301
+ insert(_el$272, () => field.displayHint, _el$276, _co$66);
1302
+ return _el$272;
1303
+ }
1304
+ }), _el$294, _co$72);
1305
+ insert(_el$258, createComponent(Show, {
1306
+ get when() {
1307
+ return field.muted;
1308
+ },
1309
+ get children() {
1310
+ return getNextElement(_tmpl$53);
1311
+ }
1312
+ }), _el$296, _co$73);
1313
+ insert(_el$258, createComponent(Show, {
1314
+ get when() {
1315
+ return field.prefillMode;
1316
+ },
1317
+ get children() {
1318
+ var _el$278 = getNextElement(_tmpl$54), _el$279 = _el$278.firstChild, _el$280 = _el$279.nextSibling, [_el$281, _co$67] = getNextMarker(_el$280.nextSibling);
1319
+ insert(_el$278, () => field.prefillMode, _el$281, _co$67);
1320
+ return _el$278;
1321
+ }
1322
+ }), _el$298, _co$74);
1323
+ insert(_el$258, createComponent(Show, {
1324
+ get when() {
1325
+ return field.valueFormat;
1326
+ },
1327
+ get children() {
1328
+ var _el$282 = getNextElement(_tmpl$55), _el$283 = _el$282.firstChild, _el$285 = _el$283.nextSibling, [_el$286, _co$68] = getNextMarker(_el$285.nextSibling);
1329
+ _el$286.nextSibling;
1330
+ insert(_el$282, () => field.valueFormat, _el$286, _co$68);
1331
+ return _el$282;
1332
+ }
1333
+ }), _el$300, _co$75);
1334
+ insert(_el$258, createComponent(Show, {
1335
+ get when() {
1336
+ return props.submittedValues;
1337
+ },
1338
+ get children() {
1339
+ return (() => {
1340
+ const v = props.submittedValues[field.name];
1341
+ const hasValue = v !== void 0 && v !== "" && !(Array.isArray(v) && v.length === 0);
1342
+ return (() => {
1343
+ var _el$303 = getNextElement(_tmpl$57), _el$304 = _el$303.firstChild, _el$306 = _el$304.nextSibling, [_el$307, _co$77] = getNextMarker(_el$306.nextSibling);
1344
+ className(_el$303, hasValue ? "text-green-600 dark:text-green-400" : "text-gray-400");
1345
+ insert(_el$303, () => hasValue ? `${JSON.stringify(v)} ✓` : "(empty)", _el$307, _co$77);
1346
+ return _el$303;
1347
+ })();
1348
+ })();
1349
+ }
1350
+ }), _el$302, _co$76);
1351
+ return _el$258;
1352
+ })()
1353
+ }), _el$253, _co$60);
1354
+ insert(_el$211, () => props.autoSubmitDelay ? "true" : "false", _el$218, _co$49);
1355
+ insert(_el$211, (() => {
1356
+ var _c$5 = memo(() => !!props.autoSubmitDelay);
1357
+ return () => _c$5() ? ` (${props.autoSubmitDelay}ms)` : "";
1358
+ })(), _el$220, _co$50);
1359
+ insert(_el$213, autoSubmitReason, _el$216, _co$48);
1360
+ insert(_el$202, createComponent(Show, {
1361
+ get when() {
1362
+ return serverDebug();
1363
+ },
1364
+ get children() {
1365
+ var _el$221 = getNextElement(_tmpl$45), _el$222 = _el$221.firstChild, _el$238 = _el$222.nextSibling, [_el$239, _co$55] = getNextMarker(_el$238.nextSibling), _el$240 = _el$239.nextSibling, [_el$241, _co$56] = getNextMarker(_el$240.nextSibling), _el$242 = _el$241.nextSibling, [_el$243, _co$57] = getNextMarker(_el$242.nextSibling);
1366
+ insert(_el$221, createComponent(Show, {
1367
+ get when() {
1368
+ var _a;
1369
+ return (_a = serverDebug()) == null ? void 0 : _a.resolvers;
1370
+ },
1371
+ get children() {
1372
+ return createComponent(For, {
1373
+ get each() {
1374
+ return serverDebug().resolvers;
1375
+ },
1376
+ children: (r) => (() => {
1377
+ var _el$308 = getNextElement(_tmpl$58), _el$316 = _el$308.firstChild, [_el$317, _co$78] = getNextMarker(_el$316.nextSibling), _el$309 = _el$317.nextSibling, _el$318 = _el$309.nextSibling, [_el$319, _co$79] = getNextMarker(_el$318.nextSibling), _el$310 = _el$319.nextSibling, _el$320 = _el$310.nextSibling, [_el$321, _co$80] = getNextMarker(_el$320.nextSibling), _el$311 = _el$321.nextSibling, _el$322 = _el$311.nextSibling, [_el$323, _co$81] = getNextMarker(_el$322.nextSibling), _el$314 = _el$323.nextSibling, _el$324 = _el$314.nextSibling, [_el$325, _co$82] = getNextMarker(_el$324.nextSibling);
1378
+ _el$325.nextSibling;
1379
+ insert(_el$308, () => r.field, _el$317, _co$78);
1380
+ insert(_el$308, () => r.resolver, _el$319, _co$79);
1381
+ insert(_el$308, () => r.input, _el$321, _co$80);
1382
+ insert(_el$308, () => r.output, _el$323, _co$81);
1383
+ insert(_el$308, () => r.ms, _el$325, _co$82);
1384
+ return _el$308;
1385
+ })()
1386
+ });
1387
+ }
1388
+ }), _el$239, _co$55);
1389
+ insert(_el$221, createComponent(Show, {
1390
+ get when() {
1391
+ var _a;
1392
+ return (_a = serverDebug()) == null ? void 0 : _a.routing;
1393
+ },
1394
+ get children() {
1395
+ var _el$223 = getNextElement(_tmpl$43), _el$224 = _el$223.firstChild, _el$228 = _el$224.nextSibling, [_el$229, _co$51] = getNextMarker(_el$228.nextSibling), _el$225 = _el$229.nextSibling, _el$230 = _el$225.nextSibling, [_el$231, _co$52] = getNextMarker(_el$230.nextSibling), _el$226 = _el$231.nextSibling, _el$232 = _el$226.nextSibling, [_el$233, _co$53] = getNextMarker(_el$232.nextSibling);
1396
+ _el$233.nextSibling;
1397
+ insert(_el$223, () => serverDebug().routing.topic, _el$229, _co$51);
1398
+ insert(_el$223, () => serverDebug().routing.method, _el$231, _co$52);
1399
+ insert(_el$223, () => serverDebug().routing.ms, _el$233, _co$53);
1400
+ return _el$223;
1401
+ }
1402
+ }), _el$241, _co$56);
1403
+ insert(_el$221, createComponent(Show, {
1404
+ get when() {
1405
+ var _a;
1406
+ return (_a = serverDebug()) == null ? void 0 : _a.missingFields;
1407
+ },
1408
+ get children() {
1409
+ var _el$234 = getNextElement(_tmpl$44), _el$235 = _el$234.firstChild, _el$236 = _el$235.nextSibling, [_el$237, _co$54] = getNextMarker(_el$236.nextSibling);
1410
+ insert(_el$234, () => serverDebug().missingFields.join(", "), _el$237, _co$54);
1411
+ return _el$234;
1412
+ }
1413
+ }), _el$243, _co$57);
1414
+ return _el$221;
1415
+ }
1416
+ }), _el$255, _co$61);
1417
+ _el$245.$$click = () => setShowRaw(!showRaw());
1418
+ insert(_el$245, () => showRaw() ? "Hide" : "Show", _el$248, _co$58);
1419
+ insert(_el$244, createComponent(Show, {
1420
+ get when() {
1421
+ return showRaw();
1422
+ },
1423
+ get children() {
1424
+ var _el$249 = getNextElement(_tmpl$46);
1425
+ insert(_el$249, () => JSON.stringify(props.rawContent, null, 2));
1426
+ return _el$249;
1427
+ }
1428
+ }), _el$251, _co$59);
1125
1429
  runHydrationEvents();
1126
- return _el$155;
1430
+ return _el$202;
1127
1431
  }
1128
- }), _el$169, _co$37);
1129
- insert(_el$165, () => config().submitLabel);
1130
- effect(() => setAttribute(_el$154, "id", `scratchpad-form-${props.sectionId}`));
1131
- return _el$154;
1432
+ }), _el$257, _co$62);
1433
+ runHydrationEvents();
1434
+ return _el$192;
1132
1435
  })();
1133
1436
  };
1134
1437
  const EnrichedStepsSection = (props) => {
@@ -1140,35 +1443,35 @@ const EnrichedStepsSection = (props) => {
1140
1443
  };
1141
1444
  };
1142
1445
  return (() => {
1143
- var _el$170 = getNextElement(_tmpl$42), _el$173 = _el$170.firstChild, [_el$174, _co$38] = getNextMarker(_el$173.nextSibling), _el$175 = _el$174.nextSibling, [_el$176, _co$39] = getNextMarker(_el$175.nextSibling);
1144
- insert(_el$170, createComponent(For, {
1446
+ var _el$326 = getNextElement(_tmpl$60), _el$329 = _el$326.firstChild, [_el$330, _co$83] = getNextMarker(_el$329.nextSibling), _el$331 = _el$330.nextSibling, [_el$332, _co$84] = getNextMarker(_el$331.nextSibling);
1447
+ insert(_el$326, createComponent(For, {
1145
1448
  get each() {
1146
1449
  return stepsData().steps;
1147
1450
  },
1148
1451
  children: (step) => (() => {
1149
- var _el$177 = getNextElement(_tmpl$45), _el$178 = _el$177.firstChild, _el$179 = _el$178.firstChild, _el$184 = _el$179.nextSibling, [_el$185, _co$41] = getNextMarker(_el$184.nextSibling), _el$186 = _el$185.nextSibling, [_el$187, _co$42] = getNextMarker(_el$186.nextSibling), _el$189 = _el$178.nextSibling, [_el$190, _co$43] = getNextMarker(_el$189.nextSibling);
1150
- insert(_el$179, (() => {
1151
- var _c$5 = memo(() => step.status === "done");
1152
- return () => _c$5() ? "✅" : step.status === "active" ? "●" : "○";
1452
+ var _el$333 = getNextElement(_tmpl$63), _el$334 = _el$333.firstChild, _el$335 = _el$334.firstChild, _el$340 = _el$335.nextSibling, [_el$341, _co$86] = getNextMarker(_el$340.nextSibling), _el$342 = _el$341.nextSibling, [_el$343, _co$87] = getNextMarker(_el$342.nextSibling), _el$345 = _el$334.nextSibling, [_el$346, _co$88] = getNextMarker(_el$345.nextSibling);
1453
+ insert(_el$335, (() => {
1454
+ var _c$6 = memo(() => step.status === "done");
1455
+ return () => _c$6() ? "✅" : step.status === "active" ? "●" : "○";
1153
1456
  })());
1154
- insert(_el$178, () => step.label, _el$185, _co$41);
1155
- insert(_el$178, createComponent(Show, {
1457
+ insert(_el$334, () => step.label, _el$341, _co$86);
1458
+ insert(_el$334, createComponent(Show, {
1156
1459
  get when() {
1157
1460
  return memo(() => !!step.description)() && step.status === "active";
1158
1461
  },
1159
1462
  get children() {
1160
- var _el$180 = getNextElement(_tmpl$43), _el$181 = _el$180.firstChild, _el$182 = _el$181.nextSibling, [_el$183, _co$40] = getNextMarker(_el$182.nextSibling);
1161
- insert(_el$180, () => step.description, _el$183, _co$40);
1162
- return _el$180;
1463
+ var _el$336 = getNextElement(_tmpl$61), _el$337 = _el$336.firstChild, _el$338 = _el$337.nextSibling, [_el$339, _co$85] = getNextMarker(_el$338.nextSibling);
1464
+ insert(_el$336, () => step.description, _el$339, _co$85);
1465
+ return _el$336;
1163
1466
  }
1164
- }), _el$187, _co$42);
1165
- insert(_el$177, createComponent(Show, {
1467
+ }), _el$343, _co$87);
1468
+ insert(_el$333, createComponent(Show, {
1166
1469
  get when() {
1167
1470
  return memo(() => step.status === "active")() && step.content;
1168
1471
  },
1169
1472
  get children() {
1170
- var _el$188 = getNextElement(_tmpl$44);
1171
- insert(_el$188, createComponent(SectionRenderer, {
1473
+ var _el$344 = getNextElement(_tmpl$62);
1474
+ insert(_el$344, createComponent(SectionRenderer, {
1172
1475
  get section() {
1173
1476
  return step.content;
1174
1477
  },
@@ -1180,38 +1483,38 @@ const EnrichedStepsSection = (props) => {
1180
1483
  return props.onAction;
1181
1484
  }
1182
1485
  }));
1183
- return _el$188;
1486
+ return _el$344;
1184
1487
  }
1185
- }), _el$190, _co$43);
1488
+ }), _el$346, _co$88);
1186
1489
  effect((_p$) => {
1187
1490
  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"}`;
1188
- _v$4 !== _p$.e && className(_el$177, _p$.e = _v$4);
1189
- _v$5 !== _p$.t && className(_el$178, _p$.t = _v$5);
1491
+ _v$4 !== _p$.e && className(_el$333, _p$.e = _v$4);
1492
+ _v$5 !== _p$.t && className(_el$334, _p$.t = _v$5);
1190
1493
  return _p$;
1191
1494
  }, {
1192
1495
  e: void 0,
1193
1496
  t: void 0
1194
1497
  });
1195
- return _el$177;
1498
+ return _el$333;
1196
1499
  })()
1197
- }), _el$174, _co$38);
1198
- insert(_el$170, createComponent(Show, {
1500
+ }), _el$330, _co$83);
1501
+ insert(_el$326, createComponent(Show, {
1199
1502
  get when() {
1200
1503
  return stepsData().steps.some((s) => s.status === "active");
1201
1504
  },
1202
1505
  get children() {
1203
- var _el$171 = getNextElement(_tmpl$41), _el$172 = _el$171.firstChild;
1204
- _el$172.$$click = () => {
1506
+ var _el$327 = getNextElement(_tmpl$59), _el$328 = _el$327.firstChild;
1507
+ _el$328.$$click = () => {
1205
1508
  var _a;
1206
1509
  return (_a = props.onAction) == null ? void 0 : _a.call(props, "next_step", {
1207
1510
  step: stepsData().currentStep
1208
1511
  });
1209
1512
  };
1210
1513
  runHydrationEvents();
1211
- return _el$171;
1514
+ return _el$327;
1212
1515
  }
1213
- }), _el$176, _co$39);
1214
- return _el$170;
1516
+ }), _el$332, _co$84);
1517
+ return _el$326;
1215
1518
  })();
1216
1519
  };
1217
1520
  const ActionSection = (props) => {
@@ -1237,103 +1540,103 @@ const ActionSection = (props) => {
1237
1540
  };
1238
1541
  };
1239
1542
  return (() => {
1240
- var _el$191 = getNextElement(_tmpl$49), _el$206 = _el$191.firstChild, [_el$207, _co$47] = getNextMarker(_el$206.nextSibling), _el$208 = _el$207.nextSibling, [_el$209, _co$48] = getNextMarker(_el$208.nextSibling), _el$210 = _el$209.nextSibling, [_el$211, _co$49] = getNextMarker(_el$210.nextSibling), _el$205 = _el$211.nextSibling;
1241
- insert(_el$191, createComponent(Show, {
1543
+ var _el$347 = getNextElement(_tmpl$67), _el$362 = _el$347.firstChild, [_el$363, _co$92] = getNextMarker(_el$362.nextSibling), _el$364 = _el$363.nextSibling, [_el$365, _co$93] = getNextMarker(_el$364.nextSibling), _el$366 = _el$365.nextSibling, [_el$367, _co$94] = getNextMarker(_el$366.nextSibling), _el$361 = _el$367.nextSibling;
1544
+ insert(_el$347, createComponent(Show, {
1242
1545
  get when() {
1243
1546
  return data().title;
1244
1547
  },
1245
1548
  get children() {
1246
- var _el$192 = getNextElement(_tmpl$46);
1247
- insert(_el$192, () => data().title);
1248
- return _el$192;
1549
+ var _el$348 = getNextElement(_tmpl$64);
1550
+ insert(_el$348, () => data().title);
1551
+ return _el$348;
1249
1552
  }
1250
- }), _el$207, _co$47);
1251
- insert(_el$191, createComponent(Show, {
1553
+ }), _el$363, _co$92);
1554
+ insert(_el$347, createComponent(Show, {
1252
1555
  get when() {
1253
1556
  return data().preview;
1254
1557
  },
1255
1558
  children: (preview) => (() => {
1256
- var _el$212 = getNextElement(_tmpl$52), _el$218 = _el$212.firstChild, [_el$219, _co$51] = getNextMarker(_el$218.nextSibling), _el$220 = _el$219.nextSibling, [_el$221, _co$52] = getNextMarker(_el$220.nextSibling);
1257
- insert(_el$212, createComponent(Show, {
1559
+ var _el$368 = getNextElement(_tmpl$70), _el$374 = _el$368.firstChild, [_el$375, _co$96] = getNextMarker(_el$374.nextSibling), _el$376 = _el$375.nextSibling, [_el$377, _co$97] = getNextMarker(_el$376.nextSibling);
1560
+ insert(_el$368, createComponent(Show, {
1258
1561
  get when() {
1259
1562
  return preview().count != null;
1260
1563
  },
1261
1564
  get children() {
1262
1565
  return [(() => {
1263
- var _el$213 = getNextElement(_tmpl$50);
1264
- insert(_el$213, () => preview().count);
1265
- return _el$213;
1566
+ var _el$369 = getNextElement(_tmpl$68);
1567
+ insert(_el$369, () => preview().count);
1568
+ return _el$369;
1266
1569
  })(), " items"];
1267
1570
  }
1268
- }), _el$219, _co$51);
1269
- insert(_el$212, createComponent(Show, {
1571
+ }), _el$375, _co$96);
1572
+ insert(_el$368, createComponent(Show, {
1270
1573
  get when() {
1271
1574
  return preview().summary;
1272
1575
  },
1273
1576
  get children() {
1274
- var _el$214 = getNextElement(_tmpl$51), _el$215 = _el$214.firstChild, _el$216 = _el$215.nextSibling, [_el$217, _co$50] = getNextMarker(_el$216.nextSibling);
1275
- insert(_el$214, () => preview().summary, _el$217, _co$50);
1276
- return _el$214;
1577
+ var _el$370 = getNextElement(_tmpl$69), _el$371 = _el$370.firstChild, _el$372 = _el$371.nextSibling, [_el$373, _co$95] = getNextMarker(_el$372.nextSibling);
1578
+ insert(_el$370, () => preview().summary, _el$373, _co$95);
1579
+ return _el$370;
1277
1580
  }
1278
- }), _el$221, _co$52);
1279
- return _el$212;
1581
+ }), _el$377, _co$97);
1582
+ return _el$368;
1280
1583
  })()
1281
- }), _el$209, _co$48);
1282
- insert(_el$191, createComponent(Show, {
1584
+ }), _el$365, _co$93);
1585
+ insert(_el$347, createComponent(Show, {
1283
1586
  get when() {
1284
1587
  return memo(() => !!data().validation)() && data().validation.confidence != null;
1285
1588
  },
1286
1589
  get children() {
1287
- var _el$193 = getNextElement(_tmpl$48), _el$194 = _el$193.firstChild, _el$196 = _el$194.firstChild, [_el$197, _co$44] = getNextMarker(_el$196.nextSibling);
1288
- _el$197.nextSibling;
1289
- var _el$203 = _el$194.nextSibling, [_el$204, _co$46] = getNextMarker(_el$203.nextSibling);
1290
- insert(_el$194, () => Math.round(data().validation.confidence * 100), _el$197, _co$44);
1291
- insert(_el$193, createComponent(Show, {
1590
+ var _el$349 = getNextElement(_tmpl$66), _el$350 = _el$349.firstChild, _el$352 = _el$350.firstChild, [_el$353, _co$89] = getNextMarker(_el$352.nextSibling);
1591
+ _el$353.nextSibling;
1592
+ var _el$359 = _el$350.nextSibling, [_el$360, _co$91] = getNextMarker(_el$359.nextSibling);
1593
+ insert(_el$350, () => Math.round(data().validation.confidence * 100), _el$353, _co$89);
1594
+ insert(_el$349, createComponent(Show, {
1292
1595
  get when() {
1293
1596
  var _a;
1294
1597
  return ((_a = data().validation.hallucinated) == null ? void 0 : _a.length) > 0;
1295
1598
  },
1296
1599
  get children() {
1297
- var _el$198 = getNextElement(_tmpl$47), _el$199 = _el$198.firstChild, _el$201 = _el$199.nextSibling, [_el$202, _co$45] = getNextMarker(_el$201.nextSibling);
1298
- _el$202.nextSibling;
1299
- insert(_el$198, () => data().validation.hallucinated.length, _el$202, _co$45);
1300
- return _el$198;
1600
+ var _el$354 = getNextElement(_tmpl$65), _el$355 = _el$354.firstChild, _el$357 = _el$355.nextSibling, [_el$358, _co$90] = getNextMarker(_el$357.nextSibling);
1601
+ _el$358.nextSibling;
1602
+ insert(_el$354, () => data().validation.hallucinated.length, _el$358, _co$90);
1603
+ return _el$354;
1301
1604
  }
1302
- }), _el$204, _co$46);
1303
- effect((_$p) => classList(_el$194, {
1605
+ }), _el$360, _co$91);
1606
+ effect((_$p) => classList(_el$350, {
1304
1607
  "text-green-600 dark:text-green-400": data().validation.confidence >= 0.8,
1305
1608
  "text-amber-600 dark:text-amber-400": data().validation.confidence >= 0.5 && data().validation.confidence < 0.8,
1306
1609
  "text-red-600 dark:text-red-400": data().validation.confidence < 0.5
1307
1610
  }, _$p));
1308
- return _el$193;
1611
+ return _el$349;
1309
1612
  }
1310
- }), _el$211, _co$49);
1311
- insert(_el$205, createComponent(For, {
1613
+ }), _el$367, _co$94);
1614
+ insert(_el$361, createComponent(For, {
1312
1615
  get each() {
1313
1616
  return data().actions;
1314
1617
  },
1315
1618
  children: (item) => (() => {
1316
- var _el$222 = getNextElement(_tmpl$38), _el$224 = _el$222.firstChild, [_el$225, _co$53] = getNextMarker(_el$224.nextSibling), _el$226 = _el$225.nextSibling, [_el$227, _co$54] = getNextMarker(_el$226.nextSibling);
1317
- addEventListener(_el$222, "click", () => {
1619
+ var _el$378 = getNextElement(_tmpl$38), _el$380 = _el$378.firstChild, [_el$381, _co$98] = getNextMarker(_el$380.nextSibling), _el$382 = _el$381.nextSibling, [_el$383, _co$99] = getNextMarker(_el$382.nextSibling);
1620
+ addEventListener(_el$378, "click", () => {
1318
1621
  var _a;
1319
1622
  return (_a = props.onAction) == null ? void 0 : _a.call(props, item.value || item.action || item.label, item);
1320
1623
  });
1321
- insert(_el$222, createComponent(Show, {
1624
+ insert(_el$378, createComponent(Show, {
1322
1625
  get when() {
1323
1626
  return item.icon;
1324
1627
  },
1325
1628
  get children() {
1326
- var _el$223 = getNextElement(_tmpl$53);
1327
- insert(_el$223, () => item.icon);
1328
- return _el$223;
1629
+ var _el$379 = getNextElement(_tmpl$71);
1630
+ insert(_el$379, () => item.icon);
1631
+ return _el$379;
1329
1632
  }
1330
- }), _el$225, _co$53);
1331
- insert(_el$222, () => item.label, _el$227, _co$54);
1332
- effect(() => 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"}`));
1333
- return _el$222;
1633
+ }), _el$381, _co$98);
1634
+ insert(_el$378, () => item.label, _el$383, _co$99);
1635
+ effect(() => className(_el$378, `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"}`));
1636
+ return _el$378;
1334
1637
  })()
1335
1638
  }));
1336
- return _el$191;
1639
+ return _el$347;
1337
1640
  })();
1338
1641
  };
1339
1642
  const UnderstandingSection = (props) => {
@@ -1357,39 +1660,39 @@ const UnderstandingSection = (props) => {
1357
1660
  }
1358
1661
  };
1359
1662
  return (() => {
1360
- var _el$228 = getNextElement(_tmpl$54), _el$229 = _el$228.firstChild, _el$231 = _el$229.nextSibling, [_el$232, _co$55] = getNextMarker(_el$231.nextSibling);
1361
- insert(_el$229, createComponent(For, {
1663
+ var _el$384 = getNextElement(_tmpl$72), _el$385 = _el$384.firstChild, _el$387 = _el$385.nextSibling, [_el$388, _co$100] = getNextMarker(_el$387.nextSibling);
1664
+ insert(_el$385, createComponent(For, {
1362
1665
  get each() {
1363
1666
  return data().detections;
1364
1667
  },
1365
1668
  children: (det) => (() => {
1366
- var _el$233 = getNextElement(_tmpl$55), _el$234 = _el$233.firstChild, _el$235 = _el$234.nextSibling;
1367
- insert(_el$234, () => det.label);
1368
- insert(_el$235, () => det.value);
1369
- effect(() => className(_el$234, `px-1.5 py-0.5 text-xs font-medium rounded ${confidenceClass(det.confidence)}`));
1370
- return _el$233;
1669
+ var _el$389 = getNextElement(_tmpl$73), _el$390 = _el$389.firstChild, _el$391 = _el$390.nextSibling;
1670
+ insert(_el$390, () => det.label);
1671
+ insert(_el$391, () => det.value);
1672
+ effect(() => className(_el$390, `px-1.5 py-0.5 text-xs font-medium rounded ${confidenceClass(det.confidence)}`));
1673
+ return _el$389;
1371
1674
  })()
1372
1675
  }));
1373
- insert(_el$228, createComponent(Show, {
1676
+ insert(_el$384, createComponent(Show, {
1374
1677
  get when() {
1375
1678
  return data().warnings.length > 0;
1376
1679
  },
1377
1680
  get children() {
1378
- var _el$230 = getNextElement(_tmpl$25);
1379
- insert(_el$230, createComponent(For, {
1681
+ var _el$386 = getNextElement(_tmpl$25);
1682
+ insert(_el$386, createComponent(For, {
1380
1683
  get each() {
1381
1684
  return data().warnings;
1382
1685
  },
1383
1686
  children: (w) => (() => {
1384
- var _el$236 = getNextElement(_tmpl$56), _el$237 = _el$236.firstChild, _el$238 = _el$237.nextSibling;
1385
- insert(_el$238, w);
1386
- return _el$236;
1687
+ var _el$392 = getNextElement(_tmpl$74), _el$393 = _el$392.firstChild, _el$394 = _el$393.nextSibling;
1688
+ insert(_el$394, w);
1689
+ return _el$392;
1387
1690
  })()
1388
1691
  }));
1389
- return _el$230;
1692
+ return _el$386;
1390
1693
  }
1391
- }), _el$232, _co$55);
1392
- return _el$228;
1694
+ }), _el$388, _co$100);
1695
+ return _el$384;
1393
1696
  })();
1394
1697
  };
1395
1698
  const FeedbackSection = (props) => {
@@ -1444,81 +1747,81 @@ const FeedbackSection = (props) => {
1444
1747
  (_a = props.onAction) == null ? void 0 : _a.call(props, "feedback", payload);
1445
1748
  };
1446
1749
  return (() => {
1447
- var _el$239 = getNextElement(_tmpl$61), _el$240 = _el$239.firstChild, _el$258 = _el$240.nextSibling, [_el$259, _co$60] = getNextMarker(_el$258.nextSibling), _el$260 = _el$259.nextSibling, [_el$261, _co$61] = getNextMarker(_el$260.nextSibling);
1448
- insert(_el$240, () => data().question);
1449
- insert(_el$239, createComponent(Show, {
1750
+ var _el$395 = getNextElement(_tmpl$79), _el$396 = _el$395.firstChild, _el$414 = _el$396.nextSibling, [_el$415, _co$105] = getNextMarker(_el$414.nextSibling), _el$416 = _el$415.nextSibling, [_el$417, _co$106] = getNextMarker(_el$416.nextSibling);
1751
+ insert(_el$396, () => data().question);
1752
+ insert(_el$395, createComponent(Show, {
1450
1753
  get when() {
1451
1754
  return submitted();
1452
1755
  },
1453
1756
  get children() {
1454
- var _el$241 = getNextElement(_tmpl$58), _el$242 = _el$241.firstChild, _el$244 = _el$242.firstChild, [_el$245, _co$56] = getNextMarker(_el$244.nextSibling), _el$243 = _el$245.nextSibling, _el$246 = _el$243.nextSibling, [_el$247, _co$57] = getNextMarker(_el$246.nextSibling), _el$252 = _el$242.nextSibling, [_el$253, _co$59] = getNextMarker(_el$252.nextSibling);
1455
- insert(_el$242, (() => {
1456
- var _c$6 = memo(() => submitted() === "approve");
1457
- return () => _c$6() ? "✅" : submitted() === "reject" ? "❌" : "💬";
1458
- })(), _el$245, _co$56);
1459
- insert(_el$242, submitted, _el$247, _co$57);
1460
- insert(_el$241, createComponent(Show, {
1757
+ var _el$397 = getNextElement(_tmpl$76), _el$398 = _el$397.firstChild, _el$400 = _el$398.firstChild, [_el$401, _co$101] = getNextMarker(_el$400.nextSibling), _el$399 = _el$401.nextSibling, _el$402 = _el$399.nextSibling, [_el$403, _co$102] = getNextMarker(_el$402.nextSibling), _el$408 = _el$398.nextSibling, [_el$409, _co$104] = getNextMarker(_el$408.nextSibling);
1758
+ insert(_el$398, (() => {
1759
+ var _c$7 = memo(() => submitted() === "approve");
1760
+ return () => _c$7() ? "✅" : submitted() === "reject" ? "❌" : "💬";
1761
+ })(), _el$401, _co$101);
1762
+ insert(_el$398, submitted, _el$403, _co$102);
1763
+ insert(_el$397, createComponent(Show, {
1461
1764
  get when() {
1462
1765
  return comment();
1463
1766
  },
1464
1767
  get children() {
1465
- var _el$248 = getNextElement(_tmpl$57), _el$249 = _el$248.firstChild, _el$250 = _el$249.nextSibling, [_el$251, _co$58] = getNextMarker(_el$250.nextSibling);
1466
- insert(_el$248, comment, _el$251, _co$58);
1467
- return _el$248;
1768
+ var _el$404 = getNextElement(_tmpl$75), _el$405 = _el$404.firstChild, _el$406 = _el$405.nextSibling, [_el$407, _co$103] = getNextMarker(_el$406.nextSibling);
1769
+ insert(_el$404, comment, _el$407, _co$103);
1770
+ return _el$404;
1468
1771
  }
1469
- }), _el$253, _co$59);
1772
+ }), _el$409, _co$104);
1470
1773
  effect((_p$) => {
1471
1774
  var _v$6 = !!(submitted() === "approve"), _v$7 = !!(submitted() === "reject"), _v$8 = !!(submitted() !== "approve" && submitted() !== "reject");
1472
- _v$6 !== _p$.e && _el$242.classList.toggle("text-green-600", _p$.e = _v$6);
1473
- _v$7 !== _p$.t && _el$242.classList.toggle("text-red-600", _p$.t = _v$7);
1474
- _v$8 !== _p$.a && _el$242.classList.toggle("text-blue-600", _p$.a = _v$8);
1775
+ _v$6 !== _p$.e && _el$398.classList.toggle("text-green-600", _p$.e = _v$6);
1776
+ _v$7 !== _p$.t && _el$398.classList.toggle("text-red-600", _p$.t = _v$7);
1777
+ _v$8 !== _p$.a && _el$398.classList.toggle("text-blue-600", _p$.a = _v$8);
1475
1778
  return _p$;
1476
1779
  }, {
1477
1780
  e: void 0,
1478
1781
  t: void 0,
1479
1782
  a: void 0
1480
1783
  });
1481
- return _el$241;
1784
+ return _el$397;
1482
1785
  }
1483
- }), _el$259, _co$60);
1484
- insert(_el$239, createComponent(Show, {
1786
+ }), _el$415, _co$105);
1787
+ insert(_el$395, createComponent(Show, {
1485
1788
  get when() {
1486
1789
  return !submitted();
1487
1790
  },
1488
1791
  get children() {
1489
1792
  return [(() => {
1490
- var _el$254 = getNextElement(_tmpl$59);
1491
- insert(_el$254, createComponent(For, {
1793
+ var _el$410 = getNextElement(_tmpl$77);
1794
+ insert(_el$410, createComponent(For, {
1492
1795
  get each() {
1493
1796
  return data().options;
1494
1797
  },
1495
1798
  children: (option) => (() => {
1496
- var _el$262 = getNextElement(_tmpl$38), _el$264 = _el$262.firstChild, [_el$265, _co$62] = getNextMarker(_el$264.nextSibling), _el$266 = _el$265.nextSibling, [_el$267, _co$63] = getNextMarker(_el$266.nextSibling);
1497
- addEventListener(_el$262, "click", () => handleOption(option));
1498
- insert(_el$262, createComponent(Show, {
1799
+ var _el$418 = getNextElement(_tmpl$38), _el$420 = _el$418.firstChild, [_el$421, _co$107] = getNextMarker(_el$420.nextSibling), _el$422 = _el$421.nextSibling, [_el$423, _co$108] = getNextMarker(_el$422.nextSibling);
1800
+ addEventListener(_el$418, "click", () => handleOption(option));
1801
+ insert(_el$418, createComponent(Show, {
1499
1802
  get when() {
1500
1803
  return option.icon;
1501
1804
  },
1502
1805
  get children() {
1503
- var _el$263 = getNextElement(_tmpl$62);
1504
- insert(_el$263, () => option.icon);
1505
- return _el$263;
1806
+ var _el$419 = getNextElement(_tmpl$80);
1807
+ insert(_el$419, () => option.icon);
1808
+ return _el$419;
1506
1809
  }
1507
- }), _el$265, _co$62);
1508
- insert(_el$262, () => option.label, _el$267, _co$63);
1509
- effect(() => 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"}`));
1510
- return _el$262;
1810
+ }), _el$421, _co$107);
1811
+ insert(_el$418, () => option.label, _el$423, _co$108);
1812
+ effect(() => className(_el$418, `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"}`));
1813
+ return _el$418;
1511
1814
  })()
1512
1815
  }));
1513
- return _el$254;
1816
+ return _el$410;
1514
1817
  })(), createComponent(Show, {
1515
1818
  get when() {
1516
1819
  return data().allowFreeText || showComment();
1517
1820
  },
1518
1821
  get children() {
1519
- var _el$255 = getNextElement(_tmpl$60), _el$256 = _el$255.firstChild, _el$257 = _el$256.nextSibling;
1520
- _el$256.$$input = (e) => setComment(e.currentTarget.value);
1521
- addEventListener(_el$257, "click", () => {
1822
+ var _el$411 = getNextElement(_tmpl$78), _el$412 = _el$411.firstChild, _el$413 = _el$412.nextSibling;
1823
+ _el$412.$$input = (e) => setComment(e.currentTarget.value);
1824
+ addEventListener(_el$413, "click", () => {
1522
1825
  var _a;
1523
1826
  setSubmitted("comment");
1524
1827
  (_a = props.onAction) == null ? void 0 : _a.call(props, "feedback", {
@@ -1530,21 +1833,21 @@ const FeedbackSection = (props) => {
1530
1833
  });
1531
1834
  effect((_p$) => {
1532
1835
  var _v$9 = data().placeholder, _v$0 = showComment();
1533
- _v$9 !== _p$.e && setAttribute(_el$256, "placeholder", _p$.e = _v$9);
1534
- _v$0 !== _p$.t && setProperty(_el$256, "autofocus", _p$.t = _v$0);
1836
+ _v$9 !== _p$.e && setAttribute(_el$412, "placeholder", _p$.e = _v$9);
1837
+ _v$0 !== _p$.t && setProperty(_el$412, "autofocus", _p$.t = _v$0);
1535
1838
  return _p$;
1536
1839
  }, {
1537
1840
  e: void 0,
1538
1841
  t: void 0
1539
1842
  });
1540
- effect(() => setProperty(_el$256, "value", comment()));
1843
+ effect(() => setProperty(_el$412, "value", comment()));
1541
1844
  runHydrationEvents();
1542
- return _el$255;
1845
+ return _el$411;
1543
1846
  }
1544
1847
  })];
1545
1848
  }
1546
- }), _el$261, _co$61);
1547
- return _el$239;
1849
+ }), _el$417, _co$106);
1850
+ return _el$395;
1548
1851
  })();
1549
1852
  };
1550
1853
  const PromptSection = (props) => {
@@ -1559,56 +1862,56 @@ const PromptSection = (props) => {
1559
1862
  };
1560
1863
  };
1561
1864
  return (() => {
1562
- var _el$268 = getNextElement(_tmpl$66), _el$281 = _el$268.firstChild, [_el$282, _co$66] = getNextMarker(_el$281.nextSibling), _el$274 = _el$282.nextSibling, _el$283 = _el$274.nextSibling, [_el$284, _co$67] = getNextMarker(_el$283.nextSibling), _el$285 = _el$284.nextSibling, [_el$286, _co$68] = getNextMarker(_el$285.nextSibling);
1563
- insert(_el$268, createComponent(Show, {
1865
+ var _el$424 = getNextElement(_tmpl$84), _el$437 = _el$424.firstChild, [_el$438, _co$111] = getNextMarker(_el$437.nextSibling), _el$430 = _el$438.nextSibling, _el$439 = _el$430.nextSibling, [_el$440, _co$112] = getNextMarker(_el$439.nextSibling), _el$441 = _el$440.nextSibling, [_el$442, _co$113] = getNextMarker(_el$441.nextSibling);
1866
+ insert(_el$424, createComponent(Show, {
1564
1867
  get when() {
1565
1868
  return data().originalQuery;
1566
1869
  },
1567
1870
  get children() {
1568
- var _el$269 = getNextElement(_tmpl$63), _el$270 = _el$269.firstChild, _el$272 = _el$270.nextSibling, [_el$273, _co$64] = getNextMarker(_el$272.nextSibling);
1569
- _el$273.nextSibling;
1570
- insert(_el$269, () => data().originalQuery, _el$273, _co$64);
1571
- return _el$269;
1871
+ var _el$425 = getNextElement(_tmpl$81), _el$426 = _el$425.firstChild, _el$428 = _el$426.nextSibling, [_el$429, _co$109] = getNextMarker(_el$428.nextSibling);
1872
+ _el$429.nextSibling;
1873
+ insert(_el$425, () => data().originalQuery, _el$429, _co$109);
1874
+ return _el$425;
1572
1875
  }
1573
- }), _el$282, _co$66);
1574
- insert(_el$274, createComponent(For, {
1876
+ }), _el$438, _co$111);
1877
+ insert(_el$430, createComponent(For, {
1575
1878
  get each() {
1576
1879
  return Object.entries(data().extracted);
1577
1880
  },
1578
1881
  children: ([key, value]) => (() => {
1579
- var _el$287 = getNextElement(_tmpl$67), _el$288 = _el$287.firstChild, _el$290 = _el$288.firstChild, [_el$291, _co$69] = getNextMarker(_el$290.nextSibling);
1580
- _el$291.nextSibling;
1581
- var _el$292 = _el$288.nextSibling;
1582
- insert(_el$288, key, _el$291, _co$69);
1583
- insert(_el$292, () => String(value));
1584
- return _el$287;
1882
+ var _el$443 = getNextElement(_tmpl$85), _el$444 = _el$443.firstChild, _el$446 = _el$444.firstChild, [_el$447, _co$114] = getNextMarker(_el$446.nextSibling);
1883
+ _el$447.nextSibling;
1884
+ var _el$448 = _el$444.nextSibling;
1885
+ insert(_el$444, key, _el$447, _co$114);
1886
+ insert(_el$448, () => String(value));
1887
+ return _el$443;
1585
1888
  })()
1586
1889
  }));
1587
- insert(_el$268, createComponent(Show, {
1890
+ insert(_el$424, createComponent(Show, {
1588
1891
  get when() {
1589
1892
  return data().plan;
1590
1893
  },
1591
1894
  get children() {
1592
- var _el$275 = getNextElement(_tmpl$64), _el$276 = _el$275.firstChild, _el$277 = _el$276.nextSibling, _el$278 = _el$277.nextSibling, [_el$279, _co$65] = getNextMarker(_el$278.nextSibling);
1593
- insert(_el$275, () => data().plan, _el$279, _co$65);
1594
- return _el$275;
1895
+ var _el$431 = getNextElement(_tmpl$82), _el$432 = _el$431.firstChild, _el$433 = _el$432.nextSibling, _el$434 = _el$433.nextSibling, [_el$435, _co$110] = getNextMarker(_el$434.nextSibling);
1896
+ insert(_el$431, () => data().plan, _el$435, _co$110);
1897
+ return _el$431;
1595
1898
  }
1596
- }), _el$284, _co$67);
1597
- insert(_el$268, createComponent(Show, {
1899
+ }), _el$440, _co$112);
1900
+ insert(_el$424, createComponent(Show, {
1598
1901
  get when() {
1599
1902
  return data().editable;
1600
1903
  },
1601
1904
  get children() {
1602
- var _el$280 = getNextElement(_tmpl$65);
1603
- _el$280.$$click = () => {
1905
+ var _el$436 = getNextElement(_tmpl$83);
1906
+ _el$436.$$click = () => {
1604
1907
  var _a;
1605
1908
  return (_a = props.onAction) == null ? void 0 : _a.call(props, "edit_prompt", data());
1606
1909
  };
1607
1910
  runHydrationEvents();
1608
- return _el$280;
1911
+ return _el$436;
1609
1912
  }
1610
- }), _el$286, _co$68);
1611
- return _el$268;
1913
+ }), _el$442, _co$113);
1914
+ return _el$424;
1612
1915
  })();
1613
1916
  };
1614
1917
  const StepperProgressSection = (props) => {
@@ -1638,46 +1941,46 @@ const StepperProgressSection = (props) => {
1638
1941
  },
1639
1942
  get fallback() {
1640
1943
  return (() => {
1641
- var _el$294 = getNextElement(_tmpl$69);
1642
- insert(_el$294, createComponent(For, {
1944
+ var _el$450 = getNextElement(_tmpl$87);
1945
+ insert(_el$450, createComponent(For, {
1643
1946
  get each() {
1644
1947
  return data().steps;
1645
1948
  },
1646
1949
  children: (step) => (() => {
1647
- var _el$295 = 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] = getNextMarker(_el$308.nextSibling), _el$310 = _el$309.nextSibling, [_el$311, _co$73] = getNextMarker(_el$310.nextSibling);
1648
- insert(_el$296, () => statusIcon(step.status));
1649
- insert(_el$298, () => step.label);
1650
- insert(_el$297, createComponent(Show, {
1950
+ var _el$451 = getNextElement(_tmpl$90), _el$452 = _el$451.firstChild, _el$453 = _el$452.nextSibling, _el$454 = _el$453.firstChild, _el$464 = _el$454.nextSibling, [_el$465, _co$117] = getNextMarker(_el$464.nextSibling), _el$466 = _el$465.nextSibling, [_el$467, _co$118] = getNextMarker(_el$466.nextSibling);
1951
+ insert(_el$452, () => statusIcon(step.status));
1952
+ insert(_el$454, () => step.label);
1953
+ insert(_el$453, createComponent(Show, {
1651
1954
  get when() {
1652
1955
  return step.summary;
1653
1956
  },
1654
1957
  get children() {
1655
- var _el$299 = getNextElement(_tmpl$70), _el$300 = _el$299.firstChild, _el$301 = _el$300.nextSibling, [_el$302, _co$70] = getNextMarker(_el$301.nextSibling);
1656
- insert(_el$299, () => step.summary, _el$302, _co$70);
1657
- return _el$299;
1958
+ var _el$455 = getNextElement(_tmpl$88), _el$456 = _el$455.firstChild, _el$457 = _el$456.nextSibling, [_el$458, _co$115] = getNextMarker(_el$457.nextSibling);
1959
+ insert(_el$455, () => step.summary, _el$458, _co$115);
1960
+ return _el$455;
1658
1961
  }
1659
- }), _el$309, _co$72);
1660
- insert(_el$297, createComponent(Show, {
1962
+ }), _el$465, _co$117);
1963
+ insert(_el$453, createComponent(Show, {
1661
1964
  get when() {
1662
1965
  return step.duration_ms;
1663
1966
  },
1664
1967
  get children() {
1665
- var _el$303 = getNextElement(_tmpl$71), _el$304 = _el$303.firstChild, _el$306 = _el$304.nextSibling, [_el$307, _co$71] = getNextMarker(_el$306.nextSibling);
1666
- _el$307.nextSibling;
1667
- insert(_el$303, () => step.duration_ms, _el$307, _co$71);
1668
- return _el$303;
1968
+ var _el$459 = getNextElement(_tmpl$89), _el$460 = _el$459.firstChild, _el$462 = _el$460.nextSibling, [_el$463, _co$116] = getNextMarker(_el$462.nextSibling);
1969
+ _el$463.nextSibling;
1970
+ insert(_el$459, () => step.duration_ms, _el$463, _co$116);
1971
+ return _el$459;
1669
1972
  }
1670
- }), _el$311, _co$73);
1671
- effect(() => 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"}`));
1672
- return _el$295;
1973
+ }), _el$467, _co$118);
1974
+ effect(() => className(_el$451, `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"}`));
1975
+ return _el$451;
1673
1976
  })()
1674
1977
  }));
1675
- return _el$294;
1978
+ return _el$450;
1676
1979
  })();
1677
1980
  },
1678
1981
  get children() {
1679
- var _el$293 = getNextElement(_tmpl$68);
1680
- insert(_el$293, createComponent(For, {
1982
+ var _el$449 = getNextElement(_tmpl$86);
1983
+ insert(_el$449, createComponent(For, {
1681
1984
  get each() {
1682
1985
  return data().steps;
1683
1986
  },
@@ -1689,24 +1992,24 @@ const StepperProgressSection = (props) => {
1689
1992
  return getNextElement(_tmpl$13);
1690
1993
  }
1691
1994
  }), (() => {
1692
- var _el$313 = getNextElement(_tmpl$74), _el$314 = _el$313.firstChild, _el$315 = _el$314.nextSibling, _el$317 = _el$315.nextSibling, [_el$318, _co$74] = getNextMarker(_el$317.nextSibling);
1693
- insert(_el$314, () => statusIcon(step.status));
1694
- insert(_el$315, () => step.label);
1695
- insert(_el$313, createComponent(Show, {
1995
+ var _el$469 = getNextElement(_tmpl$92), _el$470 = _el$469.firstChild, _el$471 = _el$470.nextSibling, _el$473 = _el$471.nextSibling, [_el$474, _co$119] = getNextMarker(_el$473.nextSibling);
1996
+ insert(_el$470, () => statusIcon(step.status));
1997
+ insert(_el$471, () => step.label);
1998
+ insert(_el$469, createComponent(Show, {
1696
1999
  get when() {
1697
2000
  return step.summary;
1698
2001
  },
1699
2002
  get children() {
1700
- var _el$316 = getNextElement(_tmpl$73);
1701
- insert(_el$316, () => step.summary);
1702
- return _el$316;
2003
+ var _el$472 = getNextElement(_tmpl$91);
2004
+ insert(_el$472, () => step.summary);
2005
+ return _el$472;
1703
2006
  }
1704
- }), _el$318, _co$74);
1705
- effect(() => 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"}`));
1706
- return _el$313;
2007
+ }), _el$474, _co$119);
2008
+ effect(() => className(_el$469, `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"}`));
2009
+ return _el$469;
1707
2010
  })()]
1708
2011
  }));
1709
- return _el$293;
2012
+ return _el$449;
1710
2013
  }
1711
2014
  });
1712
2015
  };
@@ -1727,48 +2030,48 @@ const ErrorSectionRenderer = (props) => {
1727
2030
  };
1728
2031
  const isWarning = () => data().severity === "warning";
1729
2032
  return (() => {
1730
- var _el$319 = 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] = getNextMarker(_el$330.nextSibling), _el$332 = _el$331.nextSibling, [_el$333, _co$77] = getNextMarker(_el$332.nextSibling), _el$335 = _el$324.nextSibling, [_el$336, _co$78] = getNextMarker(_el$335.nextSibling);
1731
- insert(_el$321, () => isWarning() ? "⚠️" : "❌");
1732
- insert(_el$323, () => data().message);
1733
- insert(_el$324, createComponent(Show, {
2033
+ var _el$475 = getNextElement(_tmpl$96), _el$476 = _el$475.firstChild, _el$477 = _el$476.firstChild, _el$478 = _el$477.nextSibling, _el$479 = _el$478.firstChild, _el$480 = _el$479.nextSibling, _el$486 = _el$480.firstChild, [_el$487, _co$121] = getNextMarker(_el$486.nextSibling), _el$488 = _el$487.nextSibling, [_el$489, _co$122] = getNextMarker(_el$488.nextSibling), _el$491 = _el$480.nextSibling, [_el$492, _co$123] = getNextMarker(_el$491.nextSibling);
2034
+ insert(_el$477, () => isWarning() ? "⚠️" : "❌");
2035
+ insert(_el$479, () => data().message);
2036
+ insert(_el$480, createComponent(Show, {
1734
2037
  get when() {
1735
2038
  return data().retryAction;
1736
2039
  },
1737
2040
  get children() {
1738
- var _el$325 = getNextElement(_tmpl$75), _el$326 = _el$325.firstChild, _el$327 = _el$326.nextSibling, [_el$328, _co$75] = getNextMarker(_el$327.nextSibling);
1739
- _el$325.$$click = () => {
2041
+ var _el$481 = getNextElement(_tmpl$93), _el$482 = _el$481.firstChild, _el$483 = _el$482.nextSibling, [_el$484, _co$120] = getNextMarker(_el$483.nextSibling);
2042
+ _el$481.$$click = () => {
1740
2043
  var _a;
1741
2044
  return (_a = props.onAction) == null ? void 0 : _a.call(props, data().retryAction);
1742
2045
  };
1743
- insert(_el$325, () => data().retryLabel, _el$328, _co$75);
1744
- effect(() => 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`));
2046
+ insert(_el$481, () => data().retryLabel, _el$484, _co$120);
2047
+ effect(() => className(_el$481, `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`));
1745
2048
  runHydrationEvents();
1746
- return _el$325;
2049
+ return _el$481;
1747
2050
  }
1748
- }), _el$331, _co$76);
1749
- insert(_el$324, createComponent(Show, {
2051
+ }), _el$487, _co$121);
2052
+ insert(_el$480, createComponent(Show, {
1750
2053
  get when() {
1751
2054
  return data().details;
1752
2055
  },
1753
2056
  get children() {
1754
- var _el$329 = getNextElement(_tmpl$76);
1755
- _el$329.$$click = () => setShowDetails(!showDetails());
2057
+ var _el$485 = getNextElement(_tmpl$94);
2058
+ _el$485.$$click = () => setShowDetails(!showDetails());
1756
2059
  runHydrationEvents();
1757
- return _el$329;
2060
+ return _el$485;
1758
2061
  }
1759
- }), _el$333, _co$77);
1760
- insert(_el$322, createComponent(Show, {
2062
+ }), _el$489, _co$122);
2063
+ insert(_el$478, createComponent(Show, {
1761
2064
  get when() {
1762
2065
  return memo(() => !!showDetails())() && data().details;
1763
2066
  },
1764
2067
  get children() {
1765
- var _el$334 = getNextElement(_tmpl$77);
1766
- insert(_el$334, () => data().details);
1767
- return _el$334;
2068
+ var _el$490 = getNextElement(_tmpl$95);
2069
+ insert(_el$490, () => data().details);
2070
+ return _el$490;
1768
2071
  }
1769
- }), _el$336, _co$78);
1770
- effect(() => 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"}`));
1771
- return _el$319;
2072
+ }), _el$492, _co$123);
2073
+ effect(() => className(_el$475, `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"}`));
2074
+ return _el$475;
1772
2075
  })();
1773
2076
  };
1774
2077
  const SourceCardSection = (props) => {
@@ -1789,46 +2092,46 @@ const SourceCardSection = (props) => {
1789
2092
  error: "❌"
1790
2093
  })[data().status] || "📦";
1791
2094
  return (() => {
1792
- var _el$337 = getNextElement(_tmpl$81), _el$338 = _el$337.firstChild, _el$339 = _el$338.firstChild, _el$341 = _el$339.firstChild, [_el$342, _co$79] = getNextMarker(_el$341.nextSibling), _el$340 = _el$342.nextSibling, _el$343 = _el$340.nextSibling, [_el$344, _co$80] = getNextMarker(_el$343.nextSibling), _el$349 = _el$339.nextSibling, [_el$350, _co$82] = getNextMarker(_el$349.nextSibling), _el$351 = _el$338.nextSibling, _el$353 = _el$351.nextSibling, [_el$354, _co$83] = getNextMarker(_el$353.nextSibling);
1793
- insert(_el$339, statusIcon, _el$342, _co$79);
1794
- insert(_el$339, () => data().name, _el$344, _co$80);
1795
- insert(_el$338, createComponent(Show, {
2095
+ var _el$493 = getNextElement(_tmpl$99), _el$494 = _el$493.firstChild, _el$495 = _el$494.firstChild, _el$497 = _el$495.firstChild, [_el$498, _co$124] = getNextMarker(_el$497.nextSibling), _el$496 = _el$498.nextSibling, _el$499 = _el$496.nextSibling, [_el$500, _co$125] = getNextMarker(_el$499.nextSibling), _el$505 = _el$495.nextSibling, [_el$506, _co$127] = getNextMarker(_el$505.nextSibling), _el$507 = _el$494.nextSibling, _el$509 = _el$507.nextSibling, [_el$510, _co$128] = getNextMarker(_el$509.nextSibling);
2096
+ insert(_el$495, statusIcon, _el$498, _co$124);
2097
+ insert(_el$495, () => data().name, _el$500, _co$125);
2098
+ insert(_el$494, createComponent(Show, {
1796
2099
  get when() {
1797
2100
  return data().row_count !== void 0;
1798
2101
  },
1799
2102
  get children() {
1800
- var _el$345 = getNextElement(_tmpl$79), _el$347 = _el$345.firstChild, [_el$348, _co$81] = getNextMarker(_el$347.nextSibling);
1801
- _el$348.nextSibling;
1802
- insert(_el$345, () => {
2103
+ var _el$501 = getNextElement(_tmpl$97), _el$503 = _el$501.firstChild, [_el$504, _co$126] = getNextMarker(_el$503.nextSibling);
2104
+ _el$504.nextSibling;
2105
+ insert(_el$501, () => {
1803
2106
  var _a;
1804
2107
  return (_a = data().row_count) == null ? void 0 : _a.toLocaleString();
1805
- }, _el$348, _co$81);
1806
- return _el$345;
2108
+ }, _el$504, _co$126);
2109
+ return _el$501;
1807
2110
  }
1808
- }), _el$350, _co$82);
1809
- insert(_el$351, createComponent(For, {
2111
+ }), _el$506, _co$127);
2112
+ insert(_el$507, createComponent(For, {
1810
2113
  get each() {
1811
2114
  return data().capabilities;
1812
2115
  },
1813
2116
  children: (cap) => (() => {
1814
- var _el$355 = getNextElement(_tmpl$82), _el$357 = _el$355.firstChild, [_el$358, _co$84] = getNextMarker(_el$357.nextSibling), _el$356 = _el$358.nextSibling, _el$359 = _el$356.nextSibling, [_el$360, _co$85] = getNextMarker(_el$359.nextSibling);
1815
- insert(_el$355, () => cap.supported ? "✅" : "❌", _el$358, _co$84);
1816
- insert(_el$355, () => cap.label, _el$360, _co$85);
1817
- effect(() => 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"}`));
1818
- return _el$355;
2117
+ var _el$511 = getNextElement(_tmpl$100), _el$513 = _el$511.firstChild, [_el$514, _co$129] = getNextMarker(_el$513.nextSibling), _el$512 = _el$514.nextSibling, _el$515 = _el$512.nextSibling, [_el$516, _co$130] = getNextMarker(_el$515.nextSibling);
2118
+ insert(_el$511, () => cap.supported ? "✅" : "❌", _el$514, _co$129);
2119
+ insert(_el$511, () => cap.label, _el$516, _co$130);
2120
+ effect(() => className(_el$511, `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"}`));
2121
+ return _el$511;
1819
2122
  })()
1820
2123
  }));
1821
- insert(_el$337, createComponent(Show, {
2124
+ insert(_el$493, createComponent(Show, {
1822
2125
  get when() {
1823
2126
  return data().freshness || data().latency_ms;
1824
2127
  },
1825
2128
  get children() {
1826
- var _el$352 = getNextElement(_tmpl$80);
1827
- insert(_el$352, () => [data().freshness, data().latency_ms ? `${data().latency_ms}ms` : ""].filter(Boolean).join(" · "));
1828
- return _el$352;
2129
+ var _el$508 = getNextElement(_tmpl$98);
2130
+ insert(_el$508, () => [data().freshness, data().latency_ms ? `${data().latency_ms}ms` : ""].filter(Boolean).join(" · "));
2131
+ return _el$508;
1829
2132
  }
1830
- }), _el$354, _co$83);
1831
- return _el$337;
2133
+ }), _el$510, _co$128);
2134
+ return _el$493;
1832
2135
  })();
1833
2136
  };
1834
2137
  const DiffSection = (props) => {
@@ -1852,10 +2155,10 @@ const DiffSection = (props) => {
1852
2155
  return [.../* @__PURE__ */ new Set([...Object.keys(l), ...Object.keys(r)])];
1853
2156
  };
1854
2157
  return (() => {
1855
- var _el$361 = 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;
1856
- insert(_el$366, () => data().left.label);
1857
- insert(_el$367, () => data().right.label);
1858
- insert(_el$368, createComponent(For, {
2158
+ var _el$517 = getNextElement(_tmpl$101), _el$518 = _el$517.firstChild, _el$519 = _el$518.firstChild, _el$520 = _el$519.firstChild, _el$521 = _el$520.firstChild, _el$522 = _el$521.nextSibling, _el$523 = _el$522.nextSibling, _el$524 = _el$519.nextSibling;
2159
+ insert(_el$522, () => data().left.label);
2160
+ insert(_el$523, () => data().right.label);
2161
+ insert(_el$524, createComponent(For, {
1859
2162
  get each() {
1860
2163
  return allKeys();
1861
2164
  },
@@ -1870,22 +2173,22 @@ const DiffSection = (props) => {
1870
2173
  };
1871
2174
  const isDiff = () => String(lVal()) !== String(rVal()) && data().highlight.includes(key);
1872
2175
  return (() => {
1873
- var _el$369 = getNextElement(_tmpl$84), _el$370 = _el$369.firstChild, _el$371 = _el$370.nextSibling, _el$372 = _el$371.nextSibling;
1874
- insert(_el$370, key);
1875
- insert(_el$371, (() => {
1876
- var _c$7 = memo(() => lVal() !== void 0);
1877
- return () => _c$7() ? String(lVal()) : "—";
2176
+ var _el$525 = getNextElement(_tmpl$102), _el$526 = _el$525.firstChild, _el$527 = _el$526.nextSibling, _el$528 = _el$527.nextSibling;
2177
+ insert(_el$526, key);
2178
+ insert(_el$527, (() => {
2179
+ var _c$8 = memo(() => lVal() !== void 0);
2180
+ return () => _c$8() ? String(lVal()) : "—";
1878
2181
  })());
1879
- insert(_el$372, (() => {
1880
- var _c$8 = memo(() => rVal() !== void 0);
1881
- return () => _c$8() ? String(rVal()) : "—";
2182
+ insert(_el$528, (() => {
2183
+ var _c$9 = memo(() => rVal() !== void 0);
2184
+ return () => _c$9() ? String(rVal()) : "—";
1882
2185
  })());
1883
- effect(() => className(_el$369, `border-t border-gray-100 dark:border-gray-700 ${isDiff() ? "bg-yellow-50 dark:bg-yellow-900/10" : ""}`));
1884
- return _el$369;
2186
+ effect(() => className(_el$525, `border-t border-gray-100 dark:border-gray-700 ${isDiff() ? "bg-yellow-50 dark:bg-yellow-900/10" : ""}`));
2187
+ return _el$525;
1885
2188
  })();
1886
2189
  }
1887
2190
  }));
1888
- return _el$361;
2191
+ return _el$517;
1889
2192
  })();
1890
2193
  };
1891
2194
  delegateEvents(["click", "input"]);