import { y as n, z as o, A as d, B as p, C as h, E as u, F as c, G as g } from "./use-page-data.BYLN5MSa.js";
import { Type as e } from "typebox";
function l(t, i, s, r, b, a) {
  return n(t) && n(i) && (a.set(i, t), o(t, i, void 0, l, a), a.delete(i)), t;
}
var m = d(function(t, i, s, r) {
  o(t, i, s, r);
}), f = p(function(t) {
  return t.push(void 0, l), h(m, void 0, t);
});
const y = e.Object({
  tags: e.Array(e.String({ description: "A tag for the page. Should be url-safe." }), {
    title: "Tags",
    description: "Use tags to organize, group and filter pages in navigation elements and in the dashboard. By default, the navbar element display pages having the 'navbar' tag, while the sidebar displays the pages with the tag 'sidebar'.",
    "ui:field": "tags",
    examples: [
      ["navbar", "important"],
      ["navbar", "sidebar"],
      ["sidebar"],
      ["campaign-landing-20250610"]
    ],
    maxItems: 8,
    default: []
  }),
  path: e.String({
    title: "URL path",
    default: "/",
    description: "The URL path of the page. Use placeholders like :id or :slug for dynamic paths.",
    "ai:instructions": "Never put language codes in the path.",
    "ui:field": "path",
    pattern: "^/[a-z0-9-:/]*$",
    examples: [
      "/",
      "/about",
      "/products/:id"
    ]
  }),
  layout: e.String({
    title: "Layout",
    description: "The layout to use for this page. Ex: 'default', 'main', 'no-sidebar'",
    default: "default",
    "ui:field": "hidden"
  }),
  title: e.String({
    title: "Title",
    default: "Untitled",
    "ui:group": "meta",
    "ui:group:title": "Meta tags",
    description: "The title of the page. Appears in the browser tab and search results",
    "ui:placeholder": "Page title"
  }),
  description: e.String({
    title: "Description",
    "ui:widget": "textarea",
    "ui:group": "meta",
    "ui:group:title": "Meta tags",
    description: "A short description of the page. Used by search engines",
    "ui:multiline": !0,
    "ui:textarea-class": "h-24",
    default: "",
    "ui:placeholder": "A brief description of the page"
  }),
  keywords: e.String({
    title: "Keywords",
    "ui:group": "meta",
    "ui:group:title": "Meta tags",
    description: "Keywords related to the page. Used by search engines",
    "ui:multiline": !0,
    default: "",
    "ui:placeholder": "keyword1, keyword2, keyword3"
  }),
  ogImage: e.Optional(u({
    title: "Social share image",
    description: "Image shown when this page is shared on social media",
    "ui:group": "meta",
    "ai:hidden": !0,
    "ui:no-object-options": !0,
    "ui:no-alt-text": !0,
    "ui:show-img-search": !1,
    "ui:no-dynamic": !0,
    "ui:placeholder": "https://example.com/image.jpg"
  })),
  robotsIndexing: e.Optional(e.Boolean({
    title: "Allow search engines to index this page",
    default: !0,
    description: "Disabling this will prevent search engines from indexing this page",
    "ai:hidden": !0,
    "ui:group": "meta"
  })),
  language: e.Optional(e.Enum([
    "ar",
    "zh",
    "cs",
    "nl",
    "en",
    "fr",
    "de",
    "he",
    "hi",
    "it",
    "ja",
    "ko",
    "fa",
    "pl",
    "pt",
    "ru",
    "es",
    "tr",
    "vi"
  ], {
    "ai:hidden": !0,
    "ui:group": "meta",
    title: "Language",
    default: "en",
    description: "Overrides the site language for this page. Leave blank to use the site default language.",
    enumNames: [
      "Arabic",
      "Chinese",
      "Czech",
      "Dutch",
      "English",
      "French",
      "German",
      "Hebrew",
      "Hindi",
      "Italian",
      "Japanese",
      "Korean",
      "Persian",
      "Polish",
      "Portuguese",
      "Russian",
      "Spanish",
      "Turkish",
      "Vietnamese"
    ]
  })),
  additionalTags: e.Optional(e.Object({
    headTags: e.Optional(e.String({
      title: "Head script tags",
      description: "Add custom tags to the <head> of your site. Useful for analytics tags, custom scripts, etc.",
      "ai:instructions": "Don't include meta tags here, they are automatically generated.",
      "ui:multiline": !0,
      "ui:textarea-class": "h-40 !font-mono",
      "ui:placeholder": "<script src='https://example.com/script.js'><\/script>",
      "ui:premium": !0,
      "ui:textarea-font-size": "1",
      "ui:no-dynamic": !0
    })),
    bodyTags: e.Optional(e.String({
      title: "Body script tags",
      description: "Add custom tags to the <body> of your site. Useful for analytics tags, custom scripts, etc.",
      "ui:multiline": !0,
      "ui:premium": !0,
      "ui:textarea-class": "h-40 !font-mono",
      "ui:textarea-font-size": "1",
      "ui:placeholder": "<script src='https://example.com/script.js'><\/script>",
      "ui:no-dynamic": !0
    }))
  }, {
    "ui:group": "meta",
    "ai:hidden": !0
  })),
  isInitialPage: e.Optional(e.Boolean({
    title: "Is this the initial page created by the system?",
    "ai:hidden": !0
  }))
}, {
  "ui:groups": {
    meta: "SEO & Meta tags",
    layout: "Layout"
  },
  additionalProperties: !1
}), w = e.Object({
  label: e.String({
    title: "Site label",
    description: "A short internal label for the site",
    default: "Untitled Site"
  }),
  themeId: e.String({
    title: "Theme ID",
    description: "The ID of the theme to use for the site",
    default: "default-theme"
  }),
  language: e.Enum([
    "ar",
    "zh",
    "cs",
    "nl",
    "en",
    "fr",
    "de",
    "he",
    "hi",
    "it",
    "ja",
    "ko",
    "fa",
    "pl",
    "pt",
    "ru",
    "es",
    "tr",
    "vi"
  ], {
    title: "Site language",
    default: "en",
    type: "string",
    enumNames: [
      "Arabic",
      "Chinese",
      "Czech",
      "Dutch",
      "English",
      "French",
      "German",
      "Hebrew",
      "Hindi",
      "Italian",
      "Japanese",
      "Korean",
      "Persian",
      "Polish",
      "Portuguese",
      "Russian",
      "Spanish",
      "Turkish",
      "Vietnamese"
    ],
    "ai:instructions": "Choose a value based on the site description. If the site is in multiple languages, use 'en'."
  }),
  ogImage: e.Optional(u({
    title: "Social share image",
    description: "Image shown when this site is shared on social media",
    "ai:hidden": !0,
    "ui:group": "meta",
    "ui:no-object-options": !0,
    "ui:no-alt-text": !0,
    "ui:show-img-search": !1,
    "ui:no-dynamic": !0
  })),
  robotsIndexing: e.Optional(c("Allow search engines to index this site", !0, {
    description: "Disabling this will prevent search engines from indexing this site entirely",
    "ai:hidden": !0,
    "ui:group": "meta"
  })),
  headTags: e.Optional(e.String({
    title: "Head script tags",
    description: "Add custom tags to the <head> of your site. Useful for analytics tags, custom scripts, etc.",
    "ai:hidden": !0,
    "ui:multiline": !0,
    "ui:textarea-class": "h-40 !font-mono",
    "ui:placeholder": "<script src='https://example.com/script.js'><\/script>",
    "ui:premium": !0,
    "ui:textarea-font-size": "1",
    "ui:group": "external",
    "ui:no-dynamic": !0
  })),
  bodyTags: e.Optional(e.String({
    title: "Body script tags",
    description: "Add custom tags to the <body> of your site. Useful for analytics tags, custom scripts, etc.",
    "ai:hidden": !0,
    "ui:multiline": !0,
    "ui:premium": !0,
    "ui:textarea-class": "h-40 !font-mono",
    "ui:textarea-font-size": "1",
    "ui:placeholder": "<script src='https://example.com/script.js'><\/script>",
    "ui:group": "external",
    "ui:no-dynamic": !0
  }))
}, { "ui:groups": {
  meta: "SEO & Meta tags",
  layout: "Layout",
  navbar: "Navbar",
  footer: "Footer",
  external: "External scripts"
} });
function v(t = {}) {
  return f({}, g(y), t);
}
export {
  y as p,
  v as r,
  w as s
};
