import { c as create_ssr_component, f as escape, v as validate_component } from "../../_app/immutable/chunks/index-27250121.js";
import { f as findPageByHref } from "../../_app/immutable/chunks/pages-a57618e2.js";
import { C as CarbonMarkdown, P as PreviousNextPage } from "../../_app/immutable/chunks/PreviousNextPage-aa1b7b9e.js";
import "@magidoc/plugin-starter-variables";
import "../../_app/immutable/chunks/paths-b9644fda.js";
import "graphql";
import "lodash";
import "@magidoc/plugin-reverse-schema-mapper";
function load({ url }) {
  const page = findPageByHref(url.pathname);
  if (!page) {
    return {
      status: 404,
      error: "Could not find the page you are looking for"
    };
  }
  return { status: 200, props: { page } };
}
const U5B_pageu5D = create_ssr_component(($$result, $$props, $$bindings, slots) => {
  let { page } = $$props;
  if ($$props.page === void 0 && $$bindings.page && page !== void 0)
    $$bindings.page(page);
  return `${$$result.head += `${$$result.title = `<title>${escape(page.title)}</title>`, ""}`, ""}

${validate_component(CarbonMarkdown, "CarbonMarkdown").$$render($$result, { source: page.content }, {}, {})}

${validate_component(PreviousNextPage, "PreviousNextPage").$$render($$result, { page }, {}, {})}`;
});
export {
  U5B_pageu5D as default,
  load
};
