<% extends 'layout.html' %>

<% block content %>
<div id="mailpoet_automation"></div>

<script type="text/javascript">
  var mailpoet_locale_full = <%= json_encode(locale_full) %>;
  var mailpoet_automation_api = <%= json_encode(api) %>;
  var mailpoet_automation_count = <%= json_encode(automationCount) %>;
  var mailpoet_legacy_automation_count = <%= json_encode(legacyAutomationCount) %>;
  var mailpoet_automation_templates = <%= json_encode(templates) %>;
  var mailpoet_automation_template_categories = <%= json_encode(template_categories) %>;
  var mailpoet_automation_registry = <%= json_encode(registry) %>;
  var mailpoet_automation_context = <%= json_encode(context) %>;
  var mailpoet_segments = <%= json_encode(segments) %>;
  var mailpoet_roles = <%= json_encode(roles) %>;
  var mailpoet_woocommerce_automatic_emails = <%= json_encode(automatic_emails) %>;
  var mailpoet_legacy_automations_notice_dismissed = <%= json_encode(legacy_automations_notice_dismissed) %>;
</script>
<% endblock %>
