"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var create_preset_3_exports = {};
__export(create_preset_3_exports, {
  createPreset3: () => createPreset3
});
module.exports = __toCommonJS(create_preset_3_exports);
var import_ricos_content = require("./../../../../ricos-content/index.js");
const createPreset3 = ({
  title,
  content,
  buttonText
}) => ({
  nodes: [
    {
      type: "LAYOUT",
      id: (0, import_ricos_content.generateId)(),
      nodes: [
        {
          type: "LAYOUT_CELL",
          id: (0, import_ricos_content.generateId)(),
          nodes: [
            {
              type: "IMAGE",
              id: (0, import_ricos_content.generateId)(),
              imageData: {
                containerData: {
                  width: {
                    size: "CONTENT"
                  },
                  alignment: "CENTER",
                  textWrap: false
                },
                image: {
                  src: {
                    id: "16f8d7_91ac30f2c2ec499da7dd0190df004568~mv2.webp"
                  },
                  width: 4608,
                  height: 2963
                }
              }
            }
          ],
          layoutCellData: {}
        },
        {
          type: "LAYOUT_CELL",
          id: (0, import_ricos_content.generateId)(),
          nodes: [
            {
              type: "HEADING",
              id: (0, import_ricos_content.generateId)(),
              nodes: [
                {
                  type: "TEXT",
                  id: "",
                  textData: {
                    text: title,
                    decorations: [
                      {
                        type: "BOLD",
                        fontWeightValue: 700
                      }
                    ]
                  }
                }
              ],
              style: {},
              headingData: {
                level: 2,
                textStyle: {
                  textAlignment: "LEFT"
                }
              }
            },
            {
              type: "PARAGRAPH",
              id: (0, import_ricos_content.generateId)(),
              nodes: [
                {
                  type: "TEXT",
                  id: "",
                  textData: {
                    text: content
                  }
                }
              ]
            },
            {
              type: "PARAGRAPH",
              id: (0, import_ricos_content.generateId)(),
              style: {},
              paragraphData: {
                textStyle: {
                  textAlignment: "LEFT"
                }
              }
            },
            {
              type: "BUTTON",
              id: (0, import_ricos_content.generateId)(),
              buttonData: {
                containerData: {
                  width: {
                    size: "ORIGINAL"
                  },
                  alignment: "LEFT",
                  spoiler: {},
                  height: {},
                  textWrap: false
                },
                type: "LINK",
                styles: {},
                text: buttonText
              }
            }
          ],
          layoutCellData: {}
        }
      ],
      layoutData: {
        cellPadding: [0, 0, 0, 0],
        cellVerticalAlignment: "MIDDLE",
        responsivenessBehaviour: "STACK"
      }
    }
  ]
});
//# sourceMappingURL=create-preset-3.js.map
