import { GIFData_GIFType, Node_Type } from "./../../ricos-schema/legacy/wix/rich_content/v1/index.js";
import { isDefined } from "./utils.js";
const gif = (...args) => {
  const gifData = args.find((a) => !("type" in a));
  return {
    type: "block_node",
    node: (getId) => ({
      id: getId(),
      type: Node_Type.GIF,
      nodes: args.map((arg) => "type" in arg && arg.type === "block_node" ? arg.node(getId) : void 0).filter(isDefined),
      gifData: gifData ? gifData : {
        height: 100,
        width: 101,
        gifType: GIFData_GIFType.NORMAL
      }
    })
  };
};
export {
  gif
};
//# sourceMappingURL=gif.builder.js.map
