import { jsx as e } from "react/jsx-runtime";
import { a as n } from "./index.CfQlFjZU.js";
import { n as i } from "./index.B0wX8xO7.js";
import { a as d } from "./ProgressActivity.DYLCzf8q.js";
import { c } from "./index.CfM2L_w0.js";
const l = "creator_page_OlQEn", m = "creator_noPadding_BifUb", g = "creator_loader_4-QIy", o = { page: l, noPadding: m, loader: g };
function P(a) {
  return {
    ...a,
    pageClassName: c(o.page, a.className, {
      [o.noPadding]: a.noPadding
    }),
    loaderClassName: o.loader
  };
}
function f({
  children: a,
  isLoading: r,
  pageClassName: s,
  loaderClassName: t
}) {
  return /* @__PURE__ */ e("div", { className: s, children: /* @__PURE__ */ e(
    i,
    {
      value: r,
      then: /* @__PURE__ */ e("div", { className: t, children: /* @__PURE__ */ e(d, { "data-testid": "loader" }) }),
      otherwise: a
    }
  ) });
}
const v = n(f, P, "Page");
export {
  v as P
};
