import { jsxs as t, Fragment as s, jsx as r } from "react/jsx-runtime";
import { a as n } from "./index.CfQlFjZU.js";
import { P as d } from "./PageSection.DaF45FbK.js";
import { a as u } from "./SmartScheduleFormView.DQZ-edac.js";
import { a as f } from "./SmartSchedulePreview.BvBKVEaL.js";
import { P } from "./PageHeader.BwFpx_pz.js";
import { a as S, g as i, d as a } from "./GridRow._ehOXG8R.js";
import "./GridLayouts.DSIvKCIo.js";
import { B as g } from "./ButtonGroup.GFy-lPs3.js";
import { a as c } from "./Button.CpTwUWVr.js";
import { S as m } from "./shared.EdGf6tcG.js";
import "react";
import { u as h } from "./useId.7P31viIO.js";
const C = "creator_col100_3S8Sc", p = "creator_col50_z4UBU", v = "creator_grid_GegxK", o = { col100: C, col50: p, grid: v };
function w(e) {
  const l = h();
  return {
    ...e,
    formProps: {
      ...e.formProps,
      formId: l
    },
    onCancel() {
      e?.onCancel?.();
    }
  };
}
function B(e) {
  return /* @__PURE__ */ t(s, { children: [
    /* @__PURE__ */ t(S, { className: o.grid, children: [
      /* @__PURE__ */ r(i, { children: /* @__PURE__ */ r(a, { className: o.col100, children: /* @__PURE__ */ r(
        P,
        {
          title: e.pageTitle,
          previousPageUrl: e.previousPageUrl,
          statusDetails: e.statusDetails,
          onClickPrevious: e.onClickPrevious
        }
      ) }) }),
      /* @__PURE__ */ t(i, { children: [
        /* @__PURE__ */ r(a, { className: o.col50, children: /* @__PURE__ */ r(d, { direction: "row", children: /* @__PURE__ */ r(u, { ...e.formProps }) }) }),
        /* @__PURE__ */ r(a, { className: o.col50, children: /* @__PURE__ */ r(f, { ...e.previewProps }) })
      ] })
    ] }),
    /* @__PURE__ */ r(
      g,
      {
        floating: !0,
        buttons: [
          {
            label: "Schedule",
            type: c.SUBMIT,
            semantic: m.PRIMARY,
            form: e.formProps.formId
          },
          {
            label: "Previous",
            semantic: m.SECONDARY,
            type: c.BUTTON,
            onClick: e.onCancel
          }
        ]
      }
    )
  ] });
}
const A = n(
  B,
  w
);
export {
  A as S
};
