Untitled diff

Created Diff never expires
3 removals
82 lines
3 additions
82 lines
,{"./Plugin":25}],20:[function(require,module,exports){
,{"./Plugin":25}],20:[function(require,module,exports){
'use strict';
'use strict';


exports.__esModule = true;
exports.__esModule = true;


var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };


var _templateObject = _taggedTemplateLiteralLoose(['<h1>this is strange 1</h1>'], ['<h1>this is strange 1</h1>']),
var _templateObject = _taggedTemplateLiteralLoose(['<h1>this is strange 1</h1>'], ['<h1>this is strange 1</h1>']),
_templateObject2 = _taggedTemplateLiteralLoose(['<h1>this is strange 2</h1>'], ['<h1>this is strange 2</h1>']),
_templateObject2 = _taggedTemplateLiteralLoose(['<h2>this is strange 2</h2>'], ['<h2>this is strange 2</h2>']),
_templateObject3 = _taggedTemplateLiteralLoose(['\n <div class="wow-this-works">\n <input type="text" value="hello">\n I am a dummy plugin, look at me, I was rendered in a modal! That’s crazy, I know.\n ', '\n ', '\n </div>\n '], ['\n <div class="wow-this-works">\n <input type="text" value="hello">\n I am a dummy plugin, look at me, I was rendered in a modal! That’s crazy, I know.\n ', '\n ', '\n </div>\n ']);
_templateObject3 = _taggedTemplateLiteralLoose(['\n <div class="wow-this-works">\n <input type="text" value="hello">\n I am a dummy plugin, look at me, I was rendered in a modal! That’s crazy, I know.\n ', '\n ', '\n </div>\n '], ['\n <div class="wow-this-works">\n <input type="text" value="hello">\n I am a dummy plugin, look at me, I was rendered in a modal! That’s crazy, I know.\n ', '\n ', '\n </div>\n ']);


var _Plugin2 = require('./Plugin');
var _Plugin2 = require('./Plugin');


var _Plugin3 = _interopRequireDefault(_Plugin2);
var _Plugin3 = _interopRequireDefault(_Plugin2);


var _yoYo = require('yo-yo');
var _yoYo = require('yo-yo');


var _yoYo2 = _interopRequireDefault(_yoYo);
var _yoYo2 = _interopRequireDefault(_yoYo);


function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }


function _taggedTemplateLiteralLoose(strings, raw) { strings.raw = raw; return strings; }
function _taggedTemplateLiteralLoose(strings, raw) { strings.raw = raw; return strings; }


function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }


function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }


function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }


/**
/**
* Dummy
* Dummy
*
*
*/
*/


var Dummy = function (_Plugin) {
var Dummy = function (_Plugin) {
_inherits(Dummy, _Plugin);
_inherits(Dummy, _Plugin);


function Dummy(core, opts) {
function Dummy(core, opts) {
_classCallCheck(this, Dummy);
_classCallCheck(this, Dummy);


var _this = _possibleConstructorReturn(this, _Plugin.call(this, core, opts));
var _this = _possibleConstructorReturn(this, _Plugin.call(this, core, opts));


_this.type = 'acquirer';
_this.type = 'acquirer';
_this.id = 'Dummy';
_this.id = 'Dummy';
_this.title = 'Dummy';
_this.title = 'Dummy';


// set default options
// set default options
var defaultOptions = {};
var defaultOptions = {};


// merge default options with the ones set by user
// merge default options with the ones set by user
_this.opts = _extends({}, defaultOptions, opts);
_this.opts = _extends({}, defaultOptions, opts);
_this.strange = (0, _yoYo2.default)(_templateObject);
_this.strange = (0, _yoYo2.default)(_templateObject);
_this.render = _this.render.bind(_this);
_this.render = _this.render.bind(_this);
return _this;
return _this;
}
}


Dummy.prototype.render = function render(state) {
Dummy.prototype.render = function render(state) {
var bla = (0, _yoYo2.default)(_templateObject2);
var bla = (0, _yoYo2.default)(_templateObject2);
return (0, _yoYo2.default)(_templateObject3, this.strange, bla);
return (0, _yoYo2.default)(_templateObject3, this.strange, bla);
};
};


Dummy.prototype.focus = function focus() {
Dummy.prototype.focus = function focus() {
var firstInput = document.querySelector(this.target + ' *:input[type!=hidden]:first');
var firstInput = document.querySelector(this.target + ' *:input[type!=hidden]:first');
firstInput.focus();
firstInput.focus();
};
};


Dummy.prototype.install = function install() {
Dummy.prototype.install = function install() {
this.el = this.render(this.core.state);
this.el = this.render(this.core.state);
this.getTarget(this.opts.target, this, this.el, this.render);
this.getTarget(this.opts.target, this, this.el, this.render);
};
};


return Dummy;
return Dummy;
}(_Plugin3.default);
}(_Plugin3.default);


exports.default = Dummy;
exports.default = Dummy;


},{"./Plugin":25,"yo-yo":11}],21:[function(require,module,exports){
},{"./Plugin":25,"yo-yo":11}],21:[function(require,module,exports){
'use strict';
'use strict';


Object.defineProperty(exports, "__esModule", {
Object.defineProperty(exports, "__esModule", {
value: true
value: true
});
});