/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is not neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(window["webpackJsonpwebpack_ts_es"] = window["webpackJsonpwebpack_ts_es"] || []).push([["src_main_channel_ebanx_ebanx_ts"],{

/***/ "./src/main/channel/ChannelBaseClass.ts":
/*!**********************************************!*\
  !*** ./src/main/channel/ChannelBaseClass.ts ***!
  \**********************************************/
/*! namespace exports */
/*! export default [provided] [no usage info] [missing usage info prevents renaming] */
/*! other exports [not provided] [no usage info] */
/*! runtime requirements: __webpack_exports__, __webpack_require__.r, __webpack_require__.d, __webpack_require__.* */
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => __WEBPACK_DEFAULT_EXPORT__\n/* harmony export */ });\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar ChannelBaseClass = /*#__PURE__*/function () {\n  function ChannelBaseClass() {\n    _classCallCheck(this, ChannelBaseClass);\n  }\n\n  _createClass(ChannelBaseClass, [{\n    key: \"renderToDom\",\n    value: function renderToDom(html, domId) {\n      if (domId.length > 0) {\n        document.querySelector(\"#\".concat(domId)).append(html);\n      } else {\n        document.querySelector('body').append(html);\n      }\n    }\n  }]);\n\n  return ChannelBaseClass;\n}();\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ChannelBaseClass);\n\n//# sourceURL=webpack://webpack-ts-es/./src/main/channel/ChannelBaseClass.ts?");

/***/ }),

/***/ "./src/main/channel/ebanx/ebanx.d.ts":
/*!*******************************************!*\
  !*** ./src/main/channel/ebanx/ebanx.d.ts ***!
  \*******************************************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements:  */
/***/ (() => {

eval("\n\n//# sourceURL=webpack://webpack-ts-es/./src/main/channel/ebanx/ebanx.d.ts?");

/***/ }),

/***/ "./src/main/channel/ebanx/ebanx.ts":
/*!*****************************************!*\
  !*** ./src/main/channel/ebanx/ebanx.ts ***!
  \*****************************************/
/*! namespace exports */
/*! export default [provided] [no usage info] [missing usage info prevents renaming] */
/*! other exports [not provided] [no usage info] */
/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_exports__, __webpack_require__.r, __webpack_require__.d, __webpack_require__.* */
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => __WEBPACK_DEFAULT_EXPORT__\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.symbol */ \"./node_modules/core-js/modules/es.symbol.js\");\n/* harmony import */ var core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_symbol_description__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.symbol.description */ \"./node_modules/core-js/modules/es.symbol.description.js\");\n/* harmony import */ var core_js_modules_es_symbol_description__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_symbol_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator */ \"./node_modules/core-js/modules/es.symbol.iterator.js\");\n/* harmony import */ var core_js_modules_es_symbol_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_iterator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.iterator */ \"./node_modules/core-js/modules/es.array.iterator.js\");\n/* harmony import */ var core_js_modules_es_array_iterator__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_object_get_prototype_of__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.get-prototype-of */ \"./node_modules/core-js/modules/es.object.get-prototype-of.js\");\n/* harmony import */ var core_js_modules_es_object_get_prototype_of__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_prototype_of__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.to-string */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.promise */ \"./node_modules/core-js/modules/es.promise.js\");\n/* harmony import */ var core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_reflect_construct__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.reflect.construct */ \"./node_modules/core-js/modules/es.reflect.construct.js\");\n/* harmony import */ var core_js_modules_es_reflect_construct__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_construct__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_regexp_to_string__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string */ \"./node_modules/core-js/modules/es.regexp.to-string.js\");\n/* harmony import */ var core_js_modules_es_regexp_to_string__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.string.iterator */ \"./node_modules/core-js/modules/es.string.iterator.js\");\n/* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator */ \"./node_modules/core-js/modules/web.dom-collections.iterator.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! regenerator-runtime/runtime */ \"./node_modules/regenerator-runtime/runtime.js\");\n/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _template_default_template__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./template/default/template */ \"./src/main/channel/ebanx/template/default/template.tsx\");\n/* harmony import */ var _ebanx_d__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./ebanx.d */ \"./src/main/channel/ebanx/ebanx.d.ts\");\n/* harmony import */ var _ebanx_d__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_ebanx_d__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _ChannelBaseClass__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../ChannelBaseClass */ \"./src/main/channel/ChannelBaseClass.ts\");\n/* harmony import */ var loadjs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! loadjs */ \"./node_modules/loadjs/dist/loadjs.umd.js\");\n/* harmony import */ var loadjs__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(loadjs__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../util */ \"./src/main/util/index.ts\");\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\n\nvar Ebanx = /*#__PURE__*/function (_ChannelBaseClass) {\n  _inherits(Ebanx, _ChannelBaseClass);\n\n  var _super = _createSuper(Ebanx);\n\n  function Ebanx(publicKey, initialData) {\n    var _this;\n\n    _classCallCheck(this, Ebanx);\n\n    _this = _super.call(this);\n    _this.publicKey = publicKey;\n    _this.initialData = initialData;\n    _this.userNameErrorTips = '';\n    _this.cvvErrorTips = '';\n\n    _this.loadEBANXJS(); // 加载第三方SDK\n\n\n    _this.renderHtml(); // 渲染表单\n\n\n    return _this;\n  }\n\n  _createClass(Ebanx, [{\n    key: \"loadEBANXJS\",\n    value: function loadEBANXJS() {\n      var _this$initialData$env,\n          _this$initialData,\n          _this2 = this;\n\n      loadjs__WEBPACK_IMPORTED_MODULE_15___default()([\"https://js.ebanx.com/assets/songbird/songbird-\".concat((_this$initialData$env = (_this$initialData = this.initialData) === null || _this$initialData === void 0 ? void 0 : _this$initialData.env) !== null && _this$initialData$env !== void 0 ? _this$initialData$env : 'dev', \".js\"), 'https://js.ebanx.com/ebanx-libjs-latest.min.js', 'https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css'], 'ebanx', {\n        success: function success() {\n          var _this2$initialData, _this2$initialData2;\n\n          console.log('success', EBANX);\n          EBANX.config.setMode(((_this2$initialData = _this2.initialData) === null || _this2$initialData === void 0 ? void 0 : _this2$initialData.env) === 'prod' ? 'production' : 'test');\n          EBANX.config.setPublishableKey(_this2.publicKey.key);\n          EBANX.config.setCountry(((_this2$initialData2 = _this2.initialData) === null || _this2$initialData2 === void 0 ? void 0 : _this2$initialData2.country) || 'br');\n        },\n        error: function error(pathsNotFound) {\n          console.log('error', pathsNotFound);\n          /* at least one path didn't load */\n        },\n        before: function before(path, scriptEl) {\n          /* called for each script node before being embedded */\n          // console.log('before', path, scriptEl)\n        }\n      });\n    }\n  }, {\n    key: \"renderHtml\",\n    value: function renderHtml() {\n      this.renderToDom((0,_template_default_template__WEBPACK_IMPORTED_MODULE_12__.default)({\n        submit: this.submit,\n        changeUserName: this.changeUserName.bind(this),\n        changeCVV: this.changeCVV.bind(this)\n      }), this.initialData.domId);\n    } // 表单修改回调\n\n  }, {\n    key: \"fieldValidtionChange\",\n    value: function fieldValidtionChange(fieldValidtion) {\n      var _this$initialData2, _this$initialData3;\n\n      if (!fieldValidtion.message) {\n        if (this.userNameErrorTips) {\n          fieldValidtion.message = this.userNameErrorTips;\n          fieldValidtion.param = 'username';\n        }\n\n        if (this.cvvErrorTips) {\n          fieldValidtion.message = this.cvvErrorTips;\n          fieldValidtion.param = 'cvv';\n        }\n      }\n\n      document.getElementById('ebanx_error_tips').innerText = fieldValidtion.message;\n      ((_this$initialData2 = this.initialData) === null || _this$initialData2 === void 0 ? void 0 : _this$initialData2.fieldValidtionChange) && ((_this$initialData3 = this.initialData) === null || _this$initialData3 === void 0 ? void 0 : _this$initialData3.fieldValidtionChange(fieldValidtion));\n    }\n  }, {\n    key: \"changeUserName\",\n    value: function changeUserName(e) {\n      if (!(0,_util__WEBPACK_IMPORTED_MODULE_16__.checkEbanxUserName)(e.target.value)) {\n        var _this$initialData4, _this$initialData4$er;\n\n        this.userNameErrorTips = ((_this$initialData4 = this.initialData) === null || _this$initialData4 === void 0 ? void 0 : (_this$initialData4$er = _this$initialData4.errorTips) === null || _this$initialData4$er === void 0 ? void 0 : _this$initialData4$er.userNameErrorTips) || 'The username is incorrect.';\n      } else {\n        this.userNameErrorTips = '';\n      }\n\n      this.fieldValidtionChange({\n        message: this.userNameErrorTips,\n        param: 'username'\n      });\n    }\n  }, {\n    key: \"changeCVV\",\n    value: function changeCVV(e) {\n      if (!(0,_util__WEBPACK_IMPORTED_MODULE_16__.checkCVV)(e.target.value)) {\n        var _this$initialData5, _this$initialData5$er;\n\n        this.cvvErrorTips = ((_this$initialData5 = this.initialData) === null || _this$initialData5 === void 0 ? void 0 : (_this$initialData5$er = _this$initialData5.errorTips) === null || _this$initialData5$er === void 0 ? void 0 : _this$initialData5$er.cvvErrorTips) || 'The card’s security code is incorrect.';\n      } else {\n        this.cvvErrorTips = '';\n      }\n\n      this.fieldValidtionChange({\n        message: this.cvvErrorTips,\n        param: 'cvv'\n      });\n    }\n  }, {\n    key: \"submit\",\n    value: function submit(e) {\n      console.log('aaa搜索', e, this);\n      EBANX.card.createToken({\n        card_number: document.getElementById('ebanx_card_number').value,\n        card_name: document.getElementById('ebanx_card_name').value,\n        card_due_date: document.getElementById('ebanx_card_due_date').value,\n        card_cvv: document.getElementById('ebanx_card_cvv').value\n      }, function (ebanxResponse) {\n        console.log('add多', ebanxResponse); // if (ebanxResponse.data.hasOwnProperty('status')) {\n        //   document.getElementById('status').textContent = 'Success, the token is: ' + ebanxResponse.data.token\n        // } else {\n        //   const errorMessage = ebanxResponse.error.err.status_message || ebanxResponse.error.err.message\n        //   document.getElementById('status').textContent = 'Error ' + errorMessage\n        // }\n      });\n    }\n  }, {\n    key: \"getToken\",\n    value: function () {\n      var _getToken = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n        var token;\n        return regeneratorRuntime.wrap(function _callee$(_context) {\n          while (1) {\n            switch (_context.prev = _context.next) {\n              case 0:\n                token = '';\n                return _context.abrupt(\"return\", token);\n\n              case 2:\n              case \"end\":\n                return _context.stop();\n            }\n          }\n        }, _callee);\n      }));\n\n      function getToken() {\n        return _getToken.apply(this, arguments);\n      }\n\n      return getToken;\n    }()\n  }]);\n\n  return Ebanx;\n}(_ChannelBaseClass__WEBPACK_IMPORTED_MODULE_14__.default);\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Ebanx);\n\n//# sourceURL=webpack://webpack-ts-es/./src/main/channel/ebanx/ebanx.ts?");

/***/ }),

/***/ "./src/main/channel/ebanx/template/default/template.tsx":
/*!**************************************************************!*\
  !*** ./src/main/channel/ebanx/template/default/template.tsx ***!
  \**************************************************************/
/*! namespace exports */
/*! export default [provided] [no usage info] [missing usage info prevents renaming] */
/*! other exports [not provided] [no usage info] */
/*! runtime requirements: __webpack_require__, __webpack_require__.n, __webpack_exports__, __webpack_require__.r, __webpack_require__.d, __webpack_require__.* */
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => __WEBPACK_DEFAULT_EXPORT__\n/* harmony export */ });\n/* harmony import */ var _template_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./template.less */ \"./src/main/channel/ebanx/template/default/template.less\");\n/* harmony import */ var _template_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_template_less__WEBPACK_IMPORTED_MODULE_0__);\n/* provided dependency */ var h = __webpack_require__(/*! dom-chef */ \"./node_modules/dom-chef/index.js\")[\"h\"];\n\n\nvar template = function template(props) {\n  return h(\"div\", {\n    className: \"container\"\n  }, h(\"div\", {\n    className: \"row justify-content-md-center mt-5\"\n  }, h(\"div\", {\n    className: \"col-12\"\n  }, h(\"div\", {\n    className: \"card\"\n  }, h(\"div\", {\n    className: \"card-body\"\n  }, h(\"form\", {\n    type: \"post\",\n    id: \"ebanx_payment_form\"\n  }, h(\"div\", {\n    className: \"form-group\"\n  }, h(\"label\", {\n    for: \"ebanx_card_name\",\n    className: \"label control-label\"\n  }, \"Card Name\"), h(\"input\", {\n    placeholder: \"Card Name\",\n    type: \"text\",\n    id: \"ebanx_card_name\",\n    className: \"field form-control\",\n    onkeyup: function onkeyup(e) {\n      props.changeUserName(e);\n    }\n  })), h(\"div\", {\n    className: \"form-group\"\n  }, h(\"label\", {\n    for: \"ebanx_card_number\",\n    className: \"label control-label\"\n  }, \"Card Number\"), h(\"input\", {\n    type: \"text\",\n    id: \"ebanx_card_number\",\n    className: \"field form-control\"\n  })), h(\"div\", {\n    className: \"row\"\n  }, h(\"div\", {\n    className: \"form-group col-6\"\n  }, h(\"label\", {\n    for: \"ebanx_card_due_date\",\n    className: \"label control-label\"\n  }, \"Card Due Date\"), h(\"input\", {\n    type: \"text\",\n    id: \"ebanx_card_due_date\",\n    className: \"field form-control\" // onChange={(e: Event) => {\n    //   console.log('onChange', e.target.value)\n    // }}\n    // oninput={(e: Event) => {\n    //   // e.target.value = e.target.value + '/'\n    //   console.log('oninput', e.target.value)\n    // }}\n    // onpropertychange={(e: Event) => {\n    //   console.log('onpropertychange', e.target.value)\n    // }}\n    // onblur={(e: Event) => {\n    //   console.log('onblur', e.target.value)\n    // }}\n    // onfocus={(e: Event) => {\n    //   console.log('onfocus', e.target.value)\n    // }}\n    // onkeyup={(e: Event) => {\n    //   e.target.value = e.target.value\n    //     ?.replace(/\\D/g, '')\n    //     ?.slice(0, 6)\n    //     ?.replace(/^(\\d{2})\\/?(\\d{0,})$/, ($1, $2, $3) => `${$2}${$3 ? '/' + $3 : $3}`)\n    //   console.log('onkeyup', e.target.value)\n    // }}\n\n  })), h(\"div\", {\n    className: \"form-group col-6\"\n  }, h(\"label\", {\n    for: \"ebanx_card_cvv\",\n    className: \"label control-label\"\n  }, \"Card Cvv\"), h(\"input\", {\n    type: \"number\",\n    id: \"ebanx_card_cvv\",\n    className: \"field form-control\",\n    onkeyup: function onkeyup(e) {\n      props.changeCVV(e);\n    }\n  })))), h(\"div\", {\n    className: \"ebanx_error_tips\",\n    id: \"ebanx_error_tips\"\n  }), h(\"button\", {\n    type: \"submit\",\n    className: \"col-12 btn btn-default\",\n    onClick: function onClick(e) {\n      props === null || props === void 0 ? void 0 : props.submit(e);\n    }\n  }, \"\\u767B\\u5F55\"))))));\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (template);\n\n//# sourceURL=webpack://webpack-ts-es/./src/main/channel/ebanx/template/default/template.tsx?");

/***/ }),

/***/ "./src/main/util/index.ts":
/*!********************************!*\
  !*** ./src/main/util/index.ts ***!
  \********************************/
/*! namespace exports */
/*! export checkCVV [provided] [no usage info] [missing usage info prevents renaming] */
/*! export checkEbanxUserName [provided] [no usage info] [missing usage info prevents renaming] */
/*! other exports [not provided] [no usage info] */
/*! runtime requirements: __webpack_require__.r, __webpack_exports__, __webpack_require__.d, __webpack_require__.* */
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"checkEbanxUserName\": () => /* binding */ checkEbanxUserName,\n/* harmony export */   \"checkCVV\": () => /* binding */ checkCVV\n/* harmony export */ });\nfunction checkEbanxUserName(userName) {\n  return /^[\\s\\S]{2,50}$/.test(userName);\n}\nfunction checkCVV(cvv) {\n  return /^\\d{3,4}$/.test(cvv);\n}\n\n//# sourceURL=webpack://webpack-ts-es/./src/main/util/index.ts?");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/main/channel/ebanx/template/default/template.less":
/*!************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/main/channel/ebanx/template/default/template.less ***!
  \************************************************************************************************************************************************************************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: __webpack_exports__, module, __webpack_require__, module.id */
/***/ ((module, exports, __webpack_require__) => {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"label {\\n  display: inline-block;\\n  margin-bottom: 9px;\\n  color: #313131;\\n  font-size: 14px;\\n  font-weight: 300;\\n  line-height: 17px;\\n}\\ninput {\\n  padding: 10px 12px;\\n}\\ninput::placeholder {\\n  color: pink !important;\\n}\\ninput:focus {\\n  outline: none !important;\\n}\\n.ebanx_error_tips {\\n  margin-top: -20px;\\n  height: 26px;\\n  line-height: 26px;\\n  color: red;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack://webpack-ts-es/./src/main/channel/ebanx/template/default/template.less?./node_modules/css-loader/dist/cjs.js!./node_modules/less-loader/dist/cjs.js??ruleSet%5B1%5D.rules%5B1%5D.use%5B2%5D");

/***/ }),

/***/ "./node_modules/loadjs/dist/loadjs.umd.js":
/*!************************************************!*\
  !*** ./node_modules/loadjs/dist/loadjs.umd.js ***!
  \************************************************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: top-level-this-exports, __webpack_exports__, module */
/***/ (function(module, exports) {

eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function(root, factory) {\n  if (true) {\n    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n  } else {}\n}(this, function() {\n/**\n * Global dependencies.\n * @global {Object} document - DOM\n */\n\nvar devnull = function() {},\n    bundleIdCache = {},\n    bundleResultCache = {},\n    bundleCallbackQueue = {};\n\n\n/**\n * Subscribe to bundle load event.\n * @param {string[]} bundleIds - Bundle ids\n * @param {Function} callbackFn - The callback function\n */\nfunction subscribe(bundleIds, callbackFn) {\n  // listify\n  bundleIds = bundleIds.push ? bundleIds : [bundleIds];\n\n  var depsNotFound = [],\n      i = bundleIds.length,\n      numWaiting = i,\n      fn,\n      bundleId,\n      r,\n      q;\n\n  // define callback function\n  fn = function (bundleId, pathsNotFound) {\n    if (pathsNotFound.length) depsNotFound.push(bundleId);\n\n    numWaiting--;\n    if (!numWaiting) callbackFn(depsNotFound);\n  };\n\n  // register callback\n  while (i--) {\n    bundleId = bundleIds[i];\n\n    // execute callback if in result cache\n    r = bundleResultCache[bundleId];\n    if (r) {\n      fn(bundleId, r);\n      continue;\n    }\n\n    // add to callback queue\n    q = bundleCallbackQueue[bundleId] = bundleCallbackQueue[bundleId] || [];\n    q.push(fn);\n  }\n}\n\n\n/**\n * Publish bundle load event.\n * @param {string} bundleId - Bundle id\n * @param {string[]} pathsNotFound - List of files not found\n */\nfunction publish(bundleId, pathsNotFound) {\n  // exit if id isn't defined\n  if (!bundleId) return;\n\n  var q = bundleCallbackQueue[bundleId];\n\n  // cache result\n  bundleResultCache[bundleId] = pathsNotFound;\n\n  // exit if queue is empty\n  if (!q) return;\n\n  // empty callback queue\n  while (q.length) {\n    q[0](bundleId, pathsNotFound);\n    q.splice(0, 1);\n  }\n}\n\n\n/**\n * Execute callbacks.\n * @param {Object or Function} args - The callback args\n * @param {string[]} depsNotFound - List of dependencies not found\n */\nfunction executeCallbacks(args, depsNotFound) {\n  // accept function as argument\n  if (args.call) args = {success: args};\n\n  // success and error callbacks\n  if (depsNotFound.length) (args.error || devnull)(depsNotFound);\n  else (args.success || devnull)(args);\n}\n\n\n/**\n * Load individual file.\n * @param {string} path - The file path\n * @param {Function} callbackFn - The callback function\n */\nfunction loadFile(path, callbackFn, args, numTries) {\n  var doc = document,\n      async = args.async,\n      maxTries = (args.numRetries || 0) + 1,\n      beforeCallbackFn = args.before || devnull,\n      pathname = path.replace(/[\\?|#].*$/, ''),\n      pathStripped = path.replace(/^(css|img)!/, ''),\n      isLegacyIECss,\n      e;\n\n  numTries = numTries || 0;\n\n  if (/(^css!|\\.css$)/.test(pathname)) {\n    // css\n    e = doc.createElement('link');\n    e.rel = 'stylesheet';\n    e.href = pathStripped;\n\n    // tag IE9+\n    isLegacyIECss = 'hideFocus' in e;\n\n    // use preload in IE Edge (to detect load errors)\n    if (isLegacyIECss && e.relList) {\n      isLegacyIECss = 0;\n      e.rel = 'preload';\n      e.as = 'style';\n    }\n  } else if (/(^img!|\\.(png|gif|jpg|svg|webp)$)/.test(pathname)) {\n    // image\n    e = doc.createElement('img');\n    e.src = pathStripped;    \n  } else {\n    // javascript\n    e = doc.createElement('script');\n    e.src = path;\n    e.async = async === undefined ? true : async;\n  }\n\n  e.onload = e.onerror = e.onbeforeload = function (ev) {\n    var result = ev.type[0];\n\n    // treat empty stylesheets as failures to get around lack of onerror\n    // support in IE9-11\n    if (isLegacyIECss) {\n      try {\n        if (!e.sheet.cssText.length) result = 'e';\n      } catch (x) {\n        // sheets objects created from load errors don't allow access to\n        // `cssText` (unless error is Code:18 SecurityError)\n        if (x.code != 18) result = 'e';\n      }\n    }\n\n    // handle retries in case of load failure\n    if (result == 'e') {\n      // increment counter\n      numTries += 1;\n\n      // exit function and try again\n      if (numTries < maxTries) {\n        return loadFile(path, callbackFn, args, numTries);\n      }\n    } else if (e.rel == 'preload' && e.as == 'style') {\n      // activate preloaded stylesheets\n      return e.rel = 'stylesheet'; // jshint ignore:line\n    }\n    \n    // execute callback\n    callbackFn(path, result, ev.defaultPrevented);\n  };\n\n  // add to document (unless callback returns `false`)\n  if (beforeCallbackFn(path, e) !== false) doc.head.appendChild(e);\n}\n\n\n/**\n * Load multiple files.\n * @param {string[]} paths - The file paths\n * @param {Function} callbackFn - The callback function\n */\nfunction loadFiles(paths, callbackFn, args) {\n  // listify paths\n  paths = paths.push ? paths : [paths];\n\n  var numWaiting = paths.length,\n      x = numWaiting,\n      pathsNotFound = [],\n      fn,\n      i;\n\n  // define callback function\n  fn = function(path, result, defaultPrevented) {\n    // handle error\n    if (result == 'e') pathsNotFound.push(path);\n\n    // handle beforeload event. If defaultPrevented then that means the load\n    // will be blocked (ex. Ghostery/ABP on Safari)\n    if (result == 'b') {\n      if (defaultPrevented) pathsNotFound.push(path);\n      else return;\n    }\n\n    numWaiting--;\n    if (!numWaiting) callbackFn(pathsNotFound);\n  };\n\n  // load scripts\n  for (i=0; i < x; i++) loadFile(paths[i], fn, args);\n}\n\n\n/**\n * Initiate script load and register bundle.\n * @param {(string|string[])} paths - The file paths\n * @param {(string|Function|Object)} [arg1] - The (1) bundleId or (2) success\n *   callback or (3) object literal with success/error arguments, numRetries,\n *   etc.\n * @param {(Function|Object)} [arg2] - The (1) success callback or (2) object\n *   literal with success/error arguments, numRetries, etc.\n */\nfunction loadjs(paths, arg1, arg2) {\n  var bundleId,\n      args;\n\n  // bundleId (if string)\n  if (arg1 && arg1.trim) bundleId = arg1;\n\n  // args (default is {})\n  args = (bundleId ? arg2 : arg1) || {};\n\n  // throw error if bundle is already defined\n  if (bundleId) {\n    if (bundleId in bundleIdCache) {\n      throw \"LoadJS\";\n    } else {\n      bundleIdCache[bundleId] = true;\n    }\n  }\n\n  function loadFn(resolve, reject) {\n    loadFiles(paths, function (pathsNotFound) {\n      // execute callbacks\n      executeCallbacks(args, pathsNotFound);\n      \n      // resolve Promise\n      if (resolve) {\n        executeCallbacks({success: resolve, error: reject}, pathsNotFound);\n      }\n\n      // publish bundle load event\n      publish(bundleId, pathsNotFound);\n    }, args);\n  }\n  \n  if (args.returnPromise) return new Promise(loadFn);\n  else loadFn();\n}\n\n\n/**\n * Execute callbacks when dependencies have been satisfied.\n * @param {(string|string[])} deps - List of bundle ids\n * @param {Object} args - success/error arguments\n */\nloadjs.ready = function ready(deps, args) {\n  // subscribe to bundle load event\n  subscribe(deps, function (depsNotFound) {\n    // execute callbacks\n    executeCallbacks(args, depsNotFound);\n  });\n\n  return loadjs;\n};\n\n\n/**\n * Manually satisfy bundle dependencies.\n * @param {string} bundleId - The bundle id\n */\nloadjs.done = function done(bundleId) {\n  publish(bundleId, []);\n};\n\n\n/**\n * Reset loadjs dependencies statuses\n */\nloadjs.reset = function reset() {\n  bundleIdCache = {};\n  bundleResultCache = {};\n  bundleCallbackQueue = {};\n};\n\n\n/**\n * Determine if bundle has already been defined\n * @param String} bundleId - The bundle id\n */\nloadjs.isDefined = function isDefined(bundleId) {\n  return bundleId in bundleIdCache;\n};\n\n\n// export\nreturn loadjs;\n\n}));\n\n\n//# sourceURL=webpack://webpack-ts-es/./node_modules/loadjs/dist/loadjs.umd.js?");

/***/ }),

/***/ "./src/main/channel/ebanx/template/default/template.less":
/*!***************************************************************!*\
  !*** ./src/main/channel/ebanx/template/default/template.less ***!
  \***************************************************************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: module, __webpack_require__, module.id */
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {

eval("var api = __webpack_require__(/*! !../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n            var content = __webpack_require__(/*! !!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./template.less */ \"./node_modules/css-loader/dist/cjs.js!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].use[2]!./src/main/channel/ebanx/template/default/template.less\");\n\n            content = content.__esModule ? content.default : content;\n\n            if (typeof content === 'string') {\n              content = [[module.id, content, '']];\n            }\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nmodule.exports = content.locals || {};\n\n//# sourceURL=webpack://webpack-ts-es/./src/main/channel/ebanx/template/default/template.less?");

/***/ })

}]);