import { o as ensure_array_like, h as attr_class, d as stringify, l as escape_html } from './index-BHoOpAe1.js';
import './markdown-W_mTBct0.js';
import { B as Button } from './Button-DPcpECFE.js';
import { I as Input } from './Input-M7rFN1IJ.js';
import { P as Pill } from './Pill-CbH1G79Z.js';
import 'dompurify';
import 'marked';
import './close-DR469d4F.js';

function _page($$renderer, $$props) {
  $$renderer.component(($$renderer2) => {
    const { data } = $$props;
    let logs = [];
    let prompt = "";
    async function send() {
      if (!prompt.trim() || true) {
        return;
      }
    }
    let $$settled = true;
    let $$inner_renderer;
    function $$render_inner($$renderer3) {
      $$renderer3.push(`<div class="page svelte-sjabew"><header class="svelte-sjabew"><h1 class="svelte-sjabew">NeuroLink</h1> <span class="version svelte-sjabew">new NeuroLink()</span> `);
      {
        $$renderer3.push("<!--[-1-->");
        Pill($$renderer3, { text: "Loading...", classes: "pill-loading" });
      }
      $$renderer3.push(`<!--]--></header> `);
      {
        $$renderer3.push("<!--[-1-->");
      }
      $$renderer3.push(`<!--]--> <div class="log svelte-sjabew" id="log"><!--[-->`);
      const each_array_1 = ensure_array_like(logs);
      for (let i = 0, $$length = each_array_1.length; i < $$length; i++) {
        let entry = each_array_1[i];
        $$renderer3.push(`<div${attr_class(`log-entry ${stringify(entry.type)}`, "svelte-sjabew")}>${escape_html(entry.text)}</div>`);
      }
      $$renderer3.push(`<!--]--></div> <div class="input-bar svelte-sjabew">`);
      Input($$renderer3, {
        name: "prompt",
        placeholder: "Loading SDK...",
        classes: "input-prompt",
        get value() {
          return prompt;
        },
        set value($$value) {
          prompt = $$value;
          $$settled = false;
        }
      });
      $$renderer3.push(`<!----> `);
      Button($$renderer3, {
        classes: "btn-primary",
        onclick: send,
        disabled: true,
        text: "Send"
      });
      $$renderer3.push(`<!----></div></div>`);
    }
    do {
      $$settled = true;
      $$inner_renderer = $$renderer2.copy();
      $$render_inner($$inner_renderer);
    } while (!$$settled);
    $$renderer2.subsume($$inner_renderer);
  });
}

export { _page as default };
//# sourceMappingURL=_page.svelte-DKdaYz0t.js.map
