{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 2,
  "name": "mcb/mailchimp",
  "title": "Mailchimp-block",
  "description": "Embed MailChimp email subscription form",
  "category": "widgets",
  "version": "1.1.14",
  "keywords": [
    "newsletter",
    "mailchimp",
    "marketing"
  ],
  "textdomain": "block-for-mailchimp",
  "attributes": {
    "preview": {
      "type": "boolean",
      "default": false
    },
    "align": {
      "type": "string",
      "default": ""
    },
    "cId": {
      "type": "string",
      "default": ""
    },
    "config": {
      "type": "object",
      "default": {
        "apiKey": "",
        "audienceId": ""
      }
    },
    "elements": {
      "type": "object",
      "default": {
        "title": true,
        "desc": true,
        "fName": true,
        "lName": true,
        "icon": true
      }
    },
    "layout": {
      "type": "object",
      "default": {
        "placement": "normal",
        "popupTimeOut": 3,
        "cacheTimeType": "day",
        "cacheTime": 30
      }
    },
    "content": {
      "type": "object",
      "default": {
        "title": "Subscribe to our Newsletter",
        "desc": "Subscribe to our newsletter & enjoy 10% off your next purchase.",
        "button": "Subscribe"
      }
    },
    "brandLogo": {
      "type": "object",
      "default": {
        "img": {
          "url": "https://b-slider.bplugins.com/wp-content/uploads/2025/11/mailchip-demo-image-scaled.jpg"
        },
        "size": 120
      }
    },
    "form4LeftImage": {
      "type": "object",
      "default": {
        "type": "image",
        "image": {
          "url": "https://b-slider.bplugins.com/wp-content/uploads/2025/11/mailchip-demo-image-scaled.jpg"
        }
      }
    },
    "imgArea": {
      "type": "object",
      "default": {
        "height": {
          "desktop": "200px",
          "tablet": "150px",
          "mobile": "100px"
        }
      }
    },
    "message": {
      "type": "object",
      "default": {
        "success": "Subscribe Success",
        "error": "Member Already Exists"
      }
    },
    "placeholder": {
      "type": "object",
      "default": {
        "fName": "First Name",
        "lName": "Last Name",
        "email": "Email",
        "phoneNumber": "Phone Number"
      }
    },
    "theme": {
      "type": "string",
      "default": "default"
    },
    "themeWidth": {
      "type": "object",
      "default": {
        "desktop": "100%",
        "tablet": "100%",
        "mobile": "100%"
      }
    },
    "themeAlign": {
      "type": "object",
      "default": {
        "desktop": "left",
        "tablet": "left",
        "mobile": "left"
      }
    },
    "icon": {
      "type": "object",
      "default": {
        "color": "#000",
        "size": ""
      }
    },
    "iconBG": {
      "type": "object",
      "default": {
        "color": "#0575e6"
      }
    },
    "titleTypo": {
      "type": "object",
      "default": {
        "fontSize": {
          "desktop": 24,
          "tablet": 18,
          "mobile": 15
        },
        "fontWeight": 700,
        "lineHeight": "135%",
        "textTransform": "capitalize"
      }
    },
    "titleColor": {
      "type": "string",
      "default": "#000"
    },
    "titleMargin": {
      "type": "object",
      "default": {
        "top": "0px",
        "right": "0px",
        "bottom": "15px",
        "left": "0px"
      }
    },
    "descTypo": {
      "type": "object",
      "default": {
        "fontSize": {
          "desktop": 17,
          "tablet": 15,
          "mobile": 15
        },
        "fontWeight": 400,
        "lineHeight": "135%",
        "textTransform": "capitalize"
      }
    },
    "descColor": {
      "type": "string",
      "default": "#000"
    },
    "descMargin": {
      "type": "object",
      "default": {
        "top": "0px",
        "right": "0px",
        "bottom": "10px",
        "left": "0px"
      }
    },
    "formBG": {
      "type": "object",
      "default": {
        "color": "#efefef"
      }
    },
    "formPadding": {
      "type": "object",
      "default": {
        "top": "20px",
        "right": "20px",
        "bottom": "20px",
        "left": "20px"
      }
    },
    "formBorder": {
      "type": "object",
      "default": {
        "width": "0px",
        "style": "solid",
        "color": "#0575e6",
        "side": "all",
        "radius": "5px"
      }
    },
    "fieldTypo": {
      "type": "object",
      "default": {
        "fontSize": {
          "desktop": 16,
          "tablet": 15,
          "mobile": 15
        },
        "fontWeight": 400,
        "lineHeight": "135%"
      }
    },
    "fieldColors": {
      "type": "object",
      "default": {
        "color": "#302c2c",
        "bg": "#f5f7fa"
      }
    },
    "fieldPadding": {
      "type": "object",
      "default": {
        "top": "2px",
        "right": "13px",
        "bottom": "2px",
        "left": "13px"
      }
    },
    "fieldBorder": {
      "type": "object",
      "default": {
        "radius": "5px"
      }
    },
    "fieldMargin": {
      "type": "object",
      "default": {
        "top": "0px",
        "right": "0px",
        "bottom": "10px",
        "left": "0px"
      }
    },
    "btnTypo": {
      "type": "object",
      "default": {
        "fontSize": {
          "desktop": 18,
          "tablet": 15,
          "mobile": 15
        },
        "fontWeight": 400,
        "lineHeight": "135%"
      }
    },
    "btnColors": {
      "type": "object",
      "default": {
        "color": "#fff",
        "bg": "#2355f2"
      }
    },
    "btnHovColors": {
      "type": "object",
      "default": {
        "color": "#fff",
        "bg": "##2355f2"
      }
    },
    "btnMargin": {
      "type": "object",
      "default": {
        "top": "0px",
        "right": "0px",
        "bottom": "0px",
        "left": "0px"
      }
    },
    "btnPadding": {
      "type": "object",
      "default": {
        "top": "9px",
        "right": "20px",
        "bottom": "9px",
        "left": "20px"
      }
    },
    "btnBorder": {
      "type": "object",
      "default": {
        "radius": "5px"
      }
    },
    "messageTypo": {
      "type": "object",
      "default": {
        "fontSize": {
          "desktop": 18,
          "tablet": 15,
          "mobile": 15
        },
        "fontWeight": 400,
        "lineHeight": "135%"
      }
    },
    "messageColors": {
      "type": "object",
      "default": {
        "success": "#228323",
        "error": "#f70000"
      }
    },
    "popupBtn": {
      "type": "object",
      "default": {
        "typo": {
          "fontSize": {
            "desktop": 18,
            "tablet": 16,
            "mobile": 15
          },
          "fontWeight": 500,
          "lineHeight": "135%"
        },
        "colors": {
          "color": "#000",
          "bg": "#fff"
        },
        "hoverColors": {
          "color": "#fff",
          "bg": "#000"
        },
        "padding": {
          "top": "4px",
          "right": "5px",
          "bottom": "4px",
          "left": "5px"
        },
        "border": {
          "width": "1px",
          "style": "solid",
          "color": "#000",
          "side": "all",
          "radius": "3px"
        },
        "align": "left",
        "text": "Subscribe"
      }
    },
    "inputLabel": {
      "type": "object",
      "default": {
        "typo": {
          "fontSize": {
            "desktop": 16,
            "tablet": 15,
            "mobile": 14
          },
          "fontWeight": 400,
          "lineHeight": "135%"
        },
        "color": "#000",
        "label": true
      }
    },
    "closeBtn": {
      "type": "object",
      "default": {
        "colors": {
          "color": "#fff",
          "bg": "#2355f2"
        },
        "size": 40
      }
    },
    "modal": {
      "type": "object",
      "default": {
        "width": {
          "desktop": "400px",
          "tablet": "300px",
          "mobile": "300px"
        }
      }
    }
  },
  "supports": {
    "align": [
      "wide",
      "full"
    ],
    "html": false
  },
  "example": {
    "attributes": {
      "preview": true,
      "columns": {
        "desktop": 1,
        "tablet": 1,
        "mobile": 1
      }
    }
  },
  "editorScript": [
    "file:./index.js",
    "wp-api",
    "wp-api-request",
    "wp-util"
  ],
  "editorStyle": "file:./index.css",
  "style": [
    "file:./view.css"
  ],
  "render": "file:./render.php",
  "viewScript": [
    "file:./view.js",
    "wp-util",
    "wp-api"
  ]
}