import {
  LayoutData_DesignTarget,
  LayoutData_ResponsivenessBehaviour,
  LayoutData_VerticalAlignment_Alignment,
  Node_Type
} from "./../../ricos-schema/legacy/wix/rich_content/v1/index.js";
const layout = (...args) => {
  const layoutData = 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.LAYOUT,
      ...nodeBuilders.length && {
        nodes: nodeBuilders.map((nb) => nb.node(getId))
      },
      layoutData: {
        cellPadding: [],
        cellVerticalAlignment: LayoutData_VerticalAlignment_Alignment.TOP,
        responsivenessBehaviour: LayoutData_ResponsivenessBehaviour.STACK,
        designTarget: LayoutData_DesignTarget.LAYOUT,
        ...layoutData
      }
    })
  };
};
export {
  layout
};
//# sourceMappingURL=layout.builder.js.map
