import { a as r } from "./chunk-EJGNYD4V.js";
import { d as i } from "./chunk-5N6MBJJ4.js";
import { Type as e } from "@sinclair/typebox";
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
function l() {
  return e.Object({ queryId: e.String({ description: "The Query ID to use for dynamic content." }), alias: e.String({ title: "Alias", minLength: 1, maxLength: 100, pattern: "^[a-zA-Z0-9_]+$", description: "Alias for the query results, used in dynamic content. Use a simple keyword without spaces or special characters. Aliases are unique across the page.", "ai:instructions": "Use a simple keyword without spaces or special characters. Aliases are unique across the page. You can use the same query several times with different aliases in order to, for example, apply different parameters to the same query." }), params: e.Optional(e.Array(i, { description: "Additional query parameters/filters to apply to the query. One can use placeholders in values like ':slug' to reference URL parameters.", title: "Query Parameters", default: [] })) }, { title: "Query", description: "When set, this brick will loop through the results of the query and render the content for each item.", $id: "content:queryUse", "ui:field": "query", metadata: { category: "content" } });
}
var u = o();
function o(t = {}) {
  return r("content:queryUse", t);
}
function c(t = {}) {
  return e.Object({ over: e.String({ title: "Over", description: "The query alias to loop over. If not set, the brick will be rendered only once.", "ai:instructions": "Specify the Query Alias to loop over the results." }), overrideLimit: e.Optional(e.Number({ minimum: 1, description: "Override the limit of items to loop through. If not set, it will use the default limit of the query. If set to 1, it will not loop and will render only the first item." })) }, { $id: "content:loop", title: "Repeat over", "ui:field": "loop", "ui:hidden-if": "no-page-queries", metadata: { category: "content" }, ...t });
}
function p(t = {}) {
  return r("content:loop", t);
}
export {
  l as a,
  u as b,
  o as c,
  c as d,
  p as e
};
//# sourceMappingURL=chunk-YBGPPF7T.js.map
