import { createRequire as _createRequire } from 'node:module';
const require = _createRequire(import.meta.url);
import {
  executeCommand
} from "./chunk-DW7HE2IS.js";
import {
  log
} from "./chunk-35LXVE2A.js";
import {
  PreviewCommand
} from "./chunk-2LIAUACY.js";
import "./chunk-ZY6UYJ7A.js";
import "./chunk-VS2OAVVQ.js";
import "./chunk-ICWL3WXV.js";
import "./chunk-R5WNFZTS.js";
import "./chunk-RFWFU5ZV.js";
import "./chunk-C7TVBDR6.js";
import "./chunk-KDZXPOOF.js";
import "./chunk-QRGKMYDD.js";
import "./chunk-I2LFFO2M.js";
import "./chunk-KUSCYV4K.js";
import "./chunk-NMCF7XG5.js";
import "./chunk-MHV22UIU.js";
import "./chunk-BYP4JZFS.js";
import "./chunk-AAUVYJJT.js";
import "./chunk-K6JLY75P.js";
import "./chunk-BRX4HWJE.js";
import "./chunk-ZBFOAJ5H.js";
import "./chunk-YNEGRO3E.js";
import "./chunk-HENH75UF.js";
import "./chunk-YHFCDWGT.js";
import "./chunk-IVQPYJ5M.js";
import "./chunk-MDUBZZTI.js";
import "./chunk-RPTAJN5Y.js";
import "./chunk-QK47PIWK.js";
import {
  require_react
} from "./chunk-TODKQSCF.js";
import "./chunk-AFPDHQYI.js";
import "./chunk-HYKBBZLS.js";
import "./chunk-C5RTKQVL.js";
import "./chunk-DGJS6KZB.js";
import "./chunk-YT5BPQDJ.js";
import "./chunk-LU3R3EBR.js";
import "./chunk-XZUGLEBK.js";
import "./chunk-AYCGCYN3.js";
import "./chunk-SDLCFZRL.js";
import "./chunk-WGV2XQSB.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-KQFTM357.js.map