export const startingTemplate = (
  allowFooterDelete = false,
  setDefaultContentWidth = false,
) => ({
  counters: {
    u_column: 2,
    u_row: 2,
    u_content_custom_komi_campaign_email_footer: 2,
  },
  body: {
    id: "NPqIFx6lQH",
    rows: [
      {
        id: "2xw47muTU-",
        cells: [1],
        columns: [
          {
            id: "DW26HiyGIx",
            contents: [
              {
                id: "mRWpRs2uUo",
                type: "custom",
                slug: "komi_campaign_email_footer",
                values: {
                  _meta: {
                    htmlID: "u_content_custom_komi_campaign_email_footer_2",
                    htmlClassNames:
                      "u_content_custom_komi_campaign_email_footer",
                  },
                  anchor: "",
                  hideable: false,
                  deletable: allowFooterDelete,
                  draggable: true,
                  selectable: true,
                  text_color: "#FFFFFF",
                  address_city: "",
                  duplicatable: false,
                  address_line_a: "",
                  address_line_b: "",
                  address_country: "",
                  address_zip_code: "",
                  background_color: "#292929",
                  containerPadding: "10px",
                  displayCondition: null,
                  unsubscribe_label: "Unsubscribe",
                },
              },
            ],
            values: {
              _meta: {
                htmlID: "u_column_2",
                htmlClassNames: "u_column",
              },
            },
          },
        ],
        values: {
          _meta: {
            htmlID: "u_row_2",
            htmlClassNames: "u_row",
          },
          anchor: "",
          columns: false,
          padding: "0px",
          hideable: false,
          deletable: false,
          draggable: true,
          selectable: true,
          hideDesktop: false,
          duplicatable: true,
          backgroundColor: "",
          backgroundImage: {
            url: "",
            size: "custom",
            repeat: "no-repeat",
            position: "center",
            fullWidth: true,
          },
          displayCondition: null,
          columnsBackgroundColor: "",
        },
      },
    ],
    values: {
      popupPosition: "center",
      popupWidth: "600px",
      popupHeight: "auto",
      borderRadius: "10px",
      contentAlign: "center",
      contentVerticalAlign: "center",
      contentWidth: setDefaultContentWidth ? "600px" : "500px",
      fontFamily: {
        label: "Arial",
        value: "arial,helvetica,sans-serif",
      },
      textColor: "#000000",
      popupBackgroundColor: "#FFFFFF",
      popupBackgroundImage: {
        url: "",
        fullWidth: true,
        repeat: "no-repeat",
        size: "cover",
        position: "center",
      },
      popupOverlay_backgroundColor: "rgba(0, 0, 0, 0.1)",
      popupCloseButton_position: "top-right",
      popupCloseButton_backgroundColor: "#DDDDDD",
      popupCloseButton_iconColor: "#000000",
      popupCloseButton_borderRadius: "0px",
      popupCloseButton_margin: "0px",
      popupCloseButton_action: {
        name: "close_popup",
        attrs: {
          onClick:
            "document.querySelector('.u-popup-container').style.display = 'none';",
        },
      },
      backgroundColor: "#e7e7e7",
      backgroundImage: {
        url: "",
        fullWidth: true,
        repeat: "no-repeat",
        size: "custom",
        position: "center",
      },
      preheaderText: "",
      linkStyle: {
        body: true,
        linkColor: "#0000ee",
        linkHoverColor: "#0000ee",
        linkUnderline: true,
        linkHoverUnderline: true,
      },
      _meta: {
        htmlID: "u_body",
        htmlClassNames: "u_body",
      },
    },
  },
  schemaVersion: 15,
});
