<commit_before>import app from 'ampersand-app';
import BaseView from './base-view';

export default BaseView.extend({

  _template: `
    <div class="modal-container">
      <div id="{{id}}-modal" class="modal feedback-modal modal-bounce-in">
        <h3 class="title" data-l10n-id="{{title}}"></h3>
        <div class="modal-content">
          <div class="copter-wrapper">
            <div class="copter"></div>
          </div>
          <p class="centered" data-l10n-id="feedbackUninstallCopy">
            Your participation in Firefox Test Pilot means a lot!
            Please check out our other experiments, and stay tuned for more to come!
          </p>
        </div>
        <div class="modal-actions">
          <a data-l10n-id="feedbackSubmitButton" data-hook="submit-feedback" href="{{surveyUrl}}" target="_blank" class="submit button default large quit">Take a quick survey</a>
          <a data-l10n-id="feedbackCancelButton" class="cancel" href="">Close</a>
        </div>
      </div>
    </div>
  `,

  initialize(opts) {
    this.parentOnSubmit = opts.onSubmit;
  },

  props: {
    'id': 'string',
    'title': 'string',
    'questions': 'object',
    'experiment': 'string',
    'surveyUrl': 'string'
  },

  events: {
    'click .submit': 'submit',
    'click .cancel': 'cancel'
  },

  cancel(e) {
    this.animateRemove();
    e.preventDefault();
    e.stopPropagation();
  },<commit_msg>added 'modal-escape' class to feedback cancel link. fixes #1209<commit_after>import app from 'ampersand-app';
import BaseView from './base-view';

export default BaseView.extend({

  _template: `
    <div class="modal-container">
      <div id="{{id}}-modal" class="modal feedback-modal modal-bounce-in">
        <h3 class="title" data-l10n-id="{{title}}"></h3>
        <div class="modal-content">
          <div class="copter-wrapper">
            <div class="copter"></div>
          </div>
          <p class="centered" data-l10n-id="feedbackUninstallCopy">
            Your participation in Firefox Test Pilot means a lot!
            Please check out our other experiments, and stay tuned for more to come!
          </p>
        </div>
        <div class="modal-actions">
          <a data-l10n-id="feedbackSubmitButton" data-hook="submit-feedback" href="{{surveyUrl}}" target="_blank" class="submit button default large quit">Take a quick survey</a>
          <a data-l10n-id="feedbackCancelButton" class="cancel modal-escape" href="">Close</a>
        </div>
      </div>
    </div>
  `,

  initialize(opts) {
    this.parentOnSubmit = opts.onSubmit;
  },

  props: {
    'id': 'string',
    'title': 'string',
    'questions': 'object',
    'experiment': 'string',
    'surveyUrl': 'string'
  },

  events: {
    'click .submit': 'submit',
    'click .cancel': 'cancel'
  },

  cancel(e) {
    this.animateRemove();
    e.preventDefault();
    e.stopPropagation();
  },
{'fraction_non_alphanumeric': 0.1652264085724162, 'fraction_numerical': 0.00829588662288282, 'mean_word_length': 2.7535667963683528, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3833915', 'n_tokens_mistral': 932, 'n_tokens_neox': 888, 'n_words': 215}