import { g as getEditWorkspaceContext, P as Panel } from './edit-workspace-context-BQXwYkgE.js';
import { o as onDestroy } from './index-server-BI-Ep7Rw.js';
import './trpc-client-Bucti7HD.js';
import './index2-BpEbpEAf.js';
import './context-B0vutJuA.js';
import '@trpc/client';

function _page($$renderer, $$props) {
  $$renderer.component(($$renderer2) => {
    const { actions } = getEditWorkspaceContext();
    let editor = null;
    let model = null;
    let editorDisposables = [];
    onDestroy(() => {
      for (const d of editorDisposables) {
        try {
          d.dispose();
        } catch {
        }
      }
      editorDisposables = [];
      const toDisposeModel = model;
      model = null;
      try {
        if (editor) {
          try {
            editor.setModel(null);
          } catch {
          }
          editor.dispose();
        }
      } finally {
        editor = null;
      }
      try {
        toDisposeModel?.dispose();
      } catch {
      }
    });
    Panel($$renderer2, {
      class: "flex h-full min-h-0 flex-col !rounded-none p-2",
      children: ($$renderer3) => {
        $$renderer3.push(`<div class="flex flex-none items-center justify-between gap-3 pb-2"><div class="min-w-0"><div class="truncate font-semibold text-rc-gray-100">Region config</div> <div class="truncate text-xs text-rc-gray-400">Edits \`region-config.json\` in the project</div></div> <div class="flex items-center gap-3 text-xs text-rc-gray-400">`);
        {
          $$renderer3.push("<!--[!-->");
          $$renderer3.push(`<span>Saved</span>`);
        }
        $$renderer3.push(`<!--]--></div></div> `);
        {
          $$renderer3.push("<!--[-->");
          $$renderer3.push(`<div class="text-rc-gray-400">Loading…</div>`);
        }
        $$renderer3.push(`<!--]-->`);
      }
    });
  });
}

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