import { createRequire as _createRequire } from 'node:module';
const require = _createRequire(import.meta.url);
import {
  executeCommand,
  log
} from "./chunk-XUXZFTF6.js";
import {
  PreviewCommand
} from "./chunk-JK5XXAQX.js";
import "./chunk-JKVSR6GG.js";
import "./chunk-X3JDCNCM.js";
import "./chunk-T6BKE35X.js";
import "./chunk-QTQWEMSZ.js";
import "./chunk-MK2ZHK32.js";
import "./chunk-526J7NQD.js";
import "./chunk-XCIXZDFH.js";
import "./chunk-QRGKMYDD.js";
import "./chunk-HEKVXBWZ.js";
import "./chunk-K72QYUHN.js";
import "./chunk-WSX7GEXO.js";
import "./chunk-MHV22UIU.js";
import "./chunk-IBOXARGJ.js";
import "./chunk-XJE267QM.js";
import "./chunk-AAUVYJJT.js";
import "./chunk-K6JLY75P.js";
import "./chunk-JJWBWHWO.js";
import "./chunk-YTGCPERW.js";
import "./chunk-V2542KTT.js";
import "./chunk-VZ3FZHJK.js";
import "./chunk-OWRWPLVG.js";
import "./chunk-CIOBCAOI.js";
import "./chunk-RPTAJN5Y.js";
import "./chunk-2DKXIL7C.js";
import {
  require_react
} from "./chunk-7ZOEVDW3.js";
import "./chunk-AFPDHQYI.js";
import "./chunk-HYKBBZLS.js";
import "./chunk-C5RTKQVL.js";
import "./chunk-LFX6WS3B.js";
import "./chunk-XTVDTH5G.js";
import "./chunk-TMZBOD2B.js";
import "./chunk-DR2IE2NL.js";
import "./chunk-JWVFFICN.js";
import "./chunk-YRSNPU5L.js";
import "./chunk-PIOT47FJ.js";
import {
  __toESM,
  init_esm_shims
} from "./chunk-EXLZF52D.js";

// ../cli-astro-commands/src/non-interactive/preview.tsx
init_esm_shims();
var import_react = __toESM(require_react(), 1);
async function nonInteractivePreview(services, model, options) {
  const { baseUrl, label } = options;
  const result = await executeCommand(services, model, (resolve) => /* @__PURE__ */ import_react.default.createElement(
    PreviewCommand,
    {
      baseUrl,
      onPreviewCreated: resolve,
      environment: "preview",
      label
    }
  ));
  log(JSON.stringify(result, null, 2));
}
export {
  nonInteractivePreview
};
//# sourceMappingURL=preview-B66EACAT.js.map