import { a as r } from "./chunk-EJGNYD4V.js";
import { Type as t } from "@sinclair/typebox";
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
function s(e = "Image", i = {}) {
  let { defaultImageUrl: o, showImgSearch: l = !1, noObjectOptions: a = !1 } = i;
  return t.Object({ src: t.String({ default: o, title: e, description: "Image URL. Can be a link to an image or a data URI" }), alt: t.Optional(t.String({ title: "Alternate Text", description: "Alternative text for the image. Recommended for screen readers and SEO", "ui:placeholder": "Your image description" })), fit: t.Optional(t.Union([t.Literal("object-none", { title: "None" }), t.Literal("object-contain", { title: "Contain" }), t.Literal("object-cover", { title: "Cover" }), t.Literal("object-fill", { title: "Fill" }), t.Literal("object-scale-down", { title: "Scale down" })], { title: "Fit", description: "How the image should be resized to fit its container", default: "object-cover", "ui:field": "enum", "ui:styleId": "styles:objectFit" })), position: t.Optional(t.Union([t.Literal("object-top", { title: "Top" }), t.Literal("object-center", { title: "Center" }), t.Literal("object-bottom", { title: "Bottom" }), t.Literal("object-left", { title: "Left" }), t.Literal("object-right", { title: "Right" }), t.Literal("object-top-left", { title: "Top left" }), t.Literal("object-top-right", { title: "Top right" }), t.Literal("object-bottom-left", { title: "Bottom left" }), t.Literal("object-bottom-right", { title: "Bottom right" })], { "ui:styleId": "styles:objectPosition", title: "Position", description: "The position of the image inside its container", "ui:field": "enum" })) }, { $id: "assets:image", title: e, "ui:field": "image", "ui:accept": "image/*", "ui:show-img-search": l, "ui:no-object-options": a, default: { alt: "Image", fit: "object-cover", position: "object-center" }, metadata: { category: "content" }, ...i });
}
function m(e = {}) {
  return r("assets:image", e);
}
export {
  s as a,
  m as b
};
//# sourceMappingURL=chunk-RGLVKILY.js.map
