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