"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_1_exports = {};
__export(create_preset_1_exports, {
  createPreset1: () => createPreset1
});
module.exports = __toCommonJS(create_preset_1_exports);
var import_ricos_content = require("./../../../../ricos-content/index.js");
const createPreset1 = ({
  title,
  content,
  buttonText
}) => ({
  nodes: [
    {
      type: "LAYOUT",
      id: (0, import_ricos_content.generateId)(),
      nodes: [
        {
          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
                      }
                    ]
                  }
                }
              ],
              headingData: {
                level: 2,
                textStyle: {
                  textAlignment: "CENTER"
                }
              }
            },
            {
              type: "PARAGRAPH",
              id: (0, import_ricos_content.generateId)(),
              nodes: [
                {
                  type: "TEXT",
                  id: "",
                  textData: {
                    text: content
                  }
                }
              ],
              paragraphData: {
                textStyle: {
                  textAlignment: "CENTER"
                }
              }
            },
            {
              type: "PARAGRAPH",
              id: (0, import_ricos_content.generateId)(),
              paragraphData: {
                textStyle: {
                  textAlignment: "CENTER"
                }
              }
            },
            {
              type: "BUTTON",
              id: (0, import_ricos_content.generateId)(),
              buttonData: {
                containerData: {
                  width: {
                    size: "ORIGINAL"
                  },
                  alignment: "CENTER",
                  spoiler: {},
                  height: {},
                  textWrap: false
                },
                type: "LINK",
                styles: {},
                text: buttonText
              }
            }
          ],
          layoutCellData: {}
        }
      ],
      layoutData: {
        backdropColor: "$theme-color-4",
        backdropImage: {
          media: {
            src: {
              id: "16f8d7_91ac30f2c2ec499da7dd0190df004568~mv2.webp"
            },
            width: 4608,
            height: 2963
          },
          opacity: 100,
          scaling: "COVER",
          position: "CENTER"
        },
        backdropPaddingTop: 26,
        backdropPaddingBottom: 26,
        cellPadding: [],
        cellVerticalAlignment: "MIDDLE",
        responsivenessBehaviour: "STACK"
      }
    }
  ]
});
//# sourceMappingURL=create-preset-1.js.map
