import { a9 as e, ad as t, aj as n, an as r, ap as i } from "./use-page-data.Cb2SuuwJ.js";
import { O as a, p as o, u as s } from "./chunk-LSPN22SI.D75E3zS-.js";
import { Type as c } from "@sinclair/typebox";
function l(e = "Date and Time", t) {
	return c.String({
		title: e,
		format: "date-time",
		"ui:field": "datetime",
		...t
	});
}
var u = c.Object({
	colorPreset: n({
		title: "Color",
		default: { color: "bg-base-100" }
	}),
	tags: c.Optional(c.Array(o("Tag"), {
		title: "Tags",
		description: "Tags for this page. Used for organization and filtering in navigation elements and in the dashboard.",
		"ui:field": "tags"
	})),
	path: o("URL path", {
		default: "/",
		description: "The URL path of the page. Use placeholders like :id or :slug for dynamic paths.",
		"ui:group": "location",
		"ui:group:title": "Location",
		"ui:field": "path"
	}),
	queries: c.Optional(c.Array(e(), {
		title: "Page Queries",
		description: "List of queries to use in this page. All listed queries will be executed when the page loads.",
		"ai:instructions": "Reference Query IDs to use at the page level.",
		"ui:field": "page-queries",
		maxItems: 5
	})),
	title: o("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: o("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: o("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: c.Optional(r({
		title: "Social share image",
		description: "Image shown when this page is shared on social media",
		"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: c.Optional(i("Allow search engines to index this page", !0, {
		description: "Disabling this will prevent search engines from indexing this page",
		"ai:hidden": !0
	})),
	language: c.Optional(a([
		"ar",
		"zh",
		"cs",
		"nl",
		"en",
		"fr",
		"de",
		"he",
		"hi",
		"it",
		"ja",
		"ko",
		"fa",
		"pl",
		"pt",
		"ru",
		"es",
		"tr",
		"vi"
	], {
		"ai:hidden": !0,
		title: "Language",
		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: c.Optional(s({
		title: "Additional script tags",
		children: {
			headTags: c.Optional(c.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:group": "external-scripts",
				"ui:group:title": "External scripts",
				"ui:no-dynamic": !0
			})),
			bodyTags: c.Optional(c.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:group": "external-scripts",
				"ui:group:title": "External scripts",
				"ui:no-dynamic": !0
			}))
		}
	})),
	lastUpdated: c.Optional(l("Last updated", { "ui:hidden": !0 }))
}), d = c.Object({
	queries: c.Optional(c.Array(t, {
		title: "Site Queries",
		"ui:field": "site-queries",
		description: "List of all queries available in this site. These can be used in any page.",
		"ai:instructions": "This is where queries are first defined. They are then referenced in pages attributes to use them."
	})),
	language: a([
		"ar",
		"zh",
		"cs",
		"nl",
		"en",
		"fr",
		"de",
		"he",
		"hi",
		"it",
		"ja",
		"ko",
		"fa",
		"pl",
		"pt",
		"ru",
		"es",
		"tr",
		"vi"
	], {
		title: "Language",
		default: "en",
		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: c.Optional(r({
		title: "Social share image",
		description: "Image shown when this site is shared on social media",
		"ai:hidden": !0,
		"ui:no-object-options": !0,
		"ui:no-alt-text": !0,
		"ui:show-img-search": !1,
		"ui:no-dynamic": !0
	})),
	robotsIndexing: c.Optional(i("Allow search engines to index this site", !0, {
		description: "Disabling this will prevent search engines from indexing this site entirely",
		"ai:hidden": !0
	})),
	headTags: c.Optional(c.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-scripts",
		"ui:group:title": "External scripts",
		"ui:no-dynamic": !0
	})),
	bodyTags: c.Optional(c.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-scripts",
		"ui:group:title": "External scripts",
		"ui:no-dynamic": !0
	}))
});
export { d as b, u as c };

//# sourceMappingURL=attributes.OPcn2TpI.js.map