<div class="handlediv" title="Click to toggle"><br></div>
<h3 data-automation-id="sidebar_preview_region_heading"><%= __('Preview') %></h3>
<div class="mailpoet_region_content">
    <iframe name="mailpoet_save_preview_email_for_autocomplete" style="display:none" src="about:blank"></iframe>
    <form target="mailpoet_save_preview_email_for_autocomplete">
      <div class="mailpoet_form_field">
          <label>
              <%= __('Send preview to') %><br />
              <input id="mailpoet_preview_to_email" class="mailpoet_input mailpoet_input_full" type="text" name="to_email" value="<%= current_wp_user.email %>" autocomplete="email" />
          </label>
      </div>

      <div class="mailpoet_form_field relative-holder">
        <input type="submit" id="mailpoet_send_preview" class="button button-primary mailpoet_button_full" value="<%= __('Send preview') %>" />
        <span id="tooltip-send-preview" class="tooltip-help-send-preview"></span>
      </div>
    </form>

    {{#if mssKeyPendingApproval }}
    <div class="mailpoet_error">
      <%= __('You’ll soon be able to send once our team reviews your account. In the meantime, you can send previews to [link]your authorized emails[/link].')|replaceLinkTags('https://account.mailpoet.com/authorization', {'target': '_blank', 'rel': 'noopener noreferrer'})|raw %>
    </div>
    {{/if}}

    <hr class="mailpoet_separator" />

    <input type="button" name="preview" class="button button-primary mailpoet_button_full mailpoet_show_preview" value="<%= __('View in browser') %>" />
</div>
