| 26 | module.exports = (SubscribeModal = (function () { |
| 27 | SubscribeModal = class SubscribeModal extends ModalView { |
| 28 | static initClass () { |
| 29 | this.prototype.id = 'subscribe-modal' |
| 30 | this.prototype.template = template |
| 31 | this.prototype.plain = true |
| 32 | this.prototype.closesOnClickOutside = false |
| 33 | this.prototype.planID = 'basic' |
| 34 | this.prototype.i18nData = utils.premiumContent |
| 35 | |
| 36 | this.prototype.events = { |
| 37 | 'click #close-modal': 'hide', |
| 38 | 'click .purchase-button': 'onClickPurchaseButton', |
| 39 | 'click .stripe-lifetime-button': 'onClickStripeLifetimeButton', |
| 40 | 'click .stripe-annual-button': 'onClickAnnualPurchaseButton', |
| 41 | 'click .back-to-products': 'onClickBackToProducts' |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | constructor (options) { |
| 46 | // if document.location.host is 'br.codecombat.com' |