import { Node_Type } from "./../../ricos-schema/legacy/wix/rich_content/v1/index.js";
const card = (...args) => {
  const cardData = args.find((a) => !("type" in a));
  const nodeBuilders = args.filter((a) => "type" in a && a.type === "block_node");
  return {
    type: "block_node",
    // @ts-expect-error
    node: (getId) => ({
      id: getId(),
      type: Node_Type.CARD,
      ...nodeBuilders.length && {
        nodes: nodeBuilders.map((nb) => nb.node(getId))
      },
      cardData: cardData ?? {}
    })
  };
};
export {
  card
};
//# sourceMappingURL=card.builder.js.map
