"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _mjmlCore = require("mjml-core");
let MjTitle = exports.default = /*#__PURE__*/function (_HeadComponent) {
  function MjTitle() {
    (0, _classCallCheck2.default)(this, MjTitle);
    return (0, _callSuper2.default)(this, MjTitle, arguments);
  }
  (0, _inherits2.default)(MjTitle, _HeadComponent);
  return (0, _createClass2.default)(MjTitle, [{
    key: "handler",
    value: function handler() {
      const {
        add
      } = this.context;
      add('title', this.getContent());
    }
  }]);
}(_mjmlCore.HeadComponent);
(0, _defineProperty2.default)(MjTitle, "componentName", 'mj-title');
(0, _defineProperty2.default)(MjTitle, "endingTag", true);
module.exports = exports.default;